Plugin Directory

Changeset 3195601


Ignore:
Timestamp:
11/23/2024 06:17:07 PM (16 months ago)
Author:
eteubert
Message:

Update to version 4.1.23 from GitHub

Location:
podlove-podcasting-plugin-for-wordpress
Files:
30 edited
1 copied

Legend:

Unmodified
Added
Removed
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/client/dist/client.js

    r3188654 r3195601  
    1 (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)}})();function Kh(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const kP="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",RP=Kh(kP);function cs(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=on(r)?DP(r):cs(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 LP=/;(?![^(]*\))/g,NP=/:([^]+)/,MP=/\/\*.*?\*\//gs;function DP(e){const t={};return e.replace(MP,"").split(LP).forEach(n=>{if(n){const r=n.split(NP);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function St(e){let t="";if(on(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=St(e[n]);r&&(t+=r+" ")}else if(qt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function FP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!on(t)&&(e.class=St(t)),n&&(e.style=cs(n)),e}const U=e=>on(e)?e:e==null?"":Je(e)||qt(e)&&(e.toString===a1||!et(e.toString))?JSON.stringify(e,i1,2):String(e),i1=(e,t)=>t&&t.__v_isRef?i1(e,t.value):Fs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:l1(t)?{[`Set(${t.size})`]:[...t.values()]}:qt(t)&&!Je(t)&&!u1(t)?String(t):t,Ut={},Ds=[],go=()=>{},BP=()=>!1,UP=/^on[^a-z]/,Yc=e=>UP.test(e),s1=e=>e.startsWith("onUpdate:"),$n=Object.assign,Gh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jP=Object.prototype.hasOwnProperty,_t=(e,t)=>jP.call(e,t),Je=Array.isArray,Fs=e=>$a(e)==="[object Map]",l1=e=>$a(e)==="[object Set]",HP=e=>$a(e)==="[object RegExp]",et=e=>typeof e=="function",on=e=>typeof e=="string",Xh=e=>typeof e=="symbol",qt=e=>e!==null&&typeof e=="object",Jh=e=>qt(e)&&et(e.then)&&et(e.catch),a1=Object.prototype.toString,$a=e=>a1.call(e),VP=e=>$a(e).slice(8,-1),u1=e=>$a(e)==="[object Object]",Yh=e=>on(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vl=Kh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},WP=/-(\w)/g,Qr=Zc(e=>e.replace(WP,(t,n)=>n?n.toUpperCase():"")),zP=/\B([A-Z])/g,Qc=Zc(e=>e.replace(zP,"-$1").toLowerCase()),ed=Zc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wl=Zc(e=>e?`on${ed(e)}`:""),Ws=(e,t)=>!Object.is(e,t),zl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},vc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},qP=e=>{const t=parseFloat(e);return isNaN(t)?e:t},KP=e=>{const t=on(e)?Number(e):NaN;return isNaN(t)?e:t};let jy;const GP=()=>jy||(jy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let pr;class Zh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pr,!t&&pr&&(this.index=(pr.scopes||(pr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=pr;try{return pr=this,t()}finally{pr=n}}}on(){pr=this}off(){pr=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 XP(e){return new Zh(e)}function c1(e,t=pr){t&&t.active&&t.effects.push(e)}function d1(){return pr}function f1(e){pr&&pr.cleanups.push(e)}const Qh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},p1=e=>(e.w&vi)>0,h1=e=>(e.n&vi)>0,JP=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=vi},YP=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];p1(o)&&!h1(o)?o.delete(e):t[n++]=o,o.w&=~vi,o.n&=~vi}t.length=n}},yc=new WeakMap;let Bl=0,vi=1;const qp=30;let Gr;const Xi=Symbol(""),Kp=Symbol("");class Ca{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,c1(this,r)}run(){if(!this.active)return this.fn();let t=Gr,n=hi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Gr,Gr=this,hi=!0,vi=1<<++Bl,Bl<=qp?JP(this):Hy(this),this.fn()}finally{Bl<=qp&&YP(this),vi=1<<--Bl,Gr=this.parent,hi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Gr===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 ZP(e,t){e.effect&&(e=e.effect.fn);const n=new Ca(e);t&&($n(n,t),t.scope&&c1(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function QP(e){e.effect.stop()}let hi=!0;const m1=[];function al(){m1.push(hi),hi=!1}function ul(){const e=m1.pop();hi=e===void 0?!0:e}function rr(e,t,n){if(hi&&Gr){let r=yc.get(e);r||yc.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Qh()),g1(o)}}function g1(e,t){let n=!1;Bl<=qp?h1(e)||(e.n|=vi,n=!p1(e)):n=!e.has(Gr),n&&(e.add(Gr),Gr.deps.push(e))}function Wo(e,t,n,r,o,s){const l=yc.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((d,p)=>{(p==="length"||p>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?Yh(n)&&a.push(l.get("length")):(a.push(l.get(Xi)),Fs(e)&&a.push(l.get(Kp)));break;case"delete":Je(e)||(a.push(l.get(Xi)),Fs(e)&&a.push(l.get(Kp)));break;case"set":Fs(e)&&a.push(l.get(Xi));break}if(a.length===1)a[0]&&Gp(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);Gp(Qh(c))}}function Gp(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!==Gr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function ek(e,t){var n;return(n=yc.get(e))===null||n===void 0?void 0:n.get(t)}const tk=Kh("__proto__,__v_isRef,__isVue"),v1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xh)),nk=td(),rk=td(!1,!0),ok=td(!0),ik=td(!0,!0),Wy=sk();function sk(){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++)rr(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){al();const r=Ue(this)[t].apply(this,n);return ul(),r}}),e}function lk(e){const t=Ue(this);return rr(t,"has",e),t.hasOwnProperty(e)}function td(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?x1:E1:t?S1:w1).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 lk}const a=Reflect.get(r,o,s);return(Xh(o)?v1.has(o):tk(o))||(e||rr(r,"get",o),t)?a:dn(a)?l&&Yh(o)?a:a.value:qt(a)?e?tm(a):Ei(a):a}}const ak=y1(),uk=y1(!0);function y1(e=!1){return function(n,r,o,s){let l=n[r];if(os(l)&&dn(l)&&!dn(o))return!1;if(!e&&(!oa(o)&&!os(o)&&(l=Ue(l),o=Ue(o)),!Je(n)&&dn(l)&&!dn(o)))return l.value=o,!0;const a=Je(n)&&Yh(r)?Number(r)<n.length:_t(n,r),c=Reflect.set(n,r,o,s);return n===Ue(s)&&(a?Ws(o,l)&&Wo(n,"set",r,o):Wo(n,"add",r,o)),c}}function ck(e,t){const n=_t(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Wo(e,"delete",t,void 0),r}function dk(e,t){const n=Reflect.has(e,t);return(!Xh(t)||!v1.has(t))&&rr(e,"has",t),n}function fk(e){return rr(e,"iterate",Je(e)?"length":Xi),Reflect.ownKeys(e)}const b1={get:nk,set:ak,deleteProperty:ck,has:dk,ownKeys:fk},_1={get:ok,set(e,t){return!0},deleteProperty(e,t){return!0}},pk=$n({},b1,{get:rk,set:uk}),hk=$n({},_1,{get:ik}),em=e=>e,nd=e=>Reflect.getPrototypeOf(e);function Du(e,t,n=!1,r=!1){e=e.__v_raw;const o=Ue(e),s=Ue(t);n||(t!==s&&rr(o,"get",t),rr(o,"get",s));const{has:l}=nd(o),a=r?em:n?om:ia;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 Fu(e,t=!1){const n=this.__v_raw,r=Ue(n),o=Ue(e);return t||(e!==o&&rr(r,"has",e),rr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Bu(e,t=!1){return e=e.__v_raw,!t&&rr(Ue(e),"iterate",Xi),Reflect.get(e,"size",e)}function zy(e){e=Ue(e);const t=Ue(this);return nd(t).has.call(t,e)||(t.add(e),Wo(t,"add",e,e)),this}function qy(e,t){t=Ue(t);const n=Ue(this),{has:r,get:o}=nd(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?Ws(t,l)&&Wo(n,"set",e,t):Wo(n,"add",e,t),this}function Ky(e){const t=Ue(this),{has:n,get:r}=nd(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&&Wo(t,"delete",e,void 0),s}function Gy(){const e=Ue(this),t=e.size!==0,n=e.clear();return t&&Wo(e,"clear",void 0,void 0),n}function Uu(e,t){return function(r,o){const s=this,l=s.__v_raw,a=Ue(l),c=t?em:e?om:ia;return!e&&rr(a,"iterate",Xi),l.forEach((d,p)=>r.call(o,c(d),c(p),s))}}function ju(e,t,n){return function(...r){const o=this.__v_raw,s=Ue(o),l=Fs(s),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,d=o[e](...r),p=n?em:t?om:ia;return!t&&rr(s,"iterate",c?Kp:Xi),{next(){const{value:h,done:g}=d.next();return g?{value:h,done:g}:{value:a?[p(h[0]),p(h[1])]:p(h),done:g}},[Symbol.iterator](){return this}}}}function ii(e){return function(...t){return e==="delete"?!1:this}}function mk(){const e={get(s){return Du(this,s)},get size(){return Bu(this)},has:Fu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Uu(!1,!1)},t={get(s){return Du(this,s,!1,!0)},get size(){return Bu(this)},has:Fu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Uu(!1,!0)},n={get(s){return Du(this,s,!0)},get size(){return Bu(this,!0)},has(s){return Fu.call(this,s,!0)},add:ii("add"),set:ii("set"),delete:ii("delete"),clear:ii("clear"),forEach:Uu(!0,!1)},r={get(s){return Du(this,s,!0,!0)},get size(){return Bu(this,!0)},has(s){return Fu.call(this,s,!0)},add:ii("add"),set:ii("set"),delete:ii("delete"),clear:ii("clear"),forEach:Uu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=ju(s,!1,!1),n[s]=ju(s,!0,!1),t[s]=ju(s,!1,!0),r[s]=ju(s,!0,!0)}),[e,n,t,r]}const[gk,vk,yk,bk]=mk();function rd(e,t){const n=t?e?bk:yk:e?vk:gk;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 _k={get:rd(!1,!1)},wk={get:rd(!1,!0)},Sk={get:rd(!0,!1)},Ek={get:rd(!0,!0)},w1=new WeakMap,S1=new WeakMap,E1=new WeakMap,x1=new WeakMap;function xk(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $k(e){return e.__v_skip||!Object.isExtensible(e)?0:xk(VP(e))}function Ei(e){return os(e)?e:od(e,!1,b1,_k,w1)}function $1(e){return od(e,!1,pk,wk,S1)}function tm(e){return od(e,!0,_1,Sk,E1)}function Ck(e){return od(e,!0,hk,Ek,x1)}function od(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=$k(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Ji(e){return os(e)?Ji(e.__v_raw):!!(e&&e.__v_isReactive)}function os(e){return!!(e&&e.__v_isReadonly)}function oa(e){return!!(e&&e.__v_isShallow)}function nm(e){return Ji(e)||os(e)}function Ue(e){const t=e&&e.__v_raw;return t?Ue(t):e}function rm(e){return vc(e,"__v_skip",!0),e}const ia=e=>qt(e)?Ei(e):e,om=e=>qt(e)?tm(e):e;function im(e){hi&&Gr&&(e=Ue(e),g1(e.dep||(e.dep=Qh())))}function id(e,t){e=Ue(e);const n=e.dep;n&&Gp(n)}function dn(e){return!!(e&&e.__v_isRef===!0)}function _e(e){return C1(e,!1)}function sd(e){return C1(e,!0)}function C1(e,t){return dn(e)?e:new Tk(e,t)}class Tk{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:ia(t)}get value(){return im(this),this._value}set value(t){const n=this.__v_isShallow||oa(t)||os(t);t=n?t:Ue(t),Ws(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ia(t),id(this))}}function Xp(e){id(e)}function jn(e){return dn(e)?e.value:e}const Ok={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 sm(e){return Ji(e)?e:new Proxy(e,Ok)}class Ak{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>im(this),()=>id(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Ik(e){return new Ak(e)}function lm(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=T1(e,n);return t}class Pk{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 ek(Ue(this._object),this._key)}}function T1(e,t,n){const r=e[t];return dn(r)?r:new Pk(e,t,n)}var O1;class kk{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[O1]=!1,this._dirty=!0,this.effect=new Ca(t,()=>{this._dirty||(this._dirty=!0,id(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Ue(this);return im(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}O1="__v_isReadonly";function Rk(e,t,n=!1){let r,o;const s=et(e);return s?(r=e,o=go):(r=e.get,o=e.set),new kk(r,o,s||!o,n)}function Lk(e,...t){}function Nk(e,t){}function jo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){ds(s,t,n)}return o}function vr(e,t,n,r){if(et(e)){const s=jo(e,t,n,r);return s&&Jh(s)&&s.catch(l=>{ds(l,t,n)}),s}const o=[];for(let s=0;s<e.length;s++)o.push(vr(e[s],t,n,r));return o}function ds(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 d=s.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,a)===!1)return}s=s.parent}const c=t.appContext.config.errorHandler;if(c){jo(c,null,10,[e,l,a]);return}}Mk(e,n,o,r)}function Mk(e,t,n,r=!0){console.error(e)}let sa=!1,Jp=!1;const In=[];let mo=0;const Bs=[];let Mo=null,Hi=0;const A1=Promise.resolve();let am=null;function rn(e){const t=am||A1;return e?t.then(this?e.bind(this):e):t}function Dk(e){let t=mo+1,n=In.length;for(;t<n;){const r=t+n>>>1;la(In[r])<e?t=r+1:n=r}return t}function ld(e){(!In.length||!In.includes(e,sa&&e.allowRecurse?mo+1:mo))&&(e.id==null?In.push(e):In.splice(Dk(e.id),0,e),I1())}function I1(){!sa&&!Jp&&(Jp=!0,am=A1.then(P1))}function Fk(e){const t=In.indexOf(e);t>mo&&In.splice(t,1)}function um(e){Je(e)?Bs.push(...e):(!Mo||!Mo.includes(e,e.allowRecurse?Hi+1:Hi))&&Bs.push(e),I1()}function Xy(e,t=sa?mo+1:0){for(;t<In.length;t++){const n=In[t];n&&n.pre&&(In.splice(t,1),t--,n())}}function bc(e){if(Bs.length){const t=[...new Set(Bs)];if(Bs.length=0,Mo){Mo.push(...t);return}for(Mo=t,Mo.sort((n,r)=>la(n)-la(r)),Hi=0;Hi<Mo.length;Hi++)Mo[Hi]();Mo=null,Hi=0}}const la=e=>e.id==null?1/0:e.id,Bk=(e,t)=>{const n=la(e)-la(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function P1(e){Jp=!1,sa=!0,In.sort(Bk);try{for(mo=0;mo<In.length;mo++){const t=In[mo];t&&t.active!==!1&&jo(t,null,14)}}finally{mo=0,In.length=0,bc(),sa=!1,am=null,(In.length||Bs.length)&&P1()}}let Ns,Hu=[];function k1(e,t){var n,r;Ns=e,Ns?(Ns.enabled=!0,Hu.forEach(({event:o,args:s})=>Ns.emit(o,...s)),Hu=[]):typeof window<"u"&&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=>{k1(s,t)}),setTimeout(()=>{Ns||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Hu=[])},3e3)):Hu=[]}function Uk(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:g}=r[p]||Ut;g&&(o=n.map(y=>on(y)?y.trim():y)),h&&(o=n.map(qP))}let a,c=r[a=Wl(t)]||r[a=Wl(Qr(t))];!c&&s&&(c=r[a=Wl(Qc(t))]),c&&vr(c,e,6,o);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,vr(d,e,6,o)}}function R1(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=d=>{const p=R1(d,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 ad(e,t){return!e||!Yc(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,Qc(t))||_t(e,t))}let xn=null,ud=null;function aa(e){const t=xn;return xn=e,ud=e&&e.type.__scopeId||null,t}function jk(e){ud=e}function Hk(){ud=null}const Vk=e=>ye;function ye(e,t=xn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&rh(-1);const s=aa(t);let l;try{l=e(...o)}finally{aa(s),r._d&&rh(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function oc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[l],slots:a,attrs:c,emit:d,render:p,renderCache:h,data:g,setupState:y,ctx:_,inheritAttrs:S}=e;let C,T;const w=aa(e);try{if(n.shapeFlag&4){const O=o||r;C=hr(p.call(O,O,h,s,y,g,_)),T=c}else{const O=t;C=hr(O.length>1?O(s,{attrs:c,slots:a,emit:d}):O(s,null)),T=t.props?c:zk(c)}}catch(O){Gl.length=0,ds(O,e,1),C=q(Rn)}let E=C;if(T&&S!==!1){const O=Object.keys(T),{shapeFlag:$}=E;O.length&&$&7&&(l&&O.some(s1)&&(T=qk(T,l)),E=Br(E,T))}return n.dirs&&(E=Br(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),C=E,aa(w),C}function Wk(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(yi(r)){if(r.type!==Rn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const zk=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yc(n))&&((t||(t={}))[n]=e[n]);return t},qk=(e,t)=>{const n={};for(const r in e)(!s1(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Kk(e,t,n){const{props:r,children:o,component:s}=e,{props:l,children:a,patchFlag:c}=t,d=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,d):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const g=p[h];if(l[g]!==r[g]&&!ad(d,g))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?Jy(r,l,d):!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]&&!ad(n,s))return!0}return!1}function cm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const L1=e=>e.__isSuspense,Gk={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,l,a,c,d){e==null?Jk(t,n,r,o,s,l,a,c,d):Yk(e,t,n,r,o,l,a,c,d)},hydrate:Zk,create:dm,normalize:Qk},Xk=Gk;function ua(e,t){const n=e.props&&e.props[t];et(n)&&n()}function Jk(e,t,n,r,o,s,l,a,c){const{p:d,o:{createElement:p}}=c,h=p("div"),g=e.suspense=dm(e,o,r,t,h,n,s,l,a,c);d(null,g.pendingBranch=e.ssContent,h,null,r,g,s,l),g.deps>0?(ua(e,"onPending"),ua(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,s,l),Us(g,e.ssFallback)):g.resolve()}function Yk(e,t,n,r,o,s,l,a,{p:c,um:d,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const g=t.ssContent,y=t.ssFallback,{activeBranch:_,pendingBranch:S,isInFallback:C,isHydrating:T}=h;if(S)h.pendingBranch=g,Xr(g,S)?(c(S,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():C&&(c(_,y,n,r,o,null,s,l,a),Us(h,y))):(h.pendingId++,T?(h.isHydrating=!1,h.activeBranch=S):d(S,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),C?(c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():(c(_,y,n,r,o,null,s,l,a),Us(h,y))):_&&Xr(g,_)?(c(_,g,n,r,o,h,s,l,a),h.resolve(!0)):(c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0&&h.resolve()));else if(_&&Xr(g,_))c(_,g,n,r,o,h,s,l,a),Us(h,g);else if(ua(t,"onPending"),h.pendingBranch=g,h.pendingId++,c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0)h.resolve();else{const{timeout:w,pendingId:E}=h;w>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},w):w===0&&h.fallback(y)}}function dm(e,t,n,r,o,s,l,a,c,d,p=!1){const{p:h,m:g,um:y,n:_,o:{parentNode:S,remove:C}}=d,T=e.props?KP(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof T=="number"?T:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:O,activeBranch:$,pendingBranch:P,pendingId:k,effects:I,parentComponent:H,container:D}=w;if(w.isHydrating)w.isHydrating=!1;else if(!E){const G=$&&P.transition&&P.transition.mode==="out-in";G&&($.transition.afterLeave=()=>{k===w.pendingId&&g(P,D,te,0)});let{anchor:te}=w;$&&(te=_($),y($,H,w,!0)),G||g(P,D,te,0)}Us(w,P),w.pendingBranch=null,w.isInFallback=!1;let F=w.parent,z=!1;for(;F;){if(F.pendingBranch){F.effects.push(...I),z=!0;break}F=F.parent}z||um(I),w.effects=[],ua(O,"onResolve")},fallback(E){if(!w.pendingBranch)return;const{vnode:O,activeBranch:$,parentComponent:P,container:k,isSVG:I}=w;ua(O,"onFallback");const H=_($),D=()=>{w.isInFallback&&(h(null,E,k,H,P,null,I,a,c),Us(w,E))},F=E.transition&&E.transition.mode==="out-in";F&&($.transition.afterLeave=D),w.isInFallback=!0,y($,P,null,!0),F||D()},move(E,O,$){w.activeBranch&&g(w.activeBranch,E,O,$),w.container=E},next(){return w.activeBranch&&_(w.activeBranch)},registerDep(E,O){const $=!!w.pendingBranch;$&&w.deps++;const P=E.vnode.el;E.asyncDep.catch(k=>{ds(k,E,0)}).then(k=>{if(E.isUnmounted||w.isUnmounted||w.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:I}=E;oh(E,k,!1),P&&(I.el=P);const H=!P&&E.subTree.el;O(E,I,S(P||E.subTree.el),P?null:_(E.subTree),w,l,c),H&&C(H),cm(E,I.el),$&&--w.deps===0&&w.resolve()})},unmount(E,O){w.isUnmounted=!0,w.activeBranch&&y(w.activeBranch,n,E,O),w.pendingBranch&&y(w.pendingBranch,n,E,O)}};return w}function Zk(e,t,n,r,o,s,l,a,c){const d=t.suspense=dm(t,r,n,e.parentNode,document.createElement("div"),null,o,s,l,a,!0),p=c(e,d.pendingBranch=t.ssContent,n,d,s,l);return d.deps===0&&d.resolve(),p}function Qk(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=ls&&e._c;n&&(e._d=!1,N()),e=e(),n&&(e._d=!0,t=Jn,uw())}return Je(e)&&(e=Wk(e)),e=hr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function N1(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):um(e)}function Us(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,cm(r,o))}function Zt(e,t){if(Jt){let n=Jt.provides;const r=Jt.parent&&Jt.parent.provides;r===n&&(n=Jt.provides=Object.create(r)),n[e]=t}}function kt(e,t,n=!1){const r=Jt||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 Ta(e,null,t)}function M1(e,t){return Ta(e,null,{flush:"post"})}function eR(e,t){return Ta(e,null,{flush:"sync"})}const Vu={};function Ft(e,t,n){return Ta(e,t,n)}function Ta(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:l}=Ut){const a=d1()===(Jt==null?void 0:Jt.scope)?Jt:null;let c,d=!1,p=!1;if(dn(e)?(c=()=>e.value,d=oa(e)):Ji(e)?(c=()=>e,r=!0):Je(e)?(p=!0,d=e.some(E=>Ji(E)||oa(E)),c=()=>e.map(E=>{if(dn(E))return E.value;if(Ji(E))return zi(E);if(et(E))return jo(E,a,2)})):et(e)?t?c=()=>jo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),vr(e,a,3,[g])}:c=go,t&&r){const E=c;c=()=>zi(E())}let h,g=E=>{h=T.onStop=()=>{jo(E,a,4)}},y;if(qs)if(g=go,t?n&&vr(t,a,3,[c(),p?[]:void 0,g]):c(),o==="sync"){const E=Ew();y=E.__watcherHandles||(E.__watcherHandles=[])}else return go;let _=p?new Array(e.length).fill(Vu):Vu;const S=()=>{if(T.active)if(t){const E=T.run();(r||d||(p?E.some((O,$)=>Ws(O,_[$])):Ws(E,_)))&&(h&&h(),vr(t,a,3,[E,_===Vu?void 0:p&&_[0]===Vu?[]:_,g]),_=E)}else T.run()};S.allowRecurse=!!t;let C;o==="sync"?C=S:o==="post"?C=()=>Sn(S,a&&a.suspense):(S.pre=!0,a&&(S.id=a.uid),C=()=>ld(S));const T=new Ca(c,C);t?n?S():_=T.run():o==="post"?Sn(T.run.bind(T),a&&a.suspense):T.run();const w=()=>{T.stop(),a&&a.scope&&Gh(a.scope.effects,T)};return y&&y.push(w),w}function tR(e,t,n){const r=this.proxy,o=on(e)?e.includes(".")?D1(r,e):()=>r[e]:e.bind(r,r);let s;et(t)?s=t:(s=t.handler,n=t);const l=Jt;bi(this);const a=Ta(o,s.bind(r),n);return l?bi(l):mi(),a}function D1(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(l1(e)||Fs(e))e.forEach(n=>{zi(n,t)});else if(u1(e))for(const n in e)zi(e[n],t);return e}function fm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vt(()=>{e.isMounted=!0}),fs(()=>{e.isUnmounting=!0}),e}const Pr=[Function,Array],nR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Pr,onEnter:Pr,onAfterEnter:Pr,onEnterCancelled:Pr,onBeforeLeave:Pr,onLeave:Pr,onAfterLeave:Pr,onLeaveCancelled:Pr,onBeforeAppear:Pr,onAppear:Pr,onAfterAppear:Pr,onAppearCancelled:Pr},setup(e,{slots:t}){const n=Go(),r=fm();let o;return()=>{const s=t.default&&cd(t.default(),!0);if(!s||!s.length)return;let l=s[0];if(s.length>1){for(const S of s)if(S.type!==Rn){l=S;break}}const a=Ue(e),{mode:c}=a;if(r.isLeaving)return pp(l);const d=Zy(l);if(!d)return pp(l);const p=zs(d,a,r,n);is(d,p);const h=n.subTree,g=h&&Zy(h);let y=!1;const{getTransitionKey:_}=d.type;if(_){const S=_();o===void 0?o=S:S!==o&&(o=S,y=!0)}if(g&&g.type!==Rn&&(!Xr(d,g)||y)){const S=zs(g,a,r,n);if(is(g,S),c==="out-in")return r.isLeaving=!0,S.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},pp(l);c==="in-out"&&d.type!==Rn&&(S.delayLeave=(C,T,w)=>{const E=F1(r,g);E[String(g.key)]=g,C._leaveCb=()=>{T(),C._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=w})}return l}}},pm=nR;function F1(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 zs(e,t,n,r){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:g,onAfterLeave:y,onLeaveCancelled:_,onBeforeAppear:S,onAppear:C,onAfterAppear:T,onAppearCancelled:w}=t,E=String(e.key),O=F1(n,e),$=(I,H)=>{I&&vr(I,r,9,H)},P=(I,H)=>{const D=H[1];$(I,H),Je(I)?I.every(F=>F.length<=1)&&D():I.length<=1&&D()},k={mode:s,persisted:l,beforeEnter(I){let H=a;if(!n.isMounted)if(o)H=S||a;else return;I._leaveCb&&I._leaveCb(!0);const D=O[E];D&&Xr(e,D)&&D.el._leaveCb&&D.el._leaveCb(),$(H,[I])},enter(I){let H=c,D=d,F=p;if(!n.isMounted)if(o)H=C||c,D=T||d,F=w||p;else return;let z=!1;const G=I._enterCb=te=>{z||(z=!0,te?$(F,[I]):$(D,[I]),k.delayedLeave&&k.delayedLeave(),I._enterCb=void 0)};H?P(H,[I,G]):G()},leave(I,H){const D=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return H();$(h,[I]);let F=!1;const z=I._leaveCb=G=>{F||(F=!0,H(),G?$(_,[I]):$(y,[I]),I._leaveCb=void 0,O[D]===e&&delete O[D])};O[D]=e,g?P(g,[I,z]):z()},clone(I){return zs(I,t,n,r)}};return k}function pp(e){if(Oa(e))return e=Br(e),e.children=null,e}function Zy(e){return Oa(e)?e.children?e.children[0]:void 0:e}function is(e,t){e.shapeFlag&6&&e.component?is(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 cd(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(cd(l.children,t,a))):(t||l.type!==Rn)&&r.push(a!=null?Br(l,{key:a}):l)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function ge(e){return et(e)?{setup:e,name:e.name}:e}const Yi=e=>!!e.type.__asyncLoader;function rR(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,d,p=0;const h=()=>(p++,c=null,g()),g=()=>{let y;return c||(y=c=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),a)return new Promise((S,C)=>{a(_,()=>S(h()),()=>C(_),p+1)});throw _}).then(_=>y!==c&&c?c:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),d=_,_)))};return ge({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return d},setup(){const y=Jt;if(d)return()=>hp(d,y);const _=w=>{c=null,ds(w,y,13,!r)};if(l&&y.suspense||qs)return g().then(w=>()=>hp(w,y)).catch(w=>(_(w),()=>r?q(r,{error:w}):null));const S=_e(!1),C=_e(),T=_e(!!o);return o&&setTimeout(()=>{T.value=!1},o),s!=null&&setTimeout(()=>{if(!S.value&&!C.value){const w=new Error(`Async component timed out after ${s}ms.`);_(w),C.value=w}},s),g().then(()=>{S.value=!0,y.parent&&Oa(y.parent.vnode)&&ld(y.parent.update)}).catch(w=>{_(w),C.value=w}),()=>{if(S.value&&d)return hp(d,y);if(C.value&&r)return q(r,{error:C.value});if(n&&!T.value)return q(n)}}})}function hp(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 Oa=e=>e.type.__isKeepAlive,oR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Go(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const o=new Map,s=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:d,um:p,o:{createElement:h}}}=r,g=h("div");r.activate=(w,E,O,$,P)=>{const k=w.component;d(w,E,O,0,a),c(k.vnode,w,E,O,k,a,$,w.slotScopeIds,P),Sn(()=>{k.isDeactivated=!1,k.a&&zl(k.a);const I=w.props&&w.props.onVnodeMounted;I&&Xn(I,k.parent,w)},a)},r.deactivate=w=>{const E=w.component;d(w,g,null,1,a),Sn(()=>{E.da&&zl(E.da);const O=w.props&&w.props.onVnodeUnmounted;O&&Xn(O,E.parent,w),E.isDeactivated=!0},a)};function y(w){mp(w),p(w,n,a,!0)}function _(w){o.forEach((E,O)=>{const $=sh(E.type);$&&(!w||!w($))&&S(O)})}function S(w){const E=o.get(w);!l||!Xr(E,l)?y(E):l&&mp(l),o.delete(w),s.delete(w)}Ft(()=>[e.include,e.exclude],([w,E])=>{w&&_(O=>Ul(w,O)),E&&_(O=>!Ul(E,O))},{flush:"post",deep:!0});let C=null;const T=()=>{C!=null&&o.set(C,gp(n.subTree))};return vt(T),fd(T),fs(()=>{o.forEach(w=>{const{subTree:E,suspense:O}=n,$=gp(E);if(w.type===$.type&&w.key===$.key){mp($);const P=$.component.da;P&&Sn(P,O);return}y(w)})}),()=>{if(C=null,!t.default)return null;const w=t.default(),E=w[0];if(w.length>1)return l=null,w;if(!yi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let O=gp(E);const $=O.type,P=sh(Yi(O)?O.type.__asyncResolved||{}:$),{include:k,exclude:I,max:H}=e;if(k&&(!P||!Ul(k,P))||I&&P&&Ul(I,P))return l=O,E;const D=O.key==null?$:O.key,F=o.get(D);return O.el&&(O=Br(O),E.shapeFlag&128&&(E.ssContent=O)),C=D,F?(O.el=F.el,O.component=F.component,O.transition&&is(O,O.transition),O.shapeFlag|=512,s.delete(D),s.add(D)):(s.add(D),H&&s.size>parseInt(H,10)&&S(s.values().next().value)),O.shapeFlag|=256,l=O,L1(E.type)?E:O}}},iR=oR;function Ul(e,t){return Je(e)?e.some(n=>Ul(n,t)):on(e)?e.split(",").includes(t):HP(e)?e.test(t):!1}function B1(e,t){j1(e,"a",t)}function U1(e,t){j1(e,"da",t)}function j1(e,t,n=Jt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(dd(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Oa(o.parent.vnode)&&sR(r,t,n,o),o=o.parent}}function sR(e,t,n,r){const o=dd(t,e,r,!0);Qt(()=>{Gh(r[t],o)},n)}function mp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function gp(e){return e.shapeFlag&128?e.ssContent:e}function dd(e,t,n=Jt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;al(),bi(n);const a=vr(t,n,e,l);return mi(),ul(),a});return r?o.unshift(s):o.push(s),s}}const Ko=e=>(t,n=Jt)=>(!qs||e==="sp")&&dd(e,(...r)=>t(...r),n),H1=Ko("bm"),vt=Ko("m"),V1=Ko("bu"),fd=Ko("u"),fs=Ko("bum"),Qt=Ko("um"),W1=Ko("sp"),z1=Ko("rtg"),q1=Ko("rtc");function K1(e,t=Jt){dd("ec",e,t)}function G1(e,t){const n=xn;if(n===null)return e;const r=hd(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,a,c,d=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:d}))}return e}function ho(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&&(al(),vr(c,n,8,[e.el,a,e,t]),ul())}}const hm="components",lR="directives";function J(e,t){return mm(hm,e,!0,t)||e}const X1=Symbol();function aR(e){return on(e)?mm(hm,e,!1)||e:e||X1}function uR(e){return mm(lR,e)}function mm(e,t,n=!0,r=!1){const o=xn||Jt;if(o){const s=o.type;if(e===hm){const a=sh(s,!1);if(a&&(a===t||a===Qr(t)||a===ed(Qr(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[Qr(t)]||e[ed(Qr(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 d=l[a];o[a]=t(e[d],d,a,s&&s[a])}}else o=[];return n&&(n[r]=o),o}function cR(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 _r(e,t,n={},r,o){if(xn.isCE||xn.parent&&Yi(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&&J1(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 J1(e){return e.some(t=>yi(t)?!(t.type===Rn||t.type===Fe&&!J1(t.children)):!0)?e:null}function dR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Wl(r)]=e[r];return n}const Yp=e=>e?mw(e)?hd(e)||e.proxy:Yp(e.parent):null,ql=$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=>Yp(e.parent),$root:e=>Yp(e.root),$emit:e=>e.emit,$options:e=>gm(e),$forceUpdate:e=>e.f||(e.f=()=>ld(e.update)),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>tR.bind(e)}),vp=(e,t)=>e!==Ut&&!e.__isScriptSetup&&_t(e,t),Zp={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:l,type:a,appContext:c}=e;let d;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(vp(r,t))return l[t]=1,r[t];if(o!==Ut&&_t(o,t))return l[t]=2,o[t];if((d=e.propsOptions[0])&&_t(d,t))return l[t]=3,s[t];if(n!==Ut&&_t(n,t))return l[t]=4,n[t];Qp&&(l[t]=0)}}const p=ql[t];let h,g;if(p)return t==="$attrs"&&rr(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(g=c.config.globalProperties,_t(g,t))return g[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return vp(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)||vp(t,l)||(a=s[0])&&_t(a,l)||_t(r,l)||_t(ql,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)}},fR=$n({},Zp,{get(e,t){if(t!==Symbol.unscopables)return Zp.get(e,t,e)},has(e,t){return t[0]!=="_"&&!RP(t)}});let Qp=!0;function pR(e){const t=gm(e),n=e.proxy,r=e.ctx;Qp=!1,t.beforeCreate&&eb(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:l,watch:a,provide:c,inject:d,created:p,beforeMount:h,mounted:g,beforeUpdate:y,updated:_,activated:S,deactivated:C,beforeDestroy:T,beforeUnmount:w,destroyed:E,unmounted:O,render:$,renderTracked:P,renderTriggered:k,errorCaptured:I,serverPrefetch:H,expose:D,inheritAttrs:F,components:z,directives:G,filters:te}=t;if(d&&hR(d,r,null,e.appContext.config.unwrapInjectedRef),l)for(const Ae in l){const Ie=l[Ae];et(Ie)&&(r[Ae]=Ie.bind(n))}if(o){const Ae=o.call(n,n);qt(Ae)&&(e.data=Ei(Ae))}if(Qp=!0,s)for(const Ae in s){const Ie=s[Ae],Ye=et(Ie)?Ie.bind(n,n):et(Ie.get)?Ie.get.bind(n,n):go,ft=!et(Ie)&&et(Ie.set)?Ie.set.bind(n):go,Le=ce({get:Ye,set:ft});Object.defineProperty(r,Ae,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Ge=>Le.value=Ge})}if(a)for(const Ae in a)Y1(a[Ae],r,n,Ae);if(c){const Ae=et(c)?c.call(n):c;Reflect.ownKeys(Ae).forEach(Ie=>{Zt(Ie,Ae[Ie])})}p&&eb(p,e,"c");function be(Ae,Ie){Je(Ie)?Ie.forEach(Ye=>Ae(Ye.bind(n))):Ie&&Ae(Ie.bind(n))}if(be(H1,h),be(vt,g),be(V1,y),be(fd,_),be(B1,S),be(U1,C),be(K1,I),be(q1,P),be(z1,k),be(fs,w),be(Qt,O),be(W1,H),Je(D))if(D.length){const Ae=e.exposed||(e.exposed={});D.forEach(Ie=>{Object.defineProperty(Ae,Ie,{get:()=>n[Ie],set:Ye=>n[Ie]=Ye})})}else e.exposed||(e.exposed={});$&&e.render===go&&(e.render=$),F!=null&&(e.inheritAttrs=F),z&&(e.components=z),G&&(e.directives=G)}function hR(e,t,n=go,r=!1){Je(e)&&(e=eh(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){vr(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Y1(e,t,n,r){const o=r.includes(".")?D1(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=>Y1(s,t,n,r));else{const s=et(e.handler)?e.handler.bind(n):t[e.handler];et(s)&&Ft(o,s,e)}}function gm(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(d=>_c(c,d,l,!0)),_c(c,t,l)),qt(t)&&s.set(t,c),c}function _c(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&_c(e,s,n,!0),o&&o.forEach(l=>_c(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=mR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const mR={data:tb,props:ji,emits:ji,methods:ji,computed:ji,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:ji,directives:ji,watch:vR,provide:tb,inject:gR};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 gR(e,t){return ji(eh(e),eh(t))}function eh(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 ji(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 yR(e,t,n,r=!1){const o={},s={};vc(s,pd,1),e.propsDefaults=Object.create(null),Z1(e,t,o,s);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:$1(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function bR(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:l}}=e,a=Ue(o),[c]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let g=p[h];if(ad(e.emitsOptions,g))continue;const y=t[g];if(c)if(_t(s,g))y!==s[g]&&(s[g]=y,d=!0);else{const _=Qr(g);o[_]=th(c,a,_,y,e,!1)}else y!==s[g]&&(s[g]=y,d=!0)}}}else{Z1(e,t,o,s)&&(d=!0);let p;for(const h in a)(!t||!_t(t,h)&&((p=Qc(h))===h||!_t(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=th(c,a,h,void 0,e,!0)):delete o[h]);if(s!==a)for(const h in s)(!t||!_t(t,h))&&(delete s[h],d=!0)}d&&Wo(e,"set","$attrs")}function Z1(e,t,n,r){const[o,s]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(Vl(c))continue;const d=t[c];let p;o&&_t(o,p=Qr(c))?!s||!s.includes(p)?n[p]=d:(a||(a={}))[p]=d:ad(e.emitsOptions,c)||(!(c in r)||d!==r[c])&&(r[c]=d,l=!0)}if(s){const c=Ue(n),d=a||Ut;for(let p=0;p<s.length;p++){const h=s[p];n[h]=th(o,c,h,d[h],e,!_t(d,h))}}return l}function th(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:d}=o;n in d?r=d[n]:(bi(o),r=d[n]=c.call(null,t),mi())}else r=c}l[0]&&(s&&!a?r=!1:l[1]&&(r===""||r===Qc(n))&&(r=!0))}return r}function Q1(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[g,y]=Q1(h,t,!0);$n(l,g),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,Ds),Ds;if(Je(s))for(let p=0;p<s.length;p++){const h=Qr(s[p]);nb(h)&&(l[h]=Ut)}else if(s)for(const p in s){const h=Qr(p);if(nb(h)){const g=s[p],y=l[h]=Je(g)||et(g)?{type:g}:Object.assign({},g);if(y){const _=ib(Boolean,y.type),S=ib(String,y.type);y[0]=_>-1,y[1]=S<0||_<S,(_>-1||_t(y,"default"))&&a.push(h)}}}const d=[l,a];return qt(e)&&r.set(e,d),d}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",vm=e=>Je(e)?e.map(hr):[hr(e)],_R=(e,t,n)=>{if(t._n)return t;const r=ye((...o)=>vm(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]=_R(o,s,r);else if(s!=null){const l=vm(s);t[o]=()=>l}}},nw=(e,t)=>{const n=vm(t);e.slots.default=()=>n},wR=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ue(t),vc(t,"_",n)):tw(t,e.slots={})}else e.slots={},t&&nw(e,t);vc(e.slots,pd,1)},SR=(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:BP,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 ER=0;function xR(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:ER++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:$w,get config(){return s.config},set config(d){},use(d,...p){return l.has(d)||(d&&et(d.install)?(l.add(d),d.install(c,...p)):et(d)&&(l.add(d),d(c,...p))),c},mixin(d){return s.mixins.includes(d)||s.mixins.push(d),c},component(d,p){return p?(s.components[d]=p,c):s.components[d]},directive(d,p){return p?(s.directives[d]=p,c):s.directives[d]},mount(d,p,h){if(!a){const g=q(r,o);return g.appContext=s,p&&t?t(g,d):e(g,d,h),a=!0,c._container=d,d.__vue_app__=c,hd(g.component)||g.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(d,p){return s.provides[d]=p,c}};return c}}function wc(e,t,n,r,o=!1){if(Je(e)){e.forEach((g,y)=>wc(g,t&&(Je(t)?t[y]:t),n,r,o));return}if(Yi(r)&&!o)return;const s=r.shapeFlag&4?hd(r.component)||r.component.proxy:r.el,l=o?null:s,{i:a,r:c}=e,d=t&&t.r,p=a.refs===Ut?a.refs={}:a.refs,h=a.setupState;if(d!=null&&d!==c&&(on(d)?(p[d]=null,_t(h,d)&&(h[d]=null)):dn(d)&&(d.value=null)),et(c))jo(c,a,12,[l,p]);else{const g=on(c),y=dn(c);if(g||y){const _=()=>{if(e.f){const S=g?_t(h,c)?h[c]:p[c]:c.value;o?Je(S)&&Gh(S,s):Je(S)?S.includes(s)||S.push(s):g?(p[c]=[s],_t(h,c)&&(h[c]=p[c])):(c.value=[s],e.k&&(p[e.k]=c.value))}else g?(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 si=!1;const Wu=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",zu=e=>e.nodeType===8;function $R(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:l,remove:a,insert:c,createComment:d}}=e,p=(T,w)=>{if(!w.hasChildNodes()){n(null,T,w),bc(),w._vnode=T;return}si=!1,h(w.firstChild,T,null,null,null),bc(),w._vnode=T,si&&console.error("Hydration completed but contains mismatches.")},h=(T,w,E,O,$,P=!1)=>{const k=zu(T)&&T.data==="[",I=()=>S(T,w,E,O,$,k),{type:H,ref:D,shapeFlag:F,patchFlag:z}=w;let G=T.nodeType;w.el=T,z===-2&&(P=!1,w.dynamicChildren=null);let te=null;switch(H){case ss:G!==3?w.children===""?(c(w.el=o(""),l(T),T),te=T):te=I():(T.data!==w.children&&(si=!0,T.data=w.children),te=s(T));break;case Rn:G!==8||k?te=I():te=s(T);break;case Zi:if(k&&(T=s(T),G=T.nodeType),G===1||G===3){te=T;const we=!w.children.length;for(let be=0;be<w.staticCount;be++)we&&(w.children+=te.nodeType===1?te.outerHTML:te.data),be===w.staticCount-1&&(w.anchor=te),te=s(te);return k?s(te):te}else I();break;case Fe:k?te=_(T,w,E,O,$,P):te=I();break;default:if(F&1)G!==1||w.type.toLowerCase()!==T.tagName.toLowerCase()?te=I():te=g(T,w,E,O,$,P);else if(F&6){w.slotScopeIds=$;const we=l(T);if(t(w,we,null,E,O,Wu(we),P),te=k?C(T):s(T),te&&zu(te)&&te.data==="teleport end"&&(te=s(te)),Yi(w)){let be;k?(be=q(Fe),be.anchor=te?te.previousSibling:we.lastChild):be=T.nodeType===3?Xe(""):q("div"),be.el=T,w.component.subTree=be}}else F&64?G!==8?te=I():te=w.type.hydrate(T,w,E,O,$,P,e,y):F&128&&(te=w.type.hydrate(T,w,E,O,Wu(l(T)),$,P,e,h))}return D!=null&&wc(D,null,O,w),te},g=(T,w,E,O,$,P)=>{P=P||!!w.dynamicChildren;const{type:k,props:I,patchFlag:H,shapeFlag:D,dirs:F}=w,z=k==="input"&&F||k==="option";if(z||H!==-1){if(F&&ho(w,null,E,"created"),I)if(z||!P||H&48)for(const te in I)(z&&te.endsWith("value")||Yc(te)&&!Vl(te))&&r(T,te,null,I[te],!1,void 0,E);else I.onClick&&r(T,"onClick",null,I.onClick,!1,void 0,E);let G;if((G=I&&I.onVnodeBeforeMount)&&Xn(G,E,w),F&&ho(w,null,E,"beforeMount"),((G=I&&I.onVnodeMounted)||F)&&N1(()=>{G&&Xn(G,E,w),F&&ho(w,null,E,"mounted")},O),D&16&&!(I&&(I.innerHTML||I.textContent))){let te=y(T.firstChild,w,T,E,O,$,P);for(;te;){si=!0;const we=te;te=te.nextSibling,a(we)}}else D&8&&T.textContent!==w.children&&(si=!0,T.textContent=w.children)}return T.nextSibling},y=(T,w,E,O,$,P,k)=>{k=k||!!w.dynamicChildren;const I=w.children,H=I.length;for(let D=0;D<H;D++){const F=k?I[D]:I[D]=hr(I[D]);if(T)T=h(T,F,O,$,P,k);else{if(F.type===ss&&!F.children)continue;si=!0,n(null,F,E,null,O,$,Wu(E),P)}}return T},_=(T,w,E,O,$,P)=>{const{slotScopeIds:k}=w;k&&($=$?$.concat(k):k);const I=l(T),H=y(s(T),w,I,E,O,$,P);return H&&zu(H)&&H.data==="]"?s(w.anchor=H):(si=!0,c(w.anchor=d("]"),I,H),H)},S=(T,w,E,O,$,P)=>{if(si=!0,w.el=null,P){const H=C(T);for(;;){const D=s(T);if(D&&D!==H)a(D);else break}}const k=s(T),I=l(T);return a(T),n(null,w,I,k,E,O,Wu(I),$),k},C=T=>{let w=0;for(;T;)if(T=s(T),T&&zu(T)&&(T.data==="["&&w++,T.data==="]")){if(w===0)return s(T);w--}return T};return[p,h]}const Sn=N1;function ow(e){return sw(e)}function iw(e){return sw(e,$R)}function sw(e,t){const n=GP();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:l,createText:a,createComment:c,setText:d,setElementText:p,parentNode:h,nextSibling:g,setScopeId:y=go,insertStaticContent:_}=e,S=(L,B,Z,le=null,ie=null,pe=null,$e=!1,he=null,me=!!B.dynamicChildren)=>{if(L===B)return;L&&!Xr(L,B)&&(le=He(L),Ge(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 ss:C(L,B,Z,le);break;case Rn:T(L,B,Z,le);break;case Zi:L==null&&w(B,Z,le,$e);break;case Fe:z(L,B,Z,le,ie,pe,$e,he,me);break;default:Pe&1?$(L,B,Z,le,ie,pe,$e,he,me):Pe&6?G(L,B,Z,le,ie,pe,$e,he,me):(Pe&64||Pe&128)&&se.process(L,B,Z,le,ie,pe,$e,he,me,tt)}Re!=null&&ie&&wc(Re,L&&L.ref,pe,B||L,!B)},C=(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&&d(ie,B.children)}},T=(L,B,Z,le)=>{L==null?r(B.el=c(B.children||""),Z,le):B.el=L.el},w=(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=g(L),r(L,Z,le),L=ie;r(B,Z,le)},O=({el:L,anchor:B})=>{let Z;for(;L&&L!==B;)Z=g(L),o(L),L=Z;o(B)},$=(L,B,Z,le,ie,pe,$e,he,me)=>{$e=$e||B.type==="svg",L==null?P(B,Z,le,ie,pe,$e,he,me):H(L,B,ie,pe,$e,he,me)},P=(L,B,Z,le,ie,pe,$e,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&&I(L.children,me,null,le,ie,pe&&Re!=="foreignObject",$e,he),rt&&ho(L,null,le,"created"),k(me,L,L.scopeId,$e,le),Pe){for(const ct in Pe)ct!=="value"&&!Vl(ct)&&s(me,ct,null,Pe[ct],pe,L.children,le,ie,xe);"value"in Pe&&s(me,"value",null,Pe.value),(se=Pe.onVnodeBeforeMount)&&Xn(se,le,L)}rt&&ho(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&&ho(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 $e=ie.vnode;k(L,$e,$e.scopeId,$e.slotScopeIds,ie.parent)}}},I=(L,B,Z,le,ie,pe,$e,he,me=0)=>{for(let se=me;se<L.length;se++){const Re=L[se]=he?ci(L[se]):hr(L[se]);S(null,Re,B,Z,le,ie,pe,$e,he)}},H=(L,B,Z,le,ie,pe,$e)=>{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&&Di(Z,!1),(je=Me.onVnodeBeforeUpdate)&&Xn(je,Z,B,L),Re&&ho(B,L,Z,"beforeUpdate"),Z&&Di(Z,!0);const rt=ie&&B.type!=="foreignObject";if(se?D(L.dynamicChildren,se,he,Z,le,rt,pe):$e||Ie(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],ao=Me[Ht];(ao!==Mn||Ht==="value")&&s(he,Ht,Mn,ao,ie,L.children,Z,le,xe)}}me&1&&L.children!==B.children&&p(he,B.children)}else!$e&&se==null&&F(he,B,Pe,Me,Z,le,ie);((je=Me.onVnodeUpdated)||Re)&&Sn(()=>{je&&Xn(je,Z,B,L),Re&&ho(B,L,Z,"updated")},le)},D=(L,B,Z,le,ie,pe,$e)=>{for(let he=0;he<B.length;he++){const me=L[he],se=B[he],Re=me.el&&(me.type===Fe||!Xr(me,se)||me.shapeFlag&70)?h(me.el):Z;S(me,se,Re,null,le,ie,pe,$e,!0)}},F=(L,B,Z,le,ie,pe,$e)=>{if(Z!==le){if(Z!==Ut)for(const he in Z)!Vl(he)&&!(he in le)&&s(L,he,Z[he],null,$e,B.children,ie,pe,xe);for(const he in le){if(Vl(he))continue;const me=le[he],se=Z[he];me!==se&&he!=="value"&&s(L,he,se,me,$e,B.children,ie,pe,xe)}"value"in le&&s(L,"value",Z.value,le.value)}},z=(L,B,Z,le,ie,pe,$e,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),I(B.children,Z,Re,ie,pe,$e,he,me)):Pe>0&&Pe&64&&Me&&L.dynamicChildren?(D(L.dynamicChildren,Me,Z,ie,pe,$e,he),(B.key!=null||ie&&B===ie.subTree)&&ym(L,B,!0)):Ie(L,B,Z,Re,ie,pe,$e,he,me)},G=(L,B,Z,le,ie,pe,$e,he,me)=>{B.slotScopeIds=he,L==null?B.shapeFlag&512?ie.ctx.activate(B,Z,le,$e,me):te(B,Z,le,ie,pe,$e,me):we(L,B,me)},te=(L,B,Z,le,ie,pe,$e)=>{const he=L.component=hw(L,le,ie);if(Oa(L)&&(he.ctx.renderer=tt),gw(he),he.asyncDep){if(ie&&ie.registerDep(he,be),!L.el){const me=he.subTree=q(Rn);T(null,me,B,Z)}return}be(he,L,B,Z,ie,pe,$e)},we=(L,B,Z)=>{const le=B.component=L.component;if(Kk(L,B,Z))if(le.asyncDep&&!le.asyncResolved){Ae(le,B,Z);return}else le.next=B,Fk(le.update),le.update();else B.el=L.el,le.vnode=B},be=(L,B,Z,le,ie,pe,$e)=>{const he=()=>{if(L.isMounted){let{next:Re,bu:Pe,u:Me,parent:je,vnode:rt}=L,mt=Re,ct;Di(L,!1),Re?(Re.el=rt.el,Ae(L,Re,$e)):Re=rt,Pe&&zl(Pe),(ct=Re.props&&Re.props.onVnodeBeforeUpdate)&&Xn(ct,je,Re,rt),Di(L,!0);const Ht=oc(L),Mn=L.subTree;L.subTree=Ht,S(Mn,Ht,h(Mn.el),He(Mn),L,ie,pe),Re.el=Ht.el,mt===null&&cm(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=Yi(B);if(Di(L,!1),je&&zl(je),!ct&&(Re=Me&&Me.onVnodeBeforeMount)&&Xn(Re,mt,B),Di(L,!0),Pe&&ln){const Ht=()=>{L.subTree=oc(L),ln(Pe,L.subTree,L,ie,null)};ct?B.type.__asyncLoader().then(()=>!L.isUnmounted&&Ht()):Ht()}else{const Ht=L.subTree=oc(L);S(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&&Yi(mt.vnode)&&mt.vnode.shapeFlag&256)&&L.a&&Sn(L.a,ie),L.isMounted=!0,B=Z=le=null}},me=L.effect=new Ca(he,()=>ld(se),L.scope),se=L.update=()=>me.run();se.id=L.uid,Di(L,!0),se()},Ae=(L,B,Z)=>{B.component=L;const le=L.vnode.props;L.vnode=B,L.next=null,bR(L,B.props,le,Z),SR(L,B.children,Z),al(),Xy(),ul()},Ie=(L,B,Z,le,ie,pe,$e,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,$e,he,me);return}else if(Me&256){Ye(se,Pe,Z,le,ie,pe,$e,he,me);return}}je&8?(Re&16&&xe(se,ie,pe),Pe!==se&&p(Z,Pe)):Re&16?je&16?ft(se,Pe,Z,le,ie,pe,$e,he,me):xe(se,ie,pe,!0):(Re&8&&p(Z,""),je&16&&I(Pe,Z,le,ie,pe,$e,he,me))},Ye=(L,B,Z,le,ie,pe,$e,he,me)=>{L=L||Ds,B=B||Ds;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?ci(B[Me]):hr(B[Me]);S(L[Me],je,Z,null,ie,pe,$e,he,me)}se>Re?xe(L,ie,pe,!0,!1,Pe):I(B,Z,le,ie,pe,$e,he,me,Pe)},ft=(L,B,Z,le,ie,pe,$e,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?ci(B[se]):hr(B[se]);if(Xr(je,rt))S(je,rt,Z,null,ie,pe,$e,he,me);else break;se++}for(;se<=Pe&&se<=Me;){const je=L[Pe],rt=B[Me]=me?ci(B[Me]):hr(B[Me]);if(Xr(je,rt))S(je,rt,Z,null,ie,pe,$e,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;)S(null,B[se]=me?ci(B[se]):hr(B[se]),Z,rt,ie,pe,$e,he,me),se++}}else if(se>Me)for(;se<=Pe;)Ge(L[se],ie,pe,!0),se++;else{const je=se,rt=se,mt=new Map;for(se=rt;se<=Me;se++){const vn=B[se]=me?ci(B[se]):hr(B[se]);vn.key!=null&&mt.set(vn.key,se)}let ct,Ht=0;const Mn=Me-rt+1;let ao=!1,vs=0;const $o=new Array(Mn);for(se=0;se<Mn;se++)$o[se]=0;for(se=je;se<=Pe;se++){const vn=L[se];if(Ht>=Mn){Ge(vn,ie,pe,!0);continue}let Wn;if(vn.key!=null)Wn=mt.get(vn.key);else for(ct=rt;ct<=Me;ct++)if($o[ct-rt]===0&&Xr(vn,B[ct])){Wn=ct;break}Wn===void 0?Ge(vn,ie,pe,!0):($o[Wn-rt]=se+1,Wn>=vs?vs=Wn:ao=!0,S(vn,B[Wn],Z,null,ie,pe,$e,he,me),Ht++)}const ys=ao?CR($o):Ds;for(ct=ys.length-1,se=Mn-1;se>=0;se--){const vn=rt+se,Wn=B[vn],bs=vn+1<Re?B[vn+1].el:le;$o[se]===0?S(null,Wn,Z,bs,ie,pe,$e,he,me):ao&&(ct<0||se!==ys[ct]?Le(Wn,Z,bs,2):ct--)}}},Le=(L,B,Z,le,ie=null)=>{const{el:pe,type:$e,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){$e.move(L,B,Z,tt);return}if($e===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($e===Zi){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)},Ge=(L,B,Z,le=!1,ie=!1)=>{const{type:pe,props:$e,ref:he,children:me,dynamicChildren:se,shapeFlag:Re,patchFlag:Pe,dirs:Me}=L;if(he!=null&&wc(he,null,Z,L,!0),Re&256){B.ctx.deactivate(L);return}const je=Re&1&&Me,rt=!Yi(L);let mt;if(rt&&(mt=$e&&$e.onVnodeBeforeUnmount)&&Xn(mt,B,L),Re&6)fe(L.component,Z,le);else{if(Re&128){L.suspense.unmount(Z,le);return}je&&ho(L,null,B,"beforeUnmount"),Re&64?L.type.remove(L,B,Z,ie,tt,le):se&&(pe!==Fe||Pe>0&&Pe&64)?xe(se,B,Z,!1,!0):(pe===Fe&&Pe&384||!ie&&Re&16)&&xe(me,B,Z),le&&Q(L)}(rt&&(mt=$e&&$e.onVnodeUnmounted)||je)&&Sn(()=>{mt&&Xn(mt,B,L),je&&ho(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===Zi){O(L);return}const pe=()=>{o(Z),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(L.shapeFlag&1&&ie&&!ie.persisted){const{leave:$e,delayLeave:he}=ie,me=()=>$e(Z,pe);he?he(L.el,pe,me):me()}else pe()},ae=(L,B)=>{let Z;for(;L!==B;)Z=g(L),o(L),L=Z;o(B)},fe=(L,B,Z)=>{const{bum:le,scope:ie,update:pe,subTree:$e,um:he}=L;le&&zl(le),ie.stop(),pe&&(pe.active=!1,Ge($e,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())},xe=(L,B,Z,le=!1,ie=!1,pe=0)=>{for(let $e=pe;$e<L.length;$e++)Ge(L[$e],B,Z,le,ie)},He=L=>L.shapeFlag&6?He(L.component.subTree):L.shapeFlag&128?L.suspense.next():g(L.anchor||L.el),De=(L,B,Z)=>{L==null?B._vnode&&Ge(B._vnode,null,null,!0):S(B._vnode||null,L,B,null,null,null,Z),Xy(),bc(),B._vnode=L},tt={p:S,um:Ge,m:Le,r:Q,mt:te,mc:I,pc:Ie,pbc:D,n:He,o:e};let gn,ln;return t&&([gn,ln]=t(tt)),{render:De,hydrate:gn,createApp:xR(De,gn)}}function Di({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ym(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]=ci(o[s]),a.el=l.el),n||ym(l,a)),a.type===ss&&(a.el=l.el)}}function CR(e){const t=e.slice(),n=[0];let r,o,s,l,a;const c=e.length;for(r=0;r<c;r++){const d=e[r];if(d!==0){if(o=n[n.length-1],e[o]<d){t[r]=o,n.push(r);continue}for(s=0,l=n.length-1;s<l;)a=s+l>>1,e[n[a]]<d?s=a+1:l=a;d<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 TR=e=>e.__isTeleport,Kl=e=>e&&(e.disabled||e.disabled===""),sb=e=>typeof SVGElement<"u"&&e instanceof SVGElement,nh=(e,t)=>{const n=e&&e.to;return on(n)?t?t(n):null:n},OR={__isTeleport:!0,process(e,t,n,r,o,s,l,a,c,d){const{mc:p,pc:h,pbc:g,o:{insert:y,querySelector:_,createText:S,createComment:C}}=d,T=Kl(t.props);let{shapeFlag:w,children:E,dynamicChildren:O}=t;if(e==null){const $=t.el=S(""),P=t.anchor=S("");y($,n,r),y(P,n,r);const k=t.target=nh(t.props,_),I=t.targetAnchor=S("");k&&(y(I,k),l=l||sb(k));const H=(D,F)=>{w&16&&p(E,D,F,o,s,l,a,c)};T?H(n,P):k&&H(k,I)}else{t.el=e.el;const $=t.anchor=e.anchor,P=t.target=e.target,k=t.targetAnchor=e.targetAnchor,I=Kl(e.props),H=I?n:P,D=I?$:k;if(l=l||sb(P),O?(g(e.dynamicChildren,O,H,o,s,l,a),ym(e,t,!0)):c||h(e,t,H,D,o,s,l,a,!1),T)I||qu(t,n,$,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=nh(t.props,_);F&&qu(t,F,null,d,0)}else I&&qu(t,P,k,d,1)}aw(t)},remove(e,t,n,r,{um:o,o:{remove:s}},l){const{shapeFlag:a,children:c,anchor:d,targetAnchor:p,target:h,props:g}=e;if(h&&s(p),(l||!Kl(g))&&(s(d),a&16))for(let y=0;y<c.length;y++){const _=c[y];o(_,t,n,!0,!!_.dynamicChildren)}},move:qu,hydrate:AR};function qu(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:d,props:p}=e,h=s===2;if(h&&r(l,t,n),(!h||Kl(p))&&c&16)for(let g=0;g<d.length;g++)o(d[g],t,n,2);h&&r(a,t,n)}function AR(e,t,n,r,o,s,{o:{nextSibling:l,parentNode:a,querySelector:c}},d){const p=t.target=nh(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Kl(t.props))t.anchor=d(l(e),t,a(e),n,r,o,s),t.targetAnchor=h;else{t.anchor=l(e);let g=h;for(;g;)if(g=l(g),g&&g.nodeType===8&&g.data==="teleport anchor"){t.targetAnchor=g,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}d(h,t,p,n,r,o,s)}aw(t)}return t.anchor&&l(t.anchor)}const lw=OR;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),ss=Symbol(void 0),Rn=Symbol(void 0),Zi=Symbol(void 0),Gl=[];let Jn=null;function N(e=!1){Gl.push(Jn=e?null:[])}function uw(){Gl.pop(),Jn=Gl[Gl.length-1]||null}let ls=1;function rh(e){ls+=e}function cw(e){return e.dynamicChildren=ls>0?Jn||Ds:null,uw(),ls>0&&Jn&&Jn.push(e),e}function V(e,t,n,r,o,s){return cw(v(e,t,n,r,o,s,!0))}function bt(e,t,n,r,o){return cw(q(e,t,n,r,o,!0))}function yi(e){return e?e.__v_isVNode===!0:!1}function Xr(e,t){return e.type===t.type&&e.key===t.key}function IR(e){}const pd="__vInternal",dw=({key:e})=>e??null,ic=({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 v(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&&ic(t),scopeId:ud,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?(bm(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=on(n)?8:16),ls>0&&!l&&Jn&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&Jn.push(c),c}const q=PR;function PR(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===X1)&&(e=Rn),yi(e)){const a=Br(e,t,!0);return n&&bm(a,n),ls>0&&!s&&Jn&&(a.shapeFlag&6?Jn[Jn.indexOf(e)]=a:Jn.push(a)),a.patchFlag|=-2,a}if(FR(e)&&(e=e.__vccOpts),t){t=fw(t);let{class:a,style:c}=t;a&&!on(a)&&(t.class=St(a)),qt(c)&&(nm(c)&&!Je(c)&&(c=$n({},c)),t.style=cs(c))}const l=on(e)?1:L1(e)?128:TR(e)?64:qt(e)?4:et(e)?2:0;return v(e,t,n,r,o,l,s,!0)}function fw(e){return e?nm(e)||pd in e?$n({},e):e:null}function Br(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(ic(t)):[o,ic(t)]:ic(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&&Br(e.ssContent),ssFallback:e.ssFallback&&Br(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xe(e=" ",t=0){return q(ss,null,e,t)}function kR(e,t){const n=q(Zi,null,e);return n.staticCount=t,n}function Ke(e="",t=!1){return t?(N(),bt(Rn,null,e)):q(Rn,null,e)}function hr(e){return e==null||typeof e=="boolean"?q(Rn):Je(e)?q(Fe,null,e.slice()):typeof e=="object"?ci(e):q(ss,null,String(e))}function ci(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Br(e)}function bm(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),bm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(pd 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=St([t.class,r.class]));else if(o==="style")t.style=cs([t.style,r.style]);else if(Yc(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){vr(e,t,7,[n,r])}const RR=rw();let LR=0;function hw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||RR,s={uid:LR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Zh(!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:Q1(r,o),emitsOptions:R1(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=Uk.bind(null,s),e.ce&&e.ce(s),s}let Jt=null;const Go=()=>Jt||xn,bi=e=>{Jt=e,e.scope.on()},mi=()=>{Jt&&Jt.scope.off(),Jt=null};function mw(e){return e.vnode.shapeFlag&4}let qs=!1;function gw(e,t=!1){qs=t;const{props:n,children:r}=e.vnode,o=mw(e);yR(e,n,o,t),wR(e,r);const s=o?NR(e,t):void 0;return qs=!1,s}function NR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rm(new Proxy(e.ctx,Zp));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?bw(e):null;bi(e),al();const s=jo(r,e,0,[e.props,o]);if(ul(),mi(),Jh(s)){if(s.then(mi,mi),t)return s.then(l=>{oh(e,l,t)}).catch(l=>{ds(l,e,0)});e.asyncDep=s}else oh(e,s,t)}else yw(e,t)}function oh(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qt(t)&&(e.setupState=sm(t)),yw(e,n)}let Sc,ih;function vw(e){Sc=e,ih=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,fR))}}const MR=()=>!Sc;function yw(e,t,n){const r=e.type;if(!e.render){if(!t&&Sc&&!r.render){const o=r.template||gm(e).template;if(o){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,d=$n($n({isCustomElement:s,delimiters:a},l),c);r.render=Sc(o,d)}}e.render=r.render||go,ih&&ih(e)}bi(e),al(),pR(e),ul(),mi()}function DR(e){return new Proxy(e.attrs,{get(t,n){return rr(e,"get","$attrs"),t[n]}})}function bw(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=DR(e))},slots:e.slots,emit:e.emit,expose:t}}function hd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sm(rm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ql)return ql[n](e)},has(t,n){return n in t||n in ql}}))}function sh(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function FR(e){return et(e)&&"__vccOpts"in e}const ce=(e,t)=>Rk(e,t,qs);function BR(){return null}function UR(){return null}function jR(e){}function HR(e,t){return null}function _w(){return ww().slots}function VR(){return ww().attrs}function ww(){const e=Go();return e.setupContext||(e.setupContext=bw(e))}function WR(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 zR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function qR(e){const t=Go();let n=e();return mi(),Jh(n)&&(n=n.catch(r=>{throw bi(t),r})),[n,()=>bi(t)]}function dt(e,t,n){const r=arguments.length;return r===2?qt(t)&&!Je(t)?yi(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&yi(n)&&(n=[n]),q(e,t,n))}const Sw=Symbol(""),Ew=()=>kt(Sw);function KR(){}function GR(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(Ws(n[r],t[r]))return!1;return ls>0&&Jn&&Jn.push(e),!0}const $w="3.2.47",XR={createComponentInstance:hw,setupComponent:gw,renderComponentRoot:oc,setCurrentRenderingInstance:aa,isVNode:yi,normalizeVNode:hr},JR=XR,YR=null,ZR=null;function QR(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const e4="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",t4=QR(e4);function Cw(e){return!!e||e===""}function n4(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=_i(e[r],t[r]);return n}function _i(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=or(e),r=or(t),n||r)return n&&r?n4(e,t):!1;if(n=lh(e),r=lh(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||!_i(e[l],t[l]))return!1}}return String(e)===String(t)}function md(e,t){return e.findIndex(n=>_i(n,t))}const yp={},r4=/^on[^a-z]/,o4=e=>r4.test(e),i4=e=>e.startsWith("onUpdate:"),Aa=Object.assign,or=Array.isArray,Ia=e=>Ow(e)==="[object Set]",lb=e=>Ow(e)==="[object Date]",Tw=e=>typeof e=="function",ca=e=>typeof e=="string",ab=e=>typeof e=="symbol",lh=e=>e!==null&&typeof e=="object",s4=Object.prototype.toString,Ow=e=>s4.call(e),_m=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},l4=/-(\w)/g,bp=_m(e=>e.replace(l4,(t,n)=>n?n.toUpperCase():"")),a4=/\B([A-Z])/g,di=_m(e=>e.replace(a4,"-$1").toLowerCase()),u4=_m(e=>e.charAt(0).toUpperCase()+e.slice(1)),c4=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ah=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uh=e=>{const t=ca(e)?Number(e):NaN;return isNaN(t)?e:t},d4="http://www.w3.org/2000/svg",Vi=typeof document<"u"?document:null,ub=Vi&&Vi.createElement("template"),f4={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(d4,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 p4(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 h4(e,t,n){const r=e.style,o=ca(n);if(n&&!o){if(t&&!ca(t))for(const s in t)n[s]==null&&ch(r,s,"");for(const s in n)ch(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 ch(e,t,n){if(or(n))n.forEach(r=>ch(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=m4(e,t);cb.test(n)?e.setProperty(di(r),n.replace(cb,""),"important"):e[r]=n}}const db=["Webkit","Moz","ms"],_p={};function m4(e,t){const n=_p[t];if(n)return n;let r=Qr(t);if(r!=="filter"&&r in e)return _p[t]=r;r=u4(r);for(let o=0;o<db.length;o++){const s=db[o]+r;if(s in e)return _p[t]=s}return t}const fb="http://www.w3.org/1999/xlink";function g4(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=t4(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??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=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 Fo(e,t,n,r){e.addEventListener(t,n,r)}function y4(e,t,n,r){e.removeEventListener(t,n,r)}function b4(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]=_4(t);if(r){const d=s[t]=E4(r,o);Fo(e,a,d,c)}else l&&(y4(e,a,l,c),s[t]=void 0)}}const pb=/(?:Once|Passive|Capture)$/;function _4(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):di(e.slice(2)),t]}let wp=0;const w4=Promise.resolve(),S4=()=>wp||(w4.then(()=>wp=0),wp=Date.now());function E4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;vr(x4(r,n.value),t,5,[r])};return n.value=e,n.attached=S4(),n}function x4(e,t){if(or(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]/,$4=(e,t,n,r,o=!1,s,l,a,c)=>{t==="class"?p4(e,r,o):t==="style"?h4(e,n,r):o4(t)?i4(t)||b4(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):C4(e,t,r,o))?v4(e,t,r,s,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),g4(e,t,r,o))};function C4(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)&&ca(n)?!1:t in e}function Aw(e,t){const n=ge(e);class r extends gd{constructor(s){super(n,s,t)}}return r.def=n,r}const T4=e=>Aw(e,qw),O4=typeof HTMLElement<"u"?HTMLElement:class{};class gd extends O4{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||(ph(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&&!or(s))for(const c in s){const d=s[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=uh(this._props[c])),(a||(a=Object.create(null)))[bp(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=or(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(bp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(s){this._setProp(o,s)}})}_setAttr(t){let n=this.getAttribute(t);const r=bp(t);this._numberProps&&this._numberProps[r]&&(n=uh(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(di(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(di(t),n+""):n||this.removeAttribute(di(t))))}_update(){ph(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,Aa({},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),di(s)!==s&&r(di(s),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof gd){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 A4(e="$style"){{const t=Go();if(!t)return yp;const n=t.type.__cssModules;if(!n)return yp;const r=n[e];return r||yp}}function Iw(e){const t=Go();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>fh(s,o))},r=()=>{const o=e(t.proxy);dh(t.subTree,o),n(o)};M1(r),vt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Qt(()=>o.disconnect())})}function dh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{dh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fh(e.el,t);else if(e.type===Fe)e.children.forEach(n=>dh(n,t));else if(e.type===Zi){let{el:n,anchor:r}=e;for(;n&&(fh(n,t),n!==r);)n=n.nextSibling}}function fh(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const li="transition",Ol="animation",xi=(e,{slots:t})=>dt(pm,kw(e),t);xi.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},I4=xi.props=Aa({},pm.props,Pw),Fi=(e,t=[])=>{or(e)?e.forEach(n=>n(...t)):e&&e(...t)},mb=e=>e?or(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:d=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,_=P4(o),S=_&&_[0],C=_&&_[1],{onBeforeEnter:T,onEnter:w,onEnterCancelled:E,onLeave:O,onLeaveCancelled:$,onBeforeAppear:P=T,onAppear:k=w,onAppearCancelled:I=E}=t,H=(z,G,te)=>{ui(z,G?p:a),ui(z,G?d:l),te&&te()},D=(z,G)=>{z._isLeaving=!1,ui(z,h),ui(z,y),ui(z,g),G&&G()},F=z=>(G,te)=>{const we=z?k:w,be=()=>H(G,z,te);Fi(we,[G,be]),gb(()=>{ui(G,z?c:s),No(G,z?p:a),mb(we)||vb(G,r,S,be)})};return Aa(t,{onBeforeEnter(z){Fi(T,[z]),No(z,s),No(z,l)},onBeforeAppear(z){Fi(P,[z]),No(z,c),No(z,d)},onEnter:F(!1),onAppear:F(!0),onLeave(z,G){z._isLeaving=!0;const te=()=>D(z,G);No(z,h),Lw(),No(z,g),gb(()=>{z._isLeaving&&(ui(z,h),No(z,y),mb(O)||vb(z,r,C,te))}),Fi(O,[z,te])},onEnterCancelled(z){H(z,!1),Fi(E,[z])},onAppearCancelled(z){H(z,!0),Fi(I,[z])},onLeaveCancelled(z){D(z),Fi($,[z])}})}function P4(e){if(e==null)return null;if(lh(e))return[Sp(e.enter),Sp(e.leave)];{const t=Sp(e);return[t,t]}}function Sp(e){return uh(e)}function No(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ui(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 gb(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let k4=0;function vb(e,t,n,r){const o=e._endId=++k4,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 d=l+"end";let p=0;const h=()=>{e.removeEventListener(d,g),s()},g=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(d,g)}function Rw(e,t){const n=window.getComputedStyle(e),r=_=>(n[_]||"").split(", "),o=r(`${li}Delay`),s=r(`${li}Duration`),l=yb(o,s),a=r(`${Ol}Delay`),c=r(`${Ol}Duration`),d=yb(a,c);let p=null,h=0,g=0;t===li?l>0&&(p=li,h=l,g=s.length):t===Ol?d>0&&(p=Ol,h=d,g=c.length):(h=Math.max(l,d),p=h>0?l>d?li:Ol:null,g=p?p===li?s.length:c.length:0);const y=p===li&&/\b(transform|all)(,|$)/.test(r(`${li}Property`).toString());return{type:p,timeout:h,propCount:g,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:Aa({},I4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Go(),r=fm();let o,s;return fd(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!F4(o[0].el,n.vnode.el,l))return;o.forEach(N4),o.forEach(M4);const a=o.filter(D4);Lw(),a.forEach(c=>{const d=c.el,p=d.style;No(d,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=d._moveCb=g=>{g&&g.target!==d||(!g||/transform$/.test(g.propertyName))&&(d.removeEventListener("transitionend",h),d._moveCb=null,ui(d,l))};d.addEventListener("transitionend",h)})}),()=>{const l=Ue(e),a=kw(l);let c=l.tag||Fe;o=s,s=t.default?cd(t.default()):[];for(let d=0;d<s.length;d++){const p=s[d];p.key!=null&&is(p,zs(p,a,r,n))}if(o)for(let d=0;d<o.length;d++){const p=o[d];is(p,zs(p,a,r,n)),Nw.set(p,p.el.getBoundingClientRect())}return q(c,null,s)}}},R4=e=>delete e.mode;Dw.props;const L4=Dw;function N4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function M4(e){Mw.set(e,e.el.getBoundingClientRect())}function D4(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 F4(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 wi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return or(t)?n=>c4(t,n):t};function B4(e){e.target.composing=!0}function _b(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ec={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=wi(o);const s=r||o.props&&o.props.type==="number";Fo(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=ah(a)),e._assign(a)}),n&&Fo(e,"change",()=>{e.value=e.value.trim()}),t||(Fo(e,"compositionstart",B4),Fo(e,"compositionend",_b),Fo(e,"change",_b))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=wi(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&ah(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},wm={deep:!0,created(e,t,n){e._assign=wi(n),Fo(e,"change",()=>{const r=e._modelValue,o=Ks(e),s=e.checked,l=e._assign;if(or(r)){const a=md(r,o),c=a!==-1;if(s&&!c)l(r.concat(o));else if(!s&&c){const d=[...r];d.splice(a,1),l(d)}}else if(Ia(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=wi(n),wb(e,t,n)}};function wb(e,{value:t,oldValue:n},r){e._modelValue=t,or(t)?e.checked=md(t,r.props.value)>-1:Ia(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=_i(t,Bw(e,!0)))}const Sm={created(e,{value:t},n){e.checked=_i(t,n.props.value),e._assign=wi(n),Fo(e,"change",()=>{e._assign(Ks(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=wi(r),t!==n&&(e.checked=_i(t,r.props.value))}},Fw={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Ia(t);Fo(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?ah(Ks(l)):Ks(l));e._assign(e.multiple?o?new Set(s):s:s[0])}),e._assign=wi(r)},mounted(e,{value:t}){Sb(e,t)},beforeUpdate(e,t,n){e._assign=wi(n)},updated(e,{value:t}){Sb(e,t)}};function Sb(e,t){const n=e.multiple;if(!(n&&!or(t)&&!Ia(t))){for(let r=0,o=e.options.length;r<o;r++){const s=e.options[r],l=Ks(s);if(n)or(t)?s.selected=md(t,l)>-1:s.selected=t.has(l);else if(_i(Ks(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ks(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){Ku(e,t,n,null,"created")},mounted(e,t,n){Ku(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ku(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ku(e,t,n,r,"updated")}};function jw(e,t){switch(e){case"SELECT":return Fw;case"TEXTAREA":return Ec;default:switch(t){case"checkbox":return wm;case"radio":return Sm;default:return Ec}}}function Ku(e,t,n,r,o){const l=jw(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function U4(){Ec.getSSRProps=({value:e})=>({value:e}),Sm.getSSRProps=({value:e},t)=>{if(t.props&&_i(t.props.value,e))return{checked:!0}},wm.getSSRProps=({value:e},t)=>{if(or(e)){if(t.props&&md(e,t.props.value)>-1)return{checked:!0}}else if(Ia(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 j4=["ctrl","shift","alt","meta"],H4={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)=>j4.some(n=>e[`${n}Key`]&&!t.includes(n))},xc=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const s=H4[t[o]];if(s&&s(n,t))return}return e(n,...r)},V4={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=di(n.key);if(t.some(o=>o===r||V4[o]===r))return e(n)},Em={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Al(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),Al(e,!0),r.enter(e)):r.leave(e,()=>{Al(e,!1)}):Al(e,t))},beforeUnmount(e,{value:t}){Al(e,t)}};function Al(e,t){e.style.display=t?e._vod:"none"}function W4(){Em.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Vw=Aa({patchProp:$4},f4);let Xl,Eb=!1;function Ww(){return Xl||(Xl=ow(Vw))}function zw(){return Xl=Eb?Xl:iw(Vw),Eb=!0,Xl}const ph=(...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},z4=(...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 ca(e)?document.querySelector(e):e}let xb=!1;const q4=()=>{xb||(xb=!0,U4(),W4())},K4=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:pm,Comment:Rn,EffectScope:Zh,Fragment:Fe,KeepAlive:iR,ReactiveEffect:Ca,Static:Zi,Suspense:Xk,Teleport:lw,Text:ss,Transition:xi,TransitionGroup:L4,VueElement:gd,assertNumber:Nk,callWithAsyncErrorHandling:vr,callWithErrorHandling:jo,camelize:Qr,capitalize:ed,cloneVNode:Br,compatUtils:ZR,computed:ce,createApp:Kw,createBlock:bt,createCommentVNode:Ke,createElementBlock:V,createElementVNode:v,createHydrationRenderer:iw,createPropsRestProxy:zR,createRenderer:ow,createSSRApp:z4,createSlots:cR,createStaticVNode:kR,createTextVNode:Xe,createVNode:q,customRef:Ik,defineAsyncComponent:rR,defineComponent:ge,defineCustomElement:Aw,defineEmits:UR,defineExpose:jR,defineProps:BR,defineSSRCustomElement:T4,get devtools(){return Ns},effect:ZP,effectScope:XP,getCurrentInstance:Go,getCurrentScope:d1,getTransitionRawChildren:cd,guardReactiveProps:fw,h:dt,handleError:ds,hydrate:qw,initCustomFormatter:KR,initDirectivesForSSR:q4,inject:kt,isMemoSame:xw,isProxy:nm,isReactive:Ji,isReadonly:os,isRef:dn,isRuntimeOnly:MR,isShallow:oa,isVNode:yi,markRaw:rm,mergeDefaults:WR,mergeProps:pw,nextTick:rn,normalizeClass:St,normalizeProps:FP,normalizeStyle:cs,onActivated:B1,onBeforeMount:H1,onBeforeUnmount:fs,onBeforeUpdate:V1,onDeactivated:U1,onErrorCaptured:K1,onMounted:vt,onRenderTracked:q1,onRenderTriggered:z1,onScopeDispose:f1,onServerPrefetch:W1,onUnmounted:Qt,onUpdated:fd,openBlock:N,popScopeId:Hk,provide:Zt,proxyRefs:sm,pushScopeId:jk,queuePostFlushCb:um,reactive:Ei,readonly:tm,ref:_e,registerRuntimeCompiler:vw,render:ph,renderList:Mt,renderSlot:_r,resolveComponent:J,resolveDirective:uR,resolveDynamicComponent:aR,resolveFilter:YR,resolveTransitionHooks:zs,setBlockTracking:rh,setDevtoolsHook:k1,setTransitionHooks:is,shallowReactive:$1,shallowReadonly:Ck,shallowRef:sd,ssrContextKey:Sw,ssrUtils:JR,stop:QP,toDisplayString:U,toHandlerKey:Wl,toHandlers:dR,toRaw:Ue,toRef:T1,toRefs:lm,transformVNodeArgs:IR,triggerRef:Xp,unref:jn,useAttrs:VR,useCssModule:A4,useCssVars:Iw,useSSRContext:Ew,useSlots:_w,useTransitionState:fm,vModelCheckbox:wm,vModelDynamic:Uw,vModelRadio:Sm,vModelSelect:Fw,vModelText:Ec,vShow:Em,version:$w,warn:Lk,watch:Ft,watchEffect:jt,watchPostEffect:M1,watchSyncEffect:eR,withAsyncContext:qR,withCtx:ye,withDefaults:HR,withDirectives:G1,withKeys:Hw,withMemo:GR,withModifiers:xc,withScopeId:Vk},Symbol.toStringTag,{value:"Module"}));function ro(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 G4=/;(?![^(]*\))/g,X4=/:([^]+)/,J4=/\/\*.*?\*\//gs;function Y4(e){const t={};return e.replace(J4,"").split(G4).forEach(n=>{if(n){const r=n.split(X4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const Z4="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",Q4="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",eL="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",tL=ro(Z4),nL=ro(Q4),rL=ro(eL),oL={},$c=()=>{},Ep=()=>!1,iL=/^on[^a-z]/,Xw=e=>iL.test(e),Ho=Object.assign,Gs=Array.isArray,mn=e=>typeof e=="string",xm=e=>typeof e=="symbol",sL=e=>e!==null&&typeof e=="object",$b=ro(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),lL=ro("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),vd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},aL=/-(\w)/g,yd=vd(e=>e.replace(aL,(t,n)=>n?n.toUpperCase():"")),uL=/\B([A-Z])/g,cL=vd(e=>e.replace(uL,"-$1").toLowerCase()),$m=vd(e=>e.charAt(0).toUpperCase()+e.slice(1)),dL=vd(e=>e?`on${$m(e)}`:"");function Cm(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 da=Symbol(""),Jl=Symbol(""),Tm=Symbol(""),Cc=Symbol(""),Yw=Symbol(""),as=Symbol(""),Zw=Symbol(""),Qw=Symbol(""),Om=Symbol(""),Am=Symbol(""),Pa=Symbol(""),Im=Symbol(""),eS=Symbol(""),Pm=Symbol(""),Tc=Symbol(""),km=Symbol(""),Rm=Symbol(""),Lm=Symbol(""),Nm=Symbol(""),tS=Symbol(""),nS=Symbol(""),bd=Symbol(""),Oc=Symbol(""),Mm=Symbol(""),Dm=Symbol(""),fa=Symbol(""),ka=Symbol(""),Fm=Symbol(""),hh=Symbol(""),fL=Symbol(""),mh=Symbol(""),Ac=Symbol(""),pL=Symbol(""),hL=Symbol(""),Bm=Symbol(""),mL=Symbol(""),gL=Symbol(""),Um=Symbol(""),rS=Symbol(""),Xs={[da]:"Fragment",[Jl]:"Teleport",[Tm]:"Suspense",[Cc]:"KeepAlive",[Yw]:"BaseTransition",[as]:"openBlock",[Zw]:"createBlock",[Qw]:"createElementBlock",[Om]:"createVNode",[Am]:"createElementVNode",[Pa]:"createCommentVNode",[Im]:"createTextVNode",[eS]:"createStaticVNode",[Pm]:"resolveComponent",[Tc]:"resolveDynamicComponent",[km]:"resolveDirective",[Rm]:"resolveFilter",[Lm]:"withDirectives",[Nm]:"renderList",[tS]:"renderSlot",[nS]:"createSlots",[bd]:"toDisplayString",[Oc]:"mergeProps",[Mm]:"normalizeClass",[Dm]:"normalizeStyle",[fa]:"normalizeProps",[ka]:"guardReactiveProps",[Fm]:"toHandlers",[hh]:"camelize",[fL]:"capitalize",[mh]:"toHandlerKey",[Ac]:"setBlockTracking",[pL]:"pushScopeId",[hL]:"popScopeId",[Bm]:"withCtx",[mL]:"unref",[gL]:"isRef",[Um]:"withMemo",[rS]:"isMemoSame"};function vL(e){Object.getOwnPropertySymbols(e).forEach(t=>{Xs[t]=e[t]})}const wr={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function yL(e,t=wr){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function pa(e,t,n,r,o,s,l,a=!1,c=!1,d=!1,p=wr){return e&&(a?(e.helper(as),e.helper(Zs(e.inSSR,d))):e.helper(Ys(e.inSSR,d)),l&&e.helper(Lm)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:l,isBlock:a,disableTracking:c,isComponent:d,loc:p}}function Ra(e,t=wr){return{type:17,loc:t,elements:e}}function Rr(e,t=wr){return{type:15,loc:t,properties:e}}function Yt(e,t){return{type:16,loc:wr,key:mn(e)?ut(e,!0):e,value:t}}function ut(e,t=!1,n=wr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Yr(e,t=wr){return{type:8,loc:t,children:e}}function nn(e,t=[],n=wr){return{type:14,loc:n,callee:e,arguments:t}}function Js(e,t=void 0,n=!1,r=!1,o=wr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function gh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:wr}}function bL(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:wr}}function _L(e){return{type:21,body:e,loc:wr}}const Yn=e=>e.type===4&&e.isStatic,Ms=(e,t)=>e===t||e===cL(t);function oS(e){if(Ms(e,"Teleport"))return Jl;if(Ms(e,"Suspense"))return Tm;if(Ms(e,"KeepAlive"))return Cc;if(Ms(e,"BaseTransition"))return Yw}const wL=/^\d|[^\$\w]/,jm=e=>!wL.test(e),SL=/[A-Za-z_$\xA0-\uFFFF]/,EL=/[\.\?\w$\xA0-\uFFFF]/,xL=/\s+[.[]\s*|\s*[.[]\s+/g,$L=e=>{e=e.trim().replace(xL,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?SL:EL).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=$L;function sS(e,t,n){const o={source:e.source.slice(t,t+n),start:Ic(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Ic(e.start,e.source,t+n)),o}function Ic(e,t,n=t.length){return Pc(Ho({},e),t,n)}function Pc(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 kr(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 _d(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 CL(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function xp(e){return e.type===5||e.type===2}function TL(e){return e.type===7&&e.name==="slot"}function kc(e){return e.type===1&&e.tagType===3}function Rc(e){return e.type===1&&e.tagType===2}function Ys(e,t){return e||t?Om:Am}function Zs(e,t){return e||t?Zw:Qw}const OL=new Set([fa,ka]);function lS(e,t=[]){if(e&&!mn(e)&&e.type===14){const n=e.callee;if(!mn(n)&&OL.has(n))return lS(e.arguments[0],t.concat(e))}return[e,t]}function Lc(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=Rr([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===Fm?r=nn(n.helper(Oc),[Rr([t]),o]):o.arguments.unshift(Rr([t])),!r&&(r=o)}else o.type===15?(Cb(t,o)||o.properties.unshift(t),r=o):(r=nn(n.helper(Oc),[Rr([t]),o]),l&&l.callee===ka&&(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 ha(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function AL(e){return e.type===14&&e.callee===Um?e.arguments[1].returns:e}function Hm(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Ys(r,e.isComponent)),t(as),t(Zs(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 Qi(e,t){const n=Tb("MODE",t),r=Tb(e,t);return n===3?r===!0:r!==!1}function ma(e,t,n,...r){return Qi(e,t)}const IL=/&(gt|lt|amp|apos|quot);/g,PL={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ob={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Ep,isPreTag:Ep,isCustomElement:Ep,decodeEntities:e=>e.replace(IL,(t,n)=>PL[n]),onError:Cm,onWarn:Jw,comments:!1};function kL(e,t={}){const n=RL(e,t),r=yr(n);return yL(Vm(n,0,[]),Ur(n,r))}function RL(e,t){const n=Ho({},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 Vm(e,t,n){const r=wd(n),o=r?r.ns:0,s=[];for(;!HL(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&kn(a,e.options.delimiters[0]))c=UL(e,t);else if(t===0&&a[0]==="<")if(a.length===1)At(e,5,1);else if(a[1]==="!")kn(a,"<!--")?c=NL(e):kn(a,"<!DOCTYPE")?c=Il(e):kn(a,"<![CDATA[")?o!==0?c=LL(e,n):(At(e,1),c=Il(e)):(At(e,11),c=Il(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),vh(e,1,r);continue}else At(e,12,2),c=Il(e);else/[a-z]/i.test(a[1])?(c=ML(e,n),Qi("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(d=>d.type===7&&aS(d.name))&&(c=c.children)):a[1]==="?"?(At(e,21,1),c=Il(e)):At(e,12,1)}if(c||(c=jL(e,t)),Gs(c))for(let d=0;d<c.length;d++)Ab(s,c[d]);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 d=s[c];if(d.type===2)if(e.inPre)d.content=d.content.replace(/\r\n/g,`
    2 `);else if(/[^\t\r\n\f ]/.test(d.content))a&&(d.content=d.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(d.content))?(l=!0,s[c]=null):d.content=" "}else d.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=wd(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 LL(e,t){fn(e,9);const n=Vm(e,3,t);return e.source.length===0?At(e,6):fn(e,3),n}function NL(e){const t=yr(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:Ur(e,t)}}function Il(e){const t=yr(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:Ur(e,t)}}function ML(e,t){const n=e.inPre,r=e.inVPre,o=wd(t),s=vh(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),d=Vm(e,c,t);t.pop();{const p=s.props.find(h=>h.type===6&&h.name==="inline-template");if(p&&ma("COMPILER_INLINE_TEMPLATE",e,p.loc)){const h=Ur(e,s.loc.end);p.value={type:2,content:h.source,loc:h}}}if(s.children=d,yh(e.source,s.tag))vh(e,1,o);else if(At(e,24,0,s.loc.start),e.source.length===0&&s.tag.toLowerCase()==="script"){const p=d[0];p&&kn(p.loc.source,"<!--")&&At(e,8)}return s.loc=Ur(e,s.loc.start),l&&(e.inPre=!1),a&&(e.inVPre=!1),s}const aS=ro("if,else,else-if,for,slot");function vh(e,t,n){const r=yr(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),ga(e);const a=yr(e),c=e.source;e.options.isPreTag(s)&&(e.inPre=!0);let d=Ib(e,t);t===0&&!e.inVPre&&d.some(g=>g.type===7&&g.name==="pre")&&(e.inVPre=!0,Ho(e,a),e.source=c,d=Ib(e,t).filter(g=>g.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"?d.some(g=>g.type===7&&aS(g.name))&&(h=3):DL(s,d,e)&&(h=1)),{type:1,ns:l,tag:s,tagType:h,props:d,isSelfClosing:p,children:[],loc:Ur(e,r),codegenNode:void 0}}function DL(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(ma("COMPILER_IS_ON_ELEMENT",n,s.loc))return!0}}else{if(s.name==="is")return!0;if(s.name==="bind"&&qi(s.arg,"is")&&ma("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),ga(e);continue}t===1&&At(e,3);const o=FL(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),ga(e)}return n}function FL(e,t){const n=yr(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)&&(ga(e),fn(e,1),ga(e),s=BL(e),s||At(e,13));const l=Ur(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,"."),d=a[1]||(c||kn(o,":")?"bind":kn(o,"@")?"on":"slot"),p;if(a[2]){const g=d==="slot",y=o.lastIndexOf(a[2]),_=Ur(e,Pb(e,n,y),Pb(e,n,y+a[2].length+(g&&a[3]||"").length));let S=a[2],C=!0;S.startsWith("[")?(C=!1,S.endsWith("]")?S=S.slice(1,S.length-1):(At(e,27),S=S.slice(1))):g&&(S+=a[3]||""),p={type:4,content:S,isStatic:C,constType:C?3:0,loc:_}}if(s&&s.isQuoted){const g=s.loc;g.start.offset++,g.start.column++,g.end=Ic(g.start,s.content),g.source=g.source.slice(1,-1)}const h=a[3]?a[3].slice(1).split("."):[];return c&&h.push("prop"),d==="bind"&&p&&h.includes("sync")&&ma("COMPILER_V_BIND_SYNC",e,l,p.loc.source)&&(d="model",h.splice(h.indexOf("sync"),1)),{type:7,name:d,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 BL(e){const t=yr(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=Yl(e,e.source.length,4):(n=Yl(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=Yl(e,s[0].length,4)}return{content:n,isQuoted:o,loc:Ur(e,t)}}function UL(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(o===-1){At(e,25);return}const s=yr(e);fn(e,n.length);const l=yr(e),a=yr(e),c=o-n.length,d=e.source.slice(0,c),p=Yl(e,c,t),h=p.trim(),g=p.indexOf(h);g>0&&Pc(l,d,g);const y=c-(p.length-h.length-g);return Pc(a,d,y),fn(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:Ur(e,l,a)},loc:Ur(e,s)}}function jL(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=yr(e);return{type:2,content:Yl(e,r,t),loc:Ur(e,o)}}function Yl(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 yr(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Ur(e,t,n){return n=n||yr(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function wd(e){return e[e.length-1]}function kn(e,t){return e.startsWith(t)}function fn(e,t){const{source:n}=e;Pc(e,n,t),e.source=n.slice(t)}function ga(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&fn(e,t[0].length)}function Pb(e,t,n){return Ic(t,e.originalSource.slice(t.offset,n),n)}function At(e,t,n,r=yr(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Wt(t,{start:r,end:r,source:""}))}function HL(e,t,n){const r=e.source;switch(t){case 0:if(kn(r,"</")){for(let o=n.length-1;o>=0;--o)if(yh(r,n[o].tag))return!0}break;case 1:case 2:{const o=wd(n);if(o&&yh(r,o.tag))return!0;break}case 3:if(kn(r,"]]>"))return!0;break}return!r}function yh(e,t){return kn(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function VL(e,t){sc(e,t,uS(e,e.children[0]))}function uS(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Rc(t)}function sc(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:Lr(a,t);if(c>0){if(c>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const d=a.codegenNode;if(d.type===13){const p=pS(d);if((!p||p===512||p===1)&&dS(a,t)>=2){const h=fS(a);h&&(d.props=t.hoist(h))}d.dynamicProps&&(d.dynamicProps=t.hoist(d.dynamicProps))}}}if(a.type===1){const c=a.tagType===1;c&&t.scopes.vSlot++,sc(a,t),c&&t.scopes.vSlot--}else if(a.type===11)sc(a,t,a.children.length===1);else if(a.type===9)for(let c=0;c<a.branches.length;c++)sc(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&&Gs(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Ra(e.codegenNode.children)))}function Lr(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 d=0;d<e.children.length;d++){const p=Lr(e.children[d],t);if(p===0)return n.set(e,0),0;p<a&&(a=p)}if(a>1)for(let d=0;d<e.props.length;d++){const p=e.props[d];if(p.type===7&&p.name==="bind"&&p.exp){const h=Lr(p.exp,t);if(h===0)return n.set(e,0),0;h<a&&(a=h)}}if(o.isBlock){for(let d=0;d<e.props.length;d++)if(e.props[d].type===7)return n.set(e,0),0;t.removeHelper(as),t.removeHelper(Zs(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Ys(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 Lr(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)||xm(c))continue;const d=Lr(c,t);if(d===0)return 0;d<l&&(l=d)}return l;default:return 0}}const WL=new Set([Mm,Dm,fa,ka]);function cS(e,t){if(e.type===14&&!mn(e.callee)&&WL.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Lr(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=Lr(l,t);if(c===0)return c;c<n&&(n=c);let d;if(a.type===4?d=Lr(a,t):a.type===14?d=cS(a,t):d=0,d===0)return d;d<n&&(n=d)}}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 zL(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:o=!1,nodeTransforms:s=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=$c,isCustomElement:d=$c,expressionPlugins:p=[],scopeId:h=null,slotted:g=!0,ssr:y=!1,inSSR:_=!1,ssrCssVars:S="",bindingMetadata:C=oL,inline:T=!1,isTS:w=!1,onError:E=Cm,onWarn:O=Jw,compatConfig:$}){const P=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={selfName:P&&$m(yd(P[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:o,nodeTransforms:s,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:d,expressionPlugins:p,scopeId:h,slotted:g,ssr:y,inSSR:_,ssrCssVars:S,bindingMetadata:C,inline:T,isTS:w,onError:E,onWarn:O,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(I){const H=k.helpers.get(I)||0;return k.helpers.set(I,H+1),I},removeHelper(I){const H=k.helpers.get(I);if(H){const D=H-1;D?k.helpers.set(I,D):k.helpers.delete(I)}},helperString(I){return`_${Xs[k.helper(I)]}`},replaceNode(I){k.parent.children[k.childIndex]=k.currentNode=I},removeNode(I){const H=k.parent.children,D=I?H.indexOf(I):k.currentNode?k.childIndex:-1;!I||I===k.currentNode?(k.currentNode=null,k.onNodeRemoved()):k.childIndex>D&&(k.childIndex--,k.onNodeRemoved()),k.parent.children.splice(D,1)},onNodeRemoved:()=>{},addIdentifiers(I){},removeIdentifiers(I){},hoist(I){mn(I)&&(I=ut(I)),k.hoists.push(I);const H=ut(`_hoisted_${k.hoists.length}`,!1,I.loc,2);return H.hoisted=I,H},cache(I,H=!1){return bL(k.cached++,I,H)}};return k.filters=new Set,k}function qL(e,t){const n=zL(e,t);Sd(e,n),t.hoistStatic&&VL(e,n),t.ssr||KL(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 KL(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&&Hm(s,t),e.codegenNode=s}else e.codegenNode=o}else if(r.length>1){let o=64;e.codegenNode=pa(t,n(da),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}function GL(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,Sd(o,t))}}function Sd(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&&(Gs(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Pa);break;case 5:t.ssr||t.helper(bd);break;case 9:for(let s=0;s<e.branches.length;s++)Sd(e.branches[s],t);break;case 10:case 11:case 1:case 0:GL(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(TL))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 d=t(r,c,o);d&&l.push(d)}}return l}}}const Ed="/*#__PURE__*/",mS=e=>`${Xs[e]}: _${Xs[e]}`;function XL(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:d="vue/server-renderer",ssr:p=!1,isTS:h=!1,inSSR:g=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:d,ssr:p,isTS:h,inSSR:g,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(S){return`_${Xs[S]}`},push(S,C){y.code+=S},indent(){_(++y.indentLevel)},deindent(S=!1){S?--y.indentLevel:_(--y.indentLevel)},newline(){_(y.indentLevel)}};function _(S){y.push(`
    3 `+"  ".repeat(S))}return y}function JL(e,t={}){const n=XL(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:l,deindent:a,newline:c,scopeId:d,ssr:p}=n,h=Array.from(e.helpers),g=h.length>0,y=!s&&r!=="module";YL(e,n);const S=p?"ssrRender":"render",T=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${S}(${T}) {`),l(),y&&(o("with (_ctx) {"),l(),g&&(o(`const { ${h.map(mS).join(", ")} } = _Vue`),o(`
     1(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)}})();function Kh(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const NI="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",MI=Kh(NI);function Wo(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=on(r)?UI(r):Wo(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 DI=/;(?![^(]*\))/g,FI=/:([^]+)/,BI=/\/\*.*?\*\//gs;function UI(e){const t={};return e.replace(BI,"").split(DI).forEach(n=>{if(n){const r=n.split(FI);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function St(e){let t="";if(on(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=St(e[n]);r&&(t+=r+" ")}else if(qt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function jI(e){if(!e)return null;let{class:t,style:n}=e;return t&&!on(t)&&(e.class=St(t)),n&&(e.style=Wo(n)),e}const U=e=>on(e)?e:e==null?"":Je(e)||qt(e)&&(e.toString===u1||!et(e.toString))?JSON.stringify(e,s1,2):String(e),s1=(e,t)=>t&&t.__v_isRef?s1(e,t.value):Fs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:a1(t)?{[`Set(${t.size})`]:[...t.values()]}:qt(t)&&!Je(t)&&!c1(t)?String(t):t,Ut={},Ds=[],vo=()=>{},HI=()=>!1,VI=/^on[^a-z]/,Yc=e=>VI.test(e),l1=e=>e.startsWith("onUpdate:"),$n=Object.assign,Gh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},WI=Object.prototype.hasOwnProperty,_t=(e,t)=>WI.call(e,t),Je=Array.isArray,Fs=e=>$a(e)==="[object Map]",a1=e=>$a(e)==="[object Set]",zI=e=>$a(e)==="[object RegExp]",et=e=>typeof e=="function",on=e=>typeof e=="string",Xh=e=>typeof e=="symbol",qt=e=>e!==null&&typeof e=="object",Jh=e=>qt(e)&&et(e.then)&&et(e.catch),u1=Object.prototype.toString,$a=e=>u1.call(e),qI=e=>$a(e).slice(8,-1),c1=e=>$a(e)==="[object Object]",Yh=e=>on(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vl=Kh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},KI=/-(\w)/g,eo=Zc(e=>e.replace(KI,(t,n)=>n?n.toUpperCase():"")),GI=/\B([A-Z])/g,Qc=Zc(e=>e.replace(GI,"-$1").toLowerCase()),ed=Zc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wl=Zc(e=>e?`on${ed(e)}`:""),Ws=(e,t)=>!Object.is(e,t),zl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},vc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},XI=e=>{const t=parseFloat(e);return isNaN(t)?e:t},JI=e=>{const t=on(e)?Number(e):NaN;return isNaN(t)?e:t};let Hy;const YI=()=>Hy||(Hy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let pr;class Zh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pr,!t&&pr&&(this.index=(pr.scopes||(pr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=pr;try{return pr=this,t()}finally{pr=n}}}on(){pr=this}off(){pr=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 ZI(e){return new Zh(e)}function d1(e,t=pr){t&&t.active&&t.effects.push(e)}function f1(){return pr}function p1(e){pr&&pr.cleanups.push(e)}const Qh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},h1=e=>(e.w&yi)>0,m1=e=>(e.n&yi)>0,QI=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=yi},ek=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];h1(o)&&!m1(o)?o.delete(e):t[n++]=o,o.w&=~yi,o.n&=~yi}t.length=n}},yc=new WeakMap;let Bl=0,yi=1;const qp=30;let Xr;const Ji=Symbol(""),Kp=Symbol("");class Ca{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,d1(this,r)}run(){if(!this.active)return this.fn();let t=Xr,n=mi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Xr,Xr=this,mi=!0,yi=1<<++Bl,Bl<=qp?QI(this):Vy(this),this.fn()}finally{Bl<=qp&&ek(this),yi=1<<--Bl,Xr=this.parent,mi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Xr===this?this.deferStop=!0:this.active&&(Vy(this),this.onStop&&this.onStop(),this.active=!1)}}function Vy(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function tk(e,t){e.effect&&(e=e.effect.fn);const n=new Ca(e);t&&($n(n,t),t.scope&&d1(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function nk(e){e.effect.stop()}let mi=!0;const g1=[];function al(){g1.push(mi),mi=!1}function ul(){const e=g1.pop();mi=e===void 0?!0:e}function or(e,t,n){if(mi&&Xr){let r=yc.get(e);r||yc.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Qh()),v1(o)}}function v1(e,t){let n=!1;Bl<=qp?m1(e)||(e.n|=yi,n=!h1(e)):n=!e.has(Xr),n&&(e.add(Xr),Xr.deps.push(e))}function zo(e,t,n,r,o,s){const l=yc.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((d,p)=>{(p==="length"||p>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?Yh(n)&&a.push(l.get("length")):(a.push(l.get(Ji)),Fs(e)&&a.push(l.get(Kp)));break;case"delete":Je(e)||(a.push(l.get(Ji)),Fs(e)&&a.push(l.get(Kp)));break;case"set":Fs(e)&&a.push(l.get(Ji));break}if(a.length===1)a[0]&&Gp(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);Gp(Qh(c))}}function Gp(e,t){const n=Je(e)?e:[...e];for(const r of n)r.computed&&Wy(r);for(const r of n)r.computed||Wy(r)}function Wy(e,t){(e!==Xr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function rk(e,t){var n;return(n=yc.get(e))===null||n===void 0?void 0:n.get(t)}const ok=Kh("__proto__,__v_isRef,__isVue"),y1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xh)),ik=td(),sk=td(!1,!0),lk=td(!0),ak=td(!0,!0),zy=uk();function uk(){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++)or(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){al();const r=Ue(this)[t].apply(this,n);return ul(),r}}),e}function ck(e){const t=Ue(this);return or(t,"has",e),t.hasOwnProperty(e)}function td(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?$1:x1:t?E1:S1).get(r))return r;const l=Je(r);if(!e){if(l&&_t(zy,o))return Reflect.get(zy,o,s);if(o==="hasOwnProperty")return ck}const a=Reflect.get(r,o,s);return(Xh(o)?y1.has(o):ok(o))||(e||or(r,"get",o),t)?a:dn(a)?l&&Yh(o)?a:a.value:qt(a)?e?tm(a):xi(a):a}}const dk=b1(),fk=b1(!0);function b1(e=!1){return function(n,r,o,s){let l=n[r];if(is(l)&&dn(l)&&!dn(o))return!1;if(!e&&(!oa(o)&&!is(o)&&(l=Ue(l),o=Ue(o)),!Je(n)&&dn(l)&&!dn(o)))return l.value=o,!0;const a=Je(n)&&Yh(r)?Number(r)<n.length:_t(n,r),c=Reflect.set(n,r,o,s);return n===Ue(s)&&(a?Ws(o,l)&&zo(n,"set",r,o):zo(n,"add",r,o)),c}}function pk(e,t){const n=_t(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&zo(e,"delete",t,void 0),r}function hk(e,t){const n=Reflect.has(e,t);return(!Xh(t)||!y1.has(t))&&or(e,"has",t),n}function mk(e){return or(e,"iterate",Je(e)?"length":Ji),Reflect.ownKeys(e)}const _1={get:ik,set:dk,deleteProperty:pk,has:hk,ownKeys:mk},w1={get:lk,set(e,t){return!0},deleteProperty(e,t){return!0}},gk=$n({},_1,{get:sk,set:fk}),vk=$n({},w1,{get:ak}),em=e=>e,nd=e=>Reflect.getPrototypeOf(e);function Du(e,t,n=!1,r=!1){e=e.__v_raw;const o=Ue(e),s=Ue(t);n||(t!==s&&or(o,"get",t),or(o,"get",s));const{has:l}=nd(o),a=r?em:n?om:ia;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 Fu(e,t=!1){const n=this.__v_raw,r=Ue(n),o=Ue(e);return t||(e!==o&&or(r,"has",e),or(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Bu(e,t=!1){return e=e.__v_raw,!t&&or(Ue(e),"iterate",Ji),Reflect.get(e,"size",e)}function qy(e){e=Ue(e);const t=Ue(this);return nd(t).has.call(t,e)||(t.add(e),zo(t,"add",e,e)),this}function Ky(e,t){t=Ue(t);const n=Ue(this),{has:r,get:o}=nd(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?Ws(t,l)&&zo(n,"set",e,t):zo(n,"add",e,t),this}function Gy(e){const t=Ue(this),{has:n,get:r}=nd(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&&zo(t,"delete",e,void 0),s}function Xy(){const e=Ue(this),t=e.size!==0,n=e.clear();return t&&zo(e,"clear",void 0,void 0),n}function Uu(e,t){return function(r,o){const s=this,l=s.__v_raw,a=Ue(l),c=t?em:e?om:ia;return!e&&or(a,"iterate",Ji),l.forEach((d,p)=>r.call(o,c(d),c(p),s))}}function ju(e,t,n){return function(...r){const o=this.__v_raw,s=Ue(o),l=Fs(s),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,d=o[e](...r),p=n?em:t?om:ia;return!t&&or(s,"iterate",c?Kp:Ji),{next(){const{value:h,done:g}=d.next();return g?{value:h,done:g}:{value:a?[p(h[0]),p(h[1])]:p(h),done:g}},[Symbol.iterator](){return this}}}}function si(e){return function(...t){return e==="delete"?!1:this}}function yk(){const e={get(s){return Du(this,s)},get size(){return Bu(this)},has:Fu,add:qy,set:Ky,delete:Gy,clear:Xy,forEach:Uu(!1,!1)},t={get(s){return Du(this,s,!1,!0)},get size(){return Bu(this)},has:Fu,add:qy,set:Ky,delete:Gy,clear:Xy,forEach:Uu(!1,!0)},n={get(s){return Du(this,s,!0)},get size(){return Bu(this,!0)},has(s){return Fu.call(this,s,!0)},add:si("add"),set:si("set"),delete:si("delete"),clear:si("clear"),forEach:Uu(!0,!1)},r={get(s){return Du(this,s,!0,!0)},get size(){return Bu(this,!0)},has(s){return Fu.call(this,s,!0)},add:si("add"),set:si("set"),delete:si("delete"),clear:si("clear"),forEach:Uu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=ju(s,!1,!1),n[s]=ju(s,!0,!1),t[s]=ju(s,!1,!0),r[s]=ju(s,!0,!0)}),[e,n,t,r]}const[bk,_k,wk,Sk]=yk();function rd(e,t){const n=t?e?Sk:wk:e?_k:bk;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 Ek={get:rd(!1,!1)},xk={get:rd(!1,!0)},$k={get:rd(!0,!1)},Ck={get:rd(!0,!0)},S1=new WeakMap,E1=new WeakMap,x1=new WeakMap,$1=new WeakMap;function Tk(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ok(e){return e.__v_skip||!Object.isExtensible(e)?0:Tk(qI(e))}function xi(e){return is(e)?e:od(e,!1,_1,Ek,S1)}function C1(e){return od(e,!1,gk,xk,E1)}function tm(e){return od(e,!0,w1,$k,x1)}function Ak(e){return od(e,!0,vk,Ck,$1)}function od(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=Ok(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Yi(e){return is(e)?Yi(e.__v_raw):!!(e&&e.__v_isReactive)}function is(e){return!!(e&&e.__v_isReadonly)}function oa(e){return!!(e&&e.__v_isShallow)}function nm(e){return Yi(e)||is(e)}function Ue(e){const t=e&&e.__v_raw;return t?Ue(t):e}function rm(e){return vc(e,"__v_skip",!0),e}const ia=e=>qt(e)?xi(e):e,om=e=>qt(e)?tm(e):e;function im(e){mi&&Xr&&(e=Ue(e),v1(e.dep||(e.dep=Qh())))}function id(e,t){e=Ue(e);const n=e.dep;n&&Gp(n)}function dn(e){return!!(e&&e.__v_isRef===!0)}function _e(e){return T1(e,!1)}function sd(e){return T1(e,!0)}function T1(e,t){return dn(e)?e:new Pk(e,t)}class Pk{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:ia(t)}get value(){return im(this),this._value}set value(t){const n=this.__v_isShallow||oa(t)||is(t);t=n?t:Ue(t),Ws(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ia(t),id(this))}}function Xp(e){id(e)}function Hn(e){return dn(e)?e.value:e}const Ik={get:(e,t,n)=>Hn(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 sm(e){return Yi(e)?e:new Proxy(e,Ik)}class kk{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>im(this),()=>id(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Rk(e){return new kk(e)}function lm(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=O1(e,n);return t}class Lk{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 rk(Ue(this._object),this._key)}}function O1(e,t,n){const r=e[t];return dn(r)?r:new Lk(e,t,n)}var A1;class Nk{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[A1]=!1,this._dirty=!0,this.effect=new Ca(t,()=>{this._dirty||(this._dirty=!0,id(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Ue(this);return im(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}A1="__v_isReadonly";function Mk(e,t,n=!1){let r,o;const s=et(e);return s?(r=e,o=vo):(r=e.get,o=e.set),new Nk(r,o,s||!o,n)}function Dk(e,...t){}function Fk(e,t){}function jo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){ds(s,t,n)}return o}function vr(e,t,n,r){if(et(e)){const s=jo(e,t,n,r);return s&&Jh(s)&&s.catch(l=>{ds(l,t,n)}),s}const o=[];for(let s=0;s<e.length;s++)o.push(vr(e[s],t,n,r));return o}function ds(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 d=s.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,a)===!1)return}s=s.parent}const c=t.appContext.config.errorHandler;if(c){jo(c,null,10,[e,l,a]);return}}Bk(e,n,o,r)}function Bk(e,t,n,r=!0){console.error(e)}let sa=!1,Jp=!1;const Pn=[];let go=0;const Bs=[];let Mo=null,Vi=0;const P1=Promise.resolve();let am=null;function rn(e){const t=am||P1;return e?t.then(this?e.bind(this):e):t}function Uk(e){let t=go+1,n=Pn.length;for(;t<n;){const r=t+n>>>1;la(Pn[r])<e?t=r+1:n=r}return t}function ld(e){(!Pn.length||!Pn.includes(e,sa&&e.allowRecurse?go+1:go))&&(e.id==null?Pn.push(e):Pn.splice(Uk(e.id),0,e),I1())}function I1(){!sa&&!Jp&&(Jp=!0,am=P1.then(k1))}function jk(e){const t=Pn.indexOf(e);t>go&&Pn.splice(t,1)}function um(e){Je(e)?Bs.push(...e):(!Mo||!Mo.includes(e,e.allowRecurse?Vi+1:Vi))&&Bs.push(e),I1()}function Jy(e,t=sa?go+1:0){for(;t<Pn.length;t++){const n=Pn[t];n&&n.pre&&(Pn.splice(t,1),t--,n())}}function bc(e){if(Bs.length){const t=[...new Set(Bs)];if(Bs.length=0,Mo){Mo.push(...t);return}for(Mo=t,Mo.sort((n,r)=>la(n)-la(r)),Vi=0;Vi<Mo.length;Vi++)Mo[Vi]();Mo=null,Vi=0}}const la=e=>e.id==null?1/0:e.id,Hk=(e,t)=>{const n=la(e)-la(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function k1(e){Jp=!1,sa=!0,Pn.sort(Hk);try{for(go=0;go<Pn.length;go++){const t=Pn[go];t&&t.active!==!1&&jo(t,null,14)}}finally{go=0,Pn.length=0,bc(),sa=!1,am=null,(Pn.length||Bs.length)&&k1()}}let Ns,Hu=[];function R1(e,t){var n,r;Ns=e,Ns?(Ns.enabled=!0,Hu.forEach(({event:o,args:s})=>Ns.emit(o,...s)),Hu=[]):typeof window<"u"&&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=>{R1(s,t)}),setTimeout(()=>{Ns||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Hu=[])},3e3)):Hu=[]}function Vk(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:g}=r[p]||Ut;g&&(o=n.map(y=>on(y)?y.trim():y)),h&&(o=n.map(XI))}let a,c=r[a=Wl(t)]||r[a=Wl(eo(t))];!c&&s&&(c=r[a=Wl(Qc(t))]),c&&vr(c,e,6,o);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,vr(d,e,6,o)}}function L1(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=d=>{const p=L1(d,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 ad(e,t){return!e||!Yc(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,Qc(t))||_t(e,t))}let xn=null,ud=null;function aa(e){const t=xn;return xn=e,ud=e&&e.type.__scopeId||null,t}function Wk(e){ud=e}function zk(){ud=null}const qk=e=>ye;function ye(e,t=xn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&rh(-1);const s=aa(t);let l;try{l=e(...o)}finally{aa(s),r._d&&rh(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function oc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[l],slots:a,attrs:c,emit:d,render:p,renderCache:h,data:g,setupState:y,ctx:_,inheritAttrs:S}=e;let C,T;const w=aa(e);try{if(n.shapeFlag&4){const O=o||r;C=hr(p.call(O,O,h,s,y,g,_)),T=c}else{const O=t;C=hr(O.length>1?O(s,{attrs:c,slots:a,emit:d}):O(s,null)),T=t.props?c:Gk(c)}}catch(O){Gl.length=0,ds(O,e,1),C=q(Rn)}let E=C;if(T&&S!==!1){const O=Object.keys(T),{shapeFlag:x}=E;O.length&&x&7&&(l&&O.some(l1)&&(T=Xk(T,l)),E=Ur(E,T))}return n.dirs&&(E=Ur(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),C=E,aa(w),C}function Kk(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(bi(r)){if(r.type!==Rn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const Gk=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yc(n))&&((t||(t={}))[n]=e[n]);return t},Xk=(e,t)=>{const n={};for(const r in e)(!l1(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Jk(e,t,n){const{props:r,children:o,component:s}=e,{props:l,children:a,patchFlag:c}=t,d=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Yy(r,l,d):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const g=p[h];if(l[g]!==r[g]&&!ad(d,g))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?Yy(r,l,d):!0:!!l;return!1}function Yy(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]&&!ad(n,s))return!0}return!1}function cm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const N1=e=>e.__isSuspense,Yk={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,l,a,c,d){e==null?Qk(t,n,r,o,s,l,a,c,d):eR(e,t,n,r,o,l,a,c,d)},hydrate:tR,create:dm,normalize:nR},Zk=Yk;function ua(e,t){const n=e.props&&e.props[t];et(n)&&n()}function Qk(e,t,n,r,o,s,l,a,c){const{p:d,o:{createElement:p}}=c,h=p("div"),g=e.suspense=dm(e,o,r,t,h,n,s,l,a,c);d(null,g.pendingBranch=e.ssContent,h,null,r,g,s,l),g.deps>0?(ua(e,"onPending"),ua(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,s,l),Us(g,e.ssFallback)):g.resolve()}function eR(e,t,n,r,o,s,l,a,{p:c,um:d,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const g=t.ssContent,y=t.ssFallback,{activeBranch:_,pendingBranch:S,isInFallback:C,isHydrating:T}=h;if(S)h.pendingBranch=g,Jr(g,S)?(c(S,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():C&&(c(_,y,n,r,o,null,s,l,a),Us(h,y))):(h.pendingId++,T?(h.isHydrating=!1,h.activeBranch=S):d(S,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),C?(c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():(c(_,y,n,r,o,null,s,l,a),Us(h,y))):_&&Jr(g,_)?(c(_,g,n,r,o,h,s,l,a),h.resolve(!0)):(c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0&&h.resolve()));else if(_&&Jr(g,_))c(_,g,n,r,o,h,s,l,a),Us(h,g);else if(ua(t,"onPending"),h.pendingBranch=g,h.pendingId++,c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0)h.resolve();else{const{timeout:w,pendingId:E}=h;w>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},w):w===0&&h.fallback(y)}}function dm(e,t,n,r,o,s,l,a,c,d,p=!1){const{p:h,m:g,um:y,n:_,o:{parentNode:S,remove:C}}=d,T=e.props?JI(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof T=="number"?T:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:O,activeBranch:x,pendingBranch:I,pendingId:k,effects:P,parentComponent:H,container:D}=w;if(w.isHydrating)w.isHydrating=!1;else if(!E){const G=x&&I.transition&&I.transition.mode==="out-in";G&&(x.transition.afterLeave=()=>{k===w.pendingId&&g(I,D,te,0)});let{anchor:te}=w;x&&(te=_(x),y(x,H,w,!0)),G||g(I,D,te,0)}Us(w,I),w.pendingBranch=null,w.isInFallback=!1;let F=w.parent,z=!1;for(;F;){if(F.pendingBranch){F.effects.push(...P),z=!0;break}F=F.parent}z||um(P),w.effects=[],ua(O,"onResolve")},fallback(E){if(!w.pendingBranch)return;const{vnode:O,activeBranch:x,parentComponent:I,container:k,isSVG:P}=w;ua(O,"onFallback");const H=_(x),D=()=>{w.isInFallback&&(h(null,E,k,H,I,null,P,a,c),Us(w,E))},F=E.transition&&E.transition.mode==="out-in";F&&(x.transition.afterLeave=D),w.isInFallback=!0,y(x,I,null,!0),F||D()},move(E,O,x){w.activeBranch&&g(w.activeBranch,E,O,x),w.container=E},next(){return w.activeBranch&&_(w.activeBranch)},registerDep(E,O){const x=!!w.pendingBranch;x&&w.deps++;const I=E.vnode.el;E.asyncDep.catch(k=>{ds(k,E,0)}).then(k=>{if(E.isUnmounted||w.isUnmounted||w.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:P}=E;oh(E,k,!1),I&&(P.el=I);const H=!I&&E.subTree.el;O(E,P,S(I||E.subTree.el),I?null:_(E.subTree),w,l,c),H&&C(H),cm(E,P.el),x&&--w.deps===0&&w.resolve()})},unmount(E,O){w.isUnmounted=!0,w.activeBranch&&y(w.activeBranch,n,E,O),w.pendingBranch&&y(w.pendingBranch,n,E,O)}};return w}function tR(e,t,n,r,o,s,l,a,c){const d=t.suspense=dm(t,r,n,e.parentNode,document.createElement("div"),null,o,s,l,a,!0),p=c(e,d.pendingBranch=t.ssContent,n,d,s,l);return d.deps===0&&d.resolve(),p}function nR(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Zy(r?n.default:n),e.ssFallback=r?Zy(n.fallback):q(Rn)}function Zy(e){let t;if(et(e)){const n=as&&e._c;n&&(e._d=!1,N()),e=e(),n&&(e._d=!0,t=Zn,cw())}return Je(e)&&(e=Kk(e)),e=hr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function M1(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):um(e)}function Us(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,cm(r,o))}function Zt(e,t){if(Jt){let n=Jt.provides;const r=Jt.parent&&Jt.parent.provides;r===n&&(n=Jt.provides=Object.create(r)),n[e]=t}}function Rt(e,t,n=!1){const r=Jt||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 Ta(e,null,t)}function D1(e,t){return Ta(e,null,{flush:"post"})}function rR(e,t){return Ta(e,null,{flush:"sync"})}const Vu={};function Ft(e,t,n){return Ta(e,t,n)}function Ta(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:l}=Ut){const a=f1()===(Jt==null?void 0:Jt.scope)?Jt:null;let c,d=!1,p=!1;if(dn(e)?(c=()=>e.value,d=oa(e)):Yi(e)?(c=()=>e,r=!0):Je(e)?(p=!0,d=e.some(E=>Yi(E)||oa(E)),c=()=>e.map(E=>{if(dn(E))return E.value;if(Yi(E))return qi(E);if(et(E))return jo(E,a,2)})):et(e)?t?c=()=>jo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),vr(e,a,3,[g])}:c=vo,t&&r){const E=c;c=()=>qi(E())}let h,g=E=>{h=T.onStop=()=>{jo(E,a,4)}},y;if(qs)if(g=vo,t?n&&vr(t,a,3,[c(),p?[]:void 0,g]):c(),o==="sync"){const E=xw();y=E.__watcherHandles||(E.__watcherHandles=[])}else return vo;let _=p?new Array(e.length).fill(Vu):Vu;const S=()=>{if(T.active)if(t){const E=T.run();(r||d||(p?E.some((O,x)=>Ws(O,_[x])):Ws(E,_)))&&(h&&h(),vr(t,a,3,[E,_===Vu?void 0:p&&_[0]===Vu?[]:_,g]),_=E)}else T.run()};S.allowRecurse=!!t;let C;o==="sync"?C=S:o==="post"?C=()=>Sn(S,a&&a.suspense):(S.pre=!0,a&&(S.id=a.uid),C=()=>ld(S));const T=new Ca(c,C);t?n?S():_=T.run():o==="post"?Sn(T.run.bind(T),a&&a.suspense):T.run();const w=()=>{T.stop(),a&&a.scope&&Gh(a.scope.effects,T)};return y&&y.push(w),w}function oR(e,t,n){const r=this.proxy,o=on(e)?e.includes(".")?F1(r,e):()=>r[e]:e.bind(r,r);let s;et(t)?s=t:(s=t.handler,n=t);const l=Jt;_i(this);const a=Ta(o,s.bind(r),n);return l?_i(l):gi(),a}function F1(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 qi(e,t){if(!qt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),dn(e))qi(e.value,t);else if(Je(e))for(let n=0;n<e.length;n++)qi(e[n],t);else if(a1(e)||Fs(e))e.forEach(n=>{qi(n,t)});else if(c1(e))for(const n in e)qi(e[n],t);return e}function fm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vt(()=>{e.isMounted=!0}),fs(()=>{e.isUnmounting=!0}),e}const Ir=[Function,Array],iR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ir,onEnter:Ir,onAfterEnter:Ir,onEnterCancelled:Ir,onBeforeLeave:Ir,onLeave:Ir,onAfterLeave:Ir,onLeaveCancelled:Ir,onBeforeAppear:Ir,onAppear:Ir,onAfterAppear:Ir,onAppearCancelled:Ir},setup(e,{slots:t}){const n=Xo(),r=fm();let o;return()=>{const s=t.default&&cd(t.default(),!0);if(!s||!s.length)return;let l=s[0];if(s.length>1){for(const S of s)if(S.type!==Rn){l=S;break}}const a=Ue(e),{mode:c}=a;if(r.isLeaving)return pp(l);const d=Qy(l);if(!d)return pp(l);const p=zs(d,a,r,n);ss(d,p);const h=n.subTree,g=h&&Qy(h);let y=!1;const{getTransitionKey:_}=d.type;if(_){const S=_();o===void 0?o=S:S!==o&&(o=S,y=!0)}if(g&&g.type!==Rn&&(!Jr(d,g)||y)){const S=zs(g,a,r,n);if(ss(g,S),c==="out-in")return r.isLeaving=!0,S.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},pp(l);c==="in-out"&&d.type!==Rn&&(S.delayLeave=(C,T,w)=>{const E=B1(r,g);E[String(g.key)]=g,C._leaveCb=()=>{T(),C._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=w})}return l}}},pm=iR;function B1(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 zs(e,t,n,r){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:g,onAfterLeave:y,onLeaveCancelled:_,onBeforeAppear:S,onAppear:C,onAfterAppear:T,onAppearCancelled:w}=t,E=String(e.key),O=B1(n,e),x=(P,H)=>{P&&vr(P,r,9,H)},I=(P,H)=>{const D=H[1];x(P,H),Je(P)?P.every(F=>F.length<=1)&&D():P.length<=1&&D()},k={mode:s,persisted:l,beforeEnter(P){let H=a;if(!n.isMounted)if(o)H=S||a;else return;P._leaveCb&&P._leaveCb(!0);const D=O[E];D&&Jr(e,D)&&D.el._leaveCb&&D.el._leaveCb(),x(H,[P])},enter(P){let H=c,D=d,F=p;if(!n.isMounted)if(o)H=C||c,D=T||d,F=w||p;else return;let z=!1;const G=P._enterCb=te=>{z||(z=!0,te?x(F,[P]):x(D,[P]),k.delayedLeave&&k.delayedLeave(),P._enterCb=void 0)};H?I(H,[P,G]):G()},leave(P,H){const D=String(e.key);if(P._enterCb&&P._enterCb(!0),n.isUnmounting)return H();x(h,[P]);let F=!1;const z=P._leaveCb=G=>{F||(F=!0,H(),G?x(_,[P]):x(y,[P]),P._leaveCb=void 0,O[D]===e&&delete O[D])};O[D]=e,g?I(g,[P,z]):z()},clone(P){return zs(P,t,n,r)}};return k}function pp(e){if(Oa(e))return e=Ur(e),e.children=null,e}function Qy(e){return Oa(e)?e.children?e.children[0]:void 0:e}function ss(e,t){e.shapeFlag&6&&e.component?ss(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 cd(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(cd(l.children,t,a))):(t||l.type!==Rn)&&r.push(a!=null?Ur(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 Zi=e=>!!e.type.__asyncLoader;function sR(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,d,p=0;const h=()=>(p++,c=null,g()),g=()=>{let y;return c||(y=c=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),a)return new Promise((S,C)=>{a(_,()=>S(h()),()=>C(_),p+1)});throw _}).then(_=>y!==c&&c?c:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),d=_,_)))};return ve({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return d},setup(){const y=Jt;if(d)return()=>hp(d,y);const _=w=>{c=null,ds(w,y,13,!r)};if(l&&y.suspense||qs)return g().then(w=>()=>hp(w,y)).catch(w=>(_(w),()=>r?q(r,{error:w}):null));const S=_e(!1),C=_e(),T=_e(!!o);return o&&setTimeout(()=>{T.value=!1},o),s!=null&&setTimeout(()=>{if(!S.value&&!C.value){const w=new Error(`Async component timed out after ${s}ms.`);_(w),C.value=w}},s),g().then(()=>{S.value=!0,y.parent&&Oa(y.parent.vnode)&&ld(y.parent.update)}).catch(w=>{_(w),C.value=w}),()=>{if(S.value&&d)return hp(d,y);if(C.value&&r)return q(r,{error:C.value});if(n&&!T.value)return q(n)}}})}function hp(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 Oa=e=>e.type.__isKeepAlive,lR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Xo(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const o=new Map,s=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:d,um:p,o:{createElement:h}}}=r,g=h("div");r.activate=(w,E,O,x,I)=>{const k=w.component;d(w,E,O,0,a),c(k.vnode,w,E,O,k,a,x,w.slotScopeIds,I),Sn(()=>{k.isDeactivated=!1,k.a&&zl(k.a);const P=w.props&&w.props.onVnodeMounted;P&&Yn(P,k.parent,w)},a)},r.deactivate=w=>{const E=w.component;d(w,g,null,1,a),Sn(()=>{E.da&&zl(E.da);const O=w.props&&w.props.onVnodeUnmounted;O&&Yn(O,E.parent,w),E.isDeactivated=!0},a)};function y(w){mp(w),p(w,n,a,!0)}function _(w){o.forEach((E,O)=>{const x=sh(E.type);x&&(!w||!w(x))&&S(O)})}function S(w){const E=o.get(w);!l||!Jr(E,l)?y(E):l&&mp(l),o.delete(w),s.delete(w)}Ft(()=>[e.include,e.exclude],([w,E])=>{w&&_(O=>Ul(w,O)),E&&_(O=>!Ul(E,O))},{flush:"post",deep:!0});let C=null;const T=()=>{C!=null&&o.set(C,gp(n.subTree))};return vt(T),fd(T),fs(()=>{o.forEach(w=>{const{subTree:E,suspense:O}=n,x=gp(E);if(w.type===x.type&&w.key===x.key){mp(x);const I=x.component.da;I&&Sn(I,O);return}y(w)})}),()=>{if(C=null,!t.default)return null;const w=t.default(),E=w[0];if(w.length>1)return l=null,w;if(!bi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let O=gp(E);const x=O.type,I=sh(Zi(O)?O.type.__asyncResolved||{}:x),{include:k,exclude:P,max:H}=e;if(k&&(!I||!Ul(k,I))||P&&I&&Ul(P,I))return l=O,E;const D=O.key==null?x:O.key,F=o.get(D);return O.el&&(O=Ur(O),E.shapeFlag&128&&(E.ssContent=O)),C=D,F?(O.el=F.el,O.component=F.component,O.transition&&ss(O,O.transition),O.shapeFlag|=512,s.delete(D),s.add(D)):(s.add(D),H&&s.size>parseInt(H,10)&&S(s.values().next().value)),O.shapeFlag|=256,l=O,N1(E.type)?E:O}}},aR=lR;function Ul(e,t){return Je(e)?e.some(n=>Ul(n,t)):on(e)?e.split(",").includes(t):zI(e)?e.test(t):!1}function U1(e,t){H1(e,"a",t)}function j1(e,t){H1(e,"da",t)}function H1(e,t,n=Jt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(dd(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Oa(o.parent.vnode)&&uR(r,t,n,o),o=o.parent}}function uR(e,t,n,r){const o=dd(t,e,r,!0);Qt(()=>{Gh(r[t],o)},n)}function mp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function gp(e){return e.shapeFlag&128?e.ssContent:e}function dd(e,t,n=Jt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;al(),_i(n);const a=vr(t,n,e,l);return gi(),ul(),a});return r?o.unshift(s):o.push(s),s}}const Go=e=>(t,n=Jt)=>(!qs||e==="sp")&&dd(e,(...r)=>t(...r),n),V1=Go("bm"),vt=Go("m"),W1=Go("bu"),fd=Go("u"),fs=Go("bum"),Qt=Go("um"),z1=Go("sp"),q1=Go("rtg"),K1=Go("rtc");function G1(e,t=Jt){dd("ec",e,t)}function X1(e,t){const n=xn;if(n===null)return e;const r=hd(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,a,c,d=Ut]=t[s];l&&(et(l)&&(l={mounted:l,updated:l}),l.deep&&qi(a),o.push({dir:l,instance:r,value:a,oldValue:void 0,arg:c,modifiers:d}))}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&&(al(),vr(c,n,8,[e.el,a,e,t]),ul())}}const hm="components",cR="directives";function J(e,t){return mm(hm,e,!0,t)||e}const J1=Symbol();function dR(e){return on(e)?mm(hm,e,!1)||e:e||J1}function fR(e){return mm(cR,e)}function mm(e,t,n=!0,r=!1){const o=xn||Jt;if(o){const s=o.type;if(e===hm){const a=sh(s,!1);if(a&&(a===t||a===eo(t)||a===ed(eo(t))))return s}const l=eb(o[e]||s[e],t)||eb(o.appContext[e],t);return!l&&r?s:l}}function eb(e,t){return e&&(e[t]||e[eo(t)]||e[ed(eo(t))])}function Dt(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 d=l[a];o[a]=t(e[d],d,a,s&&s[a])}}else o=[];return n&&(n[r]=o),o}function pR(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 _r(e,t,n={},r,o){if(xn.isCE||xn.parent&&Zi(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&&Y1(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 Y1(e){return e.some(t=>bi(t)?!(t.type===Rn||t.type===Fe&&!Y1(t.children)):!0)?e:null}function hR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Wl(r)]=e[r];return n}const Yp=e=>e?gw(e)?hd(e)||e.proxy:Yp(e.parent):null,ql=$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=>Yp(e.parent),$root:e=>Yp(e.root),$emit:e=>e.emit,$options:e=>gm(e),$forceUpdate:e=>e.f||(e.f=()=>ld(e.update)),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>oR.bind(e)}),vp=(e,t)=>e!==Ut&&!e.__isScriptSetup&&_t(e,t),Zp={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:l,type:a,appContext:c}=e;let d;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(vp(r,t))return l[t]=1,r[t];if(o!==Ut&&_t(o,t))return l[t]=2,o[t];if((d=e.propsOptions[0])&&_t(d,t))return l[t]=3,s[t];if(n!==Ut&&_t(n,t))return l[t]=4,n[t];Qp&&(l[t]=0)}}const p=ql[t];let h,g;if(p)return t==="$attrs"&&or(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(g=c.config.globalProperties,_t(g,t))return g[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return vp(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)||vp(t,l)||(a=s[0])&&_t(a,l)||_t(r,l)||_t(ql,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)}},mR=$n({},Zp,{get(e,t){if(t!==Symbol.unscopables)return Zp.get(e,t,e)},has(e,t){return t[0]!=="_"&&!MI(t)}});let Qp=!0;function gR(e){const t=gm(e),n=e.proxy,r=e.ctx;Qp=!1,t.beforeCreate&&tb(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:l,watch:a,provide:c,inject:d,created:p,beforeMount:h,mounted:g,beforeUpdate:y,updated:_,activated:S,deactivated:C,beforeDestroy:T,beforeUnmount:w,destroyed:E,unmounted:O,render:x,renderTracked:I,renderTriggered:k,errorCaptured:P,serverPrefetch:H,expose:D,inheritAttrs:F,components:z,directives:G,filters:te}=t;if(d&&vR(d,r,null,e.appContext.config.unwrapInjectedRef),l)for(const Ae in l){const Pe=l[Ae];et(Pe)&&(r[Ae]=Pe.bind(n))}if(o){const Ae=o.call(n,n);qt(Ae)&&(e.data=xi(Ae))}if(Qp=!0,s)for(const Ae in s){const Pe=s[Ae],Ye=et(Pe)?Pe.bind(n,n):et(Pe.get)?Pe.get.bind(n,n):vo,ft=!et(Pe)&&et(Pe.set)?Pe.set.bind(n):vo,Le=ce({get:Ye,set:ft});Object.defineProperty(r,Ae,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Ge=>Le.value=Ge})}if(a)for(const Ae in a)Z1(a[Ae],r,n,Ae);if(c){const Ae=et(c)?c.call(n):c;Reflect.ownKeys(Ae).forEach(Pe=>{Zt(Pe,Ae[Pe])})}p&&tb(p,e,"c");function be(Ae,Pe){Je(Pe)?Pe.forEach(Ye=>Ae(Ye.bind(n))):Pe&&Ae(Pe.bind(n))}if(be(V1,h),be(vt,g),be(W1,y),be(fd,_),be(U1,S),be(j1,C),be(G1,P),be(K1,I),be(q1,k),be(fs,w),be(Qt,O),be(z1,H),Je(D))if(D.length){const Ae=e.exposed||(e.exposed={});D.forEach(Pe=>{Object.defineProperty(Ae,Pe,{get:()=>n[Pe],set:Ye=>n[Pe]=Ye})})}else e.exposed||(e.exposed={});x&&e.render===vo&&(e.render=x),F!=null&&(e.inheritAttrs=F),z&&(e.components=z),G&&(e.directives=G)}function vR(e,t,n=vo,r=!1){Je(e)&&(e=eh(e));for(const o in e){const s=e[o];let l;qt(s)?"default"in s?l=Rt(s.from||o,s.default,!0):l=Rt(s.from||o):l=Rt(s),dn(l)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[o]=l}}function tb(e,t,n){vr(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Z1(e,t,n,r){const o=r.includes(".")?F1(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=>Z1(s,t,n,r));else{const s=et(e.handler)?e.handler.bind(n):t[e.handler];et(s)&&Ft(o,s,e)}}function gm(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(d=>_c(c,d,l,!0)),_c(c,t,l)),qt(t)&&s.set(t,c),c}function _c(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&_c(e,s,n,!0),o&&o.forEach(l=>_c(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=yR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const yR={data:nb,props:Hi,emits:Hi,methods:Hi,computed:Hi,beforeCreate:jn,created:jn,beforeMount:jn,mounted:jn,beforeUpdate:jn,updated:jn,beforeDestroy:jn,beforeUnmount:jn,destroyed:jn,unmounted:jn,activated:jn,deactivated:jn,errorCaptured:jn,serverPrefetch:jn,components:Hi,directives:Hi,watch:_R,provide:nb,inject:bR};function nb(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 bR(e,t){return Hi(eh(e),eh(t))}function eh(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function jn(e,t){return e?[...new Set([].concat(e,t))]:t}function Hi(e,t){return e?$n($n(Object.create(null),e),t):t}function _R(e,t){if(!e)return t;if(!t)return e;const n=$n(Object.create(null),e);for(const r in t)n[r]=jn(e[r],t[r]);return n}function wR(e,t,n,r=!1){const o={},s={};vc(s,pd,1),e.propsDefaults=Object.create(null),Q1(e,t,o,s);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:C1(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function SR(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:l}}=e,a=Ue(o),[c]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let g=p[h];if(ad(e.emitsOptions,g))continue;const y=t[g];if(c)if(_t(s,g))y!==s[g]&&(s[g]=y,d=!0);else{const _=eo(g);o[_]=th(c,a,_,y,e,!1)}else y!==s[g]&&(s[g]=y,d=!0)}}}else{Q1(e,t,o,s)&&(d=!0);let p;for(const h in a)(!t||!_t(t,h)&&((p=Qc(h))===h||!_t(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=th(c,a,h,void 0,e,!0)):delete o[h]);if(s!==a)for(const h in s)(!t||!_t(t,h))&&(delete s[h],d=!0)}d&&zo(e,"set","$attrs")}function Q1(e,t,n,r){const[o,s]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(Vl(c))continue;const d=t[c];let p;o&&_t(o,p=eo(c))?!s||!s.includes(p)?n[p]=d:(a||(a={}))[p]=d:ad(e.emitsOptions,c)||(!(c in r)||d!==r[c])&&(r[c]=d,l=!0)}if(s){const c=Ue(n),d=a||Ut;for(let p=0;p<s.length;p++){const h=s[p];n[h]=th(o,c,h,d[h],e,!_t(d,h))}}return l}function th(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:d}=o;n in d?r=d[n]:(_i(o),r=d[n]=c.call(null,t),gi())}else r=c}l[0]&&(s&&!a?r=!1:l[1]&&(r===""||r===Qc(n))&&(r=!0))}return r}function ew(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[g,y]=ew(h,t,!0);$n(l,g),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,Ds),Ds;if(Je(s))for(let p=0;p<s.length;p++){const h=eo(s[p]);rb(h)&&(l[h]=Ut)}else if(s)for(const p in s){const h=eo(p);if(rb(h)){const g=s[p],y=l[h]=Je(g)||et(g)?{type:g}:Object.assign({},g);if(y){const _=sb(Boolean,y.type),S=sb(String,y.type);y[0]=_>-1,y[1]=S<0||_<S,(_>-1||_t(y,"default"))&&a.push(h)}}}const d=[l,a];return qt(e)&&r.set(e,d),d}function rb(e){return e[0]!=="$"}function ob(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ib(e,t){return ob(e)===ob(t)}function sb(e,t){return Je(t)?t.findIndex(n=>ib(n,e)):et(t)&&ib(t,e)?0:-1}const tw=e=>e[0]==="_"||e==="$stable",vm=e=>Je(e)?e.map(hr):[hr(e)],ER=(e,t,n)=>{if(t._n)return t;const r=ye((...o)=>vm(t(...o)),n);return r._c=!1,r},nw=(e,t,n)=>{const r=e._ctx;for(const o in e){if(tw(o))continue;const s=e[o];if(et(s))t[o]=ER(o,s,r);else if(s!=null){const l=vm(s);t[o]=()=>l}}},rw=(e,t)=>{const n=vm(t);e.slots.default=()=>n},xR=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ue(t),vc(t,"_",n)):nw(t,e.slots={})}else e.slots={},t&&rw(e,t);vc(e.slots,pd,1)},$R=(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,nw(t,o)),l=t}else t&&(rw(e,t),l={default:1});if(s)for(const a in o)!tw(a)&&!(a in l)&&delete o[a]};function ow(){return{app:null,config:{isNativeTag:HI,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 CR=0;function TR(e,t){return function(r,o=null){et(r)||(r=Object.assign({},r)),o!=null&&!qt(o)&&(o=null);const s=ow(),l=new Set;let a=!1;const c=s.app={_uid:CR++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:Cw,get config(){return s.config},set config(d){},use(d,...p){return l.has(d)||(d&&et(d.install)?(l.add(d),d.install(c,...p)):et(d)&&(l.add(d),d(c,...p))),c},mixin(d){return s.mixins.includes(d)||s.mixins.push(d),c},component(d,p){return p?(s.components[d]=p,c):s.components[d]},directive(d,p){return p?(s.directives[d]=p,c):s.directives[d]},mount(d,p,h){if(!a){const g=q(r,o);return g.appContext=s,p&&t?t(g,d):e(g,d,h),a=!0,c._container=d,d.__vue_app__=c,hd(g.component)||g.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(d,p){return s.provides[d]=p,c}};return c}}function wc(e,t,n,r,o=!1){if(Je(e)){e.forEach((g,y)=>wc(g,t&&(Je(t)?t[y]:t),n,r,o));return}if(Zi(r)&&!o)return;const s=r.shapeFlag&4?hd(r.component)||r.component.proxy:r.el,l=o?null:s,{i:a,r:c}=e,d=t&&t.r,p=a.refs===Ut?a.refs={}:a.refs,h=a.setupState;if(d!=null&&d!==c&&(on(d)?(p[d]=null,_t(h,d)&&(h[d]=null)):dn(d)&&(d.value=null)),et(c))jo(c,a,12,[l,p]);else{const g=on(c),y=dn(c);if(g||y){const _=()=>{if(e.f){const S=g?_t(h,c)?h[c]:p[c]:c.value;o?Je(S)&&Gh(S,s):Je(S)?S.includes(s)||S.push(s):g?(p[c]=[s],_t(h,c)&&(h[c]=p[c])):(c.value=[s],e.k&&(p[e.k]=c.value))}else g?(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 li=!1;const Wu=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",zu=e=>e.nodeType===8;function OR(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:l,remove:a,insert:c,createComment:d}}=e,p=(T,w)=>{if(!w.hasChildNodes()){n(null,T,w),bc(),w._vnode=T;return}li=!1,h(w.firstChild,T,null,null,null),bc(),w._vnode=T,li&&console.error("Hydration completed but contains mismatches.")},h=(T,w,E,O,x,I=!1)=>{const k=zu(T)&&T.data==="[",P=()=>S(T,w,E,O,x,k),{type:H,ref:D,shapeFlag:F,patchFlag:z}=w;let G=T.nodeType;w.el=T,z===-2&&(I=!1,w.dynamicChildren=null);let te=null;switch(H){case ls:G!==3?w.children===""?(c(w.el=o(""),l(T),T),te=T):te=P():(T.data!==w.children&&(li=!0,T.data=w.children),te=s(T));break;case Rn:G!==8||k?te=P():te=s(T);break;case Qi:if(k&&(T=s(T),G=T.nodeType),G===1||G===3){te=T;const we=!w.children.length;for(let be=0;be<w.staticCount;be++)we&&(w.children+=te.nodeType===1?te.outerHTML:te.data),be===w.staticCount-1&&(w.anchor=te),te=s(te);return k?s(te):te}else P();break;case Fe:k?te=_(T,w,E,O,x,I):te=P();break;default:if(F&1)G!==1||w.type.toLowerCase()!==T.tagName.toLowerCase()?te=P():te=g(T,w,E,O,x,I);else if(F&6){w.slotScopeIds=x;const we=l(T);if(t(w,we,null,E,O,Wu(we),I),te=k?C(T):s(T),te&&zu(te)&&te.data==="teleport end"&&(te=s(te)),Zi(w)){let be;k?(be=q(Fe),be.anchor=te?te.previousSibling:we.lastChild):be=T.nodeType===3?Xe(""):q("div"),be.el=T,w.component.subTree=be}}else F&64?G!==8?te=P():te=w.type.hydrate(T,w,E,O,x,I,e,y):F&128&&(te=w.type.hydrate(T,w,E,O,Wu(l(T)),x,I,e,h))}return D!=null&&wc(D,null,O,w),te},g=(T,w,E,O,x,I)=>{I=I||!!w.dynamicChildren;const{type:k,props:P,patchFlag:H,shapeFlag:D,dirs:F}=w,z=k==="input"&&F||k==="option";if(z||H!==-1){if(F&&mo(w,null,E,"created"),P)if(z||!I||H&48)for(const te in P)(z&&te.endsWith("value")||Yc(te)&&!Vl(te))&&r(T,te,null,P[te],!1,void 0,E);else P.onClick&&r(T,"onClick",null,P.onClick,!1,void 0,E);let G;if((G=P&&P.onVnodeBeforeMount)&&Yn(G,E,w),F&&mo(w,null,E,"beforeMount"),((G=P&&P.onVnodeMounted)||F)&&M1(()=>{G&&Yn(G,E,w),F&&mo(w,null,E,"mounted")},O),D&16&&!(P&&(P.innerHTML||P.textContent))){let te=y(T.firstChild,w,T,E,O,x,I);for(;te;){li=!0;const we=te;te=te.nextSibling,a(we)}}else D&8&&T.textContent!==w.children&&(li=!0,T.textContent=w.children)}return T.nextSibling},y=(T,w,E,O,x,I,k)=>{k=k||!!w.dynamicChildren;const P=w.children,H=P.length;for(let D=0;D<H;D++){const F=k?P[D]:P[D]=hr(P[D]);if(T)T=h(T,F,O,x,I,k);else{if(F.type===ls&&!F.children)continue;li=!0,n(null,F,E,null,O,x,Wu(E),I)}}return T},_=(T,w,E,O,x,I)=>{const{slotScopeIds:k}=w;k&&(x=x?x.concat(k):k);const P=l(T),H=y(s(T),w,P,E,O,x,I);return H&&zu(H)&&H.data==="]"?s(w.anchor=H):(li=!0,c(w.anchor=d("]"),P,H),H)},S=(T,w,E,O,x,I)=>{if(li=!0,w.el=null,I){const H=C(T);for(;;){const D=s(T);if(D&&D!==H)a(D);else break}}const k=s(T),P=l(T);return a(T),n(null,w,P,k,E,O,Wu(P),x),k},C=T=>{let w=0;for(;T;)if(T=s(T),T&&zu(T)&&(T.data==="["&&w++,T.data==="]")){if(w===0)return s(T);w--}return T};return[p,h]}const Sn=M1;function iw(e){return lw(e)}function sw(e){return lw(e,OR)}function lw(e,t){const n=YI();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:l,createText:a,createComment:c,setText:d,setElementText:p,parentNode:h,nextSibling:g,setScopeId:y=vo,insertStaticContent:_}=e,S=(L,B,Z,le=null,ie=null,pe=null,Ce=!1,me=null,ge=!!B.dynamicChildren)=>{if(L===B)return;L&&!Jr(L,B)&&(le=Ve(L),Ge(L,ie,pe,!0),L=null),B.patchFlag===-2&&(ge=!1,B.dynamicChildren=null);const{type:se,ref:Re,shapeFlag:Ie}=B;switch(se){case ls:C(L,B,Z,le);break;case Rn:T(L,B,Z,le);break;case Qi:L==null&&w(B,Z,le,Ce);break;case Fe:z(L,B,Z,le,ie,pe,Ce,me,ge);break;default:Ie&1?x(L,B,Z,le,ie,pe,Ce,me,ge):Ie&6?G(L,B,Z,le,ie,pe,Ce,me,ge):(Ie&64||Ie&128)&&se.process(L,B,Z,le,ie,pe,Ce,me,ge,tt)}Re!=null&&ie&&wc(Re,L&&L.ref,pe,B||L,!B)},C=(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&&d(ie,B.children)}},T=(L,B,Z,le)=>{L==null?r(B.el=c(B.children||""),Z,le):B.el=L.el},w=(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=g(L),r(L,Z,le),L=ie;r(B,Z,le)},O=({el:L,anchor:B})=>{let Z;for(;L&&L!==B;)Z=g(L),o(L),L=Z;o(B)},x=(L,B,Z,le,ie,pe,Ce,me,ge)=>{Ce=Ce||B.type==="svg",L==null?I(B,Z,le,ie,pe,Ce,me,ge):H(L,B,ie,pe,Ce,me,ge)},I=(L,B,Z,le,ie,pe,Ce,me)=>{let ge,se;const{type:Re,props:Ie,shapeFlag:Me,transition:je,dirs:rt}=L;if(ge=L.el=l(L.type,pe,Ie&&Ie.is,Ie),Me&8?p(ge,L.children):Me&16&&P(L.children,ge,null,le,ie,pe&&Re!=="foreignObject",Ce,me),rt&&mo(L,null,le,"created"),k(ge,L,L.scopeId,Ce,le),Ie){for(const ct in Ie)ct!=="value"&&!Vl(ct)&&s(ge,ct,null,Ie[ct],pe,L.children,le,ie,$e);"value"in Ie&&s(ge,"value",null,Ie.value),(se=Ie.onVnodeBeforeMount)&&Yn(se,le,L)}rt&&mo(L,null,le,"beforeMount");const mt=(!ie||ie&&!ie.pendingBranch)&&je&&!je.persisted;mt&&je.beforeEnter(ge),r(ge,B,Z),((se=Ie&&Ie.onVnodeMounted)||mt||rt)&&Sn(()=>{se&&Yn(se,le,L),mt&&je.enter(ge),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 Ce=ie.vnode;k(L,Ce,Ce.scopeId,Ce.slotScopeIds,ie.parent)}}},P=(L,B,Z,le,ie,pe,Ce,me,ge=0)=>{for(let se=ge;se<L.length;se++){const Re=L[se]=me?di(L[se]):hr(L[se]);S(null,Re,B,Z,le,ie,pe,Ce,me)}},H=(L,B,Z,le,ie,pe,Ce)=>{const me=B.el=L.el;let{patchFlag:ge,dynamicChildren:se,dirs:Re}=B;ge|=L.patchFlag&16;const Ie=L.props||Ut,Me=B.props||Ut;let je;Z&&Fi(Z,!1),(je=Me.onVnodeBeforeUpdate)&&Yn(je,Z,B,L),Re&&mo(B,L,Z,"beforeUpdate"),Z&&Fi(Z,!0);const rt=ie&&B.type!=="foreignObject";if(se?D(L.dynamicChildren,se,me,Z,le,rt,pe):Ce||Pe(L,B,me,null,Z,le,rt,pe,!1),ge>0){if(ge&16)F(me,B,Ie,Me,Z,le,ie);else if(ge&2&&Ie.class!==Me.class&&s(me,"class",null,Me.class,ie),ge&4&&s(me,"style",Ie.style,Me.style,ie),ge&8){const mt=B.dynamicProps;for(let ct=0;ct<mt.length;ct++){const Ht=mt[ct],Dn=Ie[Ht],uo=Me[Ht];(uo!==Dn||Ht==="value")&&s(me,Ht,Dn,uo,ie,L.children,Z,le,$e)}}ge&1&&L.children!==B.children&&p(me,B.children)}else!Ce&&se==null&&F(me,B,Ie,Me,Z,le,ie);((je=Me.onVnodeUpdated)||Re)&&Sn(()=>{je&&Yn(je,Z,B,L),Re&&mo(B,L,Z,"updated")},le)},D=(L,B,Z,le,ie,pe,Ce)=>{for(let me=0;me<B.length;me++){const ge=L[me],se=B[me],Re=ge.el&&(ge.type===Fe||!Jr(ge,se)||ge.shapeFlag&70)?h(ge.el):Z;S(ge,se,Re,null,le,ie,pe,Ce,!0)}},F=(L,B,Z,le,ie,pe,Ce)=>{if(Z!==le){if(Z!==Ut)for(const me in Z)!Vl(me)&&!(me in le)&&s(L,me,Z[me],null,Ce,B.children,ie,pe,$e);for(const me in le){if(Vl(me))continue;const ge=le[me],se=Z[me];ge!==se&&me!=="value"&&s(L,me,se,ge,Ce,B.children,ie,pe,$e)}"value"in le&&s(L,"value",Z.value,le.value)}},z=(L,B,Z,le,ie,pe,Ce,me,ge)=>{const se=B.el=L?L.el:a(""),Re=B.anchor=L?L.anchor:a("");let{patchFlag:Ie,dynamicChildren:Me,slotScopeIds:je}=B;je&&(me=me?me.concat(je):je),L==null?(r(se,Z,le),r(Re,Z,le),P(B.children,Z,Re,ie,pe,Ce,me,ge)):Ie>0&&Ie&64&&Me&&L.dynamicChildren?(D(L.dynamicChildren,Me,Z,ie,pe,Ce,me),(B.key!=null||ie&&B===ie.subTree)&&ym(L,B,!0)):Pe(L,B,Z,Re,ie,pe,Ce,me,ge)},G=(L,B,Z,le,ie,pe,Ce,me,ge)=>{B.slotScopeIds=me,L==null?B.shapeFlag&512?ie.ctx.activate(B,Z,le,Ce,ge):te(B,Z,le,ie,pe,Ce,ge):we(L,B,ge)},te=(L,B,Z,le,ie,pe,Ce)=>{const me=L.component=mw(L,le,ie);if(Oa(L)&&(me.ctx.renderer=tt),vw(me),me.asyncDep){if(ie&&ie.registerDep(me,be),!L.el){const ge=me.subTree=q(Rn);T(null,ge,B,Z)}return}be(me,L,B,Z,ie,pe,Ce)},we=(L,B,Z)=>{const le=B.component=L.component;if(Jk(L,B,Z))if(le.asyncDep&&!le.asyncResolved){Ae(le,B,Z);return}else le.next=B,jk(le.update),le.update();else B.el=L.el,le.vnode=B},be=(L,B,Z,le,ie,pe,Ce)=>{const me=()=>{if(L.isMounted){let{next:Re,bu:Ie,u:Me,parent:je,vnode:rt}=L,mt=Re,ct;Fi(L,!1),Re?(Re.el=rt.el,Ae(L,Re,Ce)):Re=rt,Ie&&zl(Ie),(ct=Re.props&&Re.props.onVnodeBeforeUpdate)&&Yn(ct,je,Re,rt),Fi(L,!0);const Ht=oc(L),Dn=L.subTree;L.subTree=Ht,S(Dn,Ht,h(Dn.el),Ve(Dn),L,ie,pe),Re.el=Ht.el,mt===null&&cm(L,Ht.el),Me&&Sn(Me,ie),(ct=Re.props&&Re.props.onVnodeUpdated)&&Sn(()=>Yn(ct,je,Re,rt),ie)}else{let Re;const{el:Ie,props:Me}=B,{bm:je,m:rt,parent:mt}=L,ct=Zi(B);if(Fi(L,!1),je&&zl(je),!ct&&(Re=Me&&Me.onVnodeBeforeMount)&&Yn(Re,mt,B),Fi(L,!0),Ie&&ln){const Ht=()=>{L.subTree=oc(L),ln(Ie,L.subTree,L,ie,null)};ct?B.type.__asyncLoader().then(()=>!L.isUnmounted&&Ht()):Ht()}else{const Ht=L.subTree=oc(L);S(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(()=>Yn(Re,mt,Ht),ie)}(B.shapeFlag&256||mt&&Zi(mt.vnode)&&mt.vnode.shapeFlag&256)&&L.a&&Sn(L.a,ie),L.isMounted=!0,B=Z=le=null}},ge=L.effect=new Ca(me,()=>ld(se),L.scope),se=L.update=()=>ge.run();se.id=L.uid,Fi(L,!0),se()},Ae=(L,B,Z)=>{B.component=L;const le=L.vnode.props;L.vnode=B,L.next=null,SR(L,B.props,le,Z),$R(L,B.children,Z),al(),Jy(),ul()},Pe=(L,B,Z,le,ie,pe,Ce,me,ge=!1)=>{const se=L&&L.children,Re=L?L.shapeFlag:0,Ie=B.children,{patchFlag:Me,shapeFlag:je}=B;if(Me>0){if(Me&128){ft(se,Ie,Z,le,ie,pe,Ce,me,ge);return}else if(Me&256){Ye(se,Ie,Z,le,ie,pe,Ce,me,ge);return}}je&8?(Re&16&&$e(se,ie,pe),Ie!==se&&p(Z,Ie)):Re&16?je&16?ft(se,Ie,Z,le,ie,pe,Ce,me,ge):$e(se,ie,pe,!0):(Re&8&&p(Z,""),je&16&&P(Ie,Z,le,ie,pe,Ce,me,ge))},Ye=(L,B,Z,le,ie,pe,Ce,me,ge)=>{L=L||Ds,B=B||Ds;const se=L.length,Re=B.length,Ie=Math.min(se,Re);let Me;for(Me=0;Me<Ie;Me++){const je=B[Me]=ge?di(B[Me]):hr(B[Me]);S(L[Me],je,Z,null,ie,pe,Ce,me,ge)}se>Re?$e(L,ie,pe,!0,!1,Ie):P(B,Z,le,ie,pe,Ce,me,ge,Ie)},ft=(L,B,Z,le,ie,pe,Ce,me,ge)=>{let se=0;const Re=B.length;let Ie=L.length-1,Me=Re-1;for(;se<=Ie&&se<=Me;){const je=L[se],rt=B[se]=ge?di(B[se]):hr(B[se]);if(Jr(je,rt))S(je,rt,Z,null,ie,pe,Ce,me,ge);else break;se++}for(;se<=Ie&&se<=Me;){const je=L[Ie],rt=B[Me]=ge?di(B[Me]):hr(B[Me]);if(Jr(je,rt))S(je,rt,Z,null,ie,pe,Ce,me,ge);else break;Ie--,Me--}if(se>Ie){if(se<=Me){const je=Me+1,rt=je<Re?B[je].el:le;for(;se<=Me;)S(null,B[se]=ge?di(B[se]):hr(B[se]),Z,rt,ie,pe,Ce,me,ge),se++}}else if(se>Me)for(;se<=Ie;)Ge(L[se],ie,pe,!0),se++;else{const je=se,rt=se,mt=new Map;for(se=rt;se<=Me;se++){const vn=B[se]=ge?di(B[se]):hr(B[se]);vn.key!=null&&mt.set(vn.key,se)}let ct,Ht=0;const Dn=Me-rt+1;let uo=!1,vs=0;const $o=new Array(Dn);for(se=0;se<Dn;se++)$o[se]=0;for(se=je;se<=Ie;se++){const vn=L[se];if(Ht>=Dn){Ge(vn,ie,pe,!0);continue}let qn;if(vn.key!=null)qn=mt.get(vn.key);else for(ct=rt;ct<=Me;ct++)if($o[ct-rt]===0&&Jr(vn,B[ct])){qn=ct;break}qn===void 0?Ge(vn,ie,pe,!0):($o[qn-rt]=se+1,qn>=vs?vs=qn:uo=!0,S(vn,B[qn],Z,null,ie,pe,Ce,me,ge),Ht++)}const ys=uo?AR($o):Ds;for(ct=ys.length-1,se=Dn-1;se>=0;se--){const vn=rt+se,qn=B[vn],bs=vn+1<Re?B[vn+1].el:le;$o[se]===0?S(null,qn,Z,bs,ie,pe,Ce,me,ge):uo&&(ct<0||se!==ys[ct]?Le(qn,Z,bs,2):ct--)}}},Le=(L,B,Z,le,ie=null)=>{const{el:pe,type:Ce,transition:me,children:ge,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){Ce.move(L,B,Z,tt);return}if(Ce===Fe){r(pe,B,Z);for(let Ie=0;Ie<ge.length;Ie++)Le(ge[Ie],B,Z,le);r(L.anchor,B,Z);return}if(Ce===Qi){E(L,B,Z);return}if(le!==2&&se&1&&me)if(le===0)me.beforeEnter(pe),r(pe,B,Z),Sn(()=>me.enter(pe),ie);else{const{leave:Ie,delayLeave:Me,afterLeave:je}=me,rt=()=>r(pe,B,Z),mt=()=>{Ie(pe,()=>{rt(),je&&je()})};Me?Me(pe,rt,mt):mt()}else r(pe,B,Z)},Ge=(L,B,Z,le=!1,ie=!1)=>{const{type:pe,props:Ce,ref:me,children:ge,dynamicChildren:se,shapeFlag:Re,patchFlag:Ie,dirs:Me}=L;if(me!=null&&wc(me,null,Z,L,!0),Re&256){B.ctx.deactivate(L);return}const je=Re&1&&Me,rt=!Zi(L);let mt;if(rt&&(mt=Ce&&Ce.onVnodeBeforeUnmount)&&Yn(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||Ie>0&&Ie&64)?$e(se,B,Z,!1,!0):(pe===Fe&&Ie&384||!ie&&Re&16)&&$e(ge,B,Z),le&&Q(L)}(rt&&(mt=Ce&&Ce.onVnodeUnmounted)||je)&&Sn(()=>{mt&&Yn(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===Qi){O(L);return}const pe=()=>{o(Z),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(L.shapeFlag&1&&ie&&!ie.persisted){const{leave:Ce,delayLeave:me}=ie,ge=()=>Ce(Z,pe);me?me(L.el,pe,ge):ge()}else pe()},ae=(L,B)=>{let Z;for(;L!==B;)Z=g(L),o(L),L=Z;o(B)},fe=(L,B,Z)=>{const{bum:le,scope:ie,update:pe,subTree:Ce,um:me}=L;le&&zl(le),ie.stop(),pe&&(pe.active=!1,Ge(Ce,L,B,Z)),me&&Sn(me,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())},$e=(L,B,Z,le=!1,ie=!1,pe=0)=>{for(let Ce=pe;Ce<L.length;Ce++)Ge(L[Ce],B,Z,le,ie)},Ve=L=>L.shapeFlag&6?Ve(L.component.subTree):L.shapeFlag&128?L.suspense.next():g(L.anchor||L.el),De=(L,B,Z)=>{L==null?B._vnode&&Ge(B._vnode,null,null,!0):S(B._vnode||null,L,B,null,null,null,Z),Jy(),bc(),B._vnode=L},tt={p:S,um:Ge,m:Le,r:Q,mt:te,mc:P,pc:Pe,pbc:D,n:Ve,o:e};let gn,ln;return t&&([gn,ln]=t(tt)),{render:De,hydrate:gn,createApp:TR(De,gn)}}function Fi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ym(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]=di(o[s]),a.el=l.el),n||ym(l,a)),a.type===ls&&(a.el=l.el)}}function AR(e){const t=e.slice(),n=[0];let r,o,s,l,a;const c=e.length;for(r=0;r<c;r++){const d=e[r];if(d!==0){if(o=n[n.length-1],e[o]<d){t[r]=o,n.push(r);continue}for(s=0,l=n.length-1;s<l;)a=s+l>>1,e[n[a]]<d?s=a+1:l=a;d<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 PR=e=>e.__isTeleport,Kl=e=>e&&(e.disabled||e.disabled===""),lb=e=>typeof SVGElement<"u"&&e instanceof SVGElement,nh=(e,t)=>{const n=e&&e.to;return on(n)?t?t(n):null:n},IR={__isTeleport:!0,process(e,t,n,r,o,s,l,a,c,d){const{mc:p,pc:h,pbc:g,o:{insert:y,querySelector:_,createText:S,createComment:C}}=d,T=Kl(t.props);let{shapeFlag:w,children:E,dynamicChildren:O}=t;if(e==null){const x=t.el=S(""),I=t.anchor=S("");y(x,n,r),y(I,n,r);const k=t.target=nh(t.props,_),P=t.targetAnchor=S("");k&&(y(P,k),l=l||lb(k));const H=(D,F)=>{w&16&&p(E,D,F,o,s,l,a,c)};T?H(n,I):k&&H(k,P)}else{t.el=e.el;const x=t.anchor=e.anchor,I=t.target=e.target,k=t.targetAnchor=e.targetAnchor,P=Kl(e.props),H=P?n:I,D=P?x:k;if(l=l||lb(I),O?(g(e.dynamicChildren,O,H,o,s,l,a),ym(e,t,!0)):c||h(e,t,H,D,o,s,l,a,!1),T)P||qu(t,n,x,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=nh(t.props,_);F&&qu(t,F,null,d,0)}else P&&qu(t,I,k,d,1)}uw(t)},remove(e,t,n,r,{um:o,o:{remove:s}},l){const{shapeFlag:a,children:c,anchor:d,targetAnchor:p,target:h,props:g}=e;if(h&&s(p),(l||!Kl(g))&&(s(d),a&16))for(let y=0;y<c.length;y++){const _=c[y];o(_,t,n,!0,!!_.dynamicChildren)}},move:qu,hydrate:kR};function qu(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:d,props:p}=e,h=s===2;if(h&&r(l,t,n),(!h||Kl(p))&&c&16)for(let g=0;g<d.length;g++)o(d[g],t,n,2);h&&r(a,t,n)}function kR(e,t,n,r,o,s,{o:{nextSibling:l,parentNode:a,querySelector:c}},d){const p=t.target=nh(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Kl(t.props))t.anchor=d(l(e),t,a(e),n,r,o,s),t.targetAnchor=h;else{t.anchor=l(e);let g=h;for(;g;)if(g=l(g),g&&g.nodeType===8&&g.data==="teleport anchor"){t.targetAnchor=g,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}d(h,t,p,n,r,o,s)}uw(t)}return t.anchor&&l(t.anchor)}const aw=IR;function uw(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),ls=Symbol(void 0),Rn=Symbol(void 0),Qi=Symbol(void 0),Gl=[];let Zn=null;function N(e=!1){Gl.push(Zn=e?null:[])}function cw(){Gl.pop(),Zn=Gl[Gl.length-1]||null}let as=1;function rh(e){as+=e}function dw(e){return e.dynamicChildren=as>0?Zn||Ds:null,cw(),as>0&&Zn&&Zn.push(e),e}function V(e,t,n,r,o,s){return dw(v(e,t,n,r,o,s,!0))}function bt(e,t,n,r,o){return dw(q(e,t,n,r,o,!0))}function bi(e){return e?e.__v_isVNode===!0:!1}function Jr(e,t){return e.type===t.type&&e.key===t.key}function RR(e){}const pd="__vInternal",fw=({key:e})=>e??null,ic=({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 v(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&&fw(t),ref:t&&ic(t),scopeId:ud,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?(bm(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=on(n)?8:16),as>0&&!l&&Zn&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&Zn.push(c),c}const q=LR;function LR(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===J1)&&(e=Rn),bi(e)){const a=Ur(e,t,!0);return n&&bm(a,n),as>0&&!s&&Zn&&(a.shapeFlag&6?Zn[Zn.indexOf(e)]=a:Zn.push(a)),a.patchFlag|=-2,a}if(jR(e)&&(e=e.__vccOpts),t){t=pw(t);let{class:a,style:c}=t;a&&!on(a)&&(t.class=St(a)),qt(c)&&(nm(c)&&!Je(c)&&(c=$n({},c)),t.style=Wo(c))}const l=on(e)?1:N1(e)?128:PR(e)?64:qt(e)?4:et(e)?2:0;return v(e,t,n,r,o,l,s,!0)}function pw(e){return e?nm(e)||pd in e?$n({},e):e:null}function Ur(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:l}=e,a=t?hw(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&fw(a),ref:t&&t.ref?n&&o?Je(o)?o.concat(ic(t)):[o,ic(t)]:ic(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&&Ur(e.ssContent),ssFallback:e.ssFallback&&Ur(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xe(e=" ",t=0){return q(ls,null,e,t)}function NR(e,t){const n=q(Qi,null,e);return n.staticCount=t,n}function He(e="",t=!1){return t?(N(),bt(Rn,null,e)):q(Rn,null,e)}function hr(e){return e==null||typeof e=="boolean"?q(Rn):Je(e)?q(Fe,null,e.slice()):typeof e=="object"?di(e):q(ls,null,String(e))}function di(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ur(e)}function bm(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),bm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(pd 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 hw(...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=St([t.class,r.class]));else if(o==="style")t.style=Wo([t.style,r.style]);else if(Yc(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 Yn(e,t,n,r=null){vr(e,t,7,[n,r])}const MR=ow();let DR=0;function mw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||MR,s={uid:DR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Zh(!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:ew(r,o),emitsOptions:L1(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=Vk.bind(null,s),e.ce&&e.ce(s),s}let Jt=null;const Xo=()=>Jt||xn,_i=e=>{Jt=e,e.scope.on()},gi=()=>{Jt&&Jt.scope.off(),Jt=null};function gw(e){return e.vnode.shapeFlag&4}let qs=!1;function vw(e,t=!1){qs=t;const{props:n,children:r}=e.vnode,o=gw(e);wR(e,n,o,t),xR(e,r);const s=o?FR(e,t):void 0;return qs=!1,s}function FR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rm(new Proxy(e.ctx,Zp));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?_w(e):null;_i(e),al();const s=jo(r,e,0,[e.props,o]);if(ul(),gi(),Jh(s)){if(s.then(gi,gi),t)return s.then(l=>{oh(e,l,t)}).catch(l=>{ds(l,e,0)});e.asyncDep=s}else oh(e,s,t)}else bw(e,t)}function oh(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qt(t)&&(e.setupState=sm(t)),bw(e,n)}let Sc,ih;function yw(e){Sc=e,ih=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,mR))}}const BR=()=>!Sc;function bw(e,t,n){const r=e.type;if(!e.render){if(!t&&Sc&&!r.render){const o=r.template||gm(e).template;if(o){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,d=$n($n({isCustomElement:s,delimiters:a},l),c);r.render=Sc(o,d)}}e.render=r.render||vo,ih&&ih(e)}_i(e),al(),gR(e),ul(),gi()}function UR(e){return new Proxy(e.attrs,{get(t,n){return or(e,"get","$attrs"),t[n]}})}function _w(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=UR(e))},slots:e.slots,emit:e.emit,expose:t}}function hd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sm(rm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ql)return ql[n](e)},has(t,n){return n in t||n in ql}}))}function sh(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function jR(e){return et(e)&&"__vccOpts"in e}const ce=(e,t)=>Mk(e,t,qs);function HR(){return null}function VR(){return null}function WR(e){}function zR(e,t){return null}function ww(){return Sw().slots}function qR(){return Sw().attrs}function Sw(){const e=Xo();return e.setupContext||(e.setupContext=_w(e))}function KR(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 GR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function XR(e){const t=Xo();let n=e();return gi(),Jh(n)&&(n=n.catch(r=>{throw _i(t),r})),[n,()=>_i(t)]}function dt(e,t,n){const r=arguments.length;return r===2?qt(t)&&!Je(t)?bi(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&bi(n)&&(n=[n]),q(e,t,n))}const Ew=Symbol(""),xw=()=>Rt(Ew);function JR(){}function YR(e,t,n,r){const o=n[r];if(o&&$w(o,e))return o;const s=t();return s.memo=e.slice(),n[r]=s}function $w(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Ws(n[r],t[r]))return!1;return as>0&&Zn&&Zn.push(e),!0}const Cw="3.2.47",ZR={createComponentInstance:mw,setupComponent:vw,renderComponentRoot:oc,setCurrentRenderingInstance:aa,isVNode:bi,normalizeVNode:hr},QR=ZR,e4=null,t4=null;function n4(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const r4="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",o4=n4(r4);function Tw(e){return!!e||e===""}function i4(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=wi(e[r],t[r]);return n}function wi(e,t){if(e===t)return!0;let n=ab(e),r=ab(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ub(e),r=ub(t),n||r)return e===t;if(n=ir(e),r=ir(t),n||r)return n&&r?i4(e,t):!1;if(n=lh(e),r=lh(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||!wi(e[l],t[l]))return!1}}return String(e)===String(t)}function md(e,t){return e.findIndex(n=>wi(n,t))}const yp={},s4=/^on[^a-z]/,l4=e=>s4.test(e),a4=e=>e.startsWith("onUpdate:"),Aa=Object.assign,ir=Array.isArray,Pa=e=>Aw(e)==="[object Set]",ab=e=>Aw(e)==="[object Date]",Ow=e=>typeof e=="function",ca=e=>typeof e=="string",ub=e=>typeof e=="symbol",lh=e=>e!==null&&typeof e=="object",u4=Object.prototype.toString,Aw=e=>u4.call(e),_m=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},c4=/-(\w)/g,bp=_m(e=>e.replace(c4,(t,n)=>n?n.toUpperCase():"")),d4=/\B([A-Z])/g,fi=_m(e=>e.replace(d4,"-$1").toLowerCase()),f4=_m(e=>e.charAt(0).toUpperCase()+e.slice(1)),p4=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ah=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uh=e=>{const t=ca(e)?Number(e):NaN;return isNaN(t)?e:t},h4="http://www.w3.org/2000/svg",Wi=typeof document<"u"?document:null,cb=Wi&&Wi.createElement("template"),m4={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?Wi.createElementNS(h4,e):Wi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Wi.createTextNode(e),createComment:e=>Wi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wi.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{cb.innerHTML=r?`<svg>${e}</svg>`:e;const a=cb.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 g4(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 v4(e,t,n){const r=e.style,o=ca(n);if(n&&!o){if(t&&!ca(t))for(const s in t)n[s]==null&&ch(r,s,"");for(const s in n)ch(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 db=/\s*!important$/;function ch(e,t,n){if(ir(n))n.forEach(r=>ch(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=y4(e,t);db.test(n)?e.setProperty(fi(r),n.replace(db,""),"important"):e[r]=n}}const fb=["Webkit","Moz","ms"],_p={};function y4(e,t){const n=_p[t];if(n)return n;let r=eo(t);if(r!=="filter"&&r in e)return _p[t]=r;r=f4(r);for(let o=0;o<fb.length;o++){const s=fb[o]+r;if(s in e)return _p[t]=s}return t}const pb="http://www.w3.org/1999/xlink";function b4(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(pb,t.slice(6,t.length)):e.setAttributeNS(pb,t,n);else{const s=o4(t);n==null||s&&!Tw(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function _4(e,t,n,r,o,s,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,o,s),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=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=Tw(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Fo(e,t,n,r){e.addEventListener(t,n,r)}function w4(e,t,n,r){e.removeEventListener(t,n,r)}function S4(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]=E4(t);if(r){const d=s[t]=C4(r,o);Fo(e,a,d,c)}else l&&(w4(e,a,l,c),s[t]=void 0)}}const hb=/(?:Once|Passive|Capture)$/;function E4(e){let t;if(hb.test(e)){t={};let r;for(;r=e.match(hb);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):fi(e.slice(2)),t]}let wp=0;const x4=Promise.resolve(),$4=()=>wp||(x4.then(()=>wp=0),wp=Date.now());function C4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;vr(T4(r,n.value),t,5,[r])};return n.value=e,n.attached=$4(),n}function T4(e,t){if(ir(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 mb=/^on[a-z]/,O4=(e,t,n,r,o=!1,s,l,a,c)=>{t==="class"?g4(e,r,o):t==="style"?v4(e,n,r):l4(t)?a4(t)||S4(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):A4(e,t,r,o))?_4(e,t,r,s,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),b4(e,t,r,o))};function A4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&mb.test(t)&&Ow(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||mb.test(t)&&ca(n)?!1:t in e}function Pw(e,t){const n=ve(e);class r extends gd{constructor(s){super(n,s,t)}}return r.def=n,r}const P4=e=>Pw(e,Kw),I4=typeof HTMLElement<"u"?HTMLElement:class{};class gd extends I4{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||(ph(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&&!ir(s))for(const c in s){const d=s[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=uh(this._props[c])),(a||(a=Object.create(null)))[bp(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=ir(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(bp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(s){this._setProp(o,s)}})}_setAttr(t){let n=this.getAttribute(t);const r=bp(t);this._numberProps&&this._numberProps[r]&&(n=uh(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(fi(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(fi(t),n+""):n||this.removeAttribute(fi(t))))}_update(){ph(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,Aa({},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),fi(s)!==s&&r(fi(s),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof gd){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 k4(e="$style"){{const t=Xo();if(!t)return yp;const n=t.type.__cssModules;if(!n)return yp;const r=n[e];return r||yp}}function Iw(e){const t=Xo();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>fh(s,o))},r=()=>{const o=e(t.proxy);dh(t.subTree,o),n(o)};D1(r),vt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Qt(()=>o.disconnect())})}function dh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{dh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fh(e.el,t);else if(e.type===Fe)e.children.forEach(n=>dh(n,t));else if(e.type===Qi){let{el:n,anchor:r}=e;for(;n&&(fh(n,t),n!==r);)n=n.nextSibling}}function fh(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const ai="transition",Ol="animation",$i=(e,{slots:t})=>dt(pm,Rw(e),t);$i.displayName="Transition";const kw={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},R4=$i.props=Aa({},pm.props,kw),Bi=(e,t=[])=>{ir(e)?e.forEach(n=>n(...t)):e&&e(...t)},gb=e=>e?ir(e)?e.some(t=>t.length>1):e.length>1:!1;function Rw(e){const t={};for(const z in e)z in kw||(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:d=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,_=L4(o),S=_&&_[0],C=_&&_[1],{onBeforeEnter:T,onEnter:w,onEnterCancelled:E,onLeave:O,onLeaveCancelled:x,onBeforeAppear:I=T,onAppear:k=w,onAppearCancelled:P=E}=t,H=(z,G,te)=>{ci(z,G?p:a),ci(z,G?d:l),te&&te()},D=(z,G)=>{z._isLeaving=!1,ci(z,h),ci(z,y),ci(z,g),G&&G()},F=z=>(G,te)=>{const we=z?k:w,be=()=>H(G,z,te);Bi(we,[G,be]),vb(()=>{ci(G,z?c:s),No(G,z?p:a),gb(we)||yb(G,r,S,be)})};return Aa(t,{onBeforeEnter(z){Bi(T,[z]),No(z,s),No(z,l)},onBeforeAppear(z){Bi(I,[z]),No(z,c),No(z,d)},onEnter:F(!1),onAppear:F(!0),onLeave(z,G){z._isLeaving=!0;const te=()=>D(z,G);No(z,h),Nw(),No(z,g),vb(()=>{z._isLeaving&&(ci(z,h),No(z,y),gb(O)||yb(z,r,C,te))}),Bi(O,[z,te])},onEnterCancelled(z){H(z,!1),Bi(E,[z])},onAppearCancelled(z){H(z,!0),Bi(P,[z])},onLeaveCancelled(z){D(z),Bi(x,[z])}})}function L4(e){if(e==null)return null;if(lh(e))return[Sp(e.enter),Sp(e.leave)];{const t=Sp(e);return[t,t]}}function Sp(e){return uh(e)}function No(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ci(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 N4=0;function yb(e,t,n,r){const o=e._endId=++N4,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:l,timeout:a,propCount:c}=Lw(e,t);if(!l)return r();const d=l+"end";let p=0;const h=()=>{e.removeEventListener(d,g),s()},g=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(d,g)}function Lw(e,t){const n=window.getComputedStyle(e),r=_=>(n[_]||"").split(", "),o=r(`${ai}Delay`),s=r(`${ai}Duration`),l=bb(o,s),a=r(`${Ol}Delay`),c=r(`${Ol}Duration`),d=bb(a,c);let p=null,h=0,g=0;t===ai?l>0&&(p=ai,h=l,g=s.length):t===Ol?d>0&&(p=Ol,h=d,g=c.length):(h=Math.max(l,d),p=h>0?l>d?ai:Ol:null,g=p?p===ai?s.length:c.length:0);const y=p===ai&&/\b(transform|all)(,|$)/.test(r(`${ai}Property`).toString());return{type:p,timeout:h,propCount:g,hasTransform:y}}function bb(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>_b(n)+_b(e[r])))}function _b(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Nw(){return document.body.offsetHeight}const Mw=new WeakMap,Dw=new WeakMap,Fw={name:"TransitionGroup",props:Aa({},R4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Xo(),r=fm();let o,s;return fd(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!j4(o[0].el,n.vnode.el,l))return;o.forEach(F4),o.forEach(B4);const a=o.filter(U4);Nw(),a.forEach(c=>{const d=c.el,p=d.style;No(d,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=d._moveCb=g=>{g&&g.target!==d||(!g||/transform$/.test(g.propertyName))&&(d.removeEventListener("transitionend",h),d._moveCb=null,ci(d,l))};d.addEventListener("transitionend",h)})}),()=>{const l=Ue(e),a=Rw(l);let c=l.tag||Fe;o=s,s=t.default?cd(t.default()):[];for(let d=0;d<s.length;d++){const p=s[d];p.key!=null&&ss(p,zs(p,a,r,n))}if(o)for(let d=0;d<o.length;d++){const p=o[d];ss(p,zs(p,a,r,n)),Mw.set(p,p.el.getBoundingClientRect())}return q(c,null,s)}}},M4=e=>delete e.mode;Fw.props;const D4=Fw;function F4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function B4(e){Dw.set(e,e.el.getBoundingClientRect())}function U4(e){const t=Mw.get(e),n=Dw.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 j4(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}=Lw(r);return o.removeChild(r),s}const Si=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ir(t)?n=>p4(t,n):t};function H4(e){e.target.composing=!0}function wb(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ec={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Si(o);const s=r||o.props&&o.props.type==="number";Fo(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=ah(a)),e._assign(a)}),n&&Fo(e,"change",()=>{e.value=e.value.trim()}),t||(Fo(e,"compositionstart",H4),Fo(e,"compositionend",wb),Fo(e,"change",wb))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=Si(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&ah(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},wm={deep:!0,created(e,t,n){e._assign=Si(n),Fo(e,"change",()=>{const r=e._modelValue,o=Ks(e),s=e.checked,l=e._assign;if(ir(r)){const a=md(r,o),c=a!==-1;if(s&&!c)l(r.concat(o));else if(!s&&c){const d=[...r];d.splice(a,1),l(d)}}else if(Pa(r)){const a=new Set(r);s?a.add(o):a.delete(o),l(a)}else l(Uw(e,s))})},mounted:Sb,beforeUpdate(e,t,n){e._assign=Si(n),Sb(e,t,n)}};function Sb(e,{value:t,oldValue:n},r){e._modelValue=t,ir(t)?e.checked=md(t,r.props.value)>-1:Pa(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=wi(t,Uw(e,!0)))}const Sm={created(e,{value:t},n){e.checked=wi(t,n.props.value),e._assign=Si(n),Fo(e,"change",()=>{e._assign(Ks(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Si(r),t!==n&&(e.checked=wi(t,r.props.value))}},Bw={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Pa(t);Fo(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?ah(Ks(l)):Ks(l));e._assign(e.multiple?o?new Set(s):s:s[0])}),e._assign=Si(r)},mounted(e,{value:t}){Eb(e,t)},beforeUpdate(e,t,n){e._assign=Si(n)},updated(e,{value:t}){Eb(e,t)}};function Eb(e,t){const n=e.multiple;if(!(n&&!ir(t)&&!Pa(t))){for(let r=0,o=e.options.length;r<o;r++){const s=e.options[r],l=Ks(s);if(n)ir(t)?s.selected=md(t,l)>-1:s.selected=t.has(l);else if(wi(Ks(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ks(e){return"_value"in e?e._value:e.value}function Uw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const jw={created(e,t,n){Ku(e,t,n,null,"created")},mounted(e,t,n){Ku(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ku(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ku(e,t,n,r,"updated")}};function Hw(e,t){switch(e){case"SELECT":return Bw;case"TEXTAREA":return Ec;default:switch(t){case"checkbox":return wm;case"radio":return Sm;default:return Ec}}}function Ku(e,t,n,r,o){const l=Hw(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function V4(){Ec.getSSRProps=({value:e})=>({value:e}),Sm.getSSRProps=({value:e},t)=>{if(t.props&&wi(t.props.value,e))return{checked:!0}},wm.getSSRProps=({value:e},t)=>{if(ir(e)){if(t.props&&md(e,t.props.value)>-1)return{checked:!0}}else if(Pa(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},jw.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Hw(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const W4=["ctrl","shift","alt","meta"],z4={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)=>W4.some(n=>e[`${n}Key`]&&!t.includes(n))},xc=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const s=z4[t[o]];if(s&&s(n,t))return}return e(n,...r)},q4={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Vw=(e,t)=>n=>{if(!("key"in n))return;const r=fi(n.key);if(t.some(o=>o===r||q4[o]===r))return e(n)},Em={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Al(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),Al(e,!0),r.enter(e)):r.leave(e,()=>{Al(e,!1)}):Al(e,t))},beforeUnmount(e,{value:t}){Al(e,t)}};function Al(e,t){e.style.display=t?e._vod:"none"}function K4(){Em.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ww=Aa({patchProp:O4},m4);let Xl,xb=!1;function zw(){return Xl||(Xl=iw(Ww))}function qw(){return Xl=xb?Xl:sw(Ww),xb=!0,Xl}const ph=(...e)=>{zw().render(...e)},Kw=(...e)=>{qw().hydrate(...e)},Gw=(...e)=>{const t=zw().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Xw(r);if(!o)return;const s=t._component;!Ow(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},G4=(...e)=>{const t=qw().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Xw(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Xw(e){return ca(e)?document.querySelector(e):e}let $b=!1;const X4=()=>{$b||($b=!0,V4(),K4())},J4=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:pm,Comment:Rn,EffectScope:Zh,Fragment:Fe,KeepAlive:aR,ReactiveEffect:Ca,Static:Qi,Suspense:Zk,Teleport:aw,Text:ls,Transition:$i,TransitionGroup:D4,VueElement:gd,assertNumber:Fk,callWithAsyncErrorHandling:vr,callWithErrorHandling:jo,camelize:eo,capitalize:ed,cloneVNode:Ur,compatUtils:t4,computed:ce,createApp:Gw,createBlock:bt,createCommentVNode:He,createElementBlock:V,createElementVNode:v,createHydrationRenderer:sw,createPropsRestProxy:GR,createRenderer:iw,createSSRApp:G4,createSlots:pR,createStaticVNode:NR,createTextVNode:Xe,createVNode:q,customRef:Rk,defineAsyncComponent:sR,defineComponent:ve,defineCustomElement:Pw,defineEmits:VR,defineExpose:WR,defineProps:HR,defineSSRCustomElement:P4,get devtools(){return Ns},effect:tk,effectScope:ZI,getCurrentInstance:Xo,getCurrentScope:f1,getTransitionRawChildren:cd,guardReactiveProps:pw,h:dt,handleError:ds,hydrate:Kw,initCustomFormatter:JR,initDirectivesForSSR:X4,inject:Rt,isMemoSame:$w,isProxy:nm,isReactive:Yi,isReadonly:is,isRef:dn,isRuntimeOnly:BR,isShallow:oa,isVNode:bi,markRaw:rm,mergeDefaults:KR,mergeProps:hw,nextTick:rn,normalizeClass:St,normalizeProps:jI,normalizeStyle:Wo,onActivated:U1,onBeforeMount:V1,onBeforeUnmount:fs,onBeforeUpdate:W1,onDeactivated:j1,onErrorCaptured:G1,onMounted:vt,onRenderTracked:K1,onRenderTriggered:q1,onScopeDispose:p1,onServerPrefetch:z1,onUnmounted:Qt,onUpdated:fd,openBlock:N,popScopeId:zk,provide:Zt,proxyRefs:sm,pushScopeId:Wk,queuePostFlushCb:um,reactive:xi,readonly:tm,ref:_e,registerRuntimeCompiler:yw,render:ph,renderList:Dt,renderSlot:_r,resolveComponent:J,resolveDirective:fR,resolveDynamicComponent:dR,resolveFilter:e4,resolveTransitionHooks:zs,setBlockTracking:rh,setDevtoolsHook:R1,setTransitionHooks:ss,shallowReactive:C1,shallowReadonly:Ak,shallowRef:sd,ssrContextKey:Ew,ssrUtils:QR,stop:nk,toDisplayString:U,toHandlerKey:Wl,toHandlers:hR,toRaw:Ue,toRef:O1,toRefs:lm,transformVNodeArgs:RR,triggerRef:Xp,unref:Hn,useAttrs:qR,useCssModule:k4,useCssVars:Iw,useSSRContext:xw,useSlots:ww,useTransitionState:fm,vModelCheckbox:wm,vModelDynamic:jw,vModelRadio:Sm,vModelSelect:Bw,vModelText:Ec,vShow:Em,version:Cw,warn:Dk,watch:Ft,watchEffect:jt,watchPostEffect:D1,watchSyncEffect:rR,withAsyncContext:XR,withCtx:ye,withDefaults:zR,withDirectives:X1,withKeys:Vw,withMemo:YR,withModifiers:xc,withScopeId:qk},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 Y4=/;(?![^(]*\))/g,Z4=/:([^]+)/,Q4=/\/\*.*?\*\//gs;function eL(e){const t={};return e.replace(Q4,"").split(Y4).forEach(n=>{if(n){const r=n.split(Z4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const tL="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",nL="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",rL="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",oL=oo(tL),iL=oo(nL),sL=oo(rL),lL={},$c=()=>{},Ep=()=>!1,aL=/^on[^a-z]/,Jw=e=>aL.test(e),Ho=Object.assign,Gs=Array.isArray,mn=e=>typeof e=="string",xm=e=>typeof e=="symbol",uL=e=>e!==null&&typeof e=="object",Cb=oo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cL=oo("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),vd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},dL=/-(\w)/g,yd=vd(e=>e.replace(dL,(t,n)=>n?n.toUpperCase():"")),fL=/\B([A-Z])/g,pL=vd(e=>e.replace(fL,"-$1").toLowerCase()),$m=vd(e=>e.charAt(0).toUpperCase()+e.slice(1)),hL=vd(e=>e?`on${$m(e)}`:"");function Cm(e){throw e}function Yw(e){}function Wt(e,t,n,r){const o=e,s=new SyntaxError(String(o));return s.code=e,s.loc=t,s}const da=Symbol(""),Jl=Symbol(""),Tm=Symbol(""),Cc=Symbol(""),Zw=Symbol(""),us=Symbol(""),Qw=Symbol(""),eS=Symbol(""),Om=Symbol(""),Am=Symbol(""),Ia=Symbol(""),Pm=Symbol(""),tS=Symbol(""),Im=Symbol(""),Tc=Symbol(""),km=Symbol(""),Rm=Symbol(""),Lm=Symbol(""),Nm=Symbol(""),nS=Symbol(""),rS=Symbol(""),bd=Symbol(""),Oc=Symbol(""),Mm=Symbol(""),Dm=Symbol(""),fa=Symbol(""),ka=Symbol(""),Fm=Symbol(""),hh=Symbol(""),mL=Symbol(""),mh=Symbol(""),Ac=Symbol(""),gL=Symbol(""),vL=Symbol(""),Bm=Symbol(""),yL=Symbol(""),bL=Symbol(""),Um=Symbol(""),oS=Symbol(""),Xs={[da]:"Fragment",[Jl]:"Teleport",[Tm]:"Suspense",[Cc]:"KeepAlive",[Zw]:"BaseTransition",[us]:"openBlock",[Qw]:"createBlock",[eS]:"createElementBlock",[Om]:"createVNode",[Am]:"createElementVNode",[Ia]:"createCommentVNode",[Pm]:"createTextVNode",[tS]:"createStaticVNode",[Im]:"resolveComponent",[Tc]:"resolveDynamicComponent",[km]:"resolveDirective",[Rm]:"resolveFilter",[Lm]:"withDirectives",[Nm]:"renderList",[nS]:"renderSlot",[rS]:"createSlots",[bd]:"toDisplayString",[Oc]:"mergeProps",[Mm]:"normalizeClass",[Dm]:"normalizeStyle",[fa]:"normalizeProps",[ka]:"guardReactiveProps",[Fm]:"toHandlers",[hh]:"camelize",[mL]:"capitalize",[mh]:"toHandlerKey",[Ac]:"setBlockTracking",[gL]:"pushScopeId",[vL]:"popScopeId",[Bm]:"withCtx",[yL]:"unref",[bL]:"isRef",[Um]:"withMemo",[oS]:"isMemoSame"};function _L(e){Object.getOwnPropertySymbols(e).forEach(t=>{Xs[t]=e[t]})}const wr={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function wL(e,t=wr){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function pa(e,t,n,r,o,s,l,a=!1,c=!1,d=!1,p=wr){return e&&(a?(e.helper(us),e.helper(Zs(e.inSSR,d))):e.helper(Ys(e.inSSR,d)),l&&e.helper(Lm)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:l,isBlock:a,disableTracking:c,isComponent:d,loc:p}}function Ra(e,t=wr){return{type:17,loc:t,elements:e}}function Rr(e,t=wr){return{type:15,loc:t,properties:e}}function Yt(e,t){return{type:16,loc:wr,key:mn(e)?ut(e,!0):e,value:t}}function ut(e,t=!1,n=wr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Zr(e,t=wr){return{type:8,loc:t,children:e}}function nn(e,t=[],n=wr){return{type:14,loc:n,callee:e,arguments:t}}function Js(e,t=void 0,n=!1,r=!1,o=wr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function gh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:wr}}function SL(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:wr}}function EL(e){return{type:21,body:e,loc:wr}}const Qn=e=>e.type===4&&e.isStatic,Ms=(e,t)=>e===t||e===pL(t);function iS(e){if(Ms(e,"Teleport"))return Jl;if(Ms(e,"Suspense"))return Tm;if(Ms(e,"KeepAlive"))return Cc;if(Ms(e,"BaseTransition"))return Zw}const xL=/^\d|[^\$\w]/,jm=e=>!xL.test(e),$L=/[A-Za-z_$\xA0-\uFFFF]/,CL=/[\.\?\w$\xA0-\uFFFF]/,TL=/\s+[.[]\s*|\s*[.[]\s+/g,OL=e=>{e=e.trim().replace(TL,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?$L:CL).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},sS=OL;function lS(e,t,n){const o={source:e.source.slice(t,t+n),start:Pc(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Pc(e.start,e.source,t+n)),o}function Pc(e,t,n=t.length){return Ic(Ho({},e),t,n)}function Ic(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 kr(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 _d(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)&&Ki(s.arg,t))return s}}function Ki(e,t){return!!(e&&Qn(e)&&e.content===t)}function AL(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function xp(e){return e.type===5||e.type===2}function PL(e){return e.type===7&&e.name==="slot"}function kc(e){return e.type===1&&e.tagType===3}function Rc(e){return e.type===1&&e.tagType===2}function Ys(e,t){return e||t?Om:Am}function Zs(e,t){return e||t?Qw:eS}const IL=new Set([fa,ka]);function aS(e,t=[]){if(e&&!mn(e)&&e.type===14){const n=e.callee;if(!mn(n)&&IL.has(n))return aS(e.arguments[0],t.concat(e))}return[e,t]}function Lc(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=aS(o);o=a[0],s=a[1],l=s[s.length-1]}if(o==null||mn(o))r=Rr([t]);else if(o.type===14){const a=o.arguments[0];!mn(a)&&a.type===15?Tb(t,a)||a.properties.unshift(t):o.callee===Fm?r=nn(n.helper(Oc),[Rr([t]),o]):o.arguments.unshift(Rr([t])),!r&&(r=o)}else o.type===15?(Tb(t,o)||o.properties.unshift(t),r=o):(r=nn(n.helper(Oc),[Rr([t]),o]),l&&l.callee===ka&&(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 Tb(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 ha(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function kL(e){return e.type===14&&e.callee===Um?e.arguments[1].returns:e}function Hm(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Ys(r,e.isComponent)),t(us),t(Zs(r,e.isComponent)))}function Ob(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function es(e,t){const n=Ob("MODE",t),r=Ob(e,t);return n===3?r===!0:r!==!1}function ma(e,t,n,...r){return es(e,t)}const RL=/&(gt|lt|amp|apos|quot);/g,LL={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ab={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Ep,isPreTag:Ep,isCustomElement:Ep,decodeEntities:e=>e.replace(RL,(t,n)=>LL[n]),onError:Cm,onWarn:Yw,comments:!1};function NL(e,t={}){const n=ML(e,t),r=yr(n);return wL(Vm(n,0,[]),jr(n,r))}function ML(e,t){const n=Ho({},Ab);let r;for(r in t)n[r]=t[r]===void 0?Ab[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Vm(e,t,n){const r=wd(n),o=r?r.ns:0,s=[];for(;!zL(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&kn(a,e.options.delimiters[0]))c=VL(e,t);else if(t===0&&a[0]==="<")if(a.length===1)At(e,5,1);else if(a[1]==="!")kn(a,"<!--")?c=FL(e):kn(a,"<!DOCTYPE")?c=Pl(e):kn(a,"<![CDATA[")?o!==0?c=DL(e,n):(At(e,1),c=Pl(e)):(At(e,11),c=Pl(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),vh(e,1,r);continue}else At(e,12,2),c=Pl(e);else/[a-z]/i.test(a[1])?(c=BL(e,n),es("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(d=>d.type===7&&uS(d.name))&&(c=c.children)):a[1]==="?"?(At(e,21,1),c=Pl(e)):At(e,12,1)}if(c||(c=WL(e,t)),Gs(c))for(let d=0;d<c.length;d++)Pb(s,c[d]);else Pb(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 d=s[c];if(d.type===2)if(e.inPre)d.content=d.content.replace(/\r\n/g,`
     2`);else if(/[^\t\r\n\f ]/.test(d.content))a&&(d.content=d.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(d.content))?(l=!0,s[c]=null):d.content=" "}else d.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 Pb(e,t){if(t.type===2){const n=wd(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 DL(e,t){fn(e,9);const n=Vm(e,3,t);return e.source.length===0?At(e,6):fn(e,3),n}function FL(e){const t=yr(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:jr(e,t)}}function Pl(e){const t=yr(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:jr(e,t)}}function BL(e,t){const n=e.inPre,r=e.inVPre,o=wd(t),s=vh(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),d=Vm(e,c,t);t.pop();{const p=s.props.find(h=>h.type===6&&h.name==="inline-template");if(p&&ma("COMPILER_INLINE_TEMPLATE",e,p.loc)){const h=jr(e,s.loc.end);p.value={type:2,content:h.source,loc:h}}}if(s.children=d,yh(e.source,s.tag))vh(e,1,o);else if(At(e,24,0,s.loc.start),e.source.length===0&&s.tag.toLowerCase()==="script"){const p=d[0];p&&kn(p.loc.source,"<!--")&&At(e,8)}return s.loc=jr(e,s.loc.start),l&&(e.inPre=!1),a&&(e.inVPre=!1),s}const uS=oo("if,else,else-if,for,slot");function vh(e,t,n){const r=yr(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),ga(e);const a=yr(e),c=e.source;e.options.isPreTag(s)&&(e.inPre=!0);let d=Ib(e,t);t===0&&!e.inVPre&&d.some(g=>g.type===7&&g.name==="pre")&&(e.inVPre=!0,Ho(e,a),e.source=c,d=Ib(e,t).filter(g=>g.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"?d.some(g=>g.type===7&&uS(g.name))&&(h=3):UL(s,d,e)&&(h=1)),{type:1,ns:l,tag:s,tagType:h,props:d,isSelfClosing:p,children:[],loc:jr(e,r),codegenNode:void 0}}function UL(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if(e==="component"||/^[A-Z]/.test(e)||iS(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(ma("COMPILER_IS_ON_ELEMENT",n,s.loc))return!0}}else{if(s.name==="is")return!0;if(s.name==="bind"&&Ki(s.arg,"is")&&ma("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),ga(e);continue}t===1&&At(e,3);const o=jL(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),ga(e)}return n}function jL(e,t){const n=yr(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)&&(ga(e),fn(e,1),ga(e),s=HL(e),s||At(e,13));const l=jr(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,"."),d=a[1]||(c||kn(o,":")?"bind":kn(o,"@")?"on":"slot"),p;if(a[2]){const g=d==="slot",y=o.lastIndexOf(a[2]),_=jr(e,kb(e,n,y),kb(e,n,y+a[2].length+(g&&a[3]||"").length));let S=a[2],C=!0;S.startsWith("[")?(C=!1,S.endsWith("]")?S=S.slice(1,S.length-1):(At(e,27),S=S.slice(1))):g&&(S+=a[3]||""),p={type:4,content:S,isStatic:C,constType:C?3:0,loc:_}}if(s&&s.isQuoted){const g=s.loc;g.start.offset++,g.start.column++,g.end=Pc(g.start,s.content),g.source=g.source.slice(1,-1)}const h=a[3]?a[3].slice(1).split("."):[];return c&&h.push("prop"),d==="bind"&&p&&h.includes("sync")&&ma("COMPILER_V_BIND_SYNC",e,l,p.loc.source)&&(d="model",h.splice(h.indexOf("sync"),1)),{type:7,name:d,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 HL(e){const t=yr(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=Yl(e,e.source.length,4):(n=Yl(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=Yl(e,s[0].length,4)}return{content:n,isQuoted:o,loc:jr(e,t)}}function VL(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(o===-1){At(e,25);return}const s=yr(e);fn(e,n.length);const l=yr(e),a=yr(e),c=o-n.length,d=e.source.slice(0,c),p=Yl(e,c,t),h=p.trim(),g=p.indexOf(h);g>0&&Ic(l,d,g);const y=c-(p.length-h.length-g);return Ic(a,d,y),fn(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:jr(e,l,a)},loc:jr(e,s)}}function WL(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=yr(e);return{type:2,content:Yl(e,r,t),loc:jr(e,o)}}function Yl(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 yr(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function jr(e,t,n){return n=n||yr(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function wd(e){return e[e.length-1]}function kn(e,t){return e.startsWith(t)}function fn(e,t){const{source:n}=e;Ic(e,n,t),e.source=n.slice(t)}function ga(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&fn(e,t[0].length)}function kb(e,t,n){return Pc(t,e.originalSource.slice(t.offset,n),n)}function At(e,t,n,r=yr(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Wt(t,{start:r,end:r,source:""}))}function zL(e,t,n){const r=e.source;switch(t){case 0:if(kn(r,"</")){for(let o=n.length-1;o>=0;--o)if(yh(r,n[o].tag))return!0}break;case 1:case 2:{const o=wd(n);if(o&&yh(r,o.tag))return!0;break}case 3:if(kn(r,"]]>"))return!0;break}return!r}function yh(e,t){return kn(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function qL(e,t){sc(e,t,cS(e,e.children[0]))}function cS(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Rc(t)}function sc(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:Lr(a,t);if(c>0){if(c>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const d=a.codegenNode;if(d.type===13){const p=hS(d);if((!p||p===512||p===1)&&fS(a,t)>=2){const h=pS(a);h&&(d.props=t.hoist(h))}d.dynamicProps&&(d.dynamicProps=t.hoist(d.dynamicProps))}}}if(a.type===1){const c=a.tagType===1;c&&t.scopes.vSlot++,sc(a,t),c&&t.scopes.vSlot--}else if(a.type===11)sc(a,t,a.children.length===1);else if(a.type===9)for(let c=0;c<a.branches.length;c++)sc(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&&Gs(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Ra(e.codegenNode.children)))}function Lr(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(hS(o))return n.set(e,0),0;{let a=3;const c=fS(e,t);if(c===0)return n.set(e,0),0;c<a&&(a=c);for(let d=0;d<e.children.length;d++){const p=Lr(e.children[d],t);if(p===0)return n.set(e,0),0;p<a&&(a=p)}if(a>1)for(let d=0;d<e.props.length;d++){const p=e.props[d];if(p.type===7&&p.name==="bind"&&p.exp){const h=Lr(p.exp,t);if(h===0)return n.set(e,0),0;h<a&&(a=h)}}if(o.isBlock){for(let d=0;d<e.props.length;d++)if(e.props[d].type===7)return n.set(e,0),0;t.removeHelper(us),t.removeHelper(Zs(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Ys(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 Lr(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)||xm(c))continue;const d=Lr(c,t);if(d===0)return 0;d<l&&(l=d)}return l;default:return 0}}const KL=new Set([Mm,Dm,fa,ka]);function dS(e,t){if(e.type===14&&!mn(e.callee)&&KL.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Lr(n,t);if(n.type===14)return dS(n,t)}return 0}function fS(e,t){let n=3;const r=pS(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=Lr(l,t);if(c===0)return c;c<n&&(n=c);let d;if(a.type===4?d=Lr(a,t):a.type===14?d=dS(a,t):d=0,d===0)return d;d<n&&(n=d)}}return n}function pS(e){const t=e.codegenNode;if(t.type===13)return t.props}function hS(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function GL(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:o=!1,nodeTransforms:s=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=$c,isCustomElement:d=$c,expressionPlugins:p=[],scopeId:h=null,slotted:g=!0,ssr:y=!1,inSSR:_=!1,ssrCssVars:S="",bindingMetadata:C=lL,inline:T=!1,isTS:w=!1,onError:E=Cm,onWarn:O=Yw,compatConfig:x}){const I=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={selfName:I&&$m(yd(I[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:o,nodeTransforms:s,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:d,expressionPlugins:p,scopeId:h,slotted:g,ssr:y,inSSR:_,ssrCssVars:S,bindingMetadata:C,inline:T,isTS:w,onError:E,onWarn:O,compatConfig:x,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(P){const H=k.helpers.get(P)||0;return k.helpers.set(P,H+1),P},removeHelper(P){const H=k.helpers.get(P);if(H){const D=H-1;D?k.helpers.set(P,D):k.helpers.delete(P)}},helperString(P){return`_${Xs[k.helper(P)]}`},replaceNode(P){k.parent.children[k.childIndex]=k.currentNode=P},removeNode(P){const H=k.parent.children,D=P?H.indexOf(P):k.currentNode?k.childIndex:-1;!P||P===k.currentNode?(k.currentNode=null,k.onNodeRemoved()):k.childIndex>D&&(k.childIndex--,k.onNodeRemoved()),k.parent.children.splice(D,1)},onNodeRemoved:()=>{},addIdentifiers(P){},removeIdentifiers(P){},hoist(P){mn(P)&&(P=ut(P)),k.hoists.push(P);const H=ut(`_hoisted_${k.hoists.length}`,!1,P.loc,2);return H.hoisted=P,H},cache(P,H=!1){return SL(k.cached++,P,H)}};return k.filters=new Set,k}function XL(e,t){const n=GL(e,t);Sd(e,n),t.hoistStatic&&qL(e,n),t.ssr||JL(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 JL(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=r[0];if(cS(e,o)&&o.codegenNode){const s=o.codegenNode;s.type===13&&Hm(s,t),e.codegenNode=s}else e.codegenNode=o}else if(r.length>1){let o=64;e.codegenNode=pa(t,n(da),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}function YL(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,Sd(o,t))}}function Sd(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&&(Gs(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ia);break;case 5:t.ssr||t.helper(bd);break;case 9:for(let s=0;s<e.branches.length;s++)Sd(e.branches[s],t);break;case 10:case 11:case 1:case 0:YL(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function mS(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(PL))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 d=t(r,c,o);d&&l.push(d)}}return l}}}const Ed="/*#__PURE__*/",gS=e=>`${Xs[e]}: _${Xs[e]}`;function ZL(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:d="vue/server-renderer",ssr:p=!1,isTS:h=!1,inSSR:g=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:d,ssr:p,isTS:h,inSSR:g,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(S){return`_${Xs[S]}`},push(S,C){y.code+=S},indent(){_(++y.indentLevel)},deindent(S=!1){S?--y.indentLevel:_(--y.indentLevel)},newline(){_(y.indentLevel)}};function _(S){y.push(`
     3`+"  ".repeat(S))}return y}function QL(e,t={}){const n=ZL(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:l,deindent:a,newline:c,scopeId:d,ssr:p}=n,h=Array.from(e.helpers),g=h.length>0,y=!s&&r!=="module";e6(e,n);const S=p?"ssrRender":"render",T=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${S}(${T}) {`),l(),y&&(o("with (_ctx) {"),l(),g&&(o(`const { ${h.map(gS).join(", ")} } = _Vue`),o(`
    44`),c())),e.components.length&&($p(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&($p(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),$p(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let w=0;w<e.temps;w++)o(`${w>0?", ":""}_temp${w}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`
    5 `),c()),p||o("return "),e.codegenNode?Ln(e.codegenNode,n):o("null"),y&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function YL(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:s,runtimeModuleName:l,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,d=a,p=Array.from(e.helpers);if(p.length>0&&(o(`const _Vue = ${d}
    6 `),e.hoists.length)){const h=[Om,Am,Pa,Im,eS].filter(g=>p.includes(g)).map(mS).join(", ");o(`const { ${h} } = _Vue
    7 `)}ZL(e.hoists,t),s(),o("return ")}function $p(e,t,{helper:n,push:r,newline:o,isTS:s}){const l=n(t==="filter"?Rm:t==="component"?Pm:km);for(let a=0;a<e.length;a++){let c=e[a];const d=c.endsWith("__self");d&&(c=c.slice(0,-6)),r(`const ${ha(c,t)} = ${l}(${JSON.stringify(c)}${d?", true":""})${s?"!":""}`),a<e.length-1&&o()}}function ZL(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:s,mode:l}=t;r();for(let a=0;a<e.length;a++){const c=e[a];c&&(n(`const _hoisted_${a+1} = `),Ln(c,t),r())}t.pure=!1}function Wm(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),La(e,t,n),n&&t.deindent(),t.push("]")}function La(e,t,n=!1,r=!0){const{push:o,newline:s}=t;for(let l=0;l<e.length;l++){const a=e[l];mn(a)?o(a):Gs(a)?Wm(a,t):Ln(a,t),l<e.length-1&&(n?(r&&o(","),s()):r&&o(", "))}}function Ln(e,t){if(mn(e)){t.push(e);return}if(xm(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Ln(e.codegenNode,t);break;case 2:QL(e,t);break;case 4:gS(e,t);break;case 5:eN(e,t);break;case 12:Ln(e.codegenNode,t);break;case 8:vS(e,t);break;case 3:nN(e,t);break;case 13:rN(e,t);break;case 14:iN(e,t);break;case 15:sN(e,t);break;case 17:lN(e,t);break;case 18:aN(e,t);break;case 19:uN(e,t);break;case 20:cN(e,t);break;case 21:La(e.body,t,!0,!1);break}}function QL(e,t){t.push(JSON.stringify(e.content),e)}function gS(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function eN(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Ed),n(`${r(bd)}(`),Ln(e.content,t),n(")")}function vS(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];mn(r)?t.push(r):Ln(r,t)}}function tN(e,t){const{push:n}=t;if(e.type===8)n("["),vS(e,t),n("]");else if(e.isStatic){const r=jm(e.content)?e.content:JSON.stringify(e.content);n(r,e)}else n(`[${e.content}]`,e)}function nN(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Ed),n(`${r(Pa)}(${JSON.stringify(e.content)})`,e)}function rN(e,t){const{push:n,helper:r,pure:o}=t,{tag:s,props:l,children:a,patchFlag:c,dynamicProps:d,directives:p,isBlock:h,disableTracking:g,isComponent:y}=e;p&&n(r(Lm)+"("),h&&n(`(${r(as)}(${g?"true":""}), `),o&&n(Ed);const _=h?Zs(t.inSSR,y):Ys(t.inSSR,y);n(r(_)+"(",e),La(oN([s,l,a,c,d]),t),n(")"),h&&n(")"),p&&(n(", "),Ln(p,t),n(")"))}function oN(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function iN(e,t){const{push:n,helper:r,pure:o}=t,s=mn(e.callee)?e.callee:r(e.callee);o&&n(Ed),n(s+"(",e),La(e.arguments,t),n(")")}function sN(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,{properties:l}=e;if(!l.length){n("{}",e);return}const a=l.length>1||!1;n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:d,value:p}=l[c];tN(d,t),n(": "),Ln(p,t),c<l.length-1&&(n(","),s())}a&&o(),n(a?"}":" }")}function lN(e,t){Wm(e.elements,t)}function aN(e,t){const{push:n,indent:r,deindent:o}=t,{params:s,returns:l,body:a,newline:c,isSlot:d}=e;d&&n(`_${Xs[Bm]}(`),n("(",e),Gs(s)?La(s,t):s&&Ln(s,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),Gs(l)?Wm(l,t):Ln(l,t)):a&&Ln(a,t),(c||a)&&(o(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function uN(e,t){const{test:n,consequent:r,alternate:o,newline:s}=e,{push:l,indent:a,deindent:c,newline:d}=t;if(n.type===4){const h=!jm(n.content);h&&l("("),gS(n,t),h&&l(")")}else l("("),Ln(n,t),l(")");s&&a(),t.indentLevel++,s||l(" "),l("? "),Ln(r,t),t.indentLevel--,s&&d(),s||l(" "),l(": ");const p=o.type===19;p||t.indentLevel++,Ln(o,t),p||t.indentLevel--,s&&c(!0)}function cN(e,t){const{push:n,helper:r,indent:o,deindent:s,newline:l}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Ac)}(-1),`),l()),n(`_cache[${e.index}] = `),Ln(e.value,t),e.isVNode&&(n(","),l(),n(`${r(Ac)}(1),`),l(),n(`_cache[${e.index}]`),s()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const dN=hS(/^(if|else|else-if)$/,(e,t,n)=>fN(e,t,n,(r,o,s)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const d=l[a];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(s)r.codegenNode=Rb(o,c,n);else{const d=pN(r.codegenNode);d.alternate=Rb(o,c+r.branches.length-1,n)}}}));function fN(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Wt(28,t.loc)),t.exp=ut("true",!1,o)}if(t.name==="if"){const o=kb(e,t),s={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const o=n.parent.children;let s=o.indexOf(e);for(;s-->=-1;){const l=o[s];if(l&&l.type===3){n.removeNode(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(Wt(30,e.loc)),n.removeNode();const a=kb(e,t);l.branches.push(a);const c=r&&r(l,a,!1);Sd(a,n),c&&c(),n.currentNode=null}else n.onError(Wt(30,e.loc));break}}}function kb(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!kr(e,"for")?e.children:[e],userKey:_d(e,"key"),isTemplateIf:n}}function Rb(e,t,n){return e.condition?gh(e.condition,Lb(e,t,n),nn(n.helper(Pa),['""',"true"])):Lb(e,t,n)}function Lb(e,t,n){const{helper:r}=n,o=Yt("key",ut(`${t}`,!1,wr,2)),{children:s}=e,l=s[0];if(s.length!==1||l.type!==1)if(s.length===1&&l.type===11){const c=l.codegenNode;return Lc(c,o,n),c}else return pa(n,r(da),Rr([o]),s,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const c=l.codegenNode,d=AL(c);return d.type===13&&Hm(d,n),Lc(d,o,n),c}}function pN(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const hN=hS("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return mN(e,t,n,s=>{const l=nn(r(Nm),[s.source]),a=kc(e),c=kr(e,"memo"),d=_d(e,"key"),p=d&&(d.type===6?ut(d.value.content,!0):d.exp),h=d?Yt("key",p):null,g=s.source.type===4&&s.source.constType>0,y=g?64:d?128:256;return s.codegenNode=pa(n,r(da),void 0,l,y+"",void 0,void 0,!0,!g,!1,e.loc),()=>{let _;const{children:S}=s,C=S.length!==1||S[0].type!==1,T=Rc(e)?e:a&&e.children.length===1&&Rc(e.children[0])?e.children[0]:null;if(T?(_=T.codegenNode,a&&h&&Lc(_,h,n)):C?_=pa(n,r(da),h?Rr([h]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(_=S[0].codegenNode,a&&h&&Lc(_,h,n),_.isBlock!==!g&&(_.isBlock?(o(as),o(Zs(n.inSSR,_.isComponent))):o(Ys(n.inSSR,_.isComponent))),_.isBlock=!g,_.isBlock?(r(as),r(Zs(n.inSSR,_.isComponent))):r(Ys(n.inSSR,_.isComponent))),c){const w=Js(bh(s.parseResult,[ut("_cached")]));w.body=_L([Yr(["const _memo = (",c.exp,")"]),Yr(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(rS)}(_cached, _memo)) return _cached`]),Yr(["const _item = ",_]),ut("_item.memo = _memo"),ut("return _item")]),l.arguments.push(w,ut("_cache"),ut(String(n.cached++)))}else l.arguments.push(Js(bh(s.parseResult),_,!0))}})});function mN(e,t,n,r){if(!t.exp){n.onError(Wt(31,t.loc));return}const o=yS(t.exp);if(!o){n.onError(Wt(32,t.loc));return}const{addIdentifiers:s,removeIdentifiers:l,scopes:a}=n,{source:c,value:d,key:p,index:h}=o,g={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:p,objectIndexAlias:h,parseResult:o,children:kc(e)?e.children:[e]};n.replaceNode(g),a.vFor++;const y=r&&r(g);return()=>{a.vFor--,y&&y()}}const gN=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Nb=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,vN=/^\(|\)$/g;function yS(e,t){const n=e.loc,r=e.content,o=r.match(gN);if(!o)return;const[,s,l]=o,a={source:Gu(n,l.trim(),r.indexOf(l,s.length)),value:void 0,key:void 0,index:void 0};let c=s.trim().replace(vN,"").trim();const d=s.indexOf(c),p=c.match(Nb);if(p){c=c.replace(Nb,"").trim();const h=p[1].trim();let g;if(h&&(g=r.indexOf(h,d+c.length),a.key=Gu(n,h,g)),p[2]){const y=p[2].trim();y&&(a.index=Gu(n,y,r.indexOf(y,a.key?g+h.length:d+c.length)))}}return c&&(a.value=Gu(n,c,d)),a}function Gu(e,t,n){return ut(t,!1,sS(e,n,t.length))}function bh({value:e,key:t,index:n},r=[]){return yN([e,t,n,...r])}function yN(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||ut("_".repeat(r+1),!1))}const Mb=ut("undefined",!1),bN=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=kr(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},_N=(e,t,n)=>Js(e,t,!1,!0,t.length?t[0].loc:n);function wN(e,t,n=_N){t.helper(Bm);const{children:r,loc:o}=e,s=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=kr(e,"slot",!0);if(c){const{arg:C,exp:T}=c;C&&!Yn(C)&&(a=!0),s.push(Yt(C||ut("default",!0),n(T,r,o)))}let d=!1,p=!1;const h=[],g=new Set;let y=0;for(let C=0;C<r.length;C++){const T=r[C];let w;if(!kc(T)||!(w=kr(T,"slot",!0))){T.type!==3&&h.push(T);continue}if(c){t.onError(Wt(37,w.loc));break}d=!0;const{children:E,loc:O}=T,{arg:$=ut("default",!0),exp:P,loc:k}=w;let I;Yn($)?I=$?$.content:"default":a=!0;const H=n(P,E,O);let D,F,z;if(D=kr(T,"if"))a=!0,l.push(gh(D.exp,Xu($,H,y++),Mb));else if(F=kr(T,/^else(-if)?$/,!0)){let G=C,te;for(;G--&&(te=r[G],te.type===3););if(te&&kc(te)&&kr(te,"if")){r.splice(C,1),C--;let we=l[l.length-1];for(;we.alternate.type===19;)we=we.alternate;we.alternate=F.exp?gh(F.exp,Xu($,H,y++),Mb):Xu($,H,y++)}else t.onError(Wt(30,F.loc))}else if(z=kr(T,"for")){a=!0;const G=z.parseResult||yS(z.exp);G?l.push(nn(t.helper(Nm),[G.source,Js(bh(G),Xu($,H),!0)])):t.onError(Wt(32,z.loc))}else{if(I){if(g.has(I)){t.onError(Wt(38,k));continue}g.add(I),I==="default"&&(p=!0)}s.push(Yt($,H))}}if(!c){const C=(T,w)=>{const E=n(T,w,o);return t.compatConfig&&(E.isNonScopedSlot=!0),Yt("default",E)};d?h.length&&h.some(T=>bS(T))&&(p?t.onError(Wt(39,h[0].loc)):s.push(C(void 0,h))):s.push(C(void 0,r))}const _=a?2:lc(e.children)?3:1;let S=Rr(s.concat(Yt("_",ut(_+"",!1))),o);return l.length&&(S=nn(t.helper(nS),[S,Ra(l)])),{slots:S,hasDynamicSlots:a}}function Xu(e,t,n){const r=[Yt("name",e),Yt("fn",t)];return n!=null&&r.push(Yt("key",ut(String(n),!0))),Rr(r)}function lc(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||lc(n.children))return!0;break;case 9:if(lc(n.branches))return!0;break;case 10:case 11:if(lc(n.children))return!0;break}}return!1}function bS(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():bS(e.content)}const _S=new WeakMap,SN=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,s=e.tagType===1;let l=s?EN(e,t):`"${r}"`;const a=sL(l)&&l.callee===Tc;let c,d,p,h=0,g,y,_,S=a||l===Jl||l===Tm||!s&&(r==="svg"||r==="foreignObject");if(o.length>0){const C=wS(e,t,void 0,s,a);c=C.props,h=C.patchFlag,y=C.dynamicPropNames;const T=C.directives;_=T&&T.length?Ra(T.map(w=>$N(w,t))):void 0,C.shouldUseBlock&&(S=!0)}if(e.children.length>0)if(l===Cc&&(S=!0,h|=1024),s&&l!==Jl&&l!==Cc){const{slots:T,hasDynamicSlots:w}=wN(e,t);d=T,w&&(h|=1024)}else if(e.children.length===1&&l!==Jl){const T=e.children[0],w=T.type,E=w===5||w===8;E&&Lr(T,t)===0&&(h|=1),E||w===2?d=T:d=e.children}else d=e.children;h!==0&&(p=String(h),y&&y.length&&(g=CN(y))),e.codegenNode=pa(t,l,c,d,p,g,_,!!S,!1,s,e.loc)};function EN(e,t,n=!1){let{tag:r}=e;const o=_h(r),s=_d(e,"is");if(s)if(o||Qi("COMPILER_IS_ON_ELEMENT",t)){const c=s.type===6?s.value&&ut(s.value.content,!0):s.exp;if(c)return nn(t.helper(Tc),[c])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const l=!o&&kr(e,"is");if(l&&l.exp)return nn(t.helper(Tc),[l.exp]);const a=oS(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(Pm),t.components.add(r),ha(r,"component"))}function wS(e,t,n=e.props,r,o,s=!1){const{tag:l,loc:a,children:c}=e;let d=[];const p=[],h=[],g=c.length>0;let y=!1,_=0,S=!1,C=!1,T=!1,w=!1,E=!1,O=!1;const $=[],P=H=>{d.length&&(p.push(Rr(Db(d),a)),d=[]),H&&p.push(H)},k=({key:H,value:D})=>{if(Yn(H)){const F=H.content,z=Xw(F);if(z&&(!r||o)&&F.toLowerCase()!=="onclick"&&F!=="onUpdate:modelValue"&&!$b(F)&&(w=!0),z&&$b(F)&&(O=!0),D.type===20||(D.type===4||D.type===8)&&Lr(D,t)>0)return;F==="ref"?S=!0:F==="class"?C=!0:F==="style"?T=!0:F!=="key"&&!$.includes(F)&&$.push(F),r&&(F==="class"||F==="style")&&!$.includes(F)&&$.push(F)}else E=!0};for(let H=0;H<n.length;H++){const D=n[H];if(D.type===6){const{loc:F,name:z,value:G}=D;let te=!0;if(z==="ref"&&(S=!0,t.scopes.vFor>0&&d.push(Yt(ut("ref_for",!0),ut("true")))),z==="is"&&(_h(l)||G&&G.content.startsWith("vue:")||Qi("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(Yt(ut(z,!0,sS(F,0,z.length)),ut(G?G.content:"",te,G?G.loc:F)))}else{const{name:F,arg:z,exp:G,loc:te}=D,we=F==="bind",be=F==="on";if(F==="slot"){r||t.onError(Wt(40,te));continue}if(F==="once"||F==="memo"||F==="is"||we&&qi(z,"is")&&(_h(l)||Qi("COMPILER_IS_ON_ELEMENT",t))||be&&s)continue;if((we&&qi(z,"key")||be&&g&&qi(z,"vue:before-update"))&&(y=!0),we&&qi(z,"ref")&&t.scopes.vFor>0&&d.push(Yt(ut("ref_for",!0),ut("true"))),!z&&(we||be)){if(E=!0,G)if(we){if(P(),Qi("COMPILER_V_BIND_OBJECT_ORDER",t)){p.unshift(G);continue}p.push(G)}else P({type:14,loc:te,callee:t.helper(Fm),arguments:r?[G]:[G,"true"]});else t.onError(Wt(we?34:35,te));continue}const Ae=t.directiveTransforms[F];if(Ae){const{props:Ie,needRuntime:Ye}=Ae(D,e,t);!s&&Ie.forEach(k),be&&z&&!Yn(z)?P(Rr(Ie,a)):d.push(...Ie),Ye&&(h.push(D),xm(Ye)&&_S.set(D,Ye))}else lL(F)||(h.push(D),g&&(y=!0))}}let I;if(p.length?(P(),p.length>1?I=nn(t.helper(Oc),p,a):I=p[0]):d.length&&(I=Rr(Db(d),a)),E?_|=16:(C&&!r&&(_|=2),T&&!r&&(_|=4),$.length&&(_|=8),w&&(_|=32)),!y&&(_===0||_===32)&&(S||O||h.length>0)&&(_|=512),!t.inSSR&&I)switch(I.type){case 15:let H=-1,D=-1,F=!1;for(let te=0;te<I.properties.length;te++){const we=I.properties[te].key;Yn(we)?we.content==="class"?H=te:we.content==="style"&&(D=te):we.isHandlerKey||(F=!0)}const z=I.properties[H],G=I.properties[D];F?I=nn(t.helper(fa),[I]):(z&&!Yn(z.value)&&(z.value=nn(t.helper(Mm),[z.value])),G&&(T||G.value.type===4&&G.value.content.trim()[0]==="["||G.value.type===17)&&(G.value=nn(t.helper(Dm),[G.value])));break;case 14:break;default:I=nn(t.helper(fa),[nn(t.helper(ka),[I])]);break}return{props:I,directives:h,patchFlag:_,dynamicPropNames:$,shouldUseBlock:y}}function Db(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const s=o.key.content,l=t.get(s);l?(s==="style"||s==="class"||Xw(s))&&xN(l,o):(t.set(s,o),n.push(o))}return n}function xN(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Ra([e.value,t.value],e.loc)}function $N(e,t){const n=[],r=_S.get(e);r?n.push(t.helperString(r)):(t.helper(km),t.directives.add(e.name),n.push(ha(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const s=ut("true",!1,o);n.push(Rr(e.modifiers.map(l=>Yt(l,s)),o))}return Ra(n,e.loc)}function CN(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function _h(e){return e==="component"||e==="Component"}const TN=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ON=/-(\w)/g,Fb=TN(e=>e.replace(ON,(t,n)=>n?n.toUpperCase():"")),AN=(e,t)=>{if(Rc(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:s}=IN(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;s&&(l[2]=s,a=3),n.length&&(l[3]=Js([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=nn(t.helper(tS),l,r)}};function IN(e,t){let n='"default"',r;const o=[];for(let s=0;s<e.props.length;s++){const l=e.props[s];l.type===6?l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=Fb(l.name),o.push(l))):l.name==="bind"&&qi(l.arg,"name")?l.exp&&(n=l.exp):(l.name==="bind"&&l.arg&&Yn(l.arg)&&(l.arg.content=Fb(l.arg.content)),o.push(l))}if(o.length>0){const{props:s,directives:l}=wS(e,t,o,!1,!1);r=s,l.length&&t.onError(Wt(36,l[0].loc))}return{slotName:n,slotProps:r}}const PN=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,SS=(e,t,n,r)=>{const{loc:o,modifiers:s,arg:l}=e;!e.exp&&!s.length&&n.onError(Wt(35,o));let a;if(l.type===4)if(l.isStatic){let h=l.content;h.startsWith("vue:")&&(h=`vnode-${h.slice(4)}`);const g=t.tagType!==0||h.startsWith("vnode")||!/[A-Z]/.test(h)?dL(yd(h)):`on:${h}`;a=ut(g,!0,l.loc)}else a=Yr([`${n.helperString(mh)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(mh)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let d=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const h=iS(c.content),g=!(h||PN.test(c.content)),y=c.content.includes(";");(g||d&&h)&&(c=Yr([`${g?"$event":"(...args)"} => ${y?"{":"("}`,c,y?"}":")"]))}let p={props:[Yt(a,c||ut("() => {}",!1,o))]};return r&&(p=r(p)),d&&(p.props[0].value=n.cache(p.props[0].value)),p.props.forEach(h=>h.key.isHandlerKey=!0),p},kN=(e,t,n)=>{const{exp:r,modifiers:o,loc:s}=e,l=e.arg;return l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),o.includes("camel")&&(l.type===4?l.isStatic?l.content=yd(l.content):l.content=`${n.helperString(hh)}(${l.content})`:(l.children.unshift(`${n.helperString(hh)}(`),l.children.push(")"))),n.inSSR||(o.includes("prop")&&Bb(l,"."),o.includes("attr")&&Bb(l,"^")),!r||r.type===4&&!r.content.trim()?(n.onError(Wt(34,s)),{props:[Yt(l,ut("",!0,s))]}):{props:[Yt(l,r)]}},Bb=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},RN=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let s=0;s<n.length;s++){const l=n[s];if(xp(l)){o=!0;for(let a=s+1;a<n.length;a++){const c=n[a];if(xp(c))r||(r=n[s]=Yr([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(s=>s.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s<n.length;s++){const l=n[s];if(xp(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&Lr(l,t)===0&&a.push("1"),n[s]={type:12,content:l,loc:l.loc,codegenNode:nn(t.helper(Im),a)}}}}},Ub=new WeakSet,LN=(e,t)=>{if(e.type===1&&kr(e,"once",!0))return Ub.has(e)||t.inVOnce?void 0:(Ub.add(e),t.inVOnce=!0,t.helper(Ac),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},ES=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Wt(41,e.loc)),Ju();const s=r.loc.source,l=r.type===4?r.content:s,a=n.bindingMetadata[s];if(a==="props"||a==="props-aliased")return n.onError(Wt(44,r.loc)),Ju();if(!l.trim()||!iS(l)&&!!1)return n.onError(Wt(42,r.loc)),Ju();const d=o||ut("modelValue",!0),p=o?Yn(o)?`onUpdate:${yd(o.content)}`:Yr(['"onUpdate:" + ',o]):"onUpdate:modelValue";let h;const g=n.isTS?"($event: any)":"$event";h=Yr([`${g} => ((`,r,") = $event)"]);const y=[Yt(d,e.exp),Yt(p,h)];if(e.modifiers.length&&t.tagType===1){const _=e.modifiers.map(C=>(jm(C)?C:JSON.stringify(C))+": true").join(", "),S=o?Yn(o)?`${o.content}Modifiers`:Yr([o,' + "Modifiers"']):"modelModifiers";y.push(Yt(S,ut(`{ ${_} }`,!1,e.loc,2)))}return Ju(y)};function Ju(e=[]){return{props:e}}const NN=/[\w).+\-_$\]]/,MN=(e,t)=>{Qi("COMPILER_FILTER",t)&&(e.type===5&&Nc(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Nc(n.exp,t)}))};function Nc(e,t){if(e.type===4)jb(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?jb(r,t):r.type===8?Nc(e,t):r.type===5&&Nc(r.content,t))}}function jb(e,t){const n=e.content;let r=!1,o=!1,s=!1,l=!1,a=0,c=0,d=0,p=0,h,g,y,_,S=[];for(y=0;y<n.length;y++)if(g=h,h=n.charCodeAt(y),r)h===39&&g!==92&&(r=!1);else if(o)h===34&&g!==92&&(o=!1);else if(s)h===96&&g!==92&&(s=!1);else if(l)h===47&&g!==92&&(l=!1);else if(h===124&&n.charCodeAt(y+1)!==124&&n.charCodeAt(y-1)!==124&&!a&&!c&&!d)_===void 0?(p=y+1,_=n.slice(0,y).trim()):C();else{switch(h){case 34:o=!0;break;case 39:r=!0;break;case 96:s=!0;break;case 40:d++;break;case 41:d--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(h===47){let T=y-1,w;for(;T>=0&&(w=n.charAt(T),w===" ");T--);(!w||!NN.test(w))&&(l=!0)}}_===void 0?_=n.slice(0,y).trim():p!==0&&C();function C(){S.push(n.slice(p,y).trim()),p=y+1}if(S.length){for(y=0;y<S.length;y++)_=DN(_,S[y],t);e.content=_}}function DN(e,t,n){n.helper(Rm);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${ha(t,"filter")}(${e})`;{const o=t.slice(0,r),s=t.slice(r+1);return n.filters.add(o),`${ha(o,"filter")}(${e}${s!==")"?","+s:s}`}}const Hb=new WeakSet,FN=(e,t)=>{if(e.type===1){const n=kr(e,"memo");return!n||Hb.has(e)?void 0:(Hb.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Hm(r,t),e.codegenNode=nn(t.helper(Um),[n.exp,Js(void 0,r),"_cache",String(t.cached++)]))})}};function BN(e){return[[LN,dN,FN,hN,MN,AN,SN,bN,RN],{on:SS,bind:kN,model:ES}]}function UN(e,t={}){const n=t.onError||Cm,r=t.mode==="module";t.prefixIdentifiers===!0?n(Wt(47)):r&&n(Wt(48));const o=!1;t.cacheHandlers&&n(Wt(49)),t.scopeId&&!r&&n(Wt(50));const s=mn(e)?kL(e,t):e,[l,a]=BN();return qL(s,Ho({},t,{prefixIdentifiers:o,nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:Ho({},a,t.directiveTransforms||{})})),JL(s,Ho({},t,{prefixIdentifiers:o}))}const jN=()=>({props:[]}),xS=Symbol(""),$S=Symbol(""),CS=Symbol(""),TS=Symbol(""),wh=Symbol(""),OS=Symbol(""),AS=Symbol(""),IS=Symbol(""),PS=Symbol(""),kS=Symbol("");vL({[xS]:"vModelRadio",[$S]:"vModelCheckbox",[CS]:"vModelText",[TS]:"vModelSelect",[wh]:"vModelDynamic",[OS]:"withModifiers",[AS]:"withKeys",[IS]:"vShow",[PS]:"Transition",[kS]:"TransitionGroup"});let Ls;function HN(e,t=!1){return Ls||(Ls=document.createElement("div")),t?(Ls.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Ls.children[0].getAttribute("foo")):(Ls.innerHTML=e,Ls.textContent)}const VN=ro("style,iframe,script,noscript",!0),WN={isVoidTag:rL,isNativeTag:e=>tL(e)||nL(e),isPreTag:e=>e==="pre",decodeEntities:HN,isBuiltInComponent:e=>{if(Ms(e,"Transition"))return PS;if(Ms(e,"TransitionGroup"))return kS},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(VN(e))return 2}return 0}},zN=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:ut("style",!0,t.loc),exp:qN(t.value.content,t.loc),modifiers:[],loc:t.loc})})},qN=(e,t)=>{const n=Y4(e);return ut(JSON.stringify(n),!1,t,3)};function Vo(e,t){return Wt(e,t)}const KN=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(51,o)),t.children.length&&(n.onError(Vo(52,o)),t.children.length=0),{props:[Yt(ut("innerHTML",!0,o),r||ut("",!0))]}},GN=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(53,o)),t.children.length&&(n.onError(Vo(54,o)),t.children.length=0),{props:[Yt(ut("textContent",!0),r?Lr(r,n)>0?r:nn(n.helperString(bd),[r],o):ut("",!0))]}},XN=(e,t,n)=>{const r=ES(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Vo(56,e.arg.loc));const{tag:o}=t,s=n.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||s){let l=CS,a=!1;if(o==="input"||s){const c=_d(t,"type");if(c){if(c.type===7)l=wh;else if(c.value)switch(c.value.content){case"radio":l=xS;break;case"checkbox":l=$S;break;case"file":a=!0,n.onError(Vo(57,e.loc));break}}else CL(t)&&(l=wh)}else o==="select"&&(l=TS);a||(r.needRuntime=n.helper(l))}else n.onError(Vo(55,e.loc));return r.props=r.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),r},JN=ro("passive,once,capture"),YN=ro("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),ZN=ro("left,right"),RS=ro("onkeyup,onkeydown,onkeypress",!0),QN=(e,t,n,r)=>{const o=[],s=[],l=[];for(let a=0;a<t.length;a++){const c=t[a];c==="native"&&ma("COMPILER_V_ON_NATIVE",n)||JN(c)?l.push(c):ZN(c)?Yn(e)?RS(e.content)?o.push(c):s.push(c):(o.push(c),s.push(c)):YN(c)?s.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:l}},Vb=(e,t)=>Yn(e)&&e.content.toLowerCase()==="onclick"?ut(t,!0):e.type!==4?Yr(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,e6=(e,t,n)=>SS(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:s,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:d}=QN(s,o,n,e.loc);if(c.includes("right")&&(s=Vb(s,"onContextmenu")),c.includes("middle")&&(s=Vb(s,"onMouseup")),c.length&&(l=nn(n.helper(OS),[l,JSON.stringify(c)])),a.length&&(!Yn(s)||RS(s.content))&&(l=nn(n.helper(AS),[l,JSON.stringify(a)])),d.length){const p=d.map($m).join("");s=Yn(s)?ut(`${s.content}${p}`,!0):Yr(["(",s,`) + "${p}"`])}return{props:[Yt(s,l)]}}),t6=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(59,o)),{props:[],needRuntime:n.helper(IS)}},n6=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(Vo(61,e.loc)),t.removeNode())},r6=[zN],o6={cloak:jN,html:KN,text:GN,model:XN,on:e6,show:t6};function i6(e,t={}){return UN(e,Ho({},WN,t,{nodeTransforms:[n6,...r6,...t.nodeTransforms||[]],directiveTransforms:Ho({},o6,t.directiveTransforms||{}),transformHoist:null}))}const Wb=Object.create(null);function s6(e,t){if(!mn(e))if(e.nodeType)e=e.innerHTML;else return $c;const n=e,r=Wb[n];if(r)return r;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const o=Ho({hoistStatic:!0,onError:void 0,onWarn:$c},t);!o.isCustomElement&&typeof customElements<"u"&&(o.isCustomElement=a=>!!customElements.get(a));const{code:s}=i6(e,o),l=new Function("Vue",s)(K4);return l._rc=!0,Wb[n]=l}vw(s6);function va(e){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},va(e)}function l6(e,t){if(va(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(va(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a6(e){var t=l6(e,"string");return va(t)=="symbol"?t:String(t)}function u6(e,t,n){return t=a6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function qb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zb(Object(n),!0).forEach(function(r){u6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function An(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Kb=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Cp=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mc={INIT:"@@redux/INIT"+Cp(),REPLACE:"@@redux/REPLACE"+Cp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Cp()}};function c6(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zm(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(An(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(An(1));return n(zm)(e,t)}if(typeof e!="function")throw new Error(An(2));var o=e,s=t,l=[],a=l,c=!1;function d(){a===l&&(a=l.slice())}function p(){if(c)throw new Error(An(3));return s}function h(S){if(typeof S!="function")throw new Error(An(4));if(c)throw new Error(An(5));var C=!0;return d(),a.push(S),function(){if(C){if(c)throw new Error(An(6));C=!1,d();var w=a.indexOf(S);a.splice(w,1),l=null}}}function g(S){if(!c6(S))throw new Error(An(7));if(typeof S.type>"u")throw new Error(An(8));if(c)throw new Error(An(9));try{c=!0,s=o(s,S)}finally{c=!1}for(var C=l=a,T=0;T<C.length;T++){var w=C[T];w()}return S}function y(S){if(typeof S!="function")throw new Error(An(10));o=S,g({type:Mc.REPLACE})}function _(){var S,C=h;return S={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(An(11));function E(){w.next&&w.next(p())}E();var O=C(E);return{unsubscribe:O}}},S[Kb]=function(){return this},S}return g({type:Mc.INIT}),r={dispatch:g,subscribe:h,getState:p,replaceReducer:y},r[Kb]=_,r}function d6(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Mc.INIT});if(typeof r>"u")throw new Error(An(12));if(typeof n(void 0,{type:Mc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(An(13))})}function LS(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];typeof e[o]=="function"&&(n[o]=e[o])}var s=Object.keys(n),l;try{d6(n)}catch(a){l=a}return function(c,d){if(c===void 0&&(c={}),l)throw l;for(var p=!1,h={},g=0;g<s.length;g++){var y=s[g],_=n[y],S=c[y],C=_(S,d);if(typeof C>"u")throw d&&d.type,new Error(An(14));h[y]=C,p=p||C!==S}return p=p||s.length!==Object.keys(c).length,p?h:c}}function NS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}function f6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var o=r.apply(void 0,arguments),s=function(){throw new Error(An(15))},l={getState:o.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(c){return c(l)});return s=NS.apply(void 0,a)(o.dispatch),qb(qb({},o),{},{dispatch:s})}}}function p6(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Sh=Symbol("ReduxStore"),Gb=Symbol("ReduxActions"),h6=(e,t)=>{if(!e)throw new Error("[redux-vuex]: store is not defined");t?t.provide(Sh,e):Zt(Sh,e)},m6=(e,t)=>{!e||(t?t.provide(Gb,e):Zt(Gb,e))},it=()=>kt(Sh)||(console.warn("[redux-vuex]: couldn't find a store, make sure you have provided it"),zm(LS({})));function g6(e){h6(e.store,e.app),m6(e.actions,e.app)}/*!
     5`),c()),p||o("return "),e.codegenNode?Ln(e.codegenNode,n):o("null"),y&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function e6(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:s,runtimeModuleName:l,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,d=a,p=Array.from(e.helpers);if(p.length>0&&(o(`const _Vue = ${d}
     6`),e.hoists.length)){const h=[Om,Am,Ia,Pm,tS].filter(g=>p.includes(g)).map(gS).join(", ");o(`const { ${h} } = _Vue
     7`)}t6(e.hoists,t),s(),o("return ")}function $p(e,t,{helper:n,push:r,newline:o,isTS:s}){const l=n(t==="filter"?Rm:t==="component"?Im:km);for(let a=0;a<e.length;a++){let c=e[a];const d=c.endsWith("__self");d&&(c=c.slice(0,-6)),r(`const ${ha(c,t)} = ${l}(${JSON.stringify(c)}${d?", true":""})${s?"!":""}`),a<e.length-1&&o()}}function t6(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:s,mode:l}=t;r();for(let a=0;a<e.length;a++){const c=e[a];c&&(n(`const _hoisted_${a+1} = `),Ln(c,t),r())}t.pure=!1}function Wm(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),La(e,t,n),n&&t.deindent(),t.push("]")}function La(e,t,n=!1,r=!0){const{push:o,newline:s}=t;for(let l=0;l<e.length;l++){const a=e[l];mn(a)?o(a):Gs(a)?Wm(a,t):Ln(a,t),l<e.length-1&&(n?(r&&o(","),s()):r&&o(", "))}}function Ln(e,t){if(mn(e)){t.push(e);return}if(xm(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Ln(e.codegenNode,t);break;case 2:n6(e,t);break;case 4:vS(e,t);break;case 5:r6(e,t);break;case 12:Ln(e.codegenNode,t);break;case 8:yS(e,t);break;case 3:i6(e,t);break;case 13:s6(e,t);break;case 14:a6(e,t);break;case 15:u6(e,t);break;case 17:c6(e,t);break;case 18:d6(e,t);break;case 19:f6(e,t);break;case 20:p6(e,t);break;case 21:La(e.body,t,!0,!1);break}}function n6(e,t){t.push(JSON.stringify(e.content),e)}function vS(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function r6(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Ed),n(`${r(bd)}(`),Ln(e.content,t),n(")")}function yS(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];mn(r)?t.push(r):Ln(r,t)}}function o6(e,t){const{push:n}=t;if(e.type===8)n("["),yS(e,t),n("]");else if(e.isStatic){const r=jm(e.content)?e.content:JSON.stringify(e.content);n(r,e)}else n(`[${e.content}]`,e)}function i6(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Ed),n(`${r(Ia)}(${JSON.stringify(e.content)})`,e)}function s6(e,t){const{push:n,helper:r,pure:o}=t,{tag:s,props:l,children:a,patchFlag:c,dynamicProps:d,directives:p,isBlock:h,disableTracking:g,isComponent:y}=e;p&&n(r(Lm)+"("),h&&n(`(${r(us)}(${g?"true":""}), `),o&&n(Ed);const _=h?Zs(t.inSSR,y):Ys(t.inSSR,y);n(r(_)+"(",e),La(l6([s,l,a,c,d]),t),n(")"),h&&n(")"),p&&(n(", "),Ln(p,t),n(")"))}function l6(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function a6(e,t){const{push:n,helper:r,pure:o}=t,s=mn(e.callee)?e.callee:r(e.callee);o&&n(Ed),n(s+"(",e),La(e.arguments,t),n(")")}function u6(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,{properties:l}=e;if(!l.length){n("{}",e);return}const a=l.length>1||!1;n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:d,value:p}=l[c];o6(d,t),n(": "),Ln(p,t),c<l.length-1&&(n(","),s())}a&&o(),n(a?"}":" }")}function c6(e,t){Wm(e.elements,t)}function d6(e,t){const{push:n,indent:r,deindent:o}=t,{params:s,returns:l,body:a,newline:c,isSlot:d}=e;d&&n(`_${Xs[Bm]}(`),n("(",e),Gs(s)?La(s,t):s&&Ln(s,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),Gs(l)?Wm(l,t):Ln(l,t)):a&&Ln(a,t),(c||a)&&(o(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function f6(e,t){const{test:n,consequent:r,alternate:o,newline:s}=e,{push:l,indent:a,deindent:c,newline:d}=t;if(n.type===4){const h=!jm(n.content);h&&l("("),vS(n,t),h&&l(")")}else l("("),Ln(n,t),l(")");s&&a(),t.indentLevel++,s||l(" "),l("? "),Ln(r,t),t.indentLevel--,s&&d(),s||l(" "),l(": ");const p=o.type===19;p||t.indentLevel++,Ln(o,t),p||t.indentLevel--,s&&c(!0)}function p6(e,t){const{push:n,helper:r,indent:o,deindent:s,newline:l}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Ac)}(-1),`),l()),n(`_cache[${e.index}] = `),Ln(e.value,t),e.isVNode&&(n(","),l(),n(`${r(Ac)}(1),`),l(),n(`_cache[${e.index}]`),s()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const h6=mS(/^(if|else|else-if)$/,(e,t,n)=>m6(e,t,n,(r,o,s)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const d=l[a];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(s)r.codegenNode=Lb(o,c,n);else{const d=g6(r.codegenNode);d.alternate=Lb(o,c+r.branches.length-1,n)}}}));function m6(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Wt(28,t.loc)),t.exp=ut("true",!1,o)}if(t.name==="if"){const o=Rb(e,t),s={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const o=n.parent.children;let s=o.indexOf(e);for(;s-->=-1;){const l=o[s];if(l&&l.type===3){n.removeNode(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(Wt(30,e.loc)),n.removeNode();const a=Rb(e,t);l.branches.push(a);const c=r&&r(l,a,!1);Sd(a,n),c&&c(),n.currentNode=null}else n.onError(Wt(30,e.loc));break}}}function Rb(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!kr(e,"for")?e.children:[e],userKey:_d(e,"key"),isTemplateIf:n}}function Lb(e,t,n){return e.condition?gh(e.condition,Nb(e,t,n),nn(n.helper(Ia),['""',"true"])):Nb(e,t,n)}function Nb(e,t,n){const{helper:r}=n,o=Yt("key",ut(`${t}`,!1,wr,2)),{children:s}=e,l=s[0];if(s.length!==1||l.type!==1)if(s.length===1&&l.type===11){const c=l.codegenNode;return Lc(c,o,n),c}else return pa(n,r(da),Rr([o]),s,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const c=l.codegenNode,d=kL(c);return d.type===13&&Hm(d,n),Lc(d,o,n),c}}function g6(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const v6=mS("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return y6(e,t,n,s=>{const l=nn(r(Nm),[s.source]),a=kc(e),c=kr(e,"memo"),d=_d(e,"key"),p=d&&(d.type===6?ut(d.value.content,!0):d.exp),h=d?Yt("key",p):null,g=s.source.type===4&&s.source.constType>0,y=g?64:d?128:256;return s.codegenNode=pa(n,r(da),void 0,l,y+"",void 0,void 0,!0,!g,!1,e.loc),()=>{let _;const{children:S}=s,C=S.length!==1||S[0].type!==1,T=Rc(e)?e:a&&e.children.length===1&&Rc(e.children[0])?e.children[0]:null;if(T?(_=T.codegenNode,a&&h&&Lc(_,h,n)):C?_=pa(n,r(da),h?Rr([h]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(_=S[0].codegenNode,a&&h&&Lc(_,h,n),_.isBlock!==!g&&(_.isBlock?(o(us),o(Zs(n.inSSR,_.isComponent))):o(Ys(n.inSSR,_.isComponent))),_.isBlock=!g,_.isBlock?(r(us),r(Zs(n.inSSR,_.isComponent))):r(Ys(n.inSSR,_.isComponent))),c){const w=Js(bh(s.parseResult,[ut("_cached")]));w.body=EL([Zr(["const _memo = (",c.exp,")"]),Zr(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(oS)}(_cached, _memo)) return _cached`]),Zr(["const _item = ",_]),ut("_item.memo = _memo"),ut("return _item")]),l.arguments.push(w,ut("_cache"),ut(String(n.cached++)))}else l.arguments.push(Js(bh(s.parseResult),_,!0))}})});function y6(e,t,n,r){if(!t.exp){n.onError(Wt(31,t.loc));return}const o=bS(t.exp);if(!o){n.onError(Wt(32,t.loc));return}const{addIdentifiers:s,removeIdentifiers:l,scopes:a}=n,{source:c,value:d,key:p,index:h}=o,g={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:p,objectIndexAlias:h,parseResult:o,children:kc(e)?e.children:[e]};n.replaceNode(g),a.vFor++;const y=r&&r(g);return()=>{a.vFor--,y&&y()}}const b6=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Mb=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,_6=/^\(|\)$/g;function bS(e,t){const n=e.loc,r=e.content,o=r.match(b6);if(!o)return;const[,s,l]=o,a={source:Gu(n,l.trim(),r.indexOf(l,s.length)),value:void 0,key:void 0,index:void 0};let c=s.trim().replace(_6,"").trim();const d=s.indexOf(c),p=c.match(Mb);if(p){c=c.replace(Mb,"").trim();const h=p[1].trim();let g;if(h&&(g=r.indexOf(h,d+c.length),a.key=Gu(n,h,g)),p[2]){const y=p[2].trim();y&&(a.index=Gu(n,y,r.indexOf(y,a.key?g+h.length:d+c.length)))}}return c&&(a.value=Gu(n,c,d)),a}function Gu(e,t,n){return ut(t,!1,lS(e,n,t.length))}function bh({value:e,key:t,index:n},r=[]){return w6([e,t,n,...r])}function w6(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||ut("_".repeat(r+1),!1))}const Db=ut("undefined",!1),S6=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=kr(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},E6=(e,t,n)=>Js(e,t,!1,!0,t.length?t[0].loc:n);function x6(e,t,n=E6){t.helper(Bm);const{children:r,loc:o}=e,s=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=kr(e,"slot",!0);if(c){const{arg:C,exp:T}=c;C&&!Qn(C)&&(a=!0),s.push(Yt(C||ut("default",!0),n(T,r,o)))}let d=!1,p=!1;const h=[],g=new Set;let y=0;for(let C=0;C<r.length;C++){const T=r[C];let w;if(!kc(T)||!(w=kr(T,"slot",!0))){T.type!==3&&h.push(T);continue}if(c){t.onError(Wt(37,w.loc));break}d=!0;const{children:E,loc:O}=T,{arg:x=ut("default",!0),exp:I,loc:k}=w;let P;Qn(x)?P=x?x.content:"default":a=!0;const H=n(I,E,O);let D,F,z;if(D=kr(T,"if"))a=!0,l.push(gh(D.exp,Xu(x,H,y++),Db));else if(F=kr(T,/^else(-if)?$/,!0)){let G=C,te;for(;G--&&(te=r[G],te.type===3););if(te&&kc(te)&&kr(te,"if")){r.splice(C,1),C--;let we=l[l.length-1];for(;we.alternate.type===19;)we=we.alternate;we.alternate=F.exp?gh(F.exp,Xu(x,H,y++),Db):Xu(x,H,y++)}else t.onError(Wt(30,F.loc))}else if(z=kr(T,"for")){a=!0;const G=z.parseResult||bS(z.exp);G?l.push(nn(t.helper(Nm),[G.source,Js(bh(G),Xu(x,H),!0)])):t.onError(Wt(32,z.loc))}else{if(P){if(g.has(P)){t.onError(Wt(38,k));continue}g.add(P),P==="default"&&(p=!0)}s.push(Yt(x,H))}}if(!c){const C=(T,w)=>{const E=n(T,w,o);return t.compatConfig&&(E.isNonScopedSlot=!0),Yt("default",E)};d?h.length&&h.some(T=>_S(T))&&(p?t.onError(Wt(39,h[0].loc)):s.push(C(void 0,h))):s.push(C(void 0,r))}const _=a?2:lc(e.children)?3:1;let S=Rr(s.concat(Yt("_",ut(_+"",!1))),o);return l.length&&(S=nn(t.helper(rS),[S,Ra(l)])),{slots:S,hasDynamicSlots:a}}function Xu(e,t,n){const r=[Yt("name",e),Yt("fn",t)];return n!=null&&r.push(Yt("key",ut(String(n),!0))),Rr(r)}function lc(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||lc(n.children))return!0;break;case 9:if(lc(n.branches))return!0;break;case 10:case 11:if(lc(n.children))return!0;break}}return!1}function _S(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():_S(e.content)}const wS=new WeakMap,$6=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,s=e.tagType===1;let l=s?C6(e,t):`"${r}"`;const a=uL(l)&&l.callee===Tc;let c,d,p,h=0,g,y,_,S=a||l===Jl||l===Tm||!s&&(r==="svg"||r==="foreignObject");if(o.length>0){const C=SS(e,t,void 0,s,a);c=C.props,h=C.patchFlag,y=C.dynamicPropNames;const T=C.directives;_=T&&T.length?Ra(T.map(w=>O6(w,t))):void 0,C.shouldUseBlock&&(S=!0)}if(e.children.length>0)if(l===Cc&&(S=!0,h|=1024),s&&l!==Jl&&l!==Cc){const{slots:T,hasDynamicSlots:w}=x6(e,t);d=T,w&&(h|=1024)}else if(e.children.length===1&&l!==Jl){const T=e.children[0],w=T.type,E=w===5||w===8;E&&Lr(T,t)===0&&(h|=1),E||w===2?d=T:d=e.children}else d=e.children;h!==0&&(p=String(h),y&&y.length&&(g=A6(y))),e.codegenNode=pa(t,l,c,d,p,g,_,!!S,!1,s,e.loc)};function C6(e,t,n=!1){let{tag:r}=e;const o=_h(r),s=_d(e,"is");if(s)if(o||es("COMPILER_IS_ON_ELEMENT",t)){const c=s.type===6?s.value&&ut(s.value.content,!0):s.exp;if(c)return nn(t.helper(Tc),[c])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const l=!o&&kr(e,"is");if(l&&l.exp)return nn(t.helper(Tc),[l.exp]);const a=iS(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(Im),t.components.add(r),ha(r,"component"))}function SS(e,t,n=e.props,r,o,s=!1){const{tag:l,loc:a,children:c}=e;let d=[];const p=[],h=[],g=c.length>0;let y=!1,_=0,S=!1,C=!1,T=!1,w=!1,E=!1,O=!1;const x=[],I=H=>{d.length&&(p.push(Rr(Fb(d),a)),d=[]),H&&p.push(H)},k=({key:H,value:D})=>{if(Qn(H)){const F=H.content,z=Jw(F);if(z&&(!r||o)&&F.toLowerCase()!=="onclick"&&F!=="onUpdate:modelValue"&&!Cb(F)&&(w=!0),z&&Cb(F)&&(O=!0),D.type===20||(D.type===4||D.type===8)&&Lr(D,t)>0)return;F==="ref"?S=!0:F==="class"?C=!0:F==="style"?T=!0:F!=="key"&&!x.includes(F)&&x.push(F),r&&(F==="class"||F==="style")&&!x.includes(F)&&x.push(F)}else E=!0};for(let H=0;H<n.length;H++){const D=n[H];if(D.type===6){const{loc:F,name:z,value:G}=D;let te=!0;if(z==="ref"&&(S=!0,t.scopes.vFor>0&&d.push(Yt(ut("ref_for",!0),ut("true")))),z==="is"&&(_h(l)||G&&G.content.startsWith("vue:")||es("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(Yt(ut(z,!0,lS(F,0,z.length)),ut(G?G.content:"",te,G?G.loc:F)))}else{const{name:F,arg:z,exp:G,loc:te}=D,we=F==="bind",be=F==="on";if(F==="slot"){r||t.onError(Wt(40,te));continue}if(F==="once"||F==="memo"||F==="is"||we&&Ki(z,"is")&&(_h(l)||es("COMPILER_IS_ON_ELEMENT",t))||be&&s)continue;if((we&&Ki(z,"key")||be&&g&&Ki(z,"vue:before-update"))&&(y=!0),we&&Ki(z,"ref")&&t.scopes.vFor>0&&d.push(Yt(ut("ref_for",!0),ut("true"))),!z&&(we||be)){if(E=!0,G)if(we){if(I(),es("COMPILER_V_BIND_OBJECT_ORDER",t)){p.unshift(G);continue}p.push(G)}else I({type:14,loc:te,callee:t.helper(Fm),arguments:r?[G]:[G,"true"]});else t.onError(Wt(we?34:35,te));continue}const Ae=t.directiveTransforms[F];if(Ae){const{props:Pe,needRuntime:Ye}=Ae(D,e,t);!s&&Pe.forEach(k),be&&z&&!Qn(z)?I(Rr(Pe,a)):d.push(...Pe),Ye&&(h.push(D),xm(Ye)&&wS.set(D,Ye))}else cL(F)||(h.push(D),g&&(y=!0))}}let P;if(p.length?(I(),p.length>1?P=nn(t.helper(Oc),p,a):P=p[0]):d.length&&(P=Rr(Fb(d),a)),E?_|=16:(C&&!r&&(_|=2),T&&!r&&(_|=4),x.length&&(_|=8),w&&(_|=32)),!y&&(_===0||_===32)&&(S||O||h.length>0)&&(_|=512),!t.inSSR&&P)switch(P.type){case 15:let H=-1,D=-1,F=!1;for(let te=0;te<P.properties.length;te++){const we=P.properties[te].key;Qn(we)?we.content==="class"?H=te:we.content==="style"&&(D=te):we.isHandlerKey||(F=!0)}const z=P.properties[H],G=P.properties[D];F?P=nn(t.helper(fa),[P]):(z&&!Qn(z.value)&&(z.value=nn(t.helper(Mm),[z.value])),G&&(T||G.value.type===4&&G.value.content.trim()[0]==="["||G.value.type===17)&&(G.value=nn(t.helper(Dm),[G.value])));break;case 14:break;default:P=nn(t.helper(fa),[nn(t.helper(ka),[P])]);break}return{props:P,directives:h,patchFlag:_,dynamicPropNames:x,shouldUseBlock:y}}function Fb(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const s=o.key.content,l=t.get(s);l?(s==="style"||s==="class"||Jw(s))&&T6(l,o):(t.set(s,o),n.push(o))}return n}function T6(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Ra([e.value,t.value],e.loc)}function O6(e,t){const n=[],r=wS.get(e);r?n.push(t.helperString(r)):(t.helper(km),t.directives.add(e.name),n.push(ha(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const s=ut("true",!1,o);n.push(Rr(e.modifiers.map(l=>Yt(l,s)),o))}return Ra(n,e.loc)}function A6(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function _h(e){return e==="component"||e==="Component"}const P6=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I6=/-(\w)/g,Bb=P6(e=>e.replace(I6,(t,n)=>n?n.toUpperCase():"")),k6=(e,t)=>{if(Rc(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:s}=R6(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;s&&(l[2]=s,a=3),n.length&&(l[3]=Js([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=nn(t.helper(nS),l,r)}};function R6(e,t){let n='"default"',r;const o=[];for(let s=0;s<e.props.length;s++){const l=e.props[s];l.type===6?l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=Bb(l.name),o.push(l))):l.name==="bind"&&Ki(l.arg,"name")?l.exp&&(n=l.exp):(l.name==="bind"&&l.arg&&Qn(l.arg)&&(l.arg.content=Bb(l.arg.content)),o.push(l))}if(o.length>0){const{props:s,directives:l}=SS(e,t,o,!1,!1);r=s,l.length&&t.onError(Wt(36,l[0].loc))}return{slotName:n,slotProps:r}}const L6=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ES=(e,t,n,r)=>{const{loc:o,modifiers:s,arg:l}=e;!e.exp&&!s.length&&n.onError(Wt(35,o));let a;if(l.type===4)if(l.isStatic){let h=l.content;h.startsWith("vue:")&&(h=`vnode-${h.slice(4)}`);const g=t.tagType!==0||h.startsWith("vnode")||!/[A-Z]/.test(h)?hL(yd(h)):`on:${h}`;a=ut(g,!0,l.loc)}else a=Zr([`${n.helperString(mh)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(mh)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let d=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const h=sS(c.content),g=!(h||L6.test(c.content)),y=c.content.includes(";");(g||d&&h)&&(c=Zr([`${g?"$event":"(...args)"} => ${y?"{":"("}`,c,y?"}":")"]))}let p={props:[Yt(a,c||ut("() => {}",!1,o))]};return r&&(p=r(p)),d&&(p.props[0].value=n.cache(p.props[0].value)),p.props.forEach(h=>h.key.isHandlerKey=!0),p},N6=(e,t,n)=>{const{exp:r,modifiers:o,loc:s}=e,l=e.arg;return l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),o.includes("camel")&&(l.type===4?l.isStatic?l.content=yd(l.content):l.content=`${n.helperString(hh)}(${l.content})`:(l.children.unshift(`${n.helperString(hh)}(`),l.children.push(")"))),n.inSSR||(o.includes("prop")&&Ub(l,"."),o.includes("attr")&&Ub(l,"^")),!r||r.type===4&&!r.content.trim()?(n.onError(Wt(34,s)),{props:[Yt(l,ut("",!0,s))]}):{props:[Yt(l,r)]}},Ub=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},M6=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let s=0;s<n.length;s++){const l=n[s];if(xp(l)){o=!0;for(let a=s+1;a<n.length;a++){const c=n[a];if(xp(c))r||(r=n[s]=Zr([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(s=>s.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s<n.length;s++){const l=n[s];if(xp(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&Lr(l,t)===0&&a.push("1"),n[s]={type:12,content:l,loc:l.loc,codegenNode:nn(t.helper(Pm),a)}}}}},jb=new WeakSet,D6=(e,t)=>{if(e.type===1&&kr(e,"once",!0))return jb.has(e)||t.inVOnce?void 0:(jb.add(e),t.inVOnce=!0,t.helper(Ac),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},xS=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Wt(41,e.loc)),Ju();const s=r.loc.source,l=r.type===4?r.content:s,a=n.bindingMetadata[s];if(a==="props"||a==="props-aliased")return n.onError(Wt(44,r.loc)),Ju();if(!l.trim()||!sS(l)&&!!1)return n.onError(Wt(42,r.loc)),Ju();const d=o||ut("modelValue",!0),p=o?Qn(o)?`onUpdate:${yd(o.content)}`:Zr(['"onUpdate:" + ',o]):"onUpdate:modelValue";let h;const g=n.isTS?"($event: any)":"$event";h=Zr([`${g} => ((`,r,") = $event)"]);const y=[Yt(d,e.exp),Yt(p,h)];if(e.modifiers.length&&t.tagType===1){const _=e.modifiers.map(C=>(jm(C)?C:JSON.stringify(C))+": true").join(", "),S=o?Qn(o)?`${o.content}Modifiers`:Zr([o,' + "Modifiers"']):"modelModifiers";y.push(Yt(S,ut(`{ ${_} }`,!1,e.loc,2)))}return Ju(y)};function Ju(e=[]){return{props:e}}const F6=/[\w).+\-_$\]]/,B6=(e,t)=>{es("COMPILER_FILTER",t)&&(e.type===5&&Nc(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Nc(n.exp,t)}))};function Nc(e,t){if(e.type===4)Hb(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?Hb(r,t):r.type===8?Nc(e,t):r.type===5&&Nc(r.content,t))}}function Hb(e,t){const n=e.content;let r=!1,o=!1,s=!1,l=!1,a=0,c=0,d=0,p=0,h,g,y,_,S=[];for(y=0;y<n.length;y++)if(g=h,h=n.charCodeAt(y),r)h===39&&g!==92&&(r=!1);else if(o)h===34&&g!==92&&(o=!1);else if(s)h===96&&g!==92&&(s=!1);else if(l)h===47&&g!==92&&(l=!1);else if(h===124&&n.charCodeAt(y+1)!==124&&n.charCodeAt(y-1)!==124&&!a&&!c&&!d)_===void 0?(p=y+1,_=n.slice(0,y).trim()):C();else{switch(h){case 34:o=!0;break;case 39:r=!0;break;case 96:s=!0;break;case 40:d++;break;case 41:d--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(h===47){let T=y-1,w;for(;T>=0&&(w=n.charAt(T),w===" ");T--);(!w||!F6.test(w))&&(l=!0)}}_===void 0?_=n.slice(0,y).trim():p!==0&&C();function C(){S.push(n.slice(p,y).trim()),p=y+1}if(S.length){for(y=0;y<S.length;y++)_=U6(_,S[y],t);e.content=_}}function U6(e,t,n){n.helper(Rm);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${ha(t,"filter")}(${e})`;{const o=t.slice(0,r),s=t.slice(r+1);return n.filters.add(o),`${ha(o,"filter")}(${e}${s!==")"?","+s:s}`}}const Vb=new WeakSet,j6=(e,t)=>{if(e.type===1){const n=kr(e,"memo");return!n||Vb.has(e)?void 0:(Vb.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Hm(r,t),e.codegenNode=nn(t.helper(Um),[n.exp,Js(void 0,r),"_cache",String(t.cached++)]))})}};function H6(e){return[[D6,h6,j6,v6,B6,k6,$6,S6,M6],{on:ES,bind:N6,model:xS}]}function V6(e,t={}){const n=t.onError||Cm,r=t.mode==="module";t.prefixIdentifiers===!0?n(Wt(47)):r&&n(Wt(48));const o=!1;t.cacheHandlers&&n(Wt(49)),t.scopeId&&!r&&n(Wt(50));const s=mn(e)?NL(e,t):e,[l,a]=H6();return XL(s,Ho({},t,{prefixIdentifiers:o,nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:Ho({},a,t.directiveTransforms||{})})),QL(s,Ho({},t,{prefixIdentifiers:o}))}const W6=()=>({props:[]}),$S=Symbol(""),CS=Symbol(""),TS=Symbol(""),OS=Symbol(""),wh=Symbol(""),AS=Symbol(""),PS=Symbol(""),IS=Symbol(""),kS=Symbol(""),RS=Symbol("");_L({[$S]:"vModelRadio",[CS]:"vModelCheckbox",[TS]:"vModelText",[OS]:"vModelSelect",[wh]:"vModelDynamic",[AS]:"withModifiers",[PS]:"withKeys",[IS]:"vShow",[kS]:"Transition",[RS]:"TransitionGroup"});let Ls;function z6(e,t=!1){return Ls||(Ls=document.createElement("div")),t?(Ls.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Ls.children[0].getAttribute("foo")):(Ls.innerHTML=e,Ls.textContent)}const q6=oo("style,iframe,script,noscript",!0),K6={isVoidTag:sL,isNativeTag:e=>oL(e)||iL(e),isPreTag:e=>e==="pre",decodeEntities:z6,isBuiltInComponent:e=>{if(Ms(e,"Transition"))return kS;if(Ms(e,"TransitionGroup"))return RS},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(q6(e))return 2}return 0}},G6=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:ut("style",!0,t.loc),exp:X6(t.value.content,t.loc),modifiers:[],loc:t.loc})})},X6=(e,t)=>{const n=eL(e);return ut(JSON.stringify(n),!1,t,3)};function Vo(e,t){return Wt(e,t)}const J6=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(51,o)),t.children.length&&(n.onError(Vo(52,o)),t.children.length=0),{props:[Yt(ut("innerHTML",!0,o),r||ut("",!0))]}},Y6=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(53,o)),t.children.length&&(n.onError(Vo(54,o)),t.children.length=0),{props:[Yt(ut("textContent",!0),r?Lr(r,n)>0?r:nn(n.helperString(bd),[r],o):ut("",!0))]}},Z6=(e,t,n)=>{const r=xS(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Vo(56,e.arg.loc));const{tag:o}=t,s=n.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||s){let l=TS,a=!1;if(o==="input"||s){const c=_d(t,"type");if(c){if(c.type===7)l=wh;else if(c.value)switch(c.value.content){case"radio":l=$S;break;case"checkbox":l=CS;break;case"file":a=!0,n.onError(Vo(57,e.loc));break}}else AL(t)&&(l=wh)}else o==="select"&&(l=OS);a||(r.needRuntime=n.helper(l))}else n.onError(Vo(55,e.loc));return r.props=r.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),r},Q6=oo("passive,once,capture"),eN=oo("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),tN=oo("left,right"),LS=oo("onkeyup,onkeydown,onkeypress",!0),nN=(e,t,n,r)=>{const o=[],s=[],l=[];for(let a=0;a<t.length;a++){const c=t[a];c==="native"&&ma("COMPILER_V_ON_NATIVE",n)||Q6(c)?l.push(c):tN(c)?Qn(e)?LS(e.content)?o.push(c):s.push(c):(o.push(c),s.push(c)):eN(c)?s.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:l}},Wb=(e,t)=>Qn(e)&&e.content.toLowerCase()==="onclick"?ut(t,!0):e.type!==4?Zr(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,rN=(e,t,n)=>ES(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:s,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:d}=nN(s,o,n,e.loc);if(c.includes("right")&&(s=Wb(s,"onContextmenu")),c.includes("middle")&&(s=Wb(s,"onMouseup")),c.length&&(l=nn(n.helper(AS),[l,JSON.stringify(c)])),a.length&&(!Qn(s)||LS(s.content))&&(l=nn(n.helper(PS),[l,JSON.stringify(a)])),d.length){const p=d.map($m).join("");s=Qn(s)?ut(`${s.content}${p}`,!0):Zr(["(",s,`) + "${p}"`])}return{props:[Yt(s,l)]}}),oN=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(59,o)),{props:[],needRuntime:n.helper(IS)}},iN=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(Vo(61,e.loc)),t.removeNode())},sN=[G6],lN={cloak:W6,html:J6,text:Y6,model:Z6,on:rN,show:oN};function aN(e,t={}){return V6(e,Ho({},K6,t,{nodeTransforms:[iN,...sN,...t.nodeTransforms||[]],directiveTransforms:Ho({},lN,t.directiveTransforms||{}),transformHoist:null}))}const zb=Object.create(null);function uN(e,t){if(!mn(e))if(e.nodeType)e=e.innerHTML;else return $c;const n=e,r=zb[n];if(r)return r;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const o=Ho({hoistStatic:!0,onError:void 0,onWarn:$c},t);!o.isCustomElement&&typeof customElements<"u"&&(o.isCustomElement=a=>!!customElements.get(a));const{code:s}=aN(e,o),l=new Function("Vue",s)(J4);return l._rc=!0,zb[n]=l}yw(uN);function va(e){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},va(e)}function cN(e,t){if(va(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(va(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dN(e){var t=cN(e,"string");return va(t)=="symbol"?t:String(t)}function fN(e,t,n){return t=dN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Kb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(n),!0).forEach(function(r){fN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function An(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Gb=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Cp=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mc={INIT:"@@redux/INIT"+Cp(),REPLACE:"@@redux/REPLACE"+Cp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Cp()}};function pN(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zm(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(An(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(An(1));return n(zm)(e,t)}if(typeof e!="function")throw new Error(An(2));var o=e,s=t,l=[],a=l,c=!1;function d(){a===l&&(a=l.slice())}function p(){if(c)throw new Error(An(3));return s}function h(S){if(typeof S!="function")throw new Error(An(4));if(c)throw new Error(An(5));var C=!0;return d(),a.push(S),function(){if(C){if(c)throw new Error(An(6));C=!1,d();var w=a.indexOf(S);a.splice(w,1),l=null}}}function g(S){if(!pN(S))throw new Error(An(7));if(typeof S.type>"u")throw new Error(An(8));if(c)throw new Error(An(9));try{c=!0,s=o(s,S)}finally{c=!1}for(var C=l=a,T=0;T<C.length;T++){var w=C[T];w()}return S}function y(S){if(typeof S!="function")throw new Error(An(10));o=S,g({type:Mc.REPLACE})}function _(){var S,C=h;return S={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(An(11));function E(){w.next&&w.next(p())}E();var O=C(E);return{unsubscribe:O}}},S[Gb]=function(){return this},S}return g({type:Mc.INIT}),r={dispatch:g,subscribe:h,getState:p,replaceReducer:y},r[Gb]=_,r}function hN(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Mc.INIT});if(typeof r>"u")throw new Error(An(12));if(typeof n(void 0,{type:Mc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(An(13))})}function NS(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];typeof e[o]=="function"&&(n[o]=e[o])}var s=Object.keys(n),l;try{hN(n)}catch(a){l=a}return function(c,d){if(c===void 0&&(c={}),l)throw l;for(var p=!1,h={},g=0;g<s.length;g++){var y=s[g],_=n[y],S=c[y],C=_(S,d);if(typeof C>"u")throw d&&d.type,new Error(An(14));h[y]=C,p=p||C!==S}return p=p||s.length!==Object.keys(c).length,p?h:c}}function MS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}function mN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var o=r.apply(void 0,arguments),s=function(){throw new Error(An(15))},l={getState:o.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(c){return c(l)});return s=MS.apply(void 0,a)(o.dispatch),Kb(Kb({},o),{},{dispatch:s})}}}function gN(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Sh=Symbol("ReduxStore"),Xb=Symbol("ReduxActions"),vN=(e,t)=>{if(!e)throw new Error("[redux-vuex]: store is not defined");t?t.provide(Sh,e):Zt(Sh,e)},yN=(e,t)=>{!e||(t?t.provide(Xb,e):Zt(Xb,e))},it=()=>Rt(Sh)||(console.warn("[redux-vuex]: couldn't find a store, make sure you have provided it"),zm(NS({})));function bN(e){vN(e.store,e.app),yN(e.actions,e.app)}/*!
    88 * isobject <https://github.com/jonschlinkert/isobject>
    99 *
    1010 * Copyright (c) 2014-2017, Jon Schlinkert.
    1111 * Released under the MIT License.
    12  */var v6=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*!
     12 */var _N=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*!
    1313 * get-value <https://github.com/jonschlinkert/get-value>
    1414 *
    1515 * Copyright (c) 2014-2018, Jon Schlinkert.
    1616 * Released under the MIT License.
    17  */const MS=v6;var Xb=function(e,t,n){if(MS(n)||(n={default:n}),!Yb(e))return typeof n.default<"u"?n.default:e;typeof t=="number"&&(t=String(t));const r=Array.isArray(t),o=typeof t=="string",s=n.separator||".",l=n.joinChar||(typeof s=="string"?s:".");if(!o&&!r)return e;if(o&&t in e)return Tp(t,e,n)?e[t]:n.default;let a=r?t:y6(t,s,n),c=a.length,d=0;do{let p=a[d];for(typeof p=="number"&&(p=String(p));p&&p.slice(-1)==="\\";)p=Jb([p.slice(0,-1),a[++d]||""],l,n);if(p in e){if(!Tp(p,e,n))return n.default;e=e[p]}else{let h=!1,g=d+1;for(;g<c;)if(p=Jb([p,a[g++]],l,n),h=p in e){if(!Tp(p,e,n))return n.default;e=e[p],d=g-1;break}if(!h)return n.default}}while(++d<c&&Yb(e));return d===c?e:n.default};function Jb(e,t,n){return typeof n.join=="function"?n.join(e):e[0]+t+e[1]}function y6(e,t,n){return typeof n.split=="function"?n.split(e):e.split(t)}function Tp(e,t,n){return typeof n.isValid=="function"?n.isValid(e,t):!0}function Yb(e){return MS(e)||Array.isArray(e)||typeof e=="function"}const b6=p6({__proto__:null,default:Xb},[Xb]),_6=e=>{const[t]=e;if(!Array.isArray(t)&&typeof t=="object")return Object.keys(t).reduce((r,o)=>{const s=t[o];return{...r,[o]:s}},{});const n=e;return[].concat.apply([],n).reduce((r,o)=>({...r,[o]:o}),{})},Zb=(e,t)=>Object.keys(e).reduce((n,r)=>{const o=e[r];return{...n,[r]:t(r,o)}},{});function yt(...e){const t=c=>d=>b6(d,c),n=it(),r=_6(e),o=Zb(r,(c,d)=>typeof d=="string"?t(d):d),s=Ei(Zb(r,c=>_e(c))),l=()=>{Object.keys(r).forEach(c=>{s[c]=o[c].call(null,n.getState())})};l();const a=n.subscribe(l);return Qt(a),s}var oo=function(t){return"@@redux-saga/"+t},DS=oo("CANCEL_PROMISE"),FS=oo("CHANNEL_END"),BS=oo("IO"),Qb=oo("MATCH"),US=oo("MULTICAST"),jS=oo("SAGA_ACTION"),HS=oo("SELF_CANCELLATION"),w6=oo("TASK"),js=oo("TASK_CANCEL"),VS=oo("TERMINATE"),S6=oo("LOCATION");function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(this,arguments)}function E6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var WS=function(t){return t==null},ac=function(t){return t!=null},Hn=function(t){return typeof t=="function"},qm=function(t){return typeof t=="string"},$i=Array.isArray,xd=function(t){return t&&Hn(t.then)},Km=function(t){return t&&Hn(t.next)&&Hn(t.throw)},e_=function e(t){return t&&(qm(t)||qS(t)||Hn(t)||$i(t)&&t.every(e))},$d=function(t){return t&&Hn(t.take)&&Hn(t.close)},zS=function(t){return Hn(t)&&t.hasOwnProperty("toString")},qS=function(t){return!!t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype},x6=function(t){return $d(t)&&t[US]},$6=2147483647;function C6(e,t){t===void 0&&(t=!0);var n,r=new Promise(function(o){n=setTimeout(o,Math.min($6,e),t)});return r[DS]=function(){clearTimeout(n)},r}var T6=function(t){return function(){return t}},KS=T6(!0),En=function(){},GS=function(t){return t},Gm=function(t,n){Dc(t,n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(function(r){t[r]=n[r]})},O6=function(t,n){var r;return(r=[]).concat.apply(r,n.map(t))};function Cd(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function XS(e){var t=!1;return function(){t||(t=!0,e())}}var A6=function(t){throw t},I6=function(t){return{value:t,done:!0}};function Eh(e,t,n){t===void 0&&(t=A6),n===void 0&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:I6,isSagaIterator:!0};return typeof Symbol<"u"&&(r[Symbol.iterator]=function(){return r}),r}function P6(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var JS=function(t){return Array.apply(null,new Array(t))},k6=function(t){return function(n){return t(Object.defineProperty(n,jS,{value:!0}))}},YS=function(t){return t===VS},ZS=function(t){return t===js},QS=function(t){return YS(t)||ZS(t)};function eE(e,t){var n=Object.keys(e),r=n.length,o=0,s,l=$i(e)?JS(r):{},a={};function c(){o===r&&(s=!0,t(l))}return n.forEach(function(d){var p=function(g,y){s||(y||QS(g)?(t.cancel(),t(g,y)):(l[d]=g,o++,c()))};p.cancel=En,a[d]=p}),t.cancel=function(){s||(s=!0,n.forEach(function(d){return a[d].cancel()}))},a}function Xm(e){return{name:e.name||"anonymous",location:tE(e)}}function tE(e){return e[S6]}function R6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}var L6="Channel's Buffer overflow!",N6=1,nE=3,rE=4,M6={isEmpty:KS,put:En,take:En};function oE(e,t){e===void 0&&(e=10);var n=new Array(e),r=0,o=0,s=0,l=function(p){n[o]=p,o=(o+1)%e,r++},a=function(){if(r!=0){var p=n[s];return n[s]=null,r--,s=(s+1)%e,p}},c=function(){for(var p=[];r;)p.push(a());return p};return{isEmpty:function(){return r==0},put:function(p){if(r<e)l(p);else{var h;switch(t){case N6:throw new Error(L6);case nE:n[o]=p,o=(o+1)%e,s=o;break;case rE:h=2*e,n=c(),r=n.length,o=n.length,s=0,n.length=h,e=h,l(p);break}}},take:a,flush:c}}var D6=function(){return M6},F6=function(t){return oE(t,nE)},B6=function(t){return oE(t,rE)},uc="TAKE",iE="PUT",sE="ALL",lE="RACE",aE="CALL",U6="CPS",uE="FORK",j6="JOIN",cE="CANCEL",dE="SELECT",fE="ACTION_CHANNEL",H6="CANCELLED",V6="FLUSH",W6="GET_CONTEXT",z6="SET_CONTEXT",Zr=function(t,n){var r;return r={},r[BS]=!0,r.combinator=!1,r.type=t,r.payload=n,r};function vo(e,t){if(e===void 0&&(e="*"),e_(e))return ac(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Zr(uc,{pattern:e});if(x6(e)&&ac(t)&&e_(t))return Zr(uc,{channel:e,pattern:t});if($d(e))return ac(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Zr(uc,{channel:e})}function Oe(e,t){return WS(t)&&(t=e,e=void 0),Zr(iE,{channel:e,action:t})}function pE(e){var t=Zr(sE,e);return t.combinator=!0,t}function xh(e){var t=Zr(lE,e);return t.combinator=!0,t}function hE(e,t){var n=null,r;return Hn(e)?r=e:($i(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&qm(r)&&Hn(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function Zn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zr(aE,hE(e,n))}function Dt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zr(uE,hE(e,n))}function q6(e){return e===void 0&&(e=HS),Zr(cE,e)}function Se(e){e===void 0&&(e=GS);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zr(dE,{selector:e,args:n})}function K6(e,t){return Zr(fE,{pattern:e,buffer:t})}var Jm=Zn.bind(null,C6);function G6(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}var mE=[],Td=0;function X6(e){try{Ym(),e()}finally{yE()}}function gE(e){mE.push(e),Td||(Ym(),bE())}function vE(e){try{return Ym(),e()}finally{bE()}}function Ym(){Td++}function yE(){Td--}function bE(){yE();for(var e;!Td&&(e=mE.shift())!==void 0;)X6(e)}var J6=function(t){return function(n){return t.some(function(r){return Zm(r)(n)})}},Y6=function(t){return function(n){return t(n)}},t_=function(t){return function(n){return n.type===String(t)}},Z6=function(t){return function(n){return n.type===t}},_E=function(){return KS};function Zm(e){var t=e==="*"?_E:qm(e)?t_:$i(e)?J6:zS(e)?t_:Hn(e)?Y6:qS(e)?Z6:null;if(t===null)throw new Error("invalid pattern: "+e);return t(e)}var Hs={type:FS},Od=function(t){return t&&t.type===FS};function wE(e){e===void 0&&(e=B6());var t=!1,n=[];function r(a){if(!t){if(n.length===0)return e.put(a);var c=n.shift();c(a)}}function o(a){t&&e.isEmpty()?a(Hs):e.isEmpty()?(n.push(a),a.cancel=function(){Cd(n,a)}):a(e.take())}function s(a){if(t&&e.isEmpty()){a(Hs);return}a(e.flush())}function l(){if(!t){t=!0;var a=n;n=[];for(var c=0,d=a.length;c<d;c++){var p=a[c];p(Hs)}}}return{take:o,put:r,flush:s,close:l}}function SE(e,t){t===void 0&&(t=D6());var n=!1,r,o=wE(t),s=function(){n||(n=!0,Hn(r)&&r(),o.close())};return r=e(function(l){if(Od(l)){s();return}o.put(l)}),r=XS(r),n&&r(),{take:o.take,flush:o.flush,close:s}}function Q6(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},s=function(){t=!0;var a=n=r;r=[],a.forEach(function(c){c(Hs)})};return e={},e[US]=!0,e.put=function(a){if(!t){if(Od(a)){s();return}for(var c=n=r,d=0,p=c.length;d<p;d++){var h=c[d];h[Qb](a)&&(h.cancel(),h(a))}}},e.take=function(a,c){if(c===void 0&&(c=_E),t){a(Hs);return}a[Qb]=c,o(),r.push(a),a.cancel=XS(function(){o(),Cd(r,a)})},e.close=s,e}function EE(){var e=Q6(),t=e.put;return e.put=function(n){if(n[jS]){t(n);return}gE(function(){t(n)})},e}var Wi=0,Bo=1,cc=2,xE=3;function Qm(e,t){var n=e[DS];Hn(n)&&(t.cancel=n),e.then(t,function(r){t(r,!0)})}var Na=0,$E=function(){return++Na},_n;function eM(e,t){return e.isSagaIterator?{name:e.meta.name}:Xm(t)}function tM(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(Km(o))return o;var s=!1,l=function(c){return s?{value:c,done:!0}:(s=!0,{value:o,done:!xd(o)})};return Eh(l)}catch(a){return Eh(function(){throw a})}}function nM(e,t,n){var r=t.channel,o=t.action,s=t.resolve;gE(function(){var l;try{l=(r?r.put:e.dispatch)(o)}catch(a){n(a,!0);return}s&&xd(l)?Qm(l,n):n(l)})}function rM(e,t,n){var r=t.channel,o=r===void 0?e.channel:r,s=t.pattern,l=t.maybe,a=function(d){if(d instanceof Error){n(d,!0);return}if(Od(d)&&!l){n(VS);return}n(d)};try{o.take(a,ac(s)?Zm(s):null)}catch(c){n(c,!0);return}n.cancel=a.cancel}function oM(e,t,n,r){var o=t.context,s=t.fn,l=t.args,a=r.task;try{var c=s.apply(o,l);if(xd(c)){Qm(c,n);return}if(Km(c)){Ad(e,c,a.context,Na,Xm(s),!1,n);return}n(c)}catch(d){n(d,!0)}}function iM(e,t,n){var r=t.context,o=t.fn,s=t.args;try{var l=function(c,d){WS(c)?n(d):n(c,!0)};o.apply(r,s.concat(l)),l.cancel&&(n.cancel=l.cancel)}catch(a){n(a,!0)}}function sM(e,t,n,r){var o=t.context,s=t.fn,l=t.args,a=t.detached,c=r.task,d=tM({context:o,fn:s,args:l}),p=eM(d,s);vE(function(){var h=Ad(e,d,c.context,Na,p,a,void 0);a?n(h):h.isRunning()?(c.queue.addTask(h),n(h)):h.isAborted()?c.queue.abort(h.error()):n(h)})}function lM(e,t,n,r){var o=r.task,s=function(c,d){if(c.isRunning()){var p={task:o,cb:d};d.cancel=function(){c.isRunning()&&Cd(c.joiners,p)},c.joiners.push(p)}else c.isAborted()?d(c.error(),!0):d(c.result())};if($i(t)){if(t.length===0){n([]);return}var l=eE(t,n);t.forEach(function(a,c){s(a,l[c])})}else s(t,n)}function Op(e){e.isRunning()&&e.cancel()}function aM(e,t,n,r){var o=r.task;t===HS?Op(o):$i(t)?t.forEach(Op):Op(t),n()}function uM(e,t,n,r){var o=r.digestEffect,s=Na,l=Object.keys(t);if(l.length===0){n($i(t)?[]:{});return}var a=eE(t,n);l.forEach(function(c){o(t[c],s,a[c],c)})}function cM(e,t,n,r){var o=r.digestEffect,s=Na,l=Object.keys(t),a=$i(t)?JS(l.length):{},c={},d=!1;l.forEach(function(p){var h=function(y,_){d||(_||QS(y)?(n.cancel(),n(y,_)):(n.cancel(),d=!0,a[p]=y,n(a)))};h.cancel=En,c[p]=h}),n.cancel=function(){d||(d=!0,l.forEach(function(p){return c[p].cancel()}))},l.forEach(function(p){d||o(t[p],s,c[p],p)})}function dM(e,t,n){var r=t.selector,o=t.args;try{var s=r.apply(void 0,[e.getState()].concat(o));n(s)}catch(l){n(l,!0)}}function fM(e,t,n){var r=t.pattern,o=t.buffer,s=wE(o),l=Zm(r),a=function d(p){Od(p)||e.channel.take(d,l),s.put(p)},c=s.close;s.close=function(){a.cancel(),c()},e.channel.take(a,l),n(s)}function pM(e,t,n,r){var o=r.task;n(o.isCancelled())}function hM(e,t,n){t.flush(n)}function mM(e,t,n,r){var o=r.task;n(o.context[t])}function gM(e,t,n,r){var o=r.task;Gm(o.context,t),n()}var vM=(_n={},_n[uc]=rM,_n[iE]=nM,_n[sE]=uM,_n[lE]=cM,_n[aE]=oM,_n[U6]=iM,_n[uE]=sM,_n[j6]=lM,_n[cE]=aM,_n[dE]=dM,_n[fE]=fM,_n[H6]=pM,_n[V6]=hM,_n[W6]=mM,_n[z6]=gM,_n);function yM(e,t,n){var r=[],o,s=!1;c(e);var l=function(){return r};function a(p){t(),d(),n(p,!0)}function c(p){r.push(p),p.cont=function(h,g){s||(Cd(r,p),p.cont=En,g?a(h):(p===e&&(o=h),r.length||(s=!0,n(o))))}}function d(){s||(s=!0,r.forEach(function(p){p.cont=En,p.cancel()}),r=[])}return{addTask:c,cancelAll:d,abort:a,getTasks:l}}function CE(e,t){return e+"?"+t}function bM(e){var t=tE(e);if(t){var n=t.code,r=t.fileName,o=t.lineNumber,s=n+"  "+CE(r,o);return s}return""}function n_(e){var t=e.name,n=e.location;return n?t+"  "+CE(n.fileName,n.lineNumber):t}function _M(e){var t=O6(function(n){return n.cancelledTasks},e);return t.length?["Tasks cancelled due to error:"].concat(t).join(`
    18 `):""}var eg=null,Zl=[],wM=function(t){t.crashedEffect=eg,Zl.push(t)},TE=function(){eg=null,Zl.length=0},SM=function(t){eg=t},EM=function(){var t=Zl[0],n=Zl.slice(1),r=t.crashedEffect?bM(t.crashedEffect):null,o="The above error occurred in task "+n_(t.meta)+(r?`
    19  when executing effect `+r:"");return[o].concat(n.map(function(s){return"    created by "+n_(s.meta)}),[_M(Zl)]).join(`
    20 `)};function xM(e,t,n,r,o,s,l){var a;l===void 0&&(l=En);var c=Wi,d,p,h=null,g=[],y=Object.create(n),_=yM(t,function(){g.push.apply(g,_.getTasks().map(function($){return $.meta.name}))},C);function S(){c===Wi&&(c=Bo,_.cancelAll(),C(js,!1))}function C(O,$){if(!$)O===js?c=Bo:c!==Bo&&(c=xE),d=O,h&&h.resolve(O);else{if(c=cc,wM({meta:o,cancelledTasks:g}),E.isRoot){var P=EM();TE(),e.onError(O,{sagaStack:P})}p=O,h&&h.reject(O)}E.cont(O,$),E.joiners.forEach(function(k){k.cb(O,$)}),E.joiners=null}function T(O){Gm(y,O)}function w(){return h||(h=G6(),c===cc?h.reject(p):c!==Wi&&h.resolve(d)),h.promise}var E=(a={},a[w6]=!0,a.id=r,a.meta=o,a.isRoot=s,a.context=y,a.joiners=[],a.queue=_,a.cancel=S,a.cont=l,a.end=C,a.setContext=T,a.toPromise=w,a.isRunning=function(){return c===Wi},a.isCancelled=function(){return c===Bo||c===Wi&&t.status===Bo},a.isAborted=function(){return c===cc},a.result=function(){return d},a.error=function(){return p},a);return E}function Ad(e,t,n,r,o,s,l){var a=e.finalizeRunEffect(y);g.cancel=En;var c={meta:o,cancel:h,status:Wi},d=xM(e,c,n,r,o,s,l),p={task:d,digestEffect:_};function h(){c.status===Wi&&(c.status=Bo,g(js))}return l&&(l.cancel=d.cancel),g(),d;function g(S,C){try{var T;C?(T=t.throw(S),TE()):ZS(S)?(c.status=Bo,g.cancel(),T=Hn(t.return)?t.return(js):{done:!0,value:js}):YS(S)?T=Hn(t.return)?t.return():{done:!0}:T=t.next(S),T.done?(c.status!==Bo&&(c.status=xE),c.cont(T.value)):_(T.value,r,g)}catch(w){if(c.status===Bo)throw w;c.status=cc,c.cont(w,!0)}}function y(S,C,T){if(xd(S))Qm(S,T);else if(Km(S))Ad(e,S,d.context,C,o,!1,T);else if(S&&S[BS]){var w=vM[S.type];w(e,S.payload,T,p)}else T(S)}function _(S,C,T,w){w===void 0&&(w="");var E=$E();e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:E,parentEffectId:C,label:w,effect:S});var O;function $(P,k){O||(O=!0,T.cancel=En,e.sagaMonitor&&(k?e.sagaMonitor.effectRejected(E,P):e.sagaMonitor.effectResolved(E,P)),k&&SM(S),T(P,k))}$.cancel=En,T.cancel=function(){O||(O=!0,$.cancel(),$.cancel=En,e.sagaMonitor&&e.sagaMonitor.effectCancelled(E))},a(S,E,$)}}function $M(e,t){for(var n=e.channel,r=n===void 0?EE():n,o=e.dispatch,s=e.getState,l=e.context,a=l===void 0?{}:l,c=e.sagaMonitor,d=e.effectMiddlewares,p=e.onError,h=p===void 0?P6:p,g=arguments.length,y=new Array(g>2?g-2:0),_=2;_<g;_++)y[_-2]=arguments[_];var S=t.apply(void 0,y),C=$E();c&&(c.rootSagaStarted=c.rootSagaStarted||En,c.effectTriggered=c.effectTriggered||En,c.effectResolved=c.effectResolved||En,c.effectRejected=c.effectRejected||En,c.effectCancelled=c.effectCancelled||En,c.actionDispatched=c.actionDispatched||En,c.rootSagaStarted({effectId:C,saga:t,args:y}));var T;if(d){var w=R6.apply(void 0,d);T=function($){return function(P,k,I){var H=function(F){return $(F,k,I)};return w(H)(P)}}}else T=GS;var E={channel:r,dispatch:k6(o),getState:s,sagaMonitor:c,onError:h,finalizeRunEffect:T};return vE(function(){var O=Ad(E,S,a,C,Xm(t),!0,void 0);return c&&c.effectResolved(C,O),O})}function CM(e){var t={},n=t.context,r=n===void 0?{}:n,o=t.channel,s=o===void 0?EE():o,l=t.sagaMonitor,a=E6(t,["context","channel","sagaMonitor"]),c;function d(p){var h=p.getState,g=p.dispatch;return c=$M.bind(null,Dc({},a,{context:r,channel:s,dispatch:g,getState:h,sagaMonitor:l})),function(y){return function(_){l&&l.actionDispatched&&l.actionDispatched(_);var S=y(_);return s.put(_),S}}}return d.run=function(){return c.apply(void 0,arguments)},d.setContext=function(p){Gm(r,p)},d}var Fc="NOT_FOUND";function TM(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Fc},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function OM(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return Fc}function o(a,c){r(a)===Fc&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:r,put:o,getEntries:s,clear:l}}var AM=function(t,n){return t===n};function IM(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function PM(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?AM:r,s=n.maxSize,l=s===void 0?1:s,a=n.resultEqualityCheck,c=IM(o),d=l===1?TM(c):OM(l,c);function p(){var h=d.get(arguments);if(h===Fc){if(h=e.apply(null,arguments),a){var g=d.getEntries(),y=g.find(function(_){return a(_.value,h)});y&&(h=y.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function kM(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function RM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var l=arguments.length,a=new Array(l),c=0;c<l;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},g=a.pop();if(typeof g=="object"&&(h=g,g=a.pop()),typeof g!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof g+"]");var y=h,_=y.memoizeOptions,S=_===void 0?n:_,C=Array.isArray(S)?S:[S],T=kM(a),w=e.apply(void 0,[function(){return d++,g.apply(null,arguments)}].concat(C)),E=e(function(){for(var O=[],$=T.length,P=0;P<$;P++)O.push(T[P].apply(null,arguments));return p=w.apply(null,O),p});return Object.assign(E,{resultFunc:g,memoizedResultFunc:w,dependencies:T,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),E};return o}var Ee=RM(PM),Pl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function LM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var NM=function(e,t,n,r,o,s,l,a){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,r,o,s,l,a],p=0;c=new Error(t.replace(/%s/g,function(){return d[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},MM=NM;const Bc=LM(MM),Uc=function(e){return typeof e=="function"},r_=function(e){return e.toString()};var DM="/",dc="||";const Ql=function(e){return e},o_=function(e){return e===null};function ve(e,t,n){t===void 0&&(t=Ql),Bc(Uc(t)||o_(t),"Expected payloadCreator to be a function, undefined or null");var r=o_(t)||t===Ql?Ql:function(a){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];return a instanceof Error?a:t.apply(void 0,[a].concat(d))},o=Uc(n),s=e.toString(),l=function(){var c=r.apply(void 0,arguments),d={type:e};return c instanceof Error&&(d.error=!0),c!==void 0&&(d.payload=c),o&&(d.meta=n.apply(void 0,arguments)),d};return l.toString=function(){return s},l}const tg=function(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},FM=function(e){return e==null},Id=function(e){return typeof Map<"u"&&e instanceof Map};function ng(e){if(Id(e))return Array.from(e.keys());if(typeof Reflect<"u"&&typeof Reflect.ownKeys=="function")return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function OE(e,t){return Id(t)?t.get(e):t[e]}const BM=function(e){return function t(n,r,o,s){var l=r===void 0?{}:r,a=l.namespace,c=a===void 0?DM:a,d=l.prefix;o===void 0&&(o={}),s===void 0&&(s="");function p(g){var y;if(!s)return g;var _=g.toString().split(dc),S=s.split(dc);return(y=[]).concat.apply(y,S.map(function(C){return _.map(function(T){return""+C+c+T})})).join(dc)}function h(g){return s||!d||d&&new RegExp("^"+d+c).test(g)?g:""+d+c+g}return ng(n).forEach(function(g){var y=h(p(g)),_=OE(g,n);e(_)?t(_,{namespace:c,prefix:d},o,y):o[y]=_}),o}},UM=function(e){return e===void 0};function jM(e,t,n){t===void 0&&(t=Ql);var r=r_(e).split(dc);Bc(!UM(n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),Bc(Uc(t)||tg(t),"Expected reducer to be a function or object with next and throw reducers");var o=Uc(t)?[t,t]:[t.next,t.throw].map(function(a){return FM(a)?Ql:a}),s=o[0],l=o[1];return function(a,c){a===void 0&&(a=n);var d=c.type;return!d||r.indexOf(r_(d))===-1?a:(c.error===!0?l:s)(a,c)}}const HM=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=typeof t[t.length-1]!="function"&&t.pop(),o=t;if(typeof r>"u")throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(s,l){for(var a=arguments.length,c=Array(a>2?a-2:0),d=2;d<a;d++)c[d-2]=arguments[d];var p=typeof s>"u",h=typeof l>"u";return p&&h&&r?r:o.reduce(function(g,y){return y.apply(void 0,[g,l].concat(c))},p&&!h&&r?r:s)}};function VM(e){var t=ng(e),n=t.every(function(r){return r==="next"||r==="throw"});return t.length&&t.length<=2&&n}const WM=BM(function(e){return(tg(e)||Id(e))&&!VM(e)});function sr(e,t,n){n===void 0&&(n={}),Bc(tg(e)||Id(e),"Expected handlers to be a plain object.");var r=WM(e,n),o=ng(r).map(function(l){return jM(l,OE(l,r),t)}),s=HM.apply(void 0,o.concat([t]));return function(l,a){return l===void 0&&(l=t),s(l,a)}}const Eo="podlove/publisher/INIT",zM="podlove/publisher/READY",qM="podlove/publisher/SAVE",KM="podlove/publisher/ERROR",GM=ve(Eo),XM=ve(qM);ve(KM);const JM=ve(zM),YM={saved:!1,changes:!1,bootstrapped:!1},ZM=sr({[Eo]:e=>({...e,bootstrapped:!0})},YM),QM={bootstrapped:e=>e.bootstrapped};var jc={exports:{}};/**
     17 */const DS=_N;var Jb=function(e,t,n){if(DS(n)||(n={default:n}),!Zb(e))return typeof n.default<"u"?n.default:e;typeof t=="number"&&(t=String(t));const r=Array.isArray(t),o=typeof t=="string",s=n.separator||".",l=n.joinChar||(typeof s=="string"?s:".");if(!o&&!r)return e;if(o&&t in e)return Tp(t,e,n)?e[t]:n.default;let a=r?t:wN(t,s,n),c=a.length,d=0;do{let p=a[d];for(typeof p=="number"&&(p=String(p));p&&p.slice(-1)==="\\";)p=Yb([p.slice(0,-1),a[++d]||""],l,n);if(p in e){if(!Tp(p,e,n))return n.default;e=e[p]}else{let h=!1,g=d+1;for(;g<c;)if(p=Yb([p,a[g++]],l,n),h=p in e){if(!Tp(p,e,n))return n.default;e=e[p],d=g-1;break}if(!h)return n.default}}while(++d<c&&Zb(e));return d===c?e:n.default};function Yb(e,t,n){return typeof n.join=="function"?n.join(e):e[0]+t+e[1]}function wN(e,t,n){return typeof n.split=="function"?n.split(e):e.split(t)}function Tp(e,t,n){return typeof n.isValid=="function"?n.isValid(e,t):!0}function Zb(e){return DS(e)||Array.isArray(e)||typeof e=="function"}const SN=gN({__proto__:null,default:Jb},[Jb]),EN=e=>{const[t]=e;if(!Array.isArray(t)&&typeof t=="object")return Object.keys(t).reduce((r,o)=>{const s=t[o];return{...r,[o]:s}},{});const n=e;return[].concat.apply([],n).reduce((r,o)=>({...r,[o]:o}),{})},Qb=(e,t)=>Object.keys(e).reduce((n,r)=>{const o=e[r];return{...n,[r]:t(r,o)}},{});function yt(...e){const t=c=>d=>SN(d,c),n=it(),r=EN(e),o=Qb(r,(c,d)=>typeof d=="string"?t(d):d),s=xi(Qb(r,c=>_e(c))),l=()=>{Object.keys(r).forEach(c=>{s[c]=o[c].call(null,n.getState())})};l();const a=n.subscribe(l);return Qt(a),s}var io=function(t){return"@@redux-saga/"+t},FS=io("CANCEL_PROMISE"),BS=io("CHANNEL_END"),US=io("IO"),e_=io("MATCH"),jS=io("MULTICAST"),HS=io("SAGA_ACTION"),VS=io("SELF_CANCELLATION"),xN=io("TASK"),js=io("TASK_CANCEL"),WS=io("TERMINATE"),$N=io("LOCATION");function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(this,arguments)}function CN(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var zS=function(t){return t==null},ac=function(t){return t!=null},Vn=function(t){return typeof t=="function"},qm=function(t){return typeof t=="string"},Ci=Array.isArray,xd=function(t){return t&&Vn(t.then)},Km=function(t){return t&&Vn(t.next)&&Vn(t.throw)},t_=function e(t){return t&&(qm(t)||KS(t)||Vn(t)||Ci(t)&&t.every(e))},$d=function(t){return t&&Vn(t.take)&&Vn(t.close)},qS=function(t){return Vn(t)&&t.hasOwnProperty("toString")},KS=function(t){return!!t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype},TN=function(t){return $d(t)&&t[jS]},ON=2147483647;function AN(e,t){t===void 0&&(t=!0);var n,r=new Promise(function(o){n=setTimeout(o,Math.min(ON,e),t)});return r[FS]=function(){clearTimeout(n)},r}var PN=function(t){return function(){return t}},GS=PN(!0),En=function(){},XS=function(t){return t},Gm=function(t,n){Dc(t,n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(function(r){t[r]=n[r]})},IN=function(t,n){var r;return(r=[]).concat.apply(r,n.map(t))};function Cd(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function JS(e){var t=!1;return function(){t||(t=!0,e())}}var kN=function(t){throw t},RN=function(t){return{value:t,done:!0}};function Eh(e,t,n){t===void 0&&(t=kN),n===void 0&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:RN,isSagaIterator:!0};return typeof Symbol<"u"&&(r[Symbol.iterator]=function(){return r}),r}function LN(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var YS=function(t){return Array.apply(null,new Array(t))},NN=function(t){return function(n){return t(Object.defineProperty(n,HS,{value:!0}))}},ZS=function(t){return t===WS},QS=function(t){return t===js},eE=function(t){return ZS(t)||QS(t)};function tE(e,t){var n=Object.keys(e),r=n.length,o=0,s,l=Ci(e)?YS(r):{},a={};function c(){o===r&&(s=!0,t(l))}return n.forEach(function(d){var p=function(g,y){s||(y||eE(g)?(t.cancel(),t(g,y)):(l[d]=g,o++,c()))};p.cancel=En,a[d]=p}),t.cancel=function(){s||(s=!0,n.forEach(function(d){return a[d].cancel()}))},a}function Xm(e){return{name:e.name||"anonymous",location:nE(e)}}function nE(e){return e[$N]}function MN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}var DN="Channel's Buffer overflow!",FN=1,rE=3,oE=4,BN={isEmpty:GS,put:En,take:En};function iE(e,t){e===void 0&&(e=10);var n=new Array(e),r=0,o=0,s=0,l=function(p){n[o]=p,o=(o+1)%e,r++},a=function(){if(r!=0){var p=n[s];return n[s]=null,r--,s=(s+1)%e,p}},c=function(){for(var p=[];r;)p.push(a());return p};return{isEmpty:function(){return r==0},put:function(p){if(r<e)l(p);else{var h;switch(t){case FN:throw new Error(DN);case rE:n[o]=p,o=(o+1)%e,s=o;break;case oE:h=2*e,n=c(),r=n.length,o=n.length,s=0,n.length=h,e=h,l(p);break}}},take:a,flush:c}}var UN=function(){return BN},jN=function(t){return iE(t,rE)},HN=function(t){return iE(t,oE)},uc="TAKE",sE="PUT",lE="ALL",aE="RACE",uE="CALL",VN="CPS",cE="FORK",WN="JOIN",dE="CANCEL",fE="SELECT",pE="ACTION_CHANNEL",hE="CANCELLED",zN="FLUSH",qN="GET_CONTEXT",KN="SET_CONTEXT",Nr=function(t,n){var r;return r={},r[US]=!0,r.combinator=!1,r.type=t,r.payload=n,r};function Qr(e,t){if(e===void 0&&(e="*"),t_(e))return ac(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Nr(uc,{pattern:e});if(TN(e)&&ac(t)&&t_(t))return Nr(uc,{channel:e,pattern:t});if($d(e))return ac(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Nr(uc,{channel:e})}function Oe(e,t){return zS(t)&&(t=e,e=void 0),Nr(sE,{channel:e,action:t})}function mE(e){var t=Nr(lE,e);return t.combinator=!0,t}function xh(e){var t=Nr(aE,e);return t.combinator=!0,t}function gE(e,t){var n=null,r;return Vn(e)?r=e:(Ci(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&qm(r)&&Vn(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function Nn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Nr(uE,gE(e,n))}function kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Nr(cE,gE(e,n))}function GN(e){return e===void 0&&(e=VS),Nr(dE,e)}function Se(e){e===void 0&&(e=XS);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Nr(fE,{selector:e,args:n})}function XN(e,t){return Nr(pE,{pattern:e,buffer:t})}function JN(){return Nr(hE,{})}var Jm=Nn.bind(null,AN);function YN(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}var vE=[],Td=0;function ZN(e){try{Ym(),e()}finally{_E()}}function yE(e){vE.push(e),Td||(Ym(),wE())}function bE(e){try{return Ym(),e()}finally{wE()}}function Ym(){Td++}function _E(){Td--}function wE(){_E();for(var e;!Td&&(e=vE.shift())!==void 0;)ZN(e)}var QN=function(t){return function(n){return t.some(function(r){return Zm(r)(n)})}},eM=function(t){return function(n){return t(n)}},n_=function(t){return function(n){return n.type===String(t)}},tM=function(t){return function(n){return n.type===t}},SE=function(){return GS};function Zm(e){var t=e==="*"?SE:qm(e)?n_:Ci(e)?QN:qS(e)?n_:Vn(e)?eM:KS(e)?tM:null;if(t===null)throw new Error("invalid pattern: "+e);return t(e)}var Hs={type:BS},Od=function(t){return t&&t.type===BS};function Qm(e){e===void 0&&(e=HN());var t=!1,n=[];function r(a){if(!t){if(n.length===0)return e.put(a);var c=n.shift();c(a)}}function o(a){t&&e.isEmpty()?a(Hs):e.isEmpty()?(n.push(a),a.cancel=function(){Cd(n,a)}):a(e.take())}function s(a){if(t&&e.isEmpty()){a(Hs);return}a(e.flush())}function l(){if(!t){t=!0;var a=n;n=[];for(var c=0,d=a.length;c<d;c++){var p=a[c];p(Hs)}}}return{take:o,put:r,flush:s,close:l}}function EE(e,t){t===void 0&&(t=UN());var n=!1,r,o=Qm(t),s=function(){n||(n=!0,Vn(r)&&r(),o.close())};return r=e(function(l){if(Od(l)){s();return}o.put(l)}),r=JS(r),n&&r(),{take:o.take,flush:o.flush,close:s}}function nM(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},s=function(){t=!0;var a=n=r;r=[],a.forEach(function(c){c(Hs)})};return e={},e[jS]=!0,e.put=function(a){if(!t){if(Od(a)){s();return}for(var c=n=r,d=0,p=c.length;d<p;d++){var h=c[d];h[e_](a)&&(h.cancel(),h(a))}}},e.take=function(a,c){if(c===void 0&&(c=SE),t){a(Hs);return}a[e_]=c,o(),r.push(a),a.cancel=JS(function(){o(),Cd(r,a)})},e.close=s,e}function xE(){var e=nM(),t=e.put;return e.put=function(n){if(n[HS]){t(n);return}yE(function(){t(n)})},e}var zi=0,Bo=1,cc=2,$E=3;function eg(e,t){var n=e[FS];Vn(n)&&(t.cancel=n),e.then(t,function(r){t(r,!0)})}var Na=0,CE=function(){return++Na},_n;function rM(e,t){return e.isSagaIterator?{name:e.meta.name}:Xm(t)}function oM(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(Km(o))return o;var s=!1,l=function(c){return s?{value:c,done:!0}:(s=!0,{value:o,done:!xd(o)})};return Eh(l)}catch(a){return Eh(function(){throw a})}}function iM(e,t,n){var r=t.channel,o=t.action,s=t.resolve;yE(function(){var l;try{l=(r?r.put:e.dispatch)(o)}catch(a){n(a,!0);return}s&&xd(l)?eg(l,n):n(l)})}function sM(e,t,n){var r=t.channel,o=r===void 0?e.channel:r,s=t.pattern,l=t.maybe,a=function(d){if(d instanceof Error){n(d,!0);return}if(Od(d)&&!l){n(WS);return}n(d)};try{o.take(a,ac(s)?Zm(s):null)}catch(c){n(c,!0);return}n.cancel=a.cancel}function lM(e,t,n,r){var o=t.context,s=t.fn,l=t.args,a=r.task;try{var c=s.apply(o,l);if(xd(c)){eg(c,n);return}if(Km(c)){Ad(e,c,a.context,Na,Xm(s),!1,n);return}n(c)}catch(d){n(d,!0)}}function aM(e,t,n){var r=t.context,o=t.fn,s=t.args;try{var l=function(c,d){zS(c)?n(d):n(c,!0)};o.apply(r,s.concat(l)),l.cancel&&(n.cancel=l.cancel)}catch(a){n(a,!0)}}function uM(e,t,n,r){var o=t.context,s=t.fn,l=t.args,a=t.detached,c=r.task,d=oM({context:o,fn:s,args:l}),p=rM(d,s);bE(function(){var h=Ad(e,d,c.context,Na,p,a,void 0);a?n(h):h.isRunning()?(c.queue.addTask(h),n(h)):h.isAborted()?c.queue.abort(h.error()):n(h)})}function cM(e,t,n,r){var o=r.task,s=function(c,d){if(c.isRunning()){var p={task:o,cb:d};d.cancel=function(){c.isRunning()&&Cd(c.joiners,p)},c.joiners.push(p)}else c.isAborted()?d(c.error(),!0):d(c.result())};if(Ci(t)){if(t.length===0){n([]);return}var l=tE(t,n);t.forEach(function(a,c){s(a,l[c])})}else s(t,n)}function Op(e){e.isRunning()&&e.cancel()}function dM(e,t,n,r){var o=r.task;t===VS?Op(o):Ci(t)?t.forEach(Op):Op(t),n()}function fM(e,t,n,r){var o=r.digestEffect,s=Na,l=Object.keys(t);if(l.length===0){n(Ci(t)?[]:{});return}var a=tE(t,n);l.forEach(function(c){o(t[c],s,a[c],c)})}function pM(e,t,n,r){var o=r.digestEffect,s=Na,l=Object.keys(t),a=Ci(t)?YS(l.length):{},c={},d=!1;l.forEach(function(p){var h=function(y,_){d||(_||eE(y)?(n.cancel(),n(y,_)):(n.cancel(),d=!0,a[p]=y,n(a)))};h.cancel=En,c[p]=h}),n.cancel=function(){d||(d=!0,l.forEach(function(p){return c[p].cancel()}))},l.forEach(function(p){d||o(t[p],s,c[p],p)})}function hM(e,t,n){var r=t.selector,o=t.args;try{var s=r.apply(void 0,[e.getState()].concat(o));n(s)}catch(l){n(l,!0)}}function mM(e,t,n){var r=t.pattern,o=t.buffer,s=Qm(o),l=Zm(r),a=function d(p){Od(p)||e.channel.take(d,l),s.put(p)},c=s.close;s.close=function(){a.cancel(),c()},e.channel.take(a,l),n(s)}function gM(e,t,n,r){var o=r.task;n(o.isCancelled())}function vM(e,t,n){t.flush(n)}function yM(e,t,n,r){var o=r.task;n(o.context[t])}function bM(e,t,n,r){var o=r.task;Gm(o.context,t),n()}var _M=(_n={},_n[uc]=sM,_n[sE]=iM,_n[lE]=fM,_n[aE]=pM,_n[uE]=lM,_n[VN]=aM,_n[cE]=uM,_n[WN]=cM,_n[dE]=dM,_n[fE]=hM,_n[pE]=mM,_n[hE]=gM,_n[zN]=vM,_n[qN]=yM,_n[KN]=bM,_n);function wM(e,t,n){var r=[],o,s=!1;c(e);var l=function(){return r};function a(p){t(),d(),n(p,!0)}function c(p){r.push(p),p.cont=function(h,g){s||(Cd(r,p),p.cont=En,g?a(h):(p===e&&(o=h),r.length||(s=!0,n(o))))}}function d(){s||(s=!0,r.forEach(function(p){p.cont=En,p.cancel()}),r=[])}return{addTask:c,cancelAll:d,abort:a,getTasks:l}}function TE(e,t){return e+"?"+t}function SM(e){var t=nE(e);if(t){var n=t.code,r=t.fileName,o=t.lineNumber,s=n+"  "+TE(r,o);return s}return""}function r_(e){var t=e.name,n=e.location;return n?t+"  "+TE(n.fileName,n.lineNumber):t}function EM(e){var t=IN(function(n){return n.cancelledTasks},e);return t.length?["Tasks cancelled due to error:"].concat(t).join(`
     18`):""}var tg=null,Zl=[],xM=function(t){t.crashedEffect=tg,Zl.push(t)},OE=function(){tg=null,Zl.length=0},$M=function(t){tg=t},CM=function(){var t=Zl[0],n=Zl.slice(1),r=t.crashedEffect?SM(t.crashedEffect):null,o="The above error occurred in task "+r_(t.meta)+(r?`
     19 when executing effect `+r:"");return[o].concat(n.map(function(s){return"    created by "+r_(s.meta)}),[EM(Zl)]).join(`
     20`)};function TM(e,t,n,r,o,s,l){var a;l===void 0&&(l=En);var c=zi,d,p,h=null,g=[],y=Object.create(n),_=wM(t,function(){g.push.apply(g,_.getTasks().map(function(x){return x.meta.name}))},C);function S(){c===zi&&(c=Bo,_.cancelAll(),C(js,!1))}function C(O,x){if(!x)O===js?c=Bo:c!==Bo&&(c=$E),d=O,h&&h.resolve(O);else{if(c=cc,xM({meta:o,cancelledTasks:g}),E.isRoot){var I=CM();OE(),e.onError(O,{sagaStack:I})}p=O,h&&h.reject(O)}E.cont(O,x),E.joiners.forEach(function(k){k.cb(O,x)}),E.joiners=null}function T(O){Gm(y,O)}function w(){return h||(h=YN(),c===cc?h.reject(p):c!==zi&&h.resolve(d)),h.promise}var E=(a={},a[xN]=!0,a.id=r,a.meta=o,a.isRoot=s,a.context=y,a.joiners=[],a.queue=_,a.cancel=S,a.cont=l,a.end=C,a.setContext=T,a.toPromise=w,a.isRunning=function(){return c===zi},a.isCancelled=function(){return c===Bo||c===zi&&t.status===Bo},a.isAborted=function(){return c===cc},a.result=function(){return d},a.error=function(){return p},a);return E}function Ad(e,t,n,r,o,s,l){var a=e.finalizeRunEffect(y);g.cancel=En;var c={meta:o,cancel:h,status:zi},d=TM(e,c,n,r,o,s,l),p={task:d,digestEffect:_};function h(){c.status===zi&&(c.status=Bo,g(js))}return l&&(l.cancel=d.cancel),g(),d;function g(S,C){try{var T;C?(T=t.throw(S),OE()):QS(S)?(c.status=Bo,g.cancel(),T=Vn(t.return)?t.return(js):{done:!0,value:js}):ZS(S)?T=Vn(t.return)?t.return():{done:!0}:T=t.next(S),T.done?(c.status!==Bo&&(c.status=$E),c.cont(T.value)):_(T.value,r,g)}catch(w){if(c.status===Bo)throw w;c.status=cc,c.cont(w,!0)}}function y(S,C,T){if(xd(S))eg(S,T);else if(Km(S))Ad(e,S,d.context,C,o,!1,T);else if(S&&S[US]){var w=_M[S.type];w(e,S.payload,T,p)}else T(S)}function _(S,C,T,w){w===void 0&&(w="");var E=CE();e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:E,parentEffectId:C,label:w,effect:S});var O;function x(I,k){O||(O=!0,T.cancel=En,e.sagaMonitor&&(k?e.sagaMonitor.effectRejected(E,I):e.sagaMonitor.effectResolved(E,I)),k&&$M(S),T(I,k))}x.cancel=En,T.cancel=function(){O||(O=!0,x.cancel(),x.cancel=En,e.sagaMonitor&&e.sagaMonitor.effectCancelled(E))},a(S,E,x)}}function OM(e,t){for(var n=e.channel,r=n===void 0?xE():n,o=e.dispatch,s=e.getState,l=e.context,a=l===void 0?{}:l,c=e.sagaMonitor,d=e.effectMiddlewares,p=e.onError,h=p===void 0?LN:p,g=arguments.length,y=new Array(g>2?g-2:0),_=2;_<g;_++)y[_-2]=arguments[_];var S=t.apply(void 0,y),C=CE();c&&(c.rootSagaStarted=c.rootSagaStarted||En,c.effectTriggered=c.effectTriggered||En,c.effectResolved=c.effectResolved||En,c.effectRejected=c.effectRejected||En,c.effectCancelled=c.effectCancelled||En,c.actionDispatched=c.actionDispatched||En,c.rootSagaStarted({effectId:C,saga:t,args:y}));var T;if(d){var w=MN.apply(void 0,d);T=function(x){return function(I,k,P){var H=function(F){return x(F,k,P)};return w(H)(I)}}}else T=XS;var E={channel:r,dispatch:NN(o),getState:s,sagaMonitor:c,onError:h,finalizeRunEffect:T};return bE(function(){var O=Ad(E,S,a,C,Xm(t),!0,void 0);return c&&c.effectResolved(C,O),O})}function AM(e){var t={},n=t.context,r=n===void 0?{}:n,o=t.channel,s=o===void 0?xE():o,l=t.sagaMonitor,a=CN(t,["context","channel","sagaMonitor"]),c;function d(p){var h=p.getState,g=p.dispatch;return c=OM.bind(null,Dc({},a,{context:r,channel:s,dispatch:g,getState:h,sagaMonitor:l})),function(y){return function(_){l&&l.actionDispatched&&l.actionDispatched(_);var S=y(_);return s.put(_),S}}}return d.run=function(){return c.apply(void 0,arguments)},d.setContext=function(p){Gm(r,p)},d}var Fc="NOT_FOUND";function PM(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Fc},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function IM(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return Fc}function o(a,c){r(a)===Fc&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:r,put:o,getEntries:s,clear:l}}var kM=function(t,n){return t===n};function RM(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function LM(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?kM:r,s=n.maxSize,l=s===void 0?1:s,a=n.resultEqualityCheck,c=RM(o),d=l===1?PM(c):IM(l,c);function p(){var h=d.get(arguments);if(h===Fc){if(h=e.apply(null,arguments),a){var g=d.getEntries(),y=g.find(function(_){return a(_.value,h)});y&&(h=y.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function NM(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function MM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var l=arguments.length,a=new Array(l),c=0;c<l;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},g=a.pop();if(typeof g=="object"&&(h=g,g=a.pop()),typeof g!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof g+"]");var y=h,_=y.memoizeOptions,S=_===void 0?n:_,C=Array.isArray(S)?S:[S],T=NM(a),w=e.apply(void 0,[function(){return d++,g.apply(null,arguments)}].concat(C)),E=e(function(){for(var O=[],x=T.length,I=0;I<x;I++)O.push(T[I].apply(null,arguments));return p=w.apply(null,O),p});return Object.assign(E,{resultFunc:g,memoizedResultFunc:w,dependencies:T,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),E};return o}var Ee=MM(LM),Il=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var FM=function(e,t,n,r,o,s,l,a){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,r,o,s,l,a],p=0;c=new Error(t.replace(/%s/g,function(){return d[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},BM=FM;const Bc=DM(BM),Uc=function(e){return typeof e=="function"},o_=function(e){return e.toString()};var UM="/",dc="||";const Ql=function(e){return e},i_=function(e){return e===null};function he(e,t,n){t===void 0&&(t=Ql),Bc(Uc(t)||i_(t),"Expected payloadCreator to be a function, undefined or null");var r=i_(t)||t===Ql?Ql:function(a){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];return a instanceof Error?a:t.apply(void 0,[a].concat(d))},o=Uc(n),s=e.toString(),l=function(){var c=r.apply(void 0,arguments),d={type:e};return c instanceof Error&&(d.error=!0),c!==void 0&&(d.payload=c),o&&(d.meta=n.apply(void 0,arguments)),d};return l.toString=function(){return s},l}const ng=function(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},jM=function(e){return e==null},Pd=function(e){return typeof Map<"u"&&e instanceof Map};function rg(e){if(Pd(e))return Array.from(e.keys());if(typeof Reflect<"u"&&typeof Reflect.ownKeys=="function")return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function AE(e,t){return Pd(t)?t.get(e):t[e]}const HM=function(e){return function t(n,r,o,s){var l=r===void 0?{}:r,a=l.namespace,c=a===void 0?UM:a,d=l.prefix;o===void 0&&(o={}),s===void 0&&(s="");function p(g){var y;if(!s)return g;var _=g.toString().split(dc),S=s.split(dc);return(y=[]).concat.apply(y,S.map(function(C){return _.map(function(T){return""+C+c+T})})).join(dc)}function h(g){return s||!d||d&&new RegExp("^"+d+c).test(g)?g:""+d+c+g}return rg(n).forEach(function(g){var y=h(p(g)),_=AE(g,n);e(_)?t(_,{namespace:c,prefix:d},o,y):o[y]=_}),o}},VM=function(e){return e===void 0};function WM(e,t,n){t===void 0&&(t=Ql);var r=o_(e).split(dc);Bc(!VM(n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),Bc(Uc(t)||ng(t),"Expected reducer to be a function or object with next and throw reducers");var o=Uc(t)?[t,t]:[t.next,t.throw].map(function(a){return jM(a)?Ql:a}),s=o[0],l=o[1];return function(a,c){a===void 0&&(a=n);var d=c.type;return!d||r.indexOf(o_(d))===-1?a:(c.error===!0?l:s)(a,c)}}const zM=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=typeof t[t.length-1]!="function"&&t.pop(),o=t;if(typeof r>"u")throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(s,l){for(var a=arguments.length,c=Array(a>2?a-2:0),d=2;d<a;d++)c[d-2]=arguments[d];var p=typeof s>"u",h=typeof l>"u";return p&&h&&r?r:o.reduce(function(g,y){return y.apply(void 0,[g,l].concat(c))},p&&!h&&r?r:s)}};function qM(e){var t=rg(e),n=t.every(function(r){return r==="next"||r==="throw"});return t.length&&t.length<=2&&n}const KM=HM(function(e){return(ng(e)||Pd(e))&&!qM(e)});function Wn(e,t,n){n===void 0&&(n={}),Bc(ng(e)||Pd(e),"Expected handlers to be a plain object.");var r=KM(e,n),o=rg(r).map(function(l){return WM(l,AE(l,r),t)}),s=zM.apply(void 0,o.concat([t]));return function(l,a){return l===void 0&&(l=t),s(l,a)}}const Eo="podlove/publisher/INIT",GM="podlove/publisher/READY",XM="podlove/publisher/SAVE",JM="podlove/publisher/ERROR",YM=he(Eo),ZM=he(XM);he(JM);const QM=he(GM),e7={saved:!1,changes:!1,bootstrapped:!1},t7=Wn({[Eo]:e=>({...e,bootstrapped:!0})},e7),n7={bootstrapped:e=>e.bootstrapped};var jc={exports:{}};/**
    2121 * @license
    2222 * Lodash <https://lodash.com/>
     
    2525 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
    2626 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
    27  */jc.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,y=4,_=1,S=2,C=1,T=2,w=4,E=8,O=16,$=32,P=64,k=128,I=256,H=512,D=30,F="...",z=800,G=16,te=1,we=2,be=3,Ae=1/0,Ie=9007199254740991,Ye=17976931348623157e292,ft=NaN,Le=4294967295,Ge=Le-1,Q=Le>>>1,ae=[["ary",k],["bind",C],["bindKey",T],["curry",E],["curryRight",O],["flip",H],["partial",$],["partialRight",P],["rearg",I]],fe="[object Arguments]",xe="[object Array]",He="[object AsyncFunction]",De="[object Boolean]",tt="[object Date]",gn="[object DOMException]",ln="[object Error]",L="[object Function]",B="[object GeneratorFunction]",Z="[object Map]",le="[object Number]",ie="[object Null]",pe="[object Object]",$e="[object Promise]",he="[object Proxy]",me="[object RegExp]",se="[object Set]",Re="[object String]",Pe="[object Symbol]",Me="[object Undefined]",je="[object WeakMap]",rt="[object WeakSet]",mt="[object ArrayBuffer]",ct="[object DataView]",Ht="[object Float32Array]",Mn="[object Float64Array]",ao="[object Int8Array]",vs="[object Int16Array]",$o="[object Int32Array]",ys="[object Uint8Array]",vn="[object Uint8ClampedArray]",Wn="[object Uint16Array]",bs="[object Uint32Array]",Q$=/\b__p \+= '';/g,eC=/\b(__p \+=) '' \+/g,tC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fv=/&(?:amp|lt|gt|quot|#39);/g,pv=/[&<>"']/g,nC=RegExp(fv.source),rC=RegExp(pv.source),oC=/<%-([\s\S]+?)%>/g,iC=/<%([\s\S]+?)%>/g,hv=/<%=([\s\S]+?)%>/g,sC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lC=/^\w*$/,aC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ef=/[\\^$.*+?()[\]{}|]/g,uC=RegExp(ef.source),tf=/^\s+/,cC=/\s/,dC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fC=/\{\n\/\* \[wrapped with (.+)\] \*/,pC=/,? & /,hC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mC=/[()=,{}\[\]\/\s]/,gC=/\\(\\)?/g,vC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mv=/\w*$/,yC=/^[-+]0x[0-9a-f]+$/i,bC=/^0b[01]+$/i,_C=/^\[object .+?Constructor\]$/,wC=/^0o[0-7]+$/i,SC=/^(?:0|[1-9]\d*)$/,EC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xa=/($^)/,xC=/['\n\r\u2028\u2029\\]/g,Ja="\\ud800-\\udfff",$C="\\u0300-\\u036f",CC="\\ufe20-\\ufe2f",TC="\\u20d0-\\u20ff",gv=$C+CC+TC,vv="\\u2700-\\u27bf",yv="a-z\\xdf-\\xf6\\xf8-\\xff",OC="\\xac\\xb1\\xd7\\xf7",AC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",IC="\\u2000-\\u206f",PC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bv="A-Z\\xc0-\\xd6\\xd8-\\xde",_v="\\ufe0e\\ufe0f",wv=OC+AC+IC+PC,nf="['’]",kC="["+Ja+"]",Sv="["+wv+"]",Ya="["+gv+"]",Ev="\\d+",RC="["+vv+"]",xv="["+yv+"]",$v="[^"+Ja+wv+Ev+vv+yv+bv+"]",rf="\\ud83c[\\udffb-\\udfff]",LC="(?:"+Ya+"|"+rf+")",Cv="[^"+Ja+"]",of="(?:\\ud83c[\\udde6-\\uddff]){2}",sf="[\\ud800-\\udbff][\\udc00-\\udfff]",_s="["+bv+"]",Tv="\\u200d",Ov="(?:"+xv+"|"+$v+")",NC="(?:"+_s+"|"+$v+")",Av="(?:"+nf+"(?:d|ll|m|re|s|t|ve))?",Iv="(?:"+nf+"(?:D|LL|M|RE|S|T|VE))?",Pv=LC+"?",kv="["+_v+"]?",MC="(?:"+Tv+"(?:"+[Cv,of,sf].join("|")+")"+kv+Pv+")*",DC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",FC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rv=kv+Pv+MC,BC="(?:"+[RC,of,sf].join("|")+")"+Rv,UC="(?:"+[Cv+Ya+"?",Ya,of,sf,kC].join("|")+")",jC=RegExp(nf,"g"),HC=RegExp(Ya,"g"),lf=RegExp(rf+"(?="+rf+")|"+UC+Rv,"g"),VC=RegExp([_s+"?"+xv+"+"+Av+"(?="+[Sv,_s,"$"].join("|")+")",NC+"+"+Iv+"(?="+[Sv,_s+Ov,"$"].join("|")+")",_s+"?"+Ov+"+"+Av,_s+"+"+Iv,FC,DC,Ev,BC].join("|"),"g"),WC=RegExp("["+Tv+Ja+gv+_v+"]"),zC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qC=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],KC=-1,Bt={};Bt[Ht]=Bt[Mn]=Bt[ao]=Bt[vs]=Bt[$o]=Bt[ys]=Bt[vn]=Bt[Wn]=Bt[bs]=!0,Bt[fe]=Bt[xe]=Bt[mt]=Bt[De]=Bt[ct]=Bt[tt]=Bt[ln]=Bt[L]=Bt[Z]=Bt[le]=Bt[pe]=Bt[me]=Bt[se]=Bt[Re]=Bt[je]=!1;var Rt={};Rt[fe]=Rt[xe]=Rt[mt]=Rt[ct]=Rt[De]=Rt[tt]=Rt[Ht]=Rt[Mn]=Rt[ao]=Rt[vs]=Rt[$o]=Rt[Z]=Rt[le]=Rt[pe]=Rt[me]=Rt[se]=Rt[Re]=Rt[Pe]=Rt[ys]=Rt[vn]=Rt[Wn]=Rt[bs]=!0,Rt[ln]=Rt[L]=Rt[je]=!1;var GC={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},XC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},JC={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},YC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ZC=parseFloat,QC=parseInt,Lv=typeof Pl=="object"&&Pl&&Pl.Object===Object&&Pl,eT=typeof self=="object"&&self&&self.Object===Object&&self,yn=Lv||eT||Function("return this")(),af=t&&!t.nodeType&&t,Oi=af&&!0&&e&&!e.nodeType&&e,Nv=Oi&&Oi.exports===af,uf=Nv&&Lv.process,Er=function(){try{var j=Oi&&Oi.require&&Oi.require("util").types;return j||uf&&uf.binding&&uf.binding("util")}catch{}}(),Mv=Er&&Er.isArrayBuffer,Dv=Er&&Er.isDate,Fv=Er&&Er.isMap,Bv=Er&&Er.isRegExp,Uv=Er&&Er.isSet,jv=Er&&Er.isTypedArray;function lr(j,ne,Y){switch(Y.length){case 0:return j.call(ne);case 1:return j.call(ne,Y[0]);case 2:return j.call(ne,Y[0],Y[1]);case 3:return j.call(ne,Y[0],Y[1],Y[2])}return j.apply(ne,Y)}function tT(j,ne,Y,ke){for(var Ze=-1,xt=j==null?0:j.length;++Ze<xt;){var an=j[Ze];ne(ke,an,Y(an),j)}return ke}function xr(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke&&ne(j[Y],Y,j)!==!1;);return j}function nT(j,ne){for(var Y=j==null?0:j.length;Y--&&ne(j[Y],Y,j)!==!1;);return j}function Hv(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke;)if(!ne(j[Y],Y,j))return!1;return!0}function Jo(j,ne){for(var Y=-1,ke=j==null?0:j.length,Ze=0,xt=[];++Y<ke;){var an=j[Y];ne(an,Y,j)&&(xt[Ze++]=an)}return xt}function Za(j,ne){var Y=j==null?0:j.length;return!!Y&&ws(j,ne,0)>-1}function cf(j,ne,Y){for(var ke=-1,Ze=j==null?0:j.length;++ke<Ze;)if(Y(ne,j[ke]))return!0;return!1}function Vt(j,ne){for(var Y=-1,ke=j==null?0:j.length,Ze=Array(ke);++Y<ke;)Ze[Y]=ne(j[Y],Y,j);return Ze}function Yo(j,ne){for(var Y=-1,ke=ne.length,Ze=j.length;++Y<ke;)j[Ze+Y]=ne[Y];return j}function df(j,ne,Y,ke){var Ze=-1,xt=j==null?0:j.length;for(ke&&xt&&(Y=j[++Ze]);++Ze<xt;)Y=ne(Y,j[Ze],Ze,j);return Y}function rT(j,ne,Y,ke){var Ze=j==null?0:j.length;for(ke&&Ze&&(Y=j[--Ze]);Ze--;)Y=ne(Y,j[Ze],Ze,j);return Y}function ff(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke;)if(ne(j[Y],Y,j))return!0;return!1}var oT=pf("length");function iT(j){return j.split("")}function sT(j){return j.match(hC)||[]}function Vv(j,ne,Y){var ke;return Y(j,function(Ze,xt,an){if(ne(Ze,xt,an))return ke=xt,!1}),ke}function Qa(j,ne,Y,ke){for(var Ze=j.length,xt=Y+(ke?1:-1);ke?xt--:++xt<Ze;)if(ne(j[xt],xt,j))return xt;return-1}function ws(j,ne,Y){return ne===ne?yT(j,ne,Y):Qa(j,Wv,Y)}function lT(j,ne,Y,ke){for(var Ze=Y-1,xt=j.length;++Ze<xt;)if(ke(j[Ze],ne))return Ze;return-1}function Wv(j){return j!==j}function zv(j,ne){var Y=j==null?0:j.length;return Y?mf(j,ne)/Y:ft}function pf(j){return function(ne){return ne==null?n:ne[j]}}function hf(j){return function(ne){return j==null?n:j[ne]}}function qv(j,ne,Y,ke,Ze){return Ze(j,function(xt,an,It){Y=ke?(ke=!1,xt):ne(Y,xt,an,It)}),Y}function aT(j,ne){var Y=j.length;for(j.sort(ne);Y--;)j[Y]=j[Y].value;return j}function mf(j,ne){for(var Y,ke=-1,Ze=j.length;++ke<Ze;){var xt=ne(j[ke]);xt!==n&&(Y=Y===n?xt:Y+xt)}return Y}function gf(j,ne){for(var Y=-1,ke=Array(j);++Y<j;)ke[Y]=ne(Y);return ke}function uT(j,ne){return Vt(ne,function(Y){return[Y,j[Y]]})}function Kv(j){return j&&j.slice(0,Yv(j)+1).replace(tf,"")}function ar(j){return function(ne){return j(ne)}}function vf(j,ne){return Vt(ne,function(Y){return j[Y]})}function pl(j,ne){return j.has(ne)}function Gv(j,ne){for(var Y=-1,ke=j.length;++Y<ke&&ws(ne,j[Y],0)>-1;);return Y}function Xv(j,ne){for(var Y=j.length;Y--&&ws(ne,j[Y],0)>-1;);return Y}function cT(j,ne){for(var Y=j.length,ke=0;Y--;)j[Y]===ne&&++ke;return ke}var dT=hf(GC),fT=hf(XC);function pT(j){return"\\"+YC[j]}function hT(j,ne){return j==null?n:j[ne]}function Ss(j){return WC.test(j)}function mT(j){return zC.test(j)}function gT(j){for(var ne,Y=[];!(ne=j.next()).done;)Y.push(ne.value);return Y}function yf(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke,Ze){Y[++ne]=[Ze,ke]}),Y}function Jv(j,ne){return function(Y){return j(ne(Y))}}function Zo(j,ne){for(var Y=-1,ke=j.length,Ze=0,xt=[];++Y<ke;){var an=j[Y];(an===ne||an===p)&&(j[Y]=p,xt[Ze++]=Y)}return xt}function eu(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke){Y[++ne]=ke}),Y}function vT(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke){Y[++ne]=[ke,ke]}),Y}function yT(j,ne,Y){for(var ke=Y-1,Ze=j.length;++ke<Ze;)if(j[ke]===ne)return ke;return-1}function bT(j,ne,Y){for(var ke=Y+1;ke--;)if(j[ke]===ne)return ke;return ke}function Es(j){return Ss(j)?wT(j):oT(j)}function Wr(j){return Ss(j)?ST(j):iT(j)}function Yv(j){for(var ne=j.length;ne--&&cC.test(j.charAt(ne)););return ne}var _T=hf(JC);function wT(j){for(var ne=lf.lastIndex=0;lf.test(j);)++ne;return ne}function ST(j){return j.match(lf)||[]}function ET(j){return j.match(VC)||[]}var xT=function j(ne){ne=ne==null?yn:xs.defaults(yn.Object(),ne,xs.pick(yn,qC));var Y=ne.Array,ke=ne.Date,Ze=ne.Error,xt=ne.Function,an=ne.Math,It=ne.Object,bf=ne.RegExp,$T=ne.String,$r=ne.TypeError,tu=Y.prototype,CT=xt.prototype,$s=It.prototype,nu=ne["__core-js_shared__"],ru=CT.toString,Ot=$s.hasOwnProperty,TT=0,Zv=function(){var i=/[^.]+$/.exec(nu&&nu.keys&&nu.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),ou=$s.toString,OT=ru.call(It),AT=yn._,IT=bf("^"+ru.call(Ot).replace(ef,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),iu=Nv?ne.Buffer:n,Qo=ne.Symbol,su=ne.Uint8Array,Qv=iu?iu.allocUnsafe:n,lu=Jv(It.getPrototypeOf,It),e0=It.create,t0=$s.propertyIsEnumerable,au=tu.splice,n0=Qo?Qo.isConcatSpreadable:n,hl=Qo?Qo.iterator:n,Ai=Qo?Qo.toStringTag:n,uu=function(){try{var i=Li(It,"defineProperty");return i({},"",{}),i}catch{}}(),PT=ne.clearTimeout!==yn.clearTimeout&&ne.clearTimeout,kT=ke&&ke.now!==yn.Date.now&&ke.now,RT=ne.setTimeout!==yn.setTimeout&&ne.setTimeout,cu=an.ceil,du=an.floor,_f=It.getOwnPropertySymbols,LT=iu?iu.isBuffer:n,r0=ne.isFinite,NT=tu.join,MT=Jv(It.keys,It),un=an.max,Cn=an.min,DT=ke.now,FT=ne.parseInt,o0=an.random,BT=tu.reverse,wf=Li(ne,"DataView"),ml=Li(ne,"Map"),Sf=Li(ne,"Promise"),Cs=Li(ne,"Set"),gl=Li(ne,"WeakMap"),vl=Li(It,"create"),fu=gl&&new gl,Ts={},UT=Ni(wf),jT=Ni(ml),HT=Ni(Sf),VT=Ni(Cs),WT=Ni(gl),pu=Qo?Qo.prototype:n,yl=pu?pu.valueOf:n,i0=pu?pu.toString:n;function x(i){if(Gt(i)&&!Qe(i)&&!(i instanceof ht)){if(i instanceof Cr)return i;if(Ot.call(i,"__wrapped__"))return sy(i)}return new Cr(i)}var Os=function(){function i(){}return function(u){if(!Kt(u))return{};if(e0)return e0(u);i.prototype=u;var f=new i;return i.prototype=n,f}}();function hu(){}function Cr(i,u){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}x.templateSettings={escape:oC,evaluate:iC,interpolate:hv,variable:"",imports:{_:x}},x.prototype=hu.prototype,x.prototype.constructor=x,Cr.prototype=Os(hu.prototype),Cr.prototype.constructor=Cr;function ht(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Le,this.__views__=[]}function zT(){var i=new ht(this.__wrapped__);return i.__actions__=zn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=zn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=zn(this.__views__),i}function qT(){if(this.__filtered__){var i=new ht(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function KT(){var i=this.__wrapped__.value(),u=this.__dir__,f=Qe(i),m=u<0,b=f?i.length:0,A=i5(0,b,this.__views__),R=A.start,M=A.end,W=M-R,re=m?M:R-1,oe=this.__iteratees__,de=oe.length,Te=0,Ne=Cn(W,this.__takeCount__);if(!f||!m&&b==W&&Ne==W)return A0(i,this.__actions__);var ze=[];e:for(;W--&&Te<Ne;){re+=u;for(var st=-1,qe=i[re];++st<de;){var pt=oe[st],gt=pt.iteratee,dr=pt.type,Bn=gt(qe);if(dr==we)qe=Bn;else if(!Bn){if(dr==te)continue e;break e}}ze[Te++]=qe}return ze}ht.prototype=Os(hu.prototype),ht.prototype.constructor=ht;function Ii(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function GT(){this.__data__=vl?vl(null):{},this.size=0}function XT(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function JT(i){var u=this.__data__;if(vl){var f=u[i];return f===c?n:f}return Ot.call(u,i)?u[i]:n}function YT(i){var u=this.__data__;return vl?u[i]!==n:Ot.call(u,i)}function ZT(i,u){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=vl&&u===n?c:u,this}Ii.prototype.clear=GT,Ii.prototype.delete=XT,Ii.prototype.get=JT,Ii.prototype.has=YT,Ii.prototype.set=ZT;function Co(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function QT(){this.__data__=[],this.size=0}function eO(i){var u=this.__data__,f=mu(u,i);if(f<0)return!1;var m=u.length-1;return f==m?u.pop():au.call(u,f,1),--this.size,!0}function tO(i){var u=this.__data__,f=mu(u,i);return f<0?n:u[f][1]}function nO(i){return mu(this.__data__,i)>-1}function rO(i,u){var f=this.__data__,m=mu(f,i);return m<0?(++this.size,f.push([i,u])):f[m][1]=u,this}Co.prototype.clear=QT,Co.prototype.delete=eO,Co.prototype.get=tO,Co.prototype.has=nO,Co.prototype.set=rO;function To(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function oO(){this.size=0,this.__data__={hash:new Ii,map:new(ml||Co),string:new Ii}}function iO(i){var u=Tu(this,i).delete(i);return this.size-=u?1:0,u}function sO(i){return Tu(this,i).get(i)}function lO(i){return Tu(this,i).has(i)}function aO(i,u){var f=Tu(this,i),m=f.size;return f.set(i,u),this.size+=f.size==m?0:1,this}To.prototype.clear=oO,To.prototype.delete=iO,To.prototype.get=sO,To.prototype.has=lO,To.prototype.set=aO;function Pi(i){var u=-1,f=i==null?0:i.length;for(this.__data__=new To;++u<f;)this.add(i[u])}function uO(i){return this.__data__.set(i,c),this}function cO(i){return this.__data__.has(i)}Pi.prototype.add=Pi.prototype.push=uO,Pi.prototype.has=cO;function zr(i){var u=this.__data__=new Co(i);this.size=u.size}function dO(){this.__data__=new Co,this.size=0}function fO(i){var u=this.__data__,f=u.delete(i);return this.size=u.size,f}function pO(i){return this.__data__.get(i)}function hO(i){return this.__data__.has(i)}function mO(i,u){var f=this.__data__;if(f instanceof Co){var m=f.__data__;if(!ml||m.length<o-1)return m.push([i,u]),this.size=++f.size,this;f=this.__data__=new To(m)}return f.set(i,u),this.size=f.size,this}zr.prototype.clear=dO,zr.prototype.delete=fO,zr.prototype.get=pO,zr.prototype.has=hO,zr.prototype.set=mO;function s0(i,u){var f=Qe(i),m=!f&&Mi(i),b=!f&&!m&&oi(i),A=!f&&!m&&!b&&ks(i),R=f||m||b||A,M=R?gf(i.length,$T):[],W=M.length;for(var re in i)(u||Ot.call(i,re))&&!(R&&(re=="length"||b&&(re=="offset"||re=="parent")||A&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||Po(re,W)))&&M.push(re);return M}function l0(i){var u=i.length;return u?i[Rf(0,u-1)]:n}function gO(i,u){return Ou(zn(i),ki(u,0,i.length))}function vO(i){return Ou(zn(i))}function Ef(i,u,f){(f!==n&&!qr(i[u],f)||f===n&&!(u in i))&&Oo(i,u,f)}function bl(i,u,f){var m=i[u];(!(Ot.call(i,u)&&qr(m,f))||f===n&&!(u in i))&&Oo(i,u,f)}function mu(i,u){for(var f=i.length;f--;)if(qr(i[f][0],u))return f;return-1}function yO(i,u,f,m){return ei(i,function(b,A,R){u(m,b,f(b),R)}),m}function a0(i,u){return i&&co(u,pn(u),i)}function bO(i,u){return i&&co(u,Kn(u),i)}function Oo(i,u,f){u=="__proto__"&&uu?uu(i,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[u]=f}function xf(i,u){for(var f=-1,m=u.length,b=Y(m),A=i==null;++f<m;)b[f]=A?n:op(i,u[f]);return b}function ki(i,u,f){return i===i&&(f!==n&&(i=i<=f?i:f),u!==n&&(i=i>=u?i:u)),i}function Tr(i,u,f,m,b,A){var R,M=u&h,W=u&g,re=u&y;if(f&&(R=b?f(i,m,b,A):f(i)),R!==n)return R;if(!Kt(i))return i;var oe=Qe(i);if(oe){if(R=l5(i),!M)return zn(i,R)}else{var de=Tn(i),Te=de==L||de==B;if(oi(i))return k0(i,M);if(de==pe||de==fe||Te&&!b){if(R=W||Te?{}:Y0(i),!M)return W?JO(i,bO(R,i)):XO(i,a0(R,i))}else{if(!Rt[de])return b?i:{};R=a5(i,de,M)}}A||(A=new zr);var Ne=A.get(i);if(Ne)return Ne;A.set(i,R),Cy(i)?i.forEach(function(qe){R.add(Tr(qe,u,f,qe,i,A))}):xy(i)&&i.forEach(function(qe,pt){R.set(pt,Tr(qe,u,f,pt,i,A))});var ze=re?W?Wf:Vf:W?Kn:pn,st=oe?n:ze(i);return xr(st||i,function(qe,pt){st&&(pt=qe,qe=i[pt]),bl(R,pt,Tr(qe,u,f,pt,i,A))}),R}function _O(i){var u=pn(i);return function(f){return u0(f,i,u)}}function u0(i,u,f){var m=f.length;if(i==null)return!m;for(i=It(i);m--;){var b=f[m],A=u[b],R=i[b];if(R===n&&!(b in i)||!A(R))return!1}return!0}function c0(i,u,f){if(typeof i!="function")throw new $r(l);return Cl(function(){i.apply(n,f)},u)}function _l(i,u,f,m){var b=-1,A=Za,R=!0,M=i.length,W=[],re=u.length;if(!M)return W;f&&(u=Vt(u,ar(f))),m?(A=cf,R=!1):u.length>=o&&(A=pl,R=!1,u=new Pi(u));e:for(;++b<M;){var oe=i[b],de=f==null?oe:f(oe);if(oe=m||oe!==0?oe:0,R&&de===de){for(var Te=re;Te--;)if(u[Te]===de)continue e;W.push(oe)}else A(u,de,m)||W.push(oe)}return W}var ei=D0(uo),d0=D0(Cf,!0);function wO(i,u){var f=!0;return ei(i,function(m,b,A){return f=!!u(m,b,A),f}),f}function gu(i,u,f){for(var m=-1,b=i.length;++m<b;){var A=i[m],R=u(A);if(R!=null&&(M===n?R===R&&!cr(R):f(R,M)))var M=R,W=A}return W}function SO(i,u,f,m){var b=i.length;for(f=ot(f),f<0&&(f=-f>b?0:b+f),m=m===n||m>b?b:ot(m),m<0&&(m+=b),m=f>m?0:Oy(m);f<m;)i[f++]=u;return i}function f0(i,u){var f=[];return ei(i,function(m,b,A){u(m,b,A)&&f.push(m)}),f}function bn(i,u,f,m,b){var A=-1,R=i.length;for(f||(f=c5),b||(b=[]);++A<R;){var M=i[A];u>0&&f(M)?u>1?bn(M,u-1,f,m,b):Yo(b,M):m||(b[b.length]=M)}return b}var $f=F0(),p0=F0(!0);function uo(i,u){return i&&$f(i,u,pn)}function Cf(i,u){return i&&p0(i,u,pn)}function vu(i,u){return Jo(u,function(f){return ko(i[f])})}function Ri(i,u){u=ni(u,i);for(var f=0,m=u.length;i!=null&&f<m;)i=i[fo(u[f++])];return f&&f==m?i:n}function h0(i,u,f){var m=u(i);return Qe(i)?m:Yo(m,f(i))}function Dn(i){return i==null?i===n?Me:ie:Ai&&Ai in It(i)?o5(i):v5(i)}function Tf(i,u){return i>u}function EO(i,u){return i!=null&&Ot.call(i,u)}function xO(i,u){return i!=null&&u in It(i)}function $O(i,u,f){return i>=Cn(u,f)&&i<un(u,f)}function Of(i,u,f){for(var m=f?cf:Za,b=i[0].length,A=i.length,R=A,M=Y(A),W=1/0,re=[];R--;){var oe=i[R];R&&u&&(oe=Vt(oe,ar(u))),W=Cn(oe.length,W),M[R]=!f&&(u||b>=120&&oe.length>=120)?new Pi(R&&oe):n}oe=i[0];var de=-1,Te=M[0];e:for(;++de<b&&re.length<W;){var Ne=oe[de],ze=u?u(Ne):Ne;if(Ne=f||Ne!==0?Ne:0,!(Te?pl(Te,ze):m(re,ze,f))){for(R=A;--R;){var st=M[R];if(!(st?pl(st,ze):m(i[R],ze,f)))continue e}Te&&Te.push(ze),re.push(Ne)}}return re}function CO(i,u,f,m){return uo(i,function(b,A,R){u(m,f(b),A,R)}),m}function wl(i,u,f){u=ni(u,i),i=ty(i,u);var m=i==null?i:i[fo(Ar(u))];return m==null?n:lr(m,i,f)}function m0(i){return Gt(i)&&Dn(i)==fe}function TO(i){return Gt(i)&&Dn(i)==mt}function OO(i){return Gt(i)&&Dn(i)==tt}function Sl(i,u,f,m,b){return i===u?!0:i==null||u==null||!Gt(i)&&!Gt(u)?i!==i&&u!==u:AO(i,u,f,m,Sl,b)}function AO(i,u,f,m,b,A){var R=Qe(i),M=Qe(u),W=R?xe:Tn(i),re=M?xe:Tn(u);W=W==fe?pe:W,re=re==fe?pe:re;var oe=W==pe,de=re==pe,Te=W==re;if(Te&&oi(i)){if(!oi(u))return!1;R=!0,oe=!1}if(Te&&!oe)return A||(A=new zr),R||ks(i)?G0(i,u,f,m,b,A):n5(i,u,W,f,m,b,A);if(!(f&_)){var Ne=oe&&Ot.call(i,"__wrapped__"),ze=de&&Ot.call(u,"__wrapped__");if(Ne||ze){var st=Ne?i.value():i,qe=ze?u.value():u;return A||(A=new zr),b(st,qe,f,m,A)}}return Te?(A||(A=new zr),r5(i,u,f,m,b,A)):!1}function IO(i){return Gt(i)&&Tn(i)==Z}function Af(i,u,f,m){var b=f.length,A=b,R=!m;if(i==null)return!A;for(i=It(i);b--;){var M=f[b];if(R&&M[2]?M[1]!==i[M[0]]:!(M[0]in i))return!1}for(;++b<A;){M=f[b];var W=M[0],re=i[W],oe=M[1];if(R&&M[2]){if(re===n&&!(W in i))return!1}else{var de=new zr;if(m)var Te=m(re,oe,W,i,u,de);if(!(Te===n?Sl(oe,re,_|S,m,de):Te))return!1}}return!0}function g0(i){if(!Kt(i)||f5(i))return!1;var u=ko(i)?IT:_C;return u.test(Ni(i))}function PO(i){return Gt(i)&&Dn(i)==me}function kO(i){return Gt(i)&&Tn(i)==se}function RO(i){return Gt(i)&&Lu(i.length)&&!!Bt[Dn(i)]}function v0(i){return typeof i=="function"?i:i==null?Gn:typeof i=="object"?Qe(i)?_0(i[0],i[1]):b0(i):By(i)}function If(i){if(!$l(i))return MT(i);var u=[];for(var f in It(i))Ot.call(i,f)&&f!="constructor"&&u.push(f);return u}function LO(i){if(!Kt(i))return g5(i);var u=$l(i),f=[];for(var m in i)m=="constructor"&&(u||!Ot.call(i,m))||f.push(m);return f}function Pf(i,u){return i<u}function y0(i,u){var f=-1,m=qn(i)?Y(i.length):[];return ei(i,function(b,A,R){m[++f]=u(b,A,R)}),m}function b0(i){var u=qf(i);return u.length==1&&u[0][2]?Q0(u[0][0],u[0][1]):function(f){return f===i||Af(f,i,u)}}function _0(i,u){return Gf(i)&&Z0(u)?Q0(fo(i),u):function(f){var m=op(f,i);return m===n&&m===u?ip(f,i):Sl(u,m,_|S)}}function yu(i,u,f,m,b){i!==u&&$f(u,function(A,R){if(b||(b=new zr),Kt(A))NO(i,u,R,f,yu,m,b);else{var M=m?m(Jf(i,R),A,R+"",i,u,b):n;M===n&&(M=A),Ef(i,R,M)}},Kn)}function NO(i,u,f,m,b,A,R){var M=Jf(i,f),W=Jf(u,f),re=R.get(W);if(re){Ef(i,f,re);return}var oe=A?A(M,W,f+"",i,u,R):n,de=oe===n;if(de){var Te=Qe(W),Ne=!Te&&oi(W),ze=!Te&&!Ne&&ks(W);oe=W,Te||Ne||ze?Qe(M)?oe=M:en(M)?oe=zn(M):Ne?(de=!1,oe=k0(W,!0)):ze?(de=!1,oe=R0(W,!0)):oe=[]:Tl(W)||Mi(W)?(oe=M,Mi(M)?oe=Ay(M):(!Kt(M)||ko(M))&&(oe=Y0(W))):de=!1}de&&(R.set(W,oe),b(oe,W,m,A,R),R.delete(W)),Ef(i,f,oe)}function w0(i,u){var f=i.length;if(f)return u+=u<0?f:0,Po(u,f)?i[u]:n}function S0(i,u,f){u.length?u=Vt(u,function(A){return Qe(A)?function(R){return Ri(R,A.length===1?A[0]:A)}:A}):u=[Gn];var m=-1;u=Vt(u,ar(Ve()));var b=y0(i,function(A,R,M){var W=Vt(u,function(re){return re(A)});return{criteria:W,index:++m,value:A}});return aT(b,function(A,R){return GO(A,R,f)})}function MO(i,u){return E0(i,u,function(f,m){return ip(i,m)})}function E0(i,u,f){for(var m=-1,b=u.length,A={};++m<b;){var R=u[m],M=Ri(i,R);f(M,R)&&El(A,ni(R,i),M)}return A}function DO(i){return function(u){return Ri(u,i)}}function kf(i,u,f,m){var b=m?lT:ws,A=-1,R=u.length,M=i;for(i===u&&(u=zn(u)),f&&(M=Vt(i,ar(f)));++A<R;)for(var W=0,re=u[A],oe=f?f(re):re;(W=b(M,oe,W,m))>-1;)M!==i&&au.call(M,W,1),au.call(i,W,1);return i}function x0(i,u){for(var f=i?u.length:0,m=f-1;f--;){var b=u[f];if(f==m||b!==A){var A=b;Po(b)?au.call(i,b,1):Mf(i,b)}}return i}function Rf(i,u){return i+du(o0()*(u-i+1))}function FO(i,u,f,m){for(var b=-1,A=un(cu((u-i)/(f||1)),0),R=Y(A);A--;)R[m?A:++b]=i,i+=f;return R}function Lf(i,u){var f="";if(!i||u<1||u>Ie)return f;do u%2&&(f+=i),u=du(u/2),u&&(i+=i);while(u);return f}function at(i,u){return Yf(ey(i,u,Gn),i+"")}function BO(i){return l0(Rs(i))}function UO(i,u){var f=Rs(i);return Ou(f,ki(u,0,f.length))}function El(i,u,f,m){if(!Kt(i))return i;u=ni(u,i);for(var b=-1,A=u.length,R=A-1,M=i;M!=null&&++b<A;){var W=fo(u[b]),re=f;if(W==="__proto__"||W==="constructor"||W==="prototype")return i;if(b!=R){var oe=M[W];re=m?m(oe,W,M):n,re===n&&(re=Kt(oe)?oe:Po(u[b+1])?[]:{})}bl(M,W,re),M=M[W]}return i}var $0=fu?function(i,u){return fu.set(i,u),i}:Gn,jO=uu?function(i,u){return uu(i,"toString",{configurable:!0,enumerable:!1,value:lp(u),writable:!0})}:Gn;function HO(i){return Ou(Rs(i))}function Or(i,u,f){var m=-1,b=i.length;u<0&&(u=-u>b?0:b+u),f=f>b?b:f,f<0&&(f+=b),b=u>f?0:f-u>>>0,u>>>=0;for(var A=Y(b);++m<b;)A[m]=i[m+u];return A}function VO(i,u){var f;return ei(i,function(m,b,A){return f=u(m,b,A),!f}),!!f}function bu(i,u,f){var m=0,b=i==null?m:i.length;if(typeof u=="number"&&u===u&&b<=Q){for(;m<b;){var A=m+b>>>1,R=i[A];R!==null&&!cr(R)&&(f?R<=u:R<u)?m=A+1:b=A}return b}return Nf(i,u,Gn,f)}function Nf(i,u,f,m){var b=0,A=i==null?0:i.length;if(A===0)return 0;u=f(u);for(var R=u!==u,M=u===null,W=cr(u),re=u===n;b<A;){var oe=du((b+A)/2),de=f(i[oe]),Te=de!==n,Ne=de===null,ze=de===de,st=cr(de);if(R)var qe=m||ze;else re?qe=ze&&(m||Te):M?qe=ze&&Te&&(m||!Ne):W?qe=ze&&Te&&!Ne&&(m||!st):Ne||st?qe=!1:qe=m?de<=u:de<u;qe?b=oe+1:A=oe}return Cn(A,Ge)}function C0(i,u){for(var f=-1,m=i.length,b=0,A=[];++f<m;){var R=i[f],M=u?u(R):R;if(!f||!qr(M,W)){var W=M;A[b++]=R===0?0:R}}return A}function T0(i){return typeof i=="number"?i:cr(i)?ft:+i}function ur(i){if(typeof i=="string")return i;if(Qe(i))return Vt(i,ur)+"";if(cr(i))return i0?i0.call(i):"";var u=i+"";return u=="0"&&1/i==-Ae?"-0":u}function ti(i,u,f){var m=-1,b=Za,A=i.length,R=!0,M=[],W=M;if(f)R=!1,b=cf;else if(A>=o){var re=u?null:e5(i);if(re)return eu(re);R=!1,b=pl,W=new Pi}else W=u?[]:M;e:for(;++m<A;){var oe=i[m],de=u?u(oe):oe;if(oe=f||oe!==0?oe:0,R&&de===de){for(var Te=W.length;Te--;)if(W[Te]===de)continue e;u&&W.push(de),M.push(oe)}else b(W,de,f)||(W!==M&&W.push(de),M.push(oe))}return M}function Mf(i,u){return u=ni(u,i),i=ty(i,u),i==null||delete i[fo(Ar(u))]}function O0(i,u,f,m){return El(i,u,f(Ri(i,u)),m)}function _u(i,u,f,m){for(var b=i.length,A=m?b:-1;(m?A--:++A<b)&&u(i[A],A,i););return f?Or(i,m?0:A,m?A+1:b):Or(i,m?A+1:0,m?b:A)}function A0(i,u){var f=i;return f instanceof ht&&(f=f.value()),df(u,function(m,b){return b.func.apply(b.thisArg,Yo([m],b.args))},f)}function Df(i,u,f){var m=i.length;if(m<2)return m?ti(i[0]):[];for(var b=-1,A=Y(m);++b<m;)for(var R=i[b],M=-1;++M<m;)M!=b&&(A[b]=_l(A[b]||R,i[M],u,f));return ti(bn(A,1),u,f)}function I0(i,u,f){for(var m=-1,b=i.length,A=u.length,R={};++m<b;){var M=m<A?u[m]:n;f(R,i[m],M)}return R}function Ff(i){return en(i)?i:[]}function Bf(i){return typeof i=="function"?i:Gn}function ni(i,u){return Qe(i)?i:Gf(i,u)?[i]:iy(Ct(i))}var WO=at;function ri(i,u,f){var m=i.length;return f=f===n?m:f,!u&&f>=m?i:Or(i,u,f)}var P0=PT||function(i){return yn.clearTimeout(i)};function k0(i,u){if(u)return i.slice();var f=i.length,m=Qv?Qv(f):new i.constructor(f);return i.copy(m),m}function Uf(i){var u=new i.constructor(i.byteLength);return new su(u).set(new su(i)),u}function zO(i,u){var f=u?Uf(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function qO(i){var u=new i.constructor(i.source,mv.exec(i));return u.lastIndex=i.lastIndex,u}function KO(i){return yl?It(yl.call(i)):{}}function R0(i,u){var f=u?Uf(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function L0(i,u){if(i!==u){var f=i!==n,m=i===null,b=i===i,A=cr(i),R=u!==n,M=u===null,W=u===u,re=cr(u);if(!M&&!re&&!A&&i>u||A&&R&&W&&!M&&!re||m&&R&&W||!f&&W||!b)return 1;if(!m&&!A&&!re&&i<u||re&&f&&b&&!m&&!A||M&&f&&b||!R&&b||!W)return-1}return 0}function GO(i,u,f){for(var m=-1,b=i.criteria,A=u.criteria,R=b.length,M=f.length;++m<R;){var W=L0(b[m],A[m]);if(W){if(m>=M)return W;var re=f[m];return W*(re=="desc"?-1:1)}}return i.index-u.index}function N0(i,u,f,m){for(var b=-1,A=i.length,R=f.length,M=-1,W=u.length,re=un(A-R,0),oe=Y(W+re),de=!m;++M<W;)oe[M]=u[M];for(;++b<R;)(de||b<A)&&(oe[f[b]]=i[b]);for(;re--;)oe[M++]=i[b++];return oe}function M0(i,u,f,m){for(var b=-1,A=i.length,R=-1,M=f.length,W=-1,re=u.length,oe=un(A-M,0),de=Y(oe+re),Te=!m;++b<oe;)de[b]=i[b];for(var Ne=b;++W<re;)de[Ne+W]=u[W];for(;++R<M;)(Te||b<A)&&(de[Ne+f[R]]=i[b++]);return de}function zn(i,u){var f=-1,m=i.length;for(u||(u=Y(m));++f<m;)u[f]=i[f];return u}function co(i,u,f,m){var b=!f;f||(f={});for(var A=-1,R=u.length;++A<R;){var M=u[A],W=m?m(f[M],i[M],M,f,i):n;W===n&&(W=i[M]),b?Oo(f,M,W):bl(f,M,W)}return f}function XO(i,u){return co(i,Kf(i),u)}function JO(i,u){return co(i,X0(i),u)}function wu(i,u){return function(f,m){var b=Qe(f)?tT:yO,A=u?u():{};return b(f,i,Ve(m,2),A)}}function As(i){return at(function(u,f){var m=-1,b=f.length,A=b>1?f[b-1]:n,R=b>2?f[2]:n;for(A=i.length>3&&typeof A=="function"?(b--,A):n,R&&Fn(f[0],f[1],R)&&(A=b<3?n:A,b=1),u=It(u);++m<b;){var M=f[m];M&&i(u,M,m,A)}return u})}function D0(i,u){return function(f,m){if(f==null)return f;if(!qn(f))return i(f,m);for(var b=f.length,A=u?b:-1,R=It(f);(u?A--:++A<b)&&m(R[A],A,R)!==!1;);return f}}function F0(i){return function(u,f,m){for(var b=-1,A=It(u),R=m(u),M=R.length;M--;){var W=R[i?M:++b];if(f(A[W],W,A)===!1)break}return u}}function YO(i,u,f){var m=u&C,b=xl(i);function A(){var R=this&&this!==yn&&this instanceof A?b:i;return R.apply(m?f:this,arguments)}return A}function B0(i){return function(u){u=Ct(u);var f=Ss(u)?Wr(u):n,m=f?f[0]:u.charAt(0),b=f?ri(f,1).join(""):u.slice(1);return m[i]()+b}}function Is(i){return function(u){return df(Dy(My(u).replace(jC,"")),i,"")}}function xl(i){return function(){var u=arguments;switch(u.length){case 0:return new i;case 1:return new i(u[0]);case 2:return new i(u[0],u[1]);case 3:return new i(u[0],u[1],u[2]);case 4:return new i(u[0],u[1],u[2],u[3]);case 5:return new i(u[0],u[1],u[2],u[3],u[4]);case 6:return new i(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new i(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=Os(i.prototype),m=i.apply(f,u);return Kt(m)?m:f}}function ZO(i,u,f){var m=xl(i);function b(){for(var A=arguments.length,R=Y(A),M=A,W=Ps(b);M--;)R[M]=arguments[M];var re=A<3&&R[0]!==W&&R[A-1]!==W?[]:Zo(R,W);if(A-=re.length,A<f)return W0(i,u,Su,b.placeholder,n,R,re,n,n,f-A);var oe=this&&this!==yn&&this instanceof b?m:i;return lr(oe,this,R)}return b}function U0(i){return function(u,f,m){var b=It(u);if(!qn(u)){var A=Ve(f,3);u=pn(u),f=function(M){return A(b[M],M,b)}}var R=i(u,f,m);return R>-1?b[A?u[R]:R]:n}}function j0(i){return Io(function(u){var f=u.length,m=f,b=Cr.prototype.thru;for(i&&u.reverse();m--;){var A=u[m];if(typeof A!="function")throw new $r(l);if(b&&!R&&Cu(A)=="wrapper")var R=new Cr([],!0)}for(m=R?m:f;++m<f;){A=u[m];var M=Cu(A),W=M=="wrapper"?zf(A):n;W&&Xf(W[0])&&W[1]==(k|E|$|I)&&!W[4].length&&W[9]==1?R=R[Cu(W[0])].apply(R,W[3]):R=A.length==1&&Xf(A)?R[M]():R.thru(A)}return function(){var re=arguments,oe=re[0];if(R&&re.length==1&&Qe(oe))return R.plant(oe).value();for(var de=0,Te=f?u[de].apply(this,re):oe;++de<f;)Te=u[de].call(this,Te);return Te}})}function Su(i,u,f,m,b,A,R,M,W,re){var oe=u&k,de=u&C,Te=u&T,Ne=u&(E|O),ze=u&H,st=Te?n:xl(i);function qe(){for(var pt=arguments.length,gt=Y(pt),dr=pt;dr--;)gt[dr]=arguments[dr];if(Ne)var Bn=Ps(qe),fr=cT(gt,Bn);if(m&&(gt=N0(gt,m,b,Ne)),A&&(gt=M0(gt,A,R,Ne)),pt-=fr,Ne&&pt<re){var tn=Zo(gt,Bn);return W0(i,u,Su,qe.placeholder,f,gt,tn,M,W,re-pt)}var Kr=de?f:this,Lo=Te?Kr[i]:i;return pt=gt.length,M?gt=y5(gt,M):ze&&pt>1&&gt.reverse(),oe&&W<pt&&(gt.length=W),this&&this!==yn&&this instanceof qe&&(Lo=st||xl(Lo)),Lo.apply(Kr,gt)}return qe}function H0(i,u){return function(f,m){return CO(f,i,u(m),{})}}function Eu(i,u){return function(f,m){var b;if(f===n&&m===n)return u;if(f!==n&&(b=f),m!==n){if(b===n)return m;typeof f=="string"||typeof m=="string"?(f=ur(f),m=ur(m)):(f=T0(f),m=T0(m)),b=i(f,m)}return b}}function jf(i){return Io(function(u){return u=Vt(u,ar(Ve())),at(function(f){var m=this;return i(u,function(b){return lr(b,m,f)})})})}function xu(i,u){u=u===n?" ":ur(u);var f=u.length;if(f<2)return f?Lf(u,i):u;var m=Lf(u,cu(i/Es(u)));return Ss(u)?ri(Wr(m),0,i).join(""):m.slice(0,i)}function QO(i,u,f,m){var b=u&C,A=xl(i);function R(){for(var M=-1,W=arguments.length,re=-1,oe=m.length,de=Y(oe+W),Te=this&&this!==yn&&this instanceof R?A:i;++re<oe;)de[re]=m[re];for(;W--;)de[re++]=arguments[++M];return lr(Te,b?f:this,de)}return R}function V0(i){return function(u,f,m){return m&&typeof m!="number"&&Fn(u,f,m)&&(f=m=n),u=Ro(u),f===n?(f=u,u=0):f=Ro(f),m=m===n?u<f?1:-1:Ro(m),FO(u,f,m,i)}}function $u(i){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=Ir(u),f=Ir(f)),i(u,f)}}function W0(i,u,f,m,b,A,R,M,W,re){var oe=u&E,de=oe?R:n,Te=oe?n:R,Ne=oe?A:n,ze=oe?n:A;u|=oe?$:P,u&=~(oe?P:$),u&w||(u&=~(C|T));var st=[i,u,b,Ne,de,ze,Te,M,W,re],qe=f.apply(n,st);return Xf(i)&&ny(qe,st),qe.placeholder=m,ry(qe,i,u)}function Hf(i){var u=an[i];return function(f,m){if(f=Ir(f),m=m==null?0:Cn(ot(m),292),m&&r0(f)){var b=(Ct(f)+"e").split("e"),A=u(b[0]+"e"+(+b[1]+m));return b=(Ct(A)+"e").split("e"),+(b[0]+"e"+(+b[1]-m))}return u(f)}}var e5=Cs&&1/eu(new Cs([,-0]))[1]==Ae?function(i){return new Cs(i)}:cp;function z0(i){return function(u){var f=Tn(u);return f==Z?yf(u):f==se?vT(u):uT(u,i(u))}}function Ao(i,u,f,m,b,A,R,M){var W=u&T;if(!W&&typeof i!="function")throw new $r(l);var re=m?m.length:0;if(re||(u&=~($|P),m=b=n),R=R===n?R:un(ot(R),0),M=M===n?M:ot(M),re-=b?b.length:0,u&P){var oe=m,de=b;m=b=n}var Te=W?n:zf(i),Ne=[i,u,f,m,b,oe,de,A,R,M];if(Te&&m5(Ne,Te),i=Ne[0],u=Ne[1],f=Ne[2],m=Ne[3],b=Ne[4],M=Ne[9]=Ne[9]===n?W?0:i.length:un(Ne[9]-re,0),!M&&u&(E|O)&&(u&=~(E|O)),!u||u==C)var ze=YO(i,u,f);else u==E||u==O?ze=ZO(i,u,M):(u==$||u==(C|$))&&!b.length?ze=QO(i,u,f,m):ze=Su.apply(n,Ne);var st=Te?$0:ny;return ry(st(ze,Ne),i,u)}function q0(i,u,f,m){return i===n||qr(i,$s[f])&&!Ot.call(m,f)?u:i}function K0(i,u,f,m,b,A){return Kt(i)&&Kt(u)&&(A.set(u,i),yu(i,u,n,K0,A),A.delete(u)),i}function t5(i){return Tl(i)?n:i}function G0(i,u,f,m,b,A){var R=f&_,M=i.length,W=u.length;if(M!=W&&!(R&&W>M))return!1;var re=A.get(i),oe=A.get(u);if(re&&oe)return re==u&&oe==i;var de=-1,Te=!0,Ne=f&S?new Pi:n;for(A.set(i,u),A.set(u,i);++de<M;){var ze=i[de],st=u[de];if(m)var qe=R?m(st,ze,de,u,i,A):m(ze,st,de,i,u,A);if(qe!==n){if(qe)continue;Te=!1;break}if(Ne){if(!ff(u,function(pt,gt){if(!pl(Ne,gt)&&(ze===pt||b(ze,pt,f,m,A)))return Ne.push(gt)})){Te=!1;break}}else if(!(ze===st||b(ze,st,f,m,A))){Te=!1;break}}return A.delete(i),A.delete(u),Te}function n5(i,u,f,m,b,A,R){switch(f){case ct:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case mt:return!(i.byteLength!=u.byteLength||!A(new su(i),new su(u)));case De:case tt:case le:return qr(+i,+u);case ln:return i.name==u.name&&i.message==u.message;case me:case Re:return i==u+"";case Z:var M=yf;case se:var W=m&_;if(M||(M=eu),i.size!=u.size&&!W)return!1;var re=R.get(i);if(re)return re==u;m|=S,R.set(i,u);var oe=G0(M(i),M(u),m,b,A,R);return R.delete(i),oe;case Pe:if(yl)return yl.call(i)==yl.call(u)}return!1}function r5(i,u,f,m,b,A){var R=f&_,M=Vf(i),W=M.length,re=Vf(u),oe=re.length;if(W!=oe&&!R)return!1;for(var de=W;de--;){var Te=M[de];if(!(R?Te in u:Ot.call(u,Te)))return!1}var Ne=A.get(i),ze=A.get(u);if(Ne&&ze)return Ne==u&&ze==i;var st=!0;A.set(i,u),A.set(u,i);for(var qe=R;++de<W;){Te=M[de];var pt=i[Te],gt=u[Te];if(m)var dr=R?m(gt,pt,Te,u,i,A):m(pt,gt,Te,i,u,A);if(!(dr===n?pt===gt||b(pt,gt,f,m,A):dr)){st=!1;break}qe||(qe=Te=="constructor")}if(st&&!qe){var Bn=i.constructor,fr=u.constructor;Bn!=fr&&"constructor"in i&&"constructor"in u&&!(typeof Bn=="function"&&Bn instanceof Bn&&typeof fr=="function"&&fr instanceof fr)&&(st=!1)}return A.delete(i),A.delete(u),st}function Io(i){return Yf(ey(i,n,uy),i+"")}function Vf(i){return h0(i,pn,Kf)}function Wf(i){return h0(i,Kn,X0)}var zf=fu?function(i){return fu.get(i)}:cp;function Cu(i){for(var u=i.name+"",f=Ts[u],m=Ot.call(Ts,u)?f.length:0;m--;){var b=f[m],A=b.func;if(A==null||A==i)return b.name}return u}function Ps(i){var u=Ot.call(x,"placeholder")?x:i;return u.placeholder}function Ve(){var i=x.iteratee||ap;return i=i===ap?v0:i,arguments.length?i(arguments[0],arguments[1]):i}function Tu(i,u){var f=i.__data__;return d5(u)?f[typeof u=="string"?"string":"hash"]:f.map}function qf(i){for(var u=pn(i),f=u.length;f--;){var m=u[f],b=i[m];u[f]=[m,b,Z0(b)]}return u}function Li(i,u){var f=hT(i,u);return g0(f)?f:n}function o5(i){var u=Ot.call(i,Ai),f=i[Ai];try{i[Ai]=n;var m=!0}catch{}var b=ou.call(i);return m&&(u?i[Ai]=f:delete i[Ai]),b}var Kf=_f?function(i){return i==null?[]:(i=It(i),Jo(_f(i),function(u){return t0.call(i,u)}))}:dp,X0=_f?function(i){for(var u=[];i;)Yo(u,Kf(i)),i=lu(i);return u}:dp,Tn=Dn;(wf&&Tn(new wf(new ArrayBuffer(1)))!=ct||ml&&Tn(new ml)!=Z||Sf&&Tn(Sf.resolve())!=$e||Cs&&Tn(new Cs)!=se||gl&&Tn(new gl)!=je)&&(Tn=function(i){var u=Dn(i),f=u==pe?i.constructor:n,m=f?Ni(f):"";if(m)switch(m){case UT:return ct;case jT:return Z;case HT:return $e;case VT:return se;case WT:return je}return u});function i5(i,u,f){for(var m=-1,b=f.length;++m<b;){var A=f[m],R=A.size;switch(A.type){case"drop":i+=R;break;case"dropRight":u-=R;break;case"take":u=Cn(u,i+R);break;case"takeRight":i=un(i,u-R);break}}return{start:i,end:u}}function s5(i){var u=i.match(fC);return u?u[1].split(pC):[]}function J0(i,u,f){u=ni(u,i);for(var m=-1,b=u.length,A=!1;++m<b;){var R=fo(u[m]);if(!(A=i!=null&&f(i,R)))break;i=i[R]}return A||++m!=b?A:(b=i==null?0:i.length,!!b&&Lu(b)&&Po(R,b)&&(Qe(i)||Mi(i)))}function l5(i){var u=i.length,f=new i.constructor(u);return u&&typeof i[0]=="string"&&Ot.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function Y0(i){return typeof i.constructor=="function"&&!$l(i)?Os(lu(i)):{}}function a5(i,u,f){var m=i.constructor;switch(u){case mt:return Uf(i);case De:case tt:return new m(+i);case ct:return zO(i,f);case Ht:case Mn:case ao:case vs:case $o:case ys:case vn:case Wn:case bs:return R0(i,f);case Z:return new m;case le:case Re:return new m(i);case me:return qO(i);case se:return new m;case Pe:return KO(i)}}function u5(i,u){var f=u.length;if(!f)return i;var m=f-1;return u[m]=(f>1?"& ":"")+u[m],u=u.join(f>2?", ":" "),i.replace(dC,`{
     27 */jc.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,y=4,_=1,S=2,C=1,T=2,w=4,E=8,O=16,x=32,I=64,k=128,P=256,H=512,D=30,F="...",z=800,G=16,te=1,we=2,be=3,Ae=1/0,Pe=9007199254740991,Ye=17976931348623157e292,ft=NaN,Le=4294967295,Ge=Le-1,Q=Le>>>1,ae=[["ary",k],["bind",C],["bindKey",T],["curry",E],["curryRight",O],["flip",H],["partial",x],["partialRight",I],["rearg",P]],fe="[object Arguments]",$e="[object Array]",Ve="[object AsyncFunction]",De="[object Boolean]",tt="[object Date]",gn="[object DOMException]",ln="[object Error]",L="[object Function]",B="[object GeneratorFunction]",Z="[object Map]",le="[object Number]",ie="[object Null]",pe="[object Object]",Ce="[object Promise]",me="[object Proxy]",ge="[object RegExp]",se="[object Set]",Re="[object String]",Ie="[object Symbol]",Me="[object Undefined]",je="[object WeakMap]",rt="[object WeakSet]",mt="[object ArrayBuffer]",ct="[object DataView]",Ht="[object Float32Array]",Dn="[object Float64Array]",uo="[object Int8Array]",vs="[object Int16Array]",$o="[object Int32Array]",ys="[object Uint8Array]",vn="[object Uint8ClampedArray]",qn="[object Uint16Array]",bs="[object Uint32Array]",nC=/\b__p \+= '';/g,rC=/\b(__p \+=) '' \+/g,oC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pv=/&(?:amp|lt|gt|quot|#39);/g,hv=/[&<>"']/g,iC=RegExp(pv.source),sC=RegExp(hv.source),lC=/<%-([\s\S]+?)%>/g,aC=/<%([\s\S]+?)%>/g,mv=/<%=([\s\S]+?)%>/g,uC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cC=/^\w*$/,dC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ef=/[\\^$.*+?()[\]{}|]/g,fC=RegExp(ef.source),tf=/^\s+/,pC=/\s/,hC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mC=/\{\n\/\* \[wrapped with (.+)\] \*/,gC=/,? & /,vC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yC=/[()=,{}\[\]\/\s]/,bC=/\\(\\)?/g,_C=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gv=/\w*$/,wC=/^[-+]0x[0-9a-f]+$/i,SC=/^0b[01]+$/i,EC=/^\[object .+?Constructor\]$/,xC=/^0o[0-7]+$/i,$C=/^(?:0|[1-9]\d*)$/,CC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xa=/($^)/,TC=/['\n\r\u2028\u2029\\]/g,Ja="\\ud800-\\udfff",OC="\\u0300-\\u036f",AC="\\ufe20-\\ufe2f",PC="\\u20d0-\\u20ff",vv=OC+AC+PC,yv="\\u2700-\\u27bf",bv="a-z\\xdf-\\xf6\\xf8-\\xff",IC="\\xac\\xb1\\xd7\\xf7",kC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",RC="\\u2000-\\u206f",LC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_v="A-Z\\xc0-\\xd6\\xd8-\\xde",wv="\\ufe0e\\ufe0f",Sv=IC+kC+RC+LC,nf="['’]",NC="["+Ja+"]",Ev="["+Sv+"]",Ya="["+vv+"]",xv="\\d+",MC="["+yv+"]",$v="["+bv+"]",Cv="[^"+Ja+Sv+xv+yv+bv+_v+"]",rf="\\ud83c[\\udffb-\\udfff]",DC="(?:"+Ya+"|"+rf+")",Tv="[^"+Ja+"]",of="(?:\\ud83c[\\udde6-\\uddff]){2}",sf="[\\ud800-\\udbff][\\udc00-\\udfff]",_s="["+_v+"]",Ov="\\u200d",Av="(?:"+$v+"|"+Cv+")",FC="(?:"+_s+"|"+Cv+")",Pv="(?:"+nf+"(?:d|ll|m|re|s|t|ve))?",Iv="(?:"+nf+"(?:D|LL|M|RE|S|T|VE))?",kv=DC+"?",Rv="["+wv+"]?",BC="(?:"+Ov+"(?:"+[Tv,of,sf].join("|")+")"+Rv+kv+")*",UC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lv=Rv+kv+BC,HC="(?:"+[MC,of,sf].join("|")+")"+Lv,VC="(?:"+[Tv+Ya+"?",Ya,of,sf,NC].join("|")+")",WC=RegExp(nf,"g"),zC=RegExp(Ya,"g"),lf=RegExp(rf+"(?="+rf+")|"+VC+Lv,"g"),qC=RegExp([_s+"?"+$v+"+"+Pv+"(?="+[Ev,_s,"$"].join("|")+")",FC+"+"+Iv+"(?="+[Ev,_s+Av,"$"].join("|")+")",_s+"?"+Av+"+"+Pv,_s+"+"+Iv,jC,UC,xv,HC].join("|"),"g"),KC=RegExp("["+Ov+Ja+vv+wv+"]"),GC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,XC=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],JC=-1,Bt={};Bt[Ht]=Bt[Dn]=Bt[uo]=Bt[vs]=Bt[$o]=Bt[ys]=Bt[vn]=Bt[qn]=Bt[bs]=!0,Bt[fe]=Bt[$e]=Bt[mt]=Bt[De]=Bt[ct]=Bt[tt]=Bt[ln]=Bt[L]=Bt[Z]=Bt[le]=Bt[pe]=Bt[ge]=Bt[se]=Bt[Re]=Bt[je]=!1;var Lt={};Lt[fe]=Lt[$e]=Lt[mt]=Lt[ct]=Lt[De]=Lt[tt]=Lt[Ht]=Lt[Dn]=Lt[uo]=Lt[vs]=Lt[$o]=Lt[Z]=Lt[le]=Lt[pe]=Lt[ge]=Lt[se]=Lt[Re]=Lt[Ie]=Lt[ys]=Lt[vn]=Lt[qn]=Lt[bs]=!0,Lt[ln]=Lt[L]=Lt[je]=!1;var YC={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ZC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},QC={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},eT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tT=parseFloat,nT=parseInt,Nv=typeof Il=="object"&&Il&&Il.Object===Object&&Il,rT=typeof self=="object"&&self&&self.Object===Object&&self,yn=Nv||rT||Function("return this")(),af=t&&!t.nodeType&&t,Ai=af&&!0&&e&&!e.nodeType&&e,Mv=Ai&&Ai.exports===af,uf=Mv&&Nv.process,Er=function(){try{var j=Ai&&Ai.require&&Ai.require("util").types;return j||uf&&uf.binding&&uf.binding("util")}catch{}}(),Dv=Er&&Er.isArrayBuffer,Fv=Er&&Er.isDate,Bv=Er&&Er.isMap,Uv=Er&&Er.isRegExp,jv=Er&&Er.isSet,Hv=Er&&Er.isTypedArray;function lr(j,ne,Y){switch(Y.length){case 0:return j.call(ne);case 1:return j.call(ne,Y[0]);case 2:return j.call(ne,Y[0],Y[1]);case 3:return j.call(ne,Y[0],Y[1],Y[2])}return j.apply(ne,Y)}function oT(j,ne,Y,ke){for(var Ze=-1,xt=j==null?0:j.length;++Ze<xt;){var an=j[Ze];ne(ke,an,Y(an),j)}return ke}function xr(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke&&ne(j[Y],Y,j)!==!1;);return j}function iT(j,ne){for(var Y=j==null?0:j.length;Y--&&ne(j[Y],Y,j)!==!1;);return j}function Vv(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke;)if(!ne(j[Y],Y,j))return!1;return!0}function Yo(j,ne){for(var Y=-1,ke=j==null?0:j.length,Ze=0,xt=[];++Y<ke;){var an=j[Y];ne(an,Y,j)&&(xt[Ze++]=an)}return xt}function Za(j,ne){var Y=j==null?0:j.length;return!!Y&&ws(j,ne,0)>-1}function cf(j,ne,Y){for(var ke=-1,Ze=j==null?0:j.length;++ke<Ze;)if(Y(ne,j[ke]))return!0;return!1}function Vt(j,ne){for(var Y=-1,ke=j==null?0:j.length,Ze=Array(ke);++Y<ke;)Ze[Y]=ne(j[Y],Y,j);return Ze}function Zo(j,ne){for(var Y=-1,ke=ne.length,Ze=j.length;++Y<ke;)j[Ze+Y]=ne[Y];return j}function df(j,ne,Y,ke){var Ze=-1,xt=j==null?0:j.length;for(ke&&xt&&(Y=j[++Ze]);++Ze<xt;)Y=ne(Y,j[Ze],Ze,j);return Y}function sT(j,ne,Y,ke){var Ze=j==null?0:j.length;for(ke&&Ze&&(Y=j[--Ze]);Ze--;)Y=ne(Y,j[Ze],Ze,j);return Y}function ff(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke;)if(ne(j[Y],Y,j))return!0;return!1}var lT=pf("length");function aT(j){return j.split("")}function uT(j){return j.match(vC)||[]}function Wv(j,ne,Y){var ke;return Y(j,function(Ze,xt,an){if(ne(Ze,xt,an))return ke=xt,!1}),ke}function Qa(j,ne,Y,ke){for(var Ze=j.length,xt=Y+(ke?1:-1);ke?xt--:++xt<Ze;)if(ne(j[xt],xt,j))return xt;return-1}function ws(j,ne,Y){return ne===ne?wT(j,ne,Y):Qa(j,zv,Y)}function cT(j,ne,Y,ke){for(var Ze=Y-1,xt=j.length;++Ze<xt;)if(ke(j[Ze],ne))return Ze;return-1}function zv(j){return j!==j}function qv(j,ne){var Y=j==null?0:j.length;return Y?mf(j,ne)/Y:ft}function pf(j){return function(ne){return ne==null?n:ne[j]}}function hf(j){return function(ne){return j==null?n:j[ne]}}function Kv(j,ne,Y,ke,Ze){return Ze(j,function(xt,an,Pt){Y=ke?(ke=!1,xt):ne(Y,xt,an,Pt)}),Y}function dT(j,ne){var Y=j.length;for(j.sort(ne);Y--;)j[Y]=j[Y].value;return j}function mf(j,ne){for(var Y,ke=-1,Ze=j.length;++ke<Ze;){var xt=ne(j[ke]);xt!==n&&(Y=Y===n?xt:Y+xt)}return Y}function gf(j,ne){for(var Y=-1,ke=Array(j);++Y<j;)ke[Y]=ne(Y);return ke}function fT(j,ne){return Vt(ne,function(Y){return[Y,j[Y]]})}function Gv(j){return j&&j.slice(0,Zv(j)+1).replace(tf,"")}function ar(j){return function(ne){return j(ne)}}function vf(j,ne){return Vt(ne,function(Y){return j[Y]})}function pl(j,ne){return j.has(ne)}function Xv(j,ne){for(var Y=-1,ke=j.length;++Y<ke&&ws(ne,j[Y],0)>-1;);return Y}function Jv(j,ne){for(var Y=j.length;Y--&&ws(ne,j[Y],0)>-1;);return Y}function pT(j,ne){for(var Y=j.length,ke=0;Y--;)j[Y]===ne&&++ke;return ke}var hT=hf(YC),mT=hf(ZC);function gT(j){return"\\"+eT[j]}function vT(j,ne){return j==null?n:j[ne]}function Ss(j){return KC.test(j)}function yT(j){return GC.test(j)}function bT(j){for(var ne,Y=[];!(ne=j.next()).done;)Y.push(ne.value);return Y}function yf(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke,Ze){Y[++ne]=[Ze,ke]}),Y}function Yv(j,ne){return function(Y){return j(ne(Y))}}function Qo(j,ne){for(var Y=-1,ke=j.length,Ze=0,xt=[];++Y<ke;){var an=j[Y];(an===ne||an===p)&&(j[Y]=p,xt[Ze++]=Y)}return xt}function eu(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke){Y[++ne]=ke}),Y}function _T(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke){Y[++ne]=[ke,ke]}),Y}function wT(j,ne,Y){for(var ke=Y-1,Ze=j.length;++ke<Ze;)if(j[ke]===ne)return ke;return-1}function ST(j,ne,Y){for(var ke=Y+1;ke--;)if(j[ke]===ne)return ke;return ke}function Es(j){return Ss(j)?xT(j):lT(j)}function zr(j){return Ss(j)?$T(j):aT(j)}function Zv(j){for(var ne=j.length;ne--&&pC.test(j.charAt(ne)););return ne}var ET=hf(QC);function xT(j){for(var ne=lf.lastIndex=0;lf.test(j);)++ne;return ne}function $T(j){return j.match(lf)||[]}function CT(j){return j.match(qC)||[]}var TT=function j(ne){ne=ne==null?yn:xs.defaults(yn.Object(),ne,xs.pick(yn,XC));var Y=ne.Array,ke=ne.Date,Ze=ne.Error,xt=ne.Function,an=ne.Math,Pt=ne.Object,bf=ne.RegExp,OT=ne.String,$r=ne.TypeError,tu=Y.prototype,AT=xt.prototype,$s=Pt.prototype,nu=ne["__core-js_shared__"],ru=AT.toString,Ot=$s.hasOwnProperty,PT=0,Qv=function(){var i=/[^.]+$/.exec(nu&&nu.keys&&nu.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),ou=$s.toString,IT=ru.call(Pt),kT=yn._,RT=bf("^"+ru.call(Ot).replace(ef,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),iu=Mv?ne.Buffer:n,ei=ne.Symbol,su=ne.Uint8Array,e0=iu?iu.allocUnsafe:n,lu=Yv(Pt.getPrototypeOf,Pt),t0=Pt.create,n0=$s.propertyIsEnumerable,au=tu.splice,r0=ei?ei.isConcatSpreadable:n,hl=ei?ei.iterator:n,Pi=ei?ei.toStringTag:n,uu=function(){try{var i=Ni(Pt,"defineProperty");return i({},"",{}),i}catch{}}(),LT=ne.clearTimeout!==yn.clearTimeout&&ne.clearTimeout,NT=ke&&ke.now!==yn.Date.now&&ke.now,MT=ne.setTimeout!==yn.setTimeout&&ne.setTimeout,cu=an.ceil,du=an.floor,_f=Pt.getOwnPropertySymbols,DT=iu?iu.isBuffer:n,o0=ne.isFinite,FT=tu.join,BT=Yv(Pt.keys,Pt),un=an.max,Cn=an.min,UT=ke.now,jT=ne.parseInt,i0=an.random,HT=tu.reverse,wf=Ni(ne,"DataView"),ml=Ni(ne,"Map"),Sf=Ni(ne,"Promise"),Cs=Ni(ne,"Set"),gl=Ni(ne,"WeakMap"),vl=Ni(Pt,"create"),fu=gl&&new gl,Ts={},VT=Mi(wf),WT=Mi(ml),zT=Mi(Sf),qT=Mi(Cs),KT=Mi(gl),pu=ei?ei.prototype:n,yl=pu?pu.valueOf:n,s0=pu?pu.toString:n;function $(i){if(Gt(i)&&!Qe(i)&&!(i instanceof ht)){if(i instanceof Cr)return i;if(Ot.call(i,"__wrapped__"))return ly(i)}return new Cr(i)}var Os=function(){function i(){}return function(u){if(!Kt(u))return{};if(t0)return t0(u);i.prototype=u;var f=new i;return i.prototype=n,f}}();function hu(){}function Cr(i,u){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}$.templateSettings={escape:lC,evaluate:aC,interpolate:mv,variable:"",imports:{_:$}},$.prototype=hu.prototype,$.prototype.constructor=$,Cr.prototype=Os(hu.prototype),Cr.prototype.constructor=Cr;function ht(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Le,this.__views__=[]}function GT(){var i=new ht(this.__wrapped__);return i.__actions__=Kn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Kn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Kn(this.__views__),i}function XT(){if(this.__filtered__){var i=new ht(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function JT(){var i=this.__wrapped__.value(),u=this.__dir__,f=Qe(i),m=u<0,b=f?i.length:0,A=a5(0,b,this.__views__),R=A.start,M=A.end,W=M-R,re=m?M:R-1,oe=this.__iteratees__,de=oe.length,Te=0,Ne=Cn(W,this.__takeCount__);if(!f||!m&&b==W&&Ne==W)return P0(i,this.__actions__);var qe=[];e:for(;W--&&Te<Ne;){re+=u;for(var st=-1,Ke=i[re];++st<de;){var pt=oe[st],gt=pt.iteratee,dr=pt.type,Un=gt(Ke);if(dr==we)Ke=Un;else if(!Un){if(dr==te)continue e;break e}}qe[Te++]=Ke}return qe}ht.prototype=Os(hu.prototype),ht.prototype.constructor=ht;function Ii(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function YT(){this.__data__=vl?vl(null):{},this.size=0}function ZT(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function QT(i){var u=this.__data__;if(vl){var f=u[i];return f===c?n:f}return Ot.call(u,i)?u[i]:n}function eO(i){var u=this.__data__;return vl?u[i]!==n:Ot.call(u,i)}function tO(i,u){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=vl&&u===n?c:u,this}Ii.prototype.clear=YT,Ii.prototype.delete=ZT,Ii.prototype.get=QT,Ii.prototype.has=eO,Ii.prototype.set=tO;function Co(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function nO(){this.__data__=[],this.size=0}function rO(i){var u=this.__data__,f=mu(u,i);if(f<0)return!1;var m=u.length-1;return f==m?u.pop():au.call(u,f,1),--this.size,!0}function oO(i){var u=this.__data__,f=mu(u,i);return f<0?n:u[f][1]}function iO(i){return mu(this.__data__,i)>-1}function sO(i,u){var f=this.__data__,m=mu(f,i);return m<0?(++this.size,f.push([i,u])):f[m][1]=u,this}Co.prototype.clear=nO,Co.prototype.delete=rO,Co.prototype.get=oO,Co.prototype.has=iO,Co.prototype.set=sO;function To(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function lO(){this.size=0,this.__data__={hash:new Ii,map:new(ml||Co),string:new Ii}}function aO(i){var u=Tu(this,i).delete(i);return this.size-=u?1:0,u}function uO(i){return Tu(this,i).get(i)}function cO(i){return Tu(this,i).has(i)}function dO(i,u){var f=Tu(this,i),m=f.size;return f.set(i,u),this.size+=f.size==m?0:1,this}To.prototype.clear=lO,To.prototype.delete=aO,To.prototype.get=uO,To.prototype.has=cO,To.prototype.set=dO;function ki(i){var u=-1,f=i==null?0:i.length;for(this.__data__=new To;++u<f;)this.add(i[u])}function fO(i){return this.__data__.set(i,c),this}function pO(i){return this.__data__.has(i)}ki.prototype.add=ki.prototype.push=fO,ki.prototype.has=pO;function qr(i){var u=this.__data__=new Co(i);this.size=u.size}function hO(){this.__data__=new Co,this.size=0}function mO(i){var u=this.__data__,f=u.delete(i);return this.size=u.size,f}function gO(i){return this.__data__.get(i)}function vO(i){return this.__data__.has(i)}function yO(i,u){var f=this.__data__;if(f instanceof Co){var m=f.__data__;if(!ml||m.length<o-1)return m.push([i,u]),this.size=++f.size,this;f=this.__data__=new To(m)}return f.set(i,u),this.size=f.size,this}qr.prototype.clear=hO,qr.prototype.delete=mO,qr.prototype.get=gO,qr.prototype.has=vO,qr.prototype.set=yO;function l0(i,u){var f=Qe(i),m=!f&&Di(i),b=!f&&!m&&ii(i),A=!f&&!m&&!b&&ks(i),R=f||m||b||A,M=R?gf(i.length,OT):[],W=M.length;for(var re in i)(u||Ot.call(i,re))&&!(R&&(re=="length"||b&&(re=="offset"||re=="parent")||A&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||Io(re,W)))&&M.push(re);return M}function a0(i){var u=i.length;return u?i[Rf(0,u-1)]:n}function bO(i,u){return Ou(Kn(i),Ri(u,0,i.length))}function _O(i){return Ou(Kn(i))}function Ef(i,u,f){(f!==n&&!Kr(i[u],f)||f===n&&!(u in i))&&Oo(i,u,f)}function bl(i,u,f){var m=i[u];(!(Ot.call(i,u)&&Kr(m,f))||f===n&&!(u in i))&&Oo(i,u,f)}function mu(i,u){for(var f=i.length;f--;)if(Kr(i[f][0],u))return f;return-1}function wO(i,u,f,m){return ti(i,function(b,A,R){u(m,b,f(b),R)}),m}function u0(i,u){return i&&fo(u,pn(u),i)}function SO(i,u){return i&&fo(u,Xn(u),i)}function Oo(i,u,f){u=="__proto__"&&uu?uu(i,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[u]=f}function xf(i,u){for(var f=-1,m=u.length,b=Y(m),A=i==null;++f<m;)b[f]=A?n:op(i,u[f]);return b}function Ri(i,u,f){return i===i&&(f!==n&&(i=i<=f?i:f),u!==n&&(i=i>=u?i:u)),i}function Tr(i,u,f,m,b,A){var R,M=u&h,W=u&g,re=u&y;if(f&&(R=b?f(i,m,b,A):f(i)),R!==n)return R;if(!Kt(i))return i;var oe=Qe(i);if(oe){if(R=c5(i),!M)return Kn(i,R)}else{var de=Tn(i),Te=de==L||de==B;if(ii(i))return R0(i,M);if(de==pe||de==fe||Te&&!b){if(R=W||Te?{}:Z0(i),!M)return W?QO(i,SO(R,i)):ZO(i,u0(R,i))}else{if(!Lt[de])return b?i:{};R=d5(i,de,M)}}A||(A=new qr);var Ne=A.get(i);if(Ne)return Ne;A.set(i,R),Ty(i)?i.forEach(function(Ke){R.add(Tr(Ke,u,f,Ke,i,A))}):$y(i)&&i.forEach(function(Ke,pt){R.set(pt,Tr(Ke,u,f,pt,i,A))});var qe=re?W?Wf:Vf:W?Xn:pn,st=oe?n:qe(i);return xr(st||i,function(Ke,pt){st&&(pt=Ke,Ke=i[pt]),bl(R,pt,Tr(Ke,u,f,pt,i,A))}),R}function EO(i){var u=pn(i);return function(f){return c0(f,i,u)}}function c0(i,u,f){var m=f.length;if(i==null)return!m;for(i=Pt(i);m--;){var b=f[m],A=u[b],R=i[b];if(R===n&&!(b in i)||!A(R))return!1}return!0}function d0(i,u,f){if(typeof i!="function")throw new $r(l);return Cl(function(){i.apply(n,f)},u)}function _l(i,u,f,m){var b=-1,A=Za,R=!0,M=i.length,W=[],re=u.length;if(!M)return W;f&&(u=Vt(u,ar(f))),m?(A=cf,R=!1):u.length>=o&&(A=pl,R=!1,u=new ki(u));e:for(;++b<M;){var oe=i[b],de=f==null?oe:f(oe);if(oe=m||oe!==0?oe:0,R&&de===de){for(var Te=re;Te--;)if(u[Te]===de)continue e;W.push(oe)}else A(u,de,m)||W.push(oe)}return W}var ti=F0(co),f0=F0(Cf,!0);function xO(i,u){var f=!0;return ti(i,function(m,b,A){return f=!!u(m,b,A),f}),f}function gu(i,u,f){for(var m=-1,b=i.length;++m<b;){var A=i[m],R=u(A);if(R!=null&&(M===n?R===R&&!cr(R):f(R,M)))var M=R,W=A}return W}function $O(i,u,f,m){var b=i.length;for(f=ot(f),f<0&&(f=-f>b?0:b+f),m=m===n||m>b?b:ot(m),m<0&&(m+=b),m=f>m?0:Ay(m);f<m;)i[f++]=u;return i}function p0(i,u){var f=[];return ti(i,function(m,b,A){u(m,b,A)&&f.push(m)}),f}function bn(i,u,f,m,b){var A=-1,R=i.length;for(f||(f=p5),b||(b=[]);++A<R;){var M=i[A];u>0&&f(M)?u>1?bn(M,u-1,f,m,b):Zo(b,M):m||(b[b.length]=M)}return b}var $f=B0(),h0=B0(!0);function co(i,u){return i&&$f(i,u,pn)}function Cf(i,u){return i&&h0(i,u,pn)}function vu(i,u){return Yo(u,function(f){return ko(i[f])})}function Li(i,u){u=ri(u,i);for(var f=0,m=u.length;i!=null&&f<m;)i=i[po(u[f++])];return f&&f==m?i:n}function m0(i,u,f){var m=u(i);return Qe(i)?m:Zo(m,f(i))}function Fn(i){return i==null?i===n?Me:ie:Pi&&Pi in Pt(i)?l5(i):_5(i)}function Tf(i,u){return i>u}function CO(i,u){return i!=null&&Ot.call(i,u)}function TO(i,u){return i!=null&&u in Pt(i)}function OO(i,u,f){return i>=Cn(u,f)&&i<un(u,f)}function Of(i,u,f){for(var m=f?cf:Za,b=i[0].length,A=i.length,R=A,M=Y(A),W=1/0,re=[];R--;){var oe=i[R];R&&u&&(oe=Vt(oe,ar(u))),W=Cn(oe.length,W),M[R]=!f&&(u||b>=120&&oe.length>=120)?new ki(R&&oe):n}oe=i[0];var de=-1,Te=M[0];e:for(;++de<b&&re.length<W;){var Ne=oe[de],qe=u?u(Ne):Ne;if(Ne=f||Ne!==0?Ne:0,!(Te?pl(Te,qe):m(re,qe,f))){for(R=A;--R;){var st=M[R];if(!(st?pl(st,qe):m(i[R],qe,f)))continue e}Te&&Te.push(qe),re.push(Ne)}}return re}function AO(i,u,f,m){return co(i,function(b,A,R){u(m,f(b),A,R)}),m}function wl(i,u,f){u=ri(u,i),i=ny(i,u);var m=i==null?i:i[po(Ar(u))];return m==null?n:lr(m,i,f)}function g0(i){return Gt(i)&&Fn(i)==fe}function PO(i){return Gt(i)&&Fn(i)==mt}function IO(i){return Gt(i)&&Fn(i)==tt}function Sl(i,u,f,m,b){return i===u?!0:i==null||u==null||!Gt(i)&&!Gt(u)?i!==i&&u!==u:kO(i,u,f,m,Sl,b)}function kO(i,u,f,m,b,A){var R=Qe(i),M=Qe(u),W=R?$e:Tn(i),re=M?$e:Tn(u);W=W==fe?pe:W,re=re==fe?pe:re;var oe=W==pe,de=re==pe,Te=W==re;if(Te&&ii(i)){if(!ii(u))return!1;R=!0,oe=!1}if(Te&&!oe)return A||(A=new qr),R||ks(i)?X0(i,u,f,m,b,A):i5(i,u,W,f,m,b,A);if(!(f&_)){var Ne=oe&&Ot.call(i,"__wrapped__"),qe=de&&Ot.call(u,"__wrapped__");if(Ne||qe){var st=Ne?i.value():i,Ke=qe?u.value():u;return A||(A=new qr),b(st,Ke,f,m,A)}}return Te?(A||(A=new qr),s5(i,u,f,m,b,A)):!1}function RO(i){return Gt(i)&&Tn(i)==Z}function Af(i,u,f,m){var b=f.length,A=b,R=!m;if(i==null)return!A;for(i=Pt(i);b--;){var M=f[b];if(R&&M[2]?M[1]!==i[M[0]]:!(M[0]in i))return!1}for(;++b<A;){M=f[b];var W=M[0],re=i[W],oe=M[1];if(R&&M[2]){if(re===n&&!(W in i))return!1}else{var de=new qr;if(m)var Te=m(re,oe,W,i,u,de);if(!(Te===n?Sl(oe,re,_|S,m,de):Te))return!1}}return!0}function v0(i){if(!Kt(i)||m5(i))return!1;var u=ko(i)?RT:EC;return u.test(Mi(i))}function LO(i){return Gt(i)&&Fn(i)==ge}function NO(i){return Gt(i)&&Tn(i)==se}function MO(i){return Gt(i)&&Lu(i.length)&&!!Bt[Fn(i)]}function y0(i){return typeof i=="function"?i:i==null?Jn:typeof i=="object"?Qe(i)?w0(i[0],i[1]):_0(i):Uy(i)}function Pf(i){if(!$l(i))return BT(i);var u=[];for(var f in Pt(i))Ot.call(i,f)&&f!="constructor"&&u.push(f);return u}function DO(i){if(!Kt(i))return b5(i);var u=$l(i),f=[];for(var m in i)m=="constructor"&&(u||!Ot.call(i,m))||f.push(m);return f}function If(i,u){return i<u}function b0(i,u){var f=-1,m=Gn(i)?Y(i.length):[];return ti(i,function(b,A,R){m[++f]=u(b,A,R)}),m}function _0(i){var u=qf(i);return u.length==1&&u[0][2]?ey(u[0][0],u[0][1]):function(f){return f===i||Af(f,i,u)}}function w0(i,u){return Gf(i)&&Q0(u)?ey(po(i),u):function(f){var m=op(f,i);return m===n&&m===u?ip(f,i):Sl(u,m,_|S)}}function yu(i,u,f,m,b){i!==u&&$f(u,function(A,R){if(b||(b=new qr),Kt(A))FO(i,u,R,f,yu,m,b);else{var M=m?m(Jf(i,R),A,R+"",i,u,b):n;M===n&&(M=A),Ef(i,R,M)}},Xn)}function FO(i,u,f,m,b,A,R){var M=Jf(i,f),W=Jf(u,f),re=R.get(W);if(re){Ef(i,f,re);return}var oe=A?A(M,W,f+"",i,u,R):n,de=oe===n;if(de){var Te=Qe(W),Ne=!Te&&ii(W),qe=!Te&&!Ne&&ks(W);oe=W,Te||Ne||qe?Qe(M)?oe=M:en(M)?oe=Kn(M):Ne?(de=!1,oe=R0(W,!0)):qe?(de=!1,oe=L0(W,!0)):oe=[]:Tl(W)||Di(W)?(oe=M,Di(M)?oe=Py(M):(!Kt(M)||ko(M))&&(oe=Z0(W))):de=!1}de&&(R.set(W,oe),b(oe,W,m,A,R),R.delete(W)),Ef(i,f,oe)}function S0(i,u){var f=i.length;if(f)return u+=u<0?f:0,Io(u,f)?i[u]:n}function E0(i,u,f){u.length?u=Vt(u,function(A){return Qe(A)?function(R){return Li(R,A.length===1?A[0]:A)}:A}):u=[Jn];var m=-1;u=Vt(u,ar(We()));var b=b0(i,function(A,R,M){var W=Vt(u,function(re){return re(A)});return{criteria:W,index:++m,value:A}});return dT(b,function(A,R){return YO(A,R,f)})}function BO(i,u){return x0(i,u,function(f,m){return ip(i,m)})}function x0(i,u,f){for(var m=-1,b=u.length,A={};++m<b;){var R=u[m],M=Li(i,R);f(M,R)&&El(A,ri(R,i),M)}return A}function UO(i){return function(u){return Li(u,i)}}function kf(i,u,f,m){var b=m?cT:ws,A=-1,R=u.length,M=i;for(i===u&&(u=Kn(u)),f&&(M=Vt(i,ar(f)));++A<R;)for(var W=0,re=u[A],oe=f?f(re):re;(W=b(M,oe,W,m))>-1;)M!==i&&au.call(M,W,1),au.call(i,W,1);return i}function $0(i,u){for(var f=i?u.length:0,m=f-1;f--;){var b=u[f];if(f==m||b!==A){var A=b;Io(b)?au.call(i,b,1):Mf(i,b)}}return i}function Rf(i,u){return i+du(i0()*(u-i+1))}function jO(i,u,f,m){for(var b=-1,A=un(cu((u-i)/(f||1)),0),R=Y(A);A--;)R[m?A:++b]=i,i+=f;return R}function Lf(i,u){var f="";if(!i||u<1||u>Pe)return f;do u%2&&(f+=i),u=du(u/2),u&&(i+=i);while(u);return f}function at(i,u){return Yf(ty(i,u,Jn),i+"")}function HO(i){return a0(Rs(i))}function VO(i,u){var f=Rs(i);return Ou(f,Ri(u,0,f.length))}function El(i,u,f,m){if(!Kt(i))return i;u=ri(u,i);for(var b=-1,A=u.length,R=A-1,M=i;M!=null&&++b<A;){var W=po(u[b]),re=f;if(W==="__proto__"||W==="constructor"||W==="prototype")return i;if(b!=R){var oe=M[W];re=m?m(oe,W,M):n,re===n&&(re=Kt(oe)?oe:Io(u[b+1])?[]:{})}bl(M,W,re),M=M[W]}return i}var C0=fu?function(i,u){return fu.set(i,u),i}:Jn,WO=uu?function(i,u){return uu(i,"toString",{configurable:!0,enumerable:!1,value:lp(u),writable:!0})}:Jn;function zO(i){return Ou(Rs(i))}function Or(i,u,f){var m=-1,b=i.length;u<0&&(u=-u>b?0:b+u),f=f>b?b:f,f<0&&(f+=b),b=u>f?0:f-u>>>0,u>>>=0;for(var A=Y(b);++m<b;)A[m]=i[m+u];return A}function qO(i,u){var f;return ti(i,function(m,b,A){return f=u(m,b,A),!f}),!!f}function bu(i,u,f){var m=0,b=i==null?m:i.length;if(typeof u=="number"&&u===u&&b<=Q){for(;m<b;){var A=m+b>>>1,R=i[A];R!==null&&!cr(R)&&(f?R<=u:R<u)?m=A+1:b=A}return b}return Nf(i,u,Jn,f)}function Nf(i,u,f,m){var b=0,A=i==null?0:i.length;if(A===0)return 0;u=f(u);for(var R=u!==u,M=u===null,W=cr(u),re=u===n;b<A;){var oe=du((b+A)/2),de=f(i[oe]),Te=de!==n,Ne=de===null,qe=de===de,st=cr(de);if(R)var Ke=m||qe;else re?Ke=qe&&(m||Te):M?Ke=qe&&Te&&(m||!Ne):W?Ke=qe&&Te&&!Ne&&(m||!st):Ne||st?Ke=!1:Ke=m?de<=u:de<u;Ke?b=oe+1:A=oe}return Cn(A,Ge)}function T0(i,u){for(var f=-1,m=i.length,b=0,A=[];++f<m;){var R=i[f],M=u?u(R):R;if(!f||!Kr(M,W)){var W=M;A[b++]=R===0?0:R}}return A}function O0(i){return typeof i=="number"?i:cr(i)?ft:+i}function ur(i){if(typeof i=="string")return i;if(Qe(i))return Vt(i,ur)+"";if(cr(i))return s0?s0.call(i):"";var u=i+"";return u=="0"&&1/i==-Ae?"-0":u}function ni(i,u,f){var m=-1,b=Za,A=i.length,R=!0,M=[],W=M;if(f)R=!1,b=cf;else if(A>=o){var re=u?null:r5(i);if(re)return eu(re);R=!1,b=pl,W=new ki}else W=u?[]:M;e:for(;++m<A;){var oe=i[m],de=u?u(oe):oe;if(oe=f||oe!==0?oe:0,R&&de===de){for(var Te=W.length;Te--;)if(W[Te]===de)continue e;u&&W.push(de),M.push(oe)}else b(W,de,f)||(W!==M&&W.push(de),M.push(oe))}return M}function Mf(i,u){return u=ri(u,i),i=ny(i,u),i==null||delete i[po(Ar(u))]}function A0(i,u,f,m){return El(i,u,f(Li(i,u)),m)}function _u(i,u,f,m){for(var b=i.length,A=m?b:-1;(m?A--:++A<b)&&u(i[A],A,i););return f?Or(i,m?0:A,m?A+1:b):Or(i,m?A+1:0,m?b:A)}function P0(i,u){var f=i;return f instanceof ht&&(f=f.value()),df(u,function(m,b){return b.func.apply(b.thisArg,Zo([m],b.args))},f)}function Df(i,u,f){var m=i.length;if(m<2)return m?ni(i[0]):[];for(var b=-1,A=Y(m);++b<m;)for(var R=i[b],M=-1;++M<m;)M!=b&&(A[b]=_l(A[b]||R,i[M],u,f));return ni(bn(A,1),u,f)}function I0(i,u,f){for(var m=-1,b=i.length,A=u.length,R={};++m<b;){var M=m<A?u[m]:n;f(R,i[m],M)}return R}function Ff(i){return en(i)?i:[]}function Bf(i){return typeof i=="function"?i:Jn}function ri(i,u){return Qe(i)?i:Gf(i,u)?[i]:sy(Ct(i))}var KO=at;function oi(i,u,f){var m=i.length;return f=f===n?m:f,!u&&f>=m?i:Or(i,u,f)}var k0=LT||function(i){return yn.clearTimeout(i)};function R0(i,u){if(u)return i.slice();var f=i.length,m=e0?e0(f):new i.constructor(f);return i.copy(m),m}function Uf(i){var u=new i.constructor(i.byteLength);return new su(u).set(new su(i)),u}function GO(i,u){var f=u?Uf(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function XO(i){var u=new i.constructor(i.source,gv.exec(i));return u.lastIndex=i.lastIndex,u}function JO(i){return yl?Pt(yl.call(i)):{}}function L0(i,u){var f=u?Uf(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function N0(i,u){if(i!==u){var f=i!==n,m=i===null,b=i===i,A=cr(i),R=u!==n,M=u===null,W=u===u,re=cr(u);if(!M&&!re&&!A&&i>u||A&&R&&W&&!M&&!re||m&&R&&W||!f&&W||!b)return 1;if(!m&&!A&&!re&&i<u||re&&f&&b&&!m&&!A||M&&f&&b||!R&&b||!W)return-1}return 0}function YO(i,u,f){for(var m=-1,b=i.criteria,A=u.criteria,R=b.length,M=f.length;++m<R;){var W=N0(b[m],A[m]);if(W){if(m>=M)return W;var re=f[m];return W*(re=="desc"?-1:1)}}return i.index-u.index}function M0(i,u,f,m){for(var b=-1,A=i.length,R=f.length,M=-1,W=u.length,re=un(A-R,0),oe=Y(W+re),de=!m;++M<W;)oe[M]=u[M];for(;++b<R;)(de||b<A)&&(oe[f[b]]=i[b]);for(;re--;)oe[M++]=i[b++];return oe}function D0(i,u,f,m){for(var b=-1,A=i.length,R=-1,M=f.length,W=-1,re=u.length,oe=un(A-M,0),de=Y(oe+re),Te=!m;++b<oe;)de[b]=i[b];for(var Ne=b;++W<re;)de[Ne+W]=u[W];for(;++R<M;)(Te||b<A)&&(de[Ne+f[R]]=i[b++]);return de}function Kn(i,u){var f=-1,m=i.length;for(u||(u=Y(m));++f<m;)u[f]=i[f];return u}function fo(i,u,f,m){var b=!f;f||(f={});for(var A=-1,R=u.length;++A<R;){var M=u[A],W=m?m(f[M],i[M],M,f,i):n;W===n&&(W=i[M]),b?Oo(f,M,W):bl(f,M,W)}return f}function ZO(i,u){return fo(i,Kf(i),u)}function QO(i,u){return fo(i,J0(i),u)}function wu(i,u){return function(f,m){var b=Qe(f)?oT:wO,A=u?u():{};return b(f,i,We(m,2),A)}}function As(i){return at(function(u,f){var m=-1,b=f.length,A=b>1?f[b-1]:n,R=b>2?f[2]:n;for(A=i.length>3&&typeof A=="function"?(b--,A):n,R&&Bn(f[0],f[1],R)&&(A=b<3?n:A,b=1),u=Pt(u);++m<b;){var M=f[m];M&&i(u,M,m,A)}return u})}function F0(i,u){return function(f,m){if(f==null)return f;if(!Gn(f))return i(f,m);for(var b=f.length,A=u?b:-1,R=Pt(f);(u?A--:++A<b)&&m(R[A],A,R)!==!1;);return f}}function B0(i){return function(u,f,m){for(var b=-1,A=Pt(u),R=m(u),M=R.length;M--;){var W=R[i?M:++b];if(f(A[W],W,A)===!1)break}return u}}function e5(i,u,f){var m=u&C,b=xl(i);function A(){var R=this&&this!==yn&&this instanceof A?b:i;return R.apply(m?f:this,arguments)}return A}function U0(i){return function(u){u=Ct(u);var f=Ss(u)?zr(u):n,m=f?f[0]:u.charAt(0),b=f?oi(f,1).join(""):u.slice(1);return m[i]()+b}}function Ps(i){return function(u){return df(Fy(Dy(u).replace(WC,"")),i,"")}}function xl(i){return function(){var u=arguments;switch(u.length){case 0:return new i;case 1:return new i(u[0]);case 2:return new i(u[0],u[1]);case 3:return new i(u[0],u[1],u[2]);case 4:return new i(u[0],u[1],u[2],u[3]);case 5:return new i(u[0],u[1],u[2],u[3],u[4]);case 6:return new i(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new i(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=Os(i.prototype),m=i.apply(f,u);return Kt(m)?m:f}}function t5(i,u,f){var m=xl(i);function b(){for(var A=arguments.length,R=Y(A),M=A,W=Is(b);M--;)R[M]=arguments[M];var re=A<3&&R[0]!==W&&R[A-1]!==W?[]:Qo(R,W);if(A-=re.length,A<f)return z0(i,u,Su,b.placeholder,n,R,re,n,n,f-A);var oe=this&&this!==yn&&this instanceof b?m:i;return lr(oe,this,R)}return b}function j0(i){return function(u,f,m){var b=Pt(u);if(!Gn(u)){var A=We(f,3);u=pn(u),f=function(M){return A(b[M],M,b)}}var R=i(u,f,m);return R>-1?b[A?u[R]:R]:n}}function H0(i){return Po(function(u){var f=u.length,m=f,b=Cr.prototype.thru;for(i&&u.reverse();m--;){var A=u[m];if(typeof A!="function")throw new $r(l);if(b&&!R&&Cu(A)=="wrapper")var R=new Cr([],!0)}for(m=R?m:f;++m<f;){A=u[m];var M=Cu(A),W=M=="wrapper"?zf(A):n;W&&Xf(W[0])&&W[1]==(k|E|x|P)&&!W[4].length&&W[9]==1?R=R[Cu(W[0])].apply(R,W[3]):R=A.length==1&&Xf(A)?R[M]():R.thru(A)}return function(){var re=arguments,oe=re[0];if(R&&re.length==1&&Qe(oe))return R.plant(oe).value();for(var de=0,Te=f?u[de].apply(this,re):oe;++de<f;)Te=u[de].call(this,Te);return Te}})}function Su(i,u,f,m,b,A,R,M,W,re){var oe=u&k,de=u&C,Te=u&T,Ne=u&(E|O),qe=u&H,st=Te?n:xl(i);function Ke(){for(var pt=arguments.length,gt=Y(pt),dr=pt;dr--;)gt[dr]=arguments[dr];if(Ne)var Un=Is(Ke),fr=pT(gt,Un);if(m&&(gt=M0(gt,m,b,Ne)),A&&(gt=D0(gt,A,R,Ne)),pt-=fr,Ne&&pt<re){var tn=Qo(gt,Un);return z0(i,u,Su,Ke.placeholder,f,gt,tn,M,W,re-pt)}var Gr=de?f:this,Lo=Te?Gr[i]:i;return pt=gt.length,M?gt=w5(gt,M):qe&&pt>1&&gt.reverse(),oe&&W<pt&&(gt.length=W),this&&this!==yn&&this instanceof Ke&&(Lo=st||xl(Lo)),Lo.apply(Gr,gt)}return Ke}function V0(i,u){return function(f,m){return AO(f,i,u(m),{})}}function Eu(i,u){return function(f,m){var b;if(f===n&&m===n)return u;if(f!==n&&(b=f),m!==n){if(b===n)return m;typeof f=="string"||typeof m=="string"?(f=ur(f),m=ur(m)):(f=O0(f),m=O0(m)),b=i(f,m)}return b}}function jf(i){return Po(function(u){return u=Vt(u,ar(We())),at(function(f){var m=this;return i(u,function(b){return lr(b,m,f)})})})}function xu(i,u){u=u===n?" ":ur(u);var f=u.length;if(f<2)return f?Lf(u,i):u;var m=Lf(u,cu(i/Es(u)));return Ss(u)?oi(zr(m),0,i).join(""):m.slice(0,i)}function n5(i,u,f,m){var b=u&C,A=xl(i);function R(){for(var M=-1,W=arguments.length,re=-1,oe=m.length,de=Y(oe+W),Te=this&&this!==yn&&this instanceof R?A:i;++re<oe;)de[re]=m[re];for(;W--;)de[re++]=arguments[++M];return lr(Te,b?f:this,de)}return R}function W0(i){return function(u,f,m){return m&&typeof m!="number"&&Bn(u,f,m)&&(f=m=n),u=Ro(u),f===n?(f=u,u=0):f=Ro(f),m=m===n?u<f?1:-1:Ro(m),jO(u,f,m,i)}}function $u(i){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=Pr(u),f=Pr(f)),i(u,f)}}function z0(i,u,f,m,b,A,R,M,W,re){var oe=u&E,de=oe?R:n,Te=oe?n:R,Ne=oe?A:n,qe=oe?n:A;u|=oe?x:I,u&=~(oe?I:x),u&w||(u&=~(C|T));var st=[i,u,b,Ne,de,qe,Te,M,W,re],Ke=f.apply(n,st);return Xf(i)&&ry(Ke,st),Ke.placeholder=m,oy(Ke,i,u)}function Hf(i){var u=an[i];return function(f,m){if(f=Pr(f),m=m==null?0:Cn(ot(m),292),m&&o0(f)){var b=(Ct(f)+"e").split("e"),A=u(b[0]+"e"+(+b[1]+m));return b=(Ct(A)+"e").split("e"),+(b[0]+"e"+(+b[1]-m))}return u(f)}}var r5=Cs&&1/eu(new Cs([,-0]))[1]==Ae?function(i){return new Cs(i)}:cp;function q0(i){return function(u){var f=Tn(u);return f==Z?yf(u):f==se?_T(u):fT(u,i(u))}}function Ao(i,u,f,m,b,A,R,M){var W=u&T;if(!W&&typeof i!="function")throw new $r(l);var re=m?m.length:0;if(re||(u&=~(x|I),m=b=n),R=R===n?R:un(ot(R),0),M=M===n?M:ot(M),re-=b?b.length:0,u&I){var oe=m,de=b;m=b=n}var Te=W?n:zf(i),Ne=[i,u,f,m,b,oe,de,A,R,M];if(Te&&y5(Ne,Te),i=Ne[0],u=Ne[1],f=Ne[2],m=Ne[3],b=Ne[4],M=Ne[9]=Ne[9]===n?W?0:i.length:un(Ne[9]-re,0),!M&&u&(E|O)&&(u&=~(E|O)),!u||u==C)var qe=e5(i,u,f);else u==E||u==O?qe=t5(i,u,M):(u==x||u==(C|x))&&!b.length?qe=n5(i,u,f,m):qe=Su.apply(n,Ne);var st=Te?C0:ry;return oy(st(qe,Ne),i,u)}function K0(i,u,f,m){return i===n||Kr(i,$s[f])&&!Ot.call(m,f)?u:i}function G0(i,u,f,m,b,A){return Kt(i)&&Kt(u)&&(A.set(u,i),yu(i,u,n,G0,A),A.delete(u)),i}function o5(i){return Tl(i)?n:i}function X0(i,u,f,m,b,A){var R=f&_,M=i.length,W=u.length;if(M!=W&&!(R&&W>M))return!1;var re=A.get(i),oe=A.get(u);if(re&&oe)return re==u&&oe==i;var de=-1,Te=!0,Ne=f&S?new ki:n;for(A.set(i,u),A.set(u,i);++de<M;){var qe=i[de],st=u[de];if(m)var Ke=R?m(st,qe,de,u,i,A):m(qe,st,de,i,u,A);if(Ke!==n){if(Ke)continue;Te=!1;break}if(Ne){if(!ff(u,function(pt,gt){if(!pl(Ne,gt)&&(qe===pt||b(qe,pt,f,m,A)))return Ne.push(gt)})){Te=!1;break}}else if(!(qe===st||b(qe,st,f,m,A))){Te=!1;break}}return A.delete(i),A.delete(u),Te}function i5(i,u,f,m,b,A,R){switch(f){case ct:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case mt:return!(i.byteLength!=u.byteLength||!A(new su(i),new su(u)));case De:case tt:case le:return Kr(+i,+u);case ln:return i.name==u.name&&i.message==u.message;case ge:case Re:return i==u+"";case Z:var M=yf;case se:var W=m&_;if(M||(M=eu),i.size!=u.size&&!W)return!1;var re=R.get(i);if(re)return re==u;m|=S,R.set(i,u);var oe=X0(M(i),M(u),m,b,A,R);return R.delete(i),oe;case Ie:if(yl)return yl.call(i)==yl.call(u)}return!1}function s5(i,u,f,m,b,A){var R=f&_,M=Vf(i),W=M.length,re=Vf(u),oe=re.length;if(W!=oe&&!R)return!1;for(var de=W;de--;){var Te=M[de];if(!(R?Te in u:Ot.call(u,Te)))return!1}var Ne=A.get(i),qe=A.get(u);if(Ne&&qe)return Ne==u&&qe==i;var st=!0;A.set(i,u),A.set(u,i);for(var Ke=R;++de<W;){Te=M[de];var pt=i[Te],gt=u[Te];if(m)var dr=R?m(gt,pt,Te,u,i,A):m(pt,gt,Te,i,u,A);if(!(dr===n?pt===gt||b(pt,gt,f,m,A):dr)){st=!1;break}Ke||(Ke=Te=="constructor")}if(st&&!Ke){var Un=i.constructor,fr=u.constructor;Un!=fr&&"constructor"in i&&"constructor"in u&&!(typeof Un=="function"&&Un instanceof Un&&typeof fr=="function"&&fr instanceof fr)&&(st=!1)}return A.delete(i),A.delete(u),st}function Po(i){return Yf(ty(i,n,cy),i+"")}function Vf(i){return m0(i,pn,Kf)}function Wf(i){return m0(i,Xn,J0)}var zf=fu?function(i){return fu.get(i)}:cp;function Cu(i){for(var u=i.name+"",f=Ts[u],m=Ot.call(Ts,u)?f.length:0;m--;){var b=f[m],A=b.func;if(A==null||A==i)return b.name}return u}function Is(i){var u=Ot.call($,"placeholder")?$:i;return u.placeholder}function We(){var i=$.iteratee||ap;return i=i===ap?y0:i,arguments.length?i(arguments[0],arguments[1]):i}function Tu(i,u){var f=i.__data__;return h5(u)?f[typeof u=="string"?"string":"hash"]:f.map}function qf(i){for(var u=pn(i),f=u.length;f--;){var m=u[f],b=i[m];u[f]=[m,b,Q0(b)]}return u}function Ni(i,u){var f=vT(i,u);return v0(f)?f:n}function l5(i){var u=Ot.call(i,Pi),f=i[Pi];try{i[Pi]=n;var m=!0}catch{}var b=ou.call(i);return m&&(u?i[Pi]=f:delete i[Pi]),b}var Kf=_f?function(i){return i==null?[]:(i=Pt(i),Yo(_f(i),function(u){return n0.call(i,u)}))}:dp,J0=_f?function(i){for(var u=[];i;)Zo(u,Kf(i)),i=lu(i);return u}:dp,Tn=Fn;(wf&&Tn(new wf(new ArrayBuffer(1)))!=ct||ml&&Tn(new ml)!=Z||Sf&&Tn(Sf.resolve())!=Ce||Cs&&Tn(new Cs)!=se||gl&&Tn(new gl)!=je)&&(Tn=function(i){var u=Fn(i),f=u==pe?i.constructor:n,m=f?Mi(f):"";if(m)switch(m){case VT:return ct;case WT:return Z;case zT:return Ce;case qT:return se;case KT:return je}return u});function a5(i,u,f){for(var m=-1,b=f.length;++m<b;){var A=f[m],R=A.size;switch(A.type){case"drop":i+=R;break;case"dropRight":u-=R;break;case"take":u=Cn(u,i+R);break;case"takeRight":i=un(i,u-R);break}}return{start:i,end:u}}function u5(i){var u=i.match(mC);return u?u[1].split(gC):[]}function Y0(i,u,f){u=ri(u,i);for(var m=-1,b=u.length,A=!1;++m<b;){var R=po(u[m]);if(!(A=i!=null&&f(i,R)))break;i=i[R]}return A||++m!=b?A:(b=i==null?0:i.length,!!b&&Lu(b)&&Io(R,b)&&(Qe(i)||Di(i)))}function c5(i){var u=i.length,f=new i.constructor(u);return u&&typeof i[0]=="string"&&Ot.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function Z0(i){return typeof i.constructor=="function"&&!$l(i)?Os(lu(i)):{}}function d5(i,u,f){var m=i.constructor;switch(u){case mt:return Uf(i);case De:case tt:return new m(+i);case ct:return GO(i,f);case Ht:case Dn:case uo:case vs:case $o:case ys:case vn:case qn:case bs:return L0(i,f);case Z:return new m;case le:case Re:return new m(i);case ge:return XO(i);case se:return new m;case Ie:return JO(i)}}function f5(i,u){var f=u.length;if(!f)return i;var m=f-1;return u[m]=(f>1?"& ":"")+u[m],u=u.join(f>2?", ":" "),i.replace(hC,`{
    2828/* [wrapped with `+u+`] */
    29 `)}function c5(i){return Qe(i)||Mi(i)||!!(n0&&i&&i[n0])}function Po(i,u){var f=typeof i;return u=u??Ie,!!u&&(f=="number"||f!="symbol"&&SC.test(i))&&i>-1&&i%1==0&&i<u}function Fn(i,u,f){if(!Kt(f))return!1;var m=typeof u;return(m=="number"?qn(f)&&Po(u,f.length):m=="string"&&u in f)?qr(f[u],i):!1}function Gf(i,u){if(Qe(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||cr(i)?!0:lC.test(i)||!sC.test(i)||u!=null&&i in It(u)}function d5(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function Xf(i){var u=Cu(i),f=x[u];if(typeof f!="function"||!(u in ht.prototype))return!1;if(i===f)return!0;var m=zf(f);return!!m&&i===m[0]}function f5(i){return!!Zv&&Zv in i}var p5=nu?ko:fp;function $l(i){var u=i&&i.constructor,f=typeof u=="function"&&u.prototype||$s;return i===f}function Z0(i){return i===i&&!Kt(i)}function Q0(i,u){return function(f){return f==null?!1:f[i]===u&&(u!==n||i in It(f))}}function h5(i){var u=ku(i,function(m){return f.size===d&&f.clear(),m}),f=u.cache;return u}function m5(i,u){var f=i[1],m=u[1],b=f|m,A=b<(C|T|k),R=m==k&&f==E||m==k&&f==I&&i[7].length<=u[8]||m==(k|I)&&u[7].length<=u[8]&&f==E;if(!(A||R))return i;m&C&&(i[2]=u[2],b|=f&C?0:w);var M=u[3];if(M){var W=i[3];i[3]=W?N0(W,M,u[4]):M,i[4]=W?Zo(i[3],p):u[4]}return M=u[5],M&&(W=i[5],i[5]=W?M0(W,M,u[6]):M,i[6]=W?Zo(i[5],p):u[6]),M=u[7],M&&(i[7]=M),m&k&&(i[8]=i[8]==null?u[8]:Cn(i[8],u[8])),i[9]==null&&(i[9]=u[9]),i[0]=u[0],i[1]=b,i}function g5(i){var u=[];if(i!=null)for(var f in It(i))u.push(f);return u}function v5(i){return ou.call(i)}function ey(i,u,f){return u=un(u===n?i.length-1:u,0),function(){for(var m=arguments,b=-1,A=un(m.length-u,0),R=Y(A);++b<A;)R[b]=m[u+b];b=-1;for(var M=Y(u+1);++b<u;)M[b]=m[b];return M[u]=f(R),lr(i,this,M)}}function ty(i,u){return u.length<2?i:Ri(i,Or(u,0,-1))}function y5(i,u){for(var f=i.length,m=Cn(u.length,f),b=zn(i);m--;){var A=u[m];i[m]=Po(A,f)?b[A]:n}return i}function Jf(i,u){if(!(u==="constructor"&&typeof i[u]=="function")&&u!="__proto__")return i[u]}var ny=oy($0),Cl=RT||function(i,u){return yn.setTimeout(i,u)},Yf=oy(jO);function ry(i,u,f){var m=u+"";return Yf(i,u5(m,b5(s5(m),f)))}function oy(i){var u=0,f=0;return function(){var m=DT(),b=G-(m-f);if(f=m,b>0){if(++u>=z)return arguments[0]}else u=0;return i.apply(n,arguments)}}function Ou(i,u){var f=-1,m=i.length,b=m-1;for(u=u===n?m:u;++f<u;){var A=Rf(f,b),R=i[A];i[A]=i[f],i[f]=R}return i.length=u,i}var iy=h5(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(aC,function(f,m,b,A){u.push(b?A.replace(gC,"$1"):m||f)}),u});function fo(i){if(typeof i=="string"||cr(i))return i;var u=i+"";return u=="0"&&1/i==-Ae?"-0":u}function Ni(i){if(i!=null){try{return ru.call(i)}catch{}try{return i+""}catch{}}return""}function b5(i,u){return xr(ae,function(f){var m="_."+f[0];u&f[1]&&!Za(i,m)&&i.push(m)}),i.sort()}function sy(i){if(i instanceof ht)return i.clone();var u=new Cr(i.__wrapped__,i.__chain__);return u.__actions__=zn(i.__actions__),u.__index__=i.__index__,u.__values__=i.__values__,u}function _5(i,u,f){(f?Fn(i,u,f):u===n)?u=1:u=un(ot(u),0);var m=i==null?0:i.length;if(!m||u<1)return[];for(var b=0,A=0,R=Y(cu(m/u));b<m;)R[A++]=Or(i,b,b+=u);return R}function w5(i){for(var u=-1,f=i==null?0:i.length,m=0,b=[];++u<f;){var A=i[u];A&&(b[m++]=A)}return b}function S5(){var i=arguments.length;if(!i)return[];for(var u=Y(i-1),f=arguments[0],m=i;m--;)u[m-1]=arguments[m];return Yo(Qe(f)?zn(f):[f],bn(u,1))}var E5=at(function(i,u){return en(i)?_l(i,bn(u,1,en,!0)):[]}),x5=at(function(i,u){var f=Ar(u);return en(f)&&(f=n),en(i)?_l(i,bn(u,1,en,!0),Ve(f,2)):[]}),$5=at(function(i,u){var f=Ar(u);return en(f)&&(f=n),en(i)?_l(i,bn(u,1,en,!0),n,f):[]});function C5(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),Or(i,u<0?0:u,m)):[]}function T5(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),u=m-u,Or(i,0,u<0?0:u)):[]}function O5(i,u){return i&&i.length?_u(i,Ve(u,3),!0,!0):[]}function A5(i,u){return i&&i.length?_u(i,Ve(u,3),!0):[]}function I5(i,u,f,m){var b=i==null?0:i.length;return b?(f&&typeof f!="number"&&Fn(i,u,f)&&(f=0,m=b),SO(i,u,f,m)):[]}function ly(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=f==null?0:ot(f);return b<0&&(b=un(m+b,0)),Qa(i,Ve(u,3),b)}function ay(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=m-1;return f!==n&&(b=ot(f),b=f<0?un(m+b,0):Cn(b,m-1)),Qa(i,Ve(u,3),b,!0)}function uy(i){var u=i==null?0:i.length;return u?bn(i,1):[]}function P5(i){var u=i==null?0:i.length;return u?bn(i,Ae):[]}function k5(i,u){var f=i==null?0:i.length;return f?(u=u===n?1:ot(u),bn(i,u)):[]}function R5(i){for(var u=-1,f=i==null?0:i.length,m={};++u<f;){var b=i[u];m[b[0]]=b[1]}return m}function cy(i){return i&&i.length?i[0]:n}function L5(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=f==null?0:ot(f);return b<0&&(b=un(m+b,0)),ws(i,u,b)}function N5(i){var u=i==null?0:i.length;return u?Or(i,0,-1):[]}var M5=at(function(i){var u=Vt(i,Ff);return u.length&&u[0]===i[0]?Of(u):[]}),D5=at(function(i){var u=Ar(i),f=Vt(i,Ff);return u===Ar(f)?u=n:f.pop(),f.length&&f[0]===i[0]?Of(f,Ve(u,2)):[]}),F5=at(function(i){var u=Ar(i),f=Vt(i,Ff);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===i[0]?Of(f,n,u):[]});function B5(i,u){return i==null?"":NT.call(i,u)}function Ar(i){var u=i==null?0:i.length;return u?i[u-1]:n}function U5(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=m;return f!==n&&(b=ot(f),b=b<0?un(m+b,0):Cn(b,m-1)),u===u?bT(i,u,b):Qa(i,Wv,b,!0)}function j5(i,u){return i&&i.length?w0(i,ot(u)):n}var H5=at(dy);function dy(i,u){return i&&i.length&&u&&u.length?kf(i,u):i}function V5(i,u,f){return i&&i.length&&u&&u.length?kf(i,u,Ve(f,2)):i}function W5(i,u,f){return i&&i.length&&u&&u.length?kf(i,u,n,f):i}var z5=Io(function(i,u){var f=i==null?0:i.length,m=xf(i,u);return x0(i,Vt(u,function(b){return Po(b,f)?+b:b}).sort(L0)),m});function q5(i,u){var f=[];if(!(i&&i.length))return f;var m=-1,b=[],A=i.length;for(u=Ve(u,3);++m<A;){var R=i[m];u(R,m,i)&&(f.push(R),b.push(m))}return x0(i,b),f}function Zf(i){return i==null?i:BT.call(i)}function K5(i,u,f){var m=i==null?0:i.length;return m?(f&&typeof f!="number"&&Fn(i,u,f)?(u=0,f=m):(u=u==null?0:ot(u),f=f===n?m:ot(f)),Or(i,u,f)):[]}function G5(i,u){return bu(i,u)}function X5(i,u,f){return Nf(i,u,Ve(f,2))}function J5(i,u){var f=i==null?0:i.length;if(f){var m=bu(i,u);if(m<f&&qr(i[m],u))return m}return-1}function Y5(i,u){return bu(i,u,!0)}function Z5(i,u,f){return Nf(i,u,Ve(f,2),!0)}function Q5(i,u){var f=i==null?0:i.length;if(f){var m=bu(i,u,!0)-1;if(qr(i[m],u))return m}return-1}function eA(i){return i&&i.length?C0(i):[]}function tA(i,u){return i&&i.length?C0(i,Ve(u,2)):[]}function nA(i){var u=i==null?0:i.length;return u?Or(i,1,u):[]}function rA(i,u,f){return i&&i.length?(u=f||u===n?1:ot(u),Or(i,0,u<0?0:u)):[]}function oA(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),u=m-u,Or(i,u<0?0:u,m)):[]}function iA(i,u){return i&&i.length?_u(i,Ve(u,3),!1,!0):[]}function sA(i,u){return i&&i.length?_u(i,Ve(u,3)):[]}var lA=at(function(i){return ti(bn(i,1,en,!0))}),aA=at(function(i){var u=Ar(i);return en(u)&&(u=n),ti(bn(i,1,en,!0),Ve(u,2))}),uA=at(function(i){var u=Ar(i);return u=typeof u=="function"?u:n,ti(bn(i,1,en,!0),n,u)});function cA(i){return i&&i.length?ti(i):[]}function dA(i,u){return i&&i.length?ti(i,Ve(u,2)):[]}function fA(i,u){return u=typeof u=="function"?u:n,i&&i.length?ti(i,n,u):[]}function Qf(i){if(!(i&&i.length))return[];var u=0;return i=Jo(i,function(f){if(en(f))return u=un(f.length,u),!0}),gf(u,function(f){return Vt(i,pf(f))})}function fy(i,u){if(!(i&&i.length))return[];var f=Qf(i);return u==null?f:Vt(f,function(m){return lr(u,n,m)})}var pA=at(function(i,u){return en(i)?_l(i,u):[]}),hA=at(function(i){return Df(Jo(i,en))}),mA=at(function(i){var u=Ar(i);return en(u)&&(u=n),Df(Jo(i,en),Ve(u,2))}),gA=at(function(i){var u=Ar(i);return u=typeof u=="function"?u:n,Df(Jo(i,en),n,u)}),vA=at(Qf);function yA(i,u){return I0(i||[],u||[],bl)}function bA(i,u){return I0(i||[],u||[],El)}var _A=at(function(i){var u=i.length,f=u>1?i[u-1]:n;return f=typeof f=="function"?(i.pop(),f):n,fy(i,f)});function py(i){var u=x(i);return u.__chain__=!0,u}function wA(i,u){return u(i),i}function Au(i,u){return u(i)}var SA=Io(function(i){var u=i.length,f=u?i[0]:0,m=this.__wrapped__,b=function(A){return xf(A,i)};return u>1||this.__actions__.length||!(m instanceof ht)||!Po(f)?this.thru(b):(m=m.slice(f,+f+(u?1:0)),m.__actions__.push({func:Au,args:[b],thisArg:n}),new Cr(m,this.__chain__).thru(function(A){return u&&!A.length&&A.push(n),A}))});function EA(){return py(this)}function xA(){return new Cr(this.value(),this.__chain__)}function $A(){this.__values__===n&&(this.__values__=Ty(this.value()));var i=this.__index__>=this.__values__.length,u=i?n:this.__values__[this.__index__++];return{done:i,value:u}}function CA(){return this}function TA(i){for(var u,f=this;f instanceof hu;){var m=sy(f);m.__index__=0,m.__values__=n,u?b.__wrapped__=m:u=m;var b=m;f=f.__wrapped__}return b.__wrapped__=i,u}function OA(){var i=this.__wrapped__;if(i instanceof ht){var u=i;return this.__actions__.length&&(u=new ht(this)),u=u.reverse(),u.__actions__.push({func:Au,args:[Zf],thisArg:n}),new Cr(u,this.__chain__)}return this.thru(Zf)}function AA(){return A0(this.__wrapped__,this.__actions__)}var IA=wu(function(i,u,f){Ot.call(i,f)?++i[f]:Oo(i,f,1)});function PA(i,u,f){var m=Qe(i)?Hv:wO;return f&&Fn(i,u,f)&&(u=n),m(i,Ve(u,3))}function kA(i,u){var f=Qe(i)?Jo:f0;return f(i,Ve(u,3))}var RA=U0(ly),LA=U0(ay);function NA(i,u){return bn(Iu(i,u),1)}function MA(i,u){return bn(Iu(i,u),Ae)}function DA(i,u,f){return f=f===n?1:ot(f),bn(Iu(i,u),f)}function hy(i,u){var f=Qe(i)?xr:ei;return f(i,Ve(u,3))}function my(i,u){var f=Qe(i)?nT:d0;return f(i,Ve(u,3))}var FA=wu(function(i,u,f){Ot.call(i,f)?i[f].push(u):Oo(i,f,[u])});function BA(i,u,f,m){i=qn(i)?i:Rs(i),f=f&&!m?ot(f):0;var b=i.length;return f<0&&(f=un(b+f,0)),Nu(i)?f<=b&&i.indexOf(u,f)>-1:!!b&&ws(i,u,f)>-1}var UA=at(function(i,u,f){var m=-1,b=typeof u=="function",A=qn(i)?Y(i.length):[];return ei(i,function(R){A[++m]=b?lr(u,R,f):wl(R,u,f)}),A}),jA=wu(function(i,u,f){Oo(i,f,u)});function Iu(i,u){var f=Qe(i)?Vt:y0;return f(i,Ve(u,3))}function HA(i,u,f,m){return i==null?[]:(Qe(u)||(u=u==null?[]:[u]),f=m?n:f,Qe(f)||(f=f==null?[]:[f]),S0(i,u,f))}var VA=wu(function(i,u,f){i[f?0:1].push(u)},function(){return[[],[]]});function WA(i,u,f){var m=Qe(i)?df:qv,b=arguments.length<3;return m(i,Ve(u,4),f,b,ei)}function zA(i,u,f){var m=Qe(i)?rT:qv,b=arguments.length<3;return m(i,Ve(u,4),f,b,d0)}function qA(i,u){var f=Qe(i)?Jo:f0;return f(i,Ru(Ve(u,3)))}function KA(i){var u=Qe(i)?l0:BO;return u(i)}function GA(i,u,f){(f?Fn(i,u,f):u===n)?u=1:u=ot(u);var m=Qe(i)?gO:UO;return m(i,u)}function XA(i){var u=Qe(i)?vO:HO;return u(i)}function JA(i){if(i==null)return 0;if(qn(i))return Nu(i)?Es(i):i.length;var u=Tn(i);return u==Z||u==se?i.size:If(i).length}function YA(i,u,f){var m=Qe(i)?ff:VO;return f&&Fn(i,u,f)&&(u=n),m(i,Ve(u,3))}var ZA=at(function(i,u){if(i==null)return[];var f=u.length;return f>1&&Fn(i,u[0],u[1])?u=[]:f>2&&Fn(u[0],u[1],u[2])&&(u=[u[0]]),S0(i,bn(u,1),[])}),Pu=kT||function(){return yn.Date.now()};function QA(i,u){if(typeof u!="function")throw new $r(l);return i=ot(i),function(){if(--i<1)return u.apply(this,arguments)}}function gy(i,u,f){return u=f?n:u,u=i&&u==null?i.length:u,Ao(i,k,n,n,n,n,u)}function vy(i,u){var f;if(typeof u!="function")throw new $r(l);return i=ot(i),function(){return--i>0&&(f=u.apply(this,arguments)),i<=1&&(u=n),f}}var ep=at(function(i,u,f){var m=C;if(f.length){var b=Zo(f,Ps(ep));m|=$}return Ao(i,m,u,f,b)}),yy=at(function(i,u,f){var m=C|T;if(f.length){var b=Zo(f,Ps(yy));m|=$}return Ao(u,m,i,f,b)});function by(i,u,f){u=f?n:u;var m=Ao(i,E,n,n,n,n,n,u);return m.placeholder=by.placeholder,m}function _y(i,u,f){u=f?n:u;var m=Ao(i,O,n,n,n,n,n,u);return m.placeholder=_y.placeholder,m}function wy(i,u,f){var m,b,A,R,M,W,re=0,oe=!1,de=!1,Te=!0;if(typeof i!="function")throw new $r(l);u=Ir(u)||0,Kt(f)&&(oe=!!f.leading,de="maxWait"in f,A=de?un(Ir(f.maxWait)||0,u):A,Te="trailing"in f?!!f.trailing:Te);function Ne(tn){var Kr=m,Lo=b;return m=b=n,re=tn,R=i.apply(Lo,Kr),R}function ze(tn){return re=tn,M=Cl(pt,u),oe?Ne(tn):R}function st(tn){var Kr=tn-W,Lo=tn-re,Uy=u-Kr;return de?Cn(Uy,A-Lo):Uy}function qe(tn){var Kr=tn-W,Lo=tn-re;return W===n||Kr>=u||Kr<0||de&&Lo>=A}function pt(){var tn=Pu();if(qe(tn))return gt(tn);M=Cl(pt,st(tn))}function gt(tn){return M=n,Te&&m?Ne(tn):(m=b=n,R)}function dr(){M!==n&&P0(M),re=0,m=W=b=M=n}function Bn(){return M===n?R:gt(Pu())}function fr(){var tn=Pu(),Kr=qe(tn);if(m=arguments,b=this,W=tn,Kr){if(M===n)return ze(W);if(de)return P0(M),M=Cl(pt,u),Ne(W)}return M===n&&(M=Cl(pt,u)),R}return fr.cancel=dr,fr.flush=Bn,fr}var e3=at(function(i,u){return c0(i,1,u)}),t3=at(function(i,u,f){return c0(i,Ir(u)||0,f)});function n3(i){return Ao(i,H)}function ku(i,u){if(typeof i!="function"||u!=null&&typeof u!="function")throw new $r(l);var f=function(){var m=arguments,b=u?u.apply(this,m):m[0],A=f.cache;if(A.has(b))return A.get(b);var R=i.apply(this,m);return f.cache=A.set(b,R)||A,R};return f.cache=new(ku.Cache||To),f}ku.Cache=To;function Ru(i){if(typeof i!="function")throw new $r(l);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function r3(i){return vy(2,i)}var o3=WO(function(i,u){u=u.length==1&&Qe(u[0])?Vt(u[0],ar(Ve())):Vt(bn(u,1),ar(Ve()));var f=u.length;return at(function(m){for(var b=-1,A=Cn(m.length,f);++b<A;)m[b]=u[b].call(this,m[b]);return lr(i,this,m)})}),tp=at(function(i,u){var f=Zo(u,Ps(tp));return Ao(i,$,n,u,f)}),Sy=at(function(i,u){var f=Zo(u,Ps(Sy));return Ao(i,P,n,u,f)}),i3=Io(function(i,u){return Ao(i,I,n,n,n,u)});function s3(i,u){if(typeof i!="function")throw new $r(l);return u=u===n?u:ot(u),at(i,u)}function l3(i,u){if(typeof i!="function")throw new $r(l);return u=u==null?0:un(ot(u),0),at(function(f){var m=f[u],b=ri(f,0,u);return m&&Yo(b,m),lr(i,this,b)})}function a3(i,u,f){var m=!0,b=!0;if(typeof i!="function")throw new $r(l);return Kt(f)&&(m="leading"in f?!!f.leading:m,b="trailing"in f?!!f.trailing:b),wy(i,u,{leading:m,maxWait:u,trailing:b})}function u3(i){return gy(i,1)}function c3(i,u){return tp(Bf(u),i)}function d3(){if(!arguments.length)return[];var i=arguments[0];return Qe(i)?i:[i]}function f3(i){return Tr(i,y)}function p3(i,u){return u=typeof u=="function"?u:n,Tr(i,y,u)}function h3(i){return Tr(i,h|y)}function m3(i,u){return u=typeof u=="function"?u:n,Tr(i,h|y,u)}function g3(i,u){return u==null||u0(i,u,pn(u))}function qr(i,u){return i===u||i!==i&&u!==u}var v3=$u(Tf),y3=$u(function(i,u){return i>=u}),Mi=m0(function(){return arguments}())?m0:function(i){return Gt(i)&&Ot.call(i,"callee")&&!t0.call(i,"callee")},Qe=Y.isArray,b3=Mv?ar(Mv):TO;function qn(i){return i!=null&&Lu(i.length)&&!ko(i)}function en(i){return Gt(i)&&qn(i)}function _3(i){return i===!0||i===!1||Gt(i)&&Dn(i)==De}var oi=LT||fp,w3=Dv?ar(Dv):OO;function S3(i){return Gt(i)&&i.nodeType===1&&!Tl(i)}function E3(i){if(i==null)return!0;if(qn(i)&&(Qe(i)||typeof i=="string"||typeof i.splice=="function"||oi(i)||ks(i)||Mi(i)))return!i.length;var u=Tn(i);if(u==Z||u==se)return!i.size;if($l(i))return!If(i).length;for(var f in i)if(Ot.call(i,f))return!1;return!0}function x3(i,u){return Sl(i,u)}function $3(i,u,f){f=typeof f=="function"?f:n;var m=f?f(i,u):n;return m===n?Sl(i,u,n,f):!!m}function np(i){if(!Gt(i))return!1;var u=Dn(i);return u==ln||u==gn||typeof i.message=="string"&&typeof i.name=="string"&&!Tl(i)}function C3(i){return typeof i=="number"&&r0(i)}function ko(i){if(!Kt(i))return!1;var u=Dn(i);return u==L||u==B||u==He||u==he}function Ey(i){return typeof i=="number"&&i==ot(i)}function Lu(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Ie}function Kt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function Gt(i){return i!=null&&typeof i=="object"}var xy=Fv?ar(Fv):IO;function T3(i,u){return i===u||Af(i,u,qf(u))}function O3(i,u,f){return f=typeof f=="function"?f:n,Af(i,u,qf(u),f)}function A3(i){return $y(i)&&i!=+i}function I3(i){if(p5(i))throw new Ze(s);return g0(i)}function P3(i){return i===null}function k3(i){return i==null}function $y(i){return typeof i=="number"||Gt(i)&&Dn(i)==le}function Tl(i){if(!Gt(i)||Dn(i)!=pe)return!1;var u=lu(i);if(u===null)return!0;var f=Ot.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&ru.call(f)==OT}var rp=Bv?ar(Bv):PO;function R3(i){return Ey(i)&&i>=-Ie&&i<=Ie}var Cy=Uv?ar(Uv):kO;function Nu(i){return typeof i=="string"||!Qe(i)&&Gt(i)&&Dn(i)==Re}function cr(i){return typeof i=="symbol"||Gt(i)&&Dn(i)==Pe}var ks=jv?ar(jv):RO;function L3(i){return i===n}function N3(i){return Gt(i)&&Tn(i)==je}function M3(i){return Gt(i)&&Dn(i)==rt}var D3=$u(Pf),F3=$u(function(i,u){return i<=u});function Ty(i){if(!i)return[];if(qn(i))return Nu(i)?Wr(i):zn(i);if(hl&&i[hl])return gT(i[hl]());var u=Tn(i),f=u==Z?yf:u==se?eu:Rs;return f(i)}function Ro(i){if(!i)return i===0?i:0;if(i=Ir(i),i===Ae||i===-Ae){var u=i<0?-1:1;return u*Ye}return i===i?i:0}function ot(i){var u=Ro(i),f=u%1;return u===u?f?u-f:u:0}function Oy(i){return i?ki(ot(i),0,Le):0}function Ir(i){if(typeof i=="number")return i;if(cr(i))return ft;if(Kt(i)){var u=typeof i.valueOf=="function"?i.valueOf():i;i=Kt(u)?u+"":u}if(typeof i!="string")return i===0?i:+i;i=Kv(i);var f=bC.test(i);return f||wC.test(i)?QC(i.slice(2),f?2:8):yC.test(i)?ft:+i}function Ay(i){return co(i,Kn(i))}function B3(i){return i?ki(ot(i),-Ie,Ie):i===0?i:0}function Ct(i){return i==null?"":ur(i)}var U3=As(function(i,u){if($l(u)||qn(u)){co(u,pn(u),i);return}for(var f in u)Ot.call(u,f)&&bl(i,f,u[f])}),Iy=As(function(i,u){co(u,Kn(u),i)}),Mu=As(function(i,u,f,m){co(u,Kn(u),i,m)}),j3=As(function(i,u,f,m){co(u,pn(u),i,m)}),H3=Io(xf);function V3(i,u){var f=Os(i);return u==null?f:a0(f,u)}var W3=at(function(i,u){i=It(i);var f=-1,m=u.length,b=m>2?u[2]:n;for(b&&Fn(u[0],u[1],b)&&(m=1);++f<m;)for(var A=u[f],R=Kn(A),M=-1,W=R.length;++M<W;){var re=R[M],oe=i[re];(oe===n||qr(oe,$s[re])&&!Ot.call(i,re))&&(i[re]=A[re])}return i}),z3=at(function(i){return i.push(n,K0),lr(Py,n,i)});function q3(i,u){return Vv(i,Ve(u,3),uo)}function K3(i,u){return Vv(i,Ve(u,3),Cf)}function G3(i,u){return i==null?i:$f(i,Ve(u,3),Kn)}function X3(i,u){return i==null?i:p0(i,Ve(u,3),Kn)}function J3(i,u){return i&&uo(i,Ve(u,3))}function Y3(i,u){return i&&Cf(i,Ve(u,3))}function Z3(i){return i==null?[]:vu(i,pn(i))}function Q3(i){return i==null?[]:vu(i,Kn(i))}function op(i,u,f){var m=i==null?n:Ri(i,u);return m===n?f:m}function eI(i,u){return i!=null&&J0(i,u,EO)}function ip(i,u){return i!=null&&J0(i,u,xO)}var tI=H0(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ou.call(u)),i[u]=f},lp(Gn)),nI=H0(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ou.call(u)),Ot.call(i,u)?i[u].push(f):i[u]=[f]},Ve),rI=at(wl);function pn(i){return qn(i)?s0(i):If(i)}function Kn(i){return qn(i)?s0(i,!0):LO(i)}function oI(i,u){var f={};return u=Ve(u,3),uo(i,function(m,b,A){Oo(f,u(m,b,A),m)}),f}function iI(i,u){var f={};return u=Ve(u,3),uo(i,function(m,b,A){Oo(f,b,u(m,b,A))}),f}var sI=As(function(i,u,f){yu(i,u,f)}),Py=As(function(i,u,f,m){yu(i,u,f,m)}),lI=Io(function(i,u){var f={};if(i==null)return f;var m=!1;u=Vt(u,function(A){return A=ni(A,i),m||(m=A.length>1),A}),co(i,Wf(i),f),m&&(f=Tr(f,h|g|y,t5));for(var b=u.length;b--;)Mf(f,u[b]);return f});function aI(i,u){return ky(i,Ru(Ve(u)))}var uI=Io(function(i,u){return i==null?{}:MO(i,u)});function ky(i,u){if(i==null)return{};var f=Vt(Wf(i),function(m){return[m]});return u=Ve(u),E0(i,f,function(m,b){return u(m,b[0])})}function cI(i,u,f){u=ni(u,i);var m=-1,b=u.length;for(b||(b=1,i=n);++m<b;){var A=i==null?n:i[fo(u[m])];A===n&&(m=b,A=f),i=ko(A)?A.call(i):A}return i}function dI(i,u,f){return i==null?i:El(i,u,f)}function fI(i,u,f,m){return m=typeof m=="function"?m:n,i==null?i:El(i,u,f,m)}var Ry=z0(pn),Ly=z0(Kn);function pI(i,u,f){var m=Qe(i),b=m||oi(i)||ks(i);if(u=Ve(u,4),f==null){var A=i&&i.constructor;b?f=m?new A:[]:Kt(i)?f=ko(A)?Os(lu(i)):{}:f={}}return(b?xr:uo)(i,function(R,M,W){return u(f,R,M,W)}),f}function hI(i,u){return i==null?!0:Mf(i,u)}function mI(i,u,f){return i==null?i:O0(i,u,Bf(f))}function gI(i,u,f,m){return m=typeof m=="function"?m:n,i==null?i:O0(i,u,Bf(f),m)}function Rs(i){return i==null?[]:vf(i,pn(i))}function vI(i){return i==null?[]:vf(i,Kn(i))}function yI(i,u,f){return f===n&&(f=u,u=n),f!==n&&(f=Ir(f),f=f===f?f:0),u!==n&&(u=Ir(u),u=u===u?u:0),ki(Ir(i),u,f)}function bI(i,u,f){return u=Ro(u),f===n?(f=u,u=0):f=Ro(f),i=Ir(i),$O(i,u,f)}function _I(i,u,f){if(f&&typeof f!="boolean"&&Fn(i,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&u===n?(i=0,u=1):(i=Ro(i),u===n?(u=i,i=0):u=Ro(u)),i>u){var m=i;i=u,u=m}if(f||i%1||u%1){var b=o0();return Cn(i+b*(u-i+ZC("1e-"+((b+"").length-1))),u)}return Rf(i,u)}var wI=Is(function(i,u,f){return u=u.toLowerCase(),i+(f?Ny(u):u)});function Ny(i){return sp(Ct(i).toLowerCase())}function My(i){return i=Ct(i),i&&i.replace(EC,dT).replace(HC,"")}function SI(i,u,f){i=Ct(i),u=ur(u);var m=i.length;f=f===n?m:ki(ot(f),0,m);var b=f;return f-=u.length,f>=0&&i.slice(f,b)==u}function EI(i){return i=Ct(i),i&&rC.test(i)?i.replace(pv,fT):i}function xI(i){return i=Ct(i),i&&uC.test(i)?i.replace(ef,"\\$&"):i}var $I=Is(function(i,u,f){return i+(f?"-":"")+u.toLowerCase()}),CI=Is(function(i,u,f){return i+(f?" ":"")+u.toLowerCase()}),TI=B0("toLowerCase");function OI(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;if(!u||m>=u)return i;var b=(u-m)/2;return xu(du(b),f)+i+xu(cu(b),f)}function AI(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;return u&&m<u?i+xu(u-m,f):i}function II(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;return u&&m<u?xu(u-m,f)+i:i}function PI(i,u,f){return f||u==null?u=0:u&&(u=+u),FT(Ct(i).replace(tf,""),u||0)}function kI(i,u,f){return(f?Fn(i,u,f):u===n)?u=1:u=ot(u),Lf(Ct(i),u)}function RI(){var i=arguments,u=Ct(i[0]);return i.length<3?u:u.replace(i[1],i[2])}var LI=Is(function(i,u,f){return i+(f?"_":"")+u.toLowerCase()});function NI(i,u,f){return f&&typeof f!="number"&&Fn(i,u,f)&&(u=f=n),f=f===n?Le:f>>>0,f?(i=Ct(i),i&&(typeof u=="string"||u!=null&&!rp(u))&&(u=ur(u),!u&&Ss(i))?ri(Wr(i),0,f):i.split(u,f)):[]}var MI=Is(function(i,u,f){return i+(f?" ":"")+sp(u)});function DI(i,u,f){return i=Ct(i),f=f==null?0:ki(ot(f),0,i.length),u=ur(u),i.slice(f,f+u.length)==u}function FI(i,u,f){var m=x.templateSettings;f&&Fn(i,u,f)&&(u=n),i=Ct(i),u=Mu({},u,m,q0);var b=Mu({},u.imports,m.imports,q0),A=pn(b),R=vf(b,A),M,W,re=0,oe=u.interpolate||Xa,de="__p += '",Te=bf((u.escape||Xa).source+"|"+oe.source+"|"+(oe===hv?vC:Xa).source+"|"+(u.evaluate||Xa).source+"|$","g"),Ne="//# sourceURL="+(Ot.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++KC+"]")+`
    30 `;i.replace(Te,function(qe,pt,gt,dr,Bn,fr){return gt||(gt=dr),de+=i.slice(re,fr).replace(xC,pT),pt&&(M=!0,de+=`' +
     29`)}function p5(i){return Qe(i)||Di(i)||!!(r0&&i&&i[r0])}function Io(i,u){var f=typeof i;return u=u??Pe,!!u&&(f=="number"||f!="symbol"&&$C.test(i))&&i>-1&&i%1==0&&i<u}function Bn(i,u,f){if(!Kt(f))return!1;var m=typeof u;return(m=="number"?Gn(f)&&Io(u,f.length):m=="string"&&u in f)?Kr(f[u],i):!1}function Gf(i,u){if(Qe(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||cr(i)?!0:cC.test(i)||!uC.test(i)||u!=null&&i in Pt(u)}function h5(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function Xf(i){var u=Cu(i),f=$[u];if(typeof f!="function"||!(u in ht.prototype))return!1;if(i===f)return!0;var m=zf(f);return!!m&&i===m[0]}function m5(i){return!!Qv&&Qv in i}var g5=nu?ko:fp;function $l(i){var u=i&&i.constructor,f=typeof u=="function"&&u.prototype||$s;return i===f}function Q0(i){return i===i&&!Kt(i)}function ey(i,u){return function(f){return f==null?!1:f[i]===u&&(u!==n||i in Pt(f))}}function v5(i){var u=ku(i,function(m){return f.size===d&&f.clear(),m}),f=u.cache;return u}function y5(i,u){var f=i[1],m=u[1],b=f|m,A=b<(C|T|k),R=m==k&&f==E||m==k&&f==P&&i[7].length<=u[8]||m==(k|P)&&u[7].length<=u[8]&&f==E;if(!(A||R))return i;m&C&&(i[2]=u[2],b|=f&C?0:w);var M=u[3];if(M){var W=i[3];i[3]=W?M0(W,M,u[4]):M,i[4]=W?Qo(i[3],p):u[4]}return M=u[5],M&&(W=i[5],i[5]=W?D0(W,M,u[6]):M,i[6]=W?Qo(i[5],p):u[6]),M=u[7],M&&(i[7]=M),m&k&&(i[8]=i[8]==null?u[8]:Cn(i[8],u[8])),i[9]==null&&(i[9]=u[9]),i[0]=u[0],i[1]=b,i}function b5(i){var u=[];if(i!=null)for(var f in Pt(i))u.push(f);return u}function _5(i){return ou.call(i)}function ty(i,u,f){return u=un(u===n?i.length-1:u,0),function(){for(var m=arguments,b=-1,A=un(m.length-u,0),R=Y(A);++b<A;)R[b]=m[u+b];b=-1;for(var M=Y(u+1);++b<u;)M[b]=m[b];return M[u]=f(R),lr(i,this,M)}}function ny(i,u){return u.length<2?i:Li(i,Or(u,0,-1))}function w5(i,u){for(var f=i.length,m=Cn(u.length,f),b=Kn(i);m--;){var A=u[m];i[m]=Io(A,f)?b[A]:n}return i}function Jf(i,u){if(!(u==="constructor"&&typeof i[u]=="function")&&u!="__proto__")return i[u]}var ry=iy(C0),Cl=MT||function(i,u){return yn.setTimeout(i,u)},Yf=iy(WO);function oy(i,u,f){var m=u+"";return Yf(i,f5(m,S5(u5(m),f)))}function iy(i){var u=0,f=0;return function(){var m=UT(),b=G-(m-f);if(f=m,b>0){if(++u>=z)return arguments[0]}else u=0;return i.apply(n,arguments)}}function Ou(i,u){var f=-1,m=i.length,b=m-1;for(u=u===n?m:u;++f<u;){var A=Rf(f,b),R=i[A];i[A]=i[f],i[f]=R}return i.length=u,i}var sy=v5(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(dC,function(f,m,b,A){u.push(b?A.replace(bC,"$1"):m||f)}),u});function po(i){if(typeof i=="string"||cr(i))return i;var u=i+"";return u=="0"&&1/i==-Ae?"-0":u}function Mi(i){if(i!=null){try{return ru.call(i)}catch{}try{return i+""}catch{}}return""}function S5(i,u){return xr(ae,function(f){var m="_."+f[0];u&f[1]&&!Za(i,m)&&i.push(m)}),i.sort()}function ly(i){if(i instanceof ht)return i.clone();var u=new Cr(i.__wrapped__,i.__chain__);return u.__actions__=Kn(i.__actions__),u.__index__=i.__index__,u.__values__=i.__values__,u}function E5(i,u,f){(f?Bn(i,u,f):u===n)?u=1:u=un(ot(u),0);var m=i==null?0:i.length;if(!m||u<1)return[];for(var b=0,A=0,R=Y(cu(m/u));b<m;)R[A++]=Or(i,b,b+=u);return R}function x5(i){for(var u=-1,f=i==null?0:i.length,m=0,b=[];++u<f;){var A=i[u];A&&(b[m++]=A)}return b}function $5(){var i=arguments.length;if(!i)return[];for(var u=Y(i-1),f=arguments[0],m=i;m--;)u[m-1]=arguments[m];return Zo(Qe(f)?Kn(f):[f],bn(u,1))}var C5=at(function(i,u){return en(i)?_l(i,bn(u,1,en,!0)):[]}),T5=at(function(i,u){var f=Ar(u);return en(f)&&(f=n),en(i)?_l(i,bn(u,1,en,!0),We(f,2)):[]}),O5=at(function(i,u){var f=Ar(u);return en(f)&&(f=n),en(i)?_l(i,bn(u,1,en,!0),n,f):[]});function A5(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),Or(i,u<0?0:u,m)):[]}function P5(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),u=m-u,Or(i,0,u<0?0:u)):[]}function I5(i,u){return i&&i.length?_u(i,We(u,3),!0,!0):[]}function k5(i,u){return i&&i.length?_u(i,We(u,3),!0):[]}function R5(i,u,f,m){var b=i==null?0:i.length;return b?(f&&typeof f!="number"&&Bn(i,u,f)&&(f=0,m=b),$O(i,u,f,m)):[]}function ay(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=f==null?0:ot(f);return b<0&&(b=un(m+b,0)),Qa(i,We(u,3),b)}function uy(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=m-1;return f!==n&&(b=ot(f),b=f<0?un(m+b,0):Cn(b,m-1)),Qa(i,We(u,3),b,!0)}function cy(i){var u=i==null?0:i.length;return u?bn(i,1):[]}function L5(i){var u=i==null?0:i.length;return u?bn(i,Ae):[]}function N5(i,u){var f=i==null?0:i.length;return f?(u=u===n?1:ot(u),bn(i,u)):[]}function M5(i){for(var u=-1,f=i==null?0:i.length,m={};++u<f;){var b=i[u];m[b[0]]=b[1]}return m}function dy(i){return i&&i.length?i[0]:n}function D5(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=f==null?0:ot(f);return b<0&&(b=un(m+b,0)),ws(i,u,b)}function F5(i){var u=i==null?0:i.length;return u?Or(i,0,-1):[]}var B5=at(function(i){var u=Vt(i,Ff);return u.length&&u[0]===i[0]?Of(u):[]}),U5=at(function(i){var u=Ar(i),f=Vt(i,Ff);return u===Ar(f)?u=n:f.pop(),f.length&&f[0]===i[0]?Of(f,We(u,2)):[]}),j5=at(function(i){var u=Ar(i),f=Vt(i,Ff);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===i[0]?Of(f,n,u):[]});function H5(i,u){return i==null?"":FT.call(i,u)}function Ar(i){var u=i==null?0:i.length;return u?i[u-1]:n}function V5(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=m;return f!==n&&(b=ot(f),b=b<0?un(m+b,0):Cn(b,m-1)),u===u?ST(i,u,b):Qa(i,zv,b,!0)}function W5(i,u){return i&&i.length?S0(i,ot(u)):n}var z5=at(fy);function fy(i,u){return i&&i.length&&u&&u.length?kf(i,u):i}function q5(i,u,f){return i&&i.length&&u&&u.length?kf(i,u,We(f,2)):i}function K5(i,u,f){return i&&i.length&&u&&u.length?kf(i,u,n,f):i}var G5=Po(function(i,u){var f=i==null?0:i.length,m=xf(i,u);return $0(i,Vt(u,function(b){return Io(b,f)?+b:b}).sort(N0)),m});function X5(i,u){var f=[];if(!(i&&i.length))return f;var m=-1,b=[],A=i.length;for(u=We(u,3);++m<A;){var R=i[m];u(R,m,i)&&(f.push(R),b.push(m))}return $0(i,b),f}function Zf(i){return i==null?i:HT.call(i)}function J5(i,u,f){var m=i==null?0:i.length;return m?(f&&typeof f!="number"&&Bn(i,u,f)?(u=0,f=m):(u=u==null?0:ot(u),f=f===n?m:ot(f)),Or(i,u,f)):[]}function Y5(i,u){return bu(i,u)}function Z5(i,u,f){return Nf(i,u,We(f,2))}function Q5(i,u){var f=i==null?0:i.length;if(f){var m=bu(i,u);if(m<f&&Kr(i[m],u))return m}return-1}function eA(i,u){return bu(i,u,!0)}function tA(i,u,f){return Nf(i,u,We(f,2),!0)}function nA(i,u){var f=i==null?0:i.length;if(f){var m=bu(i,u,!0)-1;if(Kr(i[m],u))return m}return-1}function rA(i){return i&&i.length?T0(i):[]}function oA(i,u){return i&&i.length?T0(i,We(u,2)):[]}function iA(i){var u=i==null?0:i.length;return u?Or(i,1,u):[]}function sA(i,u,f){return i&&i.length?(u=f||u===n?1:ot(u),Or(i,0,u<0?0:u)):[]}function lA(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),u=m-u,Or(i,u<0?0:u,m)):[]}function aA(i,u){return i&&i.length?_u(i,We(u,3),!1,!0):[]}function uA(i,u){return i&&i.length?_u(i,We(u,3)):[]}var cA=at(function(i){return ni(bn(i,1,en,!0))}),dA=at(function(i){var u=Ar(i);return en(u)&&(u=n),ni(bn(i,1,en,!0),We(u,2))}),fA=at(function(i){var u=Ar(i);return u=typeof u=="function"?u:n,ni(bn(i,1,en,!0),n,u)});function pA(i){return i&&i.length?ni(i):[]}function hA(i,u){return i&&i.length?ni(i,We(u,2)):[]}function mA(i,u){return u=typeof u=="function"?u:n,i&&i.length?ni(i,n,u):[]}function Qf(i){if(!(i&&i.length))return[];var u=0;return i=Yo(i,function(f){if(en(f))return u=un(f.length,u),!0}),gf(u,function(f){return Vt(i,pf(f))})}function py(i,u){if(!(i&&i.length))return[];var f=Qf(i);return u==null?f:Vt(f,function(m){return lr(u,n,m)})}var gA=at(function(i,u){return en(i)?_l(i,u):[]}),vA=at(function(i){return Df(Yo(i,en))}),yA=at(function(i){var u=Ar(i);return en(u)&&(u=n),Df(Yo(i,en),We(u,2))}),bA=at(function(i){var u=Ar(i);return u=typeof u=="function"?u:n,Df(Yo(i,en),n,u)}),_A=at(Qf);function wA(i,u){return I0(i||[],u||[],bl)}function SA(i,u){return I0(i||[],u||[],El)}var EA=at(function(i){var u=i.length,f=u>1?i[u-1]:n;return f=typeof f=="function"?(i.pop(),f):n,py(i,f)});function hy(i){var u=$(i);return u.__chain__=!0,u}function xA(i,u){return u(i),i}function Au(i,u){return u(i)}var $A=Po(function(i){var u=i.length,f=u?i[0]:0,m=this.__wrapped__,b=function(A){return xf(A,i)};return u>1||this.__actions__.length||!(m instanceof ht)||!Io(f)?this.thru(b):(m=m.slice(f,+f+(u?1:0)),m.__actions__.push({func:Au,args:[b],thisArg:n}),new Cr(m,this.__chain__).thru(function(A){return u&&!A.length&&A.push(n),A}))});function CA(){return hy(this)}function TA(){return new Cr(this.value(),this.__chain__)}function OA(){this.__values__===n&&(this.__values__=Oy(this.value()));var i=this.__index__>=this.__values__.length,u=i?n:this.__values__[this.__index__++];return{done:i,value:u}}function AA(){return this}function PA(i){for(var u,f=this;f instanceof hu;){var m=ly(f);m.__index__=0,m.__values__=n,u?b.__wrapped__=m:u=m;var b=m;f=f.__wrapped__}return b.__wrapped__=i,u}function IA(){var i=this.__wrapped__;if(i instanceof ht){var u=i;return this.__actions__.length&&(u=new ht(this)),u=u.reverse(),u.__actions__.push({func:Au,args:[Zf],thisArg:n}),new Cr(u,this.__chain__)}return this.thru(Zf)}function kA(){return P0(this.__wrapped__,this.__actions__)}var RA=wu(function(i,u,f){Ot.call(i,f)?++i[f]:Oo(i,f,1)});function LA(i,u,f){var m=Qe(i)?Vv:xO;return f&&Bn(i,u,f)&&(u=n),m(i,We(u,3))}function NA(i,u){var f=Qe(i)?Yo:p0;return f(i,We(u,3))}var MA=j0(ay),DA=j0(uy);function FA(i,u){return bn(Pu(i,u),1)}function BA(i,u){return bn(Pu(i,u),Ae)}function UA(i,u,f){return f=f===n?1:ot(f),bn(Pu(i,u),f)}function my(i,u){var f=Qe(i)?xr:ti;return f(i,We(u,3))}function gy(i,u){var f=Qe(i)?iT:f0;return f(i,We(u,3))}var jA=wu(function(i,u,f){Ot.call(i,f)?i[f].push(u):Oo(i,f,[u])});function HA(i,u,f,m){i=Gn(i)?i:Rs(i),f=f&&!m?ot(f):0;var b=i.length;return f<0&&(f=un(b+f,0)),Nu(i)?f<=b&&i.indexOf(u,f)>-1:!!b&&ws(i,u,f)>-1}var VA=at(function(i,u,f){var m=-1,b=typeof u=="function",A=Gn(i)?Y(i.length):[];return ti(i,function(R){A[++m]=b?lr(u,R,f):wl(R,u,f)}),A}),WA=wu(function(i,u,f){Oo(i,f,u)});function Pu(i,u){var f=Qe(i)?Vt:b0;return f(i,We(u,3))}function zA(i,u,f,m){return i==null?[]:(Qe(u)||(u=u==null?[]:[u]),f=m?n:f,Qe(f)||(f=f==null?[]:[f]),E0(i,u,f))}var qA=wu(function(i,u,f){i[f?0:1].push(u)},function(){return[[],[]]});function KA(i,u,f){var m=Qe(i)?df:Kv,b=arguments.length<3;return m(i,We(u,4),f,b,ti)}function GA(i,u,f){var m=Qe(i)?sT:Kv,b=arguments.length<3;return m(i,We(u,4),f,b,f0)}function XA(i,u){var f=Qe(i)?Yo:p0;return f(i,Ru(We(u,3)))}function JA(i){var u=Qe(i)?a0:HO;return u(i)}function YA(i,u,f){(f?Bn(i,u,f):u===n)?u=1:u=ot(u);var m=Qe(i)?bO:VO;return m(i,u)}function ZA(i){var u=Qe(i)?_O:zO;return u(i)}function QA(i){if(i==null)return 0;if(Gn(i))return Nu(i)?Es(i):i.length;var u=Tn(i);return u==Z||u==se?i.size:Pf(i).length}function e3(i,u,f){var m=Qe(i)?ff:qO;return f&&Bn(i,u,f)&&(u=n),m(i,We(u,3))}var t3=at(function(i,u){if(i==null)return[];var f=u.length;return f>1&&Bn(i,u[0],u[1])?u=[]:f>2&&Bn(u[0],u[1],u[2])&&(u=[u[0]]),E0(i,bn(u,1),[])}),Iu=NT||function(){return yn.Date.now()};function n3(i,u){if(typeof u!="function")throw new $r(l);return i=ot(i),function(){if(--i<1)return u.apply(this,arguments)}}function vy(i,u,f){return u=f?n:u,u=i&&u==null?i.length:u,Ao(i,k,n,n,n,n,u)}function yy(i,u){var f;if(typeof u!="function")throw new $r(l);return i=ot(i),function(){return--i>0&&(f=u.apply(this,arguments)),i<=1&&(u=n),f}}var ep=at(function(i,u,f){var m=C;if(f.length){var b=Qo(f,Is(ep));m|=x}return Ao(i,m,u,f,b)}),by=at(function(i,u,f){var m=C|T;if(f.length){var b=Qo(f,Is(by));m|=x}return Ao(u,m,i,f,b)});function _y(i,u,f){u=f?n:u;var m=Ao(i,E,n,n,n,n,n,u);return m.placeholder=_y.placeholder,m}function wy(i,u,f){u=f?n:u;var m=Ao(i,O,n,n,n,n,n,u);return m.placeholder=wy.placeholder,m}function Sy(i,u,f){var m,b,A,R,M,W,re=0,oe=!1,de=!1,Te=!0;if(typeof i!="function")throw new $r(l);u=Pr(u)||0,Kt(f)&&(oe=!!f.leading,de="maxWait"in f,A=de?un(Pr(f.maxWait)||0,u):A,Te="trailing"in f?!!f.trailing:Te);function Ne(tn){var Gr=m,Lo=b;return m=b=n,re=tn,R=i.apply(Lo,Gr),R}function qe(tn){return re=tn,M=Cl(pt,u),oe?Ne(tn):R}function st(tn){var Gr=tn-W,Lo=tn-re,jy=u-Gr;return de?Cn(jy,A-Lo):jy}function Ke(tn){var Gr=tn-W,Lo=tn-re;return W===n||Gr>=u||Gr<0||de&&Lo>=A}function pt(){var tn=Iu();if(Ke(tn))return gt(tn);M=Cl(pt,st(tn))}function gt(tn){return M=n,Te&&m?Ne(tn):(m=b=n,R)}function dr(){M!==n&&k0(M),re=0,m=W=b=M=n}function Un(){return M===n?R:gt(Iu())}function fr(){var tn=Iu(),Gr=Ke(tn);if(m=arguments,b=this,W=tn,Gr){if(M===n)return qe(W);if(de)return k0(M),M=Cl(pt,u),Ne(W)}return M===n&&(M=Cl(pt,u)),R}return fr.cancel=dr,fr.flush=Un,fr}var r3=at(function(i,u){return d0(i,1,u)}),o3=at(function(i,u,f){return d0(i,Pr(u)||0,f)});function i3(i){return Ao(i,H)}function ku(i,u){if(typeof i!="function"||u!=null&&typeof u!="function")throw new $r(l);var f=function(){var m=arguments,b=u?u.apply(this,m):m[0],A=f.cache;if(A.has(b))return A.get(b);var R=i.apply(this,m);return f.cache=A.set(b,R)||A,R};return f.cache=new(ku.Cache||To),f}ku.Cache=To;function Ru(i){if(typeof i!="function")throw new $r(l);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function s3(i){return yy(2,i)}var l3=KO(function(i,u){u=u.length==1&&Qe(u[0])?Vt(u[0],ar(We())):Vt(bn(u,1),ar(We()));var f=u.length;return at(function(m){for(var b=-1,A=Cn(m.length,f);++b<A;)m[b]=u[b].call(this,m[b]);return lr(i,this,m)})}),tp=at(function(i,u){var f=Qo(u,Is(tp));return Ao(i,x,n,u,f)}),Ey=at(function(i,u){var f=Qo(u,Is(Ey));return Ao(i,I,n,u,f)}),a3=Po(function(i,u){return Ao(i,P,n,n,n,u)});function u3(i,u){if(typeof i!="function")throw new $r(l);return u=u===n?u:ot(u),at(i,u)}function c3(i,u){if(typeof i!="function")throw new $r(l);return u=u==null?0:un(ot(u),0),at(function(f){var m=f[u],b=oi(f,0,u);return m&&Zo(b,m),lr(i,this,b)})}function d3(i,u,f){var m=!0,b=!0;if(typeof i!="function")throw new $r(l);return Kt(f)&&(m="leading"in f?!!f.leading:m,b="trailing"in f?!!f.trailing:b),Sy(i,u,{leading:m,maxWait:u,trailing:b})}function f3(i){return vy(i,1)}function p3(i,u){return tp(Bf(u),i)}function h3(){if(!arguments.length)return[];var i=arguments[0];return Qe(i)?i:[i]}function m3(i){return Tr(i,y)}function g3(i,u){return u=typeof u=="function"?u:n,Tr(i,y,u)}function v3(i){return Tr(i,h|y)}function y3(i,u){return u=typeof u=="function"?u:n,Tr(i,h|y,u)}function b3(i,u){return u==null||c0(i,u,pn(u))}function Kr(i,u){return i===u||i!==i&&u!==u}var _3=$u(Tf),w3=$u(function(i,u){return i>=u}),Di=g0(function(){return arguments}())?g0:function(i){return Gt(i)&&Ot.call(i,"callee")&&!n0.call(i,"callee")},Qe=Y.isArray,S3=Dv?ar(Dv):PO;function Gn(i){return i!=null&&Lu(i.length)&&!ko(i)}function en(i){return Gt(i)&&Gn(i)}function E3(i){return i===!0||i===!1||Gt(i)&&Fn(i)==De}var ii=DT||fp,x3=Fv?ar(Fv):IO;function $3(i){return Gt(i)&&i.nodeType===1&&!Tl(i)}function C3(i){if(i==null)return!0;if(Gn(i)&&(Qe(i)||typeof i=="string"||typeof i.splice=="function"||ii(i)||ks(i)||Di(i)))return!i.length;var u=Tn(i);if(u==Z||u==se)return!i.size;if($l(i))return!Pf(i).length;for(var f in i)if(Ot.call(i,f))return!1;return!0}function T3(i,u){return Sl(i,u)}function O3(i,u,f){f=typeof f=="function"?f:n;var m=f?f(i,u):n;return m===n?Sl(i,u,n,f):!!m}function np(i){if(!Gt(i))return!1;var u=Fn(i);return u==ln||u==gn||typeof i.message=="string"&&typeof i.name=="string"&&!Tl(i)}function A3(i){return typeof i=="number"&&o0(i)}function ko(i){if(!Kt(i))return!1;var u=Fn(i);return u==L||u==B||u==Ve||u==me}function xy(i){return typeof i=="number"&&i==ot(i)}function Lu(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Pe}function Kt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function Gt(i){return i!=null&&typeof i=="object"}var $y=Bv?ar(Bv):RO;function P3(i,u){return i===u||Af(i,u,qf(u))}function I3(i,u,f){return f=typeof f=="function"?f:n,Af(i,u,qf(u),f)}function k3(i){return Cy(i)&&i!=+i}function R3(i){if(g5(i))throw new Ze(s);return v0(i)}function L3(i){return i===null}function N3(i){return i==null}function Cy(i){return typeof i=="number"||Gt(i)&&Fn(i)==le}function Tl(i){if(!Gt(i)||Fn(i)!=pe)return!1;var u=lu(i);if(u===null)return!0;var f=Ot.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&ru.call(f)==IT}var rp=Uv?ar(Uv):LO;function M3(i){return xy(i)&&i>=-Pe&&i<=Pe}var Ty=jv?ar(jv):NO;function Nu(i){return typeof i=="string"||!Qe(i)&&Gt(i)&&Fn(i)==Re}function cr(i){return typeof i=="symbol"||Gt(i)&&Fn(i)==Ie}var ks=Hv?ar(Hv):MO;function D3(i){return i===n}function F3(i){return Gt(i)&&Tn(i)==je}function B3(i){return Gt(i)&&Fn(i)==rt}var U3=$u(If),j3=$u(function(i,u){return i<=u});function Oy(i){if(!i)return[];if(Gn(i))return Nu(i)?zr(i):Kn(i);if(hl&&i[hl])return bT(i[hl]());var u=Tn(i),f=u==Z?yf:u==se?eu:Rs;return f(i)}function Ro(i){if(!i)return i===0?i:0;if(i=Pr(i),i===Ae||i===-Ae){var u=i<0?-1:1;return u*Ye}return i===i?i:0}function ot(i){var u=Ro(i),f=u%1;return u===u?f?u-f:u:0}function Ay(i){return i?Ri(ot(i),0,Le):0}function Pr(i){if(typeof i=="number")return i;if(cr(i))return ft;if(Kt(i)){var u=typeof i.valueOf=="function"?i.valueOf():i;i=Kt(u)?u+"":u}if(typeof i!="string")return i===0?i:+i;i=Gv(i);var f=SC.test(i);return f||xC.test(i)?nT(i.slice(2),f?2:8):wC.test(i)?ft:+i}function Py(i){return fo(i,Xn(i))}function H3(i){return i?Ri(ot(i),-Pe,Pe):i===0?i:0}function Ct(i){return i==null?"":ur(i)}var V3=As(function(i,u){if($l(u)||Gn(u)){fo(u,pn(u),i);return}for(var f in u)Ot.call(u,f)&&bl(i,f,u[f])}),Iy=As(function(i,u){fo(u,Xn(u),i)}),Mu=As(function(i,u,f,m){fo(u,Xn(u),i,m)}),W3=As(function(i,u,f,m){fo(u,pn(u),i,m)}),z3=Po(xf);function q3(i,u){var f=Os(i);return u==null?f:u0(f,u)}var K3=at(function(i,u){i=Pt(i);var f=-1,m=u.length,b=m>2?u[2]:n;for(b&&Bn(u[0],u[1],b)&&(m=1);++f<m;)for(var A=u[f],R=Xn(A),M=-1,W=R.length;++M<W;){var re=R[M],oe=i[re];(oe===n||Kr(oe,$s[re])&&!Ot.call(i,re))&&(i[re]=A[re])}return i}),G3=at(function(i){return i.push(n,G0),lr(ky,n,i)});function X3(i,u){return Wv(i,We(u,3),co)}function J3(i,u){return Wv(i,We(u,3),Cf)}function Y3(i,u){return i==null?i:$f(i,We(u,3),Xn)}function Z3(i,u){return i==null?i:h0(i,We(u,3),Xn)}function Q3(i,u){return i&&co(i,We(u,3))}function eP(i,u){return i&&Cf(i,We(u,3))}function tP(i){return i==null?[]:vu(i,pn(i))}function nP(i){return i==null?[]:vu(i,Xn(i))}function op(i,u,f){var m=i==null?n:Li(i,u);return m===n?f:m}function rP(i,u){return i!=null&&Y0(i,u,CO)}function ip(i,u){return i!=null&&Y0(i,u,TO)}var oP=V0(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ou.call(u)),i[u]=f},lp(Jn)),iP=V0(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ou.call(u)),Ot.call(i,u)?i[u].push(f):i[u]=[f]},We),sP=at(wl);function pn(i){return Gn(i)?l0(i):Pf(i)}function Xn(i){return Gn(i)?l0(i,!0):DO(i)}function lP(i,u){var f={};return u=We(u,3),co(i,function(m,b,A){Oo(f,u(m,b,A),m)}),f}function aP(i,u){var f={};return u=We(u,3),co(i,function(m,b,A){Oo(f,b,u(m,b,A))}),f}var uP=As(function(i,u,f){yu(i,u,f)}),ky=As(function(i,u,f,m){yu(i,u,f,m)}),cP=Po(function(i,u){var f={};if(i==null)return f;var m=!1;u=Vt(u,function(A){return A=ri(A,i),m||(m=A.length>1),A}),fo(i,Wf(i),f),m&&(f=Tr(f,h|g|y,o5));for(var b=u.length;b--;)Mf(f,u[b]);return f});function dP(i,u){return Ry(i,Ru(We(u)))}var fP=Po(function(i,u){return i==null?{}:BO(i,u)});function Ry(i,u){if(i==null)return{};var f=Vt(Wf(i),function(m){return[m]});return u=We(u),x0(i,f,function(m,b){return u(m,b[0])})}function pP(i,u,f){u=ri(u,i);var m=-1,b=u.length;for(b||(b=1,i=n);++m<b;){var A=i==null?n:i[po(u[m])];A===n&&(m=b,A=f),i=ko(A)?A.call(i):A}return i}function hP(i,u,f){return i==null?i:El(i,u,f)}function mP(i,u,f,m){return m=typeof m=="function"?m:n,i==null?i:El(i,u,f,m)}var Ly=q0(pn),Ny=q0(Xn);function gP(i,u,f){var m=Qe(i),b=m||ii(i)||ks(i);if(u=We(u,4),f==null){var A=i&&i.constructor;b?f=m?new A:[]:Kt(i)?f=ko(A)?Os(lu(i)):{}:f={}}return(b?xr:co)(i,function(R,M,W){return u(f,R,M,W)}),f}function vP(i,u){return i==null?!0:Mf(i,u)}function yP(i,u,f){return i==null?i:A0(i,u,Bf(f))}function bP(i,u,f,m){return m=typeof m=="function"?m:n,i==null?i:A0(i,u,Bf(f),m)}function Rs(i){return i==null?[]:vf(i,pn(i))}function _P(i){return i==null?[]:vf(i,Xn(i))}function wP(i,u,f){return f===n&&(f=u,u=n),f!==n&&(f=Pr(f),f=f===f?f:0),u!==n&&(u=Pr(u),u=u===u?u:0),Ri(Pr(i),u,f)}function SP(i,u,f){return u=Ro(u),f===n?(f=u,u=0):f=Ro(f),i=Pr(i),OO(i,u,f)}function EP(i,u,f){if(f&&typeof f!="boolean"&&Bn(i,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&u===n?(i=0,u=1):(i=Ro(i),u===n?(u=i,i=0):u=Ro(u)),i>u){var m=i;i=u,u=m}if(f||i%1||u%1){var b=i0();return Cn(i+b*(u-i+tT("1e-"+((b+"").length-1))),u)}return Rf(i,u)}var xP=Ps(function(i,u,f){return u=u.toLowerCase(),i+(f?My(u):u)});function My(i){return sp(Ct(i).toLowerCase())}function Dy(i){return i=Ct(i),i&&i.replace(CC,hT).replace(zC,"")}function $P(i,u,f){i=Ct(i),u=ur(u);var m=i.length;f=f===n?m:Ri(ot(f),0,m);var b=f;return f-=u.length,f>=0&&i.slice(f,b)==u}function CP(i){return i=Ct(i),i&&sC.test(i)?i.replace(hv,mT):i}function TP(i){return i=Ct(i),i&&fC.test(i)?i.replace(ef,"\\$&"):i}var OP=Ps(function(i,u,f){return i+(f?"-":"")+u.toLowerCase()}),AP=Ps(function(i,u,f){return i+(f?" ":"")+u.toLowerCase()}),PP=U0("toLowerCase");function IP(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;if(!u||m>=u)return i;var b=(u-m)/2;return xu(du(b),f)+i+xu(cu(b),f)}function kP(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;return u&&m<u?i+xu(u-m,f):i}function RP(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;return u&&m<u?xu(u-m,f)+i:i}function LP(i,u,f){return f||u==null?u=0:u&&(u=+u),jT(Ct(i).replace(tf,""),u||0)}function NP(i,u,f){return(f?Bn(i,u,f):u===n)?u=1:u=ot(u),Lf(Ct(i),u)}function MP(){var i=arguments,u=Ct(i[0]);return i.length<3?u:u.replace(i[1],i[2])}var DP=Ps(function(i,u,f){return i+(f?"_":"")+u.toLowerCase()});function FP(i,u,f){return f&&typeof f!="number"&&Bn(i,u,f)&&(u=f=n),f=f===n?Le:f>>>0,f?(i=Ct(i),i&&(typeof u=="string"||u!=null&&!rp(u))&&(u=ur(u),!u&&Ss(i))?oi(zr(i),0,f):i.split(u,f)):[]}var BP=Ps(function(i,u,f){return i+(f?" ":"")+sp(u)});function UP(i,u,f){return i=Ct(i),f=f==null?0:Ri(ot(f),0,i.length),u=ur(u),i.slice(f,f+u.length)==u}function jP(i,u,f){var m=$.templateSettings;f&&Bn(i,u,f)&&(u=n),i=Ct(i),u=Mu({},u,m,K0);var b=Mu({},u.imports,m.imports,K0),A=pn(b),R=vf(b,A),M,W,re=0,oe=u.interpolate||Xa,de="__p += '",Te=bf((u.escape||Xa).source+"|"+oe.source+"|"+(oe===mv?_C:Xa).source+"|"+(u.evaluate||Xa).source+"|$","g"),Ne="//# sourceURL="+(Ot.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++JC+"]")+`
     30`;i.replace(Te,function(Ke,pt,gt,dr,Un,fr){return gt||(gt=dr),de+=i.slice(re,fr).replace(TC,gT),pt&&(M=!0,de+=`' +
    3131__e(`+pt+`) +
    32 '`),Bn&&(W=!0,de+=`';
    33 `+Bn+`;
     32'`),Un&&(W=!0,de+=`';
     33`+Un+`;
    3434__p += '`),gt&&(de+=`' +
    3535((__t = (`+gt+`)) == null ? '' : __t) +
    36 '`),re=fr+qe.length,qe}),de+=`';
    37 `;var ze=Ot.call(u,"variable")&&u.variable;if(!ze)de=`with (obj) {
     36'`),re=fr+Ke.length,Ke}),de+=`';
     37`;var qe=Ot.call(u,"variable")&&u.variable;if(!qe)de=`with (obj) {
    3838`+de+`
    3939}
    40 `;else if(mC.test(ze))throw new Ze(a);de=(W?de.replace(Q$,""):de).replace(eC,"$1").replace(tC,"$1;"),de="function("+(ze||"obj")+`) {
    41 `+(ze?"":`obj || (obj = {});
     40`;else if(yC.test(qe))throw new Ze(a);de=(W?de.replace(nC,""):de).replace(rC,"$1").replace(oC,"$1;"),de="function("+(qe||"obj")+`) {
     41`+(qe?"":`obj || (obj = {});
    4242`)+"var __t, __p = ''"+(M?", __e = _.escape":"")+(W?`, __j = Array.prototype.join;
    4343function print() { __p += __j.call(arguments, '') }
    4444`:`;
    4545`)+de+`return __p
    46 }`;var st=Fy(function(){return xt(A,Ne+"return "+de).apply(n,R)});if(st.source=de,np(st))throw st;return st}function BI(i){return Ct(i).toLowerCase()}function UI(i){return Ct(i).toUpperCase()}function jI(i,u,f){if(i=Ct(i),i&&(f||u===n))return Kv(i);if(!i||!(u=ur(u)))return i;var m=Wr(i),b=Wr(u),A=Gv(m,b),R=Xv(m,b)+1;return ri(m,A,R).join("")}function HI(i,u,f){if(i=Ct(i),i&&(f||u===n))return i.slice(0,Yv(i)+1);if(!i||!(u=ur(u)))return i;var m=Wr(i),b=Xv(m,Wr(u))+1;return ri(m,0,b).join("")}function VI(i,u,f){if(i=Ct(i),i&&(f||u===n))return i.replace(tf,"");if(!i||!(u=ur(u)))return i;var m=Wr(i),b=Gv(m,Wr(u));return ri(m,b).join("")}function WI(i,u){var f=D,m=F;if(Kt(u)){var b="separator"in u?u.separator:b;f="length"in u?ot(u.length):f,m="omission"in u?ur(u.omission):m}i=Ct(i);var A=i.length;if(Ss(i)){var R=Wr(i);A=R.length}if(f>=A)return i;var M=f-Es(m);if(M<1)return m;var W=R?ri(R,0,M).join(""):i.slice(0,M);if(b===n)return W+m;if(R&&(M+=W.length-M),rp(b)){if(i.slice(M).search(b)){var re,oe=W;for(b.global||(b=bf(b.source,Ct(mv.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(ur(b),M)!=M){var Te=W.lastIndexOf(b);Te>-1&&(W=W.slice(0,Te))}return W+m}function zI(i){return i=Ct(i),i&&nC.test(i)?i.replace(fv,_T):i}var qI=Is(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),sp=B0("toUpperCase");function Dy(i,u,f){return i=Ct(i),u=f?n:u,u===n?mT(i)?ET(i):sT(i):i.match(u)||[]}var Fy=at(function(i,u){try{return lr(i,n,u)}catch(f){return np(f)?f:new Ze(f)}}),KI=Io(function(i,u){return xr(u,function(f){f=fo(f),Oo(i,f,ep(i[f],i))}),i});function GI(i){var u=i==null?0:i.length,f=Ve();return i=u?Vt(i,function(m){if(typeof m[1]!="function")throw new $r(l);return[f(m[0]),m[1]]}):[],at(function(m){for(var b=-1;++b<u;){var A=i[b];if(lr(A[0],this,m))return lr(A[1],this,m)}})}function XI(i){return _O(Tr(i,h))}function lp(i){return function(){return i}}function JI(i,u){return i==null||i!==i?u:i}var YI=j0(),ZI=j0(!0);function Gn(i){return i}function ap(i){return v0(typeof i=="function"?i:Tr(i,h))}function QI(i){return b0(Tr(i,h))}function eP(i,u){return _0(i,Tr(u,h))}var tP=at(function(i,u){return function(f){return wl(f,i,u)}}),nP=at(function(i,u){return function(f){return wl(i,f,u)}});function up(i,u,f){var m=pn(u),b=vu(u,m);f==null&&!(Kt(u)&&(b.length||!m.length))&&(f=u,u=i,i=this,b=vu(u,pn(u)));var A=!(Kt(f)&&"chain"in f)||!!f.chain,R=ko(i);return xr(b,function(M){var W=u[M];i[M]=W,R&&(i.prototype[M]=function(){var re=this.__chain__;if(A||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,Yo([this.value()],arguments))})}),i}function rP(){return yn._===this&&(yn._=AT),this}function cp(){}function oP(i){return i=ot(i),at(function(u){return w0(u,i)})}var iP=jf(Vt),sP=jf(Hv),lP=jf(ff);function By(i){return Gf(i)?pf(fo(i)):DO(i)}function aP(i){return function(u){return i==null?n:Ri(i,u)}}var uP=V0(),cP=V0(!0);function dp(){return[]}function fp(){return!1}function dP(){return{}}function fP(){return""}function pP(){return!0}function hP(i,u){if(i=ot(i),i<1||i>Ie)return[];var f=Le,m=Cn(i,Le);u=Ve(u),i-=Le;for(var b=gf(m,u);++f<i;)u(f);return b}function mP(i){return Qe(i)?Vt(i,fo):cr(i)?[i]:zn(iy(Ct(i)))}function gP(i){var u=++TT;return Ct(i)+u}var vP=Eu(function(i,u){return i+u},0),yP=Hf("ceil"),bP=Eu(function(i,u){return i/u},1),_P=Hf("floor");function wP(i){return i&&i.length?gu(i,Gn,Tf):n}function SP(i,u){return i&&i.length?gu(i,Ve(u,2),Tf):n}function EP(i){return zv(i,Gn)}function xP(i,u){return zv(i,Ve(u,2))}function $P(i){return i&&i.length?gu(i,Gn,Pf):n}function CP(i,u){return i&&i.length?gu(i,Ve(u,2),Pf):n}var TP=Eu(function(i,u){return i*u},1),OP=Hf("round"),AP=Eu(function(i,u){return i-u},0);function IP(i){return i&&i.length?mf(i,Gn):0}function PP(i,u){return i&&i.length?mf(i,Ve(u,2)):0}return x.after=QA,x.ary=gy,x.assign=U3,x.assignIn=Iy,x.assignInWith=Mu,x.assignWith=j3,x.at=H3,x.before=vy,x.bind=ep,x.bindAll=KI,x.bindKey=yy,x.castArray=d3,x.chain=py,x.chunk=_5,x.compact=w5,x.concat=S5,x.cond=GI,x.conforms=XI,x.constant=lp,x.countBy=IA,x.create=V3,x.curry=by,x.curryRight=_y,x.debounce=wy,x.defaults=W3,x.defaultsDeep=z3,x.defer=e3,x.delay=t3,x.difference=E5,x.differenceBy=x5,x.differenceWith=$5,x.drop=C5,x.dropRight=T5,x.dropRightWhile=O5,x.dropWhile=A5,x.fill=I5,x.filter=kA,x.flatMap=NA,x.flatMapDeep=MA,x.flatMapDepth=DA,x.flatten=uy,x.flattenDeep=P5,x.flattenDepth=k5,x.flip=n3,x.flow=YI,x.flowRight=ZI,x.fromPairs=R5,x.functions=Z3,x.functionsIn=Q3,x.groupBy=FA,x.initial=N5,x.intersection=M5,x.intersectionBy=D5,x.intersectionWith=F5,x.invert=tI,x.invertBy=nI,x.invokeMap=UA,x.iteratee=ap,x.keyBy=jA,x.keys=pn,x.keysIn=Kn,x.map=Iu,x.mapKeys=oI,x.mapValues=iI,x.matches=QI,x.matchesProperty=eP,x.memoize=ku,x.merge=sI,x.mergeWith=Py,x.method=tP,x.methodOf=nP,x.mixin=up,x.negate=Ru,x.nthArg=oP,x.omit=lI,x.omitBy=aI,x.once=r3,x.orderBy=HA,x.over=iP,x.overArgs=o3,x.overEvery=sP,x.overSome=lP,x.partial=tp,x.partialRight=Sy,x.partition=VA,x.pick=uI,x.pickBy=ky,x.property=By,x.propertyOf=aP,x.pull=H5,x.pullAll=dy,x.pullAllBy=V5,x.pullAllWith=W5,x.pullAt=z5,x.range=uP,x.rangeRight=cP,x.rearg=i3,x.reject=qA,x.remove=q5,x.rest=s3,x.reverse=Zf,x.sampleSize=GA,x.set=dI,x.setWith=fI,x.shuffle=XA,x.slice=K5,x.sortBy=ZA,x.sortedUniq=eA,x.sortedUniqBy=tA,x.split=NI,x.spread=l3,x.tail=nA,x.take=rA,x.takeRight=oA,x.takeRightWhile=iA,x.takeWhile=sA,x.tap=wA,x.throttle=a3,x.thru=Au,x.toArray=Ty,x.toPairs=Ry,x.toPairsIn=Ly,x.toPath=mP,x.toPlainObject=Ay,x.transform=pI,x.unary=u3,x.union=lA,x.unionBy=aA,x.unionWith=uA,x.uniq=cA,x.uniqBy=dA,x.uniqWith=fA,x.unset=hI,x.unzip=Qf,x.unzipWith=fy,x.update=mI,x.updateWith=gI,x.values=Rs,x.valuesIn=vI,x.without=pA,x.words=Dy,x.wrap=c3,x.xor=hA,x.xorBy=mA,x.xorWith=gA,x.zip=vA,x.zipObject=yA,x.zipObjectDeep=bA,x.zipWith=_A,x.entries=Ry,x.entriesIn=Ly,x.extend=Iy,x.extendWith=Mu,up(x,x),x.add=vP,x.attempt=Fy,x.camelCase=wI,x.capitalize=Ny,x.ceil=yP,x.clamp=yI,x.clone=f3,x.cloneDeep=h3,x.cloneDeepWith=m3,x.cloneWith=p3,x.conformsTo=g3,x.deburr=My,x.defaultTo=JI,x.divide=bP,x.endsWith=SI,x.eq=qr,x.escape=EI,x.escapeRegExp=xI,x.every=PA,x.find=RA,x.findIndex=ly,x.findKey=q3,x.findLast=LA,x.findLastIndex=ay,x.findLastKey=K3,x.floor=_P,x.forEach=hy,x.forEachRight=my,x.forIn=G3,x.forInRight=X3,x.forOwn=J3,x.forOwnRight=Y3,x.get=op,x.gt=v3,x.gte=y3,x.has=eI,x.hasIn=ip,x.head=cy,x.identity=Gn,x.includes=BA,x.indexOf=L5,x.inRange=bI,x.invoke=rI,x.isArguments=Mi,x.isArray=Qe,x.isArrayBuffer=b3,x.isArrayLike=qn,x.isArrayLikeObject=en,x.isBoolean=_3,x.isBuffer=oi,x.isDate=w3,x.isElement=S3,x.isEmpty=E3,x.isEqual=x3,x.isEqualWith=$3,x.isError=np,x.isFinite=C3,x.isFunction=ko,x.isInteger=Ey,x.isLength=Lu,x.isMap=xy,x.isMatch=T3,x.isMatchWith=O3,x.isNaN=A3,x.isNative=I3,x.isNil=k3,x.isNull=P3,x.isNumber=$y,x.isObject=Kt,x.isObjectLike=Gt,x.isPlainObject=Tl,x.isRegExp=rp,x.isSafeInteger=R3,x.isSet=Cy,x.isString=Nu,x.isSymbol=cr,x.isTypedArray=ks,x.isUndefined=L3,x.isWeakMap=N3,x.isWeakSet=M3,x.join=B5,x.kebabCase=$I,x.last=Ar,x.lastIndexOf=U5,x.lowerCase=CI,x.lowerFirst=TI,x.lt=D3,x.lte=F3,x.max=wP,x.maxBy=SP,x.mean=EP,x.meanBy=xP,x.min=$P,x.minBy=CP,x.stubArray=dp,x.stubFalse=fp,x.stubObject=dP,x.stubString=fP,x.stubTrue=pP,x.multiply=TP,x.nth=j5,x.noConflict=rP,x.noop=cp,x.now=Pu,x.pad=OI,x.padEnd=AI,x.padStart=II,x.parseInt=PI,x.random=_I,x.reduce=WA,x.reduceRight=zA,x.repeat=kI,x.replace=RI,x.result=cI,x.round=OP,x.runInContext=j,x.sample=KA,x.size=JA,x.snakeCase=LI,x.some=YA,x.sortedIndex=G5,x.sortedIndexBy=X5,x.sortedIndexOf=J5,x.sortedLastIndex=Y5,x.sortedLastIndexBy=Z5,x.sortedLastIndexOf=Q5,x.startCase=MI,x.startsWith=DI,x.subtract=AP,x.sum=IP,x.sumBy=PP,x.template=FI,x.times=hP,x.toFinite=Ro,x.toInteger=ot,x.toLength=Oy,x.toLower=BI,x.toNumber=Ir,x.toSafeInteger=B3,x.toString=Ct,x.toUpper=UI,x.trim=jI,x.trimEnd=HI,x.trimStart=VI,x.truncate=WI,x.unescape=zI,x.uniqueId=gP,x.upperCase=qI,x.upperFirst=sp,x.each=hy,x.eachRight=my,x.first=cy,up(x,function(){var i={};return uo(x,function(u,f){Ot.call(x.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),x.VERSION=r,xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){x[i].placeholder=x}),xr(["drop","take"],function(i,u){ht.prototype[i]=function(f){f=f===n?1:un(ot(f),0);var m=this.__filtered__&&!u?new ht(this):this.clone();return m.__filtered__?m.__takeCount__=Cn(f,m.__takeCount__):m.__views__.push({size:Cn(f,Le),type:i+(m.__dir__<0?"Right":"")}),m},ht.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),xr(["filter","map","takeWhile"],function(i,u){var f=u+1,m=f==te||f==be;ht.prototype[i]=function(b){var A=this.clone();return A.__iteratees__.push({iteratee:Ve(b,3),type:f}),A.__filtered__=A.__filtered__||m,A}}),xr(["head","last"],function(i,u){var f="take"+(u?"Right":"");ht.prototype[i]=function(){return this[f](1).value()[0]}}),xr(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");ht.prototype[i]=function(){return this.__filtered__?new ht(this):this[f](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(f){return wl(f,i,u)})}),ht.prototype.reject=function(i){return this.filter(Ru(Ve(i)))},ht.prototype.slice=function(i,u){i=ot(i);var f=this;return f.__filtered__&&(i>0||u<0)?new ht(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ot(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},ht.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},ht.prototype.toArray=function(){return this.take(Le)},uo(ht.prototype,function(i,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),m=/^(?:head|last)$/.test(u),b=x[m?"take"+(u=="last"?"Right":""):u],A=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 gt=b.apply(x,Yo([pt],M));return m&&Te?gt[0]:gt};oe&&f&&typeof re=="function"&&re.length!=1&&(W=oe=!1);var Te=this.__chain__,Ne=!!this.__actions__.length,ze=A&&!Te,st=W&&!Ne;if(!A&&oe){R=st?R:new ht(this);var qe=i.apply(R,M);return qe.__actions__.push({func:Au,args:[de],thisArg:n}),new Cr(qe,Te)}return ze&&st?i.apply(this,M):(qe=this.thru(de),ze?m?qe.value()[0]:qe.value():qe)})}),xr(["pop","push","shift","sort","splice","unshift"],function(i){var u=tu[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",m=/^(?:pop|shift)$/.test(i);x.prototype[i]=function(){var b=arguments;if(m&&!this.__chain__){var A=this.value();return u.apply(Qe(A)?A:[],b)}return this[f](function(R){return u.apply(Qe(R)?R:[],b)})}}),uo(ht.prototype,function(i,u){var f=x[u];if(f){var m=f.name+"";Ot.call(Ts,m)||(Ts[m]=[]),Ts[m].push({name:u,func:f})}}),Ts[Su(n,T).name]=[{name:"wrapper",func:n}],ht.prototype.clone=zT,ht.prototype.reverse=qT,ht.prototype.value=KT,x.prototype.at=SA,x.prototype.chain=EA,x.prototype.commit=xA,x.prototype.next=$A,x.prototype.plant=TA,x.prototype.reverse=OA,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=AA,x.prototype.first=x.prototype.head,hl&&(x.prototype[hl]=CA),x},xs=xT();Oi?((Oi.exports=xs)._=xs,af._=xs):yn._=xs}).call(Pl)})(jc,jc.exports);var X=jc.exports;const e7={chapters:[],selected:null},AE="podlove/publisher/chapter/INIT",rg="podlove/publisher/chapter/UPDATE",IE="podlove/publisher/chapter/SELECT",og="podlove/publisher/chapter/REMOVE",ig="podlove/publisher/chapter/ADD",PE="podlove/publisher/chapter/PARSE",sg="podlove/publisher/chapter/PARSED",kE="podlove/publisher/chapter/SET",RE="podlove/publisher/chapter/DOWNLOAD",lg="podlove/publisher/chapter/SELECT_IMAGE",ag="podlove/publisher/chapter/SET_IMAGE",t7=ve(AE),n7=ve(rg),fi=ve(IE),r7=ve(og),o7=ve(ig),i7=ve(PE),LE=ve(sg),s7=ve(kE),l7=ve(RE),a7=ve(lg);ve(ag);const u7=sr({[sg]:(e,t)=>({...e,selected:null,chapters:X.get(t,["payload"],[])}),[kE]:(e,t)=>({...e,selected:null,chapters:X.get(t,["payload"],[])}),[rg]:(e,t)=>{let n=NE(e);const r=ME(e),s=e.chapters.reduce((a,c,d)=>[...a,d===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}),[ig]:e=>({...e,chapters:[...e.chapters,{start:X.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[og]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[ag]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},e7),c7=e=>e.chapters,NE=e=>e.selected,ME=e=>e.selected!==null?X.get(e,["chapters",e.selected],null):null,Ap={chapters:c7,selectedIndex:NE,selected:ME},Ip=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)}},Ma=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=Ip(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))s=Ip(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=Ip(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=Ma(t)||0,new Nt(n)}}const i_=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},DE="podlove/publisher/episode/INIT",Qs="podlove/publisher/episode/UPDATE",FE="podlove/publisher/episode/QUICKSAVE",BE="podlove/publisher/episode/SAVED",UE="podlove/publisher/episode/SLUG_CHANGED",Pd="podlove/publisher/episode/SET",jE="podlove/publisher/episode/SET_POSTER",HE="podlove/publisher/episode/SELECT_POSTER",ug="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",cg="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",dg="podlove/publisher/episode/DELETE_CONTRIBUTION",fg="podlove/publisher/episode/UPDATE_CONTRIBUTION",pg="podlove/publisher/episode/ADD_CONTRIBUTION",VE="podlove/publisher/episode/CREATE_CONTRIBUTION",d7={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,is_auphonic_production_running:!1,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},wt=ve(Qs),f7=ve(FE),kd=ve(DE),p7=ve(HE),WE=ve(Pd),h7=ve(ug),m7=ve(cg),g7=ve(dg),Pp=ve(fg),zE=ve(pg),v7=ve(VE),y7=ve(BE),b7=ve(UE),_7=sr({[Eo]:(e,t)=>({...e,id:X.get(t,["payload","episode","id"],null),duration:Nt.fromString(X.get(t,["payload","episode","duration"],null)).totalMs}),[Qs]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","auphonic_webhook_config","is_auphonic_production_running","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number","episode_poster","poster","explicit"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})},[Pd]:(e,t)=>({...e,slug:X.get(t,["payload","slug"],e.slug),number:X.get(t,["payload","number"],e.number),duration:X.get(t,["payload","duration"],e.duration),title:X.get(t,["payload","title_clean"],e.title),subtitle:X.get(t,["payload","subtitle"],e.subtitle),summary:X.get(t,["payload","summary"],e.summary),type:X.get(t,["payload","type"],e.type),episode_poster:X.get(t,["payload","episode_poster"],e.episode_poster),poster:X.get(t,["payload","poster"],e.poster),mnemonic:X.get(t,["payload","mnemonic"],e.mnemonic),explicit:X.get(t,["payload","explicit"],e.explicit),auphonic_production_id:X.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),is_auphonic_production_running:X.get(t,["payload","is_auphonic_production_running"],e.is_auphonic_production_running),auphonic_webhook_config:X.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:X.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:X.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:X.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:X.get(t,["payload","license_name"],e.license_name),license_url:X.get(t,["payload","license_url"],e.license_url),contributions:X.get(t,["payload","contributions"],e.contributions),show:X.get(t,["payload","show"],e.show)}),[ug]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===X.get(t,["payload","position"]));return n<1?e:{...e,contributions:i_(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[cg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===X.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:i_(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[dg]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>X.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[fg]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==X.get(t,["payload","contributor_id"])?n:X.pick(X.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[pg]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:X.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},d7),Xt={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,isAuphonicProductionRunning:e=>e.is_auphonic_production_running,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},w7={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},S7=sr({[Eo]:(e,t)=>({...e,baseUrl:X.get(t,["payload","baseUrl"],null),api:{base:X.get(t,["payload","api","base"],null),nonce:X.get(t,["payload","api","nonce"],null),auth:X.get(t,["payload","api","auth"],null),bearer:X.get(t,["payload","api","bearer"],null)}})},w7),kl={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},Rd="podlove/publisher/wordpress/UPDATE",qE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",$h=ve(Rd),hg=ve(qE),E7={id:null,title:null,featured_media:null},x7=sr({[Eo]:(e,t)=>({...e,id:X.get(t,["payload","post","id"],null),title:X.get(t,["payload","post","title"],null),featured_media:X.get(t,["payload","post","featured_media"],null)}),[Rd]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.get(t,["payload","value"],null);return["title","featured_media"].includes(n)?{...e,[n]:r}:{...e}}},E7),kp={id:e=>e.id,title:e=>e.title,featured_media:e=>e.featured_media},KE="podlove/publisher/transcript/INIT",GE="podlove/publisher/transcript/SET_TRANSCRIPTS",XE="podlove/publisher/transcript/SET_VOICES",mg="podlove/publisher/transcript/UPDATE_VOICE",JE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",YE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",ZE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",$7=ve(KE),C7=ve(GE),T7=ve(XE),O7=ve(mg),A7=ve(JE),I7=ve(YE),P7=ve(ZE),k7={transcripts:[],voices:[]},R7=sr({[GE]:(e,t)=>({...e,transcripts:t.payload}),[XE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[mg]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},k7),s_={transcripts:e=>e.transcripts,voices:e=>e.voices},L7={contributors:[],roles:[],groups:[]},QE="podlove/publisher/contributors/INIT",e2="podlove/publisher/contributors/SET_CONTRIBUTORS",t2="podlove/publisher/contributors/SET_ROLES",n2="podlove/publisher/contributors/SET_GROUPS",r2="podlove/publisher/contributors/ADD",o2=ve(QE),N7=ve(e2),M7=ve(t2),D7=ve(n2),F7=ve(r2),B7=sr({[e2]:(e,t)=>({...e,contributors:t.payload}),[t2]:(e,t)=>({...e,roles:t.payload}),[n2]:(e,t)=>({...e,groups:t.payload}),[r2]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},L7),Rp={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},U7={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:[]},j7=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},H7=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},V7=sr({[Eo]:(e,t)=>({...e,metadata:{enable_episode_explicit:X.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:X.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:X.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1"},tracking:{mode:X.get(t,["payload","expert_settings","tracking","mode"],null),window:X.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:X.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:X.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:X.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:X.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:X.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:X.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:X.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:X.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:X.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:X.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:X.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:X.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:X.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:X.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:j7(X.get(t,["payload","assignments","image"],null)),chapter:H7(X.get(t,["payload","assignments","chapter"],null)),transcript:X.get(t,["payload","assignments","transcript"],null)},modules:X.get(t,["payload","modules"])})},U7),Bi={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},W7="podlove/publisher/podcast/INIT",i2="podlove/publisher/podcast/SET",z7="podlove/publisher/podcasr/SAVED",gg="podlove/publisher/podcast/UPDATE",q7={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};ve(W7);const K7=ve(i2);ve(z7);const ea=ve(gg),G7=sr({[i2]:(e,t)=>({title:X.get(t,["payload","title"],e.title),subtitle:X.get(t,["payload","subtitle"],e.subtitle),summary:X.get(t,["payload","summary"],e.summary),mnemonic:X.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:X.get(t,["payload","itunes_type"],e.itunes_type),author_name:X.get(t,["payload","author_name"],e.author_name),poster:X.get(t,["payload","poster"],e.poster),link:X.get(t,["payload","link"],e.link),license_name:X.get(t,["payload","license_name"],e.license_name),license_url:X.get(t,["payload","license_url"],e.license_url)}),[gg]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.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})}},q7),po={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},X7={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},s2="podlove/publisher/auphonic/INIT",l2="podlove/publisher/auphonic/INIT_DONE",a2="podlove/publisher/auphonic/SET_TOKEN",Hc="podlove/publisher/auphonic/SET_PRODUCTION",u2="podlove/publisher/auphonic/SET_PRODUCTIONS",c2="podlove/publisher/auphonic/SET_SERVICES",d2="podlove/publisher/auphonic/CREATE_PRODUCTION",f2="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",p2="podlove/publisher/auphonic/SAVE_PRODUCTION",h2="podlove/publisher/auphonic/START_PRODUCTION",Vc="podlove/publisher/auphonic/DESELECT_PRODUCTION",J7="podlove/publisher/auphonic/SELECT_SERVICE",vg="podlove/publisher/auphonic/SET_SERVICE_FILES",Y7="podlove/publisher/auphonic/SELECT_TRACKS",m2="podlove/publisher/auphonic/ADD_TRACK",g2="podlove/publisher/auphonic/REMOVE_TRACK",v2="podlove/publisher/auphonic/UPDATE_TRACK",y2="podlove/publisher/auphonic/SET_PRESETS",yg="podlove/publisher/auphonic/SET_PRESET",bg="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",b2="podlove/publisher/auphonic/START_POLLING",Wc="podlove/publisher/auphonic/STOP_POLLING",_2="podlove/publisher/auphonic/START_SAVING",w2="podlove/publisher/auphonic/STOP_SAVING",_g="podlove/publisher/auphonic/UPDATE_WEBHOOK",Z7=ve(s2),Q7=ve(l2),eD=ve(a2),ps=ve(Hc),S2=ve(Vc),E2=ve(u2),tD=ve(d2),nD=ve(f2),x2=ve(p2),$2=ve(h2),rD=ve(y2),wg=ve(yg),oD=ve(c2),iD=ve(vg),C2=ve(J7),T2=ve(bg);ve(Y7);const sD=ve(m2),O2=ve(g2),A2=ve(v2),lD=ve(b2),l_=ve(Wc),aD=ve(_2),uD=ve(w2),I2=ve(_g),cD=sr({[l2]:e=>({...e,is_initializing:!1}),[bg]:(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}}}),[m2]:(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"}]}},[g2]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[v2]:(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}},[vg]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[c2]:(e,t)=>({...e,services:t.payload}),[y2]:(e,t)=>({...e,presets:t.payload}),[u2]:(e,t)=>({...e,productions:t.payload}),[Hc]:(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,d)=>{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${d}`]:{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,d,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(d=a.algorithms)==null?void 0:d.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[Vc]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[yg]:(e,t)=>({...e,preset:t.payload}),[a2]:(e,t)=>({...e,token:t.payload}),[_2]:(e,t)=>({...e,is_saving:!0}),[w2]:(e,t)=>({...e,is_saving:!1}),[_g]:(e,t)=>({...e,publish_when_done:t.payload})},X7),dD=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}):[],fD=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})):[],pD=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:dD(t==null?void 0:t.chapters),output_files:fD(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:pD,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},hD={is_initializing:!0,slug_autogeneration_enabled:!1,files:[]},P2="podlove/publisher/mediafiles/INIT",k2="podlove/publisher/mediafiles/INIT_DONE",R2="podlove/publisher/mediafiles/SET",Sg="podlove/publisher/mediafiles/UPDATE",zc="podlove/publisher/mediafiles/ENABLE",qc="podlove/publisher/mediafiles/DISABLE",L2="podlove/publisher/mediafiles/VERIFY",N2="podlove/publisher/mediafiles/UPLOAD_INTENT",Eg="podlove/publisher/mediafiles/SET_UPLOAD_URL",M2="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",D2="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",mD=ve(P2),gD=ve(k2),vD=ve(R2),Ch=ve(Sg),yD=ve(zc),bD=ve(qc),_D=ve(L2),wD=ve(N2);ve(Eg);const SD=ve(M2),F2=ve(D2),ED=sr({[k2]:e=>({...e,is_initializing:!1}),[R2]:(e,t)=>({...e,files:t.payload}),[Sg]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[zc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[qc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[M2]:e=>({...e,slug_autogeneration_enabled:!0}),[D2]:e=>({...e,slug_autogeneration_enabled:!1})},hD),Lp={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files},xD={episodeList:[],selectEpisodes:[]},B2="podlove/publisher/relatedEpisodes/INIT",U2="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",xg="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",$D="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",CD=ve(B2),TD=ve(U2),j2=ve(xg);ve($D);const OD=sr({[Eo]:(e,t)=>({...e}),[U2]:(e,t)=>({...e,episodeList:t.payload}),[xg]:(e,t)=>({...e,selectEpisodes:t.payload})},xD),a_={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},$g="podlove/publisher/shows/INIT",Cg="podlove/publisher/shows/SET",Kc="podlove/publisher/shows/SELECT",H2=ve($g),V2=ve(Cg),W2=ve(Kc),z2={shows:[]},q2=sr({[Cg]:(e,t)=>({...e,shows:X.get(t,["payload"],[])})},z2),K2={shows:e=>e.shows},AD=Object.freeze(Object.defineProperty({__proto__:null,INIT:$g,SELECT:Kc,SET:Cg,init:H2,initialState:z2,reducer:q2,select:W2,selectors:K2,set:V2},Symbol.toStringTag,{value:"Module"})),Ce={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},ID={bootstrapped:Ee(Ce.lifecycle,QM.bootstrapped)},PD={token:Ee(Ce.auphonic,On.token),productionId:Ee(Ce.auphonic,On.productionId),productions:Ee(Ce.auphonic,On.productions),production:Ee(Ce.auphonic,On.production),presets:Ee(Ce.auphonic,On.presets),preset:Ee(Ce.auphonic,On.preset),productionPayload:Ee(Ce.auphonic,On.productionPayload),incomingServices:Ee(Ce.auphonic,On.incomingServices),outgoingServices:Ee(Ce.auphonic,On.outgoingServices),serviceFiles:Ee(Ce.auphonic,On.serviceFiles),tracks:Ee(Ce.auphonic,On.tracks),fileSelections:Ee(Ce.auphonic,On.fileSelections),currentFileSelection:Ee(Ce.auphonic,On.currentFileSelection),isSaving:Ee(Ce.auphonic,On.isSaving),isInitializing:Ee(Ce.auphonic,On.isInitializing),publishWhenDone:Ee(Ce.auphonic,On.publishWhenDone)},kD={title:Ee(Ce.podcast,po.title),subtitle:Ee(Ce.podcast,po.subtitle),summary:Ee(Ce.podcast,po.summary),mnemonic:Ee(Ce.podcast,po.mnemonic),itunesType:Ee(Ce.podcast,po.itunesType),author:Ee(Ce.podcast,po.author),poster:Ee(Ce.podcast,po.poster),link:Ee(Ce.podcast,po.link),license_name:Ee(Ce.podcast,po.license_name),license_url:Ee(Ce.podcast,po.license_url)},RD={list:Ee(Ce.chapters,Ap.chapters),selected:Ee(Ce.chapters,Ap.selected),selectedIndex:Ee(Ce.chapters,Ap.selectedIndex)},G2={contributors:Ee(Ce.contributors,Rp.contributors),roles:Ee(Ce.contributors,Rp.roles),groups:Ee(Ce.contributors,Rp.groups)},LD={id:Ee(Ce.episode,Xt.id),slug:Ee(Ce.episode,Xt.slug),duration:Ee(Ce.episode,Xt.duration),number:Ee(Ce.episode,Xt.number),title:Ee(Ce.episode,Xt.title),subtitle:Ee(Ce.episode,Xt.subtitle),summary:Ee(Ce.episode,Xt.summary),type:Ee(Ce.episode,Xt.type),poster:Ee(Ce.episode,Xt.poster),episodePoster:Ee(Ce.episode,Xt.episodePoster),mnemonic:Ee(Ce.episode,Xt.mnemonic),explicit:Ee(Ce.episode,Xt.explicit),soundbite_start:Ee(Ce.episode,Xt.soundbite_start),soundbite_duration:Ee(Ce.episode,Xt.soundbite_duration),soundbite_title:Ee(Ce.episode,Xt.soundbite_title),auphonicProductionId:Ee(Ce.episode,Xt.auphonicProductionId),isAuphonicProductionRunning:Ee(Ce.episode,Xt.isAuphonicProductionRunning),auphonicWebhookConfig:Ee(Ce.episode,Xt.auphonicWebhookConfig),license_name:Ee(Ce.episode,Xt.license_name),license_url:Ee(Ce.episode,Xt.license_url),contributions:Ee(Ee(Ce.episode,Xt.contributions),G2.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:Ee(Ce.episode,Xt.currentShow)},ND={isInitializing:Ee(Ce.mediafiles,Lp.isInitializing),files:Ee(Ce.mediafiles,Lp.files),slugAutogenerationEnabled:Ee(Ce.mediafiles,Lp.slugAutogenerationEnabled)},MD={baseUrl:Ee(Ce.runtime,kl.baseUrl),nonce:Ee(Ce.runtime,kl.nonce),base:Ee(Ce.runtime,kl.base),auth:Ee(Ce.runtime,kl.auth),bearer:Ee(Ce.runtime,kl.bearer)},DD={id:Ee(Ce.post,kp.id),title:Ee(Ce.post,kp.title),featuredMedia:Ee(Ce.post,kp.featured_media)},FD={list:Ee(Ce.transcripts,s_.transcripts),voices:Ee(Ce.transcripts,s_.voices)},BD={autoGenerateEpisodeTitle:Ee(Ce.settings,Bi.autoGenerateEpisodeTitle),blogTitleTemplate:Ee(Ce.settings,Bi.blogTitleTemplate),episodeNumberPadding:Ee(Ce.settings,Bi.episodeNumberPadding),mediaFileBaseUri:Ee(Ce.settings,Bi.mediaFileBaseUri),imageAsset:Ee(Ce.settings,Bi.imageAsset),enableEpisodeExplicit:Ee(Ce.settings,Bi.enableEpisodeExplicit),modules:Ee(Ce.settings,Bi.modules)},UD={episodeList:Ee(Ce.relatedEpisodes,a_.episodeList),selectEpisode:Ee(Ce.relatedEpisodes,a_.selectEpisodes)},jD={list:Ee(Ce.shows,K2.shows)},K={lifecycle:ID,podcast:kD,chapters:RD,episode:LD,runtime:MD,post:DD,transcripts:FD,contributors:G2,settings:BD,auphonic:PD,mediafiles:ND,relatedEpisodes:UD,shows:jD},HD=LS({lifecycle:ZM,chapters:u7,episode:_7,runtime:S7,post:x7,transcripts:R7,contributors:B7,settings:V7,podcast:G7,auphonic:cD,mediafiles:ED,relatedEpisodes:OD,shows:q2});var u_=function(t){return{done:!0,value:t}},Np={};function Ld(e){return $d(e)?"channel":zS(e)?String(e):Hn(e)?e.name:String(e)}function Nd(e,t,n){var r,o,s,l=t;function a(c,d){if(l===Np)return u_(c);if(d&&!o)throw l=Np,d;r&&r(c);var p=d?e[o](d):e[l]();return l=p.nextState,s=p.effect,r=p.stateUpdater,o=p.errorState,l===Np?u_(c):s}return Eh(a,function(c){return a(null,c)},n)}function VD(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:vo(e)},l=function(p){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Nd({q1:function(){return{nextState:"q2",effect:s,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+Ld(e)+", "+t.name+")")}function WD(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:vo(e)},l=function(y){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:q6(y)}},c,d,p=function(y){return c=y},h=function(y){return d=y};return Nd({q1:function(){return{nextState:"q2",effect:s,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(d),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(d),stateUpdater:p}}},"q1","takeLatest("+Ld(e)+", "+t.name+")")}function zD(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:vo(a)}},d=function(S){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[S]))}},p={done:!1,value:Jm(e)},h=function(S){return l=S},g=function(S){return a=S},y=!$d(t);return y||g(t),Nd({q1:function(){var S={done:!1,value:K6(t,F6(1))};return{nextState:"q2",effect:S,stateUpdater:g}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:d(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+Ld(t)+", "+n.name+")")}function qD(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:vo(t)},d={done:!1,value:xh({action:vo(t),debounce:Jm(e)})},p=function(S){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[S]))}},h=function(S){return{done:!1,value:S}},g=function(S){return l=S},y=function(S){return a=S};return Nd({q1:function(){return{nextState:"q2",effect:c,stateUpdater:g}},q2:function(){return{nextState:"q3",effect:d,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:g}}},"q1","debounce("+Ld(t)+", "+n.name+")")}function We(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,[VD,e,t].concat(r))}function KD(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,[WD,e,t].concat(r))}function X2(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,[zD,e,t,n].concat(o))}function Th(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,[qD,e,t,n].concat(o))}function GD(){return function*(){const e=yield Zn(YD,"click","button.editor-post-publish-button");yield We(e,XD),yield We(Eo,JD)}}function*XD(){yield Oe(XM())}function*JD(){yield Oe(JM())}function YD(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(Hs)}})}const Oh=e=>SE(t=>(e(r=>{t(r||{})}),()=>{}));function*xo(e,t,...n){return yield Dt(function*(){for(;;){const o=yield vo(e);yield Zn(t,...n.concat(o))}})}function*ZD(e){if(!(yield Se(e))){for(;;)if(yield vo("*"),yield Se(e))return}}const cl=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},Da=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},J2=({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}),c_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,{headers:a,query:c}={})=>fetch(cl(s?s(l):l,c),{method:o,headers:J2({nonce:t,auth:n,bearer:r},a)}).then(Da(e)),d_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,a,{headers:c,query:d}={})=>fetch(cl(s?s(l):l,d),{method:o,headers:J2({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(Da(e)),QD=X.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:s})=>({get:c_({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:s,urlProcessor:l=>`${e}/${t}/${l}`}),delete:c_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:d_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:d_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),Y2="podlove/publisher/NOTIFY",Tg=ve(Y2),eF={};sr({},eF);function*Xo(){yield Zn(ZD,K.lifecycle.bootstrapped);const e=yield Se(K.runtime.base),t=yield Se(K.runtime.nonce),n=yield Se(K.runtime.auth),r=yield Se(K.runtime.bearer);return QD({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(s){Hd.dispatch(Tg({type:"error",message:s}))}})}function*tF(){const e=yield Xo();yield Dt(nF,e),yield We(gg,rF)}function*nF(e){const{result:t}=yield e.get("podcast");t&&(yield Oe(K7(t)))}function rF(e){const t=X.get(e,["payload","prop"]);X.get(e,["payload","value"],null)}function oF(){return function*(){yield xo(Eo,tF)}}function iF(){return function*(){yield We(Y2,sF)}}function*sF(e){const t=X.get(globalThis,["wp","data","dispatch"]);t?lF(t,X.get(e,["payload"])):aF(e.payload)}function lF(e,{type:t,message:n}){n&&e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function aF({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 Z2={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,s)=>{function l(g){if(g&&typeof g=="object"){var y=g.which||g.keyCode||g.charCode;y&&(g=y)}if(typeof g=="number")return p[g];var _,S=String(g);return(_=a[S.toLowerCase()])?_:(_=c[S.toLowerCase()])||(S.length===1?S.charCodeAt(0):void 0)}l.isEventKey=function(g,y){if(g&&typeof g=="object"){var _=g.which||g.keyCode||g.charCode;if(_==null)return!1;if(typeof y=="string"){var S;if((S=a[y.toLowerCase()])||(S=c[y.toLowerCase()]))return S===_}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,"⇧":16,"⌥":18,"⌃":17,"⌘":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(d=97;d<123;d++)a[String.fromCharCode(d)]=d-32;for(var d=48;d<58;d++)a[d-48]=d;for(d=1;d<13;d++)a["f"+d]=d+111;for(d=0;d<10;d++)a["numpad "+d]=d+96;var p=s.names=s.title={};for(d in a)p[a[d]]=d;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<"u"&&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,xe){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(xe)?ae:o(fe)?s(function(He){return Q(He,xe)}):o(xe)?s(function(He){return Q(fe,He)}):Q(fe,xe)}}}n.r(r),n.d(r,{keydown:()=>Le,keyup:()=>Ge});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const d=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 xe,He=ae,De=0;De<fe.length;){if(He==null)return;xe=fe[De],He=a(xe)?d(xe,He):He[xe],De+=1}return He})}),h=l(function(Q,ae){return p([Q],ae)[0]}),g=l(function(Q,ae){return h([Q],ae)});function y(Q){return function ae(fe,xe,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(xe)?ae:o(fe)?l(function(De,tt){return Q(De,xe,tt)}):o(xe)?l(function(De,tt){return Q(fe,De,tt)}):s(function(De){return Q(fe,xe,De)});default:return o(fe)&&o(xe)&&o(He)?ae:o(fe)&&o(xe)?l(function(De,tt){return Q(De,tt,He)}):o(fe)&&o(He)?l(function(De,tt){return Q(De,xe,tt)}):o(xe)&&o(He)?l(function(De,tt){return Q(fe,De,tt)}):o(fe)?s(function(De){return Q(De,xe,He)}):o(xe)?s(function(De){return Q(fe,De,He)}):o(He)?s(function(De){return Q(fe,xe,De)}):Q(fe,xe,He)}}}const _=l(function(Q,ae){return ae==null||ae!=ae?Q:ae}),S=y(function(Q,ae,fe){return _(Q,h(ae,fe))}),C=y(function(Q,ae,fe){return S(Q,[ae],fe)});function T(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,xe){return ae.apply(this,arguments)};case 3:return function(fe,xe,He){return ae.apply(this,arguments)};case 4:return function(fe,xe,He,De){return ae.apply(this,arguments)};case 5:return function(fe,xe,He,De,tt){return ae.apply(this,arguments)};case 6:return function(fe,xe,He,De,tt,gn){return ae.apply(this,arguments)};case 7:return function(fe,xe,He,De,tt,gn,ln){return ae.apply(this,arguments)};case 8:return function(fe,xe,He,De,tt,gn,ln,L){return ae.apply(this,arguments)};case 9:return function(fe,xe,He,De,tt,gn,ln,L,B){return ae.apply(this,arguments)};case 10:return function(fe,xe,He,De,tt,gn,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 w(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]"},O=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 T(Q.length,function(){return Q.apply(ae,arguments)})});function k(Q,ae,fe){for(var xe=fe.next();!xe.done;){if((ae=Q["@@transducer/step"](ae,xe.value))&&ae["@@transducer/reduced"]){ae=ae["@@transducer/value"];break}xe=fe.next()}return Q["@@transducer/result"](ae)}function I(Q,ae,fe,xe){return Q["@@transducer/result"](fe[xe](P(Q["@@transducer/step"],Q),ae))}var H=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function D(Q,ae,fe){if(typeof Q=="function"&&(Q=function(xe){return new $(xe)}(Q)),O(fe))return function(xe,He,De){for(var tt=0,gn=De.length;tt<gn;){if((He=xe["@@transducer/step"](He,De[tt]))&&He["@@transducer/reduced"]){He=He["@@transducer/value"];break}tt+=1}return xe["@@transducer/result"](He)}(Q,ae,fe);if(typeof fe["fantasy-land/reduce"]=="function")return I(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 I(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 xe=arguments[fe-1];return E(xe)||typeof xe[Q]!="function"?ae.apply(this,arguments):xe[Q].apply(xe,Array.prototype.slice.call(arguments,0,fe-1))}}const G=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 T(arguments[0].length,F(w,arguments[0],G(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 Ae=n(9620),Ie=n.n(Ae);const Ye=Q=>ae=>{g("nodeName",ae.target)==="BODY"&&Q(ae)},ft=Q=>({key:Ie()(Q),ctrl:C(!1,"ctrlKey",Q),shift:C(!1,"shiftKey",Q),meta:C(!1,"metaKey",Q),alt:C(!1,"altKey",Q)}),Le=Q=>document.addEventListener("keydown",Ye(be(Q,ft))),Ge=Q=>document.addEventListener("keyup",Ye(be(Q,ft)))})(),Z2.utils=r})();function uF(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=Ma(o[1]);s!==null&&n.push({title:o[2].trim(),start:s})}return n},[])}function cF(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=Ma(o[1].replace(",",".")),l=o[3].trim();s!==null&&n.push({title:l,start:s})}return n},[])}function dF(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=Ma(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",d=l.getAttribute("URL")||"";return a!==null&&s.push({start:a,title:c.trim(),...d?{href:d.trim()}:{}}),s},[]);return o.sort(function(s,l){return s.start-l.start}),o}function fF(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=Ma(s.getAttribute("start")||""),a=s.getAttribute("title")||"",c=s.getAttribute("href")||"",d=s.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...d?{image:d.trim()}:{}}),o},[])}const Q2=X.get(window,["wp","i18n","__"],e=>e),pF=Q2,hF={install(e){e.config.globalProperties.__=(t,n)=>Q2(t,n)}};function*mF(){const e=yield Xo();yield Dt(gF,e),yield We([PE],wF),yield We(RE,yF),yield We([rg,sg,ig,og,ag],vF,e);const t=yield Zn(Oh,Z2.utils.keydown);yield We(t,SF),yield We(lg,EF)}function*gF(e){const t=yield Se(K.episode.id),{result:n}=yield e.get(`chapters/${t}`);n&&(yield Oe(s7(n.chapters.map(r=>({...r,start:Nt.fromString(r.start).totalMs})))))}function*vF(e){const t=yield Se(K.episode.id),n=yield Se(K.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Nt(r.start).pretty}))})}function*yF(e){const t=yield Se(K.chapters.list);switch(e.payload){case"psc":f_("chapters.psc",bF(t));break;case"mp4":f_("chapters.txt",_F(t));break}}function bF(e){const t=new XMLSerializer,o=new DOMParser().parseFromString('<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',"text/xml");let s=o.getElementsByTagName("chapters");return s.length||(s=o.getElementsByTagName("psc:chapters")),s=s[0],e.forEach(c=>{let d=o.createElement("psc:chapter");d.setAttribute("title",c.title||""),d.setAttribute("start",c.start?new Nt(c.start).pretty:"00:00:00"),c.href&&d.setAttribute("href",c.href),c.image&&d.setAttribute("image",c.image),s.appendChild(d)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,`
     46}`;var st=By(function(){return xt(A,Ne+"return "+de).apply(n,R)});if(st.source=de,np(st))throw st;return st}function HP(i){return Ct(i).toLowerCase()}function VP(i){return Ct(i).toUpperCase()}function WP(i,u,f){if(i=Ct(i),i&&(f||u===n))return Gv(i);if(!i||!(u=ur(u)))return i;var m=zr(i),b=zr(u),A=Xv(m,b),R=Jv(m,b)+1;return oi(m,A,R).join("")}function zP(i,u,f){if(i=Ct(i),i&&(f||u===n))return i.slice(0,Zv(i)+1);if(!i||!(u=ur(u)))return i;var m=zr(i),b=Jv(m,zr(u))+1;return oi(m,0,b).join("")}function qP(i,u,f){if(i=Ct(i),i&&(f||u===n))return i.replace(tf,"");if(!i||!(u=ur(u)))return i;var m=zr(i),b=Xv(m,zr(u));return oi(m,b).join("")}function KP(i,u){var f=D,m=F;if(Kt(u)){var b="separator"in u?u.separator:b;f="length"in u?ot(u.length):f,m="omission"in u?ur(u.omission):m}i=Ct(i);var A=i.length;if(Ss(i)){var R=zr(i);A=R.length}if(f>=A)return i;var M=f-Es(m);if(M<1)return m;var W=R?oi(R,0,M).join(""):i.slice(0,M);if(b===n)return W+m;if(R&&(M+=W.length-M),rp(b)){if(i.slice(M).search(b)){var re,oe=W;for(b.global||(b=bf(b.source,Ct(gv.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(ur(b),M)!=M){var Te=W.lastIndexOf(b);Te>-1&&(W=W.slice(0,Te))}return W+m}function GP(i){return i=Ct(i),i&&iC.test(i)?i.replace(pv,ET):i}var XP=Ps(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),sp=U0("toUpperCase");function Fy(i,u,f){return i=Ct(i),u=f?n:u,u===n?yT(i)?CT(i):uT(i):i.match(u)||[]}var By=at(function(i,u){try{return lr(i,n,u)}catch(f){return np(f)?f:new Ze(f)}}),JP=Po(function(i,u){return xr(u,function(f){f=po(f),Oo(i,f,ep(i[f],i))}),i});function YP(i){var u=i==null?0:i.length,f=We();return i=u?Vt(i,function(m){if(typeof m[1]!="function")throw new $r(l);return[f(m[0]),m[1]]}):[],at(function(m){for(var b=-1;++b<u;){var A=i[b];if(lr(A[0],this,m))return lr(A[1],this,m)}})}function ZP(i){return EO(Tr(i,h))}function lp(i){return function(){return i}}function QP(i,u){return i==null||i!==i?u:i}var eI=H0(),tI=H0(!0);function Jn(i){return i}function ap(i){return y0(typeof i=="function"?i:Tr(i,h))}function nI(i){return _0(Tr(i,h))}function rI(i,u){return w0(i,Tr(u,h))}var oI=at(function(i,u){return function(f){return wl(f,i,u)}}),iI=at(function(i,u){return function(f){return wl(i,f,u)}});function up(i,u,f){var m=pn(u),b=vu(u,m);f==null&&!(Kt(u)&&(b.length||!m.length))&&(f=u,u=i,i=this,b=vu(u,pn(u)));var A=!(Kt(f)&&"chain"in f)||!!f.chain,R=ko(i);return xr(b,function(M){var W=u[M];i[M]=W,R&&(i.prototype[M]=function(){var re=this.__chain__;if(A||re){var oe=i(this.__wrapped__),de=oe.__actions__=Kn(this.__actions__);return de.push({func:W,args:arguments,thisArg:i}),oe.__chain__=re,oe}return W.apply(i,Zo([this.value()],arguments))})}),i}function sI(){return yn._===this&&(yn._=kT),this}function cp(){}function lI(i){return i=ot(i),at(function(u){return S0(u,i)})}var aI=jf(Vt),uI=jf(Vv),cI=jf(ff);function Uy(i){return Gf(i)?pf(po(i)):UO(i)}function dI(i){return function(u){return i==null?n:Li(i,u)}}var fI=W0(),pI=W0(!0);function dp(){return[]}function fp(){return!1}function hI(){return{}}function mI(){return""}function gI(){return!0}function vI(i,u){if(i=ot(i),i<1||i>Pe)return[];var f=Le,m=Cn(i,Le);u=We(u),i-=Le;for(var b=gf(m,u);++f<i;)u(f);return b}function yI(i){return Qe(i)?Vt(i,po):cr(i)?[i]:Kn(sy(Ct(i)))}function bI(i){var u=++PT;return Ct(i)+u}var _I=Eu(function(i,u){return i+u},0),wI=Hf("ceil"),SI=Eu(function(i,u){return i/u},1),EI=Hf("floor");function xI(i){return i&&i.length?gu(i,Jn,Tf):n}function $I(i,u){return i&&i.length?gu(i,We(u,2),Tf):n}function CI(i){return qv(i,Jn)}function TI(i,u){return qv(i,We(u,2))}function OI(i){return i&&i.length?gu(i,Jn,If):n}function AI(i,u){return i&&i.length?gu(i,We(u,2),If):n}var PI=Eu(function(i,u){return i*u},1),II=Hf("round"),kI=Eu(function(i,u){return i-u},0);function RI(i){return i&&i.length?mf(i,Jn):0}function LI(i,u){return i&&i.length?mf(i,We(u,2)):0}return $.after=n3,$.ary=vy,$.assign=V3,$.assignIn=Iy,$.assignInWith=Mu,$.assignWith=W3,$.at=z3,$.before=yy,$.bind=ep,$.bindAll=JP,$.bindKey=by,$.castArray=h3,$.chain=hy,$.chunk=E5,$.compact=x5,$.concat=$5,$.cond=YP,$.conforms=ZP,$.constant=lp,$.countBy=RA,$.create=q3,$.curry=_y,$.curryRight=wy,$.debounce=Sy,$.defaults=K3,$.defaultsDeep=G3,$.defer=r3,$.delay=o3,$.difference=C5,$.differenceBy=T5,$.differenceWith=O5,$.drop=A5,$.dropRight=P5,$.dropRightWhile=I5,$.dropWhile=k5,$.fill=R5,$.filter=NA,$.flatMap=FA,$.flatMapDeep=BA,$.flatMapDepth=UA,$.flatten=cy,$.flattenDeep=L5,$.flattenDepth=N5,$.flip=i3,$.flow=eI,$.flowRight=tI,$.fromPairs=M5,$.functions=tP,$.functionsIn=nP,$.groupBy=jA,$.initial=F5,$.intersection=B5,$.intersectionBy=U5,$.intersectionWith=j5,$.invert=oP,$.invertBy=iP,$.invokeMap=VA,$.iteratee=ap,$.keyBy=WA,$.keys=pn,$.keysIn=Xn,$.map=Pu,$.mapKeys=lP,$.mapValues=aP,$.matches=nI,$.matchesProperty=rI,$.memoize=ku,$.merge=uP,$.mergeWith=ky,$.method=oI,$.methodOf=iI,$.mixin=up,$.negate=Ru,$.nthArg=lI,$.omit=cP,$.omitBy=dP,$.once=s3,$.orderBy=zA,$.over=aI,$.overArgs=l3,$.overEvery=uI,$.overSome=cI,$.partial=tp,$.partialRight=Ey,$.partition=qA,$.pick=fP,$.pickBy=Ry,$.property=Uy,$.propertyOf=dI,$.pull=z5,$.pullAll=fy,$.pullAllBy=q5,$.pullAllWith=K5,$.pullAt=G5,$.range=fI,$.rangeRight=pI,$.rearg=a3,$.reject=XA,$.remove=X5,$.rest=u3,$.reverse=Zf,$.sampleSize=YA,$.set=hP,$.setWith=mP,$.shuffle=ZA,$.slice=J5,$.sortBy=t3,$.sortedUniq=rA,$.sortedUniqBy=oA,$.split=FP,$.spread=c3,$.tail=iA,$.take=sA,$.takeRight=lA,$.takeRightWhile=aA,$.takeWhile=uA,$.tap=xA,$.throttle=d3,$.thru=Au,$.toArray=Oy,$.toPairs=Ly,$.toPairsIn=Ny,$.toPath=yI,$.toPlainObject=Py,$.transform=gP,$.unary=f3,$.union=cA,$.unionBy=dA,$.unionWith=fA,$.uniq=pA,$.uniqBy=hA,$.uniqWith=mA,$.unset=vP,$.unzip=Qf,$.unzipWith=py,$.update=yP,$.updateWith=bP,$.values=Rs,$.valuesIn=_P,$.without=gA,$.words=Fy,$.wrap=p3,$.xor=vA,$.xorBy=yA,$.xorWith=bA,$.zip=_A,$.zipObject=wA,$.zipObjectDeep=SA,$.zipWith=EA,$.entries=Ly,$.entriesIn=Ny,$.extend=Iy,$.extendWith=Mu,up($,$),$.add=_I,$.attempt=By,$.camelCase=xP,$.capitalize=My,$.ceil=wI,$.clamp=wP,$.clone=m3,$.cloneDeep=v3,$.cloneDeepWith=y3,$.cloneWith=g3,$.conformsTo=b3,$.deburr=Dy,$.defaultTo=QP,$.divide=SI,$.endsWith=$P,$.eq=Kr,$.escape=CP,$.escapeRegExp=TP,$.every=LA,$.find=MA,$.findIndex=ay,$.findKey=X3,$.findLast=DA,$.findLastIndex=uy,$.findLastKey=J3,$.floor=EI,$.forEach=my,$.forEachRight=gy,$.forIn=Y3,$.forInRight=Z3,$.forOwn=Q3,$.forOwnRight=eP,$.get=op,$.gt=_3,$.gte=w3,$.has=rP,$.hasIn=ip,$.head=dy,$.identity=Jn,$.includes=HA,$.indexOf=D5,$.inRange=SP,$.invoke=sP,$.isArguments=Di,$.isArray=Qe,$.isArrayBuffer=S3,$.isArrayLike=Gn,$.isArrayLikeObject=en,$.isBoolean=E3,$.isBuffer=ii,$.isDate=x3,$.isElement=$3,$.isEmpty=C3,$.isEqual=T3,$.isEqualWith=O3,$.isError=np,$.isFinite=A3,$.isFunction=ko,$.isInteger=xy,$.isLength=Lu,$.isMap=$y,$.isMatch=P3,$.isMatchWith=I3,$.isNaN=k3,$.isNative=R3,$.isNil=N3,$.isNull=L3,$.isNumber=Cy,$.isObject=Kt,$.isObjectLike=Gt,$.isPlainObject=Tl,$.isRegExp=rp,$.isSafeInteger=M3,$.isSet=Ty,$.isString=Nu,$.isSymbol=cr,$.isTypedArray=ks,$.isUndefined=D3,$.isWeakMap=F3,$.isWeakSet=B3,$.join=H5,$.kebabCase=OP,$.last=Ar,$.lastIndexOf=V5,$.lowerCase=AP,$.lowerFirst=PP,$.lt=U3,$.lte=j3,$.max=xI,$.maxBy=$I,$.mean=CI,$.meanBy=TI,$.min=OI,$.minBy=AI,$.stubArray=dp,$.stubFalse=fp,$.stubObject=hI,$.stubString=mI,$.stubTrue=gI,$.multiply=PI,$.nth=W5,$.noConflict=sI,$.noop=cp,$.now=Iu,$.pad=IP,$.padEnd=kP,$.padStart=RP,$.parseInt=LP,$.random=EP,$.reduce=KA,$.reduceRight=GA,$.repeat=NP,$.replace=MP,$.result=pP,$.round=II,$.runInContext=j,$.sample=JA,$.size=QA,$.snakeCase=DP,$.some=e3,$.sortedIndex=Y5,$.sortedIndexBy=Z5,$.sortedIndexOf=Q5,$.sortedLastIndex=eA,$.sortedLastIndexBy=tA,$.sortedLastIndexOf=nA,$.startCase=BP,$.startsWith=UP,$.subtract=kI,$.sum=RI,$.sumBy=LI,$.template=jP,$.times=vI,$.toFinite=Ro,$.toInteger=ot,$.toLength=Ay,$.toLower=HP,$.toNumber=Pr,$.toSafeInteger=H3,$.toString=Ct,$.toUpper=VP,$.trim=WP,$.trimEnd=zP,$.trimStart=qP,$.truncate=KP,$.unescape=GP,$.uniqueId=bI,$.upperCase=XP,$.upperFirst=sp,$.each=my,$.eachRight=gy,$.first=dy,up($,function(){var i={};return co($,function(u,f){Ot.call($.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),$.VERSION=r,xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){$[i].placeholder=$}),xr(["drop","take"],function(i,u){ht.prototype[i]=function(f){f=f===n?1:un(ot(f),0);var m=this.__filtered__&&!u?new ht(this):this.clone();return m.__filtered__?m.__takeCount__=Cn(f,m.__takeCount__):m.__views__.push({size:Cn(f,Le),type:i+(m.__dir__<0?"Right":"")}),m},ht.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),xr(["filter","map","takeWhile"],function(i,u){var f=u+1,m=f==te||f==be;ht.prototype[i]=function(b){var A=this.clone();return A.__iteratees__.push({iteratee:We(b,3),type:f}),A.__filtered__=A.__filtered__||m,A}}),xr(["head","last"],function(i,u){var f="take"+(u?"Right":"");ht.prototype[i]=function(){return this[f](1).value()[0]}}),xr(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");ht.prototype[i]=function(){return this.__filtered__?new ht(this):this[f](1)}}),ht.prototype.compact=function(){return this.filter(Jn)},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(f){return wl(f,i,u)})}),ht.prototype.reject=function(i){return this.filter(Ru(We(i)))},ht.prototype.slice=function(i,u){i=ot(i);var f=this;return f.__filtered__&&(i>0||u<0)?new ht(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ot(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},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 f=/^(?:filter|find|map|reject)|While$/.test(u),m=/^(?:head|last)$/.test(u),b=$[m?"take"+(u=="last"?"Right":""):u],A=m||/^find/.test(u);b&&($.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 gt=b.apply($,Zo([pt],M));return m&&Te?gt[0]:gt};oe&&f&&typeof re=="function"&&re.length!=1&&(W=oe=!1);var Te=this.__chain__,Ne=!!this.__actions__.length,qe=A&&!Te,st=W&&!Ne;if(!A&&oe){R=st?R:new ht(this);var Ke=i.apply(R,M);return Ke.__actions__.push({func:Au,args:[de],thisArg:n}),new Cr(Ke,Te)}return qe&&st?i.apply(this,M):(Ke=this.thru(de),qe?m?Ke.value()[0]:Ke.value():Ke)})}),xr(["pop","push","shift","sort","splice","unshift"],function(i){var u=tu[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",m=/^(?:pop|shift)$/.test(i);$.prototype[i]=function(){var b=arguments;if(m&&!this.__chain__){var A=this.value();return u.apply(Qe(A)?A:[],b)}return this[f](function(R){return u.apply(Qe(R)?R:[],b)})}}),co(ht.prototype,function(i,u){var f=$[u];if(f){var m=f.name+"";Ot.call(Ts,m)||(Ts[m]=[]),Ts[m].push({name:u,func:f})}}),Ts[Su(n,T).name]=[{name:"wrapper",func:n}],ht.prototype.clone=GT,ht.prototype.reverse=XT,ht.prototype.value=JT,$.prototype.at=$A,$.prototype.chain=CA,$.prototype.commit=TA,$.prototype.next=OA,$.prototype.plant=PA,$.prototype.reverse=IA,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=kA,$.prototype.first=$.prototype.head,hl&&($.prototype[hl]=AA),$},xs=TT();Ai?((Ai.exports=xs)._=xs,af._=xs):yn._=xs}).call(Il)})(jc,jc.exports);var X=jc.exports;const r7={chapters:[],selected:null},PE="podlove/publisher/chapter/INIT",og="podlove/publisher/chapter/UPDATE",IE="podlove/publisher/chapter/SELECT",ig="podlove/publisher/chapter/REMOVE",sg="podlove/publisher/chapter/ADD",kE="podlove/publisher/chapter/PARSE",lg="podlove/publisher/chapter/PARSED",RE="podlove/publisher/chapter/SET",LE="podlove/publisher/chapter/DOWNLOAD",ag="podlove/publisher/chapter/SELECT_IMAGE",ug="podlove/publisher/chapter/SET_IMAGE",o7=he(PE),i7=he(og),pi=he(IE),s7=he(ig),l7=he(sg),a7=he(kE),NE=he(lg),u7=he(RE),c7=he(LE),d7=he(ag);he(ug);const f7=Wn({[lg]:(e,t)=>({...e,selected:null,chapters:X.get(t,["payload"],[])}),[RE]:(e,t)=>({...e,selected:null,chapters:X.get(t,["payload"],[])}),[og]:(e,t)=>{let n=ME(e);const r=DE(e),s=e.chapters.reduce((a,c,d)=>[...a,d===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}),[sg]:e=>({...e,chapters:[...e.chapters,{start:X.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[ig]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[ug]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},r7),p7=e=>e.chapters,ME=e=>e.selected,DE=e=>e.selected!==null?X.get(e,["chapters",e.selected],null):null,Ap={chapters:p7,selectedIndex:ME,selected:DE},Pp=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)}},Ma=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=Pp(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))s=Pp(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=Pp(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 Mt{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=Ma(t)||0,new Mt(n)}}const s_=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},FE="podlove/publisher/episode/INIT",Qs="podlove/publisher/episode/UPDATE",BE="podlove/publisher/episode/QUICKSAVE",UE="podlove/publisher/episode/SAVED",jE="podlove/publisher/episode/SLUG_CHANGED",Id="podlove/publisher/episode/SET",HE="podlove/publisher/episode/SET_POSTER",VE="podlove/publisher/episode/SELECT_POSTER",cg="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",dg="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",fg="podlove/publisher/episode/DELETE_CONTRIBUTION",pg="podlove/publisher/episode/UPDATE_CONTRIBUTION",hg="podlove/publisher/episode/ADD_CONTRIBUTION",WE="podlove/publisher/episode/CREATE_CONTRIBUTION",h7={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,is_auphonic_production_running:!1,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},wt=he(Qs),m7=he(BE),kd=he(FE),g7=he(VE),zE=he(Id),v7=he(cg),y7=he(dg),b7=he(fg),Ip=he(pg),qE=he(hg),_7=he(WE),w7=he(UE),S7=he(jE),E7=Wn({[Eo]:(e,t)=>({...e,id:X.get(t,["payload","episode","id"],null),duration:Mt.fromString(X.get(t,["payload","episode","duration"],null)).totalMs}),[Qs]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","auphonic_webhook_config","is_auphonic_production_running","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number","episode_poster","poster","explicit"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})},[Id]:(e,t)=>({...e,slug:X.get(t,["payload","slug"],e.slug),number:X.get(t,["payload","number"],e.number),duration:X.get(t,["payload","duration"],e.duration),title:X.get(t,["payload","title_clean"],e.title),subtitle:X.get(t,["payload","subtitle"],e.subtitle),summary:X.get(t,["payload","summary"],e.summary),type:X.get(t,["payload","type"],e.type),episode_poster:X.get(t,["payload","episode_poster"],e.episode_poster),poster:X.get(t,["payload","poster"],e.poster),mnemonic:X.get(t,["payload","mnemonic"],e.mnemonic),explicit:X.get(t,["payload","explicit"],e.explicit),auphonic_production_id:X.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),is_auphonic_production_running:X.get(t,["payload","is_auphonic_production_running"],e.is_auphonic_production_running),auphonic_webhook_config:X.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:X.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:X.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:X.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:X.get(t,["payload","license_name"],e.license_name),license_url:X.get(t,["payload","license_url"],e.license_url),contributions:X.get(t,["payload","contributions"],e.contributions),show:X.get(t,["payload","show"],e.show)}),[cg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===X.get(t,["payload","position"]));return n<1?e:{...e,contributions:s_(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[dg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===X.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:s_(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[fg]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>X.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[pg]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==X.get(t,["payload","contributor_id"])?n:X.pick(X.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[hg]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:X.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},h7),Xt={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,isAuphonicProductionRunning:e=>e.is_auphonic_production_running,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},x7={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},$7=Wn({[Eo]:(e,t)=>({...e,baseUrl:X.get(t,["payload","baseUrl"],null),api:{base:X.get(t,["payload","api","base"],null),nonce:X.get(t,["payload","api","nonce"],null),auth:X.get(t,["payload","api","auth"],null),bearer:X.get(t,["payload","api","bearer"],null)}})},x7),kl={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},Rd="podlove/publisher/wordpress/UPDATE",KE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",$h=he(Rd),mg=he(KE),C7={id:null,title:null,featured_media:null},T7=Wn({[Eo]:(e,t)=>({...e,id:X.get(t,["payload","post","id"],null),title:X.get(t,["payload","post","title"],null),featured_media:X.get(t,["payload","post","featured_media"],null)}),[Rd]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.get(t,["payload","value"],null);return["title","featured_media"].includes(n)?{...e,[n]:r}:{...e}}},C7),kp={id:e=>e.id,title:e=>e.title,featured_media:e=>e.featured_media},GE="podlove/publisher/transcript/INIT",XE="podlove/publisher/transcript/SET_TRANSCRIPTS",JE="podlove/publisher/transcript/SET_VOICES",gg="podlove/publisher/transcript/UPDATE_VOICE",YE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",ZE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",QE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",O7=he(GE),A7=he(XE),P7=he(JE),I7=he(gg),k7=he(YE),R7=he(ZE),L7=he(QE),N7={transcripts:[],voices:[]},M7=Wn({[XE]:(e,t)=>({...e,transcripts:t.payload}),[JE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[gg]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},N7),l_={transcripts:e=>e.transcripts,voices:e=>e.voices},D7={contributors:[],roles:[],groups:[]},e2="podlove/publisher/contributors/INIT",t2="podlove/publisher/contributors/SET_CONTRIBUTORS",n2="podlove/publisher/contributors/SET_ROLES",r2="podlove/publisher/contributors/SET_GROUPS",o2="podlove/publisher/contributors/ADD",i2=he(e2),F7=he(t2),B7=he(n2),U7=he(r2),j7=he(o2),H7=Wn({[t2]:(e,t)=>({...e,contributors:t.payload}),[n2]:(e,t)=>({...e,roles:t.payload}),[r2]:(e,t)=>({...e,groups:t.payload}),[o2]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},D7),Rp={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},V7={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:[]},W7=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},z7=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},q7=Wn({[Eo]:(e,t)=>({...e,metadata:{enable_episode_explicit:X.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:X.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:X.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1"},tracking:{mode:X.get(t,["payload","expert_settings","tracking","mode"],null),window:X.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:X.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:X.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:X.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:X.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:X.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:X.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:X.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:X.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:X.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:X.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:X.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:X.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:X.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:X.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:W7(X.get(t,["payload","assignments","image"],null)),chapter:z7(X.get(t,["payload","assignments","chapter"],null)),transcript:X.get(t,["payload","assignments","transcript"],null)},modules:X.get(t,["payload","modules"])})},V7),Ui={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},K7="podlove/publisher/podcast/INIT",s2="podlove/publisher/podcast/SET",G7="podlove/publisher/podcasr/SAVED",vg="podlove/publisher/podcast/UPDATE",X7={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};he(K7);const J7=he(s2);he(G7);const ea=he(vg),Y7=Wn({[s2]:(e,t)=>({title:X.get(t,["payload","title"],e.title),subtitle:X.get(t,["payload","subtitle"],e.subtitle),summary:X.get(t,["payload","summary"],e.summary),mnemonic:X.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:X.get(t,["payload","itunes_type"],e.itunes_type),author_name:X.get(t,["payload","author_name"],e.author_name),poster:X.get(t,["payload","poster"],e.poster),link:X.get(t,["payload","link"],e.link),license_name:X.get(t,["payload","license_name"],e.license_name),license_url:X.get(t,["payload","license_url"],e.license_url)}),[vg]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.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})}},X7),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},Z7={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},l2="podlove/publisher/auphonic/INIT",a2="podlove/publisher/auphonic/INIT_DONE",u2="podlove/publisher/auphonic/SET_TOKEN",Hc="podlove/publisher/auphonic/SET_PRODUCTION",c2="podlove/publisher/auphonic/SET_PRODUCTIONS",d2="podlove/publisher/auphonic/SET_SERVICES",f2="podlove/publisher/auphonic/CREATE_PRODUCTION",p2="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",h2="podlove/publisher/auphonic/SAVE_PRODUCTION",m2="podlove/publisher/auphonic/START_PRODUCTION",Vc="podlove/publisher/auphonic/DESELECT_PRODUCTION",Q7="podlove/publisher/auphonic/SELECT_SERVICE",yg="podlove/publisher/auphonic/SET_SERVICE_FILES",eD="podlove/publisher/auphonic/SELECT_TRACKS",g2="podlove/publisher/auphonic/ADD_TRACK",v2="podlove/publisher/auphonic/REMOVE_TRACK",y2="podlove/publisher/auphonic/UPDATE_TRACK",b2="podlove/publisher/auphonic/SET_PRESETS",bg="podlove/publisher/auphonic/SET_PRESET",_g="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",_2="podlove/publisher/auphonic/START_POLLING",Wc="podlove/publisher/auphonic/STOP_POLLING",w2="podlove/publisher/auphonic/START_SAVING",S2="podlove/publisher/auphonic/STOP_SAVING",wg="podlove/publisher/auphonic/UPDATE_WEBHOOK",tD=he(l2),nD=he(a2),rD=he(u2),ps=he(Hc),E2=he(Vc),x2=he(c2),oD=he(f2),iD=he(p2),$2=he(h2),C2=he(m2),sD=he(b2),Sg=he(bg),lD=he(d2),aD=he(yg),T2=he(Q7),O2=he(_g);he(eD);const uD=he(g2),A2=he(v2),P2=he(y2),cD=he(_2),a_=he(Wc),dD=he(w2),fD=he(S2),I2=he(wg),pD=Wn({[a2]:e=>({...e,is_initializing:!1}),[_g]:(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}}}),[g2]:(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"}]}},[v2]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[y2]:(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}},[yg]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[d2]:(e,t)=>({...e,services:t.payload}),[b2]:(e,t)=>({...e,presets:t.payload}),[c2]:(e,t)=>({...e,productions:t.payload}),[Hc]:(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,d)=>{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${d}`]:{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,d,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(d=a.algorithms)==null?void 0:d.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[Vc]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[bg]:(e,t)=>({...e,preset:t.payload}),[u2]:(e,t)=>({...e,token:t.payload}),[w2]:(e,t)=>({...e,is_saving:!0}),[S2]:(e,t)=>({...e,is_saving:!1}),[wg]:(e,t)=>({...e,publish_when_done:t.payload})},Z7),hD=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}):[],mD=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})):[],gD=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:hD(t==null?void 0:t.chapters),output_files:mD(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:gD,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},vD={},k2="podlove/publisher/progress/SET_PROGRESS",R2="podlove/publisher/progress/RESET_PROGRESS",yD=he(k2);he(R2);const bD=Wn({[k2]:(e,t)=>({...e,[t.payload.key]:t.payload.progress}),[R2]:(e,t)=>{const n={...e};return delete n[t.payload],n}},vD),_D=(e,t)=>e[t]??0,wD={progress:_D},SD={is_initializing:!0,slug_autogeneration_enabled:!1,files:[]},L2="podlove/publisher/mediafiles/INIT",N2="podlove/publisher/mediafiles/INIT_DONE",M2="podlove/publisher/mediafiles/SET",Eg="podlove/publisher/mediafiles/UPDATE",zc="podlove/publisher/mediafiles/ENABLE",qc="podlove/publisher/mediafiles/DISABLE",D2="podlove/publisher/mediafiles/VERIFY",F2="podlove/publisher/mediafiles/UPLOAD_INTENT",xg="podlove/publisher/mediafiles/SET_UPLOAD_URL",B2="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",U2="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",ED=he(L2),xD=he(N2),$D=he(M2),Ch=he(Eg),CD=he(zc),TD=he(qc),OD=he(D2),AD=he(F2);he(xg);const PD=he(B2),j2=he(U2),ID=Wn({[N2]:e=>({...e,is_initializing:!1}),[M2]:(e,t)=>({...e,files:t.payload}),[Eg]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[zc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[qc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[B2]:e=>({...e,slug_autogeneration_enabled:!0}),[U2]:e=>({...e,slug_autogeneration_enabled:!1})},SD),Lp={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files},kD={episodeList:[],selectEpisodes:[]},H2="podlove/publisher/relatedEpisodes/INIT",V2="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",$g="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",RD="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",LD=he(H2),ND=he(V2),W2=he($g);he(RD);const MD=Wn({[Eo]:(e,t)=>({...e}),[V2]:(e,t)=>({...e,episodeList:t.payload}),[$g]:(e,t)=>({...e,selectEpisodes:t.payload})},kD),u_={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},Cg="podlove/publisher/shows/INIT",Tg="podlove/publisher/shows/SET",Kc="podlove/publisher/shows/SELECT",z2=he(Cg),q2=he(Tg),K2=he(Kc),G2={shows:[]},X2=Wn({[Tg]:(e,t)=>({...e,shows:X.get(t,["payload"],[])})},G2),J2={shows:e=>e.shows},DD=Object.freeze(Object.defineProperty({__proto__:null,INIT:Cg,SELECT:Kc,SET:Tg,init:z2,initialState:G2,reducer:X2,select:K2,selectors:J2,set:q2},Symbol.toStringTag,{value:"Module"})),xe={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,progress:e=>e.progress,mediafiles:e=>e.mediafiles,settings:e=>e.settings,relatedEpisodes:e=>e.relatedEpisodes,shows:e=>e.shows},FD={bootstrapped:Ee(xe.lifecycle,n7.bootstrapped)},BD={token:Ee(xe.auphonic,On.token),productionId:Ee(xe.auphonic,On.productionId),productions:Ee(xe.auphonic,On.productions),production:Ee(xe.auphonic,On.production),presets:Ee(xe.auphonic,On.presets),preset:Ee(xe.auphonic,On.preset),productionPayload:Ee(xe.auphonic,On.productionPayload),incomingServices:Ee(xe.auphonic,On.incomingServices),outgoingServices:Ee(xe.auphonic,On.outgoingServices),serviceFiles:Ee(xe.auphonic,On.serviceFiles),tracks:Ee(xe.auphonic,On.tracks),fileSelections:Ee(xe.auphonic,On.fileSelections),currentFileSelection:Ee(xe.auphonic,On.currentFileSelection),isSaving:Ee(xe.auphonic,On.isSaving),isInitializing:Ee(xe.auphonic,On.isInitializing),publishWhenDone:Ee(xe.auphonic,On.publishWhenDone)},UD={progress:Ee([xe.progress,(e,t)=>t],wD.progress)},jD={title:Ee(xe.podcast,ho.title),subtitle:Ee(xe.podcast,ho.subtitle),summary:Ee(xe.podcast,ho.summary),mnemonic:Ee(xe.podcast,ho.mnemonic),itunesType:Ee(xe.podcast,ho.itunesType),author:Ee(xe.podcast,ho.author),poster:Ee(xe.podcast,ho.poster),link:Ee(xe.podcast,ho.link),license_name:Ee(xe.podcast,ho.license_name),license_url:Ee(xe.podcast,ho.license_url)},HD={list:Ee(xe.chapters,Ap.chapters),selected:Ee(xe.chapters,Ap.selected),selectedIndex:Ee(xe.chapters,Ap.selectedIndex)},Y2={contributors:Ee(xe.contributors,Rp.contributors),roles:Ee(xe.contributors,Rp.roles),groups:Ee(xe.contributors,Rp.groups)},VD={id:Ee(xe.episode,Xt.id),slug:Ee(xe.episode,Xt.slug),duration:Ee(xe.episode,Xt.duration),number:Ee(xe.episode,Xt.number),title:Ee(xe.episode,Xt.title),subtitle:Ee(xe.episode,Xt.subtitle),summary:Ee(xe.episode,Xt.summary),type:Ee(xe.episode,Xt.type),poster:Ee(xe.episode,Xt.poster),episodePoster:Ee(xe.episode,Xt.episodePoster),mnemonic:Ee(xe.episode,Xt.mnemonic),explicit:Ee(xe.episode,Xt.explicit),soundbite_start:Ee(xe.episode,Xt.soundbite_start),soundbite_duration:Ee(xe.episode,Xt.soundbite_duration),soundbite_title:Ee(xe.episode,Xt.soundbite_title),auphonicProductionId:Ee(xe.episode,Xt.auphonicProductionId),isAuphonicProductionRunning:Ee(xe.episode,Xt.isAuphonicProductionRunning),auphonicWebhookConfig:Ee(xe.episode,Xt.auphonicWebhookConfig),license_name:Ee(xe.episode,Xt.license_name),license_url:Ee(xe.episode,Xt.license_url),contributions:Ee(Ee(xe.episode,Xt.contributions),Y2.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:Ee(xe.episode,Xt.currentShow)},WD={isInitializing:Ee(xe.mediafiles,Lp.isInitializing),files:Ee(xe.mediafiles,Lp.files),slugAutogenerationEnabled:Ee(xe.mediafiles,Lp.slugAutogenerationEnabled)},zD={baseUrl:Ee(xe.runtime,kl.baseUrl),nonce:Ee(xe.runtime,kl.nonce),base:Ee(xe.runtime,kl.base),auth:Ee(xe.runtime,kl.auth),bearer:Ee(xe.runtime,kl.bearer)},qD={id:Ee(xe.post,kp.id),title:Ee(xe.post,kp.title),featuredMedia:Ee(xe.post,kp.featured_media)},KD={list:Ee(xe.transcripts,l_.transcripts),voices:Ee(xe.transcripts,l_.voices)},GD={autoGenerateEpisodeTitle:Ee(xe.settings,Ui.autoGenerateEpisodeTitle),blogTitleTemplate:Ee(xe.settings,Ui.blogTitleTemplate),episodeNumberPadding:Ee(xe.settings,Ui.episodeNumberPadding),mediaFileBaseUri:Ee(xe.settings,Ui.mediaFileBaseUri),imageAsset:Ee(xe.settings,Ui.imageAsset),enableEpisodeExplicit:Ee(xe.settings,Ui.enableEpisodeExplicit),modules:Ee(xe.settings,Ui.modules)},XD={episodeList:Ee(xe.relatedEpisodes,u_.episodeList),selectEpisode:Ee(xe.relatedEpisodes,u_.selectEpisodes)},JD={list:Ee(xe.shows,J2.shows)},K={lifecycle:FD,podcast:jD,chapters:HD,episode:VD,runtime:zD,post:qD,transcripts:KD,contributors:Y2,settings:GD,auphonic:BD,progress:UD,mediafiles:WD,relatedEpisodes:XD,shows:JD},YD=NS({lifecycle:t7,chapters:f7,episode:E7,runtime:$7,post:T7,transcripts:M7,contributors:H7,settings:q7,podcast:Y7,auphonic:pD,progress:bD,mediafiles:ID,relatedEpisodes:MD,shows:X2});var c_=function(t){return{done:!0,value:t}},Np={};function Ld(e){return $d(e)?"channel":qS(e)?String(e):Vn(e)?e.name:String(e)}function Nd(e,t,n){var r,o,s,l=t;function a(c,d){if(l===Np)return c_(c);if(d&&!o)throw l=Np,d;r&&r(c);var p=d?e[o](d):e[l]();return l=p.nextState,s=p.effect,r=p.stateUpdater,o=p.errorState,l===Np?c_(c):s}return Eh(a,function(c){return a(null,c)},n)}function ZD(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:Qr(e)},l=function(p){return{done:!1,value:kt.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Nd({q1:function(){return{nextState:"q2",effect:s,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+Ld(e)+", "+t.name+")")}function QD(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:Qr(e)},l=function(y){return{done:!1,value:kt.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:GN(y)}},c,d,p=function(y){return c=y},h=function(y){return d=y};return Nd({q1:function(){return{nextState:"q2",effect:s,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(d),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(d),stateUpdater:p}}},"q1","takeLatest("+Ld(e)+", "+t.name+")")}function eF(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:Qr(a)}},d=function(S){return{done:!1,value:kt.apply(void 0,[n].concat(o,[S]))}},p={done:!1,value:Jm(e)},h=function(S){return l=S},g=function(S){return a=S},y=!$d(t);return y||g(t),Nd({q1:function(){var S={done:!1,value:XN(t,jN(1))};return{nextState:"q2",effect:S,stateUpdater:g}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:d(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+Ld(t)+", "+n.name+")")}function tF(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:Qr(t)},d={done:!1,value:xh({action:Qr(t),debounce:Jm(e)})},p=function(S){return{done:!1,value:kt.apply(void 0,[n].concat(o,[S]))}},h=function(S){return{done:!1,value:S}},g=function(S){return l=S},y=function(S){return a=S};return Nd({q1:function(){return{nextState:"q2",effect:c,stateUpdater:g}},q2:function(){return{nextState:"q3",effect:d,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:g}}},"q1","debounce("+Ld(t)+", "+n.name+")")}function ze(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 kt.apply(void 0,[ZD,e,t].concat(r))}function nF(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 kt.apply(void 0,[QD,e,t].concat(r))}function Z2(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 kt.apply(void 0,[eF,e,t,n].concat(o))}function Th(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 kt.apply(void 0,[tF,e,t,n].concat(o))}function rF(){return function*(){const e=yield Nn(sF,"click","button.editor-post-publish-button");yield ze(e,oF),yield ze(Eo,iF)}}function*oF(){yield Oe(ZM())}function*iF(){yield Oe(QM())}function sF(e,t){return EE(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(Hs)}})}const Oh=e=>EE(t=>(e(r=>{t(r||{})}),()=>{}));function*xo(e,t,...n){return yield kt(function*(){for(;;){const o=yield Qr(e);yield Nn(t,...n.concat(o))}})}function*lF(e){if(!(yield Se(e))){for(;;)if(yield Qr("*"),yield Se(e))return}}const cl=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},Da=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},Q2=({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}),d_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,{headers:a,query:c}={})=>fetch(cl(s?s(l):l,c),{method:o,headers:Q2({nonce:t,auth:n,bearer:r},a)}).then(Da(e)),f_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,a,{headers:c,query:d}={})=>fetch(cl(s?s(l):l,d),{method:o,headers:Q2({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(Da(e)),aF=X.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:s})=>({get:d_({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:s,urlProcessor:l=>`${e}/${t}/${l}`}),delete:d_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:f_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:f_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),ex="podlove/publisher/NOTIFY",Og=he(ex),uF={};Wn({},uF);function*Jo(){yield Nn(lF,K.lifecycle.bootstrapped);const e=yield Se(K.runtime.base),t=yield Se(K.runtime.nonce),n=yield Se(K.runtime.auth),r=yield Se(K.runtime.bearer);return aF({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(s){Hd.dispatch(Og({type:"error",message:s}))}})}function*cF(){const e=yield Jo();yield kt(dF,e),yield ze(vg,fF)}function*dF(e){const{result:t}=yield e.get("podcast");t&&(yield Oe(J7(t)))}function fF(e){const t=X.get(e,["payload","prop"]);X.get(e,["payload","value"],null)}function pF(){return function*(){yield xo(Eo,cF)}}function hF(){return function*(){yield ze(ex,mF)}}function*mF(e){const t=X.get(globalThis,["wp","data","dispatch"]);t?gF(t,X.get(e,["payload"])):vF(e.payload)}function gF(e,{type:t,message:n}){n&&e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function vF({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 tx={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,s)=>{function l(g){if(g&&typeof g=="object"){var y=g.which||g.keyCode||g.charCode;y&&(g=y)}if(typeof g=="number")return p[g];var _,S=String(g);return(_=a[S.toLowerCase()])?_:(_=c[S.toLowerCase()])||(S.length===1?S.charCodeAt(0):void 0)}l.isEventKey=function(g,y){if(g&&typeof g=="object"){var _=g.which||g.keyCode||g.charCode;if(_==null)return!1;if(typeof y=="string"){var S;if((S=a[y.toLowerCase()])||(S=c[y.toLowerCase()]))return S===_}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,"⇧":16,"⌥":18,"⌃":17,"⌘":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(d=97;d<123;d++)a[String.fromCharCode(d)]=d-32;for(var d=48;d<58;d++)a[d-48]=d;for(d=1;d<13;d++)a["f"+d]=d+111;for(d=0;d<10;d++)a["numpad "+d]=d+96;var p=s.names=s.title={};for(d in a)p[a[d]]=d;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<"u"&&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,$e){switch(arguments.length){case 0:return ae;case 1:return o(fe)?ae:s(function(Ve){return Q(fe,Ve)});default:return o(fe)&&o($e)?ae:o(fe)?s(function(Ve){return Q(Ve,$e)}):o($e)?s(function(Ve){return Q(fe,Ve)}):Q(fe,$e)}}}n.r(r),n.d(r,{keydown:()=>Le,keyup:()=>Ge});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const d=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 $e,Ve=ae,De=0;De<fe.length;){if(Ve==null)return;$e=fe[De],Ve=a($e)?d($e,Ve):Ve[$e],De+=1}return Ve})}),h=l(function(Q,ae){return p([Q],ae)[0]}),g=l(function(Q,ae){return h([Q],ae)});function y(Q){return function ae(fe,$e,Ve){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($e)?ae:o(fe)?l(function(De,tt){return Q(De,$e,tt)}):o($e)?l(function(De,tt){return Q(fe,De,tt)}):s(function(De){return Q(fe,$e,De)});default:return o(fe)&&o($e)&&o(Ve)?ae:o(fe)&&o($e)?l(function(De,tt){return Q(De,tt,Ve)}):o(fe)&&o(Ve)?l(function(De,tt){return Q(De,$e,tt)}):o($e)&&o(Ve)?l(function(De,tt){return Q(fe,De,tt)}):o(fe)?s(function(De){return Q(De,$e,Ve)}):o($e)?s(function(De){return Q(fe,De,Ve)}):o(Ve)?s(function(De){return Q(fe,$e,De)}):Q(fe,$e,Ve)}}}const _=l(function(Q,ae){return ae==null||ae!=ae?Q:ae}),S=y(function(Q,ae,fe){return _(Q,h(ae,fe))}),C=y(function(Q,ae,fe){return S(Q,[ae],fe)});function T(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,$e){return ae.apply(this,arguments)};case 3:return function(fe,$e,Ve){return ae.apply(this,arguments)};case 4:return function(fe,$e,Ve,De){return ae.apply(this,arguments)};case 5:return function(fe,$e,Ve,De,tt){return ae.apply(this,arguments)};case 6:return function(fe,$e,Ve,De,tt,gn){return ae.apply(this,arguments)};case 7:return function(fe,$e,Ve,De,tt,gn,ln){return ae.apply(this,arguments)};case 8:return function(fe,$e,Ve,De,tt,gn,ln,L){return ae.apply(this,arguments)};case 9:return function(fe,$e,Ve,De,tt,gn,ln,L,B){return ae.apply(this,arguments)};case 10:return function(fe,$e,Ve,De,tt,gn,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 w(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]"},O=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 x=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 I=l(function(Q,ae){return T(Q.length,function(){return Q.apply(ae,arguments)})});function k(Q,ae,fe){for(var $e=fe.next();!$e.done;){if((ae=Q["@@transducer/step"](ae,$e.value))&&ae["@@transducer/reduced"]){ae=ae["@@transducer/value"];break}$e=fe.next()}return Q["@@transducer/result"](ae)}function P(Q,ae,fe,$e){return Q["@@transducer/result"](fe[$e](I(Q["@@transducer/step"],Q),ae))}var H=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function D(Q,ae,fe){if(typeof Q=="function"&&(Q=function($e){return new x($e)}(Q)),O(fe))return function($e,Ve,De){for(var tt=0,gn=De.length;tt<gn;){if((Ve=$e["@@transducer/step"](Ve,De[tt]))&&Ve["@@transducer/reduced"]){Ve=Ve["@@transducer/value"];break}tt+=1}return $e["@@transducer/result"](Ve)}(Q,ae,fe);if(typeof fe["fantasy-land/reduce"]=="function")return P(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 P(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 $e=arguments[fe-1];return E($e)||typeof $e[Q]!="function"?ae.apply(this,arguments):$e[Q].apply($e,Array.prototype.slice.call(arguments,0,fe-1))}}const G=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 T(arguments[0].length,F(w,arguments[0],G(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 Ae=n(9620),Pe=n.n(Ae);const Ye=Q=>ae=>{g("nodeName",ae.target)==="BODY"&&Q(ae)},ft=Q=>({key:Pe()(Q),ctrl:C(!1,"ctrlKey",Q),shift:C(!1,"shiftKey",Q),meta:C(!1,"metaKey",Q),alt:C(!1,"altKey",Q)}),Le=Q=>document.addEventListener("keydown",Ye(be(Q,ft))),Ge=Q=>document.addEventListener("keyup",Ye(be(Q,ft)))})(),tx.utils=r})();function yF(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=Ma(o[1]);s!==null&&n.push({title:o[2].trim(),start:s})}return n},[])}function bF(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=Ma(o[1].replace(",",".")),l=o[3].trim();s!==null&&n.push({title:l,start:s})}return n},[])}function _F(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=Ma(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",d=l.getAttribute("URL")||"";return a!==null&&s.push({start:a,title:c.trim(),...d?{href:d.trim()}:{}}),s},[]);return o.sort(function(s,l){return s.start-l.start}),o}function wF(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=Ma(s.getAttribute("start")||""),a=s.getAttribute("title")||"",c=s.getAttribute("href")||"",d=s.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...d?{image:d.trim()}:{}}),o},[])}const nx=X.get(window,["wp","i18n","__"],e=>e),SF=nx,EF={install(e){e.config.globalProperties.__=(t,n)=>nx(t,n)}};function*xF(){const e=yield Jo();yield kt($F,e),yield ze([kE],PF),yield ze(LE,TF),yield ze([og,lg,sg,ig,ug],CF,e);const t=yield Nn(Oh,tx.utils.keydown);yield ze(t,IF),yield ze(ag,kF)}function*$F(e){const t=yield Se(K.episode.id),{result:n}=yield e.get(`chapters/${t}`);n&&(yield Oe(u7(n.chapters.map(r=>({...r,start:Mt.fromString(r.start).totalMs})))))}function*CF(e){const t=yield Se(K.episode.id),n=yield Se(K.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Mt(r.start).pretty}))})}function*TF(e){const t=yield Se(K.chapters.list);switch(e.payload){case"psc":p_("chapters.psc",OF(t));break;case"mp4":p_("chapters.txt",AF(t));break}}function OF(e){const t=new XMLSerializer,o=new DOMParser().parseFromString('<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',"text/xml");let s=o.getElementsByTagName("chapters");return s.length||(s=o.getElementsByTagName("psc:chapters")),s=s[0],e.forEach(c=>{let d=o.createElement("psc:chapter");d.setAttribute("title",c.title||""),d.setAttribute("start",c.start?new Mt(c.start).pretty:"00:00:00"),c.href&&d.setAttribute("href",c.href),c.image&&d.setAttribute("image",c.image),s.appendChild(d)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,`
    4747    <psc:chapter `).replace("</psc:chapters>",`
    48 </psc:chapters>`)}function _F(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(`
     48</psc:chapters>`)}function AF(e){const t=r=>isNaN(r.start)?"":new Mt(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(`
    4949`)+`
    50 `}function f_(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*wF(e){const t=[uF,cF,dF,fF];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield Oe(Tg({type:"error",message:pF("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield Oe(LE(n))}function*SF(e){const t=yield Se(K.chapters.selectedIndex);if(t===null)return;const n=yield Se(K.chapters.list);switch(!0){case e.key==="up":t===0?yield Oe(fi(n.length-1)):yield Oe(fi(t-1));break;case e.key==="down":t===n.length-1?yield Oe(fi(0)):yield Oe(fi(t+1));break;case e.key==="esc":yield Oe(fi(null));break}}function*EF(){yield Oe(hg({onSuccess:{type:lg}}))}function xF(){return function*(){yield xo(AE,mF)}}function*$F(){const e=yield Xo();yield Dt(Md,e),yield We(JE,CF,e),yield We(mg,OF,e),yield We(ZE,AF,e),yield We(YE,TF,e)}function*Md(e){const t=yield Se(K.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield Oe(C7(X.get(n,["result","transcript"],[]))),yield Oe(T7(X.get(r,["result","voices"],[])))}function*CF(e,t){const n=yield Se(K.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield Dt(Md,e))}function*TF(e,t){const n=yield Se(K.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield Dt(Md,e))}function*OF(e,t){const n=yield Se(K.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*AF(e){const t=yield Se(K.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield Dt(Md,e))}function IF(){return function*(){yield xo(KE,$F)}}function*PF(){const e=yield Xo();yield Dt(LF,e),yield Dt(NF,e),yield Dt(MF,e),yield Dt(kF,e),yield We(VE,DF,e),yield X2(3e3,[cg,ug,dg,fg,pg],RF,e)}function*kF(e){const t=yield Se(K.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);n&&(yield Oe(WE({contributions:X.get(n,["contribution"],[])})))}function*RF(e){const t=yield Se(K.episode.id);if(!t)return;const n=yield Se(K.contributors.roles),r=yield Se(K.contributors.groups);let s=(yield Se(K.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:d,comment:p}){return{contributor_id:X.toInteger(l),role_id:X.toInteger(a)==0&&n.length>0?n[0].id:X.toInteger(a),group_id:X.toInteger(c)==0&&r.length>0?r[0].id:X.toInteger(c),position:X.toInteger(d),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:s})}function*LF(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});t&&(yield Oe(N7(X.get(t,"contributors",[]))))}function*NF(e){const{result:t}=yield e.get("contributors/roles");t&&(yield Oe(M7(X.get(t,"roles",[]))))}function*MF(e){const{result:t}=yield e.get("contributors/groups");t&&(yield Oe(D7(X.get(t,"groups",[]))))}function*DF(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,s=X.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:s});if(l)return;const a={id:o,realname:s};yield Oe(F7(a)),yield Oe(zE(a))}function FF(){return function*(){yield xo(QE,PF)}}const Do=X.get(window,["wp","data"],null),ex=X.get(window,["wp","media"],null),es=document.querySelector('input[name="post_title"]'),BF=e=>es==null?void 0:es.addEventListener("change",t=>e(X.get(t,["target","value"])));function*UF(){const e=yield Se(K.settings.autoGenerateEpisodeTitle);typeof(Do==null?void 0:Do.subscribe)<"u"&&(yield We(yield Zn(Oh,Do==null?void 0:Do.subscribe),VF)),es&&(yield We(yield Zn(Oh,BF),tx)),e&&(yield We(Pd,p_),yield We(Qs,p_)),ex&&(yield We(qE,WF))}function jF(){return Do.select("core/editor").getEditedPostAttribute("featured_media")}function HF(){return Do.select("core/editor").getEditedPostAttribute("title")}function*VF(){const e=HF(),t=jF(),n=t?Do.select("core").getMedia(t):null,r=yield Se(K.post.title),o=yield Se(K.post.featuredMedia);r!=e&&(yield Oe($h({prop:"title",value:e}))),X.get(o,["id"])!=X.get(n,["id"])&&(yield Oe($h({prop:"featured_media",value:n})))}function*tx(e){yield Oe($h({prop:"title",value:e}))}function*p_(){if(!es)return;const e=yield Se(K.settings.blogTitleTemplate);if(!e)return;const t=yield Se(K.episode.title),n=yield Se(K.episode.number),r=yield Se(K.podcast.mnemonic),o=yield Se(K.settings.episodeNumberPadding),s=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");es.value!=s&&(es.value=s,yield tx(s))}function*WF(e){const t=X.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=ex({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 Oe({...t,payload:o})}finally{}}function zF(){return function*(){yield xo(Eo,UF)}}let jl={};function*qF(){const e=yield Xo();yield Dt(GF,e),yield We(Qs,XF),yield Th(1e3,Qs,h_,e),yield Th(50,FE,h_,e),yield We(BE,JF),yield We(HE,YF),yield We(jE,ZF),yield We(Rd,QF),yield We(Pd,KF)}function*KF(){const e=yield Se(K.episode.auphonicWebhookConfig);e&&(yield Oe(I2(e.enabled)))}function*GF(e){const t=yield Se(K.episode.id),{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield Oe(SD())),yield Oe(WE(n)))}function XF(e){const t=X.get(e,["payload","prop"]),n=X.get(e,["payload","value"],null);t&&(jl[t]=n)}function*h_(e,t){const n=yield Se(K.episode.id);X.isEmpty(jl)||(yield e.put(`episodes/${n}`,jl,{query:{skip_validation:"1"}}),yield Oe(y7(jl)),jl={})}function*JF(e){Object.keys(e.payload).includes("slug")&&(yield Oe(b7()))}function*YF(){yield Oe(hg({onSuccess:{type:jE}}))}function*ZF(e){yield Oe(wt({prop:"episode_poster",value:X.get(e,["payload"])}))}function*QF(e){if((yield Se(K.settings.imageAsset))!="post-thumbnail"||X.get(e,["payload","prop"])!="featured_media")return;const n=X.get(e,["payload","value","source_url"]);yield Oe(wt({prop:"poster",value:n}))}function e8(){return function*(){yield xo(DE,qF)}}function nx(e,t){return function(){return e.apply(t,arguments)}}const{toString:t8}=Object.prototype,{getPrototypeOf:Og}=Object,Dd=(e=>t=>{const n=t8.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),io=e=>(e=e.toLowerCase(),t=>Dd(t)===e),Fd=e=>t=>typeof t===e,{isArray:dl}=Array,ya=Fd("undefined");function n8(e){return e!==null&&!ya(e)&&e.constructor!==null&&!ya(e.constructor)&&br(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rx=io("ArrayBuffer");function r8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rx(e.buffer),t}const o8=Fd("string"),br=Fd("function"),ox=Fd("number"),Bd=e=>e!==null&&typeof e=="object",i8=e=>e===!0||e===!1,fc=e=>{if(Dd(e)!=="object")return!1;const t=Og(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},s8=io("Date"),l8=io("File"),a8=io("Blob"),u8=io("FileList"),c8=e=>Bd(e)&&br(e.pipe),d8=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||br(e.append)&&((t=Dd(e))==="formdata"||t==="object"&&br(e.toString)&&e.toString()==="[object FormData]"))},f8=io("URLSearchParams"),[p8,h8,m8,g8]=["ReadableStream","Request","Response","Headers"].map(io),v8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),dl(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 ix(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 Ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sx=e=>!ya(e)&&e!==Ki;function Ah(){const{caseless:e}=sx(this)&&this||{},t={},n=(r,o)=>{const s=e&&ix(t,o)||o;fc(t[s])&&fc(r)?t[s]=Ah(t[s],r):fc(r)?t[s]=Ah({},r):dl(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Fa(arguments[r],n);return t}const y8=(e,t,n,{allOwnKeys:r}={})=>(Fa(t,(o,s)=>{n&&br(o)?e[s]=nx(o,n):e[s]=o},{allOwnKeys:r}),e),b8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_8=(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)},w8=(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&&Og(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},S8=(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},E8=e=>{if(!e)return null;if(dl(e))return e;let t=e.length;if(!ox(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},x8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Og(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])}},C8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},T8=io("HTMLFormElement"),O8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),m_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),A8=io("RegExp"),lx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fa(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},I8=e=>{lx(e,(t,n)=>{if(br(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(br(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+"'")})}})},P8=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return dl(e)?r(e):r(String(e).split(t)),n},k8=()=>{},R8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Mp="abcdefghijklmnopqrstuvwxyz",g_="0123456789",ax={DIGIT:g_,ALPHA:Mp,ALPHA_DIGIT:Mp+Mp.toUpperCase()+g_},L8=(e=16,t=ax.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function N8(e){return!!(e&&br(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const M8=e=>{const t=new Array(10),n=(r,o)=>{if(Bd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=dl(r)?[]:{};return Fa(r,(l,a)=>{const c=n(l,o+1);!ya(c)&&(s[a]=c)}),t[o]=void 0,s}}return r};return n(e,0)},D8=io("AsyncFunction"),F8=e=>e&&(Bd(e)||br(e))&&br(e.then)&&br(e.catch),ux=((e,t)=>e?setImmediate:t?((n,r)=>(Ki.addEventListener("message",({source:o,data:s})=>{o===Ki&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ki.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",br(Ki.postMessage)),B8=typeof queueMicrotask<"u"?queueMicrotask.bind(Ki):typeof process<"u"&&process.nextTick||ux,ee={isArray:dl,isArrayBuffer:rx,isBuffer:n8,isFormData:d8,isArrayBufferView:r8,isString:o8,isNumber:ox,isBoolean:i8,isObject:Bd,isPlainObject:fc,isReadableStream:p8,isRequest:h8,isResponse:m8,isHeaders:g8,isUndefined:ya,isDate:s8,isFile:l8,isBlob:a8,isRegExp:A8,isFunction:br,isStream:c8,isURLSearchParams:f8,isTypedArray:x8,isFileList:u8,forEach:Fa,merge:Ah,extend:y8,trim:v8,stripBOM:b8,inherits:_8,toFlatObject:w8,kindOf:Dd,kindOfTest:io,endsWith:S8,toArray:E8,forEachEntry:$8,matchAll:C8,isHTMLForm:T8,hasOwnProperty:m_,hasOwnProp:m_,reduceDescriptors:lx,freezeMethods:I8,toObjectSet:P8,toCamelCase:O8,noop:k8,toFiniteNumber:R8,findKey:ix,global:Ki,isContextDefined:sx,ALPHABET:ax,generateString:L8,isSpecCompliantForm:N8,toJSONObject:M8,isAsyncFn:D8,isThenable:F8,setImmediate:ux,asap:B8};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,this.status=o.status?o.status:null)}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.status}}});const cx=nt.prototype,dx={};["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=>{dx[e]={value:e}});Object.defineProperties(nt,dx);Object.defineProperty(cx,"isAxiosError",{value:!0});nt.from=(e,t,n,r,o,s)=>{const l=Object.create(cx);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};const U8=null;function Ih(e){return ee.isPlainObject(e)||ee.isArray(e)}function fx(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function v_(e,t,n){return e?e.concat(t).map(function(o,s){return o=fx(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function j8(e){return ee.isArray(e)&&!e.some(Ih)}const H8=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Ud(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(S,C){return!ee.isUndefined(C[S])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function d(_){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(_,S,C){let T=_;if(_&&!C&&typeof _=="object"){if(ee.endsWith(S,"{}"))S=r?S:S.slice(0,-2),_=JSON.stringify(_);else if(ee.isArray(_)&&j8(_)||(ee.isFileList(_)||ee.endsWith(S,"[]"))&&(T=ee.toArray(_)))return S=fx(S),T.forEach(function(E,O){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?v_([S],O,s):l===null?S:S+"[]",d(E))}),!1}return Ih(_)?!0:(t.append(v_(C,S,s),d(_)),!1)}const h=[],g=Object.assign(H8,{defaultVisitor:p,convertValue:d,isVisitable:Ih});function y(_,S){if(!ee.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(_),ee.forEach(_,function(T,w){(!(ee.isUndefined(T)||T===null)&&o.call(t,T,ee.isString(w)?w.trim():w,S,g))===!0&&y(T,S?S.concat(w):[w])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function y_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ag(e,t){this._pairs=[],e&&Ud(e,this,t)}const px=Ag.prototype;px.append=function(t,n){this._pairs.push([t,n])};px.toString=function(t){const n=t?function(r){return t.call(this,r,y_)}:y_;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function V8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hx(e,t,n){if(!t)return e;const r=n&&n.encode||V8,o=n&&n.serialize;let s;if(o?s=o(t,n):s=ee.isURLSearchParams(t)?t.toString():new Ag(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class b_{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)})}}const mx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},W8=typeof URLSearchParams<"u"?URLSearchParams:Ag,z8=typeof FormData<"u"?FormData:null,q8=typeof Blob<"u"?Blob:null,K8={isBrowser:!0,classes:{URLSearchParams:W8,FormData:z8,Blob:q8},protocols:["http","https","file","blob","url","data"]},Ig=typeof window<"u"&&typeof document<"u",Ph=typeof navigator=="object"&&navigator||void 0,G8=Ig&&(!Ph||["ReactNative","NativeScript","NS"].indexOf(Ph.product)<0),X8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",J8=Ig&&window.location.href||"http://localhost",Y8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ig,hasStandardBrowserEnv:G8,hasStandardBrowserWebWorkerEnv:X8,navigator:Ph,origin:J8},Symbol.toStringTag,{value:"Module"})),Qn={...Y8,...K8};function Z8(e,t){return Ud(e,new Qn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Qn.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Q8(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function eB(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 gx(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]=eB(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(Q8(r),o,n,0)}),n}return null}function tB(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(0,JSON.stringify)(e)}const Ba={transitional:mx,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(gx(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 Z8(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ud(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),tB(t)):t}],transformResponse:[function(t){const n=this.transitional||Ba.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:Qn.classes.FormData,Blob:Qn.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=>{Ba.headers[e]={}});const nB=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"]),rB=e=>{const t={};let n,r,o;return e&&e.split(`
    51 `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&nB[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},__=Symbol("internals");function Rl(e){return e&&String(e).trim().toLowerCase()}function pc(e){return e===!1||e==null?e:ee.isArray(e)?e.map(pc):String(e)}function oB(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 iB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dp(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 sB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function lB(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 er{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,c,d){const p=Rl(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||d===!0||d===void 0&&o[h]!==!1)&&(o[h||c]=pc(a))}const l=(a,c)=>ee.forEach(a,(d,p)=>s(d,p,c));if(ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ee.isString(t)&&(t=t.trim())&&!iB(t))l(rB(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=Rl(t),t){const r=ee.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return oB(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=Rl(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=Rl(l),l){const a=ee.findKey(r,l);a&&(!n||Dp(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||Dp(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]=pc(o),delete n[s];return}const a=t?sB(s):String(s).trim();a!==s&&delete n[s],n[a]=pc(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 `)}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[__]=this[__]={accessors:{}}).accessors,o=this.prototype;function s(l){const a=Rl(l);r[a]||(lB(o,l),r[a]=!0)}return ee.isArray(t)?t.forEach(s):s(t),this}}er.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(er.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ee.freezeMethods(er);function Fp(e,t){const n=this||Ba,r=t||n,o=er.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 vx(e){return!!(e&&e.__CANCEL__)}function fl(e,t,n){nt.call(this,e??"canceled",nt.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(fl,nt,{__CANCEL__:!0});function yx(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 aB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uB(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 d=Date.now(),p=r[s];l||(l=d),n[o]=c,r[o]=d;let h=s,g=0;for(;h!==o;)g+=n[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-l<t)return;const y=p&&d-p;return y?Math.round(g*1e3/y):void 0}}function cB(e,t){let n=0,r=1e3/t,o,s;const l=(d,p=Date.now())=>{n=p,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?l(d,p):(o=d,s||(s=setTimeout(()=>{s=null,l(o)},r-h)))},()=>o&&l(o)]}const Gc=(e,t,n=3)=>{let r=0;const o=uB(50,250);return cB(s=>{const l=s.loaded,a=s.lengthComputable?s.total:void 0,c=l-r,d=o(c),p=l<=a;r=l;const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&p?(a-l)/d:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},w_=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},S_=e=>(...t)=>ee.asap(()=>e(...t)),dB=Qn.hasStandardBrowserEnv?function(){const t=Qn.navigator&&/(msie|trident)/i.test(Qn.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}}(),fB=Qn.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 pB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bx(e,t){return e&&!pB(t)?hB(e,t):t}const E_=e=>e instanceof er?{...e}:e;function us(e,t){t=t||{};const n={};function r(d,p,h){return ee.isPlainObject(d)&&ee.isPlainObject(p)?ee.merge.call({caseless:h},d,p):ee.isPlainObject(p)?ee.merge({},p):ee.isArray(p)?p.slice():p}function o(d,p,h){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d,h)}else return r(d,p,h)}function s(d,p){if(!ee.isUndefined(p))return r(void 0,p)}function l(d,p){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function a(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}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:(d,p)=>o(E_(d),E_(p),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,g=h(e[p],t[p],p);ee.isUndefined(g)&&h!==a||(n[p]=g)}),n}const _x=e=>{const t=us({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:a}=t;t.headers=l=er.from(l),t.url=hx(bx(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(Qn.hasStandardBrowserEnv||Qn.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...p].join("; "))}}if(Qn.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(t)),r||r!==!1&&dB(t.url))){const d=o&&s&&fB.read(s);d&&l.set(o,d)}return t},mB=typeof XMLHttpRequest<"u",gB=mB&&function(e){return new Promise(function(n,r){const o=_x(e);let s=o.data;const l=er.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=o,p,h,g,y,_;function S(){y&&y(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function T(){if(!C)return;const E=er.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),$={data:!a||a==="text"||a==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:E,config:e,request:C};yx(function(k){n(k),S()},function(k){r(k),S()},$),C=null}"onloadend"in C?C.onloadend=T:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(T)},C.onabort=function(){C&&(r(new nt("Request aborted",nt.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new nt("Network Error",nt.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||mx;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new nt(O,$.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,e,C)),C=null},s===void 0&&l.setContentType(null),"setRequestHeader"in C&&ee.forEach(l.toJSON(),function(O,$){C.setRequestHeader($,O)}),ee.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),a&&a!=="json"&&(C.responseType=o.responseType),d&&([g,_]=Gc(d,!0),C.addEventListener("progress",g)),c&&C.upload&&([h,y]=Gc(c),C.upload.addEventListener("progress",h),C.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=E=>{C&&(r(!E||E.type?new fl(null,e,C):E),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=aB(o.url);if(w&&Qn.protocols.indexOf(w)===-1){r(new nt("Unsupported protocol "+w+":",nt.ERR_BAD_REQUEST,e));return}C.send(s||null)})},vB=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,a();const p=d instanceof Error?d:this.reason;r.abort(p instanceof nt?p:new fl(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new nt(`timeout ${t} of ms exceeded`,nt.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>ee.asap(a),c}},yB=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},bB=async function*(e,t){for await(const n of _B(e))yield*yB(n,t)},_B=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},x_=(e,t,n,r)=>{const o=bB(e,t);let s=0,l,a=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:p}=await o.next();if(d){a(),c.close();return}let h=p.byteLength;if(n){let g=s+=h;n(g)}c.enqueue(new Uint8Array(p))}catch(d){throw a(d),d}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},jd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wx=jd&&typeof ReadableStream=="function",wB=jd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Sx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},SB=wx&&Sx(()=>{let e=!1;const t=new Request(Qn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$_=64*1024,kh=wx&&Sx(()=>ee.isReadableStream(new Response("").body)),Xc={stream:kh&&(e=>e.body)};jd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xc[t]&&(Xc[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 EB=async e=>{if(e==null)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e))return(await new Request(Qn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(e)||ee.isArrayBuffer(e))return e.byteLength;if(ee.isURLSearchParams(e)&&(e=e+""),ee.isString(e))return(await wB(e)).byteLength},xB=async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n??EB(t)},$B=jd&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:g}=_x(e);d=d?(d+"").toLowerCase():"text";let y=vB([o,s&&s.toAbortSignal()],l),_;const S=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let C;try{if(c&&SB&&n!=="get"&&n!=="head"&&(C=await xB(p,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(ee.isFormData(r)&&(P=$.headers.get("content-type"))&&p.setContentType(P),$.body){const[k,I]=w_(C,Gc(S_(c)));r=x_($.body,$_,k,I)}}ee.isString(h)||(h=h?"include":"omit");const T="credentials"in Request.prototype;_=new Request(t,{...g,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:T?h:void 0});let w=await fetch(_);const E=kh&&(d==="stream"||d==="response");if(kh&&(a||E&&S)){const $={};["status","statusText","headers"].forEach(H=>{$[H]=w[H]});const P=ee.toFiniteNumber(w.headers.get("content-length")),[k,I]=a&&w_(P,Gc(S_(a),!0))||[];w=new Response(x_(w.body,$_,k,()=>{I&&I(),S&&S()}),$)}d=d||"text";let O=await Xc[ee.findKey(Xc,d)||"text"](w,e);return!E&&S&&S(),await new Promise(($,P)=>{yx($,P,{data:O,headers:er.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:_})})}catch(T){throw S&&S(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,e,_),{cause:T.cause||T}):nt.from(T,T&&T.code,e,_)}}),Rh={http:U8,xhr:gB,fetch:$B};ee.forEach(Rh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const C_=e=>`- ${e}`,CB=e=>ee.isFunction(e)||e===null||e===!1,Ex={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,!CB(n)&&(r=Rh[(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 `+s.map(C_).join(`
    54 `):" "+C_(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:Rh};function Bp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fl(null,e)}function T_(e){return Bp(e),e.headers=er.from(e.headers),e.data=Fp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ex.getAdapter(e.adapter||Ba.adapter)(e).then(function(r){return Bp(e),r.data=Fp.call(e,e.transformResponse,r),r.headers=er.from(r.headers),r},function(r){return vx(r)||(Bp(e),r&&r.response&&(r.response.data=Fp.call(e,e.transformResponse,r.response),r.response.headers=er.from(r.response.headers))),Promise.reject(r)})}const xx="1.7.7",Pg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const O_={};Pg.transitional=function(t,n,r){function o(s,l){return"[Axios v"+xx+"] 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&&!O_[l]&&(O_[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 TB(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)}}const Lh={assertOptions:TB,validators:Pg},ai=Lh.validators;class ts{constructor(t){this.defaults=t,this.interceptors={request:new b_,response:new b_}}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=us(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Lh.assertOptions(r,{silentJSONParsing:ai.transitional(ai.boolean),forcedJSONParsing:ai.transitional(ai.boolean),clarifyTimeoutError:ai.transitional(ai.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:Lh.assertOptions(o,{encode:ai.function,serialize:ai.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=er.concat(l,s);const a=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let p,h=0,g;if(!c){const _=[T_.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,d),g=_.length,p=Promise.resolve(n);h<g;)p=p.then(_[h++],_[h++]);return p}g=a.length;let y=n;for(h=0;h<g;){const _=a[h++],S=a[h++];try{y=_(y)}catch(C){S.call(this,C);break}}try{p=T_.call(this,y)}catch(_){return Promise.reject(_)}for(h=0,g=d.length;h<g;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=us(this.defaults,t);const n=bx(t.baseURL,t.url);return hx(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){ts.prototype[t]=function(n,r){return this.request(us(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(us(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}ts.prototype[t]=n(),ts.prototype[t+"Form"]=n(!0)});class kg{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 fl(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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new kg(function(o){t=o}),cancel:t}}}function OB(e){return function(n){return e.apply(null,n)}}function AB(e){return ee.isObject(e)&&e.isAxiosError===!0}const Nh={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(Nh).forEach(([e,t])=>{Nh[t]=e});function $x(e){const t=new ts(e),n=nx(ts.prototype.request,t);return ee.extend(n,ts.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return $x(us(e,o))},n}const sn=$x(Ba);sn.Axios=ts;sn.CanceledError=fl;sn.CancelToken=kg;sn.isCancel=vx;sn.VERSION=xx;sn.toFormData=Ud;sn.AxiosError=nt;sn.Cancel=sn.CanceledError;sn.all=function(t){return Promise.all(t)};sn.spread=OB;sn.isAxiosError=AB;sn.mergeConfig=us;sn.AxiosHeaders=er;sn.formToJSON=e=>gx(ee.isHTMLForm(e)?new FormData(e):e);sn.getAdapter=Ex.getAdapter;sn.HttpStatusCode=Nh;sn.default=sn;const Rg=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...Cx({bearer:e}),...t}),Cx=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),IB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:s,query:l}={})=>fetch(cl(r?r(o):o,l),{method:n,headers:Rg({bearer:t},s)}).then(Da(e)),PB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(cl(r?r(o):o,a),{method:n,headers:Rg({bearer:t},l),body:JSON.stringify(s)}).then(Da(e)),kB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(cl(r?r(o):o,a),{method:n,headers:Rg({bearer:t},l),body:JSON.stringify(s)}).then(Da(e)),RB=({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),sn.post(cl(n?n(r):r,s),l,{headers:{...Cx({bearer:t})},onUploadProgress:a=>console.log("progress",a)})},LB=X.curry(({base:e,bearer:t,errorHandler:n})=>({get:IB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:PB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:kB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:RB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*NB(){const e="https://auphonic.com/api",t=yield Se(K.auphonic.token);return LB({base:e,bearer:t,errorHandler:function(r){Hd.dispatch(Tg({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let Yu;const MB=new Uint8Array(16);function DB(){if(!Yu&&(Yu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Yu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yu(MB)}const wn=[];for(let e=0;e<256;++e)wn.push((e+256).toString(16).slice(1));function FB(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 BB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),A_={randomUUID:BB};function UB(e,t,n){if(A_.randomUUID&&!t&&!e)return A_.randomUUID();e=e||{};const r=e.random||(e.rng||DB)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,FB(r)}function*jB(){const e=yield Xo();yield Dt(HB,e),yield We(bg,o9),yield We(vg,r9)}function*HB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield Oe(eD(t)),yield Dt(VB),yield We(Hc,s9,e),yield We(_g,i9,e),yield We(Hc,l9,e),yield We(Vc,a9,e),yield We(yg,d9),yield We(h2,u9,e),yield We(Wc,P_,e),yield We(Vc,P_,e))}function*VB(){const e=yield NB(),{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 Oe(E2(n)),yield Oe(rD(t)),yield Oe(oD([{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(c9),yield Zn(f9),yield Oe(Q7()),yield We(d2,t9,e),yield We(f2,n9,e),yield We(C2,e9,e),yield We(x2,Ox,e),yield We($2,KB,e),yield We(S2,zB,e),yield We(O2,qB,e),yield Zn(WB,e)}function*WB(e){for((yield Se(K.episode.isAuphonicProductionRunning))&&(yield xh([Zn(I_,e),vo(Wc)]));;)yield vo(b2),yield xh([Zn(I_,e),vo(Wc)])}function*I_(e){for(;;){let t=yield Se(K.auphonic.productionId);t||(yield Oe(l_()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield Oe(ps(n)),n.status==3&&(yield Oe(wt({prop:"slug",value:n.output_basename}))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield Oe(l_())),yield Jm(2500)}}function*zB(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield Oe(E2(t))}function*qB(e,t){let n=yield Se(K.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*KB(e,t){const n=t.payload.uuid;yield Zn(Ox,e,{type:p2,payload:{uuid:n}});const r=yield Se(K.episode.auphonicWebhookConfig),o=yield Se(K.auphonic.publishWhenDone),s=yield Se(K.runtime.baseUrl),l=yield Se(K.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 d=yield e.post(`production/${n}/start.json`,{});d.result?yield Oe(ps(d.result.data)):console.warn(d.error.error_message),yield Oe(lD())}function*GB(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 Tx=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 XB(e){const t=X.get(e,["auphonic","file_selections"]),n=X.get(e,["auphonic","production","uuid"],"");return Tx(X.get(t,n))}function JB(e){const t=X.get(e,["auphonic","file_selections"]),n=X.get(e,["auphonic","production","uuid"],"");return X.get(e,["auphonic","tracks"],[]).reduce((o,s,l)=>(o.push(Tx(X.get(t,`${n}_t${l}`))),o),[])}function YB(e){const t=X.get(e,["auphonic","production","is_multitrack"],!1),n=X.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=JB(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 ZB(e){let t=X.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 QB(e){const t=X.get(e,["auphonic","production","is_multitrack"],!1),n=ZB(e);let r={};if(!t){const o=XB(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*Ox(e,t){yield Oe(aD());const n=t.payload.uuid,r=yield Se(QB),o=yield Se(YB);yield e.delete(`production/${n}/chapters.json`),yield pE(o.map(c=>Zn(GB,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 p="image."+(c.type.includes("png")?"png":"jpg"),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 Oe(ps(a)),yield Oe(uD())}function*e9(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield Oe(iD({uuid:n,files:r.data}))}function*Ax(){const e=yield Se(K.episode.title),t=yield Se(K.post.title);return e||t||"New Production"}function*t9(e){const t=yield Se(K.auphonic.preset),n=yield Ax(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield Oe(ps(o))}function*n9(e){const t=yield Se(K.auphonic.preset),n=yield Ax(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield Oe(ps(o))}function*r9(e){const t=yield Se(K.auphonic.currentFileSelection);(yield Se(K.auphonic.fileSelections))[t].fileSelection||(yield Oe(T2({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*o9(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield Oe(C2(n)))}function*i9(e){const t=yield Se(K.episode.auphonicWebhookConfig),n=yield Se(K.auphonic.publishWhenDone);!t||t.enabled==n||(yield Oe(wt({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*s9(e){const t=yield Se(K.episode.auphonicWebhookConfig),n=yield Se(K.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=UB();yield Oe(wt({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*l9(e){const t=yield Se(K.episode.id),n=yield Se(K.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*a9(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*u9(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!0})}function*P_(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!1})}function*c9(){const e=yield Se(K.episode.id),t=yield Se(K.episode.auphonicProductionId),n=yield Se(K.auphonic.productionId),r=yield Se(K.auphonic.productions);if(!n&&t&&e){const o=r.find(s=>s.uuid==t);o&&(yield Oe(ps(o)))}}function*d9(){const e=yield Se(K.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*f9(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield Oe(wg(e))))}function p9(){return function*(){yield xo(s2,jB)}}function*h9(){const e=yield Xo();yield Dt(m9,e)}function*m9(e){const t=yield Se(K.episode.id);yield Se(K.episode.slug);const{result:{results:n}}=yield e.get(`episodes/${t}/media`);n&&(yield Oe(vD(n))),yield We(zc,b9,e),yield We(qc,_9,e),yield We(L2,E9,e),yield KD(UE,w9,e),yield Th(2e3,Rd,S9,e),yield X2(2e3,[zc,qc,Sg],y9,e),yield We(N2,g9),yield We(Eg,v9),yield Oe(gD())}function*g9(){yield Oe(hg({onSuccess:{type:Eg}}))}function*v9(e){const n=X.get(e,["payload"]).split("\\").pop().split("/").pop().split(".").shift();yield Oe(wt({prop:"slug",value:n})),yield Oe(f7())}function*y9(e){const t=yield Se(K.mediafiles.files),n=yield Se(K.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 $9(l)).toString()}parseFloat(n)!==parseFloat(s)&&(yield Oe(wt({prop:"duration",value:s})))}function*b9(e,t){const n=yield Se(K.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 Oe(Ch(s))}function*_9(e,t){const n=yield Se(K.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*w9(e){const t=yield Se(K.episode.id),n=yield Se(K.mediafiles.files);yield pE(n.map(r=>Dt(Ix,e,t,r.asset_id)))}function*S9(e,t){const n=yield Se(K.episode.id),r=yield Se(K.episode.slug);if((yield Se(K.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 Oe(wt({prop:"slug",value:l.slug})))}}function*Ix(e,t,n){const o=(yield Se(K.mediafiles.files)).find(c=>c.asset_id==n);yield Oe(Ch({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 Oe(Ch(a))}function*E9(e,t){const n=yield Se(K.episode.id),r=t.payload;yield Ix(e,n,r)}async function x9(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function $9(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await x9(t),t.duration}function C9(){return function*(){yield xo(P2,h9)}}function*T9(){const e=yield Xo();yield Dt(O9,e),yield We(xg,A9,e)}function*O9(e){const t=yield Se(K.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=X.get(n,["result","relatedEpisodes"],[]),s=X.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield Oe(j2(l)),yield Oe(TD(s))}function*A9(e,t){const n=yield Se(K.episode.id),r=yield Se(K.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function I9(){return function*(){yield xo(B2,T9)}}function*P9(){const e=yield Xo();yield Dt(k9,e)}function*k9(e){const t=yield Se(K.settings.modules),{result:n}=yield e.get("shows");AD&&(yield Oe(V2(n)),yield We(Qs,L9),t.includes("automatic_numbering")&&(yield We(Kc,N9,e)),t.includes("auphonic")&&(yield We(Kc,R9,n)))}function*R9(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield Oe(wg(n.auphonic_preset)))}function*L9(e){const t=X.get(e,["payload","prop"]),n=X.get(e,["payload","value"],null);t==="show"&&(yield Oe(W2(n)))}function*N9(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield Oe(wt({prop:"number",value:n.toString()}))}function M9(){return function*(){yield xo($g,P9)}}const Sr=CM(),D9=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||NS,Hd=zm(HD,D9(f6(Sr)));Sr.run(GD());Sr.run(iF());Sr.run(xF());Sr.run(IF());Sr.run(FF());Sr.run(zF());Sr.run(e8());Sr.run(oF());Sr.run(p9());Sr.run(C9());Sr.run(I9());Sr.run(M9());const F9=ge({props:{name:{type:String,default:null},title:{type:String,default:null}}}),Be=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},B9={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},U9={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},j9={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},H9={class:"ml-4 mt-2"},V9=["for"],W9={class:"ml-4 mt-2 flex flex-shrink-0"};function z9(e,t,n,r,o,s){return N(),V("section",B9,[v("div",U9,[v("div",j9,[v("div",H9,[v("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},U(e.title),9,V9)]),v("div",W9,[_r(e.$slots,"actions")])])]),v("div",null,[_r(e.$slots,"default")])])}const Nn=Be(F9,[["render",z9]]);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"},[v("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 Px(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function kx(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"},[v("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 Rx(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"},[v("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 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"},[v("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 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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}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"},[v("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 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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Lx(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}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"},[v("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 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"},[v("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 Nx(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"},[v("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 Mx(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"},[v("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 eU(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"},[v("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 tU(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"},[v("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 Dx(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"},[v("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 Fx(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"},[v("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 Bx(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"},[v("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 Lg(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function nU(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"},[v("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 Ux(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"},[v("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 Ua(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function Ll(e,t,n){let r=n.initialDeps??[],o;return()=>{var s,l,a,c;let d;n.key&&((s=n.debug)!=null&&s.call(n))&&(d=Date.now());const p=e();if(!(p.length!==r.length||p.some((y,_)=>r[_]!==y)))return o;r=p;let g;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(g=Date.now()),o=t(...p),n.key&&((a=n.debug)!=null&&a.call(n))){const y=Math.round((Date.now()-d)*100)/100,_=Math.round((Date.now()-g)*100)/100,S=_/16,C=(T,w)=>{for(T=String(T);T.length<w;)T=" "+T;return T};console.info(`%c⏱ ${C(_,5)} /${C(y,5)} ms`,`
     50`}function p_(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*PF(e){const t=[yF,bF,_F,wF];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield Oe(Og({type:"error",message:SF("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield Oe(NE(n))}function*IF(e){const t=yield Se(K.chapters.selectedIndex);if(t===null)return;const n=yield Se(K.chapters.list);switch(!0){case e.key==="up":t===0?yield Oe(pi(n.length-1)):yield Oe(pi(t-1));break;case e.key==="down":t===n.length-1?yield Oe(pi(0)):yield Oe(pi(t+1));break;case e.key==="esc":yield Oe(pi(null));break}}function*kF(){yield Oe(mg({onSuccess:{type:ag}}))}function RF(){return function*(){yield xo(PE,xF)}}function*LF(){const e=yield Jo();yield kt(Md,e),yield ze(YE,NF,e),yield ze(gg,DF,e),yield ze(QE,FF,e),yield ze(ZE,MF,e)}function*Md(e){const t=yield Se(K.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield Oe(A7(X.get(n,["result","transcript"],[]))),yield Oe(P7(X.get(r,["result","voices"],[])))}function*NF(e,t){const n=yield Se(K.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield kt(Md,e))}function*MF(e,t){const n=yield Se(K.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield kt(Md,e))}function*DF(e,t){const n=yield Se(K.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*FF(e){const t=yield Se(K.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield kt(Md,e))}function BF(){return function*(){yield xo(GE,LF)}}function*UF(){const e=yield Jo();yield kt(VF,e),yield kt(WF,e),yield kt(zF,e),yield kt(jF,e),yield ze(WE,qF,e),yield Z2(3e3,[dg,cg,fg,pg,hg],HF,e)}function*jF(e){const t=yield Se(K.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);n&&(yield Oe(zE({contributions:X.get(n,["contribution"],[])})))}function*HF(e){const t=yield Se(K.episode.id);if(!t)return;const n=yield Se(K.contributors.roles),r=yield Se(K.contributors.groups);let s=(yield Se(K.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:d,comment:p}){return{contributor_id:X.toInteger(l),role_id:X.toInteger(a)==0&&n.length>0?n[0].id:X.toInteger(a),group_id:X.toInteger(c)==0&&r.length>0?r[0].id:X.toInteger(c),position:X.toInteger(d),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:s})}function*VF(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});t&&(yield Oe(F7(X.get(t,"contributors",[]))))}function*WF(e){const{result:t}=yield e.get("contributors/roles");t&&(yield Oe(B7(X.get(t,"roles",[]))))}function*zF(e){const{result:t}=yield e.get("contributors/groups");t&&(yield Oe(U7(X.get(t,"groups",[]))))}function*qF(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,s=X.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:s});if(l)return;const a={id:o,realname:s};yield Oe(j7(a)),yield Oe(qE(a))}function KF(){return function*(){yield xo(e2,UF)}}const Do=X.get(window,["wp","data"],null),rx=X.get(window,["wp","media"],null),ts=document.querySelector('input[name="post_title"]'),GF=e=>ts==null?void 0:ts.addEventListener("change",t=>e(X.get(t,["target","value"])));function*XF(){const e=yield Se(K.settings.autoGenerateEpisodeTitle);typeof(Do==null?void 0:Do.subscribe)<"u"&&(yield ze(yield Nn(Oh,Do==null?void 0:Do.subscribe),ZF)),ts&&(yield ze(yield Nn(Oh,GF),ox)),e&&(yield ze(Id,h_),yield ze(Qs,h_)),rx&&(yield ze(KE,QF))}function JF(){return Do.select("core/editor").getEditedPostAttribute("featured_media")}function YF(){return Do.select("core/editor").getEditedPostAttribute("title")}function*ZF(){const e=YF(),t=JF(),n=t?Do.select("core").getMedia(t):null,r=yield Se(K.post.title),o=yield Se(K.post.featuredMedia);r!=e&&(yield Oe($h({prop:"title",value:e}))),X.get(o,["id"])!=X.get(n,["id"])&&(yield Oe($h({prop:"featured_media",value:n})))}function*ox(e){yield Oe($h({prop:"title",value:e}))}function*h_(){if(!ts)return;const e=yield Se(K.settings.blogTitleTemplate);if(!e)return;const t=yield Se(K.episode.title),n=yield Se(K.episode.number),r=yield Se(K.podcast.mnemonic),o=yield Se(K.settings.episodeNumberPadding),s=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");ts.value!=s&&(ts.value=s,yield ox(s))}function*QF(e){const t=X.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=rx({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 Oe({...t,payload:o})}finally{}}function e8(){return function*(){yield xo(Eo,XF)}}let jl={};function*t8(){const e=yield Jo();yield kt(r8,e),yield ze(Qs,o8),yield Th(1e3,Qs,m_,e),yield Th(50,BE,m_,e),yield ze(UE,i8),yield ze(VE,s8),yield ze(HE,l8),yield ze(Rd,a8),yield ze(Id,n8)}function*n8(){const e=yield Se(K.episode.auphonicWebhookConfig);e&&(yield Oe(I2(e.enabled)))}function*r8(e){const t=yield Se(K.episode.id),{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield Oe(PD())),yield Oe(zE(n)))}function o8(e){const t=X.get(e,["payload","prop"]),n=X.get(e,["payload","value"],null);t&&(jl[t]=n)}function*m_(e,t){const n=yield Se(K.episode.id);X.isEmpty(jl)||(yield e.put(`episodes/${n}`,jl,{query:{skip_validation:"1"}}),yield Oe(w7(jl)),jl={})}function*i8(e){Object.keys(e.payload).includes("slug")&&(yield Oe(S7()))}function*s8(){yield Oe(mg({onSuccess:{type:HE}}))}function*l8(e){yield Oe(wt({prop:"episode_poster",value:X.get(e,["payload"])}))}function*a8(e){if((yield Se(K.settings.imageAsset))!="post-thumbnail"||X.get(e,["payload","prop"])!="featured_media")return;const n=X.get(e,["payload","value","source_url"]);yield Oe(wt({prop:"poster",value:n}))}function u8(){return function*(){yield xo(FE,t8)}}function ix(e,t){return function(){return e.apply(t,arguments)}}const{toString:c8}=Object.prototype,{getPrototypeOf:Ag}=Object,Dd=(e=>t=>{const n=c8.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),so=e=>(e=e.toLowerCase(),t=>Dd(t)===e),Fd=e=>t=>typeof t===e,{isArray:dl}=Array,ya=Fd("undefined");function d8(e){return e!==null&&!ya(e)&&e.constructor!==null&&!ya(e.constructor)&&br(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sx=so("ArrayBuffer");function f8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sx(e.buffer),t}const p8=Fd("string"),br=Fd("function"),lx=Fd("number"),Bd=e=>e!==null&&typeof e=="object",h8=e=>e===!0||e===!1,fc=e=>{if(Dd(e)!=="object")return!1;const t=Ag(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},m8=so("Date"),g8=so("File"),v8=so("Blob"),y8=so("FileList"),b8=e=>Bd(e)&&br(e.pipe),_8=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||br(e.append)&&((t=Dd(e))==="formdata"||t==="object"&&br(e.toString)&&e.toString()==="[object FormData]"))},w8=so("URLSearchParams"),[S8,E8,x8,$8]=["ReadableStream","Request","Response","Headers"].map(so),C8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),dl(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 ax(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 Gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ux=e=>!ya(e)&&e!==Gi;function Ah(){const{caseless:e}=ux(this)&&this||{},t={},n=(r,o)=>{const s=e&&ax(t,o)||o;fc(t[s])&&fc(r)?t[s]=Ah(t[s],r):fc(r)?t[s]=Ah({},r):dl(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Fa(arguments[r],n);return t}const T8=(e,t,n,{allOwnKeys:r}={})=>(Fa(t,(o,s)=>{n&&br(o)?e[s]=ix(o,n):e[s]=o},{allOwnKeys:r}),e),O8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),A8=(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)},P8=(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&&Ag(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},I8=(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},k8=e=>{if(!e)return null;if(dl(e))return e;let t=e.length;if(!lx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},R8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ag(Uint8Array)),L8=(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])}},N8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},M8=so("HTMLFormElement"),D8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),g_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F8=so("RegExp"),cx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fa(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},B8=e=>{cx(e,(t,n)=>{if(br(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(br(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+"'")})}})},U8=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return dl(e)?r(e):r(String(e).split(t)),n},j8=()=>{},H8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Mp="abcdefghijklmnopqrstuvwxyz",v_="0123456789",dx={DIGIT:v_,ALPHA:Mp,ALPHA_DIGIT:Mp+Mp.toUpperCase()+v_},V8=(e=16,t=dx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function W8(e){return!!(e&&br(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const z8=e=>{const t=new Array(10),n=(r,o)=>{if(Bd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=dl(r)?[]:{};return Fa(r,(l,a)=>{const c=n(l,o+1);!ya(c)&&(s[a]=c)}),t[o]=void 0,s}}return r};return n(e,0)},q8=so("AsyncFunction"),K8=e=>e&&(Bd(e)||br(e))&&br(e.then)&&br(e.catch),fx=((e,t)=>e?setImmediate:t?((n,r)=>(Gi.addEventListener("message",({source:o,data:s})=>{o===Gi&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Gi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",br(Gi.postMessage)),G8=typeof queueMicrotask<"u"?queueMicrotask.bind(Gi):typeof process<"u"&&process.nextTick||fx,ee={isArray:dl,isArrayBuffer:sx,isBuffer:d8,isFormData:_8,isArrayBufferView:f8,isString:p8,isNumber:lx,isBoolean:h8,isObject:Bd,isPlainObject:fc,isReadableStream:S8,isRequest:E8,isResponse:x8,isHeaders:$8,isUndefined:ya,isDate:m8,isFile:g8,isBlob:v8,isRegExp:F8,isFunction:br,isStream:b8,isURLSearchParams:w8,isTypedArray:R8,isFileList:y8,forEach:Fa,merge:Ah,extend:T8,trim:C8,stripBOM:O8,inherits:A8,toFlatObject:P8,kindOf:Dd,kindOfTest:so,endsWith:I8,toArray:k8,forEachEntry:L8,matchAll:N8,isHTMLForm:M8,hasOwnProperty:g_,hasOwnProp:g_,reduceDescriptors:cx,freezeMethods:B8,toObjectSet:U8,toCamelCase:D8,noop:j8,toFiniteNumber:H8,findKey:ax,global:Gi,isContextDefined:ux,ALPHABET:dx,generateString:V8,isSpecCompliantForm:W8,toJSONObject:z8,isAsyncFn:q8,isThenable:K8,setImmediate:fx,asap:G8};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,this.status=o.status?o.status:null)}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.status}}});const px=nt.prototype,hx={};["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=>{hx[e]={value:e}});Object.defineProperties(nt,hx);Object.defineProperty(px,"isAxiosError",{value:!0});nt.from=(e,t,n,r,o,s)=>{const l=Object.create(px);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};const X8=null;function Ph(e){return ee.isPlainObject(e)||ee.isArray(e)}function mx(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function y_(e,t,n){return e?e.concat(t).map(function(o,s){return o=mx(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function J8(e){return ee.isArray(e)&&!e.some(Ph)}const Y8=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Ud(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(S,C){return!ee.isUndefined(C[S])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function d(_){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(_,S,C){let T=_;if(_&&!C&&typeof _=="object"){if(ee.endsWith(S,"{}"))S=r?S:S.slice(0,-2),_=JSON.stringify(_);else if(ee.isArray(_)&&J8(_)||(ee.isFileList(_)||ee.endsWith(S,"[]"))&&(T=ee.toArray(_)))return S=mx(S),T.forEach(function(E,O){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?y_([S],O,s):l===null?S:S+"[]",d(E))}),!1}return Ph(_)?!0:(t.append(y_(C,S,s),d(_)),!1)}const h=[],g=Object.assign(Y8,{defaultVisitor:p,convertValue:d,isVisitable:Ph});function y(_,S){if(!ee.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(_),ee.forEach(_,function(T,w){(!(ee.isUndefined(T)||T===null)&&o.call(t,T,ee.isString(w)?w.trim():w,S,g))===!0&&y(T,S?S.concat(w):[w])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function b_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Pg(e,t){this._pairs=[],e&&Ud(e,this,t)}const gx=Pg.prototype;gx.append=function(t,n){this._pairs.push([t,n])};gx.toString=function(t){const n=t?function(r){return t.call(this,r,b_)}:b_;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Z8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vx(e,t,n){if(!t)return e;const r=n&&n.encode||Z8,o=n&&n.serialize;let s;if(o?s=o(t,n):s=ee.isURLSearchParams(t)?t.toString():new Pg(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class __{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)})}}const yx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Q8=typeof URLSearchParams<"u"?URLSearchParams:Pg,eB=typeof FormData<"u"?FormData:null,tB=typeof Blob<"u"?Blob:null,nB={isBrowser:!0,classes:{URLSearchParams:Q8,FormData:eB,Blob:tB},protocols:["http","https","file","blob","url","data"]},Ig=typeof window<"u"&&typeof document<"u",Ih=typeof navigator=="object"&&navigator||void 0,rB=Ig&&(!Ih||["ReactNative","NativeScript","NS"].indexOf(Ih.product)<0),oB=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",iB=Ig&&window.location.href||"http://localhost",sB=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ig,hasStandardBrowserEnv:rB,hasStandardBrowserWebWorkerEnv:oB,navigator:Ih,origin:iB},Symbol.toStringTag,{value:"Module"})),er={...sB,...nB};function lB(e,t){return Ud(e,new er.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return er.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function aB(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function uB(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 bx(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]=uB(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(aB(r),o,n,0)}),n}return null}function cB(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(0,JSON.stringify)(e)}const Ba={transitional:yx,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(bx(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 lB(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ud(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),cB(t)):t}],transformResponse:[function(t){const n=this.transitional||Ba.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:er.classes.FormData,Blob:er.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=>{Ba.headers[e]={}});const dB=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"]),fB=e=>{const t={};let n,r,o;return e&&e.split(`
     51`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&dB[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},w_=Symbol("internals");function Rl(e){return e&&String(e).trim().toLowerCase()}function pc(e){return e===!1||e==null?e:ee.isArray(e)?e.map(pc):String(e)}function pB(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 hB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dp(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 mB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function gB(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 tr{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,c,d){const p=Rl(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||d===!0||d===void 0&&o[h]!==!1)&&(o[h||c]=pc(a))}const l=(a,c)=>ee.forEach(a,(d,p)=>s(d,p,c));if(ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ee.isString(t)&&(t=t.trim())&&!hB(t))l(fB(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=Rl(t),t){const r=ee.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return pB(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=Rl(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=Rl(l),l){const a=ee.findKey(r,l);a&&(!n||Dp(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||Dp(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]=pc(o),delete n[s];return}const a=t?mB(s):String(s).trim();a!==s&&delete n[s],n[a]=pc(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`)}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[w_]=this[w_]={accessors:{}}).accessors,o=this.prototype;function s(l){const a=Rl(l);r[a]||(gB(o,l),r[a]=!0)}return ee.isArray(t)?t.forEach(s):s(t),this}}tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(tr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ee.freezeMethods(tr);function Fp(e,t){const n=this||Ba,r=t||n,o=tr.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 _x(e){return!!(e&&e.__CANCEL__)}function fl(e,t,n){nt.call(this,e??"canceled",nt.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(fl,nt,{__CANCEL__:!0});function wx(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 vB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yB(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 d=Date.now(),p=r[s];l||(l=d),n[o]=c,r[o]=d;let h=s,g=0;for(;h!==o;)g+=n[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-l<t)return;const y=p&&d-p;return y?Math.round(g*1e3/y):void 0}}function bB(e,t){let n=0,r=1e3/t,o,s;const l=(d,p=Date.now())=>{n=p,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?l(d,p):(o=d,s||(s=setTimeout(()=>{s=null,l(o)},r-h)))},()=>o&&l(o)]}const Gc=(e,t,n=3)=>{let r=0;const o=yB(50,250);return bB(s=>{const l=s.loaded,a=s.lengthComputable?s.total:void 0,c=l-r,d=o(c),p=l<=a;r=l;const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&p?(a-l)/d:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},S_=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},E_=e=>(...t)=>ee.asap(()=>e(...t)),_B=er.hasStandardBrowserEnv?function(){const t=er.navigator&&/(msie|trident)/i.test(er.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}}(),wB=er.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 SB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function EB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sx(e,t){return e&&!SB(t)?EB(e,t):t}const x_=e=>e instanceof tr?{...e}:e;function cs(e,t){t=t||{};const n={};function r(d,p,h){return ee.isPlainObject(d)&&ee.isPlainObject(p)?ee.merge.call({caseless:h},d,p):ee.isPlainObject(p)?ee.merge({},p):ee.isArray(p)?p.slice():p}function o(d,p,h){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d,h)}else return r(d,p,h)}function s(d,p){if(!ee.isUndefined(p))return r(void 0,p)}function l(d,p){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function a(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}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:(d,p)=>o(x_(d),x_(p),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,g=h(e[p],t[p],p);ee.isUndefined(g)&&h!==a||(n[p]=g)}),n}const Ex=e=>{const t=cs({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:a}=t;t.headers=l=tr.from(l),t.url=vx(Sx(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(er.hasStandardBrowserEnv||er.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...p].join("; "))}}if(er.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(t)),r||r!==!1&&_B(t.url))){const d=o&&s&&wB.read(s);d&&l.set(o,d)}return t},xB=typeof XMLHttpRequest<"u",$B=xB&&function(e){return new Promise(function(n,r){const o=Ex(e);let s=o.data;const l=tr.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=o,p,h,g,y,_;function S(){y&&y(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function T(){if(!C)return;const E=tr.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:E,config:e,request:C};wx(function(k){n(k),S()},function(k){r(k),S()},x),C=null}"onloadend"in C?C.onloadend=T:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(T)},C.onabort=function(){C&&(r(new nt("Request aborted",nt.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new nt("Network Error",nt.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||yx;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new nt(O,x.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,e,C)),C=null},s===void 0&&l.setContentType(null),"setRequestHeader"in C&&ee.forEach(l.toJSON(),function(O,x){C.setRequestHeader(x,O)}),ee.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),a&&a!=="json"&&(C.responseType=o.responseType),d&&([g,_]=Gc(d,!0),C.addEventListener("progress",g)),c&&C.upload&&([h,y]=Gc(c),C.upload.addEventListener("progress",h),C.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=E=>{C&&(r(!E||E.type?new fl(null,e,C):E),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=vB(o.url);if(w&&er.protocols.indexOf(w)===-1){r(new nt("Unsupported protocol "+w+":",nt.ERR_BAD_REQUEST,e));return}C.send(s||null)})},CB=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,a();const p=d instanceof Error?d:this.reason;r.abort(p instanceof nt?p:new fl(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new nt(`timeout ${t} of ms exceeded`,nt.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>ee.asap(a),c}},TB=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},OB=async function*(e,t){for await(const n of AB(e))yield*TB(n,t)},AB=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},$_=(e,t,n,r)=>{const o=OB(e,t);let s=0,l,a=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:p}=await o.next();if(d){a(),c.close();return}let h=p.byteLength;if(n){let g=s+=h;n(g)}c.enqueue(new Uint8Array(p))}catch(d){throw a(d),d}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},jd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xx=jd&&typeof ReadableStream=="function",PB=jd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$x=(e,...t)=>{try{return!!e(...t)}catch{return!1}},IB=xx&&$x(()=>{let e=!1;const t=new Request(er.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),C_=64*1024,kh=xx&&$x(()=>ee.isReadableStream(new Response("").body)),Xc={stream:kh&&(e=>e.body)};jd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xc[t]&&(Xc[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 kB=async e=>{if(e==null)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e))return(await new Request(er.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(e)||ee.isArrayBuffer(e))return e.byteLength;if(ee.isURLSearchParams(e)&&(e=e+""),ee.isString(e))return(await PB(e)).byteLength},RB=async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n??kB(t)},LB=jd&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:g}=Ex(e);d=d?(d+"").toLowerCase():"text";let y=CB([o,s&&s.toAbortSignal()],l),_;const S=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let C;try{if(c&&IB&&n!=="get"&&n!=="head"&&(C=await RB(p,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),I;if(ee.isFormData(r)&&(I=x.headers.get("content-type"))&&p.setContentType(I),x.body){const[k,P]=S_(C,Gc(E_(c)));r=$_(x.body,C_,k,P)}}ee.isString(h)||(h=h?"include":"omit");const T="credentials"in Request.prototype;_=new Request(t,{...g,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:T?h:void 0});let w=await fetch(_);const E=kh&&(d==="stream"||d==="response");if(kh&&(a||E&&S)){const x={};["status","statusText","headers"].forEach(H=>{x[H]=w[H]});const I=ee.toFiniteNumber(w.headers.get("content-length")),[k,P]=a&&S_(I,Gc(E_(a),!0))||[];w=new Response($_(w.body,C_,k,()=>{P&&P(),S&&S()}),x)}d=d||"text";let O=await Xc[ee.findKey(Xc,d)||"text"](w,e);return!E&&S&&S(),await new Promise((x,I)=>{wx(x,I,{data:O,headers:tr.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:_})})}catch(T){throw S&&S(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,e,_),{cause:T.cause||T}):nt.from(T,T&&T.code,e,_)}}),Rh={http:X8,xhr:$B,fetch:LB};ee.forEach(Rh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const T_=e=>`- ${e}`,NB=e=>ee.isFunction(e)||e===null||e===!1,Cx={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,!NB(n)&&(r=Rh[(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`+s.map(T_).join(`
     54`):" "+T_(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:Rh};function Bp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fl(null,e)}function O_(e){return Bp(e),e.headers=tr.from(e.headers),e.data=Fp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cx.getAdapter(e.adapter||Ba.adapter)(e).then(function(r){return Bp(e),r.data=Fp.call(e,e.transformResponse,r),r.headers=tr.from(r.headers),r},function(r){return _x(r)||(Bp(e),r&&r.response&&(r.response.data=Fp.call(e,e.transformResponse,r.response),r.response.headers=tr.from(r.response.headers))),Promise.reject(r)})}const Tx="1.7.7",kg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const A_={};kg.transitional=function(t,n,r){function o(s,l){return"[Axios v"+Tx+"] 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&&!A_[l]&&(A_[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 MB(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)}}const Lh={assertOptions:MB,validators:kg},ui=Lh.validators;class ns{constructor(t){this.defaults=t,this.interceptors={request:new __,response:new __}}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=cs(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Lh.assertOptions(r,{silentJSONParsing:ui.transitional(ui.boolean),forcedJSONParsing:ui.transitional(ui.boolean),clarifyTimeoutError:ui.transitional(ui.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:Lh.assertOptions(o,{encode:ui.function,serialize:ui.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=tr.concat(l,s);const a=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let p,h=0,g;if(!c){const _=[O_.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,d),g=_.length,p=Promise.resolve(n);h<g;)p=p.then(_[h++],_[h++]);return p}g=a.length;let y=n;for(h=0;h<g;){const _=a[h++],S=a[h++];try{y=_(y)}catch(C){S.call(this,C);break}}try{p=O_.call(this,y)}catch(_){return Promise.reject(_)}for(h=0,g=d.length;h<g;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=cs(this.defaults,t);const n=Sx(t.baseURL,t.url);return vx(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){ns.prototype[t]=function(n,r){return this.request(cs(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(cs(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}ns.prototype[t]=n(),ns.prototype[t+"Form"]=n(!0)});class Rg{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 fl(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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Rg(function(o){t=o}),cancel:t}}}function DB(e){return function(n){return e.apply(null,n)}}function FB(e){return ee.isObject(e)&&e.isAxiosError===!0}const Nh={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(Nh).forEach(([e,t])=>{Nh[t]=e});function Ox(e){const t=new ns(e),n=ix(ns.prototype.request,t);return ee.extend(n,ns.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ox(cs(e,o))},n}const sn=Ox(Ba);sn.Axios=ns;sn.CanceledError=fl;sn.CancelToken=Rg;sn.isCancel=_x;sn.VERSION=Tx;sn.toFormData=Ud;sn.AxiosError=nt;sn.Cancel=sn.CanceledError;sn.all=function(t){return Promise.all(t)};sn.spread=DB;sn.isAxiosError=FB;sn.mergeConfig=cs;sn.AxiosHeaders=tr;sn.formToJSON=e=>bx(ee.isHTMLForm(e)?new FormData(e):e);sn.getAdapter=Cx.getAdapter;sn.HttpStatusCode=Nh;sn.default=sn;const Lg=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...Ax({bearer:e}),...t}),Ax=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),BB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:s,query:l}={})=>fetch(cl(r?r(o):o,l),{method:n,headers:Lg({bearer:t},s)}).then(Da(e)),UB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(cl(r?r(o):o,a),{method:n,headers:Lg({bearer:t},l),body:JSON.stringify(s)}).then(Da(e)),jB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(cl(r?r(o):o,a),{method:n,headers:Lg({bearer:t},l),body:JSON.stringify(s)}).then(Da(e));function HB(e){console.log("default progress",e)}const VB=({errorHandler:e,bearer:t,urlProcessor:n})=>(r,o,{query:s,hooks:l}={})=>{const a=new FormData,c=(l==null?void 0:l.onUploadProgress)||HB;if(o.file){const d=o.track_id||"input_file";a.append(d,o.file)}return o.image&&a.append("image",o.image),sn.post(cl(n?n(r):r,s),a,{headers:{...Ax({bearer:t})},onUploadProgress:c})},WB=X.curry(({base:e,bearer:t,errorHandler:n})=>({get:BB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:UB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:jB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:VB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*zB(){const e="https://auphonic.com/api",t=yield Se(K.auphonic.token);return WB({base:e,bearer:t,errorHandler:function(r){Hd.dispatch(Og({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let Yu;const qB=new Uint8Array(16);function KB(){if(!Yu&&(Yu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Yu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yu(qB)}const wn=[];for(let e=0;e<256;++e)wn.push((e+256).toString(16).slice(1));function GB(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 XB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),P_={randomUUID:XB};function JB(e,t,n){if(P_.randomUUID&&!t&&!e)return P_.randomUUID();e=e||{};const r=e.random||(e.rng||KB)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,GB(r)}function*YB(){const e=yield Jo();yield kt(ZB,e),yield ze(_g,m9),yield ze(yg,h9)}function*ZB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield Oe(rD(t)),yield kt(QB),yield ze(Hc,v9,e),yield ze(wg,g9,e),yield ze(Hc,y9,e),yield ze(Vc,b9,e),yield ze(bg,S9),yield ze(m2,_9,e),yield ze(Wc,k_,e),yield ze(Vc,k_,e))}function*QB(){const e=yield zB(),{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 Oe(x2(n)),yield Oe(sD(t)),yield Oe(lD([{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 Nn(w9),yield Nn(E9),yield Oe(nD()),yield ze(f2,f9,e),yield ze(p2,p9,e),yield ze(T2,d9,e),yield ze($2,Ix,e),yield ze(C2,r9,e),yield ze(E2,t9,e),yield ze(A2,n9,e),yield Nn(e9,e)}function*e9(e){for((yield Se(K.episode.isAuphonicProductionRunning))&&(yield xh([Nn(I_,e),Qr(Wc)]));;)yield Qr(_2),yield xh([Nn(I_,e),Qr(Wc)])}function*I_(e){for(;;){let t=yield Se(K.auphonic.productionId);t||(yield Oe(a_()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield Oe(ps(n)),n.status==3&&(yield Oe(wt({prop:"slug",value:n.output_basename}))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield Oe(a_())),yield Jm(2500)}}function*t9(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield Oe(x2(t))}function*n9(e,t){let n=yield Se(K.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*r9(e,t){const n=t.payload.uuid;yield Nn(Ix,e,{type:h2,payload:{uuid:n}});const r=yield Se(K.episode.auphonicWebhookConfig),o=yield Se(K.auphonic.publishWhenDone),s=yield Se(K.runtime.baseUrl),l=yield Se(K.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 d=yield e.post(`production/${n}/start.json`,{});d.result?yield Oe(ps(d.result.data)):console.warn(d.error.error_message),yield Oe(cD())}function*o9(e,t,n,r){var d;let o=n.payload;const s=o.id,l=o.id_new,a=!!((d=n.upload)!=null&&d.file);delete o.id_new,o.id=l;const c=r(o.id);switch(n.state){case"edited":yield e.post(`production/${t}/multi_input_files/${s}.json`,o),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break;case"new":yield e.post(`production/${t}.json`,{multi_input_files:[n.payload]}),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break}}const Px=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 i9(e){const t=X.get(e,["auphonic","file_selections"]),n=X.get(e,["auphonic","production","uuid"],"");return Px(X.get(t,n))}function s9(e){const t=X.get(e,["auphonic","file_selections"]),n=X.get(e,["auphonic","production","uuid"],"");return X.get(e,["auphonic","tracks"],[]).reduce((o,s,l)=>(o.push(Px(X.get(t,`${n}_t${l}`))),o),[])}function l9(e){const t=X.get(e,["auphonic","production","is_multitrack"],!1),n=X.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=s9(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 a9(e){let t=X.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 Mt(l.start).pretty}))}}function u9(e){const t=X.get(e,["auphonic","production","is_multitrack"],!1),n=a9(e);let r={};if(!t){const o=i9(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*c9(e){try{for(;;){const t=yield Qr(e);yield Oe(yD(t))}}finally{(yield JN())&&e.close()}}function*Ix(e,t){yield Oe(dD());const n=t.payload.uuid,r=yield Se(u9),o=yield Se(l9);yield e.delete(`production/${n}/chapters.json`);const s=yield Nn(Qm);yield kt(c9,s);const l=p=>h=>{if(h.total){const g=Math.round(h.loaded*100/h.total),y={key:p,progress:g};s.put(y)}};yield mE(o.map(p=>Nn(o9,e,n,p,l)));const a=r.input_file;typeof a=="object"&&(yield Nn(e.upload,`production/${n}/upload.json`,{file:a},{hooks:{onUploadProgress:l("singletrack")}}),delete r.input_file);const c=r.image;fetch(c).then(p=>p.blob()).then(p=>{const g="image."+(p.type.includes("png")?"png":"jpg"),y=new File([p],g,{type:p.type});e.upload(`production/${n}/upload.json`,{image:y},{hooks:{onUploadProgress:l("poster")}})}),delete r.image;const{result:{data:d}}=yield e.post(`production/${n}.json`,r);yield Oe(ps(d)),yield Oe(fD())}function*d9(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield Oe(aD({uuid:n,files:r.data}))}function*kx(){const e=yield Se(K.episode.title),t=yield Se(K.post.title);return e||t||"New Production"}function*f9(e){const t=yield Se(K.auphonic.preset),n=yield kx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield Oe(ps(o))}function*p9(e){const t=yield Se(K.auphonic.preset),n=yield kx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield Oe(ps(o))}function*h9(e){const t=yield Se(K.auphonic.currentFileSelection);(yield Se(K.auphonic.fileSelections))[t].fileSelection||(yield Oe(O2({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*m9(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield Oe(T2(n)))}function*g9(e){const t=yield Se(K.episode.auphonicWebhookConfig),n=yield Se(K.auphonic.publishWhenDone);!t||t.enabled==n||(yield Oe(wt({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*v9(e){const t=yield Se(K.episode.auphonicWebhookConfig),n=yield Se(K.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=JB();yield Oe(wt({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*y9(e){const t=yield Se(K.episode.id),n=yield Se(K.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*b9(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*_9(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!0})}function*k_(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!1})}function*w9(){const e=yield Se(K.episode.id),t=yield Se(K.episode.auphonicProductionId),n=yield Se(K.auphonic.productionId),r=yield Se(K.auphonic.productions);if(!n&&t&&e){const o=r.find(s=>s.uuid==t);o&&(yield Oe(ps(o)))}}function*S9(){const e=yield Se(K.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*E9(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield Oe(Sg(e))))}function x9(){return function*(){yield xo(l2,YB)}}function*$9(){const e=yield Jo();yield kt(C9,e)}function*C9(e){const t=yield Se(K.episode.id);yield Se(K.episode.slug);const{result:{results:n}}=yield e.get(`episodes/${t}/media`);n&&(yield Oe($D(n))),yield ze(zc,P9,e),yield ze(qc,I9,e),yield ze(D2,L9,e),yield nF(jE,k9,e),yield Th(2e3,Rd,R9,e),yield Z2(2e3,[zc,qc,Eg],A9,e),yield ze(F2,T9),yield ze(xg,O9),yield Oe(xD())}function*T9(){yield Oe(mg({onSuccess:{type:xg}}))}function*O9(e){const n=X.get(e,["payload"]).split("\\").pop().split("/").pop().split(".").shift();yield Oe(wt({prop:"slug",value:n})),yield Oe(m7())}function*A9(e){const t=yield Se(K.mediafiles.files),n=yield Se(K.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 M9(l)).toString()}parseFloat(n)!==parseFloat(s)&&(yield Oe(wt({prop:"duration",value:s})))}function*P9(e,t){const n=yield Se(K.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 Oe(Ch(s))}function*I9(e,t){const n=yield Se(K.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*k9(e){const t=yield Se(K.episode.id),n=yield Se(K.mediafiles.files);yield mE(n.map(r=>kt(Rx,e,t,r.asset_id)))}function*R9(e,t){const n=yield Se(K.episode.id),r=yield Se(K.episode.slug);if((yield Se(K.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 Oe(wt({prop:"slug",value:l.slug})))}}function*Rx(e,t,n){const o=(yield Se(K.mediafiles.files)).find(c=>c.asset_id==n);yield Oe(Ch({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 Oe(Ch(a))}function*L9(e,t){const n=yield Se(K.episode.id),r=t.payload;yield Rx(e,n,r)}async function N9(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function M9(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await N9(t),t.duration}function D9(){return function*(){yield xo(L2,$9)}}function*F9(){const e=yield Jo();yield kt(B9,e),yield ze($g,U9,e)}function*B9(e){const t=yield Se(K.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=X.get(n,["result","relatedEpisodes"],[]),s=X.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield Oe(W2(l)),yield Oe(ND(s))}function*U9(e,t){const n=yield Se(K.episode.id),r=yield Se(K.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function j9(){return function*(){yield xo(H2,F9)}}function*H9(){const e=yield Jo();yield kt(V9,e)}function*V9(e){const t=yield Se(K.settings.modules),{result:n}=yield e.get("shows");DD&&(yield Oe(q2(n)),yield ze(Qs,z9),t.includes("automatic_numbering")&&(yield ze(Kc,q9,e)),t.includes("auphonic")&&(yield ze(Kc,W9,n)))}function*W9(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield Oe(Sg(n.auphonic_preset)))}function*z9(e){const t=X.get(e,["payload","prop"]),n=X.get(e,["payload","value"],null);t==="show"&&(yield Oe(K2(n)))}function*q9(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield Oe(wt({prop:"number",value:n.toString()}))}function K9(){return function*(){yield xo(Cg,H9)}}const Sr=AM(),G9=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||MS,Hd=zm(YD,G9(mN(Sr)));Sr.run(rF());Sr.run(hF());Sr.run(RF());Sr.run(BF());Sr.run(KF());Sr.run(e8());Sr.run(u8());Sr.run(pF());Sr.run(x9());Sr.run(D9());Sr.run(j9());Sr.run(K9());const X9=ve({props:{name:{type:String,default:null},title:{type:String,default:null}}}),Be=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},J9={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},Y9={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},Z9={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},Q9={class:"ml-4 mt-2"},eU=["for"],tU={class:"ml-4 mt-2 flex flex-shrink-0"};function nU(e,t,n,r,o,s){return N(),V("section",J9,[v("div",Y9,[v("div",Z9,[v("div",Q9,[v("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},U(e.title),9,eU)]),v("div",tU,[_r(e.$slots,"actions")])])]),v("div",null,[_r(e.$slots,"default")])])}const Mn=Be(X9,[["render",nU]]);function rU(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"},[v("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 Lx(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function Nx(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"},[v("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 Mx(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"},[v("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 oU(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"},[v("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 iU(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function sU(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"},[v("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 lU(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Dx(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function aU(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function uU(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"},[v("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 cU(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"},[v("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 Fx(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"},[v("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 Bx(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"},[v("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 dU(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"},[v("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 fU(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"},[v("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 Ux(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"},[v("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 jx(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"},[v("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 Hx(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"},[v("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 Ng(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function pU(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"},[v("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 Vx(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"},[v("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 Ua(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function Ll(e,t,n){let r=n.initialDeps??[],o;return()=>{var s,l,a,c;let d;n.key&&((s=n.debug)!=null&&s.call(n))&&(d=Date.now());const p=e();if(!(p.length!==r.length||p.some((y,_)=>r[_]!==y)))return o;r=p;let g;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(g=Date.now()),o=t(...p),n.key&&((a=n.debug)!=null&&a.call(n))){const y=Math.round((Date.now()-d)*100)/100,_=Math.round((Date.now()-g)*100)/100,S=_/16,C=(T,w)=>{for(T=String(T);T.length<w;)T=" "+T;return T};console.info(`%c⏱ ${C(_,5)} /${C(y,5)} ms`,`
    5656            font-size: .6rem;
    5757            font-weight: bold;
    58             color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,o),o}}function Up(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const rU=(e,t)=>Math.abs(e-t)<1,oU=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},iU=e=>e,sU=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},lU=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=l=>{const{width:a,height:c}=l;t({width:Math.round(a),height:Math.round(c)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(l=>{const a=l[0];if(a!=null&&a.borderBoxSize){const c=a.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},k_={passive:!0},aU=typeof window>"u"?!0:"onscrollend"in window,uU=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const s=aU?()=>{}:oU(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=d=>()=>{o=n[e.options.horizontal?"scrollLeft":"scrollTop"],s(),t(o,d)},a=l(!0),c=l(!1);return c(),n.addEventListener("scroll",a,k_),n.addEventListener("scrollend",c,k_),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",c)}},cU=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},dU=(e,{adjustments:t=0,behavior:n},r)=>{var o,s;const l=e+t;(s=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class fU{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var s;return(s=r())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=r())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:iU,rangeExtractor:sU,onChange:()=>{},measureElement:cU,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,...n}},this.notify=(n,r)=>{var o,s;const{startIndex:l,endIndex:a}=this.range??{startIndex:void 0,endIndex:void 0},c=this.calculateRange();(n||l!==(c==null?void 0:c.startIndex)||a!==(c==null?void 0:c.endIndex))&&((s=(o=this.options).onChange)==null||s.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{var n;const r=this.options.getScrollElement();this.scrollElement!==r&&(this.cleanup(),this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.scrollOffset<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=s,this.notify(l!==s,s)})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.getMeasurementOptions=Ll(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,r,o,s)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:s}),{key:!1}),this.getFurthestMeasurement=(n,r)=>{const o=new Map,s=new Map;for(let l=r-1;l>=0;l--){const a=n[l];if(o.has(a.lane))continue;const c=s.get(a.lane);if(c==null||a.end>c.end?s.set(a.lane,a):a.end<c.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((l,a)=>l.end===a.end?l.index-a.index:l.end-a.end)[0]:void 0},this.getMeasurements=Ll(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:s},l)=>{const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let d=a;d<n;d++){const p=s(d),h=this.options.lanes===1?c[d-1]:this.getFurthestMeasurement(c,d),g=h?h.end+this.options.gap:r+o,y=l.get(p),_=typeof y=="number"?y:this.options.estimateSize(d),S=g+_,C=h?h.lane:d%this.options.lanes;c[d]={index:d,start:g,size:_,end:S,key:p,lane:C}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ll(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,r,o)=>this.range=n.length>0&&r>0?pU({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ll(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,s)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.measurementsCache[this.indexFromElement(n)];if(!o||!n.isConnected){this.measureElementCache.forEach((a,c)=>{a===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const s=this.measureElementCache.get(o.key);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.measureElementCache.set(o.key,n));const l=this.options.measureElement(n,r,this);this.resizeItem(o,l)},this.resizeItem=(n,r)=>{const o=this.itemSizeCache.get(n.key)??n.size,s=r-o;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,s,this):n.start<this.scrollOffset+this.scrollAdjustments)&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!0,!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=Ll(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let s=0,l=n.length;s<l;s++){const a=n[s],c=r[a];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();return Up(r[jx(0,r.length-1,o=>Up(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize();r==="auto"&&(n<=this.scrollOffset?r="start":n>=this.scrollOffset+o?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-o:r==="center"&&(n=n-o/2);const s=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-this.getSize();return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=Up(this.getMeasurements()[n]);if(r==="auto")if(o.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)r="end";else if(o.start<=this.scrollOffset+this.options.scrollPaddingStart)r="start";else return[this.scrollOffset,r];const s=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r),r]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[s,l]=this.getOffsetForIndex(n,r);this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,l);rU(c,this.scrollOffset)||this.scrollToIndex(n,{align:l,behavior:o})}else this.scrollToIndex(n,{align:l,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{var n,r;this.itemSizeCache=new Map,(r=(n=this.options).onChange)==null||r.call(n,this,!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.notify(!1,!1)}}const jx=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,s=n(o);if(s<r)e=o+1;else if(s>r)t=o-1;else return o}return e>0?e-1:0};function pU({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,s=jx(0,r,a=>e[a].start,n);let l=s;for(;l<r&&e[l].end<n+t;)l++;return{startIndex:s,endIndex:l}}function hU(e){const t=new fU(jn(e)),n=sd(t),r=t._didMount();return Ft(()=>jn(e).getScrollElement(),o=>{o&&t._willUpdate()},{immediate:!0}),Ft(()=>jn(e),o=>{t.setOptions({...o,onChange:(s,l)=>{var a;Xp(n),(a=o.onChange)==null||a.call(o,s,l)}}),t._willUpdate(),Xp(n)},{immediate:!0}),f1(r),n}function mU(e){return hU(ce(()=>({observeElementRect:lU,observeElementOffset:uU,scrollToFn:dU,...jn(e)})))}function Ng(e,t,n){let r=_e(n==null?void 0:n.value),o=ce(()=>e.value!==void 0);return[ce(()=>o.value?e.value:r.value),function(s){return o.value||(r.value=s),t==null?void 0:t(s)}]}function Mg(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Si(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Mg(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=Si();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function gU(){let e=Si();return Qt(()=>e.dispose()),e}function vU(){let e=gU();return t=>{e.dispose(),e.nextFrame(t)}}let yU=Symbol("headlessui.useid"),bU=0;function zt(){return kt(yU,()=>`${++bU}`)()}function ue(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function Tt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Tt),r}var _U=Object.defineProperty,wU=(e,t,n)=>t in e?_U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R_=(e,t,n)=>(wU(e,typeof t!="symbol"?t+"":t,n),n);let SU=class{constructor(){R_(this,"current",this.detect()),R_(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},ja=new SU;function Vr(e){if(ja.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ue(e);if(t)return t.ownerDocument}return document}let Mh=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Pn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Pn||{}),ba=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ba||{}),EU=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(EU||{});function Vd(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Mh)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Wd=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Wd||{});function Dg(e,t=0){var n;return e===((n=Vr(e))==null?void 0:n.body)?!1:Tt(t,{0(){return e.matches(Mh)},1(){let r=e;for(;r!==null;){if(r.matches(Mh))return!0;r=r.parentElement}return!1}})}var xU=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(xU||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ns(e){e==null||e.focus({preventScroll:!0})}let $U=["textarea","input"].join(",");function CU(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,$U))!=null?n:!1}function Fg(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),s=t(r);if(o===null||s===null)return 0;let l=o.compareDocumentPosition(s);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Jr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var s;let l=(s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?s:document,a=Array.isArray(e)?n?Fg(e):e:Vd(e);o.length>0&&a.length>1&&(a=a.filter(_=>!o.includes(_))),r=r??l.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=t&32?{preventScroll:!0}:{},h=0,g=a.length,y;do{if(h>=g||h+g<=0)return 0;let _=d+h;if(t&16)_=(_+g)%g;else{if(_<0)return 3;if(_>=g)return 1}y=a[_],y==null||y.focus(p),h+=c}while(y!==l.activeElement);return t&6&&CU(y)&&y.select(),2}function Hx(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function TU(){return/Android/gi.test(window.navigator.userAgent)}function Vx(){return Hx()||TU()}function Zu(e,t,n){ja.isServer||jt(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function Wx(e,t,n){ja.isServer||jt(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function zd(e,t,n=ce(()=>!0)){function r(s,l){if(!n.value||s.defaultPrevented)return;let a=l(s);if(a===null||!a.getRootNode().contains(a))return;let c=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let d of c){if(d===null)continue;let p=d instanceof HTMLElement?d:ue(d);if(p!=null&&p.contains(a)||s.composed&&s.composedPath().includes(p))return}return!Dg(a,Wd.Loose)&&a.tabIndex!==-1&&s.preventDefault(),t(s,a)}let o=_e(null);Zu("pointerdown",s=>{var l,a;n.value&&(o.value=((a=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:a[0])||s.target)},!0),Zu("mousedown",s=>{var l,a;n.value&&(o.value=((a=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:a[0])||s.target)},!0),Zu("click",s=>{Vx()||o.value&&(r(s,()=>o.value),o.value=null)},!0),Zu("touchend",s=>r(s,()=>s.target instanceof HTMLElement?s.target:null),!0),Wx("blur",s=>r(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function L_(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function qd(e,t){let n=_e(L_(e.value.type,e.value.as));return vt(()=>{n.value=L_(e.value.type,e.value.as)}),jt(()=>{var r;n.value||ue(t)&&ue(t)instanceof HTMLButtonElement&&!((r=ue(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}function N_(e){return[e.screenX,e.screenY]}function zx(){let e=_e([-1,-1]);return{wasMoved(t){let n=N_(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=N_(t)}}}function OU({container:e,accept:t,walk:n,enabled:r}){jt(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let s=Vr(e);if(!s)return;let l=Object.assign(c=>t(c),{acceptNode:t}),a=s.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,l,!1);for(;a.nextNode();)n(a.currentNode)})}var ir=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ir||{}),pi=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pi||{});function Et({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var s;let l=Kx(r,n),a=Object.assign(o,{props:l});if(e||t&2&&l.static)return jp(a);if(t&1){let c=(s=l.unmount)==null||s?0:1;return Tt(c,{0(){return null},1(){return jp({...o,props:{...l,hidden:!0,style:{display:"none"}}})}})}return jp(a)}function jp({props:e,attrs:t,slots:n,slot:r,name:o}){var s,l;let{as:a,...c}=hs(e,["unmount","static"]),d=(s=n.default)==null?void 0:s.call(n,r),p={};if(r){let h=!1,g=[];for(let[y,_]of Object.entries(r))typeof _=="boolean"&&(h=!0),_===!0&&g.push(y);h&&(p["data-headlessui-state"]=g.join(" "))}if(a==="template"){if(d=qx(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[h,...g]=d??[];if(!AU(h)||g.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(S=>S.trim()).filter((S,C,T)=>T.indexOf(S)===C).sort((S,C)=>S.localeCompare(C)).map(S=>`  - ${S}`).join(`
     58            color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,o),o}}function Up(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const hU=(e,t)=>Math.abs(e-t)<1,mU=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},gU=e=>e,vU=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},yU=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=l=>{const{width:a,height:c}=l;t({width:Math.round(a),height:Math.round(c)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(l=>{const a=l[0];if(a!=null&&a.borderBoxSize){const c=a.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},R_={passive:!0},bU=typeof window>"u"?!0:"onscrollend"in window,_U=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const s=bU?()=>{}:mU(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=d=>()=>{o=n[e.options.horizontal?"scrollLeft":"scrollTop"],s(),t(o,d)},a=l(!0),c=l(!1);return c(),n.addEventListener("scroll",a,R_),n.addEventListener("scrollend",c,R_),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",c)}},wU=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},SU=(e,{adjustments:t=0,behavior:n},r)=>{var o,s;const l=e+t;(s=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class EU{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var s;return(s=r())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=r())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:gU,rangeExtractor:vU,onChange:()=>{},measureElement:wU,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,...n}},this.notify=(n,r)=>{var o,s;const{startIndex:l,endIndex:a}=this.range??{startIndex:void 0,endIndex:void 0},c=this.calculateRange();(n||l!==(c==null?void 0:c.startIndex)||a!==(c==null?void 0:c.endIndex))&&((s=(o=this.options).onChange)==null||s.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{var n;const r=this.options.getScrollElement();this.scrollElement!==r&&(this.cleanup(),this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.scrollOffset<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=s,this.notify(l!==s,s)})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.getMeasurementOptions=Ll(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,r,o,s)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:s}),{key:!1}),this.getFurthestMeasurement=(n,r)=>{const o=new Map,s=new Map;for(let l=r-1;l>=0;l--){const a=n[l];if(o.has(a.lane))continue;const c=s.get(a.lane);if(c==null||a.end>c.end?s.set(a.lane,a):a.end<c.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((l,a)=>l.end===a.end?l.index-a.index:l.end-a.end)[0]:void 0},this.getMeasurements=Ll(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:s},l)=>{const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let d=a;d<n;d++){const p=s(d),h=this.options.lanes===1?c[d-1]:this.getFurthestMeasurement(c,d),g=h?h.end+this.options.gap:r+o,y=l.get(p),_=typeof y=="number"?y:this.options.estimateSize(d),S=g+_,C=h?h.lane:d%this.options.lanes;c[d]={index:d,start:g,size:_,end:S,key:p,lane:C}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ll(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,r,o)=>this.range=n.length>0&&r>0?xU({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ll(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,s)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.measurementsCache[this.indexFromElement(n)];if(!o||!n.isConnected){this.measureElementCache.forEach((a,c)=>{a===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const s=this.measureElementCache.get(o.key);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.measureElementCache.set(o.key,n));const l=this.options.measureElement(n,r,this);this.resizeItem(o,l)},this.resizeItem=(n,r)=>{const o=this.itemSizeCache.get(n.key)??n.size,s=r-o;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,s,this):n.start<this.scrollOffset+this.scrollAdjustments)&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!0,!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=Ll(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let s=0,l=n.length;s<l;s++){const a=n[s],c=r[a];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();return Up(r[Wx(0,r.length-1,o=>Up(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize();r==="auto"&&(n<=this.scrollOffset?r="start":n>=this.scrollOffset+o?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-o:r==="center"&&(n=n-o/2);const s=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-this.getSize();return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=Up(this.getMeasurements()[n]);if(r==="auto")if(o.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)r="end";else if(o.start<=this.scrollOffset+this.options.scrollPaddingStart)r="start";else return[this.scrollOffset,r];const s=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r),r]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[s,l]=this.getOffsetForIndex(n,r);this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,l);hU(c,this.scrollOffset)||this.scrollToIndex(n,{align:l,behavior:o})}else this.scrollToIndex(n,{align:l,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{var n,r;this.itemSizeCache=new Map,(r=(n=this.options).onChange)==null||r.call(n,this,!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.notify(!1,!1)}}const Wx=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,s=n(o);if(s<r)e=o+1;else if(s>r)t=o-1;else return o}return e>0?e-1:0};function xU({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,s=Wx(0,r,a=>e[a].start,n);let l=s;for(;l<r&&e[l].end<n+t;)l++;return{startIndex:s,endIndex:l}}function $U(e){const t=new EU(Hn(e)),n=sd(t),r=t._didMount();return Ft(()=>Hn(e).getScrollElement(),o=>{o&&t._willUpdate()},{immediate:!0}),Ft(()=>Hn(e),o=>{t.setOptions({...o,onChange:(s,l)=>{var a;Xp(n),(a=o.onChange)==null||a.call(o,s,l)}}),t._willUpdate(),Xp(n)},{immediate:!0}),p1(r),n}function CU(e){return $U(ce(()=>({observeElementRect:yU,observeElementOffset:_U,scrollToFn:SU,...Hn(e)})))}function Mg(e,t,n){let r=_e(n==null?void 0:n.value),o=ce(()=>e.value!==void 0);return[ce(()=>o.value?e.value:r.value),function(s){return o.value||(r.value=s),t==null?void 0:t(s)}]}function Dg(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ei(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Dg(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=Ei();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function TU(){let e=Ei();return Qt(()=>e.dispose()),e}function OU(){let e=TU();return t=>{e.dispose(),e.nextFrame(t)}}let AU=Symbol("headlessui.useid"),PU=0;function zt(){return Rt(AU,()=>`${++PU}`)()}function ue(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function Tt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Tt),r}var IU=Object.defineProperty,kU=(e,t,n)=>t in e?IU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L_=(e,t,n)=>(kU(e,typeof t!="symbol"?t+"":t,n),n);let RU=class{constructor(){L_(this,"current",this.detect()),L_(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},ja=new RU;function Wr(e){if(ja.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ue(e);if(t)return t.ownerDocument}return document}let Mh=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var In=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(In||{}),ba=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ba||{}),LU=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(LU||{});function Vd(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Mh)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Wd=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Wd||{});function Fg(e,t=0){var n;return e===((n=Wr(e))==null?void 0:n.body)?!1:Tt(t,{0(){return e.matches(Mh)},1(){let r=e;for(;r!==null;){if(r.matches(Mh))return!0;r=r.parentElement}return!1}})}var NU=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(NU||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function rs(e){e==null||e.focus({preventScroll:!0})}let MU=["textarea","input"].join(",");function DU(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,MU))!=null?n:!1}function Bg(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),s=t(r);if(o===null||s===null)return 0;let l=o.compareDocumentPosition(s);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Yr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var s;let l=(s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?s:document,a=Array.isArray(e)?n?Bg(e):e:Vd(e);o.length>0&&a.length>1&&(a=a.filter(_=>!o.includes(_))),r=r??l.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=t&32?{preventScroll:!0}:{},h=0,g=a.length,y;do{if(h>=g||h+g<=0)return 0;let _=d+h;if(t&16)_=(_+g)%g;else{if(_<0)return 3;if(_>=g)return 1}y=a[_],y==null||y.focus(p),h+=c}while(y!==l.activeElement);return t&6&&DU(y)&&y.select(),2}function zx(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function FU(){return/Android/gi.test(window.navigator.userAgent)}function qx(){return zx()||FU()}function Zu(e,t,n){ja.isServer||jt(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function Kx(e,t,n){ja.isServer||jt(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function zd(e,t,n=ce(()=>!0)){function r(s,l){if(!n.value||s.defaultPrevented)return;let a=l(s);if(a===null||!a.getRootNode().contains(a))return;let c=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let d of c){if(d===null)continue;let p=d instanceof HTMLElement?d:ue(d);if(p!=null&&p.contains(a)||s.composed&&s.composedPath().includes(p))return}return!Fg(a,Wd.Loose)&&a.tabIndex!==-1&&s.preventDefault(),t(s,a)}let o=_e(null);Zu("pointerdown",s=>{var l,a;n.value&&(o.value=((a=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:a[0])||s.target)},!0),Zu("mousedown",s=>{var l,a;n.value&&(o.value=((a=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:a[0])||s.target)},!0),Zu("click",s=>{qx()||o.value&&(r(s,()=>o.value),o.value=null)},!0),Zu("touchend",s=>r(s,()=>s.target instanceof HTMLElement?s.target:null),!0),Kx("blur",s=>r(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function N_(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function qd(e,t){let n=_e(N_(e.value.type,e.value.as));return vt(()=>{n.value=N_(e.value.type,e.value.as)}),jt(()=>{var r;n.value||ue(t)&&ue(t)instanceof HTMLButtonElement&&!((r=ue(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}function M_(e){return[e.screenX,e.screenY]}function Gx(){let e=_e([-1,-1]);return{wasMoved(t){let n=M_(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=M_(t)}}}function BU({container:e,accept:t,walk:n,enabled:r}){jt(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let s=Wr(e);if(!s)return;let l=Object.assign(c=>t(c),{acceptNode:t}),a=s.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,l,!1);for(;a.nextNode();)n(a.currentNode)})}var sr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(sr||{}),hi=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(hi||{});function Et({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var s;let l=Jx(r,n),a=Object.assign(o,{props:l});if(e||t&2&&l.static)return jp(a);if(t&1){let c=(s=l.unmount)==null||s?0:1;return Tt(c,{0(){return null},1(){return jp({...o,props:{...l,hidden:!0,style:{display:"none"}}})}})}return jp(a)}function jp({props:e,attrs:t,slots:n,slot:r,name:o}){var s,l;let{as:a,...c}=hs(e,["unmount","static"]),d=(s=n.default)==null?void 0:s.call(n,r),p={};if(r){let h=!1,g=[];for(let[y,_]of Object.entries(r))typeof _=="boolean"&&(h=!0),_===!0&&g.push(y);h&&(p["data-headlessui-state"]=g.join(" "))}if(a==="template"){if(d=Xx(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[h,...g]=d??[];if(!UU(h)||g.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(S=>S.trim()).filter((S,C,T)=>T.indexOf(S)===C).sort((S,C)=>S.localeCompare(C)).map(S=>`  - ${S}`).join(`
    5959`),"","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(S=>`  - ${S}`).join(`
    6060`)].join(`
    61 `));let y=Kx((l=h.props)!=null?l:{},c,p),_=Br(h,y,!0);for(let S in y)S.startsWith("on")&&(_.props||(_.props={}),_.props[S]=y[S]);return _}return Array.isArray(d)&&d.length===1?d[0]:d}return dt(a,Object.assign({},c,p),{default:()=>d})}function qx(e){return e.flatMap(t=>t.type===Fe?qx(t.children):[t])}function Kx(...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 Bg(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function hs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function AU(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var eo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(eo||{});let _o=ge({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 Et({ourProps:l,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Gx=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 IU(){return ms()!==null}function ms(){return kt(Gx,null)}function Kd(e){Zt(Gx,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||{}),Xx=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Xx||{});function PU(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Uo=[];PU(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Uo[0]!==t.target&&(Uo.unshift(t.target),Uo=Uo.filter(n=>n!=null&&n.isConnected),Uo.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 kU(e){throw new Error("Unexpected object: "+e)}var $t=(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))($t||{});function Dh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=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:kU(e)}}function Ug(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Yx(n,Jx(t,r),o);return n}function Jx(e,t){return e?e+"["+t+"]":t}function Yx(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Yx(e,Jx(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,""]):Ug(n,t,e)}function RU(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)}}var LU={};function NU(e,t){return e===t}var MU=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(MU||{}),DU=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(DU||{}),FU=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(FU||{});let Zx=Symbol("ComboboxContext");function gs(e){let t=kt(Zx,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gs),n}return t}let Qx=Symbol("VirtualContext"),BU=ge({name:"VirtualProvider",setup(e,{slots:t}){let n=gs("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=mU(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}),Zt(Qx,n.virtual.value?o:null),()=>[dt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&LU.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=>Br(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"}})))]}}),e$=ge({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),d=_e({static:!1,hold:!1}),p=_e([]),h=_e(null),g=_e(2),y=_e(!1);function _(D=F=>F){let F=h.value!==null?p.value[h.value]:null,z=D(p.value.slice()),G=z.length>0&&z[0].dataRef.order.value!==null?z.sort((we,be)=>we.dataRef.order.value-be.dataRef.order.value):Fg(z,we=>ue(we.dataRef.domRef)),te=F?G.indexOf(F):null;return te===-1&&(te=null),{options:G,activeOptionIndex:te}}let S=ce(()=>e.multiple?1:0),C=ce(()=>e.nullable),[T,w]=Ng(ce(()=>e.modelValue),D=>r("update:modelValue",D),ce(()=>e.defaultValue)),E=ce(()=>T.value===void 0?Tt(S.value,{1:[],0:void 0}):T.value),O=null,$=null;function P(D){return Tt(S.value,{0(){return w==null?void 0:w(D)},1:()=>{let F=Ue(I.value.value).slice(),z=Ue(D),G=F.findIndex(te=>I.compare(z,Ue(te)));return G===-1?F.push(z):F.splice(G,1),w==null?void 0:w(F)}})}let k=ce(()=>{});Ft([k],([D],[F])=>{if(I.virtual.value&&D&&F&&h.value!==null){let z=D.indexOf(F[h.value]);z!==-1?h.value=z:h.value=null}});let I={comboboxState:o,value:E,mode:S,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?NU(D,F):e.by(D,F)},calculateIndex(D){return I.virtual.value?e.by===null?I.virtual.value.options.indexOf(D):I.virtual.value.options.findIndex(F=>I.compare(F,D)):p.value.findIndex(F=>I.compare(F.dataRef.value,D))},defaultValue:ce(()=>e.defaultValue),nullable:C,immediate:ce(()=>!1),virtual:ce(()=>null),inputRef:l,labelRef:s,buttonRef:a,optionsRef:c,disabled:ce(()=>e.disabled),options:p,change(D){w(D)},activeOptionIndex:ce(()=>{if(y.value&&h.value===null&&(I.virtual.value?I.virtual.value.options.length>0:p.value.length>0)){if(I.virtual.value){let F=I.virtual.value.options.findIndex(z=>{var G;return!((G=I.virtual.value)!=null&&G.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:g,optionsPropsRef:d,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(I.value.value){let D=I.calculateIndex(I.value.value);D!==-1&&(h.value=D)}o.value=0}},setActivationTrigger(D){g.value=D},goToOption(D,F,z){y.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&o.value===1)return;if(I.virtual.value){h.value=D===$t.Specific?F:Dh({focus:D},{resolveItems:()=>I.virtual.value.options,resolveActiveIndex:()=>{var we,be;return(be=(we=I.activeOptionIndex.value)!=null?we:I.virtual.value.options.findIndex(Ae=>{var Ie;return!((Ie=I.virtual.value)!=null&&Ie.disabled(Ae))}))!=null?be:null},resolveDisabled:we=>I.virtual.value.disabled(we),resolveId(){throw new Error("Function not implemented.")}}),g.value=z??2;return}let G=_();if(G.activeOptionIndex===null){let we=G.options.findIndex(be=>!be.dataRef.disabled);we!==-1&&(G.activeOptionIndex=we)}let te=D===$t.Specific?F:Dh({focus:D},{resolveItems:()=>G.options,resolveActiveIndex:()=>G.activeOptionIndex,resolveId:we=>we.id,resolveDisabled:we=>we.dataRef.disabled});h.value=te,g.value=z??2,p.value=G.options})},selectOption(D){let F=p.value.find(G=>G.id===D);if(!F)return;let{dataRef:z}=F;P(z.value)},selectActiveOption(){if(I.activeOptionIndex.value!==null){if(I.virtual.value)P(I.virtual.value.options[I.activeOptionIndex.value]);else{let{dataRef:D}=p.value[I.activeOptionIndex.value];P(D.value)}I.goToOption($t.Specific,I.activeOptionIndex.value)}},registerOption(D,F){let z=Ei({id:D,dataRef:F});if(I.virtual.value){p.value.push(z);return}$&&cancelAnimationFrame($);let G=_(te=>(te.push(z),te));h.value===null&&I.isSelected(F.value.value)&&(G.activeOptionIndex=G.options.indexOf(z)),p.value=G.options,h.value=G.activeOptionIndex,g.value=2,G.options.some(te=>!ue(te.dataRef.domRef))&&($=requestAnimationFrame(()=>{let te=_();p.value=te.options,h.value=te.activeOptionIndex}))},unregisterOption(D,F){if(O!==null&&cancelAnimationFrame(O),F&&(y.value=!0),I.virtual.value){p.value=p.value.filter(G=>G.id!==D);return}let z=_(G=>{let te=G.findIndex(we=>we.id===D);return te!==-1&&G.splice(te,1),G});p.value=z.options,h.value=z.activeOptionIndex,g.value=2},isSelected(D){return Tt(S.value,{0:()=>I.compare(Ue(I.value.value),Ue(D)),1:()=>Ue(I.value.value).some(F=>I.compare(Ue(F),Ue(D)))})},isActive(D){return h.value===I.calculateIndex(D)}};zd([l,a,c],()=>I.closeCombobox(),ce(()=>o.value===0)),Zt(Zx,I),Kd(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 vt(()=>{Ft([H],()=>{if(!H.value||e.defaultValue===void 0)return;function D(){I.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:G,disabled:te,form:we,...be}=e,Ae={open:o.value===0,disabled:te,activeIndex:I.activeOptionIndex.value,activeOption:I.activeOptionIndex.value===null?null:I.virtual.value?I.virtual.value.options[(D=I.activeOptionIndex.value)!=null?D:0]:(z=(F=I.options.value[I.activeOptionIndex.value])==null?void 0:F.dataRef.value)!=null?z:null,value:E.value};return dt(Fe,[...G!=null&&E.value!=null?Ug({[G]:E.value}).map(([Ie,Ye])=>dt(_o,Bg({features:eo.Hidden,key:Ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:we,disabled:te,name:Ie,value:Ye}))):[],Et({theirProps:{...n,...hs(be,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Ae,slots:t,attrs:n,name:"Combobox"})])}}}),UU=ge({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=gs("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,d={id:o,ref:s.labelRef,onClick:l};return Et({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),t$=ge({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=gs("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($t.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 d=qd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let g={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,_={ref:l.buttonRef,id:s,type:d.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 Et({ourProps:_,theirProps:y,slot:g,attrs:t,slots:n,name:"ComboboxButton"})}}}),n$=ge({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=gs("ComboboxInput"),c=ce(()=>Vr(ue(a.inputRef))),d={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let $=ue(a.optionsRef);$&&($.scrollTop=0),a.goToOption($t.Nothing)}let h=ce(()=>{var $;let P=a.value.value;return ue(a.inputRef)?typeof e.displayValue<"u"&&P!==void 0?($=e.displayValue(P))!=null?$:"":typeof P=="string"?P:"":""});vt(()=>{Ft([h,a.comboboxState,c],([$,P],[k,I])=>{if(d.value)return;let H=ue(a.inputRef);H&&((I===0&&P===1||$!==k)&&(H.value=$),requestAnimationFrame(()=>{var D;if(d.value||!H||((D=c.value)==null?void 0:D.activeElement)!==H)return;let{selectionStart:F,selectionEnd:z}=H;Math.abs((z??0)-(F??0))===0&&F===0&&H.setSelectionRange(H.value.length,H.value.length)}))},{immediate:!0}),Ft([a.comboboxState],([$],[P])=>{if($===0&&P===1){if(d.value)return;let k=ue(a.inputRef);if(!k)return;let I=k.value,{selectionStart:H,selectionEnd:D,selectionDirection:F}=k;k.value="",k.value=I,F!==null?k.setSelectionRange(H,D,F):k.setSelectionRange(H,D)}})});let g=_e(!1);function y(){g.value=!0}function _(){Si().nextFrame(()=>{g.value=!1})}let S=vU();function C($){switch(d.value=!0,S(()=>{d.value=!1}),$.key){case lt.Enter:if(d.value=!1,a.comboboxState.value!==0||g.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 d.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{0:()=>a.goToOption($t.Next),1:()=>a.openCombobox()});case lt.ArrowUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{0:()=>a.goToOption($t.Previous),1:()=>{a.openCombobox(),rn(()=>{a.value.value||a.goToOption($t.Last)})}});case lt.Home:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption($t.First);case lt.PageUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption($t.First);case lt.End:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption($t.Last);case lt.PageDown:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption($t.Last);case lt.Escape:if(d.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(d.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function T($){t("change",$),a.nullable.value&&a.mode.value===0&&$.target.value===""&&p(),a.openCombobox()}function w($){var P,k,I;let H=(P=$.relatedTarget)!=null?P:Uo.find(D=>D!==$.currentTarget);if(d.value=!1,!((k=ue(a.optionsRef))!=null&&k.contains(H))&&!((I=ue(a.buttonRef))!=null&&I.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,I;let H=(P=$.relatedTarget)!=null?P:Uo.find(D=>D!==$.currentTarget);(k=ue(a.buttonRef))!=null&&k.contains(H)||(I=ue(a.optionsRef))!=null&&I.contains(H)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),Si().nextFrame(()=>{a.setActivationTrigger(1)}))}let O=ce(()=>{var $,P,k,I;return(I=(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?I:""});return()=>{var $,P,k,I,H,D,F;let z={open:a.comboboxState.value===0},{displayValue:G,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(Ae=>!a.virtual.value.disabled(Ae.dataRef.value)&&a.compare(Ae.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=(I=ue(a.labelRef))==null?void 0:I.id)!=null?D:(H=ue(a.buttonRef))==null?void 0:H.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:_,onKeydown:C,onInput:T,onFocus:E,onBlur:w,role:"combobox",type:(F=n.type)!=null?F:"text",tabIndex:0,ref:a.inputRef,defaultValue:O.value,disabled:a.disabled.value===!0?!0:void 0};return Et({ourProps:be,theirProps:we,slot:z,attrs:n,slots:r,features:ir.RenderStrategy|ir.Static,name:"ComboboxInput"})}}}),r$=ge({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=gs("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=ms(),a=ce(()=>l!==null?(l.value&Pt.Open)===Pt.Open:o.comboboxState.value===0);OU({container:ce(()=>ue(o.optionsRef)),enabled:ce(()=>o.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,p,h;let g={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(d=ue(o.labelRef))==null?void 0:d.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},_=hs(e,["hold"]);return Et({ourProps:y,theirProps:_,slot:g,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[dt(BU,{},n.default)]}:n,features:ir.RenderStrategy|ir.Static,visible:a.value,name:"ComboboxOptions"})}}}),o$=ge({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=gs("ComboboxOption"),s=`headlessui-combobox-option-${zt()}`,l=_e(null),a=ce(()=>e.disabled);r({el:l,$el:l});let c=ce(()=>{var w;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((w=o.options.value[o.activeOptionIndex.value])==null?void 0:w.id)===s}),d=ce(()=>o.isSelected(e.value)),p=kt(Qx,null),h=ce(()=>({disabled:e.disabled,value:e.value,domRef:l,order:ce(()=>e.order)}));vt(()=>o.registerOption(s,h)),Qt(()=>o.unregisterOption(s,c.value)),jt(()=>{let w=ue(l);w&&(p==null||p.value.measureElement(w))}),jt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&rn(()=>{var w,E;return(E=(w=ue(l))==null?void 0:w.scrollIntoView)==null?void 0:E.call(w,{block:"nearest"})}))});function g(w){w.preventDefault(),w.button===Xx.Left&&(a.value||(o.selectOption(s),Vx()||requestAnimationFrame(()=>{var E;return(E=ue(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var w;if(e.disabled||(w=o.virtual.value)!=null&&w.disabled(e.value))return o.goToOption($t.Nothing);let E=o.calculateIndex(e.value);o.goToOption($t.Specific,E)}let _=zx();function S(w){_.update(w)}function C(w){var E;if(!_.wasMoved(w)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let O=o.calculateIndex(e.value);o.goToOption($t.Specific,O,0)}function T(w){var E;_.wasMoved(w)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption($t.Nothing)))}return()=>{let{disabled:w}=e,E={active:c.value,selected:d.value,disabled:w},O={id:s,ref:l,role:"option",tabIndex:w===!0?void 0:-1,"aria-disabled":w===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:g,onFocus:y,onPointerenter:S,onMouseenter:S,onPointermove:C,onMousemove:C,onPointerleave:T,onMouseleave:T},$=hs(e,["order","value"]);return Et({ourProps:O,theirProps:$,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function jg(e,t,n,r){ja.isServer||jt(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var mr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(mr||{});function Hg(){let e=_e(0);return Wx("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function i$(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 s$=(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))(s$||{});let Nl=Object.assign(ge({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(()=>Vr(o)),l=_e(!1);vt(()=>l.value=!0),Qt(()=>l.value=!1),HU({ownerDocument:s},ce(()=>l.value&&!!(e.features&16)));let a=VU({ownerDocument:s,container:o,initialFocus:ce(()=>e.initialFocus)},ce(()=>l.value&&!!(e.features&2)));WU({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},ce(()=>l.value&&!!(e.features&8)));let c=Hg();function d(y){let _=ue(o);_&&(S=>S())(()=>{Tt(c.value,{[mr.Forwards]:()=>{Jr(_,Pn.First,{skipElements:[y.relatedTarget]})},[mr.Backwards]:()=>{Jr(_,Pn.Last,{skipElements:[y.relatedTarget]})}})})}let p=_e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function g(y){if(!l.value)return;let _=i$(e.containers);ue(o)instanceof HTMLElement&&_.add(ue(o));let S=y.relatedTarget;S instanceof HTMLElement&&S.dataset.headlessuiFocusGuard!=="true"&&(l$(_,S)||(p.value?Jr(ue(o),Tt(c.value,{[mr.Forwards]:()=>Pn.Next,[mr.Backwards]:()=>Pn.Previous})|Pn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&ns(y.target)))}return()=>{let y={},_={ref:o,onKeydown:h,onFocusout:g},{features:S,initialFocus:C,containers:T,...w}=e;return dt(Fe,[!!(S&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:eo.Focusable}),Et({ourProps:_,theirProps:{...t,...w},slot:y,attrs:t,slots:n,name:"FocusTrap"}),!!(S&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:eo.Focusable})])}}}),{features:s$});function jU(e){let t=_e(Uo.slice());return Ft([e],([n],[r])=>{r===!0&&n===!1?Mg(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Uo.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function HU({ownerDocument:e},t){let n=jU(t);vt(()=>{jt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&ns(n())},{flush:"post"})}),Qt(()=>{t.value&&ns(n())})}function VU({ownerDocument:e,container:t,initialFocus:n},r){let o=_e(null),s=_e(!1);return vt(()=>s.value=!0),Qt(()=>s.value=!1),vt(()=>{Ft([t,n,r],(l,a)=>{if(l.every((d,p)=>(a==null?void 0:a[p])===d)||!r.value)return;let c=ue(t);c&&Mg(()=>{var d,p;if(!s.value)return;let h=ue(n),g=(d=e.value)==null?void 0:d.activeElement;if(h){if(h===g){o.value=g;return}}else if(c.contains(g)){o.value=g;return}h?ns(h):Jr(c,Pn.First|Pn.NoScroll)===ba.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 WU({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;jg((s=e.value)==null?void 0:s.defaultView,"focus",l=>{if(!o.value)return;let a=i$(n);ue(t)instanceof HTMLElement&&a.add(ue(t));let c=r.value;if(!c)return;let d=l.target;d&&d instanceof HTMLElement?l$(a,d)?(r.value=d,ns(d)):(l.preventDefault(),l.stopPropagation(),ns(c)):ns(r.value)},!0)}function l$(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function zU(e){let t=sd(e.getSnapshot());return Qt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function qU(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 KU(){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 GU(){return Hx()?{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=Si();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:d}=new URL(c.href),p=e.querySelector(d);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 XU(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function JU(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Gi=qU(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Si(),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:JU(n)},o=[GU(),KU(),XU()];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)}});Gi.subscribe(()=>{let e=Gi.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)&&Gi.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Gi.dispatch("TEARDOWN",n)}});function YU(e,t,n){let r=zU(Gi),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;Gi.dispatch("PUSH",s,n);let d=!1;c(()=>{d||(Gi.dispatch("POP",a??s,n),d=!0)})},{immediate:!0}),o}let Hp=new Map,Ml=new Map;function M_(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=Ml.get(o))!=null?l:1;if(a===1?Ml.delete(o):Ml.set(o,a-1),a!==1)return;let c=Hp.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,Hp.delete(o))});let s=(r=Ml.get(o))!=null?r:0;Ml.set(o,s+1),s===0&&(Hp.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function a$({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=_e(null),o=Vr(r);function s(){var l,a,c;let d=[];for(let p of e)p!==null&&(p instanceof HTMLElement?d.push(p):"value"in p&&p.value instanceof HTMLElement&&d.push(p.value));if(t!=null&&t.value)for(let p of t.value)d.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)||d.some(h=>p.contains(h))||d.push(p));return d}return{resolveContainers:s,contains(l){return s().some(a=>a.contains(l))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:dt(_o,{features:eo.Hidden,ref:r})}}}function ZU(){let e=_e(null);return{mainTreeNodeRef:e,MainTreeNode(){return dt(_o,{features:eo.Hidden,ref:e})}}}let u$=Symbol("ForcePortalRootContext");function QU(){return kt(u$,!1)}let Fh=ge({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Zt(u$,e.force),()=>{let{force:r,...o}=e;return Et({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),c$=Symbol("StackContext");var Bh=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Bh||{});function ej(){return kt(c$,()=>{})}function tj({type:e,enabled:t,element:n,onUpdate:r}){let o=ej();function s(...l){r==null||r(...l),o(...l)}vt(()=>{Ft(t,(l,a)=>{l?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),Qt(()=>{t.value&&s(1,e,n)}),Zt(c$,s)}let d$=Symbol("DescriptionContext");function nj(){let e=kt(d$,null);if(e===null)throw new Error("Missing parent");return e}function f$({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 Zt(d$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}ge({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=nj();return vt(()=>Qt(s.register(o))),()=>{let{name:l="Description",slot:a=_e({}),props:c={}}=s,{...d}=e,p={...Object.entries(c).reduce((h,[g,y])=>Object.assign(h,{[g]:jn(y)}),{}),id:o};return Et({ourProps:p,theirProps:d,slot:a.value,attrs:t,slots:n,name:l})}}});function rj(e){let t=Vr(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 Uh=new WeakMap;function oj(e){var t;return(t=Uh.get(e))!=null?t:0}function D_(e,t){let n=t(oj(e));return n<=0?Uh.delete(e):Uh.set(e,n),n}let p$=ge({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=ce(()=>Vr(r)),s=QU(),l=kt(m$,null),a=_e(s===!0||l==null?rj(r.value):l.resolveTarget());a.value&&D_(a.value,g=>g+1);let c=_e(!1);vt(()=>{c.value=!0}),jt(()=>{s||l!=null&&(a.value=l.resolveTarget())});let d=kt(jh,null),p=!1,h=Go();return Ft(r,()=>{if(p||!d)return;let g=ue(r);g&&(Qt(d.register(g),h),p=!0)}),Qt(()=>{var g,y;let _=(g=o.value)==null?void 0:g.getElementById("headlessui-portal-root");!_||a.value!==_||D_(a.value,S=>S-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let g={ref:r,"data-headlessui-portal":""};return dt(lw,{to:a.value},Et({ourProps:g,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),jh=Symbol("PortalParentContext");function h$(){let e=kt(jh,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,ge({name:"PortalWrapper",setup(s,{slots:l}){return Zt(jh,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let m$=Symbol("PortalGroupContext"),ij=ge({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Ei({resolveTarget(){return e.target}});return Zt(m$,r),()=>{let{target:o,...s}=e;return Et({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var sj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(sj||{});let Hh=Symbol("DialogContext");function Ha(e){let t=kt(Hh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ha),n}return t}let Qu="DC8F892D-2EBD-447C-A4C8-A03058436FF4",lj=ge({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:Qu},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);vt(()=>{c.value=!0});let d=!1,p=ce(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=_e(0),g=ms(),y=ce(()=>e.open===Qu&&g!==null?(g.value&Pt.Open)===Pt.Open:e.open),_=_e(null),S=ce(()=>Vr(_));if(o({el:_,$el:_}),!(e.open!==Qu||g!==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===Qu?void 0:e.open}`);let C=ce(()=>c.value&&y.value?0:1),T=ce(()=>C.value===0),w=ce(()=>h.value>1),E=kt(Hh,null)!==null,[O,$]=h$(),{resolveContainers:P,mainTreeNodeRef:k,MainTreeNode:I}=a$({portals:O,defaultContainers:[ce(()=>{var Le;return(Le=Ae.panelRef.value)!=null?Le:_.value})]}),H=ce(()=>w.value?"parent":"leaf"),D=ce(()=>g!==null?(g.value&Pt.Closing)===Pt.Closing:!1),F=ce(()=>E||D.value?!1:T.value),z=ce(()=>{var Le,Ge,Q;return(Q=Array.from((Ge=(Le=S.value)==null?void 0:Le.querySelectorAll("body > *"))!=null?Ge:[]).find(ae=>ae.id==="headlessui-portal-root"?!1:ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M_(z,F);let G=ce(()=>w.value?!0:T.value),te=ce(()=>{var Le,Ge,Q;return(Q=Array.from((Ge=(Le=S.value)==null?void 0:Le.querySelectorAll("[data-headlessui-portal]"))!=null?Ge:[]).find(ae=>ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M_(te,G),tj({type:"Dialog",enabled:ce(()=>C.value===0),element:_,onUpdate:(Le,Ge)=>{if(Ge==="Dialog")return Tt(Le,{[Bh.Add]:()=>h.value+=1,[Bh.Remove]:()=>h.value-=1})}});let we=f$({name:"DialogDescription",slot:ce(()=>({open:y.value}))}),be=_e(null),Ae={titleId:be,panelRef:_e(null),dialogState:C,setTitleId(Le){be.value!==Le&&(be.value=Le)},close(){t("close",!1)}};Zt(Hh,Ae);let Ie=ce(()=>!(!T.value||w.value));zd(P,(Le,Ge)=>{Le.preventDefault(),Ae.close(),rn(()=>Ge==null?void 0:Ge.focus())},Ie);let Ye=ce(()=>!(w.value||C.value!==0));jg((l=S.value)==null?void 0:l.defaultView,"keydown",Le=>{Ye.value&&(Le.defaultPrevented||Le.key===lt.Escape&&(Le.preventDefault(),Le.stopPropagation(),Ae.close()))});let ft=ce(()=>!(D.value||C.value!==0||E));return YU(S,ft,Le=>{var Ge;return{containers:[...(Ge=Le.containers)!=null?Ge:[],P]}}),jt(Le=>{if(C.value!==0)return;let Ge=ue(_);if(!Ge)return;let Q=new ResizeObserver(ae=>{for(let fe of ae){let xe=fe.target.getBoundingClientRect();xe.x===0&&xe.y===0&&xe.width===0&&xe.height===0&&Ae.close()}});Q.observe(Ge),Le(()=>Q.disconnect())}),()=>{let{open:Le,initialFocus:Ge,...Q}=e,ae={...n,ref:_,id:a,role:p.value,"aria-modal":C.value===0?!0:void 0,"aria-labelledby":be.value,"aria-describedby":we.value},fe={open:C.value===0};return dt(Fh,{force:!0},()=>[dt(p$,()=>dt(ij,{target:_.value},()=>dt(Fh,{force:!1},()=>dt(Nl,{initialFocus:Ge,containers:P,features:T.value?Tt(H.value,{parent:Nl.features.RestoreFocus,leaf:Nl.features.All&~Nl.features.FocusLock}):Nl.features.None},()=>dt($,{},()=>Et({ourProps:ae,theirProps:{...Q,...n},slot:fe,attrs:n,slots:r,visible:C.value===0,features:ir.RenderStrategy|ir.Static,name:"Dialog"})))))),dt(I)])}}}),aj=ge({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=Ha("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),s.close())}return()=>{let{...a}=e;return Et({ourProps:{id:o,"aria-hidden":!0,onClick:l},theirProps:a,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}});ge({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=Ha("DialogBackdrop"),a=_e(null);return r({el:a,$el:a}),vt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,d={id:s,ref:a,"aria-hidden":!0};return dt(Fh,{force:!0},()=>dt(p$,()=>Et({ourProps:d,theirProps:{...t,...c},slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});ge({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=Ha("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:s,ref:l.panelRef,onClick:a};return Et({ourProps:d,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let uj=ge({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=Ha("DialogTitle");return vt(()=>{s.setTitleId(o),Qt(()=>s.setTitleId(null))}),()=>{let{...l}=e;return Et({ourProps:{id:o},theirProps:l,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),F_=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function B_(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 F_.test(l)&&(l=l.replace(F_,"")),l}function cj(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():B_(s).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return B_(e).trim()}function dj(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=cj(r).trim().toLowerCase();return t.value=o,n.value=s,s}}function fj(e,t){return e===t}var pj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pj||{}),hj=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(hj||{}),mj=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(mj||{});function gj(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let g$=Symbol("ListboxContext");function Va(e){let t=kt(g$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Va),n}return t}let Vg=ge({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>fj},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([]),d=_e(""),p=_e(null),h=_e(1);function g(E=O=>O){let O=p.value!==null?c.value[p.value]:null,$=Fg(E(c.value.slice()),k=>ue(k.dataRef.domRef)),P=O?$.indexOf(O):null;return P===-1&&(P=null),{options:$,activeOptionIndex:P}}let y=ce(()=>e.multiple?1:0),[_,S]=Ng(ce(()=>e.modelValue),E=>r("update:modelValue",E),ce(()=>e.defaultValue)),C=ce(()=>_.value===void 0?Tt(y.value,{1:[],0:void 0}):_.value),T={listboxState:o,value:C,mode:y,compare(E,O){if(typeof e.by=="string"){let $=e.by;return(E==null?void 0:E[$])===(O==null?void 0:O[$])}return e.by(E,O)},orientation:ce(()=>e.horizontal?"horizontal":"vertical"),labelRef:s,buttonRef:l,optionsRef:a,disabled:ce(()=>e.disabled),options:c,searchQuery:d,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,O,$){if(e.disabled||o.value===1)return;let P=g(),k=Dh(E===$t.Specific?{focus:$t.Specific,id:O}:{focus:E},{resolveItems:()=>P.options,resolveActiveIndex:()=>P.activeOptionIndex,resolveId:I=>I.id,resolveDisabled:I=>I.dataRef.disabled});d.value="",p.value=k,h.value=$??1,c.value=P.options},search(E){if(e.disabled||o.value===1)return;let O=d.value!==""?0:1;d.value+=E.toLowerCase();let $=(p.value!==null?c.value.slice(p.value+O).concat(c.value.slice(0,p.value+O)):c.value).find(k=>k.dataRef.textValue.startsWith(d.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&&d.value!==""&&(d.value="")},registerOption(E,O){let $=g(P=>[...P,{id:E,dataRef:O}]);c.value=$.options,p.value=$.activeOptionIndex},unregisterOption(E){let O=g($=>{let P=$.findIndex(k=>k.id===E);return P!==-1&&$.splice(P,1),$});c.value=O.options,p.value=O.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||S(E)},select(E){e.disabled||S(Tt(y.value,{0:()=>E,1:()=>{let O=Ue(T.value.value).slice(),$=Ue(E),P=O.findIndex(k=>T.compare($,Ue(k)));return P===-1?O.push($):O.splice(P,1),O}}))}};zd([l,a],(E,O)=>{var $;T.closeListbox(),Dg(O,Wd.Loose)||(E.preventDefault(),($=ue(l))==null||$.focus())},ce(()=>o.value===0)),Zt(g$,T),Kd(ce(()=>Tt(o.value,{0:Pt.Open,1:Pt.Closed})));let w=ce(()=>{var E;return(E=ue(l))==null?void 0:E.closest("form")});return vt(()=>{Ft([w],()=>{if(!w.value||e.defaultValue===void 0)return;function E(){T.theirOnChange(e.defaultValue)}return w.value.addEventListener("reset",E),()=>{var O;(O=w.value)==null||O.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:O,disabled:$,form:P,...k}=e,I={open:o.value===0,disabled:$,value:C.value};return dt(Fe,[...E!=null&&C.value!=null?Ug({[E]:C.value}).map(([H,D])=>dt(_o,Bg({features:eo.Hidden,key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:P,disabled:$,name:H,value:D}))):[],Et({ourProps:{},theirProps:{...n,...hs(k,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:I,slots:t,attrs:n,name:"Listbox"})])}}}),Wg=ge({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=Va("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,d={id:o,ref:s.labelRef,onClick:l};return Et({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),zg=ge({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=Va("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 g;(g=ue(l.optionsRef))==null||g.focus({preventScroll:!0}),l.value.value||l.goToOption($t.First)});break;case lt.ArrowUp:h.preventDefault(),l.openListbox(),rn(()=>{var g;(g=ue(l.optionsRef))==null||g.focus({preventScroll:!0}),l.value.value||l.goToOption($t.Last)});break}}function c(h){switch(h.key){case lt.Space:h.preventDefault();break}}function d(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),gj(()=>{var g;return(g=ue(l.optionsRef))==null?void 0:g.focus({preventScroll:!0})})))}let p=qd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,g;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{..._}=e,S={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?[(g=ue(l.labelRef))==null?void 0:g.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:d};return Et({ourProps:S,theirProps:_,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),qg=ge({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=Va("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 g=l.options.value[l.activeOptionIndex.value];l.select(g.dataRef.value)}l.mode.value===0&&(l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.focus({preventScroll:!0})}));break;case Tt(l.orientation.value,{vertical:lt.ArrowDown,horizontal:lt.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Next);case Tt(l.orientation.value,{vertical:lt.ArrowUp,horizontal:lt.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Previous);case lt.Home:case lt.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption($t.First);case lt.End:case lt.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Last);case lt.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.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 d=ms(),p=ce(()=>d!==null?(d.value&Pt.Open)===Pt.Open:l.listboxState.value===0);return()=>{var h,g;let y={open:l.listboxState.value===0},{..._}=e,S={"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":(g=ue(l.buttonRef))==null?void 0:g.id,"aria-orientation":l.orientation.value,id:s,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return Et({ourProps:S,theirProps:_,slot:y,attrs:t,slots:n,features:ir.RenderStrategy|ir.Static,visible:p.value,name:"ListboxOptions"})}}}),Kg=ge({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=Va("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),d=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 O=Ue(l.value.value);return((E=l.options.value.find($=>O.some(P=>l.compare(Ue(P),Ue($.dataRef.value)))))==null?void 0:E.id)===s},0:()=>d.value})),h=dj(a),g=ce(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));vt(()=>l.registerOption(s,g)),Qt(()=>l.unregisterOption(s)),vt(()=>{Ft([l.listboxState,d],()=>{l.listboxState.value===0&&d.value&&Tt(l.mode.value,{1:()=>{p.value&&l.goToOption($t.Specific,s)},0:()=>{l.goToOption($t.Specific,s)}})},{immediate:!0})}),jt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&rn(()=>{var E,O;return(O=(E=ue(a))==null?void 0:E.scrollIntoView)==null?void 0:O.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 O;return(O=ue(l.buttonRef))==null?void 0:O.focus({preventScroll:!0})}))}function _(){if(e.disabled)return l.goToOption($t.Nothing);l.goToOption($t.Specific,s)}let S=zx();function C(E){S.update(E)}function T(E){S.wasMoved(E)&&(e.disabled||c.value||l.goToOption($t.Specific,s,0))}function w(E){S.wasMoved(E)&&(e.disabled||c.value&&l.goToOption($t.Nothing))}return()=>{let{disabled:E}=e,O={active:c.value,selected:d.value,disabled:E},{value:$,disabled:P,...k}=e,I={id:s,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:y,onFocus:_,onPointerenter:C,onMouseenter:C,onPointermove:T,onMousemove:T,onPointerleave:w,onMouseleave:w};return Et({ourProps:I,theirProps:k,slot:O,attrs:n,slots:t,name:"ListboxOption"})}}});var vj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(vj||{});let v$=Symbol("PopoverContext");function Gd(e){let t=kt(v$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${w$.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Gd),n}return t}let y$=Symbol("PopoverGroupContext");function b$(){return kt(y$,null)}let _$=Symbol("PopoverPanelContext");function yj(){return kt(_$,null)}let w$=ge({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),d=_e(null),p=_e(null),h=ce(()=>Vr(s)),g=ce(()=>{var $,P;if(!ue(a)||!ue(p))return!1;for(let G of document.querySelectorAll("body > *"))if(Number(G==null?void 0:G.contains(ue(a)))^Number(G==null?void 0:G.contains(ue(p))))return!0;let k=Vd(),I=k.indexOf(ue(a)),H=(I+k.length-1)%k.length,D=(I+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:g,beforePanelSentinel:c,afterPanelSentinel:d,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()}};Zt(v$,y),Kd(ce(()=>Tt(l.value,{0:Pt.Open,1:Pt.Closed})));let _={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},S=b$(),C=S==null?void 0:S.registerPopover,[T,w]=h$(),E=a$({mainTreeNodeRef:S==null?void 0:S.mainTreeNodeRef,portals:T,defaultContainers:[a,p]});function O(){var $,P,k,I;return(I=S==null?void 0:S.isFocusWithinPopoverGroup())!=null?I:(($=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(()=>C==null?void 0:C(_)),jg((o=h.value)==null?void 0:o.defaultView,"focus",$=>{var P,k;$.target!==window&&$.target instanceof HTMLElement&&l.value===0&&(O()||a&&p&&(E.contains($.target)||(P=ue(y.beforePanelSentinel))!=null&&P.contains($.target)||(k=ue(y.afterPanelSentinel))!=null&&k.contains($.target)||y.closePopover()))},!0),zd(E.resolveContainers,($,P)=>{var k;y.closePopover(),Dg(P,Wd.Loose)||($.preventDefault(),(k=ue(a))==null||k.focus())},ce(()=>l.value===0)),()=>{let $={open:l.value===0,close:y.close};return dt(Fe,[dt(w,{},()=>Et({theirProps:{...e,...n},ourProps:{ref:s},slot:$,slots:t,attrs:n,name:"Popover"})),dt(E.MainTreeNode)])}}}),bj=ge({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=Gd("PopoverButton"),a=ce(()=>Vr(l.button));r({el:l.button,$el:l.button}),vt(()=>{l.buttonId.value=s}),Qt(()=>{l.buttonId.value=null});let c=b$(),d=c==null?void 0:c.closeOthers,p=yj(),h=ce(()=>p===null?!1:p.value===l.panelId.value),g=_e(null),y=`headlessui-focus-sentinel-${zt()}`;h.value||jt(()=>{l.button.value=ue(g)});let _=qd(ce(()=>({as:e.as,type:t.type})),g);function S($){var P,k,I,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(),(I=ue(l.button))==null||I.focus();break}}else switch($.key){case lt.Space:case lt.Enter:$.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover();break;case lt.Escape:if(l.popoverState.value!==0)return d==null?void 0:d(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 C($){h.value||$.key===lt.Space&&$.preventDefault()}function T($){var P,k;e.disabled||(h.value?(l.closePopover(),(P=ue(l.button))==null||P.focus()):($.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover(),(k=ue(l.button))==null||k.focus()))}function w($){$.preventDefault(),$.stopPropagation()}let E=Hg();function O(){let $=ue(l.panel);if(!$)return;function P(){Tt(E.value,{[mr.Forwards]:()=>Jr($,Pn.First),[mr.Backwards]:()=>Jr($,Pn.Last)})===ba.Error&&Jr(Vd().filter(k=>k.dataset.headlessuiFocusGuard!=="true"),Tt(E.value,{[mr.Forwards]:Pn.Next,[mr.Backwards]:Pn.Previous}),{relativeTo:ue(l.button)})}P()}return()=>{let $=l.popoverState.value===0,P={open:$},{...k}=e,I=h.value?{ref:g,type:_.value,onKeydown:S,onClick:T}:{ref:g,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:S,onKeyup:C,onClick:T,onMousedown:w};return dt(Fe,[Et({ourProps:I,theirProps:{...t,...k},slot:P,attrs:t,slots:n,name:"PopoverButton"}),$&&!h.value&&l.isPortalled.value&&dt(_o,{id:y,features:eo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});ge({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=Gd("PopoverOverlay"),o=`headlessui-popover-overlay-${zt()}`,s=ms(),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 Et({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:ir.RenderStrategy|ir.Static,visible:l.value,name:"PopoverOverlay"})}}});let _j=ge({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=Gd("PopoverPanel"),c=ce(()=>Vr(a.panel)),d=`headlessui-focus-sentinel-before-${zt()}`,p=`headlessui-focus-sentinel-after-${zt()}`;r({el:a.panel,$el:a.panel}),vt(()=>{a.panelId.value=s}),Qt(()=>{a.panelId.value=null}),Zt(_$,a.panelId),jt(()=>{var w,E;if(!l||a.popoverState.value!==0||!a.panel)return;let O=(w=c.value)==null?void 0:w.activeElement;(E=ue(a.panel))!=null&&E.contains(O)||Jr(ue(a.panel),Pn.First)});let h=ms(),g=ce(()=>h!==null?(h.value&Pt.Open)===Pt.Open:a.popoverState.value===0);function y(w){var E,O;switch(w.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;w.preventDefault(),w.stopPropagation(),a.closePopover(),(O=ue(a.button))==null||O.focus();break}}function _(w){var E,O,$,P,k;let I=w.relatedTarget;I&&ue(a.panel)&&((E=ue(a.panel))!=null&&E.contains(I)||(a.closePopover(),(($=(O=ue(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&$.call(O,I)||(k=(P=ue(a.afterPanelSentinel))==null?void 0:P.contains)!=null&&k.call(P,I))&&I.focus({preventScroll:!0})))}let S=Hg();function C(){let w=ue(a.panel);if(!w)return;function E(){Tt(S.value,{[mr.Forwards]:()=>{var O;Jr(w,Pn.First)===ba.Error&&((O=ue(a.afterPanelSentinel))==null||O.focus())},[mr.Backwards]:()=>{var O;(O=ue(a.button))==null||O.focus({preventScroll:!0})}})}E()}function T(){let w=ue(a.panel);if(!w)return;function E(){Tt(S.value,{[mr.Forwards]:()=>{let O=ue(a.button),$=ue(a.panel);if(!O)return;let P=Vd(),k=P.indexOf(O),I=P.slice(0,k+1),H=[...P.slice(k+1),...I];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)}Jr(H,Pn.First,{sorted:!1})},[mr.Backwards]:()=>{var O;Jr(w,Pn.Previous)===ba.Error&&((O=ue(a.button))==null||O.focus())}})}E()}return()=>{let w={open:a.popoverState.value===0,close:a.close},{focus:E,...O}=e,$={ref:a.panel,id:s,onKeydown:y,onFocusout:l&&a.popoverState.value===0?_:void 0,tabIndex:-1};return Et({ourProps:$,theirProps:{...t,...O},attrs:t,slot:w,slots:{...n,default:(...P)=>{var k;return[dt(Fe,[g.value&&a.isPortalled.value&&dt(_o,{id:d,ref:a.beforePanelSentinel,features:eo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:C}),(k=n.default)==null?void 0:k.call(n,...P),g.value&&a.isPortalled.value&&dt(_o,{id:p,ref:a.afterPanelSentinel,features:eo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T})])]}},features:ir.RenderStrategy|ir.Static,visible:g.value,name:"PopoverPanel"})}}});ge({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let o=_e(null),s=sd([]),l=ce(()=>Vr(o)),a=ZU();r({el:o,$el:o});function c(g){let y=s.value.indexOf(g);y!==-1&&s.value.splice(y,1)}function d(g){return s.value.push(g),()=>{c(g)}}function p(){var g;let y=l.value;if(!y)return!1;let _=y.activeElement;return(g=ue(o))!=null&&g.contains(_)?!0:s.value.some(S=>{var C,T;return((C=y.getElementById(S.buttonId.value))==null?void 0:C.contains(_))||((T=y.getElementById(S.panelId.value))==null?void 0:T.contains(_))})}function h(g){for(let y of s.value)y.buttonId.value!==g&&y.close()}return Zt(y$,{registerPopover:d,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>dt(Fe,[Et({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),dt(a.MainTreeNode)])}});let S$=Symbol("LabelContext");function E$(){let e=kt(S$,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,E$),t}return e}function wj({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 Zt(S$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let Sj=ge({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=E$();return vt(()=>Qt(s.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=s,{passive:d,...p}=e,h={...Object.entries(c).reduce((g,[y,_])=>Object.assign(g,{[y]:jn(_)}),{}),id:o};return d&&(delete h.onClick,delete h.htmlFor,delete p.onClick),Et({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),x$=Symbol("GroupContext"),Ej=ge({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=wj({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=f$({name:"SwitchDescription"});return Zt(x$,{switchRef:r,labelledby:o,describedby:s}),()=>Et({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),xj=ge({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(x$,null),[c,d]=Ng(ce(()=>e.modelValue),w=>t("update:modelValue",w),ce(()=>e.defaultChecked));function p(){d(!c.value)}let h=_e(null),g=a===null?h:a.switchRef,y=qd(ce(()=>({as:e.as,type:n.type})),g);o({el:g,$el:g});function _(w){w.preventDefault(),p()}function S(w){w.key===lt.Space?(w.preventDefault(),p()):w.key===lt.Enter&&RU(w.currentTarget)}function C(w){w.preventDefault()}let T=ce(()=>{var w,E;return(E=(w=ue(g))==null?void 0:w.closest)==null?void 0:E.call(w,"form")});return vt(()=>{Ft([T],()=>{if(!T.value||e.defaultChecked===void 0)return;function w(){d(e.defaultChecked)}return T.value.addEventListener("reset",w),()=>{var E;(E=T.value)==null||E.removeEventListener("reset",w)}},{immediate:!0})}),()=>{let{name:w,value:E,form:O,tabIndex:$,...P}=e,k={checked:c.value},I={id:l,ref:g,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:S,onKeypress:C};return dt(Fe,[w!=null&&c.value!=null?dt(_o,Bg({features:eo.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:O,disabled:P.disabled,name:w,value:E})):null,Et({ourProps:I,theirProps:{...n,...hs(P,["modelValue","defaultChecked"])},slot:k,attrs:n,slots:r,name:"Switch"})])}}}),$j=Sj;function Cj(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Vp(e,...t){e&&t.length>0&&e.classList.add(...t)}function ec(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Vh=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Vh||{});function Tj(e,t){let n=Si();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(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,p)=>p-d);return c});return s!==0?n.setTimeout(()=>t("finished"),s+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function U_(e,t,n,r,o,s){let l=Si(),a=s!==void 0?Cj(s):()=>{};return ec(e,...o),Vp(e,...t,...n),l.nextFrame(()=>{ec(e,...n),Vp(e,...r),l.add(Tj(e,c=>(ec(e,...r,...t),Vp(e,...o),a(c))))}),l.add(()=>ec(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function Ui(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Gg=Symbol("TransitionContext");var Oj=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Oj||{});function Aj(){return kt(Gg,null)!==null}function Ij(){let e=kt(Gg,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Pj(){let e=kt(Xg,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Xg=Symbol("NestingContext");function Xd(e){return"children"in e?Xd(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function $$(e){let t=_e([]),n=_e(!1);vt(()=>n.value=!0),Qt(()=>n.value=!1);function r(s,l=pi.Hidden){let a=t.value.findIndex(({id:c})=>c===s);a!==-1&&(Tt(l,{[pi.Unmount](){t.value.splice(a,1)},[pi.Hidden](){t.value[a].state="hidden"}}),!Xd(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,pi.Unmount)}return{children:t,register:o,unregister:r}}let C$=ir.RenderStrategy,T$=ge({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 d(){s.value&=~Pt.Closing,t("afterLeave")}if(!Aj()&&IU())return()=>dt(O$,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:d},r);let p=_e(null),h=ce(()=>e.unmount?pi.Unmount:pi.Hidden);o({el:p,$el:p});let{show:g,appear:y}=Ij(),{register:_,unregister:S}=Pj(),C=_e(g.value?"visible":"hidden"),T={value:!0},w=zt(),E={value:!1},O=$$(()=>{!E.value&&C.value!=="hidden"&&(C.value="hidden",S(w),d())});vt(()=>{let G=_(w);Qt(G)}),jt(()=>{if(h.value===pi.Hidden&&w){if(g.value&&C.value!=="visible"){C.value="visible";return}Tt(C.value,{hidden:()=>S(w),visible:()=>_(w)})}});let $=Ui(e.enter),P=Ui(e.enterFrom),k=Ui(e.enterTo),I=Ui(e.entered),H=Ui(e.leave),D=Ui(e.leaveFrom),F=Ui(e.leaveTo);vt(()=>{jt(()=>{if(C.value==="visible"){let G=ue(p);if(G instanceof Comment&&G.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function z(G){let te=T.value&&!y.value,we=ue(p);!we||!(we instanceof HTMLElement)||te||(E.value=!0,g.value&&l(),g.value||c(),G(g.value?U_(we,$,P,k,I,be=>{E.value=!1,be===Vh.Finished&&a()}):U_(we,H,D,F,I,be=>{E.value=!1,be===Vh.Finished&&(Xd(O)||(C.value="hidden",S(w),d()))})))}return vt(()=>{Ft([g],(G,te,we)=>{z(we),T.value=!1},{immediate:!0})}),Zt(Xg,O),Kd(ce(()=>Tt(C.value,{visible:Pt.Open,hidden:Pt.Closed})|s.value)),()=>{let{appear:G,show:te,enter:we,enterFrom:be,enterTo:Ae,entered:Ie,leave:Ye,leaveFrom:ft,leaveTo:Le,...Ge}=e,Q={ref:p},ae={...Ge,...y.value&&g.value&&ja.isServer?{class:St([n.class,Ge.class,...$,...P])}:{}};return Et({theirProps:ae,ourProps:Q,slot:{},slots:r,attrs:n,features:C$,visible:C.value==="visible",name:"TransitionChild"})}}}),kj=T$,O$=ge({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=ms(),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=$$(()=>{l.value="hidden"}),c=_e(!0),d={show:s,appear:ce(()=>e.appear||!c.value)};return vt(()=>{jt(()=>{c.value=!1,s.value?l.value="visible":Xd(a)||(l.value="hidden")})}),Zt(Xg,a),Zt(Gg,d),()=>{let p=hs(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return Et({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[dt(kj,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:C$,visible:l.value==="visible",name:"Transition"})}}});const Rj=ge({components:{Dialog:lj,DialogOverlay:aj,TransitionChild:T$,TransitionRoot:O$,XIcon:Ua},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),Lj={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},Nj={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Mj=v("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1),Dj={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},Fj=v("span",{class:"sr-only"},"Close",-1);function Bj(e,t,n,r,o,s){const l=J("DialogOverlay"),a=J("TransitionChild"),c=J("XIcon"),d=J("Dialog"),p=J("TransitionRoot");return N(),bt(p,{as:"template",show:e.open},{default:ye(()=>[q(d,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:ye(()=>[v("div",Lj,[v("div",Nj,[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}),Mj,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(()=>[v("div",{class:St(["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"}])},[v("div",Dj,[v("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())},[Fj,q(c,{class:"h-6 w-6","aria-hidden":"true"})])]),_r(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}const Wa=Be(Rj,[["render",Bj]]),Uj=ge({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"}}}}),jj=["disabled"];function Hj(e,t,n,r,o,s){return N(),V("button",{type:"button",class:St(["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},[_r(e.$slots,"default")],10,jj)}const Vn=Be(Uj,[["render",Hj]]),Vj=ge({components:{PodloveButton:Vn,Modal:Wa,PencilIcon:Bx,XIcon:Ua},setup(){return{state:yt({poster:K.episode.poster,episodePoster:K.episode.episodePoster,asset:K.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(p7())},updatePoster(e){const t=X.get(e,["target","value"],null);this.dispatch(wt({prop:"episode_poster",value:t}))}}}),Wj={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},zj={class:"text-lg leading-6 font-medium text-gray-900"},qj={class:"relative"},Kj=["value"],Gj=["title"],Xj={class:"mt-2 text-sm text-gray-500"},Jj={class:"mt-2 flex justify-end"},Yj={class:"block text-sm font-medium text-gray-700"},Zj={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"},Qj={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"},eH={class:"w-full text-center"},tH={class:"w-full text-center"},nH={class:"w-full text-center"};function rH(e,t,n,r,o,s){const l=J("x-icon"),a=J("podlove-button"),c=J("modal"),d=J("pencil-icon");return N(),V("div",null,[q(c,{size:"medium",open:e.modalOpen,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[v("div",Wj,[v("h3",zj,U(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",qj,[v("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,Kj),v("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,Gj)]),v("p",Xj,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),v("p",Jj,[q(a,{variant:"primary",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[Xe(U(e.__("Use this URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"]),v("label",Yj,U(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),v("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:cs(e.posterStyle)},[e.state.asset==="manual"?(N(),V("div",Zj,[q(d,{class:"h-6 w-6","aria-hidden":"true"})])):Ke("",!0),e.state.asset==="manual"?(N(),V("div",Qj,[q(a,{onClick:t[4]||(t[4]=p=>e.openModal()),class:"w-32 mb-2"},{default:ye(()=>[v("span",eH,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(()=>[v("span",tH,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(()=>[v("span",nH,U(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):Ke("",!0)],4)])}const oH=Be(Vj,[["render",rH]]),iH=ge({components:{Module:Nn},setup(){return{state:yt({number:K.episode.number}),dispatch:it().dispatch}},methods:{updateNumber(e){this.dispatch(wt({prop:"number",value:e.target.value}))}}}),sH={for:"episode-number",class:"block text-sm font-medium text-gray-700"},lH={class:"mt-1 mb-1"},aH=["value"],uH={class:"mt-2 text-sm text-gray-500"};function cH(e,t,n,r,o,s){return N(),V("div",null,[v("label",sH,U(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),v("div",lH,[v("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,aH)]),v("p",uH,U(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}const dH=Be(iH,[["render",cH]]),fH=ge({setup(){return{state:yt({explicit:K.episode.explicit}),dispatch:it().dispatch}},methods:{updateExplicit(e){this.dispatch(wt({prop:"explicit",value:e.target.checked}))}}}),pH={class:"relative flex items-start"},hH={class:"flex items-center h-5"},mH=["checked"],gH={class:"ml-3 text-sm"},vH={for:"explicit-content",class:"font-medium text-gray-700"},yH={class:"text-gray-500"};function bH(e,t,n,r,o,s){return N(),V("div",pH,[v("div",hH,[v("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,mH)]),v("div",gH,[v("label",vH,U(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),v("p",yH,U(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}const _H=Be(fH,[["render",bH]]),wH=ge({components:{Module:Nn},setup(){return{state:yt({title:K.episode.title,post_title:K.post.title}),dispatch:it().dispatch}},methods:{updateTitle(e){this.dispatch(wt({prop:"title",value:e.target.value}))}}}),SH={for:"episode-title",class:"block text-sm font-medium text-gray-700"},EH={class:"mt-1"},xH=["value","placeholder"],$H={class:"mt-2 text-sm text-gray-500"};function CH(e,t,n,r,o,s){return N(),V("div",null,[v("label",SH,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),v("div",EH,[v("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,xH)]),v("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)])}const TH=Be(wH,[["render",CH]]),OH=ge({setup(){const e=yt({subtitle:K.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(wt({prop:"subtitle",value:e.target.value}))}}}),AH={for:"subtitle",class:"block text-sm font-medium text-gray-700"},IH={class:"mt-1"},PH=["value"],kH={class:"mt-2 text-sm text-gray-500 flex justify-between"};function RH(e,t,n,r,o,s){return N(),V("div",null,[v("label",AH,U(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),v("div",IH,[v("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,PH)]),v("p",kH,[v("span",null,U(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),v("span",null,U(e.charactersLeft),1)])])}const LH=Be(OH,[["render",RH]]),NH=ge({setup(){const e=yt({summary:K.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(wt({prop:"summary",value:e.target.value}))}}}),MH={for:"summary",class:"block text-sm font-medium text-gray-700"},DH={class:"mt-1"},FH=["value"],BH={class:"mt-2 text-sm text-gray-500 flex justify-end"};function UH(e,t,n,r,o,s){return N(),V("div",null,[v("label",MH,U(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),v("div",DH,[v("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,FH)]),v("p",BH,[v("span",null,U(e.charactersLeft),1)])])}const jH=Be(NH,[["render",UH]]),HH=ge({components:{Module:Nn},setup(){return{state:yt({type:K.episode.type}),dispatch:it().dispatch}},methods:{updateType(e){this.dispatch(wt({prop:"type",value:e.target.value}))}}}),VH={for:"episode-type",class:"block text-sm font-medium text-gray-700"},WH={class:"mt-1"},zH=["value"],qH={value:"full"},KH={value:"trailer"},GH={value:"bonus"},XH={class:"mt-2 text-sm text-gray-500"};function JH(e,t,n,r,o,s){return N(),V("div",null,[v("label",VH,U(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),v("div",WH,[v("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))},[v("option",null,U(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),v("option",qH,U(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),v("option",KH,U(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),v("option",GH,U(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,zH)]),v("p",XH,U(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}const YH=Be(HH,[["render",JH]]),ZH=ge({components:{Module:Nn,EpisodePoster:oH,EpisodeNumber:dH,EpisodeContent:_H,EpisodeTitle:TH,EpisodeSubtitle:LH,EpisodeSummary:jH,EpisodeType:YH},setup(){return{state:yt({explicitContentEnabled:K.settings.enableEpisodeExplicit}),dispatch:it().dispatch}},created(){this.dispatch(kd())}}),QH={class:"p-3"},eV={class:"flex justify-items-stretch mb-5"},tV={class:"mb-2 w-full"},nV={class:"flex mb-5"},rV={class:"mb-5"},oV={class:"mb-5"};function iV(e,t,n,r,o,s){const l=J("episode-poster"),a=J("episode-number"),c=J("episode-content"),d=J("episode-type"),p=J("episode-title"),h=J("episode-subtitle"),g=J("episode-summary"),y=J("module");return N(),bt(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[v("div",QH,[v("div",eV,[q(l,{class:"mr-5"}),v("div",tV,[v("div",nV,[q(a,{class:"w-full"}),e.state.explicitContentEnabled?(N(),bt(c,{key:0,class:"ml-5 w-full"})):Ke("",!0)]),q(d,{class:"w-full"})])]),v("div",rV,[q(p,{class:"w-full"})]),v("div",oV,[q(h,{class:"w-full"})]),v("div",null,[q(g,{class:"w-full"})])])]),_:1},8,["title"])}const sV=Be(ZH,[["render",iV]]),lV=ge({data(){return{visible:!1}},props:{name:String},methods:{}}),aV=["data-tab"];function uV(e,t,n,r,o,s){return N(),V("div",{class:"hidden","data-tab":e.name},[_r(e.$slots,"default")],8,aV)}const A$=Be(lV,[["render",uV]]),cV=ge({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:X.get(n,["props","name"]),title:X.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(X.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")})}}}),dV={class:"block"},fV={class:"border-b border-gray-200"},pV={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},hV=["onClick"],mV={ref:"tabs"};function gV(e,t,n,r,o,s){return N(),V("div",null,[v("div",dV,[v("div",fV,[v("nav",pV,[(N(!0),V(Fe,null,Mt(e.tabs,l=>(N(),V("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:St([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"])},[v("span",null,U(l.title),1)],10,hV))),128))])])]),v("div",mV,[_r(e.$slots,"default")],512)])}const I$=Be(cV,[["render",gV]]),vV=ge({components:{PodloveButton:Vn,PlusSmIcon:Lg,BookmarkAltIcon:X9,UploadIcon:K9},setup(){return{state:yt({chapters:K.chapters.list,selected:K.chapters.selected,selectedIndex:K.chapters.selectedIndex,episodeDuration:K.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=X.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(fi(null)):this.dispatch(fi(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(n7({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(r7(this.state.selectedIndex))},async addChapter(){this.dispatch(o7()),this.dispatch(fi(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(a7())}}}),yV={key:0},bV={class:"md:flex p-2 sm:block"},_V={class:"w-full"},wV={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},SV={class:"min-w-full divide-y divide-gray-200 mb-2"},EV={ref:"chapters"},xV=["onClick"],$V={key:0,class:"px-2 py-2 w-16"},CV=["src"],TV={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},OV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},AV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},IV={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},PV={class:"mb-5 mt-2"},kV={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},RV={class:"mt-1"},LV=["value"],NV={class:"mb-5"},MV={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},DV={class:"text-xs"},FV={class:"mt-1"},BV=["value"],UV={class:"mb-5"},jV={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},HV={class:"mt-1"},VV=["value"],WV={class:"mb-5"},zV={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},qV={class:"text-xs"},KV={class:"mt-1 relative"},GV=["value"],XV=["title"],JV={class:"mb-5 ml-1"},YV={class:"mt-5 ml-5 pb-5"},ZV={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},QV={class:"mt-2 text-sm font-medium text-gray-900"},eW={class:"mt-1 text-sm text-gray-500"},tW={class:"mt-6"};function nW(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button"),c=J("plus-sm-icon"),d=J("bookmark-alt-icon");return e.chapters.length>0?(N(),V("div",yV,[v("div",bV,[v("div",_V,[v("div",wV,[v("table",SV,[v("tbody",EV,[(N(!0),V(Fe,null,Mt(e.chapters,(p,h)=>(N(),V("tr",{onClick:g=>e.selectChapter(h),key:`chapter-${h}`,class:St(["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,CV)):Ke("",!0)])):Ke("",!0),v("td",TV,U(p.start),1),v("td",OV,U(p.title),1),v("td",AV,U(p.duration),1)],10,xV))),128))],512)])],512)]),e.state.selected?(N(),V("div",IV,[v("div",PV,[v("label",kV,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),v("div",RV,[v("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,LV)])]),v("div",NV,[v("label",MV,[Xe("Url "),v("span",DV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",FV,[v("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,BV)])]),v("div",UV,[v("label",jV,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),v("div",HV,[v("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,VV)])]),v("div",WV,[v("label",zV,[Xe(U(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",qV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",KV,[v("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,GV),v("button",{onClick:t[4]||(t[4]=xc(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,XV)])]),v("div",JV,[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})])])):Ke("",!0)]),v("div",YV,[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",ZV,[q(d,{class:"mx-auto h-12 w-12 text-gray-400"}),v("h3",QV,U(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),v("p",eW,U(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),v("div",tW,[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})])]))}const rW=Be(vV,[["render",nW]]);function Wh(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 d=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 d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(a=e.apply(s,o),s=o=null,clearTimeout(r),r=null)},d}Wh.debounce=Wh;var Wp=Wh;function oW(e,t,n){dn(e)?Ft(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):vt(()=>{e.addEventListener(t,n)}),fs(()=>{var r;(r=jn(e))===null||r===void 0||r.removeEventListener(t,n)})}function iW(e,t){const n="pointerdown";return typeof window>"u"||!window?void 0:oW(window,n,o=>{const s=jn(e);s&&(s===o.target||o.composedPath().includes(s)||t(o))})}function sW(e,t,n){let r=null;const o=_e(!1);vt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(s),r.observe(t.value,{childList:!0,subtree:!0})}),fs(()=>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 el(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 so(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jg(e){var t=so(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _a(e){var t=so(e).Element;return e instanceof t||e instanceof Element}function Nr(e){var t=so(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function P$(e){if(typeof ShadowRoot>"u")return!1;var t=so(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function aW(e){return e===so(e)||!Nr(e)?Jg(e):lW(e)}function wo(e){return e?(e.nodeName||"").toLowerCase():null}function Ci(e){return((_a(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yg(e){return el(Ci(e)).left+Jg(e).scrollLeft}function zo(e){return so(e).getComputedStyle(e)}function Zg(e){var t=zo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uW(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function cW(e,t,n){n===void 0&&(n=!1);var r=Nr(t);Nr(t)&&uW(t);var o=Ci(t),s=el(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((wo(t)!=="body"||Zg(o))&&(l=aW(t)),Nr(t)?(a=el(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Yg(o))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Qg(e){var t=el(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 Jd(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(P$(e)?e.host:null)||Ci(e)}function k$(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:Nr(e)&&Zg(e)?e:k$(Jd(e))}function ta(e,t){var n;t===void 0&&(t=[]);var r=k$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=so(r),l=o?[s].concat(s.visualViewport||[],Zg(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ta(Jd(l)))}function dW(e){return["table","td","th"].indexOf(wo(e))>=0}function j_(e){return!Nr(e)||zo(e).position==="fixed"?null:e.offsetParent}function fW(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Nr(e)){var r=zo(e);if(r.position==="fixed")return null}for(var o=Jd(e);Nr(o)&&["html","body"].indexOf(wo(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=so(e),n=j_(e);n&&dW(n)&&zo(n).position==="static";)n=j_(n);return n&&(wo(n)==="html"||wo(n)==="body"&&zo(n).position==="static")?t:n||fW(e)||t}var Mr="top",to="bottom",no="right",Dr="left",ev="auto",qa=[Mr,to,no,Dr],tl="start",wa="end",pW="clippingParents",R$="viewport",Dl="popper",hW="reference",H_=qa.reduce(function(e,t){return e.concat([t+"-"+tl,t+"-"+wa])},[]),L$=[].concat(qa,[ev]).reduce(function(e,t){return e.concat([t,t+"-"+tl,t+"-"+wa])},[]),mW="beforeRead",gW="read",vW="afterRead",yW="beforeMain",bW="main",_W="afterMain",wW="beforeWrite",SW="write",EW="afterWrite",xW=[mW,gW,vW,yW,bW,_W,wW,SW,EW];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 CW(e){var t=$W(e);return xW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function TW(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 OW(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 AW(e){var t=so(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+Yg(e),y:a}}var gi=Math.max,Sa=Math.min,tc=Math.round;function IW(e){var t,n=Ci(e),r=Jg(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=gi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=gi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Yg(e),c=-r.scrollTop;return zo(o||n).direction==="rtl"&&(a+=gi(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function N$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&P$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function PW(e){var t=el(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 V_(e,t){return t===R$?zh(AW(e)):Nr(t)?PW(t):zh(IW(Ci(e)))}function kW(e){var t=ta(Jd(e)),n=["absolute","fixed"].indexOf(zo(e).position)>=0,r=n&&Nr(e)?za(e):e;return _a(r)?t.filter(function(o){return _a(o)&&N$(o,r)&&wo(o)!=="body"}):[]}function RW(e,t,n){var r=t==="clippingParents"?kW(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var d=V_(e,c);return a.top=gi(d.top,a.top),a.right=Sa(d.right,a.right),a.bottom=Sa(d.bottom,a.bottom),a.left=gi(d.left,a.left),a},V_(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 nl(e){return e.split("-")[1]}function tv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function M$(e){var t=e.reference,n=e.element,r=e.placement,o=r?yo(r):null,s=r?nl(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Mr:c={x:l,y:t.y-n.height};break;case to:c={x:l,y:t.y+t.height};break;case no:c={x:t.x+t.width,y:a};break;case Dr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?tv(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case tl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case wa:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function D$(){return{top:0,right:0,bottom:0,left:0}}function F$(e){return Object.assign({},D$(),e)}function B$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function nv(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?pW:s,a=n.rootBoundary,c=a===void 0?R$:a,d=n.elementContext,p=d===void 0?Dl:d,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,S=F$(typeof _!="number"?_:B$(_,qa)),C=p===Dl?hW:Dl,T=e.rects.popper,w=e.elements[g?C:p],E=RW(_a(w)?w:w.contextElement||Ci(e.elements.popper),l,c),O=el(e.elements.reference),$=M$({reference:O,element:T,strategy:"absolute",placement:o}),P=zh(Object.assign({},T,$)),k=p===Dl?P:O,I={top:E.top-k.top+S.top,bottom:k.bottom-E.bottom+S.bottom,left:E.left-k.left+S.left,right:k.right-E.right+S.right},H=e.modifiersData.offset;if(p===Dl&&H){var D=H[o];Object.keys(I).forEach(function(F){var z=[no,to].indexOf(F)>=0?1:-1,G=[Mr,to].indexOf(F)>=0?"y":"x";I[F]+=D[G]*z})}return I}var W_={placement:"bottom",modifiers:[],strategy:"absolute"};function z_(){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 LW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?W_:o;return function(a,c,d){d===void 0&&(d=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},W_,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(T){var w=typeof T=="function"?T(p.options):T;S(),p.options=Object.assign({},s,p.options,w),p.scrollParents={reference:_a(a)?ta(a):a.contextElement?ta(a.contextElement):[],popper:ta(c)};var E=CW(OW([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),_(),y.update()},forceUpdate:function(){if(!g){var T=p.elements,w=T.reference,E=T.popper;if(z_(w,E)){p.rects={reference:cW(w,za(E),p.options.strategy==="fixed"),popper:Qg(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 O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,k=$.options,I=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:I,name:H,instance:y})||p)}}}},update:TW(function(){return new Promise(function(C){y.forceUpdate(),C(p)})}),destroy:function(){S(),g=!0}};if(!z_(a,c))return y;y.setOptions(d).then(function(C){!g&&d.onFirstUpdate&&d.onFirstUpdate(C)});function _(){p.orderedModifiers.forEach(function(C){var T=C.name,w=C.options,E=w===void 0?{}:w,O=C.effect;if(typeof O=="function"){var $=O({state:p,name:T,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(C){return C()}),h=[]}return y}}var nc={passive:!0};function NW(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=so(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",n.update,nc)}),a&&c.addEventListener("resize",n.update,nc),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",n.update,nc)}),a&&c.removeEventListener("resize",n.update,nc)}}var MW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:NW,data:{}};function DW(e){var t=e.state,n=e.name;t.modifiersData[n]=M$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var FW={name:"popperOffsets",enabled:!0,phase:"read",fn:DW,data:{}},BW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function UW(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:tc(tc(t*o)/o)||0,y:tc(tc(n*o)/o)||0}}function q_(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=p===!0?UW(l):typeof p=="function"?p(l):l,g=h.x,y=g===void 0?0:g,_=h.y,S=_===void 0?0:_,C=l.hasOwnProperty("x"),T=l.hasOwnProperty("y"),w=Dr,E=Mr,O=window;if(d){var $=za(n),P="clientHeight",k="clientWidth";$===so(n)&&($=Ci(n),zo($).position!=="static"&&a==="absolute"&&(P="scrollHeight",k="scrollWidth")),$=$,(o===Mr||(o===Dr||o===no)&&s===wa)&&(E=to,S-=$[P]-r.height,S*=c?1:-1),(o===Dr||(o===Mr||o===to)&&s===wa)&&(w=no,y-=$[k]-r.width,y*=c?1:-1)}var I=Object.assign({position:a},d&&BW);if(c){var H;return Object.assign({},I,(H={},H[E]=T?"0":"",H[w]=C?"0":"",H.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",H))}return Object.assign({},I,(t={},t[E]=T?S+"px":"",t[w]=C?y+"px":"",t.transform="",t))}function jW(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,d={placement:yo(t.placement),variation:nl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,q_(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,q_(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var HW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jW,data:{}};function VW(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];!Nr(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 WW(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,d){return c[d]="",c},{});!Nr(o)||!wo(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var zW={name:"applyStyles",enabled:!0,phase:"write",fn:VW,effect:WW,requires:["computeStyles"]},qW=[MW,FW,HW,zW],KW=LW({defaultModifiers:qW});function GW(e){return e==="x"?"y":"x"}function hc(e,t,n){return gi(e,Sa(t,n))}function XW(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,d=n.rootBoundary,p=n.altBoundary,h=n.padding,g=n.tether,y=g===void 0?!0:g,_=n.tetherOffset,S=_===void 0?0:_,C=nv(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),T=yo(t.placement),w=nl(t.placement),E=!w,O=tv(T),$=GW(O),P=t.modifiersData.popperOffsets,k=t.rects.reference,I=t.rects.popper,H=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,D={x:0,y:0};if(P){if(s||a){var F=O==="y"?Mr:Dr,z=O==="y"?to:no,G=O==="y"?"height":"width",te=P[O],we=P[O]+C[F],be=P[O]-C[z],Ae=y?-I[G]/2:0,Ie=w===tl?k[G]:I[G],Ye=w===tl?-I[G]:-k[G],ft=t.elements.arrow,Le=y&&ft?Qg(ft):{width:0,height:0},Ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:D$(),Q=Ge[F],ae=Ge[z],fe=hc(0,k[G],Le[G]),xe=E?k[G]/2-Ae-fe-Q-H:Ie-fe-Q-H,He=E?-k[G]/2+Ae+fe+ae+H:Ye+fe+ae+H,De=t.elements.arrow&&za(t.elements.arrow),tt=De?O==="y"?De.clientTop||0:De.clientLeft||0:0,gn=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,ln=P[O]+xe-gn-tt,L=P[O]+He-gn;if(s){var B=hc(y?Sa(we,ln):we,te,y?gi(be,L):be);P[O]=B,D[O]=B-te}if(a){var Z=O==="x"?Mr:Dr,le=O==="x"?to:no,ie=P[$],pe=ie+C[Z],$e=ie-C[le],he=hc(y?Sa(pe,ln):pe,ie,y?gi($e,L):$e);P[$]=he,D[$]=he-ie}}t.modifiersData[r]=D}}var JW={name:"preventOverflow",enabled:!0,phase:"main",fn:XW,requiresIfExists:["offset"]},YW={left:"right",right:"left",bottom:"top",top:"bottom"};function mc(e){return e.replace(/left|right|bottom|top/g,function(t){return YW[t]})}var ZW={start:"end",end:"start"};function K_(e){return e.replace(/start|end/g,function(t){return ZW[t]})}function QW(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,d=c===void 0?L$:c,p=nl(r),h=p?a?H_:H_.filter(function(_){return nl(_)===p}):qa,g=h.filter(function(_){return d.indexOf(_)>=0});g.length===0&&(g=h);var y=g.reduce(function(_,S){return _[S]=nv(e,{placement:S,boundary:o,rootBoundary:s,padding:l})[yo(S)],_},{});return Object.keys(y).sort(function(_,S){return y[_]-y[S]})}function ez(e){if(yo(e)===ev)return[];var t=mc(e);return[K_(e),t,K_(t)]}function tz(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,d=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,S=n.allowedAutoPlacements,C=t.options.placement,T=yo(C),w=T===C,E=c||(w||!_?[mc(C)]:ez(C)),O=[C].concat(E).reduce(function(ae,fe){return ae.concat(yo(fe)===ev?QW(t,{placement:fe,boundary:p,rootBoundary:h,padding:d,flipVariations:_,allowedAutoPlacements:S}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,I=!0,H=O[0],D=0;D<O.length;D++){var F=O[D],z=yo(F),G=nl(F)===tl,te=[Mr,to].indexOf(z)>=0,we=te?"width":"height",be=nv(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),Ae=te?G?no:Dr:G?to:Mr;$[we]>P[we]&&(Ae=mc(Ae));var Ie=mc(Ae),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Ae]<=0,be[Ie]<=0),Ye.every(function(ae){return ae})){H=F,I=!1;break}k.set(F,Ye)}if(I)for(var ft=_?3:1,Le=function(fe){var xe=O.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(xe)return H=xe,"break"},Ge=ft;Ge>0;Ge--){var Q=Le(Ge);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var nz={name:"flip",enabled:!0,phase:"main",fn:tz,requiresIfExists:["offset"],data:{_skip:!1}};function rz(e,t,n){var r=yo(e),o=[Dr,Mr].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,[Dr,no].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function oz(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=L$.reduce(function(p,h){return p[h]=rz(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}var iz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oz},sz=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,F$(typeof t!="number"?t:B$(t,qa))};function lz(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=tv(a),d=[Dr,no].indexOf(a)>=0,p=d?"height":"width";if(!(!s||!l)){var h=sz(o.padding,n),g=Qg(s),y=c==="y"?Mr:Dr,_=c==="y"?to:no,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],C=l[c]-n.rects.reference[c],T=za(s),w=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,E=S/2-C/2,O=h[y],$=w-g[p]-h[_],P=w/2-g[p]/2+E,k=hc(O,P,$),I=c;n.modifiersData[r]=(t={},t[I]=k,t.centerOffset=k-P,t)}}function az(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)||N$(t.elements.popper,o)&&(t.elements.arrow=o))}var uz={name:"arrow",enabled:!0,phase:"main",fn:lz,effect:az,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const zp=e=>parseInt(e,10);function cz({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:s,popperNode:l,triggerNode:a}){const c=Ei({isOpen:!1,popperInstance:null}),d=S=>{var C;(C=c.popperInstance)===null||C===void 0||C.setOptions(T=>({...T,modifiers:[...T.modifiers,{name:"eventListeners",enabled:S}]}))},p=()=>d(!0),h=()=>d(!1),g=()=>{c.isOpen&&(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ft([()=>c.isOpen,s],async([S])=>{S?(await _(),p()):h()});const _=async()=>{await rn(),c.popperInstance=KW(a.value,l.value,{placement:s.value,modifiers:[JW,nz,{name:"flip",enabled:!n.value},uz,{name:"arrow",options:{padding:zp(e.value)}},iz,{name:"offset",options:{offset:[zp(o.value),zp(r.value)]}}]}),c.popperInstance.update()};return fs(()=>{var S;(S=c.popperInstance)===null||S===void 0||S.destroy()}),{...lm(c),open:y,close:g}}const dz={id:"arrow","data-popper-arrow":""};function fz(e,t){return N(),V("div",dz)}function U$(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){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 pz=`
     61`));let y=Jx((l=h.props)!=null?l:{},c,p),_=Ur(h,y,!0);for(let S in y)S.startsWith("on")&&(_.props||(_.props={}),_.props[S]=y[S]);return _}return Array.isArray(d)&&d.length===1?d[0]:d}return dt(a,Object.assign({},c,p),{default:()=>d})}function Xx(e){return e.flatMap(t=>t.type===Fe?Xx(t.children):[t])}function Jx(...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 Ug(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function hs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function UU(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 Et({ourProps:l,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Yx=Symbol("Context");var It=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(It||{});function jU(){return ms()!==null}function ms(){return Rt(Yx,null)}function Kd(e){Zt(Yx,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||{}),Zx=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Zx||{});function HU(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Uo=[];HU(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Uo[0]!==t.target&&(Uo.unshift(t.target),Uo=Uo.filter(n=>n!=null&&n.isConnected),Uo.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 VU(e){throw new Error("Unexpected object: "+e)}var $t=(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))($t||{});function Dh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=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:VU(e)}}function jg(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))e$(n,Qx(t,r),o);return n}function Qx(e,t){return e?e+"["+t+"]":t}function e$(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())e$(e,Qx(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,""]):jg(n,t,e)}function WU(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)}}var zU={};function qU(e,t){return e===t}var KU=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(KU||{}),GU=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(GU||{}),XU=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(XU||{});let t$=Symbol("ComboboxContext");function gs(e){let t=Rt(t$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gs),n}return t}let n$=Symbol("VirtualContext"),JU=ve({name:"VirtualProvider",setup(e,{slots:t}){let n=gs("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=CU(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}),Zt(n$,n.virtual.value?o:null),()=>[dt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&zU.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=>Ur(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"}})))]}}),r$=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),d=_e({static:!1,hold:!1}),p=_e([]),h=_e(null),g=_e(2),y=_e(!1);function _(D=F=>F){let F=h.value!==null?p.value[h.value]:null,z=D(p.value.slice()),G=z.length>0&&z[0].dataRef.order.value!==null?z.sort((we,be)=>we.dataRef.order.value-be.dataRef.order.value):Bg(z,we=>ue(we.dataRef.domRef)),te=F?G.indexOf(F):null;return te===-1&&(te=null),{options:G,activeOptionIndex:te}}let S=ce(()=>e.multiple?1:0),C=ce(()=>e.nullable),[T,w]=Mg(ce(()=>e.modelValue),D=>r("update:modelValue",D),ce(()=>e.defaultValue)),E=ce(()=>T.value===void 0?Tt(S.value,{1:[],0:void 0}):T.value),O=null,x=null;function I(D){return Tt(S.value,{0(){return w==null?void 0:w(D)},1:()=>{let F=Ue(P.value.value).slice(),z=Ue(D),G=F.findIndex(te=>P.compare(z,Ue(te)));return G===-1?F.push(z):F.splice(G,1),w==null?void 0:w(F)}})}let k=ce(()=>{});Ft([k],([D],[F])=>{if(P.virtual.value&&D&&F&&h.value!==null){let z=D.indexOf(F[h.value]);z!==-1?h.value=z:h.value=null}});let P={comboboxState:o,value:E,mode:S,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?qU(D,F):e.by(D,F)},calculateIndex(D){return P.virtual.value?e.by===null?P.virtual.value.options.indexOf(D):P.virtual.value.options.findIndex(F=>P.compare(F,D)):p.value.findIndex(F=>P.compare(F.dataRef.value,D))},defaultValue:ce(()=>e.defaultValue),nullable:C,immediate:ce(()=>!1),virtual:ce(()=>null),inputRef:l,labelRef:s,buttonRef:a,optionsRef:c,disabled:ce(()=>e.disabled),options:p,change(D){w(D)},activeOptionIndex:ce(()=>{if(y.value&&h.value===null&&(P.virtual.value?P.virtual.value.options.length>0:p.value.length>0)){if(P.virtual.value){let F=P.virtual.value.options.findIndex(z=>{var G;return!((G=P.virtual.value)!=null&&G.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:g,optionsPropsRef:d,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(P.value.value){let D=P.calculateIndex(P.value.value);D!==-1&&(h.value=D)}o.value=0}},setActivationTrigger(D){g.value=D},goToOption(D,F,z){y.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&o.value===1)return;if(P.virtual.value){h.value=D===$t.Specific?F:Dh({focus:D},{resolveItems:()=>P.virtual.value.options,resolveActiveIndex:()=>{var we,be;return(be=(we=P.activeOptionIndex.value)!=null?we:P.virtual.value.options.findIndex(Ae=>{var Pe;return!((Pe=P.virtual.value)!=null&&Pe.disabled(Ae))}))!=null?be:null},resolveDisabled:we=>P.virtual.value.disabled(we),resolveId(){throw new Error("Function not implemented.")}}),g.value=z??2;return}let G=_();if(G.activeOptionIndex===null){let we=G.options.findIndex(be=>!be.dataRef.disabled);we!==-1&&(G.activeOptionIndex=we)}let te=D===$t.Specific?F:Dh({focus:D},{resolveItems:()=>G.options,resolveActiveIndex:()=>G.activeOptionIndex,resolveId:we=>we.id,resolveDisabled:we=>we.dataRef.disabled});h.value=te,g.value=z??2,p.value=G.options})},selectOption(D){let F=p.value.find(G=>G.id===D);if(!F)return;let{dataRef:z}=F;I(z.value)},selectActiveOption(){if(P.activeOptionIndex.value!==null){if(P.virtual.value)I(P.virtual.value.options[P.activeOptionIndex.value]);else{let{dataRef:D}=p.value[P.activeOptionIndex.value];I(D.value)}P.goToOption($t.Specific,P.activeOptionIndex.value)}},registerOption(D,F){let z=xi({id:D,dataRef:F});if(P.virtual.value){p.value.push(z);return}x&&cancelAnimationFrame(x);let G=_(te=>(te.push(z),te));h.value===null&&P.isSelected(F.value.value)&&(G.activeOptionIndex=G.options.indexOf(z)),p.value=G.options,h.value=G.activeOptionIndex,g.value=2,G.options.some(te=>!ue(te.dataRef.domRef))&&(x=requestAnimationFrame(()=>{let te=_();p.value=te.options,h.value=te.activeOptionIndex}))},unregisterOption(D,F){if(O!==null&&cancelAnimationFrame(O),F&&(y.value=!0),P.virtual.value){p.value=p.value.filter(G=>G.id!==D);return}let z=_(G=>{let te=G.findIndex(we=>we.id===D);return te!==-1&&G.splice(te,1),G});p.value=z.options,h.value=z.activeOptionIndex,g.value=2},isSelected(D){return Tt(S.value,{0:()=>P.compare(Ue(P.value.value),Ue(D)),1:()=>Ue(P.value.value).some(F=>P.compare(Ue(F),Ue(D)))})},isActive(D){return h.value===P.calculateIndex(D)}};zd([l,a,c],()=>P.closeCombobox(),ce(()=>o.value===0)),Zt(t$,P),Kd(ce(()=>Tt(o.value,{0:It.Open,1:It.Closed})));let H=ce(()=>{var D;return(D=ue(l))==null?void 0:D.closest("form")});return vt(()=>{Ft([H],()=>{if(!H.value||e.defaultValue===void 0)return;function D(){P.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:G,disabled:te,form:we,...be}=e,Ae={open:o.value===0,disabled:te,activeIndex:P.activeOptionIndex.value,activeOption:P.activeOptionIndex.value===null?null:P.virtual.value?P.virtual.value.options[(D=P.activeOptionIndex.value)!=null?D:0]:(z=(F=P.options.value[P.activeOptionIndex.value])==null?void 0:F.dataRef.value)!=null?z:null,value:E.value};return dt(Fe,[...G!=null&&E.value!=null?jg({[G]:E.value}).map(([Pe,Ye])=>dt(_o,Ug({features:to.Hidden,key:Pe,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:we,disabled:te,name:Pe,value:Ye}))):[],Et({theirProps:{...n,...hs(be,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Ae,slots:t,attrs:n,name:"Combobox"})])}}}),YU=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=gs("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,d={id:o,ref:s.labelRef,onClick:l};return Et({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),o$=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=gs("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($t.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 d=qd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let g={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,_={ref:l.buttonRef,id:s,type:d.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 Et({ourProps:_,theirProps:y,slot:g,attrs:t,slots:n,name:"ComboboxButton"})}}}),i$=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=gs("ComboboxInput"),c=ce(()=>Wr(ue(a.inputRef))),d={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let x=ue(a.optionsRef);x&&(x.scrollTop=0),a.goToOption($t.Nothing)}let h=ce(()=>{var x;let I=a.value.value;return ue(a.inputRef)?typeof e.displayValue<"u"&&I!==void 0?(x=e.displayValue(I))!=null?x:"":typeof I=="string"?I:"":""});vt(()=>{Ft([h,a.comboboxState,c],([x,I],[k,P])=>{if(d.value)return;let H=ue(a.inputRef);H&&((P===0&&I===1||x!==k)&&(H.value=x),requestAnimationFrame(()=>{var D;if(d.value||!H||((D=c.value)==null?void 0:D.activeElement)!==H)return;let{selectionStart:F,selectionEnd:z}=H;Math.abs((z??0)-(F??0))===0&&F===0&&H.setSelectionRange(H.value.length,H.value.length)}))},{immediate:!0}),Ft([a.comboboxState],([x],[I])=>{if(x===0&&I===1){if(d.value)return;let k=ue(a.inputRef);if(!k)return;let P=k.value,{selectionStart:H,selectionEnd:D,selectionDirection:F}=k;k.value="",k.value=P,F!==null?k.setSelectionRange(H,D,F):k.setSelectionRange(H,D)}})});let g=_e(!1);function y(){g.value=!0}function _(){Ei().nextFrame(()=>{g.value=!1})}let S=OU();function C(x){switch(d.value=!0,S(()=>{d.value=!1}),x.key){case lt.Enter:if(d.value=!1,a.comboboxState.value!==0||g.value)return;if(x.preventDefault(),x.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case lt.ArrowDown:return d.value=!1,x.preventDefault(),x.stopPropagation(),Tt(a.comboboxState.value,{0:()=>a.goToOption($t.Next),1:()=>a.openCombobox()});case lt.ArrowUp:return d.value=!1,x.preventDefault(),x.stopPropagation(),Tt(a.comboboxState.value,{0:()=>a.goToOption($t.Previous),1:()=>{a.openCombobox(),rn(()=>{a.value.value||a.goToOption($t.Last)})}});case lt.Home:if(x.shiftKey)break;return d.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption($t.First);case lt.PageUp:return d.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption($t.First);case lt.End:if(x.shiftKey)break;return d.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption($t.Last);case lt.PageDown:return d.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption($t.Last);case lt.Escape:if(d.value=!1,a.comboboxState.value!==0)return;x.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&x.stopPropagation(),a.nullable.value&&a.mode.value===0&&a.value.value===null&&p(),a.closeCombobox();break;case lt.Tab:if(d.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function T(x){t("change",x),a.nullable.value&&a.mode.value===0&&x.target.value===""&&p(),a.openCombobox()}function w(x){var I,k,P;let H=(I=x.relatedTarget)!=null?I:Uo.find(D=>D!==x.currentTarget);if(d.value=!1,!((k=ue(a.optionsRef))!=null&&k.contains(H))&&!((P=ue(a.buttonRef))!=null&&P.contains(H))&&a.comboboxState.value===0)return x.preventDefault(),a.mode.value===0&&(a.nullable.value&&a.value.value===null?p():a.activationTrigger.value!==1&&a.selectActiveOption()),a.closeCombobox()}function E(x){var I,k,P;let H=(I=x.relatedTarget)!=null?I:Uo.find(D=>D!==x.currentTarget);(k=ue(a.buttonRef))!=null&&k.contains(H)||(P=ue(a.optionsRef))!=null&&P.contains(H)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),Ei().nextFrame(()=>{a.setActivationTrigger(1)}))}let O=ce(()=>{var x,I,k,P;return(P=(k=(I=e.defaultValue)!=null?I:a.defaultValue.value!==void 0?(x=e.displayValue)==null?void 0:x.call(e,a.defaultValue.value):null)!=null?k:a.defaultValue.value)!=null?P:""});return()=>{var x,I,k,P,H,D,F;let z={open:a.comboboxState.value===0},{displayValue:G,onChange:te,...we}=e,be={"aria-controls":(x=a.optionsRef.value)==null?void 0:x.id,"aria-expanded":a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null?void 0:a.virtual.value?(I=a.options.value.find(Ae=>!a.virtual.value.disabled(Ae.dataRef.value)&&a.compare(Ae.dataRef.value,a.virtual.value.options[a.activeOptionIndex.value])))==null?void 0:I.id:(k=a.options.value[a.activeOptionIndex.value])==null?void 0:k.id,"aria-labelledby":(D=(P=ue(a.labelRef))==null?void 0:P.id)!=null?D:(H=ue(a.buttonRef))==null?void 0:H.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:_,onKeydown:C,onInput:T,onFocus:E,onBlur:w,role:"combobox",type:(F=n.type)!=null?F:"text",tabIndex:0,ref:a.inputRef,defaultValue:O.value,disabled:a.disabled.value===!0?!0:void 0};return Et({ourProps:be,theirProps:we,slot:z,attrs:n,slots:r,features:sr.RenderStrategy|sr.Static,name:"ComboboxInput"})}}}),s$=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=gs("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=ms(),a=ce(()=>l!==null?(l.value&It.Open)===It.Open:o.comboboxState.value===0);BU({container:ce(()=>ue(o.optionsRef)),enabled:ce(()=>o.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,p,h;let g={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(d=ue(o.labelRef))==null?void 0:d.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},_=hs(e,["hold"]);return Et({ourProps:y,theirProps:_,slot:g,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[dt(JU,{},n.default)]}:n,features:sr.RenderStrategy|sr.Static,visible:a.value,name:"ComboboxOptions"})}}}),l$=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=gs("ComboboxOption"),s=`headlessui-combobox-option-${zt()}`,l=_e(null),a=ce(()=>e.disabled);r({el:l,$el:l});let c=ce(()=>{var w;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((w=o.options.value[o.activeOptionIndex.value])==null?void 0:w.id)===s}),d=ce(()=>o.isSelected(e.value)),p=Rt(n$,null),h=ce(()=>({disabled:e.disabled,value:e.value,domRef:l,order:ce(()=>e.order)}));vt(()=>o.registerOption(s,h)),Qt(()=>o.unregisterOption(s,c.value)),jt(()=>{let w=ue(l);w&&(p==null||p.value.measureElement(w))}),jt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&rn(()=>{var w,E;return(E=(w=ue(l))==null?void 0:w.scrollIntoView)==null?void 0:E.call(w,{block:"nearest"})}))});function g(w){w.preventDefault(),w.button===Zx.Left&&(a.value||(o.selectOption(s),qx()||requestAnimationFrame(()=>{var E;return(E=ue(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var w;if(e.disabled||(w=o.virtual.value)!=null&&w.disabled(e.value))return o.goToOption($t.Nothing);let E=o.calculateIndex(e.value);o.goToOption($t.Specific,E)}let _=Gx();function S(w){_.update(w)}function C(w){var E;if(!_.wasMoved(w)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let O=o.calculateIndex(e.value);o.goToOption($t.Specific,O,0)}function T(w){var E;_.wasMoved(w)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption($t.Nothing)))}return()=>{let{disabled:w}=e,E={active:c.value,selected:d.value,disabled:w},O={id:s,ref:l,role:"option",tabIndex:w===!0?void 0:-1,"aria-disabled":w===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:g,onFocus:y,onPointerenter:S,onMouseenter:S,onPointermove:C,onMousemove:C,onPointerleave:T,onMouseleave:T},x=hs(e,["order","value"]);return Et({ourProps:O,theirProps:x,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function Hg(e,t,n,r){ja.isServer||jt(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var mr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(mr||{});function Vg(){let e=_e(0);return Kx("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function a$(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 u$=(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))(u$||{});let Nl=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(()=>Wr(o)),l=_e(!1);vt(()=>l.value=!0),Qt(()=>l.value=!1),QU({ownerDocument:s},ce(()=>l.value&&!!(e.features&16)));let a=ej({ownerDocument:s,container:o,initialFocus:ce(()=>e.initialFocus)},ce(()=>l.value&&!!(e.features&2)));tj({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},ce(()=>l.value&&!!(e.features&8)));let c=Vg();function d(y){let _=ue(o);_&&(S=>S())(()=>{Tt(c.value,{[mr.Forwards]:()=>{Yr(_,In.First,{skipElements:[y.relatedTarget]})},[mr.Backwards]:()=>{Yr(_,In.Last,{skipElements:[y.relatedTarget]})}})})}let p=_e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function g(y){if(!l.value)return;let _=a$(e.containers);ue(o)instanceof HTMLElement&&_.add(ue(o));let S=y.relatedTarget;S instanceof HTMLElement&&S.dataset.headlessuiFocusGuard!=="true"&&(c$(_,S)||(p.value?Yr(ue(o),Tt(c.value,{[mr.Forwards]:()=>In.Next,[mr.Backwards]:()=>In.Previous})|In.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&rs(y.target)))}return()=>{let y={},_={ref:o,onKeydown:h,onFocusout:g},{features:S,initialFocus:C,containers:T,...w}=e;return dt(Fe,[!!(S&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:to.Focusable}),Et({ourProps:_,theirProps:{...t,...w},slot:y,attrs:t,slots:n,name:"FocusTrap"}),!!(S&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:to.Focusable})])}}}),{features:u$});function ZU(e){let t=_e(Uo.slice());return Ft([e],([n],[r])=>{r===!0&&n===!1?Dg(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Uo.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function QU({ownerDocument:e},t){let n=ZU(t);vt(()=>{jt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&rs(n())},{flush:"post"})}),Qt(()=>{t.value&&rs(n())})}function ej({ownerDocument:e,container:t,initialFocus:n},r){let o=_e(null),s=_e(!1);return vt(()=>s.value=!0),Qt(()=>s.value=!1),vt(()=>{Ft([t,n,r],(l,a)=>{if(l.every((d,p)=>(a==null?void 0:a[p])===d)||!r.value)return;let c=ue(t);c&&Dg(()=>{var d,p;if(!s.value)return;let h=ue(n),g=(d=e.value)==null?void 0:d.activeElement;if(h){if(h===g){o.value=g;return}}else if(c.contains(g)){o.value=g;return}h?rs(h):Yr(c,In.First|In.NoScroll)===ba.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 tj({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;Hg((s=e.value)==null?void 0:s.defaultView,"focus",l=>{if(!o.value)return;let a=a$(n);ue(t)instanceof HTMLElement&&a.add(ue(t));let c=r.value;if(!c)return;let d=l.target;d&&d instanceof HTMLElement?c$(a,d)?(r.value=d,rs(d)):(l.preventDefault(),l.stopPropagation(),rs(c)):rs(r.value)},!0)}function c$(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function nj(e){let t=sd(e.getSnapshot());return Qt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function rj(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 oj(){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 ij(){return zx()?{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=Ei();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:d}=new URL(c.href),p=e.querySelector(d);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 sj(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function lj(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Xi=rj(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ei(),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:lj(n)},o=[ij(),oj(),sj()];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)}});Xi.subscribe(()=>{let e=Xi.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)&&Xi.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Xi.dispatch("TEARDOWN",n)}});function aj(e,t,n){let r=nj(Xi),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;Xi.dispatch("PUSH",s,n);let d=!1;c(()=>{d||(Xi.dispatch("POP",a??s,n),d=!0)})},{immediate:!0}),o}let Hp=new Map,Ml=new Map;function D_(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=Ml.get(o))!=null?l:1;if(a===1?Ml.delete(o):Ml.set(o,a-1),a!==1)return;let c=Hp.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,Hp.delete(o))});let s=(r=Ml.get(o))!=null?r:0;Ml.set(o,s+1),s===0&&(Hp.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function d$({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=_e(null),o=Wr(r);function s(){var l,a,c;let d=[];for(let p of e)p!==null&&(p instanceof HTMLElement?d.push(p):"value"in p&&p.value instanceof HTMLElement&&d.push(p.value));if(t!=null&&t.value)for(let p of t.value)d.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)||d.some(h=>p.contains(h))||d.push(p));return d}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 uj(){let e=_e(null);return{mainTreeNodeRef:e,MainTreeNode(){return dt(_o,{features:to.Hidden,ref:e})}}}let f$=Symbol("ForcePortalRootContext");function cj(){return Rt(f$,!1)}let Fh=ve({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Zt(f$,e.force),()=>{let{force:r,...o}=e;return Et({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),p$=Symbol("StackContext");var Bh=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Bh||{});function dj(){return Rt(p$,()=>{})}function fj({type:e,enabled:t,element:n,onUpdate:r}){let o=dj();function s(...l){r==null||r(...l),o(...l)}vt(()=>{Ft(t,(l,a)=>{l?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),Qt(()=>{t.value&&s(1,e,n)}),Zt(p$,s)}let h$=Symbol("DescriptionContext");function pj(){let e=Rt(h$,null);if(e===null)throw new Error("Missing parent");return e}function m$({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 Zt(h$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}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=pj();return vt(()=>Qt(s.register(o))),()=>{let{name:l="Description",slot:a=_e({}),props:c={}}=s,{...d}=e,p={...Object.entries(c).reduce((h,[g,y])=>Object.assign(h,{[g]:Hn(y)}),{}),id:o};return Et({ourProps:p,theirProps:d,slot:a.value,attrs:t,slots:n,name:l})}}});function hj(e){let t=Wr(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 Uh=new WeakMap;function mj(e){var t;return(t=Uh.get(e))!=null?t:0}function F_(e,t){let n=t(mj(e));return n<=0?Uh.delete(e):Uh.set(e,n),n}let g$=ve({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=ce(()=>Wr(r)),s=cj(),l=Rt(y$,null),a=_e(s===!0||l==null?hj(r.value):l.resolveTarget());a.value&&F_(a.value,g=>g+1);let c=_e(!1);vt(()=>{c.value=!0}),jt(()=>{s||l!=null&&(a.value=l.resolveTarget())});let d=Rt(jh,null),p=!1,h=Xo();return Ft(r,()=>{if(p||!d)return;let g=ue(r);g&&(Qt(d.register(g),h),p=!0)}),Qt(()=>{var g,y;let _=(g=o.value)==null?void 0:g.getElementById("headlessui-portal-root");!_||a.value!==_||F_(a.value,S=>S-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let g={ref:r,"data-headlessui-portal":""};return dt(aw,{to:a.value},Et({ourProps:g,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),jh=Symbol("PortalParentContext");function v$(){let e=Rt(jh,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 Zt(jh,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let y$=Symbol("PortalGroupContext"),gj=ve({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=xi({resolveTarget(){return e.target}});return Zt(y$,r),()=>{let{target:o,...s}=e;return Et({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var vj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(vj||{});let Hh=Symbol("DialogContext");function Ha(e){let t=Rt(Hh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ha),n}return t}let Qu="DC8F892D-2EBD-447C-A4C8-A03058436FF4",yj=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:Qu},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);vt(()=>{c.value=!0});let d=!1,p=ce(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=_e(0),g=ms(),y=ce(()=>e.open===Qu&&g!==null?(g.value&It.Open)===It.Open:e.open),_=_e(null),S=ce(()=>Wr(_));if(o({el:_,$el:_}),!(e.open!==Qu||g!==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===Qu?void 0:e.open}`);let C=ce(()=>c.value&&y.value?0:1),T=ce(()=>C.value===0),w=ce(()=>h.value>1),E=Rt(Hh,null)!==null,[O,x]=v$(),{resolveContainers:I,mainTreeNodeRef:k,MainTreeNode:P}=d$({portals:O,defaultContainers:[ce(()=>{var Le;return(Le=Ae.panelRef.value)!=null?Le:_.value})]}),H=ce(()=>w.value?"parent":"leaf"),D=ce(()=>g!==null?(g.value&It.Closing)===It.Closing:!1),F=ce(()=>E||D.value?!1:T.value),z=ce(()=>{var Le,Ge,Q;return(Q=Array.from((Ge=(Le=S.value)==null?void 0:Le.querySelectorAll("body > *"))!=null?Ge:[]).find(ae=>ae.id==="headlessui-portal-root"?!1:ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});D_(z,F);let G=ce(()=>w.value?!0:T.value),te=ce(()=>{var Le,Ge,Q;return(Q=Array.from((Ge=(Le=S.value)==null?void 0:Le.querySelectorAll("[data-headlessui-portal]"))!=null?Ge:[]).find(ae=>ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});D_(te,G),fj({type:"Dialog",enabled:ce(()=>C.value===0),element:_,onUpdate:(Le,Ge)=>{if(Ge==="Dialog")return Tt(Le,{[Bh.Add]:()=>h.value+=1,[Bh.Remove]:()=>h.value-=1})}});let we=m$({name:"DialogDescription",slot:ce(()=>({open:y.value}))}),be=_e(null),Ae={titleId:be,panelRef:_e(null),dialogState:C,setTitleId(Le){be.value!==Le&&(be.value=Le)},close(){t("close",!1)}};Zt(Hh,Ae);let Pe=ce(()=>!(!T.value||w.value));zd(I,(Le,Ge)=>{Le.preventDefault(),Ae.close(),rn(()=>Ge==null?void 0:Ge.focus())},Pe);let Ye=ce(()=>!(w.value||C.value!==0));Hg((l=S.value)==null?void 0:l.defaultView,"keydown",Le=>{Ye.value&&(Le.defaultPrevented||Le.key===lt.Escape&&(Le.preventDefault(),Le.stopPropagation(),Ae.close()))});let ft=ce(()=>!(D.value||C.value!==0||E));return aj(S,ft,Le=>{var Ge;return{containers:[...(Ge=Le.containers)!=null?Ge:[],I]}}),jt(Le=>{if(C.value!==0)return;let Ge=ue(_);if(!Ge)return;let Q=new ResizeObserver(ae=>{for(let fe of ae){let $e=fe.target.getBoundingClientRect();$e.x===0&&$e.y===0&&$e.width===0&&$e.height===0&&Ae.close()}});Q.observe(Ge),Le(()=>Q.disconnect())}),()=>{let{open:Le,initialFocus:Ge,...Q}=e,ae={...n,ref:_,id:a,role:p.value,"aria-modal":C.value===0?!0:void 0,"aria-labelledby":be.value,"aria-describedby":we.value},fe={open:C.value===0};return dt(Fh,{force:!0},()=>[dt(g$,()=>dt(gj,{target:_.value},()=>dt(Fh,{force:!1},()=>dt(Nl,{initialFocus:Ge,containers:I,features:T.value?Tt(H.value,{parent:Nl.features.RestoreFocus,leaf:Nl.features.All&~Nl.features.FocusLock}):Nl.features.None},()=>dt(x,{},()=>Et({ourProps:ae,theirProps:{...Q,...n},slot:fe,attrs:n,slots:r,visible:C.value===0,features:sr.RenderStrategy|sr.Static,name:"Dialog"})))))),dt(P)])}}}),bj=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=Ha("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),s.close())}return()=>{let{...a}=e;return Et({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=Ha("DialogBackdrop"),a=_e(null);return r({el:a,$el:a}),vt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,d={id:s,ref:a,"aria-hidden":!0};return dt(Fh,{force:!0},()=>dt(g$,()=>Et({ourProps:d,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=Ha("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:s,ref:l.panelRef,onClick:a};return Et({ourProps:d,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let _j=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=Ha("DialogTitle");return vt(()=>{s.setTitleId(o),Qt(()=>s.setTitleId(null))}),()=>{let{...l}=e;return Et({ourProps:{id:o},theirProps:l,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),B_=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function U_(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 B_.test(l)&&(l=l.replace(B_,"")),l}function wj(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():U_(s).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return U_(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=wj(r).trim().toLowerCase();return t.value=o,n.value=s,s}}function Ej(e,t){return e===t}var xj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(xj||{}),$j=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))($j||{}),Cj=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Cj||{});function Tj(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let b$=Symbol("ListboxContext");function Va(e){let t=Rt(b$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Va),n}return t}let Wg=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:()=>Ej},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([]),d=_e(""),p=_e(null),h=_e(1);function g(E=O=>O){let O=p.value!==null?c.value[p.value]:null,x=Bg(E(c.value.slice()),k=>ue(k.dataRef.domRef)),I=O?x.indexOf(O):null;return I===-1&&(I=null),{options:x,activeOptionIndex:I}}let y=ce(()=>e.multiple?1:0),[_,S]=Mg(ce(()=>e.modelValue),E=>r("update:modelValue",E),ce(()=>e.defaultValue)),C=ce(()=>_.value===void 0?Tt(y.value,{1:[],0:void 0}):_.value),T={listboxState:o,value:C,mode:y,compare(E,O){if(typeof e.by=="string"){let x=e.by;return(E==null?void 0:E[x])===(O==null?void 0:O[x])}return e.by(E,O)},orientation:ce(()=>e.horizontal?"horizontal":"vertical"),labelRef:s,buttonRef:l,optionsRef:a,disabled:ce(()=>e.disabled),options:c,searchQuery:d,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,O,x){if(e.disabled||o.value===1)return;let I=g(),k=Dh(E===$t.Specific?{focus:$t.Specific,id:O}:{focus:E},{resolveItems:()=>I.options,resolveActiveIndex:()=>I.activeOptionIndex,resolveId:P=>P.id,resolveDisabled:P=>P.dataRef.disabled});d.value="",p.value=k,h.value=x??1,c.value=I.options},search(E){if(e.disabled||o.value===1)return;let O=d.value!==""?0:1;d.value+=E.toLowerCase();let x=(p.value!==null?c.value.slice(p.value+O).concat(c.value.slice(0,p.value+O)):c.value).find(k=>k.dataRef.textValue.startsWith(d.value)&&!k.dataRef.disabled),I=x?c.value.indexOf(x):-1;I===-1||I===p.value||(p.value=I,h.value=1)},clearSearch(){e.disabled||o.value!==1&&d.value!==""&&(d.value="")},registerOption(E,O){let x=g(I=>[...I,{id:E,dataRef:O}]);c.value=x.options,p.value=x.activeOptionIndex},unregisterOption(E){let O=g(x=>{let I=x.findIndex(k=>k.id===E);return I!==-1&&x.splice(I,1),x});c.value=O.options,p.value=O.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||S(E)},select(E){e.disabled||S(Tt(y.value,{0:()=>E,1:()=>{let O=Ue(T.value.value).slice(),x=Ue(E),I=O.findIndex(k=>T.compare(x,Ue(k)));return I===-1?O.push(x):O.splice(I,1),O}}))}};zd([l,a],(E,O)=>{var x;T.closeListbox(),Fg(O,Wd.Loose)||(E.preventDefault(),(x=ue(l))==null||x.focus())},ce(()=>o.value===0)),Zt(b$,T),Kd(ce(()=>Tt(o.value,{0:It.Open,1:It.Closed})));let w=ce(()=>{var E;return(E=ue(l))==null?void 0:E.closest("form")});return vt(()=>{Ft([w],()=>{if(!w.value||e.defaultValue===void 0)return;function E(){T.theirOnChange(e.defaultValue)}return w.value.addEventListener("reset",E),()=>{var O;(O=w.value)==null||O.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:O,disabled:x,form:I,...k}=e,P={open:o.value===0,disabled:x,value:C.value};return dt(Fe,[...E!=null&&C.value!=null?jg({[E]:C.value}).map(([H,D])=>dt(_o,Ug({features:to.Hidden,key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:I,disabled:x,name:H,value:D}))):[],Et({ourProps:{},theirProps:{...n,...hs(k,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:P,slots:t,attrs:n,name:"Listbox"})])}}}),zg=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=Va("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,d={id:o,ref:s.labelRef,onClick:l};return Et({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),qg=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=Va("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 g;(g=ue(l.optionsRef))==null||g.focus({preventScroll:!0}),l.value.value||l.goToOption($t.First)});break;case lt.ArrowUp:h.preventDefault(),l.openListbox(),rn(()=>{var g;(g=ue(l.optionsRef))==null||g.focus({preventScroll:!0}),l.value.value||l.goToOption($t.Last)});break}}function c(h){switch(h.key){case lt.Space:h.preventDefault();break}}function d(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),Tj(()=>{var g;return(g=ue(l.optionsRef))==null?void 0:g.focus({preventScroll:!0})})))}let p=qd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,g;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{..._}=e,S={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?[(g=ue(l.labelRef))==null?void 0:g.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:d};return Et({ourProps:S,theirProps:_,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),Kg=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=Va("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 g=l.options.value[l.activeOptionIndex.value];l.select(g.dataRef.value)}l.mode.value===0&&(l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.focus({preventScroll:!0})}));break;case Tt(l.orientation.value,{vertical:lt.ArrowDown,horizontal:lt.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Next);case Tt(l.orientation.value,{vertical:lt.ArrowUp,horizontal:lt.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Previous);case lt.Home:case lt.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption($t.First);case lt.End:case lt.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Last);case lt.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.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 d=ms(),p=ce(()=>d!==null?(d.value&It.Open)===It.Open:l.listboxState.value===0);return()=>{var h,g;let y={open:l.listboxState.value===0},{..._}=e,S={"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":(g=ue(l.buttonRef))==null?void 0:g.id,"aria-orientation":l.orientation.value,id:s,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return Et({ourProps:S,theirProps:_,slot:y,attrs:t,slots:n,features:sr.RenderStrategy|sr.Static,visible:p.value,name:"ListboxOptions"})}}}),Gg=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=Va("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),d=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 O=Ue(l.value.value);return((E=l.options.value.find(x=>O.some(I=>l.compare(Ue(I),Ue(x.dataRef.value)))))==null?void 0:E.id)===s},0:()=>d.value})),h=Sj(a),g=ce(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));vt(()=>l.registerOption(s,g)),Qt(()=>l.unregisterOption(s)),vt(()=>{Ft([l.listboxState,d],()=>{l.listboxState.value===0&&d.value&&Tt(l.mode.value,{1:()=>{p.value&&l.goToOption($t.Specific,s)},0:()=>{l.goToOption($t.Specific,s)}})},{immediate:!0})}),jt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&rn(()=>{var E,O;return(O=(E=ue(a))==null?void 0:E.scrollIntoView)==null?void 0:O.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 O;return(O=ue(l.buttonRef))==null?void 0:O.focus({preventScroll:!0})}))}function _(){if(e.disabled)return l.goToOption($t.Nothing);l.goToOption($t.Specific,s)}let S=Gx();function C(E){S.update(E)}function T(E){S.wasMoved(E)&&(e.disabled||c.value||l.goToOption($t.Specific,s,0))}function w(E){S.wasMoved(E)&&(e.disabled||c.value&&l.goToOption($t.Nothing))}return()=>{let{disabled:E}=e,O={active:c.value,selected:d.value,disabled:E},{value:x,disabled:I,...k}=e,P={id:s,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:y,onFocus:_,onPointerenter:C,onMouseenter:C,onPointermove:T,onMousemove:T,onPointerleave:w,onMouseleave:w};return Et({ourProps:P,theirProps:k,slot:O,attrs:n,slots:t,name:"ListboxOption"})}}});var Oj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Oj||{});let _$=Symbol("PopoverContext");function Gd(e){let t=Rt(_$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${x$.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Gd),n}return t}let w$=Symbol("PopoverGroupContext");function S$(){return Rt(w$,null)}let E$=Symbol("PopoverPanelContext");function Aj(){return Rt(E$,null)}let x$=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),d=_e(null),p=_e(null),h=ce(()=>Wr(s)),g=ce(()=>{var x,I;if(!ue(a)||!ue(p))return!1;for(let G of document.querySelectorAll("body > *"))if(Number(G==null?void 0:G.contains(ue(a)))^Number(G==null?void 0:G.contains(ue(p))))return!0;let k=Vd(),P=k.indexOf(ue(a)),H=(P+k.length-1)%k.length,D=(P+1)%k.length,F=k[H],z=k[D];return!((x=ue(p))!=null&&x.contains(F))&&!((I=ue(p))!=null&&I.contains(z))}),y={popoverState:l,buttonId:_e(null),panelId:_e(null),panel:p,button:a,isPortalled:g,beforePanelSentinel:c,afterPanelSentinel:d,togglePopover(){l.value=Tt(l.value,{0:1,1:0})},closePopover(){l.value!==1&&(l.value=1)},close(x){y.closePopover();let I=x?x instanceof HTMLElement?x:x.value instanceof HTMLElement?ue(x):ue(y.button):ue(y.button);I==null||I.focus()}};Zt(_$,y),Kd(ce(()=>Tt(l.value,{0:It.Open,1:It.Closed})));let _={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},S=S$(),C=S==null?void 0:S.registerPopover,[T,w]=v$(),E=d$({mainTreeNodeRef:S==null?void 0:S.mainTreeNodeRef,portals:T,defaultContainers:[a,p]});function O(){var x,I,k,P;return(P=S==null?void 0:S.isFocusWithinPopoverGroup())!=null?P:((x=h.value)==null?void 0:x.activeElement)&&(((I=ue(a))==null?void 0:I.contains(h.value.activeElement))||((k=ue(p))==null?void 0:k.contains(h.value.activeElement)))}return jt(()=>C==null?void 0:C(_)),Hg((o=h.value)==null?void 0:o.defaultView,"focus",x=>{var I,k;x.target!==window&&x.target instanceof HTMLElement&&l.value===0&&(O()||a&&p&&(E.contains(x.target)||(I=ue(y.beforePanelSentinel))!=null&&I.contains(x.target)||(k=ue(y.afterPanelSentinel))!=null&&k.contains(x.target)||y.closePopover()))},!0),zd(E.resolveContainers,(x,I)=>{var k;y.closePopover(),Fg(I,Wd.Loose)||(x.preventDefault(),(k=ue(a))==null||k.focus())},ce(()=>l.value===0)),()=>{let x={open:l.value===0,close:y.close};return dt(Fe,[dt(w,{},()=>Et({theirProps:{...e,...n},ourProps:{ref:s},slot:x,slots:t,attrs:n,name:"Popover"})),dt(E.MainTreeNode)])}}}),Pj=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=Gd("PopoverButton"),a=ce(()=>Wr(l.button));r({el:l.button,$el:l.button}),vt(()=>{l.buttonId.value=s}),Qt(()=>{l.buttonId.value=null});let c=S$(),d=c==null?void 0:c.closeOthers,p=Aj(),h=ce(()=>p===null?!1:p.value===l.panelId.value),g=_e(null),y=`headlessui-focus-sentinel-${zt()}`;h.value||jt(()=>{l.button.value=ue(g)});let _=qd(ce(()=>({as:e.as,type:t.type})),g);function S(x){var I,k,P,H,D;if(h.value){if(l.popoverState.value===1)return;switch(x.key){case lt.Space:case lt.Enter:x.preventDefault(),(k=(I=x.target).click)==null||k.call(I),l.closePopover(),(P=ue(l.button))==null||P.focus();break}}else switch(x.key){case lt.Space:case lt.Enter:x.preventDefault(),x.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover();break;case lt.Escape:if(l.popoverState.value!==0)return d==null?void 0:d(l.buttonId.value);if(!ue(l.button)||(H=a.value)!=null&&H.activeElement&&!((D=ue(l.button))!=null&&D.contains(a.value.activeElement)))return;x.preventDefault(),x.stopPropagation(),l.closePopover();break}}function C(x){h.value||x.key===lt.Space&&x.preventDefault()}function T(x){var I,k;e.disabled||(h.value?(l.closePopover(),(I=ue(l.button))==null||I.focus()):(x.preventDefault(),x.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover(),(k=ue(l.button))==null||k.focus()))}function w(x){x.preventDefault(),x.stopPropagation()}let E=Vg();function O(){let x=ue(l.panel);if(!x)return;function I(){Tt(E.value,{[mr.Forwards]:()=>Yr(x,In.First),[mr.Backwards]:()=>Yr(x,In.Last)})===ba.Error&&Yr(Vd().filter(k=>k.dataset.headlessuiFocusGuard!=="true"),Tt(E.value,{[mr.Forwards]:In.Next,[mr.Backwards]:In.Previous}),{relativeTo:ue(l.button)})}I()}return()=>{let x=l.popoverState.value===0,I={open:x},{...k}=e,P=h.value?{ref:g,type:_.value,onKeydown:S,onClick:T}:{ref:g,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:S,onKeyup:C,onClick:T,onMousedown:w};return dt(Fe,[Et({ourProps:P,theirProps:{...t,...k},slot:I,attrs:t,slots:n,name:"PopoverButton"}),x&&!h.value&&l.isPortalled.value&&dt(_o,{id:y,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});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=Gd("PopoverOverlay"),o=`headlessui-popover-overlay-${zt()}`,s=ms(),l=ce(()=>s!==null?(s.value&It.Open)===It.Open:r.popoverState.value===0);function a(){r.closePopover()}return()=>{let c={open:r.popoverState.value===0};return Et({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:sr.RenderStrategy|sr.Static,visible:l.value,name:"PopoverOverlay"})}}});let Ij=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=Gd("PopoverPanel"),c=ce(()=>Wr(a.panel)),d=`headlessui-focus-sentinel-before-${zt()}`,p=`headlessui-focus-sentinel-after-${zt()}`;r({el:a.panel,$el:a.panel}),vt(()=>{a.panelId.value=s}),Qt(()=>{a.panelId.value=null}),Zt(E$,a.panelId),jt(()=>{var w,E;if(!l||a.popoverState.value!==0||!a.panel)return;let O=(w=c.value)==null?void 0:w.activeElement;(E=ue(a.panel))!=null&&E.contains(O)||Yr(ue(a.panel),In.First)});let h=ms(),g=ce(()=>h!==null?(h.value&It.Open)===It.Open:a.popoverState.value===0);function y(w){var E,O;switch(w.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;w.preventDefault(),w.stopPropagation(),a.closePopover(),(O=ue(a.button))==null||O.focus();break}}function _(w){var E,O,x,I,k;let P=w.relatedTarget;P&&ue(a.panel)&&((E=ue(a.panel))!=null&&E.contains(P)||(a.closePopover(),((x=(O=ue(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&x.call(O,P)||(k=(I=ue(a.afterPanelSentinel))==null?void 0:I.contains)!=null&&k.call(I,P))&&P.focus({preventScroll:!0})))}let S=Vg();function C(){let w=ue(a.panel);if(!w)return;function E(){Tt(S.value,{[mr.Forwards]:()=>{var O;Yr(w,In.First)===ba.Error&&((O=ue(a.afterPanelSentinel))==null||O.focus())},[mr.Backwards]:()=>{var O;(O=ue(a.button))==null||O.focus({preventScroll:!0})}})}E()}function T(){let w=ue(a.panel);if(!w)return;function E(){Tt(S.value,{[mr.Forwards]:()=>{let O=ue(a.button),x=ue(a.panel);if(!O)return;let I=Vd(),k=I.indexOf(O),P=I.slice(0,k+1),H=[...I.slice(k+1),...P];for(let D of H.slice())if(D.dataset.headlessuiFocusGuard==="true"||x!=null&&x.contains(D)){let F=H.indexOf(D);F!==-1&&H.splice(F,1)}Yr(H,In.First,{sorted:!1})},[mr.Backwards]:()=>{var O;Yr(w,In.Previous)===ba.Error&&((O=ue(a.button))==null||O.focus())}})}E()}return()=>{let w={open:a.popoverState.value===0,close:a.close},{focus:E,...O}=e,x={ref:a.panel,id:s,onKeydown:y,onFocusout:l&&a.popoverState.value===0?_:void 0,tabIndex:-1};return Et({ourProps:x,theirProps:{...t,...O},attrs:t,slot:w,slots:{...n,default:(...I)=>{var k;return[dt(Fe,[g.value&&a.isPortalled.value&&dt(_o,{id:d,ref:a.beforePanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:C}),(k=n.default)==null?void 0:k.call(n,...I),g.value&&a.isPortalled.value&&dt(_o,{id:p,ref:a.afterPanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T})])]}},features:sr.RenderStrategy|sr.Static,visible:g.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=sd([]),l=ce(()=>Wr(o)),a=uj();r({el:o,$el:o});function c(g){let y=s.value.indexOf(g);y!==-1&&s.value.splice(y,1)}function d(g){return s.value.push(g),()=>{c(g)}}function p(){var g;let y=l.value;if(!y)return!1;let _=y.activeElement;return(g=ue(o))!=null&&g.contains(_)?!0:s.value.some(S=>{var C,T;return((C=y.getElementById(S.buttonId.value))==null?void 0:C.contains(_))||((T=y.getElementById(S.panelId.value))==null?void 0:T.contains(_))})}function h(g){for(let y of s.value)y.buttonId.value!==g&&y.close()}return Zt(w$,{registerPopover:d,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>dt(Fe,[Et({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),dt(a.MainTreeNode)])}});let $$=Symbol("LabelContext");function C$(){let e=Rt($$,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,C$),t}return e}function kj({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 Zt($$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let Rj=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=C$();return vt(()=>Qt(s.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=s,{passive:d,...p}=e,h={...Object.entries(c).reduce((g,[y,_])=>Object.assign(g,{[y]:Hn(_)}),{}),id:o};return d&&(delete h.onClick,delete h.htmlFor,delete p.onClick),Et({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),T$=Symbol("GroupContext"),Lj=ve({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=kj({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=m$({name:"SwitchDescription"});return Zt(T$,{switchRef:r,labelledby:o,describedby:s}),()=>Et({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),Nj=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=Rt(T$,null),[c,d]=Mg(ce(()=>e.modelValue),w=>t("update:modelValue",w),ce(()=>e.defaultChecked));function p(){d(!c.value)}let h=_e(null),g=a===null?h:a.switchRef,y=qd(ce(()=>({as:e.as,type:n.type})),g);o({el:g,$el:g});function _(w){w.preventDefault(),p()}function S(w){w.key===lt.Space?(w.preventDefault(),p()):w.key===lt.Enter&&WU(w.currentTarget)}function C(w){w.preventDefault()}let T=ce(()=>{var w,E;return(E=(w=ue(g))==null?void 0:w.closest)==null?void 0:E.call(w,"form")});return vt(()=>{Ft([T],()=>{if(!T.value||e.defaultChecked===void 0)return;function w(){d(e.defaultChecked)}return T.value.addEventListener("reset",w),()=>{var E;(E=T.value)==null||E.removeEventListener("reset",w)}},{immediate:!0})}),()=>{let{name:w,value:E,form:O,tabIndex:x,...I}=e,k={checked:c.value},P={id:l,ref:g,role:"switch",type:y.value,tabIndex:x===-1?0:x,"aria-checked":c.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:_,onKeyup:S,onKeypress:C};return dt(Fe,[w!=null&&c.value!=null?dt(_o,Ug({features:to.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:O,disabled:I.disabled,name:w,value:E})):null,Et({ourProps:P,theirProps:{...n,...hs(I,["modelValue","defaultChecked"])},slot:k,attrs:n,slots:r,name:"Switch"})])}}}),Mj=Rj;function Dj(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Vp(e,...t){e&&t.length>0&&e.classList.add(...t)}function ec(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Vh=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Vh||{});function Fj(e,t){let n=Ei();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(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,p)=>p-d);return c});return s!==0?n.setTimeout(()=>t("finished"),s+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function j_(e,t,n,r,o,s){let l=Ei(),a=s!==void 0?Dj(s):()=>{};return ec(e,...o),Vp(e,...t,...n),l.nextFrame(()=>{ec(e,...n),Vp(e,...r),l.add(Fj(e,c=>(ec(e,...r,...t),Vp(e,...o),a(c))))}),l.add(()=>ec(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function ji(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Xg=Symbol("TransitionContext");var Bj=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Bj||{});function Uj(){return Rt(Xg,null)!==null}function jj(){let e=Rt(Xg,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Hj(){let e=Rt(Jg,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Jg=Symbol("NestingContext");function Xd(e){return"children"in e?Xd(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function O$(e){let t=_e([]),n=_e(!1);vt(()=>n.value=!0),Qt(()=>n.value=!1);function r(s,l=hi.Hidden){let a=t.value.findIndex(({id:c})=>c===s);a!==-1&&(Tt(l,{[hi.Unmount](){t.value.splice(a,1)},[hi.Hidden](){t.value[a].state="hidden"}}),!Xd(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,hi.Unmount)}return{children:t,register:o,unregister:r}}let A$=sr.RenderStrategy,P$=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|=It.Opening,t("beforeEnter")}function a(){s.value&=~It.Opening,t("afterEnter")}function c(){s.value|=It.Closing,t("beforeLeave")}function d(){s.value&=~It.Closing,t("afterLeave")}if(!Uj()&&jU())return()=>dt(I$,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:d},r);let p=_e(null),h=ce(()=>e.unmount?hi.Unmount:hi.Hidden);o({el:p,$el:p});let{show:g,appear:y}=jj(),{register:_,unregister:S}=Hj(),C=_e(g.value?"visible":"hidden"),T={value:!0},w=zt(),E={value:!1},O=O$(()=>{!E.value&&C.value!=="hidden"&&(C.value="hidden",S(w),d())});vt(()=>{let G=_(w);Qt(G)}),jt(()=>{if(h.value===hi.Hidden&&w){if(g.value&&C.value!=="visible"){C.value="visible";return}Tt(C.value,{hidden:()=>S(w),visible:()=>_(w)})}});let x=ji(e.enter),I=ji(e.enterFrom),k=ji(e.enterTo),P=ji(e.entered),H=ji(e.leave),D=ji(e.leaveFrom),F=ji(e.leaveTo);vt(()=>{jt(()=>{if(C.value==="visible"){let G=ue(p);if(G instanceof Comment&&G.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function z(G){let te=T.value&&!y.value,we=ue(p);!we||!(we instanceof HTMLElement)||te||(E.value=!0,g.value&&l(),g.value||c(),G(g.value?j_(we,x,I,k,P,be=>{E.value=!1,be===Vh.Finished&&a()}):j_(we,H,D,F,P,be=>{E.value=!1,be===Vh.Finished&&(Xd(O)||(C.value="hidden",S(w),d()))})))}return vt(()=>{Ft([g],(G,te,we)=>{z(we),T.value=!1},{immediate:!0})}),Zt(Jg,O),Kd(ce(()=>Tt(C.value,{visible:It.Open,hidden:It.Closed})|s.value)),()=>{let{appear:G,show:te,enter:we,enterFrom:be,enterTo:Ae,entered:Pe,leave:Ye,leaveFrom:ft,leaveTo:Le,...Ge}=e,Q={ref:p},ae={...Ge,...y.value&&g.value&&ja.isServer?{class:St([n.class,Ge.class,...x,...I])}:{}};return Et({theirProps:ae,ourProps:Q,slot:{},slots:r,attrs:n,features:A$,visible:C.value==="visible",name:"TransitionChild"})}}}),Vj=P$,I$=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=ms(),s=ce(()=>e.show===null&&o!==null?(o.value&It.Open)===It.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=O$(()=>{l.value="hidden"}),c=_e(!0),d={show:s,appear:ce(()=>e.appear||!c.value)};return vt(()=>{jt(()=>{c.value=!1,s.value?l.value="visible":Xd(a)||(l.value="hidden")})}),Zt(Jg,a),Zt(Xg,d),()=>{let p=hs(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return Et({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[dt(Vj,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:A$,visible:l.value==="visible",name:"Transition"})}}});const Wj=ve({components:{Dialog:yj,DialogOverlay:bj,TransitionChild:P$,TransitionRoot:I$,XIcon:Ua},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),zj={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},qj={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Kj=v("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1),Gj={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},Xj=v("span",{class:"sr-only"},"Close",-1);function Jj(e,t,n,r,o,s){const l=J("DialogOverlay"),a=J("TransitionChild"),c=J("XIcon"),d=J("Dialog"),p=J("TransitionRoot");return N(),bt(p,{as:"template",show:e.open},{default:ye(()=>[q(d,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:ye(()=>[v("div",zj,[v("div",qj,[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}),Kj,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(()=>[v("div",{class:St(["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"}])},[v("div",Gj,[v("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())},[Xj,q(c,{class:"h-6 w-6","aria-hidden":"true"})])]),_r(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}const Wa=Be(Wj,[["render",Jj]]),Yj=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"}}}}),Zj=["disabled"];function Qj(e,t,n,r,o,s){return N(),V("button",{type:"button",class:St(["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},[_r(e.$slots,"default")],10,Zj)}const zn=Be(Yj,[["render",Qj]]),eH=ve({components:{PodloveButton:zn,Modal:Wa,PencilIcon:Hx,XIcon:Ua},setup(){return{state:yt({poster:K.episode.poster,episodePoster:K.episode.episodePoster,asset:K.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(g7())},updatePoster(e){const t=X.get(e,["target","value"],null);this.dispatch(wt({prop:"episode_poster",value:t}))}}}),tH={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},nH={class:"text-lg leading-6 font-medium text-gray-900"},rH={class:"relative"},oH=["value"],iH=["title"],sH={class:"mt-2 text-sm text-gray-500"},lH={class:"mt-2 flex justify-end"},aH={class:"block text-sm font-medium text-gray-700"},uH={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"},cH={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"},dH={class:"w-full text-center"},fH={class:"w-full text-center"},pH={class:"w-full text-center"};function hH(e,t,n,r,o,s){const l=J("x-icon"),a=J("podlove-button"),c=J("modal"),d=J("pencil-icon");return N(),V("div",null,[q(c,{size:"medium",open:e.modalOpen,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[v("div",tH,[v("h3",nH,U(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",rH,[v("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,oH),v("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,iH)]),v("p",sH,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),v("p",lH,[q(a,{variant:"primary",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[Xe(U(e.__("Use this URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"]),v("label",aH,U(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),v("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:Wo(e.posterStyle)},[e.state.asset==="manual"?(N(),V("div",uH,[q(d,{class:"h-6 w-6","aria-hidden":"true"})])):He("",!0),e.state.asset==="manual"?(N(),V("div",cH,[q(a,{onClick:t[4]||(t[4]=p=>e.openModal()),class:"w-32 mb-2"},{default:ye(()=>[v("span",dH,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(()=>[v("span",fH,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(()=>[v("span",pH,U(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):He("",!0)],4)])}const mH=Be(eH,[["render",hH]]),gH=ve({components:{Module:Mn},setup(){return{state:yt({number:K.episode.number}),dispatch:it().dispatch}},methods:{updateNumber(e){this.dispatch(wt({prop:"number",value:e.target.value}))}}}),vH={for:"episode-number",class:"block text-sm font-medium text-gray-700"},yH={class:"mt-1 mb-1"},bH=["value"],_H={class:"mt-2 text-sm text-gray-500"};function wH(e,t,n,r,o,s){return N(),V("div",null,[v("label",vH,U(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),v("div",yH,[v("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,bH)]),v("p",_H,U(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}const SH=Be(gH,[["render",wH]]),EH=ve({setup(){return{state:yt({explicit:K.episode.explicit}),dispatch:it().dispatch}},methods:{updateExplicit(e){this.dispatch(wt({prop:"explicit",value:e.target.checked}))}}}),xH={class:"relative flex items-start"},$H={class:"flex items-center h-5"},CH=["checked"],TH={class:"ml-3 text-sm"},OH={for:"explicit-content",class:"font-medium text-gray-700"},AH={class:"text-gray-500"};function PH(e,t,n,r,o,s){return N(),V("div",xH,[v("div",$H,[v("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)]),v("div",TH,[v("label",OH,U(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),v("p",AH,U(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}const IH=Be(EH,[["render",PH]]),kH=ve({components:{Module:Mn},setup(){return{state:yt({title:K.episode.title,post_title:K.post.title}),dispatch:it().dispatch}},methods:{updateTitle(e){this.dispatch(wt({prop:"title",value:e.target.value}))}}}),RH={for:"episode-title",class:"block text-sm font-medium text-gray-700"},LH={class:"mt-1"},NH=["value","placeholder"],MH={class:"mt-2 text-sm text-gray-500"};function DH(e,t,n,r,o,s){return N(),V("div",null,[v("label",RH,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),v("div",LH,[v("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,NH)]),v("p",MH,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)])}const FH=Be(kH,[["render",DH]]),BH=ve({setup(){const e=yt({subtitle:K.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(wt({prop:"subtitle",value:e.target.value}))}}}),UH={for:"subtitle",class:"block text-sm font-medium text-gray-700"},jH={class:"mt-1"},HH=["value"],VH={class:"mt-2 text-sm text-gray-500 flex justify-between"};function WH(e,t,n,r,o,s){return N(),V("div",null,[v("label",UH,U(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),v("div",jH,[v("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,HH)]),v("p",VH,[v("span",null,U(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),v("span",null,U(e.charactersLeft),1)])])}const zH=Be(BH,[["render",WH]]),qH=ve({setup(){const e=yt({summary:K.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(wt({prop:"summary",value:e.target.value}))}}}),KH={for:"summary",class:"block text-sm font-medium text-gray-700"},GH={class:"mt-1"},XH=["value"],JH={class:"mt-2 text-sm text-gray-500 flex justify-end"};function YH(e,t,n,r,o,s){return N(),V("div",null,[v("label",KH,U(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),v("div",GH,[v("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,XH)]),v("p",JH,[v("span",null,U(e.charactersLeft),1)])])}const ZH=Be(qH,[["render",YH]]),QH=ve({components:{Module:Mn},setup(){return{state:yt({type:K.episode.type}),dispatch:it().dispatch}},methods:{updateType(e){this.dispatch(wt({prop:"type",value:e.target.value}))}}}),eV={for:"episode-type",class:"block text-sm font-medium text-gray-700"},tV={class:"mt-1"},nV=["value"],rV={value:"full"},oV={value:"trailer"},iV={value:"bonus"},sV={class:"mt-2 text-sm text-gray-500"};function lV(e,t,n,r,o,s){return N(),V("div",null,[v("label",eV,U(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),v("div",tV,[v("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))},[v("option",null,U(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),v("option",rV,U(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),v("option",oV,U(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),v("option",iV,U(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,nV)]),v("p",sV,U(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}const aV=Be(QH,[["render",lV]]),uV=ve({components:{Module:Mn,EpisodePoster:mH,EpisodeNumber:SH,EpisodeContent:IH,EpisodeTitle:FH,EpisodeSubtitle:zH,EpisodeSummary:ZH,EpisodeType:aV},setup(){return{state:yt({explicitContentEnabled:K.settings.enableEpisodeExplicit}),dispatch:it().dispatch}},created(){this.dispatch(kd())}}),cV={class:"p-3"},dV={class:"flex justify-items-stretch mb-5"},fV={class:"mb-2 w-full"},pV={class:"flex mb-5"},hV={class:"mb-5"},mV={class:"mb-5"};function gV(e,t,n,r,o,s){const l=J("episode-poster"),a=J("episode-number"),c=J("episode-content"),d=J("episode-type"),p=J("episode-title"),h=J("episode-subtitle"),g=J("episode-summary"),y=J("module");return N(),bt(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[v("div",cV,[v("div",dV,[q(l,{class:"mr-5"}),v("div",fV,[v("div",pV,[q(a,{class:"w-full"}),e.state.explicitContentEnabled?(N(),bt(c,{key:0,class:"ml-5 w-full"})):He("",!0)]),q(d,{class:"w-full"})])]),v("div",hV,[q(p,{class:"w-full"})]),v("div",mV,[q(h,{class:"w-full"})]),v("div",null,[q(g,{class:"w-full"})])])]),_:1},8,["title"])}const vV=Be(uV,[["render",gV]]),yV=ve({data(){return{visible:!1}},props:{name:String},methods:{}}),bV=["data-tab"];function _V(e,t,n,r,o,s){return N(),V("div",{class:"hidden","data-tab":e.name},[_r(e.$slots,"default")],8,bV)}const k$=Be(yV,[["render",_V]]),wV=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:X.get(n,["props","name"]),title:X.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(X.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"},EV={class:"border-b border-gray-200"},xV={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},$V=["onClick"],CV={ref:"tabs"};function TV(e,t,n,r,o,s){return N(),V("div",null,[v("div",SV,[v("div",EV,[v("nav",xV,[(N(!0),V(Fe,null,Dt(e.tabs,l=>(N(),V("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:St([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"])},[v("span",null,U(l.title),1)],10,$V))),128))])])]),v("div",CV,[_r(e.$slots,"default")],512)])}const R$=Be(wV,[["render",TV]]),OV=ve({components:{PodloveButton:zn,PlusSmIcon:Ng,BookmarkAltIcon:sU,UploadIcon:oU},setup(){return{state:yt({chapters:K.chapters.list,selected:K.chapters.selected,selectedIndex:K.chapters.selectedIndex,episodeDuration:K.episode.duration}),dispatch:it().dispatch}},computed:{selectedIndex(){return this.state.selectedIndex},episodeDuration(){return this.state.episodeDuration?Mt.fromString(this.state.episodeDuration).totalMs:0},chapters(){return this.state.chapters.reduce((e,t,n,r)=>{const o=X.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 Mt(l).prettyShort;return[...e,{index:n,title:t.title,start:t.start?new Mt(t.start).pretty:new Mt(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(pi(null)):this.dispatch(pi(e))},updateChapter(e,t){const n=t.target.value;if(this.state.selectedIndex===null)return;let r;switch(e){case"start":r=Mt.fromString(n).totalMs;break;default:r=n}this.dispatch(i7({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(s7(this.state.selectedIndex))},async addChapter(){this.dispatch(l7()),this.dispatch(pi(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 Mt(e).pretty},selectImage(){this.dispatch(d7())}}}),AV={key:0},PV={class:"md:flex p-2 sm:block"},IV={class:"w-full"},kV={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},RV={class:"min-w-full divide-y divide-gray-200 mb-2"},LV={ref:"chapters"},NV=["onClick"],MV={key:0,class:"px-2 py-2 w-16"},DV=["src"],FV={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},BV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},UV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},jV={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},HV={class:"mb-5 mt-2"},VV={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},WV={class:"mt-1"},zV=["value"],qV={class:"mb-5"},KV={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},GV={class:"text-xs"},XV={class:"mt-1"},JV=["value"],YV={class:"mb-5"},ZV={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},QV={class:"mt-1"},eW=["value"],tW={class:"mb-5"},nW={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},rW={class:"text-xs"},oW={class:"mt-1 relative"},iW=["value"],sW=["title"],lW={class:"mb-5 ml-1"},aW={class:"mt-5 ml-5 pb-5"},uW={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},cW={class:"mt-2 text-sm font-medium text-gray-900"},dW={class:"mt-1 text-sm text-gray-500"},fW={class:"mt-6"};function pW(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button"),c=J("plus-sm-icon"),d=J("bookmark-alt-icon");return e.chapters.length>0?(N(),V("div",AV,[v("div",PV,[v("div",IV,[v("div",kV,[v("table",RV,[v("tbody",LV,[(N(!0),V(Fe,null,Dt(e.chapters,(p,h)=>(N(),V("tr",{onClick:g=>e.selectChapter(h),key:`chapter-${h}`,class:St(["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",MV,[p!=null&&p.image?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:p==null?void 0:p.image},null,8,DV)):He("",!0)])):He("",!0),v("td",FV,U(p.start),1),v("td",BV,U(p.title),1),v("td",UV,U(p.duration),1)],10,NV))),128))],512)])],512)]),e.state.selected?(N(),V("div",jV,[v("div",HV,[v("label",VV,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),v("div",WV,[v("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,zV)])]),v("div",qV,[v("label",KV,[Xe("Url "),v("span",GV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",XV,[v("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,JV)])]),v("div",YV,[v("label",ZV,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),v("div",QV,[v("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,eW)])]),v("div",tW,[v("label",nW,[Xe(U(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",rW,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",oW,[v("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,iW),v("button",{onClick:t[4]||(t[4]=xc(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,sW)])]),v("div",lW,[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})])])):He("",!0)]),v("div",aW,[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",uW,[q(d,{class:"mx-auto h-12 w-12 text-gray-400"}),v("h3",cW,U(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),v("p",dW,U(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),v("div",fW,[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})])]))}const hW=Be(OV,[["render",pW]]);function Wh(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 d=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 d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(a=e.apply(s,o),s=o=null,clearTimeout(r),r=null)},d}Wh.debounce=Wh;var Wp=Wh;function mW(e,t,n){dn(e)?Ft(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):vt(()=>{e.addEventListener(t,n)}),fs(()=>{var r;(r=Hn(e))===null||r===void 0||r.removeEventListener(t,n)})}function gW(e,t){const n="pointerdown";return typeof window>"u"||!window?void 0:mW(window,n,o=>{const s=Hn(e);s&&(s===o.target||o.composedPath().includes(s)||t(o))})}function vW(e,t,n){let r=null;const o=_e(!1);vt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(s),r.observe(t.value,{childList:!0,subtree:!0})}),fs(()=>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 el(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 Yg(e){var t=lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _a(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function Mr(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function L$(e){if(typeof ShadowRoot>"u")return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function yW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bW(e){return e===lo(e)||!Mr(e)?Yg(e):yW(e)}function wo(e){return e?(e.nodeName||"").toLowerCase():null}function Ti(e){return((_a(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zg(e){return el(Ti(e)).left+Yg(e).scrollLeft}function qo(e){return lo(e).getComputedStyle(e)}function Qg(e){var t=qo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function _W(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function wW(e,t,n){n===void 0&&(n=!1);var r=Mr(t);Mr(t)&&_W(t);var o=Ti(t),s=el(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((wo(t)!=="body"||Qg(o))&&(l=bW(t)),Mr(t)?(a=el(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Zg(o))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function ev(e){var t=el(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 Jd(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(L$(e)?e.host:null)||Ti(e)}function N$(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:Mr(e)&&Qg(e)?e:N$(Jd(e))}function ta(e,t){var n;t===void 0&&(t=[]);var r=N$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=lo(r),l=o?[s].concat(s.visualViewport||[],Qg(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ta(Jd(l)))}function SW(e){return["table","td","th"].indexOf(wo(e))>=0}function H_(e){return!Mr(e)||qo(e).position==="fixed"?null:e.offsetParent}function EW(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Mr(e)){var r=qo(e);if(r.position==="fixed")return null}for(var o=Jd(e);Mr(o)&&["html","body"].indexOf(wo(o))<0;){var s=qo(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=lo(e),n=H_(e);n&&SW(n)&&qo(n).position==="static";)n=H_(n);return n&&(wo(n)==="html"||wo(n)==="body"&&qo(n).position==="static")?t:n||EW(e)||t}var Dr="top",no="bottom",ro="right",Fr="left",tv="auto",qa=[Dr,no,ro,Fr],tl="start",wa="end",xW="clippingParents",M$="viewport",Dl="popper",$W="reference",V_=qa.reduce(function(e,t){return e.concat([t+"-"+tl,t+"-"+wa])},[]),D$=[].concat(qa,[tv]).reduce(function(e,t){return e.concat([t,t+"-"+tl,t+"-"+wa])},[]),CW="beforeRead",TW="read",OW="afterRead",AW="beforeMain",PW="main",IW="afterMain",kW="beforeWrite",RW="write",LW="afterWrite",NW=[CW,TW,OW,AW,PW,IW,kW,RW,LW];function MW(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 DW(e){var t=MW(e);return NW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function FW(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 BW(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 UW(e){var t=lo(e),n=Ti(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+Zg(e),y:a}}var vi=Math.max,Sa=Math.min,tc=Math.round;function jW(e){var t,n=Ti(e),r=Yg(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=vi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=vi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Zg(e),c=-r.scrollTop;return qo(o||n).direction==="rtl"&&(a+=vi(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function F$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&L$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function HW(e){var t=el(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 W_(e,t){return t===M$?zh(UW(e)):Mr(t)?HW(t):zh(jW(Ti(e)))}function VW(e){var t=ta(Jd(e)),n=["absolute","fixed"].indexOf(qo(e).position)>=0,r=n&&Mr(e)?za(e):e;return _a(r)?t.filter(function(o){return _a(o)&&F$(o,r)&&wo(o)!=="body"}):[]}function WW(e,t,n){var r=t==="clippingParents"?VW(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var d=W_(e,c);return a.top=vi(d.top,a.top),a.right=Sa(d.right,a.right),a.bottom=Sa(d.bottom,a.bottom),a.left=vi(d.left,a.left),a},W_(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 nl(e){return e.split("-")[1]}function nv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function B$(e){var t=e.reference,n=e.element,r=e.placement,o=r?yo(r):null,s=r?nl(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Dr: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 Fr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?nv(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case tl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case wa:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function U$(){return{top:0,right:0,bottom:0,left:0}}function j$(e){return Object.assign({},U$(),e)}function H$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function rv(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?xW:s,a=n.rootBoundary,c=a===void 0?M$:a,d=n.elementContext,p=d===void 0?Dl:d,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,S=j$(typeof _!="number"?_:H$(_,qa)),C=p===Dl?$W:Dl,T=e.rects.popper,w=e.elements[g?C:p],E=WW(_a(w)?w:w.contextElement||Ti(e.elements.popper),l,c),O=el(e.elements.reference),x=B$({reference:O,element:T,strategy:"absolute",placement:o}),I=zh(Object.assign({},T,x)),k=p===Dl?I:O,P={top:E.top-k.top+S.top,bottom:k.bottom-E.bottom+S.bottom,left:E.left-k.left+S.left,right:k.right-E.right+S.right},H=e.modifiersData.offset;if(p===Dl&&H){var D=H[o];Object.keys(P).forEach(function(F){var z=[ro,no].indexOf(F)>=0?1:-1,G=[Dr,no].indexOf(F)>=0?"y":"x";P[F]+=D[G]*z})}return P}var z_={placement:"bottom",modifiers:[],strategy:"absolute"};function q_(){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 zW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?z_:o;return function(a,c,d){d===void 0&&(d=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},z_,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(T){var w=typeof T=="function"?T(p.options):T;S(),p.options=Object.assign({},s,p.options,w),p.scrollParents={reference:_a(a)?ta(a):a.contextElement?ta(a.contextElement):[],popper:ta(c)};var E=DW(BW([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),_(),y.update()},forceUpdate:function(){if(!g){var T=p.elements,w=T.reference,E=T.popper;if(q_(w,E)){p.rects={reference:wW(w,za(E),p.options.strategy==="fixed"),popper:ev(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 O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var x=p.orderedModifiers[O],I=x.fn,k=x.options,P=k===void 0?{}:k,H=x.name;typeof I=="function"&&(p=I({state:p,options:P,name:H,instance:y})||p)}}}},update:FW(function(){return new Promise(function(C){y.forceUpdate(),C(p)})}),destroy:function(){S(),g=!0}};if(!q_(a,c))return y;y.setOptions(d).then(function(C){!g&&d.onFirstUpdate&&d.onFirstUpdate(C)});function _(){p.orderedModifiers.forEach(function(C){var T=C.name,w=C.options,E=w===void 0?{}:w,O=C.effect;if(typeof O=="function"){var x=O({state:p,name:T,instance:y,options:E}),I=function(){};h.push(x||I)}})}function S(){h.forEach(function(C){return C()}),h=[]}return y}}var nc={passive:!0};function qW(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),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",n.update,nc)}),a&&c.addEventListener("resize",n.update,nc),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",n.update,nc)}),a&&c.removeEventListener("resize",n.update,nc)}}var KW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qW,data:{}};function GW(e){var t=e.state,n=e.name;t.modifiersData[n]=B$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var XW={name:"popperOffsets",enabled:!0,phase:"read",fn:GW,data:{}},JW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YW(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:tc(tc(t*o)/o)||0,y:tc(tc(n*o)/o)||0}}function K_(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=p===!0?YW(l):typeof p=="function"?p(l):l,g=h.x,y=g===void 0?0:g,_=h.y,S=_===void 0?0:_,C=l.hasOwnProperty("x"),T=l.hasOwnProperty("y"),w=Fr,E=Dr,O=window;if(d){var x=za(n),I="clientHeight",k="clientWidth";x===lo(n)&&(x=Ti(n),qo(x).position!=="static"&&a==="absolute"&&(I="scrollHeight",k="scrollWidth")),x=x,(o===Dr||(o===Fr||o===ro)&&s===wa)&&(E=no,S-=x[I]-r.height,S*=c?1:-1),(o===Fr||(o===Dr||o===no)&&s===wa)&&(w=ro,y-=x[k]-r.width,y*=c?1:-1)}var P=Object.assign({position:a},d&&JW);if(c){var H;return Object.assign({},P,(H={},H[E]=T?"0":"",H[w]=C?"0":"",H.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",H))}return Object.assign({},P,(t={},t[E]=T?S+"px":"",t[w]=C?y+"px":"",t.transform="",t))}function ZW(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,d={placement:yo(t.placement),variation:nl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,K_(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,K_(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var QW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ZW,data:{}};function ez(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)||!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 tz(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,d){return c[d]="",c},{});!Mr(o)||!wo(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var nz={name:"applyStyles",enabled:!0,phase:"write",fn:ez,effect:tz,requires:["computeStyles"]},rz=[KW,XW,QW,nz],oz=zW({defaultModifiers:rz});function iz(e){return e==="x"?"y":"x"}function hc(e,t,n){return vi(e,Sa(t,n))}function sz(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,d=n.rootBoundary,p=n.altBoundary,h=n.padding,g=n.tether,y=g===void 0?!0:g,_=n.tetherOffset,S=_===void 0?0:_,C=rv(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),T=yo(t.placement),w=nl(t.placement),E=!w,O=nv(T),x=iz(O),I=t.modifiersData.popperOffsets,k=t.rects.reference,P=t.rects.popper,H=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,D={x:0,y:0};if(I){if(s||a){var F=O==="y"?Dr:Fr,z=O==="y"?no:ro,G=O==="y"?"height":"width",te=I[O],we=I[O]+C[F],be=I[O]-C[z],Ae=y?-P[G]/2:0,Pe=w===tl?k[G]:P[G],Ye=w===tl?-P[G]:-k[G],ft=t.elements.arrow,Le=y&&ft?ev(ft):{width:0,height:0},Ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U$(),Q=Ge[F],ae=Ge[z],fe=hc(0,k[G],Le[G]),$e=E?k[G]/2-Ae-fe-Q-H:Pe-fe-Q-H,Ve=E?-k[G]/2+Ae+fe+ae+H:Ye+fe+ae+H,De=t.elements.arrow&&za(t.elements.arrow),tt=De?O==="y"?De.clientTop||0:De.clientLeft||0:0,gn=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,ln=I[O]+$e-gn-tt,L=I[O]+Ve-gn;if(s){var B=hc(y?Sa(we,ln):we,te,y?vi(be,L):be);I[O]=B,D[O]=B-te}if(a){var Z=O==="x"?Dr:Fr,le=O==="x"?no:ro,ie=I[x],pe=ie+C[Z],Ce=ie-C[le],me=hc(y?Sa(pe,ln):pe,ie,y?vi(Ce,L):Ce);I[x]=me,D[x]=me-ie}}t.modifiersData[r]=D}}var lz={name:"preventOverflow",enabled:!0,phase:"main",fn:sz,requiresIfExists:["offset"]},az={left:"right",right:"left",bottom:"top",top:"bottom"};function mc(e){return e.replace(/left|right|bottom|top/g,function(t){return az[t]})}var uz={start:"end",end:"start"};function G_(e){return e.replace(/start|end/g,function(t){return uz[t]})}function cz(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,d=c===void 0?D$:c,p=nl(r),h=p?a?V_:V_.filter(function(_){return nl(_)===p}):qa,g=h.filter(function(_){return d.indexOf(_)>=0});g.length===0&&(g=h);var y=g.reduce(function(_,S){return _[S]=rv(e,{placement:S,boundary:o,rootBoundary:s,padding:l})[yo(S)],_},{});return Object.keys(y).sort(function(_,S){return y[_]-y[S]})}function dz(e){if(yo(e)===tv)return[];var t=mc(e);return[G_(e),t,G_(t)]}function fz(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,d=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,S=n.allowedAutoPlacements,C=t.options.placement,T=yo(C),w=T===C,E=c||(w||!_?[mc(C)]:dz(C)),O=[C].concat(E).reduce(function(ae,fe){return ae.concat(yo(fe)===tv?cz(t,{placement:fe,boundary:p,rootBoundary:h,padding:d,flipVariations:_,allowedAutoPlacements:S}):fe)},[]),x=t.rects.reference,I=t.rects.popper,k=new Map,P=!0,H=O[0],D=0;D<O.length;D++){var F=O[D],z=yo(F),G=nl(F)===tl,te=[Dr,no].indexOf(z)>=0,we=te?"width":"height",be=rv(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),Ae=te?G?ro:Fr:G?no:Dr;x[we]>I[we]&&(Ae=mc(Ae));var Pe=mc(Ae),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Ae]<=0,be[Pe]<=0),Ye.every(function(ae){return ae})){H=F,P=!1;break}k.set(F,Ye)}if(P)for(var ft=_?3:1,Le=function(fe){var $e=O.find(function(Ve){var De=k.get(Ve);if(De)return De.slice(0,fe).every(function(tt){return tt})});if($e)return H=$e,"break"},Ge=ft;Ge>0;Ge--){var Q=Le(Ge);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var pz={name:"flip",enabled:!0,phase:"main",fn:fz,requiresIfExists:["offset"],data:{_skip:!1}};function hz(e,t,n){var r=yo(e),o=[Fr,Dr].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,[Fr,ro].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function mz(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=D$.reduce(function(p,h){return p[h]=hz(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}var gz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mz},vz=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,j$(typeof t!="number"?t:H$(t,qa))};function yz(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=nv(a),d=[Fr,ro].indexOf(a)>=0,p=d?"height":"width";if(!(!s||!l)){var h=vz(o.padding,n),g=ev(s),y=c==="y"?Dr:Fr,_=c==="y"?no:ro,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],C=l[c]-n.rects.reference[c],T=za(s),w=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,E=S/2-C/2,O=h[y],x=w-g[p]-h[_],I=w/2-g[p]/2+E,k=hc(O,I,x),P=c;n.modifiersData[r]=(t={},t[P]=k,t.centerOffset=k-I,t)}}function bz(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)||F$(t.elements.popper,o)&&(t.elements.arrow=o))}var _z={name:"arrow",enabled:!0,phase:"main",fn:yz,effect:bz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const zp=e=>parseInt(e,10);function wz({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:s,popperNode:l,triggerNode:a}){const c=xi({isOpen:!1,popperInstance:null}),d=S=>{var C;(C=c.popperInstance)===null||C===void 0||C.setOptions(T=>({...T,modifiers:[...T.modifiers,{name:"eventListeners",enabled:S}]}))},p=()=>d(!0),h=()=>d(!1),g=()=>{c.isOpen&&(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ft([()=>c.isOpen,s],async([S])=>{S?(await _(),p()):h()});const _=async()=>{await rn(),c.popperInstance=oz(a.value,l.value,{placement:s.value,modifiers:[lz,pz,{name:"flip",enabled:!n.value},_z,{name:"arrow",options:{padding:zp(e.value)}},gz,{name:"offset",options:{offset:[zp(o.value),zp(r.value)]}}]}),c.popperInstance.update()};return fs(()=>{var S;(S=c.popperInstance)===null||S===void 0||S.destroy()}),{...lm(c),open:y,close:g}}const Sz={id:"arrow","data-popper-arrow":""};function Ez(e,t){return N(),V("div",Sz)}function V$(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){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 xz=`
    6262#arrow[data-v-20b7fd4a],
    6363  #arrow[data-v-20b7fd4a]::before {
     
    115115    left: -5px;
    116116}
    117 `;U$(pz);const rv={};rv.render=fz;rv.__scopeId="data-v-20b7fd4a";var hz=rv;const mz=["onKeyup"];var j$={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(Ie=>({c81fc0a4:e.zIndex}));const r=_w(),o=_e(null),s=_e(null),l=_e(null),a=_e(!1);vt(()=>{const Ie=r.default();if(Ie&&Ie.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Ie.length} child nodes.`)});const{arrowPadding:c,closeDelay:d,content:p,disableClickAway:h,disabled:g,interactive:y,locked:_,offsetDistance:S,offsetSkid:C,openDelay:T,placement:w,show:E}=lm(n),{isOpen:O,open:$,close:P}=cz({arrowPadding:c,emit:t,locked:_,offsetDistance:S,offsetSkid:C,placement:w,popperNode:s,triggerNode:l}),{hasContent:k}=sW(r,s,p),I=ce(()=>E.value!==null),H=ce(()=>g.value||!k.value),D=ce(()=>O.value&&!H.value),F=ce(()=>!h.value&&!I.value),z=ce(()=>y.value?`border: ${S.value}px solid transparent; margin: -${S.value}px;`:null),G=Wp.debounce($,T.value),te=Wp.debounce(P,d.value),we=async()=>{H.value||I.value||(te.clear(),G())},be=async()=>{I.value||(G.clear(),te())},Ae=()=>{O.value?be():we()};return Ft([k,g],([Ie,Ye])=>{O.value&&(!Ie||Ye)&&P()}),Ft(O,Ie=>{Ie?a.value=!0:Wp.debounce(()=>{a.value=!1},200)}),jt(()=>{I.value&&(E.value?G():te())}),jt(()=>{F.value&&iW(o,be)}),(Ie,Ye)=>(N(),V("div",{class:"inline-block",style:cs(jn(z)),onMouseleave:Ye[2]||(Ye[2]=ft=>e.hover&&be()),ref:(ft,Le)=>{Le.popperContainerNode=ft,o.value=ft}},[v("div",{ref:(ft,Le)=>{Le.triggerNode=ft,l.value=ft},onMouseover:Ye[0]||(Ye[0]=ft=>e.hover&&we()),onClick:Ae,onFocus:we,onKeyup:Hw(be,["esc"])},[_r(Ie.$slots,"default")],40,mz),q(xi,{name:"fade"},{default:ye(()=>[G1(v("div",{onClick:Ye[1]||(Ye[1]=ft=>!jn(y)&&be()),class:"popper",ref:(ft,Le)=>{Le.popperNode=ft,s.value=ft}},[_r(Ie.$slots,"content",{close:jn(P),isOpen:a.value},()=>[Xe(U(jn(p)),1)]),e.arrow?(N(),bt(hz,{key:0})):Ke("",!0)],512),[[Em,jn(D)]])]),_:3})],36))}},gz=`
     117`;V$(xz);const ov={};ov.render=Ez;ov.__scopeId="data-v-20b7fd4a";var $z=ov;const Cz=["onKeyup"];var W$={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(Pe=>({c81fc0a4:e.zIndex}));const r=ww(),o=_e(null),s=_e(null),l=_e(null),a=_e(!1);vt(()=>{const Pe=r.default();if(Pe&&Pe.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Pe.length} child nodes.`)});const{arrowPadding:c,closeDelay:d,content:p,disableClickAway:h,disabled:g,interactive:y,locked:_,offsetDistance:S,offsetSkid:C,openDelay:T,placement:w,show:E}=lm(n),{isOpen:O,open:x,close:I}=wz({arrowPadding:c,emit:t,locked:_,offsetDistance:S,offsetSkid:C,placement:w,popperNode:s,triggerNode:l}),{hasContent:k}=vW(r,s,p),P=ce(()=>E.value!==null),H=ce(()=>g.value||!k.value),D=ce(()=>O.value&&!H.value),F=ce(()=>!h.value&&!P.value),z=ce(()=>y.value?`border: ${S.value}px solid transparent; margin: -${S.value}px;`:null),G=Wp.debounce(x,T.value),te=Wp.debounce(I,d.value),we=async()=>{H.value||P.value||(te.clear(),G())},be=async()=>{P.value||(G.clear(),te())},Ae=()=>{O.value?be():we()};return Ft([k,g],([Pe,Ye])=>{O.value&&(!Pe||Ye)&&I()}),Ft(O,Pe=>{Pe?a.value=!0:Wp.debounce(()=>{a.value=!1},200)}),jt(()=>{P.value&&(E.value?G():te())}),jt(()=>{F.value&&gW(o,be)}),(Pe,Ye)=>(N(),V("div",{class:"inline-block",style:Wo(Hn(z)),onMouseleave:Ye[2]||(Ye[2]=ft=>e.hover&&be()),ref:(ft,Le)=>{Le.popperContainerNode=ft,o.value=ft}},[v("div",{ref:(ft,Le)=>{Le.triggerNode=ft,l.value=ft},onMouseover:Ye[0]||(Ye[0]=ft=>e.hover&&we()),onClick:Ae,onFocus:we,onKeyup:Vw(be,["esc"])},[_r(Pe.$slots,"default")],40,Cz),q($i,{name:"fade"},{default:ye(()=>[X1(v("div",{onClick:Ye[1]||(Ye[1]=ft=>!Hn(y)&&be()),class:"popper",ref:(ft,Le)=>{Le.popperNode=ft,s.value=ft}},[_r(Pe.$slots,"content",{close:Hn(I),isOpen:a.value},()=>[Xe(U(Hn(p)),1)]),e.arrow?(N(),bt($z,{key:0})):He("",!0)],512),[[Em,Hn(D)]])]),_:3})],36))}},Tz=`
    118118.inline-block[data-v-5784ed69] {
    119119    display: inline-block;
     
    146146    opacity: 0;
    147147}
    148 `;U$(gz);j$.__scopeId="data-v-5784ed69";var vz=(()=>{const e=j$;return e.install=t=>{t.component("Popper",e)},e})();const yz=ge({components:{Popper:vz},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}}}),bz={class:"bg-white p-4 rounded shadow-lg max-w-md"};function _z(e,t,n,r,o,s){const l=J("Popper");return N(),V("div",null,[q(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:ye(()=>[v("div",bz,[_r(e.$slots,"content")])]),default:ye(()=>[_r(e.$slots,"trigger")]),_:3})])}const wz=Be(yz,[["render",_z]]),Sz=ge({components:{PodloveButton:Vn,Tooltip:wz},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(i7(n.target.result))},t.readAsText(X.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),Ez={class:"text-xs"},xz={class:"text-gray-600 leading-3 font-semibold mb-2"},$z={class:"text-gray-500 ml-1"},Cz={class:"mb-1"},Tz={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},Oz=v("code",null,".psc",-1),Az={class:"mb-1"},Iz={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},Pz={class:"mb-1"},kz={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},Rz=v("code",null,".txt",-1);function Lz(e,t,n,r,o,s){const l=J("podlove-button"),a=J("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}),v("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:ye(()=>[v("div",Ez,[v("p",xz,U(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),v("ul",$z,[v("li",Cz,[v("a",Tz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Xe(" ("),Oz,Xe("), ")]),v("li",Az,[v("a",Iz,U(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),v("li",Pz,[v("a",kz,U(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),Rz,Xe(") ")])])])]),_:1})}const Nz=Be(Sz,[["render",Lz]]),Mz=ge({components:{Popover:w$,PopoverButton:bj,PopoverPanel:_j}});function Dz(e,t,n,r,o,s){const l=J("PopoverButton"),a=J("PopoverPanel"),c=J("Popover",!0);return N(),bt(c,{class:"relative"},{default:ye(()=>[q(l,null,{default:ye(()=>[_r(e.$slots,"trigger")]),_:3}),q(xi,{"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(()=>[_r(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}const H$=Be(Mz,[["render",Dz]]),Fz=ge({components:{Popover:H$,PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{download(e){this.dispatch(l7(e))}}}),Bz={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Uz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},jz=v("div",{class:"text-sm text-gray-500"},".psc",-1),Hz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Vz=v("div",{class:"text-sm text-gray-500"},".txt",-1);function Wz(e,t,n,r,o,s){const l=J("podlove-button"),a=J("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(()=>[v("div",Bz,[v("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"},[v("div",Uz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),jz]),v("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"},[v("div",Hz,U(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),Vz])])]),_:1})])}const zz=Be(Fz,[["render",Wz]]),qz=ge({components:{Module:Nn,TabsContainer:I$,Tab:A$,ChaptersForm:rW,ChaptersImport:Nz,ChaptersExport:zz},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(t7())}});function Kz(e,t,n,r,o,s){const l=J("chapters-import"),a=J("chapters-export"),c=J("chapters-form"),d=J("module");return N(),bt(d,{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"])}const Gz=Be(qz,[["render",Kz]]),Xz={},Jz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},Yz=v("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),Zz=[Yz];function Qz(e,t){return N(),V("svg",Jz,Zz)}const eq=Be(Xz,[["render",Qz]]),tq=ge({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:Vn,UploadIcon:Nx,DocumentTextIcon:Dx},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(I7())},handleImport(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(A7(n.target.result))},t.readAsText(X.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),nq={ref:"importForm",class:"cursor-pointer"},rq={class:"grid grid-cols-2"};function oq(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button");return N(),V("form",nq,[v("div",rq,[v("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"]),v("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),v("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)}const iq=Be(tq,[["render",oq]]),sq=ge({components:{Avatar:eq,TranscriptsImport:iq,DocumentTextIcon:Dx},setup(){return{state:yt({transcripts:K.transcripts.list,contributors:K.contributors.contributors,voices:K.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=X.last(e);return n&&n.voiceId===t.voice?[...X.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:X.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Nt(e).prettyShort}}}),lq={key:0,class:"h-96 p-2 overflow-x-auto"},aq={class:"mr-2 w-12 text-gray-400 select-none"},uq=["src"],cq={class:"w-full font-light text-sm mr-2"},dq={class:"block font-bold"},fq={class:"flex justify-between"},pq={class:"ml-1 font-mono select-none"},hq={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},mq={class:"mt-2 text-sm font-medium text-gray-900"},gq={class:"mt-1 text-sm text-gray-500"},vq={class:"mt-6"};function yq(e,t,n,r,o,s){const l=J("avatar"),a=J("document-text-icon"),c=J("transcripts-import");return e.transcripts.length>0?(N(),V("div",lq,[(N(!0),V(Fe,null,Mt(e.transcripts,(d,p)=>{var h,g,y;return N(),V("div",{class:"flex mb-2",key:`transcript-${p}`},[v("div",aq,[(h=d==null?void 0:d.voice)!=null&&h.avatar?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:(g=d==null?void 0:d.voice)==null?void 0:g.avatar},null,8,uq)):(N(),bt(l,{key:1}))]),v("div",cq,[v("span",dq,U((y=d==null?void 0:d.voice)==null?void 0:y.name),1),v("span",fq,[v("span",null,[(N(!0),V(Fe,null,Mt(d.content,(_,S)=>(N(),V("span",{class:"mr-1",key:`transcript-${p}-content-${S}`},U(_.text),1))),128))]),v("span",pq,U(e.formatTime(d.content[0].start)),1)])])])}),128))])):(N(),V("div",hq,[q(a,{class:"mx-auto h-12 w-12 text-gray-400"}),v("h3",mq,U(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),v("p",gq,U(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),v("div",vq,[q(c,{outlet:"content",class:"mr-1"})])]))}const bq=Be(sq,[["render",yq]]),_q=ge({components:{PodloveButton:Vn,Modal:Wa},data(){return{modalOpen:!1}},setup(){return{state:yt({contributors:K.contributors.contributors,voices:K.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(O7({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),wq={key:0},Sq={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Eq={class:"text-lg leading-6 font-medium text-gray-900"},xq={for:"country",class:"block text-sm font-medium text-gray-700"},$q=["value","onChange"],Cq=v("option",{value:"0"},null,-1),Tq=["value"];function Oq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("modal");return e.state.voices.length>0?(N(),V("div",wq,[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(()=>[v("div",Sq,[v("h3",Eq,U(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.state.voices,(c,d)=>(N(),V("div",{key:`voice-${d}`,class:St(["w-full py-2 px-4",{"bg-white":d%2}])},[v("label",xq,U(c.voice),1),v("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)},[Cq,(N(!0),V(Fe,null,Mt(e.sortedContributors,(p,h)=>(N(),V("option",{key:`voice-${d}-contributor-${h}`,value:p.id},U(p.publicname||p.realname||p.nickname),9,Tq))),128))],40,$q)],2))),128))]),_:1},8,["open"])])):Ke("",!0)}const Aq=Be(_q,[["render",Oq]]),Iq=[{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"}],Pq=ge({components:{Popover:H$,PodloveButton:Vn},setup(){return{state:yt({post:K.post.id,baseUrl:K.runtime.baseUrl,transcripts:K.transcripts.list})}},data(){return{exportTypes:Iq}}}),kq={key:0},Rq={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Lq=["download","href"],Nq={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Mq={class:"text-sm text-gray-500"};function Dq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("popover");return e.state.transcripts.length>0?(N(),V("div",kq,[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(()=>[v("div",Rq,[(N(!0),V(Fe,null,Mt(e.exportTypes,(c,d)=>(N(),V("a",{key:`type-${d}`,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"},[v("div",Nq,U(c.title),1),v("div",Mq,U(c.ending),1)],8,Lq))),128))])]),_:1})])):Ke("",!0)}const Fq=Be(Pq,[["render",Dq]]),Bq=ge({components:{PodloveButton:Vn,Modal:Wa,ExclamationIcon:Fx,DialogTitle:uj},data(){return{modalVisible:!1}},setup(){return{state:yt({transcripts:K.transcripts.list}),dispatch:it().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(P7())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),Uq={key:0},jq={class:"sm:flex sm:items-start"},Hq={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"},Vq={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},Wq={class:"mt-2"},zq={class:"text-sm text-gray-500"},qq={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function Kq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("exclamation-icon"),c=J("DialogTitle"),d=J("modal");return e.state.transcripts.length>0?(N(),V("div",Uq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:ye(()=>[Xe("Clear")]),_:1}),q(d,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[v("div",jq,[v("div",Hq,[q(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),v("div",Vq,[q(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:ye(()=>[Xe(" Clear Transcript ")]),_:1}),v("div",Wq,[v("p",zq,U(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),v("div",qq,[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"])])):Ke("",!0)}const Gq=Be(Bq,[["render",Kq]]),Xq=ge({components:{Module:Nn,TabsContainer:I$,Tab:A$,TranscriptsList:bq,TranscriptsVoices:Aq,TranscriptsExport:Fq,TranscriptsDelete:Gq},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(o2()),this.dispatch($7())}});function Jq(e,t,n,r,o,s){const l=J("transcripts-voices"),a=J("transcripts-export"),c=J("transcripts-delete"),d=J("transcripts-list"),p=J("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(d)]),_:1},8,["title"])}const Yq=Be(Xq,[["render",Jq]]);function Zq(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"},[v("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 Yd(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"},[v("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 Zd(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"},[v("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 V$(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"},[v("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 Qq=ge({props:["file_key","track_index"],components:{Listbox:Vg,ListboxButton:zg,ListboxLabel:Wg,ListboxOption:Kg,ListboxOptions:qg,CheckIcon:Yd,SelectorIcon:Zd,DocumentCheckIcon:tU},setup(){return{state:yt({services:K.auphonic.incomingServices,serviceFiles:K.auphonic.serviceFiles,fileSelections:K.auphonic.fileSelections,episodeSlug:K.episode.slug}),dispatch:it().dispatch}},methods:{set(e,t){this.dispatch(T2({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch(A2({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(wt({prop:"slug",value:e})),this.dispatch(F2())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return X.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}}}),eK={class:"flex flex-col gap-2"},tK=v("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),nK=["value","selected"],rK={key:0},oK={key:0},iK=["for"],sK={key:0,class:"sm:mt-1"},lK={class:"text-sm font-normal"},aK={key:1,class:"sm:mt-1"},uK=["id"],cK={key:1},dK=["for"],fK={class:"mt-1"},pK=["id","value"],hK={key:2},mK={key:0},gK=["for"],vK=["id","value"],yK=["value"],bK={key:1},_K={key:3,class:"mt-3"},wK={class:"font-mono"};function SK(e,t,n,r,o,s){const l=J("DocumentCheckIcon");return N(),V("div",null,[v("div",eK,[v("div",null,[tK,v("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,nK))),128))],32)]),e.currentService?(N(),V("div",rK,[e.currentService.type==="file"?(N(),V("div",oK,[v("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",sK,[Xe(" Upload "),v("span",lK,U(e.filenameSelectedForUpload),1)])):(N(),V("div",aK,U(e.__("Upload a file","podlove-podcasting-plugin-for-wordpress")),1)),v("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,uK)],8,iK)])):e.currentService.type==="url"?(N(),V("div",cK,[v("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,dK),v("div",fK,[v("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,pK)])])):(N(),V("div",hK,[e.serviceFiles!==null?(N(),V("div",mK,[v("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,gK),v("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,yK))),128))],40,vK)])):(N(),V("div",bK,"..."))])),e.shouldSuggestSlug?(N(),V("div",_K,[v("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"}),v("span",null,[Xe(U(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",wK,U(e.slugCandidate),1)])])])):Ke("",!0)])):Ke("",!0)])])}const EK=Be(Qq,[["render",SK]]),xK=ge({components:{ClipboardCheckIcon:Q9,ExternalLinkIcon:Rx,ExclamationIcon:Fx},setup(){return{state:yt({production:K.auphonic.production,title:K.episode.title,subtitle:K.episode.subtitle,summary:K.episode.summary,duration:K.episode.duration,slug:K.episode.slug,license_name:K.episode.license_name,license_url:K.episode.license_url,chapters:K.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(wt({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"},CK={class:"flex"},TK={class:"flex-shrink-0"},OK={class:"ml-3"},AK={class:"text-sm font-medium text-green-800"},IK={class:"mt-2 text-sm text-green-700"},PK=["href"],kK={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},RK={class:"flex"},LK={class:"flex-shrink-0"},NK={class:"ml-3"},MK={class:"text-sm font-medium text-yellow-800"},DK={class:"mt-2 text-sm text-yellow-700"},FK={key:2,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},BK={class:"p-6"},UK=v("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),jK={class:"mt-1 text-sm text-gray-500"},HK={class:"mt-6 flow-root"},VK={role:"list",class:"-my-5 divide-y divide-gray-200"},WK={class:"flex items-center space-x-4"},zK={class:"min-w-0 flex-1"},qK={class:"truncate text-sm text-gray-500"},KK={class:"truncate text-sm font-medium text-gray-900"},GK=["onClick"],XK={class:"hidden sm:inline"},JK={class:"mt-6"},YK={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},ZK={class:"p-6"};function QK(e,t,n,r,o,s){const l=J("ClipboardCheckIcon"),a=J("ExternalLinkIcon"),c=J("ExclamationIcon");return N(),V("div",null,[e.production.status==3?(N(),V("div",$K,[v("div",CK,[v("div",TK,[q(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),v("div",OK,[v("h3",AK,U(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),v("div",IK,[v("p",null,[v("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,PK),Xe(" "+U(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Ke("",!0),e.production.warning_message?(N(),V("div",kK,[v("div",RK,[v("div",LK,[q(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),v("div",NK,[v("h3",MK,U(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),v("div",DK,[v("p",null,U(e.production.warning_message),1)])])])])):Ke("",!0),e.visibleEntries.length>0?(N(),V("div",FK,[v("div",BK,[v("div",null,[UK,v("p",jK,U(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",HK,[v("ul",VK,[(N(!0),V(Fe,null,Mt(e.visibleEntries,d=>(N(),V("li",{key:d.key,class:"py-4"},[v("div",WK,[v("div",zK,[v("p",qK,[v("em",null,U(d.title),1),Xe(" "+U(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),v("p",KK,U(e.renderEntryPreview(d)),1)]),v("div",null,[v("button",{onClick:xc(p=>e.importMeta(d.title,d.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),v("span",XK," "+U(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,GK)])])]))),128))])]),v("div",JK,[v("button",{onClick:t[0]||(t[0]=xc((...d)=>e.importAllMeta&&e.importAllMeta(...d),["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",YK,[v("div",ZK,U(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}const eG=Be(xK,[["render",QK]]),tG=ge({components:{Switch:xj,SwitchGroup:Ej,SwitchLabel:$j},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(I2(e))}},setup(){return{state:yt({publishWhenDone:K.auphonic.publishWhenDone}),dispatch:it().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),nG={class:"text-sm text-gray-900"};function rG(e,t,n,r,o,s){const l=J("Switch"),a=J("SwitchLabel"),c=J("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:St([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(()=>[v("span",{"aria-hidden":"true",class:St([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(()=>[v("span",nG,U(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}const oG=Be(tG,[["render",rG]]),iG=ge({props:{className:{type:String,default:""}}}),sG=v("g",{transform:"translate(-12.73496,-48.464)"},[v("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"}),v("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),lG=[sG];function aG(e,t,n,r,o,s){return N(),V("svg",{class:St(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},lG,2)}const ov=Be(iG,[["render",aG]]),uG=ge({components:{PodloveButton:Vn,FileChooser:EK,CogIcon:eU,ChevronDownIcon:Lx,ChevronRightIcon:Y9,XIcon:Ua,DatabaseIcon:Z9,ExternalLinkIcon:Rx,CloudIcon:Mx,TrashIcon:nU,ArrowDownIcon:Px,ArrowDownTrayIcon:q9,AuphonicLogo:ov,DonePage:eG,WebhookToggle:oG},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:yt({production:K.auphonic.production,tracks:K.auphonic.tracks,isSaving:K.auphonic.isSaving}),dispatch:it().dispatch}},methods:{saveProduction(){this.dispatch(x2({uuid:this.production.uuid}))},startProduction(){this.dispatch($2({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(S2())},addTrack(){this.dispatch(sD())},removeTrack(e){this.dispatch(O2(e))},updateTrack(e,t,n){this.dispatch(A2({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!X.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}}}),cG={class:"pb-5 space-y-4"},dG={class:"space-y-8"},fG={class:"bg-white px-4 sm:px-6"},pG={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},hG={class:"ml-4 mt-4"},mG={class:"flex items-center"},gG={class:"flex-shrink-0"},vG={class:"ml-4"},yG={class:"text-base font-semibold leading-6 text-gray-900"},bG={class:"text-sm text-gray-500"},_G={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},wG={key:0,class:"inline-flex items-center animate-pulse text-green-600"},SG={key:0},EG={key:1},xG={class:"space-y-4"},$G={key:0},CG={key:1},TG={class:"rounded-md bg-indigo-50 p-4"},OG={class:"flex"},AG={class:"flex-shrink-0"},IG={class:"ml-3"},PG={class:"text-sm font-medium text-indigo-800"},kG={class:"mt-2 text-sm text-indigo-700"},RG={key:2},LG={key:3},NG={class:"bg-white shadow overflow-hidden rounded-md"},MG={class:"px-6 pt-4 hidden md:block"},DG={class:"md:grid md:grid-cols-3 md:gap-12"},FG={class:"block text-sm font-medium text-gray-700 md:col-span-1"},BG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},UG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},jG=v("div",{class:"block w-8 md:col-span-1"},null,-1),HG={role:"list",class:"divide-y divide-gray-200"},VG={class:"md:grid md:grid-cols-3 md:gap-12"},WG={class:"md:col-span-1"},zG=["for"],qG=["id","value","onInput"],KG={class:"mt-5 md:mt-0 md:col-span-1"},GG={class:"sm:items-baseline"},XG={class:"mt-4 sm:mt-0"},JG={key:0,class:"mt-1 text-sm text-gray-700"},YG={class:"md:col-span-1"},ZG={key:0,role:"group",class:"bg-gr"},QG={class:"sm:items-baseline"},eX={class:""},tX={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},nX={class:"max-w-lg relative"},rX=["title","onClick"],oX={class:"space-y-4"},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 items-start"},dX={class:"flex items-center h-5"},fX=["id","checked","onInput"],pX={class:"ml-3 text-sm"},hX=["for"],mX={class:"relative flex justify-start align-middle items-center gap-3"},gX={class:"text-sm"},vX=["for"],yX=["value","onInput","id"],bX={value:"auto"},_X={value:"foreground"},wX={value:"background"},SX={value:"ducking"},EX={value:"unchanged"},xX={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"},CX={class:"sm:col-span-4"},TX={class:"text-base font-medium text-gray-900"},OX={class:"mt-2"},AX={key:0,class:"mt-1 text-sm text-gray-700"},IX={class:"pt-5"},PX={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},kX={class:"flex justify-end gap-3"},RX=["href"];function LX(e,t,n,r,o,s){var T,w,E,O;const l=J("AuphonicLogo"),a=J("CloudIcon"),c=J("ArrowDownTrayIcon"),d=J("XIcon"),p=J("DatabaseIcon"),h=J("DonePage"),g=J("FileChooser"),y=J("TrashIcon"),_=J("podlove-button"),S=J("WebhookToggle"),C=J("ExternalLinkIcon");return N(),V("form",cG,[v("div",dG,[v("div",fG,[v("div",pG,[v("div",hG,[v("div",mG,[v("div",gG,[q(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),v("div",vG,[v("h3",yG,U((w=(T=e.production)==null?void 0:T.metadata)==null?void 0:w.title),1),v("p",bG,U(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),v("div",_G,[e.isSaving?(N(),V("span",wG,[q(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):Ke("",!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",SG,U(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):Ke("",!0),e.showImportPage?Ke("",!0):(N(),V("span",EG,U(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):Ke("",!0),v("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(d,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),v("span",null,U(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),v("div",xG,[e.showUploadScreen?(N(),V("div",$G,U(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):Ke("",!0),e.showProcessingScreen?(N(),V("div",CG,[v("div",TG,[v("div",OG,[v("div",AG,[q(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),v("div",IG,[v("h3",PG,U(e.production.status_string),1),v("div",kG,[v("p",null,U(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Ke("",!0),e.production.status==3||e.showImportPage?(N(),V("div",RG,[q(h)])):Ke("",!0),e.isMultitrack&&e.showTrackEditor?(N(),V("div",LG,[v("div",NG,[v("div",MG,[v("div",DG,[v("div",FG,U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),v("div",BG,U(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),v("div",UG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),jG])]),v("ul",HG,[(N(!0),V(Fe,null,Mt(e.tracks,($,P)=>(N(),V("li",{key:`xtrack-${P}`,class:"px-6 py-4"},[v("div",VG,[v("div",WG,[v("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,zG),v("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,qG)]),v("div",KG,[v("div",GG,[v("div",XG,[q(g,{track_index:P,file_key:`${e.production.uuid}_t${P}`},null,8,["track_index","file_key"]),$.input_file_name?(N(),V("div",JG,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U($.input_file_name),1)):Ke("",!0)])])]),v("div",YG,[e.algorithmSettingsVisible(P)?(N(),V("div",ZG,[v("div",QG,[v("div",eX,[v("div",tX,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),v("div",nX,[v("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,rX),v("div",oX,[v("div",iX,[v("div",sX,[v("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,lX)]),v("div",aX,[v("label",{for:`track_${P}_filtering`,class:"text-gray-700"},U(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,uX)])]),v("div",null,[v("div",cX,[v("div",dX,[v("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,fX)]),v("div",pX,[v("label",{for:`track_${P}_noisehum`,class:"text-gray-700"},U(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,hX)])])]),v("div",null,[v("div",mX,[v("div",gX,[v("label",{for:`track_${P}_fgbg`,class:"text-gray-700"},U(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,vX)]),v("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"},[v("option",bX,U(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),v("option",_X,U(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",wX,U(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",SX,U(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",EX,U(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,yX)])])])])])])])):Ke("",!0)])])]))),128))]),v("div",xX,[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",$X,[v("fieldset",CX,[v("legend",TX,U(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),v("div",OX,[q(g,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(N(),V("div",AX,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.production.input_file),1)):Ke("",!0)])])])):Ke("",!0)])]),v("div",IX,[v("div",PX,[q(S),v("div",kX,[v("a",{href:(O=e.production)==null?void 0:O.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(C,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,RX),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"])])])])])}const NX=Be(uG,[["render",LX]]),MX=ge({components:{Listbox:Vg,ListboxButton:zg,ListboxLabel:Wg,ListboxOption:Kg,ListboxOptions:qg,CheckIcon:Yd,SelectorIcon:Zd},setup(){return{state:yt({productions:K.auphonic.productions,production:K.auphonic.production}),dispatch:it().dispatch}},methods:{setProduction(e){this.dispatch(ps(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}}}),DX={class:"mt-1 relative"},FX={class:"w-full inline-flex truncate"},BX={key:0,class:"truncate"},UX={key:1,class:"truncate"},jX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},HX={class:"flex justify-between"},VX={class:St(["font-normal","truncate"])};function WX(e,t,n,r,o,s){const l=J("ListboxLabel"),a=J("SelectorIcon"),c=J("ListboxButton"),d=J("ListboxOption"),p=J("ListboxOptions"),h=J("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}),v("div",DX,[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(()=>[v("span",FX,[e.currentProduction?(N(),V("span",BX,U(e.currentProduction.metadata.title),1)):(N(),V("span",UX," "))]),v("span",jX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(xi,{"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,g=>(N(),bt(d,{as:"template",key:g._select.date,value:g},{default:ye(({active:y})=>[v("li",{class:St([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[v("div",HX,[v("span",VX,[v("span",{class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(g._select.date),3),Xe(" "+U(g._select.name),1)]),v("span",{class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},U(g.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const zX=Be(MX,[["render",WX]]),qX=ge({components:{Listbox:Vg,ListboxButton:zg,ListboxLabel:Wg,ListboxOption:Kg,ListboxOptions:qg,CheckIcon:Yd,SelectorIcon:Zd},setup(){return{state:yt({presets:K.auphonic.presets,currentPreset:K.auphonic.preset}),dispatch:it().dispatch}},methods:{setPreset(e){this.dispatch(wg(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)}}}),KX={class:"mt-1 relative"},GX={class:"w-full inline-flex truncate"},XX={key:0,class:"truncate"},JX={key:1,class:"truncate"},YX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},ZX={class:"flex"},QX={class:St(["font-normal","truncate"])};function eJ(e,t,n,r,o,s){const l=J("ListboxLabel"),a=J("SelectorIcon"),c=J("ListboxButton"),d=J("ListboxOption"),p=J("ListboxOptions"),h=J("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}),v("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(()=>[v("span",GX,[e.currentPreset?(N(),V("span",XX,U(e.currentPreset._select.name),1)):(N(),V("span",JX," "))]),v("span",YX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(xi,{"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,g=>(N(),bt(d,{as:"template",key:g._select.date,value:g},{default:ye(({active:y})=>[v("li",{class:St([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[v("div",ZX,[v("span",QX,U(g._select.name),1),g._select.is_multitrack?(N(),V("span",{key:0,class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):Ke("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const tJ=Be(qX,[["render",eJ]]),nJ=ge({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lg,RefreshIcon:kx,SelectProduction:zX,SelectPreset:tJ,AuphonicLogo:ov},data(){return{}},setup(){return{state:yt({presetUUID:K.auphonic.preset,presets:K.auphonic.presets,isInitializing:K.auphonic.isInitializing}),dispatch:it().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(tD())},createMultitrackProduction(){this.dispatch(nD())}},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"}}}),rJ={class:"m-6 text-center max-w-5xl"},oJ={key:0,class:"w-full flex justify-center"},iJ={class:"animate-pulse mt-4 flex space-x-4"},sJ={class:"mt-1 text-sm text-gray-500"},lJ={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"},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"},pJ={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},hJ={class:"flow-root sm:px-6"},mJ={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"},gJ={class:"text-sm font-medium text-gray-900"},vJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},yJ={class:"w-full max-w-md"};function bJ(e,t,n,r,o,s){const l=J("AuphonicLogo"),a=J("RefreshIcon"),c=J("SelectPreset"),d=J("plus-sm-icon"),p=J("podlove-button"),h=J("SelectProduction");return N(),V("div",null,[v("div",rJ,[q(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(N(),V("div",oJ,[v("div",iJ,[q(a,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):Ke("",!0),v("div",{class:St({"text-left":!0,"opacity-0":e.isInitializing})},[v("p",sJ,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),v("div",lJ,[v("div",aJ,[v("div",uJ,[v("div",null,[v("h3",cJ,U(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),v("div",dJ,[v("div",fJ,[q(c)])]),v("div",pJ,[q(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:ye(()=>[q(d,{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"])])]),v("div",hJ,[v("div",mJ,[v("div",null,[v("h3",gJ,U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),v("div",vJ,[v("div",yJ,[q(h)])])])])],2)])])}const _J=Be(nJ,[["render",bJ]]),wJ=ge({components:{Module:Nn,ManageProductionForm:NX,StartScreen:_J,AuphonicLogo:ov},setup(){return{state:yt({productionId:K.auphonic.productionId,isInitializing:K.auphonic.isInitializing}),dispatch:it().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(Z7())}}),SJ={key:0},EJ={key:1,class:"m-7"};function xJ(e,t,n,r,o,s){const l=J("StartScreen"),a=J("ManageProductionForm"),c=J("module");return N(),bt(c,{name:"auphonic",title:"Auphonic"},{default:ye(()=>[e.isProductionSelected?Ke("",!0):(N(),V("div",SJ,[q(l)])),e.productionId?(N(),V("div",EJ,[q(a)])):Ke("",!0)]),_:1})}const $J=Be(wJ,[["render",xJ]]),CJ=ge({components:{ArrowUpIcon:G9,ArrowDownIcon:Px,XIcon:Ua,UserCircleIcon:Ux,PencilIcon:Bx},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:K.contributors.roles,groups:K.contributors.groups,baseUrl:K.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(h7(this.data))},moveContributionDown(){this.dispatch(m7(this.data))},deleteContribution(){this.dispatch(g7(this.data))},updateRole(e){const t=X.get(e,["target","value"]);this.dispatch(Pp({...this.data,role_id:t}))},updateGroup(e){const t=X.get(e,["target","value"]);console.log(t),this.dispatch(Pp({...this.data,group_id:t}))},updateComment(e){const t=X.get(e,["target","value"]);this.dispatch(Pp({...this.data,comment:t}))}}}),TJ={class:"block hover:bg-gray-50"},OJ={class:"flex items-center px-4 py-4 sm:px-6"},AJ={class:"flex min-w-0 flex-1 items-center"},IJ={class:"flex-shrink-0"},PJ=["src","alt"],kJ={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},RJ={class:"flex-shrink-0"},LJ={class:"truncate text-sm font-medium text-gray-900"},NJ={class:"flex items-center text-sm text-gray-500"},MJ={class:"truncate"},DJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},FJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},BJ=["value","selected"],UJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},jJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},HJ=["value","selected"],VJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},WJ={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},zJ={class:"mt-2"},qJ=["value","placeholder"],KJ={class:"flex space-x-2 justify-end mt-[30px]"},GJ=["disabled"],XJ=["disabled"],JJ=["href"];function YJ(e,t,n,r,o,s){const l=J("UserCircleIcon"),a=J("arrow-up-icon"),c=J("arrow-down-icon"),d=J("pencil-icon"),p=J("x-icon");return N(),V("div",TJ,[v("div",OJ,[v("div",AJ,[v("div",IJ,[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,PJ)):Ke("",!0),e.data.avatar_url?Ke("",!0):(N(),bt(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),v("div",kJ,[v("div",RJ,[v("p",LJ,U(e.data.realname),1),v("p",NJ,[v("span",MJ,U(e.data.nickname),1)])])]),v("div",DJ,[v("div",null,[v("label",FJ,U(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),v("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,BJ))),256))],32)])]),v("div",UJ,[v("div",null,[v("label",jJ,U(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),v("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,HJ))),256))],32)])]),v("div",VJ,[v("div",null,[v("label",WJ,U(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),v("div",zJ,[v("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,qJ)])])]),v("div",KJ,[v("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:St({"text-indigo-600":!e.first,"text-gray-500":e.first})},[q(a,{class:"w-5 h-5"})],10,GJ),v("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:St({"text-indigo-600":!e.last,"text-gray-500":e.last})},[q(c,{class:"w-5 h-5"})],10,XJ),v("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[q(d,{class:"w-5 h-5"})],8,JJ),v("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[q(p,{class:"w-5 h-5"})])])])])])}const ZJ=Be(CJ,[["render",YJ]]);var tr="top",jr="bottom",Hr="right",nr="left",iv="auto",Ka=[tr,jr,Hr,nr],rl="start",Ea="end",QJ="clippingParents",W$="viewport",Fl="popper",eY="reference",G_=Ka.reduce(function(e,t){return e.concat([t+"-"+rl,t+"-"+Ea])},[]),z$=[].concat(Ka,[iv]).reduce(function(e,t){return e.concat([t,t+"-"+rl,t+"-"+Ea])},[]),tY="beforeRead",nY="read",rY="afterRead",oY="beforeMain",iY="main",sY="afterMain",lY="beforeWrite",aY="write",uY="afterWrite",cY=[tY,nY,rY,oY,iY,sY,lY,aY,uY];function So(e){return e?(e.nodeName||"").toLowerCase():null}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 ol(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function Fr(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sv(e){if(typeof ShadowRoot>"u")return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function dY(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];!Fr(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 fY(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,d){return c[d]="",c},{});!Fr(o)||!So(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const pY={name:"applyStyles",enabled:!0,phase:"write",fn:dY,effect:fY,requires:["computeStyles"]};function bo(e){return e.split("-")[0]}var rs=Math.max,Jc=Math.min,il=Math.round;function sl(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Fr(e)&&t){var s=e.offsetHeight,l=e.offsetWidth;l>0&&(r=il(n.width)/l||1),s>0&&(o=il(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 lv(e){var t=sl(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 q$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qo(e){return lo(e).getComputedStyle(e)}function hY(e){return["table","td","th"].indexOf(So(e))>=0}function Ti(e){return((ol(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qd(e){return So(e)==="html"?e:e.assignedSlot||e.parentNode||(sv(e)?e.host:null)||Ti(e)}function X_(e){return!Fr(e)||qo(e).position==="fixed"?null:e.offsetParent}function mY(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Fr(e)){var r=qo(e);if(r.position==="fixed")return null}var o=Qd(e);for(sv(o)&&(o=o.host);Fr(o)&&["html","body"].indexOf(So(o))<0;){var s=qo(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 Ga(e){for(var t=lo(e),n=X_(e);n&&hY(n)&&qo(n).position==="static";)n=X_(n);return n&&(So(n)==="html"||So(n)==="body"&&qo(n).position==="static")?t:n||mY(e)||t}function av(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function na(e,t,n){return rs(e,Jc(t,n))}function gY(e,t,n){var r=na(e,t,n);return r>n?n:r}function K$(){return{top:0,right:0,bottom:0,left:0}}function G$(e){return Object.assign({},K$(),e)}function X$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var vY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,G$(typeof t!="number"?t:X$(t,Ka))};function yY(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=av(a),d=[nr,Hr].indexOf(a)>=0,p=d?"height":"width";if(!(!s||!l)){var h=vY(o.padding,n),g=lv(s),y=c==="y"?tr:nr,_=c==="y"?jr:Hr,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],C=l[c]-n.rects.reference[c],T=Ga(s),w=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,E=S/2-C/2,O=h[y],$=w-g[p]-h[_],P=w/2-g[p]/2+E,k=na(O,P,$),I=c;n.modifiersData[r]=(t={},t[I]=k,t.centerOffset=k-P,t)}}function bY(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)||q$(t.elements.popper,o)&&(t.elements.arrow=o))}const _Y={name:"arrow",enabled:!0,phase:"main",fn:yY,effect:bY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ll(e){return e.split("-")[1]}var wY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:il(t*o)/o||0,y:il(n*o)/o||0}}function J_(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,g=l.x,y=g===void 0?0:g,_=l.y,S=_===void 0?0:_,C=typeof p=="function"?p({x:y,y:S}):{x:y,y:S};y=C.x,S=C.y;var T=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),E=nr,O=tr,$=window;if(d){var P=Ga(n),k="clientHeight",I="clientWidth";if(P===lo(n)&&(P=Ti(n),qo(P).position!=="static"&&a==="absolute"&&(k="scrollHeight",I="scrollWidth")),P=P,o===tr||(o===nr||o===Hr)&&s===Ea){O=jr;var H=h&&P===$&&$.visualViewport?$.visualViewport.height:P[k];S-=H-r.height,S*=c?1:-1}if(o===nr||(o===tr||o===jr)&&s===Ea){E=Hr;var D=h&&P===$&&$.visualViewport?$.visualViewport.width:P[I];y-=D-r.width,y*=c?1:-1}}var F=Object.assign({position:a},d&&wY),z=p===!0?SY({x:y,y:S}):{x:y,y:S};if(y=z.x,S=z.y,c){var G;return Object.assign({},F,(G={},G[O]=w?"0":"",G[E]=T?"0":"",G.transform=($.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",G))}return Object.assign({},F,(t={},t[O]=w?S+"px":"",t[E]=T?y+"px":"",t.transform="",t))}function EY(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,d={placement:bo(t.placement),variation:ll(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,J_(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,J_(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:EY,data:{}};var rc={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=lo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",n.update,rc)}),a&&c.addEventListener("resize",n.update,rc),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",n.update,rc)}),a&&c.removeEventListener("resize",n.update,rc)}}const CY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$Y,data:{}};var TY={left:"right",right:"left",bottom:"top",top:"bottom"};function gc(e){return e.replace(/left|right|bottom|top/g,function(t){return TY[t]})}var OY={start:"end",end:"start"};function Y_(e){return e.replace(/start|end/g,function(t){return OY[t]})}function uv(e){var t=lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cv(e){return sl(Ti(e)).left+uv(e).scrollLeft}function AY(e){var t=lo(e),n=Ti(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+cv(e),y:a}}function IY(e){var t,n=Ti(e),r=uv(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=rs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=rs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+cv(e),c=-r.scrollTop;return qo(o||n).direction==="rtl"&&(a+=rs(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function dv(e){var t=qo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function J$(e){return["html","body","#document"].indexOf(So(e))>=0?e.ownerDocument.body:Fr(e)&&dv(e)?e:J$(Qd(e))}function ra(e,t){var n;t===void 0&&(t=[]);var r=J$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=lo(r),l=o?[s].concat(s.visualViewport||[],dv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ra(Qd(l)))}function qh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function PY(e){var t=sl(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 Z_(e,t){return t===W$?qh(AY(e)):ol(t)?PY(t):qh(IY(Ti(e)))}function kY(e){var t=ra(Qd(e)),n=["absolute","fixed"].indexOf(qo(e).position)>=0,r=n&&Fr(e)?Ga(e):e;return ol(r)?t.filter(function(o){return ol(o)&&q$(o,r)&&So(o)!=="body"}):[]}function RY(e,t,n){var r=t==="clippingParents"?kY(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var d=Z_(e,c);return a.top=rs(d.top,a.top),a.right=Jc(d.right,a.right),a.bottom=Jc(d.bottom,a.bottom),a.left=rs(d.left,a.left),a},Z_(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 Y$(e){var t=e.reference,n=e.element,r=e.placement,o=r?bo(r):null,s=r?ll(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case tr:c={x:l,y:t.y-n.height};break;case jr:c={x:l,y:t.y+t.height};break;case Hr: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 d=o?av(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case rl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Ea:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function xa(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?QJ:s,a=n.rootBoundary,c=a===void 0?W$:a,d=n.elementContext,p=d===void 0?Fl:d,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,S=G$(typeof _!="number"?_:X$(_,Ka)),C=p===Fl?eY:Fl,T=e.rects.popper,w=e.elements[g?C:p],E=RY(ol(w)?w:w.contextElement||Ti(e.elements.popper),l,c),O=sl(e.elements.reference),$=Y$({reference:O,element:T,strategy:"absolute",placement:o}),P=qh(Object.assign({},T,$)),k=p===Fl?P:O,I={top:E.top-k.top+S.top,bottom:k.bottom-E.bottom+S.bottom,left:E.left-k.left+S.left,right:k.right-E.right+S.right},H=e.modifiersData.offset;if(p===Fl&&H){var D=H[o];Object.keys(I).forEach(function(F){var z=[Hr,jr].indexOf(F)>=0?1:-1,G=[tr,jr].indexOf(F)>=0?"y":"x";I[F]+=D[G]*z})}return I}function LY(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,d=c===void 0?z$:c,p=ll(r),h=p?a?G_:G_.filter(function(_){return ll(_)===p}):Ka,g=h.filter(function(_){return d.indexOf(_)>=0});g.length===0&&(g=h);var y=g.reduce(function(_,S){return _[S]=xa(e,{placement:S,boundary:o,rootBoundary:s,padding:l})[bo(S)],_},{});return Object.keys(y).sort(function(_,S){return y[_]-y[S]})}function NY(e){if(bo(e)===iv)return[];var t=gc(e);return[Y_(e),t,Y_(t)]}function MY(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,d=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,S=n.allowedAutoPlacements,C=t.options.placement,T=bo(C),w=T===C,E=c||(w||!_?[gc(C)]:NY(C)),O=[C].concat(E).reduce(function(ae,fe){return ae.concat(bo(fe)===iv?LY(t,{placement:fe,boundary:p,rootBoundary:h,padding:d,flipVariations:_,allowedAutoPlacements:S}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,I=!0,H=O[0],D=0;D<O.length;D++){var F=O[D],z=bo(F),G=ll(F)===rl,te=[tr,jr].indexOf(z)>=0,we=te?"width":"height",be=xa(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),Ae=te?G?Hr:nr:G?jr:tr;$[we]>P[we]&&(Ae=gc(Ae));var Ie=gc(Ae),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Ae]<=0,be[Ie]<=0),Ye.every(function(ae){return ae})){H=F,I=!1;break}k.set(F,Ye)}if(I)for(var ft=_?3:1,Le=function(fe){var xe=O.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(xe)return H=xe,"break"},Ge=ft;Ge>0;Ge--){var Q=Le(Ge);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const DY={name:"flip",enabled:!0,phase:"main",fn:MY,requiresIfExists:["offset"],data:{_skip:!1}};function Q_(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 e1(e){return[tr,Hr,jr,nr].some(function(t){return e[t]>=0})}function FY(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=xa(t,{elementContext:"reference"}),a=xa(t,{altBoundary:!0}),c=Q_(l,r),d=Q_(a,o,s),p=e1(c),h=e1(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const BY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:FY};function UY(e,t,n){var r=bo(e),o=[nr,tr].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,Hr].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function jY(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=z$.reduce(function(p,h){return p[h]=UY(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const HY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jY};function VY(e){var t=e.state,n=e.name;t.modifiersData[n]=Y$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const WY={name:"popperOffsets",enabled:!0,phase:"read",fn:VY,data:{}};function zY(e){return e==="x"?"y":"x"}function qY(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,d=n.rootBoundary,p=n.altBoundary,h=n.padding,g=n.tether,y=g===void 0?!0:g,_=n.tetherOffset,S=_===void 0?0:_,C=xa(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),T=bo(t.placement),w=ll(t.placement),E=!w,O=av(T),$=zY(O),P=t.modifiersData.popperOffsets,k=t.rects.reference,I=t.rects.popper,H=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,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 G,te=O==="y"?tr:nr,we=O==="y"?jr:Hr,be=O==="y"?"height":"width",Ae=P[O],Ie=Ae+C[te],Ye=Ae-C[we],ft=y?-I[be]/2:0,Le=w===rl?k[be]:I[be],Ge=w===rl?-I[be]:-k[be],Q=t.elements.arrow,ae=y&&Q?lv(Q):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:K$(),xe=fe[te],He=fe[we],De=na(0,k[be],ae[be]),tt=E?k[be]/2-ft-De-xe-D.mainAxis:Le-De-xe-D.mainAxis,gn=E?-k[be]/2+ft+De+He+D.mainAxis:Ge+De+He+D.mainAxis,ln=t.elements.arrow&&Ga(t.elements.arrow),L=ln?O==="y"?ln.clientTop||0:ln.clientLeft||0:0,B=(G=F==null?void 0:F[O])!=null?G:0,Z=Ae+tt-B-L,le=Ae+gn-B,ie=na(y?Jc(Ie,Z):Ie,Ae,y?rs(Ye,le):Ye);P[O]=ie,z[O]=ie-Ae}if(a){var pe,$e=O==="x"?tr:nr,he=O==="x"?jr:Hr,me=P[$],se=$==="y"?"height":"width",Re=me+C[$e],Pe=me-C[he],Me=[tr,nr].indexOf(T)!==-1,je=(pe=F==null?void 0:F[$])!=null?pe:0,rt=Me?Re:me-k[se]-I[se]-je+D.altAxis,mt=Me?me+k[se]+I[se]-je-D.altAxis:Pe,ct=y&&Me?gY(rt,me,mt):na(y?rt:Re,me,y?mt:Pe);P[$]=ct,z[$]=ct-me}t.modifiersData[r]=z}}const KY={name:"preventOverflow",enabled:!0,phase:"main",fn:qY,requiresIfExists:["offset"]};function GY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function XY(e){return e===lo(e)||!Fr(e)?uv(e):GY(e)}function JY(e){var t=e.getBoundingClientRect(),n=il(t.width)/e.offsetWidth||1,r=il(t.height)/e.offsetHeight||1;return n!==1||r!==1}function YY(e,t,n){n===void 0&&(n=!1);var r=Fr(t),o=Fr(t)&&JY(t),s=Ti(t),l=sl(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((So(t)!=="body"||dv(s))&&(a=XY(t)),Fr(t)?(c=sl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=cv(s))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function ZY(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 QY(e){var t=ZY(e);return cY.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function eZ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function tZ(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 t1={placement:"bottom",modifiers:[],strategy:"absolute"};function n1(){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 nZ(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?t1:o;return function(a,c,d){d===void 0&&(d=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},t1,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(T){var w=typeof T=="function"?T(p.options):T;S(),p.options=Object.assign({},s,p.options,w),p.scrollParents={reference:ol(a)?ra(a):a.contextElement?ra(a.contextElement):[],popper:ra(c)};var E=QY(tZ([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),_(),y.update()},forceUpdate:function(){if(!g){var T=p.elements,w=T.reference,E=T.popper;if(n1(w,E)){p.rects={reference:YY(w,Ga(E),p.options.strategy==="fixed"),popper:lv(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 O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,k=$.options,I=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:I,name:H,instance:y})||p)}}}},update:eZ(function(){return new Promise(function(C){y.forceUpdate(),C(p)})}),destroy:function(){S(),g=!0}};if(!n1(a,c))return y;y.setOptions(d).then(function(C){!g&&d.onFirstUpdate&&d.onFirstUpdate(C)});function _(){p.orderedModifiers.forEach(function(C){var T=C.name,w=C.options,E=w===void 0?{}:w,O=C.effect;if(typeof O=="function"){var $=O({state:p,name:T,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(C){return C()}),h=[]}return y}}var rZ=[CY,WY,xY,pY,HY,DY,KY,_Y,BY],oZ=nZ({defaultModifiers:rZ});function iZ(e){let t=_e(null),n=_e(null);return vt(()=>{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}=oZ(s,o,e);r(l)})}),[t,n]}const sZ=ge({data(){return{query:"",data:""}},emits:["addContributor","createContributor","close"],setup(){let[e,t]=iZ({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:K.contributors.contributors,episodeContributions:K.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:J9,XIcon:Ua,ChevronDownIcon:Lx,Combobox:e$,ComboboxButton:t$,ComboboxInput:n$,ComboboxLabel:UU,ComboboxOption:o$,ComboboxOptions:r$,UserCircleIcon:Ux,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=X.get(e,["target","value"],"")},close(){this.$emit("close")}}}),lZ={class:"block hover:bg-gray-50"},aZ={class:"flex items-center px-4 py-4 sm:px-6"},uZ={class:"flex min-w-0 flex-1 items-center"},cZ={class:"min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4"},dZ={class:"relative mt-2 max-w-sm"},fZ={ref:"container"},pZ={class:"flex items-center"},hZ=["src","onError"],mZ={class:"flex space-x-2 justify-end"};function gZ(e,t,n,r,o,s){const l=J("ComboboxLabel"),a=J("ComboboxInput"),c=J("ChevronDownIcon"),d=J("ComboboxButton"),p=J("UserCircleIcon"),h=J("CheckIcon"),g=J("ComboboxOption"),y=J("ComboboxOptions"),_=J("Combobox"),S=J("x-icon");return N(),V("div",lZ,[v("div",aZ,[v("div",uZ,[v("div",cZ,[q(_,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=C=>e.data=C)},{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}),v("div",dZ,[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]=C=>e.filterContributors(C)),displayValue:()=>e.query},null,8,["displayValue"]),q(d,{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})]),v("div",fZ,[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,C=>(N(),bt(g,{key:C.id||"create",value:C,as:"template"},{default:ye(({active:T,selected:w})=>[v("li",{class:St(["relative cursor-default select-none py-2 pl-3 pr-9",T?"bg-indigo-600 text-white":"text-gray-900"])},[v("div",pZ,[C.avatar_url?(N(),V("img",{key:0,src:C.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>C.avatar_url=""},null,40,hZ)):Ke("",!0),C.avatar_url?Ke("",!0):(N(),bt(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),v("span",{class:St(["ml-3 truncate",w&&"font-semibold"])},U(C.realname),3)]),w?(N(),V("span",{key:0,class:St(["absolute inset-y-0 right-0 flex items-center pr-4",T?"text-white":"text-indigo-600"])},[q(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):Ke("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):Ke("",!0)],512)]),_:1},8,["modelValue"])])]),v("div",mZ,[v("button",{class:"text-red-600",onClick:t[2]||(t[2]=C=>e.close())},[q(S,{class:"w-5 h-5"})])])])])}const vZ=Be(sZ,[["render",gZ]]),yZ=ge({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lg,Contribution:ZJ,AddContribution:vZ},data(){return{addContributorInput:!1}},setup(){return{dispatch:it().dispatch,state:yt({contributions:K.episode.contributions,roles:K.contributors.roles,groups:K.contributors.groups})}},created(){this.dispatch(o2())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(zE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(v7(e))},closeAddContributor(){this.addContributorInput=!1}}}),bZ={role:"list",class:"divide-y divide-gray-200"},_Z={key:0,class:"mb-0"},wZ={class:"py-5 px-6 border-t border-gray-200"};function SZ(e,t,n,r,o,s){const l=J("Contribution"),a=J("AddContribution"),c=J("plus-sm-icon"),d=J("podlove-button"),p=J("module");return N(),bt(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:ye(()=>[]),default:ye(()=>[v("ul",bZ,[(N(!0),V(Fe,null,Mt(e.state.contributions,(h,g)=>(N(),V("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(N(),bt(l,{key:0,data:h,first:g===0,last:g===e.state.contributions.length-1},null,8,["data","first","last"])):Ke("",!0)]))),128)),e.addContributorInput?(N(),V("li",_Z,[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())})])):Ke("",!0)]),v("div",wZ,[q(d,{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"])}const EZ=Be(yZ,[["render",SZ]]),xZ=ge({setup(){return{state:yt({slug:K.episode.slug,baseUri:K.settings.mediaFileBaseUri}),dispatch:it().dispatch}},methods:{updateSlug(e){this.dispatch(wt({prop:"slug",value:e.target.value})),this.dispatch(F2())}},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"},CZ={class:"mt-2 sm:col-span-2 sm:mt-0"},TZ={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"},OZ={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},AZ=["value"],IZ=v("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1);function PZ(e,t,n,r,o,s){return N(),V(Fe,null,[v("label",$Z,U(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),v("div",CZ,[v("div",TZ,[v("span",OZ,U(e.assetPrefix),1),v("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,AZ),IZ])])],64)}const kZ=Be(xZ,[["render",PZ]]),RZ=ge({components:{PodloveButton:Vn,UploadIcon:Nx},setup(){return{state:yt({}),dispatch:it().dispatch}},methods:{uploadIntent(){this.dispatch(wD())}},computed:{}}),LZ={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},NZ={class:"mt-2 sm:col-span-2 sm:mt-0"};function MZ(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button");return N(),V(Fe,null,[v("label",LZ,U(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),v("div",NZ,[v("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)}const DZ=Be(RZ,[["render",MZ]]),FZ={},BZ={class:"text-center"},UZ=v("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[v("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),jZ={class:"mt-2 text-sm font-semibold text-gray-900"},HZ={class:"mt-1 text-sm text-gray-500"};function VZ(e,t){return N(),V("div",BZ,[UZ,v("h3",jZ,U(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),v("p",HZ,U(e.__("Please go to Podlove → Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}const WZ=Be(FZ,[["render",VZ]]),zZ=ge({components:{CheckCircleIcon:Zq,XCircleIcon:V$,CloudIcon:Mx,AssetsEmptyState:WZ},setup(){return{state:yt({files:K.mediafiles.files,duration:K.episode.duration}),dispatch:it().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(yD(r)):this.dispatch(bD(r))},handleVerify(e){this.dispatch(_D(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}}}),qZ={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},KZ={class:"mt-2 sm:col-span-2 sm:mt-0"},GZ={key:0},XZ={class:"min-w-full table-fixed divide-y divide-gray-300"},JZ={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},YZ={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},ZZ={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},QZ=v("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),eQ={class:"divide-y divide-gray-200 bg-white"},tQ={class:"relative px-7 sm:w-12 sm:px-6"},nQ={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},rQ=["value","checked"],oQ={class:"text-sm"},iQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},sQ={class:"flex flex-col"},lQ=["href"],aQ={class:"flex"},uQ={key:3},cQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},dQ=["onClick"],fQ={class:"mt-3 text-sm leading-6 text-gray-600"};function pQ(e,t,n,r,o,s){const l=J("CloudIcon"),a=J("CheckCircleIcon"),c=J("XCircleIcon"),d=J("AssetsEmptyState");return N(),V(Fe,null,[v("label",qZ,U(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),v("div",KZ,[e.hasFiles?(N(),V("div",GZ,[v("table",XZ,[v("thead",null,[v("tr",null,[v("th",JZ,U(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),v("th",YZ,U(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),v("th",ZZ,U(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),QZ])]),v("tbody",eQ,[(N(!0),V(Fe,null,Mt(e.files,p=>(N(),V("tr",{key:p.asset_id,class:St({"opacity-50":!p.enable})},[v("td",tQ,[p.is_verifying?(N(),V("div",nQ,[q(l,{class:"h-5 w-5","aria-hidden":"true"})])):Ke("",!0),v("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,rQ)]),v("td",oQ,U(p.asset),1),v("td",iQ,[v("div",sQ,[v("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},U(p.url),9,lQ),v("span",aQ,[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:St(["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",uQ,U(e.fileSize(p)),1)):(N(),V("span",{key:2,class:St({"text-gray-400":!p.enable,"text-red-400":p.enable})},U(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),v("td",cQ,[v("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,dQ)])],2))),128))])]),v("p",fQ,U(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.duration),1)])):(N(),bt(d,{key:1}))])],64)}const hQ=Be(zZ,[["render",pQ]]),mQ=ge({components:{Module:Nn,RefreshIcon:kx,MediaSlug:kZ,MediaUpload:DZ,AssetsTable:hQ},setup(){return{state:yt({isInitializing:K.mediafiles.isInitializing,modules:K.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(mD())}}),gQ={key:0,class:"w-full flex justify-center m-12 text-center"},vQ={class:"animate-pulse mt-4 flex space-x-4"},yQ={key:1},bQ={class:"px-6"},_Q={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"},wQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},SQ={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},EQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function xQ(e,t,n,r,o,s){const l=J("RefreshIcon"),a=J("MediaSlug"),c=J("MediaUpload"),d=J("AssetsTable"),p=J("module");return N(),bt(p,{name:"mediafiles",title:"Media Files"},{default:ye(()=>[v("div",null,[e.isInitializing?(N(),V("div",gQ,[v("div",vQ,[q(l,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(N(),V("div",yQ,[v("div",bQ,[v("div",_Q,[v("div",wQ,[q(a)]),e.isMediaUploadEnabled?(N(),V("div",SQ,[q(c)])):Ke("",!0),v("div",EQ,[q(d)])])])]))])]),_:1})}const $Q=Be(mQ,[["render",xQ]]),CQ=ge({name:"PodloveCombobox",components:{Combobox:e$,ComboboxButton:t$,ComboboxInput:n$,ComboboxOption:o$,ComboboxOptions:r$,CheckIcon:Yd,SelectorIcon:Zd},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=""}}}),TQ={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},OQ={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},AQ={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},IQ={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},PQ={key:0,class:"text-xs text-red-400 mt-1"};function kQ(e,t,n,r,o,s){const l=J("ComboboxInput"),a=J("SelectorIcon"),c=J("ComboboxButton"),d=J("CheckIcon"),p=J("ComboboxOption"),h=J("ComboboxOptions"),g=J("Combobox",!0);return N(),bt(g,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:ye(()=>[v("div",TQ,[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"]),v("div",OQ,U(e.label),1),q(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),q(xi,{"leave-active-class":`
     148`;V$(Tz);W$.__scopeId="data-v-5784ed69";var Oz=(()=>{const e=W$;return e.install=t=>{t.component("Popper",e)},e})();const Az=ve({components:{Popper:Oz},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 Iz(e,t,n,r,o,s){const l=J("Popper");return N(),V("div",null,[q(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:ye(()=>[v("div",Pz,[_r(e.$slots,"content")])]),default:ye(()=>[_r(e.$slots,"trigger")]),_:3})])}const kz=Be(Az,[["render",Iz]]),Rz=ve({components:{PodloveButton:zn,Tooltip:kz},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(a7(n.target.result))},t.readAsText(X.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),Lz={class:"text-xs"},Nz={class:"text-gray-600 leading-3 font-semibold mb-2"},Mz={class:"text-gray-500 ml-1"},Dz={class:"mb-1"},Fz={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},Bz=v("code",null,".psc",-1),Uz={class:"mb-1"},jz={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},Hz={class:"mb-1"},Vz={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},Wz=v("code",null,".txt",-1);function zz(e,t,n,r,o,s){const l=J("podlove-button"),a=J("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}),v("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:ye(()=>[v("div",Lz,[v("p",Nz,U(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),v("ul",Mz,[v("li",Dz,[v("a",Fz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Xe(" ("),Bz,Xe("), ")]),v("li",Uz,[v("a",jz,U(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),v("li",Hz,[v("a",Vz,U(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),Wz,Xe(") ")])])])]),_:1})}const qz=Be(Rz,[["render",zz]]),Kz=ve({components:{Popover:x$,PopoverButton:Pj,PopoverPanel:Ij}});function Gz(e,t,n,r,o,s){const l=J("PopoverButton"),a=J("PopoverPanel"),c=J("Popover",!0);return N(),bt(c,{class:"relative"},{default:ye(()=>[q(l,null,{default:ye(()=>[_r(e.$slots,"trigger")]),_:3}),q($i,{"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(()=>[_r(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}const z$=Be(Kz,[["render",Gz]]),Xz=ve({components:{Popover:z$,PodloveButton:zn},setup(){return{dispatch:it().dispatch}},methods:{download(e){this.dispatch(c7(e))}}}),Jz={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Yz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Zz=v("div",{class:"text-sm text-gray-500"},".psc",-1),Qz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},eq=v("div",{class:"text-sm text-gray-500"},".txt",-1);function tq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("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(()=>[v("div",Jz,[v("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"},[v("div",Yz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Zz]),v("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"},[v("div",Qz,U(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),eq])])]),_:1})])}const nq=Be(Xz,[["render",tq]]),rq=ve({components:{Module:Mn,TabsContainer:R$,Tab:k$,ChaptersForm:hW,ChaptersImport:qz,ChaptersExport:nq},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(o7())}});function oq(e,t,n,r,o,s){const l=J("chapters-import"),a=J("chapters-export"),c=J("chapters-form"),d=J("module");return N(),bt(d,{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"])}const iq=Be(rq,[["render",oq]]),sq={},lq={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},aq=v("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),uq=[aq];function cq(e,t){return N(),V("svg",lq,uq)}const dq=Be(sq,[["render",cq]]),fq=ve({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:zn,UploadIcon:Fx,DocumentTextIcon:Ux},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(R7())},handleImport(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(k7(n.target.result))},t.readAsText(X.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),pq={ref:"importForm",class:"cursor-pointer"},hq={class:"grid grid-cols-2"};function mq(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button");return N(),V("form",pq,[v("div",hq,[v("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"]),v("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),v("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)}const gq=Be(fq,[["render",mq]]),vq=ve({components:{Avatar:dq,TranscriptsImport:gq,DocumentTextIcon:Ux},setup(){return{state:yt({transcripts:K.transcripts.list,contributors:K.contributors.contributors,voices:K.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=X.last(e);return n&&n.voiceId===t.voice?[...X.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:X.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Mt(e).prettyShort}}}),yq={key:0,class:"h-96 p-2 overflow-x-auto"},bq={class:"mr-2 w-12 text-gray-400 select-none"},_q=["src"],wq={class:"w-full font-light text-sm mr-2"},Sq={class:"block font-bold"},Eq={class:"flex justify-between"},xq={class:"ml-1 font-mono select-none"},$q={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"},Tq={class:"mt-1 text-sm text-gray-500"},Oq={class:"mt-6"};function Aq(e,t,n,r,o,s){const l=J("avatar"),a=J("document-text-icon"),c=J("transcripts-import");return e.transcripts.length>0?(N(),V("div",yq,[(N(!0),V(Fe,null,Dt(e.transcripts,(d,p)=>{var h,g,y;return N(),V("div",{class:"flex mb-2",key:`transcript-${p}`},[v("div",bq,[(h=d==null?void 0:d.voice)!=null&&h.avatar?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:(g=d==null?void 0:d.voice)==null?void 0:g.avatar},null,8,_q)):(N(),bt(l,{key:1}))]),v("div",wq,[v("span",Sq,U((y=d==null?void 0:d.voice)==null?void 0:y.name),1),v("span",Eq,[v("span",null,[(N(!0),V(Fe,null,Dt(d.content,(_,S)=>(N(),V("span",{class:"mr-1",key:`transcript-${p}-content-${S}`},U(_.text),1))),128))]),v("span",xq,U(e.formatTime(d.content[0].start)),1)])])])}),128))])):(N(),V("div",$q,[q(a,{class:"mx-auto h-12 w-12 text-gray-400"}),v("h3",Cq,U(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),v("p",Tq,U(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),v("div",Oq,[q(c,{outlet:"content",class:"mr-1"})])]))}const Pq=Be(vq,[["render",Aq]]),Iq=ve({components:{PodloveButton:zn,Modal:Wa},data(){return{modalOpen:!1}},setup(){return{state:yt({contributors:K.contributors.contributors,voices:K.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(I7({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),kq={key:0},Rq={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Lq={class:"text-lg leading-6 font-medium text-gray-900"},Nq={for:"country",class:"block text-sm font-medium text-gray-700"},Mq=["value","onChange"],Dq=v("option",{value:"0"},null,-1),Fq=["value"];function Bq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("modal");return e.state.voices.length>0?(N(),V("div",kq,[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(()=>[v("div",Rq,[v("h3",Lq,U(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Dt(e.state.voices,(c,d)=>(N(),V("div",{key:`voice-${d}`,class:St(["w-full py-2 px-4",{"bg-white":d%2}])},[v("label",Nq,U(c.voice),1),v("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)},[Dq,(N(!0),V(Fe,null,Dt(e.sortedContributors,(p,h)=>(N(),V("option",{key:`voice-${d}-contributor-${h}`,value:p.id},U(p.publicname||p.realname||p.nickname),9,Fq))),128))],40,Mq)],2))),128))]),_:1},8,["open"])])):He("",!0)}const Uq=Be(Iq,[["render",Bq]]),jq=[{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"}],Hq=ve({components:{Popover:z$,PodloveButton:zn},setup(){return{state:yt({post:K.post.id,baseUrl:K.runtime.baseUrl,transcripts:K.transcripts.list})}},data(){return{exportTypes:jq}}}),Vq={key:0},Wq={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},zq=["download","href"],qq={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Kq={class:"text-sm text-gray-500"};function Gq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("popover");return e.state.transcripts.length>0?(N(),V("div",Vq,[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(()=>[v("div",Wq,[(N(!0),V(Fe,null,Dt(e.exportTypes,(c,d)=>(N(),V("a",{key:`type-${d}`,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"},[v("div",qq,U(c.title),1),v("div",Kq,U(c.ending),1)],8,zq))),128))])]),_:1})])):He("",!0)}const Xq=Be(Hq,[["render",Gq]]),Jq=ve({components:{PodloveButton:zn,Modal:Wa,ExclamationIcon:jx,DialogTitle:_j},data(){return{modalVisible:!1}},setup(){return{state:yt({transcripts:K.transcripts.list}),dispatch:it().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(L7())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),Yq={key:0},Zq={class:"sm:flex sm:items-start"},Qq={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"},eK={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},tK={class:"mt-2"},nK={class:"text-sm text-gray-500"},rK={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function oK(e,t,n,r,o,s){const l=J("podlove-button"),a=J("exclamation-icon"),c=J("DialogTitle"),d=J("modal");return e.state.transcripts.length>0?(N(),V("div",Yq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:ye(()=>[Xe("Clear")]),_:1}),q(d,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[v("div",Zq,[v("div",Qq,[q(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),v("div",eK,[q(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:ye(()=>[Xe(" Clear Transcript ")]),_:1}),v("div",tK,[v("p",nK,U(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),v("div",rK,[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"])])):He("",!0)}const iK=Be(Jq,[["render",oK]]),sK=ve({components:{Module:Mn,TabsContainer:R$,Tab:k$,TranscriptsList:Pq,TranscriptsVoices:Uq,TranscriptsExport:Xq,TranscriptsDelete:iK},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(i2()),this.dispatch(O7())}});function lK(e,t,n,r,o,s){const l=J("transcripts-voices"),a=J("transcripts-export"),c=J("transcripts-delete"),d=J("transcripts-list"),p=J("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(d)]),_:1},8,["title"])}const aK=Be(sK,[["render",lK]]);function uK(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"},[v("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 Yd(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"},[v("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 Zd(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"},[v("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 q$(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"},[v("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 cK=ve({props:["file_key","track_index"],components:{Listbox:Wg,ListboxButton:qg,ListboxLabel:zg,ListboxOption:Gg,ListboxOptions:Kg,CheckIcon:Yd,SelectorIcon:Zd,DocumentCheckIcon:fU},setup(){return{state:yt({services:K.auphonic.incomingServices,serviceFiles:K.auphonic.serviceFiles,fileSelections:K.auphonic.fileSelections,episodeSlug:K.episode.slug}),dispatch:it().dispatch}},methods:{set(e,t){this.dispatch(O2({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch(P2({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(wt({prop:"slug",value:e})),this.dispatch(j2())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return X.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}}}),dK={class:"flex flex-col gap-2"},fK=v("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),pK=["value","selected"],hK={key:0},mK={key:0},gK=["for"],vK={class:"sm:mt-1 rounded-md bg-indigo-50 px-3 py-2 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-100"},yK={key:0,class:"sm:mt-1 text-sm font-normal"},bK=["id"],_K={key:1},wK=["for"],SK={class:"mt-1"},EK=["id","value"],xK={key:2},$K={key:0},CK=["for"],TK=["id","value"],OK=["value"],AK={key:1},PK={key:3,class:"mt-3"},IK={class:"font-mono"};function kK(e,t,n,r,o,s){const l=J("DocumentCheckIcon");return N(),V("div",null,[v("div",dK,[v("div",null,[fK,v("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,Dt(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,pK))),128))],32)]),e.currentService?(N(),V("div",hK,[e.currentService.type==="file"?(N(),V("div",mK,[v("label",{for:e.file_key+"file-upload",class:"relative flex items-center gap-2 cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none"},[v("div",vK,U(e.__("Choose File","podlove-podcasting-plugin-for-wordpress")),1),e.filenameSelectedForUpload?(N(),V("div",yK,[Xe(U(e.__("Selected for Upload:","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",null,U(e.filenameSelectedForUpload),1)])):He("",!0),v("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,bK)],8,gK)])):e.currentService.type==="url"?(N(),V("div",_K,[v("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,wK),v("div",SK,[v("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,EK)])])):(N(),V("div",xK,[e.serviceFiles!==null?(N(),V("div",$K,[v("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,CK),v("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,Dt(e.serviceFiles,a=>(N(),V("option",{key:a,value:a,d:""},U(a),9,OK))),128))],40,TK)])):(N(),V("div",AK,"..."))])),e.shouldSuggestSlug?(N(),V("div",PK,[v("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"}),v("span",null,[Xe(U(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",IK,U(e.slugCandidate),1)])])])):He("",!0)])):He("",!0)])])}const RK=Be(cK,[["render",kK]]),LK=ve({components:{ClipboardCheckIcon:cU,ExternalLinkIcon:Mx,ExclamationIcon:jx},setup(){return{state:yt({production:K.auphonic.production,title:K.episode.title,subtitle:K.episode.subtitle,summary:K.episode.summary,duration:K.episode.duration,slug:K.episode.slug,license_name:K.episode.license_name,license_url:K.episode.license_url,chapters:K.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(NE(r));break;default:this.dispatch(wt({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))}}}),NK={key:0,class:"rounded-md bg-green-50 p-4"},MK={class:"flex"},DK={class:"flex-shrink-0"},FK={class:"ml-3"},BK={class:"text-sm font-medium text-green-800"},UK={class:"mt-2 text-sm text-green-700"},jK=["href"],HK={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},VK={class:"flex"},WK={class:"flex-shrink-0"},zK={class:"ml-3"},qK={class:"text-sm font-medium text-yellow-800"},KK={class:"mt-2 text-sm text-yellow-700"},GK={key:2,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},XK={class:"p-6"},JK=v("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),YK={class:"mt-1 text-sm text-gray-500"},ZK={class:"mt-6 flow-root"},QK={role:"list",class:"-my-5 divide-y divide-gray-200"},eG={class:"flex items-center space-x-4"},tG={class:"min-w-0 flex-1"},nG={class:"truncate text-sm text-gray-500"},rG={class:"truncate text-sm font-medium text-gray-900"},oG=["onClick"],iG={class:"hidden sm:inline"},sG={class:"mt-6"},lG={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},aG={class:"p-6"};function uG(e,t,n,r,o,s){const l=J("ClipboardCheckIcon"),a=J("ExternalLinkIcon"),c=J("ExclamationIcon");return N(),V("div",null,[e.production.status==3?(N(),V("div",NK,[v("div",MK,[v("div",DK,[q(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),v("div",FK,[v("h3",BK,U(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),v("div",UK,[v("p",null,[v("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,jK),Xe(" "+U(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):He("",!0),e.production.warning_message?(N(),V("div",HK,[v("div",VK,[v("div",WK,[q(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),v("div",zK,[v("h3",qK,U(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),v("div",KK,[v("p",null,U(e.production.warning_message),1)])])])])):He("",!0),e.visibleEntries.length>0?(N(),V("div",GK,[v("div",XK,[v("div",null,[JK,v("p",YK,U(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",ZK,[v("ul",QK,[(N(!0),V(Fe,null,Dt(e.visibleEntries,d=>(N(),V("li",{key:d.key,class:"py-4"},[v("div",eG,[v("div",tG,[v("p",nG,[v("em",null,U(d.title),1),Xe(" "+U(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),v("p",rG,U(e.renderEntryPreview(d)),1)]),v("div",null,[v("button",{onClick:xc(p=>e.importMeta(d.title,d.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),v("span",iG," "+U(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,oG)])])]))),128))])]),v("div",sG,[v("button",{onClick:t[0]||(t[0]=xc((...d)=>e.importAllMeta&&e.importAllMeta(...d),["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",lG,[v("div",aG,U(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}const cG=Be(LK,[["render",uG]]),dG=ve({components:{Switch:Nj,SwitchGroup:Lj,SwitchLabel:Mj},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(I2(e))}},setup(){return{state:yt({publishWhenDone:K.auphonic.publishWhenDone}),dispatch:it().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),fG={class:"text-sm text-gray-900"};function pG(e,t,n,r,o,s){const l=J("Switch"),a=J("SwitchLabel"),c=J("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:St([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(()=>[v("span",{"aria-hidden":"true",class:St([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(()=>[v("span",fG,U(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}const hG=Be(dG,[["render",pG]]),mG=ve({props:{className:{type:String,default:""}}}),gG=v("g",{transform:"translate(-12.73496,-48.464)"},[v("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"}),v("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),vG=[gG];function yG(e,t,n,r,o,s){return N(),V("svg",{class:St(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},vG,2)}const iv=Be(mG,[["render",yG]]),bG=ve({components:{PodloveButton:zn,FileChooser:RK,CogIcon:dU,ChevronDownIcon:Dx,ChevronRightIcon:aU,XIcon:Ua,DatabaseIcon:uU,ExternalLinkIcon:Mx,CloudIcon:Bx,TrashIcon:pU,ArrowDownIcon:Lx,ArrowDownTrayIcon:rU,AuphonicLogo:iv,DonePage:cG,WebhookToggle:hG},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:yt({production:K.auphonic.production,tracks:K.auphonic.tracks,isSaving:K.auphonic.isSaving,progress:e=>t=>K.progress.progress(e,t)}),dispatch:it().dispatch}},methods:{saveProduction(){this.dispatch($2({uuid:this.production.uuid}))},startProduction(){this.dispatch(C2({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(E2())},addTrack(){this.dispatch(uD())},removeTrack(e){this.dispatch(A2(e))},updateTrack(e,t,n){this.dispatch(P2({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!X.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)},uploadProgress(e){return this.state.progress(e)||null}},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}}}),_G={class:"pb-5 space-y-4"},wG={class:"space-y-8"},SG={class:"bg-white px-4 sm:px-6"},EG={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},xG={class:"ml-4 mt-4"},$G={class:"flex items-center"},CG={class:"flex-shrink-0"},TG={class:"ml-4"},OG={class:"text-base font-semibold leading-6 text-gray-900"},AG={class:"text-sm text-gray-500"},PG={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},IG={key:0,class:"inline-flex items-center animate-pulse text-green-600"},kG={key:0},RG={key:1},LG={class:"space-y-4"},NG={key:0},MG={key:1},DG={class:"rounded-md bg-indigo-50 p-4"},FG={class:"flex"},BG={class:"flex-shrink-0"},UG={class:"ml-3"},jG={class:"text-sm font-medium text-indigo-800"},HG={class:"mt-2 text-sm text-indigo-700"},VG={key:2},WG={key:3},zG={class:"bg-white shadow overflow-hidden rounded-md"},qG={class:"px-6 pt-4 hidden md:block"},KG={class:"md:grid md:grid-cols-3 md:gap-12"},GG={class:"block text-sm font-medium text-gray-700 md:col-span-1"},XG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},JG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},YG=v("div",{class:"block w-8 md:col-span-1"},null,-1),ZG={role:"list",class:"divide-y divide-gray-200"},QG={class:"md:grid md:grid-cols-3 md:gap-12"},eX={class:"md:col-span-1"},tX=["for"],nX=["id","value","onInput"],rX={class:"mt-5 md:mt-0 md:col-span-1"},oX={class:"sm:items-baseline"},iX={class:"mt-4 sm:mt-0"},sX={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},lX={key:1},aX={class:"mt-2","aria-hidden":"true"},uX={class:"overflow-hidden rounded-full bg-gray-100"},cX={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},dX={class:"md:col-span-1"},fX={key:0,role:"group",class:"bg-gr"},pX={class:"sm:items-baseline"},hX={class:""},mX={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},gX={class:"max-w-lg relative"},vX=["title","onClick"],yX={class:"space-y-4"},bX={class:"relative flex items-start"},_X={class:"flex items-center h-5"},wX=["id","checked","onInput"],SX={class:"ml-3 text-sm"},EX=["for"],xX={class:"relative flex items-start"},$X={class:"flex items-center h-5"},CX=["id","checked","onInput"],TX={class:"ml-3 text-sm"},OX=["for"],AX={class:"relative flex justify-start align-middle items-center gap-3"},PX={class:"text-sm"},IX=["for"],kX=["value","onInput","id"],RX={value:"auto"},LX={value:"foreground"},NX={value:"background"},MX={value:"ducking"},DX={value:"unchanged"},FX={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"},UX={class:"sm:col-span-4"},jX={class:"text-base font-medium text-gray-900"},HX={class:"mt-2"},VX={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},WX={key:1},zX={class:"mt-2","aria-hidden":"true"},qX={class:"overflow-hidden rounded-full bg-gray-100"},KX={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},GX={class:"pt-5"},XX={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},JX={class:"flex justify-end gap-3"},YX=["href"];function ZX(e,t,n,r,o,s){var T,w,E,O;const l=J("AuphonicLogo"),a=J("CloudIcon"),c=J("ArrowDownTrayIcon"),d=J("XIcon"),p=J("DatabaseIcon"),h=J("DonePage"),g=J("FileChooser"),y=J("TrashIcon"),_=J("podlove-button"),S=J("WebhookToggle"),C=J("ExternalLinkIcon");return N(),V("form",_G,[v("div",wG,[v("div",SG,[v("div",EG,[v("div",xG,[v("div",$G,[v("div",CG,[q(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),v("div",TG,[v("h3",OG,U((w=(T=e.production)==null?void 0:T.metadata)==null?void 0:w.title),1),v("p",AG,U(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),v("div",PG,[e.isSaving?(N(),V("span",IG,[q(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):He("",!0),e.production.status!==3?(N(),V("button",{key:1,onClick:t[0]||(t[0]=x=>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",kG,U(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):He("",!0),e.showImportPage?He("",!0):(N(),V("span",RG,U(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):He("",!0),v("button",{onClick:t[1]||(t[1]=(...x)=>e.deselectProduction&&e.deselectProduction(...x)),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(d,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),v("span",null,U(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),v("div",LG,[e.showUploadScreen?(N(),V("div",NG,U(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):He("",!0),e.showProcessingScreen?(N(),V("div",MG,[v("div",DG,[v("div",FG,[v("div",BG,[q(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),v("div",UG,[v("h3",jG,U(e.production.status_string),1),v("div",HG,[v("p",null,U(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):He("",!0),e.production.status==3||e.showImportPage?(N(),V("div",VG,[q(h)])):He("",!0),e.isMultitrack&&e.showTrackEditor?(N(),V("div",WG,[v("div",zG,[v("div",qG,[v("div",KG,[v("div",GG,U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),v("div",XG,U(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),v("div",JG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),YG])]),v("ul",ZG,[(N(!0),V(Fe,null,Dt(e.tracks,(x,I)=>(N(),V("li",{key:`xtrack-${I}`,class:"px-6 py-4"},[v("div",QG,[v("div",eX,[v("label",{for:`track-id-${I}`,class:"block md:hidden text-sm font-medium text-gray-700"},U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),9,tX),v("input",{id:`track-id-${I}`,type:"text",value:x.identifier_new,onInput:k=>e.handleUpdateIdentifier(k,I),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,nX)]),v("div",rX,[v("div",oX,[v("div",iX,[q(g,{track_index:I,file_key:`${e.production.uuid}_t${I}`},null,8,["track_index","file_key"]),x.input_file_name?(N(),V("div",sX,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U(x.input_file_name),1)):He("",!0),e.uploadProgress(x.identifier)!=null?(N(),V("div",lX,[v("div",aX,[v("div",uX,[v("div",{class:"h-2 rounded-full bg-indigo-600",style:Wo({width:e.uploadProgress(x.identifier)+"%"})},null,4)]),v("div",cX,[v("div",null,U(e.uploadProgress(x.identifier))+"%",1)])])])):He("",!0)])])]),v("div",dX,[e.algorithmSettingsVisible(I)?(N(),V("div",fX,[v("div",pX,[v("div",hX,[v("div",mX,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),v("div",gX,[v("div",{title:e.__("Remove Track","podlove-podcasting-plugin-for-wordpress"),onClick:k=>e.removeTrack(x.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,vX),v("div",yX,[v("div",bX,[v("div",_X,[v("input",{id:`track_${I}_filtering`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:x.filtering,onInput:k=>e.handleToggleFiltering(k,I)},null,40,wX)]),v("div",SX,[v("label",{for:`track_${I}_filtering`,class:"text-gray-700"},U(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,EX)])]),v("div",null,[v("div",xX,[v("div",$X,[v("input",{id:`track_${I}_noisehum`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:x.noise_and_hum_reduction,onInput:k=>e.handleToggleNoiseHum(k,I)},null,40,CX)]),v("div",TX,[v("label",{for:`track_${I}_noisehum`,class:"text-gray-700"},U(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,OX)])])]),v("div",null,[v("div",AX,[v("div",PX,[v("label",{for:`track_${I}_fgbg`,class:"text-gray-700"},U(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,IX)]),v("select",{value:x.fore_background,onInput:k=>e.handleSelectForeBackground(k,I),id:`track_${I}_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"},[v("option",RX,U(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),v("option",LX,U(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",NX,U(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",MX,U(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",DX,U(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,kX)])])])])])])])):He("",!0)])])]))),128))]),v("div",FX,[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,[v("fieldset",UX,[v("legend",jX,U(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),v("div",HX,[q(g,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(N(),V("div",VX,[v("span",null,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.production.input_file),1)])):He("",!0),e.uploadProgress("singletrack")!=null?(N(),V("div",WX,[v("div",zX,[v("div",qX,[v("div",{class:"h-2 rounded-full bg-indigo-600",style:Wo({width:e.uploadProgress("singletrack")+"%"})},null,4)]),v("div",KX,[v("div",null,U(e.uploadProgress("singletrack"))+"%",1)])])])):He("",!0)])])])):He("",!0)])]),v("div",GX,[v("div",XX,[q(S),v("div",JX,[v("a",{href:(O=e.production)==null?void 0:O.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(C,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,YX),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"])])])])])}const QX=Be(bG,[["render",ZX]]),eJ=ve({components:{Listbox:Wg,ListboxButton:qg,ListboxLabel:zg,ListboxOption:Gg,ListboxOptions:Kg,CheckIcon:Yd,SelectorIcon:Zd},setup(){return{state:yt({productions:K.auphonic.productions,production:K.auphonic.production}),dispatch:it().dispatch}},methods:{setProduction(e){this.dispatch(ps(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}}}),tJ={class:"mt-1 relative"},nJ={class:"w-full inline-flex truncate"},rJ={key:0,class:"truncate"},oJ={key:1,class:"truncate"},iJ={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},sJ={class:"flex justify-between"},lJ={class:St(["font-normal","truncate"])};function aJ(e,t,n,r,o,s){const l=J("ListboxLabel"),a=J("SelectorIcon"),c=J("ListboxButton"),d=J("ListboxOption"),p=J("ListboxOptions"),h=J("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}),v("div",tJ,[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(()=>[v("span",nJ,[e.currentProduction?(N(),V("span",rJ,U(e.currentProduction.metadata.title),1)):(N(),V("span",oJ," "))]),v("span",iJ,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q($i,{"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,Dt(e.productions,g=>(N(),bt(d,{as:"template",key:g._select.date,value:g},{default:ye(({active:y})=>[v("li",{class:St([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[v("div",sJ,[v("span",lJ,[v("span",{class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(g._select.date),3),Xe(" "+U(g._select.name),1)]),v("span",{class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},U(g.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const uJ=Be(eJ,[["render",aJ]]),cJ=ve({components:{Listbox:Wg,ListboxButton:qg,ListboxLabel:zg,ListboxOption:Gg,ListboxOptions:Kg,CheckIcon:Yd,SelectorIcon:Zd},setup(){return{state:yt({presets:K.auphonic.presets,currentPreset:K.auphonic.preset}),dispatch:it().dispatch}},methods:{setPreset(e){this.dispatch(Sg(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)}}}),dJ={class:"mt-1 relative"},fJ={class:"w-full inline-flex truncate"},pJ={key:0,class:"truncate"},hJ={key:1,class:"truncate"},mJ={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},gJ={class:"flex"},vJ={class:St(["font-normal","truncate"])};function yJ(e,t,n,r,o,s){const l=J("ListboxLabel"),a=J("SelectorIcon"),c=J("ListboxButton"),d=J("ListboxOption"),p=J("ListboxOptions"),h=J("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}),v("div",dJ,[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(()=>[v("span",fJ,[e.currentPreset?(N(),V("span",pJ,U(e.currentPreset._select.name),1)):(N(),V("span",hJ," "))]),v("span",mJ,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q($i,{"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,Dt(e.presets,g=>(N(),bt(d,{as:"template",key:g._select.date,value:g},{default:ye(({active:y})=>[v("li",{class:St([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[v("div",gJ,[v("span",vJ,U(g._select.name),1),g._select.is_multitrack?(N(),V("span",{key:0,class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):He("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const bJ=Be(cJ,[["render",yJ]]),_J=ve({components:{Module:Mn,PodloveButton:zn,PlusSmIcon:Ng,RefreshIcon:Nx,SelectProduction:uJ,SelectPreset:bJ,AuphonicLogo:iv},data(){return{}},setup(){return{state:yt({presetUUID:K.auphonic.preset,presets:K.auphonic.presets,isInitializing:K.auphonic.isInitializing}),dispatch:it().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(oD())},createMultitrackProduction(){this.dispatch(iD())}},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"}}}),wJ={class:"m-6 text-center max-w-5xl"},SJ={key:0,class:"w-full flex justify-center"},EJ={class:"animate-pulse mt-4 flex space-x-4"},xJ={class:"mt-1 text-sm text-gray-500"},$J={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"},CJ={class:"flow-root sm:px-6"},TJ={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"},AJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},PJ={class:"w-full max-w-md"},IJ={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},kJ={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"},LJ={class:"text-sm font-medium text-gray-900"},NJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},MJ={class:"w-full max-w-md"};function DJ(e,t,n,r,o,s){const l=J("AuphonicLogo"),a=J("RefreshIcon"),c=J("SelectPreset"),d=J("plus-sm-icon"),p=J("podlove-button"),h=J("SelectProduction");return N(),V("div",null,[v("div",wJ,[q(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(N(),V("div",SJ,[v("div",EJ,[q(a,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):He("",!0),v("div",{class:St({"text-left":!0,"opacity-0":e.isInitializing})},[v("p",xJ,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),v("div",$J,[v("div",CJ,[v("div",TJ,[v("div",null,[v("h3",OJ,U(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),v("div",AJ,[v("div",PJ,[q(c)])]),v("div",IJ,[q(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:ye(()=>[q(d,{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"])])]),v("div",kJ,[v("div",RJ,[v("div",null,[v("h3",LJ,U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),v("div",NJ,[v("div",MJ,[q(h)])])])])],2)])])}const FJ=Be(_J,[["render",DJ]]),BJ=ve({components:{Module:Mn,ManageProductionForm:QX,StartScreen:FJ,AuphonicLogo:iv},setup(){return{state:yt({productionId:K.auphonic.productionId,isInitializing:K.auphonic.isInitializing}),dispatch:it().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(tD())}}),UJ={key:0},jJ={key:1,class:"m-7"};function HJ(e,t,n,r,o,s){const l=J("StartScreen"),a=J("ManageProductionForm"),c=J("module");return N(),bt(c,{name:"auphonic",title:"Auphonic"},{default:ye(()=>[e.isProductionSelected?He("",!0):(N(),V("div",UJ,[q(l)])),e.productionId?(N(),V("div",jJ,[q(a)])):He("",!0)]),_:1})}const VJ=Be(BJ,[["render",HJ]]),WJ=ve({components:{ArrowUpIcon:iU,ArrowDownIcon:Lx,XIcon:Ua,UserCircleIcon:Vx,PencilIcon:Hx},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:K.contributors.roles,groups:K.contributors.groups,baseUrl:K.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(v7(this.data))},moveContributionDown(){this.dispatch(y7(this.data))},deleteContribution(){this.dispatch(b7(this.data))},updateRole(e){const t=X.get(e,["target","value"]);this.dispatch(Ip({...this.data,role_id:t}))},updateGroup(e){const t=X.get(e,["target","value"]);console.log(t),this.dispatch(Ip({...this.data,group_id:t}))},updateComment(e){const t=X.get(e,["target","value"]);this.dispatch(Ip({...this.data,comment:t}))}}}),zJ={class:"block hover:bg-gray-50"},qJ={class:"flex items-center px-4 py-4 sm:px-6"},KJ={class:"flex min-w-0 flex-1 items-center"},GJ={class:"flex-shrink-0"},XJ=["src","alt"],JJ={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},YJ={class:"flex-shrink-0"},ZJ={class:"truncate text-sm font-medium text-gray-900"},QJ={class:"flex items-center text-sm text-gray-500"},eY={class:"truncate"},tY={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},nY={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},rY=["value","selected"],oY={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},iY={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},sY=["value","selected"],lY={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},aY={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},uY={class:"mt-2"},cY=["value","placeholder"],dY={class:"flex space-x-2 justify-end mt-[30px]"},fY=["disabled"],pY=["disabled"],hY=["href"];function mY(e,t,n,r,o,s){const l=J("UserCircleIcon"),a=J("arrow-up-icon"),c=J("arrow-down-icon"),d=J("pencil-icon"),p=J("x-icon");return N(),V("div",zJ,[v("div",qJ,[v("div",KJ,[v("div",GJ,[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,XJ)):He("",!0),e.data.avatar_url?He("",!0):(N(),bt(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),v("div",JJ,[v("div",YJ,[v("p",ZJ,U(e.data.realname),1),v("p",QJ,[v("span",eY,U(e.data.nickname),1)])])]),v("div",tY,[v("div",null,[v("label",nY,U(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),v("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,Dt(e.state.roles,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.role_id},U(h.title),9,rY))),256))],32)])]),v("div",oY,[v("div",null,[v("label",iY,U(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),v("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,Dt(e.state.groups,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.group_id},U(h.title),9,sY))),256))],32)])]),v("div",lY,[v("div",null,[v("label",aY,U(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),v("div",uY,[v("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,cY)])])]),v("div",dY,[v("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:St({"text-indigo-600":!e.first,"text-gray-500":e.first})},[q(a,{class:"w-5 h-5"})],10,fY),v("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:St({"text-indigo-600":!e.last,"text-gray-500":e.last})},[q(c,{class:"w-5 h-5"})],10,pY),v("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[q(d,{class:"w-5 h-5"})],8,hY),v("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[q(p,{class:"w-5 h-5"})])])])])])}const gY=Be(WJ,[["render",mY]]);var nr="top",Hr="bottom",Vr="right",rr="left",sv="auto",Ka=[nr,Hr,Vr,rr],rl="start",Ea="end",vY="clippingParents",K$="viewport",Fl="popper",yY="reference",X_=Ka.reduce(function(e,t){return e.concat([t+"-"+rl,t+"-"+Ea])},[]),G$=[].concat(Ka,[sv]).reduce(function(e,t){return e.concat([t,t+"-"+rl,t+"-"+Ea])},[]),bY="beforeRead",_Y="read",wY="afterRead",SY="beforeMain",EY="main",xY="afterMain",$Y="beforeWrite",CY="write",TY="afterWrite",OY=[bY,_Y,wY,SY,EY,xY,$Y,CY,TY];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 ol(e){var t=ao(e).Element;return e instanceof t||e instanceof Element}function Br(e){var t=ao(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function lv(e){if(typeof ShadowRoot>"u")return!1;var t=ao(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function AY(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];!Br(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 PY(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,d){return c[d]="",c},{});!Br(o)||!So(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const IY={name:"applyStyles",enabled:!0,phase:"write",fn:AY,effect:PY,requires:["computeStyles"]};function bo(e){return e.split("-")[0]}var os=Math.max,Jc=Math.min,il=Math.round;function sl(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Br(e)&&t){var s=e.offsetHeight,l=e.offsetWidth;l>0&&(r=il(n.width)/l||1),s>0&&(o=il(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 av(e){var t=sl(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 X$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&lv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ko(e){return ao(e).getComputedStyle(e)}function kY(e){return["table","td","th"].indexOf(So(e))>=0}function Oi(e){return((ol(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qd(e){return So(e)==="html"?e:e.assignedSlot||e.parentNode||(lv(e)?e.host:null)||Oi(e)}function J_(e){return!Br(e)||Ko(e).position==="fixed"?null:e.offsetParent}function RY(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Br(e)){var r=Ko(e);if(r.position==="fixed")return null}var o=Qd(e);for(lv(o)&&(o=o.host);Br(o)&&["html","body"].indexOf(So(o))<0;){var s=Ko(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 Ga(e){for(var t=ao(e),n=J_(e);n&&kY(n)&&Ko(n).position==="static";)n=J_(n);return n&&(So(n)==="html"||So(n)==="body"&&Ko(n).position==="static")?t:n||RY(e)||t}function uv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function na(e,t,n){return os(e,Jc(t,n))}function LY(e,t,n){var r=na(e,t,n);return r>n?n:r}function J$(){return{top:0,right:0,bottom:0,left:0}}function Y$(e){return Object.assign({},J$(),e)}function Z$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var NY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Y$(typeof t!="number"?t:Z$(t,Ka))};function MY(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=uv(a),d=[rr,Vr].indexOf(a)>=0,p=d?"height":"width";if(!(!s||!l)){var h=NY(o.padding,n),g=av(s),y=c==="y"?nr:rr,_=c==="y"?Hr:Vr,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],C=l[c]-n.rects.reference[c],T=Ga(s),w=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,E=S/2-C/2,O=h[y],x=w-g[p]-h[_],I=w/2-g[p]/2+E,k=na(O,I,x),P=c;n.modifiersData[r]=(t={},t[P]=k,t.centerOffset=k-I,t)}}function DY(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)||X$(t.elements.popper,o)&&(t.elements.arrow=o))}const FY={name:"arrow",enabled:!0,phase:"main",fn:MY,effect:DY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ll(e){return e.split("-")[1]}var BY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function UY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:il(t*o)/o||0,y:il(n*o)/o||0}}function Y_(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,g=l.x,y=g===void 0?0:g,_=l.y,S=_===void 0?0:_,C=typeof p=="function"?p({x:y,y:S}):{x:y,y:S};y=C.x,S=C.y;var T=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),E=rr,O=nr,x=window;if(d){var I=Ga(n),k="clientHeight",P="clientWidth";if(I===ao(n)&&(I=Oi(n),Ko(I).position!=="static"&&a==="absolute"&&(k="scrollHeight",P="scrollWidth")),I=I,o===nr||(o===rr||o===Vr)&&s===Ea){O=Hr;var H=h&&I===x&&x.visualViewport?x.visualViewport.height:I[k];S-=H-r.height,S*=c?1:-1}if(o===rr||(o===nr||o===Hr)&&s===Ea){E=Vr;var D=h&&I===x&&x.visualViewport?x.visualViewport.width:I[P];y-=D-r.width,y*=c?1:-1}}var F=Object.assign({position:a},d&&BY),z=p===!0?UY({x:y,y:S}):{x:y,y:S};if(y=z.x,S=z.y,c){var G;return Object.assign({},F,(G={},G[O]=w?"0":"",G[E]=T?"0":"",G.transform=(x.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",G))}return Object.assign({},F,(t={},t[O]=w?S+"px":"",t[E]=T?y+"px":"",t.transform="",t))}function jY(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,d={placement:bo(t.placement),variation:ll(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,Y_(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Y_(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const HY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jY,data:{}};var rc={passive:!0};function VY(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),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",n.update,rc)}),a&&c.addEventListener("resize",n.update,rc),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",n.update,rc)}),a&&c.removeEventListener("resize",n.update,rc)}}const WY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:VY,data:{}};var zY={left:"right",right:"left",bottom:"top",top:"bottom"};function gc(e){return e.replace(/left|right|bottom|top/g,function(t){return zY[t]})}var qY={start:"end",end:"start"};function Z_(e){return e.replace(/start|end/g,function(t){return qY[t]})}function cv(e){var t=ao(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function dv(e){return sl(Oi(e)).left+cv(e).scrollLeft}function KY(e){var t=ao(e),n=Oi(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+dv(e),y:a}}function GY(e){var t,n=Oi(e),r=cv(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=os(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=os(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+dv(e),c=-r.scrollTop;return Ko(o||n).direction==="rtl"&&(a+=os(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function fv(e){var t=Ko(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Q$(e){return["html","body","#document"].indexOf(So(e))>=0?e.ownerDocument.body:Br(e)&&fv(e)?e:Q$(Qd(e))}function ra(e,t){var n;t===void 0&&(t=[]);var r=Q$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=ao(r),l=o?[s].concat(s.visualViewport||[],fv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ra(Qd(l)))}function qh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function XY(e){var t=sl(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 Q_(e,t){return t===K$?qh(KY(e)):ol(t)?XY(t):qh(GY(Oi(e)))}function JY(e){var t=ra(Qd(e)),n=["absolute","fixed"].indexOf(Ko(e).position)>=0,r=n&&Br(e)?Ga(e):e;return ol(r)?t.filter(function(o){return ol(o)&&X$(o,r)&&So(o)!=="body"}):[]}function YY(e,t,n){var r=t==="clippingParents"?JY(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var d=Q_(e,c);return a.top=os(d.top,a.top),a.right=Jc(d.right,a.right),a.bottom=Jc(d.bottom,a.bottom),a.left=os(d.left,a.left),a},Q_(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 eC(e){var t=e.reference,n=e.element,r=e.placement,o=r?bo(r):null,s=r?ll(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case nr:c={x:l,y:t.y-n.height};break;case Hr:c={x:l,y:t.y+t.height};break;case Vr:c={x:t.x+t.width,y:a};break;case rr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?uv(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case rl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Ea:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function xa(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?vY:s,a=n.rootBoundary,c=a===void 0?K$:a,d=n.elementContext,p=d===void 0?Fl:d,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,S=Y$(typeof _!="number"?_:Z$(_,Ka)),C=p===Fl?yY:Fl,T=e.rects.popper,w=e.elements[g?C:p],E=YY(ol(w)?w:w.contextElement||Oi(e.elements.popper),l,c),O=sl(e.elements.reference),x=eC({reference:O,element:T,strategy:"absolute",placement:o}),I=qh(Object.assign({},T,x)),k=p===Fl?I:O,P={top:E.top-k.top+S.top,bottom:k.bottom-E.bottom+S.bottom,left:E.left-k.left+S.left,right:k.right-E.right+S.right},H=e.modifiersData.offset;if(p===Fl&&H){var D=H[o];Object.keys(P).forEach(function(F){var z=[Vr,Hr].indexOf(F)>=0?1:-1,G=[nr,Hr].indexOf(F)>=0?"y":"x";P[F]+=D[G]*z})}return P}function ZY(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,d=c===void 0?G$:c,p=ll(r),h=p?a?X_:X_.filter(function(_){return ll(_)===p}):Ka,g=h.filter(function(_){return d.indexOf(_)>=0});g.length===0&&(g=h);var y=g.reduce(function(_,S){return _[S]=xa(e,{placement:S,boundary:o,rootBoundary:s,padding:l})[bo(S)],_},{});return Object.keys(y).sort(function(_,S){return y[_]-y[S]})}function QY(e){if(bo(e)===sv)return[];var t=gc(e);return[Z_(e),t,Z_(t)]}function eZ(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,d=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,S=n.allowedAutoPlacements,C=t.options.placement,T=bo(C),w=T===C,E=c||(w||!_?[gc(C)]:QY(C)),O=[C].concat(E).reduce(function(ae,fe){return ae.concat(bo(fe)===sv?ZY(t,{placement:fe,boundary:p,rootBoundary:h,padding:d,flipVariations:_,allowedAutoPlacements:S}):fe)},[]),x=t.rects.reference,I=t.rects.popper,k=new Map,P=!0,H=O[0],D=0;D<O.length;D++){var F=O[D],z=bo(F),G=ll(F)===rl,te=[nr,Hr].indexOf(z)>=0,we=te?"width":"height",be=xa(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),Ae=te?G?Vr:rr:G?Hr:nr;x[we]>I[we]&&(Ae=gc(Ae));var Pe=gc(Ae),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Ae]<=0,be[Pe]<=0),Ye.every(function(ae){return ae})){H=F,P=!1;break}k.set(F,Ye)}if(P)for(var ft=_?3:1,Le=function(fe){var $e=O.find(function(Ve){var De=k.get(Ve);if(De)return De.slice(0,fe).every(function(tt){return tt})});if($e)return H=$e,"break"},Ge=ft;Ge>0;Ge--){var Q=Le(Ge);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const tZ={name:"flip",enabled:!0,phase:"main",fn:eZ,requiresIfExists:["offset"],data:{_skip:!1}};function e1(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 t1(e){return[nr,Vr,Hr,rr].some(function(t){return e[t]>=0})}function nZ(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=xa(t,{elementContext:"reference"}),a=xa(t,{altBoundary:!0}),c=e1(l,r),d=e1(a,o,s),p=t1(c),h=t1(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const rZ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nZ};function oZ(e,t,n){var r=bo(e),o=[rr,nr].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,[rr,Vr].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function iZ(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=G$.reduce(function(p,h){return p[h]=oZ(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const sZ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iZ};function lZ(e){var t=e.state,n=e.name;t.modifiersData[n]=eC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const aZ={name:"popperOffsets",enabled:!0,phase:"read",fn:lZ,data:{}};function uZ(e){return e==="x"?"y":"x"}function cZ(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,d=n.rootBoundary,p=n.altBoundary,h=n.padding,g=n.tether,y=g===void 0?!0:g,_=n.tetherOffset,S=_===void 0?0:_,C=xa(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),T=bo(t.placement),w=ll(t.placement),E=!w,O=uv(T),x=uZ(O),I=t.modifiersData.popperOffsets,k=t.rects.reference,P=t.rects.popper,H=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,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(I){if(s){var G,te=O==="y"?nr:rr,we=O==="y"?Hr:Vr,be=O==="y"?"height":"width",Ae=I[O],Pe=Ae+C[te],Ye=Ae-C[we],ft=y?-P[be]/2:0,Le=w===rl?k[be]:P[be],Ge=w===rl?-P[be]:-k[be],Q=t.elements.arrow,ae=y&&Q?av(Q):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:J$(),$e=fe[te],Ve=fe[we],De=na(0,k[be],ae[be]),tt=E?k[be]/2-ft-De-$e-D.mainAxis:Le-De-$e-D.mainAxis,gn=E?-k[be]/2+ft+De+Ve+D.mainAxis:Ge+De+Ve+D.mainAxis,ln=t.elements.arrow&&Ga(t.elements.arrow),L=ln?O==="y"?ln.clientTop||0:ln.clientLeft||0:0,B=(G=F==null?void 0:F[O])!=null?G:0,Z=Ae+tt-B-L,le=Ae+gn-B,ie=na(y?Jc(Pe,Z):Pe,Ae,y?os(Ye,le):Ye);I[O]=ie,z[O]=ie-Ae}if(a){var pe,Ce=O==="x"?nr:rr,me=O==="x"?Hr:Vr,ge=I[x],se=x==="y"?"height":"width",Re=ge+C[Ce],Ie=ge-C[me],Me=[nr,rr].indexOf(T)!==-1,je=(pe=F==null?void 0:F[x])!=null?pe:0,rt=Me?Re:ge-k[se]-P[se]-je+D.altAxis,mt=Me?ge+k[se]+P[se]-je-D.altAxis:Ie,ct=y&&Me?LY(rt,ge,mt):na(y?rt:Re,ge,y?mt:Ie);I[x]=ct,z[x]=ct-ge}t.modifiersData[r]=z}}const dZ={name:"preventOverflow",enabled:!0,phase:"main",fn:cZ,requiresIfExists:["offset"]};function fZ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pZ(e){return e===ao(e)||!Br(e)?cv(e):fZ(e)}function hZ(e){var t=e.getBoundingClientRect(),n=il(t.width)/e.offsetWidth||1,r=il(t.height)/e.offsetHeight||1;return n!==1||r!==1}function mZ(e,t,n){n===void 0&&(n=!1);var r=Br(t),o=Br(t)&&hZ(t),s=Oi(t),l=sl(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((So(t)!=="body"||fv(s))&&(a=pZ(t)),Br(t)?(c=sl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=dv(s))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function gZ(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 vZ(e){var t=gZ(e);return OY.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function yZ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function bZ(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 n1={placement:"bottom",modifiers:[],strategy:"absolute"};function r1(){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 _Z(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?n1:o;return function(a,c,d){d===void 0&&(d=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},n1,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(T){var w=typeof T=="function"?T(p.options):T;S(),p.options=Object.assign({},s,p.options,w),p.scrollParents={reference:ol(a)?ra(a):a.contextElement?ra(a.contextElement):[],popper:ra(c)};var E=vZ(bZ([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),_(),y.update()},forceUpdate:function(){if(!g){var T=p.elements,w=T.reference,E=T.popper;if(r1(w,E)){p.rects={reference:mZ(w,Ga(E),p.options.strategy==="fixed"),popper:av(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 O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var x=p.orderedModifiers[O],I=x.fn,k=x.options,P=k===void 0?{}:k,H=x.name;typeof I=="function"&&(p=I({state:p,options:P,name:H,instance:y})||p)}}}},update:yZ(function(){return new Promise(function(C){y.forceUpdate(),C(p)})}),destroy:function(){S(),g=!0}};if(!r1(a,c))return y;y.setOptions(d).then(function(C){!g&&d.onFirstUpdate&&d.onFirstUpdate(C)});function _(){p.orderedModifiers.forEach(function(C){var T=C.name,w=C.options,E=w===void 0?{}:w,O=C.effect;if(typeof O=="function"){var x=O({state:p,name:T,instance:y,options:E}),I=function(){};h.push(x||I)}})}function S(){h.forEach(function(C){return C()}),h=[]}return y}}var wZ=[WY,aZ,HY,IY,sZ,tZ,dZ,FY,rZ],SZ=_Z({defaultModifiers:wZ});function EZ(e){let t=_e(null),n=_e(null);return vt(()=>{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}=SZ(s,o,e);r(l)})}),[t,n]}const xZ=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:K.contributors.contributors,episodeContributions:K.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:lU,XIcon:Ua,ChevronDownIcon:Dx,Combobox:r$,ComboboxButton:o$,ComboboxInput:i$,ComboboxLabel:YU,ComboboxOption:l$,ComboboxOptions:s$,UserCircleIcon:Vx,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=X.get(e,["target","value"],"")},close(){this.$emit("close")}}}),$Z={class:"block hover:bg-gray-50"},CZ={class:"flex items-center px-4 py-4 sm:px-6"},TZ={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"},AZ={class:"relative mt-2 max-w-sm"},PZ={ref:"container"},IZ={class:"flex items-center"},kZ=["src","onError"],RZ={class:"flex space-x-2 justify-end"};function LZ(e,t,n,r,o,s){const l=J("ComboboxLabel"),a=J("ComboboxInput"),c=J("ChevronDownIcon"),d=J("ComboboxButton"),p=J("UserCircleIcon"),h=J("CheckIcon"),g=J("ComboboxOption"),y=J("ComboboxOptions"),_=J("Combobox"),S=J("x-icon");return N(),V("div",$Z,[v("div",CZ,[v("div",TZ,[v("div",OZ,[q(_,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=C=>e.data=C)},{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}),v("div",AZ,[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]=C=>e.filterContributors(C)),displayValue:()=>e.query},null,8,["displayValue"]),q(d,{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})]),v("div",PZ,[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,Dt(e.filteredContributors,C=>(N(),bt(g,{key:C.id||"create",value:C,as:"template"},{default:ye(({active:T,selected:w})=>[v("li",{class:St(["relative cursor-default select-none py-2 pl-3 pr-9",T?"bg-indigo-600 text-white":"text-gray-900"])},[v("div",IZ,[C.avatar_url?(N(),V("img",{key:0,src:C.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>C.avatar_url=""},null,40,kZ)):He("",!0),C.avatar_url?He("",!0):(N(),bt(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),v("span",{class:St(["ml-3 truncate",w&&"font-semibold"])},U(C.realname),3)]),w?(N(),V("span",{key:0,class:St(["absolute inset-y-0 right-0 flex items-center pr-4",T?"text-white":"text-indigo-600"])},[q(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):He("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):He("",!0)],512)]),_:1},8,["modelValue"])])]),v("div",RZ,[v("button",{class:"text-red-600",onClick:t[2]||(t[2]=C=>e.close())},[q(S,{class:"w-5 h-5"})])])])])}const NZ=Be(xZ,[["render",LZ]]),MZ=ve({components:{Module:Mn,PodloveButton:zn,PlusSmIcon:Ng,Contribution:gY,AddContribution:NZ},data(){return{addContributorInput:!1}},setup(){return{dispatch:it().dispatch,state:yt({contributions:K.episode.contributions,roles:K.contributors.roles,groups:K.contributors.groups})}},created(){this.dispatch(i2())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(qE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(_7(e))},closeAddContributor(){this.addContributorInput=!1}}}),DZ={role:"list",class:"divide-y divide-gray-200"},FZ={key:0,class:"mb-0"},BZ={class:"py-5 px-6 border-t border-gray-200"};function UZ(e,t,n,r,o,s){const l=J("Contribution"),a=J("AddContribution"),c=J("plus-sm-icon"),d=J("podlove-button"),p=J("module");return N(),bt(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:ye(()=>[]),default:ye(()=>[v("ul",DZ,[(N(!0),V(Fe,null,Dt(e.state.contributions,(h,g)=>(N(),V("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(N(),bt(l,{key:0,data:h,first:g===0,last:g===e.state.contributions.length-1},null,8,["data","first","last"])):He("",!0)]))),128)),e.addContributorInput?(N(),V("li",FZ,[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())})])):He("",!0)]),v("div",BZ,[q(d,{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"])}const jZ=Be(MZ,[["render",UZ]]),HZ=ve({setup(){return{state:yt({slug:K.episode.slug,baseUri:K.settings.mediaFileBaseUri}),dispatch:it().dispatch}},methods:{updateSlug(e){this.dispatch(wt({prop:"slug",value:e.target.value})),this.dispatch(j2())}},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}}}),VZ={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"},zZ={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"},qZ={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},KZ=["value"],GZ=v("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1);function XZ(e,t,n,r,o,s){return N(),V(Fe,null,[v("label",VZ,U(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),v("div",WZ,[v("div",zZ,[v("span",qZ,U(e.assetPrefix),1),v("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,KZ),GZ])])],64)}const JZ=Be(HZ,[["render",XZ]]),YZ=ve({components:{PodloveButton:zn,UploadIcon:Fx},setup(){return{state:yt({}),dispatch:it().dispatch}},methods:{uploadIntent(){this.dispatch(AD())}},computed:{}}),ZZ={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},QZ={class:"mt-2 sm:col-span-2 sm:mt-0"};function eQ(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button");return N(),V(Fe,null,[v("label",ZZ,U(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),v("div",QZ,[v("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)}const tQ=Be(YZ,[["render",eQ]]),nQ={},rQ={class:"text-center"},oQ=v("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[v("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),iQ={class:"mt-2 text-sm font-semibold text-gray-900"},sQ={class:"mt-1 text-sm text-gray-500"};function lQ(e,t){return N(),V("div",rQ,[oQ,v("h3",iQ,U(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),v("p",sQ,U(e.__("Please go to Podlove → Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}const aQ=Be(nQ,[["render",lQ]]),uQ=ve({components:{CheckCircleIcon:uK,XCircleIcon:q$,CloudIcon:Bx,AssetsEmptyState:aQ},setup(){return{state:yt({files:K.mediafiles.files,duration:K.episode.duration}),dispatch:it().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(CD(r)):this.dispatch(TD(r))},handleVerify(e){this.dispatch(OD(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=Mt.fromString(this.state.duration);return t.totalMs===0?e:t.pretty}}}),cQ={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},dQ={class:"mt-2 sm:col-span-2 sm:mt-0"},fQ={key:0},pQ={class:"min-w-full table-fixed divide-y divide-gray-300"},hQ={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},mQ={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},gQ={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},vQ=v("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),yQ={class:"divide-y divide-gray-200 bg-white"},bQ={class:"relative px-7 sm:w-12 sm:px-6"},_Q={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},wQ=["value","checked"],SQ={class:"text-sm"},EQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},xQ={class:"flex flex-col"},$Q=["href"],CQ={class:"flex"},TQ={key:3},OQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},AQ=["onClick"],PQ={class:"mt-3 text-sm leading-6 text-gray-600"};function IQ(e,t,n,r,o,s){const l=J("CloudIcon"),a=J("CheckCircleIcon"),c=J("XCircleIcon"),d=J("AssetsEmptyState");return N(),V(Fe,null,[v("label",cQ,U(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),v("div",dQ,[e.hasFiles?(N(),V("div",fQ,[v("table",pQ,[v("thead",null,[v("tr",null,[v("th",hQ,U(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),v("th",mQ,U(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),v("th",gQ,U(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),vQ])]),v("tbody",yQ,[(N(!0),V(Fe,null,Dt(e.files,p=>(N(),V("tr",{key:p.asset_id,class:St({"opacity-50":!p.enable})},[v("td",bQ,[p.is_verifying?(N(),V("div",_Q,[q(l,{class:"h-5 w-5","aria-hidden":"true"})])):He("",!0),v("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,wQ)]),v("td",SQ,U(p.asset),1),v("td",EQ,[v("div",xQ,[v("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},U(p.url),9,$Q),v("span",CQ,[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:St(["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",TQ,U(e.fileSize(p)),1)):(N(),V("span",{key:2,class:St({"text-gray-400":!p.enable,"text-red-400":p.enable})},U(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),v("td",OQ,[v("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,AQ)])],2))),128))])]),v("p",PQ,U(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.duration),1)])):(N(),bt(d,{key:1}))])],64)}const kQ=Be(uQ,[["render",IQ]]),RQ=ve({components:{Module:Mn,RefreshIcon:Nx,MediaSlug:JZ,MediaUpload:tQ,AssetsTable:kQ},setup(){return{state:yt({isInitializing:K.mediafiles.isInitializing,modules:K.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(ED())}}),LQ={key:0,class:"w-full flex justify-center m-12 text-center"},NQ={class:"animate-pulse mt-4 flex space-x-4"},MQ={key:1},DQ={class:"px-6"},FQ={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"},BQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},UQ={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},jQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function HQ(e,t,n,r,o,s){const l=J("RefreshIcon"),a=J("MediaSlug"),c=J("MediaUpload"),d=J("AssetsTable"),p=J("module");return N(),bt(p,{name:"mediafiles",title:"Media Files"},{default:ye(()=>[v("div",null,[e.isInitializing?(N(),V("div",LQ,[v("div",NQ,[q(l,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(N(),V("div",MQ,[v("div",DQ,[v("div",FQ,[v("div",BQ,[q(a)]),e.isMediaUploadEnabled?(N(),V("div",UQ,[q(c)])):He("",!0),v("div",jQ,[q(d)])])])]))])]),_:1})}const VQ=Be(RQ,[["render",HQ]]),WQ=ve({name:"PodloveCombobox",components:{Combobox:r$,ComboboxButton:o$,ComboboxInput:i$,ComboboxOption:l$,ComboboxOptions:s$,CheckIcon:Yd,SelectorIcon:Zd},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=""}}}),zQ={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},qQ={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},KQ={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},GQ={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},XQ={key:0,class:"text-xs text-red-400 mt-1"};function JQ(e,t,n,r,o,s){const l=J("ComboboxInput"),a=J("SelectorIcon"),c=J("ComboboxButton"),d=J("CheckIcon"),p=J("ComboboxOption"),h=J("ComboboxOptions"),g=J("Combobox",!0);return N(),bt(g,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:ye(()=>[v("div",zQ,[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"]),v("div",qQ,U(e.label),1),q(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),q($i,{"leave-active-class":`
    149149          transition
    150150          duration-100
     
    154154        `,"leave-to-class":`
    155155          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",AQ," Nothing found. ")):Ke("",!0),(N(!0),V(Fe,null,Mt(e.filterOptions,_=>(N(),bt(p,{key:_.title,value:_.id,as:"template"},{default:ye(({active:S,selected:C})=>[v("li",{class:St([S?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[v("span",{class:St([C?"font-medium":"font-normal","block truncate"])},U(_.title),3),C?(N(),V("span",IQ,[q(d,{"aria-hidden":"true",class:"w-5 h-5"})])):Ke("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(N(),V("div",PQ,U(e.error),1)):Ke("",!0)])]),_:1},8,["model-value","multiple"])}const RQ=Be(CQ,[["render",kQ]]),LQ=ge({name:"PodloveTag",components:{XCircleIcon:V$},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),NQ={class:"m-1 inline-flex"},MQ={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function DQ(e,t,n,r,o,s){const l=J("XCircleIcon");return N(),V("div",NQ,[v("span",MQ,[Xe(U(e.value)+" ",1),v("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[q(l,{class:"w-5 h-5"})])])])}const FQ=Be(LQ,[["render",DQ]]),BQ=ge({components:{Module:Nn,PodloveListbox:RQ,Tag:FQ},setup(){return{state:yt({episodeList:K.relatedEpisodes.episodeList,selectEpisodes:K.relatedEpisodes.selectEpisode}),dispatch:it().dispatch}},created(){this.dispatch(CD())},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(j2(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),UQ={class:"p-3"},jQ={class:"mt-2 text-sm text-gray-500"},HQ={class:"pl-3 pb-3"};function VQ(e,t,n,r,o,s){const l=J("PodloveListbox"),a=J("Tag"),c=J("module");return N(),bt(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[v("div",UQ,[v("div",null,[q(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=d=>e.updateRelEpisodes(d)),multiple:""},null,8,["options","selectValues"])]),v("p",jQ,U(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",HQ,[(N(!0),V(Fe,null,Mt(e.selectEpisodeNames,d=>(N(),bt(a,{value:d.title,id:Number(d.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}const WQ=Be(BQ,[["render",VQ]]),zQ=ge({components:{PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{clearSoundbite(){this.dispatch(wt({prop:"soundbite_start",value:null})),this.dispatch(wt({prop:"soundbite_duration",value:null})),this.dispatch(wt({prop:"soundbite_title",value:null}))}}});function qQ(e,t,n,r,o,s){const l=J("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})}const KQ=Be(zQ,[["render",qQ]]),GQ=ge({setup(){return{state:yt({soundbite_start:K.episode.soundbite_start,soundbite_duration:K.episode.soundbite_duration,soundbite_title:K.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(wt({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(wt({prop:"soundbite_duration",value:new Nt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Nt.fromString(t).totalMs;this.dispatch(wt({prop:"soundbite_duration",value:new Nt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch(wt({prop:"soundbite_title",value:e.target.value}))}}}),XQ={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},JQ={class:"mb-5 ml-5"},YQ={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},ZQ={class:"mt-1"},QQ=["value"],eee={class:"mb-5 ml-5"},tee={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},nee={class:"mt-1"},ree=["value"],oee={class:"mb-5 ml-5"},iee={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},see={class:"mt-1"},lee=["value"],aee={class:"mb-5 ml-5 md:mr-5"},uee={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},cee={class:"text-xs"},dee={class:"mt-1"},fee=["value"];function pee(e,t,n,r,o,s){return N(),V("div",XQ,[v("div",JQ,[v("label",YQ,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),v("div",ZQ,[v("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,QQ)])]),v("div",eee,[v("label",tee,U(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),v("div",nee,[v("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,ree)])]),v("div",oee,[v("label",iee,U(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),v("div",see,[v("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,lee)])]),v("div",aee,[v("label",uee,[Xe(U(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",cee,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",dee,[v("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,fee)])])])}const hee=Be(GQ,[["render",pee]]),mee=ge({components:{Module:Nn,SoundbiteForm:hee,SoundbiteClear:KQ},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(kd())}});function gee(e,t,n,r,o,s){const l=J("soundbite-clear"),a=J("soundbite-form"),c=J("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"])}const vee=Be(mee,[["render",gee]]),yee=ge({components:{},setup(){return{state:yt({shows:K.shows.list,current:K.episode.currentShow}),dispatch:it().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch(wt({prop:"show",value:e??""}))}},created(){this.dispatch(H2())}}),bee={class:"flex items-center"},_ee=["checked"],wee={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},See={class:"flex items-center"},Eee=["id","value","onInput","checked"],xee=["for"];function $ee(e,t,n,r,o,s){return N(),V("div",null,[v("div",bee,[v("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,_ee),v("label",wee,U(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.shows,l=>(N(),V("div",See,[v("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,Eee),v("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},U(l.title),9,xee)]))),256))])}const Cee=Be(yee,[["render",$ee],["__scopeId","data-v-eaebb871"]]);var 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||{}),gr=(e=>(e.yes="Yes",e.no="No",e))(gr||{}),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 Vs=[{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"}],Tee=ge({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseName:K.episode.license_name,podcastLicenseName:K.podcast.license_name}),dispatch:it().dispatch}},created(){this.dispatch(kd())},computed:{getLicenseName(){return this.scope==cn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_name",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_name",value:e.target.value}))}}}),Oee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Aee={class:"mt-1"},Iee=["value"];function Pee(e,t,n,r,o,s){return N(),V("div",null,[v("label",Oee,U(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),v("div",Aee,[v("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,Iee)])])}const kee=Be(Tee,[["render",Pee]]),Ree=ge({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseUrl:K.episode.license_url,podcastLicenseUrl:K.podcast.license_url}),dispatch:it().dispatch}},created(){this.dispatch(kd())},computed:{getLicenseUrl(){return this.scope==cn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_url",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_url",value:e.target.value}))}}}),Lee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Nee={class:"mt-1"},Mee=["value"],Dee={class:"mt-2 text-sm text-gray-500"};function Fee(e,t,n,r,o,s){return N(),V("div",null,[v("label",Lee,U(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),v("div",Nee,[v("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,Mee)]),v("p",Dee,U(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}const Bee=Be(Ree,[["render",Fee]]),Uee="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=",jee="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",Hee="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",Vee="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",Wee="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",zee="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",qee="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",Kee="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function Hl(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===gr.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==gr.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 r1(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Lt.cc0)return Uee;if(e.version===Lt.pdmark)return jee;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case hn.no:return e.optionCommercial===gr.no?Hee:Vee;case hn.yes:return e.optionCommercial===gr.no?Wee:zee;case hn.yesbutshare:return e.optionCommercial===gr.no?qee:Kee}}function o1(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=gr.yes;r[0].includes("nc")&&(o=gr.no);let s=hn.yes;r[0].includes("sa")?s=hn.yesbutshare:r[0].includes("nd")&&(s=hn.no);let l=Vs[0];if(r.length>2){const a=Vs.findIndex(c=>c.symbol===r[2]);a>0&&(l=Vs[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:s,optionJurisdication:l}}const Gee=ge({components:{Module:Nn},props:{licenseData:{type:null,default:{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:yt({baseUrl:K.runtime.baseUrl}),dispatch:it().dispatch}},computed:{licenseUrl(){return Hl(this.licenseData)},imageUrl(){return r1(this.licenseData,this.state.baseUrl)},isImageAvailable(){return r1(this.licenseData,this.state.baseUrl)!==null}}}),Xee={class:"mt-3"},Jee=v("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),Yee={key:0},Zee={class:"mb-3 w-full"},Qee={class:"flex justify-center items-center"},ete=["src"],tte={class:"mb-3 w-full text-center"},nte=v("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),rte=["href"],ote={key:0},ite=v("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),ste=[ite];function lte(e,t,n,r,o,s){return N(),V("div",Xee,[Jee,e.isImageAvailable?(N(),V("div",Yee,[v("div",null,[v("div",Zee,[v("div",Qee,[v("img",{class:"text-center",src:`${e.imageUrl}`},null,8,ete)])]),v("div",tte,[nte,v("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},U(e.licenseUrl),9,rte)])]),e.isImageAvailable?Ke("",!0):(N(),V("div",ote,ste))])):Ke("",!0)])}const ate=Be(Gee,[["render",lte]]),ute=Object.entries(Lt).map(([e,t])=>({key:e,value:t})),cte=Object.entries(gr).map(([e,t])=>({key:e,value:t})),dte=Object.entries(hn).map(([e,t])=>({key:e,value:t})),fte=ge({components:{PodloveButton:Vn,Modal:Wa,LicensePreview:ate},data(){return{PodloveLicenseVersionList:ute,PodloveLicenseOptionCommercialList:cte,PodloveLicenseOptionModificationList:dte,PodloveLicenseOptionJurisdication:Vs}},setup(){return{state:yt({episodeLicenseUrl:K.episode.license_url,podcastLicenseUrl:K.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 gr.yes:t.optionCommercial=gr.yes;break;case gr.no:t.optionCommercial=gr.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=Vs.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=Vs[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_url",value:Hl(e)})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_url",value:Hl(e)}))},updateLicenseDataNameNUrl(e){this.scope===cn.Episode&&(this.dispatch(wt({prop:"license_name",value:e.version})),this.dispatch(wt({prop:"license_url",value:Hl(e)}))),this.scope===cn.Podcast&&(this.dispatch(ea({prop:"license_name",value:e.version})),this.dispatch(ea({prop:"license_url",value:Hl(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}:o1(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:o1(this.state.podcastLicenseUrl)}}}),pte={class:"border-gray-200 border-b pb-2 px-3 py-5"},hte={class:"text-lg leading-6 font-medium text-gray-900"},mte={class:"mb-3"},gte=v("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),vte=["value"],yte=["value"],bte={key:0,class:"mb-3"},_te=v("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),wte=["value"],Ste=["value"],Ete={key:1,class:"mb-3"},xte=v("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),$te=["value"],Cte=["value"],Tte={key:2,class:"mb-3"},Ote=v("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),Ate=["value"],Ite=["value"],Pte={class:"mb-5"};function kte(e,t,n,r,o,s){var a;const l=J("LicensePreview");return N(),V(Fe,null,[v("div",pte,[v("h3",hte,U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",null,[v("div",mte,[gte,v("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,d)=>(N(),V("option",{value:c.value,key:`version-${d}`},U(c.value),9,yte))),128))],40,vte)]),e.isCommercialNModificationNeeded?(N(),V("div",bte,[_te,v("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,d)=>(N(),V("option",{value:c.value,key:`modification-${d}`},U(c.value),9,Ste))),128))],40,wte)])):Ke("",!0),e.isCommercialNModificationNeeded?(N(),V("div",Ete,[xte,v("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,d)=>(N(),V("option",{value:c.value,key:`commercial-${d}`},U(c.value),9,Cte))),128))],40,$te)])):Ke("",!0),e.isJurisdicationNeeded?(N(),V("div",Tte,[Ote,v("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,d)=>(N(),V("option",{value:c.name,key:`jurisdiction-${d}`},U(c.name),9,Ite))),128))],40,Ate)])):Ke("",!0),v("div",Pte,[q(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}const Z$=Be(fte,[["render",kte]]),Rte=ge({components:{PodloveButton:Vn,Modal:Wa,LicenseSelector:Z$},props:{scope:{type:String,default:cn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function Lte(e,t,n,r,o,s){const l=J("podlove-button"),a=J("LicenseSelector"),c=J("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)}const Nte=Be(Rte,[["render",Lte]]),Mte=ge({components:{Module:Nn,LicenseName:kee,LicenseUrl:Bee,LicenseSelector:Z$,LicenseSelectorButton:Nte},props:{scope:{type:String,default:cn.Episode}},computed:{isScopeEpisode(){return this.scope===cn.Episode},getModuleTitle(){return this.scope===cn.Episode?"Episode License":"Podcast License"}}}),Dte={key:0},Fte={class:"p-3"},Bte={class:"mb-3"},Ute={class:"mb-3"},jte={key:0};function Hte(e,t,n,r,o,s){const l=J("LicenseSelectorButton"),a=J("LicenseName"),c=J("LicenseUrl"),d=J("LicenseSelector"),p=J("module");return N(),bt(p,{name:"license",title:e.getModuleTitle},{actions:ye(()=>[e.isScopeEpisode?(N(),V("div",Dte,[q(l,{scope:e.scope},null,8,["scope"])])):Ke("",!0)]),default:ye(()=>[v("div",Fte,[v("div",Bte,[q(a,{scope:e.scope},null,8,["scope"])]),v("div",Ute,[q(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?Ke("",!0):(N(),V("div",jte,[q(d,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}const Vte=Be(Mte,[["render",Hte]]),Wte={PodloveDescription:sV,PodloveChapters:Gz,PodloveTranscripts:Yq,PodloveAuphonic:$J,PodloveContributors:EZ,PodloveMediaFiles:$Q,PodloveRelatedEpisodes:WQ,PodloveSoundbite:vee,PodloveShowSelect:Cee,PodloveLicense:Vte};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=Kw({components:{...Wte}});g6({store:Hd,app:t}),t.use(hF),t.mount(e)})});globalThis.initPodloveUI=e=>{Hd.dispatch(GM(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",KQ," Nothing found. ")):He("",!0),(N(!0),V(Fe,null,Dt(e.filterOptions,_=>(N(),bt(p,{key:_.title,value:_.id,as:"template"},{default:ye(({active:S,selected:C})=>[v("li",{class:St([S?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[v("span",{class:St([C?"font-medium":"font-normal","block truncate"])},U(_.title),3),C?(N(),V("span",GQ,[q(d,{"aria-hidden":"true",class:"w-5 h-5"})])):He("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(N(),V("div",XQ,U(e.error),1)):He("",!0)])]),_:1},8,["model-value","multiple"])}const YQ=Be(WQ,[["render",JQ]]),ZQ=ve({name:"PodloveTag",components:{XCircleIcon:q$},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),QQ={class:"m-1 inline-flex"},eee={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function tee(e,t,n,r,o,s){const l=J("XCircleIcon");return N(),V("div",QQ,[v("span",eee,[Xe(U(e.value)+" ",1),v("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[q(l,{class:"w-5 h-5"})])])])}const nee=Be(ZQ,[["render",tee]]),ree=ve({components:{Module:Mn,PodloveListbox:YQ,Tag:nee},setup(){return{state:yt({episodeList:K.relatedEpisodes.episodeList,selectEpisodes:K.relatedEpisodes.selectEpisode}),dispatch:it().dispatch}},created(){this.dispatch(LD())},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(W2(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),oee={class:"p-3"},iee={class:"mt-2 text-sm text-gray-500"},see={class:"pl-3 pb-3"};function lee(e,t,n,r,o,s){const l=J("PodloveListbox"),a=J("Tag"),c=J("module");return N(),bt(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[v("div",oee,[v("div",null,[q(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=d=>e.updateRelEpisodes(d)),multiple:""},null,8,["options","selectValues"])]),v("p",iee,U(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",see,[(N(!0),V(Fe,null,Dt(e.selectEpisodeNames,d=>(N(),bt(a,{value:d.title,id:Number(d.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}const aee=Be(ree,[["render",lee]]),uee=ve({components:{PodloveButton:zn},setup(){return{dispatch:it().dispatch}},methods:{clearSoundbite(){this.dispatch(wt({prop:"soundbite_start",value:null})),this.dispatch(wt({prop:"soundbite_duration",value:null})),this.dispatch(wt({prop:"soundbite_title",value:null}))}}});function cee(e,t,n,r,o,s){const l=J("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})}const dee=Be(uee,[["render",cee]]),fee=ve({setup(){return{state:yt({soundbite_start:K.episode.soundbite_start,soundbite_duration:K.episode.soundbite_duration,soundbite_title:K.episode.soundbite_title}),dispatch:it().dispatch}},computed:{soundbite_end(){if(this.state.soundbite_start!=null&&this.state.soundbite_duration!=null){let e=Mt.fromString(this.state.soundbite_start).totalMs,t=Mt.fromString(this.state.soundbite_duration).totalMs,n=e+t;return new Mt(n).pretty}return""}},methods:{updateSoundbiteStart(e){const t=e.target.value;let n=Mt.fromString(t).totalMs;this.dispatch(wt({prop:"soundbite_start",value:new Mt(n).pretty}))},updateSoundbiteEnd(e){const t=e.target.value;let n=Mt.fromString(t).totalMs,r=Mt.fromString(this.state.soundbite_start).totalMs;if(r<n){let o=n-r;this.dispatch(wt({prop:"soundbite_duration",value:new Mt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Mt.fromString(t).totalMs;this.dispatch(wt({prop:"soundbite_duration",value:new Mt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch(wt({prop:"soundbite_title",value:e.target.value}))}}}),pee={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},hee={class:"mb-5 ml-5"},mee={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},gee={class:"mt-1"},vee=["value"],yee={class:"mb-5 ml-5"},bee={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},_ee={class:"mt-1"},wee=["value"],See={class:"mb-5 ml-5"},Eee={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},xee={class:"mt-1"},$ee=["value"],Cee={class:"mb-5 ml-5 md:mr-5"},Tee={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},Oee={class:"text-xs"},Aee={class:"mt-1"},Pee=["value"];function Iee(e,t,n,r,o,s){return N(),V("div",pee,[v("div",hee,[v("label",mee,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),v("div",gee,[v("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,vee)])]),v("div",yee,[v("label",bee,U(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),v("div",_ee,[v("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,wee)])]),v("div",See,[v("label",Eee,U(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),v("div",xee,[v("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,$ee)])]),v("div",Cee,[v("label",Tee,[Xe(U(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",Oee,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",Aee,[v("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,Pee)])])])}const kee=Be(fee,[["render",Iee]]),Ree=ve({components:{Module:Mn,SoundbiteForm:kee,SoundbiteClear:dee},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(kd())}});function Lee(e,t,n,r,o,s){const l=J("soundbite-clear"),a=J("soundbite-form"),c=J("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"])}const Nee=Be(Ree,[["render",Lee]]),Mee=ve({components:{},setup(){return{state:yt({shows:K.shows.list,current:K.episode.currentShow}),dispatch:it().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch(wt({prop:"show",value:e??""}))}},created(){this.dispatch(z2())}}),Dee={class:"flex items-center"},Fee=["checked"],Bee={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},Uee={class:"flex items-center"},jee=["id","value","onInput","checked"],Hee=["for"];function Vee(e,t,n,r,o,s){return N(),V("div",null,[v("div",Dee,[v("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,Fee),v("label",Bee,U(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Dt(e.shows,l=>(N(),V("div",Uee,[v("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,jee),v("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},U(l.title),9,Hee)]))),256))])}const Wee=Be(Mee,[["render",Vee],["__scopeId","data-v-eaebb871"]]);var Nt=(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))(Nt||{}),gr=(e=>(e.yes="Yes",e.no="No",e))(gr||{}),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 Vs=[{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"}],zee=ve({components:{Module:Mn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseName:K.episode.license_name,podcastLicenseName:K.podcast.license_name}),dispatch:it().dispatch}},created(){this.dispatch(kd())},computed:{getLicenseName(){return this.scope==cn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_name",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_name",value:e.target.value}))}}}),qee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Kee={class:"mt-1"},Gee=["value"];function Xee(e,t,n,r,o,s){return N(),V("div",null,[v("label",qee,U(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),v("div",Kee,[v("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,Gee)])])}const Jee=Be(zee,[["render",Xee]]),Yee=ve({components:{Module:Mn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseUrl:K.episode.license_url,podcastLicenseUrl:K.podcast.license_url}),dispatch:it().dispatch}},created(){this.dispatch(kd())},computed:{getLicenseUrl(){return this.scope==cn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_url",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_url",value:e.target.value}))}}}),Zee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Qee={class:"mt-1"},ete=["value"],tte={class:"mt-2 text-sm text-gray-500"};function nte(e,t,n,r,o,s){return N(),V("div",null,[v("label",Zee,U(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),v("div",Qee,[v("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,ete)]),v("p",tte,U(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}const rte=Be(Yee,[["render",nte]]),ote="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=",ite="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",ste="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",lte="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",ate="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",ute="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",cte="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",dte="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function Hl(e){if(e.type===null||e.type!="cc")return null;if(e.version===Nt.cc0)return"http://creativecommons.org/publicdomain/zero/1.0/";if(e.version===Nt.pdmark)return"http://creativecommons.org/publicdomain/mark/1.0/";if(e.version===Nt.cc3){let t="http://creativecommons.org/licenses/by";return e.optionCommercial===gr.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===Nt.cc4){let t="http://creativecommons.org/licenses/by";return e.optionCommercial==gr.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 o1(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Nt.cc0)return ote;if(e.version===Nt.pdmark)return ite;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case hn.no:return e.optionCommercial===gr.no?ste:lte;case hn.yes:return e.optionCommercial===gr.no?ate:ute;case hn.yesbutshare:return e.optionCommercial===gr.no?cte:dte}}function i1(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=Nt.cc0:t.indexOf("/publicdomain/mark/")>=0?n=Nt.pdmark:t.indexOf("/4.0")>=0?n=Nt.cc4:n=Nt.cc3;const r=t.split("/").slice(4);let o=gr.yes;r[0].includes("nc")&&(o=gr.no);let s=hn.yes;r[0].includes("sa")?s=hn.yesbutshare:r[0].includes("nd")&&(s=hn.no);let l=Vs[0];if(r.length>2){const a=Vs.findIndex(c=>c.symbol===r[2]);a>0&&(l=Vs[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:s,optionJurisdication:l}}const fte=ve({components:{Module:Mn},props:{licenseData:{type:null,default:{type:"cc",version:Nt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:yt({baseUrl:K.runtime.baseUrl}),dispatch:it().dispatch}},computed:{licenseUrl(){return Hl(this.licenseData)},imageUrl(){return o1(this.licenseData,this.state.baseUrl)},isImageAvailable(){return o1(this.licenseData,this.state.baseUrl)!==null}}}),pte={class:"mt-3"},hte=v("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),mte={key:0},gte={class:"mb-3 w-full"},vte={class:"flex justify-center items-center"},yte=["src"],bte={class:"mb-3 w-full text-center"},_te=v("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),wte=["href"],Ste={key:0},Ete=v("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),xte=[Ete];function $te(e,t,n,r,o,s){return N(),V("div",pte,[hte,e.isImageAvailable?(N(),V("div",mte,[v("div",null,[v("div",gte,[v("div",vte,[v("img",{class:"text-center",src:`${e.imageUrl}`},null,8,yte)])]),v("div",bte,[_te,v("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},U(e.licenseUrl),9,wte)])]),e.isImageAvailable?He("",!0):(N(),V("div",Ste,xte))])):He("",!0)])}const Cte=Be(fte,[["render",$te]]),Tte=Object.entries(Nt).map(([e,t])=>({key:e,value:t})),Ote=Object.entries(gr).map(([e,t])=>({key:e,value:t})),Ate=Object.entries(hn).map(([e,t])=>({key:e,value:t})),Pte=ve({components:{PodloveButton:zn,Modal:Wa,LicensePreview:Cte},data(){return{PodloveLicenseVersionList:Tte,PodloveLicenseOptionCommercialList:Ote,PodloveLicenseOptionModificationList:Ate,PodloveLicenseOptionJurisdication:Vs}},setup(){return{state:yt({episodeLicenseUrl:K.episode.license_url,podcastLicenseUrl:K.podcast.license_url}),dispatch:it().dispatch}},props:{scope:{type:String,default:cn.Episode}},computed:{isCommercialNModificationNeeded(){return this.getLicenseData().type==="cc"&&(this.getLicenseData().version===Nt.cc3||this.getLicenseData().version===Nt.cc4)},isJurisdicationNeeded(){return this.getLicenseData().type==="cc"&&this.getLicenseData().version===Nt.cc3}},methods:{updateVersion(e){let t=this.getLicenseData();switch(t.type="cc",e.target.value){case Nt.cc0:t.version=Nt.cc0;break;case Nt.pdmark:t.version=Nt.pdmark;break;case Nt.cc3:t.version=Nt.cc3;break;case Nt.cc4:t.version=Nt.cc4;break}this.updateLicenseDataNameNUrl(t)},updateCommercial(e){let t=this.getLicenseData();switch(e.target.value){case gr.yes:t.optionCommercial=gr.yes;break;case gr.no:t.optionCommercial=gr.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=Vs.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=Vs[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_url",value:Hl(e)})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_url",value:Hl(e)}))},updateLicenseDataNameNUrl(e){this.scope===cn.Episode&&(this.dispatch(wt({prop:"license_name",value:e.version})),this.dispatch(wt({prop:"license_url",value:Hl(e)}))),this.scope===cn.Podcast&&(this.dispatch(ea({prop:"license_name",value:e.version})),this.dispatch(ea({prop:"license_url",value:Hl(e)})))},getLicenseData(){return this.scope===cn.Episode?this.state.episodeLicenseUrl===null||this.state.episodeLicenseUrl===void 0?{type:"cc",version:Nt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:i1(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Nt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:i1(this.state.podcastLicenseUrl)}}}),Ite={class:"border-gray-200 border-b pb-2 px-3 py-5"},kte={class:"text-lg leading-6 font-medium text-gray-900"},Rte={class:"mb-3"},Lte=v("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),Nte=["value"],Mte=["value"],Dte={key:0,class:"mb-3"},Fte=v("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),Bte=["value"],Ute=["value"],jte={key:1,class:"mb-3"},Hte=v("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),Vte=["value"],Wte=["value"],zte={key:2,class:"mb-3"},qte=v("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),Kte=["value"],Gte=["value"],Xte={class:"mb-5"};function Jte(e,t,n,r,o,s){var a;const l=J("LicensePreview");return N(),V(Fe,null,[v("div",Ite,[v("h3",kte,U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",null,[v("div",Rte,[Lte,v("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,Dt(e.PodloveLicenseVersionList,(c,d)=>(N(),V("option",{value:c.value,key:`version-${d}`},U(c.value),9,Mte))),128))],40,Nte)]),e.isCommercialNModificationNeeded?(N(),V("div",Dte,[Fte,v("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,Dt(e.PodloveLicenseOptionModificationList,(c,d)=>(N(),V("option",{value:c.value,key:`modification-${d}`},U(c.value),9,Ute))),128))],40,Bte)])):He("",!0),e.isCommercialNModificationNeeded?(N(),V("div",jte,[Hte,v("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,Dt(e.PodloveLicenseOptionCommercialList,(c,d)=>(N(),V("option",{value:c.value,key:`commercial-${d}`},U(c.value),9,Wte))),128))],40,Vte)])):He("",!0),e.isJurisdicationNeeded?(N(),V("div",zte,[qte,v("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,Dt(e.PodloveLicenseOptionJurisdication,(c,d)=>(N(),V("option",{value:c.name,key:`jurisdiction-${d}`},U(c.name),9,Gte))),128))],40,Kte)])):He("",!0),v("div",Xte,[q(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}const tC=Be(Pte,[["render",Jte]]),Yte=ve({components:{PodloveButton:zn,Modal:Wa,LicenseSelector:tC},props:{scope:{type:String,default:cn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function Zte(e,t,n,r,o,s){const l=J("podlove-button"),a=J("LicenseSelector"),c=J("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)}const Qte=Be(Yte,[["render",Zte]]),ene=ve({components:{Module:Mn,LicenseName:Jee,LicenseUrl:rte,LicenseSelector:tC,LicenseSelectorButton:Qte},props:{scope:{type:String,default:cn.Episode}},computed:{isScopeEpisode(){return this.scope===cn.Episode},getModuleTitle(){return this.scope===cn.Episode?"Episode License":"Podcast License"}}}),tne={key:0},nne={class:"p-3"},rne={class:"mb-3"},one={class:"mb-3"},ine={key:0};function sne(e,t,n,r,o,s){const l=J("LicenseSelectorButton"),a=J("LicenseName"),c=J("LicenseUrl"),d=J("LicenseSelector"),p=J("module");return N(),bt(p,{name:"license",title:e.getModuleTitle},{actions:ye(()=>[e.isScopeEpisode?(N(),V("div",tne,[q(l,{scope:e.scope},null,8,["scope"])])):He("",!0)]),default:ye(()=>[v("div",nne,[v("div",rne,[q(a,{scope:e.scope},null,8,["scope"])]),v("div",one,[q(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?He("",!0):(N(),V("div",ine,[q(d,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}const lne=Be(ene,[["render",sne]]),ane={PodloveDescription:vV,PodloveChapters:iq,PodloveTranscripts:aK,PodloveAuphonic:VJ,PodloveContributors:jZ,PodloveMediaFiles:VQ,PodloveRelatedEpisodes:aee,PodloveSoundbite:Nee,PodloveShowSelect:Wee,PodloveLicense:lne};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=Gw({components:{...ane}});bN({store:Hd,app:t}),t.use(EF),t.mount(e)})});globalThis.initPodloveUI=e=>{Hd.dispatch(YM(e))};
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/client/dist/style.css

    r3177486 r3195601  
    1 [data-client=podlove] .tab-active{text-shadow:0 0 1px currentColor}[data-client=podlove] div>input[type=radio][data-v-eaebb871]:checked:before{background-color:#fff}/*! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com*/[data-client=podlove] *,[data-client=podlove] :after,[data-client=podlove] :before{border:0 solid #e5e7eb;box-sizing:border-box}[data-client=podlove] :after,[data-client=podlove] :before{--tw-content:""}[data-client=podlove] :host,[data-client=podlove] html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter var,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}[data-client=podlove] body{line-height:inherit;margin:0}[data-client=podlove] hr{border-top-width:1px;color:inherit;height:0}[data-client=podlove] abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}[data-client=podlove] h1,[data-client=podlove] h2,[data-client=podlove] h3,[data-client=podlove] h4,[data-client=podlove] h5,[data-client=podlove] h6{font-size:inherit;font-weight:inherit}[data-client=podlove] a{color:inherit;text-decoration:inherit}[data-client=podlove] b,[data-client=podlove] strong{font-weight:bolder}[data-client=podlove] code,[data-client=podlove] kbd,[data-client=podlove] pre,[data-client=podlove] samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}[data-client=podlove] small{font-size:80%}[data-client=podlove] sub,[data-client=podlove] sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}[data-client=podlove] sub{bottom:-.25em}[data-client=podlove] sup{top:-.5em}[data-client=podlove] table{border-collapse:collapse;border-color:inherit;text-indent:0}[data-client=podlove] button,[data-client=podlove] input,[data-client=podlove] optgroup,[data-client=podlove] select,[data-client=podlove] textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}[data-client=podlove] button,[data-client=podlove] select{text-transform:none}[data-client=podlove] button,[data-client=podlove] input:where([type=button]),[data-client=podlove] input:where([type=reset]),[data-client=podlove] input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[data-client=podlove] :-moz-focusring{outline:auto}[data-client=podlove] :-moz-ui-invalid{box-shadow:none}[data-client=podlove] progress{vertical-align:baseline}[data-client=podlove] ::-webkit-inner-spin-button,[data-client=podlove] ::-webkit-outer-spin-button{height:auto}[data-client=podlove] [type=search]{-webkit-appearance:textfield;outline-offset:-2px}[data-client=podlove] ::-webkit-search-decoration{-webkit-appearance:none}[data-client=podlove] ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[data-client=podlove] summary{display:list-item}[data-client=podlove] blockquote,[data-client=podlove] dd,[data-client=podlove] dl,[data-client=podlove] figure,[data-client=podlove] h1,[data-client=podlove] h2,[data-client=podlove] h3,[data-client=podlove] h4,[data-client=podlove] h5,[data-client=podlove] h6,[data-client=podlove] hr,[data-client=podlove] p,[data-client=podlove] pre{margin:0}[data-client=podlove] fieldset{margin:0;padding:0}[data-client=podlove] legend{padding:0}[data-client=podlove] menu,[data-client=podlove] ol,[data-client=podlove] ul{list-style:none;margin:0;padding:0}[data-client=podlove] dialog{padding:0}[data-client=podlove] textarea{resize:vertical}[data-client=podlove] input::-moz-placeholder,[data-client=podlove] textarea::-moz-placeholder{color:#9ca3af;opacity:1}[data-client=podlove] input::placeholder,[data-client=podlove] textarea::placeholder{color:#9ca3af;opacity:1}[data-client=podlove] [role=button],[data-client=podlove] button{cursor:pointer}[data-client=podlove] :disabled{cursor:default}[data-client=podlove] audio,[data-client=podlove] canvas,[data-client=podlove] embed,[data-client=podlove] iframe,[data-client=podlove] img,[data-client=podlove] object,[data-client=podlove] svg,[data-client=podlove] video{display:block;vertical-align:middle}[data-client=podlove] img,[data-client=podlove] video{height:auto;max-width:100%}[data-client=podlove] [hidden]{display:none}[data-client=podlove] [multiple],[data-client=podlove] [type=date],[data-client=podlove] [type=datetime-local],[data-client=podlove] [type=email],[data-client=podlove] [type=month],[data-client=podlove] [type=number],[data-client=podlove] [type=password],[data-client=podlove] [type=search],[data-client=podlove] [type=tel],[data-client=podlove] [type=text],[data-client=podlove] [type=time],[data-client=podlove] [type=url],[data-client=podlove] [type=week],[data-client=podlove] input:where(:not([type])),[data-client=podlove] select,[data-client=podlove] textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[data-client=podlove] [multiple]:focus,[data-client=podlove] [type=date]:focus,[data-client=podlove] [type=datetime-local]:focus,[data-client=podlove] [type=email]:focus,[data-client=podlove] [type=month]:focus,[data-client=podlove] [type=number]:focus,[data-client=podlove] [type=password]:focus,[data-client=podlove] [type=search]:focus,[data-client=podlove] [type=tel]:focus,[data-client=podlove] [type=text]:focus,[data-client=podlove] [type=time]:focus,[data-client=podlove] [type=url]:focus,[data-client=podlove] [type=week]:focus,[data-client=podlove] input:where(:not([type])):focus,[data-client=podlove] select:focus,[data-client=podlove] textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[data-client=podlove] input::-moz-placeholder,[data-client=podlove] textarea::-moz-placeholder{color:#6b7280;opacity:1}[data-client=podlove] input::placeholder,[data-client=podlove] textarea::placeholder{color:#6b7280;opacity:1}[data-client=podlove] ::-webkit-datetime-edit-fields-wrapper{padding:0}[data-client=podlove] ::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}[data-client=podlove] ::-webkit-datetime-edit{display:inline-flex}[data-client=podlove] ::-webkit-datetime-edit,[data-client=podlove] ::-webkit-datetime-edit-day-field,[data-client=podlove] ::-webkit-datetime-edit-hour-field,[data-client=podlove] ::-webkit-datetime-edit-meridiem-field,[data-client=podlove] ::-webkit-datetime-edit-millisecond-field,[data-client=podlove] ::-webkit-datetime-edit-minute-field,[data-client=podlove] ::-webkit-datetime-edit-month-field,[data-client=podlove] ::-webkit-datetime-edit-second-field,[data-client=podlove] ::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}[data-client=podlove] select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[data-client=podlove] [multiple],[data-client=podlove] [size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[data-client=podlove] [type=checkbox],[data-client=podlove] [type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[data-client=podlove] [type=checkbox]{border-radius:0}[data-client=podlove] [type=radio]{border-radius:100%}[data-client=podlove] [type=checkbox]:focus,[data-client=podlove] [type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[data-client=podlove] [type=checkbox]:checked,[data-client=podlove] [type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[data-client=podlove] [type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}@media (forced-colors:active){[data-client=podlove] [type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active){[data-client=podlove] [type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=checkbox]:checked:focus,[data-client=podlove] [type=checkbox]:checked:hover,[data-client=podlove] [type=radio]:checked:focus,[data-client=podlove] [type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[data-client=podlove] [type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active){[data-client=podlove] [type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=checkbox]:indeterminate:focus,[data-client=podlove] [type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[data-client=podlove] [type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[data-client=podlove] [type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}[data-client=podlove] *,[data-client=podlove] :after,[data-client=podlove] :before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-client=podlove] ::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-client=podlove] .container{width:100%}@media (min-width:640px){[data-client=podlove] .container{max-width:640px}}@media (min-width:768px){[data-client=podlove] .container{max-width:768px}}@media (min-width:1024px){[data-client=podlove] .container{max-width:1024px}}@media (min-width:1280px){[data-client=podlove] .container{max-width:1280px}}@media (min-width:1536px){[data-client=podlove] .container{max-width:1536px}}[data-client=podlove] .sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-client=podlove] .pointer-events-none{pointer-events:none}[data-client=podlove] .visible{visibility:visible}[data-client=podlove] .static{position:static}[data-client=podlove] .fixed{position:fixed}[data-client=podlove] .absolute{position:absolute}[data-client=podlove] .relative{position:relative}[data-client=podlove] .inset-0{top:0;right:0;bottom:0;left:0}[data-client=podlove] .inset-y-0{bottom:0;top:0}[data-client=podlove] .-top-2{top:-.5rem}[data-client=podlove] .bottom-0{bottom:0}[data-client=podlove] .left-0{left:0}[data-client=podlove] .left-4{left:1rem}[data-client=podlove] .left-\[-14px\]{left:-14px}[data-client=podlove] .right-0{right:0}[data-client=podlove] .right-10{right:2.5rem}[data-client=podlove] .right-2{right:.5rem}[data-client=podlove] .top-0{top:0}[data-client=podlove] .top-1\/2{top:50%}[data-client=podlove] .z-10{z-index:10}[data-client=podlove] .z-50{z-index:50}[data-client=podlove] .-m-2{margin:-.5rem}[data-client=podlove] .-m-3{margin:-.75rem}[data-client=podlove] .m-1{margin:.25rem}[data-client=podlove] .m-12{margin:3rem}[data-client=podlove] .m-6{margin:1.5rem}[data-client=podlove] .m-7{margin:1.75rem}[data-client=podlove] .-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}[data-client=podlove] .-my-5{margin-bottom:-1.25rem;margin-top:-1.25rem}[data-client=podlove] .mx-2{margin-left:.5rem;margin-right:.5rem}[data-client=podlove] .mx-auto{margin-left:auto;margin-right:auto}[data-client=podlove] .-mb-px{margin-bottom:-1px}[data-client=podlove] .-ml-0{margin-left:0}[data-client=podlove] .-ml-0\.5{margin-left:-.125rem}[data-client=podlove] .-ml-2{margin-left:-.5rem}[data-client=podlove] .-ml-4{margin-left:-1rem}[data-client=podlove] .-mr-0{margin-right:0}[data-client=podlove] .-mr-0\.5{margin-right:-.125rem}[data-client=podlove] .-mt-2{margin-top:-.5rem}[data-client=podlove] .-mt-2\.5{margin-top:-.625rem}[data-client=podlove] .-mt-3{margin-top:-.75rem}[data-client=podlove] .-mt-4{margin-top:-1rem}[data-client=podlove] .mb-0{margin-bottom:0}[data-client=podlove] .mb-1{margin-bottom:.25rem}[data-client=podlove] .mb-2{margin-bottom:.5rem}[data-client=podlove] .mb-3{margin-bottom:.75rem}[data-client=podlove] .mb-4{margin-bottom:1rem}[data-client=podlove] .mb-5{margin-bottom:1.25rem}[data-client=podlove] .ml-0{margin-left:0}[data-client=podlove] .ml-0\.5{margin-left:.125rem}[data-client=podlove] .ml-1{margin-left:.25rem}[data-client=podlove] .ml-16{margin-left:4rem}[data-client=podlove] .ml-2{margin-left:.5rem}[data-client=podlove] .ml-3{margin-left:.75rem}[data-client=podlove] .ml-4{margin-left:1rem}[data-client=podlove] .ml-5{margin-left:1.25rem}[data-client=podlove] .mr-1{margin-right:.25rem}[data-client=podlove] .mr-1\.5{margin-right:.375rem}[data-client=podlove] .mr-2{margin-right:.5rem}[data-client=podlove] .mr-3{margin-right:.75rem}[data-client=podlove] .mr-5{margin-right:1.25rem}[data-client=podlove] .mt-0{margin-top:0}[data-client=podlove] .mt-1{margin-top:.25rem}[data-client=podlove] .mt-10{margin-top:2.5rem}[data-client=podlove] .mt-2{margin-top:.5rem}[data-client=podlove] .mt-3{margin-top:.75rem}[data-client=podlove] .mt-4{margin-top:1rem}[data-client=podlove] .mt-5{margin-top:1.25rem}[data-client=podlove] .mt-6{margin-top:1.5rem}[data-client=podlove] .mt-\[30px\]{margin-top:30px}[data-client=podlove] .block{display:block}[data-client=podlove] .inline-block{display:inline-block}[data-client=podlove] .flex{display:flex}[data-client=podlove] .inline-flex{display:inline-flex}[data-client=podlove] .table{display:table}[data-client=podlove] .flow-root{display:flow-root}[data-client=podlove] .grid{display:grid}[data-client=podlove] .contents{display:contents}[data-client=podlove] .hidden{display:none}[data-client=podlove] .h-12{height:3rem}[data-client=podlove] .h-16{height:4rem}[data-client=podlove] .h-4{height:1rem}[data-client=podlove] .h-44{height:11rem}[data-client=podlove] .h-5{height:1.25rem}[data-client=podlove] .h-6{height:1.5rem}[data-client=podlove] .h-96{height:24rem}[data-client=podlove] .h-full{height:100%}[data-client=podlove] .max-h-36{max-height:9rem}[data-client=podlove] .max-h-56{max-height:14rem}[data-client=podlove] .max-h-60{max-height:15rem}[data-client=podlove] .min-h-screen{min-height:100vh}[data-client=podlove] .w-11{width:2.75rem}[data-client=podlove] .w-12{width:3rem}[data-client=podlove] .w-16{width:4rem}[data-client=podlove] .w-32{width:8rem}[data-client=podlove] .w-4{width:1rem}[data-client=podlove] .w-44{width:11rem}[data-client=podlove] .w-5{width:1.25rem}[data-client=podlove] .w-6{width:1.5rem}[data-client=podlove] .w-8{width:2rem}[data-client=podlove] .w-\[168px\]{width:168px}[data-client=podlove] .w-full{width:100%}[data-client=podlove] .min-w-0{min-width:0}[data-client=podlove] .min-w-full{min-width:100%}[data-client=podlove] .max-w-5xl{max-width:64rem}[data-client=podlove] .max-w-lg{max-width:32rem}[data-client=podlove] .max-w-md{max-width:28rem}[data-client=podlove] .max-w-sm{max-width:24rem}[data-client=podlove] .flex-1{flex:1 1 0%}[data-client=podlove] .flex-shrink-0{flex-shrink:0}[data-client=podlove] .table-fixed{table-layout:fixed}[data-client=podlove] .-translate-x-full{--tw-translate-x:-100%}[data-client=podlove] .-translate-x-full,[data-client=podlove] .-translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .-translate-y-full{--tw-translate-y:-100%}[data-client=podlove] .translate-x-0{--tw-translate-x:0px}[data-client=podlove] .translate-x-0,[data-client=podlove] .translate-x-5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .translate-x-5{--tw-translate-x:1.25rem}[data-client=podlove] .translate-y-0{--tw-translate-y:0px}[data-client=podlove] .translate-y-0,[data-client=podlove] .translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .translate-y-1{--tw-translate-y:.25rem}[data-client=podlove] .translate-y-4{--tw-translate-y:1rem}[data-client=podlove] .transform,[data-client=podlove] .translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}[data-client=podlove] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}[data-client=podlove] .animate-spin{animation:spin 1s linear infinite}[data-client=podlove] .cursor-default{cursor:default}[data-client=podlove] .cursor-not-allowed{cursor:not-allowed}[data-client=podlove] .cursor-pointer{cursor:pointer}[data-client=podlove] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-client=podlove] .resize-y{resize:vertical}[data-client=podlove] .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}[data-client=podlove] .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .flex-col{flex-direction:column}[data-client=podlove] .flex-wrap{flex-wrap:wrap}[data-client=podlove] .content-center{align-content:center}[data-client=podlove] .items-start{align-items:flex-start}[data-client=podlove] .items-end{align-items:flex-end}[data-client=podlove] .items-center{align-items:center}[data-client=podlove] .justify-start{justify-content:flex-start}[data-client=podlove] .justify-end{justify-content:flex-end}[data-client=podlove] .justify-center{justify-content:center}[data-client=podlove] .justify-between{justify-content:space-between}[data-client=podlove] .justify-around{justify-content:space-around}[data-client=podlove] .justify-items-stretch{justify-items:stretch}[data-client=podlove] .gap-2{gap:.5rem}[data-client=podlove] .gap-3{gap:.75rem}[data-client=podlove] .gap-4{gap:1rem}[data-client=podlove] .gap-8{gap:2rem}[data-client=podlove] .gap-x-4{-moz-column-gap:1rem;column-gap:1rem}[data-client=podlove] .gap-y-6{row-gap:1.5rem}[data-client=podlove] .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}[data-client=podlove] .divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}[data-client=podlove] .divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(209 213 219/var(--tw-divide-opacity))}[data-client=podlove] .overflow-auto{overflow:auto}[data-client=podlove] .overflow-hidden{overflow:hidden}[data-client=podlove] .overflow-x-auto{overflow-x:auto}[data-client=podlove] .overflow-y-auto{overflow-y:auto}[data-client=podlove] .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-client=podlove] .whitespace-nowrap{white-space:nowrap}[data-client=podlove] .rounded{border-radius:.25rem}[data-client=podlove] .rounded-full{border-radius:9999px}[data-client=podlove] .rounded-lg{border-radius:.5rem}[data-client=podlove] .rounded-md{border-radius:.375rem}[data-client=podlove] .rounded-xl{border-radius:.75rem}[data-client=podlove] .rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}[data-client=podlove] .border{border-width:1px}[data-client=podlove] .border-0{border-width:0}[data-client=podlove] .border-2{border-width:2px}[data-client=podlove] .border-b{border-bottom-width:1px}[data-client=podlove] .border-b-2{border-bottom-width:2px}[data-client=podlove] .border-t{border-top-width:1px}[data-client=podlove] .border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}[data-client=podlove] .border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}[data-client=podlove] .border-gray-900\/10{border-color:#1118271a}[data-client=podlove] .border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .border-transparent{border-color:transparent}[data-client=podlove] .bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}[data-client=podlove] .bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}[data-client=podlove] .bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}[data-client=podlove] .bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}[data-client=podlove] .bg-transparent{background-color:transparent}[data-client=podlove] .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}[data-client=podlove] .bg-opacity-40{--tw-bg-opacity:.4}[data-client=podlove] .bg-opacity-50{--tw-bg-opacity:.5}[data-client=podlove] .bg-opacity-75{--tw-bg-opacity:.75}[data-client=podlove] .bg-cover{background-size:cover}[data-client=podlove] .bg-center{background-position:50%}[data-client=podlove] .bg-no-repeat{background-repeat:no-repeat}[data-client=podlove] .p-2{padding:.5rem}[data-client=podlove] .p-3{padding:.75rem}[data-client=podlove] .p-4{padding:1rem}[data-client=podlove] .p-6{padding:1.5rem}[data-client=podlove] .p-7{padding:1.75rem}[data-client=podlove] .px-1{padding-left:.25rem;padding-right:.25rem}[data-client=podlove] .px-2{padding-left:.5rem;padding-right:.5rem}[data-client=podlove] .px-2\.5{padding-left:.625rem;padding-right:.625rem}[data-client=podlove] .px-3{padding-left:.75rem;padding-right:.75rem}[data-client=podlove] .px-4{padding-left:1rem;padding-right:1rem}[data-client=podlove] .px-6{padding-left:1.5rem;padding-right:1.5rem}[data-client=podlove] .px-7{padding-left:1.75rem;padding-right:1.75rem}[data-client=podlove] .py-0{padding-bottom:0;padding-top:0}[data-client=podlove] .py-0\.5{padding-bottom:.125rem;padding-top:.125rem}[data-client=podlove] .py-1{padding-bottom:.25rem;padding-top:.25rem}[data-client=podlove] .py-1\.5{padding-bottom:.375rem;padding-top:.375rem}[data-client=podlove] .py-2{padding-bottom:.5rem;padding-top:.5rem}[data-client=podlove] .py-3{padding-bottom:.75rem;padding-top:.75rem}[data-client=podlove] .py-3\.5{padding-bottom:.875rem;padding-top:.875rem}[data-client=podlove] .py-4{padding-bottom:1rem;padding-top:1rem}[data-client=podlove] .py-5{padding-bottom:1.25rem;padding-top:1.25rem}[data-client=podlove] .py-6{padding-bottom:1.5rem;padding-top:1.5rem}[data-client=podlove] .pb-1{padding-bottom:.25rem}[data-client=podlove] .pb-12{padding-bottom:3rem}[data-client=podlove] .pb-2{padding-bottom:.5rem}[data-client=podlove] .pb-20{padding-bottom:5rem}[data-client=podlove] .pb-3{padding-bottom:.75rem}[data-client=podlove] .pb-4{padding-bottom:1rem}[data-client=podlove] .pb-5{padding-bottom:1.25rem}[data-client=podlove] .pl-1{padding-left:.25rem}[data-client=podlove] .pl-10{padding-left:2.5rem}[data-client=podlove] .pl-3{padding-left:.75rem}[data-client=podlove] .pr-10{padding-right:2.5rem}[data-client=podlove] .pr-12{padding-right:3rem}[data-client=podlove] .pr-2{padding-right:.5rem}[data-client=podlove] .pr-3{padding-right:.75rem}[data-client=podlove] .pr-4{padding-right:1rem}[data-client=podlove] .pr-8{padding-right:2rem}[data-client=podlove] .pr-9{padding-right:2.25rem}[data-client=podlove] .pt-4{padding-top:1rem}[data-client=podlove] .pt-5{padding-top:1.25rem}[data-client=podlove] .text-left{text-align:left}[data-client=podlove] .text-center{text-align:center}[data-client=podlove] .text-right{text-align:right}[data-client=podlove] .align-middle{vertical-align:middle}[data-client=podlove] .align-bottom{vertical-align:bottom}[data-client=podlove] .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}[data-client=podlove] .font-sans{font-family:Inter var,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}[data-client=podlove] .text-base{font-size:1rem;line-height:1.5rem}[data-client=podlove] .text-lg{font-size:1.125rem;line-height:1.75rem}[data-client=podlove] .text-sm{font-size:.875rem;line-height:1.25rem}[data-client=podlove] .text-xs{font-size:.75rem;line-height:1rem}[data-client=podlove] .font-bold{font-weight:700}[data-client=podlove] .font-light{font-weight:300}[data-client=podlove] .font-medium{font-weight:500}[data-client=podlove] .font-normal{font-weight:400}[data-client=podlove] .font-semibold{font-weight:600}[data-client=podlove] .uppercase{text-transform:uppercase}[data-client=podlove] .tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}[data-client=podlove] .leading-3{line-height:.75rem}[data-client=podlove] .leading-4{line-height:1rem}[data-client=podlove] .leading-5{line-height:1.25rem}[data-client=podlove] .leading-6{line-height:1.5rem}[data-client=podlove] .text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}[data-client=podlove] .text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity))}[data-client=podlove] .text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}[data-client=podlove] .text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}[data-client=podlove] .text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}[data-client=podlove] .text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}[data-client=podlove] .text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}[data-client=podlove] .text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}[data-client=podlove] .text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}[data-client=podlove] .text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}[data-client=podlove] .text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-200{--tw-text-opacity:1;color:rgb(199 210 254/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-400{--tw-text-opacity:1;color:rgb(129 140 248/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-700{--tw-text-opacity:1;color:rgb(67 56 202/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-800{--tw-text-opacity:1;color:rgb(55 48 163/var(--tw-text-opacity))}[data-client=podlove] .text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}[data-client=podlove] .text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}[data-client=podlove] .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}[data-client=podlove] .underline{text-decoration-line:underline}[data-client=podlove] .opacity-0{opacity:0}[data-client=podlove] .opacity-100{opacity:1}[data-client=podlove] .opacity-50{opacity:.5}[data-client=podlove] .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}[data-client=podlove] .shadow,[data-client=podlove] .shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}[data-client=podlove] .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}[data-client=podlove] .shadow-md,[data-client=podlove] .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}[data-client=podlove] .shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}[data-client=podlove] .ring-0,[data-client=podlove] .ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}[data-client=podlove] .ring-inset{--tw-ring-inset:inset}[data-client=podlove] .ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}[data-client=podlove] .ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}[data-client=podlove] .ring-opacity-5{--tw-ring-opacity:.05}[data-client=podlove] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-client=podlove] .transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .duration-100{transition-duration:.1s}[data-client=podlove] .duration-150{transition-duration:.15s}[data-client=podlove] .duration-200{transition-duration:.2s}[data-client=podlove] .duration-300{transition-duration:.3s}[data-client=podlove] .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}[data-client=podlove] .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}[data-client=podlove] input[type=checkbox]:checked:before{content:""}[data-client=podlove] .placeholder\:text-gray-400::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-client=podlove] .focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus-within\:ring-inset:focus-within{--tw-ring-inset:inset}[data-client=podlove] .focus-within\:ring-indigo-500:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus-within\:ring-indigo-600:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}[data-client=podlove] .focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}[data-client=podlove] .hover\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}[data-client=podlove] .hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-100:hover{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-200:hover{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}[data-client=podlove] .hover\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}[data-client=podlove] .hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}[data-client=podlove] .hover\:text-indigo-500:hover{--tw-text-opacity:1;color:rgb(99 102 241/var(--tw-text-opacity))}[data-client=podlove] .hover\:opacity-0:hover{opacity:0}[data-client=podlove] .hover\:opacity-100:hover{opacity:1}[data-client=podlove] .focus\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-client=podlove] .focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-inset:focus{--tw-ring-inset:inset}[data-client=podlove] .focus\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-indigo-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}[data-client=podlove] .focus-visible\:border-indigo-500:focus-visible{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .focus-visible\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus-visible\:ring-indigo-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus-visible\:ring-opacity-50:focus-visible{--tw-ring-opacity:.5}[data-client=podlove] .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}[data-client=podlove] .disabled\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-indigo-300:disabled{--tw-bg-opacity:1;background-color:rgb(165 180 252/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-indigo-50:disabled{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-red-300:disabled{--tw-bg-opacity:1;background-color:rgb(252 165 165/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:opacity-30:disabled{opacity:.3}[data-client=podlove] .disabled\:opacity-75:disabled{opacity:.75}[data-client=podlove] .disabled\:hover\:bg-white:hover:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}@media (min-width:640px){[data-client=podlove] .sm\:col-span-2{grid-column:span 2/span 2}[data-client=podlove] .sm\:col-span-4{grid-column:span 4/span 4}[data-client=podlove] .sm\:mx-0{margin-left:0;margin-right:0}[data-client=podlove] .sm\:my-8{margin-bottom:2rem;margin-top:2rem}[data-client=podlove] .sm\:ml-3{margin-left:.75rem}[data-client=podlove] .sm\:ml-4{margin-left:1rem}[data-client=podlove] .sm\:mt-0{margin-top:0}[data-client=podlove] .sm\:mt-1{margin-top:.25rem}[data-client=podlove] .sm\:mt-4{margin-top:1rem}[data-client=podlove] .sm\:mt-8{margin-top:2rem}[data-client=podlove] .sm\:block{display:block}[data-client=podlove] .sm\:inline-block{display:inline-block}[data-client=podlove] .sm\:inline{display:inline}[data-client=podlove] .sm\:flex{display:flex}[data-client=podlove] .sm\:grid{display:grid}[data-client=podlove] .sm\:h-10{height:2.5rem}[data-client=podlove] .sm\:h-screen{height:100vh}[data-client=podlove] .sm\:w-10{width:2.5rem}[data-client=podlove] .sm\:w-12{width:3rem}[data-client=podlove] .sm\:w-auto{width:auto}[data-client=podlove] .sm\:w-full{width:100%}[data-client=podlove] .sm\:max-w-md{max-width:28rem}[data-client=podlove] .sm\:max-w-sm{max-width:24rem}[data-client=podlove] .sm\:max-w-xs{max-width:20rem}[data-client=podlove] .sm\:translate-y-0{--tw-translate-y:0px}[data-client=podlove] .sm\:scale-100,[data-client=podlove] .sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}[data-client=podlove] .sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}[data-client=podlove] .sm\:grid-cols-\[175px_auto_auto\]{grid-template-columns:175px auto auto}[data-client=podlove] .sm\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}[data-client=podlove] .sm\:flex-row{flex-direction:row}[data-client=podlove] .sm\:flex-row-reverse{flex-direction:row-reverse}[data-client=podlove] .sm\:flex-nowrap{flex-wrap:nowrap}[data-client=podlove] .sm\:items-start{align-items:flex-start}[data-client=podlove] .sm\:items-baseline{align-items:baseline}[data-client=podlove] .sm\:gap-0{gap:0}[data-client=podlove] .sm\:gap-2{gap:.5rem}[data-client=podlove] .sm\:gap-4{gap:1rem}[data-client=podlove] .sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .sm\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(1px*var(--tw-divide-x-reverse))}[data-client=podlove] .sm\:divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}[data-client=podlove] .sm\:divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}[data-client=podlove] .sm\:divide-gray-900\/10>:not([hidden])~:not([hidden]){border-color:#1118271a}[data-client=podlove] .sm\:rounded-lg{border-radius:.5rem}[data-client=podlove] .sm\:p-0{padding:0}[data-client=podlove] .sm\:p-6{padding:1.5rem}[data-client=podlove] .sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}[data-client=podlove] .sm\:py-6{padding-bottom:1.5rem;padding-top:1.5rem}[data-client=podlove] .sm\:pb-0{padding-bottom:0}[data-client=podlove] .sm\:pt-1{padding-top:.25rem}[data-client=podlove] .sm\:pt-1\.5{padding-top:.375rem}[data-client=podlove] .sm\:text-left{text-align:left}[data-client=podlove] .sm\:align-middle{vertical-align:middle}[data-client=podlove] .sm\:text-sm{font-size:.875rem;line-height:1.25rem}[data-client=podlove] .sm\:leading-6{line-height:1.5rem}[data-client=podlove] .sm\:shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}@media (min-width:768px){[data-client=podlove] .md\:col-span-1{grid-column:span 1/span 1}[data-client=podlove] .md\:mx-4{margin-left:1rem;margin-right:1rem}[data-client=podlove] .md\:my-2{margin-bottom:.5rem;margin-top:.5rem}[data-client=podlove] .md\:mr-5{margin-right:1.25rem}[data-client=podlove] .md\:mt-0{margin-top:0}[data-client=podlove] .md\:block{display:block}[data-client=podlove] .md\:flex{display:flex}[data-client=podlove] .md\:grid{display:grid}[data-client=podlove] .md\:hidden{display:none}[data-client=podlove] .md\:w-4\/12{width:33.333333%}[data-client=podlove] .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}[data-client=podlove] .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}[data-client=podlove] .md\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}[data-client=podlove] .md\:gap-12{gap:3rem}[data-client=podlove] .md\:gap-4{gap:1rem}}
     1[data-client=podlove] .tab-active{text-shadow:0 0 1px currentColor}[data-client=podlove] div>input[type=radio][data-v-eaebb871]:checked:before{background-color:#fff}/*! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com*/[data-client=podlove] *,[data-client=podlove] :after,[data-client=podlove] :before{border:0 solid #e5e7eb;box-sizing:border-box}[data-client=podlove] :after,[data-client=podlove] :before{--tw-content:""}[data-client=podlove] :host,[data-client=podlove] html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter var,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}[data-client=podlove] body{line-height:inherit;margin:0}[data-client=podlove] hr{border-top-width:1px;color:inherit;height:0}[data-client=podlove] abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}[data-client=podlove] h1,[data-client=podlove] h2,[data-client=podlove] h3,[data-client=podlove] h4,[data-client=podlove] h5,[data-client=podlove] h6{font-size:inherit;font-weight:inherit}[data-client=podlove] a{color:inherit;text-decoration:inherit}[data-client=podlove] b,[data-client=podlove] strong{font-weight:bolder}[data-client=podlove] code,[data-client=podlove] kbd,[data-client=podlove] pre,[data-client=podlove] samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}[data-client=podlove] small{font-size:80%}[data-client=podlove] sub,[data-client=podlove] sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}[data-client=podlove] sub{bottom:-.25em}[data-client=podlove] sup{top:-.5em}[data-client=podlove] table{border-collapse:collapse;border-color:inherit;text-indent:0}[data-client=podlove] button,[data-client=podlove] input,[data-client=podlove] optgroup,[data-client=podlove] select,[data-client=podlove] textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}[data-client=podlove] button,[data-client=podlove] select{text-transform:none}[data-client=podlove] button,[data-client=podlove] input:where([type=button]),[data-client=podlove] input:where([type=reset]),[data-client=podlove] input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[data-client=podlove] :-moz-focusring{outline:auto}[data-client=podlove] :-moz-ui-invalid{box-shadow:none}[data-client=podlove] progress{vertical-align:baseline}[data-client=podlove] ::-webkit-inner-spin-button,[data-client=podlove] ::-webkit-outer-spin-button{height:auto}[data-client=podlove] [type=search]{-webkit-appearance:textfield;outline-offset:-2px}[data-client=podlove] ::-webkit-search-decoration{-webkit-appearance:none}[data-client=podlove] ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[data-client=podlove] summary{display:list-item}[data-client=podlove] blockquote,[data-client=podlove] dd,[data-client=podlove] dl,[data-client=podlove] figure,[data-client=podlove] h1,[data-client=podlove] h2,[data-client=podlove] h3,[data-client=podlove] h4,[data-client=podlove] h5,[data-client=podlove] h6,[data-client=podlove] hr,[data-client=podlove] p,[data-client=podlove] pre{margin:0}[data-client=podlove] fieldset{margin:0;padding:0}[data-client=podlove] legend{padding:0}[data-client=podlove] menu,[data-client=podlove] ol,[data-client=podlove] ul{list-style:none;margin:0;padding:0}[data-client=podlove] dialog{padding:0}[data-client=podlove] textarea{resize:vertical}[data-client=podlove] input::-moz-placeholder,[data-client=podlove] textarea::-moz-placeholder{color:#9ca3af;opacity:1}[data-client=podlove] input::placeholder,[data-client=podlove] textarea::placeholder{color:#9ca3af;opacity:1}[data-client=podlove] [role=button],[data-client=podlove] button{cursor:pointer}[data-client=podlove] :disabled{cursor:default}[data-client=podlove] audio,[data-client=podlove] canvas,[data-client=podlove] embed,[data-client=podlove] iframe,[data-client=podlove] img,[data-client=podlove] object,[data-client=podlove] svg,[data-client=podlove] video{display:block;vertical-align:middle}[data-client=podlove] img,[data-client=podlove] video{height:auto;max-width:100%}[data-client=podlove] [hidden]{display:none}[data-client=podlove] [multiple],[data-client=podlove] [type=date],[data-client=podlove] [type=datetime-local],[data-client=podlove] [type=email],[data-client=podlove] [type=month],[data-client=podlove] [type=number],[data-client=podlove] [type=password],[data-client=podlove] [type=search],[data-client=podlove] [type=tel],[data-client=podlove] [type=text],[data-client=podlove] [type=time],[data-client=podlove] [type=url],[data-client=podlove] [type=week],[data-client=podlove] input:where(:not([type])),[data-client=podlove] select,[data-client=podlove] textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[data-client=podlove] [multiple]:focus,[data-client=podlove] [type=date]:focus,[data-client=podlove] [type=datetime-local]:focus,[data-client=podlove] [type=email]:focus,[data-client=podlove] [type=month]:focus,[data-client=podlove] [type=number]:focus,[data-client=podlove] [type=password]:focus,[data-client=podlove] [type=search]:focus,[data-client=podlove] [type=tel]:focus,[data-client=podlove] [type=text]:focus,[data-client=podlove] [type=time]:focus,[data-client=podlove] [type=url]:focus,[data-client=podlove] [type=week]:focus,[data-client=podlove] input:where(:not([type])):focus,[data-client=podlove] select:focus,[data-client=podlove] textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[data-client=podlove] input::-moz-placeholder,[data-client=podlove] textarea::-moz-placeholder{color:#6b7280;opacity:1}[data-client=podlove] input::placeholder,[data-client=podlove] textarea::placeholder{color:#6b7280;opacity:1}[data-client=podlove] ::-webkit-datetime-edit-fields-wrapper{padding:0}[data-client=podlove] ::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}[data-client=podlove] ::-webkit-datetime-edit{display:inline-flex}[data-client=podlove] ::-webkit-datetime-edit,[data-client=podlove] ::-webkit-datetime-edit-day-field,[data-client=podlove] ::-webkit-datetime-edit-hour-field,[data-client=podlove] ::-webkit-datetime-edit-meridiem-field,[data-client=podlove] ::-webkit-datetime-edit-millisecond-field,[data-client=podlove] ::-webkit-datetime-edit-minute-field,[data-client=podlove] ::-webkit-datetime-edit-month-field,[data-client=podlove] ::-webkit-datetime-edit-second-field,[data-client=podlove] ::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}[data-client=podlove] select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[data-client=podlove] [multiple],[data-client=podlove] [size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[data-client=podlove] [type=checkbox],[data-client=podlove] [type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[data-client=podlove] [type=checkbox]{border-radius:0}[data-client=podlove] [type=radio]{border-radius:100%}[data-client=podlove] [type=checkbox]:focus,[data-client=podlove] [type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[data-client=podlove] [type=checkbox]:checked,[data-client=podlove] [type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[data-client=podlove] [type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}@media (forced-colors:active){[data-client=podlove] [type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active){[data-client=podlove] [type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=checkbox]:checked:focus,[data-client=podlove] [type=checkbox]:checked:hover,[data-client=podlove] [type=radio]:checked:focus,[data-client=podlove] [type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[data-client=podlove] [type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active){[data-client=podlove] [type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=checkbox]:indeterminate:focus,[data-client=podlove] [type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[data-client=podlove] [type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[data-client=podlove] [type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}[data-client=podlove] *,[data-client=podlove] :after,[data-client=podlove] :before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-client=podlove] ::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-client=podlove] .container{width:100%}@media (min-width:640px){[data-client=podlove] .container{max-width:640px}}@media (min-width:768px){[data-client=podlove] .container{max-width:768px}}@media (min-width:1024px){[data-client=podlove] .container{max-width:1024px}}@media (min-width:1280px){[data-client=podlove] .container{max-width:1280px}}@media (min-width:1536px){[data-client=podlove] .container{max-width:1536px}}[data-client=podlove] .sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-client=podlove] .pointer-events-none{pointer-events:none}[data-client=podlove] .visible{visibility:visible}[data-client=podlove] .static{position:static}[data-client=podlove] .fixed{position:fixed}[data-client=podlove] .absolute{position:absolute}[data-client=podlove] .relative{position:relative}[data-client=podlove] .inset-0{top:0;right:0;bottom:0;left:0}[data-client=podlove] .inset-y-0{bottom:0;top:0}[data-client=podlove] .-top-2{top:-.5rem}[data-client=podlove] .bottom-0{bottom:0}[data-client=podlove] .left-0{left:0}[data-client=podlove] .left-4{left:1rem}[data-client=podlove] .left-\[-14px\]{left:-14px}[data-client=podlove] .right-0{right:0}[data-client=podlove] .right-10{right:2.5rem}[data-client=podlove] .right-2{right:.5rem}[data-client=podlove] .top-0{top:0}[data-client=podlove] .top-1\/2{top:50%}[data-client=podlove] .z-10{z-index:10}[data-client=podlove] .z-50{z-index:50}[data-client=podlove] .-m-2{margin:-.5rem}[data-client=podlove] .-m-3{margin:-.75rem}[data-client=podlove] .m-1{margin:.25rem}[data-client=podlove] .m-12{margin:3rem}[data-client=podlove] .m-6{margin:1.5rem}[data-client=podlove] .m-7{margin:1.75rem}[data-client=podlove] .-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}[data-client=podlove] .-my-5{margin-bottom:-1.25rem;margin-top:-1.25rem}[data-client=podlove] .mx-2{margin-left:.5rem;margin-right:.5rem}[data-client=podlove] .mx-auto{margin-left:auto;margin-right:auto}[data-client=podlove] .-mb-px{margin-bottom:-1px}[data-client=podlove] .-ml-0{margin-left:0}[data-client=podlove] .-ml-0\.5{margin-left:-.125rem}[data-client=podlove] .-ml-2{margin-left:-.5rem}[data-client=podlove] .-ml-4{margin-left:-1rem}[data-client=podlove] .-mr-0{margin-right:0}[data-client=podlove] .-mr-0\.5{margin-right:-.125rem}[data-client=podlove] .-mt-2{margin-top:-.5rem}[data-client=podlove] .-mt-2\.5{margin-top:-.625rem}[data-client=podlove] .-mt-3{margin-top:-.75rem}[data-client=podlove] .-mt-4{margin-top:-1rem}[data-client=podlove] .mb-0{margin-bottom:0}[data-client=podlove] .mb-1{margin-bottom:.25rem}[data-client=podlove] .mb-2{margin-bottom:.5rem}[data-client=podlove] .mb-3{margin-bottom:.75rem}[data-client=podlove] .mb-4{margin-bottom:1rem}[data-client=podlove] .mb-5{margin-bottom:1.25rem}[data-client=podlove] .ml-0{margin-left:0}[data-client=podlove] .ml-0\.5{margin-left:.125rem}[data-client=podlove] .ml-1{margin-left:.25rem}[data-client=podlove] .ml-16{margin-left:4rem}[data-client=podlove] .ml-2{margin-left:.5rem}[data-client=podlove] .ml-3{margin-left:.75rem}[data-client=podlove] .ml-4{margin-left:1rem}[data-client=podlove] .ml-5{margin-left:1.25rem}[data-client=podlove] .mr-1{margin-right:.25rem}[data-client=podlove] .mr-1\.5{margin-right:.375rem}[data-client=podlove] .mr-2{margin-right:.5rem}[data-client=podlove] .mr-3{margin-right:.75rem}[data-client=podlove] .mr-5{margin-right:1.25rem}[data-client=podlove] .mt-0{margin-top:0}[data-client=podlove] .mt-1{margin-top:.25rem}[data-client=podlove] .mt-10{margin-top:2.5rem}[data-client=podlove] .mt-2{margin-top:.5rem}[data-client=podlove] .mt-3{margin-top:.75rem}[data-client=podlove] .mt-4{margin-top:1rem}[data-client=podlove] .mt-5{margin-top:1.25rem}[data-client=podlove] .mt-6{margin-top:1.5rem}[data-client=podlove] .mt-\[30px\]{margin-top:30px}[data-client=podlove] .block{display:block}[data-client=podlove] .inline-block{display:inline-block}[data-client=podlove] .flex{display:flex}[data-client=podlove] .inline-flex{display:inline-flex}[data-client=podlove] .table{display:table}[data-client=podlove] .flow-root{display:flow-root}[data-client=podlove] .grid{display:grid}[data-client=podlove] .contents{display:contents}[data-client=podlove] .hidden{display:none}[data-client=podlove] .h-12{height:3rem}[data-client=podlove] .h-16{height:4rem}[data-client=podlove] .h-2{height:.5rem}[data-client=podlove] .h-4{height:1rem}[data-client=podlove] .h-44{height:11rem}[data-client=podlove] .h-5{height:1.25rem}[data-client=podlove] .h-6{height:1.5rem}[data-client=podlove] .h-96{height:24rem}[data-client=podlove] .h-full{height:100%}[data-client=podlove] .max-h-36{max-height:9rem}[data-client=podlove] .max-h-56{max-height:14rem}[data-client=podlove] .max-h-60{max-height:15rem}[data-client=podlove] .min-h-screen{min-height:100vh}[data-client=podlove] .w-11{width:2.75rem}[data-client=podlove] .w-12{width:3rem}[data-client=podlove] .w-16{width:4rem}[data-client=podlove] .w-32{width:8rem}[data-client=podlove] .w-4{width:1rem}[data-client=podlove] .w-44{width:11rem}[data-client=podlove] .w-5{width:1.25rem}[data-client=podlove] .w-6{width:1.5rem}[data-client=podlove] .w-8{width:2rem}[data-client=podlove] .w-\[168px\]{width:168px}[data-client=podlove] .w-full{width:100%}[data-client=podlove] .min-w-0{min-width:0}[data-client=podlove] .min-w-full{min-width:100%}[data-client=podlove] .max-w-5xl{max-width:64rem}[data-client=podlove] .max-w-lg{max-width:32rem}[data-client=podlove] .max-w-md{max-width:28rem}[data-client=podlove] .max-w-sm{max-width:24rem}[data-client=podlove] .flex-1{flex:1 1 0%}[data-client=podlove] .flex-shrink-0{flex-shrink:0}[data-client=podlove] .table-fixed{table-layout:fixed}[data-client=podlove] .-translate-x-full{--tw-translate-x:-100%}[data-client=podlove] .-translate-x-full,[data-client=podlove] .-translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .-translate-y-full{--tw-translate-y:-100%}[data-client=podlove] .translate-x-0{--tw-translate-x:0px}[data-client=podlove] .translate-x-0,[data-client=podlove] .translate-x-5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .translate-x-5{--tw-translate-x:1.25rem}[data-client=podlove] .translate-y-0{--tw-translate-y:0px}[data-client=podlove] .translate-y-0,[data-client=podlove] .translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .translate-y-1{--tw-translate-y:.25rem}[data-client=podlove] .translate-y-4{--tw-translate-y:1rem}[data-client=podlove] .transform,[data-client=podlove] .translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}[data-client=podlove] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}[data-client=podlove] .animate-spin{animation:spin 1s linear infinite}[data-client=podlove] .cursor-default{cursor:default}[data-client=podlove] .cursor-not-allowed{cursor:not-allowed}[data-client=podlove] .cursor-pointer{cursor:pointer}[data-client=podlove] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-client=podlove] .resize-y{resize:vertical}[data-client=podlove] .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}[data-client=podlove] .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}[data-client=podlove] .flex-col{flex-direction:column}[data-client=podlove] .flex-wrap{flex-wrap:wrap}[data-client=podlove] .content-center{align-content:center}[data-client=podlove] .items-start{align-items:flex-start}[data-client=podlove] .items-end{align-items:flex-end}[data-client=podlove] .items-center{align-items:center}[data-client=podlove] .justify-start{justify-content:flex-start}[data-client=podlove] .justify-end{justify-content:flex-end}[data-client=podlove] .justify-center{justify-content:center}[data-client=podlove] .justify-between{justify-content:space-between}[data-client=podlove] .justify-around{justify-content:space-around}[data-client=podlove] .justify-items-stretch{justify-items:stretch}[data-client=podlove] .gap-2{gap:.5rem}[data-client=podlove] .gap-3{gap:.75rem}[data-client=podlove] .gap-4{gap:1rem}[data-client=podlove] .gap-8{gap:2rem}[data-client=podlove] .gap-x-4{-moz-column-gap:1rem;column-gap:1rem}[data-client=podlove] .gap-y-6{row-gap:1.5rem}[data-client=podlove] .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}[data-client=podlove] .divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}[data-client=podlove] .divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(209 213 219/var(--tw-divide-opacity))}[data-client=podlove] .overflow-auto{overflow:auto}[data-client=podlove] .overflow-hidden{overflow:hidden}[data-client=podlove] .overflow-x-auto{overflow-x:auto}[data-client=podlove] .overflow-y-auto{overflow-y:auto}[data-client=podlove] .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-client=podlove] .whitespace-nowrap{white-space:nowrap}[data-client=podlove] .break-all{word-break:break-all}[data-client=podlove] .rounded{border-radius:.25rem}[data-client=podlove] .rounded-full{border-radius:9999px}[data-client=podlove] .rounded-lg{border-radius:.5rem}[data-client=podlove] .rounded-md{border-radius:.375rem}[data-client=podlove] .rounded-xl{border-radius:.75rem}[data-client=podlove] .rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}[data-client=podlove] .border{border-width:1px}[data-client=podlove] .border-0{border-width:0}[data-client=podlove] .border-2{border-width:2px}[data-client=podlove] .border-b{border-bottom-width:1px}[data-client=podlove] .border-b-2{border-bottom-width:2px}[data-client=podlove] .border-t{border-top-width:1px}[data-client=podlove] .border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}[data-client=podlove] .border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}[data-client=podlove] .border-gray-900\/10{border-color:#1118271a}[data-client=podlove] .border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .border-transparent{border-color:transparent}[data-client=podlove] .bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}[data-client=podlove] .bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}[data-client=podlove] .bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}[data-client=podlove] .bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}[data-client=podlove] .bg-transparent{background-color:transparent}[data-client=podlove] .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}[data-client=podlove] .bg-opacity-40{--tw-bg-opacity:.4}[data-client=podlove] .bg-opacity-50{--tw-bg-opacity:.5}[data-client=podlove] .bg-opacity-75{--tw-bg-opacity:.75}[data-client=podlove] .bg-cover{background-size:cover}[data-client=podlove] .bg-center{background-position:50%}[data-client=podlove] .bg-no-repeat{background-repeat:no-repeat}[data-client=podlove] .p-2{padding:.5rem}[data-client=podlove] .p-3{padding:.75rem}[data-client=podlove] .p-4{padding:1rem}[data-client=podlove] .p-6{padding:1.5rem}[data-client=podlove] .p-7{padding:1.75rem}[data-client=podlove] .px-1{padding-left:.25rem;padding-right:.25rem}[data-client=podlove] .px-2{padding-left:.5rem;padding-right:.5rem}[data-client=podlove] .px-2\.5{padding-left:.625rem;padding-right:.625rem}[data-client=podlove] .px-3{padding-left:.75rem;padding-right:.75rem}[data-client=podlove] .px-4{padding-left:1rem;padding-right:1rem}[data-client=podlove] .px-6{padding-left:1.5rem;padding-right:1.5rem}[data-client=podlove] .px-7{padding-left:1.75rem;padding-right:1.75rem}[data-client=podlove] .py-0{padding-bottom:0;padding-top:0}[data-client=podlove] .py-0\.5{padding-bottom:.125rem;padding-top:.125rem}[data-client=podlove] .py-1{padding-bottom:.25rem;padding-top:.25rem}[data-client=podlove] .py-1\.5{padding-bottom:.375rem;padding-top:.375rem}[data-client=podlove] .py-2{padding-bottom:.5rem;padding-top:.5rem}[data-client=podlove] .py-3{padding-bottom:.75rem;padding-top:.75rem}[data-client=podlove] .py-3\.5{padding-bottom:.875rem;padding-top:.875rem}[data-client=podlove] .py-4{padding-bottom:1rem;padding-top:1rem}[data-client=podlove] .py-5{padding-bottom:1.25rem;padding-top:1.25rem}[data-client=podlove] .py-6{padding-bottom:1.5rem;padding-top:1.5rem}[data-client=podlove] .pb-1{padding-bottom:.25rem}[data-client=podlove] .pb-12{padding-bottom:3rem}[data-client=podlove] .pb-2{padding-bottom:.5rem}[data-client=podlove] .pb-20{padding-bottom:5rem}[data-client=podlove] .pb-3{padding-bottom:.75rem}[data-client=podlove] .pb-4{padding-bottom:1rem}[data-client=podlove] .pb-5{padding-bottom:1.25rem}[data-client=podlove] .pl-1{padding-left:.25rem}[data-client=podlove] .pl-10{padding-left:2.5rem}[data-client=podlove] .pl-3{padding-left:.75rem}[data-client=podlove] .pr-10{padding-right:2.5rem}[data-client=podlove] .pr-12{padding-right:3rem}[data-client=podlove] .pr-2{padding-right:.5rem}[data-client=podlove] .pr-3{padding-right:.75rem}[data-client=podlove] .pr-4{padding-right:1rem}[data-client=podlove] .pr-8{padding-right:2rem}[data-client=podlove] .pr-9{padding-right:2.25rem}[data-client=podlove] .pt-4{padding-top:1rem}[data-client=podlove] .pt-5{padding-top:1.25rem}[data-client=podlove] .text-left{text-align:left}[data-client=podlove] .text-center{text-align:center}[data-client=podlove] .text-right{text-align:right}[data-client=podlove] .align-middle{vertical-align:middle}[data-client=podlove] .align-bottom{vertical-align:bottom}[data-client=podlove] .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}[data-client=podlove] .font-sans{font-family:Inter var,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}[data-client=podlove] .text-base{font-size:1rem;line-height:1.5rem}[data-client=podlove] .text-lg{font-size:1.125rem;line-height:1.75rem}[data-client=podlove] .text-sm{font-size:.875rem;line-height:1.25rem}[data-client=podlove] .text-xs{font-size:.75rem;line-height:1rem}[data-client=podlove] .font-bold{font-weight:700}[data-client=podlove] .font-light{font-weight:300}[data-client=podlove] .font-medium{font-weight:500}[data-client=podlove] .font-normal{font-weight:400}[data-client=podlove] .font-semibold{font-weight:600}[data-client=podlove] .uppercase{text-transform:uppercase}[data-client=podlove] .tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}[data-client=podlove] .leading-3{line-height:.75rem}[data-client=podlove] .leading-4{line-height:1rem}[data-client=podlove] .leading-5{line-height:1.25rem}[data-client=podlove] .leading-6{line-height:1.5rem}[data-client=podlove] .text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}[data-client=podlove] .text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity))}[data-client=podlove] .text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}[data-client=podlove] .text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}[data-client=podlove] .text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}[data-client=podlove] .text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}[data-client=podlove] .text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}[data-client=podlove] .text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}[data-client=podlove] .text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}[data-client=podlove] .text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}[data-client=podlove] .text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-200{--tw-text-opacity:1;color:rgb(199 210 254/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-400{--tw-text-opacity:1;color:rgb(129 140 248/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-700{--tw-text-opacity:1;color:rgb(67 56 202/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-800{--tw-text-opacity:1;color:rgb(55 48 163/var(--tw-text-opacity))}[data-client=podlove] .text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}[data-client=podlove] .text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}[data-client=podlove] .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}[data-client=podlove] .underline{text-decoration-line:underline}[data-client=podlove] .opacity-0{opacity:0}[data-client=podlove] .opacity-100{opacity:1}[data-client=podlove] .opacity-50{opacity:.5}[data-client=podlove] .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}[data-client=podlove] .shadow,[data-client=podlove] .shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}[data-client=podlove] .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}[data-client=podlove] .shadow-md,[data-client=podlove] .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}[data-client=podlove] .shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}[data-client=podlove] .ring-0,[data-client=podlove] .ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}[data-client=podlove] .ring-inset{--tw-ring-inset:inset}[data-client=podlove] .ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}[data-client=podlove] .ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}[data-client=podlove] .ring-opacity-5{--tw-ring-opacity:.05}[data-client=podlove] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-client=podlove] .transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .duration-100{transition-duration:.1s}[data-client=podlove] .duration-150{transition-duration:.15s}[data-client=podlove] .duration-200{transition-duration:.2s}[data-client=podlove] .duration-300{transition-duration:.3s}[data-client=podlove] .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}[data-client=podlove] .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}[data-client=podlove] input[type=checkbox]:checked:before{content:""}[data-client=podlove] .placeholder\:text-gray-400::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-client=podlove] .focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus-within\:ring-inset:focus-within{--tw-ring-inset:inset}[data-client=podlove] .focus-within\:ring-indigo-500:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus-within\:ring-indigo-600:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}[data-client=podlove] .hover\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}[data-client=podlove] .hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-100:hover{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-200:hover{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}[data-client=podlove] .hover\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}[data-client=podlove] .hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}[data-client=podlove] .hover\:text-indigo-500:hover{--tw-text-opacity:1;color:rgb(99 102 241/var(--tw-text-opacity))}[data-client=podlove] .hover\:opacity-0:hover{opacity:0}[data-client=podlove] .hover\:opacity-100:hover{opacity:1}[data-client=podlove] .focus\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-client=podlove] .focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-inset:focus{--tw-ring-inset:inset}[data-client=podlove] .focus\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-indigo-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}[data-client=podlove] .focus-visible\:border-indigo-500:focus-visible{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .focus-visible\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus-visible\:ring-indigo-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus-visible\:ring-opacity-50:focus-visible{--tw-ring-opacity:.5}[data-client=podlove] .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}[data-client=podlove] .disabled\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-indigo-300:disabled{--tw-bg-opacity:1;background-color:rgb(165 180 252/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-indigo-50:disabled{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-red-300:disabled{--tw-bg-opacity:1;background-color:rgb(252 165 165/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:opacity-30:disabled{opacity:.3}[data-client=podlove] .disabled\:opacity-75:disabled{opacity:.75}[data-client=podlove] .disabled\:hover\:bg-white:hover:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}@media (min-width:640px){[data-client=podlove] .sm\:col-span-2{grid-column:span 2/span 2}[data-client=podlove] .sm\:col-span-4{grid-column:span 4/span 4}[data-client=podlove] .sm\:mx-0{margin-left:0;margin-right:0}[data-client=podlove] .sm\:my-8{margin-bottom:2rem;margin-top:2rem}[data-client=podlove] .sm\:ml-3{margin-left:.75rem}[data-client=podlove] .sm\:ml-4{margin-left:1rem}[data-client=podlove] .sm\:mt-0{margin-top:0}[data-client=podlove] .sm\:mt-1{margin-top:.25rem}[data-client=podlove] .sm\:mt-4{margin-top:1rem}[data-client=podlove] .sm\:mt-8{margin-top:2rem}[data-client=podlove] .sm\:block{display:block}[data-client=podlove] .sm\:inline-block{display:inline-block}[data-client=podlove] .sm\:inline{display:inline}[data-client=podlove] .sm\:flex{display:flex}[data-client=podlove] .sm\:grid{display:grid}[data-client=podlove] .sm\:h-10{height:2.5rem}[data-client=podlove] .sm\:h-screen{height:100vh}[data-client=podlove] .sm\:w-10{width:2.5rem}[data-client=podlove] .sm\:w-12{width:3rem}[data-client=podlove] .sm\:w-auto{width:auto}[data-client=podlove] .sm\:w-full{width:100%}[data-client=podlove] .sm\:max-w-md{max-width:28rem}[data-client=podlove] .sm\:max-w-sm{max-width:24rem}[data-client=podlove] .sm\:max-w-xs{max-width:20rem}[data-client=podlove] .sm\:translate-y-0{--tw-translate-y:0px}[data-client=podlove] .sm\:scale-100,[data-client=podlove] .sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}[data-client=podlove] .sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}[data-client=podlove] .sm\:grid-cols-\[175px_auto_auto\]{grid-template-columns:175px auto auto}[data-client=podlove] .sm\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}[data-client=podlove] .sm\:flex-row{flex-direction:row}[data-client=podlove] .sm\:flex-row-reverse{flex-direction:row-reverse}[data-client=podlove] .sm\:flex-nowrap{flex-wrap:nowrap}[data-client=podlove] .sm\:items-start{align-items:flex-start}[data-client=podlove] .sm\:items-baseline{align-items:baseline}[data-client=podlove] .sm\:gap-0{gap:0}[data-client=podlove] .sm\:gap-2{gap:.5rem}[data-client=podlove] .sm\:gap-4{gap:1rem}[data-client=podlove] .sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .sm\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(1px*var(--tw-divide-x-reverse))}[data-client=podlove] .sm\:divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}[data-client=podlove] .sm\:divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}[data-client=podlove] .sm\:divide-gray-900\/10>:not([hidden])~:not([hidden]){border-color:#1118271a}[data-client=podlove] .sm\:rounded-lg{border-radius:.5rem}[data-client=podlove] .sm\:p-0{padding:0}[data-client=podlove] .sm\:p-6{padding:1.5rem}[data-client=podlove] .sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}[data-client=podlove] .sm\:py-6{padding-bottom:1.5rem;padding-top:1.5rem}[data-client=podlove] .sm\:pb-0{padding-bottom:0}[data-client=podlove] .sm\:pt-1{padding-top:.25rem}[data-client=podlove] .sm\:pt-1\.5{padding-top:.375rem}[data-client=podlove] .sm\:text-left{text-align:left}[data-client=podlove] .sm\:align-middle{vertical-align:middle}[data-client=podlove] .sm\:text-sm{font-size:.875rem;line-height:1.25rem}[data-client=podlove] .sm\:leading-6{line-height:1.5rem}[data-client=podlove] .sm\:shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}@media (min-width:768px){[data-client=podlove] .md\:col-span-1{grid-column:span 1/span 1}[data-client=podlove] .md\:mx-4{margin-left:1rem;margin-right:1rem}[data-client=podlove] .md\:my-2{margin-bottom:.5rem;margin-top:.5rem}[data-client=podlove] .md\:mr-5{margin-right:1.25rem}[data-client=podlove] .md\:mt-0{margin-top:0}[data-client=podlove] .md\:block{display:block}[data-client=podlove] .md\:flex{display:flex}[data-client=podlove] .md\:grid{display:grid}[data-client=podlove] .md\:hidden{display:none}[data-client=podlove] .md\:w-4\/12{width:33.333333%}[data-client=podlove] .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}[data-client=podlove] .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}[data-client=podlove] .md\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}[data-client=podlove] .md\:gap-12{gap:3rem}[data-client=podlove] .md\:gap-4{gap:1rem}}
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/includes/api/episodes.php

    r3188654 r3195601  
    915915            $file->active = false;
    916916            $file->save();
     917        } else {
     918            return new \Podlove\Api\Error\NotFound();
    917919        }
    918920
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/includes/downloads.php

    r3088907 r3195601  
    131131
    132132    // set user agent
    133     $ua_string = trim($_SERVER['HTTP_USER_AGENT']);
     133    $ua_string = isset($_SERVER['HTTP_USER_AGENT']) ? trim($_SERVER['HTTP_USER_AGENT']) : '';
    134134    if ($agent = Model\UserAgent::find_or_create_by_uastring($ua_string)) {
    135135        $intent->user_agent_id = $agent->id;
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/includes/images.php

    r2987303 r3195601  
    22
    33use Podlove\Cache\HttpHeaderValidator;
     4use Podlove\Log;
    45use Podlove\Model\Image;
    56use Symfony\Component\Yaml\Yaml;
     
    8384    }
    8485
    85     // tell WP Super Cache to not cache download links
     86    // Tell WP Super Cache to not cache download links
    8687    if (!defined('DONOTCACHEPAGE')) {
    8788        define('DONOTCACHEPAGE', true);
    8889    }
    8990
    90     $image = (new Image($source_url, $file_name));
     91    $image = new Image($source_url, $file_name);
    9192
    9293    if (!$image->source_exists()) {
     
    9495    }
    9596
    96     // bail if download fails
     97    // Bail if download fails
    9798    if (!$image->source_exists()) {
     99        Log::get()->error('Download failed for image: '.$image->url());
    98100        status_header(307);
    99101        header('Location: '.$source_url);
     
    101103    }
    102104
    103     // do not try to enlarge images
    104     list($orig_width, $orig_height, $type, $attr) = getimagesize($image->original_file());
     105    $imageinfo = getimagesize($image->original_file());
    105106
     107    // Bail if we cannot determine image meta
     108    if ($imageinfo === false) {
     109        Log::get()->error('Image size cannot be determined for file: '.$image->original_file());
     110        status_header(307);
     111        header('Location: '.$source_url);
     112        exit;
     113    }
     114
     115    list($orig_width, $orig_height) = $imageinfo;
     116
     117    // Do not try to enlarge images
    106118    if ($width > $orig_width) {
    107119        $width = $orig_width;
     
    124136    $file = $image->resized_file();
    125137
     138    // Bail if resize fails
     139    if (!file_exists($file)) {
     140        Log::get()->error('Image resize failed for file: '.$file);
     141        status_header(307);
     142        header('Location: '.$source_url);
     143        exit;
     144    }
     145
    126146    $imageInfo = getimagesize($file);
    127147    switch ($imageInfo[2]) {
     
    138158
    139159            break;
     160
     161        default:
     162            Log::get()->error('Unsupported image type for file: '.$file);
     163
     164            return;
    140165    }
    141166
     
    146171    $time = filemtime($file);
    147172    $etag = md5($time.$source_url);
    148     $last_modified = gmdate('D, d M Y H:i:s \\G\\M\\T', $time);
     173    $last_modified = gmdate('D, d M Y H:i:s \G\M\T', $time);
    149174
    150     $if_modified_since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? $_SERVER['HTTP_IF_MODIFIED_SINCE'] : false;
    151     $if_none_match = isset($_SERVER['HTTP_IF_NONE_MATCH']) ? $_SERVER['HTTP_IF_NONE_MATCH'] : false;
     175    $if_modified_since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ?? false;
     176    $if_none_match = isset($_SERVER['HTTP_IF_NONE_MATCH']) ?? false;
    152177
    153178    if ((($if_none_match && $if_none_match == $etag) || (!$if_none_match))
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/lib/api/error.php

    r2987303 r3195601  
    33namespace Podlove\Api\Error;
    44
    5 use WP_Error;
    6 
    7 class ForbiddenAccess extends WP_Error
     5class ForbiddenAccess extends \WP_Error
    86{
    97    /**
    108     * Constructor.
    119     *
    12      * @param $code
    13      * @param $message
     10     * @param mixed $code
     11     * @param mixed $message
    1412     */
    1513    public function __construct($code = '', $message = '')
     
    2523}
    2624
    27 class NotFound extends WP_Error
     25class NotFound extends \WP_Error
    2826{
    2927    /**
    3028     * Constructor.
    3129     *
    32      * @param $code
    33      * @param $message
     30     * @param mixed $code
     31     * @param mixed $message
    3432     */
    3533    public function __construct($code = '', $message = '')
     
    3937        }
    4038        if (strlen($message) == 0) {
    41             $message = esc_html__('sorry, we do not found the requested resource');
     39            $message = esc_html__('sorry, we did not find the requested resource');
    4240        }
    4341        parent::__construct($code, $message, ['status' => 404]);
     
    4543}
    4644
    47 class NotFoundEpisode extends WP_Error
     45class NotFoundEpisode extends \WP_Error
    4846{
    4947    /**
    5048     * Constructor.
    5149     *
    52      * @param $code
    53      * @param $message
     50     * @param mixed $episode_id
    5451     */
    5552    public function __construct($episode_id)
    5653    {
    57         $message = 'sorry, we do not found the episode with ID '.$episode_id;
     54        $message = 'sorry, we did not find the episode with ID '.$episode_id;
    5855        parent::__construct('not_found', esc_html__($message), ['status' => 404]);
    5956    }
    6057}
    6158
    62 
    63 class NotSupported extends WP_Error
     59class NotSupported extends \WP_Error
    6460{
    6561    /**
    6662     * Constructor.
    6763     *
    68      * @param $code
    69      * @param $message
     64     * @param mixed $code
     65     * @param mixed $message
    7066     */
    7167    public function __construct($code = '', $message = '')
     
    8177}
    8278
    83 class InternalServerError extends WP_Error
     79class InternalServerError extends \WP_Error
    8480{
    8581    /**
    8682     * Constructor.
    8783     *
    88      * @param $code
    89      * @param $message
     84     * @param mixed $code
     85     * @param mixed $message
    9086     */
    9187    public function __construct($code = '', $message = '')
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/lib/model/download_intent.php

    r2377370 r3195601  
    8181
    8282                if ($area->type != 'continent') {
    83                     $parent_area = $get_parent_area($area->type);
    84                     $area->parent_id = $parent_area->id;
     83                    if ($parent_area = $get_parent_area($area->type)) {
     84                        $area->parent_id = $parent_area->id;
     85                    }
    8586                }
    8687
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/lib/model/image.php

    r3188654 r3195601  
    5454    public function __construct($url, $file_name = '')
    5555    {
     56        // FIXME: if $file_name is empty, the url will not work. I must not treat this silently!
    5657        $this->source_url = trim($url ?? '');
    5758        $this->file_name = sanitize_title($file_name);
     
    202203            $file_name = urlencode($this->file_name);
    203204
     205            // FIXME: some generated urls have an empty $file_name, which leads to the url not resolving
     206            // example: (new \Podlove\Model\Image("https://pbs.twimg.com/media/Dz2U-vTXgAATlqd.jpg:large"))->setWidth(100)->url();
    204207            if (get_option('permalink_structure')) {
    205208                $path = '/podlove/image/'
     
    354357        }
    355358
     359        // working around WordPress oddities: if WP saves the file under a name
     360        // other than the one we want ... rename the file.
     361        if ($result['path'] != $this->resized_file()) {
     362            @rename($result['path'], $this->resized_file());
     363        }
     364
    356365        // when a new image size is created, Template Cache must be cleared
    357366        TemplateCache::get_instance()->setup_global_purge();
     
    645654        $url = wp_parse_url($this->source_url);
    646655
    647         return pathinfo($url['path'], PATHINFO_EXTENSION);
     656        if (isset($url['path'])) {
     657            return pathinfo($url['path'], PATHINFO_EXTENSION);
     658        }
     659
     660        return '';
    648661    }
    649662}
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/lib/model/user_agent.php

    r2886306 r3195601  
    3737
    3838        $user_agent_match = array_reduce($user_agent_data, function ($agg, $item) use ($user_agent_string) {
    39             if ($agg != null) {
     39            if ($agg !== null) {
    4040                return $agg;
    4141            }
     
    5353        if ($user_agent_match) {
    5454            $this->client_name = isset($user_agent_match->app) ? $user_agent_match->app : '';
    55             $this->os_name = self::normalizeOS($user_agent_match->os);
     55            $this->os_name = isset($user_agent_match->os) ? self::normalizeOS($user_agent_match->os) : '';
    5656
    5757            if (isset($user_agent_match->bot) && $user_agent_match->bot) {
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/lib/modules/oembed/oembed.php

    r3088907 r3195601  
    4242            case 'XML':
    4343                header('Content-Type: application/xml; charset=utf-8');
    44                 $xml_source = new \SimpleXMLElement('<?xml version="1.0" encoding="UTF-8" '.'standalone="yes"?><oembed/>');
    45                 $episode = array_flip($episode);
    46                 array_walk_recursive($episode, [$xml_source, 'addChild']);
     44                $xml_source = new \SimpleXMLElement('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed/>');
     45
     46                foreach ($episode as $key => $value) {
     47                    $xml_source->{$key} = $value;
     48                }
     49
    4750                echo $xml_source->asXML();
    4851                exit;
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/lib/modules/plus/plus.php

    r2586582 r3195601  
    2121        (new FeedPusher($this, $this->api))->init();
    2222        (new FeedProxy($this, $this->api))->init();
    23         (new ImageGenerator($this, $this->api))->init();
     23
     24        // disabling unfinished feature
     25        // (new ImageGenerator($this, $this->api))->init();
    2426    }
    2527
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/lib/modules/transcripts/renderer.php

    r3190792 r3195601  
    102102
    103103        $pretty_voice = function ($voice) use ($contributors_map) {
    104             $contributor = $contributors_map[$voice];
    105             $voice_title = ($contributor && $contributor->getName()) ? $contributor->getName() : $voice;
     104            if (isset($contributors_map[$voice])) {
     105                $contributor = $contributors_map[$voice];
     106                $voice_title = ($contributor && $contributor->getName()) ? $contributor->getName() : $voice;
    106107
    107             if ($voice_title) {
    108                 return "<v {$voice_title}>";
    109             }
    110 
    111             if ($voice) {
    112                 return "<v {$voice}>";
     108                if ($voice_title) {
     109                    return "<v {$voice_title}>";
     110                }
    113111            }
    114112
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/podlove.php

    r3190792 r3195601  
    33 * Plugin Name: Podlove Podcast Publisher
    44 * Plugin URI:  https://podlove.org/podlove-podcast-publisher/
    5  * Version: 4.1.22
     5 * Version: 4.1.23
    66 * Requires at least: 4.9.6
    77 * Requires PHP: 8.0
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/readme.txt

    r3190792 r3195601  
    33Donate link: https://opencollective.com/podlove
    44Tags: podlove, podcast, publishing, rss, audio
    5 Tested up to: 6.7
    6 Stable tag: 4.1.22
     5Tested up to: 6.7.1
     6Stable tag: 4.1.23
    77Requires at least: 4.9.6
    88Requires PHP: 8.0
     
    115115
    116116== Changelog ==
     117
     118= 4.1.23 =
     119
     120* new: Auphonic file uploads display their upload progress
     121* fix: image cache sometimes saved the resized files under a wrong filename
     122* fix: image cache is now more robust, redirecting to the original image url instead of failing when any processing step fails
     123* fix: oembed xml generation with escaping
     124* fix: various PHP warnings/notices when trying to access nonexistent array keys
    117125
    118126= 4.1.22 =
  • podlove-podcasting-plugin-for-wordpress/tags/4.1.23/vendor/composer/installed.php

    r3190792 r3195601  
    22    'root' => array(
    33        'name' => 'podlove/podcast-publisher',
    4         'pretty_version' => '4.1.22',
    5         'version' => '4.1.22.0',
    6         'reference' => '353fbccf5bb77d1b530ea479a51ff4d1e8f027ae',
     4        'pretty_version' => '4.1.23',
     5        'version' => '4.1.23.0',
     6        'reference' => '767dc21031ad17efde634e1774bc64a258a13f6a',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    135135        ),
    136136        'podlove/podcast-publisher' => array(
    137             'pretty_version' => '4.1.22',
    138             'version' => '4.1.22.0',
    139             'reference' => '353fbccf5bb77d1b530ea479a51ff4d1e8f027ae',
     137            'pretty_version' => '4.1.23',
     138            'version' => '4.1.23.0',
     139            'reference' => '767dc21031ad17efde634e1774bc64a258a13f6a',
    140140            'type' => 'library',
    141141            'install_path' => __DIR__ . '/../../',
  • podlove-podcasting-plugin-for-wordpress/trunk/client/dist/client.js

    r3188654 r3195601  
    1 (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)}})();function Kh(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const kP="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",RP=Kh(kP);function cs(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=on(r)?DP(r):cs(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 LP=/;(?![^(]*\))/g,NP=/:([^]+)/,MP=/\/\*.*?\*\//gs;function DP(e){const t={};return e.replace(MP,"").split(LP).forEach(n=>{if(n){const r=n.split(NP);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function St(e){let t="";if(on(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=St(e[n]);r&&(t+=r+" ")}else if(qt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function FP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!on(t)&&(e.class=St(t)),n&&(e.style=cs(n)),e}const U=e=>on(e)?e:e==null?"":Je(e)||qt(e)&&(e.toString===a1||!et(e.toString))?JSON.stringify(e,i1,2):String(e),i1=(e,t)=>t&&t.__v_isRef?i1(e,t.value):Fs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:l1(t)?{[`Set(${t.size})`]:[...t.values()]}:qt(t)&&!Je(t)&&!u1(t)?String(t):t,Ut={},Ds=[],go=()=>{},BP=()=>!1,UP=/^on[^a-z]/,Yc=e=>UP.test(e),s1=e=>e.startsWith("onUpdate:"),$n=Object.assign,Gh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jP=Object.prototype.hasOwnProperty,_t=(e,t)=>jP.call(e,t),Je=Array.isArray,Fs=e=>$a(e)==="[object Map]",l1=e=>$a(e)==="[object Set]",HP=e=>$a(e)==="[object RegExp]",et=e=>typeof e=="function",on=e=>typeof e=="string",Xh=e=>typeof e=="symbol",qt=e=>e!==null&&typeof e=="object",Jh=e=>qt(e)&&et(e.then)&&et(e.catch),a1=Object.prototype.toString,$a=e=>a1.call(e),VP=e=>$a(e).slice(8,-1),u1=e=>$a(e)==="[object Object]",Yh=e=>on(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vl=Kh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},WP=/-(\w)/g,Qr=Zc(e=>e.replace(WP,(t,n)=>n?n.toUpperCase():"")),zP=/\B([A-Z])/g,Qc=Zc(e=>e.replace(zP,"-$1").toLowerCase()),ed=Zc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wl=Zc(e=>e?`on${ed(e)}`:""),Ws=(e,t)=>!Object.is(e,t),zl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},vc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},qP=e=>{const t=parseFloat(e);return isNaN(t)?e:t},KP=e=>{const t=on(e)?Number(e):NaN;return isNaN(t)?e:t};let jy;const GP=()=>jy||(jy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let pr;class Zh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pr,!t&&pr&&(this.index=(pr.scopes||(pr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=pr;try{return pr=this,t()}finally{pr=n}}}on(){pr=this}off(){pr=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 XP(e){return new Zh(e)}function c1(e,t=pr){t&&t.active&&t.effects.push(e)}function d1(){return pr}function f1(e){pr&&pr.cleanups.push(e)}const Qh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},p1=e=>(e.w&vi)>0,h1=e=>(e.n&vi)>0,JP=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=vi},YP=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];p1(o)&&!h1(o)?o.delete(e):t[n++]=o,o.w&=~vi,o.n&=~vi}t.length=n}},yc=new WeakMap;let Bl=0,vi=1;const qp=30;let Gr;const Xi=Symbol(""),Kp=Symbol("");class Ca{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,c1(this,r)}run(){if(!this.active)return this.fn();let t=Gr,n=hi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Gr,Gr=this,hi=!0,vi=1<<++Bl,Bl<=qp?JP(this):Hy(this),this.fn()}finally{Bl<=qp&&YP(this),vi=1<<--Bl,Gr=this.parent,hi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Gr===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 ZP(e,t){e.effect&&(e=e.effect.fn);const n=new Ca(e);t&&($n(n,t),t.scope&&c1(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function QP(e){e.effect.stop()}let hi=!0;const m1=[];function al(){m1.push(hi),hi=!1}function ul(){const e=m1.pop();hi=e===void 0?!0:e}function rr(e,t,n){if(hi&&Gr){let r=yc.get(e);r||yc.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Qh()),g1(o)}}function g1(e,t){let n=!1;Bl<=qp?h1(e)||(e.n|=vi,n=!p1(e)):n=!e.has(Gr),n&&(e.add(Gr),Gr.deps.push(e))}function Wo(e,t,n,r,o,s){const l=yc.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((d,p)=>{(p==="length"||p>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?Yh(n)&&a.push(l.get("length")):(a.push(l.get(Xi)),Fs(e)&&a.push(l.get(Kp)));break;case"delete":Je(e)||(a.push(l.get(Xi)),Fs(e)&&a.push(l.get(Kp)));break;case"set":Fs(e)&&a.push(l.get(Xi));break}if(a.length===1)a[0]&&Gp(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);Gp(Qh(c))}}function Gp(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!==Gr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function ek(e,t){var n;return(n=yc.get(e))===null||n===void 0?void 0:n.get(t)}const tk=Kh("__proto__,__v_isRef,__isVue"),v1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xh)),nk=td(),rk=td(!1,!0),ok=td(!0),ik=td(!0,!0),Wy=sk();function sk(){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++)rr(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){al();const r=Ue(this)[t].apply(this,n);return ul(),r}}),e}function lk(e){const t=Ue(this);return rr(t,"has",e),t.hasOwnProperty(e)}function td(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?x1:E1:t?S1:w1).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 lk}const a=Reflect.get(r,o,s);return(Xh(o)?v1.has(o):tk(o))||(e||rr(r,"get",o),t)?a:dn(a)?l&&Yh(o)?a:a.value:qt(a)?e?tm(a):Ei(a):a}}const ak=y1(),uk=y1(!0);function y1(e=!1){return function(n,r,o,s){let l=n[r];if(os(l)&&dn(l)&&!dn(o))return!1;if(!e&&(!oa(o)&&!os(o)&&(l=Ue(l),o=Ue(o)),!Je(n)&&dn(l)&&!dn(o)))return l.value=o,!0;const a=Je(n)&&Yh(r)?Number(r)<n.length:_t(n,r),c=Reflect.set(n,r,o,s);return n===Ue(s)&&(a?Ws(o,l)&&Wo(n,"set",r,o):Wo(n,"add",r,o)),c}}function ck(e,t){const n=_t(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Wo(e,"delete",t,void 0),r}function dk(e,t){const n=Reflect.has(e,t);return(!Xh(t)||!v1.has(t))&&rr(e,"has",t),n}function fk(e){return rr(e,"iterate",Je(e)?"length":Xi),Reflect.ownKeys(e)}const b1={get:nk,set:ak,deleteProperty:ck,has:dk,ownKeys:fk},_1={get:ok,set(e,t){return!0},deleteProperty(e,t){return!0}},pk=$n({},b1,{get:rk,set:uk}),hk=$n({},_1,{get:ik}),em=e=>e,nd=e=>Reflect.getPrototypeOf(e);function Du(e,t,n=!1,r=!1){e=e.__v_raw;const o=Ue(e),s=Ue(t);n||(t!==s&&rr(o,"get",t),rr(o,"get",s));const{has:l}=nd(o),a=r?em:n?om:ia;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 Fu(e,t=!1){const n=this.__v_raw,r=Ue(n),o=Ue(e);return t||(e!==o&&rr(r,"has",e),rr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Bu(e,t=!1){return e=e.__v_raw,!t&&rr(Ue(e),"iterate",Xi),Reflect.get(e,"size",e)}function zy(e){e=Ue(e);const t=Ue(this);return nd(t).has.call(t,e)||(t.add(e),Wo(t,"add",e,e)),this}function qy(e,t){t=Ue(t);const n=Ue(this),{has:r,get:o}=nd(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?Ws(t,l)&&Wo(n,"set",e,t):Wo(n,"add",e,t),this}function Ky(e){const t=Ue(this),{has:n,get:r}=nd(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&&Wo(t,"delete",e,void 0),s}function Gy(){const e=Ue(this),t=e.size!==0,n=e.clear();return t&&Wo(e,"clear",void 0,void 0),n}function Uu(e,t){return function(r,o){const s=this,l=s.__v_raw,a=Ue(l),c=t?em:e?om:ia;return!e&&rr(a,"iterate",Xi),l.forEach((d,p)=>r.call(o,c(d),c(p),s))}}function ju(e,t,n){return function(...r){const o=this.__v_raw,s=Ue(o),l=Fs(s),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,d=o[e](...r),p=n?em:t?om:ia;return!t&&rr(s,"iterate",c?Kp:Xi),{next(){const{value:h,done:g}=d.next();return g?{value:h,done:g}:{value:a?[p(h[0]),p(h[1])]:p(h),done:g}},[Symbol.iterator](){return this}}}}function ii(e){return function(...t){return e==="delete"?!1:this}}function mk(){const e={get(s){return Du(this,s)},get size(){return Bu(this)},has:Fu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Uu(!1,!1)},t={get(s){return Du(this,s,!1,!0)},get size(){return Bu(this)},has:Fu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Uu(!1,!0)},n={get(s){return Du(this,s,!0)},get size(){return Bu(this,!0)},has(s){return Fu.call(this,s,!0)},add:ii("add"),set:ii("set"),delete:ii("delete"),clear:ii("clear"),forEach:Uu(!0,!1)},r={get(s){return Du(this,s,!0,!0)},get size(){return Bu(this,!0)},has(s){return Fu.call(this,s,!0)},add:ii("add"),set:ii("set"),delete:ii("delete"),clear:ii("clear"),forEach:Uu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=ju(s,!1,!1),n[s]=ju(s,!0,!1),t[s]=ju(s,!1,!0),r[s]=ju(s,!0,!0)}),[e,n,t,r]}const[gk,vk,yk,bk]=mk();function rd(e,t){const n=t?e?bk:yk:e?vk:gk;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 _k={get:rd(!1,!1)},wk={get:rd(!1,!0)},Sk={get:rd(!0,!1)},Ek={get:rd(!0,!0)},w1=new WeakMap,S1=new WeakMap,E1=new WeakMap,x1=new WeakMap;function xk(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $k(e){return e.__v_skip||!Object.isExtensible(e)?0:xk(VP(e))}function Ei(e){return os(e)?e:od(e,!1,b1,_k,w1)}function $1(e){return od(e,!1,pk,wk,S1)}function tm(e){return od(e,!0,_1,Sk,E1)}function Ck(e){return od(e,!0,hk,Ek,x1)}function od(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=$k(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Ji(e){return os(e)?Ji(e.__v_raw):!!(e&&e.__v_isReactive)}function os(e){return!!(e&&e.__v_isReadonly)}function oa(e){return!!(e&&e.__v_isShallow)}function nm(e){return Ji(e)||os(e)}function Ue(e){const t=e&&e.__v_raw;return t?Ue(t):e}function rm(e){return vc(e,"__v_skip",!0),e}const ia=e=>qt(e)?Ei(e):e,om=e=>qt(e)?tm(e):e;function im(e){hi&&Gr&&(e=Ue(e),g1(e.dep||(e.dep=Qh())))}function id(e,t){e=Ue(e);const n=e.dep;n&&Gp(n)}function dn(e){return!!(e&&e.__v_isRef===!0)}function _e(e){return C1(e,!1)}function sd(e){return C1(e,!0)}function C1(e,t){return dn(e)?e:new Tk(e,t)}class Tk{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:ia(t)}get value(){return im(this),this._value}set value(t){const n=this.__v_isShallow||oa(t)||os(t);t=n?t:Ue(t),Ws(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ia(t),id(this))}}function Xp(e){id(e)}function jn(e){return dn(e)?e.value:e}const Ok={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 sm(e){return Ji(e)?e:new Proxy(e,Ok)}class Ak{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>im(this),()=>id(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Ik(e){return new Ak(e)}function lm(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=T1(e,n);return t}class Pk{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 ek(Ue(this._object),this._key)}}function T1(e,t,n){const r=e[t];return dn(r)?r:new Pk(e,t,n)}var O1;class kk{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[O1]=!1,this._dirty=!0,this.effect=new Ca(t,()=>{this._dirty||(this._dirty=!0,id(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Ue(this);return im(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}O1="__v_isReadonly";function Rk(e,t,n=!1){let r,o;const s=et(e);return s?(r=e,o=go):(r=e.get,o=e.set),new kk(r,o,s||!o,n)}function Lk(e,...t){}function Nk(e,t){}function jo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){ds(s,t,n)}return o}function vr(e,t,n,r){if(et(e)){const s=jo(e,t,n,r);return s&&Jh(s)&&s.catch(l=>{ds(l,t,n)}),s}const o=[];for(let s=0;s<e.length;s++)o.push(vr(e[s],t,n,r));return o}function ds(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 d=s.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,a)===!1)return}s=s.parent}const c=t.appContext.config.errorHandler;if(c){jo(c,null,10,[e,l,a]);return}}Mk(e,n,o,r)}function Mk(e,t,n,r=!0){console.error(e)}let sa=!1,Jp=!1;const In=[];let mo=0;const Bs=[];let Mo=null,Hi=0;const A1=Promise.resolve();let am=null;function rn(e){const t=am||A1;return e?t.then(this?e.bind(this):e):t}function Dk(e){let t=mo+1,n=In.length;for(;t<n;){const r=t+n>>>1;la(In[r])<e?t=r+1:n=r}return t}function ld(e){(!In.length||!In.includes(e,sa&&e.allowRecurse?mo+1:mo))&&(e.id==null?In.push(e):In.splice(Dk(e.id),0,e),I1())}function I1(){!sa&&!Jp&&(Jp=!0,am=A1.then(P1))}function Fk(e){const t=In.indexOf(e);t>mo&&In.splice(t,1)}function um(e){Je(e)?Bs.push(...e):(!Mo||!Mo.includes(e,e.allowRecurse?Hi+1:Hi))&&Bs.push(e),I1()}function Xy(e,t=sa?mo+1:0){for(;t<In.length;t++){const n=In[t];n&&n.pre&&(In.splice(t,1),t--,n())}}function bc(e){if(Bs.length){const t=[...new Set(Bs)];if(Bs.length=0,Mo){Mo.push(...t);return}for(Mo=t,Mo.sort((n,r)=>la(n)-la(r)),Hi=0;Hi<Mo.length;Hi++)Mo[Hi]();Mo=null,Hi=0}}const la=e=>e.id==null?1/0:e.id,Bk=(e,t)=>{const n=la(e)-la(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function P1(e){Jp=!1,sa=!0,In.sort(Bk);try{for(mo=0;mo<In.length;mo++){const t=In[mo];t&&t.active!==!1&&jo(t,null,14)}}finally{mo=0,In.length=0,bc(),sa=!1,am=null,(In.length||Bs.length)&&P1()}}let Ns,Hu=[];function k1(e,t){var n,r;Ns=e,Ns?(Ns.enabled=!0,Hu.forEach(({event:o,args:s})=>Ns.emit(o,...s)),Hu=[]):typeof window<"u"&&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=>{k1(s,t)}),setTimeout(()=>{Ns||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Hu=[])},3e3)):Hu=[]}function Uk(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:g}=r[p]||Ut;g&&(o=n.map(y=>on(y)?y.trim():y)),h&&(o=n.map(qP))}let a,c=r[a=Wl(t)]||r[a=Wl(Qr(t))];!c&&s&&(c=r[a=Wl(Qc(t))]),c&&vr(c,e,6,o);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,vr(d,e,6,o)}}function R1(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=d=>{const p=R1(d,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 ad(e,t){return!e||!Yc(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,Qc(t))||_t(e,t))}let xn=null,ud=null;function aa(e){const t=xn;return xn=e,ud=e&&e.type.__scopeId||null,t}function jk(e){ud=e}function Hk(){ud=null}const Vk=e=>ye;function ye(e,t=xn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&rh(-1);const s=aa(t);let l;try{l=e(...o)}finally{aa(s),r._d&&rh(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function oc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[l],slots:a,attrs:c,emit:d,render:p,renderCache:h,data:g,setupState:y,ctx:_,inheritAttrs:S}=e;let C,T;const w=aa(e);try{if(n.shapeFlag&4){const O=o||r;C=hr(p.call(O,O,h,s,y,g,_)),T=c}else{const O=t;C=hr(O.length>1?O(s,{attrs:c,slots:a,emit:d}):O(s,null)),T=t.props?c:zk(c)}}catch(O){Gl.length=0,ds(O,e,1),C=q(Rn)}let E=C;if(T&&S!==!1){const O=Object.keys(T),{shapeFlag:$}=E;O.length&&$&7&&(l&&O.some(s1)&&(T=qk(T,l)),E=Br(E,T))}return n.dirs&&(E=Br(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),C=E,aa(w),C}function Wk(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(yi(r)){if(r.type!==Rn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const zk=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yc(n))&&((t||(t={}))[n]=e[n]);return t},qk=(e,t)=>{const n={};for(const r in e)(!s1(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Kk(e,t,n){const{props:r,children:o,component:s}=e,{props:l,children:a,patchFlag:c}=t,d=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,d):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const g=p[h];if(l[g]!==r[g]&&!ad(d,g))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?Jy(r,l,d):!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]&&!ad(n,s))return!0}return!1}function cm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const L1=e=>e.__isSuspense,Gk={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,l,a,c,d){e==null?Jk(t,n,r,o,s,l,a,c,d):Yk(e,t,n,r,o,l,a,c,d)},hydrate:Zk,create:dm,normalize:Qk},Xk=Gk;function ua(e,t){const n=e.props&&e.props[t];et(n)&&n()}function Jk(e,t,n,r,o,s,l,a,c){const{p:d,o:{createElement:p}}=c,h=p("div"),g=e.suspense=dm(e,o,r,t,h,n,s,l,a,c);d(null,g.pendingBranch=e.ssContent,h,null,r,g,s,l),g.deps>0?(ua(e,"onPending"),ua(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,s,l),Us(g,e.ssFallback)):g.resolve()}function Yk(e,t,n,r,o,s,l,a,{p:c,um:d,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const g=t.ssContent,y=t.ssFallback,{activeBranch:_,pendingBranch:S,isInFallback:C,isHydrating:T}=h;if(S)h.pendingBranch=g,Xr(g,S)?(c(S,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():C&&(c(_,y,n,r,o,null,s,l,a),Us(h,y))):(h.pendingId++,T?(h.isHydrating=!1,h.activeBranch=S):d(S,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),C?(c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():(c(_,y,n,r,o,null,s,l,a),Us(h,y))):_&&Xr(g,_)?(c(_,g,n,r,o,h,s,l,a),h.resolve(!0)):(c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0&&h.resolve()));else if(_&&Xr(g,_))c(_,g,n,r,o,h,s,l,a),Us(h,g);else if(ua(t,"onPending"),h.pendingBranch=g,h.pendingId++,c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0)h.resolve();else{const{timeout:w,pendingId:E}=h;w>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},w):w===0&&h.fallback(y)}}function dm(e,t,n,r,o,s,l,a,c,d,p=!1){const{p:h,m:g,um:y,n:_,o:{parentNode:S,remove:C}}=d,T=e.props?KP(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof T=="number"?T:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:O,activeBranch:$,pendingBranch:P,pendingId:k,effects:I,parentComponent:H,container:D}=w;if(w.isHydrating)w.isHydrating=!1;else if(!E){const G=$&&P.transition&&P.transition.mode==="out-in";G&&($.transition.afterLeave=()=>{k===w.pendingId&&g(P,D,te,0)});let{anchor:te}=w;$&&(te=_($),y($,H,w,!0)),G||g(P,D,te,0)}Us(w,P),w.pendingBranch=null,w.isInFallback=!1;let F=w.parent,z=!1;for(;F;){if(F.pendingBranch){F.effects.push(...I),z=!0;break}F=F.parent}z||um(I),w.effects=[],ua(O,"onResolve")},fallback(E){if(!w.pendingBranch)return;const{vnode:O,activeBranch:$,parentComponent:P,container:k,isSVG:I}=w;ua(O,"onFallback");const H=_($),D=()=>{w.isInFallback&&(h(null,E,k,H,P,null,I,a,c),Us(w,E))},F=E.transition&&E.transition.mode==="out-in";F&&($.transition.afterLeave=D),w.isInFallback=!0,y($,P,null,!0),F||D()},move(E,O,$){w.activeBranch&&g(w.activeBranch,E,O,$),w.container=E},next(){return w.activeBranch&&_(w.activeBranch)},registerDep(E,O){const $=!!w.pendingBranch;$&&w.deps++;const P=E.vnode.el;E.asyncDep.catch(k=>{ds(k,E,0)}).then(k=>{if(E.isUnmounted||w.isUnmounted||w.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:I}=E;oh(E,k,!1),P&&(I.el=P);const H=!P&&E.subTree.el;O(E,I,S(P||E.subTree.el),P?null:_(E.subTree),w,l,c),H&&C(H),cm(E,I.el),$&&--w.deps===0&&w.resolve()})},unmount(E,O){w.isUnmounted=!0,w.activeBranch&&y(w.activeBranch,n,E,O),w.pendingBranch&&y(w.pendingBranch,n,E,O)}};return w}function Zk(e,t,n,r,o,s,l,a,c){const d=t.suspense=dm(t,r,n,e.parentNode,document.createElement("div"),null,o,s,l,a,!0),p=c(e,d.pendingBranch=t.ssContent,n,d,s,l);return d.deps===0&&d.resolve(),p}function Qk(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=ls&&e._c;n&&(e._d=!1,N()),e=e(),n&&(e._d=!0,t=Jn,uw())}return Je(e)&&(e=Wk(e)),e=hr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function N1(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):um(e)}function Us(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,cm(r,o))}function Zt(e,t){if(Jt){let n=Jt.provides;const r=Jt.parent&&Jt.parent.provides;r===n&&(n=Jt.provides=Object.create(r)),n[e]=t}}function kt(e,t,n=!1){const r=Jt||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 Ta(e,null,t)}function M1(e,t){return Ta(e,null,{flush:"post"})}function eR(e,t){return Ta(e,null,{flush:"sync"})}const Vu={};function Ft(e,t,n){return Ta(e,t,n)}function Ta(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:l}=Ut){const a=d1()===(Jt==null?void 0:Jt.scope)?Jt:null;let c,d=!1,p=!1;if(dn(e)?(c=()=>e.value,d=oa(e)):Ji(e)?(c=()=>e,r=!0):Je(e)?(p=!0,d=e.some(E=>Ji(E)||oa(E)),c=()=>e.map(E=>{if(dn(E))return E.value;if(Ji(E))return zi(E);if(et(E))return jo(E,a,2)})):et(e)?t?c=()=>jo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),vr(e,a,3,[g])}:c=go,t&&r){const E=c;c=()=>zi(E())}let h,g=E=>{h=T.onStop=()=>{jo(E,a,4)}},y;if(qs)if(g=go,t?n&&vr(t,a,3,[c(),p?[]:void 0,g]):c(),o==="sync"){const E=Ew();y=E.__watcherHandles||(E.__watcherHandles=[])}else return go;let _=p?new Array(e.length).fill(Vu):Vu;const S=()=>{if(T.active)if(t){const E=T.run();(r||d||(p?E.some((O,$)=>Ws(O,_[$])):Ws(E,_)))&&(h&&h(),vr(t,a,3,[E,_===Vu?void 0:p&&_[0]===Vu?[]:_,g]),_=E)}else T.run()};S.allowRecurse=!!t;let C;o==="sync"?C=S:o==="post"?C=()=>Sn(S,a&&a.suspense):(S.pre=!0,a&&(S.id=a.uid),C=()=>ld(S));const T=new Ca(c,C);t?n?S():_=T.run():o==="post"?Sn(T.run.bind(T),a&&a.suspense):T.run();const w=()=>{T.stop(),a&&a.scope&&Gh(a.scope.effects,T)};return y&&y.push(w),w}function tR(e,t,n){const r=this.proxy,o=on(e)?e.includes(".")?D1(r,e):()=>r[e]:e.bind(r,r);let s;et(t)?s=t:(s=t.handler,n=t);const l=Jt;bi(this);const a=Ta(o,s.bind(r),n);return l?bi(l):mi(),a}function D1(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(l1(e)||Fs(e))e.forEach(n=>{zi(n,t)});else if(u1(e))for(const n in e)zi(e[n],t);return e}function fm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vt(()=>{e.isMounted=!0}),fs(()=>{e.isUnmounting=!0}),e}const Pr=[Function,Array],nR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Pr,onEnter:Pr,onAfterEnter:Pr,onEnterCancelled:Pr,onBeforeLeave:Pr,onLeave:Pr,onAfterLeave:Pr,onLeaveCancelled:Pr,onBeforeAppear:Pr,onAppear:Pr,onAfterAppear:Pr,onAppearCancelled:Pr},setup(e,{slots:t}){const n=Go(),r=fm();let o;return()=>{const s=t.default&&cd(t.default(),!0);if(!s||!s.length)return;let l=s[0];if(s.length>1){for(const S of s)if(S.type!==Rn){l=S;break}}const a=Ue(e),{mode:c}=a;if(r.isLeaving)return pp(l);const d=Zy(l);if(!d)return pp(l);const p=zs(d,a,r,n);is(d,p);const h=n.subTree,g=h&&Zy(h);let y=!1;const{getTransitionKey:_}=d.type;if(_){const S=_();o===void 0?o=S:S!==o&&(o=S,y=!0)}if(g&&g.type!==Rn&&(!Xr(d,g)||y)){const S=zs(g,a,r,n);if(is(g,S),c==="out-in")return r.isLeaving=!0,S.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},pp(l);c==="in-out"&&d.type!==Rn&&(S.delayLeave=(C,T,w)=>{const E=F1(r,g);E[String(g.key)]=g,C._leaveCb=()=>{T(),C._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=w})}return l}}},pm=nR;function F1(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 zs(e,t,n,r){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:g,onAfterLeave:y,onLeaveCancelled:_,onBeforeAppear:S,onAppear:C,onAfterAppear:T,onAppearCancelled:w}=t,E=String(e.key),O=F1(n,e),$=(I,H)=>{I&&vr(I,r,9,H)},P=(I,H)=>{const D=H[1];$(I,H),Je(I)?I.every(F=>F.length<=1)&&D():I.length<=1&&D()},k={mode:s,persisted:l,beforeEnter(I){let H=a;if(!n.isMounted)if(o)H=S||a;else return;I._leaveCb&&I._leaveCb(!0);const D=O[E];D&&Xr(e,D)&&D.el._leaveCb&&D.el._leaveCb(),$(H,[I])},enter(I){let H=c,D=d,F=p;if(!n.isMounted)if(o)H=C||c,D=T||d,F=w||p;else return;let z=!1;const G=I._enterCb=te=>{z||(z=!0,te?$(F,[I]):$(D,[I]),k.delayedLeave&&k.delayedLeave(),I._enterCb=void 0)};H?P(H,[I,G]):G()},leave(I,H){const D=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return H();$(h,[I]);let F=!1;const z=I._leaveCb=G=>{F||(F=!0,H(),G?$(_,[I]):$(y,[I]),I._leaveCb=void 0,O[D]===e&&delete O[D])};O[D]=e,g?P(g,[I,z]):z()},clone(I){return zs(I,t,n,r)}};return k}function pp(e){if(Oa(e))return e=Br(e),e.children=null,e}function Zy(e){return Oa(e)?e.children?e.children[0]:void 0:e}function is(e,t){e.shapeFlag&6&&e.component?is(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 cd(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(cd(l.children,t,a))):(t||l.type!==Rn)&&r.push(a!=null?Br(l,{key:a}):l)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function ge(e){return et(e)?{setup:e,name:e.name}:e}const Yi=e=>!!e.type.__asyncLoader;function rR(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,d,p=0;const h=()=>(p++,c=null,g()),g=()=>{let y;return c||(y=c=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),a)return new Promise((S,C)=>{a(_,()=>S(h()),()=>C(_),p+1)});throw _}).then(_=>y!==c&&c?c:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),d=_,_)))};return ge({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return d},setup(){const y=Jt;if(d)return()=>hp(d,y);const _=w=>{c=null,ds(w,y,13,!r)};if(l&&y.suspense||qs)return g().then(w=>()=>hp(w,y)).catch(w=>(_(w),()=>r?q(r,{error:w}):null));const S=_e(!1),C=_e(),T=_e(!!o);return o&&setTimeout(()=>{T.value=!1},o),s!=null&&setTimeout(()=>{if(!S.value&&!C.value){const w=new Error(`Async component timed out after ${s}ms.`);_(w),C.value=w}},s),g().then(()=>{S.value=!0,y.parent&&Oa(y.parent.vnode)&&ld(y.parent.update)}).catch(w=>{_(w),C.value=w}),()=>{if(S.value&&d)return hp(d,y);if(C.value&&r)return q(r,{error:C.value});if(n&&!T.value)return q(n)}}})}function hp(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 Oa=e=>e.type.__isKeepAlive,oR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Go(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const o=new Map,s=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:d,um:p,o:{createElement:h}}}=r,g=h("div");r.activate=(w,E,O,$,P)=>{const k=w.component;d(w,E,O,0,a),c(k.vnode,w,E,O,k,a,$,w.slotScopeIds,P),Sn(()=>{k.isDeactivated=!1,k.a&&zl(k.a);const I=w.props&&w.props.onVnodeMounted;I&&Xn(I,k.parent,w)},a)},r.deactivate=w=>{const E=w.component;d(w,g,null,1,a),Sn(()=>{E.da&&zl(E.da);const O=w.props&&w.props.onVnodeUnmounted;O&&Xn(O,E.parent,w),E.isDeactivated=!0},a)};function y(w){mp(w),p(w,n,a,!0)}function _(w){o.forEach((E,O)=>{const $=sh(E.type);$&&(!w||!w($))&&S(O)})}function S(w){const E=o.get(w);!l||!Xr(E,l)?y(E):l&&mp(l),o.delete(w),s.delete(w)}Ft(()=>[e.include,e.exclude],([w,E])=>{w&&_(O=>Ul(w,O)),E&&_(O=>!Ul(E,O))},{flush:"post",deep:!0});let C=null;const T=()=>{C!=null&&o.set(C,gp(n.subTree))};return vt(T),fd(T),fs(()=>{o.forEach(w=>{const{subTree:E,suspense:O}=n,$=gp(E);if(w.type===$.type&&w.key===$.key){mp($);const P=$.component.da;P&&Sn(P,O);return}y(w)})}),()=>{if(C=null,!t.default)return null;const w=t.default(),E=w[0];if(w.length>1)return l=null,w;if(!yi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let O=gp(E);const $=O.type,P=sh(Yi(O)?O.type.__asyncResolved||{}:$),{include:k,exclude:I,max:H}=e;if(k&&(!P||!Ul(k,P))||I&&P&&Ul(I,P))return l=O,E;const D=O.key==null?$:O.key,F=o.get(D);return O.el&&(O=Br(O),E.shapeFlag&128&&(E.ssContent=O)),C=D,F?(O.el=F.el,O.component=F.component,O.transition&&is(O,O.transition),O.shapeFlag|=512,s.delete(D),s.add(D)):(s.add(D),H&&s.size>parseInt(H,10)&&S(s.values().next().value)),O.shapeFlag|=256,l=O,L1(E.type)?E:O}}},iR=oR;function Ul(e,t){return Je(e)?e.some(n=>Ul(n,t)):on(e)?e.split(",").includes(t):HP(e)?e.test(t):!1}function B1(e,t){j1(e,"a",t)}function U1(e,t){j1(e,"da",t)}function j1(e,t,n=Jt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(dd(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Oa(o.parent.vnode)&&sR(r,t,n,o),o=o.parent}}function sR(e,t,n,r){const o=dd(t,e,r,!0);Qt(()=>{Gh(r[t],o)},n)}function mp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function gp(e){return e.shapeFlag&128?e.ssContent:e}function dd(e,t,n=Jt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;al(),bi(n);const a=vr(t,n,e,l);return mi(),ul(),a});return r?o.unshift(s):o.push(s),s}}const Ko=e=>(t,n=Jt)=>(!qs||e==="sp")&&dd(e,(...r)=>t(...r),n),H1=Ko("bm"),vt=Ko("m"),V1=Ko("bu"),fd=Ko("u"),fs=Ko("bum"),Qt=Ko("um"),W1=Ko("sp"),z1=Ko("rtg"),q1=Ko("rtc");function K1(e,t=Jt){dd("ec",e,t)}function G1(e,t){const n=xn;if(n===null)return e;const r=hd(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,a,c,d=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:d}))}return e}function ho(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&&(al(),vr(c,n,8,[e.el,a,e,t]),ul())}}const hm="components",lR="directives";function J(e,t){return mm(hm,e,!0,t)||e}const X1=Symbol();function aR(e){return on(e)?mm(hm,e,!1)||e:e||X1}function uR(e){return mm(lR,e)}function mm(e,t,n=!0,r=!1){const o=xn||Jt;if(o){const s=o.type;if(e===hm){const a=sh(s,!1);if(a&&(a===t||a===Qr(t)||a===ed(Qr(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[Qr(t)]||e[ed(Qr(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 d=l[a];o[a]=t(e[d],d,a,s&&s[a])}}else o=[];return n&&(n[r]=o),o}function cR(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 _r(e,t,n={},r,o){if(xn.isCE||xn.parent&&Yi(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&&J1(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 J1(e){return e.some(t=>yi(t)?!(t.type===Rn||t.type===Fe&&!J1(t.children)):!0)?e:null}function dR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Wl(r)]=e[r];return n}const Yp=e=>e?mw(e)?hd(e)||e.proxy:Yp(e.parent):null,ql=$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=>Yp(e.parent),$root:e=>Yp(e.root),$emit:e=>e.emit,$options:e=>gm(e),$forceUpdate:e=>e.f||(e.f=()=>ld(e.update)),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>tR.bind(e)}),vp=(e,t)=>e!==Ut&&!e.__isScriptSetup&&_t(e,t),Zp={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:l,type:a,appContext:c}=e;let d;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(vp(r,t))return l[t]=1,r[t];if(o!==Ut&&_t(o,t))return l[t]=2,o[t];if((d=e.propsOptions[0])&&_t(d,t))return l[t]=3,s[t];if(n!==Ut&&_t(n,t))return l[t]=4,n[t];Qp&&(l[t]=0)}}const p=ql[t];let h,g;if(p)return t==="$attrs"&&rr(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(g=c.config.globalProperties,_t(g,t))return g[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return vp(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)||vp(t,l)||(a=s[0])&&_t(a,l)||_t(r,l)||_t(ql,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)}},fR=$n({},Zp,{get(e,t){if(t!==Symbol.unscopables)return Zp.get(e,t,e)},has(e,t){return t[0]!=="_"&&!RP(t)}});let Qp=!0;function pR(e){const t=gm(e),n=e.proxy,r=e.ctx;Qp=!1,t.beforeCreate&&eb(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:l,watch:a,provide:c,inject:d,created:p,beforeMount:h,mounted:g,beforeUpdate:y,updated:_,activated:S,deactivated:C,beforeDestroy:T,beforeUnmount:w,destroyed:E,unmounted:O,render:$,renderTracked:P,renderTriggered:k,errorCaptured:I,serverPrefetch:H,expose:D,inheritAttrs:F,components:z,directives:G,filters:te}=t;if(d&&hR(d,r,null,e.appContext.config.unwrapInjectedRef),l)for(const Ae in l){const Ie=l[Ae];et(Ie)&&(r[Ae]=Ie.bind(n))}if(o){const Ae=o.call(n,n);qt(Ae)&&(e.data=Ei(Ae))}if(Qp=!0,s)for(const Ae in s){const Ie=s[Ae],Ye=et(Ie)?Ie.bind(n,n):et(Ie.get)?Ie.get.bind(n,n):go,ft=!et(Ie)&&et(Ie.set)?Ie.set.bind(n):go,Le=ce({get:Ye,set:ft});Object.defineProperty(r,Ae,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Ge=>Le.value=Ge})}if(a)for(const Ae in a)Y1(a[Ae],r,n,Ae);if(c){const Ae=et(c)?c.call(n):c;Reflect.ownKeys(Ae).forEach(Ie=>{Zt(Ie,Ae[Ie])})}p&&eb(p,e,"c");function be(Ae,Ie){Je(Ie)?Ie.forEach(Ye=>Ae(Ye.bind(n))):Ie&&Ae(Ie.bind(n))}if(be(H1,h),be(vt,g),be(V1,y),be(fd,_),be(B1,S),be(U1,C),be(K1,I),be(q1,P),be(z1,k),be(fs,w),be(Qt,O),be(W1,H),Je(D))if(D.length){const Ae=e.exposed||(e.exposed={});D.forEach(Ie=>{Object.defineProperty(Ae,Ie,{get:()=>n[Ie],set:Ye=>n[Ie]=Ye})})}else e.exposed||(e.exposed={});$&&e.render===go&&(e.render=$),F!=null&&(e.inheritAttrs=F),z&&(e.components=z),G&&(e.directives=G)}function hR(e,t,n=go,r=!1){Je(e)&&(e=eh(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){vr(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Y1(e,t,n,r){const o=r.includes(".")?D1(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=>Y1(s,t,n,r));else{const s=et(e.handler)?e.handler.bind(n):t[e.handler];et(s)&&Ft(o,s,e)}}function gm(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(d=>_c(c,d,l,!0)),_c(c,t,l)),qt(t)&&s.set(t,c),c}function _c(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&_c(e,s,n,!0),o&&o.forEach(l=>_c(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=mR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const mR={data:tb,props:ji,emits:ji,methods:ji,computed:ji,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:ji,directives:ji,watch:vR,provide:tb,inject:gR};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 gR(e,t){return ji(eh(e),eh(t))}function eh(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 ji(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 yR(e,t,n,r=!1){const o={},s={};vc(s,pd,1),e.propsDefaults=Object.create(null),Z1(e,t,o,s);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:$1(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function bR(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:l}}=e,a=Ue(o),[c]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let g=p[h];if(ad(e.emitsOptions,g))continue;const y=t[g];if(c)if(_t(s,g))y!==s[g]&&(s[g]=y,d=!0);else{const _=Qr(g);o[_]=th(c,a,_,y,e,!1)}else y!==s[g]&&(s[g]=y,d=!0)}}}else{Z1(e,t,o,s)&&(d=!0);let p;for(const h in a)(!t||!_t(t,h)&&((p=Qc(h))===h||!_t(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=th(c,a,h,void 0,e,!0)):delete o[h]);if(s!==a)for(const h in s)(!t||!_t(t,h))&&(delete s[h],d=!0)}d&&Wo(e,"set","$attrs")}function Z1(e,t,n,r){const[o,s]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(Vl(c))continue;const d=t[c];let p;o&&_t(o,p=Qr(c))?!s||!s.includes(p)?n[p]=d:(a||(a={}))[p]=d:ad(e.emitsOptions,c)||(!(c in r)||d!==r[c])&&(r[c]=d,l=!0)}if(s){const c=Ue(n),d=a||Ut;for(let p=0;p<s.length;p++){const h=s[p];n[h]=th(o,c,h,d[h],e,!_t(d,h))}}return l}function th(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:d}=o;n in d?r=d[n]:(bi(o),r=d[n]=c.call(null,t),mi())}else r=c}l[0]&&(s&&!a?r=!1:l[1]&&(r===""||r===Qc(n))&&(r=!0))}return r}function Q1(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[g,y]=Q1(h,t,!0);$n(l,g),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,Ds),Ds;if(Je(s))for(let p=0;p<s.length;p++){const h=Qr(s[p]);nb(h)&&(l[h]=Ut)}else if(s)for(const p in s){const h=Qr(p);if(nb(h)){const g=s[p],y=l[h]=Je(g)||et(g)?{type:g}:Object.assign({},g);if(y){const _=ib(Boolean,y.type),S=ib(String,y.type);y[0]=_>-1,y[1]=S<0||_<S,(_>-1||_t(y,"default"))&&a.push(h)}}}const d=[l,a];return qt(e)&&r.set(e,d),d}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",vm=e=>Je(e)?e.map(hr):[hr(e)],_R=(e,t,n)=>{if(t._n)return t;const r=ye((...o)=>vm(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]=_R(o,s,r);else if(s!=null){const l=vm(s);t[o]=()=>l}}},nw=(e,t)=>{const n=vm(t);e.slots.default=()=>n},wR=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ue(t),vc(t,"_",n)):tw(t,e.slots={})}else e.slots={},t&&nw(e,t);vc(e.slots,pd,1)},SR=(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:BP,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 ER=0;function xR(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:ER++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:$w,get config(){return s.config},set config(d){},use(d,...p){return l.has(d)||(d&&et(d.install)?(l.add(d),d.install(c,...p)):et(d)&&(l.add(d),d(c,...p))),c},mixin(d){return s.mixins.includes(d)||s.mixins.push(d),c},component(d,p){return p?(s.components[d]=p,c):s.components[d]},directive(d,p){return p?(s.directives[d]=p,c):s.directives[d]},mount(d,p,h){if(!a){const g=q(r,o);return g.appContext=s,p&&t?t(g,d):e(g,d,h),a=!0,c._container=d,d.__vue_app__=c,hd(g.component)||g.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(d,p){return s.provides[d]=p,c}};return c}}function wc(e,t,n,r,o=!1){if(Je(e)){e.forEach((g,y)=>wc(g,t&&(Je(t)?t[y]:t),n,r,o));return}if(Yi(r)&&!o)return;const s=r.shapeFlag&4?hd(r.component)||r.component.proxy:r.el,l=o?null:s,{i:a,r:c}=e,d=t&&t.r,p=a.refs===Ut?a.refs={}:a.refs,h=a.setupState;if(d!=null&&d!==c&&(on(d)?(p[d]=null,_t(h,d)&&(h[d]=null)):dn(d)&&(d.value=null)),et(c))jo(c,a,12,[l,p]);else{const g=on(c),y=dn(c);if(g||y){const _=()=>{if(e.f){const S=g?_t(h,c)?h[c]:p[c]:c.value;o?Je(S)&&Gh(S,s):Je(S)?S.includes(s)||S.push(s):g?(p[c]=[s],_t(h,c)&&(h[c]=p[c])):(c.value=[s],e.k&&(p[e.k]=c.value))}else g?(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 si=!1;const Wu=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",zu=e=>e.nodeType===8;function $R(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:l,remove:a,insert:c,createComment:d}}=e,p=(T,w)=>{if(!w.hasChildNodes()){n(null,T,w),bc(),w._vnode=T;return}si=!1,h(w.firstChild,T,null,null,null),bc(),w._vnode=T,si&&console.error("Hydration completed but contains mismatches.")},h=(T,w,E,O,$,P=!1)=>{const k=zu(T)&&T.data==="[",I=()=>S(T,w,E,O,$,k),{type:H,ref:D,shapeFlag:F,patchFlag:z}=w;let G=T.nodeType;w.el=T,z===-2&&(P=!1,w.dynamicChildren=null);let te=null;switch(H){case ss:G!==3?w.children===""?(c(w.el=o(""),l(T),T),te=T):te=I():(T.data!==w.children&&(si=!0,T.data=w.children),te=s(T));break;case Rn:G!==8||k?te=I():te=s(T);break;case Zi:if(k&&(T=s(T),G=T.nodeType),G===1||G===3){te=T;const we=!w.children.length;for(let be=0;be<w.staticCount;be++)we&&(w.children+=te.nodeType===1?te.outerHTML:te.data),be===w.staticCount-1&&(w.anchor=te),te=s(te);return k?s(te):te}else I();break;case Fe:k?te=_(T,w,E,O,$,P):te=I();break;default:if(F&1)G!==1||w.type.toLowerCase()!==T.tagName.toLowerCase()?te=I():te=g(T,w,E,O,$,P);else if(F&6){w.slotScopeIds=$;const we=l(T);if(t(w,we,null,E,O,Wu(we),P),te=k?C(T):s(T),te&&zu(te)&&te.data==="teleport end"&&(te=s(te)),Yi(w)){let be;k?(be=q(Fe),be.anchor=te?te.previousSibling:we.lastChild):be=T.nodeType===3?Xe(""):q("div"),be.el=T,w.component.subTree=be}}else F&64?G!==8?te=I():te=w.type.hydrate(T,w,E,O,$,P,e,y):F&128&&(te=w.type.hydrate(T,w,E,O,Wu(l(T)),$,P,e,h))}return D!=null&&wc(D,null,O,w),te},g=(T,w,E,O,$,P)=>{P=P||!!w.dynamicChildren;const{type:k,props:I,patchFlag:H,shapeFlag:D,dirs:F}=w,z=k==="input"&&F||k==="option";if(z||H!==-1){if(F&&ho(w,null,E,"created"),I)if(z||!P||H&48)for(const te in I)(z&&te.endsWith("value")||Yc(te)&&!Vl(te))&&r(T,te,null,I[te],!1,void 0,E);else I.onClick&&r(T,"onClick",null,I.onClick,!1,void 0,E);let G;if((G=I&&I.onVnodeBeforeMount)&&Xn(G,E,w),F&&ho(w,null,E,"beforeMount"),((G=I&&I.onVnodeMounted)||F)&&N1(()=>{G&&Xn(G,E,w),F&&ho(w,null,E,"mounted")},O),D&16&&!(I&&(I.innerHTML||I.textContent))){let te=y(T.firstChild,w,T,E,O,$,P);for(;te;){si=!0;const we=te;te=te.nextSibling,a(we)}}else D&8&&T.textContent!==w.children&&(si=!0,T.textContent=w.children)}return T.nextSibling},y=(T,w,E,O,$,P,k)=>{k=k||!!w.dynamicChildren;const I=w.children,H=I.length;for(let D=0;D<H;D++){const F=k?I[D]:I[D]=hr(I[D]);if(T)T=h(T,F,O,$,P,k);else{if(F.type===ss&&!F.children)continue;si=!0,n(null,F,E,null,O,$,Wu(E),P)}}return T},_=(T,w,E,O,$,P)=>{const{slotScopeIds:k}=w;k&&($=$?$.concat(k):k);const I=l(T),H=y(s(T),w,I,E,O,$,P);return H&&zu(H)&&H.data==="]"?s(w.anchor=H):(si=!0,c(w.anchor=d("]"),I,H),H)},S=(T,w,E,O,$,P)=>{if(si=!0,w.el=null,P){const H=C(T);for(;;){const D=s(T);if(D&&D!==H)a(D);else break}}const k=s(T),I=l(T);return a(T),n(null,w,I,k,E,O,Wu(I),$),k},C=T=>{let w=0;for(;T;)if(T=s(T),T&&zu(T)&&(T.data==="["&&w++,T.data==="]")){if(w===0)return s(T);w--}return T};return[p,h]}const Sn=N1;function ow(e){return sw(e)}function iw(e){return sw(e,$R)}function sw(e,t){const n=GP();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:l,createText:a,createComment:c,setText:d,setElementText:p,parentNode:h,nextSibling:g,setScopeId:y=go,insertStaticContent:_}=e,S=(L,B,Z,le=null,ie=null,pe=null,$e=!1,he=null,me=!!B.dynamicChildren)=>{if(L===B)return;L&&!Xr(L,B)&&(le=He(L),Ge(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 ss:C(L,B,Z,le);break;case Rn:T(L,B,Z,le);break;case Zi:L==null&&w(B,Z,le,$e);break;case Fe:z(L,B,Z,le,ie,pe,$e,he,me);break;default:Pe&1?$(L,B,Z,le,ie,pe,$e,he,me):Pe&6?G(L,B,Z,le,ie,pe,$e,he,me):(Pe&64||Pe&128)&&se.process(L,B,Z,le,ie,pe,$e,he,me,tt)}Re!=null&&ie&&wc(Re,L&&L.ref,pe,B||L,!B)},C=(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&&d(ie,B.children)}},T=(L,B,Z,le)=>{L==null?r(B.el=c(B.children||""),Z,le):B.el=L.el},w=(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=g(L),r(L,Z,le),L=ie;r(B,Z,le)},O=({el:L,anchor:B})=>{let Z;for(;L&&L!==B;)Z=g(L),o(L),L=Z;o(B)},$=(L,B,Z,le,ie,pe,$e,he,me)=>{$e=$e||B.type==="svg",L==null?P(B,Z,le,ie,pe,$e,he,me):H(L,B,ie,pe,$e,he,me)},P=(L,B,Z,le,ie,pe,$e,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&&I(L.children,me,null,le,ie,pe&&Re!=="foreignObject",$e,he),rt&&ho(L,null,le,"created"),k(me,L,L.scopeId,$e,le),Pe){for(const ct in Pe)ct!=="value"&&!Vl(ct)&&s(me,ct,null,Pe[ct],pe,L.children,le,ie,xe);"value"in Pe&&s(me,"value",null,Pe.value),(se=Pe.onVnodeBeforeMount)&&Xn(se,le,L)}rt&&ho(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&&ho(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 $e=ie.vnode;k(L,$e,$e.scopeId,$e.slotScopeIds,ie.parent)}}},I=(L,B,Z,le,ie,pe,$e,he,me=0)=>{for(let se=me;se<L.length;se++){const Re=L[se]=he?ci(L[se]):hr(L[se]);S(null,Re,B,Z,le,ie,pe,$e,he)}},H=(L,B,Z,le,ie,pe,$e)=>{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&&Di(Z,!1),(je=Me.onVnodeBeforeUpdate)&&Xn(je,Z,B,L),Re&&ho(B,L,Z,"beforeUpdate"),Z&&Di(Z,!0);const rt=ie&&B.type!=="foreignObject";if(se?D(L.dynamicChildren,se,he,Z,le,rt,pe):$e||Ie(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],ao=Me[Ht];(ao!==Mn||Ht==="value")&&s(he,Ht,Mn,ao,ie,L.children,Z,le,xe)}}me&1&&L.children!==B.children&&p(he,B.children)}else!$e&&se==null&&F(he,B,Pe,Me,Z,le,ie);((je=Me.onVnodeUpdated)||Re)&&Sn(()=>{je&&Xn(je,Z,B,L),Re&&ho(B,L,Z,"updated")},le)},D=(L,B,Z,le,ie,pe,$e)=>{for(let he=0;he<B.length;he++){const me=L[he],se=B[he],Re=me.el&&(me.type===Fe||!Xr(me,se)||me.shapeFlag&70)?h(me.el):Z;S(me,se,Re,null,le,ie,pe,$e,!0)}},F=(L,B,Z,le,ie,pe,$e)=>{if(Z!==le){if(Z!==Ut)for(const he in Z)!Vl(he)&&!(he in le)&&s(L,he,Z[he],null,$e,B.children,ie,pe,xe);for(const he in le){if(Vl(he))continue;const me=le[he],se=Z[he];me!==se&&he!=="value"&&s(L,he,se,me,$e,B.children,ie,pe,xe)}"value"in le&&s(L,"value",Z.value,le.value)}},z=(L,B,Z,le,ie,pe,$e,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),I(B.children,Z,Re,ie,pe,$e,he,me)):Pe>0&&Pe&64&&Me&&L.dynamicChildren?(D(L.dynamicChildren,Me,Z,ie,pe,$e,he),(B.key!=null||ie&&B===ie.subTree)&&ym(L,B,!0)):Ie(L,B,Z,Re,ie,pe,$e,he,me)},G=(L,B,Z,le,ie,pe,$e,he,me)=>{B.slotScopeIds=he,L==null?B.shapeFlag&512?ie.ctx.activate(B,Z,le,$e,me):te(B,Z,le,ie,pe,$e,me):we(L,B,me)},te=(L,B,Z,le,ie,pe,$e)=>{const he=L.component=hw(L,le,ie);if(Oa(L)&&(he.ctx.renderer=tt),gw(he),he.asyncDep){if(ie&&ie.registerDep(he,be),!L.el){const me=he.subTree=q(Rn);T(null,me,B,Z)}return}be(he,L,B,Z,ie,pe,$e)},we=(L,B,Z)=>{const le=B.component=L.component;if(Kk(L,B,Z))if(le.asyncDep&&!le.asyncResolved){Ae(le,B,Z);return}else le.next=B,Fk(le.update),le.update();else B.el=L.el,le.vnode=B},be=(L,B,Z,le,ie,pe,$e)=>{const he=()=>{if(L.isMounted){let{next:Re,bu:Pe,u:Me,parent:je,vnode:rt}=L,mt=Re,ct;Di(L,!1),Re?(Re.el=rt.el,Ae(L,Re,$e)):Re=rt,Pe&&zl(Pe),(ct=Re.props&&Re.props.onVnodeBeforeUpdate)&&Xn(ct,je,Re,rt),Di(L,!0);const Ht=oc(L),Mn=L.subTree;L.subTree=Ht,S(Mn,Ht,h(Mn.el),He(Mn),L,ie,pe),Re.el=Ht.el,mt===null&&cm(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=Yi(B);if(Di(L,!1),je&&zl(je),!ct&&(Re=Me&&Me.onVnodeBeforeMount)&&Xn(Re,mt,B),Di(L,!0),Pe&&ln){const Ht=()=>{L.subTree=oc(L),ln(Pe,L.subTree,L,ie,null)};ct?B.type.__asyncLoader().then(()=>!L.isUnmounted&&Ht()):Ht()}else{const Ht=L.subTree=oc(L);S(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&&Yi(mt.vnode)&&mt.vnode.shapeFlag&256)&&L.a&&Sn(L.a,ie),L.isMounted=!0,B=Z=le=null}},me=L.effect=new Ca(he,()=>ld(se),L.scope),se=L.update=()=>me.run();se.id=L.uid,Di(L,!0),se()},Ae=(L,B,Z)=>{B.component=L;const le=L.vnode.props;L.vnode=B,L.next=null,bR(L,B.props,le,Z),SR(L,B.children,Z),al(),Xy(),ul()},Ie=(L,B,Z,le,ie,pe,$e,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,$e,he,me);return}else if(Me&256){Ye(se,Pe,Z,le,ie,pe,$e,he,me);return}}je&8?(Re&16&&xe(se,ie,pe),Pe!==se&&p(Z,Pe)):Re&16?je&16?ft(se,Pe,Z,le,ie,pe,$e,he,me):xe(se,ie,pe,!0):(Re&8&&p(Z,""),je&16&&I(Pe,Z,le,ie,pe,$e,he,me))},Ye=(L,B,Z,le,ie,pe,$e,he,me)=>{L=L||Ds,B=B||Ds;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?ci(B[Me]):hr(B[Me]);S(L[Me],je,Z,null,ie,pe,$e,he,me)}se>Re?xe(L,ie,pe,!0,!1,Pe):I(B,Z,le,ie,pe,$e,he,me,Pe)},ft=(L,B,Z,le,ie,pe,$e,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?ci(B[se]):hr(B[se]);if(Xr(je,rt))S(je,rt,Z,null,ie,pe,$e,he,me);else break;se++}for(;se<=Pe&&se<=Me;){const je=L[Pe],rt=B[Me]=me?ci(B[Me]):hr(B[Me]);if(Xr(je,rt))S(je,rt,Z,null,ie,pe,$e,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;)S(null,B[se]=me?ci(B[se]):hr(B[se]),Z,rt,ie,pe,$e,he,me),se++}}else if(se>Me)for(;se<=Pe;)Ge(L[se],ie,pe,!0),se++;else{const je=se,rt=se,mt=new Map;for(se=rt;se<=Me;se++){const vn=B[se]=me?ci(B[se]):hr(B[se]);vn.key!=null&&mt.set(vn.key,se)}let ct,Ht=0;const Mn=Me-rt+1;let ao=!1,vs=0;const $o=new Array(Mn);for(se=0;se<Mn;se++)$o[se]=0;for(se=je;se<=Pe;se++){const vn=L[se];if(Ht>=Mn){Ge(vn,ie,pe,!0);continue}let Wn;if(vn.key!=null)Wn=mt.get(vn.key);else for(ct=rt;ct<=Me;ct++)if($o[ct-rt]===0&&Xr(vn,B[ct])){Wn=ct;break}Wn===void 0?Ge(vn,ie,pe,!0):($o[Wn-rt]=se+1,Wn>=vs?vs=Wn:ao=!0,S(vn,B[Wn],Z,null,ie,pe,$e,he,me),Ht++)}const ys=ao?CR($o):Ds;for(ct=ys.length-1,se=Mn-1;se>=0;se--){const vn=rt+se,Wn=B[vn],bs=vn+1<Re?B[vn+1].el:le;$o[se]===0?S(null,Wn,Z,bs,ie,pe,$e,he,me):ao&&(ct<0||se!==ys[ct]?Le(Wn,Z,bs,2):ct--)}}},Le=(L,B,Z,le,ie=null)=>{const{el:pe,type:$e,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){$e.move(L,B,Z,tt);return}if($e===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($e===Zi){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)},Ge=(L,B,Z,le=!1,ie=!1)=>{const{type:pe,props:$e,ref:he,children:me,dynamicChildren:se,shapeFlag:Re,patchFlag:Pe,dirs:Me}=L;if(he!=null&&wc(he,null,Z,L,!0),Re&256){B.ctx.deactivate(L);return}const je=Re&1&&Me,rt=!Yi(L);let mt;if(rt&&(mt=$e&&$e.onVnodeBeforeUnmount)&&Xn(mt,B,L),Re&6)fe(L.component,Z,le);else{if(Re&128){L.suspense.unmount(Z,le);return}je&&ho(L,null,B,"beforeUnmount"),Re&64?L.type.remove(L,B,Z,ie,tt,le):se&&(pe!==Fe||Pe>0&&Pe&64)?xe(se,B,Z,!1,!0):(pe===Fe&&Pe&384||!ie&&Re&16)&&xe(me,B,Z),le&&Q(L)}(rt&&(mt=$e&&$e.onVnodeUnmounted)||je)&&Sn(()=>{mt&&Xn(mt,B,L),je&&ho(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===Zi){O(L);return}const pe=()=>{o(Z),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(L.shapeFlag&1&&ie&&!ie.persisted){const{leave:$e,delayLeave:he}=ie,me=()=>$e(Z,pe);he?he(L.el,pe,me):me()}else pe()},ae=(L,B)=>{let Z;for(;L!==B;)Z=g(L),o(L),L=Z;o(B)},fe=(L,B,Z)=>{const{bum:le,scope:ie,update:pe,subTree:$e,um:he}=L;le&&zl(le),ie.stop(),pe&&(pe.active=!1,Ge($e,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())},xe=(L,B,Z,le=!1,ie=!1,pe=0)=>{for(let $e=pe;$e<L.length;$e++)Ge(L[$e],B,Z,le,ie)},He=L=>L.shapeFlag&6?He(L.component.subTree):L.shapeFlag&128?L.suspense.next():g(L.anchor||L.el),De=(L,B,Z)=>{L==null?B._vnode&&Ge(B._vnode,null,null,!0):S(B._vnode||null,L,B,null,null,null,Z),Xy(),bc(),B._vnode=L},tt={p:S,um:Ge,m:Le,r:Q,mt:te,mc:I,pc:Ie,pbc:D,n:He,o:e};let gn,ln;return t&&([gn,ln]=t(tt)),{render:De,hydrate:gn,createApp:xR(De,gn)}}function Di({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ym(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]=ci(o[s]),a.el=l.el),n||ym(l,a)),a.type===ss&&(a.el=l.el)}}function CR(e){const t=e.slice(),n=[0];let r,o,s,l,a;const c=e.length;for(r=0;r<c;r++){const d=e[r];if(d!==0){if(o=n[n.length-1],e[o]<d){t[r]=o,n.push(r);continue}for(s=0,l=n.length-1;s<l;)a=s+l>>1,e[n[a]]<d?s=a+1:l=a;d<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 TR=e=>e.__isTeleport,Kl=e=>e&&(e.disabled||e.disabled===""),sb=e=>typeof SVGElement<"u"&&e instanceof SVGElement,nh=(e,t)=>{const n=e&&e.to;return on(n)?t?t(n):null:n},OR={__isTeleport:!0,process(e,t,n,r,o,s,l,a,c,d){const{mc:p,pc:h,pbc:g,o:{insert:y,querySelector:_,createText:S,createComment:C}}=d,T=Kl(t.props);let{shapeFlag:w,children:E,dynamicChildren:O}=t;if(e==null){const $=t.el=S(""),P=t.anchor=S("");y($,n,r),y(P,n,r);const k=t.target=nh(t.props,_),I=t.targetAnchor=S("");k&&(y(I,k),l=l||sb(k));const H=(D,F)=>{w&16&&p(E,D,F,o,s,l,a,c)};T?H(n,P):k&&H(k,I)}else{t.el=e.el;const $=t.anchor=e.anchor,P=t.target=e.target,k=t.targetAnchor=e.targetAnchor,I=Kl(e.props),H=I?n:P,D=I?$:k;if(l=l||sb(P),O?(g(e.dynamicChildren,O,H,o,s,l,a),ym(e,t,!0)):c||h(e,t,H,D,o,s,l,a,!1),T)I||qu(t,n,$,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=nh(t.props,_);F&&qu(t,F,null,d,0)}else I&&qu(t,P,k,d,1)}aw(t)},remove(e,t,n,r,{um:o,o:{remove:s}},l){const{shapeFlag:a,children:c,anchor:d,targetAnchor:p,target:h,props:g}=e;if(h&&s(p),(l||!Kl(g))&&(s(d),a&16))for(let y=0;y<c.length;y++){const _=c[y];o(_,t,n,!0,!!_.dynamicChildren)}},move:qu,hydrate:AR};function qu(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:d,props:p}=e,h=s===2;if(h&&r(l,t,n),(!h||Kl(p))&&c&16)for(let g=0;g<d.length;g++)o(d[g],t,n,2);h&&r(a,t,n)}function AR(e,t,n,r,o,s,{o:{nextSibling:l,parentNode:a,querySelector:c}},d){const p=t.target=nh(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Kl(t.props))t.anchor=d(l(e),t,a(e),n,r,o,s),t.targetAnchor=h;else{t.anchor=l(e);let g=h;for(;g;)if(g=l(g),g&&g.nodeType===8&&g.data==="teleport anchor"){t.targetAnchor=g,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}d(h,t,p,n,r,o,s)}aw(t)}return t.anchor&&l(t.anchor)}const lw=OR;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),ss=Symbol(void 0),Rn=Symbol(void 0),Zi=Symbol(void 0),Gl=[];let Jn=null;function N(e=!1){Gl.push(Jn=e?null:[])}function uw(){Gl.pop(),Jn=Gl[Gl.length-1]||null}let ls=1;function rh(e){ls+=e}function cw(e){return e.dynamicChildren=ls>0?Jn||Ds:null,uw(),ls>0&&Jn&&Jn.push(e),e}function V(e,t,n,r,o,s){return cw(v(e,t,n,r,o,s,!0))}function bt(e,t,n,r,o){return cw(q(e,t,n,r,o,!0))}function yi(e){return e?e.__v_isVNode===!0:!1}function Xr(e,t){return e.type===t.type&&e.key===t.key}function IR(e){}const pd="__vInternal",dw=({key:e})=>e??null,ic=({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 v(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&&ic(t),scopeId:ud,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?(bm(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=on(n)?8:16),ls>0&&!l&&Jn&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&Jn.push(c),c}const q=PR;function PR(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===X1)&&(e=Rn),yi(e)){const a=Br(e,t,!0);return n&&bm(a,n),ls>0&&!s&&Jn&&(a.shapeFlag&6?Jn[Jn.indexOf(e)]=a:Jn.push(a)),a.patchFlag|=-2,a}if(FR(e)&&(e=e.__vccOpts),t){t=fw(t);let{class:a,style:c}=t;a&&!on(a)&&(t.class=St(a)),qt(c)&&(nm(c)&&!Je(c)&&(c=$n({},c)),t.style=cs(c))}const l=on(e)?1:L1(e)?128:TR(e)?64:qt(e)?4:et(e)?2:0;return v(e,t,n,r,o,l,s,!0)}function fw(e){return e?nm(e)||pd in e?$n({},e):e:null}function Br(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(ic(t)):[o,ic(t)]:ic(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&&Br(e.ssContent),ssFallback:e.ssFallback&&Br(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xe(e=" ",t=0){return q(ss,null,e,t)}function kR(e,t){const n=q(Zi,null,e);return n.staticCount=t,n}function Ke(e="",t=!1){return t?(N(),bt(Rn,null,e)):q(Rn,null,e)}function hr(e){return e==null||typeof e=="boolean"?q(Rn):Je(e)?q(Fe,null,e.slice()):typeof e=="object"?ci(e):q(ss,null,String(e))}function ci(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Br(e)}function bm(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),bm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(pd 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=St([t.class,r.class]));else if(o==="style")t.style=cs([t.style,r.style]);else if(Yc(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){vr(e,t,7,[n,r])}const RR=rw();let LR=0;function hw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||RR,s={uid:LR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Zh(!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:Q1(r,o),emitsOptions:R1(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=Uk.bind(null,s),e.ce&&e.ce(s),s}let Jt=null;const Go=()=>Jt||xn,bi=e=>{Jt=e,e.scope.on()},mi=()=>{Jt&&Jt.scope.off(),Jt=null};function mw(e){return e.vnode.shapeFlag&4}let qs=!1;function gw(e,t=!1){qs=t;const{props:n,children:r}=e.vnode,o=mw(e);yR(e,n,o,t),wR(e,r);const s=o?NR(e,t):void 0;return qs=!1,s}function NR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rm(new Proxy(e.ctx,Zp));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?bw(e):null;bi(e),al();const s=jo(r,e,0,[e.props,o]);if(ul(),mi(),Jh(s)){if(s.then(mi,mi),t)return s.then(l=>{oh(e,l,t)}).catch(l=>{ds(l,e,0)});e.asyncDep=s}else oh(e,s,t)}else yw(e,t)}function oh(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qt(t)&&(e.setupState=sm(t)),yw(e,n)}let Sc,ih;function vw(e){Sc=e,ih=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,fR))}}const MR=()=>!Sc;function yw(e,t,n){const r=e.type;if(!e.render){if(!t&&Sc&&!r.render){const o=r.template||gm(e).template;if(o){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,d=$n($n({isCustomElement:s,delimiters:a},l),c);r.render=Sc(o,d)}}e.render=r.render||go,ih&&ih(e)}bi(e),al(),pR(e),ul(),mi()}function DR(e){return new Proxy(e.attrs,{get(t,n){return rr(e,"get","$attrs"),t[n]}})}function bw(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=DR(e))},slots:e.slots,emit:e.emit,expose:t}}function hd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sm(rm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ql)return ql[n](e)},has(t,n){return n in t||n in ql}}))}function sh(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function FR(e){return et(e)&&"__vccOpts"in e}const ce=(e,t)=>Rk(e,t,qs);function BR(){return null}function UR(){return null}function jR(e){}function HR(e,t){return null}function _w(){return ww().slots}function VR(){return ww().attrs}function ww(){const e=Go();return e.setupContext||(e.setupContext=bw(e))}function WR(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 zR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function qR(e){const t=Go();let n=e();return mi(),Jh(n)&&(n=n.catch(r=>{throw bi(t),r})),[n,()=>bi(t)]}function dt(e,t,n){const r=arguments.length;return r===2?qt(t)&&!Je(t)?yi(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&yi(n)&&(n=[n]),q(e,t,n))}const Sw=Symbol(""),Ew=()=>kt(Sw);function KR(){}function GR(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(Ws(n[r],t[r]))return!1;return ls>0&&Jn&&Jn.push(e),!0}const $w="3.2.47",XR={createComponentInstance:hw,setupComponent:gw,renderComponentRoot:oc,setCurrentRenderingInstance:aa,isVNode:yi,normalizeVNode:hr},JR=XR,YR=null,ZR=null;function QR(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const e4="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",t4=QR(e4);function Cw(e){return!!e||e===""}function n4(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=_i(e[r],t[r]);return n}function _i(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=or(e),r=or(t),n||r)return n&&r?n4(e,t):!1;if(n=lh(e),r=lh(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||!_i(e[l],t[l]))return!1}}return String(e)===String(t)}function md(e,t){return e.findIndex(n=>_i(n,t))}const yp={},r4=/^on[^a-z]/,o4=e=>r4.test(e),i4=e=>e.startsWith("onUpdate:"),Aa=Object.assign,or=Array.isArray,Ia=e=>Ow(e)==="[object Set]",lb=e=>Ow(e)==="[object Date]",Tw=e=>typeof e=="function",ca=e=>typeof e=="string",ab=e=>typeof e=="symbol",lh=e=>e!==null&&typeof e=="object",s4=Object.prototype.toString,Ow=e=>s4.call(e),_m=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},l4=/-(\w)/g,bp=_m(e=>e.replace(l4,(t,n)=>n?n.toUpperCase():"")),a4=/\B([A-Z])/g,di=_m(e=>e.replace(a4,"-$1").toLowerCase()),u4=_m(e=>e.charAt(0).toUpperCase()+e.slice(1)),c4=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ah=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uh=e=>{const t=ca(e)?Number(e):NaN;return isNaN(t)?e:t},d4="http://www.w3.org/2000/svg",Vi=typeof document<"u"?document:null,ub=Vi&&Vi.createElement("template"),f4={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(d4,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 p4(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 h4(e,t,n){const r=e.style,o=ca(n);if(n&&!o){if(t&&!ca(t))for(const s in t)n[s]==null&&ch(r,s,"");for(const s in n)ch(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 ch(e,t,n){if(or(n))n.forEach(r=>ch(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=m4(e,t);cb.test(n)?e.setProperty(di(r),n.replace(cb,""),"important"):e[r]=n}}const db=["Webkit","Moz","ms"],_p={};function m4(e,t){const n=_p[t];if(n)return n;let r=Qr(t);if(r!=="filter"&&r in e)return _p[t]=r;r=u4(r);for(let o=0;o<db.length;o++){const s=db[o]+r;if(s in e)return _p[t]=s}return t}const fb="http://www.w3.org/1999/xlink";function g4(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=t4(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??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=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 Fo(e,t,n,r){e.addEventListener(t,n,r)}function y4(e,t,n,r){e.removeEventListener(t,n,r)}function b4(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]=_4(t);if(r){const d=s[t]=E4(r,o);Fo(e,a,d,c)}else l&&(y4(e,a,l,c),s[t]=void 0)}}const pb=/(?:Once|Passive|Capture)$/;function _4(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):di(e.slice(2)),t]}let wp=0;const w4=Promise.resolve(),S4=()=>wp||(w4.then(()=>wp=0),wp=Date.now());function E4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;vr(x4(r,n.value),t,5,[r])};return n.value=e,n.attached=S4(),n}function x4(e,t){if(or(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]/,$4=(e,t,n,r,o=!1,s,l,a,c)=>{t==="class"?p4(e,r,o):t==="style"?h4(e,n,r):o4(t)?i4(t)||b4(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):C4(e,t,r,o))?v4(e,t,r,s,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),g4(e,t,r,o))};function C4(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)&&ca(n)?!1:t in e}function Aw(e,t){const n=ge(e);class r extends gd{constructor(s){super(n,s,t)}}return r.def=n,r}const T4=e=>Aw(e,qw),O4=typeof HTMLElement<"u"?HTMLElement:class{};class gd extends O4{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||(ph(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&&!or(s))for(const c in s){const d=s[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=uh(this._props[c])),(a||(a=Object.create(null)))[bp(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=or(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(bp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(s){this._setProp(o,s)}})}_setAttr(t){let n=this.getAttribute(t);const r=bp(t);this._numberProps&&this._numberProps[r]&&(n=uh(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(di(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(di(t),n+""):n||this.removeAttribute(di(t))))}_update(){ph(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,Aa({},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),di(s)!==s&&r(di(s),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof gd){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 A4(e="$style"){{const t=Go();if(!t)return yp;const n=t.type.__cssModules;if(!n)return yp;const r=n[e];return r||yp}}function Iw(e){const t=Go();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>fh(s,o))},r=()=>{const o=e(t.proxy);dh(t.subTree,o),n(o)};M1(r),vt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Qt(()=>o.disconnect())})}function dh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{dh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fh(e.el,t);else if(e.type===Fe)e.children.forEach(n=>dh(n,t));else if(e.type===Zi){let{el:n,anchor:r}=e;for(;n&&(fh(n,t),n!==r);)n=n.nextSibling}}function fh(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const li="transition",Ol="animation",xi=(e,{slots:t})=>dt(pm,kw(e),t);xi.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},I4=xi.props=Aa({},pm.props,Pw),Fi=(e,t=[])=>{or(e)?e.forEach(n=>n(...t)):e&&e(...t)},mb=e=>e?or(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:d=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,_=P4(o),S=_&&_[0],C=_&&_[1],{onBeforeEnter:T,onEnter:w,onEnterCancelled:E,onLeave:O,onLeaveCancelled:$,onBeforeAppear:P=T,onAppear:k=w,onAppearCancelled:I=E}=t,H=(z,G,te)=>{ui(z,G?p:a),ui(z,G?d:l),te&&te()},D=(z,G)=>{z._isLeaving=!1,ui(z,h),ui(z,y),ui(z,g),G&&G()},F=z=>(G,te)=>{const we=z?k:w,be=()=>H(G,z,te);Fi(we,[G,be]),gb(()=>{ui(G,z?c:s),No(G,z?p:a),mb(we)||vb(G,r,S,be)})};return Aa(t,{onBeforeEnter(z){Fi(T,[z]),No(z,s),No(z,l)},onBeforeAppear(z){Fi(P,[z]),No(z,c),No(z,d)},onEnter:F(!1),onAppear:F(!0),onLeave(z,G){z._isLeaving=!0;const te=()=>D(z,G);No(z,h),Lw(),No(z,g),gb(()=>{z._isLeaving&&(ui(z,h),No(z,y),mb(O)||vb(z,r,C,te))}),Fi(O,[z,te])},onEnterCancelled(z){H(z,!1),Fi(E,[z])},onAppearCancelled(z){H(z,!0),Fi(I,[z])},onLeaveCancelled(z){D(z),Fi($,[z])}})}function P4(e){if(e==null)return null;if(lh(e))return[Sp(e.enter),Sp(e.leave)];{const t=Sp(e);return[t,t]}}function Sp(e){return uh(e)}function No(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ui(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 gb(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let k4=0;function vb(e,t,n,r){const o=e._endId=++k4,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 d=l+"end";let p=0;const h=()=>{e.removeEventListener(d,g),s()},g=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(d,g)}function Rw(e,t){const n=window.getComputedStyle(e),r=_=>(n[_]||"").split(", "),o=r(`${li}Delay`),s=r(`${li}Duration`),l=yb(o,s),a=r(`${Ol}Delay`),c=r(`${Ol}Duration`),d=yb(a,c);let p=null,h=0,g=0;t===li?l>0&&(p=li,h=l,g=s.length):t===Ol?d>0&&(p=Ol,h=d,g=c.length):(h=Math.max(l,d),p=h>0?l>d?li:Ol:null,g=p?p===li?s.length:c.length:0);const y=p===li&&/\b(transform|all)(,|$)/.test(r(`${li}Property`).toString());return{type:p,timeout:h,propCount:g,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:Aa({},I4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Go(),r=fm();let o,s;return fd(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!F4(o[0].el,n.vnode.el,l))return;o.forEach(N4),o.forEach(M4);const a=o.filter(D4);Lw(),a.forEach(c=>{const d=c.el,p=d.style;No(d,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=d._moveCb=g=>{g&&g.target!==d||(!g||/transform$/.test(g.propertyName))&&(d.removeEventListener("transitionend",h),d._moveCb=null,ui(d,l))};d.addEventListener("transitionend",h)})}),()=>{const l=Ue(e),a=kw(l);let c=l.tag||Fe;o=s,s=t.default?cd(t.default()):[];for(let d=0;d<s.length;d++){const p=s[d];p.key!=null&&is(p,zs(p,a,r,n))}if(o)for(let d=0;d<o.length;d++){const p=o[d];is(p,zs(p,a,r,n)),Nw.set(p,p.el.getBoundingClientRect())}return q(c,null,s)}}},R4=e=>delete e.mode;Dw.props;const L4=Dw;function N4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function M4(e){Mw.set(e,e.el.getBoundingClientRect())}function D4(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 F4(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 wi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return or(t)?n=>c4(t,n):t};function B4(e){e.target.composing=!0}function _b(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ec={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=wi(o);const s=r||o.props&&o.props.type==="number";Fo(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=ah(a)),e._assign(a)}),n&&Fo(e,"change",()=>{e.value=e.value.trim()}),t||(Fo(e,"compositionstart",B4),Fo(e,"compositionend",_b),Fo(e,"change",_b))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=wi(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&ah(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},wm={deep:!0,created(e,t,n){e._assign=wi(n),Fo(e,"change",()=>{const r=e._modelValue,o=Ks(e),s=e.checked,l=e._assign;if(or(r)){const a=md(r,o),c=a!==-1;if(s&&!c)l(r.concat(o));else if(!s&&c){const d=[...r];d.splice(a,1),l(d)}}else if(Ia(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=wi(n),wb(e,t,n)}};function wb(e,{value:t,oldValue:n},r){e._modelValue=t,or(t)?e.checked=md(t,r.props.value)>-1:Ia(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=_i(t,Bw(e,!0)))}const Sm={created(e,{value:t},n){e.checked=_i(t,n.props.value),e._assign=wi(n),Fo(e,"change",()=>{e._assign(Ks(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=wi(r),t!==n&&(e.checked=_i(t,r.props.value))}},Fw={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Ia(t);Fo(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?ah(Ks(l)):Ks(l));e._assign(e.multiple?o?new Set(s):s:s[0])}),e._assign=wi(r)},mounted(e,{value:t}){Sb(e,t)},beforeUpdate(e,t,n){e._assign=wi(n)},updated(e,{value:t}){Sb(e,t)}};function Sb(e,t){const n=e.multiple;if(!(n&&!or(t)&&!Ia(t))){for(let r=0,o=e.options.length;r<o;r++){const s=e.options[r],l=Ks(s);if(n)or(t)?s.selected=md(t,l)>-1:s.selected=t.has(l);else if(_i(Ks(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ks(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){Ku(e,t,n,null,"created")},mounted(e,t,n){Ku(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ku(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ku(e,t,n,r,"updated")}};function jw(e,t){switch(e){case"SELECT":return Fw;case"TEXTAREA":return Ec;default:switch(t){case"checkbox":return wm;case"radio":return Sm;default:return Ec}}}function Ku(e,t,n,r,o){const l=jw(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function U4(){Ec.getSSRProps=({value:e})=>({value:e}),Sm.getSSRProps=({value:e},t)=>{if(t.props&&_i(t.props.value,e))return{checked:!0}},wm.getSSRProps=({value:e},t)=>{if(or(e)){if(t.props&&md(e,t.props.value)>-1)return{checked:!0}}else if(Ia(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 j4=["ctrl","shift","alt","meta"],H4={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)=>j4.some(n=>e[`${n}Key`]&&!t.includes(n))},xc=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const s=H4[t[o]];if(s&&s(n,t))return}return e(n,...r)},V4={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=di(n.key);if(t.some(o=>o===r||V4[o]===r))return e(n)},Em={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Al(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),Al(e,!0),r.enter(e)):r.leave(e,()=>{Al(e,!1)}):Al(e,t))},beforeUnmount(e,{value:t}){Al(e,t)}};function Al(e,t){e.style.display=t?e._vod:"none"}function W4(){Em.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Vw=Aa({patchProp:$4},f4);let Xl,Eb=!1;function Ww(){return Xl||(Xl=ow(Vw))}function zw(){return Xl=Eb?Xl:iw(Vw),Eb=!0,Xl}const ph=(...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},z4=(...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 ca(e)?document.querySelector(e):e}let xb=!1;const q4=()=>{xb||(xb=!0,U4(),W4())},K4=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:pm,Comment:Rn,EffectScope:Zh,Fragment:Fe,KeepAlive:iR,ReactiveEffect:Ca,Static:Zi,Suspense:Xk,Teleport:lw,Text:ss,Transition:xi,TransitionGroup:L4,VueElement:gd,assertNumber:Nk,callWithAsyncErrorHandling:vr,callWithErrorHandling:jo,camelize:Qr,capitalize:ed,cloneVNode:Br,compatUtils:ZR,computed:ce,createApp:Kw,createBlock:bt,createCommentVNode:Ke,createElementBlock:V,createElementVNode:v,createHydrationRenderer:iw,createPropsRestProxy:zR,createRenderer:ow,createSSRApp:z4,createSlots:cR,createStaticVNode:kR,createTextVNode:Xe,createVNode:q,customRef:Ik,defineAsyncComponent:rR,defineComponent:ge,defineCustomElement:Aw,defineEmits:UR,defineExpose:jR,defineProps:BR,defineSSRCustomElement:T4,get devtools(){return Ns},effect:ZP,effectScope:XP,getCurrentInstance:Go,getCurrentScope:d1,getTransitionRawChildren:cd,guardReactiveProps:fw,h:dt,handleError:ds,hydrate:qw,initCustomFormatter:KR,initDirectivesForSSR:q4,inject:kt,isMemoSame:xw,isProxy:nm,isReactive:Ji,isReadonly:os,isRef:dn,isRuntimeOnly:MR,isShallow:oa,isVNode:yi,markRaw:rm,mergeDefaults:WR,mergeProps:pw,nextTick:rn,normalizeClass:St,normalizeProps:FP,normalizeStyle:cs,onActivated:B1,onBeforeMount:H1,onBeforeUnmount:fs,onBeforeUpdate:V1,onDeactivated:U1,onErrorCaptured:K1,onMounted:vt,onRenderTracked:q1,onRenderTriggered:z1,onScopeDispose:f1,onServerPrefetch:W1,onUnmounted:Qt,onUpdated:fd,openBlock:N,popScopeId:Hk,provide:Zt,proxyRefs:sm,pushScopeId:jk,queuePostFlushCb:um,reactive:Ei,readonly:tm,ref:_e,registerRuntimeCompiler:vw,render:ph,renderList:Mt,renderSlot:_r,resolveComponent:J,resolveDirective:uR,resolveDynamicComponent:aR,resolveFilter:YR,resolveTransitionHooks:zs,setBlockTracking:rh,setDevtoolsHook:k1,setTransitionHooks:is,shallowReactive:$1,shallowReadonly:Ck,shallowRef:sd,ssrContextKey:Sw,ssrUtils:JR,stop:QP,toDisplayString:U,toHandlerKey:Wl,toHandlers:dR,toRaw:Ue,toRef:T1,toRefs:lm,transformVNodeArgs:IR,triggerRef:Xp,unref:jn,useAttrs:VR,useCssModule:A4,useCssVars:Iw,useSSRContext:Ew,useSlots:_w,useTransitionState:fm,vModelCheckbox:wm,vModelDynamic:Uw,vModelRadio:Sm,vModelSelect:Fw,vModelText:Ec,vShow:Em,version:$w,warn:Lk,watch:Ft,watchEffect:jt,watchPostEffect:M1,watchSyncEffect:eR,withAsyncContext:qR,withCtx:ye,withDefaults:HR,withDirectives:G1,withKeys:Hw,withMemo:GR,withModifiers:xc,withScopeId:Vk},Symbol.toStringTag,{value:"Module"}));function ro(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 G4=/;(?![^(]*\))/g,X4=/:([^]+)/,J4=/\/\*.*?\*\//gs;function Y4(e){const t={};return e.replace(J4,"").split(G4).forEach(n=>{if(n){const r=n.split(X4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const Z4="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",Q4="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",eL="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",tL=ro(Z4),nL=ro(Q4),rL=ro(eL),oL={},$c=()=>{},Ep=()=>!1,iL=/^on[^a-z]/,Xw=e=>iL.test(e),Ho=Object.assign,Gs=Array.isArray,mn=e=>typeof e=="string",xm=e=>typeof e=="symbol",sL=e=>e!==null&&typeof e=="object",$b=ro(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),lL=ro("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),vd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},aL=/-(\w)/g,yd=vd(e=>e.replace(aL,(t,n)=>n?n.toUpperCase():"")),uL=/\B([A-Z])/g,cL=vd(e=>e.replace(uL,"-$1").toLowerCase()),$m=vd(e=>e.charAt(0).toUpperCase()+e.slice(1)),dL=vd(e=>e?`on${$m(e)}`:"");function Cm(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 da=Symbol(""),Jl=Symbol(""),Tm=Symbol(""),Cc=Symbol(""),Yw=Symbol(""),as=Symbol(""),Zw=Symbol(""),Qw=Symbol(""),Om=Symbol(""),Am=Symbol(""),Pa=Symbol(""),Im=Symbol(""),eS=Symbol(""),Pm=Symbol(""),Tc=Symbol(""),km=Symbol(""),Rm=Symbol(""),Lm=Symbol(""),Nm=Symbol(""),tS=Symbol(""),nS=Symbol(""),bd=Symbol(""),Oc=Symbol(""),Mm=Symbol(""),Dm=Symbol(""),fa=Symbol(""),ka=Symbol(""),Fm=Symbol(""),hh=Symbol(""),fL=Symbol(""),mh=Symbol(""),Ac=Symbol(""),pL=Symbol(""),hL=Symbol(""),Bm=Symbol(""),mL=Symbol(""),gL=Symbol(""),Um=Symbol(""),rS=Symbol(""),Xs={[da]:"Fragment",[Jl]:"Teleport",[Tm]:"Suspense",[Cc]:"KeepAlive",[Yw]:"BaseTransition",[as]:"openBlock",[Zw]:"createBlock",[Qw]:"createElementBlock",[Om]:"createVNode",[Am]:"createElementVNode",[Pa]:"createCommentVNode",[Im]:"createTextVNode",[eS]:"createStaticVNode",[Pm]:"resolveComponent",[Tc]:"resolveDynamicComponent",[km]:"resolveDirective",[Rm]:"resolveFilter",[Lm]:"withDirectives",[Nm]:"renderList",[tS]:"renderSlot",[nS]:"createSlots",[bd]:"toDisplayString",[Oc]:"mergeProps",[Mm]:"normalizeClass",[Dm]:"normalizeStyle",[fa]:"normalizeProps",[ka]:"guardReactiveProps",[Fm]:"toHandlers",[hh]:"camelize",[fL]:"capitalize",[mh]:"toHandlerKey",[Ac]:"setBlockTracking",[pL]:"pushScopeId",[hL]:"popScopeId",[Bm]:"withCtx",[mL]:"unref",[gL]:"isRef",[Um]:"withMemo",[rS]:"isMemoSame"};function vL(e){Object.getOwnPropertySymbols(e).forEach(t=>{Xs[t]=e[t]})}const wr={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function yL(e,t=wr){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function pa(e,t,n,r,o,s,l,a=!1,c=!1,d=!1,p=wr){return e&&(a?(e.helper(as),e.helper(Zs(e.inSSR,d))):e.helper(Ys(e.inSSR,d)),l&&e.helper(Lm)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:l,isBlock:a,disableTracking:c,isComponent:d,loc:p}}function Ra(e,t=wr){return{type:17,loc:t,elements:e}}function Rr(e,t=wr){return{type:15,loc:t,properties:e}}function Yt(e,t){return{type:16,loc:wr,key:mn(e)?ut(e,!0):e,value:t}}function ut(e,t=!1,n=wr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Yr(e,t=wr){return{type:8,loc:t,children:e}}function nn(e,t=[],n=wr){return{type:14,loc:n,callee:e,arguments:t}}function Js(e,t=void 0,n=!1,r=!1,o=wr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function gh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:wr}}function bL(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:wr}}function _L(e){return{type:21,body:e,loc:wr}}const Yn=e=>e.type===4&&e.isStatic,Ms=(e,t)=>e===t||e===cL(t);function oS(e){if(Ms(e,"Teleport"))return Jl;if(Ms(e,"Suspense"))return Tm;if(Ms(e,"KeepAlive"))return Cc;if(Ms(e,"BaseTransition"))return Yw}const wL=/^\d|[^\$\w]/,jm=e=>!wL.test(e),SL=/[A-Za-z_$\xA0-\uFFFF]/,EL=/[\.\?\w$\xA0-\uFFFF]/,xL=/\s+[.[]\s*|\s*[.[]\s+/g,$L=e=>{e=e.trim().replace(xL,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?SL:EL).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=$L;function sS(e,t,n){const o={source:e.source.slice(t,t+n),start:Ic(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Ic(e.start,e.source,t+n)),o}function Ic(e,t,n=t.length){return Pc(Ho({},e),t,n)}function Pc(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 kr(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 _d(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 CL(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function xp(e){return e.type===5||e.type===2}function TL(e){return e.type===7&&e.name==="slot"}function kc(e){return e.type===1&&e.tagType===3}function Rc(e){return e.type===1&&e.tagType===2}function Ys(e,t){return e||t?Om:Am}function Zs(e,t){return e||t?Zw:Qw}const OL=new Set([fa,ka]);function lS(e,t=[]){if(e&&!mn(e)&&e.type===14){const n=e.callee;if(!mn(n)&&OL.has(n))return lS(e.arguments[0],t.concat(e))}return[e,t]}function Lc(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=Rr([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===Fm?r=nn(n.helper(Oc),[Rr([t]),o]):o.arguments.unshift(Rr([t])),!r&&(r=o)}else o.type===15?(Cb(t,o)||o.properties.unshift(t),r=o):(r=nn(n.helper(Oc),[Rr([t]),o]),l&&l.callee===ka&&(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 ha(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function AL(e){return e.type===14&&e.callee===Um?e.arguments[1].returns:e}function Hm(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Ys(r,e.isComponent)),t(as),t(Zs(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 Qi(e,t){const n=Tb("MODE",t),r=Tb(e,t);return n===3?r===!0:r!==!1}function ma(e,t,n,...r){return Qi(e,t)}const IL=/&(gt|lt|amp|apos|quot);/g,PL={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ob={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Ep,isPreTag:Ep,isCustomElement:Ep,decodeEntities:e=>e.replace(IL,(t,n)=>PL[n]),onError:Cm,onWarn:Jw,comments:!1};function kL(e,t={}){const n=RL(e,t),r=yr(n);return yL(Vm(n,0,[]),Ur(n,r))}function RL(e,t){const n=Ho({},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 Vm(e,t,n){const r=wd(n),o=r?r.ns:0,s=[];for(;!HL(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&kn(a,e.options.delimiters[0]))c=UL(e,t);else if(t===0&&a[0]==="<")if(a.length===1)At(e,5,1);else if(a[1]==="!")kn(a,"<!--")?c=NL(e):kn(a,"<!DOCTYPE")?c=Il(e):kn(a,"<![CDATA[")?o!==0?c=LL(e,n):(At(e,1),c=Il(e)):(At(e,11),c=Il(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),vh(e,1,r);continue}else At(e,12,2),c=Il(e);else/[a-z]/i.test(a[1])?(c=ML(e,n),Qi("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(d=>d.type===7&&aS(d.name))&&(c=c.children)):a[1]==="?"?(At(e,21,1),c=Il(e)):At(e,12,1)}if(c||(c=jL(e,t)),Gs(c))for(let d=0;d<c.length;d++)Ab(s,c[d]);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 d=s[c];if(d.type===2)if(e.inPre)d.content=d.content.replace(/\r\n/g,`
    2 `);else if(/[^\t\r\n\f ]/.test(d.content))a&&(d.content=d.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(d.content))?(l=!0,s[c]=null):d.content=" "}else d.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=wd(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 LL(e,t){fn(e,9);const n=Vm(e,3,t);return e.source.length===0?At(e,6):fn(e,3),n}function NL(e){const t=yr(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:Ur(e,t)}}function Il(e){const t=yr(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:Ur(e,t)}}function ML(e,t){const n=e.inPre,r=e.inVPre,o=wd(t),s=vh(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),d=Vm(e,c,t);t.pop();{const p=s.props.find(h=>h.type===6&&h.name==="inline-template");if(p&&ma("COMPILER_INLINE_TEMPLATE",e,p.loc)){const h=Ur(e,s.loc.end);p.value={type:2,content:h.source,loc:h}}}if(s.children=d,yh(e.source,s.tag))vh(e,1,o);else if(At(e,24,0,s.loc.start),e.source.length===0&&s.tag.toLowerCase()==="script"){const p=d[0];p&&kn(p.loc.source,"<!--")&&At(e,8)}return s.loc=Ur(e,s.loc.start),l&&(e.inPre=!1),a&&(e.inVPre=!1),s}const aS=ro("if,else,else-if,for,slot");function vh(e,t,n){const r=yr(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),ga(e);const a=yr(e),c=e.source;e.options.isPreTag(s)&&(e.inPre=!0);let d=Ib(e,t);t===0&&!e.inVPre&&d.some(g=>g.type===7&&g.name==="pre")&&(e.inVPre=!0,Ho(e,a),e.source=c,d=Ib(e,t).filter(g=>g.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"?d.some(g=>g.type===7&&aS(g.name))&&(h=3):DL(s,d,e)&&(h=1)),{type:1,ns:l,tag:s,tagType:h,props:d,isSelfClosing:p,children:[],loc:Ur(e,r),codegenNode:void 0}}function DL(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(ma("COMPILER_IS_ON_ELEMENT",n,s.loc))return!0}}else{if(s.name==="is")return!0;if(s.name==="bind"&&qi(s.arg,"is")&&ma("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),ga(e);continue}t===1&&At(e,3);const o=FL(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),ga(e)}return n}function FL(e,t){const n=yr(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)&&(ga(e),fn(e,1),ga(e),s=BL(e),s||At(e,13));const l=Ur(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,"."),d=a[1]||(c||kn(o,":")?"bind":kn(o,"@")?"on":"slot"),p;if(a[2]){const g=d==="slot",y=o.lastIndexOf(a[2]),_=Ur(e,Pb(e,n,y),Pb(e,n,y+a[2].length+(g&&a[3]||"").length));let S=a[2],C=!0;S.startsWith("[")?(C=!1,S.endsWith("]")?S=S.slice(1,S.length-1):(At(e,27),S=S.slice(1))):g&&(S+=a[3]||""),p={type:4,content:S,isStatic:C,constType:C?3:0,loc:_}}if(s&&s.isQuoted){const g=s.loc;g.start.offset++,g.start.column++,g.end=Ic(g.start,s.content),g.source=g.source.slice(1,-1)}const h=a[3]?a[3].slice(1).split("."):[];return c&&h.push("prop"),d==="bind"&&p&&h.includes("sync")&&ma("COMPILER_V_BIND_SYNC",e,l,p.loc.source)&&(d="model",h.splice(h.indexOf("sync"),1)),{type:7,name:d,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 BL(e){const t=yr(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=Yl(e,e.source.length,4):(n=Yl(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=Yl(e,s[0].length,4)}return{content:n,isQuoted:o,loc:Ur(e,t)}}function UL(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(o===-1){At(e,25);return}const s=yr(e);fn(e,n.length);const l=yr(e),a=yr(e),c=o-n.length,d=e.source.slice(0,c),p=Yl(e,c,t),h=p.trim(),g=p.indexOf(h);g>0&&Pc(l,d,g);const y=c-(p.length-h.length-g);return Pc(a,d,y),fn(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:Ur(e,l,a)},loc:Ur(e,s)}}function jL(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=yr(e);return{type:2,content:Yl(e,r,t),loc:Ur(e,o)}}function Yl(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 yr(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Ur(e,t,n){return n=n||yr(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function wd(e){return e[e.length-1]}function kn(e,t){return e.startsWith(t)}function fn(e,t){const{source:n}=e;Pc(e,n,t),e.source=n.slice(t)}function ga(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&fn(e,t[0].length)}function Pb(e,t,n){return Ic(t,e.originalSource.slice(t.offset,n),n)}function At(e,t,n,r=yr(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Wt(t,{start:r,end:r,source:""}))}function HL(e,t,n){const r=e.source;switch(t){case 0:if(kn(r,"</")){for(let o=n.length-1;o>=0;--o)if(yh(r,n[o].tag))return!0}break;case 1:case 2:{const o=wd(n);if(o&&yh(r,o.tag))return!0;break}case 3:if(kn(r,"]]>"))return!0;break}return!r}function yh(e,t){return kn(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function VL(e,t){sc(e,t,uS(e,e.children[0]))}function uS(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Rc(t)}function sc(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:Lr(a,t);if(c>0){if(c>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const d=a.codegenNode;if(d.type===13){const p=pS(d);if((!p||p===512||p===1)&&dS(a,t)>=2){const h=fS(a);h&&(d.props=t.hoist(h))}d.dynamicProps&&(d.dynamicProps=t.hoist(d.dynamicProps))}}}if(a.type===1){const c=a.tagType===1;c&&t.scopes.vSlot++,sc(a,t),c&&t.scopes.vSlot--}else if(a.type===11)sc(a,t,a.children.length===1);else if(a.type===9)for(let c=0;c<a.branches.length;c++)sc(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&&Gs(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Ra(e.codegenNode.children)))}function Lr(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 d=0;d<e.children.length;d++){const p=Lr(e.children[d],t);if(p===0)return n.set(e,0),0;p<a&&(a=p)}if(a>1)for(let d=0;d<e.props.length;d++){const p=e.props[d];if(p.type===7&&p.name==="bind"&&p.exp){const h=Lr(p.exp,t);if(h===0)return n.set(e,0),0;h<a&&(a=h)}}if(o.isBlock){for(let d=0;d<e.props.length;d++)if(e.props[d].type===7)return n.set(e,0),0;t.removeHelper(as),t.removeHelper(Zs(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Ys(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 Lr(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)||xm(c))continue;const d=Lr(c,t);if(d===0)return 0;d<l&&(l=d)}return l;default:return 0}}const WL=new Set([Mm,Dm,fa,ka]);function cS(e,t){if(e.type===14&&!mn(e.callee)&&WL.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Lr(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=Lr(l,t);if(c===0)return c;c<n&&(n=c);let d;if(a.type===4?d=Lr(a,t):a.type===14?d=cS(a,t):d=0,d===0)return d;d<n&&(n=d)}}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 zL(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:o=!1,nodeTransforms:s=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=$c,isCustomElement:d=$c,expressionPlugins:p=[],scopeId:h=null,slotted:g=!0,ssr:y=!1,inSSR:_=!1,ssrCssVars:S="",bindingMetadata:C=oL,inline:T=!1,isTS:w=!1,onError:E=Cm,onWarn:O=Jw,compatConfig:$}){const P=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={selfName:P&&$m(yd(P[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:o,nodeTransforms:s,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:d,expressionPlugins:p,scopeId:h,slotted:g,ssr:y,inSSR:_,ssrCssVars:S,bindingMetadata:C,inline:T,isTS:w,onError:E,onWarn:O,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(I){const H=k.helpers.get(I)||0;return k.helpers.set(I,H+1),I},removeHelper(I){const H=k.helpers.get(I);if(H){const D=H-1;D?k.helpers.set(I,D):k.helpers.delete(I)}},helperString(I){return`_${Xs[k.helper(I)]}`},replaceNode(I){k.parent.children[k.childIndex]=k.currentNode=I},removeNode(I){const H=k.parent.children,D=I?H.indexOf(I):k.currentNode?k.childIndex:-1;!I||I===k.currentNode?(k.currentNode=null,k.onNodeRemoved()):k.childIndex>D&&(k.childIndex--,k.onNodeRemoved()),k.parent.children.splice(D,1)},onNodeRemoved:()=>{},addIdentifiers(I){},removeIdentifiers(I){},hoist(I){mn(I)&&(I=ut(I)),k.hoists.push(I);const H=ut(`_hoisted_${k.hoists.length}`,!1,I.loc,2);return H.hoisted=I,H},cache(I,H=!1){return bL(k.cached++,I,H)}};return k.filters=new Set,k}function qL(e,t){const n=zL(e,t);Sd(e,n),t.hoistStatic&&VL(e,n),t.ssr||KL(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 KL(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&&Hm(s,t),e.codegenNode=s}else e.codegenNode=o}else if(r.length>1){let o=64;e.codegenNode=pa(t,n(da),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}function GL(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,Sd(o,t))}}function Sd(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&&(Gs(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Pa);break;case 5:t.ssr||t.helper(bd);break;case 9:for(let s=0;s<e.branches.length;s++)Sd(e.branches[s],t);break;case 10:case 11:case 1:case 0:GL(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(TL))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 d=t(r,c,o);d&&l.push(d)}}return l}}}const Ed="/*#__PURE__*/",mS=e=>`${Xs[e]}: _${Xs[e]}`;function XL(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:d="vue/server-renderer",ssr:p=!1,isTS:h=!1,inSSR:g=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:d,ssr:p,isTS:h,inSSR:g,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(S){return`_${Xs[S]}`},push(S,C){y.code+=S},indent(){_(++y.indentLevel)},deindent(S=!1){S?--y.indentLevel:_(--y.indentLevel)},newline(){_(y.indentLevel)}};function _(S){y.push(`
    3 `+"  ".repeat(S))}return y}function JL(e,t={}){const n=XL(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:l,deindent:a,newline:c,scopeId:d,ssr:p}=n,h=Array.from(e.helpers),g=h.length>0,y=!s&&r!=="module";YL(e,n);const S=p?"ssrRender":"render",T=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${S}(${T}) {`),l(),y&&(o("with (_ctx) {"),l(),g&&(o(`const { ${h.map(mS).join(", ")} } = _Vue`),o(`
     1(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)}})();function Kh(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const NI="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",MI=Kh(NI);function Wo(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=on(r)?UI(r):Wo(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 DI=/;(?![^(]*\))/g,FI=/:([^]+)/,BI=/\/\*.*?\*\//gs;function UI(e){const t={};return e.replace(BI,"").split(DI).forEach(n=>{if(n){const r=n.split(FI);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function St(e){let t="";if(on(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=St(e[n]);r&&(t+=r+" ")}else if(qt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function jI(e){if(!e)return null;let{class:t,style:n}=e;return t&&!on(t)&&(e.class=St(t)),n&&(e.style=Wo(n)),e}const U=e=>on(e)?e:e==null?"":Je(e)||qt(e)&&(e.toString===u1||!et(e.toString))?JSON.stringify(e,s1,2):String(e),s1=(e,t)=>t&&t.__v_isRef?s1(e,t.value):Fs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:a1(t)?{[`Set(${t.size})`]:[...t.values()]}:qt(t)&&!Je(t)&&!c1(t)?String(t):t,Ut={},Ds=[],vo=()=>{},HI=()=>!1,VI=/^on[^a-z]/,Yc=e=>VI.test(e),l1=e=>e.startsWith("onUpdate:"),$n=Object.assign,Gh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},WI=Object.prototype.hasOwnProperty,_t=(e,t)=>WI.call(e,t),Je=Array.isArray,Fs=e=>$a(e)==="[object Map]",a1=e=>$a(e)==="[object Set]",zI=e=>$a(e)==="[object RegExp]",et=e=>typeof e=="function",on=e=>typeof e=="string",Xh=e=>typeof e=="symbol",qt=e=>e!==null&&typeof e=="object",Jh=e=>qt(e)&&et(e.then)&&et(e.catch),u1=Object.prototype.toString,$a=e=>u1.call(e),qI=e=>$a(e).slice(8,-1),c1=e=>$a(e)==="[object Object]",Yh=e=>on(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vl=Kh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},KI=/-(\w)/g,eo=Zc(e=>e.replace(KI,(t,n)=>n?n.toUpperCase():"")),GI=/\B([A-Z])/g,Qc=Zc(e=>e.replace(GI,"-$1").toLowerCase()),ed=Zc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wl=Zc(e=>e?`on${ed(e)}`:""),Ws=(e,t)=>!Object.is(e,t),zl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},vc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},XI=e=>{const t=parseFloat(e);return isNaN(t)?e:t},JI=e=>{const t=on(e)?Number(e):NaN;return isNaN(t)?e:t};let Hy;const YI=()=>Hy||(Hy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let pr;class Zh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=pr,!t&&pr&&(this.index=(pr.scopes||(pr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=pr;try{return pr=this,t()}finally{pr=n}}}on(){pr=this}off(){pr=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 ZI(e){return new Zh(e)}function d1(e,t=pr){t&&t.active&&t.effects.push(e)}function f1(){return pr}function p1(e){pr&&pr.cleanups.push(e)}const Qh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},h1=e=>(e.w&yi)>0,m1=e=>(e.n&yi)>0,QI=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=yi},ek=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];h1(o)&&!m1(o)?o.delete(e):t[n++]=o,o.w&=~yi,o.n&=~yi}t.length=n}},yc=new WeakMap;let Bl=0,yi=1;const qp=30;let Xr;const Ji=Symbol(""),Kp=Symbol("");class Ca{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,d1(this,r)}run(){if(!this.active)return this.fn();let t=Xr,n=mi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Xr,Xr=this,mi=!0,yi=1<<++Bl,Bl<=qp?QI(this):Vy(this),this.fn()}finally{Bl<=qp&&ek(this),yi=1<<--Bl,Xr=this.parent,mi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Xr===this?this.deferStop=!0:this.active&&(Vy(this),this.onStop&&this.onStop(),this.active=!1)}}function Vy(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function tk(e,t){e.effect&&(e=e.effect.fn);const n=new Ca(e);t&&($n(n,t),t.scope&&d1(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function nk(e){e.effect.stop()}let mi=!0;const g1=[];function al(){g1.push(mi),mi=!1}function ul(){const e=g1.pop();mi=e===void 0?!0:e}function or(e,t,n){if(mi&&Xr){let r=yc.get(e);r||yc.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Qh()),v1(o)}}function v1(e,t){let n=!1;Bl<=qp?m1(e)||(e.n|=yi,n=!h1(e)):n=!e.has(Xr),n&&(e.add(Xr),Xr.deps.push(e))}function zo(e,t,n,r,o,s){const l=yc.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((d,p)=>{(p==="length"||p>=c)&&a.push(d)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?Yh(n)&&a.push(l.get("length")):(a.push(l.get(Ji)),Fs(e)&&a.push(l.get(Kp)));break;case"delete":Je(e)||(a.push(l.get(Ji)),Fs(e)&&a.push(l.get(Kp)));break;case"set":Fs(e)&&a.push(l.get(Ji));break}if(a.length===1)a[0]&&Gp(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);Gp(Qh(c))}}function Gp(e,t){const n=Je(e)?e:[...e];for(const r of n)r.computed&&Wy(r);for(const r of n)r.computed||Wy(r)}function Wy(e,t){(e!==Xr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function rk(e,t){var n;return(n=yc.get(e))===null||n===void 0?void 0:n.get(t)}const ok=Kh("__proto__,__v_isRef,__isVue"),y1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xh)),ik=td(),sk=td(!1,!0),lk=td(!0),ak=td(!0,!0),zy=uk();function uk(){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++)or(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){al();const r=Ue(this)[t].apply(this,n);return ul(),r}}),e}function ck(e){const t=Ue(this);return or(t,"has",e),t.hasOwnProperty(e)}function td(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?$1:x1:t?E1:S1).get(r))return r;const l=Je(r);if(!e){if(l&&_t(zy,o))return Reflect.get(zy,o,s);if(o==="hasOwnProperty")return ck}const a=Reflect.get(r,o,s);return(Xh(o)?y1.has(o):ok(o))||(e||or(r,"get",o),t)?a:dn(a)?l&&Yh(o)?a:a.value:qt(a)?e?tm(a):xi(a):a}}const dk=b1(),fk=b1(!0);function b1(e=!1){return function(n,r,o,s){let l=n[r];if(is(l)&&dn(l)&&!dn(o))return!1;if(!e&&(!oa(o)&&!is(o)&&(l=Ue(l),o=Ue(o)),!Je(n)&&dn(l)&&!dn(o)))return l.value=o,!0;const a=Je(n)&&Yh(r)?Number(r)<n.length:_t(n,r),c=Reflect.set(n,r,o,s);return n===Ue(s)&&(a?Ws(o,l)&&zo(n,"set",r,o):zo(n,"add",r,o)),c}}function pk(e,t){const n=_t(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&zo(e,"delete",t,void 0),r}function hk(e,t){const n=Reflect.has(e,t);return(!Xh(t)||!y1.has(t))&&or(e,"has",t),n}function mk(e){return or(e,"iterate",Je(e)?"length":Ji),Reflect.ownKeys(e)}const _1={get:ik,set:dk,deleteProperty:pk,has:hk,ownKeys:mk},w1={get:lk,set(e,t){return!0},deleteProperty(e,t){return!0}},gk=$n({},_1,{get:sk,set:fk}),vk=$n({},w1,{get:ak}),em=e=>e,nd=e=>Reflect.getPrototypeOf(e);function Du(e,t,n=!1,r=!1){e=e.__v_raw;const o=Ue(e),s=Ue(t);n||(t!==s&&or(o,"get",t),or(o,"get",s));const{has:l}=nd(o),a=r?em:n?om:ia;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 Fu(e,t=!1){const n=this.__v_raw,r=Ue(n),o=Ue(e);return t||(e!==o&&or(r,"has",e),or(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Bu(e,t=!1){return e=e.__v_raw,!t&&or(Ue(e),"iterate",Ji),Reflect.get(e,"size",e)}function qy(e){e=Ue(e);const t=Ue(this);return nd(t).has.call(t,e)||(t.add(e),zo(t,"add",e,e)),this}function Ky(e,t){t=Ue(t);const n=Ue(this),{has:r,get:o}=nd(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?Ws(t,l)&&zo(n,"set",e,t):zo(n,"add",e,t),this}function Gy(e){const t=Ue(this),{has:n,get:r}=nd(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&&zo(t,"delete",e,void 0),s}function Xy(){const e=Ue(this),t=e.size!==0,n=e.clear();return t&&zo(e,"clear",void 0,void 0),n}function Uu(e,t){return function(r,o){const s=this,l=s.__v_raw,a=Ue(l),c=t?em:e?om:ia;return!e&&or(a,"iterate",Ji),l.forEach((d,p)=>r.call(o,c(d),c(p),s))}}function ju(e,t,n){return function(...r){const o=this.__v_raw,s=Ue(o),l=Fs(s),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,d=o[e](...r),p=n?em:t?om:ia;return!t&&or(s,"iterate",c?Kp:Ji),{next(){const{value:h,done:g}=d.next();return g?{value:h,done:g}:{value:a?[p(h[0]),p(h[1])]:p(h),done:g}},[Symbol.iterator](){return this}}}}function si(e){return function(...t){return e==="delete"?!1:this}}function yk(){const e={get(s){return Du(this,s)},get size(){return Bu(this)},has:Fu,add:qy,set:Ky,delete:Gy,clear:Xy,forEach:Uu(!1,!1)},t={get(s){return Du(this,s,!1,!0)},get size(){return Bu(this)},has:Fu,add:qy,set:Ky,delete:Gy,clear:Xy,forEach:Uu(!1,!0)},n={get(s){return Du(this,s,!0)},get size(){return Bu(this,!0)},has(s){return Fu.call(this,s,!0)},add:si("add"),set:si("set"),delete:si("delete"),clear:si("clear"),forEach:Uu(!0,!1)},r={get(s){return Du(this,s,!0,!0)},get size(){return Bu(this,!0)},has(s){return Fu.call(this,s,!0)},add:si("add"),set:si("set"),delete:si("delete"),clear:si("clear"),forEach:Uu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=ju(s,!1,!1),n[s]=ju(s,!0,!1),t[s]=ju(s,!1,!0),r[s]=ju(s,!0,!0)}),[e,n,t,r]}const[bk,_k,wk,Sk]=yk();function rd(e,t){const n=t?e?Sk:wk:e?_k:bk;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 Ek={get:rd(!1,!1)},xk={get:rd(!1,!0)},$k={get:rd(!0,!1)},Ck={get:rd(!0,!0)},S1=new WeakMap,E1=new WeakMap,x1=new WeakMap,$1=new WeakMap;function Tk(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ok(e){return e.__v_skip||!Object.isExtensible(e)?0:Tk(qI(e))}function xi(e){return is(e)?e:od(e,!1,_1,Ek,S1)}function C1(e){return od(e,!1,gk,xk,E1)}function tm(e){return od(e,!0,w1,$k,x1)}function Ak(e){return od(e,!0,vk,Ck,$1)}function od(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=Ok(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Yi(e){return is(e)?Yi(e.__v_raw):!!(e&&e.__v_isReactive)}function is(e){return!!(e&&e.__v_isReadonly)}function oa(e){return!!(e&&e.__v_isShallow)}function nm(e){return Yi(e)||is(e)}function Ue(e){const t=e&&e.__v_raw;return t?Ue(t):e}function rm(e){return vc(e,"__v_skip",!0),e}const ia=e=>qt(e)?xi(e):e,om=e=>qt(e)?tm(e):e;function im(e){mi&&Xr&&(e=Ue(e),v1(e.dep||(e.dep=Qh())))}function id(e,t){e=Ue(e);const n=e.dep;n&&Gp(n)}function dn(e){return!!(e&&e.__v_isRef===!0)}function _e(e){return T1(e,!1)}function sd(e){return T1(e,!0)}function T1(e,t){return dn(e)?e:new Pk(e,t)}class Pk{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:ia(t)}get value(){return im(this),this._value}set value(t){const n=this.__v_isShallow||oa(t)||is(t);t=n?t:Ue(t),Ws(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ia(t),id(this))}}function Xp(e){id(e)}function Hn(e){return dn(e)?e.value:e}const Ik={get:(e,t,n)=>Hn(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 sm(e){return Yi(e)?e:new Proxy(e,Ik)}class kk{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>im(this),()=>id(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Rk(e){return new kk(e)}function lm(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=O1(e,n);return t}class Lk{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 rk(Ue(this._object),this._key)}}function O1(e,t,n){const r=e[t];return dn(r)?r:new Lk(e,t,n)}var A1;class Nk{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[A1]=!1,this._dirty=!0,this.effect=new Ca(t,()=>{this._dirty||(this._dirty=!0,id(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Ue(this);return im(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}A1="__v_isReadonly";function Mk(e,t,n=!1){let r,o;const s=et(e);return s?(r=e,o=vo):(r=e.get,o=e.set),new Nk(r,o,s||!o,n)}function Dk(e,...t){}function Fk(e,t){}function jo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){ds(s,t,n)}return o}function vr(e,t,n,r){if(et(e)){const s=jo(e,t,n,r);return s&&Jh(s)&&s.catch(l=>{ds(l,t,n)}),s}const o=[];for(let s=0;s<e.length;s++)o.push(vr(e[s],t,n,r));return o}function ds(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 d=s.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,a)===!1)return}s=s.parent}const c=t.appContext.config.errorHandler;if(c){jo(c,null,10,[e,l,a]);return}}Bk(e,n,o,r)}function Bk(e,t,n,r=!0){console.error(e)}let sa=!1,Jp=!1;const Pn=[];let go=0;const Bs=[];let Mo=null,Vi=0;const P1=Promise.resolve();let am=null;function rn(e){const t=am||P1;return e?t.then(this?e.bind(this):e):t}function Uk(e){let t=go+1,n=Pn.length;for(;t<n;){const r=t+n>>>1;la(Pn[r])<e?t=r+1:n=r}return t}function ld(e){(!Pn.length||!Pn.includes(e,sa&&e.allowRecurse?go+1:go))&&(e.id==null?Pn.push(e):Pn.splice(Uk(e.id),0,e),I1())}function I1(){!sa&&!Jp&&(Jp=!0,am=P1.then(k1))}function jk(e){const t=Pn.indexOf(e);t>go&&Pn.splice(t,1)}function um(e){Je(e)?Bs.push(...e):(!Mo||!Mo.includes(e,e.allowRecurse?Vi+1:Vi))&&Bs.push(e),I1()}function Jy(e,t=sa?go+1:0){for(;t<Pn.length;t++){const n=Pn[t];n&&n.pre&&(Pn.splice(t,1),t--,n())}}function bc(e){if(Bs.length){const t=[...new Set(Bs)];if(Bs.length=0,Mo){Mo.push(...t);return}for(Mo=t,Mo.sort((n,r)=>la(n)-la(r)),Vi=0;Vi<Mo.length;Vi++)Mo[Vi]();Mo=null,Vi=0}}const la=e=>e.id==null?1/0:e.id,Hk=(e,t)=>{const n=la(e)-la(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function k1(e){Jp=!1,sa=!0,Pn.sort(Hk);try{for(go=0;go<Pn.length;go++){const t=Pn[go];t&&t.active!==!1&&jo(t,null,14)}}finally{go=0,Pn.length=0,bc(),sa=!1,am=null,(Pn.length||Bs.length)&&k1()}}let Ns,Hu=[];function R1(e,t){var n,r;Ns=e,Ns?(Ns.enabled=!0,Hu.forEach(({event:o,args:s})=>Ns.emit(o,...s)),Hu=[]):typeof window<"u"&&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=>{R1(s,t)}),setTimeout(()=>{Ns||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Hu=[])},3e3)):Hu=[]}function Vk(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:g}=r[p]||Ut;g&&(o=n.map(y=>on(y)?y.trim():y)),h&&(o=n.map(XI))}let a,c=r[a=Wl(t)]||r[a=Wl(eo(t))];!c&&s&&(c=r[a=Wl(Qc(t))]),c&&vr(c,e,6,o);const d=r[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,vr(d,e,6,o)}}function L1(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=d=>{const p=L1(d,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 ad(e,t){return!e||!Yc(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,Qc(t))||_t(e,t))}let xn=null,ud=null;function aa(e){const t=xn;return xn=e,ud=e&&e.type.__scopeId||null,t}function Wk(e){ud=e}function zk(){ud=null}const qk=e=>ye;function ye(e,t=xn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&rh(-1);const s=aa(t);let l;try{l=e(...o)}finally{aa(s),r._d&&rh(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function oc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[l],slots:a,attrs:c,emit:d,render:p,renderCache:h,data:g,setupState:y,ctx:_,inheritAttrs:S}=e;let C,T;const w=aa(e);try{if(n.shapeFlag&4){const O=o||r;C=hr(p.call(O,O,h,s,y,g,_)),T=c}else{const O=t;C=hr(O.length>1?O(s,{attrs:c,slots:a,emit:d}):O(s,null)),T=t.props?c:Gk(c)}}catch(O){Gl.length=0,ds(O,e,1),C=q(Rn)}let E=C;if(T&&S!==!1){const O=Object.keys(T),{shapeFlag:x}=E;O.length&&x&7&&(l&&O.some(l1)&&(T=Xk(T,l)),E=Ur(E,T))}return n.dirs&&(E=Ur(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),C=E,aa(w),C}function Kk(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(bi(r)){if(r.type!==Rn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const Gk=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yc(n))&&((t||(t={}))[n]=e[n]);return t},Xk=(e,t)=>{const n={};for(const r in e)(!l1(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Jk(e,t,n){const{props:r,children:o,component:s}=e,{props:l,children:a,patchFlag:c}=t,d=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Yy(r,l,d):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const g=p[h];if(l[g]!==r[g]&&!ad(d,g))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?Yy(r,l,d):!0:!!l;return!1}function Yy(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]&&!ad(n,s))return!0}return!1}function cm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const N1=e=>e.__isSuspense,Yk={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,l,a,c,d){e==null?Qk(t,n,r,o,s,l,a,c,d):eR(e,t,n,r,o,l,a,c,d)},hydrate:tR,create:dm,normalize:nR},Zk=Yk;function ua(e,t){const n=e.props&&e.props[t];et(n)&&n()}function Qk(e,t,n,r,o,s,l,a,c){const{p:d,o:{createElement:p}}=c,h=p("div"),g=e.suspense=dm(e,o,r,t,h,n,s,l,a,c);d(null,g.pendingBranch=e.ssContent,h,null,r,g,s,l),g.deps>0?(ua(e,"onPending"),ua(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,s,l),Us(g,e.ssFallback)):g.resolve()}function eR(e,t,n,r,o,s,l,a,{p:c,um:d,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const g=t.ssContent,y=t.ssFallback,{activeBranch:_,pendingBranch:S,isInFallback:C,isHydrating:T}=h;if(S)h.pendingBranch=g,Jr(g,S)?(c(S,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():C&&(c(_,y,n,r,o,null,s,l,a),Us(h,y))):(h.pendingId++,T?(h.isHydrating=!1,h.activeBranch=S):d(S,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),C?(c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():(c(_,y,n,r,o,null,s,l,a),Us(h,y))):_&&Jr(g,_)?(c(_,g,n,r,o,h,s,l,a),h.resolve(!0)):(c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0&&h.resolve()));else if(_&&Jr(g,_))c(_,g,n,r,o,h,s,l,a),Us(h,g);else if(ua(t,"onPending"),h.pendingBranch=g,h.pendingId++,c(null,g,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0)h.resolve();else{const{timeout:w,pendingId:E}=h;w>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},w):w===0&&h.fallback(y)}}function dm(e,t,n,r,o,s,l,a,c,d,p=!1){const{p:h,m:g,um:y,n:_,o:{parentNode:S,remove:C}}=d,T=e.props?JI(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof T=="number"?T:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:O,activeBranch:x,pendingBranch:I,pendingId:k,effects:P,parentComponent:H,container:D}=w;if(w.isHydrating)w.isHydrating=!1;else if(!E){const G=x&&I.transition&&I.transition.mode==="out-in";G&&(x.transition.afterLeave=()=>{k===w.pendingId&&g(I,D,te,0)});let{anchor:te}=w;x&&(te=_(x),y(x,H,w,!0)),G||g(I,D,te,0)}Us(w,I),w.pendingBranch=null,w.isInFallback=!1;let F=w.parent,z=!1;for(;F;){if(F.pendingBranch){F.effects.push(...P),z=!0;break}F=F.parent}z||um(P),w.effects=[],ua(O,"onResolve")},fallback(E){if(!w.pendingBranch)return;const{vnode:O,activeBranch:x,parentComponent:I,container:k,isSVG:P}=w;ua(O,"onFallback");const H=_(x),D=()=>{w.isInFallback&&(h(null,E,k,H,I,null,P,a,c),Us(w,E))},F=E.transition&&E.transition.mode==="out-in";F&&(x.transition.afterLeave=D),w.isInFallback=!0,y(x,I,null,!0),F||D()},move(E,O,x){w.activeBranch&&g(w.activeBranch,E,O,x),w.container=E},next(){return w.activeBranch&&_(w.activeBranch)},registerDep(E,O){const x=!!w.pendingBranch;x&&w.deps++;const I=E.vnode.el;E.asyncDep.catch(k=>{ds(k,E,0)}).then(k=>{if(E.isUnmounted||w.isUnmounted||w.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:P}=E;oh(E,k,!1),I&&(P.el=I);const H=!I&&E.subTree.el;O(E,P,S(I||E.subTree.el),I?null:_(E.subTree),w,l,c),H&&C(H),cm(E,P.el),x&&--w.deps===0&&w.resolve()})},unmount(E,O){w.isUnmounted=!0,w.activeBranch&&y(w.activeBranch,n,E,O),w.pendingBranch&&y(w.pendingBranch,n,E,O)}};return w}function tR(e,t,n,r,o,s,l,a,c){const d=t.suspense=dm(t,r,n,e.parentNode,document.createElement("div"),null,o,s,l,a,!0),p=c(e,d.pendingBranch=t.ssContent,n,d,s,l);return d.deps===0&&d.resolve(),p}function nR(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Zy(r?n.default:n),e.ssFallback=r?Zy(n.fallback):q(Rn)}function Zy(e){let t;if(et(e)){const n=as&&e._c;n&&(e._d=!1,N()),e=e(),n&&(e._d=!0,t=Zn,cw())}return Je(e)&&(e=Kk(e)),e=hr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function M1(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):um(e)}function Us(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,cm(r,o))}function Zt(e,t){if(Jt){let n=Jt.provides;const r=Jt.parent&&Jt.parent.provides;r===n&&(n=Jt.provides=Object.create(r)),n[e]=t}}function Rt(e,t,n=!1){const r=Jt||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 Ta(e,null,t)}function D1(e,t){return Ta(e,null,{flush:"post"})}function rR(e,t){return Ta(e,null,{flush:"sync"})}const Vu={};function Ft(e,t,n){return Ta(e,t,n)}function Ta(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:l}=Ut){const a=f1()===(Jt==null?void 0:Jt.scope)?Jt:null;let c,d=!1,p=!1;if(dn(e)?(c=()=>e.value,d=oa(e)):Yi(e)?(c=()=>e,r=!0):Je(e)?(p=!0,d=e.some(E=>Yi(E)||oa(E)),c=()=>e.map(E=>{if(dn(E))return E.value;if(Yi(E))return qi(E);if(et(E))return jo(E,a,2)})):et(e)?t?c=()=>jo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),vr(e,a,3,[g])}:c=vo,t&&r){const E=c;c=()=>qi(E())}let h,g=E=>{h=T.onStop=()=>{jo(E,a,4)}},y;if(qs)if(g=vo,t?n&&vr(t,a,3,[c(),p?[]:void 0,g]):c(),o==="sync"){const E=xw();y=E.__watcherHandles||(E.__watcherHandles=[])}else return vo;let _=p?new Array(e.length).fill(Vu):Vu;const S=()=>{if(T.active)if(t){const E=T.run();(r||d||(p?E.some((O,x)=>Ws(O,_[x])):Ws(E,_)))&&(h&&h(),vr(t,a,3,[E,_===Vu?void 0:p&&_[0]===Vu?[]:_,g]),_=E)}else T.run()};S.allowRecurse=!!t;let C;o==="sync"?C=S:o==="post"?C=()=>Sn(S,a&&a.suspense):(S.pre=!0,a&&(S.id=a.uid),C=()=>ld(S));const T=new Ca(c,C);t?n?S():_=T.run():o==="post"?Sn(T.run.bind(T),a&&a.suspense):T.run();const w=()=>{T.stop(),a&&a.scope&&Gh(a.scope.effects,T)};return y&&y.push(w),w}function oR(e,t,n){const r=this.proxy,o=on(e)?e.includes(".")?F1(r,e):()=>r[e]:e.bind(r,r);let s;et(t)?s=t:(s=t.handler,n=t);const l=Jt;_i(this);const a=Ta(o,s.bind(r),n);return l?_i(l):gi(),a}function F1(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 qi(e,t){if(!qt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),dn(e))qi(e.value,t);else if(Je(e))for(let n=0;n<e.length;n++)qi(e[n],t);else if(a1(e)||Fs(e))e.forEach(n=>{qi(n,t)});else if(c1(e))for(const n in e)qi(e[n],t);return e}function fm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return vt(()=>{e.isMounted=!0}),fs(()=>{e.isUnmounting=!0}),e}const Ir=[Function,Array],iR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ir,onEnter:Ir,onAfterEnter:Ir,onEnterCancelled:Ir,onBeforeLeave:Ir,onLeave:Ir,onAfterLeave:Ir,onLeaveCancelled:Ir,onBeforeAppear:Ir,onAppear:Ir,onAfterAppear:Ir,onAppearCancelled:Ir},setup(e,{slots:t}){const n=Xo(),r=fm();let o;return()=>{const s=t.default&&cd(t.default(),!0);if(!s||!s.length)return;let l=s[0];if(s.length>1){for(const S of s)if(S.type!==Rn){l=S;break}}const a=Ue(e),{mode:c}=a;if(r.isLeaving)return pp(l);const d=Qy(l);if(!d)return pp(l);const p=zs(d,a,r,n);ss(d,p);const h=n.subTree,g=h&&Qy(h);let y=!1;const{getTransitionKey:_}=d.type;if(_){const S=_();o===void 0?o=S:S!==o&&(o=S,y=!0)}if(g&&g.type!==Rn&&(!Jr(d,g)||y)){const S=zs(g,a,r,n);if(ss(g,S),c==="out-in")return r.isLeaving=!0,S.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},pp(l);c==="in-out"&&d.type!==Rn&&(S.delayLeave=(C,T,w)=>{const E=B1(r,g);E[String(g.key)]=g,C._leaveCb=()=>{T(),C._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=w})}return l}}},pm=iR;function B1(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 zs(e,t,n,r){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:h,onLeave:g,onAfterLeave:y,onLeaveCancelled:_,onBeforeAppear:S,onAppear:C,onAfterAppear:T,onAppearCancelled:w}=t,E=String(e.key),O=B1(n,e),x=(P,H)=>{P&&vr(P,r,9,H)},I=(P,H)=>{const D=H[1];x(P,H),Je(P)?P.every(F=>F.length<=1)&&D():P.length<=1&&D()},k={mode:s,persisted:l,beforeEnter(P){let H=a;if(!n.isMounted)if(o)H=S||a;else return;P._leaveCb&&P._leaveCb(!0);const D=O[E];D&&Jr(e,D)&&D.el._leaveCb&&D.el._leaveCb(),x(H,[P])},enter(P){let H=c,D=d,F=p;if(!n.isMounted)if(o)H=C||c,D=T||d,F=w||p;else return;let z=!1;const G=P._enterCb=te=>{z||(z=!0,te?x(F,[P]):x(D,[P]),k.delayedLeave&&k.delayedLeave(),P._enterCb=void 0)};H?I(H,[P,G]):G()},leave(P,H){const D=String(e.key);if(P._enterCb&&P._enterCb(!0),n.isUnmounting)return H();x(h,[P]);let F=!1;const z=P._leaveCb=G=>{F||(F=!0,H(),G?x(_,[P]):x(y,[P]),P._leaveCb=void 0,O[D]===e&&delete O[D])};O[D]=e,g?I(g,[P,z]):z()},clone(P){return zs(P,t,n,r)}};return k}function pp(e){if(Oa(e))return e=Ur(e),e.children=null,e}function Qy(e){return Oa(e)?e.children?e.children[0]:void 0:e}function ss(e,t){e.shapeFlag&6&&e.component?ss(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 cd(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(cd(l.children,t,a))):(t||l.type!==Rn)&&r.push(a!=null?Ur(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 Zi=e=>!!e.type.__asyncLoader;function sR(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,d,p=0;const h=()=>(p++,c=null,g()),g=()=>{let y;return c||(y=c=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),a)return new Promise((S,C)=>{a(_,()=>S(h()),()=>C(_),p+1)});throw _}).then(_=>y!==c&&c?c:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),d=_,_)))};return ve({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return d},setup(){const y=Jt;if(d)return()=>hp(d,y);const _=w=>{c=null,ds(w,y,13,!r)};if(l&&y.suspense||qs)return g().then(w=>()=>hp(w,y)).catch(w=>(_(w),()=>r?q(r,{error:w}):null));const S=_e(!1),C=_e(),T=_e(!!o);return o&&setTimeout(()=>{T.value=!1},o),s!=null&&setTimeout(()=>{if(!S.value&&!C.value){const w=new Error(`Async component timed out after ${s}ms.`);_(w),C.value=w}},s),g().then(()=>{S.value=!0,y.parent&&Oa(y.parent.vnode)&&ld(y.parent.update)}).catch(w=>{_(w),C.value=w}),()=>{if(S.value&&d)return hp(d,y);if(C.value&&r)return q(r,{error:C.value});if(n&&!T.value)return q(n)}}})}function hp(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 Oa=e=>e.type.__isKeepAlive,lR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Xo(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const o=new Map,s=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:d,um:p,o:{createElement:h}}}=r,g=h("div");r.activate=(w,E,O,x,I)=>{const k=w.component;d(w,E,O,0,a),c(k.vnode,w,E,O,k,a,x,w.slotScopeIds,I),Sn(()=>{k.isDeactivated=!1,k.a&&zl(k.a);const P=w.props&&w.props.onVnodeMounted;P&&Yn(P,k.parent,w)},a)},r.deactivate=w=>{const E=w.component;d(w,g,null,1,a),Sn(()=>{E.da&&zl(E.da);const O=w.props&&w.props.onVnodeUnmounted;O&&Yn(O,E.parent,w),E.isDeactivated=!0},a)};function y(w){mp(w),p(w,n,a,!0)}function _(w){o.forEach((E,O)=>{const x=sh(E.type);x&&(!w||!w(x))&&S(O)})}function S(w){const E=o.get(w);!l||!Jr(E,l)?y(E):l&&mp(l),o.delete(w),s.delete(w)}Ft(()=>[e.include,e.exclude],([w,E])=>{w&&_(O=>Ul(w,O)),E&&_(O=>!Ul(E,O))},{flush:"post",deep:!0});let C=null;const T=()=>{C!=null&&o.set(C,gp(n.subTree))};return vt(T),fd(T),fs(()=>{o.forEach(w=>{const{subTree:E,suspense:O}=n,x=gp(E);if(w.type===x.type&&w.key===x.key){mp(x);const I=x.component.da;I&&Sn(I,O);return}y(w)})}),()=>{if(C=null,!t.default)return null;const w=t.default(),E=w[0];if(w.length>1)return l=null,w;if(!bi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let O=gp(E);const x=O.type,I=sh(Zi(O)?O.type.__asyncResolved||{}:x),{include:k,exclude:P,max:H}=e;if(k&&(!I||!Ul(k,I))||P&&I&&Ul(P,I))return l=O,E;const D=O.key==null?x:O.key,F=o.get(D);return O.el&&(O=Ur(O),E.shapeFlag&128&&(E.ssContent=O)),C=D,F?(O.el=F.el,O.component=F.component,O.transition&&ss(O,O.transition),O.shapeFlag|=512,s.delete(D),s.add(D)):(s.add(D),H&&s.size>parseInt(H,10)&&S(s.values().next().value)),O.shapeFlag|=256,l=O,N1(E.type)?E:O}}},aR=lR;function Ul(e,t){return Je(e)?e.some(n=>Ul(n,t)):on(e)?e.split(",").includes(t):zI(e)?e.test(t):!1}function U1(e,t){H1(e,"a",t)}function j1(e,t){H1(e,"da",t)}function H1(e,t,n=Jt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(dd(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Oa(o.parent.vnode)&&uR(r,t,n,o),o=o.parent}}function uR(e,t,n,r){const o=dd(t,e,r,!0);Qt(()=>{Gh(r[t],o)},n)}function mp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function gp(e){return e.shapeFlag&128?e.ssContent:e}function dd(e,t,n=Jt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;al(),_i(n);const a=vr(t,n,e,l);return gi(),ul(),a});return r?o.unshift(s):o.push(s),s}}const Go=e=>(t,n=Jt)=>(!qs||e==="sp")&&dd(e,(...r)=>t(...r),n),V1=Go("bm"),vt=Go("m"),W1=Go("bu"),fd=Go("u"),fs=Go("bum"),Qt=Go("um"),z1=Go("sp"),q1=Go("rtg"),K1=Go("rtc");function G1(e,t=Jt){dd("ec",e,t)}function X1(e,t){const n=xn;if(n===null)return e;const r=hd(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,a,c,d=Ut]=t[s];l&&(et(l)&&(l={mounted:l,updated:l}),l.deep&&qi(a),o.push({dir:l,instance:r,value:a,oldValue:void 0,arg:c,modifiers:d}))}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&&(al(),vr(c,n,8,[e.el,a,e,t]),ul())}}const hm="components",cR="directives";function J(e,t){return mm(hm,e,!0,t)||e}const J1=Symbol();function dR(e){return on(e)?mm(hm,e,!1)||e:e||J1}function fR(e){return mm(cR,e)}function mm(e,t,n=!0,r=!1){const o=xn||Jt;if(o){const s=o.type;if(e===hm){const a=sh(s,!1);if(a&&(a===t||a===eo(t)||a===ed(eo(t))))return s}const l=eb(o[e]||s[e],t)||eb(o.appContext[e],t);return!l&&r?s:l}}function eb(e,t){return e&&(e[t]||e[eo(t)]||e[ed(eo(t))])}function Dt(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 d=l[a];o[a]=t(e[d],d,a,s&&s[a])}}else o=[];return n&&(n[r]=o),o}function pR(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 _r(e,t,n={},r,o){if(xn.isCE||xn.parent&&Zi(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&&Y1(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 Y1(e){return e.some(t=>bi(t)?!(t.type===Rn||t.type===Fe&&!Y1(t.children)):!0)?e:null}function hR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Wl(r)]=e[r];return n}const Yp=e=>e?gw(e)?hd(e)||e.proxy:Yp(e.parent):null,ql=$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=>Yp(e.parent),$root:e=>Yp(e.root),$emit:e=>e.emit,$options:e=>gm(e),$forceUpdate:e=>e.f||(e.f=()=>ld(e.update)),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>oR.bind(e)}),vp=(e,t)=>e!==Ut&&!e.__isScriptSetup&&_t(e,t),Zp={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:l,type:a,appContext:c}=e;let d;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(vp(r,t))return l[t]=1,r[t];if(o!==Ut&&_t(o,t))return l[t]=2,o[t];if((d=e.propsOptions[0])&&_t(d,t))return l[t]=3,s[t];if(n!==Ut&&_t(n,t))return l[t]=4,n[t];Qp&&(l[t]=0)}}const p=ql[t];let h,g;if(p)return t==="$attrs"&&or(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(g=c.config.globalProperties,_t(g,t))return g[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return vp(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)||vp(t,l)||(a=s[0])&&_t(a,l)||_t(r,l)||_t(ql,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)}},mR=$n({},Zp,{get(e,t){if(t!==Symbol.unscopables)return Zp.get(e,t,e)},has(e,t){return t[0]!=="_"&&!MI(t)}});let Qp=!0;function gR(e){const t=gm(e),n=e.proxy,r=e.ctx;Qp=!1,t.beforeCreate&&tb(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:l,watch:a,provide:c,inject:d,created:p,beforeMount:h,mounted:g,beforeUpdate:y,updated:_,activated:S,deactivated:C,beforeDestroy:T,beforeUnmount:w,destroyed:E,unmounted:O,render:x,renderTracked:I,renderTriggered:k,errorCaptured:P,serverPrefetch:H,expose:D,inheritAttrs:F,components:z,directives:G,filters:te}=t;if(d&&vR(d,r,null,e.appContext.config.unwrapInjectedRef),l)for(const Ae in l){const Pe=l[Ae];et(Pe)&&(r[Ae]=Pe.bind(n))}if(o){const Ae=o.call(n,n);qt(Ae)&&(e.data=xi(Ae))}if(Qp=!0,s)for(const Ae in s){const Pe=s[Ae],Ye=et(Pe)?Pe.bind(n,n):et(Pe.get)?Pe.get.bind(n,n):vo,ft=!et(Pe)&&et(Pe.set)?Pe.set.bind(n):vo,Le=ce({get:Ye,set:ft});Object.defineProperty(r,Ae,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Ge=>Le.value=Ge})}if(a)for(const Ae in a)Z1(a[Ae],r,n,Ae);if(c){const Ae=et(c)?c.call(n):c;Reflect.ownKeys(Ae).forEach(Pe=>{Zt(Pe,Ae[Pe])})}p&&tb(p,e,"c");function be(Ae,Pe){Je(Pe)?Pe.forEach(Ye=>Ae(Ye.bind(n))):Pe&&Ae(Pe.bind(n))}if(be(V1,h),be(vt,g),be(W1,y),be(fd,_),be(U1,S),be(j1,C),be(G1,P),be(K1,I),be(q1,k),be(fs,w),be(Qt,O),be(z1,H),Je(D))if(D.length){const Ae=e.exposed||(e.exposed={});D.forEach(Pe=>{Object.defineProperty(Ae,Pe,{get:()=>n[Pe],set:Ye=>n[Pe]=Ye})})}else e.exposed||(e.exposed={});x&&e.render===vo&&(e.render=x),F!=null&&(e.inheritAttrs=F),z&&(e.components=z),G&&(e.directives=G)}function vR(e,t,n=vo,r=!1){Je(e)&&(e=eh(e));for(const o in e){const s=e[o];let l;qt(s)?"default"in s?l=Rt(s.from||o,s.default,!0):l=Rt(s.from||o):l=Rt(s),dn(l)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[o]=l}}function tb(e,t,n){vr(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Z1(e,t,n,r){const o=r.includes(".")?F1(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=>Z1(s,t,n,r));else{const s=et(e.handler)?e.handler.bind(n):t[e.handler];et(s)&&Ft(o,s,e)}}function gm(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(d=>_c(c,d,l,!0)),_c(c,t,l)),qt(t)&&s.set(t,c),c}function _c(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&_c(e,s,n,!0),o&&o.forEach(l=>_c(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=yR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const yR={data:nb,props:Hi,emits:Hi,methods:Hi,computed:Hi,beforeCreate:jn,created:jn,beforeMount:jn,mounted:jn,beforeUpdate:jn,updated:jn,beforeDestroy:jn,beforeUnmount:jn,destroyed:jn,unmounted:jn,activated:jn,deactivated:jn,errorCaptured:jn,serverPrefetch:jn,components:Hi,directives:Hi,watch:_R,provide:nb,inject:bR};function nb(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 bR(e,t){return Hi(eh(e),eh(t))}function eh(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function jn(e,t){return e?[...new Set([].concat(e,t))]:t}function Hi(e,t){return e?$n($n(Object.create(null),e),t):t}function _R(e,t){if(!e)return t;if(!t)return e;const n=$n(Object.create(null),e);for(const r in t)n[r]=jn(e[r],t[r]);return n}function wR(e,t,n,r=!1){const o={},s={};vc(s,pd,1),e.propsDefaults=Object.create(null),Q1(e,t,o,s);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:C1(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function SR(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:l}}=e,a=Ue(o),[c]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let g=p[h];if(ad(e.emitsOptions,g))continue;const y=t[g];if(c)if(_t(s,g))y!==s[g]&&(s[g]=y,d=!0);else{const _=eo(g);o[_]=th(c,a,_,y,e,!1)}else y!==s[g]&&(s[g]=y,d=!0)}}}else{Q1(e,t,o,s)&&(d=!0);let p;for(const h in a)(!t||!_t(t,h)&&((p=Qc(h))===h||!_t(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=th(c,a,h,void 0,e,!0)):delete o[h]);if(s!==a)for(const h in s)(!t||!_t(t,h))&&(delete s[h],d=!0)}d&&zo(e,"set","$attrs")}function Q1(e,t,n,r){const[o,s]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(Vl(c))continue;const d=t[c];let p;o&&_t(o,p=eo(c))?!s||!s.includes(p)?n[p]=d:(a||(a={}))[p]=d:ad(e.emitsOptions,c)||(!(c in r)||d!==r[c])&&(r[c]=d,l=!0)}if(s){const c=Ue(n),d=a||Ut;for(let p=0;p<s.length;p++){const h=s[p];n[h]=th(o,c,h,d[h],e,!_t(d,h))}}return l}function th(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:d}=o;n in d?r=d[n]:(_i(o),r=d[n]=c.call(null,t),gi())}else r=c}l[0]&&(s&&!a?r=!1:l[1]&&(r===""||r===Qc(n))&&(r=!0))}return r}function ew(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[g,y]=ew(h,t,!0);$n(l,g),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,Ds),Ds;if(Je(s))for(let p=0;p<s.length;p++){const h=eo(s[p]);rb(h)&&(l[h]=Ut)}else if(s)for(const p in s){const h=eo(p);if(rb(h)){const g=s[p],y=l[h]=Je(g)||et(g)?{type:g}:Object.assign({},g);if(y){const _=sb(Boolean,y.type),S=sb(String,y.type);y[0]=_>-1,y[1]=S<0||_<S,(_>-1||_t(y,"default"))&&a.push(h)}}}const d=[l,a];return qt(e)&&r.set(e,d),d}function rb(e){return e[0]!=="$"}function ob(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ib(e,t){return ob(e)===ob(t)}function sb(e,t){return Je(t)?t.findIndex(n=>ib(n,e)):et(t)&&ib(t,e)?0:-1}const tw=e=>e[0]==="_"||e==="$stable",vm=e=>Je(e)?e.map(hr):[hr(e)],ER=(e,t,n)=>{if(t._n)return t;const r=ye((...o)=>vm(t(...o)),n);return r._c=!1,r},nw=(e,t,n)=>{const r=e._ctx;for(const o in e){if(tw(o))continue;const s=e[o];if(et(s))t[o]=ER(o,s,r);else if(s!=null){const l=vm(s);t[o]=()=>l}}},rw=(e,t)=>{const n=vm(t);e.slots.default=()=>n},xR=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ue(t),vc(t,"_",n)):nw(t,e.slots={})}else e.slots={},t&&rw(e,t);vc(e.slots,pd,1)},$R=(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,nw(t,o)),l=t}else t&&(rw(e,t),l={default:1});if(s)for(const a in o)!tw(a)&&!(a in l)&&delete o[a]};function ow(){return{app:null,config:{isNativeTag:HI,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 CR=0;function TR(e,t){return function(r,o=null){et(r)||(r=Object.assign({},r)),o!=null&&!qt(o)&&(o=null);const s=ow(),l=new Set;let a=!1;const c=s.app={_uid:CR++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:Cw,get config(){return s.config},set config(d){},use(d,...p){return l.has(d)||(d&&et(d.install)?(l.add(d),d.install(c,...p)):et(d)&&(l.add(d),d(c,...p))),c},mixin(d){return s.mixins.includes(d)||s.mixins.push(d),c},component(d,p){return p?(s.components[d]=p,c):s.components[d]},directive(d,p){return p?(s.directives[d]=p,c):s.directives[d]},mount(d,p,h){if(!a){const g=q(r,o);return g.appContext=s,p&&t?t(g,d):e(g,d,h),a=!0,c._container=d,d.__vue_app__=c,hd(g.component)||g.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(d,p){return s.provides[d]=p,c}};return c}}function wc(e,t,n,r,o=!1){if(Je(e)){e.forEach((g,y)=>wc(g,t&&(Je(t)?t[y]:t),n,r,o));return}if(Zi(r)&&!o)return;const s=r.shapeFlag&4?hd(r.component)||r.component.proxy:r.el,l=o?null:s,{i:a,r:c}=e,d=t&&t.r,p=a.refs===Ut?a.refs={}:a.refs,h=a.setupState;if(d!=null&&d!==c&&(on(d)?(p[d]=null,_t(h,d)&&(h[d]=null)):dn(d)&&(d.value=null)),et(c))jo(c,a,12,[l,p]);else{const g=on(c),y=dn(c);if(g||y){const _=()=>{if(e.f){const S=g?_t(h,c)?h[c]:p[c]:c.value;o?Je(S)&&Gh(S,s):Je(S)?S.includes(s)||S.push(s):g?(p[c]=[s],_t(h,c)&&(h[c]=p[c])):(c.value=[s],e.k&&(p[e.k]=c.value))}else g?(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 li=!1;const Wu=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",zu=e=>e.nodeType===8;function OR(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:l,remove:a,insert:c,createComment:d}}=e,p=(T,w)=>{if(!w.hasChildNodes()){n(null,T,w),bc(),w._vnode=T;return}li=!1,h(w.firstChild,T,null,null,null),bc(),w._vnode=T,li&&console.error("Hydration completed but contains mismatches.")},h=(T,w,E,O,x,I=!1)=>{const k=zu(T)&&T.data==="[",P=()=>S(T,w,E,O,x,k),{type:H,ref:D,shapeFlag:F,patchFlag:z}=w;let G=T.nodeType;w.el=T,z===-2&&(I=!1,w.dynamicChildren=null);let te=null;switch(H){case ls:G!==3?w.children===""?(c(w.el=o(""),l(T),T),te=T):te=P():(T.data!==w.children&&(li=!0,T.data=w.children),te=s(T));break;case Rn:G!==8||k?te=P():te=s(T);break;case Qi:if(k&&(T=s(T),G=T.nodeType),G===1||G===3){te=T;const we=!w.children.length;for(let be=0;be<w.staticCount;be++)we&&(w.children+=te.nodeType===1?te.outerHTML:te.data),be===w.staticCount-1&&(w.anchor=te),te=s(te);return k?s(te):te}else P();break;case Fe:k?te=_(T,w,E,O,x,I):te=P();break;default:if(F&1)G!==1||w.type.toLowerCase()!==T.tagName.toLowerCase()?te=P():te=g(T,w,E,O,x,I);else if(F&6){w.slotScopeIds=x;const we=l(T);if(t(w,we,null,E,O,Wu(we),I),te=k?C(T):s(T),te&&zu(te)&&te.data==="teleport end"&&(te=s(te)),Zi(w)){let be;k?(be=q(Fe),be.anchor=te?te.previousSibling:we.lastChild):be=T.nodeType===3?Xe(""):q("div"),be.el=T,w.component.subTree=be}}else F&64?G!==8?te=P():te=w.type.hydrate(T,w,E,O,x,I,e,y):F&128&&(te=w.type.hydrate(T,w,E,O,Wu(l(T)),x,I,e,h))}return D!=null&&wc(D,null,O,w),te},g=(T,w,E,O,x,I)=>{I=I||!!w.dynamicChildren;const{type:k,props:P,patchFlag:H,shapeFlag:D,dirs:F}=w,z=k==="input"&&F||k==="option";if(z||H!==-1){if(F&&mo(w,null,E,"created"),P)if(z||!I||H&48)for(const te in P)(z&&te.endsWith("value")||Yc(te)&&!Vl(te))&&r(T,te,null,P[te],!1,void 0,E);else P.onClick&&r(T,"onClick",null,P.onClick,!1,void 0,E);let G;if((G=P&&P.onVnodeBeforeMount)&&Yn(G,E,w),F&&mo(w,null,E,"beforeMount"),((G=P&&P.onVnodeMounted)||F)&&M1(()=>{G&&Yn(G,E,w),F&&mo(w,null,E,"mounted")},O),D&16&&!(P&&(P.innerHTML||P.textContent))){let te=y(T.firstChild,w,T,E,O,x,I);for(;te;){li=!0;const we=te;te=te.nextSibling,a(we)}}else D&8&&T.textContent!==w.children&&(li=!0,T.textContent=w.children)}return T.nextSibling},y=(T,w,E,O,x,I,k)=>{k=k||!!w.dynamicChildren;const P=w.children,H=P.length;for(let D=0;D<H;D++){const F=k?P[D]:P[D]=hr(P[D]);if(T)T=h(T,F,O,x,I,k);else{if(F.type===ls&&!F.children)continue;li=!0,n(null,F,E,null,O,x,Wu(E),I)}}return T},_=(T,w,E,O,x,I)=>{const{slotScopeIds:k}=w;k&&(x=x?x.concat(k):k);const P=l(T),H=y(s(T),w,P,E,O,x,I);return H&&zu(H)&&H.data==="]"?s(w.anchor=H):(li=!0,c(w.anchor=d("]"),P,H),H)},S=(T,w,E,O,x,I)=>{if(li=!0,w.el=null,I){const H=C(T);for(;;){const D=s(T);if(D&&D!==H)a(D);else break}}const k=s(T),P=l(T);return a(T),n(null,w,P,k,E,O,Wu(P),x),k},C=T=>{let w=0;for(;T;)if(T=s(T),T&&zu(T)&&(T.data==="["&&w++,T.data==="]")){if(w===0)return s(T);w--}return T};return[p,h]}const Sn=M1;function iw(e){return lw(e)}function sw(e){return lw(e,OR)}function lw(e,t){const n=YI();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:l,createText:a,createComment:c,setText:d,setElementText:p,parentNode:h,nextSibling:g,setScopeId:y=vo,insertStaticContent:_}=e,S=(L,B,Z,le=null,ie=null,pe=null,Ce=!1,me=null,ge=!!B.dynamicChildren)=>{if(L===B)return;L&&!Jr(L,B)&&(le=Ve(L),Ge(L,ie,pe,!0),L=null),B.patchFlag===-2&&(ge=!1,B.dynamicChildren=null);const{type:se,ref:Re,shapeFlag:Ie}=B;switch(se){case ls:C(L,B,Z,le);break;case Rn:T(L,B,Z,le);break;case Qi:L==null&&w(B,Z,le,Ce);break;case Fe:z(L,B,Z,le,ie,pe,Ce,me,ge);break;default:Ie&1?x(L,B,Z,le,ie,pe,Ce,me,ge):Ie&6?G(L,B,Z,le,ie,pe,Ce,me,ge):(Ie&64||Ie&128)&&se.process(L,B,Z,le,ie,pe,Ce,me,ge,tt)}Re!=null&&ie&&wc(Re,L&&L.ref,pe,B||L,!B)},C=(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&&d(ie,B.children)}},T=(L,B,Z,le)=>{L==null?r(B.el=c(B.children||""),Z,le):B.el=L.el},w=(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=g(L),r(L,Z,le),L=ie;r(B,Z,le)},O=({el:L,anchor:B})=>{let Z;for(;L&&L!==B;)Z=g(L),o(L),L=Z;o(B)},x=(L,B,Z,le,ie,pe,Ce,me,ge)=>{Ce=Ce||B.type==="svg",L==null?I(B,Z,le,ie,pe,Ce,me,ge):H(L,B,ie,pe,Ce,me,ge)},I=(L,B,Z,le,ie,pe,Ce,me)=>{let ge,se;const{type:Re,props:Ie,shapeFlag:Me,transition:je,dirs:rt}=L;if(ge=L.el=l(L.type,pe,Ie&&Ie.is,Ie),Me&8?p(ge,L.children):Me&16&&P(L.children,ge,null,le,ie,pe&&Re!=="foreignObject",Ce,me),rt&&mo(L,null,le,"created"),k(ge,L,L.scopeId,Ce,le),Ie){for(const ct in Ie)ct!=="value"&&!Vl(ct)&&s(ge,ct,null,Ie[ct],pe,L.children,le,ie,$e);"value"in Ie&&s(ge,"value",null,Ie.value),(se=Ie.onVnodeBeforeMount)&&Yn(se,le,L)}rt&&mo(L,null,le,"beforeMount");const mt=(!ie||ie&&!ie.pendingBranch)&&je&&!je.persisted;mt&&je.beforeEnter(ge),r(ge,B,Z),((se=Ie&&Ie.onVnodeMounted)||mt||rt)&&Sn(()=>{se&&Yn(se,le,L),mt&&je.enter(ge),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 Ce=ie.vnode;k(L,Ce,Ce.scopeId,Ce.slotScopeIds,ie.parent)}}},P=(L,B,Z,le,ie,pe,Ce,me,ge=0)=>{for(let se=ge;se<L.length;se++){const Re=L[se]=me?di(L[se]):hr(L[se]);S(null,Re,B,Z,le,ie,pe,Ce,me)}},H=(L,B,Z,le,ie,pe,Ce)=>{const me=B.el=L.el;let{patchFlag:ge,dynamicChildren:se,dirs:Re}=B;ge|=L.patchFlag&16;const Ie=L.props||Ut,Me=B.props||Ut;let je;Z&&Fi(Z,!1),(je=Me.onVnodeBeforeUpdate)&&Yn(je,Z,B,L),Re&&mo(B,L,Z,"beforeUpdate"),Z&&Fi(Z,!0);const rt=ie&&B.type!=="foreignObject";if(se?D(L.dynamicChildren,se,me,Z,le,rt,pe):Ce||Pe(L,B,me,null,Z,le,rt,pe,!1),ge>0){if(ge&16)F(me,B,Ie,Me,Z,le,ie);else if(ge&2&&Ie.class!==Me.class&&s(me,"class",null,Me.class,ie),ge&4&&s(me,"style",Ie.style,Me.style,ie),ge&8){const mt=B.dynamicProps;for(let ct=0;ct<mt.length;ct++){const Ht=mt[ct],Dn=Ie[Ht],uo=Me[Ht];(uo!==Dn||Ht==="value")&&s(me,Ht,Dn,uo,ie,L.children,Z,le,$e)}}ge&1&&L.children!==B.children&&p(me,B.children)}else!Ce&&se==null&&F(me,B,Ie,Me,Z,le,ie);((je=Me.onVnodeUpdated)||Re)&&Sn(()=>{je&&Yn(je,Z,B,L),Re&&mo(B,L,Z,"updated")},le)},D=(L,B,Z,le,ie,pe,Ce)=>{for(let me=0;me<B.length;me++){const ge=L[me],se=B[me],Re=ge.el&&(ge.type===Fe||!Jr(ge,se)||ge.shapeFlag&70)?h(ge.el):Z;S(ge,se,Re,null,le,ie,pe,Ce,!0)}},F=(L,B,Z,le,ie,pe,Ce)=>{if(Z!==le){if(Z!==Ut)for(const me in Z)!Vl(me)&&!(me in le)&&s(L,me,Z[me],null,Ce,B.children,ie,pe,$e);for(const me in le){if(Vl(me))continue;const ge=le[me],se=Z[me];ge!==se&&me!=="value"&&s(L,me,se,ge,Ce,B.children,ie,pe,$e)}"value"in le&&s(L,"value",Z.value,le.value)}},z=(L,B,Z,le,ie,pe,Ce,me,ge)=>{const se=B.el=L?L.el:a(""),Re=B.anchor=L?L.anchor:a("");let{patchFlag:Ie,dynamicChildren:Me,slotScopeIds:je}=B;je&&(me=me?me.concat(je):je),L==null?(r(se,Z,le),r(Re,Z,le),P(B.children,Z,Re,ie,pe,Ce,me,ge)):Ie>0&&Ie&64&&Me&&L.dynamicChildren?(D(L.dynamicChildren,Me,Z,ie,pe,Ce,me),(B.key!=null||ie&&B===ie.subTree)&&ym(L,B,!0)):Pe(L,B,Z,Re,ie,pe,Ce,me,ge)},G=(L,B,Z,le,ie,pe,Ce,me,ge)=>{B.slotScopeIds=me,L==null?B.shapeFlag&512?ie.ctx.activate(B,Z,le,Ce,ge):te(B,Z,le,ie,pe,Ce,ge):we(L,B,ge)},te=(L,B,Z,le,ie,pe,Ce)=>{const me=L.component=mw(L,le,ie);if(Oa(L)&&(me.ctx.renderer=tt),vw(me),me.asyncDep){if(ie&&ie.registerDep(me,be),!L.el){const ge=me.subTree=q(Rn);T(null,ge,B,Z)}return}be(me,L,B,Z,ie,pe,Ce)},we=(L,B,Z)=>{const le=B.component=L.component;if(Jk(L,B,Z))if(le.asyncDep&&!le.asyncResolved){Ae(le,B,Z);return}else le.next=B,jk(le.update),le.update();else B.el=L.el,le.vnode=B},be=(L,B,Z,le,ie,pe,Ce)=>{const me=()=>{if(L.isMounted){let{next:Re,bu:Ie,u:Me,parent:je,vnode:rt}=L,mt=Re,ct;Fi(L,!1),Re?(Re.el=rt.el,Ae(L,Re,Ce)):Re=rt,Ie&&zl(Ie),(ct=Re.props&&Re.props.onVnodeBeforeUpdate)&&Yn(ct,je,Re,rt),Fi(L,!0);const Ht=oc(L),Dn=L.subTree;L.subTree=Ht,S(Dn,Ht,h(Dn.el),Ve(Dn),L,ie,pe),Re.el=Ht.el,mt===null&&cm(L,Ht.el),Me&&Sn(Me,ie),(ct=Re.props&&Re.props.onVnodeUpdated)&&Sn(()=>Yn(ct,je,Re,rt),ie)}else{let Re;const{el:Ie,props:Me}=B,{bm:je,m:rt,parent:mt}=L,ct=Zi(B);if(Fi(L,!1),je&&zl(je),!ct&&(Re=Me&&Me.onVnodeBeforeMount)&&Yn(Re,mt,B),Fi(L,!0),Ie&&ln){const Ht=()=>{L.subTree=oc(L),ln(Ie,L.subTree,L,ie,null)};ct?B.type.__asyncLoader().then(()=>!L.isUnmounted&&Ht()):Ht()}else{const Ht=L.subTree=oc(L);S(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(()=>Yn(Re,mt,Ht),ie)}(B.shapeFlag&256||mt&&Zi(mt.vnode)&&mt.vnode.shapeFlag&256)&&L.a&&Sn(L.a,ie),L.isMounted=!0,B=Z=le=null}},ge=L.effect=new Ca(me,()=>ld(se),L.scope),se=L.update=()=>ge.run();se.id=L.uid,Fi(L,!0),se()},Ae=(L,B,Z)=>{B.component=L;const le=L.vnode.props;L.vnode=B,L.next=null,SR(L,B.props,le,Z),$R(L,B.children,Z),al(),Jy(),ul()},Pe=(L,B,Z,le,ie,pe,Ce,me,ge=!1)=>{const se=L&&L.children,Re=L?L.shapeFlag:0,Ie=B.children,{patchFlag:Me,shapeFlag:je}=B;if(Me>0){if(Me&128){ft(se,Ie,Z,le,ie,pe,Ce,me,ge);return}else if(Me&256){Ye(se,Ie,Z,le,ie,pe,Ce,me,ge);return}}je&8?(Re&16&&$e(se,ie,pe),Ie!==se&&p(Z,Ie)):Re&16?je&16?ft(se,Ie,Z,le,ie,pe,Ce,me,ge):$e(se,ie,pe,!0):(Re&8&&p(Z,""),je&16&&P(Ie,Z,le,ie,pe,Ce,me,ge))},Ye=(L,B,Z,le,ie,pe,Ce,me,ge)=>{L=L||Ds,B=B||Ds;const se=L.length,Re=B.length,Ie=Math.min(se,Re);let Me;for(Me=0;Me<Ie;Me++){const je=B[Me]=ge?di(B[Me]):hr(B[Me]);S(L[Me],je,Z,null,ie,pe,Ce,me,ge)}se>Re?$e(L,ie,pe,!0,!1,Ie):P(B,Z,le,ie,pe,Ce,me,ge,Ie)},ft=(L,B,Z,le,ie,pe,Ce,me,ge)=>{let se=0;const Re=B.length;let Ie=L.length-1,Me=Re-1;for(;se<=Ie&&se<=Me;){const je=L[se],rt=B[se]=ge?di(B[se]):hr(B[se]);if(Jr(je,rt))S(je,rt,Z,null,ie,pe,Ce,me,ge);else break;se++}for(;se<=Ie&&se<=Me;){const je=L[Ie],rt=B[Me]=ge?di(B[Me]):hr(B[Me]);if(Jr(je,rt))S(je,rt,Z,null,ie,pe,Ce,me,ge);else break;Ie--,Me--}if(se>Ie){if(se<=Me){const je=Me+1,rt=je<Re?B[je].el:le;for(;se<=Me;)S(null,B[se]=ge?di(B[se]):hr(B[se]),Z,rt,ie,pe,Ce,me,ge),se++}}else if(se>Me)for(;se<=Ie;)Ge(L[se],ie,pe,!0),se++;else{const je=se,rt=se,mt=new Map;for(se=rt;se<=Me;se++){const vn=B[se]=ge?di(B[se]):hr(B[se]);vn.key!=null&&mt.set(vn.key,se)}let ct,Ht=0;const Dn=Me-rt+1;let uo=!1,vs=0;const $o=new Array(Dn);for(se=0;se<Dn;se++)$o[se]=0;for(se=je;se<=Ie;se++){const vn=L[se];if(Ht>=Dn){Ge(vn,ie,pe,!0);continue}let qn;if(vn.key!=null)qn=mt.get(vn.key);else for(ct=rt;ct<=Me;ct++)if($o[ct-rt]===0&&Jr(vn,B[ct])){qn=ct;break}qn===void 0?Ge(vn,ie,pe,!0):($o[qn-rt]=se+1,qn>=vs?vs=qn:uo=!0,S(vn,B[qn],Z,null,ie,pe,Ce,me,ge),Ht++)}const ys=uo?AR($o):Ds;for(ct=ys.length-1,se=Dn-1;se>=0;se--){const vn=rt+se,qn=B[vn],bs=vn+1<Re?B[vn+1].el:le;$o[se]===0?S(null,qn,Z,bs,ie,pe,Ce,me,ge):uo&&(ct<0||se!==ys[ct]?Le(qn,Z,bs,2):ct--)}}},Le=(L,B,Z,le,ie=null)=>{const{el:pe,type:Ce,transition:me,children:ge,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){Ce.move(L,B,Z,tt);return}if(Ce===Fe){r(pe,B,Z);for(let Ie=0;Ie<ge.length;Ie++)Le(ge[Ie],B,Z,le);r(L.anchor,B,Z);return}if(Ce===Qi){E(L,B,Z);return}if(le!==2&&se&1&&me)if(le===0)me.beforeEnter(pe),r(pe,B,Z),Sn(()=>me.enter(pe),ie);else{const{leave:Ie,delayLeave:Me,afterLeave:je}=me,rt=()=>r(pe,B,Z),mt=()=>{Ie(pe,()=>{rt(),je&&je()})};Me?Me(pe,rt,mt):mt()}else r(pe,B,Z)},Ge=(L,B,Z,le=!1,ie=!1)=>{const{type:pe,props:Ce,ref:me,children:ge,dynamicChildren:se,shapeFlag:Re,patchFlag:Ie,dirs:Me}=L;if(me!=null&&wc(me,null,Z,L,!0),Re&256){B.ctx.deactivate(L);return}const je=Re&1&&Me,rt=!Zi(L);let mt;if(rt&&(mt=Ce&&Ce.onVnodeBeforeUnmount)&&Yn(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||Ie>0&&Ie&64)?$e(se,B,Z,!1,!0):(pe===Fe&&Ie&384||!ie&&Re&16)&&$e(ge,B,Z),le&&Q(L)}(rt&&(mt=Ce&&Ce.onVnodeUnmounted)||je)&&Sn(()=>{mt&&Yn(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===Qi){O(L);return}const pe=()=>{o(Z),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(L.shapeFlag&1&&ie&&!ie.persisted){const{leave:Ce,delayLeave:me}=ie,ge=()=>Ce(Z,pe);me?me(L.el,pe,ge):ge()}else pe()},ae=(L,B)=>{let Z;for(;L!==B;)Z=g(L),o(L),L=Z;o(B)},fe=(L,B,Z)=>{const{bum:le,scope:ie,update:pe,subTree:Ce,um:me}=L;le&&zl(le),ie.stop(),pe&&(pe.active=!1,Ge(Ce,L,B,Z)),me&&Sn(me,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())},$e=(L,B,Z,le=!1,ie=!1,pe=0)=>{for(let Ce=pe;Ce<L.length;Ce++)Ge(L[Ce],B,Z,le,ie)},Ve=L=>L.shapeFlag&6?Ve(L.component.subTree):L.shapeFlag&128?L.suspense.next():g(L.anchor||L.el),De=(L,B,Z)=>{L==null?B._vnode&&Ge(B._vnode,null,null,!0):S(B._vnode||null,L,B,null,null,null,Z),Jy(),bc(),B._vnode=L},tt={p:S,um:Ge,m:Le,r:Q,mt:te,mc:P,pc:Pe,pbc:D,n:Ve,o:e};let gn,ln;return t&&([gn,ln]=t(tt)),{render:De,hydrate:gn,createApp:TR(De,gn)}}function Fi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ym(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]=di(o[s]),a.el=l.el),n||ym(l,a)),a.type===ls&&(a.el=l.el)}}function AR(e){const t=e.slice(),n=[0];let r,o,s,l,a;const c=e.length;for(r=0;r<c;r++){const d=e[r];if(d!==0){if(o=n[n.length-1],e[o]<d){t[r]=o,n.push(r);continue}for(s=0,l=n.length-1;s<l;)a=s+l>>1,e[n[a]]<d?s=a+1:l=a;d<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 PR=e=>e.__isTeleport,Kl=e=>e&&(e.disabled||e.disabled===""),lb=e=>typeof SVGElement<"u"&&e instanceof SVGElement,nh=(e,t)=>{const n=e&&e.to;return on(n)?t?t(n):null:n},IR={__isTeleport:!0,process(e,t,n,r,o,s,l,a,c,d){const{mc:p,pc:h,pbc:g,o:{insert:y,querySelector:_,createText:S,createComment:C}}=d,T=Kl(t.props);let{shapeFlag:w,children:E,dynamicChildren:O}=t;if(e==null){const x=t.el=S(""),I=t.anchor=S("");y(x,n,r),y(I,n,r);const k=t.target=nh(t.props,_),P=t.targetAnchor=S("");k&&(y(P,k),l=l||lb(k));const H=(D,F)=>{w&16&&p(E,D,F,o,s,l,a,c)};T?H(n,I):k&&H(k,P)}else{t.el=e.el;const x=t.anchor=e.anchor,I=t.target=e.target,k=t.targetAnchor=e.targetAnchor,P=Kl(e.props),H=P?n:I,D=P?x:k;if(l=l||lb(I),O?(g(e.dynamicChildren,O,H,o,s,l,a),ym(e,t,!0)):c||h(e,t,H,D,o,s,l,a,!1),T)P||qu(t,n,x,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=nh(t.props,_);F&&qu(t,F,null,d,0)}else P&&qu(t,I,k,d,1)}uw(t)},remove(e,t,n,r,{um:o,o:{remove:s}},l){const{shapeFlag:a,children:c,anchor:d,targetAnchor:p,target:h,props:g}=e;if(h&&s(p),(l||!Kl(g))&&(s(d),a&16))for(let y=0;y<c.length;y++){const _=c[y];o(_,t,n,!0,!!_.dynamicChildren)}},move:qu,hydrate:kR};function qu(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:d,props:p}=e,h=s===2;if(h&&r(l,t,n),(!h||Kl(p))&&c&16)for(let g=0;g<d.length;g++)o(d[g],t,n,2);h&&r(a,t,n)}function kR(e,t,n,r,o,s,{o:{nextSibling:l,parentNode:a,querySelector:c}},d){const p=t.target=nh(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Kl(t.props))t.anchor=d(l(e),t,a(e),n,r,o,s),t.targetAnchor=h;else{t.anchor=l(e);let g=h;for(;g;)if(g=l(g),g&&g.nodeType===8&&g.data==="teleport anchor"){t.targetAnchor=g,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}d(h,t,p,n,r,o,s)}uw(t)}return t.anchor&&l(t.anchor)}const aw=IR;function uw(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),ls=Symbol(void 0),Rn=Symbol(void 0),Qi=Symbol(void 0),Gl=[];let Zn=null;function N(e=!1){Gl.push(Zn=e?null:[])}function cw(){Gl.pop(),Zn=Gl[Gl.length-1]||null}let as=1;function rh(e){as+=e}function dw(e){return e.dynamicChildren=as>0?Zn||Ds:null,cw(),as>0&&Zn&&Zn.push(e),e}function V(e,t,n,r,o,s){return dw(v(e,t,n,r,o,s,!0))}function bt(e,t,n,r,o){return dw(q(e,t,n,r,o,!0))}function bi(e){return e?e.__v_isVNode===!0:!1}function Jr(e,t){return e.type===t.type&&e.key===t.key}function RR(e){}const pd="__vInternal",fw=({key:e})=>e??null,ic=({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 v(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&&fw(t),ref:t&&ic(t),scopeId:ud,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?(bm(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=on(n)?8:16),as>0&&!l&&Zn&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&Zn.push(c),c}const q=LR;function LR(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===J1)&&(e=Rn),bi(e)){const a=Ur(e,t,!0);return n&&bm(a,n),as>0&&!s&&Zn&&(a.shapeFlag&6?Zn[Zn.indexOf(e)]=a:Zn.push(a)),a.patchFlag|=-2,a}if(jR(e)&&(e=e.__vccOpts),t){t=pw(t);let{class:a,style:c}=t;a&&!on(a)&&(t.class=St(a)),qt(c)&&(nm(c)&&!Je(c)&&(c=$n({},c)),t.style=Wo(c))}const l=on(e)?1:N1(e)?128:PR(e)?64:qt(e)?4:et(e)?2:0;return v(e,t,n,r,o,l,s,!0)}function pw(e){return e?nm(e)||pd in e?$n({},e):e:null}function Ur(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:l}=e,a=t?hw(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&fw(a),ref:t&&t.ref?n&&o?Je(o)?o.concat(ic(t)):[o,ic(t)]:ic(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&&Ur(e.ssContent),ssFallback:e.ssFallback&&Ur(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xe(e=" ",t=0){return q(ls,null,e,t)}function NR(e,t){const n=q(Qi,null,e);return n.staticCount=t,n}function He(e="",t=!1){return t?(N(),bt(Rn,null,e)):q(Rn,null,e)}function hr(e){return e==null||typeof e=="boolean"?q(Rn):Je(e)?q(Fe,null,e.slice()):typeof e=="object"?di(e):q(ls,null,String(e))}function di(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ur(e)}function bm(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),bm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(pd 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 hw(...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=St([t.class,r.class]));else if(o==="style")t.style=Wo([t.style,r.style]);else if(Yc(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 Yn(e,t,n,r=null){vr(e,t,7,[n,r])}const MR=ow();let DR=0;function mw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||MR,s={uid:DR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Zh(!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:ew(r,o),emitsOptions:L1(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=Vk.bind(null,s),e.ce&&e.ce(s),s}let Jt=null;const Xo=()=>Jt||xn,_i=e=>{Jt=e,e.scope.on()},gi=()=>{Jt&&Jt.scope.off(),Jt=null};function gw(e){return e.vnode.shapeFlag&4}let qs=!1;function vw(e,t=!1){qs=t;const{props:n,children:r}=e.vnode,o=gw(e);wR(e,n,o,t),xR(e,r);const s=o?FR(e,t):void 0;return qs=!1,s}function FR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=rm(new Proxy(e.ctx,Zp));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?_w(e):null;_i(e),al();const s=jo(r,e,0,[e.props,o]);if(ul(),gi(),Jh(s)){if(s.then(gi,gi),t)return s.then(l=>{oh(e,l,t)}).catch(l=>{ds(l,e,0)});e.asyncDep=s}else oh(e,s,t)}else bw(e,t)}function oh(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qt(t)&&(e.setupState=sm(t)),bw(e,n)}let Sc,ih;function yw(e){Sc=e,ih=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,mR))}}const BR=()=>!Sc;function bw(e,t,n){const r=e.type;if(!e.render){if(!t&&Sc&&!r.render){const o=r.template||gm(e).template;if(o){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,d=$n($n({isCustomElement:s,delimiters:a},l),c);r.render=Sc(o,d)}}e.render=r.render||vo,ih&&ih(e)}_i(e),al(),gR(e),ul(),gi()}function UR(e){return new Proxy(e.attrs,{get(t,n){return or(e,"get","$attrs"),t[n]}})}function _w(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=UR(e))},slots:e.slots,emit:e.emit,expose:t}}function hd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sm(rm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ql)return ql[n](e)},has(t,n){return n in t||n in ql}}))}function sh(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function jR(e){return et(e)&&"__vccOpts"in e}const ce=(e,t)=>Mk(e,t,qs);function HR(){return null}function VR(){return null}function WR(e){}function zR(e,t){return null}function ww(){return Sw().slots}function qR(){return Sw().attrs}function Sw(){const e=Xo();return e.setupContext||(e.setupContext=_w(e))}function KR(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 GR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function XR(e){const t=Xo();let n=e();return gi(),Jh(n)&&(n=n.catch(r=>{throw _i(t),r})),[n,()=>_i(t)]}function dt(e,t,n){const r=arguments.length;return r===2?qt(t)&&!Je(t)?bi(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&bi(n)&&(n=[n]),q(e,t,n))}const Ew=Symbol(""),xw=()=>Rt(Ew);function JR(){}function YR(e,t,n,r){const o=n[r];if(o&&$w(o,e))return o;const s=t();return s.memo=e.slice(),n[r]=s}function $w(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Ws(n[r],t[r]))return!1;return as>0&&Zn&&Zn.push(e),!0}const Cw="3.2.47",ZR={createComponentInstance:mw,setupComponent:vw,renderComponentRoot:oc,setCurrentRenderingInstance:aa,isVNode:bi,normalizeVNode:hr},QR=ZR,e4=null,t4=null;function n4(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return o=>!!n[o]}const r4="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",o4=n4(r4);function Tw(e){return!!e||e===""}function i4(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=wi(e[r],t[r]);return n}function wi(e,t){if(e===t)return!0;let n=ab(e),r=ab(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ub(e),r=ub(t),n||r)return e===t;if(n=ir(e),r=ir(t),n||r)return n&&r?i4(e,t):!1;if(n=lh(e),r=lh(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||!wi(e[l],t[l]))return!1}}return String(e)===String(t)}function md(e,t){return e.findIndex(n=>wi(n,t))}const yp={},s4=/^on[^a-z]/,l4=e=>s4.test(e),a4=e=>e.startsWith("onUpdate:"),Aa=Object.assign,ir=Array.isArray,Pa=e=>Aw(e)==="[object Set]",ab=e=>Aw(e)==="[object Date]",Ow=e=>typeof e=="function",ca=e=>typeof e=="string",ub=e=>typeof e=="symbol",lh=e=>e!==null&&typeof e=="object",u4=Object.prototype.toString,Aw=e=>u4.call(e),_m=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},c4=/-(\w)/g,bp=_m(e=>e.replace(c4,(t,n)=>n?n.toUpperCase():"")),d4=/\B([A-Z])/g,fi=_m(e=>e.replace(d4,"-$1").toLowerCase()),f4=_m(e=>e.charAt(0).toUpperCase()+e.slice(1)),p4=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ah=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uh=e=>{const t=ca(e)?Number(e):NaN;return isNaN(t)?e:t},h4="http://www.w3.org/2000/svg",Wi=typeof document<"u"?document:null,cb=Wi&&Wi.createElement("template"),m4={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?Wi.createElementNS(h4,e):Wi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Wi.createTextNode(e),createComment:e=>Wi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wi.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{cb.innerHTML=r?`<svg>${e}</svg>`:e;const a=cb.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 g4(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 v4(e,t,n){const r=e.style,o=ca(n);if(n&&!o){if(t&&!ca(t))for(const s in t)n[s]==null&&ch(r,s,"");for(const s in n)ch(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 db=/\s*!important$/;function ch(e,t,n){if(ir(n))n.forEach(r=>ch(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=y4(e,t);db.test(n)?e.setProperty(fi(r),n.replace(db,""),"important"):e[r]=n}}const fb=["Webkit","Moz","ms"],_p={};function y4(e,t){const n=_p[t];if(n)return n;let r=eo(t);if(r!=="filter"&&r in e)return _p[t]=r;r=f4(r);for(let o=0;o<fb.length;o++){const s=fb[o]+r;if(s in e)return _p[t]=s}return t}const pb="http://www.w3.org/1999/xlink";function b4(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(pb,t.slice(6,t.length)):e.setAttributeNS(pb,t,n);else{const s=o4(t);n==null||s&&!Tw(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function _4(e,t,n,r,o,s,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,o,s),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=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=Tw(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Fo(e,t,n,r){e.addEventListener(t,n,r)}function w4(e,t,n,r){e.removeEventListener(t,n,r)}function S4(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]=E4(t);if(r){const d=s[t]=C4(r,o);Fo(e,a,d,c)}else l&&(w4(e,a,l,c),s[t]=void 0)}}const hb=/(?:Once|Passive|Capture)$/;function E4(e){let t;if(hb.test(e)){t={};let r;for(;r=e.match(hb);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):fi(e.slice(2)),t]}let wp=0;const x4=Promise.resolve(),$4=()=>wp||(x4.then(()=>wp=0),wp=Date.now());function C4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;vr(T4(r,n.value),t,5,[r])};return n.value=e,n.attached=$4(),n}function T4(e,t){if(ir(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 mb=/^on[a-z]/,O4=(e,t,n,r,o=!1,s,l,a,c)=>{t==="class"?g4(e,r,o):t==="style"?v4(e,n,r):l4(t)?a4(t)||S4(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):A4(e,t,r,o))?_4(e,t,r,s,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),b4(e,t,r,o))};function A4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&mb.test(t)&&Ow(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||mb.test(t)&&ca(n)?!1:t in e}function Pw(e,t){const n=ve(e);class r extends gd{constructor(s){super(n,s,t)}}return r.def=n,r}const P4=e=>Pw(e,Kw),I4=typeof HTMLElement<"u"?HTMLElement:class{};class gd extends I4{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||(ph(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&&!ir(s))for(const c in s){const d=s[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=uh(this._props[c])),(a||(a=Object.create(null)))[bp(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=ir(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(bp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(s){this._setProp(o,s)}})}_setAttr(t){let n=this.getAttribute(t);const r=bp(t);this._numberProps&&this._numberProps[r]&&(n=uh(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(fi(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(fi(t),n+""):n||this.removeAttribute(fi(t))))}_update(){ph(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,Aa({},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),fi(s)!==s&&r(fi(s),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof gd){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 k4(e="$style"){{const t=Xo();if(!t)return yp;const n=t.type.__cssModules;if(!n)return yp;const r=n[e];return r||yp}}function Iw(e){const t=Xo();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>fh(s,o))},r=()=>{const o=e(t.proxy);dh(t.subTree,o),n(o)};D1(r),vt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Qt(()=>o.disconnect())})}function dh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{dh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)fh(e.el,t);else if(e.type===Fe)e.children.forEach(n=>dh(n,t));else if(e.type===Qi){let{el:n,anchor:r}=e;for(;n&&(fh(n,t),n!==r);)n=n.nextSibling}}function fh(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const ai="transition",Ol="animation",$i=(e,{slots:t})=>dt(pm,Rw(e),t);$i.displayName="Transition";const kw={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},R4=$i.props=Aa({},pm.props,kw),Bi=(e,t=[])=>{ir(e)?e.forEach(n=>n(...t)):e&&e(...t)},gb=e=>e?ir(e)?e.some(t=>t.length>1):e.length>1:!1;function Rw(e){const t={};for(const z in e)z in kw||(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:d=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,_=L4(o),S=_&&_[0],C=_&&_[1],{onBeforeEnter:T,onEnter:w,onEnterCancelled:E,onLeave:O,onLeaveCancelled:x,onBeforeAppear:I=T,onAppear:k=w,onAppearCancelled:P=E}=t,H=(z,G,te)=>{ci(z,G?p:a),ci(z,G?d:l),te&&te()},D=(z,G)=>{z._isLeaving=!1,ci(z,h),ci(z,y),ci(z,g),G&&G()},F=z=>(G,te)=>{const we=z?k:w,be=()=>H(G,z,te);Bi(we,[G,be]),vb(()=>{ci(G,z?c:s),No(G,z?p:a),gb(we)||yb(G,r,S,be)})};return Aa(t,{onBeforeEnter(z){Bi(T,[z]),No(z,s),No(z,l)},onBeforeAppear(z){Bi(I,[z]),No(z,c),No(z,d)},onEnter:F(!1),onAppear:F(!0),onLeave(z,G){z._isLeaving=!0;const te=()=>D(z,G);No(z,h),Nw(),No(z,g),vb(()=>{z._isLeaving&&(ci(z,h),No(z,y),gb(O)||yb(z,r,C,te))}),Bi(O,[z,te])},onEnterCancelled(z){H(z,!1),Bi(E,[z])},onAppearCancelled(z){H(z,!0),Bi(P,[z])},onLeaveCancelled(z){D(z),Bi(x,[z])}})}function L4(e){if(e==null)return null;if(lh(e))return[Sp(e.enter),Sp(e.leave)];{const t=Sp(e);return[t,t]}}function Sp(e){return uh(e)}function No(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ci(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 N4=0;function yb(e,t,n,r){const o=e._endId=++N4,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:l,timeout:a,propCount:c}=Lw(e,t);if(!l)return r();const d=l+"end";let p=0;const h=()=>{e.removeEventListener(d,g),s()},g=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(d,g)}function Lw(e,t){const n=window.getComputedStyle(e),r=_=>(n[_]||"").split(", "),o=r(`${ai}Delay`),s=r(`${ai}Duration`),l=bb(o,s),a=r(`${Ol}Delay`),c=r(`${Ol}Duration`),d=bb(a,c);let p=null,h=0,g=0;t===ai?l>0&&(p=ai,h=l,g=s.length):t===Ol?d>0&&(p=Ol,h=d,g=c.length):(h=Math.max(l,d),p=h>0?l>d?ai:Ol:null,g=p?p===ai?s.length:c.length:0);const y=p===ai&&/\b(transform|all)(,|$)/.test(r(`${ai}Property`).toString());return{type:p,timeout:h,propCount:g,hasTransform:y}}function bb(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>_b(n)+_b(e[r])))}function _b(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Nw(){return document.body.offsetHeight}const Mw=new WeakMap,Dw=new WeakMap,Fw={name:"TransitionGroup",props:Aa({},R4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Xo(),r=fm();let o,s;return fd(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!j4(o[0].el,n.vnode.el,l))return;o.forEach(F4),o.forEach(B4);const a=o.filter(U4);Nw(),a.forEach(c=>{const d=c.el,p=d.style;No(d,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=d._moveCb=g=>{g&&g.target!==d||(!g||/transform$/.test(g.propertyName))&&(d.removeEventListener("transitionend",h),d._moveCb=null,ci(d,l))};d.addEventListener("transitionend",h)})}),()=>{const l=Ue(e),a=Rw(l);let c=l.tag||Fe;o=s,s=t.default?cd(t.default()):[];for(let d=0;d<s.length;d++){const p=s[d];p.key!=null&&ss(p,zs(p,a,r,n))}if(o)for(let d=0;d<o.length;d++){const p=o[d];ss(p,zs(p,a,r,n)),Mw.set(p,p.el.getBoundingClientRect())}return q(c,null,s)}}},M4=e=>delete e.mode;Fw.props;const D4=Fw;function F4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function B4(e){Dw.set(e,e.el.getBoundingClientRect())}function U4(e){const t=Mw.get(e),n=Dw.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 j4(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}=Lw(r);return o.removeChild(r),s}const Si=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ir(t)?n=>p4(t,n):t};function H4(e){e.target.composing=!0}function wb(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ec={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Si(o);const s=r||o.props&&o.props.type==="number";Fo(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=ah(a)),e._assign(a)}),n&&Fo(e,"change",()=>{e.value=e.value.trim()}),t||(Fo(e,"compositionstart",H4),Fo(e,"compositionend",wb),Fo(e,"change",wb))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=Si(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&ah(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},wm={deep:!0,created(e,t,n){e._assign=Si(n),Fo(e,"change",()=>{const r=e._modelValue,o=Ks(e),s=e.checked,l=e._assign;if(ir(r)){const a=md(r,o),c=a!==-1;if(s&&!c)l(r.concat(o));else if(!s&&c){const d=[...r];d.splice(a,1),l(d)}}else if(Pa(r)){const a=new Set(r);s?a.add(o):a.delete(o),l(a)}else l(Uw(e,s))})},mounted:Sb,beforeUpdate(e,t,n){e._assign=Si(n),Sb(e,t,n)}};function Sb(e,{value:t,oldValue:n},r){e._modelValue=t,ir(t)?e.checked=md(t,r.props.value)>-1:Pa(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=wi(t,Uw(e,!0)))}const Sm={created(e,{value:t},n){e.checked=wi(t,n.props.value),e._assign=Si(n),Fo(e,"change",()=>{e._assign(Ks(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Si(r),t!==n&&(e.checked=wi(t,r.props.value))}},Bw={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Pa(t);Fo(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?ah(Ks(l)):Ks(l));e._assign(e.multiple?o?new Set(s):s:s[0])}),e._assign=Si(r)},mounted(e,{value:t}){Eb(e,t)},beforeUpdate(e,t,n){e._assign=Si(n)},updated(e,{value:t}){Eb(e,t)}};function Eb(e,t){const n=e.multiple;if(!(n&&!ir(t)&&!Pa(t))){for(let r=0,o=e.options.length;r<o;r++){const s=e.options[r],l=Ks(s);if(n)ir(t)?s.selected=md(t,l)>-1:s.selected=t.has(l);else if(wi(Ks(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ks(e){return"_value"in e?e._value:e.value}function Uw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const jw={created(e,t,n){Ku(e,t,n,null,"created")},mounted(e,t,n){Ku(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ku(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ku(e,t,n,r,"updated")}};function Hw(e,t){switch(e){case"SELECT":return Bw;case"TEXTAREA":return Ec;default:switch(t){case"checkbox":return wm;case"radio":return Sm;default:return Ec}}}function Ku(e,t,n,r,o){const l=Hw(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function V4(){Ec.getSSRProps=({value:e})=>({value:e}),Sm.getSSRProps=({value:e},t)=>{if(t.props&&wi(t.props.value,e))return{checked:!0}},wm.getSSRProps=({value:e},t)=>{if(ir(e)){if(t.props&&md(e,t.props.value)>-1)return{checked:!0}}else if(Pa(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},jw.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Hw(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const W4=["ctrl","shift","alt","meta"],z4={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)=>W4.some(n=>e[`${n}Key`]&&!t.includes(n))},xc=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const s=z4[t[o]];if(s&&s(n,t))return}return e(n,...r)},q4={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Vw=(e,t)=>n=>{if(!("key"in n))return;const r=fi(n.key);if(t.some(o=>o===r||q4[o]===r))return e(n)},Em={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Al(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),Al(e,!0),r.enter(e)):r.leave(e,()=>{Al(e,!1)}):Al(e,t))},beforeUnmount(e,{value:t}){Al(e,t)}};function Al(e,t){e.style.display=t?e._vod:"none"}function K4(){Em.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ww=Aa({patchProp:O4},m4);let Xl,xb=!1;function zw(){return Xl||(Xl=iw(Ww))}function qw(){return Xl=xb?Xl:sw(Ww),xb=!0,Xl}const ph=(...e)=>{zw().render(...e)},Kw=(...e)=>{qw().hydrate(...e)},Gw=(...e)=>{const t=zw().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Xw(r);if(!o)return;const s=t._component;!Ow(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},G4=(...e)=>{const t=qw().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Xw(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Xw(e){return ca(e)?document.querySelector(e):e}let $b=!1;const X4=()=>{$b||($b=!0,V4(),K4())},J4=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:pm,Comment:Rn,EffectScope:Zh,Fragment:Fe,KeepAlive:aR,ReactiveEffect:Ca,Static:Qi,Suspense:Zk,Teleport:aw,Text:ls,Transition:$i,TransitionGroup:D4,VueElement:gd,assertNumber:Fk,callWithAsyncErrorHandling:vr,callWithErrorHandling:jo,camelize:eo,capitalize:ed,cloneVNode:Ur,compatUtils:t4,computed:ce,createApp:Gw,createBlock:bt,createCommentVNode:He,createElementBlock:V,createElementVNode:v,createHydrationRenderer:sw,createPropsRestProxy:GR,createRenderer:iw,createSSRApp:G4,createSlots:pR,createStaticVNode:NR,createTextVNode:Xe,createVNode:q,customRef:Rk,defineAsyncComponent:sR,defineComponent:ve,defineCustomElement:Pw,defineEmits:VR,defineExpose:WR,defineProps:HR,defineSSRCustomElement:P4,get devtools(){return Ns},effect:tk,effectScope:ZI,getCurrentInstance:Xo,getCurrentScope:f1,getTransitionRawChildren:cd,guardReactiveProps:pw,h:dt,handleError:ds,hydrate:Kw,initCustomFormatter:JR,initDirectivesForSSR:X4,inject:Rt,isMemoSame:$w,isProxy:nm,isReactive:Yi,isReadonly:is,isRef:dn,isRuntimeOnly:BR,isShallow:oa,isVNode:bi,markRaw:rm,mergeDefaults:KR,mergeProps:hw,nextTick:rn,normalizeClass:St,normalizeProps:jI,normalizeStyle:Wo,onActivated:U1,onBeforeMount:V1,onBeforeUnmount:fs,onBeforeUpdate:W1,onDeactivated:j1,onErrorCaptured:G1,onMounted:vt,onRenderTracked:K1,onRenderTriggered:q1,onScopeDispose:p1,onServerPrefetch:z1,onUnmounted:Qt,onUpdated:fd,openBlock:N,popScopeId:zk,provide:Zt,proxyRefs:sm,pushScopeId:Wk,queuePostFlushCb:um,reactive:xi,readonly:tm,ref:_e,registerRuntimeCompiler:yw,render:ph,renderList:Dt,renderSlot:_r,resolveComponent:J,resolveDirective:fR,resolveDynamicComponent:dR,resolveFilter:e4,resolveTransitionHooks:zs,setBlockTracking:rh,setDevtoolsHook:R1,setTransitionHooks:ss,shallowReactive:C1,shallowReadonly:Ak,shallowRef:sd,ssrContextKey:Ew,ssrUtils:QR,stop:nk,toDisplayString:U,toHandlerKey:Wl,toHandlers:hR,toRaw:Ue,toRef:O1,toRefs:lm,transformVNodeArgs:RR,triggerRef:Xp,unref:Hn,useAttrs:qR,useCssModule:k4,useCssVars:Iw,useSSRContext:xw,useSlots:ww,useTransitionState:fm,vModelCheckbox:wm,vModelDynamic:jw,vModelRadio:Sm,vModelSelect:Bw,vModelText:Ec,vShow:Em,version:Cw,warn:Dk,watch:Ft,watchEffect:jt,watchPostEffect:D1,watchSyncEffect:rR,withAsyncContext:XR,withCtx:ye,withDefaults:zR,withDirectives:X1,withKeys:Vw,withMemo:YR,withModifiers:xc,withScopeId:qk},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 Y4=/;(?![^(]*\))/g,Z4=/:([^]+)/,Q4=/\/\*.*?\*\//gs;function eL(e){const t={};return e.replace(Q4,"").split(Y4).forEach(n=>{if(n){const r=n.split(Z4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const tL="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",nL="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",rL="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",oL=oo(tL),iL=oo(nL),sL=oo(rL),lL={},$c=()=>{},Ep=()=>!1,aL=/^on[^a-z]/,Jw=e=>aL.test(e),Ho=Object.assign,Gs=Array.isArray,mn=e=>typeof e=="string",xm=e=>typeof e=="symbol",uL=e=>e!==null&&typeof e=="object",Cb=oo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cL=oo("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),vd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},dL=/-(\w)/g,yd=vd(e=>e.replace(dL,(t,n)=>n?n.toUpperCase():"")),fL=/\B([A-Z])/g,pL=vd(e=>e.replace(fL,"-$1").toLowerCase()),$m=vd(e=>e.charAt(0).toUpperCase()+e.slice(1)),hL=vd(e=>e?`on${$m(e)}`:"");function Cm(e){throw e}function Yw(e){}function Wt(e,t,n,r){const o=e,s=new SyntaxError(String(o));return s.code=e,s.loc=t,s}const da=Symbol(""),Jl=Symbol(""),Tm=Symbol(""),Cc=Symbol(""),Zw=Symbol(""),us=Symbol(""),Qw=Symbol(""),eS=Symbol(""),Om=Symbol(""),Am=Symbol(""),Ia=Symbol(""),Pm=Symbol(""),tS=Symbol(""),Im=Symbol(""),Tc=Symbol(""),km=Symbol(""),Rm=Symbol(""),Lm=Symbol(""),Nm=Symbol(""),nS=Symbol(""),rS=Symbol(""),bd=Symbol(""),Oc=Symbol(""),Mm=Symbol(""),Dm=Symbol(""),fa=Symbol(""),ka=Symbol(""),Fm=Symbol(""),hh=Symbol(""),mL=Symbol(""),mh=Symbol(""),Ac=Symbol(""),gL=Symbol(""),vL=Symbol(""),Bm=Symbol(""),yL=Symbol(""),bL=Symbol(""),Um=Symbol(""),oS=Symbol(""),Xs={[da]:"Fragment",[Jl]:"Teleport",[Tm]:"Suspense",[Cc]:"KeepAlive",[Zw]:"BaseTransition",[us]:"openBlock",[Qw]:"createBlock",[eS]:"createElementBlock",[Om]:"createVNode",[Am]:"createElementVNode",[Ia]:"createCommentVNode",[Pm]:"createTextVNode",[tS]:"createStaticVNode",[Im]:"resolveComponent",[Tc]:"resolveDynamicComponent",[km]:"resolveDirective",[Rm]:"resolveFilter",[Lm]:"withDirectives",[Nm]:"renderList",[nS]:"renderSlot",[rS]:"createSlots",[bd]:"toDisplayString",[Oc]:"mergeProps",[Mm]:"normalizeClass",[Dm]:"normalizeStyle",[fa]:"normalizeProps",[ka]:"guardReactiveProps",[Fm]:"toHandlers",[hh]:"camelize",[mL]:"capitalize",[mh]:"toHandlerKey",[Ac]:"setBlockTracking",[gL]:"pushScopeId",[vL]:"popScopeId",[Bm]:"withCtx",[yL]:"unref",[bL]:"isRef",[Um]:"withMemo",[oS]:"isMemoSame"};function _L(e){Object.getOwnPropertySymbols(e).forEach(t=>{Xs[t]=e[t]})}const wr={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function wL(e,t=wr){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function pa(e,t,n,r,o,s,l,a=!1,c=!1,d=!1,p=wr){return e&&(a?(e.helper(us),e.helper(Zs(e.inSSR,d))):e.helper(Ys(e.inSSR,d)),l&&e.helper(Lm)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:l,isBlock:a,disableTracking:c,isComponent:d,loc:p}}function Ra(e,t=wr){return{type:17,loc:t,elements:e}}function Rr(e,t=wr){return{type:15,loc:t,properties:e}}function Yt(e,t){return{type:16,loc:wr,key:mn(e)?ut(e,!0):e,value:t}}function ut(e,t=!1,n=wr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Zr(e,t=wr){return{type:8,loc:t,children:e}}function nn(e,t=[],n=wr){return{type:14,loc:n,callee:e,arguments:t}}function Js(e,t=void 0,n=!1,r=!1,o=wr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function gh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:wr}}function SL(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:wr}}function EL(e){return{type:21,body:e,loc:wr}}const Qn=e=>e.type===4&&e.isStatic,Ms=(e,t)=>e===t||e===pL(t);function iS(e){if(Ms(e,"Teleport"))return Jl;if(Ms(e,"Suspense"))return Tm;if(Ms(e,"KeepAlive"))return Cc;if(Ms(e,"BaseTransition"))return Zw}const xL=/^\d|[^\$\w]/,jm=e=>!xL.test(e),$L=/[A-Za-z_$\xA0-\uFFFF]/,CL=/[\.\?\w$\xA0-\uFFFF]/,TL=/\s+[.[]\s*|\s*[.[]\s+/g,OL=e=>{e=e.trim().replace(TL,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?$L:CL).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},sS=OL;function lS(e,t,n){const o={source:e.source.slice(t,t+n),start:Pc(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Pc(e.start,e.source,t+n)),o}function Pc(e,t,n=t.length){return Ic(Ho({},e),t,n)}function Ic(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 kr(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 _d(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)&&Ki(s.arg,t))return s}}function Ki(e,t){return!!(e&&Qn(e)&&e.content===t)}function AL(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function xp(e){return e.type===5||e.type===2}function PL(e){return e.type===7&&e.name==="slot"}function kc(e){return e.type===1&&e.tagType===3}function Rc(e){return e.type===1&&e.tagType===2}function Ys(e,t){return e||t?Om:Am}function Zs(e,t){return e||t?Qw:eS}const IL=new Set([fa,ka]);function aS(e,t=[]){if(e&&!mn(e)&&e.type===14){const n=e.callee;if(!mn(n)&&IL.has(n))return aS(e.arguments[0],t.concat(e))}return[e,t]}function Lc(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=aS(o);o=a[0],s=a[1],l=s[s.length-1]}if(o==null||mn(o))r=Rr([t]);else if(o.type===14){const a=o.arguments[0];!mn(a)&&a.type===15?Tb(t,a)||a.properties.unshift(t):o.callee===Fm?r=nn(n.helper(Oc),[Rr([t]),o]):o.arguments.unshift(Rr([t])),!r&&(r=o)}else o.type===15?(Tb(t,o)||o.properties.unshift(t),r=o):(r=nn(n.helper(Oc),[Rr([t]),o]),l&&l.callee===ka&&(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 Tb(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 ha(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function kL(e){return e.type===14&&e.callee===Um?e.arguments[1].returns:e}function Hm(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Ys(r,e.isComponent)),t(us),t(Zs(r,e.isComponent)))}function Ob(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function es(e,t){const n=Ob("MODE",t),r=Ob(e,t);return n===3?r===!0:r!==!1}function ma(e,t,n,...r){return es(e,t)}const RL=/&(gt|lt|amp|apos|quot);/g,LL={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ab={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:Ep,isPreTag:Ep,isCustomElement:Ep,decodeEntities:e=>e.replace(RL,(t,n)=>LL[n]),onError:Cm,onWarn:Yw,comments:!1};function NL(e,t={}){const n=ML(e,t),r=yr(n);return wL(Vm(n,0,[]),jr(n,r))}function ML(e,t){const n=Ho({},Ab);let r;for(r in t)n[r]=t[r]===void 0?Ab[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Vm(e,t,n){const r=wd(n),o=r?r.ns:0,s=[];for(;!zL(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&kn(a,e.options.delimiters[0]))c=VL(e,t);else if(t===0&&a[0]==="<")if(a.length===1)At(e,5,1);else if(a[1]==="!")kn(a,"<!--")?c=FL(e):kn(a,"<!DOCTYPE")?c=Pl(e):kn(a,"<![CDATA[")?o!==0?c=DL(e,n):(At(e,1),c=Pl(e)):(At(e,11),c=Pl(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),vh(e,1,r);continue}else At(e,12,2),c=Pl(e);else/[a-z]/i.test(a[1])?(c=BL(e,n),es("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(d=>d.type===7&&uS(d.name))&&(c=c.children)):a[1]==="?"?(At(e,21,1),c=Pl(e)):At(e,12,1)}if(c||(c=WL(e,t)),Gs(c))for(let d=0;d<c.length;d++)Pb(s,c[d]);else Pb(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 d=s[c];if(d.type===2)if(e.inPre)d.content=d.content.replace(/\r\n/g,`
     2`);else if(/[^\t\r\n\f ]/.test(d.content))a&&(d.content=d.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(d.content))?(l=!0,s[c]=null):d.content=" "}else d.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 Pb(e,t){if(t.type===2){const n=wd(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 DL(e,t){fn(e,9);const n=Vm(e,3,t);return e.source.length===0?At(e,6):fn(e,3),n}function FL(e){const t=yr(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:jr(e,t)}}function Pl(e){const t=yr(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:jr(e,t)}}function BL(e,t){const n=e.inPre,r=e.inVPre,o=wd(t),s=vh(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),d=Vm(e,c,t);t.pop();{const p=s.props.find(h=>h.type===6&&h.name==="inline-template");if(p&&ma("COMPILER_INLINE_TEMPLATE",e,p.loc)){const h=jr(e,s.loc.end);p.value={type:2,content:h.source,loc:h}}}if(s.children=d,yh(e.source,s.tag))vh(e,1,o);else if(At(e,24,0,s.loc.start),e.source.length===0&&s.tag.toLowerCase()==="script"){const p=d[0];p&&kn(p.loc.source,"<!--")&&At(e,8)}return s.loc=jr(e,s.loc.start),l&&(e.inPre=!1),a&&(e.inVPre=!1),s}const uS=oo("if,else,else-if,for,slot");function vh(e,t,n){const r=yr(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),ga(e);const a=yr(e),c=e.source;e.options.isPreTag(s)&&(e.inPre=!0);let d=Ib(e,t);t===0&&!e.inVPre&&d.some(g=>g.type===7&&g.name==="pre")&&(e.inVPre=!0,Ho(e,a),e.source=c,d=Ib(e,t).filter(g=>g.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"?d.some(g=>g.type===7&&uS(g.name))&&(h=3):UL(s,d,e)&&(h=1)),{type:1,ns:l,tag:s,tagType:h,props:d,isSelfClosing:p,children:[],loc:jr(e,r),codegenNode:void 0}}function UL(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if(e==="component"||/^[A-Z]/.test(e)||iS(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(ma("COMPILER_IS_ON_ELEMENT",n,s.loc))return!0}}else{if(s.name==="is")return!0;if(s.name==="bind"&&Ki(s.arg,"is")&&ma("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),ga(e);continue}t===1&&At(e,3);const o=jL(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),ga(e)}return n}function jL(e,t){const n=yr(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)&&(ga(e),fn(e,1),ga(e),s=HL(e),s||At(e,13));const l=jr(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,"."),d=a[1]||(c||kn(o,":")?"bind":kn(o,"@")?"on":"slot"),p;if(a[2]){const g=d==="slot",y=o.lastIndexOf(a[2]),_=jr(e,kb(e,n,y),kb(e,n,y+a[2].length+(g&&a[3]||"").length));let S=a[2],C=!0;S.startsWith("[")?(C=!1,S.endsWith("]")?S=S.slice(1,S.length-1):(At(e,27),S=S.slice(1))):g&&(S+=a[3]||""),p={type:4,content:S,isStatic:C,constType:C?3:0,loc:_}}if(s&&s.isQuoted){const g=s.loc;g.start.offset++,g.start.column++,g.end=Pc(g.start,s.content),g.source=g.source.slice(1,-1)}const h=a[3]?a[3].slice(1).split("."):[];return c&&h.push("prop"),d==="bind"&&p&&h.includes("sync")&&ma("COMPILER_V_BIND_SYNC",e,l,p.loc.source)&&(d="model",h.splice(h.indexOf("sync"),1)),{type:7,name:d,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 HL(e){const t=yr(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=Yl(e,e.source.length,4):(n=Yl(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=Yl(e,s[0].length,4)}return{content:n,isQuoted:o,loc:jr(e,t)}}function VL(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(o===-1){At(e,25);return}const s=yr(e);fn(e,n.length);const l=yr(e),a=yr(e),c=o-n.length,d=e.source.slice(0,c),p=Yl(e,c,t),h=p.trim(),g=p.indexOf(h);g>0&&Ic(l,d,g);const y=c-(p.length-h.length-g);return Ic(a,d,y),fn(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:jr(e,l,a)},loc:jr(e,s)}}function WL(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=yr(e);return{type:2,content:Yl(e,r,t),loc:jr(e,o)}}function Yl(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 yr(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function jr(e,t,n){return n=n||yr(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function wd(e){return e[e.length-1]}function kn(e,t){return e.startsWith(t)}function fn(e,t){const{source:n}=e;Ic(e,n,t),e.source=n.slice(t)}function ga(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&fn(e,t[0].length)}function kb(e,t,n){return Pc(t,e.originalSource.slice(t.offset,n),n)}function At(e,t,n,r=yr(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Wt(t,{start:r,end:r,source:""}))}function zL(e,t,n){const r=e.source;switch(t){case 0:if(kn(r,"</")){for(let o=n.length-1;o>=0;--o)if(yh(r,n[o].tag))return!0}break;case 1:case 2:{const o=wd(n);if(o&&yh(r,o.tag))return!0;break}case 3:if(kn(r,"]]>"))return!0;break}return!r}function yh(e,t){return kn(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function qL(e,t){sc(e,t,cS(e,e.children[0]))}function cS(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Rc(t)}function sc(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:Lr(a,t);if(c>0){if(c>=2){a.codegenNode.patchFlag="-1",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const d=a.codegenNode;if(d.type===13){const p=hS(d);if((!p||p===512||p===1)&&fS(a,t)>=2){const h=pS(a);h&&(d.props=t.hoist(h))}d.dynamicProps&&(d.dynamicProps=t.hoist(d.dynamicProps))}}}if(a.type===1){const c=a.tagType===1;c&&t.scopes.vSlot++,sc(a,t),c&&t.scopes.vSlot--}else if(a.type===11)sc(a,t,a.children.length===1);else if(a.type===9)for(let c=0;c<a.branches.length;c++)sc(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&&Gs(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Ra(e.codegenNode.children)))}function Lr(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(hS(o))return n.set(e,0),0;{let a=3;const c=fS(e,t);if(c===0)return n.set(e,0),0;c<a&&(a=c);for(let d=0;d<e.children.length;d++){const p=Lr(e.children[d],t);if(p===0)return n.set(e,0),0;p<a&&(a=p)}if(a>1)for(let d=0;d<e.props.length;d++){const p=e.props[d];if(p.type===7&&p.name==="bind"&&p.exp){const h=Lr(p.exp,t);if(h===0)return n.set(e,0),0;h<a&&(a=h)}}if(o.isBlock){for(let d=0;d<e.props.length;d++)if(e.props[d].type===7)return n.set(e,0),0;t.removeHelper(us),t.removeHelper(Zs(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Ys(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 Lr(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)||xm(c))continue;const d=Lr(c,t);if(d===0)return 0;d<l&&(l=d)}return l;default:return 0}}const KL=new Set([Mm,Dm,fa,ka]);function dS(e,t){if(e.type===14&&!mn(e.callee)&&KL.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Lr(n,t);if(n.type===14)return dS(n,t)}return 0}function fS(e,t){let n=3;const r=pS(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=Lr(l,t);if(c===0)return c;c<n&&(n=c);let d;if(a.type===4?d=Lr(a,t):a.type===14?d=dS(a,t):d=0,d===0)return d;d<n&&(n=d)}}return n}function pS(e){const t=e.codegenNode;if(t.type===13)return t.props}function hS(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function GL(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:o=!1,nodeTransforms:s=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=$c,isCustomElement:d=$c,expressionPlugins:p=[],scopeId:h=null,slotted:g=!0,ssr:y=!1,inSSR:_=!1,ssrCssVars:S="",bindingMetadata:C=lL,inline:T=!1,isTS:w=!1,onError:E=Cm,onWarn:O=Yw,compatConfig:x}){const I=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={selfName:I&&$m(yd(I[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:o,nodeTransforms:s,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:d,expressionPlugins:p,scopeId:h,slotted:g,ssr:y,inSSR:_,ssrCssVars:S,bindingMetadata:C,inline:T,isTS:w,onError:E,onWarn:O,compatConfig:x,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(P){const H=k.helpers.get(P)||0;return k.helpers.set(P,H+1),P},removeHelper(P){const H=k.helpers.get(P);if(H){const D=H-1;D?k.helpers.set(P,D):k.helpers.delete(P)}},helperString(P){return`_${Xs[k.helper(P)]}`},replaceNode(P){k.parent.children[k.childIndex]=k.currentNode=P},removeNode(P){const H=k.parent.children,D=P?H.indexOf(P):k.currentNode?k.childIndex:-1;!P||P===k.currentNode?(k.currentNode=null,k.onNodeRemoved()):k.childIndex>D&&(k.childIndex--,k.onNodeRemoved()),k.parent.children.splice(D,1)},onNodeRemoved:()=>{},addIdentifiers(P){},removeIdentifiers(P){},hoist(P){mn(P)&&(P=ut(P)),k.hoists.push(P);const H=ut(`_hoisted_${k.hoists.length}`,!1,P.loc,2);return H.hoisted=P,H},cache(P,H=!1){return SL(k.cached++,P,H)}};return k.filters=new Set,k}function XL(e,t){const n=GL(e,t);Sd(e,n),t.hoistStatic&&qL(e,n),t.ssr||JL(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 JL(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=r[0];if(cS(e,o)&&o.codegenNode){const s=o.codegenNode;s.type===13&&Hm(s,t),e.codegenNode=s}else e.codegenNode=o}else if(r.length>1){let o=64;e.codegenNode=pa(t,n(da),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}function YL(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,Sd(o,t))}}function Sd(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&&(Gs(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ia);break;case 5:t.ssr||t.helper(bd);break;case 9:for(let s=0;s<e.branches.length;s++)Sd(e.branches[s],t);break;case 10:case 11:case 1:case 0:YL(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function mS(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(PL))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 d=t(r,c,o);d&&l.push(d)}}return l}}}const Ed="/*#__PURE__*/",gS=e=>`${Xs[e]}: _${Xs[e]}`;function ZL(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:d="vue/server-renderer",ssr:p=!1,isTS:h=!1,inSSR:g=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:d,ssr:p,isTS:h,inSSR:g,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(S){return`_${Xs[S]}`},push(S,C){y.code+=S},indent(){_(++y.indentLevel)},deindent(S=!1){S?--y.indentLevel:_(--y.indentLevel)},newline(){_(y.indentLevel)}};function _(S){y.push(`
     3`+"  ".repeat(S))}return y}function QL(e,t={}){const n=ZL(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:l,deindent:a,newline:c,scopeId:d,ssr:p}=n,h=Array.from(e.helpers),g=h.length>0,y=!s&&r!=="module";e6(e,n);const S=p?"ssrRender":"render",T=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${S}(${T}) {`),l(),y&&(o("with (_ctx) {"),l(),g&&(o(`const { ${h.map(gS).join(", ")} } = _Vue`),o(`
    44`),c())),e.components.length&&($p(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&($p(e.directives,"directive",n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),$p(e.filters,"filter",n),c()),e.temps>0){o("let ");for(let w=0;w<e.temps;w++)o(`${w>0?", ":""}_temp${w}`)}return(e.components.length||e.directives.length||e.temps)&&(o(`
    5 `),c()),p||o("return "),e.codegenNode?Ln(e.codegenNode,n):o("null"),y&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function YL(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:s,runtimeModuleName:l,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,d=a,p=Array.from(e.helpers);if(p.length>0&&(o(`const _Vue = ${d}
    6 `),e.hoists.length)){const h=[Om,Am,Pa,Im,eS].filter(g=>p.includes(g)).map(mS).join(", ");o(`const { ${h} } = _Vue
    7 `)}ZL(e.hoists,t),s(),o("return ")}function $p(e,t,{helper:n,push:r,newline:o,isTS:s}){const l=n(t==="filter"?Rm:t==="component"?Pm:km);for(let a=0;a<e.length;a++){let c=e[a];const d=c.endsWith("__self");d&&(c=c.slice(0,-6)),r(`const ${ha(c,t)} = ${l}(${JSON.stringify(c)}${d?", true":""})${s?"!":""}`),a<e.length-1&&o()}}function ZL(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:s,mode:l}=t;r();for(let a=0;a<e.length;a++){const c=e[a];c&&(n(`const _hoisted_${a+1} = `),Ln(c,t),r())}t.pure=!1}function Wm(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),La(e,t,n),n&&t.deindent(),t.push("]")}function La(e,t,n=!1,r=!0){const{push:o,newline:s}=t;for(let l=0;l<e.length;l++){const a=e[l];mn(a)?o(a):Gs(a)?Wm(a,t):Ln(a,t),l<e.length-1&&(n?(r&&o(","),s()):r&&o(", "))}}function Ln(e,t){if(mn(e)){t.push(e);return}if(xm(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Ln(e.codegenNode,t);break;case 2:QL(e,t);break;case 4:gS(e,t);break;case 5:eN(e,t);break;case 12:Ln(e.codegenNode,t);break;case 8:vS(e,t);break;case 3:nN(e,t);break;case 13:rN(e,t);break;case 14:iN(e,t);break;case 15:sN(e,t);break;case 17:lN(e,t);break;case 18:aN(e,t);break;case 19:uN(e,t);break;case 20:cN(e,t);break;case 21:La(e.body,t,!0,!1);break}}function QL(e,t){t.push(JSON.stringify(e.content),e)}function gS(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function eN(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Ed),n(`${r(bd)}(`),Ln(e.content,t),n(")")}function vS(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];mn(r)?t.push(r):Ln(r,t)}}function tN(e,t){const{push:n}=t;if(e.type===8)n("["),vS(e,t),n("]");else if(e.isStatic){const r=jm(e.content)?e.content:JSON.stringify(e.content);n(r,e)}else n(`[${e.content}]`,e)}function nN(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Ed),n(`${r(Pa)}(${JSON.stringify(e.content)})`,e)}function rN(e,t){const{push:n,helper:r,pure:o}=t,{tag:s,props:l,children:a,patchFlag:c,dynamicProps:d,directives:p,isBlock:h,disableTracking:g,isComponent:y}=e;p&&n(r(Lm)+"("),h&&n(`(${r(as)}(${g?"true":""}), `),o&&n(Ed);const _=h?Zs(t.inSSR,y):Ys(t.inSSR,y);n(r(_)+"(",e),La(oN([s,l,a,c,d]),t),n(")"),h&&n(")"),p&&(n(", "),Ln(p,t),n(")"))}function oN(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function iN(e,t){const{push:n,helper:r,pure:o}=t,s=mn(e.callee)?e.callee:r(e.callee);o&&n(Ed),n(s+"(",e),La(e.arguments,t),n(")")}function sN(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,{properties:l}=e;if(!l.length){n("{}",e);return}const a=l.length>1||!1;n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:d,value:p}=l[c];tN(d,t),n(": "),Ln(p,t),c<l.length-1&&(n(","),s())}a&&o(),n(a?"}":" }")}function lN(e,t){Wm(e.elements,t)}function aN(e,t){const{push:n,indent:r,deindent:o}=t,{params:s,returns:l,body:a,newline:c,isSlot:d}=e;d&&n(`_${Xs[Bm]}(`),n("(",e),Gs(s)?La(s,t):s&&Ln(s,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),Gs(l)?Wm(l,t):Ln(l,t)):a&&Ln(a,t),(c||a)&&(o(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function uN(e,t){const{test:n,consequent:r,alternate:o,newline:s}=e,{push:l,indent:a,deindent:c,newline:d}=t;if(n.type===4){const h=!jm(n.content);h&&l("("),gS(n,t),h&&l(")")}else l("("),Ln(n,t),l(")");s&&a(),t.indentLevel++,s||l(" "),l("? "),Ln(r,t),t.indentLevel--,s&&d(),s||l(" "),l(": ");const p=o.type===19;p||t.indentLevel++,Ln(o,t),p||t.indentLevel--,s&&c(!0)}function cN(e,t){const{push:n,helper:r,indent:o,deindent:s,newline:l}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Ac)}(-1),`),l()),n(`_cache[${e.index}] = `),Ln(e.value,t),e.isVNode&&(n(","),l(),n(`${r(Ac)}(1),`),l(),n(`_cache[${e.index}]`),s()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const dN=hS(/^(if|else|else-if)$/,(e,t,n)=>fN(e,t,n,(r,o,s)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const d=l[a];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(s)r.codegenNode=Rb(o,c,n);else{const d=pN(r.codegenNode);d.alternate=Rb(o,c+r.branches.length-1,n)}}}));function fN(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Wt(28,t.loc)),t.exp=ut("true",!1,o)}if(t.name==="if"){const o=kb(e,t),s={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const o=n.parent.children;let s=o.indexOf(e);for(;s-->=-1;){const l=o[s];if(l&&l.type===3){n.removeNode(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(Wt(30,e.loc)),n.removeNode();const a=kb(e,t);l.branches.push(a);const c=r&&r(l,a,!1);Sd(a,n),c&&c(),n.currentNode=null}else n.onError(Wt(30,e.loc));break}}}function kb(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!kr(e,"for")?e.children:[e],userKey:_d(e,"key"),isTemplateIf:n}}function Rb(e,t,n){return e.condition?gh(e.condition,Lb(e,t,n),nn(n.helper(Pa),['""',"true"])):Lb(e,t,n)}function Lb(e,t,n){const{helper:r}=n,o=Yt("key",ut(`${t}`,!1,wr,2)),{children:s}=e,l=s[0];if(s.length!==1||l.type!==1)if(s.length===1&&l.type===11){const c=l.codegenNode;return Lc(c,o,n),c}else return pa(n,r(da),Rr([o]),s,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const c=l.codegenNode,d=AL(c);return d.type===13&&Hm(d,n),Lc(d,o,n),c}}function pN(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const hN=hS("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return mN(e,t,n,s=>{const l=nn(r(Nm),[s.source]),a=kc(e),c=kr(e,"memo"),d=_d(e,"key"),p=d&&(d.type===6?ut(d.value.content,!0):d.exp),h=d?Yt("key",p):null,g=s.source.type===4&&s.source.constType>0,y=g?64:d?128:256;return s.codegenNode=pa(n,r(da),void 0,l,y+"",void 0,void 0,!0,!g,!1,e.loc),()=>{let _;const{children:S}=s,C=S.length!==1||S[0].type!==1,T=Rc(e)?e:a&&e.children.length===1&&Rc(e.children[0])?e.children[0]:null;if(T?(_=T.codegenNode,a&&h&&Lc(_,h,n)):C?_=pa(n,r(da),h?Rr([h]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(_=S[0].codegenNode,a&&h&&Lc(_,h,n),_.isBlock!==!g&&(_.isBlock?(o(as),o(Zs(n.inSSR,_.isComponent))):o(Ys(n.inSSR,_.isComponent))),_.isBlock=!g,_.isBlock?(r(as),r(Zs(n.inSSR,_.isComponent))):r(Ys(n.inSSR,_.isComponent))),c){const w=Js(bh(s.parseResult,[ut("_cached")]));w.body=_L([Yr(["const _memo = (",c.exp,")"]),Yr(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(rS)}(_cached, _memo)) return _cached`]),Yr(["const _item = ",_]),ut("_item.memo = _memo"),ut("return _item")]),l.arguments.push(w,ut("_cache"),ut(String(n.cached++)))}else l.arguments.push(Js(bh(s.parseResult),_,!0))}})});function mN(e,t,n,r){if(!t.exp){n.onError(Wt(31,t.loc));return}const o=yS(t.exp);if(!o){n.onError(Wt(32,t.loc));return}const{addIdentifiers:s,removeIdentifiers:l,scopes:a}=n,{source:c,value:d,key:p,index:h}=o,g={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:p,objectIndexAlias:h,parseResult:o,children:kc(e)?e.children:[e]};n.replaceNode(g),a.vFor++;const y=r&&r(g);return()=>{a.vFor--,y&&y()}}const gN=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Nb=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,vN=/^\(|\)$/g;function yS(e,t){const n=e.loc,r=e.content,o=r.match(gN);if(!o)return;const[,s,l]=o,a={source:Gu(n,l.trim(),r.indexOf(l,s.length)),value:void 0,key:void 0,index:void 0};let c=s.trim().replace(vN,"").trim();const d=s.indexOf(c),p=c.match(Nb);if(p){c=c.replace(Nb,"").trim();const h=p[1].trim();let g;if(h&&(g=r.indexOf(h,d+c.length),a.key=Gu(n,h,g)),p[2]){const y=p[2].trim();y&&(a.index=Gu(n,y,r.indexOf(y,a.key?g+h.length:d+c.length)))}}return c&&(a.value=Gu(n,c,d)),a}function Gu(e,t,n){return ut(t,!1,sS(e,n,t.length))}function bh({value:e,key:t,index:n},r=[]){return yN([e,t,n,...r])}function yN(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||ut("_".repeat(r+1),!1))}const Mb=ut("undefined",!1),bN=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=kr(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},_N=(e,t,n)=>Js(e,t,!1,!0,t.length?t[0].loc:n);function wN(e,t,n=_N){t.helper(Bm);const{children:r,loc:o}=e,s=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=kr(e,"slot",!0);if(c){const{arg:C,exp:T}=c;C&&!Yn(C)&&(a=!0),s.push(Yt(C||ut("default",!0),n(T,r,o)))}let d=!1,p=!1;const h=[],g=new Set;let y=0;for(let C=0;C<r.length;C++){const T=r[C];let w;if(!kc(T)||!(w=kr(T,"slot",!0))){T.type!==3&&h.push(T);continue}if(c){t.onError(Wt(37,w.loc));break}d=!0;const{children:E,loc:O}=T,{arg:$=ut("default",!0),exp:P,loc:k}=w;let I;Yn($)?I=$?$.content:"default":a=!0;const H=n(P,E,O);let D,F,z;if(D=kr(T,"if"))a=!0,l.push(gh(D.exp,Xu($,H,y++),Mb));else if(F=kr(T,/^else(-if)?$/,!0)){let G=C,te;for(;G--&&(te=r[G],te.type===3););if(te&&kc(te)&&kr(te,"if")){r.splice(C,1),C--;let we=l[l.length-1];for(;we.alternate.type===19;)we=we.alternate;we.alternate=F.exp?gh(F.exp,Xu($,H,y++),Mb):Xu($,H,y++)}else t.onError(Wt(30,F.loc))}else if(z=kr(T,"for")){a=!0;const G=z.parseResult||yS(z.exp);G?l.push(nn(t.helper(Nm),[G.source,Js(bh(G),Xu($,H),!0)])):t.onError(Wt(32,z.loc))}else{if(I){if(g.has(I)){t.onError(Wt(38,k));continue}g.add(I),I==="default"&&(p=!0)}s.push(Yt($,H))}}if(!c){const C=(T,w)=>{const E=n(T,w,o);return t.compatConfig&&(E.isNonScopedSlot=!0),Yt("default",E)};d?h.length&&h.some(T=>bS(T))&&(p?t.onError(Wt(39,h[0].loc)):s.push(C(void 0,h))):s.push(C(void 0,r))}const _=a?2:lc(e.children)?3:1;let S=Rr(s.concat(Yt("_",ut(_+"",!1))),o);return l.length&&(S=nn(t.helper(nS),[S,Ra(l)])),{slots:S,hasDynamicSlots:a}}function Xu(e,t,n){const r=[Yt("name",e),Yt("fn",t)];return n!=null&&r.push(Yt("key",ut(String(n),!0))),Rr(r)}function lc(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||lc(n.children))return!0;break;case 9:if(lc(n.branches))return!0;break;case 10:case 11:if(lc(n.children))return!0;break}}return!1}function bS(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():bS(e.content)}const _S=new WeakMap,SN=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,s=e.tagType===1;let l=s?EN(e,t):`"${r}"`;const a=sL(l)&&l.callee===Tc;let c,d,p,h=0,g,y,_,S=a||l===Jl||l===Tm||!s&&(r==="svg"||r==="foreignObject");if(o.length>0){const C=wS(e,t,void 0,s,a);c=C.props,h=C.patchFlag,y=C.dynamicPropNames;const T=C.directives;_=T&&T.length?Ra(T.map(w=>$N(w,t))):void 0,C.shouldUseBlock&&(S=!0)}if(e.children.length>0)if(l===Cc&&(S=!0,h|=1024),s&&l!==Jl&&l!==Cc){const{slots:T,hasDynamicSlots:w}=wN(e,t);d=T,w&&(h|=1024)}else if(e.children.length===1&&l!==Jl){const T=e.children[0],w=T.type,E=w===5||w===8;E&&Lr(T,t)===0&&(h|=1),E||w===2?d=T:d=e.children}else d=e.children;h!==0&&(p=String(h),y&&y.length&&(g=CN(y))),e.codegenNode=pa(t,l,c,d,p,g,_,!!S,!1,s,e.loc)};function EN(e,t,n=!1){let{tag:r}=e;const o=_h(r),s=_d(e,"is");if(s)if(o||Qi("COMPILER_IS_ON_ELEMENT",t)){const c=s.type===6?s.value&&ut(s.value.content,!0):s.exp;if(c)return nn(t.helper(Tc),[c])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const l=!o&&kr(e,"is");if(l&&l.exp)return nn(t.helper(Tc),[l.exp]);const a=oS(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(Pm),t.components.add(r),ha(r,"component"))}function wS(e,t,n=e.props,r,o,s=!1){const{tag:l,loc:a,children:c}=e;let d=[];const p=[],h=[],g=c.length>0;let y=!1,_=0,S=!1,C=!1,T=!1,w=!1,E=!1,O=!1;const $=[],P=H=>{d.length&&(p.push(Rr(Db(d),a)),d=[]),H&&p.push(H)},k=({key:H,value:D})=>{if(Yn(H)){const F=H.content,z=Xw(F);if(z&&(!r||o)&&F.toLowerCase()!=="onclick"&&F!=="onUpdate:modelValue"&&!$b(F)&&(w=!0),z&&$b(F)&&(O=!0),D.type===20||(D.type===4||D.type===8)&&Lr(D,t)>0)return;F==="ref"?S=!0:F==="class"?C=!0:F==="style"?T=!0:F!=="key"&&!$.includes(F)&&$.push(F),r&&(F==="class"||F==="style")&&!$.includes(F)&&$.push(F)}else E=!0};for(let H=0;H<n.length;H++){const D=n[H];if(D.type===6){const{loc:F,name:z,value:G}=D;let te=!0;if(z==="ref"&&(S=!0,t.scopes.vFor>0&&d.push(Yt(ut("ref_for",!0),ut("true")))),z==="is"&&(_h(l)||G&&G.content.startsWith("vue:")||Qi("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(Yt(ut(z,!0,sS(F,0,z.length)),ut(G?G.content:"",te,G?G.loc:F)))}else{const{name:F,arg:z,exp:G,loc:te}=D,we=F==="bind",be=F==="on";if(F==="slot"){r||t.onError(Wt(40,te));continue}if(F==="once"||F==="memo"||F==="is"||we&&qi(z,"is")&&(_h(l)||Qi("COMPILER_IS_ON_ELEMENT",t))||be&&s)continue;if((we&&qi(z,"key")||be&&g&&qi(z,"vue:before-update"))&&(y=!0),we&&qi(z,"ref")&&t.scopes.vFor>0&&d.push(Yt(ut("ref_for",!0),ut("true"))),!z&&(we||be)){if(E=!0,G)if(we){if(P(),Qi("COMPILER_V_BIND_OBJECT_ORDER",t)){p.unshift(G);continue}p.push(G)}else P({type:14,loc:te,callee:t.helper(Fm),arguments:r?[G]:[G,"true"]});else t.onError(Wt(we?34:35,te));continue}const Ae=t.directiveTransforms[F];if(Ae){const{props:Ie,needRuntime:Ye}=Ae(D,e,t);!s&&Ie.forEach(k),be&&z&&!Yn(z)?P(Rr(Ie,a)):d.push(...Ie),Ye&&(h.push(D),xm(Ye)&&_S.set(D,Ye))}else lL(F)||(h.push(D),g&&(y=!0))}}let I;if(p.length?(P(),p.length>1?I=nn(t.helper(Oc),p,a):I=p[0]):d.length&&(I=Rr(Db(d),a)),E?_|=16:(C&&!r&&(_|=2),T&&!r&&(_|=4),$.length&&(_|=8),w&&(_|=32)),!y&&(_===0||_===32)&&(S||O||h.length>0)&&(_|=512),!t.inSSR&&I)switch(I.type){case 15:let H=-1,D=-1,F=!1;for(let te=0;te<I.properties.length;te++){const we=I.properties[te].key;Yn(we)?we.content==="class"?H=te:we.content==="style"&&(D=te):we.isHandlerKey||(F=!0)}const z=I.properties[H],G=I.properties[D];F?I=nn(t.helper(fa),[I]):(z&&!Yn(z.value)&&(z.value=nn(t.helper(Mm),[z.value])),G&&(T||G.value.type===4&&G.value.content.trim()[0]==="["||G.value.type===17)&&(G.value=nn(t.helper(Dm),[G.value])));break;case 14:break;default:I=nn(t.helper(fa),[nn(t.helper(ka),[I])]);break}return{props:I,directives:h,patchFlag:_,dynamicPropNames:$,shouldUseBlock:y}}function Db(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const s=o.key.content,l=t.get(s);l?(s==="style"||s==="class"||Xw(s))&&xN(l,o):(t.set(s,o),n.push(o))}return n}function xN(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Ra([e.value,t.value],e.loc)}function $N(e,t){const n=[],r=_S.get(e);r?n.push(t.helperString(r)):(t.helper(km),t.directives.add(e.name),n.push(ha(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const s=ut("true",!1,o);n.push(Rr(e.modifiers.map(l=>Yt(l,s)),o))}return Ra(n,e.loc)}function CN(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function _h(e){return e==="component"||e==="Component"}const TN=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ON=/-(\w)/g,Fb=TN(e=>e.replace(ON,(t,n)=>n?n.toUpperCase():"")),AN=(e,t)=>{if(Rc(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:s}=IN(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;s&&(l[2]=s,a=3),n.length&&(l[3]=Js([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=nn(t.helper(tS),l,r)}};function IN(e,t){let n='"default"',r;const o=[];for(let s=0;s<e.props.length;s++){const l=e.props[s];l.type===6?l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=Fb(l.name),o.push(l))):l.name==="bind"&&qi(l.arg,"name")?l.exp&&(n=l.exp):(l.name==="bind"&&l.arg&&Yn(l.arg)&&(l.arg.content=Fb(l.arg.content)),o.push(l))}if(o.length>0){const{props:s,directives:l}=wS(e,t,o,!1,!1);r=s,l.length&&t.onError(Wt(36,l[0].loc))}return{slotName:n,slotProps:r}}const PN=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,SS=(e,t,n,r)=>{const{loc:o,modifiers:s,arg:l}=e;!e.exp&&!s.length&&n.onError(Wt(35,o));let a;if(l.type===4)if(l.isStatic){let h=l.content;h.startsWith("vue:")&&(h=`vnode-${h.slice(4)}`);const g=t.tagType!==0||h.startsWith("vnode")||!/[A-Z]/.test(h)?dL(yd(h)):`on:${h}`;a=ut(g,!0,l.loc)}else a=Yr([`${n.helperString(mh)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(mh)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let d=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const h=iS(c.content),g=!(h||PN.test(c.content)),y=c.content.includes(";");(g||d&&h)&&(c=Yr([`${g?"$event":"(...args)"} => ${y?"{":"("}`,c,y?"}":")"]))}let p={props:[Yt(a,c||ut("() => {}",!1,o))]};return r&&(p=r(p)),d&&(p.props[0].value=n.cache(p.props[0].value)),p.props.forEach(h=>h.key.isHandlerKey=!0),p},kN=(e,t,n)=>{const{exp:r,modifiers:o,loc:s}=e,l=e.arg;return l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),o.includes("camel")&&(l.type===4?l.isStatic?l.content=yd(l.content):l.content=`${n.helperString(hh)}(${l.content})`:(l.children.unshift(`${n.helperString(hh)}(`),l.children.push(")"))),n.inSSR||(o.includes("prop")&&Bb(l,"."),o.includes("attr")&&Bb(l,"^")),!r||r.type===4&&!r.content.trim()?(n.onError(Wt(34,s)),{props:[Yt(l,ut("",!0,s))]}):{props:[Yt(l,r)]}},Bb=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},RN=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let s=0;s<n.length;s++){const l=n[s];if(xp(l)){o=!0;for(let a=s+1;a<n.length;a++){const c=n[a];if(xp(c))r||(r=n[s]=Yr([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(s=>s.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s<n.length;s++){const l=n[s];if(xp(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&Lr(l,t)===0&&a.push("1"),n[s]={type:12,content:l,loc:l.loc,codegenNode:nn(t.helper(Im),a)}}}}},Ub=new WeakSet,LN=(e,t)=>{if(e.type===1&&kr(e,"once",!0))return Ub.has(e)||t.inVOnce?void 0:(Ub.add(e),t.inVOnce=!0,t.helper(Ac),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},ES=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Wt(41,e.loc)),Ju();const s=r.loc.source,l=r.type===4?r.content:s,a=n.bindingMetadata[s];if(a==="props"||a==="props-aliased")return n.onError(Wt(44,r.loc)),Ju();if(!l.trim()||!iS(l)&&!!1)return n.onError(Wt(42,r.loc)),Ju();const d=o||ut("modelValue",!0),p=o?Yn(o)?`onUpdate:${yd(o.content)}`:Yr(['"onUpdate:" + ',o]):"onUpdate:modelValue";let h;const g=n.isTS?"($event: any)":"$event";h=Yr([`${g} => ((`,r,") = $event)"]);const y=[Yt(d,e.exp),Yt(p,h)];if(e.modifiers.length&&t.tagType===1){const _=e.modifiers.map(C=>(jm(C)?C:JSON.stringify(C))+": true").join(", "),S=o?Yn(o)?`${o.content}Modifiers`:Yr([o,' + "Modifiers"']):"modelModifiers";y.push(Yt(S,ut(`{ ${_} }`,!1,e.loc,2)))}return Ju(y)};function Ju(e=[]){return{props:e}}const NN=/[\w).+\-_$\]]/,MN=(e,t)=>{Qi("COMPILER_FILTER",t)&&(e.type===5&&Nc(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Nc(n.exp,t)}))};function Nc(e,t){if(e.type===4)jb(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?jb(r,t):r.type===8?Nc(e,t):r.type===5&&Nc(r.content,t))}}function jb(e,t){const n=e.content;let r=!1,o=!1,s=!1,l=!1,a=0,c=0,d=0,p=0,h,g,y,_,S=[];for(y=0;y<n.length;y++)if(g=h,h=n.charCodeAt(y),r)h===39&&g!==92&&(r=!1);else if(o)h===34&&g!==92&&(o=!1);else if(s)h===96&&g!==92&&(s=!1);else if(l)h===47&&g!==92&&(l=!1);else if(h===124&&n.charCodeAt(y+1)!==124&&n.charCodeAt(y-1)!==124&&!a&&!c&&!d)_===void 0?(p=y+1,_=n.slice(0,y).trim()):C();else{switch(h){case 34:o=!0;break;case 39:r=!0;break;case 96:s=!0;break;case 40:d++;break;case 41:d--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(h===47){let T=y-1,w;for(;T>=0&&(w=n.charAt(T),w===" ");T--);(!w||!NN.test(w))&&(l=!0)}}_===void 0?_=n.slice(0,y).trim():p!==0&&C();function C(){S.push(n.slice(p,y).trim()),p=y+1}if(S.length){for(y=0;y<S.length;y++)_=DN(_,S[y],t);e.content=_}}function DN(e,t,n){n.helper(Rm);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${ha(t,"filter")}(${e})`;{const o=t.slice(0,r),s=t.slice(r+1);return n.filters.add(o),`${ha(o,"filter")}(${e}${s!==")"?","+s:s}`}}const Hb=new WeakSet,FN=(e,t)=>{if(e.type===1){const n=kr(e,"memo");return!n||Hb.has(e)?void 0:(Hb.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Hm(r,t),e.codegenNode=nn(t.helper(Um),[n.exp,Js(void 0,r),"_cache",String(t.cached++)]))})}};function BN(e){return[[LN,dN,FN,hN,MN,AN,SN,bN,RN],{on:SS,bind:kN,model:ES}]}function UN(e,t={}){const n=t.onError||Cm,r=t.mode==="module";t.prefixIdentifiers===!0?n(Wt(47)):r&&n(Wt(48));const o=!1;t.cacheHandlers&&n(Wt(49)),t.scopeId&&!r&&n(Wt(50));const s=mn(e)?kL(e,t):e,[l,a]=BN();return qL(s,Ho({},t,{prefixIdentifiers:o,nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:Ho({},a,t.directiveTransforms||{})})),JL(s,Ho({},t,{prefixIdentifiers:o}))}const jN=()=>({props:[]}),xS=Symbol(""),$S=Symbol(""),CS=Symbol(""),TS=Symbol(""),wh=Symbol(""),OS=Symbol(""),AS=Symbol(""),IS=Symbol(""),PS=Symbol(""),kS=Symbol("");vL({[xS]:"vModelRadio",[$S]:"vModelCheckbox",[CS]:"vModelText",[TS]:"vModelSelect",[wh]:"vModelDynamic",[OS]:"withModifiers",[AS]:"withKeys",[IS]:"vShow",[PS]:"Transition",[kS]:"TransitionGroup"});let Ls;function HN(e,t=!1){return Ls||(Ls=document.createElement("div")),t?(Ls.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Ls.children[0].getAttribute("foo")):(Ls.innerHTML=e,Ls.textContent)}const VN=ro("style,iframe,script,noscript",!0),WN={isVoidTag:rL,isNativeTag:e=>tL(e)||nL(e),isPreTag:e=>e==="pre",decodeEntities:HN,isBuiltInComponent:e=>{if(Ms(e,"Transition"))return PS;if(Ms(e,"TransitionGroup"))return kS},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(VN(e))return 2}return 0}},zN=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:ut("style",!0,t.loc),exp:qN(t.value.content,t.loc),modifiers:[],loc:t.loc})})},qN=(e,t)=>{const n=Y4(e);return ut(JSON.stringify(n),!1,t,3)};function Vo(e,t){return Wt(e,t)}const KN=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(51,o)),t.children.length&&(n.onError(Vo(52,o)),t.children.length=0),{props:[Yt(ut("innerHTML",!0,o),r||ut("",!0))]}},GN=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(53,o)),t.children.length&&(n.onError(Vo(54,o)),t.children.length=0),{props:[Yt(ut("textContent",!0),r?Lr(r,n)>0?r:nn(n.helperString(bd),[r],o):ut("",!0))]}},XN=(e,t,n)=>{const r=ES(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Vo(56,e.arg.loc));const{tag:o}=t,s=n.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||s){let l=CS,a=!1;if(o==="input"||s){const c=_d(t,"type");if(c){if(c.type===7)l=wh;else if(c.value)switch(c.value.content){case"radio":l=xS;break;case"checkbox":l=$S;break;case"file":a=!0,n.onError(Vo(57,e.loc));break}}else CL(t)&&(l=wh)}else o==="select"&&(l=TS);a||(r.needRuntime=n.helper(l))}else n.onError(Vo(55,e.loc));return r.props=r.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),r},JN=ro("passive,once,capture"),YN=ro("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),ZN=ro("left,right"),RS=ro("onkeyup,onkeydown,onkeypress",!0),QN=(e,t,n,r)=>{const o=[],s=[],l=[];for(let a=0;a<t.length;a++){const c=t[a];c==="native"&&ma("COMPILER_V_ON_NATIVE",n)||JN(c)?l.push(c):ZN(c)?Yn(e)?RS(e.content)?o.push(c):s.push(c):(o.push(c),s.push(c)):YN(c)?s.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:l}},Vb=(e,t)=>Yn(e)&&e.content.toLowerCase()==="onclick"?ut(t,!0):e.type!==4?Yr(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,e6=(e,t,n)=>SS(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:s,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:d}=QN(s,o,n,e.loc);if(c.includes("right")&&(s=Vb(s,"onContextmenu")),c.includes("middle")&&(s=Vb(s,"onMouseup")),c.length&&(l=nn(n.helper(OS),[l,JSON.stringify(c)])),a.length&&(!Yn(s)||RS(s.content))&&(l=nn(n.helper(AS),[l,JSON.stringify(a)])),d.length){const p=d.map($m).join("");s=Yn(s)?ut(`${s.content}${p}`,!0):Yr(["(",s,`) + "${p}"`])}return{props:[Yt(s,l)]}}),t6=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(59,o)),{props:[],needRuntime:n.helper(IS)}},n6=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(Vo(61,e.loc)),t.removeNode())},r6=[zN],o6={cloak:jN,html:KN,text:GN,model:XN,on:e6,show:t6};function i6(e,t={}){return UN(e,Ho({},WN,t,{nodeTransforms:[n6,...r6,...t.nodeTransforms||[]],directiveTransforms:Ho({},o6,t.directiveTransforms||{}),transformHoist:null}))}const Wb=Object.create(null);function s6(e,t){if(!mn(e))if(e.nodeType)e=e.innerHTML;else return $c;const n=e,r=Wb[n];if(r)return r;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const o=Ho({hoistStatic:!0,onError:void 0,onWarn:$c},t);!o.isCustomElement&&typeof customElements<"u"&&(o.isCustomElement=a=>!!customElements.get(a));const{code:s}=i6(e,o),l=new Function("Vue",s)(K4);return l._rc=!0,Wb[n]=l}vw(s6);function va(e){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},va(e)}function l6(e,t){if(va(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(va(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a6(e){var t=l6(e,"string");return va(t)=="symbol"?t:String(t)}function u6(e,t,n){return t=a6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function qb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zb(Object(n),!0).forEach(function(r){u6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function An(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Kb=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Cp=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mc={INIT:"@@redux/INIT"+Cp(),REPLACE:"@@redux/REPLACE"+Cp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Cp()}};function c6(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zm(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(An(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(An(1));return n(zm)(e,t)}if(typeof e!="function")throw new Error(An(2));var o=e,s=t,l=[],a=l,c=!1;function d(){a===l&&(a=l.slice())}function p(){if(c)throw new Error(An(3));return s}function h(S){if(typeof S!="function")throw new Error(An(4));if(c)throw new Error(An(5));var C=!0;return d(),a.push(S),function(){if(C){if(c)throw new Error(An(6));C=!1,d();var w=a.indexOf(S);a.splice(w,1),l=null}}}function g(S){if(!c6(S))throw new Error(An(7));if(typeof S.type>"u")throw new Error(An(8));if(c)throw new Error(An(9));try{c=!0,s=o(s,S)}finally{c=!1}for(var C=l=a,T=0;T<C.length;T++){var w=C[T];w()}return S}function y(S){if(typeof S!="function")throw new Error(An(10));o=S,g({type:Mc.REPLACE})}function _(){var S,C=h;return S={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(An(11));function E(){w.next&&w.next(p())}E();var O=C(E);return{unsubscribe:O}}},S[Kb]=function(){return this},S}return g({type:Mc.INIT}),r={dispatch:g,subscribe:h,getState:p,replaceReducer:y},r[Kb]=_,r}function d6(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Mc.INIT});if(typeof r>"u")throw new Error(An(12));if(typeof n(void 0,{type:Mc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(An(13))})}function LS(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];typeof e[o]=="function"&&(n[o]=e[o])}var s=Object.keys(n),l;try{d6(n)}catch(a){l=a}return function(c,d){if(c===void 0&&(c={}),l)throw l;for(var p=!1,h={},g=0;g<s.length;g++){var y=s[g],_=n[y],S=c[y],C=_(S,d);if(typeof C>"u")throw d&&d.type,new Error(An(14));h[y]=C,p=p||C!==S}return p=p||s.length!==Object.keys(c).length,p?h:c}}function NS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}function f6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var o=r.apply(void 0,arguments),s=function(){throw new Error(An(15))},l={getState:o.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(c){return c(l)});return s=NS.apply(void 0,a)(o.dispatch),qb(qb({},o),{},{dispatch:s})}}}function p6(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Sh=Symbol("ReduxStore"),Gb=Symbol("ReduxActions"),h6=(e,t)=>{if(!e)throw new Error("[redux-vuex]: store is not defined");t?t.provide(Sh,e):Zt(Sh,e)},m6=(e,t)=>{!e||(t?t.provide(Gb,e):Zt(Gb,e))},it=()=>kt(Sh)||(console.warn("[redux-vuex]: couldn't find a store, make sure you have provided it"),zm(LS({})));function g6(e){h6(e.store,e.app),m6(e.actions,e.app)}/*!
     5`),c()),p||o("return "),e.codegenNode?Ln(e.codegenNode,n):o("null"),y&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function e6(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:s,runtimeModuleName:l,runtimeGlobalName:a,ssrRuntimeModuleName:c}=t,d=a,p=Array.from(e.helpers);if(p.length>0&&(o(`const _Vue = ${d}
     6`),e.hoists.length)){const h=[Om,Am,Ia,Pm,tS].filter(g=>p.includes(g)).map(gS).join(", ");o(`const { ${h} } = _Vue
     7`)}t6(e.hoists,t),s(),o("return ")}function $p(e,t,{helper:n,push:r,newline:o,isTS:s}){const l=n(t==="filter"?Rm:t==="component"?Im:km);for(let a=0;a<e.length;a++){let c=e[a];const d=c.endsWith("__self");d&&(c=c.slice(0,-6)),r(`const ${ha(c,t)} = ${l}(${JSON.stringify(c)}${d?", true":""})${s?"!":""}`),a<e.length-1&&o()}}function t6(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:s,mode:l}=t;r();for(let a=0;a<e.length;a++){const c=e[a];c&&(n(`const _hoisted_${a+1} = `),Ln(c,t),r())}t.pure=!1}function Wm(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),La(e,t,n),n&&t.deindent(),t.push("]")}function La(e,t,n=!1,r=!0){const{push:o,newline:s}=t;for(let l=0;l<e.length;l++){const a=e[l];mn(a)?o(a):Gs(a)?Wm(a,t):Ln(a,t),l<e.length-1&&(n?(r&&o(","),s()):r&&o(", "))}}function Ln(e,t){if(mn(e)){t.push(e);return}if(xm(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Ln(e.codegenNode,t);break;case 2:n6(e,t);break;case 4:vS(e,t);break;case 5:r6(e,t);break;case 12:Ln(e.codegenNode,t);break;case 8:yS(e,t);break;case 3:i6(e,t);break;case 13:s6(e,t);break;case 14:a6(e,t);break;case 15:u6(e,t);break;case 17:c6(e,t);break;case 18:d6(e,t);break;case 19:f6(e,t);break;case 20:p6(e,t);break;case 21:La(e.body,t,!0,!1);break}}function n6(e,t){t.push(JSON.stringify(e.content),e)}function vS(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function r6(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Ed),n(`${r(bd)}(`),Ln(e.content,t),n(")")}function yS(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];mn(r)?t.push(r):Ln(r,t)}}function o6(e,t){const{push:n}=t;if(e.type===8)n("["),yS(e,t),n("]");else if(e.isStatic){const r=jm(e.content)?e.content:JSON.stringify(e.content);n(r,e)}else n(`[${e.content}]`,e)}function i6(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Ed),n(`${r(Ia)}(${JSON.stringify(e.content)})`,e)}function s6(e,t){const{push:n,helper:r,pure:o}=t,{tag:s,props:l,children:a,patchFlag:c,dynamicProps:d,directives:p,isBlock:h,disableTracking:g,isComponent:y}=e;p&&n(r(Lm)+"("),h&&n(`(${r(us)}(${g?"true":""}), `),o&&n(Ed);const _=h?Zs(t.inSSR,y):Ys(t.inSSR,y);n(r(_)+"(",e),La(l6([s,l,a,c,d]),t),n(")"),h&&n(")"),p&&(n(", "),Ln(p,t),n(")"))}function l6(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function a6(e,t){const{push:n,helper:r,pure:o}=t,s=mn(e.callee)?e.callee:r(e.callee);o&&n(Ed),n(s+"(",e),La(e.arguments,t),n(")")}function u6(e,t){const{push:n,indent:r,deindent:o,newline:s}=t,{properties:l}=e;if(!l.length){n("{}",e);return}const a=l.length>1||!1;n(a?"{":"{ "),a&&r();for(let c=0;c<l.length;c++){const{key:d,value:p}=l[c];o6(d,t),n(": "),Ln(p,t),c<l.length-1&&(n(","),s())}a&&o(),n(a?"}":" }")}function c6(e,t){Wm(e.elements,t)}function d6(e,t){const{push:n,indent:r,deindent:o}=t,{params:s,returns:l,body:a,newline:c,isSlot:d}=e;d&&n(`_${Xs[Bm]}(`),n("(",e),Gs(s)?La(s,t):s&&Ln(s,t),n(") => "),(c||a)&&(n("{"),r()),l?(c&&n("return "),Gs(l)?Wm(l,t):Ln(l,t)):a&&Ln(a,t),(c||a)&&(o(),n("}")),d&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function f6(e,t){const{test:n,consequent:r,alternate:o,newline:s}=e,{push:l,indent:a,deindent:c,newline:d}=t;if(n.type===4){const h=!jm(n.content);h&&l("("),vS(n,t),h&&l(")")}else l("("),Ln(n,t),l(")");s&&a(),t.indentLevel++,s||l(" "),l("? "),Ln(r,t),t.indentLevel--,s&&d(),s||l(" "),l(": ");const p=o.type===19;p||t.indentLevel++,Ln(o,t),p||t.indentLevel--,s&&c(!0)}function p6(e,t){const{push:n,helper:r,indent:o,deindent:s,newline:l}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(Ac)}(-1),`),l()),n(`_cache[${e.index}] = `),Ln(e.value,t),e.isVNode&&(n(","),l(),n(`${r(Ac)}(1),`),l(),n(`_cache[${e.index}]`),s()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const h6=mS(/^(if|else|else-if)$/,(e,t,n)=>m6(e,t,n,(r,o,s)=>{const l=n.parent.children;let a=l.indexOf(r),c=0;for(;a-->=0;){const d=l[a];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(s)r.codegenNode=Lb(o,c,n);else{const d=g6(r.codegenNode);d.alternate=Lb(o,c+r.branches.length-1,n)}}}));function m6(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const o=t.exp?t.exp.loc:e.loc;n.onError(Wt(28,t.loc)),t.exp=ut("true",!1,o)}if(t.name==="if"){const o=Rb(e,t),s={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const o=n.parent.children;let s=o.indexOf(e);for(;s-->=-1;){const l=o[s];if(l&&l.type===3){n.removeNode(l);continue}if(l&&l.type===2&&!l.content.trim().length){n.removeNode(l);continue}if(l&&l.type===9){t.name==="else-if"&&l.branches[l.branches.length-1].condition===void 0&&n.onError(Wt(30,e.loc)),n.removeNode();const a=Rb(e,t);l.branches.push(a);const c=r&&r(l,a,!1);Sd(a,n),c&&c(),n.currentNode=null}else n.onError(Wt(30,e.loc));break}}}function Rb(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!kr(e,"for")?e.children:[e],userKey:_d(e,"key"),isTemplateIf:n}}function Lb(e,t,n){return e.condition?gh(e.condition,Nb(e,t,n),nn(n.helper(Ia),['""',"true"])):Nb(e,t,n)}function Nb(e,t,n){const{helper:r}=n,o=Yt("key",ut(`${t}`,!1,wr,2)),{children:s}=e,l=s[0];if(s.length!==1||l.type!==1)if(s.length===1&&l.type===11){const c=l.codegenNode;return Lc(c,o,n),c}else return pa(n,r(da),Rr([o]),s,64+"",void 0,void 0,!0,!1,!1,e.loc);else{const c=l.codegenNode,d=kL(c);return d.type===13&&Hm(d,n),Lc(d,o,n),c}}function g6(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const v6=mS("for",(e,t,n)=>{const{helper:r,removeHelper:o}=n;return y6(e,t,n,s=>{const l=nn(r(Nm),[s.source]),a=kc(e),c=kr(e,"memo"),d=_d(e,"key"),p=d&&(d.type===6?ut(d.value.content,!0):d.exp),h=d?Yt("key",p):null,g=s.source.type===4&&s.source.constType>0,y=g?64:d?128:256;return s.codegenNode=pa(n,r(da),void 0,l,y+"",void 0,void 0,!0,!g,!1,e.loc),()=>{let _;const{children:S}=s,C=S.length!==1||S[0].type!==1,T=Rc(e)?e:a&&e.children.length===1&&Rc(e.children[0])?e.children[0]:null;if(T?(_=T.codegenNode,a&&h&&Lc(_,h,n)):C?_=pa(n,r(da),h?Rr([h]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(_=S[0].codegenNode,a&&h&&Lc(_,h,n),_.isBlock!==!g&&(_.isBlock?(o(us),o(Zs(n.inSSR,_.isComponent))):o(Ys(n.inSSR,_.isComponent))),_.isBlock=!g,_.isBlock?(r(us),r(Zs(n.inSSR,_.isComponent))):r(Ys(n.inSSR,_.isComponent))),c){const w=Js(bh(s.parseResult,[ut("_cached")]));w.body=EL([Zr(["const _memo = (",c.exp,")"]),Zr(["if (_cached",...p?[" && _cached.key === ",p]:[],` && ${n.helperString(oS)}(_cached, _memo)) return _cached`]),Zr(["const _item = ",_]),ut("_item.memo = _memo"),ut("return _item")]),l.arguments.push(w,ut("_cache"),ut(String(n.cached++)))}else l.arguments.push(Js(bh(s.parseResult),_,!0))}})});function y6(e,t,n,r){if(!t.exp){n.onError(Wt(31,t.loc));return}const o=bS(t.exp);if(!o){n.onError(Wt(32,t.loc));return}const{addIdentifiers:s,removeIdentifiers:l,scopes:a}=n,{source:c,value:d,key:p,index:h}=o,g={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:p,objectIndexAlias:h,parseResult:o,children:kc(e)?e.children:[e]};n.replaceNode(g),a.vFor++;const y=r&&r(g);return()=>{a.vFor--,y&&y()}}const b6=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Mb=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,_6=/^\(|\)$/g;function bS(e,t){const n=e.loc,r=e.content,o=r.match(b6);if(!o)return;const[,s,l]=o,a={source:Gu(n,l.trim(),r.indexOf(l,s.length)),value:void 0,key:void 0,index:void 0};let c=s.trim().replace(_6,"").trim();const d=s.indexOf(c),p=c.match(Mb);if(p){c=c.replace(Mb,"").trim();const h=p[1].trim();let g;if(h&&(g=r.indexOf(h,d+c.length),a.key=Gu(n,h,g)),p[2]){const y=p[2].trim();y&&(a.index=Gu(n,y,r.indexOf(y,a.key?g+h.length:d+c.length)))}}return c&&(a.value=Gu(n,c,d)),a}function Gu(e,t,n){return ut(t,!1,lS(e,n,t.length))}function bh({value:e,key:t,index:n},r=[]){return w6([e,t,n,...r])}function w6(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||ut("_".repeat(r+1),!1))}const Db=ut("undefined",!1),S6=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=kr(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},E6=(e,t,n)=>Js(e,t,!1,!0,t.length?t[0].loc:n);function x6(e,t,n=E6){t.helper(Bm);const{children:r,loc:o}=e,s=[],l=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=kr(e,"slot",!0);if(c){const{arg:C,exp:T}=c;C&&!Qn(C)&&(a=!0),s.push(Yt(C||ut("default",!0),n(T,r,o)))}let d=!1,p=!1;const h=[],g=new Set;let y=0;for(let C=0;C<r.length;C++){const T=r[C];let w;if(!kc(T)||!(w=kr(T,"slot",!0))){T.type!==3&&h.push(T);continue}if(c){t.onError(Wt(37,w.loc));break}d=!0;const{children:E,loc:O}=T,{arg:x=ut("default",!0),exp:I,loc:k}=w;let P;Qn(x)?P=x?x.content:"default":a=!0;const H=n(I,E,O);let D,F,z;if(D=kr(T,"if"))a=!0,l.push(gh(D.exp,Xu(x,H,y++),Db));else if(F=kr(T,/^else(-if)?$/,!0)){let G=C,te;for(;G--&&(te=r[G],te.type===3););if(te&&kc(te)&&kr(te,"if")){r.splice(C,1),C--;let we=l[l.length-1];for(;we.alternate.type===19;)we=we.alternate;we.alternate=F.exp?gh(F.exp,Xu(x,H,y++),Db):Xu(x,H,y++)}else t.onError(Wt(30,F.loc))}else if(z=kr(T,"for")){a=!0;const G=z.parseResult||bS(z.exp);G?l.push(nn(t.helper(Nm),[G.source,Js(bh(G),Xu(x,H),!0)])):t.onError(Wt(32,z.loc))}else{if(P){if(g.has(P)){t.onError(Wt(38,k));continue}g.add(P),P==="default"&&(p=!0)}s.push(Yt(x,H))}}if(!c){const C=(T,w)=>{const E=n(T,w,o);return t.compatConfig&&(E.isNonScopedSlot=!0),Yt("default",E)};d?h.length&&h.some(T=>_S(T))&&(p?t.onError(Wt(39,h[0].loc)):s.push(C(void 0,h))):s.push(C(void 0,r))}const _=a?2:lc(e.children)?3:1;let S=Rr(s.concat(Yt("_",ut(_+"",!1))),o);return l.length&&(S=nn(t.helper(rS),[S,Ra(l)])),{slots:S,hasDynamicSlots:a}}function Xu(e,t,n){const r=[Yt("name",e),Yt("fn",t)];return n!=null&&r.push(Yt("key",ut(String(n),!0))),Rr(r)}function lc(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||lc(n.children))return!0;break;case 9:if(lc(n.branches))return!0;break;case 10:case 11:if(lc(n.children))return!0;break}}return!1}function _S(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():_S(e.content)}const wS=new WeakMap,$6=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:o}=e,s=e.tagType===1;let l=s?C6(e,t):`"${r}"`;const a=uL(l)&&l.callee===Tc;let c,d,p,h=0,g,y,_,S=a||l===Jl||l===Tm||!s&&(r==="svg"||r==="foreignObject");if(o.length>0){const C=SS(e,t,void 0,s,a);c=C.props,h=C.patchFlag,y=C.dynamicPropNames;const T=C.directives;_=T&&T.length?Ra(T.map(w=>O6(w,t))):void 0,C.shouldUseBlock&&(S=!0)}if(e.children.length>0)if(l===Cc&&(S=!0,h|=1024),s&&l!==Jl&&l!==Cc){const{slots:T,hasDynamicSlots:w}=x6(e,t);d=T,w&&(h|=1024)}else if(e.children.length===1&&l!==Jl){const T=e.children[0],w=T.type,E=w===5||w===8;E&&Lr(T,t)===0&&(h|=1),E||w===2?d=T:d=e.children}else d=e.children;h!==0&&(p=String(h),y&&y.length&&(g=A6(y))),e.codegenNode=pa(t,l,c,d,p,g,_,!!S,!1,s,e.loc)};function C6(e,t,n=!1){let{tag:r}=e;const o=_h(r),s=_d(e,"is");if(s)if(o||es("COMPILER_IS_ON_ELEMENT",t)){const c=s.type===6?s.value&&ut(s.value.content,!0):s.exp;if(c)return nn(t.helper(Tc),[c])}else s.type===6&&s.value.content.startsWith("vue:")&&(r=s.value.content.slice(4));const l=!o&&kr(e,"is");if(l&&l.exp)return nn(t.helper(Tc),[l.exp]);const a=iS(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(Im),t.components.add(r),ha(r,"component"))}function SS(e,t,n=e.props,r,o,s=!1){const{tag:l,loc:a,children:c}=e;let d=[];const p=[],h=[],g=c.length>0;let y=!1,_=0,S=!1,C=!1,T=!1,w=!1,E=!1,O=!1;const x=[],I=H=>{d.length&&(p.push(Rr(Fb(d),a)),d=[]),H&&p.push(H)},k=({key:H,value:D})=>{if(Qn(H)){const F=H.content,z=Jw(F);if(z&&(!r||o)&&F.toLowerCase()!=="onclick"&&F!=="onUpdate:modelValue"&&!Cb(F)&&(w=!0),z&&Cb(F)&&(O=!0),D.type===20||(D.type===4||D.type===8)&&Lr(D,t)>0)return;F==="ref"?S=!0:F==="class"?C=!0:F==="style"?T=!0:F!=="key"&&!x.includes(F)&&x.push(F),r&&(F==="class"||F==="style")&&!x.includes(F)&&x.push(F)}else E=!0};for(let H=0;H<n.length;H++){const D=n[H];if(D.type===6){const{loc:F,name:z,value:G}=D;let te=!0;if(z==="ref"&&(S=!0,t.scopes.vFor>0&&d.push(Yt(ut("ref_for",!0),ut("true")))),z==="is"&&(_h(l)||G&&G.content.startsWith("vue:")||es("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(Yt(ut(z,!0,lS(F,0,z.length)),ut(G?G.content:"",te,G?G.loc:F)))}else{const{name:F,arg:z,exp:G,loc:te}=D,we=F==="bind",be=F==="on";if(F==="slot"){r||t.onError(Wt(40,te));continue}if(F==="once"||F==="memo"||F==="is"||we&&Ki(z,"is")&&(_h(l)||es("COMPILER_IS_ON_ELEMENT",t))||be&&s)continue;if((we&&Ki(z,"key")||be&&g&&Ki(z,"vue:before-update"))&&(y=!0),we&&Ki(z,"ref")&&t.scopes.vFor>0&&d.push(Yt(ut("ref_for",!0),ut("true"))),!z&&(we||be)){if(E=!0,G)if(we){if(I(),es("COMPILER_V_BIND_OBJECT_ORDER",t)){p.unshift(G);continue}p.push(G)}else I({type:14,loc:te,callee:t.helper(Fm),arguments:r?[G]:[G,"true"]});else t.onError(Wt(we?34:35,te));continue}const Ae=t.directiveTransforms[F];if(Ae){const{props:Pe,needRuntime:Ye}=Ae(D,e,t);!s&&Pe.forEach(k),be&&z&&!Qn(z)?I(Rr(Pe,a)):d.push(...Pe),Ye&&(h.push(D),xm(Ye)&&wS.set(D,Ye))}else cL(F)||(h.push(D),g&&(y=!0))}}let P;if(p.length?(I(),p.length>1?P=nn(t.helper(Oc),p,a):P=p[0]):d.length&&(P=Rr(Fb(d),a)),E?_|=16:(C&&!r&&(_|=2),T&&!r&&(_|=4),x.length&&(_|=8),w&&(_|=32)),!y&&(_===0||_===32)&&(S||O||h.length>0)&&(_|=512),!t.inSSR&&P)switch(P.type){case 15:let H=-1,D=-1,F=!1;for(let te=0;te<P.properties.length;te++){const we=P.properties[te].key;Qn(we)?we.content==="class"?H=te:we.content==="style"&&(D=te):we.isHandlerKey||(F=!0)}const z=P.properties[H],G=P.properties[D];F?P=nn(t.helper(fa),[P]):(z&&!Qn(z.value)&&(z.value=nn(t.helper(Mm),[z.value])),G&&(T||G.value.type===4&&G.value.content.trim()[0]==="["||G.value.type===17)&&(G.value=nn(t.helper(Dm),[G.value])));break;case 14:break;default:P=nn(t.helper(fa),[nn(t.helper(ka),[P])]);break}return{props:P,directives:h,patchFlag:_,dynamicPropNames:x,shouldUseBlock:y}}function Fb(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.key.type===8||!o.key.isStatic){n.push(o);continue}const s=o.key.content,l=t.get(s);l?(s==="style"||s==="class"||Jw(s))&&T6(l,o):(t.set(s,o),n.push(o))}return n}function T6(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Ra([e.value,t.value],e.loc)}function O6(e,t){const n=[],r=wS.get(e);r?n.push(t.helperString(r)):(t.helper(km),t.directives.add(e.name),n.push(ha(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const s=ut("true",!1,o);n.push(Rr(e.modifiers.map(l=>Yt(l,s)),o))}return Ra(n,e.loc)}function A6(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function _h(e){return e==="component"||e==="Component"}const P6=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I6=/-(\w)/g,Bb=P6(e=>e.replace(I6,(t,n)=>n?n.toUpperCase():"")),k6=(e,t)=>{if(Rc(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:s}=R6(e,t),l=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;s&&(l[2]=s,a=3),n.length&&(l[3]=Js([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),l.splice(a),e.codegenNode=nn(t.helper(nS),l,r)}};function R6(e,t){let n='"default"',r;const o=[];for(let s=0;s<e.props.length;s++){const l=e.props[s];l.type===6?l.value&&(l.name==="name"?n=JSON.stringify(l.value.content):(l.name=Bb(l.name),o.push(l))):l.name==="bind"&&Ki(l.arg,"name")?l.exp&&(n=l.exp):(l.name==="bind"&&l.arg&&Qn(l.arg)&&(l.arg.content=Bb(l.arg.content)),o.push(l))}if(o.length>0){const{props:s,directives:l}=SS(e,t,o,!1,!1);r=s,l.length&&t.onError(Wt(36,l[0].loc))}return{slotName:n,slotProps:r}}const L6=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ES=(e,t,n,r)=>{const{loc:o,modifiers:s,arg:l}=e;!e.exp&&!s.length&&n.onError(Wt(35,o));let a;if(l.type===4)if(l.isStatic){let h=l.content;h.startsWith("vue:")&&(h=`vnode-${h.slice(4)}`);const g=t.tagType!==0||h.startsWith("vnode")||!/[A-Z]/.test(h)?hL(yd(h)):`on:${h}`;a=ut(g,!0,l.loc)}else a=Zr([`${n.helperString(mh)}(`,l,")"]);else a=l,a.children.unshift(`${n.helperString(mh)}(`),a.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let d=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const h=sS(c.content),g=!(h||L6.test(c.content)),y=c.content.includes(";");(g||d&&h)&&(c=Zr([`${g?"$event":"(...args)"} => ${y?"{":"("}`,c,y?"}":")"]))}let p={props:[Yt(a,c||ut("() => {}",!1,o))]};return r&&(p=r(p)),d&&(p.props[0].value=n.cache(p.props[0].value)),p.props.forEach(h=>h.key.isHandlerKey=!0),p},N6=(e,t,n)=>{const{exp:r,modifiers:o,loc:s}=e,l=e.arg;return l.type!==4?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),o.includes("camel")&&(l.type===4?l.isStatic?l.content=yd(l.content):l.content=`${n.helperString(hh)}(${l.content})`:(l.children.unshift(`${n.helperString(hh)}(`),l.children.push(")"))),n.inSSR||(o.includes("prop")&&Ub(l,"."),o.includes("attr")&&Ub(l,"^")),!r||r.type===4&&!r.content.trim()?(n.onError(Wt(34,s)),{props:[Yt(l,ut("",!0,s))]}):{props:[Yt(l,r)]}},Ub=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},M6=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,o=!1;for(let s=0;s<n.length;s++){const l=n[s];if(xp(l)){o=!0;for(let a=s+1;a<n.length;a++){const c=n[a];if(xp(c))r||(r=n[s]=Zr([l],l.loc)),r.children.push(" + ",c),n.splice(a,1),a--;else{r=void 0;break}}}}if(!(!o||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(s=>s.type===7&&!t.directiveTransforms[s.name])&&e.tag!=="template")))for(let s=0;s<n.length;s++){const l=n[s];if(xp(l)||l.type===8){const a=[];(l.type!==2||l.content!==" ")&&a.push(l),!t.ssr&&Lr(l,t)===0&&a.push("1"),n[s]={type:12,content:l,loc:l.loc,codegenNode:nn(t.helper(Pm),a)}}}}},jb=new WeakSet,D6=(e,t)=>{if(e.type===1&&kr(e,"once",!0))return jb.has(e)||t.inVOnce?void 0:(jb.add(e),t.inVOnce=!0,t.helper(Ac),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},xS=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(Wt(41,e.loc)),Ju();const s=r.loc.source,l=r.type===4?r.content:s,a=n.bindingMetadata[s];if(a==="props"||a==="props-aliased")return n.onError(Wt(44,r.loc)),Ju();if(!l.trim()||!sS(l)&&!!1)return n.onError(Wt(42,r.loc)),Ju();const d=o||ut("modelValue",!0),p=o?Qn(o)?`onUpdate:${yd(o.content)}`:Zr(['"onUpdate:" + ',o]):"onUpdate:modelValue";let h;const g=n.isTS?"($event: any)":"$event";h=Zr([`${g} => ((`,r,") = $event)"]);const y=[Yt(d,e.exp),Yt(p,h)];if(e.modifiers.length&&t.tagType===1){const _=e.modifiers.map(C=>(jm(C)?C:JSON.stringify(C))+": true").join(", "),S=o?Qn(o)?`${o.content}Modifiers`:Zr([o,' + "Modifiers"']):"modelModifiers";y.push(Yt(S,ut(`{ ${_} }`,!1,e.loc,2)))}return Ju(y)};function Ju(e=[]){return{props:e}}const F6=/[\w).+\-_$\]]/,B6=(e,t)=>{es("COMPILER_FILTER",t)&&(e.type===5&&Nc(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Nc(n.exp,t)}))};function Nc(e,t){if(e.type===4)Hb(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?Hb(r,t):r.type===8?Nc(e,t):r.type===5&&Nc(r.content,t))}}function Hb(e,t){const n=e.content;let r=!1,o=!1,s=!1,l=!1,a=0,c=0,d=0,p=0,h,g,y,_,S=[];for(y=0;y<n.length;y++)if(g=h,h=n.charCodeAt(y),r)h===39&&g!==92&&(r=!1);else if(o)h===34&&g!==92&&(o=!1);else if(s)h===96&&g!==92&&(s=!1);else if(l)h===47&&g!==92&&(l=!1);else if(h===124&&n.charCodeAt(y+1)!==124&&n.charCodeAt(y-1)!==124&&!a&&!c&&!d)_===void 0?(p=y+1,_=n.slice(0,y).trim()):C();else{switch(h){case 34:o=!0;break;case 39:r=!0;break;case 96:s=!0;break;case 40:d++;break;case 41:d--;break;case 91:c++;break;case 93:c--;break;case 123:a++;break;case 125:a--;break}if(h===47){let T=y-1,w;for(;T>=0&&(w=n.charAt(T),w===" ");T--);(!w||!F6.test(w))&&(l=!0)}}_===void 0?_=n.slice(0,y).trim():p!==0&&C();function C(){S.push(n.slice(p,y).trim()),p=y+1}if(S.length){for(y=0;y<S.length;y++)_=U6(_,S[y],t);e.content=_}}function U6(e,t,n){n.helper(Rm);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${ha(t,"filter")}(${e})`;{const o=t.slice(0,r),s=t.slice(r+1);return n.filters.add(o),`${ha(o,"filter")}(${e}${s!==")"?","+s:s}`}}const Vb=new WeakSet,j6=(e,t)=>{if(e.type===1){const n=kr(e,"memo");return!n||Vb.has(e)?void 0:(Vb.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Hm(r,t),e.codegenNode=nn(t.helper(Um),[n.exp,Js(void 0,r),"_cache",String(t.cached++)]))})}};function H6(e){return[[D6,h6,j6,v6,B6,k6,$6,S6,M6],{on:ES,bind:N6,model:xS}]}function V6(e,t={}){const n=t.onError||Cm,r=t.mode==="module";t.prefixIdentifiers===!0?n(Wt(47)):r&&n(Wt(48));const o=!1;t.cacheHandlers&&n(Wt(49)),t.scopeId&&!r&&n(Wt(50));const s=mn(e)?NL(e,t):e,[l,a]=H6();return XL(s,Ho({},t,{prefixIdentifiers:o,nodeTransforms:[...l,...t.nodeTransforms||[]],directiveTransforms:Ho({},a,t.directiveTransforms||{})})),QL(s,Ho({},t,{prefixIdentifiers:o}))}const W6=()=>({props:[]}),$S=Symbol(""),CS=Symbol(""),TS=Symbol(""),OS=Symbol(""),wh=Symbol(""),AS=Symbol(""),PS=Symbol(""),IS=Symbol(""),kS=Symbol(""),RS=Symbol("");_L({[$S]:"vModelRadio",[CS]:"vModelCheckbox",[TS]:"vModelText",[OS]:"vModelSelect",[wh]:"vModelDynamic",[AS]:"withModifiers",[PS]:"withKeys",[IS]:"vShow",[kS]:"Transition",[RS]:"TransitionGroup"});let Ls;function z6(e,t=!1){return Ls||(Ls=document.createElement("div")),t?(Ls.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Ls.children[0].getAttribute("foo")):(Ls.innerHTML=e,Ls.textContent)}const q6=oo("style,iframe,script,noscript",!0),K6={isVoidTag:sL,isNativeTag:e=>oL(e)||iL(e),isPreTag:e=>e==="pre",decodeEntities:z6,isBuiltInComponent:e=>{if(Ms(e,"Transition"))return kS;if(Ms(e,"TransitionGroup"))return RS},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(r=>r.type===6&&r.name==="encoding"&&r.value!=null&&(r.value.content==="text/html"||r.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(q6(e))return 2}return 0}},G6=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:ut("style",!0,t.loc),exp:X6(t.value.content,t.loc),modifiers:[],loc:t.loc})})},X6=(e,t)=>{const n=eL(e);return ut(JSON.stringify(n),!1,t,3)};function Vo(e,t){return Wt(e,t)}const J6=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(51,o)),t.children.length&&(n.onError(Vo(52,o)),t.children.length=0),{props:[Yt(ut("innerHTML",!0,o),r||ut("",!0))]}},Y6=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(53,o)),t.children.length&&(n.onError(Vo(54,o)),t.children.length=0),{props:[Yt(ut("textContent",!0),r?Lr(r,n)>0?r:nn(n.helperString(bd),[r],o):ut("",!0))]}},Z6=(e,t,n)=>{const r=xS(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Vo(56,e.arg.loc));const{tag:o}=t,s=n.isCustomElement(o);if(o==="input"||o==="textarea"||o==="select"||s){let l=TS,a=!1;if(o==="input"||s){const c=_d(t,"type");if(c){if(c.type===7)l=wh;else if(c.value)switch(c.value.content){case"radio":l=$S;break;case"checkbox":l=CS;break;case"file":a=!0,n.onError(Vo(57,e.loc));break}}else AL(t)&&(l=wh)}else o==="select"&&(l=OS);a||(r.needRuntime=n.helper(l))}else n.onError(Vo(55,e.loc));return r.props=r.props.filter(l=>!(l.key.type===4&&l.key.content==="modelValue")),r},Q6=oo("passive,once,capture"),eN=oo("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),tN=oo("left,right"),LS=oo("onkeyup,onkeydown,onkeypress",!0),nN=(e,t,n,r)=>{const o=[],s=[],l=[];for(let a=0;a<t.length;a++){const c=t[a];c==="native"&&ma("COMPILER_V_ON_NATIVE",n)||Q6(c)?l.push(c):tN(c)?Qn(e)?LS(e.content)?o.push(c):s.push(c):(o.push(c),s.push(c)):eN(c)?s.push(c):o.push(c)}return{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:l}},Wb=(e,t)=>Qn(e)&&e.content.toLowerCase()==="onclick"?ut(t,!0):e.type!==4?Zr(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,rN=(e,t,n)=>ES(e,t,n,r=>{const{modifiers:o}=e;if(!o.length)return r;let{key:s,value:l}=r.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:d}=nN(s,o,n,e.loc);if(c.includes("right")&&(s=Wb(s,"onContextmenu")),c.includes("middle")&&(s=Wb(s,"onMouseup")),c.length&&(l=nn(n.helper(AS),[l,JSON.stringify(c)])),a.length&&(!Qn(s)||LS(s.content))&&(l=nn(n.helper(PS),[l,JSON.stringify(a)])),d.length){const p=d.map($m).join("");s=Qn(s)?ut(`${s.content}${p}`,!0):Zr(["(",s,`) + "${p}"`])}return{props:[Yt(s,l)]}}),oN=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Vo(59,o)),{props:[],needRuntime:n.helper(IS)}},iN=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(Vo(61,e.loc)),t.removeNode())},sN=[G6],lN={cloak:W6,html:J6,text:Y6,model:Z6,on:rN,show:oN};function aN(e,t={}){return V6(e,Ho({},K6,t,{nodeTransforms:[iN,...sN,...t.nodeTransforms||[]],directiveTransforms:Ho({},lN,t.directiveTransforms||{}),transformHoist:null}))}const zb=Object.create(null);function uN(e,t){if(!mn(e))if(e.nodeType)e=e.innerHTML;else return $c;const n=e,r=zb[n];if(r)return r;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const o=Ho({hoistStatic:!0,onError:void 0,onWarn:$c},t);!o.isCustomElement&&typeof customElements<"u"&&(o.isCustomElement=a=>!!customElements.get(a));const{code:s}=aN(e,o),l=new Function("Vue",s)(J4);return l._rc=!0,zb[n]=l}yw(uN);function va(e){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},va(e)}function cN(e,t){if(va(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(va(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dN(e){var t=cN(e,"string");return va(t)=="symbol"?t:String(t)}function fN(e,t,n){return t=dN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Kb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(n),!0).forEach(function(r){fN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function An(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Gb=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Cp=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mc={INIT:"@@redux/INIT"+Cp(),REPLACE:"@@redux/REPLACE"+Cp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Cp()}};function pN(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zm(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(An(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(An(1));return n(zm)(e,t)}if(typeof e!="function")throw new Error(An(2));var o=e,s=t,l=[],a=l,c=!1;function d(){a===l&&(a=l.slice())}function p(){if(c)throw new Error(An(3));return s}function h(S){if(typeof S!="function")throw new Error(An(4));if(c)throw new Error(An(5));var C=!0;return d(),a.push(S),function(){if(C){if(c)throw new Error(An(6));C=!1,d();var w=a.indexOf(S);a.splice(w,1),l=null}}}function g(S){if(!pN(S))throw new Error(An(7));if(typeof S.type>"u")throw new Error(An(8));if(c)throw new Error(An(9));try{c=!0,s=o(s,S)}finally{c=!1}for(var C=l=a,T=0;T<C.length;T++){var w=C[T];w()}return S}function y(S){if(typeof S!="function")throw new Error(An(10));o=S,g({type:Mc.REPLACE})}function _(){var S,C=h;return S={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(An(11));function E(){w.next&&w.next(p())}E();var O=C(E);return{unsubscribe:O}}},S[Gb]=function(){return this},S}return g({type:Mc.INIT}),r={dispatch:g,subscribe:h,getState:p,replaceReducer:y},r[Gb]=_,r}function hN(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Mc.INIT});if(typeof r>"u")throw new Error(An(12));if(typeof n(void 0,{type:Mc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(An(13))})}function NS(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];typeof e[o]=="function"&&(n[o]=e[o])}var s=Object.keys(n),l;try{hN(n)}catch(a){l=a}return function(c,d){if(c===void 0&&(c={}),l)throw l;for(var p=!1,h={},g=0;g<s.length;g++){var y=s[g],_=n[y],S=c[y],C=_(S,d);if(typeof C>"u")throw d&&d.type,new Error(An(14));h[y]=C,p=p||C!==S}return p=p||s.length!==Object.keys(c).length,p?h:c}}function MS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}function mN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var o=r.apply(void 0,arguments),s=function(){throw new Error(An(15))},l={getState:o.getState,dispatch:function(){return s.apply(void 0,arguments)}},a=t.map(function(c){return c(l)});return s=MS.apply(void 0,a)(o.dispatch),Kb(Kb({},o),{},{dispatch:s})}}}function gN(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Sh=Symbol("ReduxStore"),Xb=Symbol("ReduxActions"),vN=(e,t)=>{if(!e)throw new Error("[redux-vuex]: store is not defined");t?t.provide(Sh,e):Zt(Sh,e)},yN=(e,t)=>{!e||(t?t.provide(Xb,e):Zt(Xb,e))},it=()=>Rt(Sh)||(console.warn("[redux-vuex]: couldn't find a store, make sure you have provided it"),zm(NS({})));function bN(e){vN(e.store,e.app),yN(e.actions,e.app)}/*!
    88 * isobject <https://github.com/jonschlinkert/isobject>
    99 *
    1010 * Copyright (c) 2014-2017, Jon Schlinkert.
    1111 * Released under the MIT License.
    12  */var v6=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*!
     12 */var _N=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*!
    1313 * get-value <https://github.com/jonschlinkert/get-value>
    1414 *
    1515 * Copyright (c) 2014-2018, Jon Schlinkert.
    1616 * Released under the MIT License.
    17  */const MS=v6;var Xb=function(e,t,n){if(MS(n)||(n={default:n}),!Yb(e))return typeof n.default<"u"?n.default:e;typeof t=="number"&&(t=String(t));const r=Array.isArray(t),o=typeof t=="string",s=n.separator||".",l=n.joinChar||(typeof s=="string"?s:".");if(!o&&!r)return e;if(o&&t in e)return Tp(t,e,n)?e[t]:n.default;let a=r?t:y6(t,s,n),c=a.length,d=0;do{let p=a[d];for(typeof p=="number"&&(p=String(p));p&&p.slice(-1)==="\\";)p=Jb([p.slice(0,-1),a[++d]||""],l,n);if(p in e){if(!Tp(p,e,n))return n.default;e=e[p]}else{let h=!1,g=d+1;for(;g<c;)if(p=Jb([p,a[g++]],l,n),h=p in e){if(!Tp(p,e,n))return n.default;e=e[p],d=g-1;break}if(!h)return n.default}}while(++d<c&&Yb(e));return d===c?e:n.default};function Jb(e,t,n){return typeof n.join=="function"?n.join(e):e[0]+t+e[1]}function y6(e,t,n){return typeof n.split=="function"?n.split(e):e.split(t)}function Tp(e,t,n){return typeof n.isValid=="function"?n.isValid(e,t):!0}function Yb(e){return MS(e)||Array.isArray(e)||typeof e=="function"}const b6=p6({__proto__:null,default:Xb},[Xb]),_6=e=>{const[t]=e;if(!Array.isArray(t)&&typeof t=="object")return Object.keys(t).reduce((r,o)=>{const s=t[o];return{...r,[o]:s}},{});const n=e;return[].concat.apply([],n).reduce((r,o)=>({...r,[o]:o}),{})},Zb=(e,t)=>Object.keys(e).reduce((n,r)=>{const o=e[r];return{...n,[r]:t(r,o)}},{});function yt(...e){const t=c=>d=>b6(d,c),n=it(),r=_6(e),o=Zb(r,(c,d)=>typeof d=="string"?t(d):d),s=Ei(Zb(r,c=>_e(c))),l=()=>{Object.keys(r).forEach(c=>{s[c]=o[c].call(null,n.getState())})};l();const a=n.subscribe(l);return Qt(a),s}var oo=function(t){return"@@redux-saga/"+t},DS=oo("CANCEL_PROMISE"),FS=oo("CHANNEL_END"),BS=oo("IO"),Qb=oo("MATCH"),US=oo("MULTICAST"),jS=oo("SAGA_ACTION"),HS=oo("SELF_CANCELLATION"),w6=oo("TASK"),js=oo("TASK_CANCEL"),VS=oo("TERMINATE"),S6=oo("LOCATION");function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(this,arguments)}function E6(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var WS=function(t){return t==null},ac=function(t){return t!=null},Hn=function(t){return typeof t=="function"},qm=function(t){return typeof t=="string"},$i=Array.isArray,xd=function(t){return t&&Hn(t.then)},Km=function(t){return t&&Hn(t.next)&&Hn(t.throw)},e_=function e(t){return t&&(qm(t)||qS(t)||Hn(t)||$i(t)&&t.every(e))},$d=function(t){return t&&Hn(t.take)&&Hn(t.close)},zS=function(t){return Hn(t)&&t.hasOwnProperty("toString")},qS=function(t){return!!t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype},x6=function(t){return $d(t)&&t[US]},$6=2147483647;function C6(e,t){t===void 0&&(t=!0);var n,r=new Promise(function(o){n=setTimeout(o,Math.min($6,e),t)});return r[DS]=function(){clearTimeout(n)},r}var T6=function(t){return function(){return t}},KS=T6(!0),En=function(){},GS=function(t){return t},Gm=function(t,n){Dc(t,n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(function(r){t[r]=n[r]})},O6=function(t,n){var r;return(r=[]).concat.apply(r,n.map(t))};function Cd(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function XS(e){var t=!1;return function(){t||(t=!0,e())}}var A6=function(t){throw t},I6=function(t){return{value:t,done:!0}};function Eh(e,t,n){t===void 0&&(t=A6),n===void 0&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:I6,isSagaIterator:!0};return typeof Symbol<"u"&&(r[Symbol.iterator]=function(){return r}),r}function P6(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var JS=function(t){return Array.apply(null,new Array(t))},k6=function(t){return function(n){return t(Object.defineProperty(n,jS,{value:!0}))}},YS=function(t){return t===VS},ZS=function(t){return t===js},QS=function(t){return YS(t)||ZS(t)};function eE(e,t){var n=Object.keys(e),r=n.length,o=0,s,l=$i(e)?JS(r):{},a={};function c(){o===r&&(s=!0,t(l))}return n.forEach(function(d){var p=function(g,y){s||(y||QS(g)?(t.cancel(),t(g,y)):(l[d]=g,o++,c()))};p.cancel=En,a[d]=p}),t.cancel=function(){s||(s=!0,n.forEach(function(d){return a[d].cancel()}))},a}function Xm(e){return{name:e.name||"anonymous",location:tE(e)}}function tE(e){return e[S6]}function R6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}var L6="Channel's Buffer overflow!",N6=1,nE=3,rE=4,M6={isEmpty:KS,put:En,take:En};function oE(e,t){e===void 0&&(e=10);var n=new Array(e),r=0,o=0,s=0,l=function(p){n[o]=p,o=(o+1)%e,r++},a=function(){if(r!=0){var p=n[s];return n[s]=null,r--,s=(s+1)%e,p}},c=function(){for(var p=[];r;)p.push(a());return p};return{isEmpty:function(){return r==0},put:function(p){if(r<e)l(p);else{var h;switch(t){case N6:throw new Error(L6);case nE:n[o]=p,o=(o+1)%e,s=o;break;case rE:h=2*e,n=c(),r=n.length,o=n.length,s=0,n.length=h,e=h,l(p);break}}},take:a,flush:c}}var D6=function(){return M6},F6=function(t){return oE(t,nE)},B6=function(t){return oE(t,rE)},uc="TAKE",iE="PUT",sE="ALL",lE="RACE",aE="CALL",U6="CPS",uE="FORK",j6="JOIN",cE="CANCEL",dE="SELECT",fE="ACTION_CHANNEL",H6="CANCELLED",V6="FLUSH",W6="GET_CONTEXT",z6="SET_CONTEXT",Zr=function(t,n){var r;return r={},r[BS]=!0,r.combinator=!1,r.type=t,r.payload=n,r};function vo(e,t){if(e===void 0&&(e="*"),e_(e))return ac(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Zr(uc,{pattern:e});if(x6(e)&&ac(t)&&e_(t))return Zr(uc,{channel:e,pattern:t});if($d(e))return ac(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Zr(uc,{channel:e})}function Oe(e,t){return WS(t)&&(t=e,e=void 0),Zr(iE,{channel:e,action:t})}function pE(e){var t=Zr(sE,e);return t.combinator=!0,t}function xh(e){var t=Zr(lE,e);return t.combinator=!0,t}function hE(e,t){var n=null,r;return Hn(e)?r=e:($i(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&qm(r)&&Hn(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function Zn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zr(aE,hE(e,n))}function Dt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zr(uE,hE(e,n))}function q6(e){return e===void 0&&(e=HS),Zr(cE,e)}function Se(e){e===void 0&&(e=GS);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zr(dE,{selector:e,args:n})}function K6(e,t){return Zr(fE,{pattern:e,buffer:t})}var Jm=Zn.bind(null,C6);function G6(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}var mE=[],Td=0;function X6(e){try{Ym(),e()}finally{yE()}}function gE(e){mE.push(e),Td||(Ym(),bE())}function vE(e){try{return Ym(),e()}finally{bE()}}function Ym(){Td++}function yE(){Td--}function bE(){yE();for(var e;!Td&&(e=mE.shift())!==void 0;)X6(e)}var J6=function(t){return function(n){return t.some(function(r){return Zm(r)(n)})}},Y6=function(t){return function(n){return t(n)}},t_=function(t){return function(n){return n.type===String(t)}},Z6=function(t){return function(n){return n.type===t}},_E=function(){return KS};function Zm(e){var t=e==="*"?_E:qm(e)?t_:$i(e)?J6:zS(e)?t_:Hn(e)?Y6:qS(e)?Z6:null;if(t===null)throw new Error("invalid pattern: "+e);return t(e)}var Hs={type:FS},Od=function(t){return t&&t.type===FS};function wE(e){e===void 0&&(e=B6());var t=!1,n=[];function r(a){if(!t){if(n.length===0)return e.put(a);var c=n.shift();c(a)}}function o(a){t&&e.isEmpty()?a(Hs):e.isEmpty()?(n.push(a),a.cancel=function(){Cd(n,a)}):a(e.take())}function s(a){if(t&&e.isEmpty()){a(Hs);return}a(e.flush())}function l(){if(!t){t=!0;var a=n;n=[];for(var c=0,d=a.length;c<d;c++){var p=a[c];p(Hs)}}}return{take:o,put:r,flush:s,close:l}}function SE(e,t){t===void 0&&(t=D6());var n=!1,r,o=wE(t),s=function(){n||(n=!0,Hn(r)&&r(),o.close())};return r=e(function(l){if(Od(l)){s();return}o.put(l)}),r=XS(r),n&&r(),{take:o.take,flush:o.flush,close:s}}function Q6(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},s=function(){t=!0;var a=n=r;r=[],a.forEach(function(c){c(Hs)})};return e={},e[US]=!0,e.put=function(a){if(!t){if(Od(a)){s();return}for(var c=n=r,d=0,p=c.length;d<p;d++){var h=c[d];h[Qb](a)&&(h.cancel(),h(a))}}},e.take=function(a,c){if(c===void 0&&(c=_E),t){a(Hs);return}a[Qb]=c,o(),r.push(a),a.cancel=XS(function(){o(),Cd(r,a)})},e.close=s,e}function EE(){var e=Q6(),t=e.put;return e.put=function(n){if(n[jS]){t(n);return}gE(function(){t(n)})},e}var Wi=0,Bo=1,cc=2,xE=3;function Qm(e,t){var n=e[DS];Hn(n)&&(t.cancel=n),e.then(t,function(r){t(r,!0)})}var Na=0,$E=function(){return++Na},_n;function eM(e,t){return e.isSagaIterator?{name:e.meta.name}:Xm(t)}function tM(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(Km(o))return o;var s=!1,l=function(c){return s?{value:c,done:!0}:(s=!0,{value:o,done:!xd(o)})};return Eh(l)}catch(a){return Eh(function(){throw a})}}function nM(e,t,n){var r=t.channel,o=t.action,s=t.resolve;gE(function(){var l;try{l=(r?r.put:e.dispatch)(o)}catch(a){n(a,!0);return}s&&xd(l)?Qm(l,n):n(l)})}function rM(e,t,n){var r=t.channel,o=r===void 0?e.channel:r,s=t.pattern,l=t.maybe,a=function(d){if(d instanceof Error){n(d,!0);return}if(Od(d)&&!l){n(VS);return}n(d)};try{o.take(a,ac(s)?Zm(s):null)}catch(c){n(c,!0);return}n.cancel=a.cancel}function oM(e,t,n,r){var o=t.context,s=t.fn,l=t.args,a=r.task;try{var c=s.apply(o,l);if(xd(c)){Qm(c,n);return}if(Km(c)){Ad(e,c,a.context,Na,Xm(s),!1,n);return}n(c)}catch(d){n(d,!0)}}function iM(e,t,n){var r=t.context,o=t.fn,s=t.args;try{var l=function(c,d){WS(c)?n(d):n(c,!0)};o.apply(r,s.concat(l)),l.cancel&&(n.cancel=l.cancel)}catch(a){n(a,!0)}}function sM(e,t,n,r){var o=t.context,s=t.fn,l=t.args,a=t.detached,c=r.task,d=tM({context:o,fn:s,args:l}),p=eM(d,s);vE(function(){var h=Ad(e,d,c.context,Na,p,a,void 0);a?n(h):h.isRunning()?(c.queue.addTask(h),n(h)):h.isAborted()?c.queue.abort(h.error()):n(h)})}function lM(e,t,n,r){var o=r.task,s=function(c,d){if(c.isRunning()){var p={task:o,cb:d};d.cancel=function(){c.isRunning()&&Cd(c.joiners,p)},c.joiners.push(p)}else c.isAborted()?d(c.error(),!0):d(c.result())};if($i(t)){if(t.length===0){n([]);return}var l=eE(t,n);t.forEach(function(a,c){s(a,l[c])})}else s(t,n)}function Op(e){e.isRunning()&&e.cancel()}function aM(e,t,n,r){var o=r.task;t===HS?Op(o):$i(t)?t.forEach(Op):Op(t),n()}function uM(e,t,n,r){var o=r.digestEffect,s=Na,l=Object.keys(t);if(l.length===0){n($i(t)?[]:{});return}var a=eE(t,n);l.forEach(function(c){o(t[c],s,a[c],c)})}function cM(e,t,n,r){var o=r.digestEffect,s=Na,l=Object.keys(t),a=$i(t)?JS(l.length):{},c={},d=!1;l.forEach(function(p){var h=function(y,_){d||(_||QS(y)?(n.cancel(),n(y,_)):(n.cancel(),d=!0,a[p]=y,n(a)))};h.cancel=En,c[p]=h}),n.cancel=function(){d||(d=!0,l.forEach(function(p){return c[p].cancel()}))},l.forEach(function(p){d||o(t[p],s,c[p],p)})}function dM(e,t,n){var r=t.selector,o=t.args;try{var s=r.apply(void 0,[e.getState()].concat(o));n(s)}catch(l){n(l,!0)}}function fM(e,t,n){var r=t.pattern,o=t.buffer,s=wE(o),l=Zm(r),a=function d(p){Od(p)||e.channel.take(d,l),s.put(p)},c=s.close;s.close=function(){a.cancel(),c()},e.channel.take(a,l),n(s)}function pM(e,t,n,r){var o=r.task;n(o.isCancelled())}function hM(e,t,n){t.flush(n)}function mM(e,t,n,r){var o=r.task;n(o.context[t])}function gM(e,t,n,r){var o=r.task;Gm(o.context,t),n()}var vM=(_n={},_n[uc]=rM,_n[iE]=nM,_n[sE]=uM,_n[lE]=cM,_n[aE]=oM,_n[U6]=iM,_n[uE]=sM,_n[j6]=lM,_n[cE]=aM,_n[dE]=dM,_n[fE]=fM,_n[H6]=pM,_n[V6]=hM,_n[W6]=mM,_n[z6]=gM,_n);function yM(e,t,n){var r=[],o,s=!1;c(e);var l=function(){return r};function a(p){t(),d(),n(p,!0)}function c(p){r.push(p),p.cont=function(h,g){s||(Cd(r,p),p.cont=En,g?a(h):(p===e&&(o=h),r.length||(s=!0,n(o))))}}function d(){s||(s=!0,r.forEach(function(p){p.cont=En,p.cancel()}),r=[])}return{addTask:c,cancelAll:d,abort:a,getTasks:l}}function CE(e,t){return e+"?"+t}function bM(e){var t=tE(e);if(t){var n=t.code,r=t.fileName,o=t.lineNumber,s=n+"  "+CE(r,o);return s}return""}function n_(e){var t=e.name,n=e.location;return n?t+"  "+CE(n.fileName,n.lineNumber):t}function _M(e){var t=O6(function(n){return n.cancelledTasks},e);return t.length?["Tasks cancelled due to error:"].concat(t).join(`
    18 `):""}var eg=null,Zl=[],wM=function(t){t.crashedEffect=eg,Zl.push(t)},TE=function(){eg=null,Zl.length=0},SM=function(t){eg=t},EM=function(){var t=Zl[0],n=Zl.slice(1),r=t.crashedEffect?bM(t.crashedEffect):null,o="The above error occurred in task "+n_(t.meta)+(r?`
    19  when executing effect `+r:"");return[o].concat(n.map(function(s){return"    created by "+n_(s.meta)}),[_M(Zl)]).join(`
    20 `)};function xM(e,t,n,r,o,s,l){var a;l===void 0&&(l=En);var c=Wi,d,p,h=null,g=[],y=Object.create(n),_=yM(t,function(){g.push.apply(g,_.getTasks().map(function($){return $.meta.name}))},C);function S(){c===Wi&&(c=Bo,_.cancelAll(),C(js,!1))}function C(O,$){if(!$)O===js?c=Bo:c!==Bo&&(c=xE),d=O,h&&h.resolve(O);else{if(c=cc,wM({meta:o,cancelledTasks:g}),E.isRoot){var P=EM();TE(),e.onError(O,{sagaStack:P})}p=O,h&&h.reject(O)}E.cont(O,$),E.joiners.forEach(function(k){k.cb(O,$)}),E.joiners=null}function T(O){Gm(y,O)}function w(){return h||(h=G6(),c===cc?h.reject(p):c!==Wi&&h.resolve(d)),h.promise}var E=(a={},a[w6]=!0,a.id=r,a.meta=o,a.isRoot=s,a.context=y,a.joiners=[],a.queue=_,a.cancel=S,a.cont=l,a.end=C,a.setContext=T,a.toPromise=w,a.isRunning=function(){return c===Wi},a.isCancelled=function(){return c===Bo||c===Wi&&t.status===Bo},a.isAborted=function(){return c===cc},a.result=function(){return d},a.error=function(){return p},a);return E}function Ad(e,t,n,r,o,s,l){var a=e.finalizeRunEffect(y);g.cancel=En;var c={meta:o,cancel:h,status:Wi},d=xM(e,c,n,r,o,s,l),p={task:d,digestEffect:_};function h(){c.status===Wi&&(c.status=Bo,g(js))}return l&&(l.cancel=d.cancel),g(),d;function g(S,C){try{var T;C?(T=t.throw(S),TE()):ZS(S)?(c.status=Bo,g.cancel(),T=Hn(t.return)?t.return(js):{done:!0,value:js}):YS(S)?T=Hn(t.return)?t.return():{done:!0}:T=t.next(S),T.done?(c.status!==Bo&&(c.status=xE),c.cont(T.value)):_(T.value,r,g)}catch(w){if(c.status===Bo)throw w;c.status=cc,c.cont(w,!0)}}function y(S,C,T){if(xd(S))Qm(S,T);else if(Km(S))Ad(e,S,d.context,C,o,!1,T);else if(S&&S[BS]){var w=vM[S.type];w(e,S.payload,T,p)}else T(S)}function _(S,C,T,w){w===void 0&&(w="");var E=$E();e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:E,parentEffectId:C,label:w,effect:S});var O;function $(P,k){O||(O=!0,T.cancel=En,e.sagaMonitor&&(k?e.sagaMonitor.effectRejected(E,P):e.sagaMonitor.effectResolved(E,P)),k&&SM(S),T(P,k))}$.cancel=En,T.cancel=function(){O||(O=!0,$.cancel(),$.cancel=En,e.sagaMonitor&&e.sagaMonitor.effectCancelled(E))},a(S,E,$)}}function $M(e,t){for(var n=e.channel,r=n===void 0?EE():n,o=e.dispatch,s=e.getState,l=e.context,a=l===void 0?{}:l,c=e.sagaMonitor,d=e.effectMiddlewares,p=e.onError,h=p===void 0?P6:p,g=arguments.length,y=new Array(g>2?g-2:0),_=2;_<g;_++)y[_-2]=arguments[_];var S=t.apply(void 0,y),C=$E();c&&(c.rootSagaStarted=c.rootSagaStarted||En,c.effectTriggered=c.effectTriggered||En,c.effectResolved=c.effectResolved||En,c.effectRejected=c.effectRejected||En,c.effectCancelled=c.effectCancelled||En,c.actionDispatched=c.actionDispatched||En,c.rootSagaStarted({effectId:C,saga:t,args:y}));var T;if(d){var w=R6.apply(void 0,d);T=function($){return function(P,k,I){var H=function(F){return $(F,k,I)};return w(H)(P)}}}else T=GS;var E={channel:r,dispatch:k6(o),getState:s,sagaMonitor:c,onError:h,finalizeRunEffect:T};return vE(function(){var O=Ad(E,S,a,C,Xm(t),!0,void 0);return c&&c.effectResolved(C,O),O})}function CM(e){var t={},n=t.context,r=n===void 0?{}:n,o=t.channel,s=o===void 0?EE():o,l=t.sagaMonitor,a=E6(t,["context","channel","sagaMonitor"]),c;function d(p){var h=p.getState,g=p.dispatch;return c=$M.bind(null,Dc({},a,{context:r,channel:s,dispatch:g,getState:h,sagaMonitor:l})),function(y){return function(_){l&&l.actionDispatched&&l.actionDispatched(_);var S=y(_);return s.put(_),S}}}return d.run=function(){return c.apply(void 0,arguments)},d.setContext=function(p){Gm(r,p)},d}var Fc="NOT_FOUND";function TM(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Fc},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function OM(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return Fc}function o(a,c){r(a)===Fc&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:r,put:o,getEntries:s,clear:l}}var AM=function(t,n){return t===n};function IM(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function PM(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?AM:r,s=n.maxSize,l=s===void 0?1:s,a=n.resultEqualityCheck,c=IM(o),d=l===1?TM(c):OM(l,c);function p(){var h=d.get(arguments);if(h===Fc){if(h=e.apply(null,arguments),a){var g=d.getEntries(),y=g.find(function(_){return a(_.value,h)});y&&(h=y.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function kM(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function RM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var l=arguments.length,a=new Array(l),c=0;c<l;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},g=a.pop();if(typeof g=="object"&&(h=g,g=a.pop()),typeof g!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof g+"]");var y=h,_=y.memoizeOptions,S=_===void 0?n:_,C=Array.isArray(S)?S:[S],T=kM(a),w=e.apply(void 0,[function(){return d++,g.apply(null,arguments)}].concat(C)),E=e(function(){for(var O=[],$=T.length,P=0;P<$;P++)O.push(T[P].apply(null,arguments));return p=w.apply(null,O),p});return Object.assign(E,{resultFunc:g,memoizedResultFunc:w,dependencies:T,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),E};return o}var Ee=RM(PM),Pl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function LM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var NM=function(e,t,n,r,o,s,l,a){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,r,o,s,l,a],p=0;c=new Error(t.replace(/%s/g,function(){return d[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},MM=NM;const Bc=LM(MM),Uc=function(e){return typeof e=="function"},r_=function(e){return e.toString()};var DM="/",dc="||";const Ql=function(e){return e},o_=function(e){return e===null};function ve(e,t,n){t===void 0&&(t=Ql),Bc(Uc(t)||o_(t),"Expected payloadCreator to be a function, undefined or null");var r=o_(t)||t===Ql?Ql:function(a){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];return a instanceof Error?a:t.apply(void 0,[a].concat(d))},o=Uc(n),s=e.toString(),l=function(){var c=r.apply(void 0,arguments),d={type:e};return c instanceof Error&&(d.error=!0),c!==void 0&&(d.payload=c),o&&(d.meta=n.apply(void 0,arguments)),d};return l.toString=function(){return s},l}const tg=function(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},FM=function(e){return e==null},Id=function(e){return typeof Map<"u"&&e instanceof Map};function ng(e){if(Id(e))return Array.from(e.keys());if(typeof Reflect<"u"&&typeof Reflect.ownKeys=="function")return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function OE(e,t){return Id(t)?t.get(e):t[e]}const BM=function(e){return function t(n,r,o,s){var l=r===void 0?{}:r,a=l.namespace,c=a===void 0?DM:a,d=l.prefix;o===void 0&&(o={}),s===void 0&&(s="");function p(g){var y;if(!s)return g;var _=g.toString().split(dc),S=s.split(dc);return(y=[]).concat.apply(y,S.map(function(C){return _.map(function(T){return""+C+c+T})})).join(dc)}function h(g){return s||!d||d&&new RegExp("^"+d+c).test(g)?g:""+d+c+g}return ng(n).forEach(function(g){var y=h(p(g)),_=OE(g,n);e(_)?t(_,{namespace:c,prefix:d},o,y):o[y]=_}),o}},UM=function(e){return e===void 0};function jM(e,t,n){t===void 0&&(t=Ql);var r=r_(e).split(dc);Bc(!UM(n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),Bc(Uc(t)||tg(t),"Expected reducer to be a function or object with next and throw reducers");var o=Uc(t)?[t,t]:[t.next,t.throw].map(function(a){return FM(a)?Ql:a}),s=o[0],l=o[1];return function(a,c){a===void 0&&(a=n);var d=c.type;return!d||r.indexOf(r_(d))===-1?a:(c.error===!0?l:s)(a,c)}}const HM=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=typeof t[t.length-1]!="function"&&t.pop(),o=t;if(typeof r>"u")throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(s,l){for(var a=arguments.length,c=Array(a>2?a-2:0),d=2;d<a;d++)c[d-2]=arguments[d];var p=typeof s>"u",h=typeof l>"u";return p&&h&&r?r:o.reduce(function(g,y){return y.apply(void 0,[g,l].concat(c))},p&&!h&&r?r:s)}};function VM(e){var t=ng(e),n=t.every(function(r){return r==="next"||r==="throw"});return t.length&&t.length<=2&&n}const WM=BM(function(e){return(tg(e)||Id(e))&&!VM(e)});function sr(e,t,n){n===void 0&&(n={}),Bc(tg(e)||Id(e),"Expected handlers to be a plain object.");var r=WM(e,n),o=ng(r).map(function(l){return jM(l,OE(l,r),t)}),s=HM.apply(void 0,o.concat([t]));return function(l,a){return l===void 0&&(l=t),s(l,a)}}const Eo="podlove/publisher/INIT",zM="podlove/publisher/READY",qM="podlove/publisher/SAVE",KM="podlove/publisher/ERROR",GM=ve(Eo),XM=ve(qM);ve(KM);const JM=ve(zM),YM={saved:!1,changes:!1,bootstrapped:!1},ZM=sr({[Eo]:e=>({...e,bootstrapped:!0})},YM),QM={bootstrapped:e=>e.bootstrapped};var jc={exports:{}};/**
     17 */const DS=_N;var Jb=function(e,t,n){if(DS(n)||(n={default:n}),!Zb(e))return typeof n.default<"u"?n.default:e;typeof t=="number"&&(t=String(t));const r=Array.isArray(t),o=typeof t=="string",s=n.separator||".",l=n.joinChar||(typeof s=="string"?s:".");if(!o&&!r)return e;if(o&&t in e)return Tp(t,e,n)?e[t]:n.default;let a=r?t:wN(t,s,n),c=a.length,d=0;do{let p=a[d];for(typeof p=="number"&&(p=String(p));p&&p.slice(-1)==="\\";)p=Yb([p.slice(0,-1),a[++d]||""],l,n);if(p in e){if(!Tp(p,e,n))return n.default;e=e[p]}else{let h=!1,g=d+1;for(;g<c;)if(p=Yb([p,a[g++]],l,n),h=p in e){if(!Tp(p,e,n))return n.default;e=e[p],d=g-1;break}if(!h)return n.default}}while(++d<c&&Zb(e));return d===c?e:n.default};function Yb(e,t,n){return typeof n.join=="function"?n.join(e):e[0]+t+e[1]}function wN(e,t,n){return typeof n.split=="function"?n.split(e):e.split(t)}function Tp(e,t,n){return typeof n.isValid=="function"?n.isValid(e,t):!0}function Zb(e){return DS(e)||Array.isArray(e)||typeof e=="function"}const SN=gN({__proto__:null,default:Jb},[Jb]),EN=e=>{const[t]=e;if(!Array.isArray(t)&&typeof t=="object")return Object.keys(t).reduce((r,o)=>{const s=t[o];return{...r,[o]:s}},{});const n=e;return[].concat.apply([],n).reduce((r,o)=>({...r,[o]:o}),{})},Qb=(e,t)=>Object.keys(e).reduce((n,r)=>{const o=e[r];return{...n,[r]:t(r,o)}},{});function yt(...e){const t=c=>d=>SN(d,c),n=it(),r=EN(e),o=Qb(r,(c,d)=>typeof d=="string"?t(d):d),s=xi(Qb(r,c=>_e(c))),l=()=>{Object.keys(r).forEach(c=>{s[c]=o[c].call(null,n.getState())})};l();const a=n.subscribe(l);return Qt(a),s}var io=function(t){return"@@redux-saga/"+t},FS=io("CANCEL_PROMISE"),BS=io("CHANNEL_END"),US=io("IO"),e_=io("MATCH"),jS=io("MULTICAST"),HS=io("SAGA_ACTION"),VS=io("SELF_CANCELLATION"),xN=io("TASK"),js=io("TASK_CANCEL"),WS=io("TERMINATE"),$N=io("LOCATION");function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(this,arguments)}function CN(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var zS=function(t){return t==null},ac=function(t){return t!=null},Vn=function(t){return typeof t=="function"},qm=function(t){return typeof t=="string"},Ci=Array.isArray,xd=function(t){return t&&Vn(t.then)},Km=function(t){return t&&Vn(t.next)&&Vn(t.throw)},t_=function e(t){return t&&(qm(t)||KS(t)||Vn(t)||Ci(t)&&t.every(e))},$d=function(t){return t&&Vn(t.take)&&Vn(t.close)},qS=function(t){return Vn(t)&&t.hasOwnProperty("toString")},KS=function(t){return!!t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype},TN=function(t){return $d(t)&&t[jS]},ON=2147483647;function AN(e,t){t===void 0&&(t=!0);var n,r=new Promise(function(o){n=setTimeout(o,Math.min(ON,e),t)});return r[FS]=function(){clearTimeout(n)},r}var PN=function(t){return function(){return t}},GS=PN(!0),En=function(){},XS=function(t){return t},Gm=function(t,n){Dc(t,n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(function(r){t[r]=n[r]})},IN=function(t,n){var r;return(r=[]).concat.apply(r,n.map(t))};function Cd(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function JS(e){var t=!1;return function(){t||(t=!0,e())}}var kN=function(t){throw t},RN=function(t){return{value:t,done:!0}};function Eh(e,t,n){t===void 0&&(t=kN),n===void 0&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:RN,isSagaIterator:!0};return typeof Symbol<"u"&&(r[Symbol.iterator]=function(){return r}),r}function LN(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var YS=function(t){return Array.apply(null,new Array(t))},NN=function(t){return function(n){return t(Object.defineProperty(n,HS,{value:!0}))}},ZS=function(t){return t===WS},QS=function(t){return t===js},eE=function(t){return ZS(t)||QS(t)};function tE(e,t){var n=Object.keys(e),r=n.length,o=0,s,l=Ci(e)?YS(r):{},a={};function c(){o===r&&(s=!0,t(l))}return n.forEach(function(d){var p=function(g,y){s||(y||eE(g)?(t.cancel(),t(g,y)):(l[d]=g,o++,c()))};p.cancel=En,a[d]=p}),t.cancel=function(){s||(s=!0,n.forEach(function(d){return a[d].cancel()}))},a}function Xm(e){return{name:e.name||"anonymous",location:nE(e)}}function nE(e){return e[$N]}function MN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,o){return function(){return r(o.apply(void 0,arguments))}})}var DN="Channel's Buffer overflow!",FN=1,rE=3,oE=4,BN={isEmpty:GS,put:En,take:En};function iE(e,t){e===void 0&&(e=10);var n=new Array(e),r=0,o=0,s=0,l=function(p){n[o]=p,o=(o+1)%e,r++},a=function(){if(r!=0){var p=n[s];return n[s]=null,r--,s=(s+1)%e,p}},c=function(){for(var p=[];r;)p.push(a());return p};return{isEmpty:function(){return r==0},put:function(p){if(r<e)l(p);else{var h;switch(t){case FN:throw new Error(DN);case rE:n[o]=p,o=(o+1)%e,s=o;break;case oE:h=2*e,n=c(),r=n.length,o=n.length,s=0,n.length=h,e=h,l(p);break}}},take:a,flush:c}}var UN=function(){return BN},jN=function(t){return iE(t,rE)},HN=function(t){return iE(t,oE)},uc="TAKE",sE="PUT",lE="ALL",aE="RACE",uE="CALL",VN="CPS",cE="FORK",WN="JOIN",dE="CANCEL",fE="SELECT",pE="ACTION_CHANNEL",hE="CANCELLED",zN="FLUSH",qN="GET_CONTEXT",KN="SET_CONTEXT",Nr=function(t,n){var r;return r={},r[US]=!0,r.combinator=!1,r.type=t,r.payload=n,r};function Qr(e,t){if(e===void 0&&(e="*"),t_(e))return ac(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Nr(uc,{pattern:e});if(TN(e)&&ac(t)&&t_(t))return Nr(uc,{channel:e,pattern:t});if($d(e))return ac(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Nr(uc,{channel:e})}function Oe(e,t){return zS(t)&&(t=e,e=void 0),Nr(sE,{channel:e,action:t})}function mE(e){var t=Nr(lE,e);return t.combinator=!0,t}function xh(e){var t=Nr(aE,e);return t.combinator=!0,t}function gE(e,t){var n=null,r;return Vn(e)?r=e:(Ci(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&qm(r)&&Vn(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function Nn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Nr(uE,gE(e,n))}function kt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Nr(cE,gE(e,n))}function GN(e){return e===void 0&&(e=VS),Nr(dE,e)}function Se(e){e===void 0&&(e=XS);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Nr(fE,{selector:e,args:n})}function XN(e,t){return Nr(pE,{pattern:e,buffer:t})}function JN(){return Nr(hE,{})}var Jm=Nn.bind(null,AN);function YN(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}var vE=[],Td=0;function ZN(e){try{Ym(),e()}finally{_E()}}function yE(e){vE.push(e),Td||(Ym(),wE())}function bE(e){try{return Ym(),e()}finally{wE()}}function Ym(){Td++}function _E(){Td--}function wE(){_E();for(var e;!Td&&(e=vE.shift())!==void 0;)ZN(e)}var QN=function(t){return function(n){return t.some(function(r){return Zm(r)(n)})}},eM=function(t){return function(n){return t(n)}},n_=function(t){return function(n){return n.type===String(t)}},tM=function(t){return function(n){return n.type===t}},SE=function(){return GS};function Zm(e){var t=e==="*"?SE:qm(e)?n_:Ci(e)?QN:qS(e)?n_:Vn(e)?eM:KS(e)?tM:null;if(t===null)throw new Error("invalid pattern: "+e);return t(e)}var Hs={type:BS},Od=function(t){return t&&t.type===BS};function Qm(e){e===void 0&&(e=HN());var t=!1,n=[];function r(a){if(!t){if(n.length===0)return e.put(a);var c=n.shift();c(a)}}function o(a){t&&e.isEmpty()?a(Hs):e.isEmpty()?(n.push(a),a.cancel=function(){Cd(n,a)}):a(e.take())}function s(a){if(t&&e.isEmpty()){a(Hs);return}a(e.flush())}function l(){if(!t){t=!0;var a=n;n=[];for(var c=0,d=a.length;c<d;c++){var p=a[c];p(Hs)}}}return{take:o,put:r,flush:s,close:l}}function EE(e,t){t===void 0&&(t=UN());var n=!1,r,o=Qm(t),s=function(){n||(n=!0,Vn(r)&&r(),o.close())};return r=e(function(l){if(Od(l)){s();return}o.put(l)}),r=JS(r),n&&r(),{take:o.take,flush:o.flush,close:s}}function nM(){var e,t=!1,n=[],r=n,o=function(){r===n&&(r=n.slice())},s=function(){t=!0;var a=n=r;r=[],a.forEach(function(c){c(Hs)})};return e={},e[jS]=!0,e.put=function(a){if(!t){if(Od(a)){s();return}for(var c=n=r,d=0,p=c.length;d<p;d++){var h=c[d];h[e_](a)&&(h.cancel(),h(a))}}},e.take=function(a,c){if(c===void 0&&(c=SE),t){a(Hs);return}a[e_]=c,o(),r.push(a),a.cancel=JS(function(){o(),Cd(r,a)})},e.close=s,e}function xE(){var e=nM(),t=e.put;return e.put=function(n){if(n[HS]){t(n);return}yE(function(){t(n)})},e}var zi=0,Bo=1,cc=2,$E=3;function eg(e,t){var n=e[FS];Vn(n)&&(t.cancel=n),e.then(t,function(r){t(r,!0)})}var Na=0,CE=function(){return++Na},_n;function rM(e,t){return e.isSagaIterator?{name:e.meta.name}:Xm(t)}function oM(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(Km(o))return o;var s=!1,l=function(c){return s?{value:c,done:!0}:(s=!0,{value:o,done:!xd(o)})};return Eh(l)}catch(a){return Eh(function(){throw a})}}function iM(e,t,n){var r=t.channel,o=t.action,s=t.resolve;yE(function(){var l;try{l=(r?r.put:e.dispatch)(o)}catch(a){n(a,!0);return}s&&xd(l)?eg(l,n):n(l)})}function sM(e,t,n){var r=t.channel,o=r===void 0?e.channel:r,s=t.pattern,l=t.maybe,a=function(d){if(d instanceof Error){n(d,!0);return}if(Od(d)&&!l){n(WS);return}n(d)};try{o.take(a,ac(s)?Zm(s):null)}catch(c){n(c,!0);return}n.cancel=a.cancel}function lM(e,t,n,r){var o=t.context,s=t.fn,l=t.args,a=r.task;try{var c=s.apply(o,l);if(xd(c)){eg(c,n);return}if(Km(c)){Ad(e,c,a.context,Na,Xm(s),!1,n);return}n(c)}catch(d){n(d,!0)}}function aM(e,t,n){var r=t.context,o=t.fn,s=t.args;try{var l=function(c,d){zS(c)?n(d):n(c,!0)};o.apply(r,s.concat(l)),l.cancel&&(n.cancel=l.cancel)}catch(a){n(a,!0)}}function uM(e,t,n,r){var o=t.context,s=t.fn,l=t.args,a=t.detached,c=r.task,d=oM({context:o,fn:s,args:l}),p=rM(d,s);bE(function(){var h=Ad(e,d,c.context,Na,p,a,void 0);a?n(h):h.isRunning()?(c.queue.addTask(h),n(h)):h.isAborted()?c.queue.abort(h.error()):n(h)})}function cM(e,t,n,r){var o=r.task,s=function(c,d){if(c.isRunning()){var p={task:o,cb:d};d.cancel=function(){c.isRunning()&&Cd(c.joiners,p)},c.joiners.push(p)}else c.isAborted()?d(c.error(),!0):d(c.result())};if(Ci(t)){if(t.length===0){n([]);return}var l=tE(t,n);t.forEach(function(a,c){s(a,l[c])})}else s(t,n)}function Op(e){e.isRunning()&&e.cancel()}function dM(e,t,n,r){var o=r.task;t===VS?Op(o):Ci(t)?t.forEach(Op):Op(t),n()}function fM(e,t,n,r){var o=r.digestEffect,s=Na,l=Object.keys(t);if(l.length===0){n(Ci(t)?[]:{});return}var a=tE(t,n);l.forEach(function(c){o(t[c],s,a[c],c)})}function pM(e,t,n,r){var o=r.digestEffect,s=Na,l=Object.keys(t),a=Ci(t)?YS(l.length):{},c={},d=!1;l.forEach(function(p){var h=function(y,_){d||(_||eE(y)?(n.cancel(),n(y,_)):(n.cancel(),d=!0,a[p]=y,n(a)))};h.cancel=En,c[p]=h}),n.cancel=function(){d||(d=!0,l.forEach(function(p){return c[p].cancel()}))},l.forEach(function(p){d||o(t[p],s,c[p],p)})}function hM(e,t,n){var r=t.selector,o=t.args;try{var s=r.apply(void 0,[e.getState()].concat(o));n(s)}catch(l){n(l,!0)}}function mM(e,t,n){var r=t.pattern,o=t.buffer,s=Qm(o),l=Zm(r),a=function d(p){Od(p)||e.channel.take(d,l),s.put(p)},c=s.close;s.close=function(){a.cancel(),c()},e.channel.take(a,l),n(s)}function gM(e,t,n,r){var o=r.task;n(o.isCancelled())}function vM(e,t,n){t.flush(n)}function yM(e,t,n,r){var o=r.task;n(o.context[t])}function bM(e,t,n,r){var o=r.task;Gm(o.context,t),n()}var _M=(_n={},_n[uc]=sM,_n[sE]=iM,_n[lE]=fM,_n[aE]=pM,_n[uE]=lM,_n[VN]=aM,_n[cE]=uM,_n[WN]=cM,_n[dE]=dM,_n[fE]=hM,_n[pE]=mM,_n[hE]=gM,_n[zN]=vM,_n[qN]=yM,_n[KN]=bM,_n);function wM(e,t,n){var r=[],o,s=!1;c(e);var l=function(){return r};function a(p){t(),d(),n(p,!0)}function c(p){r.push(p),p.cont=function(h,g){s||(Cd(r,p),p.cont=En,g?a(h):(p===e&&(o=h),r.length||(s=!0,n(o))))}}function d(){s||(s=!0,r.forEach(function(p){p.cont=En,p.cancel()}),r=[])}return{addTask:c,cancelAll:d,abort:a,getTasks:l}}function TE(e,t){return e+"?"+t}function SM(e){var t=nE(e);if(t){var n=t.code,r=t.fileName,o=t.lineNumber,s=n+"  "+TE(r,o);return s}return""}function r_(e){var t=e.name,n=e.location;return n?t+"  "+TE(n.fileName,n.lineNumber):t}function EM(e){var t=IN(function(n){return n.cancelledTasks},e);return t.length?["Tasks cancelled due to error:"].concat(t).join(`
     18`):""}var tg=null,Zl=[],xM=function(t){t.crashedEffect=tg,Zl.push(t)},OE=function(){tg=null,Zl.length=0},$M=function(t){tg=t},CM=function(){var t=Zl[0],n=Zl.slice(1),r=t.crashedEffect?SM(t.crashedEffect):null,o="The above error occurred in task "+r_(t.meta)+(r?`
     19 when executing effect `+r:"");return[o].concat(n.map(function(s){return"    created by "+r_(s.meta)}),[EM(Zl)]).join(`
     20`)};function TM(e,t,n,r,o,s,l){var a;l===void 0&&(l=En);var c=zi,d,p,h=null,g=[],y=Object.create(n),_=wM(t,function(){g.push.apply(g,_.getTasks().map(function(x){return x.meta.name}))},C);function S(){c===zi&&(c=Bo,_.cancelAll(),C(js,!1))}function C(O,x){if(!x)O===js?c=Bo:c!==Bo&&(c=$E),d=O,h&&h.resolve(O);else{if(c=cc,xM({meta:o,cancelledTasks:g}),E.isRoot){var I=CM();OE(),e.onError(O,{sagaStack:I})}p=O,h&&h.reject(O)}E.cont(O,x),E.joiners.forEach(function(k){k.cb(O,x)}),E.joiners=null}function T(O){Gm(y,O)}function w(){return h||(h=YN(),c===cc?h.reject(p):c!==zi&&h.resolve(d)),h.promise}var E=(a={},a[xN]=!0,a.id=r,a.meta=o,a.isRoot=s,a.context=y,a.joiners=[],a.queue=_,a.cancel=S,a.cont=l,a.end=C,a.setContext=T,a.toPromise=w,a.isRunning=function(){return c===zi},a.isCancelled=function(){return c===Bo||c===zi&&t.status===Bo},a.isAborted=function(){return c===cc},a.result=function(){return d},a.error=function(){return p},a);return E}function Ad(e,t,n,r,o,s,l){var a=e.finalizeRunEffect(y);g.cancel=En;var c={meta:o,cancel:h,status:zi},d=TM(e,c,n,r,o,s,l),p={task:d,digestEffect:_};function h(){c.status===zi&&(c.status=Bo,g(js))}return l&&(l.cancel=d.cancel),g(),d;function g(S,C){try{var T;C?(T=t.throw(S),OE()):QS(S)?(c.status=Bo,g.cancel(),T=Vn(t.return)?t.return(js):{done:!0,value:js}):ZS(S)?T=Vn(t.return)?t.return():{done:!0}:T=t.next(S),T.done?(c.status!==Bo&&(c.status=$E),c.cont(T.value)):_(T.value,r,g)}catch(w){if(c.status===Bo)throw w;c.status=cc,c.cont(w,!0)}}function y(S,C,T){if(xd(S))eg(S,T);else if(Km(S))Ad(e,S,d.context,C,o,!1,T);else if(S&&S[US]){var w=_M[S.type];w(e,S.payload,T,p)}else T(S)}function _(S,C,T,w){w===void 0&&(w="");var E=CE();e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:E,parentEffectId:C,label:w,effect:S});var O;function x(I,k){O||(O=!0,T.cancel=En,e.sagaMonitor&&(k?e.sagaMonitor.effectRejected(E,I):e.sagaMonitor.effectResolved(E,I)),k&&$M(S),T(I,k))}x.cancel=En,T.cancel=function(){O||(O=!0,x.cancel(),x.cancel=En,e.sagaMonitor&&e.sagaMonitor.effectCancelled(E))},a(S,E,x)}}function OM(e,t){for(var n=e.channel,r=n===void 0?xE():n,o=e.dispatch,s=e.getState,l=e.context,a=l===void 0?{}:l,c=e.sagaMonitor,d=e.effectMiddlewares,p=e.onError,h=p===void 0?LN:p,g=arguments.length,y=new Array(g>2?g-2:0),_=2;_<g;_++)y[_-2]=arguments[_];var S=t.apply(void 0,y),C=CE();c&&(c.rootSagaStarted=c.rootSagaStarted||En,c.effectTriggered=c.effectTriggered||En,c.effectResolved=c.effectResolved||En,c.effectRejected=c.effectRejected||En,c.effectCancelled=c.effectCancelled||En,c.actionDispatched=c.actionDispatched||En,c.rootSagaStarted({effectId:C,saga:t,args:y}));var T;if(d){var w=MN.apply(void 0,d);T=function(x){return function(I,k,P){var H=function(F){return x(F,k,P)};return w(H)(I)}}}else T=XS;var E={channel:r,dispatch:NN(o),getState:s,sagaMonitor:c,onError:h,finalizeRunEffect:T};return bE(function(){var O=Ad(E,S,a,C,Xm(t),!0,void 0);return c&&c.effectResolved(C,O),O})}function AM(e){var t={},n=t.context,r=n===void 0?{}:n,o=t.channel,s=o===void 0?xE():o,l=t.sagaMonitor,a=CN(t,["context","channel","sagaMonitor"]),c;function d(p){var h=p.getState,g=p.dispatch;return c=OM.bind(null,Dc({},a,{context:r,channel:s,dispatch:g,getState:h,sagaMonitor:l})),function(y){return function(_){l&&l.actionDispatched&&l.actionDispatched(_);var S=y(_);return s.put(_),S}}}return d.run=function(){return c.apply(void 0,arguments)},d.setContext=function(p){Gm(r,p)},d}var Fc="NOT_FOUND";function PM(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Fc},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function IM(e,t){var n=[];function r(a){var c=n.findIndex(function(p){return t(a,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return Fc}function o(a,c){r(a)===Fc&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function s(){return n}function l(){n=[]}return{get:r,put:o,getEntries:s,clear:l}}var kM=function(t,n){return t===n};function RM(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function LM(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?kM:r,s=n.maxSize,l=s===void 0?1:s,a=n.resultEqualityCheck,c=RM(o),d=l===1?PM(c):IM(l,c);function p(){var h=d.get(arguments);if(h===Fc){if(h=e.apply(null,arguments),a){var g=d.getEntries(),y=g.find(function(_){return a(_.value,h)});y&&(h=y.value)}d.put(arguments,h)}return h}return p.clearCache=function(){return d.clear()},p}function NM(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function MM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var l=arguments.length,a=new Array(l),c=0;c<l;c++)a[c]=arguments[c];var d=0,p,h={memoizeOptions:void 0},g=a.pop();if(typeof g=="object"&&(h=g,g=a.pop()),typeof g!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof g+"]");var y=h,_=y.memoizeOptions,S=_===void 0?n:_,C=Array.isArray(S)?S:[S],T=NM(a),w=e.apply(void 0,[function(){return d++,g.apply(null,arguments)}].concat(C)),E=e(function(){for(var O=[],x=T.length,I=0;I<x;I++)O.push(T[I].apply(null,arguments));return p=w.apply(null,O),p});return Object.assign(E,{resultFunc:g,memoizedResultFunc:w,dependencies:T,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),E};return o}var Ee=MM(LM),Il=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var FM=function(e,t,n,r,o,s,l,a){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,r,o,s,l,a],p=0;c=new Error(t.replace(/%s/g,function(){return d[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},BM=FM;const Bc=DM(BM),Uc=function(e){return typeof e=="function"},o_=function(e){return e.toString()};var UM="/",dc="||";const Ql=function(e){return e},i_=function(e){return e===null};function he(e,t,n){t===void 0&&(t=Ql),Bc(Uc(t)||i_(t),"Expected payloadCreator to be a function, undefined or null");var r=i_(t)||t===Ql?Ql:function(a){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p<c;p++)d[p-1]=arguments[p];return a instanceof Error?a:t.apply(void 0,[a].concat(d))},o=Uc(n),s=e.toString(),l=function(){var c=r.apply(void 0,arguments),d={type:e};return c instanceof Error&&(d.error=!0),c!==void 0&&(d.payload=c),o&&(d.meta=n.apply(void 0,arguments)),d};return l.toString=function(){return s},l}const ng=function(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},jM=function(e){return e==null},Pd=function(e){return typeof Map<"u"&&e instanceof Map};function rg(e){if(Pd(e))return Array.from(e.keys());if(typeof Reflect<"u"&&typeof Reflect.ownKeys=="function")return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function AE(e,t){return Pd(t)?t.get(e):t[e]}const HM=function(e){return function t(n,r,o,s){var l=r===void 0?{}:r,a=l.namespace,c=a===void 0?UM:a,d=l.prefix;o===void 0&&(o={}),s===void 0&&(s="");function p(g){var y;if(!s)return g;var _=g.toString().split(dc),S=s.split(dc);return(y=[]).concat.apply(y,S.map(function(C){return _.map(function(T){return""+C+c+T})})).join(dc)}function h(g){return s||!d||d&&new RegExp("^"+d+c).test(g)?g:""+d+c+g}return rg(n).forEach(function(g){var y=h(p(g)),_=AE(g,n);e(_)?t(_,{namespace:c,prefix:d},o,y):o[y]=_}),o}},VM=function(e){return e===void 0};function WM(e,t,n){t===void 0&&(t=Ql);var r=o_(e).split(dc);Bc(!VM(n),"defaultState for reducer handling "+r.join(", ")+" should be defined"),Bc(Uc(t)||ng(t),"Expected reducer to be a function or object with next and throw reducers");var o=Uc(t)?[t,t]:[t.next,t.throw].map(function(a){return jM(a)?Ql:a}),s=o[0],l=o[1];return function(a,c){a===void 0&&(a=n);var d=c.type;return!d||r.indexOf(o_(d))===-1?a:(c.error===!0?l:s)(a,c)}}const zM=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=typeof t[t.length-1]!="function"&&t.pop(),o=t;if(typeof r>"u")throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(s,l){for(var a=arguments.length,c=Array(a>2?a-2:0),d=2;d<a;d++)c[d-2]=arguments[d];var p=typeof s>"u",h=typeof l>"u";return p&&h&&r?r:o.reduce(function(g,y){return y.apply(void 0,[g,l].concat(c))},p&&!h&&r?r:s)}};function qM(e){var t=rg(e),n=t.every(function(r){return r==="next"||r==="throw"});return t.length&&t.length<=2&&n}const KM=HM(function(e){return(ng(e)||Pd(e))&&!qM(e)});function Wn(e,t,n){n===void 0&&(n={}),Bc(ng(e)||Pd(e),"Expected handlers to be a plain object.");var r=KM(e,n),o=rg(r).map(function(l){return WM(l,AE(l,r),t)}),s=zM.apply(void 0,o.concat([t]));return function(l,a){return l===void 0&&(l=t),s(l,a)}}const Eo="podlove/publisher/INIT",GM="podlove/publisher/READY",XM="podlove/publisher/SAVE",JM="podlove/publisher/ERROR",YM=he(Eo),ZM=he(XM);he(JM);const QM=he(GM),e7={saved:!1,changes:!1,bootstrapped:!1},t7=Wn({[Eo]:e=>({...e,bootstrapped:!0})},e7),n7={bootstrapped:e=>e.bootstrapped};var jc={exports:{}};/**
    2121 * @license
    2222 * Lodash <https://lodash.com/>
     
    2525 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
    2626 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
    27  */jc.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,y=4,_=1,S=2,C=1,T=2,w=4,E=8,O=16,$=32,P=64,k=128,I=256,H=512,D=30,F="...",z=800,G=16,te=1,we=2,be=3,Ae=1/0,Ie=9007199254740991,Ye=17976931348623157e292,ft=NaN,Le=4294967295,Ge=Le-1,Q=Le>>>1,ae=[["ary",k],["bind",C],["bindKey",T],["curry",E],["curryRight",O],["flip",H],["partial",$],["partialRight",P],["rearg",I]],fe="[object Arguments]",xe="[object Array]",He="[object AsyncFunction]",De="[object Boolean]",tt="[object Date]",gn="[object DOMException]",ln="[object Error]",L="[object Function]",B="[object GeneratorFunction]",Z="[object Map]",le="[object Number]",ie="[object Null]",pe="[object Object]",$e="[object Promise]",he="[object Proxy]",me="[object RegExp]",se="[object Set]",Re="[object String]",Pe="[object Symbol]",Me="[object Undefined]",je="[object WeakMap]",rt="[object WeakSet]",mt="[object ArrayBuffer]",ct="[object DataView]",Ht="[object Float32Array]",Mn="[object Float64Array]",ao="[object Int8Array]",vs="[object Int16Array]",$o="[object Int32Array]",ys="[object Uint8Array]",vn="[object Uint8ClampedArray]",Wn="[object Uint16Array]",bs="[object Uint32Array]",Q$=/\b__p \+= '';/g,eC=/\b(__p \+=) '' \+/g,tC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fv=/&(?:amp|lt|gt|quot|#39);/g,pv=/[&<>"']/g,nC=RegExp(fv.source),rC=RegExp(pv.source),oC=/<%-([\s\S]+?)%>/g,iC=/<%([\s\S]+?)%>/g,hv=/<%=([\s\S]+?)%>/g,sC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lC=/^\w*$/,aC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ef=/[\\^$.*+?()[\]{}|]/g,uC=RegExp(ef.source),tf=/^\s+/,cC=/\s/,dC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fC=/\{\n\/\* \[wrapped with (.+)\] \*/,pC=/,? & /,hC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mC=/[()=,{}\[\]\/\s]/,gC=/\\(\\)?/g,vC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mv=/\w*$/,yC=/^[-+]0x[0-9a-f]+$/i,bC=/^0b[01]+$/i,_C=/^\[object .+?Constructor\]$/,wC=/^0o[0-7]+$/i,SC=/^(?:0|[1-9]\d*)$/,EC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xa=/($^)/,xC=/['\n\r\u2028\u2029\\]/g,Ja="\\ud800-\\udfff",$C="\\u0300-\\u036f",CC="\\ufe20-\\ufe2f",TC="\\u20d0-\\u20ff",gv=$C+CC+TC,vv="\\u2700-\\u27bf",yv="a-z\\xdf-\\xf6\\xf8-\\xff",OC="\\xac\\xb1\\xd7\\xf7",AC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",IC="\\u2000-\\u206f",PC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",bv="A-Z\\xc0-\\xd6\\xd8-\\xde",_v="\\ufe0e\\ufe0f",wv=OC+AC+IC+PC,nf="['’]",kC="["+Ja+"]",Sv="["+wv+"]",Ya="["+gv+"]",Ev="\\d+",RC="["+vv+"]",xv="["+yv+"]",$v="[^"+Ja+wv+Ev+vv+yv+bv+"]",rf="\\ud83c[\\udffb-\\udfff]",LC="(?:"+Ya+"|"+rf+")",Cv="[^"+Ja+"]",of="(?:\\ud83c[\\udde6-\\uddff]){2}",sf="[\\ud800-\\udbff][\\udc00-\\udfff]",_s="["+bv+"]",Tv="\\u200d",Ov="(?:"+xv+"|"+$v+")",NC="(?:"+_s+"|"+$v+")",Av="(?:"+nf+"(?:d|ll|m|re|s|t|ve))?",Iv="(?:"+nf+"(?:D|LL|M|RE|S|T|VE))?",Pv=LC+"?",kv="["+_v+"]?",MC="(?:"+Tv+"(?:"+[Cv,of,sf].join("|")+")"+kv+Pv+")*",DC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",FC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rv=kv+Pv+MC,BC="(?:"+[RC,of,sf].join("|")+")"+Rv,UC="(?:"+[Cv+Ya+"?",Ya,of,sf,kC].join("|")+")",jC=RegExp(nf,"g"),HC=RegExp(Ya,"g"),lf=RegExp(rf+"(?="+rf+")|"+UC+Rv,"g"),VC=RegExp([_s+"?"+xv+"+"+Av+"(?="+[Sv,_s,"$"].join("|")+")",NC+"+"+Iv+"(?="+[Sv,_s+Ov,"$"].join("|")+")",_s+"?"+Ov+"+"+Av,_s+"+"+Iv,FC,DC,Ev,BC].join("|"),"g"),WC=RegExp("["+Tv+Ja+gv+_v+"]"),zC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qC=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],KC=-1,Bt={};Bt[Ht]=Bt[Mn]=Bt[ao]=Bt[vs]=Bt[$o]=Bt[ys]=Bt[vn]=Bt[Wn]=Bt[bs]=!0,Bt[fe]=Bt[xe]=Bt[mt]=Bt[De]=Bt[ct]=Bt[tt]=Bt[ln]=Bt[L]=Bt[Z]=Bt[le]=Bt[pe]=Bt[me]=Bt[se]=Bt[Re]=Bt[je]=!1;var Rt={};Rt[fe]=Rt[xe]=Rt[mt]=Rt[ct]=Rt[De]=Rt[tt]=Rt[Ht]=Rt[Mn]=Rt[ao]=Rt[vs]=Rt[$o]=Rt[Z]=Rt[le]=Rt[pe]=Rt[me]=Rt[se]=Rt[Re]=Rt[Pe]=Rt[ys]=Rt[vn]=Rt[Wn]=Rt[bs]=!0,Rt[ln]=Rt[L]=Rt[je]=!1;var GC={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},XC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},JC={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},YC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ZC=parseFloat,QC=parseInt,Lv=typeof Pl=="object"&&Pl&&Pl.Object===Object&&Pl,eT=typeof self=="object"&&self&&self.Object===Object&&self,yn=Lv||eT||Function("return this")(),af=t&&!t.nodeType&&t,Oi=af&&!0&&e&&!e.nodeType&&e,Nv=Oi&&Oi.exports===af,uf=Nv&&Lv.process,Er=function(){try{var j=Oi&&Oi.require&&Oi.require("util").types;return j||uf&&uf.binding&&uf.binding("util")}catch{}}(),Mv=Er&&Er.isArrayBuffer,Dv=Er&&Er.isDate,Fv=Er&&Er.isMap,Bv=Er&&Er.isRegExp,Uv=Er&&Er.isSet,jv=Er&&Er.isTypedArray;function lr(j,ne,Y){switch(Y.length){case 0:return j.call(ne);case 1:return j.call(ne,Y[0]);case 2:return j.call(ne,Y[0],Y[1]);case 3:return j.call(ne,Y[0],Y[1],Y[2])}return j.apply(ne,Y)}function tT(j,ne,Y,ke){for(var Ze=-1,xt=j==null?0:j.length;++Ze<xt;){var an=j[Ze];ne(ke,an,Y(an),j)}return ke}function xr(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke&&ne(j[Y],Y,j)!==!1;);return j}function nT(j,ne){for(var Y=j==null?0:j.length;Y--&&ne(j[Y],Y,j)!==!1;);return j}function Hv(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke;)if(!ne(j[Y],Y,j))return!1;return!0}function Jo(j,ne){for(var Y=-1,ke=j==null?0:j.length,Ze=0,xt=[];++Y<ke;){var an=j[Y];ne(an,Y,j)&&(xt[Ze++]=an)}return xt}function Za(j,ne){var Y=j==null?0:j.length;return!!Y&&ws(j,ne,0)>-1}function cf(j,ne,Y){for(var ke=-1,Ze=j==null?0:j.length;++ke<Ze;)if(Y(ne,j[ke]))return!0;return!1}function Vt(j,ne){for(var Y=-1,ke=j==null?0:j.length,Ze=Array(ke);++Y<ke;)Ze[Y]=ne(j[Y],Y,j);return Ze}function Yo(j,ne){for(var Y=-1,ke=ne.length,Ze=j.length;++Y<ke;)j[Ze+Y]=ne[Y];return j}function df(j,ne,Y,ke){var Ze=-1,xt=j==null?0:j.length;for(ke&&xt&&(Y=j[++Ze]);++Ze<xt;)Y=ne(Y,j[Ze],Ze,j);return Y}function rT(j,ne,Y,ke){var Ze=j==null?0:j.length;for(ke&&Ze&&(Y=j[--Ze]);Ze--;)Y=ne(Y,j[Ze],Ze,j);return Y}function ff(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke;)if(ne(j[Y],Y,j))return!0;return!1}var oT=pf("length");function iT(j){return j.split("")}function sT(j){return j.match(hC)||[]}function Vv(j,ne,Y){var ke;return Y(j,function(Ze,xt,an){if(ne(Ze,xt,an))return ke=xt,!1}),ke}function Qa(j,ne,Y,ke){for(var Ze=j.length,xt=Y+(ke?1:-1);ke?xt--:++xt<Ze;)if(ne(j[xt],xt,j))return xt;return-1}function ws(j,ne,Y){return ne===ne?yT(j,ne,Y):Qa(j,Wv,Y)}function lT(j,ne,Y,ke){for(var Ze=Y-1,xt=j.length;++Ze<xt;)if(ke(j[Ze],ne))return Ze;return-1}function Wv(j){return j!==j}function zv(j,ne){var Y=j==null?0:j.length;return Y?mf(j,ne)/Y:ft}function pf(j){return function(ne){return ne==null?n:ne[j]}}function hf(j){return function(ne){return j==null?n:j[ne]}}function qv(j,ne,Y,ke,Ze){return Ze(j,function(xt,an,It){Y=ke?(ke=!1,xt):ne(Y,xt,an,It)}),Y}function aT(j,ne){var Y=j.length;for(j.sort(ne);Y--;)j[Y]=j[Y].value;return j}function mf(j,ne){for(var Y,ke=-1,Ze=j.length;++ke<Ze;){var xt=ne(j[ke]);xt!==n&&(Y=Y===n?xt:Y+xt)}return Y}function gf(j,ne){for(var Y=-1,ke=Array(j);++Y<j;)ke[Y]=ne(Y);return ke}function uT(j,ne){return Vt(ne,function(Y){return[Y,j[Y]]})}function Kv(j){return j&&j.slice(0,Yv(j)+1).replace(tf,"")}function ar(j){return function(ne){return j(ne)}}function vf(j,ne){return Vt(ne,function(Y){return j[Y]})}function pl(j,ne){return j.has(ne)}function Gv(j,ne){for(var Y=-1,ke=j.length;++Y<ke&&ws(ne,j[Y],0)>-1;);return Y}function Xv(j,ne){for(var Y=j.length;Y--&&ws(ne,j[Y],0)>-1;);return Y}function cT(j,ne){for(var Y=j.length,ke=0;Y--;)j[Y]===ne&&++ke;return ke}var dT=hf(GC),fT=hf(XC);function pT(j){return"\\"+YC[j]}function hT(j,ne){return j==null?n:j[ne]}function Ss(j){return WC.test(j)}function mT(j){return zC.test(j)}function gT(j){for(var ne,Y=[];!(ne=j.next()).done;)Y.push(ne.value);return Y}function yf(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke,Ze){Y[++ne]=[Ze,ke]}),Y}function Jv(j,ne){return function(Y){return j(ne(Y))}}function Zo(j,ne){for(var Y=-1,ke=j.length,Ze=0,xt=[];++Y<ke;){var an=j[Y];(an===ne||an===p)&&(j[Y]=p,xt[Ze++]=Y)}return xt}function eu(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke){Y[++ne]=ke}),Y}function vT(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke){Y[++ne]=[ke,ke]}),Y}function yT(j,ne,Y){for(var ke=Y-1,Ze=j.length;++ke<Ze;)if(j[ke]===ne)return ke;return-1}function bT(j,ne,Y){for(var ke=Y+1;ke--;)if(j[ke]===ne)return ke;return ke}function Es(j){return Ss(j)?wT(j):oT(j)}function Wr(j){return Ss(j)?ST(j):iT(j)}function Yv(j){for(var ne=j.length;ne--&&cC.test(j.charAt(ne)););return ne}var _T=hf(JC);function wT(j){for(var ne=lf.lastIndex=0;lf.test(j);)++ne;return ne}function ST(j){return j.match(lf)||[]}function ET(j){return j.match(VC)||[]}var xT=function j(ne){ne=ne==null?yn:xs.defaults(yn.Object(),ne,xs.pick(yn,qC));var Y=ne.Array,ke=ne.Date,Ze=ne.Error,xt=ne.Function,an=ne.Math,It=ne.Object,bf=ne.RegExp,$T=ne.String,$r=ne.TypeError,tu=Y.prototype,CT=xt.prototype,$s=It.prototype,nu=ne["__core-js_shared__"],ru=CT.toString,Ot=$s.hasOwnProperty,TT=0,Zv=function(){var i=/[^.]+$/.exec(nu&&nu.keys&&nu.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),ou=$s.toString,OT=ru.call(It),AT=yn._,IT=bf("^"+ru.call(Ot).replace(ef,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),iu=Nv?ne.Buffer:n,Qo=ne.Symbol,su=ne.Uint8Array,Qv=iu?iu.allocUnsafe:n,lu=Jv(It.getPrototypeOf,It),e0=It.create,t0=$s.propertyIsEnumerable,au=tu.splice,n0=Qo?Qo.isConcatSpreadable:n,hl=Qo?Qo.iterator:n,Ai=Qo?Qo.toStringTag:n,uu=function(){try{var i=Li(It,"defineProperty");return i({},"",{}),i}catch{}}(),PT=ne.clearTimeout!==yn.clearTimeout&&ne.clearTimeout,kT=ke&&ke.now!==yn.Date.now&&ke.now,RT=ne.setTimeout!==yn.setTimeout&&ne.setTimeout,cu=an.ceil,du=an.floor,_f=It.getOwnPropertySymbols,LT=iu?iu.isBuffer:n,r0=ne.isFinite,NT=tu.join,MT=Jv(It.keys,It),un=an.max,Cn=an.min,DT=ke.now,FT=ne.parseInt,o0=an.random,BT=tu.reverse,wf=Li(ne,"DataView"),ml=Li(ne,"Map"),Sf=Li(ne,"Promise"),Cs=Li(ne,"Set"),gl=Li(ne,"WeakMap"),vl=Li(It,"create"),fu=gl&&new gl,Ts={},UT=Ni(wf),jT=Ni(ml),HT=Ni(Sf),VT=Ni(Cs),WT=Ni(gl),pu=Qo?Qo.prototype:n,yl=pu?pu.valueOf:n,i0=pu?pu.toString:n;function x(i){if(Gt(i)&&!Qe(i)&&!(i instanceof ht)){if(i instanceof Cr)return i;if(Ot.call(i,"__wrapped__"))return sy(i)}return new Cr(i)}var Os=function(){function i(){}return function(u){if(!Kt(u))return{};if(e0)return e0(u);i.prototype=u;var f=new i;return i.prototype=n,f}}();function hu(){}function Cr(i,u){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}x.templateSettings={escape:oC,evaluate:iC,interpolate:hv,variable:"",imports:{_:x}},x.prototype=hu.prototype,x.prototype.constructor=x,Cr.prototype=Os(hu.prototype),Cr.prototype.constructor=Cr;function ht(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Le,this.__views__=[]}function zT(){var i=new ht(this.__wrapped__);return i.__actions__=zn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=zn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=zn(this.__views__),i}function qT(){if(this.__filtered__){var i=new ht(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function KT(){var i=this.__wrapped__.value(),u=this.__dir__,f=Qe(i),m=u<0,b=f?i.length:0,A=i5(0,b,this.__views__),R=A.start,M=A.end,W=M-R,re=m?M:R-1,oe=this.__iteratees__,de=oe.length,Te=0,Ne=Cn(W,this.__takeCount__);if(!f||!m&&b==W&&Ne==W)return A0(i,this.__actions__);var ze=[];e:for(;W--&&Te<Ne;){re+=u;for(var st=-1,qe=i[re];++st<de;){var pt=oe[st],gt=pt.iteratee,dr=pt.type,Bn=gt(qe);if(dr==we)qe=Bn;else if(!Bn){if(dr==te)continue e;break e}}ze[Te++]=qe}return ze}ht.prototype=Os(hu.prototype),ht.prototype.constructor=ht;function Ii(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function GT(){this.__data__=vl?vl(null):{},this.size=0}function XT(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function JT(i){var u=this.__data__;if(vl){var f=u[i];return f===c?n:f}return Ot.call(u,i)?u[i]:n}function YT(i){var u=this.__data__;return vl?u[i]!==n:Ot.call(u,i)}function ZT(i,u){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=vl&&u===n?c:u,this}Ii.prototype.clear=GT,Ii.prototype.delete=XT,Ii.prototype.get=JT,Ii.prototype.has=YT,Ii.prototype.set=ZT;function Co(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function QT(){this.__data__=[],this.size=0}function eO(i){var u=this.__data__,f=mu(u,i);if(f<0)return!1;var m=u.length-1;return f==m?u.pop():au.call(u,f,1),--this.size,!0}function tO(i){var u=this.__data__,f=mu(u,i);return f<0?n:u[f][1]}function nO(i){return mu(this.__data__,i)>-1}function rO(i,u){var f=this.__data__,m=mu(f,i);return m<0?(++this.size,f.push([i,u])):f[m][1]=u,this}Co.prototype.clear=QT,Co.prototype.delete=eO,Co.prototype.get=tO,Co.prototype.has=nO,Co.prototype.set=rO;function To(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function oO(){this.size=0,this.__data__={hash:new Ii,map:new(ml||Co),string:new Ii}}function iO(i){var u=Tu(this,i).delete(i);return this.size-=u?1:0,u}function sO(i){return Tu(this,i).get(i)}function lO(i){return Tu(this,i).has(i)}function aO(i,u){var f=Tu(this,i),m=f.size;return f.set(i,u),this.size+=f.size==m?0:1,this}To.prototype.clear=oO,To.prototype.delete=iO,To.prototype.get=sO,To.prototype.has=lO,To.prototype.set=aO;function Pi(i){var u=-1,f=i==null?0:i.length;for(this.__data__=new To;++u<f;)this.add(i[u])}function uO(i){return this.__data__.set(i,c),this}function cO(i){return this.__data__.has(i)}Pi.prototype.add=Pi.prototype.push=uO,Pi.prototype.has=cO;function zr(i){var u=this.__data__=new Co(i);this.size=u.size}function dO(){this.__data__=new Co,this.size=0}function fO(i){var u=this.__data__,f=u.delete(i);return this.size=u.size,f}function pO(i){return this.__data__.get(i)}function hO(i){return this.__data__.has(i)}function mO(i,u){var f=this.__data__;if(f instanceof Co){var m=f.__data__;if(!ml||m.length<o-1)return m.push([i,u]),this.size=++f.size,this;f=this.__data__=new To(m)}return f.set(i,u),this.size=f.size,this}zr.prototype.clear=dO,zr.prototype.delete=fO,zr.prototype.get=pO,zr.prototype.has=hO,zr.prototype.set=mO;function s0(i,u){var f=Qe(i),m=!f&&Mi(i),b=!f&&!m&&oi(i),A=!f&&!m&&!b&&ks(i),R=f||m||b||A,M=R?gf(i.length,$T):[],W=M.length;for(var re in i)(u||Ot.call(i,re))&&!(R&&(re=="length"||b&&(re=="offset"||re=="parent")||A&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||Po(re,W)))&&M.push(re);return M}function l0(i){var u=i.length;return u?i[Rf(0,u-1)]:n}function gO(i,u){return Ou(zn(i),ki(u,0,i.length))}function vO(i){return Ou(zn(i))}function Ef(i,u,f){(f!==n&&!qr(i[u],f)||f===n&&!(u in i))&&Oo(i,u,f)}function bl(i,u,f){var m=i[u];(!(Ot.call(i,u)&&qr(m,f))||f===n&&!(u in i))&&Oo(i,u,f)}function mu(i,u){for(var f=i.length;f--;)if(qr(i[f][0],u))return f;return-1}function yO(i,u,f,m){return ei(i,function(b,A,R){u(m,b,f(b),R)}),m}function a0(i,u){return i&&co(u,pn(u),i)}function bO(i,u){return i&&co(u,Kn(u),i)}function Oo(i,u,f){u=="__proto__"&&uu?uu(i,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[u]=f}function xf(i,u){for(var f=-1,m=u.length,b=Y(m),A=i==null;++f<m;)b[f]=A?n:op(i,u[f]);return b}function ki(i,u,f){return i===i&&(f!==n&&(i=i<=f?i:f),u!==n&&(i=i>=u?i:u)),i}function Tr(i,u,f,m,b,A){var R,M=u&h,W=u&g,re=u&y;if(f&&(R=b?f(i,m,b,A):f(i)),R!==n)return R;if(!Kt(i))return i;var oe=Qe(i);if(oe){if(R=l5(i),!M)return zn(i,R)}else{var de=Tn(i),Te=de==L||de==B;if(oi(i))return k0(i,M);if(de==pe||de==fe||Te&&!b){if(R=W||Te?{}:Y0(i),!M)return W?JO(i,bO(R,i)):XO(i,a0(R,i))}else{if(!Rt[de])return b?i:{};R=a5(i,de,M)}}A||(A=new zr);var Ne=A.get(i);if(Ne)return Ne;A.set(i,R),Cy(i)?i.forEach(function(qe){R.add(Tr(qe,u,f,qe,i,A))}):xy(i)&&i.forEach(function(qe,pt){R.set(pt,Tr(qe,u,f,pt,i,A))});var ze=re?W?Wf:Vf:W?Kn:pn,st=oe?n:ze(i);return xr(st||i,function(qe,pt){st&&(pt=qe,qe=i[pt]),bl(R,pt,Tr(qe,u,f,pt,i,A))}),R}function _O(i){var u=pn(i);return function(f){return u0(f,i,u)}}function u0(i,u,f){var m=f.length;if(i==null)return!m;for(i=It(i);m--;){var b=f[m],A=u[b],R=i[b];if(R===n&&!(b in i)||!A(R))return!1}return!0}function c0(i,u,f){if(typeof i!="function")throw new $r(l);return Cl(function(){i.apply(n,f)},u)}function _l(i,u,f,m){var b=-1,A=Za,R=!0,M=i.length,W=[],re=u.length;if(!M)return W;f&&(u=Vt(u,ar(f))),m?(A=cf,R=!1):u.length>=o&&(A=pl,R=!1,u=new Pi(u));e:for(;++b<M;){var oe=i[b],de=f==null?oe:f(oe);if(oe=m||oe!==0?oe:0,R&&de===de){for(var Te=re;Te--;)if(u[Te]===de)continue e;W.push(oe)}else A(u,de,m)||W.push(oe)}return W}var ei=D0(uo),d0=D0(Cf,!0);function wO(i,u){var f=!0;return ei(i,function(m,b,A){return f=!!u(m,b,A),f}),f}function gu(i,u,f){for(var m=-1,b=i.length;++m<b;){var A=i[m],R=u(A);if(R!=null&&(M===n?R===R&&!cr(R):f(R,M)))var M=R,W=A}return W}function SO(i,u,f,m){var b=i.length;for(f=ot(f),f<0&&(f=-f>b?0:b+f),m=m===n||m>b?b:ot(m),m<0&&(m+=b),m=f>m?0:Oy(m);f<m;)i[f++]=u;return i}function f0(i,u){var f=[];return ei(i,function(m,b,A){u(m,b,A)&&f.push(m)}),f}function bn(i,u,f,m,b){var A=-1,R=i.length;for(f||(f=c5),b||(b=[]);++A<R;){var M=i[A];u>0&&f(M)?u>1?bn(M,u-1,f,m,b):Yo(b,M):m||(b[b.length]=M)}return b}var $f=F0(),p0=F0(!0);function uo(i,u){return i&&$f(i,u,pn)}function Cf(i,u){return i&&p0(i,u,pn)}function vu(i,u){return Jo(u,function(f){return ko(i[f])})}function Ri(i,u){u=ni(u,i);for(var f=0,m=u.length;i!=null&&f<m;)i=i[fo(u[f++])];return f&&f==m?i:n}function h0(i,u,f){var m=u(i);return Qe(i)?m:Yo(m,f(i))}function Dn(i){return i==null?i===n?Me:ie:Ai&&Ai in It(i)?o5(i):v5(i)}function Tf(i,u){return i>u}function EO(i,u){return i!=null&&Ot.call(i,u)}function xO(i,u){return i!=null&&u in It(i)}function $O(i,u,f){return i>=Cn(u,f)&&i<un(u,f)}function Of(i,u,f){for(var m=f?cf:Za,b=i[0].length,A=i.length,R=A,M=Y(A),W=1/0,re=[];R--;){var oe=i[R];R&&u&&(oe=Vt(oe,ar(u))),W=Cn(oe.length,W),M[R]=!f&&(u||b>=120&&oe.length>=120)?new Pi(R&&oe):n}oe=i[0];var de=-1,Te=M[0];e:for(;++de<b&&re.length<W;){var Ne=oe[de],ze=u?u(Ne):Ne;if(Ne=f||Ne!==0?Ne:0,!(Te?pl(Te,ze):m(re,ze,f))){for(R=A;--R;){var st=M[R];if(!(st?pl(st,ze):m(i[R],ze,f)))continue e}Te&&Te.push(ze),re.push(Ne)}}return re}function CO(i,u,f,m){return uo(i,function(b,A,R){u(m,f(b),A,R)}),m}function wl(i,u,f){u=ni(u,i),i=ty(i,u);var m=i==null?i:i[fo(Ar(u))];return m==null?n:lr(m,i,f)}function m0(i){return Gt(i)&&Dn(i)==fe}function TO(i){return Gt(i)&&Dn(i)==mt}function OO(i){return Gt(i)&&Dn(i)==tt}function Sl(i,u,f,m,b){return i===u?!0:i==null||u==null||!Gt(i)&&!Gt(u)?i!==i&&u!==u:AO(i,u,f,m,Sl,b)}function AO(i,u,f,m,b,A){var R=Qe(i),M=Qe(u),W=R?xe:Tn(i),re=M?xe:Tn(u);W=W==fe?pe:W,re=re==fe?pe:re;var oe=W==pe,de=re==pe,Te=W==re;if(Te&&oi(i)){if(!oi(u))return!1;R=!0,oe=!1}if(Te&&!oe)return A||(A=new zr),R||ks(i)?G0(i,u,f,m,b,A):n5(i,u,W,f,m,b,A);if(!(f&_)){var Ne=oe&&Ot.call(i,"__wrapped__"),ze=de&&Ot.call(u,"__wrapped__");if(Ne||ze){var st=Ne?i.value():i,qe=ze?u.value():u;return A||(A=new zr),b(st,qe,f,m,A)}}return Te?(A||(A=new zr),r5(i,u,f,m,b,A)):!1}function IO(i){return Gt(i)&&Tn(i)==Z}function Af(i,u,f,m){var b=f.length,A=b,R=!m;if(i==null)return!A;for(i=It(i);b--;){var M=f[b];if(R&&M[2]?M[1]!==i[M[0]]:!(M[0]in i))return!1}for(;++b<A;){M=f[b];var W=M[0],re=i[W],oe=M[1];if(R&&M[2]){if(re===n&&!(W in i))return!1}else{var de=new zr;if(m)var Te=m(re,oe,W,i,u,de);if(!(Te===n?Sl(oe,re,_|S,m,de):Te))return!1}}return!0}function g0(i){if(!Kt(i)||f5(i))return!1;var u=ko(i)?IT:_C;return u.test(Ni(i))}function PO(i){return Gt(i)&&Dn(i)==me}function kO(i){return Gt(i)&&Tn(i)==se}function RO(i){return Gt(i)&&Lu(i.length)&&!!Bt[Dn(i)]}function v0(i){return typeof i=="function"?i:i==null?Gn:typeof i=="object"?Qe(i)?_0(i[0],i[1]):b0(i):By(i)}function If(i){if(!$l(i))return MT(i);var u=[];for(var f in It(i))Ot.call(i,f)&&f!="constructor"&&u.push(f);return u}function LO(i){if(!Kt(i))return g5(i);var u=$l(i),f=[];for(var m in i)m=="constructor"&&(u||!Ot.call(i,m))||f.push(m);return f}function Pf(i,u){return i<u}function y0(i,u){var f=-1,m=qn(i)?Y(i.length):[];return ei(i,function(b,A,R){m[++f]=u(b,A,R)}),m}function b0(i){var u=qf(i);return u.length==1&&u[0][2]?Q0(u[0][0],u[0][1]):function(f){return f===i||Af(f,i,u)}}function _0(i,u){return Gf(i)&&Z0(u)?Q0(fo(i),u):function(f){var m=op(f,i);return m===n&&m===u?ip(f,i):Sl(u,m,_|S)}}function yu(i,u,f,m,b){i!==u&&$f(u,function(A,R){if(b||(b=new zr),Kt(A))NO(i,u,R,f,yu,m,b);else{var M=m?m(Jf(i,R),A,R+"",i,u,b):n;M===n&&(M=A),Ef(i,R,M)}},Kn)}function NO(i,u,f,m,b,A,R){var M=Jf(i,f),W=Jf(u,f),re=R.get(W);if(re){Ef(i,f,re);return}var oe=A?A(M,W,f+"",i,u,R):n,de=oe===n;if(de){var Te=Qe(W),Ne=!Te&&oi(W),ze=!Te&&!Ne&&ks(W);oe=W,Te||Ne||ze?Qe(M)?oe=M:en(M)?oe=zn(M):Ne?(de=!1,oe=k0(W,!0)):ze?(de=!1,oe=R0(W,!0)):oe=[]:Tl(W)||Mi(W)?(oe=M,Mi(M)?oe=Ay(M):(!Kt(M)||ko(M))&&(oe=Y0(W))):de=!1}de&&(R.set(W,oe),b(oe,W,m,A,R),R.delete(W)),Ef(i,f,oe)}function w0(i,u){var f=i.length;if(f)return u+=u<0?f:0,Po(u,f)?i[u]:n}function S0(i,u,f){u.length?u=Vt(u,function(A){return Qe(A)?function(R){return Ri(R,A.length===1?A[0]:A)}:A}):u=[Gn];var m=-1;u=Vt(u,ar(Ve()));var b=y0(i,function(A,R,M){var W=Vt(u,function(re){return re(A)});return{criteria:W,index:++m,value:A}});return aT(b,function(A,R){return GO(A,R,f)})}function MO(i,u){return E0(i,u,function(f,m){return ip(i,m)})}function E0(i,u,f){for(var m=-1,b=u.length,A={};++m<b;){var R=u[m],M=Ri(i,R);f(M,R)&&El(A,ni(R,i),M)}return A}function DO(i){return function(u){return Ri(u,i)}}function kf(i,u,f,m){var b=m?lT:ws,A=-1,R=u.length,M=i;for(i===u&&(u=zn(u)),f&&(M=Vt(i,ar(f)));++A<R;)for(var W=0,re=u[A],oe=f?f(re):re;(W=b(M,oe,W,m))>-1;)M!==i&&au.call(M,W,1),au.call(i,W,1);return i}function x0(i,u){for(var f=i?u.length:0,m=f-1;f--;){var b=u[f];if(f==m||b!==A){var A=b;Po(b)?au.call(i,b,1):Mf(i,b)}}return i}function Rf(i,u){return i+du(o0()*(u-i+1))}function FO(i,u,f,m){for(var b=-1,A=un(cu((u-i)/(f||1)),0),R=Y(A);A--;)R[m?A:++b]=i,i+=f;return R}function Lf(i,u){var f="";if(!i||u<1||u>Ie)return f;do u%2&&(f+=i),u=du(u/2),u&&(i+=i);while(u);return f}function at(i,u){return Yf(ey(i,u,Gn),i+"")}function BO(i){return l0(Rs(i))}function UO(i,u){var f=Rs(i);return Ou(f,ki(u,0,f.length))}function El(i,u,f,m){if(!Kt(i))return i;u=ni(u,i);for(var b=-1,A=u.length,R=A-1,M=i;M!=null&&++b<A;){var W=fo(u[b]),re=f;if(W==="__proto__"||W==="constructor"||W==="prototype")return i;if(b!=R){var oe=M[W];re=m?m(oe,W,M):n,re===n&&(re=Kt(oe)?oe:Po(u[b+1])?[]:{})}bl(M,W,re),M=M[W]}return i}var $0=fu?function(i,u){return fu.set(i,u),i}:Gn,jO=uu?function(i,u){return uu(i,"toString",{configurable:!0,enumerable:!1,value:lp(u),writable:!0})}:Gn;function HO(i){return Ou(Rs(i))}function Or(i,u,f){var m=-1,b=i.length;u<0&&(u=-u>b?0:b+u),f=f>b?b:f,f<0&&(f+=b),b=u>f?0:f-u>>>0,u>>>=0;for(var A=Y(b);++m<b;)A[m]=i[m+u];return A}function VO(i,u){var f;return ei(i,function(m,b,A){return f=u(m,b,A),!f}),!!f}function bu(i,u,f){var m=0,b=i==null?m:i.length;if(typeof u=="number"&&u===u&&b<=Q){for(;m<b;){var A=m+b>>>1,R=i[A];R!==null&&!cr(R)&&(f?R<=u:R<u)?m=A+1:b=A}return b}return Nf(i,u,Gn,f)}function Nf(i,u,f,m){var b=0,A=i==null?0:i.length;if(A===0)return 0;u=f(u);for(var R=u!==u,M=u===null,W=cr(u),re=u===n;b<A;){var oe=du((b+A)/2),de=f(i[oe]),Te=de!==n,Ne=de===null,ze=de===de,st=cr(de);if(R)var qe=m||ze;else re?qe=ze&&(m||Te):M?qe=ze&&Te&&(m||!Ne):W?qe=ze&&Te&&!Ne&&(m||!st):Ne||st?qe=!1:qe=m?de<=u:de<u;qe?b=oe+1:A=oe}return Cn(A,Ge)}function C0(i,u){for(var f=-1,m=i.length,b=0,A=[];++f<m;){var R=i[f],M=u?u(R):R;if(!f||!qr(M,W)){var W=M;A[b++]=R===0?0:R}}return A}function T0(i){return typeof i=="number"?i:cr(i)?ft:+i}function ur(i){if(typeof i=="string")return i;if(Qe(i))return Vt(i,ur)+"";if(cr(i))return i0?i0.call(i):"";var u=i+"";return u=="0"&&1/i==-Ae?"-0":u}function ti(i,u,f){var m=-1,b=Za,A=i.length,R=!0,M=[],W=M;if(f)R=!1,b=cf;else if(A>=o){var re=u?null:e5(i);if(re)return eu(re);R=!1,b=pl,W=new Pi}else W=u?[]:M;e:for(;++m<A;){var oe=i[m],de=u?u(oe):oe;if(oe=f||oe!==0?oe:0,R&&de===de){for(var Te=W.length;Te--;)if(W[Te]===de)continue e;u&&W.push(de),M.push(oe)}else b(W,de,f)||(W!==M&&W.push(de),M.push(oe))}return M}function Mf(i,u){return u=ni(u,i),i=ty(i,u),i==null||delete i[fo(Ar(u))]}function O0(i,u,f,m){return El(i,u,f(Ri(i,u)),m)}function _u(i,u,f,m){for(var b=i.length,A=m?b:-1;(m?A--:++A<b)&&u(i[A],A,i););return f?Or(i,m?0:A,m?A+1:b):Or(i,m?A+1:0,m?b:A)}function A0(i,u){var f=i;return f instanceof ht&&(f=f.value()),df(u,function(m,b){return b.func.apply(b.thisArg,Yo([m],b.args))},f)}function Df(i,u,f){var m=i.length;if(m<2)return m?ti(i[0]):[];for(var b=-1,A=Y(m);++b<m;)for(var R=i[b],M=-1;++M<m;)M!=b&&(A[b]=_l(A[b]||R,i[M],u,f));return ti(bn(A,1),u,f)}function I0(i,u,f){for(var m=-1,b=i.length,A=u.length,R={};++m<b;){var M=m<A?u[m]:n;f(R,i[m],M)}return R}function Ff(i){return en(i)?i:[]}function Bf(i){return typeof i=="function"?i:Gn}function ni(i,u){return Qe(i)?i:Gf(i,u)?[i]:iy(Ct(i))}var WO=at;function ri(i,u,f){var m=i.length;return f=f===n?m:f,!u&&f>=m?i:Or(i,u,f)}var P0=PT||function(i){return yn.clearTimeout(i)};function k0(i,u){if(u)return i.slice();var f=i.length,m=Qv?Qv(f):new i.constructor(f);return i.copy(m),m}function Uf(i){var u=new i.constructor(i.byteLength);return new su(u).set(new su(i)),u}function zO(i,u){var f=u?Uf(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function qO(i){var u=new i.constructor(i.source,mv.exec(i));return u.lastIndex=i.lastIndex,u}function KO(i){return yl?It(yl.call(i)):{}}function R0(i,u){var f=u?Uf(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function L0(i,u){if(i!==u){var f=i!==n,m=i===null,b=i===i,A=cr(i),R=u!==n,M=u===null,W=u===u,re=cr(u);if(!M&&!re&&!A&&i>u||A&&R&&W&&!M&&!re||m&&R&&W||!f&&W||!b)return 1;if(!m&&!A&&!re&&i<u||re&&f&&b&&!m&&!A||M&&f&&b||!R&&b||!W)return-1}return 0}function GO(i,u,f){for(var m=-1,b=i.criteria,A=u.criteria,R=b.length,M=f.length;++m<R;){var W=L0(b[m],A[m]);if(W){if(m>=M)return W;var re=f[m];return W*(re=="desc"?-1:1)}}return i.index-u.index}function N0(i,u,f,m){for(var b=-1,A=i.length,R=f.length,M=-1,W=u.length,re=un(A-R,0),oe=Y(W+re),de=!m;++M<W;)oe[M]=u[M];for(;++b<R;)(de||b<A)&&(oe[f[b]]=i[b]);for(;re--;)oe[M++]=i[b++];return oe}function M0(i,u,f,m){for(var b=-1,A=i.length,R=-1,M=f.length,W=-1,re=u.length,oe=un(A-M,0),de=Y(oe+re),Te=!m;++b<oe;)de[b]=i[b];for(var Ne=b;++W<re;)de[Ne+W]=u[W];for(;++R<M;)(Te||b<A)&&(de[Ne+f[R]]=i[b++]);return de}function zn(i,u){var f=-1,m=i.length;for(u||(u=Y(m));++f<m;)u[f]=i[f];return u}function co(i,u,f,m){var b=!f;f||(f={});for(var A=-1,R=u.length;++A<R;){var M=u[A],W=m?m(f[M],i[M],M,f,i):n;W===n&&(W=i[M]),b?Oo(f,M,W):bl(f,M,W)}return f}function XO(i,u){return co(i,Kf(i),u)}function JO(i,u){return co(i,X0(i),u)}function wu(i,u){return function(f,m){var b=Qe(f)?tT:yO,A=u?u():{};return b(f,i,Ve(m,2),A)}}function As(i){return at(function(u,f){var m=-1,b=f.length,A=b>1?f[b-1]:n,R=b>2?f[2]:n;for(A=i.length>3&&typeof A=="function"?(b--,A):n,R&&Fn(f[0],f[1],R)&&(A=b<3?n:A,b=1),u=It(u);++m<b;){var M=f[m];M&&i(u,M,m,A)}return u})}function D0(i,u){return function(f,m){if(f==null)return f;if(!qn(f))return i(f,m);for(var b=f.length,A=u?b:-1,R=It(f);(u?A--:++A<b)&&m(R[A],A,R)!==!1;);return f}}function F0(i){return function(u,f,m){for(var b=-1,A=It(u),R=m(u),M=R.length;M--;){var W=R[i?M:++b];if(f(A[W],W,A)===!1)break}return u}}function YO(i,u,f){var m=u&C,b=xl(i);function A(){var R=this&&this!==yn&&this instanceof A?b:i;return R.apply(m?f:this,arguments)}return A}function B0(i){return function(u){u=Ct(u);var f=Ss(u)?Wr(u):n,m=f?f[0]:u.charAt(0),b=f?ri(f,1).join(""):u.slice(1);return m[i]()+b}}function Is(i){return function(u){return df(Dy(My(u).replace(jC,"")),i,"")}}function xl(i){return function(){var u=arguments;switch(u.length){case 0:return new i;case 1:return new i(u[0]);case 2:return new i(u[0],u[1]);case 3:return new i(u[0],u[1],u[2]);case 4:return new i(u[0],u[1],u[2],u[3]);case 5:return new i(u[0],u[1],u[2],u[3],u[4]);case 6:return new i(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new i(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=Os(i.prototype),m=i.apply(f,u);return Kt(m)?m:f}}function ZO(i,u,f){var m=xl(i);function b(){for(var A=arguments.length,R=Y(A),M=A,W=Ps(b);M--;)R[M]=arguments[M];var re=A<3&&R[0]!==W&&R[A-1]!==W?[]:Zo(R,W);if(A-=re.length,A<f)return W0(i,u,Su,b.placeholder,n,R,re,n,n,f-A);var oe=this&&this!==yn&&this instanceof b?m:i;return lr(oe,this,R)}return b}function U0(i){return function(u,f,m){var b=It(u);if(!qn(u)){var A=Ve(f,3);u=pn(u),f=function(M){return A(b[M],M,b)}}var R=i(u,f,m);return R>-1?b[A?u[R]:R]:n}}function j0(i){return Io(function(u){var f=u.length,m=f,b=Cr.prototype.thru;for(i&&u.reverse();m--;){var A=u[m];if(typeof A!="function")throw new $r(l);if(b&&!R&&Cu(A)=="wrapper")var R=new Cr([],!0)}for(m=R?m:f;++m<f;){A=u[m];var M=Cu(A),W=M=="wrapper"?zf(A):n;W&&Xf(W[0])&&W[1]==(k|E|$|I)&&!W[4].length&&W[9]==1?R=R[Cu(W[0])].apply(R,W[3]):R=A.length==1&&Xf(A)?R[M]():R.thru(A)}return function(){var re=arguments,oe=re[0];if(R&&re.length==1&&Qe(oe))return R.plant(oe).value();for(var de=0,Te=f?u[de].apply(this,re):oe;++de<f;)Te=u[de].call(this,Te);return Te}})}function Su(i,u,f,m,b,A,R,M,W,re){var oe=u&k,de=u&C,Te=u&T,Ne=u&(E|O),ze=u&H,st=Te?n:xl(i);function qe(){for(var pt=arguments.length,gt=Y(pt),dr=pt;dr--;)gt[dr]=arguments[dr];if(Ne)var Bn=Ps(qe),fr=cT(gt,Bn);if(m&&(gt=N0(gt,m,b,Ne)),A&&(gt=M0(gt,A,R,Ne)),pt-=fr,Ne&&pt<re){var tn=Zo(gt,Bn);return W0(i,u,Su,qe.placeholder,f,gt,tn,M,W,re-pt)}var Kr=de?f:this,Lo=Te?Kr[i]:i;return pt=gt.length,M?gt=y5(gt,M):ze&&pt>1&&gt.reverse(),oe&&W<pt&&(gt.length=W),this&&this!==yn&&this instanceof qe&&(Lo=st||xl(Lo)),Lo.apply(Kr,gt)}return qe}function H0(i,u){return function(f,m){return CO(f,i,u(m),{})}}function Eu(i,u){return function(f,m){var b;if(f===n&&m===n)return u;if(f!==n&&(b=f),m!==n){if(b===n)return m;typeof f=="string"||typeof m=="string"?(f=ur(f),m=ur(m)):(f=T0(f),m=T0(m)),b=i(f,m)}return b}}function jf(i){return Io(function(u){return u=Vt(u,ar(Ve())),at(function(f){var m=this;return i(u,function(b){return lr(b,m,f)})})})}function xu(i,u){u=u===n?" ":ur(u);var f=u.length;if(f<2)return f?Lf(u,i):u;var m=Lf(u,cu(i/Es(u)));return Ss(u)?ri(Wr(m),0,i).join(""):m.slice(0,i)}function QO(i,u,f,m){var b=u&C,A=xl(i);function R(){for(var M=-1,W=arguments.length,re=-1,oe=m.length,de=Y(oe+W),Te=this&&this!==yn&&this instanceof R?A:i;++re<oe;)de[re]=m[re];for(;W--;)de[re++]=arguments[++M];return lr(Te,b?f:this,de)}return R}function V0(i){return function(u,f,m){return m&&typeof m!="number"&&Fn(u,f,m)&&(f=m=n),u=Ro(u),f===n?(f=u,u=0):f=Ro(f),m=m===n?u<f?1:-1:Ro(m),FO(u,f,m,i)}}function $u(i){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=Ir(u),f=Ir(f)),i(u,f)}}function W0(i,u,f,m,b,A,R,M,W,re){var oe=u&E,de=oe?R:n,Te=oe?n:R,Ne=oe?A:n,ze=oe?n:A;u|=oe?$:P,u&=~(oe?P:$),u&w||(u&=~(C|T));var st=[i,u,b,Ne,de,ze,Te,M,W,re],qe=f.apply(n,st);return Xf(i)&&ny(qe,st),qe.placeholder=m,ry(qe,i,u)}function Hf(i){var u=an[i];return function(f,m){if(f=Ir(f),m=m==null?0:Cn(ot(m),292),m&&r0(f)){var b=(Ct(f)+"e").split("e"),A=u(b[0]+"e"+(+b[1]+m));return b=(Ct(A)+"e").split("e"),+(b[0]+"e"+(+b[1]-m))}return u(f)}}var e5=Cs&&1/eu(new Cs([,-0]))[1]==Ae?function(i){return new Cs(i)}:cp;function z0(i){return function(u){var f=Tn(u);return f==Z?yf(u):f==se?vT(u):uT(u,i(u))}}function Ao(i,u,f,m,b,A,R,M){var W=u&T;if(!W&&typeof i!="function")throw new $r(l);var re=m?m.length:0;if(re||(u&=~($|P),m=b=n),R=R===n?R:un(ot(R),0),M=M===n?M:ot(M),re-=b?b.length:0,u&P){var oe=m,de=b;m=b=n}var Te=W?n:zf(i),Ne=[i,u,f,m,b,oe,de,A,R,M];if(Te&&m5(Ne,Te),i=Ne[0],u=Ne[1],f=Ne[2],m=Ne[3],b=Ne[4],M=Ne[9]=Ne[9]===n?W?0:i.length:un(Ne[9]-re,0),!M&&u&(E|O)&&(u&=~(E|O)),!u||u==C)var ze=YO(i,u,f);else u==E||u==O?ze=ZO(i,u,M):(u==$||u==(C|$))&&!b.length?ze=QO(i,u,f,m):ze=Su.apply(n,Ne);var st=Te?$0:ny;return ry(st(ze,Ne),i,u)}function q0(i,u,f,m){return i===n||qr(i,$s[f])&&!Ot.call(m,f)?u:i}function K0(i,u,f,m,b,A){return Kt(i)&&Kt(u)&&(A.set(u,i),yu(i,u,n,K0,A),A.delete(u)),i}function t5(i){return Tl(i)?n:i}function G0(i,u,f,m,b,A){var R=f&_,M=i.length,W=u.length;if(M!=W&&!(R&&W>M))return!1;var re=A.get(i),oe=A.get(u);if(re&&oe)return re==u&&oe==i;var de=-1,Te=!0,Ne=f&S?new Pi:n;for(A.set(i,u),A.set(u,i);++de<M;){var ze=i[de],st=u[de];if(m)var qe=R?m(st,ze,de,u,i,A):m(ze,st,de,i,u,A);if(qe!==n){if(qe)continue;Te=!1;break}if(Ne){if(!ff(u,function(pt,gt){if(!pl(Ne,gt)&&(ze===pt||b(ze,pt,f,m,A)))return Ne.push(gt)})){Te=!1;break}}else if(!(ze===st||b(ze,st,f,m,A))){Te=!1;break}}return A.delete(i),A.delete(u),Te}function n5(i,u,f,m,b,A,R){switch(f){case ct:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case mt:return!(i.byteLength!=u.byteLength||!A(new su(i),new su(u)));case De:case tt:case le:return qr(+i,+u);case ln:return i.name==u.name&&i.message==u.message;case me:case Re:return i==u+"";case Z:var M=yf;case se:var W=m&_;if(M||(M=eu),i.size!=u.size&&!W)return!1;var re=R.get(i);if(re)return re==u;m|=S,R.set(i,u);var oe=G0(M(i),M(u),m,b,A,R);return R.delete(i),oe;case Pe:if(yl)return yl.call(i)==yl.call(u)}return!1}function r5(i,u,f,m,b,A){var R=f&_,M=Vf(i),W=M.length,re=Vf(u),oe=re.length;if(W!=oe&&!R)return!1;for(var de=W;de--;){var Te=M[de];if(!(R?Te in u:Ot.call(u,Te)))return!1}var Ne=A.get(i),ze=A.get(u);if(Ne&&ze)return Ne==u&&ze==i;var st=!0;A.set(i,u),A.set(u,i);for(var qe=R;++de<W;){Te=M[de];var pt=i[Te],gt=u[Te];if(m)var dr=R?m(gt,pt,Te,u,i,A):m(pt,gt,Te,i,u,A);if(!(dr===n?pt===gt||b(pt,gt,f,m,A):dr)){st=!1;break}qe||(qe=Te=="constructor")}if(st&&!qe){var Bn=i.constructor,fr=u.constructor;Bn!=fr&&"constructor"in i&&"constructor"in u&&!(typeof Bn=="function"&&Bn instanceof Bn&&typeof fr=="function"&&fr instanceof fr)&&(st=!1)}return A.delete(i),A.delete(u),st}function Io(i){return Yf(ey(i,n,uy),i+"")}function Vf(i){return h0(i,pn,Kf)}function Wf(i){return h0(i,Kn,X0)}var zf=fu?function(i){return fu.get(i)}:cp;function Cu(i){for(var u=i.name+"",f=Ts[u],m=Ot.call(Ts,u)?f.length:0;m--;){var b=f[m],A=b.func;if(A==null||A==i)return b.name}return u}function Ps(i){var u=Ot.call(x,"placeholder")?x:i;return u.placeholder}function Ve(){var i=x.iteratee||ap;return i=i===ap?v0:i,arguments.length?i(arguments[0],arguments[1]):i}function Tu(i,u){var f=i.__data__;return d5(u)?f[typeof u=="string"?"string":"hash"]:f.map}function qf(i){for(var u=pn(i),f=u.length;f--;){var m=u[f],b=i[m];u[f]=[m,b,Z0(b)]}return u}function Li(i,u){var f=hT(i,u);return g0(f)?f:n}function o5(i){var u=Ot.call(i,Ai),f=i[Ai];try{i[Ai]=n;var m=!0}catch{}var b=ou.call(i);return m&&(u?i[Ai]=f:delete i[Ai]),b}var Kf=_f?function(i){return i==null?[]:(i=It(i),Jo(_f(i),function(u){return t0.call(i,u)}))}:dp,X0=_f?function(i){for(var u=[];i;)Yo(u,Kf(i)),i=lu(i);return u}:dp,Tn=Dn;(wf&&Tn(new wf(new ArrayBuffer(1)))!=ct||ml&&Tn(new ml)!=Z||Sf&&Tn(Sf.resolve())!=$e||Cs&&Tn(new Cs)!=se||gl&&Tn(new gl)!=je)&&(Tn=function(i){var u=Dn(i),f=u==pe?i.constructor:n,m=f?Ni(f):"";if(m)switch(m){case UT:return ct;case jT:return Z;case HT:return $e;case VT:return se;case WT:return je}return u});function i5(i,u,f){for(var m=-1,b=f.length;++m<b;){var A=f[m],R=A.size;switch(A.type){case"drop":i+=R;break;case"dropRight":u-=R;break;case"take":u=Cn(u,i+R);break;case"takeRight":i=un(i,u-R);break}}return{start:i,end:u}}function s5(i){var u=i.match(fC);return u?u[1].split(pC):[]}function J0(i,u,f){u=ni(u,i);for(var m=-1,b=u.length,A=!1;++m<b;){var R=fo(u[m]);if(!(A=i!=null&&f(i,R)))break;i=i[R]}return A||++m!=b?A:(b=i==null?0:i.length,!!b&&Lu(b)&&Po(R,b)&&(Qe(i)||Mi(i)))}function l5(i){var u=i.length,f=new i.constructor(u);return u&&typeof i[0]=="string"&&Ot.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function Y0(i){return typeof i.constructor=="function"&&!$l(i)?Os(lu(i)):{}}function a5(i,u,f){var m=i.constructor;switch(u){case mt:return Uf(i);case De:case tt:return new m(+i);case ct:return zO(i,f);case Ht:case Mn:case ao:case vs:case $o:case ys:case vn:case Wn:case bs:return R0(i,f);case Z:return new m;case le:case Re:return new m(i);case me:return qO(i);case se:return new m;case Pe:return KO(i)}}function u5(i,u){var f=u.length;if(!f)return i;var m=f-1;return u[m]=(f>1?"& ":"")+u[m],u=u.join(f>2?", ":" "),i.replace(dC,`{
     27 */jc.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,y=4,_=1,S=2,C=1,T=2,w=4,E=8,O=16,x=32,I=64,k=128,P=256,H=512,D=30,F="...",z=800,G=16,te=1,we=2,be=3,Ae=1/0,Pe=9007199254740991,Ye=17976931348623157e292,ft=NaN,Le=4294967295,Ge=Le-1,Q=Le>>>1,ae=[["ary",k],["bind",C],["bindKey",T],["curry",E],["curryRight",O],["flip",H],["partial",x],["partialRight",I],["rearg",P]],fe="[object Arguments]",$e="[object Array]",Ve="[object AsyncFunction]",De="[object Boolean]",tt="[object Date]",gn="[object DOMException]",ln="[object Error]",L="[object Function]",B="[object GeneratorFunction]",Z="[object Map]",le="[object Number]",ie="[object Null]",pe="[object Object]",Ce="[object Promise]",me="[object Proxy]",ge="[object RegExp]",se="[object Set]",Re="[object String]",Ie="[object Symbol]",Me="[object Undefined]",je="[object WeakMap]",rt="[object WeakSet]",mt="[object ArrayBuffer]",ct="[object DataView]",Ht="[object Float32Array]",Dn="[object Float64Array]",uo="[object Int8Array]",vs="[object Int16Array]",$o="[object Int32Array]",ys="[object Uint8Array]",vn="[object Uint8ClampedArray]",qn="[object Uint16Array]",bs="[object Uint32Array]",nC=/\b__p \+= '';/g,rC=/\b(__p \+=) '' \+/g,oC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pv=/&(?:amp|lt|gt|quot|#39);/g,hv=/[&<>"']/g,iC=RegExp(pv.source),sC=RegExp(hv.source),lC=/<%-([\s\S]+?)%>/g,aC=/<%([\s\S]+?)%>/g,mv=/<%=([\s\S]+?)%>/g,uC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cC=/^\w*$/,dC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ef=/[\\^$.*+?()[\]{}|]/g,fC=RegExp(ef.source),tf=/^\s+/,pC=/\s/,hC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mC=/\{\n\/\* \[wrapped with (.+)\] \*/,gC=/,? & /,vC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yC=/[()=,{}\[\]\/\s]/,bC=/\\(\\)?/g,_C=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gv=/\w*$/,wC=/^[-+]0x[0-9a-f]+$/i,SC=/^0b[01]+$/i,EC=/^\[object .+?Constructor\]$/,xC=/^0o[0-7]+$/i,$C=/^(?:0|[1-9]\d*)$/,CC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xa=/($^)/,TC=/['\n\r\u2028\u2029\\]/g,Ja="\\ud800-\\udfff",OC="\\u0300-\\u036f",AC="\\ufe20-\\ufe2f",PC="\\u20d0-\\u20ff",vv=OC+AC+PC,yv="\\u2700-\\u27bf",bv="a-z\\xdf-\\xf6\\xf8-\\xff",IC="\\xac\\xb1\\xd7\\xf7",kC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",RC="\\u2000-\\u206f",LC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_v="A-Z\\xc0-\\xd6\\xd8-\\xde",wv="\\ufe0e\\ufe0f",Sv=IC+kC+RC+LC,nf="['’]",NC="["+Ja+"]",Ev="["+Sv+"]",Ya="["+vv+"]",xv="\\d+",MC="["+yv+"]",$v="["+bv+"]",Cv="[^"+Ja+Sv+xv+yv+bv+_v+"]",rf="\\ud83c[\\udffb-\\udfff]",DC="(?:"+Ya+"|"+rf+")",Tv="[^"+Ja+"]",of="(?:\\ud83c[\\udde6-\\uddff]){2}",sf="[\\ud800-\\udbff][\\udc00-\\udfff]",_s="["+_v+"]",Ov="\\u200d",Av="(?:"+$v+"|"+Cv+")",FC="(?:"+_s+"|"+Cv+")",Pv="(?:"+nf+"(?:d|ll|m|re|s|t|ve))?",Iv="(?:"+nf+"(?:D|LL|M|RE|S|T|VE))?",kv=DC+"?",Rv="["+wv+"]?",BC="(?:"+Ov+"(?:"+[Tv,of,sf].join("|")+")"+Rv+kv+")*",UC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lv=Rv+kv+BC,HC="(?:"+[MC,of,sf].join("|")+")"+Lv,VC="(?:"+[Tv+Ya+"?",Ya,of,sf,NC].join("|")+")",WC=RegExp(nf,"g"),zC=RegExp(Ya,"g"),lf=RegExp(rf+"(?="+rf+")|"+VC+Lv,"g"),qC=RegExp([_s+"?"+$v+"+"+Pv+"(?="+[Ev,_s,"$"].join("|")+")",FC+"+"+Iv+"(?="+[Ev,_s+Av,"$"].join("|")+")",_s+"?"+Av+"+"+Pv,_s+"+"+Iv,jC,UC,xv,HC].join("|"),"g"),KC=RegExp("["+Ov+Ja+vv+wv+"]"),GC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,XC=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],JC=-1,Bt={};Bt[Ht]=Bt[Dn]=Bt[uo]=Bt[vs]=Bt[$o]=Bt[ys]=Bt[vn]=Bt[qn]=Bt[bs]=!0,Bt[fe]=Bt[$e]=Bt[mt]=Bt[De]=Bt[ct]=Bt[tt]=Bt[ln]=Bt[L]=Bt[Z]=Bt[le]=Bt[pe]=Bt[ge]=Bt[se]=Bt[Re]=Bt[je]=!1;var Lt={};Lt[fe]=Lt[$e]=Lt[mt]=Lt[ct]=Lt[De]=Lt[tt]=Lt[Ht]=Lt[Dn]=Lt[uo]=Lt[vs]=Lt[$o]=Lt[Z]=Lt[le]=Lt[pe]=Lt[ge]=Lt[se]=Lt[Re]=Lt[Ie]=Lt[ys]=Lt[vn]=Lt[qn]=Lt[bs]=!0,Lt[ln]=Lt[L]=Lt[je]=!1;var YC={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ZC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},QC={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},eT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tT=parseFloat,nT=parseInt,Nv=typeof Il=="object"&&Il&&Il.Object===Object&&Il,rT=typeof self=="object"&&self&&self.Object===Object&&self,yn=Nv||rT||Function("return this")(),af=t&&!t.nodeType&&t,Ai=af&&!0&&e&&!e.nodeType&&e,Mv=Ai&&Ai.exports===af,uf=Mv&&Nv.process,Er=function(){try{var j=Ai&&Ai.require&&Ai.require("util").types;return j||uf&&uf.binding&&uf.binding("util")}catch{}}(),Dv=Er&&Er.isArrayBuffer,Fv=Er&&Er.isDate,Bv=Er&&Er.isMap,Uv=Er&&Er.isRegExp,jv=Er&&Er.isSet,Hv=Er&&Er.isTypedArray;function lr(j,ne,Y){switch(Y.length){case 0:return j.call(ne);case 1:return j.call(ne,Y[0]);case 2:return j.call(ne,Y[0],Y[1]);case 3:return j.call(ne,Y[0],Y[1],Y[2])}return j.apply(ne,Y)}function oT(j,ne,Y,ke){for(var Ze=-1,xt=j==null?0:j.length;++Ze<xt;){var an=j[Ze];ne(ke,an,Y(an),j)}return ke}function xr(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke&&ne(j[Y],Y,j)!==!1;);return j}function iT(j,ne){for(var Y=j==null?0:j.length;Y--&&ne(j[Y],Y,j)!==!1;);return j}function Vv(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke;)if(!ne(j[Y],Y,j))return!1;return!0}function Yo(j,ne){for(var Y=-1,ke=j==null?0:j.length,Ze=0,xt=[];++Y<ke;){var an=j[Y];ne(an,Y,j)&&(xt[Ze++]=an)}return xt}function Za(j,ne){var Y=j==null?0:j.length;return!!Y&&ws(j,ne,0)>-1}function cf(j,ne,Y){for(var ke=-1,Ze=j==null?0:j.length;++ke<Ze;)if(Y(ne,j[ke]))return!0;return!1}function Vt(j,ne){for(var Y=-1,ke=j==null?0:j.length,Ze=Array(ke);++Y<ke;)Ze[Y]=ne(j[Y],Y,j);return Ze}function Zo(j,ne){for(var Y=-1,ke=ne.length,Ze=j.length;++Y<ke;)j[Ze+Y]=ne[Y];return j}function df(j,ne,Y,ke){var Ze=-1,xt=j==null?0:j.length;for(ke&&xt&&(Y=j[++Ze]);++Ze<xt;)Y=ne(Y,j[Ze],Ze,j);return Y}function sT(j,ne,Y,ke){var Ze=j==null?0:j.length;for(ke&&Ze&&(Y=j[--Ze]);Ze--;)Y=ne(Y,j[Ze],Ze,j);return Y}function ff(j,ne){for(var Y=-1,ke=j==null?0:j.length;++Y<ke;)if(ne(j[Y],Y,j))return!0;return!1}var lT=pf("length");function aT(j){return j.split("")}function uT(j){return j.match(vC)||[]}function Wv(j,ne,Y){var ke;return Y(j,function(Ze,xt,an){if(ne(Ze,xt,an))return ke=xt,!1}),ke}function Qa(j,ne,Y,ke){for(var Ze=j.length,xt=Y+(ke?1:-1);ke?xt--:++xt<Ze;)if(ne(j[xt],xt,j))return xt;return-1}function ws(j,ne,Y){return ne===ne?wT(j,ne,Y):Qa(j,zv,Y)}function cT(j,ne,Y,ke){for(var Ze=Y-1,xt=j.length;++Ze<xt;)if(ke(j[Ze],ne))return Ze;return-1}function zv(j){return j!==j}function qv(j,ne){var Y=j==null?0:j.length;return Y?mf(j,ne)/Y:ft}function pf(j){return function(ne){return ne==null?n:ne[j]}}function hf(j){return function(ne){return j==null?n:j[ne]}}function Kv(j,ne,Y,ke,Ze){return Ze(j,function(xt,an,Pt){Y=ke?(ke=!1,xt):ne(Y,xt,an,Pt)}),Y}function dT(j,ne){var Y=j.length;for(j.sort(ne);Y--;)j[Y]=j[Y].value;return j}function mf(j,ne){for(var Y,ke=-1,Ze=j.length;++ke<Ze;){var xt=ne(j[ke]);xt!==n&&(Y=Y===n?xt:Y+xt)}return Y}function gf(j,ne){for(var Y=-1,ke=Array(j);++Y<j;)ke[Y]=ne(Y);return ke}function fT(j,ne){return Vt(ne,function(Y){return[Y,j[Y]]})}function Gv(j){return j&&j.slice(0,Zv(j)+1).replace(tf,"")}function ar(j){return function(ne){return j(ne)}}function vf(j,ne){return Vt(ne,function(Y){return j[Y]})}function pl(j,ne){return j.has(ne)}function Xv(j,ne){for(var Y=-1,ke=j.length;++Y<ke&&ws(ne,j[Y],0)>-1;);return Y}function Jv(j,ne){for(var Y=j.length;Y--&&ws(ne,j[Y],0)>-1;);return Y}function pT(j,ne){for(var Y=j.length,ke=0;Y--;)j[Y]===ne&&++ke;return ke}var hT=hf(YC),mT=hf(ZC);function gT(j){return"\\"+eT[j]}function vT(j,ne){return j==null?n:j[ne]}function Ss(j){return KC.test(j)}function yT(j){return GC.test(j)}function bT(j){for(var ne,Y=[];!(ne=j.next()).done;)Y.push(ne.value);return Y}function yf(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke,Ze){Y[++ne]=[Ze,ke]}),Y}function Yv(j,ne){return function(Y){return j(ne(Y))}}function Qo(j,ne){for(var Y=-1,ke=j.length,Ze=0,xt=[];++Y<ke;){var an=j[Y];(an===ne||an===p)&&(j[Y]=p,xt[Ze++]=Y)}return xt}function eu(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke){Y[++ne]=ke}),Y}function _T(j){var ne=-1,Y=Array(j.size);return j.forEach(function(ke){Y[++ne]=[ke,ke]}),Y}function wT(j,ne,Y){for(var ke=Y-1,Ze=j.length;++ke<Ze;)if(j[ke]===ne)return ke;return-1}function ST(j,ne,Y){for(var ke=Y+1;ke--;)if(j[ke]===ne)return ke;return ke}function Es(j){return Ss(j)?xT(j):lT(j)}function zr(j){return Ss(j)?$T(j):aT(j)}function Zv(j){for(var ne=j.length;ne--&&pC.test(j.charAt(ne)););return ne}var ET=hf(QC);function xT(j){for(var ne=lf.lastIndex=0;lf.test(j);)++ne;return ne}function $T(j){return j.match(lf)||[]}function CT(j){return j.match(qC)||[]}var TT=function j(ne){ne=ne==null?yn:xs.defaults(yn.Object(),ne,xs.pick(yn,XC));var Y=ne.Array,ke=ne.Date,Ze=ne.Error,xt=ne.Function,an=ne.Math,Pt=ne.Object,bf=ne.RegExp,OT=ne.String,$r=ne.TypeError,tu=Y.prototype,AT=xt.prototype,$s=Pt.prototype,nu=ne["__core-js_shared__"],ru=AT.toString,Ot=$s.hasOwnProperty,PT=0,Qv=function(){var i=/[^.]+$/.exec(nu&&nu.keys&&nu.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),ou=$s.toString,IT=ru.call(Pt),kT=yn._,RT=bf("^"+ru.call(Ot).replace(ef,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),iu=Mv?ne.Buffer:n,ei=ne.Symbol,su=ne.Uint8Array,e0=iu?iu.allocUnsafe:n,lu=Yv(Pt.getPrototypeOf,Pt),t0=Pt.create,n0=$s.propertyIsEnumerable,au=tu.splice,r0=ei?ei.isConcatSpreadable:n,hl=ei?ei.iterator:n,Pi=ei?ei.toStringTag:n,uu=function(){try{var i=Ni(Pt,"defineProperty");return i({},"",{}),i}catch{}}(),LT=ne.clearTimeout!==yn.clearTimeout&&ne.clearTimeout,NT=ke&&ke.now!==yn.Date.now&&ke.now,MT=ne.setTimeout!==yn.setTimeout&&ne.setTimeout,cu=an.ceil,du=an.floor,_f=Pt.getOwnPropertySymbols,DT=iu?iu.isBuffer:n,o0=ne.isFinite,FT=tu.join,BT=Yv(Pt.keys,Pt),un=an.max,Cn=an.min,UT=ke.now,jT=ne.parseInt,i0=an.random,HT=tu.reverse,wf=Ni(ne,"DataView"),ml=Ni(ne,"Map"),Sf=Ni(ne,"Promise"),Cs=Ni(ne,"Set"),gl=Ni(ne,"WeakMap"),vl=Ni(Pt,"create"),fu=gl&&new gl,Ts={},VT=Mi(wf),WT=Mi(ml),zT=Mi(Sf),qT=Mi(Cs),KT=Mi(gl),pu=ei?ei.prototype:n,yl=pu?pu.valueOf:n,s0=pu?pu.toString:n;function $(i){if(Gt(i)&&!Qe(i)&&!(i instanceof ht)){if(i instanceof Cr)return i;if(Ot.call(i,"__wrapped__"))return ly(i)}return new Cr(i)}var Os=function(){function i(){}return function(u){if(!Kt(u))return{};if(t0)return t0(u);i.prototype=u;var f=new i;return i.prototype=n,f}}();function hu(){}function Cr(i,u){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}$.templateSettings={escape:lC,evaluate:aC,interpolate:mv,variable:"",imports:{_:$}},$.prototype=hu.prototype,$.prototype.constructor=$,Cr.prototype=Os(hu.prototype),Cr.prototype.constructor=Cr;function ht(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Le,this.__views__=[]}function GT(){var i=new ht(this.__wrapped__);return i.__actions__=Kn(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Kn(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Kn(this.__views__),i}function XT(){if(this.__filtered__){var i=new ht(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function JT(){var i=this.__wrapped__.value(),u=this.__dir__,f=Qe(i),m=u<0,b=f?i.length:0,A=a5(0,b,this.__views__),R=A.start,M=A.end,W=M-R,re=m?M:R-1,oe=this.__iteratees__,de=oe.length,Te=0,Ne=Cn(W,this.__takeCount__);if(!f||!m&&b==W&&Ne==W)return P0(i,this.__actions__);var qe=[];e:for(;W--&&Te<Ne;){re+=u;for(var st=-1,Ke=i[re];++st<de;){var pt=oe[st],gt=pt.iteratee,dr=pt.type,Un=gt(Ke);if(dr==we)Ke=Un;else if(!Un){if(dr==te)continue e;break e}}qe[Te++]=Ke}return qe}ht.prototype=Os(hu.prototype),ht.prototype.constructor=ht;function Ii(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function YT(){this.__data__=vl?vl(null):{},this.size=0}function ZT(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function QT(i){var u=this.__data__;if(vl){var f=u[i];return f===c?n:f}return Ot.call(u,i)?u[i]:n}function eO(i){var u=this.__data__;return vl?u[i]!==n:Ot.call(u,i)}function tO(i,u){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=vl&&u===n?c:u,this}Ii.prototype.clear=YT,Ii.prototype.delete=ZT,Ii.prototype.get=QT,Ii.prototype.has=eO,Ii.prototype.set=tO;function Co(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function nO(){this.__data__=[],this.size=0}function rO(i){var u=this.__data__,f=mu(u,i);if(f<0)return!1;var m=u.length-1;return f==m?u.pop():au.call(u,f,1),--this.size,!0}function oO(i){var u=this.__data__,f=mu(u,i);return f<0?n:u[f][1]}function iO(i){return mu(this.__data__,i)>-1}function sO(i,u){var f=this.__data__,m=mu(f,i);return m<0?(++this.size,f.push([i,u])):f[m][1]=u,this}Co.prototype.clear=nO,Co.prototype.delete=rO,Co.prototype.get=oO,Co.prototype.has=iO,Co.prototype.set=sO;function To(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var m=i[u];this.set(m[0],m[1])}}function lO(){this.size=0,this.__data__={hash:new Ii,map:new(ml||Co),string:new Ii}}function aO(i){var u=Tu(this,i).delete(i);return this.size-=u?1:0,u}function uO(i){return Tu(this,i).get(i)}function cO(i){return Tu(this,i).has(i)}function dO(i,u){var f=Tu(this,i),m=f.size;return f.set(i,u),this.size+=f.size==m?0:1,this}To.prototype.clear=lO,To.prototype.delete=aO,To.prototype.get=uO,To.prototype.has=cO,To.prototype.set=dO;function ki(i){var u=-1,f=i==null?0:i.length;for(this.__data__=new To;++u<f;)this.add(i[u])}function fO(i){return this.__data__.set(i,c),this}function pO(i){return this.__data__.has(i)}ki.prototype.add=ki.prototype.push=fO,ki.prototype.has=pO;function qr(i){var u=this.__data__=new Co(i);this.size=u.size}function hO(){this.__data__=new Co,this.size=0}function mO(i){var u=this.__data__,f=u.delete(i);return this.size=u.size,f}function gO(i){return this.__data__.get(i)}function vO(i){return this.__data__.has(i)}function yO(i,u){var f=this.__data__;if(f instanceof Co){var m=f.__data__;if(!ml||m.length<o-1)return m.push([i,u]),this.size=++f.size,this;f=this.__data__=new To(m)}return f.set(i,u),this.size=f.size,this}qr.prototype.clear=hO,qr.prototype.delete=mO,qr.prototype.get=gO,qr.prototype.has=vO,qr.prototype.set=yO;function l0(i,u){var f=Qe(i),m=!f&&Di(i),b=!f&&!m&&ii(i),A=!f&&!m&&!b&&ks(i),R=f||m||b||A,M=R?gf(i.length,OT):[],W=M.length;for(var re in i)(u||Ot.call(i,re))&&!(R&&(re=="length"||b&&(re=="offset"||re=="parent")||A&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||Io(re,W)))&&M.push(re);return M}function a0(i){var u=i.length;return u?i[Rf(0,u-1)]:n}function bO(i,u){return Ou(Kn(i),Ri(u,0,i.length))}function _O(i){return Ou(Kn(i))}function Ef(i,u,f){(f!==n&&!Kr(i[u],f)||f===n&&!(u in i))&&Oo(i,u,f)}function bl(i,u,f){var m=i[u];(!(Ot.call(i,u)&&Kr(m,f))||f===n&&!(u in i))&&Oo(i,u,f)}function mu(i,u){for(var f=i.length;f--;)if(Kr(i[f][0],u))return f;return-1}function wO(i,u,f,m){return ti(i,function(b,A,R){u(m,b,f(b),R)}),m}function u0(i,u){return i&&fo(u,pn(u),i)}function SO(i,u){return i&&fo(u,Xn(u),i)}function Oo(i,u,f){u=="__proto__"&&uu?uu(i,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[u]=f}function xf(i,u){for(var f=-1,m=u.length,b=Y(m),A=i==null;++f<m;)b[f]=A?n:op(i,u[f]);return b}function Ri(i,u,f){return i===i&&(f!==n&&(i=i<=f?i:f),u!==n&&(i=i>=u?i:u)),i}function Tr(i,u,f,m,b,A){var R,M=u&h,W=u&g,re=u&y;if(f&&(R=b?f(i,m,b,A):f(i)),R!==n)return R;if(!Kt(i))return i;var oe=Qe(i);if(oe){if(R=c5(i),!M)return Kn(i,R)}else{var de=Tn(i),Te=de==L||de==B;if(ii(i))return R0(i,M);if(de==pe||de==fe||Te&&!b){if(R=W||Te?{}:Z0(i),!M)return W?QO(i,SO(R,i)):ZO(i,u0(R,i))}else{if(!Lt[de])return b?i:{};R=d5(i,de,M)}}A||(A=new qr);var Ne=A.get(i);if(Ne)return Ne;A.set(i,R),Ty(i)?i.forEach(function(Ke){R.add(Tr(Ke,u,f,Ke,i,A))}):$y(i)&&i.forEach(function(Ke,pt){R.set(pt,Tr(Ke,u,f,pt,i,A))});var qe=re?W?Wf:Vf:W?Xn:pn,st=oe?n:qe(i);return xr(st||i,function(Ke,pt){st&&(pt=Ke,Ke=i[pt]),bl(R,pt,Tr(Ke,u,f,pt,i,A))}),R}function EO(i){var u=pn(i);return function(f){return c0(f,i,u)}}function c0(i,u,f){var m=f.length;if(i==null)return!m;for(i=Pt(i);m--;){var b=f[m],A=u[b],R=i[b];if(R===n&&!(b in i)||!A(R))return!1}return!0}function d0(i,u,f){if(typeof i!="function")throw new $r(l);return Cl(function(){i.apply(n,f)},u)}function _l(i,u,f,m){var b=-1,A=Za,R=!0,M=i.length,W=[],re=u.length;if(!M)return W;f&&(u=Vt(u,ar(f))),m?(A=cf,R=!1):u.length>=o&&(A=pl,R=!1,u=new ki(u));e:for(;++b<M;){var oe=i[b],de=f==null?oe:f(oe);if(oe=m||oe!==0?oe:0,R&&de===de){for(var Te=re;Te--;)if(u[Te]===de)continue e;W.push(oe)}else A(u,de,m)||W.push(oe)}return W}var ti=F0(co),f0=F0(Cf,!0);function xO(i,u){var f=!0;return ti(i,function(m,b,A){return f=!!u(m,b,A),f}),f}function gu(i,u,f){for(var m=-1,b=i.length;++m<b;){var A=i[m],R=u(A);if(R!=null&&(M===n?R===R&&!cr(R):f(R,M)))var M=R,W=A}return W}function $O(i,u,f,m){var b=i.length;for(f=ot(f),f<0&&(f=-f>b?0:b+f),m=m===n||m>b?b:ot(m),m<0&&(m+=b),m=f>m?0:Ay(m);f<m;)i[f++]=u;return i}function p0(i,u){var f=[];return ti(i,function(m,b,A){u(m,b,A)&&f.push(m)}),f}function bn(i,u,f,m,b){var A=-1,R=i.length;for(f||(f=p5),b||(b=[]);++A<R;){var M=i[A];u>0&&f(M)?u>1?bn(M,u-1,f,m,b):Zo(b,M):m||(b[b.length]=M)}return b}var $f=B0(),h0=B0(!0);function co(i,u){return i&&$f(i,u,pn)}function Cf(i,u){return i&&h0(i,u,pn)}function vu(i,u){return Yo(u,function(f){return ko(i[f])})}function Li(i,u){u=ri(u,i);for(var f=0,m=u.length;i!=null&&f<m;)i=i[po(u[f++])];return f&&f==m?i:n}function m0(i,u,f){var m=u(i);return Qe(i)?m:Zo(m,f(i))}function Fn(i){return i==null?i===n?Me:ie:Pi&&Pi in Pt(i)?l5(i):_5(i)}function Tf(i,u){return i>u}function CO(i,u){return i!=null&&Ot.call(i,u)}function TO(i,u){return i!=null&&u in Pt(i)}function OO(i,u,f){return i>=Cn(u,f)&&i<un(u,f)}function Of(i,u,f){for(var m=f?cf:Za,b=i[0].length,A=i.length,R=A,M=Y(A),W=1/0,re=[];R--;){var oe=i[R];R&&u&&(oe=Vt(oe,ar(u))),W=Cn(oe.length,W),M[R]=!f&&(u||b>=120&&oe.length>=120)?new ki(R&&oe):n}oe=i[0];var de=-1,Te=M[0];e:for(;++de<b&&re.length<W;){var Ne=oe[de],qe=u?u(Ne):Ne;if(Ne=f||Ne!==0?Ne:0,!(Te?pl(Te,qe):m(re,qe,f))){for(R=A;--R;){var st=M[R];if(!(st?pl(st,qe):m(i[R],qe,f)))continue e}Te&&Te.push(qe),re.push(Ne)}}return re}function AO(i,u,f,m){return co(i,function(b,A,R){u(m,f(b),A,R)}),m}function wl(i,u,f){u=ri(u,i),i=ny(i,u);var m=i==null?i:i[po(Ar(u))];return m==null?n:lr(m,i,f)}function g0(i){return Gt(i)&&Fn(i)==fe}function PO(i){return Gt(i)&&Fn(i)==mt}function IO(i){return Gt(i)&&Fn(i)==tt}function Sl(i,u,f,m,b){return i===u?!0:i==null||u==null||!Gt(i)&&!Gt(u)?i!==i&&u!==u:kO(i,u,f,m,Sl,b)}function kO(i,u,f,m,b,A){var R=Qe(i),M=Qe(u),W=R?$e:Tn(i),re=M?$e:Tn(u);W=W==fe?pe:W,re=re==fe?pe:re;var oe=W==pe,de=re==pe,Te=W==re;if(Te&&ii(i)){if(!ii(u))return!1;R=!0,oe=!1}if(Te&&!oe)return A||(A=new qr),R||ks(i)?X0(i,u,f,m,b,A):i5(i,u,W,f,m,b,A);if(!(f&_)){var Ne=oe&&Ot.call(i,"__wrapped__"),qe=de&&Ot.call(u,"__wrapped__");if(Ne||qe){var st=Ne?i.value():i,Ke=qe?u.value():u;return A||(A=new qr),b(st,Ke,f,m,A)}}return Te?(A||(A=new qr),s5(i,u,f,m,b,A)):!1}function RO(i){return Gt(i)&&Tn(i)==Z}function Af(i,u,f,m){var b=f.length,A=b,R=!m;if(i==null)return!A;for(i=Pt(i);b--;){var M=f[b];if(R&&M[2]?M[1]!==i[M[0]]:!(M[0]in i))return!1}for(;++b<A;){M=f[b];var W=M[0],re=i[W],oe=M[1];if(R&&M[2]){if(re===n&&!(W in i))return!1}else{var de=new qr;if(m)var Te=m(re,oe,W,i,u,de);if(!(Te===n?Sl(oe,re,_|S,m,de):Te))return!1}}return!0}function v0(i){if(!Kt(i)||m5(i))return!1;var u=ko(i)?RT:EC;return u.test(Mi(i))}function LO(i){return Gt(i)&&Fn(i)==ge}function NO(i){return Gt(i)&&Tn(i)==se}function MO(i){return Gt(i)&&Lu(i.length)&&!!Bt[Fn(i)]}function y0(i){return typeof i=="function"?i:i==null?Jn:typeof i=="object"?Qe(i)?w0(i[0],i[1]):_0(i):Uy(i)}function Pf(i){if(!$l(i))return BT(i);var u=[];for(var f in Pt(i))Ot.call(i,f)&&f!="constructor"&&u.push(f);return u}function DO(i){if(!Kt(i))return b5(i);var u=$l(i),f=[];for(var m in i)m=="constructor"&&(u||!Ot.call(i,m))||f.push(m);return f}function If(i,u){return i<u}function b0(i,u){var f=-1,m=Gn(i)?Y(i.length):[];return ti(i,function(b,A,R){m[++f]=u(b,A,R)}),m}function _0(i){var u=qf(i);return u.length==1&&u[0][2]?ey(u[0][0],u[0][1]):function(f){return f===i||Af(f,i,u)}}function w0(i,u){return Gf(i)&&Q0(u)?ey(po(i),u):function(f){var m=op(f,i);return m===n&&m===u?ip(f,i):Sl(u,m,_|S)}}function yu(i,u,f,m,b){i!==u&&$f(u,function(A,R){if(b||(b=new qr),Kt(A))FO(i,u,R,f,yu,m,b);else{var M=m?m(Jf(i,R),A,R+"",i,u,b):n;M===n&&(M=A),Ef(i,R,M)}},Xn)}function FO(i,u,f,m,b,A,R){var M=Jf(i,f),W=Jf(u,f),re=R.get(W);if(re){Ef(i,f,re);return}var oe=A?A(M,W,f+"",i,u,R):n,de=oe===n;if(de){var Te=Qe(W),Ne=!Te&&ii(W),qe=!Te&&!Ne&&ks(W);oe=W,Te||Ne||qe?Qe(M)?oe=M:en(M)?oe=Kn(M):Ne?(de=!1,oe=R0(W,!0)):qe?(de=!1,oe=L0(W,!0)):oe=[]:Tl(W)||Di(W)?(oe=M,Di(M)?oe=Py(M):(!Kt(M)||ko(M))&&(oe=Z0(W))):de=!1}de&&(R.set(W,oe),b(oe,W,m,A,R),R.delete(W)),Ef(i,f,oe)}function S0(i,u){var f=i.length;if(f)return u+=u<0?f:0,Io(u,f)?i[u]:n}function E0(i,u,f){u.length?u=Vt(u,function(A){return Qe(A)?function(R){return Li(R,A.length===1?A[0]:A)}:A}):u=[Jn];var m=-1;u=Vt(u,ar(We()));var b=b0(i,function(A,R,M){var W=Vt(u,function(re){return re(A)});return{criteria:W,index:++m,value:A}});return dT(b,function(A,R){return YO(A,R,f)})}function BO(i,u){return x0(i,u,function(f,m){return ip(i,m)})}function x0(i,u,f){for(var m=-1,b=u.length,A={};++m<b;){var R=u[m],M=Li(i,R);f(M,R)&&El(A,ri(R,i),M)}return A}function UO(i){return function(u){return Li(u,i)}}function kf(i,u,f,m){var b=m?cT:ws,A=-1,R=u.length,M=i;for(i===u&&(u=Kn(u)),f&&(M=Vt(i,ar(f)));++A<R;)for(var W=0,re=u[A],oe=f?f(re):re;(W=b(M,oe,W,m))>-1;)M!==i&&au.call(M,W,1),au.call(i,W,1);return i}function $0(i,u){for(var f=i?u.length:0,m=f-1;f--;){var b=u[f];if(f==m||b!==A){var A=b;Io(b)?au.call(i,b,1):Mf(i,b)}}return i}function Rf(i,u){return i+du(i0()*(u-i+1))}function jO(i,u,f,m){for(var b=-1,A=un(cu((u-i)/(f||1)),0),R=Y(A);A--;)R[m?A:++b]=i,i+=f;return R}function Lf(i,u){var f="";if(!i||u<1||u>Pe)return f;do u%2&&(f+=i),u=du(u/2),u&&(i+=i);while(u);return f}function at(i,u){return Yf(ty(i,u,Jn),i+"")}function HO(i){return a0(Rs(i))}function VO(i,u){var f=Rs(i);return Ou(f,Ri(u,0,f.length))}function El(i,u,f,m){if(!Kt(i))return i;u=ri(u,i);for(var b=-1,A=u.length,R=A-1,M=i;M!=null&&++b<A;){var W=po(u[b]),re=f;if(W==="__proto__"||W==="constructor"||W==="prototype")return i;if(b!=R){var oe=M[W];re=m?m(oe,W,M):n,re===n&&(re=Kt(oe)?oe:Io(u[b+1])?[]:{})}bl(M,W,re),M=M[W]}return i}var C0=fu?function(i,u){return fu.set(i,u),i}:Jn,WO=uu?function(i,u){return uu(i,"toString",{configurable:!0,enumerable:!1,value:lp(u),writable:!0})}:Jn;function zO(i){return Ou(Rs(i))}function Or(i,u,f){var m=-1,b=i.length;u<0&&(u=-u>b?0:b+u),f=f>b?b:f,f<0&&(f+=b),b=u>f?0:f-u>>>0,u>>>=0;for(var A=Y(b);++m<b;)A[m]=i[m+u];return A}function qO(i,u){var f;return ti(i,function(m,b,A){return f=u(m,b,A),!f}),!!f}function bu(i,u,f){var m=0,b=i==null?m:i.length;if(typeof u=="number"&&u===u&&b<=Q){for(;m<b;){var A=m+b>>>1,R=i[A];R!==null&&!cr(R)&&(f?R<=u:R<u)?m=A+1:b=A}return b}return Nf(i,u,Jn,f)}function Nf(i,u,f,m){var b=0,A=i==null?0:i.length;if(A===0)return 0;u=f(u);for(var R=u!==u,M=u===null,W=cr(u),re=u===n;b<A;){var oe=du((b+A)/2),de=f(i[oe]),Te=de!==n,Ne=de===null,qe=de===de,st=cr(de);if(R)var Ke=m||qe;else re?Ke=qe&&(m||Te):M?Ke=qe&&Te&&(m||!Ne):W?Ke=qe&&Te&&!Ne&&(m||!st):Ne||st?Ke=!1:Ke=m?de<=u:de<u;Ke?b=oe+1:A=oe}return Cn(A,Ge)}function T0(i,u){for(var f=-1,m=i.length,b=0,A=[];++f<m;){var R=i[f],M=u?u(R):R;if(!f||!Kr(M,W)){var W=M;A[b++]=R===0?0:R}}return A}function O0(i){return typeof i=="number"?i:cr(i)?ft:+i}function ur(i){if(typeof i=="string")return i;if(Qe(i))return Vt(i,ur)+"";if(cr(i))return s0?s0.call(i):"";var u=i+"";return u=="0"&&1/i==-Ae?"-0":u}function ni(i,u,f){var m=-1,b=Za,A=i.length,R=!0,M=[],W=M;if(f)R=!1,b=cf;else if(A>=o){var re=u?null:r5(i);if(re)return eu(re);R=!1,b=pl,W=new ki}else W=u?[]:M;e:for(;++m<A;){var oe=i[m],de=u?u(oe):oe;if(oe=f||oe!==0?oe:0,R&&de===de){for(var Te=W.length;Te--;)if(W[Te]===de)continue e;u&&W.push(de),M.push(oe)}else b(W,de,f)||(W!==M&&W.push(de),M.push(oe))}return M}function Mf(i,u){return u=ri(u,i),i=ny(i,u),i==null||delete i[po(Ar(u))]}function A0(i,u,f,m){return El(i,u,f(Li(i,u)),m)}function _u(i,u,f,m){for(var b=i.length,A=m?b:-1;(m?A--:++A<b)&&u(i[A],A,i););return f?Or(i,m?0:A,m?A+1:b):Or(i,m?A+1:0,m?b:A)}function P0(i,u){var f=i;return f instanceof ht&&(f=f.value()),df(u,function(m,b){return b.func.apply(b.thisArg,Zo([m],b.args))},f)}function Df(i,u,f){var m=i.length;if(m<2)return m?ni(i[0]):[];for(var b=-1,A=Y(m);++b<m;)for(var R=i[b],M=-1;++M<m;)M!=b&&(A[b]=_l(A[b]||R,i[M],u,f));return ni(bn(A,1),u,f)}function I0(i,u,f){for(var m=-1,b=i.length,A=u.length,R={};++m<b;){var M=m<A?u[m]:n;f(R,i[m],M)}return R}function Ff(i){return en(i)?i:[]}function Bf(i){return typeof i=="function"?i:Jn}function ri(i,u){return Qe(i)?i:Gf(i,u)?[i]:sy(Ct(i))}var KO=at;function oi(i,u,f){var m=i.length;return f=f===n?m:f,!u&&f>=m?i:Or(i,u,f)}var k0=LT||function(i){return yn.clearTimeout(i)};function R0(i,u){if(u)return i.slice();var f=i.length,m=e0?e0(f):new i.constructor(f);return i.copy(m),m}function Uf(i){var u=new i.constructor(i.byteLength);return new su(u).set(new su(i)),u}function GO(i,u){var f=u?Uf(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function XO(i){var u=new i.constructor(i.source,gv.exec(i));return u.lastIndex=i.lastIndex,u}function JO(i){return yl?Pt(yl.call(i)):{}}function L0(i,u){var f=u?Uf(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function N0(i,u){if(i!==u){var f=i!==n,m=i===null,b=i===i,A=cr(i),R=u!==n,M=u===null,W=u===u,re=cr(u);if(!M&&!re&&!A&&i>u||A&&R&&W&&!M&&!re||m&&R&&W||!f&&W||!b)return 1;if(!m&&!A&&!re&&i<u||re&&f&&b&&!m&&!A||M&&f&&b||!R&&b||!W)return-1}return 0}function YO(i,u,f){for(var m=-1,b=i.criteria,A=u.criteria,R=b.length,M=f.length;++m<R;){var W=N0(b[m],A[m]);if(W){if(m>=M)return W;var re=f[m];return W*(re=="desc"?-1:1)}}return i.index-u.index}function M0(i,u,f,m){for(var b=-1,A=i.length,R=f.length,M=-1,W=u.length,re=un(A-R,0),oe=Y(W+re),de=!m;++M<W;)oe[M]=u[M];for(;++b<R;)(de||b<A)&&(oe[f[b]]=i[b]);for(;re--;)oe[M++]=i[b++];return oe}function D0(i,u,f,m){for(var b=-1,A=i.length,R=-1,M=f.length,W=-1,re=u.length,oe=un(A-M,0),de=Y(oe+re),Te=!m;++b<oe;)de[b]=i[b];for(var Ne=b;++W<re;)de[Ne+W]=u[W];for(;++R<M;)(Te||b<A)&&(de[Ne+f[R]]=i[b++]);return de}function Kn(i,u){var f=-1,m=i.length;for(u||(u=Y(m));++f<m;)u[f]=i[f];return u}function fo(i,u,f,m){var b=!f;f||(f={});for(var A=-1,R=u.length;++A<R;){var M=u[A],W=m?m(f[M],i[M],M,f,i):n;W===n&&(W=i[M]),b?Oo(f,M,W):bl(f,M,W)}return f}function ZO(i,u){return fo(i,Kf(i),u)}function QO(i,u){return fo(i,J0(i),u)}function wu(i,u){return function(f,m){var b=Qe(f)?oT:wO,A=u?u():{};return b(f,i,We(m,2),A)}}function As(i){return at(function(u,f){var m=-1,b=f.length,A=b>1?f[b-1]:n,R=b>2?f[2]:n;for(A=i.length>3&&typeof A=="function"?(b--,A):n,R&&Bn(f[0],f[1],R)&&(A=b<3?n:A,b=1),u=Pt(u);++m<b;){var M=f[m];M&&i(u,M,m,A)}return u})}function F0(i,u){return function(f,m){if(f==null)return f;if(!Gn(f))return i(f,m);for(var b=f.length,A=u?b:-1,R=Pt(f);(u?A--:++A<b)&&m(R[A],A,R)!==!1;);return f}}function B0(i){return function(u,f,m){for(var b=-1,A=Pt(u),R=m(u),M=R.length;M--;){var W=R[i?M:++b];if(f(A[W],W,A)===!1)break}return u}}function e5(i,u,f){var m=u&C,b=xl(i);function A(){var R=this&&this!==yn&&this instanceof A?b:i;return R.apply(m?f:this,arguments)}return A}function U0(i){return function(u){u=Ct(u);var f=Ss(u)?zr(u):n,m=f?f[0]:u.charAt(0),b=f?oi(f,1).join(""):u.slice(1);return m[i]()+b}}function Ps(i){return function(u){return df(Fy(Dy(u).replace(WC,"")),i,"")}}function xl(i){return function(){var u=arguments;switch(u.length){case 0:return new i;case 1:return new i(u[0]);case 2:return new i(u[0],u[1]);case 3:return new i(u[0],u[1],u[2]);case 4:return new i(u[0],u[1],u[2],u[3]);case 5:return new i(u[0],u[1],u[2],u[3],u[4]);case 6:return new i(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new i(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=Os(i.prototype),m=i.apply(f,u);return Kt(m)?m:f}}function t5(i,u,f){var m=xl(i);function b(){for(var A=arguments.length,R=Y(A),M=A,W=Is(b);M--;)R[M]=arguments[M];var re=A<3&&R[0]!==W&&R[A-1]!==W?[]:Qo(R,W);if(A-=re.length,A<f)return z0(i,u,Su,b.placeholder,n,R,re,n,n,f-A);var oe=this&&this!==yn&&this instanceof b?m:i;return lr(oe,this,R)}return b}function j0(i){return function(u,f,m){var b=Pt(u);if(!Gn(u)){var A=We(f,3);u=pn(u),f=function(M){return A(b[M],M,b)}}var R=i(u,f,m);return R>-1?b[A?u[R]:R]:n}}function H0(i){return Po(function(u){var f=u.length,m=f,b=Cr.prototype.thru;for(i&&u.reverse();m--;){var A=u[m];if(typeof A!="function")throw new $r(l);if(b&&!R&&Cu(A)=="wrapper")var R=new Cr([],!0)}for(m=R?m:f;++m<f;){A=u[m];var M=Cu(A),W=M=="wrapper"?zf(A):n;W&&Xf(W[0])&&W[1]==(k|E|x|P)&&!W[4].length&&W[9]==1?R=R[Cu(W[0])].apply(R,W[3]):R=A.length==1&&Xf(A)?R[M]():R.thru(A)}return function(){var re=arguments,oe=re[0];if(R&&re.length==1&&Qe(oe))return R.plant(oe).value();for(var de=0,Te=f?u[de].apply(this,re):oe;++de<f;)Te=u[de].call(this,Te);return Te}})}function Su(i,u,f,m,b,A,R,M,W,re){var oe=u&k,de=u&C,Te=u&T,Ne=u&(E|O),qe=u&H,st=Te?n:xl(i);function Ke(){for(var pt=arguments.length,gt=Y(pt),dr=pt;dr--;)gt[dr]=arguments[dr];if(Ne)var Un=Is(Ke),fr=pT(gt,Un);if(m&&(gt=M0(gt,m,b,Ne)),A&&(gt=D0(gt,A,R,Ne)),pt-=fr,Ne&&pt<re){var tn=Qo(gt,Un);return z0(i,u,Su,Ke.placeholder,f,gt,tn,M,W,re-pt)}var Gr=de?f:this,Lo=Te?Gr[i]:i;return pt=gt.length,M?gt=w5(gt,M):qe&&pt>1&&gt.reverse(),oe&&W<pt&&(gt.length=W),this&&this!==yn&&this instanceof Ke&&(Lo=st||xl(Lo)),Lo.apply(Gr,gt)}return Ke}function V0(i,u){return function(f,m){return AO(f,i,u(m),{})}}function Eu(i,u){return function(f,m){var b;if(f===n&&m===n)return u;if(f!==n&&(b=f),m!==n){if(b===n)return m;typeof f=="string"||typeof m=="string"?(f=ur(f),m=ur(m)):(f=O0(f),m=O0(m)),b=i(f,m)}return b}}function jf(i){return Po(function(u){return u=Vt(u,ar(We())),at(function(f){var m=this;return i(u,function(b){return lr(b,m,f)})})})}function xu(i,u){u=u===n?" ":ur(u);var f=u.length;if(f<2)return f?Lf(u,i):u;var m=Lf(u,cu(i/Es(u)));return Ss(u)?oi(zr(m),0,i).join(""):m.slice(0,i)}function n5(i,u,f,m){var b=u&C,A=xl(i);function R(){for(var M=-1,W=arguments.length,re=-1,oe=m.length,de=Y(oe+W),Te=this&&this!==yn&&this instanceof R?A:i;++re<oe;)de[re]=m[re];for(;W--;)de[re++]=arguments[++M];return lr(Te,b?f:this,de)}return R}function W0(i){return function(u,f,m){return m&&typeof m!="number"&&Bn(u,f,m)&&(f=m=n),u=Ro(u),f===n?(f=u,u=0):f=Ro(f),m=m===n?u<f?1:-1:Ro(m),jO(u,f,m,i)}}function $u(i){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=Pr(u),f=Pr(f)),i(u,f)}}function z0(i,u,f,m,b,A,R,M,W,re){var oe=u&E,de=oe?R:n,Te=oe?n:R,Ne=oe?A:n,qe=oe?n:A;u|=oe?x:I,u&=~(oe?I:x),u&w||(u&=~(C|T));var st=[i,u,b,Ne,de,qe,Te,M,W,re],Ke=f.apply(n,st);return Xf(i)&&ry(Ke,st),Ke.placeholder=m,oy(Ke,i,u)}function Hf(i){var u=an[i];return function(f,m){if(f=Pr(f),m=m==null?0:Cn(ot(m),292),m&&o0(f)){var b=(Ct(f)+"e").split("e"),A=u(b[0]+"e"+(+b[1]+m));return b=(Ct(A)+"e").split("e"),+(b[0]+"e"+(+b[1]-m))}return u(f)}}var r5=Cs&&1/eu(new Cs([,-0]))[1]==Ae?function(i){return new Cs(i)}:cp;function q0(i){return function(u){var f=Tn(u);return f==Z?yf(u):f==se?_T(u):fT(u,i(u))}}function Ao(i,u,f,m,b,A,R,M){var W=u&T;if(!W&&typeof i!="function")throw new $r(l);var re=m?m.length:0;if(re||(u&=~(x|I),m=b=n),R=R===n?R:un(ot(R),0),M=M===n?M:ot(M),re-=b?b.length:0,u&I){var oe=m,de=b;m=b=n}var Te=W?n:zf(i),Ne=[i,u,f,m,b,oe,de,A,R,M];if(Te&&y5(Ne,Te),i=Ne[0],u=Ne[1],f=Ne[2],m=Ne[3],b=Ne[4],M=Ne[9]=Ne[9]===n?W?0:i.length:un(Ne[9]-re,0),!M&&u&(E|O)&&(u&=~(E|O)),!u||u==C)var qe=e5(i,u,f);else u==E||u==O?qe=t5(i,u,M):(u==x||u==(C|x))&&!b.length?qe=n5(i,u,f,m):qe=Su.apply(n,Ne);var st=Te?C0:ry;return oy(st(qe,Ne),i,u)}function K0(i,u,f,m){return i===n||Kr(i,$s[f])&&!Ot.call(m,f)?u:i}function G0(i,u,f,m,b,A){return Kt(i)&&Kt(u)&&(A.set(u,i),yu(i,u,n,G0,A),A.delete(u)),i}function o5(i){return Tl(i)?n:i}function X0(i,u,f,m,b,A){var R=f&_,M=i.length,W=u.length;if(M!=W&&!(R&&W>M))return!1;var re=A.get(i),oe=A.get(u);if(re&&oe)return re==u&&oe==i;var de=-1,Te=!0,Ne=f&S?new ki:n;for(A.set(i,u),A.set(u,i);++de<M;){var qe=i[de],st=u[de];if(m)var Ke=R?m(st,qe,de,u,i,A):m(qe,st,de,i,u,A);if(Ke!==n){if(Ke)continue;Te=!1;break}if(Ne){if(!ff(u,function(pt,gt){if(!pl(Ne,gt)&&(qe===pt||b(qe,pt,f,m,A)))return Ne.push(gt)})){Te=!1;break}}else if(!(qe===st||b(qe,st,f,m,A))){Te=!1;break}}return A.delete(i),A.delete(u),Te}function i5(i,u,f,m,b,A,R){switch(f){case ct:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case mt:return!(i.byteLength!=u.byteLength||!A(new su(i),new su(u)));case De:case tt:case le:return Kr(+i,+u);case ln:return i.name==u.name&&i.message==u.message;case ge:case Re:return i==u+"";case Z:var M=yf;case se:var W=m&_;if(M||(M=eu),i.size!=u.size&&!W)return!1;var re=R.get(i);if(re)return re==u;m|=S,R.set(i,u);var oe=X0(M(i),M(u),m,b,A,R);return R.delete(i),oe;case Ie:if(yl)return yl.call(i)==yl.call(u)}return!1}function s5(i,u,f,m,b,A){var R=f&_,M=Vf(i),W=M.length,re=Vf(u),oe=re.length;if(W!=oe&&!R)return!1;for(var de=W;de--;){var Te=M[de];if(!(R?Te in u:Ot.call(u,Te)))return!1}var Ne=A.get(i),qe=A.get(u);if(Ne&&qe)return Ne==u&&qe==i;var st=!0;A.set(i,u),A.set(u,i);for(var Ke=R;++de<W;){Te=M[de];var pt=i[Te],gt=u[Te];if(m)var dr=R?m(gt,pt,Te,u,i,A):m(pt,gt,Te,i,u,A);if(!(dr===n?pt===gt||b(pt,gt,f,m,A):dr)){st=!1;break}Ke||(Ke=Te=="constructor")}if(st&&!Ke){var Un=i.constructor,fr=u.constructor;Un!=fr&&"constructor"in i&&"constructor"in u&&!(typeof Un=="function"&&Un instanceof Un&&typeof fr=="function"&&fr instanceof fr)&&(st=!1)}return A.delete(i),A.delete(u),st}function Po(i){return Yf(ty(i,n,cy),i+"")}function Vf(i){return m0(i,pn,Kf)}function Wf(i){return m0(i,Xn,J0)}var zf=fu?function(i){return fu.get(i)}:cp;function Cu(i){for(var u=i.name+"",f=Ts[u],m=Ot.call(Ts,u)?f.length:0;m--;){var b=f[m],A=b.func;if(A==null||A==i)return b.name}return u}function Is(i){var u=Ot.call($,"placeholder")?$:i;return u.placeholder}function We(){var i=$.iteratee||ap;return i=i===ap?y0:i,arguments.length?i(arguments[0],arguments[1]):i}function Tu(i,u){var f=i.__data__;return h5(u)?f[typeof u=="string"?"string":"hash"]:f.map}function qf(i){for(var u=pn(i),f=u.length;f--;){var m=u[f],b=i[m];u[f]=[m,b,Q0(b)]}return u}function Ni(i,u){var f=vT(i,u);return v0(f)?f:n}function l5(i){var u=Ot.call(i,Pi),f=i[Pi];try{i[Pi]=n;var m=!0}catch{}var b=ou.call(i);return m&&(u?i[Pi]=f:delete i[Pi]),b}var Kf=_f?function(i){return i==null?[]:(i=Pt(i),Yo(_f(i),function(u){return n0.call(i,u)}))}:dp,J0=_f?function(i){for(var u=[];i;)Zo(u,Kf(i)),i=lu(i);return u}:dp,Tn=Fn;(wf&&Tn(new wf(new ArrayBuffer(1)))!=ct||ml&&Tn(new ml)!=Z||Sf&&Tn(Sf.resolve())!=Ce||Cs&&Tn(new Cs)!=se||gl&&Tn(new gl)!=je)&&(Tn=function(i){var u=Fn(i),f=u==pe?i.constructor:n,m=f?Mi(f):"";if(m)switch(m){case VT:return ct;case WT:return Z;case zT:return Ce;case qT:return se;case KT:return je}return u});function a5(i,u,f){for(var m=-1,b=f.length;++m<b;){var A=f[m],R=A.size;switch(A.type){case"drop":i+=R;break;case"dropRight":u-=R;break;case"take":u=Cn(u,i+R);break;case"takeRight":i=un(i,u-R);break}}return{start:i,end:u}}function u5(i){var u=i.match(mC);return u?u[1].split(gC):[]}function Y0(i,u,f){u=ri(u,i);for(var m=-1,b=u.length,A=!1;++m<b;){var R=po(u[m]);if(!(A=i!=null&&f(i,R)))break;i=i[R]}return A||++m!=b?A:(b=i==null?0:i.length,!!b&&Lu(b)&&Io(R,b)&&(Qe(i)||Di(i)))}function c5(i){var u=i.length,f=new i.constructor(u);return u&&typeof i[0]=="string"&&Ot.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function Z0(i){return typeof i.constructor=="function"&&!$l(i)?Os(lu(i)):{}}function d5(i,u,f){var m=i.constructor;switch(u){case mt:return Uf(i);case De:case tt:return new m(+i);case ct:return GO(i,f);case Ht:case Dn:case uo:case vs:case $o:case ys:case vn:case qn:case bs:return L0(i,f);case Z:return new m;case le:case Re:return new m(i);case ge:return XO(i);case se:return new m;case Ie:return JO(i)}}function f5(i,u){var f=u.length;if(!f)return i;var m=f-1;return u[m]=(f>1?"& ":"")+u[m],u=u.join(f>2?", ":" "),i.replace(hC,`{
    2828/* [wrapped with `+u+`] */
    29 `)}function c5(i){return Qe(i)||Mi(i)||!!(n0&&i&&i[n0])}function Po(i,u){var f=typeof i;return u=u??Ie,!!u&&(f=="number"||f!="symbol"&&SC.test(i))&&i>-1&&i%1==0&&i<u}function Fn(i,u,f){if(!Kt(f))return!1;var m=typeof u;return(m=="number"?qn(f)&&Po(u,f.length):m=="string"&&u in f)?qr(f[u],i):!1}function Gf(i,u){if(Qe(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||cr(i)?!0:lC.test(i)||!sC.test(i)||u!=null&&i in It(u)}function d5(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function Xf(i){var u=Cu(i),f=x[u];if(typeof f!="function"||!(u in ht.prototype))return!1;if(i===f)return!0;var m=zf(f);return!!m&&i===m[0]}function f5(i){return!!Zv&&Zv in i}var p5=nu?ko:fp;function $l(i){var u=i&&i.constructor,f=typeof u=="function"&&u.prototype||$s;return i===f}function Z0(i){return i===i&&!Kt(i)}function Q0(i,u){return function(f){return f==null?!1:f[i]===u&&(u!==n||i in It(f))}}function h5(i){var u=ku(i,function(m){return f.size===d&&f.clear(),m}),f=u.cache;return u}function m5(i,u){var f=i[1],m=u[1],b=f|m,A=b<(C|T|k),R=m==k&&f==E||m==k&&f==I&&i[7].length<=u[8]||m==(k|I)&&u[7].length<=u[8]&&f==E;if(!(A||R))return i;m&C&&(i[2]=u[2],b|=f&C?0:w);var M=u[3];if(M){var W=i[3];i[3]=W?N0(W,M,u[4]):M,i[4]=W?Zo(i[3],p):u[4]}return M=u[5],M&&(W=i[5],i[5]=W?M0(W,M,u[6]):M,i[6]=W?Zo(i[5],p):u[6]),M=u[7],M&&(i[7]=M),m&k&&(i[8]=i[8]==null?u[8]:Cn(i[8],u[8])),i[9]==null&&(i[9]=u[9]),i[0]=u[0],i[1]=b,i}function g5(i){var u=[];if(i!=null)for(var f in It(i))u.push(f);return u}function v5(i){return ou.call(i)}function ey(i,u,f){return u=un(u===n?i.length-1:u,0),function(){for(var m=arguments,b=-1,A=un(m.length-u,0),R=Y(A);++b<A;)R[b]=m[u+b];b=-1;for(var M=Y(u+1);++b<u;)M[b]=m[b];return M[u]=f(R),lr(i,this,M)}}function ty(i,u){return u.length<2?i:Ri(i,Or(u,0,-1))}function y5(i,u){for(var f=i.length,m=Cn(u.length,f),b=zn(i);m--;){var A=u[m];i[m]=Po(A,f)?b[A]:n}return i}function Jf(i,u){if(!(u==="constructor"&&typeof i[u]=="function")&&u!="__proto__")return i[u]}var ny=oy($0),Cl=RT||function(i,u){return yn.setTimeout(i,u)},Yf=oy(jO);function ry(i,u,f){var m=u+"";return Yf(i,u5(m,b5(s5(m),f)))}function oy(i){var u=0,f=0;return function(){var m=DT(),b=G-(m-f);if(f=m,b>0){if(++u>=z)return arguments[0]}else u=0;return i.apply(n,arguments)}}function Ou(i,u){var f=-1,m=i.length,b=m-1;for(u=u===n?m:u;++f<u;){var A=Rf(f,b),R=i[A];i[A]=i[f],i[f]=R}return i.length=u,i}var iy=h5(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(aC,function(f,m,b,A){u.push(b?A.replace(gC,"$1"):m||f)}),u});function fo(i){if(typeof i=="string"||cr(i))return i;var u=i+"";return u=="0"&&1/i==-Ae?"-0":u}function Ni(i){if(i!=null){try{return ru.call(i)}catch{}try{return i+""}catch{}}return""}function b5(i,u){return xr(ae,function(f){var m="_."+f[0];u&f[1]&&!Za(i,m)&&i.push(m)}),i.sort()}function sy(i){if(i instanceof ht)return i.clone();var u=new Cr(i.__wrapped__,i.__chain__);return u.__actions__=zn(i.__actions__),u.__index__=i.__index__,u.__values__=i.__values__,u}function _5(i,u,f){(f?Fn(i,u,f):u===n)?u=1:u=un(ot(u),0);var m=i==null?0:i.length;if(!m||u<1)return[];for(var b=0,A=0,R=Y(cu(m/u));b<m;)R[A++]=Or(i,b,b+=u);return R}function w5(i){for(var u=-1,f=i==null?0:i.length,m=0,b=[];++u<f;){var A=i[u];A&&(b[m++]=A)}return b}function S5(){var i=arguments.length;if(!i)return[];for(var u=Y(i-1),f=arguments[0],m=i;m--;)u[m-1]=arguments[m];return Yo(Qe(f)?zn(f):[f],bn(u,1))}var E5=at(function(i,u){return en(i)?_l(i,bn(u,1,en,!0)):[]}),x5=at(function(i,u){var f=Ar(u);return en(f)&&(f=n),en(i)?_l(i,bn(u,1,en,!0),Ve(f,2)):[]}),$5=at(function(i,u){var f=Ar(u);return en(f)&&(f=n),en(i)?_l(i,bn(u,1,en,!0),n,f):[]});function C5(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),Or(i,u<0?0:u,m)):[]}function T5(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),u=m-u,Or(i,0,u<0?0:u)):[]}function O5(i,u){return i&&i.length?_u(i,Ve(u,3),!0,!0):[]}function A5(i,u){return i&&i.length?_u(i,Ve(u,3),!0):[]}function I5(i,u,f,m){var b=i==null?0:i.length;return b?(f&&typeof f!="number"&&Fn(i,u,f)&&(f=0,m=b),SO(i,u,f,m)):[]}function ly(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=f==null?0:ot(f);return b<0&&(b=un(m+b,0)),Qa(i,Ve(u,3),b)}function ay(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=m-1;return f!==n&&(b=ot(f),b=f<0?un(m+b,0):Cn(b,m-1)),Qa(i,Ve(u,3),b,!0)}function uy(i){var u=i==null?0:i.length;return u?bn(i,1):[]}function P5(i){var u=i==null?0:i.length;return u?bn(i,Ae):[]}function k5(i,u){var f=i==null?0:i.length;return f?(u=u===n?1:ot(u),bn(i,u)):[]}function R5(i){for(var u=-1,f=i==null?0:i.length,m={};++u<f;){var b=i[u];m[b[0]]=b[1]}return m}function cy(i){return i&&i.length?i[0]:n}function L5(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=f==null?0:ot(f);return b<0&&(b=un(m+b,0)),ws(i,u,b)}function N5(i){var u=i==null?0:i.length;return u?Or(i,0,-1):[]}var M5=at(function(i){var u=Vt(i,Ff);return u.length&&u[0]===i[0]?Of(u):[]}),D5=at(function(i){var u=Ar(i),f=Vt(i,Ff);return u===Ar(f)?u=n:f.pop(),f.length&&f[0]===i[0]?Of(f,Ve(u,2)):[]}),F5=at(function(i){var u=Ar(i),f=Vt(i,Ff);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===i[0]?Of(f,n,u):[]});function B5(i,u){return i==null?"":NT.call(i,u)}function Ar(i){var u=i==null?0:i.length;return u?i[u-1]:n}function U5(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=m;return f!==n&&(b=ot(f),b=b<0?un(m+b,0):Cn(b,m-1)),u===u?bT(i,u,b):Qa(i,Wv,b,!0)}function j5(i,u){return i&&i.length?w0(i,ot(u)):n}var H5=at(dy);function dy(i,u){return i&&i.length&&u&&u.length?kf(i,u):i}function V5(i,u,f){return i&&i.length&&u&&u.length?kf(i,u,Ve(f,2)):i}function W5(i,u,f){return i&&i.length&&u&&u.length?kf(i,u,n,f):i}var z5=Io(function(i,u){var f=i==null?0:i.length,m=xf(i,u);return x0(i,Vt(u,function(b){return Po(b,f)?+b:b}).sort(L0)),m});function q5(i,u){var f=[];if(!(i&&i.length))return f;var m=-1,b=[],A=i.length;for(u=Ve(u,3);++m<A;){var R=i[m];u(R,m,i)&&(f.push(R),b.push(m))}return x0(i,b),f}function Zf(i){return i==null?i:BT.call(i)}function K5(i,u,f){var m=i==null?0:i.length;return m?(f&&typeof f!="number"&&Fn(i,u,f)?(u=0,f=m):(u=u==null?0:ot(u),f=f===n?m:ot(f)),Or(i,u,f)):[]}function G5(i,u){return bu(i,u)}function X5(i,u,f){return Nf(i,u,Ve(f,2))}function J5(i,u){var f=i==null?0:i.length;if(f){var m=bu(i,u);if(m<f&&qr(i[m],u))return m}return-1}function Y5(i,u){return bu(i,u,!0)}function Z5(i,u,f){return Nf(i,u,Ve(f,2),!0)}function Q5(i,u){var f=i==null?0:i.length;if(f){var m=bu(i,u,!0)-1;if(qr(i[m],u))return m}return-1}function eA(i){return i&&i.length?C0(i):[]}function tA(i,u){return i&&i.length?C0(i,Ve(u,2)):[]}function nA(i){var u=i==null?0:i.length;return u?Or(i,1,u):[]}function rA(i,u,f){return i&&i.length?(u=f||u===n?1:ot(u),Or(i,0,u<0?0:u)):[]}function oA(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),u=m-u,Or(i,u<0?0:u,m)):[]}function iA(i,u){return i&&i.length?_u(i,Ve(u,3),!1,!0):[]}function sA(i,u){return i&&i.length?_u(i,Ve(u,3)):[]}var lA=at(function(i){return ti(bn(i,1,en,!0))}),aA=at(function(i){var u=Ar(i);return en(u)&&(u=n),ti(bn(i,1,en,!0),Ve(u,2))}),uA=at(function(i){var u=Ar(i);return u=typeof u=="function"?u:n,ti(bn(i,1,en,!0),n,u)});function cA(i){return i&&i.length?ti(i):[]}function dA(i,u){return i&&i.length?ti(i,Ve(u,2)):[]}function fA(i,u){return u=typeof u=="function"?u:n,i&&i.length?ti(i,n,u):[]}function Qf(i){if(!(i&&i.length))return[];var u=0;return i=Jo(i,function(f){if(en(f))return u=un(f.length,u),!0}),gf(u,function(f){return Vt(i,pf(f))})}function fy(i,u){if(!(i&&i.length))return[];var f=Qf(i);return u==null?f:Vt(f,function(m){return lr(u,n,m)})}var pA=at(function(i,u){return en(i)?_l(i,u):[]}),hA=at(function(i){return Df(Jo(i,en))}),mA=at(function(i){var u=Ar(i);return en(u)&&(u=n),Df(Jo(i,en),Ve(u,2))}),gA=at(function(i){var u=Ar(i);return u=typeof u=="function"?u:n,Df(Jo(i,en),n,u)}),vA=at(Qf);function yA(i,u){return I0(i||[],u||[],bl)}function bA(i,u){return I0(i||[],u||[],El)}var _A=at(function(i){var u=i.length,f=u>1?i[u-1]:n;return f=typeof f=="function"?(i.pop(),f):n,fy(i,f)});function py(i){var u=x(i);return u.__chain__=!0,u}function wA(i,u){return u(i),i}function Au(i,u){return u(i)}var SA=Io(function(i){var u=i.length,f=u?i[0]:0,m=this.__wrapped__,b=function(A){return xf(A,i)};return u>1||this.__actions__.length||!(m instanceof ht)||!Po(f)?this.thru(b):(m=m.slice(f,+f+(u?1:0)),m.__actions__.push({func:Au,args:[b],thisArg:n}),new Cr(m,this.__chain__).thru(function(A){return u&&!A.length&&A.push(n),A}))});function EA(){return py(this)}function xA(){return new Cr(this.value(),this.__chain__)}function $A(){this.__values__===n&&(this.__values__=Ty(this.value()));var i=this.__index__>=this.__values__.length,u=i?n:this.__values__[this.__index__++];return{done:i,value:u}}function CA(){return this}function TA(i){for(var u,f=this;f instanceof hu;){var m=sy(f);m.__index__=0,m.__values__=n,u?b.__wrapped__=m:u=m;var b=m;f=f.__wrapped__}return b.__wrapped__=i,u}function OA(){var i=this.__wrapped__;if(i instanceof ht){var u=i;return this.__actions__.length&&(u=new ht(this)),u=u.reverse(),u.__actions__.push({func:Au,args:[Zf],thisArg:n}),new Cr(u,this.__chain__)}return this.thru(Zf)}function AA(){return A0(this.__wrapped__,this.__actions__)}var IA=wu(function(i,u,f){Ot.call(i,f)?++i[f]:Oo(i,f,1)});function PA(i,u,f){var m=Qe(i)?Hv:wO;return f&&Fn(i,u,f)&&(u=n),m(i,Ve(u,3))}function kA(i,u){var f=Qe(i)?Jo:f0;return f(i,Ve(u,3))}var RA=U0(ly),LA=U0(ay);function NA(i,u){return bn(Iu(i,u),1)}function MA(i,u){return bn(Iu(i,u),Ae)}function DA(i,u,f){return f=f===n?1:ot(f),bn(Iu(i,u),f)}function hy(i,u){var f=Qe(i)?xr:ei;return f(i,Ve(u,3))}function my(i,u){var f=Qe(i)?nT:d0;return f(i,Ve(u,3))}var FA=wu(function(i,u,f){Ot.call(i,f)?i[f].push(u):Oo(i,f,[u])});function BA(i,u,f,m){i=qn(i)?i:Rs(i),f=f&&!m?ot(f):0;var b=i.length;return f<0&&(f=un(b+f,0)),Nu(i)?f<=b&&i.indexOf(u,f)>-1:!!b&&ws(i,u,f)>-1}var UA=at(function(i,u,f){var m=-1,b=typeof u=="function",A=qn(i)?Y(i.length):[];return ei(i,function(R){A[++m]=b?lr(u,R,f):wl(R,u,f)}),A}),jA=wu(function(i,u,f){Oo(i,f,u)});function Iu(i,u){var f=Qe(i)?Vt:y0;return f(i,Ve(u,3))}function HA(i,u,f,m){return i==null?[]:(Qe(u)||(u=u==null?[]:[u]),f=m?n:f,Qe(f)||(f=f==null?[]:[f]),S0(i,u,f))}var VA=wu(function(i,u,f){i[f?0:1].push(u)},function(){return[[],[]]});function WA(i,u,f){var m=Qe(i)?df:qv,b=arguments.length<3;return m(i,Ve(u,4),f,b,ei)}function zA(i,u,f){var m=Qe(i)?rT:qv,b=arguments.length<3;return m(i,Ve(u,4),f,b,d0)}function qA(i,u){var f=Qe(i)?Jo:f0;return f(i,Ru(Ve(u,3)))}function KA(i){var u=Qe(i)?l0:BO;return u(i)}function GA(i,u,f){(f?Fn(i,u,f):u===n)?u=1:u=ot(u);var m=Qe(i)?gO:UO;return m(i,u)}function XA(i){var u=Qe(i)?vO:HO;return u(i)}function JA(i){if(i==null)return 0;if(qn(i))return Nu(i)?Es(i):i.length;var u=Tn(i);return u==Z||u==se?i.size:If(i).length}function YA(i,u,f){var m=Qe(i)?ff:VO;return f&&Fn(i,u,f)&&(u=n),m(i,Ve(u,3))}var ZA=at(function(i,u){if(i==null)return[];var f=u.length;return f>1&&Fn(i,u[0],u[1])?u=[]:f>2&&Fn(u[0],u[1],u[2])&&(u=[u[0]]),S0(i,bn(u,1),[])}),Pu=kT||function(){return yn.Date.now()};function QA(i,u){if(typeof u!="function")throw new $r(l);return i=ot(i),function(){if(--i<1)return u.apply(this,arguments)}}function gy(i,u,f){return u=f?n:u,u=i&&u==null?i.length:u,Ao(i,k,n,n,n,n,u)}function vy(i,u){var f;if(typeof u!="function")throw new $r(l);return i=ot(i),function(){return--i>0&&(f=u.apply(this,arguments)),i<=1&&(u=n),f}}var ep=at(function(i,u,f){var m=C;if(f.length){var b=Zo(f,Ps(ep));m|=$}return Ao(i,m,u,f,b)}),yy=at(function(i,u,f){var m=C|T;if(f.length){var b=Zo(f,Ps(yy));m|=$}return Ao(u,m,i,f,b)});function by(i,u,f){u=f?n:u;var m=Ao(i,E,n,n,n,n,n,u);return m.placeholder=by.placeholder,m}function _y(i,u,f){u=f?n:u;var m=Ao(i,O,n,n,n,n,n,u);return m.placeholder=_y.placeholder,m}function wy(i,u,f){var m,b,A,R,M,W,re=0,oe=!1,de=!1,Te=!0;if(typeof i!="function")throw new $r(l);u=Ir(u)||0,Kt(f)&&(oe=!!f.leading,de="maxWait"in f,A=de?un(Ir(f.maxWait)||0,u):A,Te="trailing"in f?!!f.trailing:Te);function Ne(tn){var Kr=m,Lo=b;return m=b=n,re=tn,R=i.apply(Lo,Kr),R}function ze(tn){return re=tn,M=Cl(pt,u),oe?Ne(tn):R}function st(tn){var Kr=tn-W,Lo=tn-re,Uy=u-Kr;return de?Cn(Uy,A-Lo):Uy}function qe(tn){var Kr=tn-W,Lo=tn-re;return W===n||Kr>=u||Kr<0||de&&Lo>=A}function pt(){var tn=Pu();if(qe(tn))return gt(tn);M=Cl(pt,st(tn))}function gt(tn){return M=n,Te&&m?Ne(tn):(m=b=n,R)}function dr(){M!==n&&P0(M),re=0,m=W=b=M=n}function Bn(){return M===n?R:gt(Pu())}function fr(){var tn=Pu(),Kr=qe(tn);if(m=arguments,b=this,W=tn,Kr){if(M===n)return ze(W);if(de)return P0(M),M=Cl(pt,u),Ne(W)}return M===n&&(M=Cl(pt,u)),R}return fr.cancel=dr,fr.flush=Bn,fr}var e3=at(function(i,u){return c0(i,1,u)}),t3=at(function(i,u,f){return c0(i,Ir(u)||0,f)});function n3(i){return Ao(i,H)}function ku(i,u){if(typeof i!="function"||u!=null&&typeof u!="function")throw new $r(l);var f=function(){var m=arguments,b=u?u.apply(this,m):m[0],A=f.cache;if(A.has(b))return A.get(b);var R=i.apply(this,m);return f.cache=A.set(b,R)||A,R};return f.cache=new(ku.Cache||To),f}ku.Cache=To;function Ru(i){if(typeof i!="function")throw new $r(l);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function r3(i){return vy(2,i)}var o3=WO(function(i,u){u=u.length==1&&Qe(u[0])?Vt(u[0],ar(Ve())):Vt(bn(u,1),ar(Ve()));var f=u.length;return at(function(m){for(var b=-1,A=Cn(m.length,f);++b<A;)m[b]=u[b].call(this,m[b]);return lr(i,this,m)})}),tp=at(function(i,u){var f=Zo(u,Ps(tp));return Ao(i,$,n,u,f)}),Sy=at(function(i,u){var f=Zo(u,Ps(Sy));return Ao(i,P,n,u,f)}),i3=Io(function(i,u){return Ao(i,I,n,n,n,u)});function s3(i,u){if(typeof i!="function")throw new $r(l);return u=u===n?u:ot(u),at(i,u)}function l3(i,u){if(typeof i!="function")throw new $r(l);return u=u==null?0:un(ot(u),0),at(function(f){var m=f[u],b=ri(f,0,u);return m&&Yo(b,m),lr(i,this,b)})}function a3(i,u,f){var m=!0,b=!0;if(typeof i!="function")throw new $r(l);return Kt(f)&&(m="leading"in f?!!f.leading:m,b="trailing"in f?!!f.trailing:b),wy(i,u,{leading:m,maxWait:u,trailing:b})}function u3(i){return gy(i,1)}function c3(i,u){return tp(Bf(u),i)}function d3(){if(!arguments.length)return[];var i=arguments[0];return Qe(i)?i:[i]}function f3(i){return Tr(i,y)}function p3(i,u){return u=typeof u=="function"?u:n,Tr(i,y,u)}function h3(i){return Tr(i,h|y)}function m3(i,u){return u=typeof u=="function"?u:n,Tr(i,h|y,u)}function g3(i,u){return u==null||u0(i,u,pn(u))}function qr(i,u){return i===u||i!==i&&u!==u}var v3=$u(Tf),y3=$u(function(i,u){return i>=u}),Mi=m0(function(){return arguments}())?m0:function(i){return Gt(i)&&Ot.call(i,"callee")&&!t0.call(i,"callee")},Qe=Y.isArray,b3=Mv?ar(Mv):TO;function qn(i){return i!=null&&Lu(i.length)&&!ko(i)}function en(i){return Gt(i)&&qn(i)}function _3(i){return i===!0||i===!1||Gt(i)&&Dn(i)==De}var oi=LT||fp,w3=Dv?ar(Dv):OO;function S3(i){return Gt(i)&&i.nodeType===1&&!Tl(i)}function E3(i){if(i==null)return!0;if(qn(i)&&(Qe(i)||typeof i=="string"||typeof i.splice=="function"||oi(i)||ks(i)||Mi(i)))return!i.length;var u=Tn(i);if(u==Z||u==se)return!i.size;if($l(i))return!If(i).length;for(var f in i)if(Ot.call(i,f))return!1;return!0}function x3(i,u){return Sl(i,u)}function $3(i,u,f){f=typeof f=="function"?f:n;var m=f?f(i,u):n;return m===n?Sl(i,u,n,f):!!m}function np(i){if(!Gt(i))return!1;var u=Dn(i);return u==ln||u==gn||typeof i.message=="string"&&typeof i.name=="string"&&!Tl(i)}function C3(i){return typeof i=="number"&&r0(i)}function ko(i){if(!Kt(i))return!1;var u=Dn(i);return u==L||u==B||u==He||u==he}function Ey(i){return typeof i=="number"&&i==ot(i)}function Lu(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Ie}function Kt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function Gt(i){return i!=null&&typeof i=="object"}var xy=Fv?ar(Fv):IO;function T3(i,u){return i===u||Af(i,u,qf(u))}function O3(i,u,f){return f=typeof f=="function"?f:n,Af(i,u,qf(u),f)}function A3(i){return $y(i)&&i!=+i}function I3(i){if(p5(i))throw new Ze(s);return g0(i)}function P3(i){return i===null}function k3(i){return i==null}function $y(i){return typeof i=="number"||Gt(i)&&Dn(i)==le}function Tl(i){if(!Gt(i)||Dn(i)!=pe)return!1;var u=lu(i);if(u===null)return!0;var f=Ot.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&ru.call(f)==OT}var rp=Bv?ar(Bv):PO;function R3(i){return Ey(i)&&i>=-Ie&&i<=Ie}var Cy=Uv?ar(Uv):kO;function Nu(i){return typeof i=="string"||!Qe(i)&&Gt(i)&&Dn(i)==Re}function cr(i){return typeof i=="symbol"||Gt(i)&&Dn(i)==Pe}var ks=jv?ar(jv):RO;function L3(i){return i===n}function N3(i){return Gt(i)&&Tn(i)==je}function M3(i){return Gt(i)&&Dn(i)==rt}var D3=$u(Pf),F3=$u(function(i,u){return i<=u});function Ty(i){if(!i)return[];if(qn(i))return Nu(i)?Wr(i):zn(i);if(hl&&i[hl])return gT(i[hl]());var u=Tn(i),f=u==Z?yf:u==se?eu:Rs;return f(i)}function Ro(i){if(!i)return i===0?i:0;if(i=Ir(i),i===Ae||i===-Ae){var u=i<0?-1:1;return u*Ye}return i===i?i:0}function ot(i){var u=Ro(i),f=u%1;return u===u?f?u-f:u:0}function Oy(i){return i?ki(ot(i),0,Le):0}function Ir(i){if(typeof i=="number")return i;if(cr(i))return ft;if(Kt(i)){var u=typeof i.valueOf=="function"?i.valueOf():i;i=Kt(u)?u+"":u}if(typeof i!="string")return i===0?i:+i;i=Kv(i);var f=bC.test(i);return f||wC.test(i)?QC(i.slice(2),f?2:8):yC.test(i)?ft:+i}function Ay(i){return co(i,Kn(i))}function B3(i){return i?ki(ot(i),-Ie,Ie):i===0?i:0}function Ct(i){return i==null?"":ur(i)}var U3=As(function(i,u){if($l(u)||qn(u)){co(u,pn(u),i);return}for(var f in u)Ot.call(u,f)&&bl(i,f,u[f])}),Iy=As(function(i,u){co(u,Kn(u),i)}),Mu=As(function(i,u,f,m){co(u,Kn(u),i,m)}),j3=As(function(i,u,f,m){co(u,pn(u),i,m)}),H3=Io(xf);function V3(i,u){var f=Os(i);return u==null?f:a0(f,u)}var W3=at(function(i,u){i=It(i);var f=-1,m=u.length,b=m>2?u[2]:n;for(b&&Fn(u[0],u[1],b)&&(m=1);++f<m;)for(var A=u[f],R=Kn(A),M=-1,W=R.length;++M<W;){var re=R[M],oe=i[re];(oe===n||qr(oe,$s[re])&&!Ot.call(i,re))&&(i[re]=A[re])}return i}),z3=at(function(i){return i.push(n,K0),lr(Py,n,i)});function q3(i,u){return Vv(i,Ve(u,3),uo)}function K3(i,u){return Vv(i,Ve(u,3),Cf)}function G3(i,u){return i==null?i:$f(i,Ve(u,3),Kn)}function X3(i,u){return i==null?i:p0(i,Ve(u,3),Kn)}function J3(i,u){return i&&uo(i,Ve(u,3))}function Y3(i,u){return i&&Cf(i,Ve(u,3))}function Z3(i){return i==null?[]:vu(i,pn(i))}function Q3(i){return i==null?[]:vu(i,Kn(i))}function op(i,u,f){var m=i==null?n:Ri(i,u);return m===n?f:m}function eI(i,u){return i!=null&&J0(i,u,EO)}function ip(i,u){return i!=null&&J0(i,u,xO)}var tI=H0(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ou.call(u)),i[u]=f},lp(Gn)),nI=H0(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ou.call(u)),Ot.call(i,u)?i[u].push(f):i[u]=[f]},Ve),rI=at(wl);function pn(i){return qn(i)?s0(i):If(i)}function Kn(i){return qn(i)?s0(i,!0):LO(i)}function oI(i,u){var f={};return u=Ve(u,3),uo(i,function(m,b,A){Oo(f,u(m,b,A),m)}),f}function iI(i,u){var f={};return u=Ve(u,3),uo(i,function(m,b,A){Oo(f,b,u(m,b,A))}),f}var sI=As(function(i,u,f){yu(i,u,f)}),Py=As(function(i,u,f,m){yu(i,u,f,m)}),lI=Io(function(i,u){var f={};if(i==null)return f;var m=!1;u=Vt(u,function(A){return A=ni(A,i),m||(m=A.length>1),A}),co(i,Wf(i),f),m&&(f=Tr(f,h|g|y,t5));for(var b=u.length;b--;)Mf(f,u[b]);return f});function aI(i,u){return ky(i,Ru(Ve(u)))}var uI=Io(function(i,u){return i==null?{}:MO(i,u)});function ky(i,u){if(i==null)return{};var f=Vt(Wf(i),function(m){return[m]});return u=Ve(u),E0(i,f,function(m,b){return u(m,b[0])})}function cI(i,u,f){u=ni(u,i);var m=-1,b=u.length;for(b||(b=1,i=n);++m<b;){var A=i==null?n:i[fo(u[m])];A===n&&(m=b,A=f),i=ko(A)?A.call(i):A}return i}function dI(i,u,f){return i==null?i:El(i,u,f)}function fI(i,u,f,m){return m=typeof m=="function"?m:n,i==null?i:El(i,u,f,m)}var Ry=z0(pn),Ly=z0(Kn);function pI(i,u,f){var m=Qe(i),b=m||oi(i)||ks(i);if(u=Ve(u,4),f==null){var A=i&&i.constructor;b?f=m?new A:[]:Kt(i)?f=ko(A)?Os(lu(i)):{}:f={}}return(b?xr:uo)(i,function(R,M,W){return u(f,R,M,W)}),f}function hI(i,u){return i==null?!0:Mf(i,u)}function mI(i,u,f){return i==null?i:O0(i,u,Bf(f))}function gI(i,u,f,m){return m=typeof m=="function"?m:n,i==null?i:O0(i,u,Bf(f),m)}function Rs(i){return i==null?[]:vf(i,pn(i))}function vI(i){return i==null?[]:vf(i,Kn(i))}function yI(i,u,f){return f===n&&(f=u,u=n),f!==n&&(f=Ir(f),f=f===f?f:0),u!==n&&(u=Ir(u),u=u===u?u:0),ki(Ir(i),u,f)}function bI(i,u,f){return u=Ro(u),f===n?(f=u,u=0):f=Ro(f),i=Ir(i),$O(i,u,f)}function _I(i,u,f){if(f&&typeof f!="boolean"&&Fn(i,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&u===n?(i=0,u=1):(i=Ro(i),u===n?(u=i,i=0):u=Ro(u)),i>u){var m=i;i=u,u=m}if(f||i%1||u%1){var b=o0();return Cn(i+b*(u-i+ZC("1e-"+((b+"").length-1))),u)}return Rf(i,u)}var wI=Is(function(i,u,f){return u=u.toLowerCase(),i+(f?Ny(u):u)});function Ny(i){return sp(Ct(i).toLowerCase())}function My(i){return i=Ct(i),i&&i.replace(EC,dT).replace(HC,"")}function SI(i,u,f){i=Ct(i),u=ur(u);var m=i.length;f=f===n?m:ki(ot(f),0,m);var b=f;return f-=u.length,f>=0&&i.slice(f,b)==u}function EI(i){return i=Ct(i),i&&rC.test(i)?i.replace(pv,fT):i}function xI(i){return i=Ct(i),i&&uC.test(i)?i.replace(ef,"\\$&"):i}var $I=Is(function(i,u,f){return i+(f?"-":"")+u.toLowerCase()}),CI=Is(function(i,u,f){return i+(f?" ":"")+u.toLowerCase()}),TI=B0("toLowerCase");function OI(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;if(!u||m>=u)return i;var b=(u-m)/2;return xu(du(b),f)+i+xu(cu(b),f)}function AI(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;return u&&m<u?i+xu(u-m,f):i}function II(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;return u&&m<u?xu(u-m,f)+i:i}function PI(i,u,f){return f||u==null?u=0:u&&(u=+u),FT(Ct(i).replace(tf,""),u||0)}function kI(i,u,f){return(f?Fn(i,u,f):u===n)?u=1:u=ot(u),Lf(Ct(i),u)}function RI(){var i=arguments,u=Ct(i[0]);return i.length<3?u:u.replace(i[1],i[2])}var LI=Is(function(i,u,f){return i+(f?"_":"")+u.toLowerCase()});function NI(i,u,f){return f&&typeof f!="number"&&Fn(i,u,f)&&(u=f=n),f=f===n?Le:f>>>0,f?(i=Ct(i),i&&(typeof u=="string"||u!=null&&!rp(u))&&(u=ur(u),!u&&Ss(i))?ri(Wr(i),0,f):i.split(u,f)):[]}var MI=Is(function(i,u,f){return i+(f?" ":"")+sp(u)});function DI(i,u,f){return i=Ct(i),f=f==null?0:ki(ot(f),0,i.length),u=ur(u),i.slice(f,f+u.length)==u}function FI(i,u,f){var m=x.templateSettings;f&&Fn(i,u,f)&&(u=n),i=Ct(i),u=Mu({},u,m,q0);var b=Mu({},u.imports,m.imports,q0),A=pn(b),R=vf(b,A),M,W,re=0,oe=u.interpolate||Xa,de="__p += '",Te=bf((u.escape||Xa).source+"|"+oe.source+"|"+(oe===hv?vC:Xa).source+"|"+(u.evaluate||Xa).source+"|$","g"),Ne="//# sourceURL="+(Ot.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++KC+"]")+`
    30 `;i.replace(Te,function(qe,pt,gt,dr,Bn,fr){return gt||(gt=dr),de+=i.slice(re,fr).replace(xC,pT),pt&&(M=!0,de+=`' +
     29`)}function p5(i){return Qe(i)||Di(i)||!!(r0&&i&&i[r0])}function Io(i,u){var f=typeof i;return u=u??Pe,!!u&&(f=="number"||f!="symbol"&&$C.test(i))&&i>-1&&i%1==0&&i<u}function Bn(i,u,f){if(!Kt(f))return!1;var m=typeof u;return(m=="number"?Gn(f)&&Io(u,f.length):m=="string"&&u in f)?Kr(f[u],i):!1}function Gf(i,u){if(Qe(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||cr(i)?!0:cC.test(i)||!uC.test(i)||u!=null&&i in Pt(u)}function h5(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function Xf(i){var u=Cu(i),f=$[u];if(typeof f!="function"||!(u in ht.prototype))return!1;if(i===f)return!0;var m=zf(f);return!!m&&i===m[0]}function m5(i){return!!Qv&&Qv in i}var g5=nu?ko:fp;function $l(i){var u=i&&i.constructor,f=typeof u=="function"&&u.prototype||$s;return i===f}function Q0(i){return i===i&&!Kt(i)}function ey(i,u){return function(f){return f==null?!1:f[i]===u&&(u!==n||i in Pt(f))}}function v5(i){var u=ku(i,function(m){return f.size===d&&f.clear(),m}),f=u.cache;return u}function y5(i,u){var f=i[1],m=u[1],b=f|m,A=b<(C|T|k),R=m==k&&f==E||m==k&&f==P&&i[7].length<=u[8]||m==(k|P)&&u[7].length<=u[8]&&f==E;if(!(A||R))return i;m&C&&(i[2]=u[2],b|=f&C?0:w);var M=u[3];if(M){var W=i[3];i[3]=W?M0(W,M,u[4]):M,i[4]=W?Qo(i[3],p):u[4]}return M=u[5],M&&(W=i[5],i[5]=W?D0(W,M,u[6]):M,i[6]=W?Qo(i[5],p):u[6]),M=u[7],M&&(i[7]=M),m&k&&(i[8]=i[8]==null?u[8]:Cn(i[8],u[8])),i[9]==null&&(i[9]=u[9]),i[0]=u[0],i[1]=b,i}function b5(i){var u=[];if(i!=null)for(var f in Pt(i))u.push(f);return u}function _5(i){return ou.call(i)}function ty(i,u,f){return u=un(u===n?i.length-1:u,0),function(){for(var m=arguments,b=-1,A=un(m.length-u,0),R=Y(A);++b<A;)R[b]=m[u+b];b=-1;for(var M=Y(u+1);++b<u;)M[b]=m[b];return M[u]=f(R),lr(i,this,M)}}function ny(i,u){return u.length<2?i:Li(i,Or(u,0,-1))}function w5(i,u){for(var f=i.length,m=Cn(u.length,f),b=Kn(i);m--;){var A=u[m];i[m]=Io(A,f)?b[A]:n}return i}function Jf(i,u){if(!(u==="constructor"&&typeof i[u]=="function")&&u!="__proto__")return i[u]}var ry=iy(C0),Cl=MT||function(i,u){return yn.setTimeout(i,u)},Yf=iy(WO);function oy(i,u,f){var m=u+"";return Yf(i,f5(m,S5(u5(m),f)))}function iy(i){var u=0,f=0;return function(){var m=UT(),b=G-(m-f);if(f=m,b>0){if(++u>=z)return arguments[0]}else u=0;return i.apply(n,arguments)}}function Ou(i,u){var f=-1,m=i.length,b=m-1;for(u=u===n?m:u;++f<u;){var A=Rf(f,b),R=i[A];i[A]=i[f],i[f]=R}return i.length=u,i}var sy=v5(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(dC,function(f,m,b,A){u.push(b?A.replace(bC,"$1"):m||f)}),u});function po(i){if(typeof i=="string"||cr(i))return i;var u=i+"";return u=="0"&&1/i==-Ae?"-0":u}function Mi(i){if(i!=null){try{return ru.call(i)}catch{}try{return i+""}catch{}}return""}function S5(i,u){return xr(ae,function(f){var m="_."+f[0];u&f[1]&&!Za(i,m)&&i.push(m)}),i.sort()}function ly(i){if(i instanceof ht)return i.clone();var u=new Cr(i.__wrapped__,i.__chain__);return u.__actions__=Kn(i.__actions__),u.__index__=i.__index__,u.__values__=i.__values__,u}function E5(i,u,f){(f?Bn(i,u,f):u===n)?u=1:u=un(ot(u),0);var m=i==null?0:i.length;if(!m||u<1)return[];for(var b=0,A=0,R=Y(cu(m/u));b<m;)R[A++]=Or(i,b,b+=u);return R}function x5(i){for(var u=-1,f=i==null?0:i.length,m=0,b=[];++u<f;){var A=i[u];A&&(b[m++]=A)}return b}function $5(){var i=arguments.length;if(!i)return[];for(var u=Y(i-1),f=arguments[0],m=i;m--;)u[m-1]=arguments[m];return Zo(Qe(f)?Kn(f):[f],bn(u,1))}var C5=at(function(i,u){return en(i)?_l(i,bn(u,1,en,!0)):[]}),T5=at(function(i,u){var f=Ar(u);return en(f)&&(f=n),en(i)?_l(i,bn(u,1,en,!0),We(f,2)):[]}),O5=at(function(i,u){var f=Ar(u);return en(f)&&(f=n),en(i)?_l(i,bn(u,1,en,!0),n,f):[]});function A5(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),Or(i,u<0?0:u,m)):[]}function P5(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),u=m-u,Or(i,0,u<0?0:u)):[]}function I5(i,u){return i&&i.length?_u(i,We(u,3),!0,!0):[]}function k5(i,u){return i&&i.length?_u(i,We(u,3),!0):[]}function R5(i,u,f,m){var b=i==null?0:i.length;return b?(f&&typeof f!="number"&&Bn(i,u,f)&&(f=0,m=b),$O(i,u,f,m)):[]}function ay(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=f==null?0:ot(f);return b<0&&(b=un(m+b,0)),Qa(i,We(u,3),b)}function uy(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=m-1;return f!==n&&(b=ot(f),b=f<0?un(m+b,0):Cn(b,m-1)),Qa(i,We(u,3),b,!0)}function cy(i){var u=i==null?0:i.length;return u?bn(i,1):[]}function L5(i){var u=i==null?0:i.length;return u?bn(i,Ae):[]}function N5(i,u){var f=i==null?0:i.length;return f?(u=u===n?1:ot(u),bn(i,u)):[]}function M5(i){for(var u=-1,f=i==null?0:i.length,m={};++u<f;){var b=i[u];m[b[0]]=b[1]}return m}function dy(i){return i&&i.length?i[0]:n}function D5(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=f==null?0:ot(f);return b<0&&(b=un(m+b,0)),ws(i,u,b)}function F5(i){var u=i==null?0:i.length;return u?Or(i,0,-1):[]}var B5=at(function(i){var u=Vt(i,Ff);return u.length&&u[0]===i[0]?Of(u):[]}),U5=at(function(i){var u=Ar(i),f=Vt(i,Ff);return u===Ar(f)?u=n:f.pop(),f.length&&f[0]===i[0]?Of(f,We(u,2)):[]}),j5=at(function(i){var u=Ar(i),f=Vt(i,Ff);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===i[0]?Of(f,n,u):[]});function H5(i,u){return i==null?"":FT.call(i,u)}function Ar(i){var u=i==null?0:i.length;return u?i[u-1]:n}function V5(i,u,f){var m=i==null?0:i.length;if(!m)return-1;var b=m;return f!==n&&(b=ot(f),b=b<0?un(m+b,0):Cn(b,m-1)),u===u?ST(i,u,b):Qa(i,zv,b,!0)}function W5(i,u){return i&&i.length?S0(i,ot(u)):n}var z5=at(fy);function fy(i,u){return i&&i.length&&u&&u.length?kf(i,u):i}function q5(i,u,f){return i&&i.length&&u&&u.length?kf(i,u,We(f,2)):i}function K5(i,u,f){return i&&i.length&&u&&u.length?kf(i,u,n,f):i}var G5=Po(function(i,u){var f=i==null?0:i.length,m=xf(i,u);return $0(i,Vt(u,function(b){return Io(b,f)?+b:b}).sort(N0)),m});function X5(i,u){var f=[];if(!(i&&i.length))return f;var m=-1,b=[],A=i.length;for(u=We(u,3);++m<A;){var R=i[m];u(R,m,i)&&(f.push(R),b.push(m))}return $0(i,b),f}function Zf(i){return i==null?i:HT.call(i)}function J5(i,u,f){var m=i==null?0:i.length;return m?(f&&typeof f!="number"&&Bn(i,u,f)?(u=0,f=m):(u=u==null?0:ot(u),f=f===n?m:ot(f)),Or(i,u,f)):[]}function Y5(i,u){return bu(i,u)}function Z5(i,u,f){return Nf(i,u,We(f,2))}function Q5(i,u){var f=i==null?0:i.length;if(f){var m=bu(i,u);if(m<f&&Kr(i[m],u))return m}return-1}function eA(i,u){return bu(i,u,!0)}function tA(i,u,f){return Nf(i,u,We(f,2),!0)}function nA(i,u){var f=i==null?0:i.length;if(f){var m=bu(i,u,!0)-1;if(Kr(i[m],u))return m}return-1}function rA(i){return i&&i.length?T0(i):[]}function oA(i,u){return i&&i.length?T0(i,We(u,2)):[]}function iA(i){var u=i==null?0:i.length;return u?Or(i,1,u):[]}function sA(i,u,f){return i&&i.length?(u=f||u===n?1:ot(u),Or(i,0,u<0?0:u)):[]}function lA(i,u,f){var m=i==null?0:i.length;return m?(u=f||u===n?1:ot(u),u=m-u,Or(i,u<0?0:u,m)):[]}function aA(i,u){return i&&i.length?_u(i,We(u,3),!1,!0):[]}function uA(i,u){return i&&i.length?_u(i,We(u,3)):[]}var cA=at(function(i){return ni(bn(i,1,en,!0))}),dA=at(function(i){var u=Ar(i);return en(u)&&(u=n),ni(bn(i,1,en,!0),We(u,2))}),fA=at(function(i){var u=Ar(i);return u=typeof u=="function"?u:n,ni(bn(i,1,en,!0),n,u)});function pA(i){return i&&i.length?ni(i):[]}function hA(i,u){return i&&i.length?ni(i,We(u,2)):[]}function mA(i,u){return u=typeof u=="function"?u:n,i&&i.length?ni(i,n,u):[]}function Qf(i){if(!(i&&i.length))return[];var u=0;return i=Yo(i,function(f){if(en(f))return u=un(f.length,u),!0}),gf(u,function(f){return Vt(i,pf(f))})}function py(i,u){if(!(i&&i.length))return[];var f=Qf(i);return u==null?f:Vt(f,function(m){return lr(u,n,m)})}var gA=at(function(i,u){return en(i)?_l(i,u):[]}),vA=at(function(i){return Df(Yo(i,en))}),yA=at(function(i){var u=Ar(i);return en(u)&&(u=n),Df(Yo(i,en),We(u,2))}),bA=at(function(i){var u=Ar(i);return u=typeof u=="function"?u:n,Df(Yo(i,en),n,u)}),_A=at(Qf);function wA(i,u){return I0(i||[],u||[],bl)}function SA(i,u){return I0(i||[],u||[],El)}var EA=at(function(i){var u=i.length,f=u>1?i[u-1]:n;return f=typeof f=="function"?(i.pop(),f):n,py(i,f)});function hy(i){var u=$(i);return u.__chain__=!0,u}function xA(i,u){return u(i),i}function Au(i,u){return u(i)}var $A=Po(function(i){var u=i.length,f=u?i[0]:0,m=this.__wrapped__,b=function(A){return xf(A,i)};return u>1||this.__actions__.length||!(m instanceof ht)||!Io(f)?this.thru(b):(m=m.slice(f,+f+(u?1:0)),m.__actions__.push({func:Au,args:[b],thisArg:n}),new Cr(m,this.__chain__).thru(function(A){return u&&!A.length&&A.push(n),A}))});function CA(){return hy(this)}function TA(){return new Cr(this.value(),this.__chain__)}function OA(){this.__values__===n&&(this.__values__=Oy(this.value()));var i=this.__index__>=this.__values__.length,u=i?n:this.__values__[this.__index__++];return{done:i,value:u}}function AA(){return this}function PA(i){for(var u,f=this;f instanceof hu;){var m=ly(f);m.__index__=0,m.__values__=n,u?b.__wrapped__=m:u=m;var b=m;f=f.__wrapped__}return b.__wrapped__=i,u}function IA(){var i=this.__wrapped__;if(i instanceof ht){var u=i;return this.__actions__.length&&(u=new ht(this)),u=u.reverse(),u.__actions__.push({func:Au,args:[Zf],thisArg:n}),new Cr(u,this.__chain__)}return this.thru(Zf)}function kA(){return P0(this.__wrapped__,this.__actions__)}var RA=wu(function(i,u,f){Ot.call(i,f)?++i[f]:Oo(i,f,1)});function LA(i,u,f){var m=Qe(i)?Vv:xO;return f&&Bn(i,u,f)&&(u=n),m(i,We(u,3))}function NA(i,u){var f=Qe(i)?Yo:p0;return f(i,We(u,3))}var MA=j0(ay),DA=j0(uy);function FA(i,u){return bn(Pu(i,u),1)}function BA(i,u){return bn(Pu(i,u),Ae)}function UA(i,u,f){return f=f===n?1:ot(f),bn(Pu(i,u),f)}function my(i,u){var f=Qe(i)?xr:ti;return f(i,We(u,3))}function gy(i,u){var f=Qe(i)?iT:f0;return f(i,We(u,3))}var jA=wu(function(i,u,f){Ot.call(i,f)?i[f].push(u):Oo(i,f,[u])});function HA(i,u,f,m){i=Gn(i)?i:Rs(i),f=f&&!m?ot(f):0;var b=i.length;return f<0&&(f=un(b+f,0)),Nu(i)?f<=b&&i.indexOf(u,f)>-1:!!b&&ws(i,u,f)>-1}var VA=at(function(i,u,f){var m=-1,b=typeof u=="function",A=Gn(i)?Y(i.length):[];return ti(i,function(R){A[++m]=b?lr(u,R,f):wl(R,u,f)}),A}),WA=wu(function(i,u,f){Oo(i,f,u)});function Pu(i,u){var f=Qe(i)?Vt:b0;return f(i,We(u,3))}function zA(i,u,f,m){return i==null?[]:(Qe(u)||(u=u==null?[]:[u]),f=m?n:f,Qe(f)||(f=f==null?[]:[f]),E0(i,u,f))}var qA=wu(function(i,u,f){i[f?0:1].push(u)},function(){return[[],[]]});function KA(i,u,f){var m=Qe(i)?df:Kv,b=arguments.length<3;return m(i,We(u,4),f,b,ti)}function GA(i,u,f){var m=Qe(i)?sT:Kv,b=arguments.length<3;return m(i,We(u,4),f,b,f0)}function XA(i,u){var f=Qe(i)?Yo:p0;return f(i,Ru(We(u,3)))}function JA(i){var u=Qe(i)?a0:HO;return u(i)}function YA(i,u,f){(f?Bn(i,u,f):u===n)?u=1:u=ot(u);var m=Qe(i)?bO:VO;return m(i,u)}function ZA(i){var u=Qe(i)?_O:zO;return u(i)}function QA(i){if(i==null)return 0;if(Gn(i))return Nu(i)?Es(i):i.length;var u=Tn(i);return u==Z||u==se?i.size:Pf(i).length}function e3(i,u,f){var m=Qe(i)?ff:qO;return f&&Bn(i,u,f)&&(u=n),m(i,We(u,3))}var t3=at(function(i,u){if(i==null)return[];var f=u.length;return f>1&&Bn(i,u[0],u[1])?u=[]:f>2&&Bn(u[0],u[1],u[2])&&(u=[u[0]]),E0(i,bn(u,1),[])}),Iu=NT||function(){return yn.Date.now()};function n3(i,u){if(typeof u!="function")throw new $r(l);return i=ot(i),function(){if(--i<1)return u.apply(this,arguments)}}function vy(i,u,f){return u=f?n:u,u=i&&u==null?i.length:u,Ao(i,k,n,n,n,n,u)}function yy(i,u){var f;if(typeof u!="function")throw new $r(l);return i=ot(i),function(){return--i>0&&(f=u.apply(this,arguments)),i<=1&&(u=n),f}}var ep=at(function(i,u,f){var m=C;if(f.length){var b=Qo(f,Is(ep));m|=x}return Ao(i,m,u,f,b)}),by=at(function(i,u,f){var m=C|T;if(f.length){var b=Qo(f,Is(by));m|=x}return Ao(u,m,i,f,b)});function _y(i,u,f){u=f?n:u;var m=Ao(i,E,n,n,n,n,n,u);return m.placeholder=_y.placeholder,m}function wy(i,u,f){u=f?n:u;var m=Ao(i,O,n,n,n,n,n,u);return m.placeholder=wy.placeholder,m}function Sy(i,u,f){var m,b,A,R,M,W,re=0,oe=!1,de=!1,Te=!0;if(typeof i!="function")throw new $r(l);u=Pr(u)||0,Kt(f)&&(oe=!!f.leading,de="maxWait"in f,A=de?un(Pr(f.maxWait)||0,u):A,Te="trailing"in f?!!f.trailing:Te);function Ne(tn){var Gr=m,Lo=b;return m=b=n,re=tn,R=i.apply(Lo,Gr),R}function qe(tn){return re=tn,M=Cl(pt,u),oe?Ne(tn):R}function st(tn){var Gr=tn-W,Lo=tn-re,jy=u-Gr;return de?Cn(jy,A-Lo):jy}function Ke(tn){var Gr=tn-W,Lo=tn-re;return W===n||Gr>=u||Gr<0||de&&Lo>=A}function pt(){var tn=Iu();if(Ke(tn))return gt(tn);M=Cl(pt,st(tn))}function gt(tn){return M=n,Te&&m?Ne(tn):(m=b=n,R)}function dr(){M!==n&&k0(M),re=0,m=W=b=M=n}function Un(){return M===n?R:gt(Iu())}function fr(){var tn=Iu(),Gr=Ke(tn);if(m=arguments,b=this,W=tn,Gr){if(M===n)return qe(W);if(de)return k0(M),M=Cl(pt,u),Ne(W)}return M===n&&(M=Cl(pt,u)),R}return fr.cancel=dr,fr.flush=Un,fr}var r3=at(function(i,u){return d0(i,1,u)}),o3=at(function(i,u,f){return d0(i,Pr(u)||0,f)});function i3(i){return Ao(i,H)}function ku(i,u){if(typeof i!="function"||u!=null&&typeof u!="function")throw new $r(l);var f=function(){var m=arguments,b=u?u.apply(this,m):m[0],A=f.cache;if(A.has(b))return A.get(b);var R=i.apply(this,m);return f.cache=A.set(b,R)||A,R};return f.cache=new(ku.Cache||To),f}ku.Cache=To;function Ru(i){if(typeof i!="function")throw new $r(l);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function s3(i){return yy(2,i)}var l3=KO(function(i,u){u=u.length==1&&Qe(u[0])?Vt(u[0],ar(We())):Vt(bn(u,1),ar(We()));var f=u.length;return at(function(m){for(var b=-1,A=Cn(m.length,f);++b<A;)m[b]=u[b].call(this,m[b]);return lr(i,this,m)})}),tp=at(function(i,u){var f=Qo(u,Is(tp));return Ao(i,x,n,u,f)}),Ey=at(function(i,u){var f=Qo(u,Is(Ey));return Ao(i,I,n,u,f)}),a3=Po(function(i,u){return Ao(i,P,n,n,n,u)});function u3(i,u){if(typeof i!="function")throw new $r(l);return u=u===n?u:ot(u),at(i,u)}function c3(i,u){if(typeof i!="function")throw new $r(l);return u=u==null?0:un(ot(u),0),at(function(f){var m=f[u],b=oi(f,0,u);return m&&Zo(b,m),lr(i,this,b)})}function d3(i,u,f){var m=!0,b=!0;if(typeof i!="function")throw new $r(l);return Kt(f)&&(m="leading"in f?!!f.leading:m,b="trailing"in f?!!f.trailing:b),Sy(i,u,{leading:m,maxWait:u,trailing:b})}function f3(i){return vy(i,1)}function p3(i,u){return tp(Bf(u),i)}function h3(){if(!arguments.length)return[];var i=arguments[0];return Qe(i)?i:[i]}function m3(i){return Tr(i,y)}function g3(i,u){return u=typeof u=="function"?u:n,Tr(i,y,u)}function v3(i){return Tr(i,h|y)}function y3(i,u){return u=typeof u=="function"?u:n,Tr(i,h|y,u)}function b3(i,u){return u==null||c0(i,u,pn(u))}function Kr(i,u){return i===u||i!==i&&u!==u}var _3=$u(Tf),w3=$u(function(i,u){return i>=u}),Di=g0(function(){return arguments}())?g0:function(i){return Gt(i)&&Ot.call(i,"callee")&&!n0.call(i,"callee")},Qe=Y.isArray,S3=Dv?ar(Dv):PO;function Gn(i){return i!=null&&Lu(i.length)&&!ko(i)}function en(i){return Gt(i)&&Gn(i)}function E3(i){return i===!0||i===!1||Gt(i)&&Fn(i)==De}var ii=DT||fp,x3=Fv?ar(Fv):IO;function $3(i){return Gt(i)&&i.nodeType===1&&!Tl(i)}function C3(i){if(i==null)return!0;if(Gn(i)&&(Qe(i)||typeof i=="string"||typeof i.splice=="function"||ii(i)||ks(i)||Di(i)))return!i.length;var u=Tn(i);if(u==Z||u==se)return!i.size;if($l(i))return!Pf(i).length;for(var f in i)if(Ot.call(i,f))return!1;return!0}function T3(i,u){return Sl(i,u)}function O3(i,u,f){f=typeof f=="function"?f:n;var m=f?f(i,u):n;return m===n?Sl(i,u,n,f):!!m}function np(i){if(!Gt(i))return!1;var u=Fn(i);return u==ln||u==gn||typeof i.message=="string"&&typeof i.name=="string"&&!Tl(i)}function A3(i){return typeof i=="number"&&o0(i)}function ko(i){if(!Kt(i))return!1;var u=Fn(i);return u==L||u==B||u==Ve||u==me}function xy(i){return typeof i=="number"&&i==ot(i)}function Lu(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Pe}function Kt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function Gt(i){return i!=null&&typeof i=="object"}var $y=Bv?ar(Bv):RO;function P3(i,u){return i===u||Af(i,u,qf(u))}function I3(i,u,f){return f=typeof f=="function"?f:n,Af(i,u,qf(u),f)}function k3(i){return Cy(i)&&i!=+i}function R3(i){if(g5(i))throw new Ze(s);return v0(i)}function L3(i){return i===null}function N3(i){return i==null}function Cy(i){return typeof i=="number"||Gt(i)&&Fn(i)==le}function Tl(i){if(!Gt(i)||Fn(i)!=pe)return!1;var u=lu(i);if(u===null)return!0;var f=Ot.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&ru.call(f)==IT}var rp=Uv?ar(Uv):LO;function M3(i){return xy(i)&&i>=-Pe&&i<=Pe}var Ty=jv?ar(jv):NO;function Nu(i){return typeof i=="string"||!Qe(i)&&Gt(i)&&Fn(i)==Re}function cr(i){return typeof i=="symbol"||Gt(i)&&Fn(i)==Ie}var ks=Hv?ar(Hv):MO;function D3(i){return i===n}function F3(i){return Gt(i)&&Tn(i)==je}function B3(i){return Gt(i)&&Fn(i)==rt}var U3=$u(If),j3=$u(function(i,u){return i<=u});function Oy(i){if(!i)return[];if(Gn(i))return Nu(i)?zr(i):Kn(i);if(hl&&i[hl])return bT(i[hl]());var u=Tn(i),f=u==Z?yf:u==se?eu:Rs;return f(i)}function Ro(i){if(!i)return i===0?i:0;if(i=Pr(i),i===Ae||i===-Ae){var u=i<0?-1:1;return u*Ye}return i===i?i:0}function ot(i){var u=Ro(i),f=u%1;return u===u?f?u-f:u:0}function Ay(i){return i?Ri(ot(i),0,Le):0}function Pr(i){if(typeof i=="number")return i;if(cr(i))return ft;if(Kt(i)){var u=typeof i.valueOf=="function"?i.valueOf():i;i=Kt(u)?u+"":u}if(typeof i!="string")return i===0?i:+i;i=Gv(i);var f=SC.test(i);return f||xC.test(i)?nT(i.slice(2),f?2:8):wC.test(i)?ft:+i}function Py(i){return fo(i,Xn(i))}function H3(i){return i?Ri(ot(i),-Pe,Pe):i===0?i:0}function Ct(i){return i==null?"":ur(i)}var V3=As(function(i,u){if($l(u)||Gn(u)){fo(u,pn(u),i);return}for(var f in u)Ot.call(u,f)&&bl(i,f,u[f])}),Iy=As(function(i,u){fo(u,Xn(u),i)}),Mu=As(function(i,u,f,m){fo(u,Xn(u),i,m)}),W3=As(function(i,u,f,m){fo(u,pn(u),i,m)}),z3=Po(xf);function q3(i,u){var f=Os(i);return u==null?f:u0(f,u)}var K3=at(function(i,u){i=Pt(i);var f=-1,m=u.length,b=m>2?u[2]:n;for(b&&Bn(u[0],u[1],b)&&(m=1);++f<m;)for(var A=u[f],R=Xn(A),M=-1,W=R.length;++M<W;){var re=R[M],oe=i[re];(oe===n||Kr(oe,$s[re])&&!Ot.call(i,re))&&(i[re]=A[re])}return i}),G3=at(function(i){return i.push(n,G0),lr(ky,n,i)});function X3(i,u){return Wv(i,We(u,3),co)}function J3(i,u){return Wv(i,We(u,3),Cf)}function Y3(i,u){return i==null?i:$f(i,We(u,3),Xn)}function Z3(i,u){return i==null?i:h0(i,We(u,3),Xn)}function Q3(i,u){return i&&co(i,We(u,3))}function eP(i,u){return i&&Cf(i,We(u,3))}function tP(i){return i==null?[]:vu(i,pn(i))}function nP(i){return i==null?[]:vu(i,Xn(i))}function op(i,u,f){var m=i==null?n:Li(i,u);return m===n?f:m}function rP(i,u){return i!=null&&Y0(i,u,CO)}function ip(i,u){return i!=null&&Y0(i,u,TO)}var oP=V0(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ou.call(u)),i[u]=f},lp(Jn)),iP=V0(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ou.call(u)),Ot.call(i,u)?i[u].push(f):i[u]=[f]},We),sP=at(wl);function pn(i){return Gn(i)?l0(i):Pf(i)}function Xn(i){return Gn(i)?l0(i,!0):DO(i)}function lP(i,u){var f={};return u=We(u,3),co(i,function(m,b,A){Oo(f,u(m,b,A),m)}),f}function aP(i,u){var f={};return u=We(u,3),co(i,function(m,b,A){Oo(f,b,u(m,b,A))}),f}var uP=As(function(i,u,f){yu(i,u,f)}),ky=As(function(i,u,f,m){yu(i,u,f,m)}),cP=Po(function(i,u){var f={};if(i==null)return f;var m=!1;u=Vt(u,function(A){return A=ri(A,i),m||(m=A.length>1),A}),fo(i,Wf(i),f),m&&(f=Tr(f,h|g|y,o5));for(var b=u.length;b--;)Mf(f,u[b]);return f});function dP(i,u){return Ry(i,Ru(We(u)))}var fP=Po(function(i,u){return i==null?{}:BO(i,u)});function Ry(i,u){if(i==null)return{};var f=Vt(Wf(i),function(m){return[m]});return u=We(u),x0(i,f,function(m,b){return u(m,b[0])})}function pP(i,u,f){u=ri(u,i);var m=-1,b=u.length;for(b||(b=1,i=n);++m<b;){var A=i==null?n:i[po(u[m])];A===n&&(m=b,A=f),i=ko(A)?A.call(i):A}return i}function hP(i,u,f){return i==null?i:El(i,u,f)}function mP(i,u,f,m){return m=typeof m=="function"?m:n,i==null?i:El(i,u,f,m)}var Ly=q0(pn),Ny=q0(Xn);function gP(i,u,f){var m=Qe(i),b=m||ii(i)||ks(i);if(u=We(u,4),f==null){var A=i&&i.constructor;b?f=m?new A:[]:Kt(i)?f=ko(A)?Os(lu(i)):{}:f={}}return(b?xr:co)(i,function(R,M,W){return u(f,R,M,W)}),f}function vP(i,u){return i==null?!0:Mf(i,u)}function yP(i,u,f){return i==null?i:A0(i,u,Bf(f))}function bP(i,u,f,m){return m=typeof m=="function"?m:n,i==null?i:A0(i,u,Bf(f),m)}function Rs(i){return i==null?[]:vf(i,pn(i))}function _P(i){return i==null?[]:vf(i,Xn(i))}function wP(i,u,f){return f===n&&(f=u,u=n),f!==n&&(f=Pr(f),f=f===f?f:0),u!==n&&(u=Pr(u),u=u===u?u:0),Ri(Pr(i),u,f)}function SP(i,u,f){return u=Ro(u),f===n?(f=u,u=0):f=Ro(f),i=Pr(i),OO(i,u,f)}function EP(i,u,f){if(f&&typeof f!="boolean"&&Bn(i,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&u===n?(i=0,u=1):(i=Ro(i),u===n?(u=i,i=0):u=Ro(u)),i>u){var m=i;i=u,u=m}if(f||i%1||u%1){var b=i0();return Cn(i+b*(u-i+tT("1e-"+((b+"").length-1))),u)}return Rf(i,u)}var xP=Ps(function(i,u,f){return u=u.toLowerCase(),i+(f?My(u):u)});function My(i){return sp(Ct(i).toLowerCase())}function Dy(i){return i=Ct(i),i&&i.replace(CC,hT).replace(zC,"")}function $P(i,u,f){i=Ct(i),u=ur(u);var m=i.length;f=f===n?m:Ri(ot(f),0,m);var b=f;return f-=u.length,f>=0&&i.slice(f,b)==u}function CP(i){return i=Ct(i),i&&sC.test(i)?i.replace(hv,mT):i}function TP(i){return i=Ct(i),i&&fC.test(i)?i.replace(ef,"\\$&"):i}var OP=Ps(function(i,u,f){return i+(f?"-":"")+u.toLowerCase()}),AP=Ps(function(i,u,f){return i+(f?" ":"")+u.toLowerCase()}),PP=U0("toLowerCase");function IP(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;if(!u||m>=u)return i;var b=(u-m)/2;return xu(du(b),f)+i+xu(cu(b),f)}function kP(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;return u&&m<u?i+xu(u-m,f):i}function RP(i,u,f){i=Ct(i),u=ot(u);var m=u?Es(i):0;return u&&m<u?xu(u-m,f)+i:i}function LP(i,u,f){return f||u==null?u=0:u&&(u=+u),jT(Ct(i).replace(tf,""),u||0)}function NP(i,u,f){return(f?Bn(i,u,f):u===n)?u=1:u=ot(u),Lf(Ct(i),u)}function MP(){var i=arguments,u=Ct(i[0]);return i.length<3?u:u.replace(i[1],i[2])}var DP=Ps(function(i,u,f){return i+(f?"_":"")+u.toLowerCase()});function FP(i,u,f){return f&&typeof f!="number"&&Bn(i,u,f)&&(u=f=n),f=f===n?Le:f>>>0,f?(i=Ct(i),i&&(typeof u=="string"||u!=null&&!rp(u))&&(u=ur(u),!u&&Ss(i))?oi(zr(i),0,f):i.split(u,f)):[]}var BP=Ps(function(i,u,f){return i+(f?" ":"")+sp(u)});function UP(i,u,f){return i=Ct(i),f=f==null?0:Ri(ot(f),0,i.length),u=ur(u),i.slice(f,f+u.length)==u}function jP(i,u,f){var m=$.templateSettings;f&&Bn(i,u,f)&&(u=n),i=Ct(i),u=Mu({},u,m,K0);var b=Mu({},u.imports,m.imports,K0),A=pn(b),R=vf(b,A),M,W,re=0,oe=u.interpolate||Xa,de="__p += '",Te=bf((u.escape||Xa).source+"|"+oe.source+"|"+(oe===mv?_C:Xa).source+"|"+(u.evaluate||Xa).source+"|$","g"),Ne="//# sourceURL="+(Ot.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++JC+"]")+`
     30`;i.replace(Te,function(Ke,pt,gt,dr,Un,fr){return gt||(gt=dr),de+=i.slice(re,fr).replace(TC,gT),pt&&(M=!0,de+=`' +
    3131__e(`+pt+`) +
    32 '`),Bn&&(W=!0,de+=`';
    33 `+Bn+`;
     32'`),Un&&(W=!0,de+=`';
     33`+Un+`;
    3434__p += '`),gt&&(de+=`' +
    3535((__t = (`+gt+`)) == null ? '' : __t) +
    36 '`),re=fr+qe.length,qe}),de+=`';
    37 `;var ze=Ot.call(u,"variable")&&u.variable;if(!ze)de=`with (obj) {
     36'`),re=fr+Ke.length,Ke}),de+=`';
     37`;var qe=Ot.call(u,"variable")&&u.variable;if(!qe)de=`with (obj) {
    3838`+de+`
    3939}
    40 `;else if(mC.test(ze))throw new Ze(a);de=(W?de.replace(Q$,""):de).replace(eC,"$1").replace(tC,"$1;"),de="function("+(ze||"obj")+`) {
    41 `+(ze?"":`obj || (obj = {});
     40`;else if(yC.test(qe))throw new Ze(a);de=(W?de.replace(nC,""):de).replace(rC,"$1").replace(oC,"$1;"),de="function("+(qe||"obj")+`) {
     41`+(qe?"":`obj || (obj = {});
    4242`)+"var __t, __p = ''"+(M?", __e = _.escape":"")+(W?`, __j = Array.prototype.join;
    4343function print() { __p += __j.call(arguments, '') }
    4444`:`;
    4545`)+de+`return __p
    46 }`;var st=Fy(function(){return xt(A,Ne+"return "+de).apply(n,R)});if(st.source=de,np(st))throw st;return st}function BI(i){return Ct(i).toLowerCase()}function UI(i){return Ct(i).toUpperCase()}function jI(i,u,f){if(i=Ct(i),i&&(f||u===n))return Kv(i);if(!i||!(u=ur(u)))return i;var m=Wr(i),b=Wr(u),A=Gv(m,b),R=Xv(m,b)+1;return ri(m,A,R).join("")}function HI(i,u,f){if(i=Ct(i),i&&(f||u===n))return i.slice(0,Yv(i)+1);if(!i||!(u=ur(u)))return i;var m=Wr(i),b=Xv(m,Wr(u))+1;return ri(m,0,b).join("")}function VI(i,u,f){if(i=Ct(i),i&&(f||u===n))return i.replace(tf,"");if(!i||!(u=ur(u)))return i;var m=Wr(i),b=Gv(m,Wr(u));return ri(m,b).join("")}function WI(i,u){var f=D,m=F;if(Kt(u)){var b="separator"in u?u.separator:b;f="length"in u?ot(u.length):f,m="omission"in u?ur(u.omission):m}i=Ct(i);var A=i.length;if(Ss(i)){var R=Wr(i);A=R.length}if(f>=A)return i;var M=f-Es(m);if(M<1)return m;var W=R?ri(R,0,M).join(""):i.slice(0,M);if(b===n)return W+m;if(R&&(M+=W.length-M),rp(b)){if(i.slice(M).search(b)){var re,oe=W;for(b.global||(b=bf(b.source,Ct(mv.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(ur(b),M)!=M){var Te=W.lastIndexOf(b);Te>-1&&(W=W.slice(0,Te))}return W+m}function zI(i){return i=Ct(i),i&&nC.test(i)?i.replace(fv,_T):i}var qI=Is(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),sp=B0("toUpperCase");function Dy(i,u,f){return i=Ct(i),u=f?n:u,u===n?mT(i)?ET(i):sT(i):i.match(u)||[]}var Fy=at(function(i,u){try{return lr(i,n,u)}catch(f){return np(f)?f:new Ze(f)}}),KI=Io(function(i,u){return xr(u,function(f){f=fo(f),Oo(i,f,ep(i[f],i))}),i});function GI(i){var u=i==null?0:i.length,f=Ve();return i=u?Vt(i,function(m){if(typeof m[1]!="function")throw new $r(l);return[f(m[0]),m[1]]}):[],at(function(m){for(var b=-1;++b<u;){var A=i[b];if(lr(A[0],this,m))return lr(A[1],this,m)}})}function XI(i){return _O(Tr(i,h))}function lp(i){return function(){return i}}function JI(i,u){return i==null||i!==i?u:i}var YI=j0(),ZI=j0(!0);function Gn(i){return i}function ap(i){return v0(typeof i=="function"?i:Tr(i,h))}function QI(i){return b0(Tr(i,h))}function eP(i,u){return _0(i,Tr(u,h))}var tP=at(function(i,u){return function(f){return wl(f,i,u)}}),nP=at(function(i,u){return function(f){return wl(i,f,u)}});function up(i,u,f){var m=pn(u),b=vu(u,m);f==null&&!(Kt(u)&&(b.length||!m.length))&&(f=u,u=i,i=this,b=vu(u,pn(u)));var A=!(Kt(f)&&"chain"in f)||!!f.chain,R=ko(i);return xr(b,function(M){var W=u[M];i[M]=W,R&&(i.prototype[M]=function(){var re=this.__chain__;if(A||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,Yo([this.value()],arguments))})}),i}function rP(){return yn._===this&&(yn._=AT),this}function cp(){}function oP(i){return i=ot(i),at(function(u){return w0(u,i)})}var iP=jf(Vt),sP=jf(Hv),lP=jf(ff);function By(i){return Gf(i)?pf(fo(i)):DO(i)}function aP(i){return function(u){return i==null?n:Ri(i,u)}}var uP=V0(),cP=V0(!0);function dp(){return[]}function fp(){return!1}function dP(){return{}}function fP(){return""}function pP(){return!0}function hP(i,u){if(i=ot(i),i<1||i>Ie)return[];var f=Le,m=Cn(i,Le);u=Ve(u),i-=Le;for(var b=gf(m,u);++f<i;)u(f);return b}function mP(i){return Qe(i)?Vt(i,fo):cr(i)?[i]:zn(iy(Ct(i)))}function gP(i){var u=++TT;return Ct(i)+u}var vP=Eu(function(i,u){return i+u},0),yP=Hf("ceil"),bP=Eu(function(i,u){return i/u},1),_P=Hf("floor");function wP(i){return i&&i.length?gu(i,Gn,Tf):n}function SP(i,u){return i&&i.length?gu(i,Ve(u,2),Tf):n}function EP(i){return zv(i,Gn)}function xP(i,u){return zv(i,Ve(u,2))}function $P(i){return i&&i.length?gu(i,Gn,Pf):n}function CP(i,u){return i&&i.length?gu(i,Ve(u,2),Pf):n}var TP=Eu(function(i,u){return i*u},1),OP=Hf("round"),AP=Eu(function(i,u){return i-u},0);function IP(i){return i&&i.length?mf(i,Gn):0}function PP(i,u){return i&&i.length?mf(i,Ve(u,2)):0}return x.after=QA,x.ary=gy,x.assign=U3,x.assignIn=Iy,x.assignInWith=Mu,x.assignWith=j3,x.at=H3,x.before=vy,x.bind=ep,x.bindAll=KI,x.bindKey=yy,x.castArray=d3,x.chain=py,x.chunk=_5,x.compact=w5,x.concat=S5,x.cond=GI,x.conforms=XI,x.constant=lp,x.countBy=IA,x.create=V3,x.curry=by,x.curryRight=_y,x.debounce=wy,x.defaults=W3,x.defaultsDeep=z3,x.defer=e3,x.delay=t3,x.difference=E5,x.differenceBy=x5,x.differenceWith=$5,x.drop=C5,x.dropRight=T5,x.dropRightWhile=O5,x.dropWhile=A5,x.fill=I5,x.filter=kA,x.flatMap=NA,x.flatMapDeep=MA,x.flatMapDepth=DA,x.flatten=uy,x.flattenDeep=P5,x.flattenDepth=k5,x.flip=n3,x.flow=YI,x.flowRight=ZI,x.fromPairs=R5,x.functions=Z3,x.functionsIn=Q3,x.groupBy=FA,x.initial=N5,x.intersection=M5,x.intersectionBy=D5,x.intersectionWith=F5,x.invert=tI,x.invertBy=nI,x.invokeMap=UA,x.iteratee=ap,x.keyBy=jA,x.keys=pn,x.keysIn=Kn,x.map=Iu,x.mapKeys=oI,x.mapValues=iI,x.matches=QI,x.matchesProperty=eP,x.memoize=ku,x.merge=sI,x.mergeWith=Py,x.method=tP,x.methodOf=nP,x.mixin=up,x.negate=Ru,x.nthArg=oP,x.omit=lI,x.omitBy=aI,x.once=r3,x.orderBy=HA,x.over=iP,x.overArgs=o3,x.overEvery=sP,x.overSome=lP,x.partial=tp,x.partialRight=Sy,x.partition=VA,x.pick=uI,x.pickBy=ky,x.property=By,x.propertyOf=aP,x.pull=H5,x.pullAll=dy,x.pullAllBy=V5,x.pullAllWith=W5,x.pullAt=z5,x.range=uP,x.rangeRight=cP,x.rearg=i3,x.reject=qA,x.remove=q5,x.rest=s3,x.reverse=Zf,x.sampleSize=GA,x.set=dI,x.setWith=fI,x.shuffle=XA,x.slice=K5,x.sortBy=ZA,x.sortedUniq=eA,x.sortedUniqBy=tA,x.split=NI,x.spread=l3,x.tail=nA,x.take=rA,x.takeRight=oA,x.takeRightWhile=iA,x.takeWhile=sA,x.tap=wA,x.throttle=a3,x.thru=Au,x.toArray=Ty,x.toPairs=Ry,x.toPairsIn=Ly,x.toPath=mP,x.toPlainObject=Ay,x.transform=pI,x.unary=u3,x.union=lA,x.unionBy=aA,x.unionWith=uA,x.uniq=cA,x.uniqBy=dA,x.uniqWith=fA,x.unset=hI,x.unzip=Qf,x.unzipWith=fy,x.update=mI,x.updateWith=gI,x.values=Rs,x.valuesIn=vI,x.without=pA,x.words=Dy,x.wrap=c3,x.xor=hA,x.xorBy=mA,x.xorWith=gA,x.zip=vA,x.zipObject=yA,x.zipObjectDeep=bA,x.zipWith=_A,x.entries=Ry,x.entriesIn=Ly,x.extend=Iy,x.extendWith=Mu,up(x,x),x.add=vP,x.attempt=Fy,x.camelCase=wI,x.capitalize=Ny,x.ceil=yP,x.clamp=yI,x.clone=f3,x.cloneDeep=h3,x.cloneDeepWith=m3,x.cloneWith=p3,x.conformsTo=g3,x.deburr=My,x.defaultTo=JI,x.divide=bP,x.endsWith=SI,x.eq=qr,x.escape=EI,x.escapeRegExp=xI,x.every=PA,x.find=RA,x.findIndex=ly,x.findKey=q3,x.findLast=LA,x.findLastIndex=ay,x.findLastKey=K3,x.floor=_P,x.forEach=hy,x.forEachRight=my,x.forIn=G3,x.forInRight=X3,x.forOwn=J3,x.forOwnRight=Y3,x.get=op,x.gt=v3,x.gte=y3,x.has=eI,x.hasIn=ip,x.head=cy,x.identity=Gn,x.includes=BA,x.indexOf=L5,x.inRange=bI,x.invoke=rI,x.isArguments=Mi,x.isArray=Qe,x.isArrayBuffer=b3,x.isArrayLike=qn,x.isArrayLikeObject=en,x.isBoolean=_3,x.isBuffer=oi,x.isDate=w3,x.isElement=S3,x.isEmpty=E3,x.isEqual=x3,x.isEqualWith=$3,x.isError=np,x.isFinite=C3,x.isFunction=ko,x.isInteger=Ey,x.isLength=Lu,x.isMap=xy,x.isMatch=T3,x.isMatchWith=O3,x.isNaN=A3,x.isNative=I3,x.isNil=k3,x.isNull=P3,x.isNumber=$y,x.isObject=Kt,x.isObjectLike=Gt,x.isPlainObject=Tl,x.isRegExp=rp,x.isSafeInteger=R3,x.isSet=Cy,x.isString=Nu,x.isSymbol=cr,x.isTypedArray=ks,x.isUndefined=L3,x.isWeakMap=N3,x.isWeakSet=M3,x.join=B5,x.kebabCase=$I,x.last=Ar,x.lastIndexOf=U5,x.lowerCase=CI,x.lowerFirst=TI,x.lt=D3,x.lte=F3,x.max=wP,x.maxBy=SP,x.mean=EP,x.meanBy=xP,x.min=$P,x.minBy=CP,x.stubArray=dp,x.stubFalse=fp,x.stubObject=dP,x.stubString=fP,x.stubTrue=pP,x.multiply=TP,x.nth=j5,x.noConflict=rP,x.noop=cp,x.now=Pu,x.pad=OI,x.padEnd=AI,x.padStart=II,x.parseInt=PI,x.random=_I,x.reduce=WA,x.reduceRight=zA,x.repeat=kI,x.replace=RI,x.result=cI,x.round=OP,x.runInContext=j,x.sample=KA,x.size=JA,x.snakeCase=LI,x.some=YA,x.sortedIndex=G5,x.sortedIndexBy=X5,x.sortedIndexOf=J5,x.sortedLastIndex=Y5,x.sortedLastIndexBy=Z5,x.sortedLastIndexOf=Q5,x.startCase=MI,x.startsWith=DI,x.subtract=AP,x.sum=IP,x.sumBy=PP,x.template=FI,x.times=hP,x.toFinite=Ro,x.toInteger=ot,x.toLength=Oy,x.toLower=BI,x.toNumber=Ir,x.toSafeInteger=B3,x.toString=Ct,x.toUpper=UI,x.trim=jI,x.trimEnd=HI,x.trimStart=VI,x.truncate=WI,x.unescape=zI,x.uniqueId=gP,x.upperCase=qI,x.upperFirst=sp,x.each=hy,x.eachRight=my,x.first=cy,up(x,function(){var i={};return uo(x,function(u,f){Ot.call(x.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),x.VERSION=r,xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){x[i].placeholder=x}),xr(["drop","take"],function(i,u){ht.prototype[i]=function(f){f=f===n?1:un(ot(f),0);var m=this.__filtered__&&!u?new ht(this):this.clone();return m.__filtered__?m.__takeCount__=Cn(f,m.__takeCount__):m.__views__.push({size:Cn(f,Le),type:i+(m.__dir__<0?"Right":"")}),m},ht.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),xr(["filter","map","takeWhile"],function(i,u){var f=u+1,m=f==te||f==be;ht.prototype[i]=function(b){var A=this.clone();return A.__iteratees__.push({iteratee:Ve(b,3),type:f}),A.__filtered__=A.__filtered__||m,A}}),xr(["head","last"],function(i,u){var f="take"+(u?"Right":"");ht.prototype[i]=function(){return this[f](1).value()[0]}}),xr(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");ht.prototype[i]=function(){return this.__filtered__?new ht(this):this[f](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(f){return wl(f,i,u)})}),ht.prototype.reject=function(i){return this.filter(Ru(Ve(i)))},ht.prototype.slice=function(i,u){i=ot(i);var f=this;return f.__filtered__&&(i>0||u<0)?new ht(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ot(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},ht.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},ht.prototype.toArray=function(){return this.take(Le)},uo(ht.prototype,function(i,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),m=/^(?:head|last)$/.test(u),b=x[m?"take"+(u=="last"?"Right":""):u],A=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 gt=b.apply(x,Yo([pt],M));return m&&Te?gt[0]:gt};oe&&f&&typeof re=="function"&&re.length!=1&&(W=oe=!1);var Te=this.__chain__,Ne=!!this.__actions__.length,ze=A&&!Te,st=W&&!Ne;if(!A&&oe){R=st?R:new ht(this);var qe=i.apply(R,M);return qe.__actions__.push({func:Au,args:[de],thisArg:n}),new Cr(qe,Te)}return ze&&st?i.apply(this,M):(qe=this.thru(de),ze?m?qe.value()[0]:qe.value():qe)})}),xr(["pop","push","shift","sort","splice","unshift"],function(i){var u=tu[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",m=/^(?:pop|shift)$/.test(i);x.prototype[i]=function(){var b=arguments;if(m&&!this.__chain__){var A=this.value();return u.apply(Qe(A)?A:[],b)}return this[f](function(R){return u.apply(Qe(R)?R:[],b)})}}),uo(ht.prototype,function(i,u){var f=x[u];if(f){var m=f.name+"";Ot.call(Ts,m)||(Ts[m]=[]),Ts[m].push({name:u,func:f})}}),Ts[Su(n,T).name]=[{name:"wrapper",func:n}],ht.prototype.clone=zT,ht.prototype.reverse=qT,ht.prototype.value=KT,x.prototype.at=SA,x.prototype.chain=EA,x.prototype.commit=xA,x.prototype.next=$A,x.prototype.plant=TA,x.prototype.reverse=OA,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=AA,x.prototype.first=x.prototype.head,hl&&(x.prototype[hl]=CA),x},xs=xT();Oi?((Oi.exports=xs)._=xs,af._=xs):yn._=xs}).call(Pl)})(jc,jc.exports);var X=jc.exports;const e7={chapters:[],selected:null},AE="podlove/publisher/chapter/INIT",rg="podlove/publisher/chapter/UPDATE",IE="podlove/publisher/chapter/SELECT",og="podlove/publisher/chapter/REMOVE",ig="podlove/publisher/chapter/ADD",PE="podlove/publisher/chapter/PARSE",sg="podlove/publisher/chapter/PARSED",kE="podlove/publisher/chapter/SET",RE="podlove/publisher/chapter/DOWNLOAD",lg="podlove/publisher/chapter/SELECT_IMAGE",ag="podlove/publisher/chapter/SET_IMAGE",t7=ve(AE),n7=ve(rg),fi=ve(IE),r7=ve(og),o7=ve(ig),i7=ve(PE),LE=ve(sg),s7=ve(kE),l7=ve(RE),a7=ve(lg);ve(ag);const u7=sr({[sg]:(e,t)=>({...e,selected:null,chapters:X.get(t,["payload"],[])}),[kE]:(e,t)=>({...e,selected:null,chapters:X.get(t,["payload"],[])}),[rg]:(e,t)=>{let n=NE(e);const r=ME(e),s=e.chapters.reduce((a,c,d)=>[...a,d===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}),[ig]:e=>({...e,chapters:[...e.chapters,{start:X.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[og]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[ag]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},e7),c7=e=>e.chapters,NE=e=>e.selected,ME=e=>e.selected!==null?X.get(e,["chapters",e.selected],null):null,Ap={chapters:c7,selectedIndex:NE,selected:ME},Ip=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)}},Ma=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=Ip(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))s=Ip(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=Ip(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=Ma(t)||0,new Nt(n)}}const i_=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},DE="podlove/publisher/episode/INIT",Qs="podlove/publisher/episode/UPDATE",FE="podlove/publisher/episode/QUICKSAVE",BE="podlove/publisher/episode/SAVED",UE="podlove/publisher/episode/SLUG_CHANGED",Pd="podlove/publisher/episode/SET",jE="podlove/publisher/episode/SET_POSTER",HE="podlove/publisher/episode/SELECT_POSTER",ug="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",cg="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",dg="podlove/publisher/episode/DELETE_CONTRIBUTION",fg="podlove/publisher/episode/UPDATE_CONTRIBUTION",pg="podlove/publisher/episode/ADD_CONTRIBUTION",VE="podlove/publisher/episode/CREATE_CONTRIBUTION",d7={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,is_auphonic_production_running:!1,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},wt=ve(Qs),f7=ve(FE),kd=ve(DE),p7=ve(HE),WE=ve(Pd),h7=ve(ug),m7=ve(cg),g7=ve(dg),Pp=ve(fg),zE=ve(pg),v7=ve(VE),y7=ve(BE),b7=ve(UE),_7=sr({[Eo]:(e,t)=>({...e,id:X.get(t,["payload","episode","id"],null),duration:Nt.fromString(X.get(t,["payload","episode","duration"],null)).totalMs}),[Qs]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","auphonic_webhook_config","is_auphonic_production_running","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number","episode_poster","poster","explicit"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})},[Pd]:(e,t)=>({...e,slug:X.get(t,["payload","slug"],e.slug),number:X.get(t,["payload","number"],e.number),duration:X.get(t,["payload","duration"],e.duration),title:X.get(t,["payload","title_clean"],e.title),subtitle:X.get(t,["payload","subtitle"],e.subtitle),summary:X.get(t,["payload","summary"],e.summary),type:X.get(t,["payload","type"],e.type),episode_poster:X.get(t,["payload","episode_poster"],e.episode_poster),poster:X.get(t,["payload","poster"],e.poster),mnemonic:X.get(t,["payload","mnemonic"],e.mnemonic),explicit:X.get(t,["payload","explicit"],e.explicit),auphonic_production_id:X.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),is_auphonic_production_running:X.get(t,["payload","is_auphonic_production_running"],e.is_auphonic_production_running),auphonic_webhook_config:X.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:X.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:X.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:X.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:X.get(t,["payload","license_name"],e.license_name),license_url:X.get(t,["payload","license_url"],e.license_url),contributions:X.get(t,["payload","contributions"],e.contributions),show:X.get(t,["payload","show"],e.show)}),[ug]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===X.get(t,["payload","position"]));return n<1?e:{...e,contributions:i_(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[cg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===X.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:i_(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[dg]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>X.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[fg]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==X.get(t,["payload","contributor_id"])?n:X.pick(X.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[pg]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:X.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},d7),Xt={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,isAuphonicProductionRunning:e=>e.is_auphonic_production_running,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},w7={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},S7=sr({[Eo]:(e,t)=>({...e,baseUrl:X.get(t,["payload","baseUrl"],null),api:{base:X.get(t,["payload","api","base"],null),nonce:X.get(t,["payload","api","nonce"],null),auth:X.get(t,["payload","api","auth"],null),bearer:X.get(t,["payload","api","bearer"],null)}})},w7),kl={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},Rd="podlove/publisher/wordpress/UPDATE",qE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",$h=ve(Rd),hg=ve(qE),E7={id:null,title:null,featured_media:null},x7=sr({[Eo]:(e,t)=>({...e,id:X.get(t,["payload","post","id"],null),title:X.get(t,["payload","post","title"],null),featured_media:X.get(t,["payload","post","featured_media"],null)}),[Rd]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.get(t,["payload","value"],null);return["title","featured_media"].includes(n)?{...e,[n]:r}:{...e}}},E7),kp={id:e=>e.id,title:e=>e.title,featured_media:e=>e.featured_media},KE="podlove/publisher/transcript/INIT",GE="podlove/publisher/transcript/SET_TRANSCRIPTS",XE="podlove/publisher/transcript/SET_VOICES",mg="podlove/publisher/transcript/UPDATE_VOICE",JE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",YE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",ZE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",$7=ve(KE),C7=ve(GE),T7=ve(XE),O7=ve(mg),A7=ve(JE),I7=ve(YE),P7=ve(ZE),k7={transcripts:[],voices:[]},R7=sr({[GE]:(e,t)=>({...e,transcripts:t.payload}),[XE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[mg]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},k7),s_={transcripts:e=>e.transcripts,voices:e=>e.voices},L7={contributors:[],roles:[],groups:[]},QE="podlove/publisher/contributors/INIT",e2="podlove/publisher/contributors/SET_CONTRIBUTORS",t2="podlove/publisher/contributors/SET_ROLES",n2="podlove/publisher/contributors/SET_GROUPS",r2="podlove/publisher/contributors/ADD",o2=ve(QE),N7=ve(e2),M7=ve(t2),D7=ve(n2),F7=ve(r2),B7=sr({[e2]:(e,t)=>({...e,contributors:t.payload}),[t2]:(e,t)=>({...e,roles:t.payload}),[n2]:(e,t)=>({...e,groups:t.payload}),[r2]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},L7),Rp={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},U7={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:[]},j7=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},H7=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},V7=sr({[Eo]:(e,t)=>({...e,metadata:{enable_episode_explicit:X.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:X.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:X.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1"},tracking:{mode:X.get(t,["payload","expert_settings","tracking","mode"],null),window:X.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:X.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:X.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:X.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:X.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:X.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:X.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:X.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:X.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:X.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:X.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:X.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:X.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:X.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:X.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:j7(X.get(t,["payload","assignments","image"],null)),chapter:H7(X.get(t,["payload","assignments","chapter"],null)),transcript:X.get(t,["payload","assignments","transcript"],null)},modules:X.get(t,["payload","modules"])})},U7),Bi={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},W7="podlove/publisher/podcast/INIT",i2="podlove/publisher/podcast/SET",z7="podlove/publisher/podcasr/SAVED",gg="podlove/publisher/podcast/UPDATE",q7={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};ve(W7);const K7=ve(i2);ve(z7);const ea=ve(gg),G7=sr({[i2]:(e,t)=>({title:X.get(t,["payload","title"],e.title),subtitle:X.get(t,["payload","subtitle"],e.subtitle),summary:X.get(t,["payload","summary"],e.summary),mnemonic:X.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:X.get(t,["payload","itunes_type"],e.itunes_type),author_name:X.get(t,["payload","author_name"],e.author_name),poster:X.get(t,["payload","poster"],e.poster),link:X.get(t,["payload","link"],e.link),license_name:X.get(t,["payload","license_name"],e.license_name),license_url:X.get(t,["payload","license_url"],e.license_url)}),[gg]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.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})}},q7),po={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},X7={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},s2="podlove/publisher/auphonic/INIT",l2="podlove/publisher/auphonic/INIT_DONE",a2="podlove/publisher/auphonic/SET_TOKEN",Hc="podlove/publisher/auphonic/SET_PRODUCTION",u2="podlove/publisher/auphonic/SET_PRODUCTIONS",c2="podlove/publisher/auphonic/SET_SERVICES",d2="podlove/publisher/auphonic/CREATE_PRODUCTION",f2="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",p2="podlove/publisher/auphonic/SAVE_PRODUCTION",h2="podlove/publisher/auphonic/START_PRODUCTION",Vc="podlove/publisher/auphonic/DESELECT_PRODUCTION",J7="podlove/publisher/auphonic/SELECT_SERVICE",vg="podlove/publisher/auphonic/SET_SERVICE_FILES",Y7="podlove/publisher/auphonic/SELECT_TRACKS",m2="podlove/publisher/auphonic/ADD_TRACK",g2="podlove/publisher/auphonic/REMOVE_TRACK",v2="podlove/publisher/auphonic/UPDATE_TRACK",y2="podlove/publisher/auphonic/SET_PRESETS",yg="podlove/publisher/auphonic/SET_PRESET",bg="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",b2="podlove/publisher/auphonic/START_POLLING",Wc="podlove/publisher/auphonic/STOP_POLLING",_2="podlove/publisher/auphonic/START_SAVING",w2="podlove/publisher/auphonic/STOP_SAVING",_g="podlove/publisher/auphonic/UPDATE_WEBHOOK",Z7=ve(s2),Q7=ve(l2),eD=ve(a2),ps=ve(Hc),S2=ve(Vc),E2=ve(u2),tD=ve(d2),nD=ve(f2),x2=ve(p2),$2=ve(h2),rD=ve(y2),wg=ve(yg),oD=ve(c2),iD=ve(vg),C2=ve(J7),T2=ve(bg);ve(Y7);const sD=ve(m2),O2=ve(g2),A2=ve(v2),lD=ve(b2),l_=ve(Wc),aD=ve(_2),uD=ve(w2),I2=ve(_g),cD=sr({[l2]:e=>({...e,is_initializing:!1}),[bg]:(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}}}),[m2]:(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"}]}},[g2]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[v2]:(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}},[vg]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[c2]:(e,t)=>({...e,services:t.payload}),[y2]:(e,t)=>({...e,presets:t.payload}),[u2]:(e,t)=>({...e,productions:t.payload}),[Hc]:(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,d)=>{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${d}`]:{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,d,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(d=a.algorithms)==null?void 0:d.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[Vc]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[yg]:(e,t)=>({...e,preset:t.payload}),[a2]:(e,t)=>({...e,token:t.payload}),[_2]:(e,t)=>({...e,is_saving:!0}),[w2]:(e,t)=>({...e,is_saving:!1}),[_g]:(e,t)=>({...e,publish_when_done:t.payload})},X7),dD=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}):[],fD=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})):[],pD=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:dD(t==null?void 0:t.chapters),output_files:fD(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:pD,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},hD={is_initializing:!0,slug_autogeneration_enabled:!1,files:[]},P2="podlove/publisher/mediafiles/INIT",k2="podlove/publisher/mediafiles/INIT_DONE",R2="podlove/publisher/mediafiles/SET",Sg="podlove/publisher/mediafiles/UPDATE",zc="podlove/publisher/mediafiles/ENABLE",qc="podlove/publisher/mediafiles/DISABLE",L2="podlove/publisher/mediafiles/VERIFY",N2="podlove/publisher/mediafiles/UPLOAD_INTENT",Eg="podlove/publisher/mediafiles/SET_UPLOAD_URL",M2="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",D2="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",mD=ve(P2),gD=ve(k2),vD=ve(R2),Ch=ve(Sg),yD=ve(zc),bD=ve(qc),_D=ve(L2),wD=ve(N2);ve(Eg);const SD=ve(M2),F2=ve(D2),ED=sr({[k2]:e=>({...e,is_initializing:!1}),[R2]:(e,t)=>({...e,files:t.payload}),[Sg]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[zc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[qc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[M2]:e=>({...e,slug_autogeneration_enabled:!0}),[D2]:e=>({...e,slug_autogeneration_enabled:!1})},hD),Lp={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files},xD={episodeList:[],selectEpisodes:[]},B2="podlove/publisher/relatedEpisodes/INIT",U2="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",xg="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",$D="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",CD=ve(B2),TD=ve(U2),j2=ve(xg);ve($D);const OD=sr({[Eo]:(e,t)=>({...e}),[U2]:(e,t)=>({...e,episodeList:t.payload}),[xg]:(e,t)=>({...e,selectEpisodes:t.payload})},xD),a_={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},$g="podlove/publisher/shows/INIT",Cg="podlove/publisher/shows/SET",Kc="podlove/publisher/shows/SELECT",H2=ve($g),V2=ve(Cg),W2=ve(Kc),z2={shows:[]},q2=sr({[Cg]:(e,t)=>({...e,shows:X.get(t,["payload"],[])})},z2),K2={shows:e=>e.shows},AD=Object.freeze(Object.defineProperty({__proto__:null,INIT:$g,SELECT:Kc,SET:Cg,init:H2,initialState:z2,reducer:q2,select:W2,selectors:K2,set:V2},Symbol.toStringTag,{value:"Module"})),Ce={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},ID={bootstrapped:Ee(Ce.lifecycle,QM.bootstrapped)},PD={token:Ee(Ce.auphonic,On.token),productionId:Ee(Ce.auphonic,On.productionId),productions:Ee(Ce.auphonic,On.productions),production:Ee(Ce.auphonic,On.production),presets:Ee(Ce.auphonic,On.presets),preset:Ee(Ce.auphonic,On.preset),productionPayload:Ee(Ce.auphonic,On.productionPayload),incomingServices:Ee(Ce.auphonic,On.incomingServices),outgoingServices:Ee(Ce.auphonic,On.outgoingServices),serviceFiles:Ee(Ce.auphonic,On.serviceFiles),tracks:Ee(Ce.auphonic,On.tracks),fileSelections:Ee(Ce.auphonic,On.fileSelections),currentFileSelection:Ee(Ce.auphonic,On.currentFileSelection),isSaving:Ee(Ce.auphonic,On.isSaving),isInitializing:Ee(Ce.auphonic,On.isInitializing),publishWhenDone:Ee(Ce.auphonic,On.publishWhenDone)},kD={title:Ee(Ce.podcast,po.title),subtitle:Ee(Ce.podcast,po.subtitle),summary:Ee(Ce.podcast,po.summary),mnemonic:Ee(Ce.podcast,po.mnemonic),itunesType:Ee(Ce.podcast,po.itunesType),author:Ee(Ce.podcast,po.author),poster:Ee(Ce.podcast,po.poster),link:Ee(Ce.podcast,po.link),license_name:Ee(Ce.podcast,po.license_name),license_url:Ee(Ce.podcast,po.license_url)},RD={list:Ee(Ce.chapters,Ap.chapters),selected:Ee(Ce.chapters,Ap.selected),selectedIndex:Ee(Ce.chapters,Ap.selectedIndex)},G2={contributors:Ee(Ce.contributors,Rp.contributors),roles:Ee(Ce.contributors,Rp.roles),groups:Ee(Ce.contributors,Rp.groups)},LD={id:Ee(Ce.episode,Xt.id),slug:Ee(Ce.episode,Xt.slug),duration:Ee(Ce.episode,Xt.duration),number:Ee(Ce.episode,Xt.number),title:Ee(Ce.episode,Xt.title),subtitle:Ee(Ce.episode,Xt.subtitle),summary:Ee(Ce.episode,Xt.summary),type:Ee(Ce.episode,Xt.type),poster:Ee(Ce.episode,Xt.poster),episodePoster:Ee(Ce.episode,Xt.episodePoster),mnemonic:Ee(Ce.episode,Xt.mnemonic),explicit:Ee(Ce.episode,Xt.explicit),soundbite_start:Ee(Ce.episode,Xt.soundbite_start),soundbite_duration:Ee(Ce.episode,Xt.soundbite_duration),soundbite_title:Ee(Ce.episode,Xt.soundbite_title),auphonicProductionId:Ee(Ce.episode,Xt.auphonicProductionId),isAuphonicProductionRunning:Ee(Ce.episode,Xt.isAuphonicProductionRunning),auphonicWebhookConfig:Ee(Ce.episode,Xt.auphonicWebhookConfig),license_name:Ee(Ce.episode,Xt.license_name),license_url:Ee(Ce.episode,Xt.license_url),contributions:Ee(Ee(Ce.episode,Xt.contributions),G2.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:Ee(Ce.episode,Xt.currentShow)},ND={isInitializing:Ee(Ce.mediafiles,Lp.isInitializing),files:Ee(Ce.mediafiles,Lp.files),slugAutogenerationEnabled:Ee(Ce.mediafiles,Lp.slugAutogenerationEnabled)},MD={baseUrl:Ee(Ce.runtime,kl.baseUrl),nonce:Ee(Ce.runtime,kl.nonce),base:Ee(Ce.runtime,kl.base),auth:Ee(Ce.runtime,kl.auth),bearer:Ee(Ce.runtime,kl.bearer)},DD={id:Ee(Ce.post,kp.id),title:Ee(Ce.post,kp.title),featuredMedia:Ee(Ce.post,kp.featured_media)},FD={list:Ee(Ce.transcripts,s_.transcripts),voices:Ee(Ce.transcripts,s_.voices)},BD={autoGenerateEpisodeTitle:Ee(Ce.settings,Bi.autoGenerateEpisodeTitle),blogTitleTemplate:Ee(Ce.settings,Bi.blogTitleTemplate),episodeNumberPadding:Ee(Ce.settings,Bi.episodeNumberPadding),mediaFileBaseUri:Ee(Ce.settings,Bi.mediaFileBaseUri),imageAsset:Ee(Ce.settings,Bi.imageAsset),enableEpisodeExplicit:Ee(Ce.settings,Bi.enableEpisodeExplicit),modules:Ee(Ce.settings,Bi.modules)},UD={episodeList:Ee(Ce.relatedEpisodes,a_.episodeList),selectEpisode:Ee(Ce.relatedEpisodes,a_.selectEpisodes)},jD={list:Ee(Ce.shows,K2.shows)},K={lifecycle:ID,podcast:kD,chapters:RD,episode:LD,runtime:MD,post:DD,transcripts:FD,contributors:G2,settings:BD,auphonic:PD,mediafiles:ND,relatedEpisodes:UD,shows:jD},HD=LS({lifecycle:ZM,chapters:u7,episode:_7,runtime:S7,post:x7,transcripts:R7,contributors:B7,settings:V7,podcast:G7,auphonic:cD,mediafiles:ED,relatedEpisodes:OD,shows:q2});var u_=function(t){return{done:!0,value:t}},Np={};function Ld(e){return $d(e)?"channel":zS(e)?String(e):Hn(e)?e.name:String(e)}function Nd(e,t,n){var r,o,s,l=t;function a(c,d){if(l===Np)return u_(c);if(d&&!o)throw l=Np,d;r&&r(c);var p=d?e[o](d):e[l]();return l=p.nextState,s=p.effect,r=p.stateUpdater,o=p.errorState,l===Np?u_(c):s}return Eh(a,function(c){return a(null,c)},n)}function VD(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:vo(e)},l=function(p){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Nd({q1:function(){return{nextState:"q2",effect:s,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+Ld(e)+", "+t.name+")")}function WD(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:vo(e)},l=function(y){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:q6(y)}},c,d,p=function(y){return c=y},h=function(y){return d=y};return Nd({q1:function(){return{nextState:"q2",effect:s,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(d),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(d),stateUpdater:p}}},"q1","takeLatest("+Ld(e)+", "+t.name+")")}function zD(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:vo(a)}},d=function(S){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[S]))}},p={done:!1,value:Jm(e)},h=function(S){return l=S},g=function(S){return a=S},y=!$d(t);return y||g(t),Nd({q1:function(){var S={done:!1,value:K6(t,F6(1))};return{nextState:"q2",effect:S,stateUpdater:g}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:d(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+Ld(t)+", "+n.name+")")}function qD(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:vo(t)},d={done:!1,value:xh({action:vo(t),debounce:Jm(e)})},p=function(S){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[S]))}},h=function(S){return{done:!1,value:S}},g=function(S){return l=S},y=function(S){return a=S};return Nd({q1:function(){return{nextState:"q2",effect:c,stateUpdater:g}},q2:function(){return{nextState:"q3",effect:d,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:g}}},"q1","debounce("+Ld(t)+", "+n.name+")")}function We(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,[VD,e,t].concat(r))}function KD(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,[WD,e,t].concat(r))}function X2(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,[zD,e,t,n].concat(o))}function Th(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,[qD,e,t,n].concat(o))}function GD(){return function*(){const e=yield Zn(YD,"click","button.editor-post-publish-button");yield We(e,XD),yield We(Eo,JD)}}function*XD(){yield Oe(XM())}function*JD(){yield Oe(JM())}function YD(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(Hs)}})}const Oh=e=>SE(t=>(e(r=>{t(r||{})}),()=>{}));function*xo(e,t,...n){return yield Dt(function*(){for(;;){const o=yield vo(e);yield Zn(t,...n.concat(o))}})}function*ZD(e){if(!(yield Se(e))){for(;;)if(yield vo("*"),yield Se(e))return}}const cl=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},Da=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},J2=({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}),c_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,{headers:a,query:c}={})=>fetch(cl(s?s(l):l,c),{method:o,headers:J2({nonce:t,auth:n,bearer:r},a)}).then(Da(e)),d_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,a,{headers:c,query:d}={})=>fetch(cl(s?s(l):l,d),{method:o,headers:J2({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(Da(e)),QD=X.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:s})=>({get:c_({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:s,urlProcessor:l=>`${e}/${t}/${l}`}),delete:c_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:d_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:d_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),Y2="podlove/publisher/NOTIFY",Tg=ve(Y2),eF={};sr({},eF);function*Xo(){yield Zn(ZD,K.lifecycle.bootstrapped);const e=yield Se(K.runtime.base),t=yield Se(K.runtime.nonce),n=yield Se(K.runtime.auth),r=yield Se(K.runtime.bearer);return QD({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(s){Hd.dispatch(Tg({type:"error",message:s}))}})}function*tF(){const e=yield Xo();yield Dt(nF,e),yield We(gg,rF)}function*nF(e){const{result:t}=yield e.get("podcast");t&&(yield Oe(K7(t)))}function rF(e){const t=X.get(e,["payload","prop"]);X.get(e,["payload","value"],null)}function oF(){return function*(){yield xo(Eo,tF)}}function iF(){return function*(){yield We(Y2,sF)}}function*sF(e){const t=X.get(globalThis,["wp","data","dispatch"]);t?lF(t,X.get(e,["payload"])):aF(e.payload)}function lF(e,{type:t,message:n}){n&&e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function aF({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 Z2={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,s)=>{function l(g){if(g&&typeof g=="object"){var y=g.which||g.keyCode||g.charCode;y&&(g=y)}if(typeof g=="number")return p[g];var _,S=String(g);return(_=a[S.toLowerCase()])?_:(_=c[S.toLowerCase()])||(S.length===1?S.charCodeAt(0):void 0)}l.isEventKey=function(g,y){if(g&&typeof g=="object"){var _=g.which||g.keyCode||g.charCode;if(_==null)return!1;if(typeof y=="string"){var S;if((S=a[y.toLowerCase()])||(S=c[y.toLowerCase()]))return S===_}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,"⇧":16,"⌥":18,"⌃":17,"⌘":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(d=97;d<123;d++)a[String.fromCharCode(d)]=d-32;for(var d=48;d<58;d++)a[d-48]=d;for(d=1;d<13;d++)a["f"+d]=d+111;for(d=0;d<10;d++)a["numpad "+d]=d+96;var p=s.names=s.title={};for(d in a)p[a[d]]=d;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<"u"&&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,xe){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(xe)?ae:o(fe)?s(function(He){return Q(He,xe)}):o(xe)?s(function(He){return Q(fe,He)}):Q(fe,xe)}}}n.r(r),n.d(r,{keydown:()=>Le,keyup:()=>Ge});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const d=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 xe,He=ae,De=0;De<fe.length;){if(He==null)return;xe=fe[De],He=a(xe)?d(xe,He):He[xe],De+=1}return He})}),h=l(function(Q,ae){return p([Q],ae)[0]}),g=l(function(Q,ae){return h([Q],ae)});function y(Q){return function ae(fe,xe,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(xe)?ae:o(fe)?l(function(De,tt){return Q(De,xe,tt)}):o(xe)?l(function(De,tt){return Q(fe,De,tt)}):s(function(De){return Q(fe,xe,De)});default:return o(fe)&&o(xe)&&o(He)?ae:o(fe)&&o(xe)?l(function(De,tt){return Q(De,tt,He)}):o(fe)&&o(He)?l(function(De,tt){return Q(De,xe,tt)}):o(xe)&&o(He)?l(function(De,tt){return Q(fe,De,tt)}):o(fe)?s(function(De){return Q(De,xe,He)}):o(xe)?s(function(De){return Q(fe,De,He)}):o(He)?s(function(De){return Q(fe,xe,De)}):Q(fe,xe,He)}}}const _=l(function(Q,ae){return ae==null||ae!=ae?Q:ae}),S=y(function(Q,ae,fe){return _(Q,h(ae,fe))}),C=y(function(Q,ae,fe){return S(Q,[ae],fe)});function T(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,xe){return ae.apply(this,arguments)};case 3:return function(fe,xe,He){return ae.apply(this,arguments)};case 4:return function(fe,xe,He,De){return ae.apply(this,arguments)};case 5:return function(fe,xe,He,De,tt){return ae.apply(this,arguments)};case 6:return function(fe,xe,He,De,tt,gn){return ae.apply(this,arguments)};case 7:return function(fe,xe,He,De,tt,gn,ln){return ae.apply(this,arguments)};case 8:return function(fe,xe,He,De,tt,gn,ln,L){return ae.apply(this,arguments)};case 9:return function(fe,xe,He,De,tt,gn,ln,L,B){return ae.apply(this,arguments)};case 10:return function(fe,xe,He,De,tt,gn,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 w(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]"},O=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 T(Q.length,function(){return Q.apply(ae,arguments)})});function k(Q,ae,fe){for(var xe=fe.next();!xe.done;){if((ae=Q["@@transducer/step"](ae,xe.value))&&ae["@@transducer/reduced"]){ae=ae["@@transducer/value"];break}xe=fe.next()}return Q["@@transducer/result"](ae)}function I(Q,ae,fe,xe){return Q["@@transducer/result"](fe[xe](P(Q["@@transducer/step"],Q),ae))}var H=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function D(Q,ae,fe){if(typeof Q=="function"&&(Q=function(xe){return new $(xe)}(Q)),O(fe))return function(xe,He,De){for(var tt=0,gn=De.length;tt<gn;){if((He=xe["@@transducer/step"](He,De[tt]))&&He["@@transducer/reduced"]){He=He["@@transducer/value"];break}tt+=1}return xe["@@transducer/result"](He)}(Q,ae,fe);if(typeof fe["fantasy-land/reduce"]=="function")return I(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 I(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 xe=arguments[fe-1];return E(xe)||typeof xe[Q]!="function"?ae.apply(this,arguments):xe[Q].apply(xe,Array.prototype.slice.call(arguments,0,fe-1))}}const G=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 T(arguments[0].length,F(w,arguments[0],G(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 Ae=n(9620),Ie=n.n(Ae);const Ye=Q=>ae=>{g("nodeName",ae.target)==="BODY"&&Q(ae)},ft=Q=>({key:Ie()(Q),ctrl:C(!1,"ctrlKey",Q),shift:C(!1,"shiftKey",Q),meta:C(!1,"metaKey",Q),alt:C(!1,"altKey",Q)}),Le=Q=>document.addEventListener("keydown",Ye(be(Q,ft))),Ge=Q=>document.addEventListener("keyup",Ye(be(Q,ft)))})(),Z2.utils=r})();function uF(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=Ma(o[1]);s!==null&&n.push({title:o[2].trim(),start:s})}return n},[])}function cF(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=Ma(o[1].replace(",",".")),l=o[3].trim();s!==null&&n.push({title:l,start:s})}return n},[])}function dF(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=Ma(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",d=l.getAttribute("URL")||"";return a!==null&&s.push({start:a,title:c.trim(),...d?{href:d.trim()}:{}}),s},[]);return o.sort(function(s,l){return s.start-l.start}),o}function fF(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=Ma(s.getAttribute("start")||""),a=s.getAttribute("title")||"",c=s.getAttribute("href")||"",d=s.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...d?{image:d.trim()}:{}}),o},[])}const Q2=X.get(window,["wp","i18n","__"],e=>e),pF=Q2,hF={install(e){e.config.globalProperties.__=(t,n)=>Q2(t,n)}};function*mF(){const e=yield Xo();yield Dt(gF,e),yield We([PE],wF),yield We(RE,yF),yield We([rg,sg,ig,og,ag],vF,e);const t=yield Zn(Oh,Z2.utils.keydown);yield We(t,SF),yield We(lg,EF)}function*gF(e){const t=yield Se(K.episode.id),{result:n}=yield e.get(`chapters/${t}`);n&&(yield Oe(s7(n.chapters.map(r=>({...r,start:Nt.fromString(r.start).totalMs})))))}function*vF(e){const t=yield Se(K.episode.id),n=yield Se(K.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Nt(r.start).pretty}))})}function*yF(e){const t=yield Se(K.chapters.list);switch(e.payload){case"psc":f_("chapters.psc",bF(t));break;case"mp4":f_("chapters.txt",_F(t));break}}function bF(e){const t=new XMLSerializer,o=new DOMParser().parseFromString('<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',"text/xml");let s=o.getElementsByTagName("chapters");return s.length||(s=o.getElementsByTagName("psc:chapters")),s=s[0],e.forEach(c=>{let d=o.createElement("psc:chapter");d.setAttribute("title",c.title||""),d.setAttribute("start",c.start?new Nt(c.start).pretty:"00:00:00"),c.href&&d.setAttribute("href",c.href),c.image&&d.setAttribute("image",c.image),s.appendChild(d)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,`
     46}`;var st=By(function(){return xt(A,Ne+"return "+de).apply(n,R)});if(st.source=de,np(st))throw st;return st}function HP(i){return Ct(i).toLowerCase()}function VP(i){return Ct(i).toUpperCase()}function WP(i,u,f){if(i=Ct(i),i&&(f||u===n))return Gv(i);if(!i||!(u=ur(u)))return i;var m=zr(i),b=zr(u),A=Xv(m,b),R=Jv(m,b)+1;return oi(m,A,R).join("")}function zP(i,u,f){if(i=Ct(i),i&&(f||u===n))return i.slice(0,Zv(i)+1);if(!i||!(u=ur(u)))return i;var m=zr(i),b=Jv(m,zr(u))+1;return oi(m,0,b).join("")}function qP(i,u,f){if(i=Ct(i),i&&(f||u===n))return i.replace(tf,"");if(!i||!(u=ur(u)))return i;var m=zr(i),b=Xv(m,zr(u));return oi(m,b).join("")}function KP(i,u){var f=D,m=F;if(Kt(u)){var b="separator"in u?u.separator:b;f="length"in u?ot(u.length):f,m="omission"in u?ur(u.omission):m}i=Ct(i);var A=i.length;if(Ss(i)){var R=zr(i);A=R.length}if(f>=A)return i;var M=f-Es(m);if(M<1)return m;var W=R?oi(R,0,M).join(""):i.slice(0,M);if(b===n)return W+m;if(R&&(M+=W.length-M),rp(b)){if(i.slice(M).search(b)){var re,oe=W;for(b.global||(b=bf(b.source,Ct(gv.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(ur(b),M)!=M){var Te=W.lastIndexOf(b);Te>-1&&(W=W.slice(0,Te))}return W+m}function GP(i){return i=Ct(i),i&&iC.test(i)?i.replace(pv,ET):i}var XP=Ps(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),sp=U0("toUpperCase");function Fy(i,u,f){return i=Ct(i),u=f?n:u,u===n?yT(i)?CT(i):uT(i):i.match(u)||[]}var By=at(function(i,u){try{return lr(i,n,u)}catch(f){return np(f)?f:new Ze(f)}}),JP=Po(function(i,u){return xr(u,function(f){f=po(f),Oo(i,f,ep(i[f],i))}),i});function YP(i){var u=i==null?0:i.length,f=We();return i=u?Vt(i,function(m){if(typeof m[1]!="function")throw new $r(l);return[f(m[0]),m[1]]}):[],at(function(m){for(var b=-1;++b<u;){var A=i[b];if(lr(A[0],this,m))return lr(A[1],this,m)}})}function ZP(i){return EO(Tr(i,h))}function lp(i){return function(){return i}}function QP(i,u){return i==null||i!==i?u:i}var eI=H0(),tI=H0(!0);function Jn(i){return i}function ap(i){return y0(typeof i=="function"?i:Tr(i,h))}function nI(i){return _0(Tr(i,h))}function rI(i,u){return w0(i,Tr(u,h))}var oI=at(function(i,u){return function(f){return wl(f,i,u)}}),iI=at(function(i,u){return function(f){return wl(i,f,u)}});function up(i,u,f){var m=pn(u),b=vu(u,m);f==null&&!(Kt(u)&&(b.length||!m.length))&&(f=u,u=i,i=this,b=vu(u,pn(u)));var A=!(Kt(f)&&"chain"in f)||!!f.chain,R=ko(i);return xr(b,function(M){var W=u[M];i[M]=W,R&&(i.prototype[M]=function(){var re=this.__chain__;if(A||re){var oe=i(this.__wrapped__),de=oe.__actions__=Kn(this.__actions__);return de.push({func:W,args:arguments,thisArg:i}),oe.__chain__=re,oe}return W.apply(i,Zo([this.value()],arguments))})}),i}function sI(){return yn._===this&&(yn._=kT),this}function cp(){}function lI(i){return i=ot(i),at(function(u){return S0(u,i)})}var aI=jf(Vt),uI=jf(Vv),cI=jf(ff);function Uy(i){return Gf(i)?pf(po(i)):UO(i)}function dI(i){return function(u){return i==null?n:Li(i,u)}}var fI=W0(),pI=W0(!0);function dp(){return[]}function fp(){return!1}function hI(){return{}}function mI(){return""}function gI(){return!0}function vI(i,u){if(i=ot(i),i<1||i>Pe)return[];var f=Le,m=Cn(i,Le);u=We(u),i-=Le;for(var b=gf(m,u);++f<i;)u(f);return b}function yI(i){return Qe(i)?Vt(i,po):cr(i)?[i]:Kn(sy(Ct(i)))}function bI(i){var u=++PT;return Ct(i)+u}var _I=Eu(function(i,u){return i+u},0),wI=Hf("ceil"),SI=Eu(function(i,u){return i/u},1),EI=Hf("floor");function xI(i){return i&&i.length?gu(i,Jn,Tf):n}function $I(i,u){return i&&i.length?gu(i,We(u,2),Tf):n}function CI(i){return qv(i,Jn)}function TI(i,u){return qv(i,We(u,2))}function OI(i){return i&&i.length?gu(i,Jn,If):n}function AI(i,u){return i&&i.length?gu(i,We(u,2),If):n}var PI=Eu(function(i,u){return i*u},1),II=Hf("round"),kI=Eu(function(i,u){return i-u},0);function RI(i){return i&&i.length?mf(i,Jn):0}function LI(i,u){return i&&i.length?mf(i,We(u,2)):0}return $.after=n3,$.ary=vy,$.assign=V3,$.assignIn=Iy,$.assignInWith=Mu,$.assignWith=W3,$.at=z3,$.before=yy,$.bind=ep,$.bindAll=JP,$.bindKey=by,$.castArray=h3,$.chain=hy,$.chunk=E5,$.compact=x5,$.concat=$5,$.cond=YP,$.conforms=ZP,$.constant=lp,$.countBy=RA,$.create=q3,$.curry=_y,$.curryRight=wy,$.debounce=Sy,$.defaults=K3,$.defaultsDeep=G3,$.defer=r3,$.delay=o3,$.difference=C5,$.differenceBy=T5,$.differenceWith=O5,$.drop=A5,$.dropRight=P5,$.dropRightWhile=I5,$.dropWhile=k5,$.fill=R5,$.filter=NA,$.flatMap=FA,$.flatMapDeep=BA,$.flatMapDepth=UA,$.flatten=cy,$.flattenDeep=L5,$.flattenDepth=N5,$.flip=i3,$.flow=eI,$.flowRight=tI,$.fromPairs=M5,$.functions=tP,$.functionsIn=nP,$.groupBy=jA,$.initial=F5,$.intersection=B5,$.intersectionBy=U5,$.intersectionWith=j5,$.invert=oP,$.invertBy=iP,$.invokeMap=VA,$.iteratee=ap,$.keyBy=WA,$.keys=pn,$.keysIn=Xn,$.map=Pu,$.mapKeys=lP,$.mapValues=aP,$.matches=nI,$.matchesProperty=rI,$.memoize=ku,$.merge=uP,$.mergeWith=ky,$.method=oI,$.methodOf=iI,$.mixin=up,$.negate=Ru,$.nthArg=lI,$.omit=cP,$.omitBy=dP,$.once=s3,$.orderBy=zA,$.over=aI,$.overArgs=l3,$.overEvery=uI,$.overSome=cI,$.partial=tp,$.partialRight=Ey,$.partition=qA,$.pick=fP,$.pickBy=Ry,$.property=Uy,$.propertyOf=dI,$.pull=z5,$.pullAll=fy,$.pullAllBy=q5,$.pullAllWith=K5,$.pullAt=G5,$.range=fI,$.rangeRight=pI,$.rearg=a3,$.reject=XA,$.remove=X5,$.rest=u3,$.reverse=Zf,$.sampleSize=YA,$.set=hP,$.setWith=mP,$.shuffle=ZA,$.slice=J5,$.sortBy=t3,$.sortedUniq=rA,$.sortedUniqBy=oA,$.split=FP,$.spread=c3,$.tail=iA,$.take=sA,$.takeRight=lA,$.takeRightWhile=aA,$.takeWhile=uA,$.tap=xA,$.throttle=d3,$.thru=Au,$.toArray=Oy,$.toPairs=Ly,$.toPairsIn=Ny,$.toPath=yI,$.toPlainObject=Py,$.transform=gP,$.unary=f3,$.union=cA,$.unionBy=dA,$.unionWith=fA,$.uniq=pA,$.uniqBy=hA,$.uniqWith=mA,$.unset=vP,$.unzip=Qf,$.unzipWith=py,$.update=yP,$.updateWith=bP,$.values=Rs,$.valuesIn=_P,$.without=gA,$.words=Fy,$.wrap=p3,$.xor=vA,$.xorBy=yA,$.xorWith=bA,$.zip=_A,$.zipObject=wA,$.zipObjectDeep=SA,$.zipWith=EA,$.entries=Ly,$.entriesIn=Ny,$.extend=Iy,$.extendWith=Mu,up($,$),$.add=_I,$.attempt=By,$.camelCase=xP,$.capitalize=My,$.ceil=wI,$.clamp=wP,$.clone=m3,$.cloneDeep=v3,$.cloneDeepWith=y3,$.cloneWith=g3,$.conformsTo=b3,$.deburr=Dy,$.defaultTo=QP,$.divide=SI,$.endsWith=$P,$.eq=Kr,$.escape=CP,$.escapeRegExp=TP,$.every=LA,$.find=MA,$.findIndex=ay,$.findKey=X3,$.findLast=DA,$.findLastIndex=uy,$.findLastKey=J3,$.floor=EI,$.forEach=my,$.forEachRight=gy,$.forIn=Y3,$.forInRight=Z3,$.forOwn=Q3,$.forOwnRight=eP,$.get=op,$.gt=_3,$.gte=w3,$.has=rP,$.hasIn=ip,$.head=dy,$.identity=Jn,$.includes=HA,$.indexOf=D5,$.inRange=SP,$.invoke=sP,$.isArguments=Di,$.isArray=Qe,$.isArrayBuffer=S3,$.isArrayLike=Gn,$.isArrayLikeObject=en,$.isBoolean=E3,$.isBuffer=ii,$.isDate=x3,$.isElement=$3,$.isEmpty=C3,$.isEqual=T3,$.isEqualWith=O3,$.isError=np,$.isFinite=A3,$.isFunction=ko,$.isInteger=xy,$.isLength=Lu,$.isMap=$y,$.isMatch=P3,$.isMatchWith=I3,$.isNaN=k3,$.isNative=R3,$.isNil=N3,$.isNull=L3,$.isNumber=Cy,$.isObject=Kt,$.isObjectLike=Gt,$.isPlainObject=Tl,$.isRegExp=rp,$.isSafeInteger=M3,$.isSet=Ty,$.isString=Nu,$.isSymbol=cr,$.isTypedArray=ks,$.isUndefined=D3,$.isWeakMap=F3,$.isWeakSet=B3,$.join=H5,$.kebabCase=OP,$.last=Ar,$.lastIndexOf=V5,$.lowerCase=AP,$.lowerFirst=PP,$.lt=U3,$.lte=j3,$.max=xI,$.maxBy=$I,$.mean=CI,$.meanBy=TI,$.min=OI,$.minBy=AI,$.stubArray=dp,$.stubFalse=fp,$.stubObject=hI,$.stubString=mI,$.stubTrue=gI,$.multiply=PI,$.nth=W5,$.noConflict=sI,$.noop=cp,$.now=Iu,$.pad=IP,$.padEnd=kP,$.padStart=RP,$.parseInt=LP,$.random=EP,$.reduce=KA,$.reduceRight=GA,$.repeat=NP,$.replace=MP,$.result=pP,$.round=II,$.runInContext=j,$.sample=JA,$.size=QA,$.snakeCase=DP,$.some=e3,$.sortedIndex=Y5,$.sortedIndexBy=Z5,$.sortedIndexOf=Q5,$.sortedLastIndex=eA,$.sortedLastIndexBy=tA,$.sortedLastIndexOf=nA,$.startCase=BP,$.startsWith=UP,$.subtract=kI,$.sum=RI,$.sumBy=LI,$.template=jP,$.times=vI,$.toFinite=Ro,$.toInteger=ot,$.toLength=Ay,$.toLower=HP,$.toNumber=Pr,$.toSafeInteger=H3,$.toString=Ct,$.toUpper=VP,$.trim=WP,$.trimEnd=zP,$.trimStart=qP,$.truncate=KP,$.unescape=GP,$.uniqueId=bI,$.upperCase=XP,$.upperFirst=sp,$.each=my,$.eachRight=gy,$.first=dy,up($,function(){var i={};return co($,function(u,f){Ot.call($.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),$.VERSION=r,xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){$[i].placeholder=$}),xr(["drop","take"],function(i,u){ht.prototype[i]=function(f){f=f===n?1:un(ot(f),0);var m=this.__filtered__&&!u?new ht(this):this.clone();return m.__filtered__?m.__takeCount__=Cn(f,m.__takeCount__):m.__views__.push({size:Cn(f,Le),type:i+(m.__dir__<0?"Right":"")}),m},ht.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),xr(["filter","map","takeWhile"],function(i,u){var f=u+1,m=f==te||f==be;ht.prototype[i]=function(b){var A=this.clone();return A.__iteratees__.push({iteratee:We(b,3),type:f}),A.__filtered__=A.__filtered__||m,A}}),xr(["head","last"],function(i,u){var f="take"+(u?"Right":"");ht.prototype[i]=function(){return this[f](1).value()[0]}}),xr(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");ht.prototype[i]=function(){return this.__filtered__?new ht(this):this[f](1)}}),ht.prototype.compact=function(){return this.filter(Jn)},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(f){return wl(f,i,u)})}),ht.prototype.reject=function(i){return this.filter(Ru(We(i)))},ht.prototype.slice=function(i,u){i=ot(i);var f=this;return f.__filtered__&&(i>0||u<0)?new ht(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ot(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},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 f=/^(?:filter|find|map|reject)|While$/.test(u),m=/^(?:head|last)$/.test(u),b=$[m?"take"+(u=="last"?"Right":""):u],A=m||/^find/.test(u);b&&($.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 gt=b.apply($,Zo([pt],M));return m&&Te?gt[0]:gt};oe&&f&&typeof re=="function"&&re.length!=1&&(W=oe=!1);var Te=this.__chain__,Ne=!!this.__actions__.length,qe=A&&!Te,st=W&&!Ne;if(!A&&oe){R=st?R:new ht(this);var Ke=i.apply(R,M);return Ke.__actions__.push({func:Au,args:[de],thisArg:n}),new Cr(Ke,Te)}return qe&&st?i.apply(this,M):(Ke=this.thru(de),qe?m?Ke.value()[0]:Ke.value():Ke)})}),xr(["pop","push","shift","sort","splice","unshift"],function(i){var u=tu[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",m=/^(?:pop|shift)$/.test(i);$.prototype[i]=function(){var b=arguments;if(m&&!this.__chain__){var A=this.value();return u.apply(Qe(A)?A:[],b)}return this[f](function(R){return u.apply(Qe(R)?R:[],b)})}}),co(ht.prototype,function(i,u){var f=$[u];if(f){var m=f.name+"";Ot.call(Ts,m)||(Ts[m]=[]),Ts[m].push({name:u,func:f})}}),Ts[Su(n,T).name]=[{name:"wrapper",func:n}],ht.prototype.clone=GT,ht.prototype.reverse=XT,ht.prototype.value=JT,$.prototype.at=$A,$.prototype.chain=CA,$.prototype.commit=TA,$.prototype.next=OA,$.prototype.plant=PA,$.prototype.reverse=IA,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=kA,$.prototype.first=$.prototype.head,hl&&($.prototype[hl]=AA),$},xs=TT();Ai?((Ai.exports=xs)._=xs,af._=xs):yn._=xs}).call(Il)})(jc,jc.exports);var X=jc.exports;const r7={chapters:[],selected:null},PE="podlove/publisher/chapter/INIT",og="podlove/publisher/chapter/UPDATE",IE="podlove/publisher/chapter/SELECT",ig="podlove/publisher/chapter/REMOVE",sg="podlove/publisher/chapter/ADD",kE="podlove/publisher/chapter/PARSE",lg="podlove/publisher/chapter/PARSED",RE="podlove/publisher/chapter/SET",LE="podlove/publisher/chapter/DOWNLOAD",ag="podlove/publisher/chapter/SELECT_IMAGE",ug="podlove/publisher/chapter/SET_IMAGE",o7=he(PE),i7=he(og),pi=he(IE),s7=he(ig),l7=he(sg),a7=he(kE),NE=he(lg),u7=he(RE),c7=he(LE),d7=he(ag);he(ug);const f7=Wn({[lg]:(e,t)=>({...e,selected:null,chapters:X.get(t,["payload"],[])}),[RE]:(e,t)=>({...e,selected:null,chapters:X.get(t,["payload"],[])}),[og]:(e,t)=>{let n=ME(e);const r=DE(e),s=e.chapters.reduce((a,c,d)=>[...a,d===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}),[sg]:e=>({...e,chapters:[...e.chapters,{start:X.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[ig]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[ug]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},r7),p7=e=>e.chapters,ME=e=>e.selected,DE=e=>e.selected!==null?X.get(e,["chapters",e.selected],null):null,Ap={chapters:p7,selectedIndex:ME,selected:DE},Pp=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)}},Ma=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=Pp(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))s=Pp(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=Pp(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 Mt{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=Ma(t)||0,new Mt(n)}}const s_=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},FE="podlove/publisher/episode/INIT",Qs="podlove/publisher/episode/UPDATE",BE="podlove/publisher/episode/QUICKSAVE",UE="podlove/publisher/episode/SAVED",jE="podlove/publisher/episode/SLUG_CHANGED",Id="podlove/publisher/episode/SET",HE="podlove/publisher/episode/SET_POSTER",VE="podlove/publisher/episode/SELECT_POSTER",cg="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",dg="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",fg="podlove/publisher/episode/DELETE_CONTRIBUTION",pg="podlove/publisher/episode/UPDATE_CONTRIBUTION",hg="podlove/publisher/episode/ADD_CONTRIBUTION",WE="podlove/publisher/episode/CREATE_CONTRIBUTION",h7={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,is_auphonic_production_running:!1,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},wt=he(Qs),m7=he(BE),kd=he(FE),g7=he(VE),zE=he(Id),v7=he(cg),y7=he(dg),b7=he(fg),Ip=he(pg),qE=he(hg),_7=he(WE),w7=he(UE),S7=he(jE),E7=Wn({[Eo]:(e,t)=>({...e,id:X.get(t,["payload","episode","id"],null),duration:Mt.fromString(X.get(t,["payload","episode","duration"],null)).totalMs}),[Qs]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","auphonic_webhook_config","is_auphonic_production_running","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number","episode_poster","poster","explicit"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})},[Id]:(e,t)=>({...e,slug:X.get(t,["payload","slug"],e.slug),number:X.get(t,["payload","number"],e.number),duration:X.get(t,["payload","duration"],e.duration),title:X.get(t,["payload","title_clean"],e.title),subtitle:X.get(t,["payload","subtitle"],e.subtitle),summary:X.get(t,["payload","summary"],e.summary),type:X.get(t,["payload","type"],e.type),episode_poster:X.get(t,["payload","episode_poster"],e.episode_poster),poster:X.get(t,["payload","poster"],e.poster),mnemonic:X.get(t,["payload","mnemonic"],e.mnemonic),explicit:X.get(t,["payload","explicit"],e.explicit),auphonic_production_id:X.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),is_auphonic_production_running:X.get(t,["payload","is_auphonic_production_running"],e.is_auphonic_production_running),auphonic_webhook_config:X.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:X.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:X.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:X.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:X.get(t,["payload","license_name"],e.license_name),license_url:X.get(t,["payload","license_url"],e.license_url),contributions:X.get(t,["payload","contributions"],e.contributions),show:X.get(t,["payload","show"],e.show)}),[cg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===X.get(t,["payload","position"]));return n<1?e:{...e,contributions:s_(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[dg]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===X.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:s_(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[fg]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>X.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[pg]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==X.get(t,["payload","contributor_id"])?n:X.pick(X.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[hg]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:X.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},h7),Xt={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,isAuphonicProductionRunning:e=>e.is_auphonic_production_running,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},x7={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},$7=Wn({[Eo]:(e,t)=>({...e,baseUrl:X.get(t,["payload","baseUrl"],null),api:{base:X.get(t,["payload","api","base"],null),nonce:X.get(t,["payload","api","nonce"],null),auth:X.get(t,["payload","api","auth"],null),bearer:X.get(t,["payload","api","bearer"],null)}})},x7),kl={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},Rd="podlove/publisher/wordpress/UPDATE",KE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",$h=he(Rd),mg=he(KE),C7={id:null,title:null,featured_media:null},T7=Wn({[Eo]:(e,t)=>({...e,id:X.get(t,["payload","post","id"],null),title:X.get(t,["payload","post","title"],null),featured_media:X.get(t,["payload","post","featured_media"],null)}),[Rd]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.get(t,["payload","value"],null);return["title","featured_media"].includes(n)?{...e,[n]:r}:{...e}}},C7),kp={id:e=>e.id,title:e=>e.title,featured_media:e=>e.featured_media},GE="podlove/publisher/transcript/INIT",XE="podlove/publisher/transcript/SET_TRANSCRIPTS",JE="podlove/publisher/transcript/SET_VOICES",gg="podlove/publisher/transcript/UPDATE_VOICE",YE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",ZE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",QE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",O7=he(GE),A7=he(XE),P7=he(JE),I7=he(gg),k7=he(YE),R7=he(ZE),L7=he(QE),N7={transcripts:[],voices:[]},M7=Wn({[XE]:(e,t)=>({...e,transcripts:t.payload}),[JE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[gg]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},N7),l_={transcripts:e=>e.transcripts,voices:e=>e.voices},D7={contributors:[],roles:[],groups:[]},e2="podlove/publisher/contributors/INIT",t2="podlove/publisher/contributors/SET_CONTRIBUTORS",n2="podlove/publisher/contributors/SET_ROLES",r2="podlove/publisher/contributors/SET_GROUPS",o2="podlove/publisher/contributors/ADD",i2=he(e2),F7=he(t2),B7=he(n2),U7=he(r2),j7=he(o2),H7=Wn({[t2]:(e,t)=>({...e,contributors:t.payload}),[n2]:(e,t)=>({...e,roles:t.payload}),[r2]:(e,t)=>({...e,groups:t.payload}),[o2]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},D7),Rp={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},V7={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:[]},W7=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},z7=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},q7=Wn({[Eo]:(e,t)=>({...e,metadata:{enable_episode_explicit:X.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:X.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:X.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1"},tracking:{mode:X.get(t,["payload","expert_settings","tracking","mode"],null),window:X.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:X.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:X.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:X.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:X.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:X.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:X.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:X.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:X.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:X.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:X.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:X.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:X.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:X.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:X.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:W7(X.get(t,["payload","assignments","image"],null)),chapter:z7(X.get(t,["payload","assignments","chapter"],null)),transcript:X.get(t,["payload","assignments","transcript"],null)},modules:X.get(t,["payload","modules"])})},V7),Ui={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},K7="podlove/publisher/podcast/INIT",s2="podlove/publisher/podcast/SET",G7="podlove/publisher/podcasr/SAVED",vg="podlove/publisher/podcast/UPDATE",X7={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};he(K7);const J7=he(s2);he(G7);const ea=he(vg),Y7=Wn({[s2]:(e,t)=>({title:X.get(t,["payload","title"],e.title),subtitle:X.get(t,["payload","subtitle"],e.subtitle),summary:X.get(t,["payload","summary"],e.summary),mnemonic:X.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:X.get(t,["payload","itunes_type"],e.itunes_type),author_name:X.get(t,["payload","author_name"],e.author_name),poster:X.get(t,["payload","poster"],e.poster),link:X.get(t,["payload","link"],e.link),license_name:X.get(t,["payload","license_name"],e.license_name),license_url:X.get(t,["payload","license_url"],e.license_url)}),[vg]:(e,t)=>{const n=X.get(t,["payload","prop"]),r=X.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})}},X7),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},Z7={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},l2="podlove/publisher/auphonic/INIT",a2="podlove/publisher/auphonic/INIT_DONE",u2="podlove/publisher/auphonic/SET_TOKEN",Hc="podlove/publisher/auphonic/SET_PRODUCTION",c2="podlove/publisher/auphonic/SET_PRODUCTIONS",d2="podlove/publisher/auphonic/SET_SERVICES",f2="podlove/publisher/auphonic/CREATE_PRODUCTION",p2="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",h2="podlove/publisher/auphonic/SAVE_PRODUCTION",m2="podlove/publisher/auphonic/START_PRODUCTION",Vc="podlove/publisher/auphonic/DESELECT_PRODUCTION",Q7="podlove/publisher/auphonic/SELECT_SERVICE",yg="podlove/publisher/auphonic/SET_SERVICE_FILES",eD="podlove/publisher/auphonic/SELECT_TRACKS",g2="podlove/publisher/auphonic/ADD_TRACK",v2="podlove/publisher/auphonic/REMOVE_TRACK",y2="podlove/publisher/auphonic/UPDATE_TRACK",b2="podlove/publisher/auphonic/SET_PRESETS",bg="podlove/publisher/auphonic/SET_PRESET",_g="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",_2="podlove/publisher/auphonic/START_POLLING",Wc="podlove/publisher/auphonic/STOP_POLLING",w2="podlove/publisher/auphonic/START_SAVING",S2="podlove/publisher/auphonic/STOP_SAVING",wg="podlove/publisher/auphonic/UPDATE_WEBHOOK",tD=he(l2),nD=he(a2),rD=he(u2),ps=he(Hc),E2=he(Vc),x2=he(c2),oD=he(f2),iD=he(p2),$2=he(h2),C2=he(m2),sD=he(b2),Sg=he(bg),lD=he(d2),aD=he(yg),T2=he(Q7),O2=he(_g);he(eD);const uD=he(g2),A2=he(v2),P2=he(y2),cD=he(_2),a_=he(Wc),dD=he(w2),fD=he(S2),I2=he(wg),pD=Wn({[a2]:e=>({...e,is_initializing:!1}),[_g]:(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}}}),[g2]:(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"}]}},[v2]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[y2]:(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}},[yg]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[d2]:(e,t)=>({...e,services:t.payload}),[b2]:(e,t)=>({...e,presets:t.payload}),[c2]:(e,t)=>({...e,productions:t.payload}),[Hc]:(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,d)=>{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${d}`]:{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,d,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(d=a.algorithms)==null?void 0:d.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[Vc]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[bg]:(e,t)=>({...e,preset:t.payload}),[u2]:(e,t)=>({...e,token:t.payload}),[w2]:(e,t)=>({...e,is_saving:!0}),[S2]:(e,t)=>({...e,is_saving:!1}),[wg]:(e,t)=>({...e,publish_when_done:t.payload})},Z7),hD=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}):[],mD=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})):[],gD=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:hD(t==null?void 0:t.chapters),output_files:mD(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:gD,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},vD={},k2="podlove/publisher/progress/SET_PROGRESS",R2="podlove/publisher/progress/RESET_PROGRESS",yD=he(k2);he(R2);const bD=Wn({[k2]:(e,t)=>({...e,[t.payload.key]:t.payload.progress}),[R2]:(e,t)=>{const n={...e};return delete n[t.payload],n}},vD),_D=(e,t)=>e[t]??0,wD={progress:_D},SD={is_initializing:!0,slug_autogeneration_enabled:!1,files:[]},L2="podlove/publisher/mediafiles/INIT",N2="podlove/publisher/mediafiles/INIT_DONE",M2="podlove/publisher/mediafiles/SET",Eg="podlove/publisher/mediafiles/UPDATE",zc="podlove/publisher/mediafiles/ENABLE",qc="podlove/publisher/mediafiles/DISABLE",D2="podlove/publisher/mediafiles/VERIFY",F2="podlove/publisher/mediafiles/UPLOAD_INTENT",xg="podlove/publisher/mediafiles/SET_UPLOAD_URL",B2="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",U2="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",ED=he(L2),xD=he(N2),$D=he(M2),Ch=he(Eg),CD=he(zc),TD=he(qc),OD=he(D2),AD=he(F2);he(xg);const PD=he(B2),j2=he(U2),ID=Wn({[N2]:e=>({...e,is_initializing:!1}),[M2]:(e,t)=>({...e,files:t.payload}),[Eg]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[zc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[qc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[B2]:e=>({...e,slug_autogeneration_enabled:!0}),[U2]:e=>({...e,slug_autogeneration_enabled:!1})},SD),Lp={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files},kD={episodeList:[],selectEpisodes:[]},H2="podlove/publisher/relatedEpisodes/INIT",V2="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",$g="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",RD="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",LD=he(H2),ND=he(V2),W2=he($g);he(RD);const MD=Wn({[Eo]:(e,t)=>({...e}),[V2]:(e,t)=>({...e,episodeList:t.payload}),[$g]:(e,t)=>({...e,selectEpisodes:t.payload})},kD),u_={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},Cg="podlove/publisher/shows/INIT",Tg="podlove/publisher/shows/SET",Kc="podlove/publisher/shows/SELECT",z2=he(Cg),q2=he(Tg),K2=he(Kc),G2={shows:[]},X2=Wn({[Tg]:(e,t)=>({...e,shows:X.get(t,["payload"],[])})},G2),J2={shows:e=>e.shows},DD=Object.freeze(Object.defineProperty({__proto__:null,INIT:Cg,SELECT:Kc,SET:Tg,init:z2,initialState:G2,reducer:X2,select:K2,selectors:J2,set:q2},Symbol.toStringTag,{value:"Module"})),xe={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,progress:e=>e.progress,mediafiles:e=>e.mediafiles,settings:e=>e.settings,relatedEpisodes:e=>e.relatedEpisodes,shows:e=>e.shows},FD={bootstrapped:Ee(xe.lifecycle,n7.bootstrapped)},BD={token:Ee(xe.auphonic,On.token),productionId:Ee(xe.auphonic,On.productionId),productions:Ee(xe.auphonic,On.productions),production:Ee(xe.auphonic,On.production),presets:Ee(xe.auphonic,On.presets),preset:Ee(xe.auphonic,On.preset),productionPayload:Ee(xe.auphonic,On.productionPayload),incomingServices:Ee(xe.auphonic,On.incomingServices),outgoingServices:Ee(xe.auphonic,On.outgoingServices),serviceFiles:Ee(xe.auphonic,On.serviceFiles),tracks:Ee(xe.auphonic,On.tracks),fileSelections:Ee(xe.auphonic,On.fileSelections),currentFileSelection:Ee(xe.auphonic,On.currentFileSelection),isSaving:Ee(xe.auphonic,On.isSaving),isInitializing:Ee(xe.auphonic,On.isInitializing),publishWhenDone:Ee(xe.auphonic,On.publishWhenDone)},UD={progress:Ee([xe.progress,(e,t)=>t],wD.progress)},jD={title:Ee(xe.podcast,ho.title),subtitle:Ee(xe.podcast,ho.subtitle),summary:Ee(xe.podcast,ho.summary),mnemonic:Ee(xe.podcast,ho.mnemonic),itunesType:Ee(xe.podcast,ho.itunesType),author:Ee(xe.podcast,ho.author),poster:Ee(xe.podcast,ho.poster),link:Ee(xe.podcast,ho.link),license_name:Ee(xe.podcast,ho.license_name),license_url:Ee(xe.podcast,ho.license_url)},HD={list:Ee(xe.chapters,Ap.chapters),selected:Ee(xe.chapters,Ap.selected),selectedIndex:Ee(xe.chapters,Ap.selectedIndex)},Y2={contributors:Ee(xe.contributors,Rp.contributors),roles:Ee(xe.contributors,Rp.roles),groups:Ee(xe.contributors,Rp.groups)},VD={id:Ee(xe.episode,Xt.id),slug:Ee(xe.episode,Xt.slug),duration:Ee(xe.episode,Xt.duration),number:Ee(xe.episode,Xt.number),title:Ee(xe.episode,Xt.title),subtitle:Ee(xe.episode,Xt.subtitle),summary:Ee(xe.episode,Xt.summary),type:Ee(xe.episode,Xt.type),poster:Ee(xe.episode,Xt.poster),episodePoster:Ee(xe.episode,Xt.episodePoster),mnemonic:Ee(xe.episode,Xt.mnemonic),explicit:Ee(xe.episode,Xt.explicit),soundbite_start:Ee(xe.episode,Xt.soundbite_start),soundbite_duration:Ee(xe.episode,Xt.soundbite_duration),soundbite_title:Ee(xe.episode,Xt.soundbite_title),auphonicProductionId:Ee(xe.episode,Xt.auphonicProductionId),isAuphonicProductionRunning:Ee(xe.episode,Xt.isAuphonicProductionRunning),auphonicWebhookConfig:Ee(xe.episode,Xt.auphonicWebhookConfig),license_name:Ee(xe.episode,Xt.license_name),license_url:Ee(xe.episode,Xt.license_url),contributions:Ee(Ee(xe.episode,Xt.contributions),Y2.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:Ee(xe.episode,Xt.currentShow)},WD={isInitializing:Ee(xe.mediafiles,Lp.isInitializing),files:Ee(xe.mediafiles,Lp.files),slugAutogenerationEnabled:Ee(xe.mediafiles,Lp.slugAutogenerationEnabled)},zD={baseUrl:Ee(xe.runtime,kl.baseUrl),nonce:Ee(xe.runtime,kl.nonce),base:Ee(xe.runtime,kl.base),auth:Ee(xe.runtime,kl.auth),bearer:Ee(xe.runtime,kl.bearer)},qD={id:Ee(xe.post,kp.id),title:Ee(xe.post,kp.title),featuredMedia:Ee(xe.post,kp.featured_media)},KD={list:Ee(xe.transcripts,l_.transcripts),voices:Ee(xe.transcripts,l_.voices)},GD={autoGenerateEpisodeTitle:Ee(xe.settings,Ui.autoGenerateEpisodeTitle),blogTitleTemplate:Ee(xe.settings,Ui.blogTitleTemplate),episodeNumberPadding:Ee(xe.settings,Ui.episodeNumberPadding),mediaFileBaseUri:Ee(xe.settings,Ui.mediaFileBaseUri),imageAsset:Ee(xe.settings,Ui.imageAsset),enableEpisodeExplicit:Ee(xe.settings,Ui.enableEpisodeExplicit),modules:Ee(xe.settings,Ui.modules)},XD={episodeList:Ee(xe.relatedEpisodes,u_.episodeList),selectEpisode:Ee(xe.relatedEpisodes,u_.selectEpisodes)},JD={list:Ee(xe.shows,J2.shows)},K={lifecycle:FD,podcast:jD,chapters:HD,episode:VD,runtime:zD,post:qD,transcripts:KD,contributors:Y2,settings:GD,auphonic:BD,progress:UD,mediafiles:WD,relatedEpisodes:XD,shows:JD},YD=NS({lifecycle:t7,chapters:f7,episode:E7,runtime:$7,post:T7,transcripts:M7,contributors:H7,settings:q7,podcast:Y7,auphonic:pD,progress:bD,mediafiles:ID,relatedEpisodes:MD,shows:X2});var c_=function(t){return{done:!0,value:t}},Np={};function Ld(e){return $d(e)?"channel":qS(e)?String(e):Vn(e)?e.name:String(e)}function Nd(e,t,n){var r,o,s,l=t;function a(c,d){if(l===Np)return c_(c);if(d&&!o)throw l=Np,d;r&&r(c);var p=d?e[o](d):e[l]();return l=p.nextState,s=p.effect,r=p.stateUpdater,o=p.errorState,l===Np?c_(c):s}return Eh(a,function(c){return a(null,c)},n)}function ZD(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:Qr(e)},l=function(p){return{done:!1,value:kt.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Nd({q1:function(){return{nextState:"q2",effect:s,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+Ld(e)+", "+t.name+")")}function QD(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:Qr(e)},l=function(y){return{done:!1,value:kt.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:GN(y)}},c,d,p=function(y){return c=y},h=function(y){return d=y};return Nd({q1:function(){return{nextState:"q2",effect:s,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(d),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(d),stateUpdater:p}}},"q1","takeLatest("+Ld(e)+", "+t.name+")")}function eF(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:Qr(a)}},d=function(S){return{done:!1,value:kt.apply(void 0,[n].concat(o,[S]))}},p={done:!1,value:Jm(e)},h=function(S){return l=S},g=function(S){return a=S},y=!$d(t);return y||g(t),Nd({q1:function(){var S={done:!1,value:XN(t,jN(1))};return{nextState:"q2",effect:S,stateUpdater:g}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:d(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+Ld(t)+", "+n.name+")")}function tF(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:Qr(t)},d={done:!1,value:xh({action:Qr(t),debounce:Jm(e)})},p=function(S){return{done:!1,value:kt.apply(void 0,[n].concat(o,[S]))}},h=function(S){return{done:!1,value:S}},g=function(S){return l=S},y=function(S){return a=S};return Nd({q1:function(){return{nextState:"q2",effect:c,stateUpdater:g}},q2:function(){return{nextState:"q3",effect:d,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:g}}},"q1","debounce("+Ld(t)+", "+n.name+")")}function ze(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 kt.apply(void 0,[ZD,e,t].concat(r))}function nF(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 kt.apply(void 0,[QD,e,t].concat(r))}function Z2(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 kt.apply(void 0,[eF,e,t,n].concat(o))}function Th(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 kt.apply(void 0,[tF,e,t,n].concat(o))}function rF(){return function*(){const e=yield Nn(sF,"click","button.editor-post-publish-button");yield ze(e,oF),yield ze(Eo,iF)}}function*oF(){yield Oe(ZM())}function*iF(){yield Oe(QM())}function sF(e,t){return EE(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(Hs)}})}const Oh=e=>EE(t=>(e(r=>{t(r||{})}),()=>{}));function*xo(e,t,...n){return yield kt(function*(){for(;;){const o=yield Qr(e);yield Nn(t,...n.concat(o))}})}function*lF(e){if(!(yield Se(e))){for(;;)if(yield Qr("*"),yield Se(e))return}}const cl=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},Da=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},Q2=({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}),d_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,{headers:a,query:c}={})=>fetch(cl(s?s(l):l,c),{method:o,headers:Q2({nonce:t,auth:n,bearer:r},a)}).then(Da(e)),f_=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,a,{headers:c,query:d}={})=>fetch(cl(s?s(l):l,d),{method:o,headers:Q2({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(Da(e)),aF=X.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:s})=>({get:d_({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:s,urlProcessor:l=>`${e}/${t}/${l}`}),delete:d_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:f_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:f_({nonce:n,auth:r,bearer:o,errorHandler:s,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),ex="podlove/publisher/NOTIFY",Og=he(ex),uF={};Wn({},uF);function*Jo(){yield Nn(lF,K.lifecycle.bootstrapped);const e=yield Se(K.runtime.base),t=yield Se(K.runtime.nonce),n=yield Se(K.runtime.auth),r=yield Se(K.runtime.bearer);return aF({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(s){Hd.dispatch(Og({type:"error",message:s}))}})}function*cF(){const e=yield Jo();yield kt(dF,e),yield ze(vg,fF)}function*dF(e){const{result:t}=yield e.get("podcast");t&&(yield Oe(J7(t)))}function fF(e){const t=X.get(e,["payload","prop"]);X.get(e,["payload","value"],null)}function pF(){return function*(){yield xo(Eo,cF)}}function hF(){return function*(){yield ze(ex,mF)}}function*mF(e){const t=X.get(globalThis,["wp","data","dispatch"]);t?gF(t,X.get(e,["payload"])):vF(e.payload)}function gF(e,{type:t,message:n}){n&&e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function vF({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 tx={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,s)=>{function l(g){if(g&&typeof g=="object"){var y=g.which||g.keyCode||g.charCode;y&&(g=y)}if(typeof g=="number")return p[g];var _,S=String(g);return(_=a[S.toLowerCase()])?_:(_=c[S.toLowerCase()])||(S.length===1?S.charCodeAt(0):void 0)}l.isEventKey=function(g,y){if(g&&typeof g=="object"){var _=g.which||g.keyCode||g.charCode;if(_==null)return!1;if(typeof y=="string"){var S;if((S=a[y.toLowerCase()])||(S=c[y.toLowerCase()]))return S===_}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,"⇧":16,"⌥":18,"⌃":17,"⌘":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(d=97;d<123;d++)a[String.fromCharCode(d)]=d-32;for(var d=48;d<58;d++)a[d-48]=d;for(d=1;d<13;d++)a["f"+d]=d+111;for(d=0;d<10;d++)a["numpad "+d]=d+96;var p=s.names=s.title={};for(d in a)p[a[d]]=d;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<"u"&&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,$e){switch(arguments.length){case 0:return ae;case 1:return o(fe)?ae:s(function(Ve){return Q(fe,Ve)});default:return o(fe)&&o($e)?ae:o(fe)?s(function(Ve){return Q(Ve,$e)}):o($e)?s(function(Ve){return Q(fe,Ve)}):Q(fe,$e)}}}n.r(r),n.d(r,{keydown:()=>Le,keyup:()=>Ge});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const d=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 $e,Ve=ae,De=0;De<fe.length;){if(Ve==null)return;$e=fe[De],Ve=a($e)?d($e,Ve):Ve[$e],De+=1}return Ve})}),h=l(function(Q,ae){return p([Q],ae)[0]}),g=l(function(Q,ae){return h([Q],ae)});function y(Q){return function ae(fe,$e,Ve){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($e)?ae:o(fe)?l(function(De,tt){return Q(De,$e,tt)}):o($e)?l(function(De,tt){return Q(fe,De,tt)}):s(function(De){return Q(fe,$e,De)});default:return o(fe)&&o($e)&&o(Ve)?ae:o(fe)&&o($e)?l(function(De,tt){return Q(De,tt,Ve)}):o(fe)&&o(Ve)?l(function(De,tt){return Q(De,$e,tt)}):o($e)&&o(Ve)?l(function(De,tt){return Q(fe,De,tt)}):o(fe)?s(function(De){return Q(De,$e,Ve)}):o($e)?s(function(De){return Q(fe,De,Ve)}):o(Ve)?s(function(De){return Q(fe,$e,De)}):Q(fe,$e,Ve)}}}const _=l(function(Q,ae){return ae==null||ae!=ae?Q:ae}),S=y(function(Q,ae,fe){return _(Q,h(ae,fe))}),C=y(function(Q,ae,fe){return S(Q,[ae],fe)});function T(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,$e){return ae.apply(this,arguments)};case 3:return function(fe,$e,Ve){return ae.apply(this,arguments)};case 4:return function(fe,$e,Ve,De){return ae.apply(this,arguments)};case 5:return function(fe,$e,Ve,De,tt){return ae.apply(this,arguments)};case 6:return function(fe,$e,Ve,De,tt,gn){return ae.apply(this,arguments)};case 7:return function(fe,$e,Ve,De,tt,gn,ln){return ae.apply(this,arguments)};case 8:return function(fe,$e,Ve,De,tt,gn,ln,L){return ae.apply(this,arguments)};case 9:return function(fe,$e,Ve,De,tt,gn,ln,L,B){return ae.apply(this,arguments)};case 10:return function(fe,$e,Ve,De,tt,gn,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 w(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]"},O=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 x=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 I=l(function(Q,ae){return T(Q.length,function(){return Q.apply(ae,arguments)})});function k(Q,ae,fe){for(var $e=fe.next();!$e.done;){if((ae=Q["@@transducer/step"](ae,$e.value))&&ae["@@transducer/reduced"]){ae=ae["@@transducer/value"];break}$e=fe.next()}return Q["@@transducer/result"](ae)}function P(Q,ae,fe,$e){return Q["@@transducer/result"](fe[$e](I(Q["@@transducer/step"],Q),ae))}var H=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function D(Q,ae,fe){if(typeof Q=="function"&&(Q=function($e){return new x($e)}(Q)),O(fe))return function($e,Ve,De){for(var tt=0,gn=De.length;tt<gn;){if((Ve=$e["@@transducer/step"](Ve,De[tt]))&&Ve["@@transducer/reduced"]){Ve=Ve["@@transducer/value"];break}tt+=1}return $e["@@transducer/result"](Ve)}(Q,ae,fe);if(typeof fe["fantasy-land/reduce"]=="function")return P(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 P(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 $e=arguments[fe-1];return E($e)||typeof $e[Q]!="function"?ae.apply(this,arguments):$e[Q].apply($e,Array.prototype.slice.call(arguments,0,fe-1))}}const G=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 T(arguments[0].length,F(w,arguments[0],G(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 Ae=n(9620),Pe=n.n(Ae);const Ye=Q=>ae=>{g("nodeName",ae.target)==="BODY"&&Q(ae)},ft=Q=>({key:Pe()(Q),ctrl:C(!1,"ctrlKey",Q),shift:C(!1,"shiftKey",Q),meta:C(!1,"metaKey",Q),alt:C(!1,"altKey",Q)}),Le=Q=>document.addEventListener("keydown",Ye(be(Q,ft))),Ge=Q=>document.addEventListener("keyup",Ye(be(Q,ft)))})(),tx.utils=r})();function yF(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=Ma(o[1]);s!==null&&n.push({title:o[2].trim(),start:s})}return n},[])}function bF(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=Ma(o[1].replace(",",".")),l=o[3].trim();s!==null&&n.push({title:l,start:s})}return n},[])}function _F(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=Ma(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",d=l.getAttribute("URL")||"";return a!==null&&s.push({start:a,title:c.trim(),...d?{href:d.trim()}:{}}),s},[]);return o.sort(function(s,l){return s.start-l.start}),o}function wF(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=Ma(s.getAttribute("start")||""),a=s.getAttribute("title")||"",c=s.getAttribute("href")||"",d=s.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...d?{image:d.trim()}:{}}),o},[])}const nx=X.get(window,["wp","i18n","__"],e=>e),SF=nx,EF={install(e){e.config.globalProperties.__=(t,n)=>nx(t,n)}};function*xF(){const e=yield Jo();yield kt($F,e),yield ze([kE],PF),yield ze(LE,TF),yield ze([og,lg,sg,ig,ug],CF,e);const t=yield Nn(Oh,tx.utils.keydown);yield ze(t,IF),yield ze(ag,kF)}function*$F(e){const t=yield Se(K.episode.id),{result:n}=yield e.get(`chapters/${t}`);n&&(yield Oe(u7(n.chapters.map(r=>({...r,start:Mt.fromString(r.start).totalMs})))))}function*CF(e){const t=yield Se(K.episode.id),n=yield Se(K.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Mt(r.start).pretty}))})}function*TF(e){const t=yield Se(K.chapters.list);switch(e.payload){case"psc":p_("chapters.psc",OF(t));break;case"mp4":p_("chapters.txt",AF(t));break}}function OF(e){const t=new XMLSerializer,o=new DOMParser().parseFromString('<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',"text/xml");let s=o.getElementsByTagName("chapters");return s.length||(s=o.getElementsByTagName("psc:chapters")),s=s[0],e.forEach(c=>{let d=o.createElement("psc:chapter");d.setAttribute("title",c.title||""),d.setAttribute("start",c.start?new Mt(c.start).pretty:"00:00:00"),c.href&&d.setAttribute("href",c.href),c.image&&d.setAttribute("image",c.image),s.appendChild(d)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,`
    4747    <psc:chapter `).replace("</psc:chapters>",`
    48 </psc:chapters>`)}function _F(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(`
     48</psc:chapters>`)}function AF(e){const t=r=>isNaN(r.start)?"":new Mt(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(`
    4949`)+`
    50 `}function f_(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*wF(e){const t=[uF,cF,dF,fF];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield Oe(Tg({type:"error",message:pF("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield Oe(LE(n))}function*SF(e){const t=yield Se(K.chapters.selectedIndex);if(t===null)return;const n=yield Se(K.chapters.list);switch(!0){case e.key==="up":t===0?yield Oe(fi(n.length-1)):yield Oe(fi(t-1));break;case e.key==="down":t===n.length-1?yield Oe(fi(0)):yield Oe(fi(t+1));break;case e.key==="esc":yield Oe(fi(null));break}}function*EF(){yield Oe(hg({onSuccess:{type:lg}}))}function xF(){return function*(){yield xo(AE,mF)}}function*$F(){const e=yield Xo();yield Dt(Md,e),yield We(JE,CF,e),yield We(mg,OF,e),yield We(ZE,AF,e),yield We(YE,TF,e)}function*Md(e){const t=yield Se(K.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield Oe(C7(X.get(n,["result","transcript"],[]))),yield Oe(T7(X.get(r,["result","voices"],[])))}function*CF(e,t){const n=yield Se(K.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield Dt(Md,e))}function*TF(e,t){const n=yield Se(K.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield Dt(Md,e))}function*OF(e,t){const n=yield Se(K.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*AF(e){const t=yield Se(K.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield Dt(Md,e))}function IF(){return function*(){yield xo(KE,$F)}}function*PF(){const e=yield Xo();yield Dt(LF,e),yield Dt(NF,e),yield Dt(MF,e),yield Dt(kF,e),yield We(VE,DF,e),yield X2(3e3,[cg,ug,dg,fg,pg],RF,e)}function*kF(e){const t=yield Se(K.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);n&&(yield Oe(WE({contributions:X.get(n,["contribution"],[])})))}function*RF(e){const t=yield Se(K.episode.id);if(!t)return;const n=yield Se(K.contributors.roles),r=yield Se(K.contributors.groups);let s=(yield Se(K.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:d,comment:p}){return{contributor_id:X.toInteger(l),role_id:X.toInteger(a)==0&&n.length>0?n[0].id:X.toInteger(a),group_id:X.toInteger(c)==0&&r.length>0?r[0].id:X.toInteger(c),position:X.toInteger(d),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:s})}function*LF(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});t&&(yield Oe(N7(X.get(t,"contributors",[]))))}function*NF(e){const{result:t}=yield e.get("contributors/roles");t&&(yield Oe(M7(X.get(t,"roles",[]))))}function*MF(e){const{result:t}=yield e.get("contributors/groups");t&&(yield Oe(D7(X.get(t,"groups",[]))))}function*DF(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,s=X.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:s});if(l)return;const a={id:o,realname:s};yield Oe(F7(a)),yield Oe(zE(a))}function FF(){return function*(){yield xo(QE,PF)}}const Do=X.get(window,["wp","data"],null),ex=X.get(window,["wp","media"],null),es=document.querySelector('input[name="post_title"]'),BF=e=>es==null?void 0:es.addEventListener("change",t=>e(X.get(t,["target","value"])));function*UF(){const e=yield Se(K.settings.autoGenerateEpisodeTitle);typeof(Do==null?void 0:Do.subscribe)<"u"&&(yield We(yield Zn(Oh,Do==null?void 0:Do.subscribe),VF)),es&&(yield We(yield Zn(Oh,BF),tx)),e&&(yield We(Pd,p_),yield We(Qs,p_)),ex&&(yield We(qE,WF))}function jF(){return Do.select("core/editor").getEditedPostAttribute("featured_media")}function HF(){return Do.select("core/editor").getEditedPostAttribute("title")}function*VF(){const e=HF(),t=jF(),n=t?Do.select("core").getMedia(t):null,r=yield Se(K.post.title),o=yield Se(K.post.featuredMedia);r!=e&&(yield Oe($h({prop:"title",value:e}))),X.get(o,["id"])!=X.get(n,["id"])&&(yield Oe($h({prop:"featured_media",value:n})))}function*tx(e){yield Oe($h({prop:"title",value:e}))}function*p_(){if(!es)return;const e=yield Se(K.settings.blogTitleTemplate);if(!e)return;const t=yield Se(K.episode.title),n=yield Se(K.episode.number),r=yield Se(K.podcast.mnemonic),o=yield Se(K.settings.episodeNumberPadding),s=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");es.value!=s&&(es.value=s,yield tx(s))}function*WF(e){const t=X.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=ex({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 Oe({...t,payload:o})}finally{}}function zF(){return function*(){yield xo(Eo,UF)}}let jl={};function*qF(){const e=yield Xo();yield Dt(GF,e),yield We(Qs,XF),yield Th(1e3,Qs,h_,e),yield Th(50,FE,h_,e),yield We(BE,JF),yield We(HE,YF),yield We(jE,ZF),yield We(Rd,QF),yield We(Pd,KF)}function*KF(){const e=yield Se(K.episode.auphonicWebhookConfig);e&&(yield Oe(I2(e.enabled)))}function*GF(e){const t=yield Se(K.episode.id),{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield Oe(SD())),yield Oe(WE(n)))}function XF(e){const t=X.get(e,["payload","prop"]),n=X.get(e,["payload","value"],null);t&&(jl[t]=n)}function*h_(e,t){const n=yield Se(K.episode.id);X.isEmpty(jl)||(yield e.put(`episodes/${n}`,jl,{query:{skip_validation:"1"}}),yield Oe(y7(jl)),jl={})}function*JF(e){Object.keys(e.payload).includes("slug")&&(yield Oe(b7()))}function*YF(){yield Oe(hg({onSuccess:{type:jE}}))}function*ZF(e){yield Oe(wt({prop:"episode_poster",value:X.get(e,["payload"])}))}function*QF(e){if((yield Se(K.settings.imageAsset))!="post-thumbnail"||X.get(e,["payload","prop"])!="featured_media")return;const n=X.get(e,["payload","value","source_url"]);yield Oe(wt({prop:"poster",value:n}))}function e8(){return function*(){yield xo(DE,qF)}}function nx(e,t){return function(){return e.apply(t,arguments)}}const{toString:t8}=Object.prototype,{getPrototypeOf:Og}=Object,Dd=(e=>t=>{const n=t8.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),io=e=>(e=e.toLowerCase(),t=>Dd(t)===e),Fd=e=>t=>typeof t===e,{isArray:dl}=Array,ya=Fd("undefined");function n8(e){return e!==null&&!ya(e)&&e.constructor!==null&&!ya(e.constructor)&&br(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rx=io("ArrayBuffer");function r8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rx(e.buffer),t}const o8=Fd("string"),br=Fd("function"),ox=Fd("number"),Bd=e=>e!==null&&typeof e=="object",i8=e=>e===!0||e===!1,fc=e=>{if(Dd(e)!=="object")return!1;const t=Og(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},s8=io("Date"),l8=io("File"),a8=io("Blob"),u8=io("FileList"),c8=e=>Bd(e)&&br(e.pipe),d8=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||br(e.append)&&((t=Dd(e))==="formdata"||t==="object"&&br(e.toString)&&e.toString()==="[object FormData]"))},f8=io("URLSearchParams"),[p8,h8,m8,g8]=["ReadableStream","Request","Response","Headers"].map(io),v8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),dl(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 ix(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 Ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sx=e=>!ya(e)&&e!==Ki;function Ah(){const{caseless:e}=sx(this)&&this||{},t={},n=(r,o)=>{const s=e&&ix(t,o)||o;fc(t[s])&&fc(r)?t[s]=Ah(t[s],r):fc(r)?t[s]=Ah({},r):dl(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Fa(arguments[r],n);return t}const y8=(e,t,n,{allOwnKeys:r}={})=>(Fa(t,(o,s)=>{n&&br(o)?e[s]=nx(o,n):e[s]=o},{allOwnKeys:r}),e),b8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_8=(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)},w8=(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&&Og(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},S8=(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},E8=e=>{if(!e)return null;if(dl(e))return e;let t=e.length;if(!ox(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},x8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Og(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])}},C8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},T8=io("HTMLFormElement"),O8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),m_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),A8=io("RegExp"),lx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fa(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},I8=e=>{lx(e,(t,n)=>{if(br(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(br(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+"'")})}})},P8=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return dl(e)?r(e):r(String(e).split(t)),n},k8=()=>{},R8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Mp="abcdefghijklmnopqrstuvwxyz",g_="0123456789",ax={DIGIT:g_,ALPHA:Mp,ALPHA_DIGIT:Mp+Mp.toUpperCase()+g_},L8=(e=16,t=ax.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function N8(e){return!!(e&&br(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const M8=e=>{const t=new Array(10),n=(r,o)=>{if(Bd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=dl(r)?[]:{};return Fa(r,(l,a)=>{const c=n(l,o+1);!ya(c)&&(s[a]=c)}),t[o]=void 0,s}}return r};return n(e,0)},D8=io("AsyncFunction"),F8=e=>e&&(Bd(e)||br(e))&&br(e.then)&&br(e.catch),ux=((e,t)=>e?setImmediate:t?((n,r)=>(Ki.addEventListener("message",({source:o,data:s})=>{o===Ki&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ki.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",br(Ki.postMessage)),B8=typeof queueMicrotask<"u"?queueMicrotask.bind(Ki):typeof process<"u"&&process.nextTick||ux,ee={isArray:dl,isArrayBuffer:rx,isBuffer:n8,isFormData:d8,isArrayBufferView:r8,isString:o8,isNumber:ox,isBoolean:i8,isObject:Bd,isPlainObject:fc,isReadableStream:p8,isRequest:h8,isResponse:m8,isHeaders:g8,isUndefined:ya,isDate:s8,isFile:l8,isBlob:a8,isRegExp:A8,isFunction:br,isStream:c8,isURLSearchParams:f8,isTypedArray:x8,isFileList:u8,forEach:Fa,merge:Ah,extend:y8,trim:v8,stripBOM:b8,inherits:_8,toFlatObject:w8,kindOf:Dd,kindOfTest:io,endsWith:S8,toArray:E8,forEachEntry:$8,matchAll:C8,isHTMLForm:T8,hasOwnProperty:m_,hasOwnProp:m_,reduceDescriptors:lx,freezeMethods:I8,toObjectSet:P8,toCamelCase:O8,noop:k8,toFiniteNumber:R8,findKey:ix,global:Ki,isContextDefined:sx,ALPHABET:ax,generateString:L8,isSpecCompliantForm:N8,toJSONObject:M8,isAsyncFn:D8,isThenable:F8,setImmediate:ux,asap:B8};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,this.status=o.status?o.status:null)}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.status}}});const cx=nt.prototype,dx={};["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=>{dx[e]={value:e}});Object.defineProperties(nt,dx);Object.defineProperty(cx,"isAxiosError",{value:!0});nt.from=(e,t,n,r,o,s)=>{const l=Object.create(cx);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};const U8=null;function Ih(e){return ee.isPlainObject(e)||ee.isArray(e)}function fx(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function v_(e,t,n){return e?e.concat(t).map(function(o,s){return o=fx(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function j8(e){return ee.isArray(e)&&!e.some(Ih)}const H8=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Ud(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(S,C){return!ee.isUndefined(C[S])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function d(_){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(_,S,C){let T=_;if(_&&!C&&typeof _=="object"){if(ee.endsWith(S,"{}"))S=r?S:S.slice(0,-2),_=JSON.stringify(_);else if(ee.isArray(_)&&j8(_)||(ee.isFileList(_)||ee.endsWith(S,"[]"))&&(T=ee.toArray(_)))return S=fx(S),T.forEach(function(E,O){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?v_([S],O,s):l===null?S:S+"[]",d(E))}),!1}return Ih(_)?!0:(t.append(v_(C,S,s),d(_)),!1)}const h=[],g=Object.assign(H8,{defaultVisitor:p,convertValue:d,isVisitable:Ih});function y(_,S){if(!ee.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(_),ee.forEach(_,function(T,w){(!(ee.isUndefined(T)||T===null)&&o.call(t,T,ee.isString(w)?w.trim():w,S,g))===!0&&y(T,S?S.concat(w):[w])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function y_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ag(e,t){this._pairs=[],e&&Ud(e,this,t)}const px=Ag.prototype;px.append=function(t,n){this._pairs.push([t,n])};px.toString=function(t){const n=t?function(r){return t.call(this,r,y_)}:y_;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function V8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hx(e,t,n){if(!t)return e;const r=n&&n.encode||V8,o=n&&n.serialize;let s;if(o?s=o(t,n):s=ee.isURLSearchParams(t)?t.toString():new Ag(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class b_{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)})}}const mx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},W8=typeof URLSearchParams<"u"?URLSearchParams:Ag,z8=typeof FormData<"u"?FormData:null,q8=typeof Blob<"u"?Blob:null,K8={isBrowser:!0,classes:{URLSearchParams:W8,FormData:z8,Blob:q8},protocols:["http","https","file","blob","url","data"]},Ig=typeof window<"u"&&typeof document<"u",Ph=typeof navigator=="object"&&navigator||void 0,G8=Ig&&(!Ph||["ReactNative","NativeScript","NS"].indexOf(Ph.product)<0),X8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",J8=Ig&&window.location.href||"http://localhost",Y8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ig,hasStandardBrowserEnv:G8,hasStandardBrowserWebWorkerEnv:X8,navigator:Ph,origin:J8},Symbol.toStringTag,{value:"Module"})),Qn={...Y8,...K8};function Z8(e,t){return Ud(e,new Qn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Qn.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Q8(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function eB(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 gx(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]=eB(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(Q8(r),o,n,0)}),n}return null}function tB(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(0,JSON.stringify)(e)}const Ba={transitional:mx,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(gx(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 Z8(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ud(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),tB(t)):t}],transformResponse:[function(t){const n=this.transitional||Ba.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:Qn.classes.FormData,Blob:Qn.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=>{Ba.headers[e]={}});const nB=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"]),rB=e=>{const t={};let n,r,o;return e&&e.split(`
    51 `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&nB[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},__=Symbol("internals");function Rl(e){return e&&String(e).trim().toLowerCase()}function pc(e){return e===!1||e==null?e:ee.isArray(e)?e.map(pc):String(e)}function oB(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 iB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dp(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 sB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function lB(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 er{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,c,d){const p=Rl(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||d===!0||d===void 0&&o[h]!==!1)&&(o[h||c]=pc(a))}const l=(a,c)=>ee.forEach(a,(d,p)=>s(d,p,c));if(ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ee.isString(t)&&(t=t.trim())&&!iB(t))l(rB(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=Rl(t),t){const r=ee.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return oB(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=Rl(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=Rl(l),l){const a=ee.findKey(r,l);a&&(!n||Dp(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||Dp(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]=pc(o),delete n[s];return}const a=t?sB(s):String(s).trim();a!==s&&delete n[s],n[a]=pc(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 `)}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[__]=this[__]={accessors:{}}).accessors,o=this.prototype;function s(l){const a=Rl(l);r[a]||(lB(o,l),r[a]=!0)}return ee.isArray(t)?t.forEach(s):s(t),this}}er.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(er.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ee.freezeMethods(er);function Fp(e,t){const n=this||Ba,r=t||n,o=er.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 vx(e){return!!(e&&e.__CANCEL__)}function fl(e,t,n){nt.call(this,e??"canceled",nt.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(fl,nt,{__CANCEL__:!0});function yx(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 aB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function uB(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 d=Date.now(),p=r[s];l||(l=d),n[o]=c,r[o]=d;let h=s,g=0;for(;h!==o;)g+=n[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-l<t)return;const y=p&&d-p;return y?Math.round(g*1e3/y):void 0}}function cB(e,t){let n=0,r=1e3/t,o,s;const l=(d,p=Date.now())=>{n=p,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?l(d,p):(o=d,s||(s=setTimeout(()=>{s=null,l(o)},r-h)))},()=>o&&l(o)]}const Gc=(e,t,n=3)=>{let r=0;const o=uB(50,250);return cB(s=>{const l=s.loaded,a=s.lengthComputable?s.total:void 0,c=l-r,d=o(c),p=l<=a;r=l;const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&p?(a-l)/d:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},w_=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},S_=e=>(...t)=>ee.asap(()=>e(...t)),dB=Qn.hasStandardBrowserEnv?function(){const t=Qn.navigator&&/(msie|trident)/i.test(Qn.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}}(),fB=Qn.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 pB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bx(e,t){return e&&!pB(t)?hB(e,t):t}const E_=e=>e instanceof er?{...e}:e;function us(e,t){t=t||{};const n={};function r(d,p,h){return ee.isPlainObject(d)&&ee.isPlainObject(p)?ee.merge.call({caseless:h},d,p):ee.isPlainObject(p)?ee.merge({},p):ee.isArray(p)?p.slice():p}function o(d,p,h){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d,h)}else return r(d,p,h)}function s(d,p){if(!ee.isUndefined(p))return r(void 0,p)}function l(d,p){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function a(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}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:(d,p)=>o(E_(d),E_(p),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,g=h(e[p],t[p],p);ee.isUndefined(g)&&h!==a||(n[p]=g)}),n}const _x=e=>{const t=us({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:a}=t;t.headers=l=er.from(l),t.url=hx(bx(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(Qn.hasStandardBrowserEnv||Qn.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...p].join("; "))}}if(Qn.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(t)),r||r!==!1&&dB(t.url))){const d=o&&s&&fB.read(s);d&&l.set(o,d)}return t},mB=typeof XMLHttpRequest<"u",gB=mB&&function(e){return new Promise(function(n,r){const o=_x(e);let s=o.data;const l=er.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=o,p,h,g,y,_;function S(){y&&y(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function T(){if(!C)return;const E=er.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),$={data:!a||a==="text"||a==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:E,config:e,request:C};yx(function(k){n(k),S()},function(k){r(k),S()},$),C=null}"onloadend"in C?C.onloadend=T:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(T)},C.onabort=function(){C&&(r(new nt("Request aborted",nt.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new nt("Network Error",nt.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||mx;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new nt(O,$.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,e,C)),C=null},s===void 0&&l.setContentType(null),"setRequestHeader"in C&&ee.forEach(l.toJSON(),function(O,$){C.setRequestHeader($,O)}),ee.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),a&&a!=="json"&&(C.responseType=o.responseType),d&&([g,_]=Gc(d,!0),C.addEventListener("progress",g)),c&&C.upload&&([h,y]=Gc(c),C.upload.addEventListener("progress",h),C.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=E=>{C&&(r(!E||E.type?new fl(null,e,C):E),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=aB(o.url);if(w&&Qn.protocols.indexOf(w)===-1){r(new nt("Unsupported protocol "+w+":",nt.ERR_BAD_REQUEST,e));return}C.send(s||null)})},vB=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,a();const p=d instanceof Error?d:this.reason;r.abort(p instanceof nt?p:new fl(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new nt(`timeout ${t} of ms exceeded`,nt.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>ee.asap(a),c}},yB=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},bB=async function*(e,t){for await(const n of _B(e))yield*yB(n,t)},_B=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},x_=(e,t,n,r)=>{const o=bB(e,t);let s=0,l,a=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:p}=await o.next();if(d){a(),c.close();return}let h=p.byteLength;if(n){let g=s+=h;n(g)}c.enqueue(new Uint8Array(p))}catch(d){throw a(d),d}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},jd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wx=jd&&typeof ReadableStream=="function",wB=jd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Sx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},SB=wx&&Sx(()=>{let e=!1;const t=new Request(Qn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$_=64*1024,kh=wx&&Sx(()=>ee.isReadableStream(new Response("").body)),Xc={stream:kh&&(e=>e.body)};jd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xc[t]&&(Xc[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 EB=async e=>{if(e==null)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e))return(await new Request(Qn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(e)||ee.isArrayBuffer(e))return e.byteLength;if(ee.isURLSearchParams(e)&&(e=e+""),ee.isString(e))return(await wB(e)).byteLength},xB=async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n??EB(t)},$B=jd&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:g}=_x(e);d=d?(d+"").toLowerCase():"text";let y=vB([o,s&&s.toAbortSignal()],l),_;const S=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let C;try{if(c&&SB&&n!=="get"&&n!=="head"&&(C=await xB(p,r))!==0){let $=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(ee.isFormData(r)&&(P=$.headers.get("content-type"))&&p.setContentType(P),$.body){const[k,I]=w_(C,Gc(S_(c)));r=x_($.body,$_,k,I)}}ee.isString(h)||(h=h?"include":"omit");const T="credentials"in Request.prototype;_=new Request(t,{...g,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:T?h:void 0});let w=await fetch(_);const E=kh&&(d==="stream"||d==="response");if(kh&&(a||E&&S)){const $={};["status","statusText","headers"].forEach(H=>{$[H]=w[H]});const P=ee.toFiniteNumber(w.headers.get("content-length")),[k,I]=a&&w_(P,Gc(S_(a),!0))||[];w=new Response(x_(w.body,$_,k,()=>{I&&I(),S&&S()}),$)}d=d||"text";let O=await Xc[ee.findKey(Xc,d)||"text"](w,e);return!E&&S&&S(),await new Promise(($,P)=>{yx($,P,{data:O,headers:er.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:_})})}catch(T){throw S&&S(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,e,_),{cause:T.cause||T}):nt.from(T,T&&T.code,e,_)}}),Rh={http:U8,xhr:gB,fetch:$B};ee.forEach(Rh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const C_=e=>`- ${e}`,CB=e=>ee.isFunction(e)||e===null||e===!1,Ex={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,!CB(n)&&(r=Rh[(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 `+s.map(C_).join(`
    54 `):" "+C_(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:Rh};function Bp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fl(null,e)}function T_(e){return Bp(e),e.headers=er.from(e.headers),e.data=Fp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ex.getAdapter(e.adapter||Ba.adapter)(e).then(function(r){return Bp(e),r.data=Fp.call(e,e.transformResponse,r),r.headers=er.from(r.headers),r},function(r){return vx(r)||(Bp(e),r&&r.response&&(r.response.data=Fp.call(e,e.transformResponse,r.response),r.response.headers=er.from(r.response.headers))),Promise.reject(r)})}const xx="1.7.7",Pg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const O_={};Pg.transitional=function(t,n,r){function o(s,l){return"[Axios v"+xx+"] 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&&!O_[l]&&(O_[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 TB(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)}}const Lh={assertOptions:TB,validators:Pg},ai=Lh.validators;class ts{constructor(t){this.defaults=t,this.interceptors={request:new b_,response:new b_}}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=us(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Lh.assertOptions(r,{silentJSONParsing:ai.transitional(ai.boolean),forcedJSONParsing:ai.transitional(ai.boolean),clarifyTimeoutError:ai.transitional(ai.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:Lh.assertOptions(o,{encode:ai.function,serialize:ai.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=er.concat(l,s);const a=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let p,h=0,g;if(!c){const _=[T_.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,d),g=_.length,p=Promise.resolve(n);h<g;)p=p.then(_[h++],_[h++]);return p}g=a.length;let y=n;for(h=0;h<g;){const _=a[h++],S=a[h++];try{y=_(y)}catch(C){S.call(this,C);break}}try{p=T_.call(this,y)}catch(_){return Promise.reject(_)}for(h=0,g=d.length;h<g;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=us(this.defaults,t);const n=bx(t.baseURL,t.url);return hx(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){ts.prototype[t]=function(n,r){return this.request(us(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(us(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}ts.prototype[t]=n(),ts.prototype[t+"Form"]=n(!0)});class kg{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 fl(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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new kg(function(o){t=o}),cancel:t}}}function OB(e){return function(n){return e.apply(null,n)}}function AB(e){return ee.isObject(e)&&e.isAxiosError===!0}const Nh={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(Nh).forEach(([e,t])=>{Nh[t]=e});function $x(e){const t=new ts(e),n=nx(ts.prototype.request,t);return ee.extend(n,ts.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return $x(us(e,o))},n}const sn=$x(Ba);sn.Axios=ts;sn.CanceledError=fl;sn.CancelToken=kg;sn.isCancel=vx;sn.VERSION=xx;sn.toFormData=Ud;sn.AxiosError=nt;sn.Cancel=sn.CanceledError;sn.all=function(t){return Promise.all(t)};sn.spread=OB;sn.isAxiosError=AB;sn.mergeConfig=us;sn.AxiosHeaders=er;sn.formToJSON=e=>gx(ee.isHTMLForm(e)?new FormData(e):e);sn.getAdapter=Ex.getAdapter;sn.HttpStatusCode=Nh;sn.default=sn;const Rg=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...Cx({bearer:e}),...t}),Cx=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),IB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:s,query:l}={})=>fetch(cl(r?r(o):o,l),{method:n,headers:Rg({bearer:t},s)}).then(Da(e)),PB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(cl(r?r(o):o,a),{method:n,headers:Rg({bearer:t},l),body:JSON.stringify(s)}).then(Da(e)),kB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(cl(r?r(o):o,a),{method:n,headers:Rg({bearer:t},l),body:JSON.stringify(s)}).then(Da(e)),RB=({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),sn.post(cl(n?n(r):r,s),l,{headers:{...Cx({bearer:t})},onUploadProgress:a=>console.log("progress",a)})},LB=X.curry(({base:e,bearer:t,errorHandler:n})=>({get:IB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:PB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:kB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:RB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*NB(){const e="https://auphonic.com/api",t=yield Se(K.auphonic.token);return LB({base:e,bearer:t,errorHandler:function(r){Hd.dispatch(Tg({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let Yu;const MB=new Uint8Array(16);function DB(){if(!Yu&&(Yu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Yu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yu(MB)}const wn=[];for(let e=0;e<256;++e)wn.push((e+256).toString(16).slice(1));function FB(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 BB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),A_={randomUUID:BB};function UB(e,t,n){if(A_.randomUUID&&!t&&!e)return A_.randomUUID();e=e||{};const r=e.random||(e.rng||DB)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,FB(r)}function*jB(){const e=yield Xo();yield Dt(HB,e),yield We(bg,o9),yield We(vg,r9)}function*HB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield Oe(eD(t)),yield Dt(VB),yield We(Hc,s9,e),yield We(_g,i9,e),yield We(Hc,l9,e),yield We(Vc,a9,e),yield We(yg,d9),yield We(h2,u9,e),yield We(Wc,P_,e),yield We(Vc,P_,e))}function*VB(){const e=yield NB(),{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 Oe(E2(n)),yield Oe(rD(t)),yield Oe(oD([{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(c9),yield Zn(f9),yield Oe(Q7()),yield We(d2,t9,e),yield We(f2,n9,e),yield We(C2,e9,e),yield We(x2,Ox,e),yield We($2,KB,e),yield We(S2,zB,e),yield We(O2,qB,e),yield Zn(WB,e)}function*WB(e){for((yield Se(K.episode.isAuphonicProductionRunning))&&(yield xh([Zn(I_,e),vo(Wc)]));;)yield vo(b2),yield xh([Zn(I_,e),vo(Wc)])}function*I_(e){for(;;){let t=yield Se(K.auphonic.productionId);t||(yield Oe(l_()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield Oe(ps(n)),n.status==3&&(yield Oe(wt({prop:"slug",value:n.output_basename}))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield Oe(l_())),yield Jm(2500)}}function*zB(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield Oe(E2(t))}function*qB(e,t){let n=yield Se(K.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*KB(e,t){const n=t.payload.uuid;yield Zn(Ox,e,{type:p2,payload:{uuid:n}});const r=yield Se(K.episode.auphonicWebhookConfig),o=yield Se(K.auphonic.publishWhenDone),s=yield Se(K.runtime.baseUrl),l=yield Se(K.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 d=yield e.post(`production/${n}/start.json`,{});d.result?yield Oe(ps(d.result.data)):console.warn(d.error.error_message),yield Oe(lD())}function*GB(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 Tx=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 XB(e){const t=X.get(e,["auphonic","file_selections"]),n=X.get(e,["auphonic","production","uuid"],"");return Tx(X.get(t,n))}function JB(e){const t=X.get(e,["auphonic","file_selections"]),n=X.get(e,["auphonic","production","uuid"],"");return X.get(e,["auphonic","tracks"],[]).reduce((o,s,l)=>(o.push(Tx(X.get(t,`${n}_t${l}`))),o),[])}function YB(e){const t=X.get(e,["auphonic","production","is_multitrack"],!1),n=X.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=JB(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 ZB(e){let t=X.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 QB(e){const t=X.get(e,["auphonic","production","is_multitrack"],!1),n=ZB(e);let r={};if(!t){const o=XB(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*Ox(e,t){yield Oe(aD());const n=t.payload.uuid,r=yield Se(QB),o=yield Se(YB);yield e.delete(`production/${n}/chapters.json`),yield pE(o.map(c=>Zn(GB,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 p="image."+(c.type.includes("png")?"png":"jpg"),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 Oe(ps(a)),yield Oe(uD())}function*e9(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield Oe(iD({uuid:n,files:r.data}))}function*Ax(){const e=yield Se(K.episode.title),t=yield Se(K.post.title);return e||t||"New Production"}function*t9(e){const t=yield Se(K.auphonic.preset),n=yield Ax(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield Oe(ps(o))}function*n9(e){const t=yield Se(K.auphonic.preset),n=yield Ax(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield Oe(ps(o))}function*r9(e){const t=yield Se(K.auphonic.currentFileSelection);(yield Se(K.auphonic.fileSelections))[t].fileSelection||(yield Oe(T2({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*o9(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield Oe(C2(n)))}function*i9(e){const t=yield Se(K.episode.auphonicWebhookConfig),n=yield Se(K.auphonic.publishWhenDone);!t||t.enabled==n||(yield Oe(wt({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*s9(e){const t=yield Se(K.episode.auphonicWebhookConfig),n=yield Se(K.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=UB();yield Oe(wt({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*l9(e){const t=yield Se(K.episode.id),n=yield Se(K.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*a9(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*u9(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!0})}function*P_(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!1})}function*c9(){const e=yield Se(K.episode.id),t=yield Se(K.episode.auphonicProductionId),n=yield Se(K.auphonic.productionId),r=yield Se(K.auphonic.productions);if(!n&&t&&e){const o=r.find(s=>s.uuid==t);o&&(yield Oe(ps(o)))}}function*d9(){const e=yield Se(K.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*f9(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield Oe(wg(e))))}function p9(){return function*(){yield xo(s2,jB)}}function*h9(){const e=yield Xo();yield Dt(m9,e)}function*m9(e){const t=yield Se(K.episode.id);yield Se(K.episode.slug);const{result:{results:n}}=yield e.get(`episodes/${t}/media`);n&&(yield Oe(vD(n))),yield We(zc,b9,e),yield We(qc,_9,e),yield We(L2,E9,e),yield KD(UE,w9,e),yield Th(2e3,Rd,S9,e),yield X2(2e3,[zc,qc,Sg],y9,e),yield We(N2,g9),yield We(Eg,v9),yield Oe(gD())}function*g9(){yield Oe(hg({onSuccess:{type:Eg}}))}function*v9(e){const n=X.get(e,["payload"]).split("\\").pop().split("/").pop().split(".").shift();yield Oe(wt({prop:"slug",value:n})),yield Oe(f7())}function*y9(e){const t=yield Se(K.mediafiles.files),n=yield Se(K.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 $9(l)).toString()}parseFloat(n)!==parseFloat(s)&&(yield Oe(wt({prop:"duration",value:s})))}function*b9(e,t){const n=yield Se(K.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 Oe(Ch(s))}function*_9(e,t){const n=yield Se(K.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*w9(e){const t=yield Se(K.episode.id),n=yield Se(K.mediafiles.files);yield pE(n.map(r=>Dt(Ix,e,t,r.asset_id)))}function*S9(e,t){const n=yield Se(K.episode.id),r=yield Se(K.episode.slug);if((yield Se(K.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 Oe(wt({prop:"slug",value:l.slug})))}}function*Ix(e,t,n){const o=(yield Se(K.mediafiles.files)).find(c=>c.asset_id==n);yield Oe(Ch({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 Oe(Ch(a))}function*E9(e,t){const n=yield Se(K.episode.id),r=t.payload;yield Ix(e,n,r)}async function x9(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function $9(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await x9(t),t.duration}function C9(){return function*(){yield xo(P2,h9)}}function*T9(){const e=yield Xo();yield Dt(O9,e),yield We(xg,A9,e)}function*O9(e){const t=yield Se(K.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=X.get(n,["result","relatedEpisodes"],[]),s=X.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield Oe(j2(l)),yield Oe(TD(s))}function*A9(e,t){const n=yield Se(K.episode.id),r=yield Se(K.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function I9(){return function*(){yield xo(B2,T9)}}function*P9(){const e=yield Xo();yield Dt(k9,e)}function*k9(e){const t=yield Se(K.settings.modules),{result:n}=yield e.get("shows");AD&&(yield Oe(V2(n)),yield We(Qs,L9),t.includes("automatic_numbering")&&(yield We(Kc,N9,e)),t.includes("auphonic")&&(yield We(Kc,R9,n)))}function*R9(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield Oe(wg(n.auphonic_preset)))}function*L9(e){const t=X.get(e,["payload","prop"]),n=X.get(e,["payload","value"],null);t==="show"&&(yield Oe(W2(n)))}function*N9(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield Oe(wt({prop:"number",value:n.toString()}))}function M9(){return function*(){yield xo($g,P9)}}const Sr=CM(),D9=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||NS,Hd=zm(HD,D9(f6(Sr)));Sr.run(GD());Sr.run(iF());Sr.run(xF());Sr.run(IF());Sr.run(FF());Sr.run(zF());Sr.run(e8());Sr.run(oF());Sr.run(p9());Sr.run(C9());Sr.run(I9());Sr.run(M9());const F9=ge({props:{name:{type:String,default:null},title:{type:String,default:null}}}),Be=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},B9={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},U9={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},j9={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},H9={class:"ml-4 mt-2"},V9=["for"],W9={class:"ml-4 mt-2 flex flex-shrink-0"};function z9(e,t,n,r,o,s){return N(),V("section",B9,[v("div",U9,[v("div",j9,[v("div",H9,[v("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},U(e.title),9,V9)]),v("div",W9,[_r(e.$slots,"actions")])])]),v("div",null,[_r(e.$slots,"default")])])}const Nn=Be(F9,[["render",z9]]);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"},[v("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 Px(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function kx(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"},[v("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 Rx(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"},[v("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 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"},[v("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 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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}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"},[v("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 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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Lx(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}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"},[v("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 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"},[v("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 Nx(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"},[v("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 Mx(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"},[v("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 eU(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"},[v("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 tU(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"},[v("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 Dx(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"},[v("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 Fx(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"},[v("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 Bx(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"},[v("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 Lg(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function nU(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"},[v("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 Ux(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"},[v("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 Ua(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function Ll(e,t,n){let r=n.initialDeps??[],o;return()=>{var s,l,a,c;let d;n.key&&((s=n.debug)!=null&&s.call(n))&&(d=Date.now());const p=e();if(!(p.length!==r.length||p.some((y,_)=>r[_]!==y)))return o;r=p;let g;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(g=Date.now()),o=t(...p),n.key&&((a=n.debug)!=null&&a.call(n))){const y=Math.round((Date.now()-d)*100)/100,_=Math.round((Date.now()-g)*100)/100,S=_/16,C=(T,w)=>{for(T=String(T);T.length<w;)T=" "+T;return T};console.info(`%c⏱ ${C(_,5)} /${C(y,5)} ms`,`
     50`}function p_(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*PF(e){const t=[yF,bF,_F,wF];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield Oe(Og({type:"error",message:SF("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield Oe(NE(n))}function*IF(e){const t=yield Se(K.chapters.selectedIndex);if(t===null)return;const n=yield Se(K.chapters.list);switch(!0){case e.key==="up":t===0?yield Oe(pi(n.length-1)):yield Oe(pi(t-1));break;case e.key==="down":t===n.length-1?yield Oe(pi(0)):yield Oe(pi(t+1));break;case e.key==="esc":yield Oe(pi(null));break}}function*kF(){yield Oe(mg({onSuccess:{type:ag}}))}function RF(){return function*(){yield xo(PE,xF)}}function*LF(){const e=yield Jo();yield kt(Md,e),yield ze(YE,NF,e),yield ze(gg,DF,e),yield ze(QE,FF,e),yield ze(ZE,MF,e)}function*Md(e){const t=yield Se(K.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield Oe(A7(X.get(n,["result","transcript"],[]))),yield Oe(P7(X.get(r,["result","voices"],[])))}function*NF(e,t){const n=yield Se(K.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield kt(Md,e))}function*MF(e,t){const n=yield Se(K.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield kt(Md,e))}function*DF(e,t){const n=yield Se(K.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*FF(e){const t=yield Se(K.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield kt(Md,e))}function BF(){return function*(){yield xo(GE,LF)}}function*UF(){const e=yield Jo();yield kt(VF,e),yield kt(WF,e),yield kt(zF,e),yield kt(jF,e),yield ze(WE,qF,e),yield Z2(3e3,[dg,cg,fg,pg,hg],HF,e)}function*jF(e){const t=yield Se(K.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);n&&(yield Oe(zE({contributions:X.get(n,["contribution"],[])})))}function*HF(e){const t=yield Se(K.episode.id);if(!t)return;const n=yield Se(K.contributors.roles),r=yield Se(K.contributors.groups);let s=(yield Se(K.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:d,comment:p}){return{contributor_id:X.toInteger(l),role_id:X.toInteger(a)==0&&n.length>0?n[0].id:X.toInteger(a),group_id:X.toInteger(c)==0&&r.length>0?r[0].id:X.toInteger(c),position:X.toInteger(d),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:s})}function*VF(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});t&&(yield Oe(F7(X.get(t,"contributors",[]))))}function*WF(e){const{result:t}=yield e.get("contributors/roles");t&&(yield Oe(B7(X.get(t,"roles",[]))))}function*zF(e){const{result:t}=yield e.get("contributors/groups");t&&(yield Oe(U7(X.get(t,"groups",[]))))}function*qF(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,s=X.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:s});if(l)return;const a={id:o,realname:s};yield Oe(j7(a)),yield Oe(qE(a))}function KF(){return function*(){yield xo(e2,UF)}}const Do=X.get(window,["wp","data"],null),rx=X.get(window,["wp","media"],null),ts=document.querySelector('input[name="post_title"]'),GF=e=>ts==null?void 0:ts.addEventListener("change",t=>e(X.get(t,["target","value"])));function*XF(){const e=yield Se(K.settings.autoGenerateEpisodeTitle);typeof(Do==null?void 0:Do.subscribe)<"u"&&(yield ze(yield Nn(Oh,Do==null?void 0:Do.subscribe),ZF)),ts&&(yield ze(yield Nn(Oh,GF),ox)),e&&(yield ze(Id,h_),yield ze(Qs,h_)),rx&&(yield ze(KE,QF))}function JF(){return Do.select("core/editor").getEditedPostAttribute("featured_media")}function YF(){return Do.select("core/editor").getEditedPostAttribute("title")}function*ZF(){const e=YF(),t=JF(),n=t?Do.select("core").getMedia(t):null,r=yield Se(K.post.title),o=yield Se(K.post.featuredMedia);r!=e&&(yield Oe($h({prop:"title",value:e}))),X.get(o,["id"])!=X.get(n,["id"])&&(yield Oe($h({prop:"featured_media",value:n})))}function*ox(e){yield Oe($h({prop:"title",value:e}))}function*h_(){if(!ts)return;const e=yield Se(K.settings.blogTitleTemplate);if(!e)return;const t=yield Se(K.episode.title),n=yield Se(K.episode.number),r=yield Se(K.podcast.mnemonic),o=yield Se(K.settings.episodeNumberPadding),s=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");ts.value!=s&&(ts.value=s,yield ox(s))}function*QF(e){const t=X.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=rx({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 Oe({...t,payload:o})}finally{}}function e8(){return function*(){yield xo(Eo,XF)}}let jl={};function*t8(){const e=yield Jo();yield kt(r8,e),yield ze(Qs,o8),yield Th(1e3,Qs,m_,e),yield Th(50,BE,m_,e),yield ze(UE,i8),yield ze(VE,s8),yield ze(HE,l8),yield ze(Rd,a8),yield ze(Id,n8)}function*n8(){const e=yield Se(K.episode.auphonicWebhookConfig);e&&(yield Oe(I2(e.enabled)))}function*r8(e){const t=yield Se(K.episode.id),{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield Oe(PD())),yield Oe(zE(n)))}function o8(e){const t=X.get(e,["payload","prop"]),n=X.get(e,["payload","value"],null);t&&(jl[t]=n)}function*m_(e,t){const n=yield Se(K.episode.id);X.isEmpty(jl)||(yield e.put(`episodes/${n}`,jl,{query:{skip_validation:"1"}}),yield Oe(w7(jl)),jl={})}function*i8(e){Object.keys(e.payload).includes("slug")&&(yield Oe(S7()))}function*s8(){yield Oe(mg({onSuccess:{type:HE}}))}function*l8(e){yield Oe(wt({prop:"episode_poster",value:X.get(e,["payload"])}))}function*a8(e){if((yield Se(K.settings.imageAsset))!="post-thumbnail"||X.get(e,["payload","prop"])!="featured_media")return;const n=X.get(e,["payload","value","source_url"]);yield Oe(wt({prop:"poster",value:n}))}function u8(){return function*(){yield xo(FE,t8)}}function ix(e,t){return function(){return e.apply(t,arguments)}}const{toString:c8}=Object.prototype,{getPrototypeOf:Ag}=Object,Dd=(e=>t=>{const n=c8.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),so=e=>(e=e.toLowerCase(),t=>Dd(t)===e),Fd=e=>t=>typeof t===e,{isArray:dl}=Array,ya=Fd("undefined");function d8(e){return e!==null&&!ya(e)&&e.constructor!==null&&!ya(e.constructor)&&br(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sx=so("ArrayBuffer");function f8(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sx(e.buffer),t}const p8=Fd("string"),br=Fd("function"),lx=Fd("number"),Bd=e=>e!==null&&typeof e=="object",h8=e=>e===!0||e===!1,fc=e=>{if(Dd(e)!=="object")return!1;const t=Ag(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},m8=so("Date"),g8=so("File"),v8=so("Blob"),y8=so("FileList"),b8=e=>Bd(e)&&br(e.pipe),_8=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||br(e.append)&&((t=Dd(e))==="formdata"||t==="object"&&br(e.toString)&&e.toString()==="[object FormData]"))},w8=so("URLSearchParams"),[S8,E8,x8,$8]=["ReadableStream","Request","Response","Headers"].map(so),C8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),dl(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 ax(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 Gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ux=e=>!ya(e)&&e!==Gi;function Ah(){const{caseless:e}=ux(this)&&this||{},t={},n=(r,o)=>{const s=e&&ax(t,o)||o;fc(t[s])&&fc(r)?t[s]=Ah(t[s],r):fc(r)?t[s]=Ah({},r):dl(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Fa(arguments[r],n);return t}const T8=(e,t,n,{allOwnKeys:r}={})=>(Fa(t,(o,s)=>{n&&br(o)?e[s]=ix(o,n):e[s]=o},{allOwnKeys:r}),e),O8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),A8=(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)},P8=(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&&Ag(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},I8=(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},k8=e=>{if(!e)return null;if(dl(e))return e;let t=e.length;if(!lx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},R8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ag(Uint8Array)),L8=(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])}},N8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},M8=so("HTMLFormElement"),D8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),g_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F8=so("RegExp"),cx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fa(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},B8=e=>{cx(e,(t,n)=>{if(br(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(br(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+"'")})}})},U8=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return dl(e)?r(e):r(String(e).split(t)),n},j8=()=>{},H8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Mp="abcdefghijklmnopqrstuvwxyz",v_="0123456789",dx={DIGIT:v_,ALPHA:Mp,ALPHA_DIGIT:Mp+Mp.toUpperCase()+v_},V8=(e=16,t=dx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function W8(e){return!!(e&&br(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const z8=e=>{const t=new Array(10),n=(r,o)=>{if(Bd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=dl(r)?[]:{};return Fa(r,(l,a)=>{const c=n(l,o+1);!ya(c)&&(s[a]=c)}),t[o]=void 0,s}}return r};return n(e,0)},q8=so("AsyncFunction"),K8=e=>e&&(Bd(e)||br(e))&&br(e.then)&&br(e.catch),fx=((e,t)=>e?setImmediate:t?((n,r)=>(Gi.addEventListener("message",({source:o,data:s})=>{o===Gi&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Gi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",br(Gi.postMessage)),G8=typeof queueMicrotask<"u"?queueMicrotask.bind(Gi):typeof process<"u"&&process.nextTick||fx,ee={isArray:dl,isArrayBuffer:sx,isBuffer:d8,isFormData:_8,isArrayBufferView:f8,isString:p8,isNumber:lx,isBoolean:h8,isObject:Bd,isPlainObject:fc,isReadableStream:S8,isRequest:E8,isResponse:x8,isHeaders:$8,isUndefined:ya,isDate:m8,isFile:g8,isBlob:v8,isRegExp:F8,isFunction:br,isStream:b8,isURLSearchParams:w8,isTypedArray:R8,isFileList:y8,forEach:Fa,merge:Ah,extend:T8,trim:C8,stripBOM:O8,inherits:A8,toFlatObject:P8,kindOf:Dd,kindOfTest:so,endsWith:I8,toArray:k8,forEachEntry:L8,matchAll:N8,isHTMLForm:M8,hasOwnProperty:g_,hasOwnProp:g_,reduceDescriptors:cx,freezeMethods:B8,toObjectSet:U8,toCamelCase:D8,noop:j8,toFiniteNumber:H8,findKey:ax,global:Gi,isContextDefined:ux,ALPHABET:dx,generateString:V8,isSpecCompliantForm:W8,toJSONObject:z8,isAsyncFn:q8,isThenable:K8,setImmediate:fx,asap:G8};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,this.status=o.status?o.status:null)}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.status}}});const px=nt.prototype,hx={};["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=>{hx[e]={value:e}});Object.defineProperties(nt,hx);Object.defineProperty(px,"isAxiosError",{value:!0});nt.from=(e,t,n,r,o,s)=>{const l=Object.create(px);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};const X8=null;function Ph(e){return ee.isPlainObject(e)||ee.isArray(e)}function mx(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function y_(e,t,n){return e?e.concat(t).map(function(o,s){return o=mx(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function J8(e){return ee.isArray(e)&&!e.some(Ph)}const Y8=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Ud(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(S,C){return!ee.isUndefined(C[S])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function d(_){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(_,S,C){let T=_;if(_&&!C&&typeof _=="object"){if(ee.endsWith(S,"{}"))S=r?S:S.slice(0,-2),_=JSON.stringify(_);else if(ee.isArray(_)&&J8(_)||(ee.isFileList(_)||ee.endsWith(S,"[]"))&&(T=ee.toArray(_)))return S=mx(S),T.forEach(function(E,O){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?y_([S],O,s):l===null?S:S+"[]",d(E))}),!1}return Ph(_)?!0:(t.append(y_(C,S,s),d(_)),!1)}const h=[],g=Object.assign(Y8,{defaultVisitor:p,convertValue:d,isVisitable:Ph});function y(_,S){if(!ee.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+S.join("."));h.push(_),ee.forEach(_,function(T,w){(!(ee.isUndefined(T)||T===null)&&o.call(t,T,ee.isString(w)?w.trim():w,S,g))===!0&&y(T,S?S.concat(w):[w])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function b_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Pg(e,t){this._pairs=[],e&&Ud(e,this,t)}const gx=Pg.prototype;gx.append=function(t,n){this._pairs.push([t,n])};gx.toString=function(t){const n=t?function(r){return t.call(this,r,b_)}:b_;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Z8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vx(e,t,n){if(!t)return e;const r=n&&n.encode||Z8,o=n&&n.serialize;let s;if(o?s=o(t,n):s=ee.isURLSearchParams(t)?t.toString():new Pg(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class __{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)})}}const yx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Q8=typeof URLSearchParams<"u"?URLSearchParams:Pg,eB=typeof FormData<"u"?FormData:null,tB=typeof Blob<"u"?Blob:null,nB={isBrowser:!0,classes:{URLSearchParams:Q8,FormData:eB,Blob:tB},protocols:["http","https","file","blob","url","data"]},Ig=typeof window<"u"&&typeof document<"u",Ih=typeof navigator=="object"&&navigator||void 0,rB=Ig&&(!Ih||["ReactNative","NativeScript","NS"].indexOf(Ih.product)<0),oB=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",iB=Ig&&window.location.href||"http://localhost",sB=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ig,hasStandardBrowserEnv:rB,hasStandardBrowserWebWorkerEnv:oB,navigator:Ih,origin:iB},Symbol.toStringTag,{value:"Module"})),er={...sB,...nB};function lB(e,t){return Ud(e,new er.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return er.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function aB(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function uB(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 bx(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]=uB(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(aB(r),o,n,0)}),n}return null}function cB(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(0,JSON.stringify)(e)}const Ba={transitional:yx,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(bx(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 lB(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ud(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),cB(t)):t}],transformResponse:[function(t){const n=this.transitional||Ba.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:er.classes.FormData,Blob:er.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=>{Ba.headers[e]={}});const dB=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"]),fB=e=>{const t={};let n,r,o;return e&&e.split(`
     51`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&dB[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},w_=Symbol("internals");function Rl(e){return e&&String(e).trim().toLowerCase()}function pc(e){return e===!1||e==null?e:ee.isArray(e)?e.map(pc):String(e)}function pB(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 hB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dp(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 mB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function gB(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 tr{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,c,d){const p=Rl(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||d===!0||d===void 0&&o[h]!==!1)&&(o[h||c]=pc(a))}const l=(a,c)=>ee.forEach(a,(d,p)=>s(d,p,c));if(ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ee.isString(t)&&(t=t.trim())&&!hB(t))l(fB(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=Rl(t),t){const r=ee.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return pB(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=Rl(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=Rl(l),l){const a=ee.findKey(r,l);a&&(!n||Dp(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||Dp(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]=pc(o),delete n[s];return}const a=t?mB(s):String(s).trim();a!==s&&delete n[s],n[a]=pc(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`)}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[w_]=this[w_]={accessors:{}}).accessors,o=this.prototype;function s(l){const a=Rl(l);r[a]||(gB(o,l),r[a]=!0)}return ee.isArray(t)?t.forEach(s):s(t),this}}tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(tr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ee.freezeMethods(tr);function Fp(e,t){const n=this||Ba,r=t||n,o=tr.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 _x(e){return!!(e&&e.__CANCEL__)}function fl(e,t,n){nt.call(this,e??"canceled",nt.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(fl,nt,{__CANCEL__:!0});function wx(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 vB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yB(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 d=Date.now(),p=r[s];l||(l=d),n[o]=c,r[o]=d;let h=s,g=0;for(;h!==o;)g+=n[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-l<t)return;const y=p&&d-p;return y?Math.round(g*1e3/y):void 0}}function bB(e,t){let n=0,r=1e3/t,o,s;const l=(d,p=Date.now())=>{n=p,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),h=p-n;h>=r?l(d,p):(o=d,s||(s=setTimeout(()=>{s=null,l(o)},r-h)))},()=>o&&l(o)]}const Gc=(e,t,n=3)=>{let r=0;const o=yB(50,250);return bB(s=>{const l=s.loaded,a=s.lengthComputable?s.total:void 0,c=l-r,d=o(c),p=l<=a;r=l;const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&p?(a-l)/d:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},n)},S_=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},E_=e=>(...t)=>ee.asap(()=>e(...t)),_B=er.hasStandardBrowserEnv?function(){const t=er.navigator&&/(msie|trident)/i.test(er.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}}(),wB=er.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 SB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function EB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sx(e,t){return e&&!SB(t)?EB(e,t):t}const x_=e=>e instanceof tr?{...e}:e;function cs(e,t){t=t||{};const n={};function r(d,p,h){return ee.isPlainObject(d)&&ee.isPlainObject(p)?ee.merge.call({caseless:h},d,p):ee.isPlainObject(p)?ee.merge({},p):ee.isArray(p)?p.slice():p}function o(d,p,h){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d,h)}else return r(d,p,h)}function s(d,p){if(!ee.isUndefined(p))return r(void 0,p)}function l(d,p){if(ee.isUndefined(p)){if(!ee.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function a(d,p,h){if(h in t)return r(d,p);if(h in e)return r(void 0,d)}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:(d,p)=>o(x_(d),x_(p),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,g=h(e[p],t[p],p);ee.isUndefined(g)&&h!==a||(n[p]=g)}),n}const Ex=e=>{const t=cs({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:a}=t;t.headers=l=tr.from(l),t.url=vx(Sx(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(er.hasStandardBrowserEnv||er.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...p].join("; "))}}if(er.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(t)),r||r!==!1&&_B(t.url))){const d=o&&s&&wB.read(s);d&&l.set(o,d)}return t},xB=typeof XMLHttpRequest<"u",$B=xB&&function(e){return new Promise(function(n,r){const o=Ex(e);let s=o.data;const l=tr.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=o,p,h,g,y,_;function S(){y&&y(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function T(){if(!C)return;const E=tr.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),x={data:!a||a==="text"||a==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:E,config:e,request:C};wx(function(k){n(k),S()},function(k){r(k),S()},x),C=null}"onloadend"in C?C.onloadend=T:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(T)},C.onabort=function(){C&&(r(new nt("Request aborted",nt.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new nt("Network Error",nt.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||yx;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new nt(O,x.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,e,C)),C=null},s===void 0&&l.setContentType(null),"setRequestHeader"in C&&ee.forEach(l.toJSON(),function(O,x){C.setRequestHeader(x,O)}),ee.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),a&&a!=="json"&&(C.responseType=o.responseType),d&&([g,_]=Gc(d,!0),C.addEventListener("progress",g)),c&&C.upload&&([h,y]=Gc(c),C.upload.addEventListener("progress",h),C.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(p=E=>{C&&(r(!E||E.type?new fl(null,e,C):E),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const w=vB(o.url);if(w&&er.protocols.indexOf(w)===-1){r(new nt("Unsupported protocol "+w+":",nt.ERR_BAD_REQUEST,e));return}C.send(s||null)})},CB=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,a();const p=d instanceof Error?d:this.reason;r.abort(p instanceof nt?p:new fl(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new nt(`timeout ${t} of ms exceeded`,nt.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>ee.asap(a),c}},TB=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},OB=async function*(e,t){for await(const n of AB(e))yield*TB(n,t)},AB=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},$_=(e,t,n,r)=>{const o=OB(e,t);let s=0,l,a=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:p}=await o.next();if(d){a(),c.close();return}let h=p.byteLength;if(n){let g=s+=h;n(g)}c.enqueue(new Uint8Array(p))}catch(d){throw a(d),d}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},jd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xx=jd&&typeof ReadableStream=="function",PB=jd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$x=(e,...t)=>{try{return!!e(...t)}catch{return!1}},IB=xx&&$x(()=>{let e=!1;const t=new Request(er.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),C_=64*1024,kh=xx&&$x(()=>ee.isReadableStream(new Response("").body)),Xc={stream:kh&&(e=>e.body)};jd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Xc[t]&&(Xc[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 kB=async e=>{if(e==null)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e))return(await new Request(er.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ee.isArrayBufferView(e)||ee.isArrayBuffer(e))return e.byteLength;if(ee.isURLSearchParams(e)&&(e=e+""),ee.isString(e))return(await PB(e)).byteLength},RB=async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n??kB(t)},LB=jd&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:p,withCredentials:h="same-origin",fetchOptions:g}=Ex(e);d=d?(d+"").toLowerCase():"text";let y=CB([o,s&&s.toAbortSignal()],l),_;const S=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let C;try{if(c&&IB&&n!=="get"&&n!=="head"&&(C=await RB(p,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),I;if(ee.isFormData(r)&&(I=x.headers.get("content-type"))&&p.setContentType(I),x.body){const[k,P]=S_(C,Gc(E_(c)));r=$_(x.body,C_,k,P)}}ee.isString(h)||(h=h?"include":"omit");const T="credentials"in Request.prototype;_=new Request(t,{...g,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:T?h:void 0});let w=await fetch(_);const E=kh&&(d==="stream"||d==="response");if(kh&&(a||E&&S)){const x={};["status","statusText","headers"].forEach(H=>{x[H]=w[H]});const I=ee.toFiniteNumber(w.headers.get("content-length")),[k,P]=a&&S_(I,Gc(E_(a),!0))||[];w=new Response($_(w.body,C_,k,()=>{P&&P(),S&&S()}),x)}d=d||"text";let O=await Xc[ee.findKey(Xc,d)||"text"](w,e);return!E&&S&&S(),await new Promise((x,I)=>{wx(x,I,{data:O,headers:tr.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:_})})}catch(T){throw S&&S(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,e,_),{cause:T.cause||T}):nt.from(T,T&&T.code,e,_)}}),Rh={http:X8,xhr:$B,fetch:LB};ee.forEach(Rh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const T_=e=>`- ${e}`,NB=e=>ee.isFunction(e)||e===null||e===!1,Cx={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,!NB(n)&&(r=Rh[(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`+s.map(T_).join(`
     54`):" "+T_(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:Rh};function Bp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fl(null,e)}function O_(e){return Bp(e),e.headers=tr.from(e.headers),e.data=Fp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cx.getAdapter(e.adapter||Ba.adapter)(e).then(function(r){return Bp(e),r.data=Fp.call(e,e.transformResponse,r),r.headers=tr.from(r.headers),r},function(r){return _x(r)||(Bp(e),r&&r.response&&(r.response.data=Fp.call(e,e.transformResponse,r.response),r.response.headers=tr.from(r.response.headers))),Promise.reject(r)})}const Tx="1.7.7",kg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const A_={};kg.transitional=function(t,n,r){function o(s,l){return"[Axios v"+Tx+"] 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&&!A_[l]&&(A_[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 MB(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)}}const Lh={assertOptions:MB,validators:kg},ui=Lh.validators;class ns{constructor(t){this.defaults=t,this.interceptors={request:new __,response:new __}}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=cs(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Lh.assertOptions(r,{silentJSONParsing:ui.transitional(ui.boolean),forcedJSONParsing:ui.transitional(ui.boolean),clarifyTimeoutError:ui.transitional(ui.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:Lh.assertOptions(o,{encode:ui.function,serialize:ui.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=tr.concat(l,s);const a=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,a.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let p,h=0,g;if(!c){const _=[O_.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,d),g=_.length,p=Promise.resolve(n);h<g;)p=p.then(_[h++],_[h++]);return p}g=a.length;let y=n;for(h=0;h<g;){const _=a[h++],S=a[h++];try{y=_(y)}catch(C){S.call(this,C);break}}try{p=O_.call(this,y)}catch(_){return Promise.reject(_)}for(h=0,g=d.length;h<g;)p=p.then(d[h++],d[h++]);return p}getUri(t){t=cs(this.defaults,t);const n=Sx(t.baseURL,t.url);return vx(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){ns.prototype[t]=function(n,r){return this.request(cs(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(cs(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}ns.prototype[t]=n(),ns.prototype[t+"Form"]=n(!0)});class Rg{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 fl(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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Rg(function(o){t=o}),cancel:t}}}function DB(e){return function(n){return e.apply(null,n)}}function FB(e){return ee.isObject(e)&&e.isAxiosError===!0}const Nh={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(Nh).forEach(([e,t])=>{Nh[t]=e});function Ox(e){const t=new ns(e),n=ix(ns.prototype.request,t);return ee.extend(n,ns.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ox(cs(e,o))},n}const sn=Ox(Ba);sn.Axios=ns;sn.CanceledError=fl;sn.CancelToken=Rg;sn.isCancel=_x;sn.VERSION=Tx;sn.toFormData=Ud;sn.AxiosError=nt;sn.Cancel=sn.CanceledError;sn.all=function(t){return Promise.all(t)};sn.spread=DB;sn.isAxiosError=FB;sn.mergeConfig=cs;sn.AxiosHeaders=tr;sn.formToJSON=e=>bx(ee.isHTMLForm(e)?new FormData(e):e);sn.getAdapter=Cx.getAdapter;sn.HttpStatusCode=Nh;sn.default=sn;const Lg=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...Ax({bearer:e}),...t}),Ax=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),BB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:s,query:l}={})=>fetch(cl(r?r(o):o,l),{method:n,headers:Lg({bearer:t},s)}).then(Da(e)),UB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(cl(r?r(o):o,a),{method:n,headers:Lg({bearer:t},l),body:JSON.stringify(s)}).then(Da(e)),jB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(cl(r?r(o):o,a),{method:n,headers:Lg({bearer:t},l),body:JSON.stringify(s)}).then(Da(e));function HB(e){console.log("default progress",e)}const VB=({errorHandler:e,bearer:t,urlProcessor:n})=>(r,o,{query:s,hooks:l}={})=>{const a=new FormData,c=(l==null?void 0:l.onUploadProgress)||HB;if(o.file){const d=o.track_id||"input_file";a.append(d,o.file)}return o.image&&a.append("image",o.image),sn.post(cl(n?n(r):r,s),a,{headers:{...Ax({bearer:t})},onUploadProgress:c})},WB=X.curry(({base:e,bearer:t,errorHandler:n})=>({get:BB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:UB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:jB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:VB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*zB(){const e="https://auphonic.com/api",t=yield Se(K.auphonic.token);return WB({base:e,bearer:t,errorHandler:function(r){Hd.dispatch(Og({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let Yu;const qB=new Uint8Array(16);function KB(){if(!Yu&&(Yu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Yu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yu(qB)}const wn=[];for(let e=0;e<256;++e)wn.push((e+256).toString(16).slice(1));function GB(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 XB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),P_={randomUUID:XB};function JB(e,t,n){if(P_.randomUUID&&!t&&!e)return P_.randomUUID();e=e||{};const r=e.random||(e.rng||KB)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,GB(r)}function*YB(){const e=yield Jo();yield kt(ZB,e),yield ze(_g,m9),yield ze(yg,h9)}function*ZB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield Oe(rD(t)),yield kt(QB),yield ze(Hc,v9,e),yield ze(wg,g9,e),yield ze(Hc,y9,e),yield ze(Vc,b9,e),yield ze(bg,S9),yield ze(m2,_9,e),yield ze(Wc,k_,e),yield ze(Vc,k_,e))}function*QB(){const e=yield zB(),{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 Oe(x2(n)),yield Oe(sD(t)),yield Oe(lD([{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 Nn(w9),yield Nn(E9),yield Oe(nD()),yield ze(f2,f9,e),yield ze(p2,p9,e),yield ze(T2,d9,e),yield ze($2,Ix,e),yield ze(C2,r9,e),yield ze(E2,t9,e),yield ze(A2,n9,e),yield Nn(e9,e)}function*e9(e){for((yield Se(K.episode.isAuphonicProductionRunning))&&(yield xh([Nn(I_,e),Qr(Wc)]));;)yield Qr(_2),yield xh([Nn(I_,e),Qr(Wc)])}function*I_(e){for(;;){let t=yield Se(K.auphonic.productionId);t||(yield Oe(a_()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield Oe(ps(n)),n.status==3&&(yield Oe(wt({prop:"slug",value:n.output_basename}))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield Oe(a_())),yield Jm(2500)}}function*t9(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield Oe(x2(t))}function*n9(e,t){let n=yield Se(K.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*r9(e,t){const n=t.payload.uuid;yield Nn(Ix,e,{type:h2,payload:{uuid:n}});const r=yield Se(K.episode.auphonicWebhookConfig),o=yield Se(K.auphonic.publishWhenDone),s=yield Se(K.runtime.baseUrl),l=yield Se(K.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 d=yield e.post(`production/${n}/start.json`,{});d.result?yield Oe(ps(d.result.data)):console.warn(d.error.error_message),yield Oe(cD())}function*o9(e,t,n,r){var d;let o=n.payload;const s=o.id,l=o.id_new,a=!!((d=n.upload)!=null&&d.file);delete o.id_new,o.id=l;const c=r(o.id);switch(n.state){case"edited":yield e.post(`production/${t}/multi_input_files/${s}.json`,o),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break;case"new":yield e.post(`production/${t}.json`,{multi_input_files:[n.payload]}),a&&(yield e.upload(`production/${t}/upload.json`,n.upload,{hooks:{onUploadProgress:c}}));break}}const Px=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 i9(e){const t=X.get(e,["auphonic","file_selections"]),n=X.get(e,["auphonic","production","uuid"],"");return Px(X.get(t,n))}function s9(e){const t=X.get(e,["auphonic","file_selections"]),n=X.get(e,["auphonic","production","uuid"],"");return X.get(e,["auphonic","tracks"],[]).reduce((o,s,l)=>(o.push(Px(X.get(t,`${n}_t${l}`))),o),[])}function l9(e){const t=X.get(e,["auphonic","production","is_multitrack"],!1),n=X.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=s9(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 a9(e){let t=X.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 Mt(l.start).pretty}))}}function u9(e){const t=X.get(e,["auphonic","production","is_multitrack"],!1),n=a9(e);let r={};if(!t){const o=i9(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*c9(e){try{for(;;){const t=yield Qr(e);yield Oe(yD(t))}}finally{(yield JN())&&e.close()}}function*Ix(e,t){yield Oe(dD());const n=t.payload.uuid,r=yield Se(u9),o=yield Se(l9);yield e.delete(`production/${n}/chapters.json`);const s=yield Nn(Qm);yield kt(c9,s);const l=p=>h=>{if(h.total){const g=Math.round(h.loaded*100/h.total),y={key:p,progress:g};s.put(y)}};yield mE(o.map(p=>Nn(o9,e,n,p,l)));const a=r.input_file;typeof a=="object"&&(yield Nn(e.upload,`production/${n}/upload.json`,{file:a},{hooks:{onUploadProgress:l("singletrack")}}),delete r.input_file);const c=r.image;fetch(c).then(p=>p.blob()).then(p=>{const g="image."+(p.type.includes("png")?"png":"jpg"),y=new File([p],g,{type:p.type});e.upload(`production/${n}/upload.json`,{image:y},{hooks:{onUploadProgress:l("poster")}})}),delete r.image;const{result:{data:d}}=yield e.post(`production/${n}.json`,r);yield Oe(ps(d)),yield Oe(fD())}function*d9(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield Oe(aD({uuid:n,files:r.data}))}function*kx(){const e=yield Se(K.episode.title),t=yield Se(K.post.title);return e||t||"New Production"}function*f9(e){const t=yield Se(K.auphonic.preset),n=yield kx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield Oe(ps(o))}function*p9(e){const t=yield Se(K.auphonic.preset),n=yield kx(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield Oe(ps(o))}function*h9(e){const t=yield Se(K.auphonic.currentFileSelection);(yield Se(K.auphonic.fileSelections))[t].fileSelection||(yield Oe(O2({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*m9(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield Oe(T2(n)))}function*g9(e){const t=yield Se(K.episode.auphonicWebhookConfig),n=yield Se(K.auphonic.publishWhenDone);!t||t.enabled==n||(yield Oe(wt({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*v9(e){const t=yield Se(K.episode.auphonicWebhookConfig),n=yield Se(K.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=JB();yield Oe(wt({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*y9(e){const t=yield Se(K.episode.id),n=yield Se(K.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*b9(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*_9(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!0})}function*k_(e){const t=yield Se(K.episode.id);yield e.put(`episodes/${t}`,{is_auphonic_production_running:!1})}function*w9(){const e=yield Se(K.episode.id),t=yield Se(K.episode.auphonicProductionId),n=yield Se(K.auphonic.productionId),r=yield Se(K.auphonic.productions);if(!n&&t&&e){const o=r.find(s=>s.uuid==t);o&&(yield Oe(ps(o)))}}function*S9(){const e=yield Se(K.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*E9(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield Oe(Sg(e))))}function x9(){return function*(){yield xo(l2,YB)}}function*$9(){const e=yield Jo();yield kt(C9,e)}function*C9(e){const t=yield Se(K.episode.id);yield Se(K.episode.slug);const{result:{results:n}}=yield e.get(`episodes/${t}/media`);n&&(yield Oe($D(n))),yield ze(zc,P9,e),yield ze(qc,I9,e),yield ze(D2,L9,e),yield nF(jE,k9,e),yield Th(2e3,Rd,R9,e),yield Z2(2e3,[zc,qc,Eg],A9,e),yield ze(F2,T9),yield ze(xg,O9),yield Oe(xD())}function*T9(){yield Oe(mg({onSuccess:{type:xg}}))}function*O9(e){const n=X.get(e,["payload"]).split("\\").pop().split("/").pop().split(".").shift();yield Oe(wt({prop:"slug",value:n})),yield Oe(m7())}function*A9(e){const t=yield Se(K.mediafiles.files),n=yield Se(K.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 M9(l)).toString()}parseFloat(n)!==parseFloat(s)&&(yield Oe(wt({prop:"duration",value:s})))}function*P9(e,t){const n=yield Se(K.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 Oe(Ch(s))}function*I9(e,t){const n=yield Se(K.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*k9(e){const t=yield Se(K.episode.id),n=yield Se(K.mediafiles.files);yield mE(n.map(r=>kt(Rx,e,t,r.asset_id)))}function*R9(e,t){const n=yield Se(K.episode.id),r=yield Se(K.episode.slug);if((yield Se(K.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 Oe(wt({prop:"slug",value:l.slug})))}}function*Rx(e,t,n){const o=(yield Se(K.mediafiles.files)).find(c=>c.asset_id==n);yield Oe(Ch({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 Oe(Ch(a))}function*L9(e,t){const n=yield Se(K.episode.id),r=t.payload;yield Rx(e,n,r)}async function N9(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function M9(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await N9(t),t.duration}function D9(){return function*(){yield xo(L2,$9)}}function*F9(){const e=yield Jo();yield kt(B9,e),yield ze($g,U9,e)}function*B9(e){const t=yield Se(K.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=X.get(n,["result","relatedEpisodes"],[]),s=X.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield Oe(W2(l)),yield Oe(ND(s))}function*U9(e,t){const n=yield Se(K.episode.id),r=yield Se(K.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function j9(){return function*(){yield xo(H2,F9)}}function*H9(){const e=yield Jo();yield kt(V9,e)}function*V9(e){const t=yield Se(K.settings.modules),{result:n}=yield e.get("shows");DD&&(yield Oe(q2(n)),yield ze(Qs,z9),t.includes("automatic_numbering")&&(yield ze(Kc,q9,e)),t.includes("auphonic")&&(yield ze(Kc,W9,n)))}function*W9(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield Oe(Sg(n.auphonic_preset)))}function*z9(e){const t=X.get(e,["payload","prop"]),n=X.get(e,["payload","value"],null);t==="show"&&(yield Oe(K2(n)))}function*q9(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield Oe(wt({prop:"number",value:n.toString()}))}function K9(){return function*(){yield xo(Cg,H9)}}const Sr=AM(),G9=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||MS,Hd=zm(YD,G9(mN(Sr)));Sr.run(rF());Sr.run(hF());Sr.run(RF());Sr.run(BF());Sr.run(KF());Sr.run(e8());Sr.run(u8());Sr.run(pF());Sr.run(x9());Sr.run(D9());Sr.run(j9());Sr.run(K9());const X9=ve({props:{name:{type:String,default:null},title:{type:String,default:null}}}),Be=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},J9={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},Y9={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},Z9={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},Q9={class:"ml-4 mt-2"},eU=["for"],tU={class:"ml-4 mt-2 flex flex-shrink-0"};function nU(e,t,n,r,o,s){return N(),V("section",J9,[v("div",Y9,[v("div",Z9,[v("div",Q9,[v("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},U(e.title),9,eU)]),v("div",tU,[_r(e.$slots,"actions")])])]),v("div",null,[_r(e.$slots,"default")])])}const Mn=Be(X9,[["render",nU]]);function rU(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"},[v("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 Lx(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function Nx(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"},[v("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 Mx(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"},[v("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 oU(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"},[v("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 iU(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function sU(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"},[v("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 lU(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Dx(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function aU(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function uU(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"},[v("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 cU(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"},[v("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 Fx(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"},[v("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 Bx(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"},[v("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 dU(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"},[v("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 fU(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"},[v("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 Ux(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"},[v("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 jx(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"},[v("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 Hx(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"},[v("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 Ng(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function pU(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"},[v("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 Vx(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"},[v("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 Ua(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"},[v("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function Ll(e,t,n){let r=n.initialDeps??[],o;return()=>{var s,l,a,c;let d;n.key&&((s=n.debug)!=null&&s.call(n))&&(d=Date.now());const p=e();if(!(p.length!==r.length||p.some((y,_)=>r[_]!==y)))return o;r=p;let g;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(g=Date.now()),o=t(...p),n.key&&((a=n.debug)!=null&&a.call(n))){const y=Math.round((Date.now()-d)*100)/100,_=Math.round((Date.now()-g)*100)/100,S=_/16,C=(T,w)=>{for(T=String(T);T.length<w;)T=" "+T;return T};console.info(`%c⏱ ${C(_,5)} /${C(y,5)} ms`,`
    5656            font-size: .6rem;
    5757            font-weight: bold;
    58             color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,o),o}}function Up(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const rU=(e,t)=>Math.abs(e-t)<1,oU=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},iU=e=>e,sU=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},lU=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=l=>{const{width:a,height:c}=l;t({width:Math.round(a),height:Math.round(c)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(l=>{const a=l[0];if(a!=null&&a.borderBoxSize){const c=a.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},k_={passive:!0},aU=typeof window>"u"?!0:"onscrollend"in window,uU=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const s=aU?()=>{}:oU(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=d=>()=>{o=n[e.options.horizontal?"scrollLeft":"scrollTop"],s(),t(o,d)},a=l(!0),c=l(!1);return c(),n.addEventListener("scroll",a,k_),n.addEventListener("scrollend",c,k_),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",c)}},cU=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},dU=(e,{adjustments:t=0,behavior:n},r)=>{var o,s;const l=e+t;(s=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class fU{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var s;return(s=r())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=r())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:iU,rangeExtractor:sU,onChange:()=>{},measureElement:cU,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,...n}},this.notify=(n,r)=>{var o,s;const{startIndex:l,endIndex:a}=this.range??{startIndex:void 0,endIndex:void 0},c=this.calculateRange();(n||l!==(c==null?void 0:c.startIndex)||a!==(c==null?void 0:c.endIndex))&&((s=(o=this.options).onChange)==null||s.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{var n;const r=this.options.getScrollElement();this.scrollElement!==r&&(this.cleanup(),this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.scrollOffset<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=s,this.notify(l!==s,s)})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.getMeasurementOptions=Ll(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,r,o,s)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:s}),{key:!1}),this.getFurthestMeasurement=(n,r)=>{const o=new Map,s=new Map;for(let l=r-1;l>=0;l--){const a=n[l];if(o.has(a.lane))continue;const c=s.get(a.lane);if(c==null||a.end>c.end?s.set(a.lane,a):a.end<c.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((l,a)=>l.end===a.end?l.index-a.index:l.end-a.end)[0]:void 0},this.getMeasurements=Ll(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:s},l)=>{const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let d=a;d<n;d++){const p=s(d),h=this.options.lanes===1?c[d-1]:this.getFurthestMeasurement(c,d),g=h?h.end+this.options.gap:r+o,y=l.get(p),_=typeof y=="number"?y:this.options.estimateSize(d),S=g+_,C=h?h.lane:d%this.options.lanes;c[d]={index:d,start:g,size:_,end:S,key:p,lane:C}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ll(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,r,o)=>this.range=n.length>0&&r>0?pU({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ll(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,s)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.measurementsCache[this.indexFromElement(n)];if(!o||!n.isConnected){this.measureElementCache.forEach((a,c)=>{a===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const s=this.measureElementCache.get(o.key);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.measureElementCache.set(o.key,n));const l=this.options.measureElement(n,r,this);this.resizeItem(o,l)},this.resizeItem=(n,r)=>{const o=this.itemSizeCache.get(n.key)??n.size,s=r-o;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,s,this):n.start<this.scrollOffset+this.scrollAdjustments)&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!0,!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=Ll(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let s=0,l=n.length;s<l;s++){const a=n[s],c=r[a];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();return Up(r[jx(0,r.length-1,o=>Up(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize();r==="auto"&&(n<=this.scrollOffset?r="start":n>=this.scrollOffset+o?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-o:r==="center"&&(n=n-o/2);const s=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-this.getSize();return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=Up(this.getMeasurements()[n]);if(r==="auto")if(o.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)r="end";else if(o.start<=this.scrollOffset+this.options.scrollPaddingStart)r="start";else return[this.scrollOffset,r];const s=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r),r]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[s,l]=this.getOffsetForIndex(n,r);this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,l);rU(c,this.scrollOffset)||this.scrollToIndex(n,{align:l,behavior:o})}else this.scrollToIndex(n,{align:l,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{var n,r;this.itemSizeCache=new Map,(r=(n=this.options).onChange)==null||r.call(n,this,!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.notify(!1,!1)}}const jx=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,s=n(o);if(s<r)e=o+1;else if(s>r)t=o-1;else return o}return e>0?e-1:0};function pU({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,s=jx(0,r,a=>e[a].start,n);let l=s;for(;l<r&&e[l].end<n+t;)l++;return{startIndex:s,endIndex:l}}function hU(e){const t=new fU(jn(e)),n=sd(t),r=t._didMount();return Ft(()=>jn(e).getScrollElement(),o=>{o&&t._willUpdate()},{immediate:!0}),Ft(()=>jn(e),o=>{t.setOptions({...o,onChange:(s,l)=>{var a;Xp(n),(a=o.onChange)==null||a.call(o,s,l)}}),t._willUpdate(),Xp(n)},{immediate:!0}),f1(r),n}function mU(e){return hU(ce(()=>({observeElementRect:lU,observeElementOffset:uU,scrollToFn:dU,...jn(e)})))}function Ng(e,t,n){let r=_e(n==null?void 0:n.value),o=ce(()=>e.value!==void 0);return[ce(()=>o.value?e.value:r.value),function(s){return o.value||(r.value=s),t==null?void 0:t(s)}]}function Mg(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Si(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Mg(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=Si();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function gU(){let e=Si();return Qt(()=>e.dispose()),e}function vU(){let e=gU();return t=>{e.dispose(),e.nextFrame(t)}}let yU=Symbol("headlessui.useid"),bU=0;function zt(){return kt(yU,()=>`${++bU}`)()}function ue(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function Tt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Tt),r}var _U=Object.defineProperty,wU=(e,t,n)=>t in e?_U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R_=(e,t,n)=>(wU(e,typeof t!="symbol"?t+"":t,n),n);let SU=class{constructor(){R_(this,"current",this.detect()),R_(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},ja=new SU;function Vr(e){if(ja.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ue(e);if(t)return t.ownerDocument}return document}let Mh=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Pn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Pn||{}),ba=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ba||{}),EU=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(EU||{});function Vd(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Mh)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Wd=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Wd||{});function Dg(e,t=0){var n;return e===((n=Vr(e))==null?void 0:n.body)?!1:Tt(t,{0(){return e.matches(Mh)},1(){let r=e;for(;r!==null;){if(r.matches(Mh))return!0;r=r.parentElement}return!1}})}var xU=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(xU||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ns(e){e==null||e.focus({preventScroll:!0})}let $U=["textarea","input"].join(",");function CU(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,$U))!=null?n:!1}function Fg(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),s=t(r);if(o===null||s===null)return 0;let l=o.compareDocumentPosition(s);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Jr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var s;let l=(s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?s:document,a=Array.isArray(e)?n?Fg(e):e:Vd(e);o.length>0&&a.length>1&&(a=a.filter(_=>!o.includes(_))),r=r??l.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=t&32?{preventScroll:!0}:{},h=0,g=a.length,y;do{if(h>=g||h+g<=0)return 0;let _=d+h;if(t&16)_=(_+g)%g;else{if(_<0)return 3;if(_>=g)return 1}y=a[_],y==null||y.focus(p),h+=c}while(y!==l.activeElement);return t&6&&CU(y)&&y.select(),2}function Hx(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function TU(){return/Android/gi.test(window.navigator.userAgent)}function Vx(){return Hx()||TU()}function Zu(e,t,n){ja.isServer||jt(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function Wx(e,t,n){ja.isServer||jt(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function zd(e,t,n=ce(()=>!0)){function r(s,l){if(!n.value||s.defaultPrevented)return;let a=l(s);if(a===null||!a.getRootNode().contains(a))return;let c=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let d of c){if(d===null)continue;let p=d instanceof HTMLElement?d:ue(d);if(p!=null&&p.contains(a)||s.composed&&s.composedPath().includes(p))return}return!Dg(a,Wd.Loose)&&a.tabIndex!==-1&&s.preventDefault(),t(s,a)}let o=_e(null);Zu("pointerdown",s=>{var l,a;n.value&&(o.value=((a=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:a[0])||s.target)},!0),Zu("mousedown",s=>{var l,a;n.value&&(o.value=((a=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:a[0])||s.target)},!0),Zu("click",s=>{Vx()||o.value&&(r(s,()=>o.value),o.value=null)},!0),Zu("touchend",s=>r(s,()=>s.target instanceof HTMLElement?s.target:null),!0),Wx("blur",s=>r(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function L_(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function qd(e,t){let n=_e(L_(e.value.type,e.value.as));return vt(()=>{n.value=L_(e.value.type,e.value.as)}),jt(()=>{var r;n.value||ue(t)&&ue(t)instanceof HTMLButtonElement&&!((r=ue(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}function N_(e){return[e.screenX,e.screenY]}function zx(){let e=_e([-1,-1]);return{wasMoved(t){let n=N_(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=N_(t)}}}function OU({container:e,accept:t,walk:n,enabled:r}){jt(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let s=Vr(e);if(!s)return;let l=Object.assign(c=>t(c),{acceptNode:t}),a=s.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,l,!1);for(;a.nextNode();)n(a.currentNode)})}var ir=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ir||{}),pi=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pi||{});function Et({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var s;let l=Kx(r,n),a=Object.assign(o,{props:l});if(e||t&2&&l.static)return jp(a);if(t&1){let c=(s=l.unmount)==null||s?0:1;return Tt(c,{0(){return null},1(){return jp({...o,props:{...l,hidden:!0,style:{display:"none"}}})}})}return jp(a)}function jp({props:e,attrs:t,slots:n,slot:r,name:o}){var s,l;let{as:a,...c}=hs(e,["unmount","static"]),d=(s=n.default)==null?void 0:s.call(n,r),p={};if(r){let h=!1,g=[];for(let[y,_]of Object.entries(r))typeof _=="boolean"&&(h=!0),_===!0&&g.push(y);h&&(p["data-headlessui-state"]=g.join(" "))}if(a==="template"){if(d=qx(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[h,...g]=d??[];if(!AU(h)||g.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(S=>S.trim()).filter((S,C,T)=>T.indexOf(S)===C).sort((S,C)=>S.localeCompare(C)).map(S=>`  - ${S}`).join(`
     58            color: hsl(${Math.max(0,Math.min(120-120*S,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(c=n==null?void 0:n.onChange)==null||c.call(n,o),o}}function Up(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const hU=(e,t)=>Math.abs(e-t)<1,mU=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},gU=e=>e,vU=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},yU=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=l=>{const{width:a,height:c}=l;t({width:Math.round(a),height:Math.round(c)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const s=new r.ResizeObserver(l=>{const a=l[0];if(a!=null&&a.borderBoxSize){const c=a.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(n.getBoundingClientRect())});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},R_={passive:!0},bU=typeof window>"u"?!0:"onscrollend"in window,_U=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const s=bU?()=>{}:mU(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),l=d=>()=>{o=n[e.options.horizontal?"scrollLeft":"scrollTop"],s(),t(o,d)},a=l(!0),c=l(!1);return c(),n.addEventListener("scroll",a,R_),n.addEventListener("scrollend",c,R_),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",c)}},wU=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},SU=(e,{adjustments:t=0,behavior:n},r)=>{var o,s;const l=e+t;(s=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class EU{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var o;return(o=r())==null?void 0:o.disconnect()},observe:o=>{var s;return(s=r())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=r())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:gU,rangeExtractor:vU,onChange:()=>{},measureElement:wU,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,...n}},this.notify=(n,r)=>{var o,s;const{startIndex:l,endIndex:a}=this.range??{startIndex:void 0,endIndex:void 0},c=this.calculateRange();(n||l!==(c==null?void 0:c.startIndex)||a!==(c==null?void 0:c.endIndex))&&((s=(o=this.options).onChange)==null||s.call(o,this,r))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{var n;const r=this.options.getScrollElement();this.scrollElement!==r&&(this.cleanup(),this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.scrollOffset<o?"forward":"backward":null,this.scrollOffset=o;const l=this.isScrolling;this.isScrolling=s,this.notify(l!==s,s)})))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.getMeasurementOptions=Ll(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey],(n,r,o,s)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:s}),{key:!1}),this.getFurthestMeasurement=(n,r)=>{const o=new Map,s=new Map;for(let l=r-1;l>=0;l--){const a=n[l];if(o.has(a.lane))continue;const c=s.get(a.lane);if(c==null||a.end>c.end?s.set(a.lane,a):a.end<c.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((l,a)=>l.end===a.end?l.index-a.index:l.end-a.end)[0]:void 0},this.getMeasurements=Ll(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:s},l)=>{const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,a);for(let d=a;d<n;d++){const p=s(d),h=this.options.lanes===1?c[d-1]:this.getFurthestMeasurement(c,d),g=h?h.end+this.options.gap:r+o,y=l.get(p),_=typeof y=="number"?y:this.options.estimateSize(d),S=g+_,C=h?h.lane:d%this.options.lanes;c[d]={index:d,start:g,size:_,end:S,key:p,lane:C}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ll(()=>[this.getMeasurements(),this.getSize(),this.scrollOffset],(n,r,o)=>this.range=n.length>0&&r>0?xU({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ll(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,s)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.measurementsCache[this.indexFromElement(n)];if(!o||!n.isConnected){this.measureElementCache.forEach((a,c)=>{a===n&&(this.observer.unobserve(n),this.measureElementCache.delete(c))});return}const s=this.measureElementCache.get(o.key);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.measureElementCache.set(o.key,n));const l=this.options.measureElement(n,r,this);this.resizeItem(o,l)},this.resizeItem=(n,r)=>{const o=this.itemSizeCache.get(n.key)??n.size,s=r-o;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,s,this):n.start<this.scrollOffset+this.scrollAdjustments)&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!0,!1))},this.measureElement=n=>{n&&this._measureElement(n,void 0)},this.getVirtualItems=Ll(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let s=0,l=n.length;s<l;s++){const a=n[s],c=r[a];o.push(c)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();return Up(r[Wx(0,r.length-1,o=>Up(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize();r==="auto"&&(n<=this.scrollOffset?r="start":n>=this.scrollOffset+o?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-o:r==="center"&&(n=n-o/2);const s=this.options.horizontal?"scrollWidth":"scrollHeight",a=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-this.getSize();return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=Up(this.getMeasurements()[n]);if(r==="auto")if(o.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)r="end";else if(o.start<=this.scrollOffset+this.options.scrollPaddingStart)r="start";else return[this.scrollOffset,r];const s=r==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r),r]},this.isDynamicMode=()=>this.measureElementCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const[s,l]=this.getOffsetForIndex(n,r);this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.measureElementCache.has(this.options.getItemKey(n))){const[c]=this.getOffsetForIndex(n,l);hU(c,this.scrollOffset)||this.scrollToIndex(n,{align:l,behavior:o})}else this.scrollToIndex(n,{align:l,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.scrollOffset+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(s=>s.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{var n,r;this.itemSizeCache=new Map,(r=(n=this.options).onChange)==null||r.call(n,this,!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(n=>{this.itemSizeCache.set(n.key,n.size)}),this.notify(!1,!1)}}const Wx=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,s=n(o);if(s<r)e=o+1;else if(s>r)t=o-1;else return o}return e>0?e-1:0};function xU({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,s=Wx(0,r,a=>e[a].start,n);let l=s;for(;l<r&&e[l].end<n+t;)l++;return{startIndex:s,endIndex:l}}function $U(e){const t=new EU(Hn(e)),n=sd(t),r=t._didMount();return Ft(()=>Hn(e).getScrollElement(),o=>{o&&t._willUpdate()},{immediate:!0}),Ft(()=>Hn(e),o=>{t.setOptions({...o,onChange:(s,l)=>{var a;Xp(n),(a=o.onChange)==null||a.call(o,s,l)}}),t._willUpdate(),Xp(n)},{immediate:!0}),p1(r),n}function CU(e){return $U(ce(()=>({observeElementRect:yU,observeElementOffset:_U,scrollToFn:SU,...Hn(e)})))}function Mg(e,t,n){let r=_e(n==null?void 0:n.value),o=ce(()=>e.value!==void 0);return[ce(()=>o.value?e.value:r.value),function(s){return o.value||(r.value=s),t==null?void 0:t(s)}]}function Dg(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ei(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...n)})},setTimeout(...n){let r=setTimeout(...n);t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Dg(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=Ei();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function TU(){let e=Ei();return Qt(()=>e.dispose()),e}function OU(){let e=TU();return t=>{e.dispose(),e.nextFrame(t)}}let AU=Symbol("headlessui.useid"),PU=0;function zt(){return Rt(AU,()=>`${++PU}`)()}function ue(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function Tt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Tt),r}var IU=Object.defineProperty,kU=(e,t,n)=>t in e?IU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L_=(e,t,n)=>(kU(e,typeof t!="symbol"?t+"":t,n),n);let RU=class{constructor(){L_(this,"current",this.detect()),L_(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},ja=new RU;function Wr(e){if(ja.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=ue(e);if(t)return t.ownerDocument}return document}let Mh=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var In=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(In||{}),ba=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ba||{}),LU=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(LU||{});function Vd(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Mh)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Wd=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Wd||{});function Fg(e,t=0){var n;return e===((n=Wr(e))==null?void 0:n.body)?!1:Tt(t,{0(){return e.matches(Mh)},1(){let r=e;for(;r!==null;){if(r.matches(Mh))return!0;r=r.parentElement}return!1}})}var NU=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(NU||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function rs(e){e==null||e.focus({preventScroll:!0})}let MU=["textarea","input"].join(",");function DU(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,MU))!=null?n:!1}function Bg(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),s=t(r);if(o===null||s===null)return 0;let l=o.compareDocumentPosition(s);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Yr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var s;let l=(s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?s:document,a=Array.isArray(e)?n?Bg(e):e:Vd(e);o.length>0&&a.length>1&&(a=a.filter(_=>!o.includes(_))),r=r??l.activeElement;let c=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=t&32?{preventScroll:!0}:{},h=0,g=a.length,y;do{if(h>=g||h+g<=0)return 0;let _=d+h;if(t&16)_=(_+g)%g;else{if(_<0)return 3;if(_>=g)return 1}y=a[_],y==null||y.focus(p),h+=c}while(y!==l.activeElement);return t&6&&DU(y)&&y.select(),2}function zx(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function FU(){return/Android/gi.test(window.navigator.userAgent)}function qx(){return zx()||FU()}function Zu(e,t,n){ja.isServer||jt(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function Kx(e,t,n){ja.isServer||jt(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function zd(e,t,n=ce(()=>!0)){function r(s,l){if(!n.value||s.defaultPrevented)return;let a=l(s);if(a===null||!a.getRootNode().contains(a))return;let c=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(e);for(let d of c){if(d===null)continue;let p=d instanceof HTMLElement?d:ue(d);if(p!=null&&p.contains(a)||s.composed&&s.composedPath().includes(p))return}return!Fg(a,Wd.Loose)&&a.tabIndex!==-1&&s.preventDefault(),t(s,a)}let o=_e(null);Zu("pointerdown",s=>{var l,a;n.value&&(o.value=((a=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:a[0])||s.target)},!0),Zu("mousedown",s=>{var l,a;n.value&&(o.value=((a=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:a[0])||s.target)},!0),Zu("click",s=>{qx()||o.value&&(r(s,()=>o.value),o.value=null)},!0),Zu("touchend",s=>r(s,()=>s.target instanceof HTMLElement?s.target:null),!0),Kx("blur",s=>r(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function N_(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function qd(e,t){let n=_e(N_(e.value.type,e.value.as));return vt(()=>{n.value=N_(e.value.type,e.value.as)}),jt(()=>{var r;n.value||ue(t)&&ue(t)instanceof HTMLButtonElement&&!((r=ue(t))!=null&&r.hasAttribute("type"))&&(n.value="button")}),n}function M_(e){return[e.screenX,e.screenY]}function Gx(){let e=_e([-1,-1]);return{wasMoved(t){let n=M_(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=M_(t)}}}function BU({container:e,accept:t,walk:n,enabled:r}){jt(()=>{let o=e.value;if(!o||r!==void 0&&!r.value)return;let s=Wr(e);if(!s)return;let l=Object.assign(c=>t(c),{acceptNode:t}),a=s.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,l,!1);for(;a.nextNode();)n(a.currentNode)})}var sr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(sr||{}),hi=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(hi||{});function Et({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var s;let l=Jx(r,n),a=Object.assign(o,{props:l});if(e||t&2&&l.static)return jp(a);if(t&1){let c=(s=l.unmount)==null||s?0:1;return Tt(c,{0(){return null},1(){return jp({...o,props:{...l,hidden:!0,style:{display:"none"}}})}})}return jp(a)}function jp({props:e,attrs:t,slots:n,slot:r,name:o}){var s,l;let{as:a,...c}=hs(e,["unmount","static"]),d=(s=n.default)==null?void 0:s.call(n,r),p={};if(r){let h=!1,g=[];for(let[y,_]of Object.entries(r))typeof _=="boolean"&&(h=!0),_===!0&&g.push(y);h&&(p["data-headlessui-state"]=g.join(" "))}if(a==="template"){if(d=Xx(d??[]),Object.keys(c).length>0||Object.keys(t).length>0){let[h,...g]=d??[];if(!UU(h)||g.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(t)).map(S=>S.trim()).filter((S,C,T)=>T.indexOf(S)===C).sort((S,C)=>S.localeCompare(C)).map(S=>`  - ${S}`).join(`
    5959`),"","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(S=>`  - ${S}`).join(`
    6060`)].join(`
    61 `));let y=Kx((l=h.props)!=null?l:{},c,p),_=Br(h,y,!0);for(let S in y)S.startsWith("on")&&(_.props||(_.props={}),_.props[S]=y[S]);return _}return Array.isArray(d)&&d.length===1?d[0]:d}return dt(a,Object.assign({},c,p),{default:()=>d})}function qx(e){return e.flatMap(t=>t.type===Fe?qx(t.children):[t])}function Kx(...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 Bg(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function hs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function AU(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var eo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(eo||{});let _o=ge({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 Et({ourProps:l,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Gx=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 IU(){return ms()!==null}function ms(){return kt(Gx,null)}function Kd(e){Zt(Gx,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||{}),Xx=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Xx||{});function PU(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Uo=[];PU(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Uo[0]!==t.target&&(Uo.unshift(t.target),Uo=Uo.filter(n=>n!=null&&n.isConnected),Uo.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 kU(e){throw new Error("Unexpected object: "+e)}var $t=(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))($t||{});function Dh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=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:kU(e)}}function Ug(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Yx(n,Jx(t,r),o);return n}function Jx(e,t){return e?e+"["+t+"]":t}function Yx(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Yx(e,Jx(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,""]):Ug(n,t,e)}function RU(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)}}var LU={};function NU(e,t){return e===t}var MU=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(MU||{}),DU=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(DU||{}),FU=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(FU||{});let Zx=Symbol("ComboboxContext");function gs(e){let t=kt(Zx,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gs),n}return t}let Qx=Symbol("VirtualContext"),BU=ge({name:"VirtualProvider",setup(e,{slots:t}){let n=gs("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=mU(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}),Zt(Qx,n.virtual.value?o:null),()=>[dt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&LU.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=>Br(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"}})))]}}),e$=ge({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),d=_e({static:!1,hold:!1}),p=_e([]),h=_e(null),g=_e(2),y=_e(!1);function _(D=F=>F){let F=h.value!==null?p.value[h.value]:null,z=D(p.value.slice()),G=z.length>0&&z[0].dataRef.order.value!==null?z.sort((we,be)=>we.dataRef.order.value-be.dataRef.order.value):Fg(z,we=>ue(we.dataRef.domRef)),te=F?G.indexOf(F):null;return te===-1&&(te=null),{options:G,activeOptionIndex:te}}let S=ce(()=>e.multiple?1:0),C=ce(()=>e.nullable),[T,w]=Ng(ce(()=>e.modelValue),D=>r("update:modelValue",D),ce(()=>e.defaultValue)),E=ce(()=>T.value===void 0?Tt(S.value,{1:[],0:void 0}):T.value),O=null,$=null;function P(D){return Tt(S.value,{0(){return w==null?void 0:w(D)},1:()=>{let F=Ue(I.value.value).slice(),z=Ue(D),G=F.findIndex(te=>I.compare(z,Ue(te)));return G===-1?F.push(z):F.splice(G,1),w==null?void 0:w(F)}})}let k=ce(()=>{});Ft([k],([D],[F])=>{if(I.virtual.value&&D&&F&&h.value!==null){let z=D.indexOf(F[h.value]);z!==-1?h.value=z:h.value=null}});let I={comboboxState:o,value:E,mode:S,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?NU(D,F):e.by(D,F)},calculateIndex(D){return I.virtual.value?e.by===null?I.virtual.value.options.indexOf(D):I.virtual.value.options.findIndex(F=>I.compare(F,D)):p.value.findIndex(F=>I.compare(F.dataRef.value,D))},defaultValue:ce(()=>e.defaultValue),nullable:C,immediate:ce(()=>!1),virtual:ce(()=>null),inputRef:l,labelRef:s,buttonRef:a,optionsRef:c,disabled:ce(()=>e.disabled),options:p,change(D){w(D)},activeOptionIndex:ce(()=>{if(y.value&&h.value===null&&(I.virtual.value?I.virtual.value.options.length>0:p.value.length>0)){if(I.virtual.value){let F=I.virtual.value.options.findIndex(z=>{var G;return!((G=I.virtual.value)!=null&&G.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:g,optionsPropsRef:d,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(I.value.value){let D=I.calculateIndex(I.value.value);D!==-1&&(h.value=D)}o.value=0}},setActivationTrigger(D){g.value=D},goToOption(D,F,z){y.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&o.value===1)return;if(I.virtual.value){h.value=D===$t.Specific?F:Dh({focus:D},{resolveItems:()=>I.virtual.value.options,resolveActiveIndex:()=>{var we,be;return(be=(we=I.activeOptionIndex.value)!=null?we:I.virtual.value.options.findIndex(Ae=>{var Ie;return!((Ie=I.virtual.value)!=null&&Ie.disabled(Ae))}))!=null?be:null},resolveDisabled:we=>I.virtual.value.disabled(we),resolveId(){throw new Error("Function not implemented.")}}),g.value=z??2;return}let G=_();if(G.activeOptionIndex===null){let we=G.options.findIndex(be=>!be.dataRef.disabled);we!==-1&&(G.activeOptionIndex=we)}let te=D===$t.Specific?F:Dh({focus:D},{resolveItems:()=>G.options,resolveActiveIndex:()=>G.activeOptionIndex,resolveId:we=>we.id,resolveDisabled:we=>we.dataRef.disabled});h.value=te,g.value=z??2,p.value=G.options})},selectOption(D){let F=p.value.find(G=>G.id===D);if(!F)return;let{dataRef:z}=F;P(z.value)},selectActiveOption(){if(I.activeOptionIndex.value!==null){if(I.virtual.value)P(I.virtual.value.options[I.activeOptionIndex.value]);else{let{dataRef:D}=p.value[I.activeOptionIndex.value];P(D.value)}I.goToOption($t.Specific,I.activeOptionIndex.value)}},registerOption(D,F){let z=Ei({id:D,dataRef:F});if(I.virtual.value){p.value.push(z);return}$&&cancelAnimationFrame($);let G=_(te=>(te.push(z),te));h.value===null&&I.isSelected(F.value.value)&&(G.activeOptionIndex=G.options.indexOf(z)),p.value=G.options,h.value=G.activeOptionIndex,g.value=2,G.options.some(te=>!ue(te.dataRef.domRef))&&($=requestAnimationFrame(()=>{let te=_();p.value=te.options,h.value=te.activeOptionIndex}))},unregisterOption(D,F){if(O!==null&&cancelAnimationFrame(O),F&&(y.value=!0),I.virtual.value){p.value=p.value.filter(G=>G.id!==D);return}let z=_(G=>{let te=G.findIndex(we=>we.id===D);return te!==-1&&G.splice(te,1),G});p.value=z.options,h.value=z.activeOptionIndex,g.value=2},isSelected(D){return Tt(S.value,{0:()=>I.compare(Ue(I.value.value),Ue(D)),1:()=>Ue(I.value.value).some(F=>I.compare(Ue(F),Ue(D)))})},isActive(D){return h.value===I.calculateIndex(D)}};zd([l,a,c],()=>I.closeCombobox(),ce(()=>o.value===0)),Zt(Zx,I),Kd(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 vt(()=>{Ft([H],()=>{if(!H.value||e.defaultValue===void 0)return;function D(){I.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:G,disabled:te,form:we,...be}=e,Ae={open:o.value===0,disabled:te,activeIndex:I.activeOptionIndex.value,activeOption:I.activeOptionIndex.value===null?null:I.virtual.value?I.virtual.value.options[(D=I.activeOptionIndex.value)!=null?D:0]:(z=(F=I.options.value[I.activeOptionIndex.value])==null?void 0:F.dataRef.value)!=null?z:null,value:E.value};return dt(Fe,[...G!=null&&E.value!=null?Ug({[G]:E.value}).map(([Ie,Ye])=>dt(_o,Bg({features:eo.Hidden,key:Ie,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:we,disabled:te,name:Ie,value:Ye}))):[],Et({theirProps:{...n,...hs(be,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Ae,slots:t,attrs:n,name:"Combobox"})])}}}),UU=ge({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=gs("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,d={id:o,ref:s.labelRef,onClick:l};return Et({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),t$=ge({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=gs("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($t.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 d=qd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let g={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,_={ref:l.buttonRef,id:s,type:d.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 Et({ourProps:_,theirProps:y,slot:g,attrs:t,slots:n,name:"ComboboxButton"})}}}),n$=ge({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=gs("ComboboxInput"),c=ce(()=>Vr(ue(a.inputRef))),d={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let $=ue(a.optionsRef);$&&($.scrollTop=0),a.goToOption($t.Nothing)}let h=ce(()=>{var $;let P=a.value.value;return ue(a.inputRef)?typeof e.displayValue<"u"&&P!==void 0?($=e.displayValue(P))!=null?$:"":typeof P=="string"?P:"":""});vt(()=>{Ft([h,a.comboboxState,c],([$,P],[k,I])=>{if(d.value)return;let H=ue(a.inputRef);H&&((I===0&&P===1||$!==k)&&(H.value=$),requestAnimationFrame(()=>{var D;if(d.value||!H||((D=c.value)==null?void 0:D.activeElement)!==H)return;let{selectionStart:F,selectionEnd:z}=H;Math.abs((z??0)-(F??0))===0&&F===0&&H.setSelectionRange(H.value.length,H.value.length)}))},{immediate:!0}),Ft([a.comboboxState],([$],[P])=>{if($===0&&P===1){if(d.value)return;let k=ue(a.inputRef);if(!k)return;let I=k.value,{selectionStart:H,selectionEnd:D,selectionDirection:F}=k;k.value="",k.value=I,F!==null?k.setSelectionRange(H,D,F):k.setSelectionRange(H,D)}})});let g=_e(!1);function y(){g.value=!0}function _(){Si().nextFrame(()=>{g.value=!1})}let S=vU();function C($){switch(d.value=!0,S(()=>{d.value=!1}),$.key){case lt.Enter:if(d.value=!1,a.comboboxState.value!==0||g.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 d.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{0:()=>a.goToOption($t.Next),1:()=>a.openCombobox()});case lt.ArrowUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{0:()=>a.goToOption($t.Previous),1:()=>{a.openCombobox(),rn(()=>{a.value.value||a.goToOption($t.Last)})}});case lt.Home:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption($t.First);case lt.PageUp:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption($t.First);case lt.End:if($.shiftKey)break;return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption($t.Last);case lt.PageDown:return d.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption($t.Last);case lt.Escape:if(d.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(d.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function T($){t("change",$),a.nullable.value&&a.mode.value===0&&$.target.value===""&&p(),a.openCombobox()}function w($){var P,k,I;let H=(P=$.relatedTarget)!=null?P:Uo.find(D=>D!==$.currentTarget);if(d.value=!1,!((k=ue(a.optionsRef))!=null&&k.contains(H))&&!((I=ue(a.buttonRef))!=null&&I.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,I;let H=(P=$.relatedTarget)!=null?P:Uo.find(D=>D!==$.currentTarget);(k=ue(a.buttonRef))!=null&&k.contains(H)||(I=ue(a.optionsRef))!=null&&I.contains(H)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),Si().nextFrame(()=>{a.setActivationTrigger(1)}))}let O=ce(()=>{var $,P,k,I;return(I=(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?I:""});return()=>{var $,P,k,I,H,D,F;let z={open:a.comboboxState.value===0},{displayValue:G,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(Ae=>!a.virtual.value.disabled(Ae.dataRef.value)&&a.compare(Ae.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=(I=ue(a.labelRef))==null?void 0:I.id)!=null?D:(H=ue(a.buttonRef))==null?void 0:H.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:_,onKeydown:C,onInput:T,onFocus:E,onBlur:w,role:"combobox",type:(F=n.type)!=null?F:"text",tabIndex:0,ref:a.inputRef,defaultValue:O.value,disabled:a.disabled.value===!0?!0:void 0};return Et({ourProps:be,theirProps:we,slot:z,attrs:n,slots:r,features:ir.RenderStrategy|ir.Static,name:"ComboboxInput"})}}}),r$=ge({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=gs("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=ms(),a=ce(()=>l!==null?(l.value&Pt.Open)===Pt.Open:o.comboboxState.value===0);OU({container:ce(()=>ue(o.optionsRef)),enabled:ce(()=>o.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,p,h;let g={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(d=ue(o.labelRef))==null?void 0:d.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},_=hs(e,["hold"]);return Et({ourProps:y,theirProps:_,slot:g,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[dt(BU,{},n.default)]}:n,features:ir.RenderStrategy|ir.Static,visible:a.value,name:"ComboboxOptions"})}}}),o$=ge({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=gs("ComboboxOption"),s=`headlessui-combobox-option-${zt()}`,l=_e(null),a=ce(()=>e.disabled);r({el:l,$el:l});let c=ce(()=>{var w;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((w=o.options.value[o.activeOptionIndex.value])==null?void 0:w.id)===s}),d=ce(()=>o.isSelected(e.value)),p=kt(Qx,null),h=ce(()=>({disabled:e.disabled,value:e.value,domRef:l,order:ce(()=>e.order)}));vt(()=>o.registerOption(s,h)),Qt(()=>o.unregisterOption(s,c.value)),jt(()=>{let w=ue(l);w&&(p==null||p.value.measureElement(w))}),jt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&rn(()=>{var w,E;return(E=(w=ue(l))==null?void 0:w.scrollIntoView)==null?void 0:E.call(w,{block:"nearest"})}))});function g(w){w.preventDefault(),w.button===Xx.Left&&(a.value||(o.selectOption(s),Vx()||requestAnimationFrame(()=>{var E;return(E=ue(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var w;if(e.disabled||(w=o.virtual.value)!=null&&w.disabled(e.value))return o.goToOption($t.Nothing);let E=o.calculateIndex(e.value);o.goToOption($t.Specific,E)}let _=zx();function S(w){_.update(w)}function C(w){var E;if(!_.wasMoved(w)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let O=o.calculateIndex(e.value);o.goToOption($t.Specific,O,0)}function T(w){var E;_.wasMoved(w)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption($t.Nothing)))}return()=>{let{disabled:w}=e,E={active:c.value,selected:d.value,disabled:w},O={id:s,ref:l,role:"option",tabIndex:w===!0?void 0:-1,"aria-disabled":w===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:g,onFocus:y,onPointerenter:S,onMouseenter:S,onPointermove:C,onMousemove:C,onPointerleave:T,onMouseleave:T},$=hs(e,["order","value"]);return Et({ourProps:O,theirProps:$,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function jg(e,t,n,r){ja.isServer||jt(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var mr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(mr||{});function Hg(){let e=_e(0);return Wx("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function i$(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 s$=(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))(s$||{});let Nl=Object.assign(ge({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(()=>Vr(o)),l=_e(!1);vt(()=>l.value=!0),Qt(()=>l.value=!1),HU({ownerDocument:s},ce(()=>l.value&&!!(e.features&16)));let a=VU({ownerDocument:s,container:o,initialFocus:ce(()=>e.initialFocus)},ce(()=>l.value&&!!(e.features&2)));WU({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},ce(()=>l.value&&!!(e.features&8)));let c=Hg();function d(y){let _=ue(o);_&&(S=>S())(()=>{Tt(c.value,{[mr.Forwards]:()=>{Jr(_,Pn.First,{skipElements:[y.relatedTarget]})},[mr.Backwards]:()=>{Jr(_,Pn.Last,{skipElements:[y.relatedTarget]})}})})}let p=_e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function g(y){if(!l.value)return;let _=i$(e.containers);ue(o)instanceof HTMLElement&&_.add(ue(o));let S=y.relatedTarget;S instanceof HTMLElement&&S.dataset.headlessuiFocusGuard!=="true"&&(l$(_,S)||(p.value?Jr(ue(o),Tt(c.value,{[mr.Forwards]:()=>Pn.Next,[mr.Backwards]:()=>Pn.Previous})|Pn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&ns(y.target)))}return()=>{let y={},_={ref:o,onKeydown:h,onFocusout:g},{features:S,initialFocus:C,containers:T,...w}=e;return dt(Fe,[!!(S&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:eo.Focusable}),Et({ourProps:_,theirProps:{...t,...w},slot:y,attrs:t,slots:n,name:"FocusTrap"}),!!(S&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:eo.Focusable})])}}}),{features:s$});function jU(e){let t=_e(Uo.slice());return Ft([e],([n],[r])=>{r===!0&&n===!1?Mg(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Uo.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function HU({ownerDocument:e},t){let n=jU(t);vt(()=>{jt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&ns(n())},{flush:"post"})}),Qt(()=>{t.value&&ns(n())})}function VU({ownerDocument:e,container:t,initialFocus:n},r){let o=_e(null),s=_e(!1);return vt(()=>s.value=!0),Qt(()=>s.value=!1),vt(()=>{Ft([t,n,r],(l,a)=>{if(l.every((d,p)=>(a==null?void 0:a[p])===d)||!r.value)return;let c=ue(t);c&&Mg(()=>{var d,p;if(!s.value)return;let h=ue(n),g=(d=e.value)==null?void 0:d.activeElement;if(h){if(h===g){o.value=g;return}}else if(c.contains(g)){o.value=g;return}h?ns(h):Jr(c,Pn.First|Pn.NoScroll)===ba.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 WU({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;jg((s=e.value)==null?void 0:s.defaultView,"focus",l=>{if(!o.value)return;let a=i$(n);ue(t)instanceof HTMLElement&&a.add(ue(t));let c=r.value;if(!c)return;let d=l.target;d&&d instanceof HTMLElement?l$(a,d)?(r.value=d,ns(d)):(l.preventDefault(),l.stopPropagation(),ns(c)):ns(r.value)},!0)}function l$(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function zU(e){let t=sd(e.getSnapshot());return Qt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function qU(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 KU(){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 GU(){return Hx()?{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=Si();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:d}=new URL(c.href),p=e.querySelector(d);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 XU(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function JU(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Gi=qU(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Si(),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:JU(n)},o=[GU(),KU(),XU()];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)}});Gi.subscribe(()=>{let e=Gi.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)&&Gi.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Gi.dispatch("TEARDOWN",n)}});function YU(e,t,n){let r=zU(Gi),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;Gi.dispatch("PUSH",s,n);let d=!1;c(()=>{d||(Gi.dispatch("POP",a??s,n),d=!0)})},{immediate:!0}),o}let Hp=new Map,Ml=new Map;function M_(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=Ml.get(o))!=null?l:1;if(a===1?Ml.delete(o):Ml.set(o,a-1),a!==1)return;let c=Hp.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,Hp.delete(o))});let s=(r=Ml.get(o))!=null?r:0;Ml.set(o,s+1),s===0&&(Hp.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function a$({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=_e(null),o=Vr(r);function s(){var l,a,c;let d=[];for(let p of e)p!==null&&(p instanceof HTMLElement?d.push(p):"value"in p&&p.value instanceof HTMLElement&&d.push(p.value));if(t!=null&&t.value)for(let p of t.value)d.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)||d.some(h=>p.contains(h))||d.push(p));return d}return{resolveContainers:s,contains(l){return s().some(a=>a.contains(l))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:dt(_o,{features:eo.Hidden,ref:r})}}}function ZU(){let e=_e(null);return{mainTreeNodeRef:e,MainTreeNode(){return dt(_o,{features:eo.Hidden,ref:e})}}}let u$=Symbol("ForcePortalRootContext");function QU(){return kt(u$,!1)}let Fh=ge({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Zt(u$,e.force),()=>{let{force:r,...o}=e;return Et({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),c$=Symbol("StackContext");var Bh=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Bh||{});function ej(){return kt(c$,()=>{})}function tj({type:e,enabled:t,element:n,onUpdate:r}){let o=ej();function s(...l){r==null||r(...l),o(...l)}vt(()=>{Ft(t,(l,a)=>{l?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),Qt(()=>{t.value&&s(1,e,n)}),Zt(c$,s)}let d$=Symbol("DescriptionContext");function nj(){let e=kt(d$,null);if(e===null)throw new Error("Missing parent");return e}function f$({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 Zt(d$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}ge({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=nj();return vt(()=>Qt(s.register(o))),()=>{let{name:l="Description",slot:a=_e({}),props:c={}}=s,{...d}=e,p={...Object.entries(c).reduce((h,[g,y])=>Object.assign(h,{[g]:jn(y)}),{}),id:o};return Et({ourProps:p,theirProps:d,slot:a.value,attrs:t,slots:n,name:l})}}});function rj(e){let t=Vr(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 Uh=new WeakMap;function oj(e){var t;return(t=Uh.get(e))!=null?t:0}function D_(e,t){let n=t(oj(e));return n<=0?Uh.delete(e):Uh.set(e,n),n}let p$=ge({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=ce(()=>Vr(r)),s=QU(),l=kt(m$,null),a=_e(s===!0||l==null?rj(r.value):l.resolveTarget());a.value&&D_(a.value,g=>g+1);let c=_e(!1);vt(()=>{c.value=!0}),jt(()=>{s||l!=null&&(a.value=l.resolveTarget())});let d=kt(jh,null),p=!1,h=Go();return Ft(r,()=>{if(p||!d)return;let g=ue(r);g&&(Qt(d.register(g),h),p=!0)}),Qt(()=>{var g,y;let _=(g=o.value)==null?void 0:g.getElementById("headlessui-portal-root");!_||a.value!==_||D_(a.value,S=>S-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let g={ref:r,"data-headlessui-portal":""};return dt(lw,{to:a.value},Et({ourProps:g,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),jh=Symbol("PortalParentContext");function h$(){let e=kt(jh,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,ge({name:"PortalWrapper",setup(s,{slots:l}){return Zt(jh,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let m$=Symbol("PortalGroupContext"),ij=ge({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Ei({resolveTarget(){return e.target}});return Zt(m$,r),()=>{let{target:o,...s}=e;return Et({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var sj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(sj||{});let Hh=Symbol("DialogContext");function Ha(e){let t=kt(Hh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ha),n}return t}let Qu="DC8F892D-2EBD-447C-A4C8-A03058436FF4",lj=ge({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:Qu},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);vt(()=>{c.value=!0});let d=!1,p=ce(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=_e(0),g=ms(),y=ce(()=>e.open===Qu&&g!==null?(g.value&Pt.Open)===Pt.Open:e.open),_=_e(null),S=ce(()=>Vr(_));if(o({el:_,$el:_}),!(e.open!==Qu||g!==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===Qu?void 0:e.open}`);let C=ce(()=>c.value&&y.value?0:1),T=ce(()=>C.value===0),w=ce(()=>h.value>1),E=kt(Hh,null)!==null,[O,$]=h$(),{resolveContainers:P,mainTreeNodeRef:k,MainTreeNode:I}=a$({portals:O,defaultContainers:[ce(()=>{var Le;return(Le=Ae.panelRef.value)!=null?Le:_.value})]}),H=ce(()=>w.value?"parent":"leaf"),D=ce(()=>g!==null?(g.value&Pt.Closing)===Pt.Closing:!1),F=ce(()=>E||D.value?!1:T.value),z=ce(()=>{var Le,Ge,Q;return(Q=Array.from((Ge=(Le=S.value)==null?void 0:Le.querySelectorAll("body > *"))!=null?Ge:[]).find(ae=>ae.id==="headlessui-portal-root"?!1:ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M_(z,F);let G=ce(()=>w.value?!0:T.value),te=ce(()=>{var Le,Ge,Q;return(Q=Array.from((Ge=(Le=S.value)==null?void 0:Le.querySelectorAll("[data-headlessui-portal]"))!=null?Ge:[]).find(ae=>ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M_(te,G),tj({type:"Dialog",enabled:ce(()=>C.value===0),element:_,onUpdate:(Le,Ge)=>{if(Ge==="Dialog")return Tt(Le,{[Bh.Add]:()=>h.value+=1,[Bh.Remove]:()=>h.value-=1})}});let we=f$({name:"DialogDescription",slot:ce(()=>({open:y.value}))}),be=_e(null),Ae={titleId:be,panelRef:_e(null),dialogState:C,setTitleId(Le){be.value!==Le&&(be.value=Le)},close(){t("close",!1)}};Zt(Hh,Ae);let Ie=ce(()=>!(!T.value||w.value));zd(P,(Le,Ge)=>{Le.preventDefault(),Ae.close(),rn(()=>Ge==null?void 0:Ge.focus())},Ie);let Ye=ce(()=>!(w.value||C.value!==0));jg((l=S.value)==null?void 0:l.defaultView,"keydown",Le=>{Ye.value&&(Le.defaultPrevented||Le.key===lt.Escape&&(Le.preventDefault(),Le.stopPropagation(),Ae.close()))});let ft=ce(()=>!(D.value||C.value!==0||E));return YU(S,ft,Le=>{var Ge;return{containers:[...(Ge=Le.containers)!=null?Ge:[],P]}}),jt(Le=>{if(C.value!==0)return;let Ge=ue(_);if(!Ge)return;let Q=new ResizeObserver(ae=>{for(let fe of ae){let xe=fe.target.getBoundingClientRect();xe.x===0&&xe.y===0&&xe.width===0&&xe.height===0&&Ae.close()}});Q.observe(Ge),Le(()=>Q.disconnect())}),()=>{let{open:Le,initialFocus:Ge,...Q}=e,ae={...n,ref:_,id:a,role:p.value,"aria-modal":C.value===0?!0:void 0,"aria-labelledby":be.value,"aria-describedby":we.value},fe={open:C.value===0};return dt(Fh,{force:!0},()=>[dt(p$,()=>dt(ij,{target:_.value},()=>dt(Fh,{force:!1},()=>dt(Nl,{initialFocus:Ge,containers:P,features:T.value?Tt(H.value,{parent:Nl.features.RestoreFocus,leaf:Nl.features.All&~Nl.features.FocusLock}):Nl.features.None},()=>dt($,{},()=>Et({ourProps:ae,theirProps:{...Q,...n},slot:fe,attrs:n,slots:r,visible:C.value===0,features:ir.RenderStrategy|ir.Static,name:"Dialog"})))))),dt(I)])}}}),aj=ge({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=Ha("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),s.close())}return()=>{let{...a}=e;return Et({ourProps:{id:o,"aria-hidden":!0,onClick:l},theirProps:a,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}});ge({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=Ha("DialogBackdrop"),a=_e(null);return r({el:a,$el:a}),vt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,d={id:s,ref:a,"aria-hidden":!0};return dt(Fh,{force:!0},()=>dt(p$,()=>Et({ourProps:d,theirProps:{...t,...c},slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});ge({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=Ha("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:s,ref:l.panelRef,onClick:a};return Et({ourProps:d,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let uj=ge({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=Ha("DialogTitle");return vt(()=>{s.setTitleId(o),Qt(()=>s.setTitleId(null))}),()=>{let{...l}=e;return Et({ourProps:{id:o},theirProps:l,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),F_=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function B_(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 F_.test(l)&&(l=l.replace(F_,"")),l}function cj(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():B_(s).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return B_(e).trim()}function dj(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=cj(r).trim().toLowerCase();return t.value=o,n.value=s,s}}function fj(e,t){return e===t}var pj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pj||{}),hj=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(hj||{}),mj=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(mj||{});function gj(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let g$=Symbol("ListboxContext");function Va(e){let t=kt(g$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Va),n}return t}let Vg=ge({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>fj},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([]),d=_e(""),p=_e(null),h=_e(1);function g(E=O=>O){let O=p.value!==null?c.value[p.value]:null,$=Fg(E(c.value.slice()),k=>ue(k.dataRef.domRef)),P=O?$.indexOf(O):null;return P===-1&&(P=null),{options:$,activeOptionIndex:P}}let y=ce(()=>e.multiple?1:0),[_,S]=Ng(ce(()=>e.modelValue),E=>r("update:modelValue",E),ce(()=>e.defaultValue)),C=ce(()=>_.value===void 0?Tt(y.value,{1:[],0:void 0}):_.value),T={listboxState:o,value:C,mode:y,compare(E,O){if(typeof e.by=="string"){let $=e.by;return(E==null?void 0:E[$])===(O==null?void 0:O[$])}return e.by(E,O)},orientation:ce(()=>e.horizontal?"horizontal":"vertical"),labelRef:s,buttonRef:l,optionsRef:a,disabled:ce(()=>e.disabled),options:c,searchQuery:d,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,O,$){if(e.disabled||o.value===1)return;let P=g(),k=Dh(E===$t.Specific?{focus:$t.Specific,id:O}:{focus:E},{resolveItems:()=>P.options,resolveActiveIndex:()=>P.activeOptionIndex,resolveId:I=>I.id,resolveDisabled:I=>I.dataRef.disabled});d.value="",p.value=k,h.value=$??1,c.value=P.options},search(E){if(e.disabled||o.value===1)return;let O=d.value!==""?0:1;d.value+=E.toLowerCase();let $=(p.value!==null?c.value.slice(p.value+O).concat(c.value.slice(0,p.value+O)):c.value).find(k=>k.dataRef.textValue.startsWith(d.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&&d.value!==""&&(d.value="")},registerOption(E,O){let $=g(P=>[...P,{id:E,dataRef:O}]);c.value=$.options,p.value=$.activeOptionIndex},unregisterOption(E){let O=g($=>{let P=$.findIndex(k=>k.id===E);return P!==-1&&$.splice(P,1),$});c.value=O.options,p.value=O.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||S(E)},select(E){e.disabled||S(Tt(y.value,{0:()=>E,1:()=>{let O=Ue(T.value.value).slice(),$=Ue(E),P=O.findIndex(k=>T.compare($,Ue(k)));return P===-1?O.push($):O.splice(P,1),O}}))}};zd([l,a],(E,O)=>{var $;T.closeListbox(),Dg(O,Wd.Loose)||(E.preventDefault(),($=ue(l))==null||$.focus())},ce(()=>o.value===0)),Zt(g$,T),Kd(ce(()=>Tt(o.value,{0:Pt.Open,1:Pt.Closed})));let w=ce(()=>{var E;return(E=ue(l))==null?void 0:E.closest("form")});return vt(()=>{Ft([w],()=>{if(!w.value||e.defaultValue===void 0)return;function E(){T.theirOnChange(e.defaultValue)}return w.value.addEventListener("reset",E),()=>{var O;(O=w.value)==null||O.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:O,disabled:$,form:P,...k}=e,I={open:o.value===0,disabled:$,value:C.value};return dt(Fe,[...E!=null&&C.value!=null?Ug({[E]:C.value}).map(([H,D])=>dt(_o,Bg({features:eo.Hidden,key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:P,disabled:$,name:H,value:D}))):[],Et({ourProps:{},theirProps:{...n,...hs(k,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:I,slots:t,attrs:n,name:"Listbox"})])}}}),Wg=ge({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=Va("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,d={id:o,ref:s.labelRef,onClick:l};return Et({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),zg=ge({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=Va("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 g;(g=ue(l.optionsRef))==null||g.focus({preventScroll:!0}),l.value.value||l.goToOption($t.First)});break;case lt.ArrowUp:h.preventDefault(),l.openListbox(),rn(()=>{var g;(g=ue(l.optionsRef))==null||g.focus({preventScroll:!0}),l.value.value||l.goToOption($t.Last)});break}}function c(h){switch(h.key){case lt.Space:h.preventDefault();break}}function d(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),gj(()=>{var g;return(g=ue(l.optionsRef))==null?void 0:g.focus({preventScroll:!0})})))}let p=qd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,g;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{..._}=e,S={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?[(g=ue(l.labelRef))==null?void 0:g.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:d};return Et({ourProps:S,theirProps:_,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),qg=ge({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=Va("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 g=l.options.value[l.activeOptionIndex.value];l.select(g.dataRef.value)}l.mode.value===0&&(l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.focus({preventScroll:!0})}));break;case Tt(l.orientation.value,{vertical:lt.ArrowDown,horizontal:lt.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Next);case Tt(l.orientation.value,{vertical:lt.ArrowUp,horizontal:lt.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Previous);case lt.Home:case lt.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption($t.First);case lt.End:case lt.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Last);case lt.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.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 d=ms(),p=ce(()=>d!==null?(d.value&Pt.Open)===Pt.Open:l.listboxState.value===0);return()=>{var h,g;let y={open:l.listboxState.value===0},{..._}=e,S={"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":(g=ue(l.buttonRef))==null?void 0:g.id,"aria-orientation":l.orientation.value,id:s,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return Et({ourProps:S,theirProps:_,slot:y,attrs:t,slots:n,features:ir.RenderStrategy|ir.Static,visible:p.value,name:"ListboxOptions"})}}}),Kg=ge({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=Va("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),d=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 O=Ue(l.value.value);return((E=l.options.value.find($=>O.some(P=>l.compare(Ue(P),Ue($.dataRef.value)))))==null?void 0:E.id)===s},0:()=>d.value})),h=dj(a),g=ce(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));vt(()=>l.registerOption(s,g)),Qt(()=>l.unregisterOption(s)),vt(()=>{Ft([l.listboxState,d],()=>{l.listboxState.value===0&&d.value&&Tt(l.mode.value,{1:()=>{p.value&&l.goToOption($t.Specific,s)},0:()=>{l.goToOption($t.Specific,s)}})},{immediate:!0})}),jt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&rn(()=>{var E,O;return(O=(E=ue(a))==null?void 0:E.scrollIntoView)==null?void 0:O.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 O;return(O=ue(l.buttonRef))==null?void 0:O.focus({preventScroll:!0})}))}function _(){if(e.disabled)return l.goToOption($t.Nothing);l.goToOption($t.Specific,s)}let S=zx();function C(E){S.update(E)}function T(E){S.wasMoved(E)&&(e.disabled||c.value||l.goToOption($t.Specific,s,0))}function w(E){S.wasMoved(E)&&(e.disabled||c.value&&l.goToOption($t.Nothing))}return()=>{let{disabled:E}=e,O={active:c.value,selected:d.value,disabled:E},{value:$,disabled:P,...k}=e,I={id:s,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:y,onFocus:_,onPointerenter:C,onMouseenter:C,onPointermove:T,onMousemove:T,onPointerleave:w,onMouseleave:w};return Et({ourProps:I,theirProps:k,slot:O,attrs:n,slots:t,name:"ListboxOption"})}}});var vj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(vj||{});let v$=Symbol("PopoverContext");function Gd(e){let t=kt(v$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${w$.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Gd),n}return t}let y$=Symbol("PopoverGroupContext");function b$(){return kt(y$,null)}let _$=Symbol("PopoverPanelContext");function yj(){return kt(_$,null)}let w$=ge({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),d=_e(null),p=_e(null),h=ce(()=>Vr(s)),g=ce(()=>{var $,P;if(!ue(a)||!ue(p))return!1;for(let G of document.querySelectorAll("body > *"))if(Number(G==null?void 0:G.contains(ue(a)))^Number(G==null?void 0:G.contains(ue(p))))return!0;let k=Vd(),I=k.indexOf(ue(a)),H=(I+k.length-1)%k.length,D=(I+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:g,beforePanelSentinel:c,afterPanelSentinel:d,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()}};Zt(v$,y),Kd(ce(()=>Tt(l.value,{0:Pt.Open,1:Pt.Closed})));let _={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},S=b$(),C=S==null?void 0:S.registerPopover,[T,w]=h$(),E=a$({mainTreeNodeRef:S==null?void 0:S.mainTreeNodeRef,portals:T,defaultContainers:[a,p]});function O(){var $,P,k,I;return(I=S==null?void 0:S.isFocusWithinPopoverGroup())!=null?I:(($=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(()=>C==null?void 0:C(_)),jg((o=h.value)==null?void 0:o.defaultView,"focus",$=>{var P,k;$.target!==window&&$.target instanceof HTMLElement&&l.value===0&&(O()||a&&p&&(E.contains($.target)||(P=ue(y.beforePanelSentinel))!=null&&P.contains($.target)||(k=ue(y.afterPanelSentinel))!=null&&k.contains($.target)||y.closePopover()))},!0),zd(E.resolveContainers,($,P)=>{var k;y.closePopover(),Dg(P,Wd.Loose)||($.preventDefault(),(k=ue(a))==null||k.focus())},ce(()=>l.value===0)),()=>{let $={open:l.value===0,close:y.close};return dt(Fe,[dt(w,{},()=>Et({theirProps:{...e,...n},ourProps:{ref:s},slot:$,slots:t,attrs:n,name:"Popover"})),dt(E.MainTreeNode)])}}}),bj=ge({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=Gd("PopoverButton"),a=ce(()=>Vr(l.button));r({el:l.button,$el:l.button}),vt(()=>{l.buttonId.value=s}),Qt(()=>{l.buttonId.value=null});let c=b$(),d=c==null?void 0:c.closeOthers,p=yj(),h=ce(()=>p===null?!1:p.value===l.panelId.value),g=_e(null),y=`headlessui-focus-sentinel-${zt()}`;h.value||jt(()=>{l.button.value=ue(g)});let _=qd(ce(()=>({as:e.as,type:t.type})),g);function S($){var P,k,I,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(),(I=ue(l.button))==null||I.focus();break}}else switch($.key){case lt.Space:case lt.Enter:$.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover();break;case lt.Escape:if(l.popoverState.value!==0)return d==null?void 0:d(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 C($){h.value||$.key===lt.Space&&$.preventDefault()}function T($){var P,k;e.disabled||(h.value?(l.closePopover(),(P=ue(l.button))==null||P.focus()):($.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover(),(k=ue(l.button))==null||k.focus()))}function w($){$.preventDefault(),$.stopPropagation()}let E=Hg();function O(){let $=ue(l.panel);if(!$)return;function P(){Tt(E.value,{[mr.Forwards]:()=>Jr($,Pn.First),[mr.Backwards]:()=>Jr($,Pn.Last)})===ba.Error&&Jr(Vd().filter(k=>k.dataset.headlessuiFocusGuard!=="true"),Tt(E.value,{[mr.Forwards]:Pn.Next,[mr.Backwards]:Pn.Previous}),{relativeTo:ue(l.button)})}P()}return()=>{let $=l.popoverState.value===0,P={open:$},{...k}=e,I=h.value?{ref:g,type:_.value,onKeydown:S,onClick:T}:{ref:g,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:S,onKeyup:C,onClick:T,onMousedown:w};return dt(Fe,[Et({ourProps:I,theirProps:{...t,...k},slot:P,attrs:t,slots:n,name:"PopoverButton"}),$&&!h.value&&l.isPortalled.value&&dt(_o,{id:y,features:eo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});ge({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=Gd("PopoverOverlay"),o=`headlessui-popover-overlay-${zt()}`,s=ms(),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 Et({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:ir.RenderStrategy|ir.Static,visible:l.value,name:"PopoverOverlay"})}}});let _j=ge({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=Gd("PopoverPanel"),c=ce(()=>Vr(a.panel)),d=`headlessui-focus-sentinel-before-${zt()}`,p=`headlessui-focus-sentinel-after-${zt()}`;r({el:a.panel,$el:a.panel}),vt(()=>{a.panelId.value=s}),Qt(()=>{a.panelId.value=null}),Zt(_$,a.panelId),jt(()=>{var w,E;if(!l||a.popoverState.value!==0||!a.panel)return;let O=(w=c.value)==null?void 0:w.activeElement;(E=ue(a.panel))!=null&&E.contains(O)||Jr(ue(a.panel),Pn.First)});let h=ms(),g=ce(()=>h!==null?(h.value&Pt.Open)===Pt.Open:a.popoverState.value===0);function y(w){var E,O;switch(w.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;w.preventDefault(),w.stopPropagation(),a.closePopover(),(O=ue(a.button))==null||O.focus();break}}function _(w){var E,O,$,P,k;let I=w.relatedTarget;I&&ue(a.panel)&&((E=ue(a.panel))!=null&&E.contains(I)||(a.closePopover(),(($=(O=ue(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&$.call(O,I)||(k=(P=ue(a.afterPanelSentinel))==null?void 0:P.contains)!=null&&k.call(P,I))&&I.focus({preventScroll:!0})))}let S=Hg();function C(){let w=ue(a.panel);if(!w)return;function E(){Tt(S.value,{[mr.Forwards]:()=>{var O;Jr(w,Pn.First)===ba.Error&&((O=ue(a.afterPanelSentinel))==null||O.focus())},[mr.Backwards]:()=>{var O;(O=ue(a.button))==null||O.focus({preventScroll:!0})}})}E()}function T(){let w=ue(a.panel);if(!w)return;function E(){Tt(S.value,{[mr.Forwards]:()=>{let O=ue(a.button),$=ue(a.panel);if(!O)return;let P=Vd(),k=P.indexOf(O),I=P.slice(0,k+1),H=[...P.slice(k+1),...I];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)}Jr(H,Pn.First,{sorted:!1})},[mr.Backwards]:()=>{var O;Jr(w,Pn.Previous)===ba.Error&&((O=ue(a.button))==null||O.focus())}})}E()}return()=>{let w={open:a.popoverState.value===0,close:a.close},{focus:E,...O}=e,$={ref:a.panel,id:s,onKeydown:y,onFocusout:l&&a.popoverState.value===0?_:void 0,tabIndex:-1};return Et({ourProps:$,theirProps:{...t,...O},attrs:t,slot:w,slots:{...n,default:(...P)=>{var k;return[dt(Fe,[g.value&&a.isPortalled.value&&dt(_o,{id:d,ref:a.beforePanelSentinel,features:eo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:C}),(k=n.default)==null?void 0:k.call(n,...P),g.value&&a.isPortalled.value&&dt(_o,{id:p,ref:a.afterPanelSentinel,features:eo.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T})])]}},features:ir.RenderStrategy|ir.Static,visible:g.value,name:"PopoverPanel"})}}});ge({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let o=_e(null),s=sd([]),l=ce(()=>Vr(o)),a=ZU();r({el:o,$el:o});function c(g){let y=s.value.indexOf(g);y!==-1&&s.value.splice(y,1)}function d(g){return s.value.push(g),()=>{c(g)}}function p(){var g;let y=l.value;if(!y)return!1;let _=y.activeElement;return(g=ue(o))!=null&&g.contains(_)?!0:s.value.some(S=>{var C,T;return((C=y.getElementById(S.buttonId.value))==null?void 0:C.contains(_))||((T=y.getElementById(S.panelId.value))==null?void 0:T.contains(_))})}function h(g){for(let y of s.value)y.buttonId.value!==g&&y.close()}return Zt(y$,{registerPopover:d,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>dt(Fe,[Et({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),dt(a.MainTreeNode)])}});let S$=Symbol("LabelContext");function E$(){let e=kt(S$,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,E$),t}return e}function wj({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 Zt(S$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let Sj=ge({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=E$();return vt(()=>Qt(s.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=s,{passive:d,...p}=e,h={...Object.entries(c).reduce((g,[y,_])=>Object.assign(g,{[y]:jn(_)}),{}),id:o};return d&&(delete h.onClick,delete h.htmlFor,delete p.onClick),Et({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),x$=Symbol("GroupContext"),Ej=ge({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=wj({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=f$({name:"SwitchDescription"});return Zt(x$,{switchRef:r,labelledby:o,describedby:s}),()=>Et({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),xj=ge({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(x$,null),[c,d]=Ng(ce(()=>e.modelValue),w=>t("update:modelValue",w),ce(()=>e.defaultChecked));function p(){d(!c.value)}let h=_e(null),g=a===null?h:a.switchRef,y=qd(ce(()=>({as:e.as,type:n.type})),g);o({el:g,$el:g});function _(w){w.preventDefault(),p()}function S(w){w.key===lt.Space?(w.preventDefault(),p()):w.key===lt.Enter&&RU(w.currentTarget)}function C(w){w.preventDefault()}let T=ce(()=>{var w,E;return(E=(w=ue(g))==null?void 0:w.closest)==null?void 0:E.call(w,"form")});return vt(()=>{Ft([T],()=>{if(!T.value||e.defaultChecked===void 0)return;function w(){d(e.defaultChecked)}return T.value.addEventListener("reset",w),()=>{var E;(E=T.value)==null||E.removeEventListener("reset",w)}},{immediate:!0})}),()=>{let{name:w,value:E,form:O,tabIndex:$,...P}=e,k={checked:c.value},I={id:l,ref:g,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:S,onKeypress:C};return dt(Fe,[w!=null&&c.value!=null?dt(_o,Bg({features:eo.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:O,disabled:P.disabled,name:w,value:E})):null,Et({ourProps:I,theirProps:{...n,...hs(P,["modelValue","defaultChecked"])},slot:k,attrs:n,slots:r,name:"Switch"})])}}}),$j=Sj;function Cj(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Vp(e,...t){e&&t.length>0&&e.classList.add(...t)}function ec(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Vh=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Vh||{});function Tj(e,t){let n=Si();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(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,p)=>p-d);return c});return s!==0?n.setTimeout(()=>t("finished"),s+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function U_(e,t,n,r,o,s){let l=Si(),a=s!==void 0?Cj(s):()=>{};return ec(e,...o),Vp(e,...t,...n),l.nextFrame(()=>{ec(e,...n),Vp(e,...r),l.add(Tj(e,c=>(ec(e,...r,...t),Vp(e,...o),a(c))))}),l.add(()=>ec(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function Ui(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Gg=Symbol("TransitionContext");var Oj=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Oj||{});function Aj(){return kt(Gg,null)!==null}function Ij(){let e=kt(Gg,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Pj(){let e=kt(Xg,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Xg=Symbol("NestingContext");function Xd(e){return"children"in e?Xd(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function $$(e){let t=_e([]),n=_e(!1);vt(()=>n.value=!0),Qt(()=>n.value=!1);function r(s,l=pi.Hidden){let a=t.value.findIndex(({id:c})=>c===s);a!==-1&&(Tt(l,{[pi.Unmount](){t.value.splice(a,1)},[pi.Hidden](){t.value[a].state="hidden"}}),!Xd(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,pi.Unmount)}return{children:t,register:o,unregister:r}}let C$=ir.RenderStrategy,T$=ge({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 d(){s.value&=~Pt.Closing,t("afterLeave")}if(!Aj()&&IU())return()=>dt(O$,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:d},r);let p=_e(null),h=ce(()=>e.unmount?pi.Unmount:pi.Hidden);o({el:p,$el:p});let{show:g,appear:y}=Ij(),{register:_,unregister:S}=Pj(),C=_e(g.value?"visible":"hidden"),T={value:!0},w=zt(),E={value:!1},O=$$(()=>{!E.value&&C.value!=="hidden"&&(C.value="hidden",S(w),d())});vt(()=>{let G=_(w);Qt(G)}),jt(()=>{if(h.value===pi.Hidden&&w){if(g.value&&C.value!=="visible"){C.value="visible";return}Tt(C.value,{hidden:()=>S(w),visible:()=>_(w)})}});let $=Ui(e.enter),P=Ui(e.enterFrom),k=Ui(e.enterTo),I=Ui(e.entered),H=Ui(e.leave),D=Ui(e.leaveFrom),F=Ui(e.leaveTo);vt(()=>{jt(()=>{if(C.value==="visible"){let G=ue(p);if(G instanceof Comment&&G.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function z(G){let te=T.value&&!y.value,we=ue(p);!we||!(we instanceof HTMLElement)||te||(E.value=!0,g.value&&l(),g.value||c(),G(g.value?U_(we,$,P,k,I,be=>{E.value=!1,be===Vh.Finished&&a()}):U_(we,H,D,F,I,be=>{E.value=!1,be===Vh.Finished&&(Xd(O)||(C.value="hidden",S(w),d()))})))}return vt(()=>{Ft([g],(G,te,we)=>{z(we),T.value=!1},{immediate:!0})}),Zt(Xg,O),Kd(ce(()=>Tt(C.value,{visible:Pt.Open,hidden:Pt.Closed})|s.value)),()=>{let{appear:G,show:te,enter:we,enterFrom:be,enterTo:Ae,entered:Ie,leave:Ye,leaveFrom:ft,leaveTo:Le,...Ge}=e,Q={ref:p},ae={...Ge,...y.value&&g.value&&ja.isServer?{class:St([n.class,Ge.class,...$,...P])}:{}};return Et({theirProps:ae,ourProps:Q,slot:{},slots:r,attrs:n,features:C$,visible:C.value==="visible",name:"TransitionChild"})}}}),kj=T$,O$=ge({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=ms(),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=$$(()=>{l.value="hidden"}),c=_e(!0),d={show:s,appear:ce(()=>e.appear||!c.value)};return vt(()=>{jt(()=>{c.value=!1,s.value?l.value="visible":Xd(a)||(l.value="hidden")})}),Zt(Xg,a),Zt(Gg,d),()=>{let p=hs(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return Et({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[dt(kj,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:C$,visible:l.value==="visible",name:"Transition"})}}});const Rj=ge({components:{Dialog:lj,DialogOverlay:aj,TransitionChild:T$,TransitionRoot:O$,XIcon:Ua},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),Lj={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},Nj={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Mj=v("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1),Dj={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},Fj=v("span",{class:"sr-only"},"Close",-1);function Bj(e,t,n,r,o,s){const l=J("DialogOverlay"),a=J("TransitionChild"),c=J("XIcon"),d=J("Dialog"),p=J("TransitionRoot");return N(),bt(p,{as:"template",show:e.open},{default:ye(()=>[q(d,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:ye(()=>[v("div",Lj,[v("div",Nj,[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}),Mj,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(()=>[v("div",{class:St(["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"}])},[v("div",Dj,[v("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())},[Fj,q(c,{class:"h-6 w-6","aria-hidden":"true"})])]),_r(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}const Wa=Be(Rj,[["render",Bj]]),Uj=ge({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"}}}}),jj=["disabled"];function Hj(e,t,n,r,o,s){return N(),V("button",{type:"button",class:St(["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},[_r(e.$slots,"default")],10,jj)}const Vn=Be(Uj,[["render",Hj]]),Vj=ge({components:{PodloveButton:Vn,Modal:Wa,PencilIcon:Bx,XIcon:Ua},setup(){return{state:yt({poster:K.episode.poster,episodePoster:K.episode.episodePoster,asset:K.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(p7())},updatePoster(e){const t=X.get(e,["target","value"],null);this.dispatch(wt({prop:"episode_poster",value:t}))}}}),Wj={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},zj={class:"text-lg leading-6 font-medium text-gray-900"},qj={class:"relative"},Kj=["value"],Gj=["title"],Xj={class:"mt-2 text-sm text-gray-500"},Jj={class:"mt-2 flex justify-end"},Yj={class:"block text-sm font-medium text-gray-700"},Zj={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"},Qj={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"},eH={class:"w-full text-center"},tH={class:"w-full text-center"},nH={class:"w-full text-center"};function rH(e,t,n,r,o,s){const l=J("x-icon"),a=J("podlove-button"),c=J("modal"),d=J("pencil-icon");return N(),V("div",null,[q(c,{size:"medium",open:e.modalOpen,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[v("div",Wj,[v("h3",zj,U(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",qj,[v("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,Kj),v("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,Gj)]),v("p",Xj,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),v("p",Jj,[q(a,{variant:"primary",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[Xe(U(e.__("Use this URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"]),v("label",Yj,U(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),v("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:cs(e.posterStyle)},[e.state.asset==="manual"?(N(),V("div",Zj,[q(d,{class:"h-6 w-6","aria-hidden":"true"})])):Ke("",!0),e.state.asset==="manual"?(N(),V("div",Qj,[q(a,{onClick:t[4]||(t[4]=p=>e.openModal()),class:"w-32 mb-2"},{default:ye(()=>[v("span",eH,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(()=>[v("span",tH,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(()=>[v("span",nH,U(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):Ke("",!0)],4)])}const oH=Be(Vj,[["render",rH]]),iH=ge({components:{Module:Nn},setup(){return{state:yt({number:K.episode.number}),dispatch:it().dispatch}},methods:{updateNumber(e){this.dispatch(wt({prop:"number",value:e.target.value}))}}}),sH={for:"episode-number",class:"block text-sm font-medium text-gray-700"},lH={class:"mt-1 mb-1"},aH=["value"],uH={class:"mt-2 text-sm text-gray-500"};function cH(e,t,n,r,o,s){return N(),V("div",null,[v("label",sH,U(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),v("div",lH,[v("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,aH)]),v("p",uH,U(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}const dH=Be(iH,[["render",cH]]),fH=ge({setup(){return{state:yt({explicit:K.episode.explicit}),dispatch:it().dispatch}},methods:{updateExplicit(e){this.dispatch(wt({prop:"explicit",value:e.target.checked}))}}}),pH={class:"relative flex items-start"},hH={class:"flex items-center h-5"},mH=["checked"],gH={class:"ml-3 text-sm"},vH={for:"explicit-content",class:"font-medium text-gray-700"},yH={class:"text-gray-500"};function bH(e,t,n,r,o,s){return N(),V("div",pH,[v("div",hH,[v("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,mH)]),v("div",gH,[v("label",vH,U(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),v("p",yH,U(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}const _H=Be(fH,[["render",bH]]),wH=ge({components:{Module:Nn},setup(){return{state:yt({title:K.episode.title,post_title:K.post.title}),dispatch:it().dispatch}},methods:{updateTitle(e){this.dispatch(wt({prop:"title",value:e.target.value}))}}}),SH={for:"episode-title",class:"block text-sm font-medium text-gray-700"},EH={class:"mt-1"},xH=["value","placeholder"],$H={class:"mt-2 text-sm text-gray-500"};function CH(e,t,n,r,o,s){return N(),V("div",null,[v("label",SH,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),v("div",EH,[v("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,xH)]),v("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)])}const TH=Be(wH,[["render",CH]]),OH=ge({setup(){const e=yt({subtitle:K.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(wt({prop:"subtitle",value:e.target.value}))}}}),AH={for:"subtitle",class:"block text-sm font-medium text-gray-700"},IH={class:"mt-1"},PH=["value"],kH={class:"mt-2 text-sm text-gray-500 flex justify-between"};function RH(e,t,n,r,o,s){return N(),V("div",null,[v("label",AH,U(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),v("div",IH,[v("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,PH)]),v("p",kH,[v("span",null,U(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),v("span",null,U(e.charactersLeft),1)])])}const LH=Be(OH,[["render",RH]]),NH=ge({setup(){const e=yt({summary:K.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(wt({prop:"summary",value:e.target.value}))}}}),MH={for:"summary",class:"block text-sm font-medium text-gray-700"},DH={class:"mt-1"},FH=["value"],BH={class:"mt-2 text-sm text-gray-500 flex justify-end"};function UH(e,t,n,r,o,s){return N(),V("div",null,[v("label",MH,U(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),v("div",DH,[v("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,FH)]),v("p",BH,[v("span",null,U(e.charactersLeft),1)])])}const jH=Be(NH,[["render",UH]]),HH=ge({components:{Module:Nn},setup(){return{state:yt({type:K.episode.type}),dispatch:it().dispatch}},methods:{updateType(e){this.dispatch(wt({prop:"type",value:e.target.value}))}}}),VH={for:"episode-type",class:"block text-sm font-medium text-gray-700"},WH={class:"mt-1"},zH=["value"],qH={value:"full"},KH={value:"trailer"},GH={value:"bonus"},XH={class:"mt-2 text-sm text-gray-500"};function JH(e,t,n,r,o,s){return N(),V("div",null,[v("label",VH,U(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),v("div",WH,[v("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))},[v("option",null,U(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),v("option",qH,U(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),v("option",KH,U(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),v("option",GH,U(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,zH)]),v("p",XH,U(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}const YH=Be(HH,[["render",JH]]),ZH=ge({components:{Module:Nn,EpisodePoster:oH,EpisodeNumber:dH,EpisodeContent:_H,EpisodeTitle:TH,EpisodeSubtitle:LH,EpisodeSummary:jH,EpisodeType:YH},setup(){return{state:yt({explicitContentEnabled:K.settings.enableEpisodeExplicit}),dispatch:it().dispatch}},created(){this.dispatch(kd())}}),QH={class:"p-3"},eV={class:"flex justify-items-stretch mb-5"},tV={class:"mb-2 w-full"},nV={class:"flex mb-5"},rV={class:"mb-5"},oV={class:"mb-5"};function iV(e,t,n,r,o,s){const l=J("episode-poster"),a=J("episode-number"),c=J("episode-content"),d=J("episode-type"),p=J("episode-title"),h=J("episode-subtitle"),g=J("episode-summary"),y=J("module");return N(),bt(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[v("div",QH,[v("div",eV,[q(l,{class:"mr-5"}),v("div",tV,[v("div",nV,[q(a,{class:"w-full"}),e.state.explicitContentEnabled?(N(),bt(c,{key:0,class:"ml-5 w-full"})):Ke("",!0)]),q(d,{class:"w-full"})])]),v("div",rV,[q(p,{class:"w-full"})]),v("div",oV,[q(h,{class:"w-full"})]),v("div",null,[q(g,{class:"w-full"})])])]),_:1},8,["title"])}const sV=Be(ZH,[["render",iV]]),lV=ge({data(){return{visible:!1}},props:{name:String},methods:{}}),aV=["data-tab"];function uV(e,t,n,r,o,s){return N(),V("div",{class:"hidden","data-tab":e.name},[_r(e.$slots,"default")],8,aV)}const A$=Be(lV,[["render",uV]]),cV=ge({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:X.get(n,["props","name"]),title:X.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(X.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")})}}}),dV={class:"block"},fV={class:"border-b border-gray-200"},pV={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},hV=["onClick"],mV={ref:"tabs"};function gV(e,t,n,r,o,s){return N(),V("div",null,[v("div",dV,[v("div",fV,[v("nav",pV,[(N(!0),V(Fe,null,Mt(e.tabs,l=>(N(),V("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:St([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"])},[v("span",null,U(l.title),1)],10,hV))),128))])])]),v("div",mV,[_r(e.$slots,"default")],512)])}const I$=Be(cV,[["render",gV]]),vV=ge({components:{PodloveButton:Vn,PlusSmIcon:Lg,BookmarkAltIcon:X9,UploadIcon:K9},setup(){return{state:yt({chapters:K.chapters.list,selected:K.chapters.selected,selectedIndex:K.chapters.selectedIndex,episodeDuration:K.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=X.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(fi(null)):this.dispatch(fi(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(n7({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(r7(this.state.selectedIndex))},async addChapter(){this.dispatch(o7()),this.dispatch(fi(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(a7())}}}),yV={key:0},bV={class:"md:flex p-2 sm:block"},_V={class:"w-full"},wV={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},SV={class:"min-w-full divide-y divide-gray-200 mb-2"},EV={ref:"chapters"},xV=["onClick"],$V={key:0,class:"px-2 py-2 w-16"},CV=["src"],TV={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},OV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},AV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},IV={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},PV={class:"mb-5 mt-2"},kV={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},RV={class:"mt-1"},LV=["value"],NV={class:"mb-5"},MV={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},DV={class:"text-xs"},FV={class:"mt-1"},BV=["value"],UV={class:"mb-5"},jV={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},HV={class:"mt-1"},VV=["value"],WV={class:"mb-5"},zV={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},qV={class:"text-xs"},KV={class:"mt-1 relative"},GV=["value"],XV=["title"],JV={class:"mb-5 ml-1"},YV={class:"mt-5 ml-5 pb-5"},ZV={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},QV={class:"mt-2 text-sm font-medium text-gray-900"},eW={class:"mt-1 text-sm text-gray-500"},tW={class:"mt-6"};function nW(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button"),c=J("plus-sm-icon"),d=J("bookmark-alt-icon");return e.chapters.length>0?(N(),V("div",yV,[v("div",bV,[v("div",_V,[v("div",wV,[v("table",SV,[v("tbody",EV,[(N(!0),V(Fe,null,Mt(e.chapters,(p,h)=>(N(),V("tr",{onClick:g=>e.selectChapter(h),key:`chapter-${h}`,class:St(["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,CV)):Ke("",!0)])):Ke("",!0),v("td",TV,U(p.start),1),v("td",OV,U(p.title),1),v("td",AV,U(p.duration),1)],10,xV))),128))],512)])],512)]),e.state.selected?(N(),V("div",IV,[v("div",PV,[v("label",kV,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),v("div",RV,[v("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,LV)])]),v("div",NV,[v("label",MV,[Xe("Url "),v("span",DV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",FV,[v("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,BV)])]),v("div",UV,[v("label",jV,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),v("div",HV,[v("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,VV)])]),v("div",WV,[v("label",zV,[Xe(U(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",qV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",KV,[v("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,GV),v("button",{onClick:t[4]||(t[4]=xc(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,XV)])]),v("div",JV,[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})])])):Ke("",!0)]),v("div",YV,[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",ZV,[q(d,{class:"mx-auto h-12 w-12 text-gray-400"}),v("h3",QV,U(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),v("p",eW,U(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),v("div",tW,[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})])]))}const rW=Be(vV,[["render",nW]]);function Wh(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 d=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 d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(a=e.apply(s,o),s=o=null,clearTimeout(r),r=null)},d}Wh.debounce=Wh;var Wp=Wh;function oW(e,t,n){dn(e)?Ft(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):vt(()=>{e.addEventListener(t,n)}),fs(()=>{var r;(r=jn(e))===null||r===void 0||r.removeEventListener(t,n)})}function iW(e,t){const n="pointerdown";return typeof window>"u"||!window?void 0:oW(window,n,o=>{const s=jn(e);s&&(s===o.target||o.composedPath().includes(s)||t(o))})}function sW(e,t,n){let r=null;const o=_e(!1);vt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(s),r.observe(t.value,{childList:!0,subtree:!0})}),fs(()=>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 el(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 so(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jg(e){var t=so(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _a(e){var t=so(e).Element;return e instanceof t||e instanceof Element}function Nr(e){var t=so(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function P$(e){if(typeof ShadowRoot>"u")return!1;var t=so(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function lW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function aW(e){return e===so(e)||!Nr(e)?Jg(e):lW(e)}function wo(e){return e?(e.nodeName||"").toLowerCase():null}function Ci(e){return((_a(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yg(e){return el(Ci(e)).left+Jg(e).scrollLeft}function zo(e){return so(e).getComputedStyle(e)}function Zg(e){var t=zo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function uW(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function cW(e,t,n){n===void 0&&(n=!1);var r=Nr(t);Nr(t)&&uW(t);var o=Ci(t),s=el(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((wo(t)!=="body"||Zg(o))&&(l=aW(t)),Nr(t)?(a=el(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Yg(o))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Qg(e){var t=el(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 Jd(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(P$(e)?e.host:null)||Ci(e)}function k$(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:Nr(e)&&Zg(e)?e:k$(Jd(e))}function ta(e,t){var n;t===void 0&&(t=[]);var r=k$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=so(r),l=o?[s].concat(s.visualViewport||[],Zg(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ta(Jd(l)))}function dW(e){return["table","td","th"].indexOf(wo(e))>=0}function j_(e){return!Nr(e)||zo(e).position==="fixed"?null:e.offsetParent}function fW(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Nr(e)){var r=zo(e);if(r.position==="fixed")return null}for(var o=Jd(e);Nr(o)&&["html","body"].indexOf(wo(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=so(e),n=j_(e);n&&dW(n)&&zo(n).position==="static";)n=j_(n);return n&&(wo(n)==="html"||wo(n)==="body"&&zo(n).position==="static")?t:n||fW(e)||t}var Mr="top",to="bottom",no="right",Dr="left",ev="auto",qa=[Mr,to,no,Dr],tl="start",wa="end",pW="clippingParents",R$="viewport",Dl="popper",hW="reference",H_=qa.reduce(function(e,t){return e.concat([t+"-"+tl,t+"-"+wa])},[]),L$=[].concat(qa,[ev]).reduce(function(e,t){return e.concat([t,t+"-"+tl,t+"-"+wa])},[]),mW="beforeRead",gW="read",vW="afterRead",yW="beforeMain",bW="main",_W="afterMain",wW="beforeWrite",SW="write",EW="afterWrite",xW=[mW,gW,vW,yW,bW,_W,wW,SW,EW];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 CW(e){var t=$W(e);return xW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function TW(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 OW(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 AW(e){var t=so(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+Yg(e),y:a}}var gi=Math.max,Sa=Math.min,tc=Math.round;function IW(e){var t,n=Ci(e),r=Jg(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=gi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=gi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Yg(e),c=-r.scrollTop;return zo(o||n).direction==="rtl"&&(a+=gi(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function N$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&P$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function PW(e){var t=el(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 V_(e,t){return t===R$?zh(AW(e)):Nr(t)?PW(t):zh(IW(Ci(e)))}function kW(e){var t=ta(Jd(e)),n=["absolute","fixed"].indexOf(zo(e).position)>=0,r=n&&Nr(e)?za(e):e;return _a(r)?t.filter(function(o){return _a(o)&&N$(o,r)&&wo(o)!=="body"}):[]}function RW(e,t,n){var r=t==="clippingParents"?kW(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var d=V_(e,c);return a.top=gi(d.top,a.top),a.right=Sa(d.right,a.right),a.bottom=Sa(d.bottom,a.bottom),a.left=gi(d.left,a.left),a},V_(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 nl(e){return e.split("-")[1]}function tv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function M$(e){var t=e.reference,n=e.element,r=e.placement,o=r?yo(r):null,s=r?nl(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Mr:c={x:l,y:t.y-n.height};break;case to:c={x:l,y:t.y+t.height};break;case no:c={x:t.x+t.width,y:a};break;case Dr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?tv(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case tl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case wa:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function D$(){return{top:0,right:0,bottom:0,left:0}}function F$(e){return Object.assign({},D$(),e)}function B$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function nv(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?pW:s,a=n.rootBoundary,c=a===void 0?R$:a,d=n.elementContext,p=d===void 0?Dl:d,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,S=F$(typeof _!="number"?_:B$(_,qa)),C=p===Dl?hW:Dl,T=e.rects.popper,w=e.elements[g?C:p],E=RW(_a(w)?w:w.contextElement||Ci(e.elements.popper),l,c),O=el(e.elements.reference),$=M$({reference:O,element:T,strategy:"absolute",placement:o}),P=zh(Object.assign({},T,$)),k=p===Dl?P:O,I={top:E.top-k.top+S.top,bottom:k.bottom-E.bottom+S.bottom,left:E.left-k.left+S.left,right:k.right-E.right+S.right},H=e.modifiersData.offset;if(p===Dl&&H){var D=H[o];Object.keys(I).forEach(function(F){var z=[no,to].indexOf(F)>=0?1:-1,G=[Mr,to].indexOf(F)>=0?"y":"x";I[F]+=D[G]*z})}return I}var W_={placement:"bottom",modifiers:[],strategy:"absolute"};function z_(){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 LW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?W_:o;return function(a,c,d){d===void 0&&(d=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},W_,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(T){var w=typeof T=="function"?T(p.options):T;S(),p.options=Object.assign({},s,p.options,w),p.scrollParents={reference:_a(a)?ta(a):a.contextElement?ta(a.contextElement):[],popper:ta(c)};var E=CW(OW([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),_(),y.update()},forceUpdate:function(){if(!g){var T=p.elements,w=T.reference,E=T.popper;if(z_(w,E)){p.rects={reference:cW(w,za(E),p.options.strategy==="fixed"),popper:Qg(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 O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,k=$.options,I=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:I,name:H,instance:y})||p)}}}},update:TW(function(){return new Promise(function(C){y.forceUpdate(),C(p)})}),destroy:function(){S(),g=!0}};if(!z_(a,c))return y;y.setOptions(d).then(function(C){!g&&d.onFirstUpdate&&d.onFirstUpdate(C)});function _(){p.orderedModifiers.forEach(function(C){var T=C.name,w=C.options,E=w===void 0?{}:w,O=C.effect;if(typeof O=="function"){var $=O({state:p,name:T,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(C){return C()}),h=[]}return y}}var nc={passive:!0};function NW(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=so(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",n.update,nc)}),a&&c.addEventListener("resize",n.update,nc),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",n.update,nc)}),a&&c.removeEventListener("resize",n.update,nc)}}var MW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:NW,data:{}};function DW(e){var t=e.state,n=e.name;t.modifiersData[n]=M$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var FW={name:"popperOffsets",enabled:!0,phase:"read",fn:DW,data:{}},BW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function UW(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:tc(tc(t*o)/o)||0,y:tc(tc(n*o)/o)||0}}function q_(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=p===!0?UW(l):typeof p=="function"?p(l):l,g=h.x,y=g===void 0?0:g,_=h.y,S=_===void 0?0:_,C=l.hasOwnProperty("x"),T=l.hasOwnProperty("y"),w=Dr,E=Mr,O=window;if(d){var $=za(n),P="clientHeight",k="clientWidth";$===so(n)&&($=Ci(n),zo($).position!=="static"&&a==="absolute"&&(P="scrollHeight",k="scrollWidth")),$=$,(o===Mr||(o===Dr||o===no)&&s===wa)&&(E=to,S-=$[P]-r.height,S*=c?1:-1),(o===Dr||(o===Mr||o===to)&&s===wa)&&(w=no,y-=$[k]-r.width,y*=c?1:-1)}var I=Object.assign({position:a},d&&BW);if(c){var H;return Object.assign({},I,(H={},H[E]=T?"0":"",H[w]=C?"0":"",H.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",H))}return Object.assign({},I,(t={},t[E]=T?S+"px":"",t[w]=C?y+"px":"",t.transform="",t))}function jW(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,d={placement:yo(t.placement),variation:nl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,q_(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,q_(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var HW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jW,data:{}};function VW(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];!Nr(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 WW(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,d){return c[d]="",c},{});!Nr(o)||!wo(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var zW={name:"applyStyles",enabled:!0,phase:"write",fn:VW,effect:WW,requires:["computeStyles"]},qW=[MW,FW,HW,zW],KW=LW({defaultModifiers:qW});function GW(e){return e==="x"?"y":"x"}function hc(e,t,n){return gi(e,Sa(t,n))}function XW(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,d=n.rootBoundary,p=n.altBoundary,h=n.padding,g=n.tether,y=g===void 0?!0:g,_=n.tetherOffset,S=_===void 0?0:_,C=nv(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),T=yo(t.placement),w=nl(t.placement),E=!w,O=tv(T),$=GW(O),P=t.modifiersData.popperOffsets,k=t.rects.reference,I=t.rects.popper,H=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,D={x:0,y:0};if(P){if(s||a){var F=O==="y"?Mr:Dr,z=O==="y"?to:no,G=O==="y"?"height":"width",te=P[O],we=P[O]+C[F],be=P[O]-C[z],Ae=y?-I[G]/2:0,Ie=w===tl?k[G]:I[G],Ye=w===tl?-I[G]:-k[G],ft=t.elements.arrow,Le=y&&ft?Qg(ft):{width:0,height:0},Ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:D$(),Q=Ge[F],ae=Ge[z],fe=hc(0,k[G],Le[G]),xe=E?k[G]/2-Ae-fe-Q-H:Ie-fe-Q-H,He=E?-k[G]/2+Ae+fe+ae+H:Ye+fe+ae+H,De=t.elements.arrow&&za(t.elements.arrow),tt=De?O==="y"?De.clientTop||0:De.clientLeft||0:0,gn=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,ln=P[O]+xe-gn-tt,L=P[O]+He-gn;if(s){var B=hc(y?Sa(we,ln):we,te,y?gi(be,L):be);P[O]=B,D[O]=B-te}if(a){var Z=O==="x"?Mr:Dr,le=O==="x"?to:no,ie=P[$],pe=ie+C[Z],$e=ie-C[le],he=hc(y?Sa(pe,ln):pe,ie,y?gi($e,L):$e);P[$]=he,D[$]=he-ie}}t.modifiersData[r]=D}}var JW={name:"preventOverflow",enabled:!0,phase:"main",fn:XW,requiresIfExists:["offset"]},YW={left:"right",right:"left",bottom:"top",top:"bottom"};function mc(e){return e.replace(/left|right|bottom|top/g,function(t){return YW[t]})}var ZW={start:"end",end:"start"};function K_(e){return e.replace(/start|end/g,function(t){return ZW[t]})}function QW(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,d=c===void 0?L$:c,p=nl(r),h=p?a?H_:H_.filter(function(_){return nl(_)===p}):qa,g=h.filter(function(_){return d.indexOf(_)>=0});g.length===0&&(g=h);var y=g.reduce(function(_,S){return _[S]=nv(e,{placement:S,boundary:o,rootBoundary:s,padding:l})[yo(S)],_},{});return Object.keys(y).sort(function(_,S){return y[_]-y[S]})}function ez(e){if(yo(e)===ev)return[];var t=mc(e);return[K_(e),t,K_(t)]}function tz(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,d=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,S=n.allowedAutoPlacements,C=t.options.placement,T=yo(C),w=T===C,E=c||(w||!_?[mc(C)]:ez(C)),O=[C].concat(E).reduce(function(ae,fe){return ae.concat(yo(fe)===ev?QW(t,{placement:fe,boundary:p,rootBoundary:h,padding:d,flipVariations:_,allowedAutoPlacements:S}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,I=!0,H=O[0],D=0;D<O.length;D++){var F=O[D],z=yo(F),G=nl(F)===tl,te=[Mr,to].indexOf(z)>=0,we=te?"width":"height",be=nv(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),Ae=te?G?no:Dr:G?to:Mr;$[we]>P[we]&&(Ae=mc(Ae));var Ie=mc(Ae),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Ae]<=0,be[Ie]<=0),Ye.every(function(ae){return ae})){H=F,I=!1;break}k.set(F,Ye)}if(I)for(var ft=_?3:1,Le=function(fe){var xe=O.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(xe)return H=xe,"break"},Ge=ft;Ge>0;Ge--){var Q=Le(Ge);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var nz={name:"flip",enabled:!0,phase:"main",fn:tz,requiresIfExists:["offset"],data:{_skip:!1}};function rz(e,t,n){var r=yo(e),o=[Dr,Mr].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,[Dr,no].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function oz(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=L$.reduce(function(p,h){return p[h]=rz(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}var iz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oz},sz=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,F$(typeof t!="number"?t:B$(t,qa))};function lz(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=tv(a),d=[Dr,no].indexOf(a)>=0,p=d?"height":"width";if(!(!s||!l)){var h=sz(o.padding,n),g=Qg(s),y=c==="y"?Mr:Dr,_=c==="y"?to:no,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],C=l[c]-n.rects.reference[c],T=za(s),w=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,E=S/2-C/2,O=h[y],$=w-g[p]-h[_],P=w/2-g[p]/2+E,k=hc(O,P,$),I=c;n.modifiersData[r]=(t={},t[I]=k,t.centerOffset=k-P,t)}}function az(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)||N$(t.elements.popper,o)&&(t.elements.arrow=o))}var uz={name:"arrow",enabled:!0,phase:"main",fn:lz,effect:az,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const zp=e=>parseInt(e,10);function cz({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:s,popperNode:l,triggerNode:a}){const c=Ei({isOpen:!1,popperInstance:null}),d=S=>{var C;(C=c.popperInstance)===null||C===void 0||C.setOptions(T=>({...T,modifiers:[...T.modifiers,{name:"eventListeners",enabled:S}]}))},p=()=>d(!0),h=()=>d(!1),g=()=>{c.isOpen&&(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ft([()=>c.isOpen,s],async([S])=>{S?(await _(),p()):h()});const _=async()=>{await rn(),c.popperInstance=KW(a.value,l.value,{placement:s.value,modifiers:[JW,nz,{name:"flip",enabled:!n.value},uz,{name:"arrow",options:{padding:zp(e.value)}},iz,{name:"offset",options:{offset:[zp(o.value),zp(r.value)]}}]}),c.popperInstance.update()};return fs(()=>{var S;(S=c.popperInstance)===null||S===void 0||S.destroy()}),{...lm(c),open:y,close:g}}const dz={id:"arrow","data-popper-arrow":""};function fz(e,t){return N(),V("div",dz)}function U$(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){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 pz=`
     61`));let y=Jx((l=h.props)!=null?l:{},c,p),_=Ur(h,y,!0);for(let S in y)S.startsWith("on")&&(_.props||(_.props={}),_.props[S]=y[S]);return _}return Array.isArray(d)&&d.length===1?d[0]:d}return dt(a,Object.assign({},c,p),{default:()=>d})}function Xx(e){return e.flatMap(t=>t.type===Fe?Xx(t.children):[t])}function Jx(...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 Ug(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function hs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function UU(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 Et({ourProps:l,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),Yx=Symbol("Context");var It=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(It||{});function jU(){return ms()!==null}function ms(){return Rt(Yx,null)}function Kd(e){Zt(Yx,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||{}),Zx=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Zx||{});function HU(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Uo=[];HU(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Uo[0]!==t.target&&(Uo.unshift(t.target),Uo=Uo.filter(n=>n!=null&&n.isConnected),Uo.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 VU(e){throw new Error("Unexpected object: "+e)}var $t=(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))($t||{});function Dh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=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:VU(e)}}function jg(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))e$(n,Qx(t,r),o);return n}function Qx(e,t){return e?e+"["+t+"]":t}function e$(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())e$(e,Qx(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,""]):jg(n,t,e)}function WU(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)}}var zU={};function qU(e,t){return e===t}var KU=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(KU||{}),GU=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(GU||{}),XU=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(XU||{});let t$=Symbol("ComboboxContext");function gs(e){let t=Rt(t$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gs),n}return t}let n$=Symbol("VirtualContext"),JU=ve({name:"VirtualProvider",setup(e,{slots:t}){let n=gs("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=CU(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}),Zt(n$,n.virtual.value?o:null),()=>[dt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process<"u"&&zU.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=>Ur(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"}})))]}}),r$=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),d=_e({static:!1,hold:!1}),p=_e([]),h=_e(null),g=_e(2),y=_e(!1);function _(D=F=>F){let F=h.value!==null?p.value[h.value]:null,z=D(p.value.slice()),G=z.length>0&&z[0].dataRef.order.value!==null?z.sort((we,be)=>we.dataRef.order.value-be.dataRef.order.value):Bg(z,we=>ue(we.dataRef.domRef)),te=F?G.indexOf(F):null;return te===-1&&(te=null),{options:G,activeOptionIndex:te}}let S=ce(()=>e.multiple?1:0),C=ce(()=>e.nullable),[T,w]=Mg(ce(()=>e.modelValue),D=>r("update:modelValue",D),ce(()=>e.defaultValue)),E=ce(()=>T.value===void 0?Tt(S.value,{1:[],0:void 0}):T.value),O=null,x=null;function I(D){return Tt(S.value,{0(){return w==null?void 0:w(D)},1:()=>{let F=Ue(P.value.value).slice(),z=Ue(D),G=F.findIndex(te=>P.compare(z,Ue(te)));return G===-1?F.push(z):F.splice(G,1),w==null?void 0:w(F)}})}let k=ce(()=>{});Ft([k],([D],[F])=>{if(P.virtual.value&&D&&F&&h.value!==null){let z=D.indexOf(F[h.value]);z!==-1?h.value=z:h.value=null}});let P={comboboxState:o,value:E,mode:S,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?qU(D,F):e.by(D,F)},calculateIndex(D){return P.virtual.value?e.by===null?P.virtual.value.options.indexOf(D):P.virtual.value.options.findIndex(F=>P.compare(F,D)):p.value.findIndex(F=>P.compare(F.dataRef.value,D))},defaultValue:ce(()=>e.defaultValue),nullable:C,immediate:ce(()=>!1),virtual:ce(()=>null),inputRef:l,labelRef:s,buttonRef:a,optionsRef:c,disabled:ce(()=>e.disabled),options:p,change(D){w(D)},activeOptionIndex:ce(()=>{if(y.value&&h.value===null&&(P.virtual.value?P.virtual.value.options.length>0:p.value.length>0)){if(P.virtual.value){let F=P.virtual.value.options.findIndex(z=>{var G;return!((G=P.virtual.value)!=null&&G.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:g,optionsPropsRef:d,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(P.value.value){let D=P.calculateIndex(P.value.value);D!==-1&&(h.value=D)}o.value=0}},setActivationTrigger(D){g.value=D},goToOption(D,F,z){y.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||c.value&&!d.value.static&&o.value===1)return;if(P.virtual.value){h.value=D===$t.Specific?F:Dh({focus:D},{resolveItems:()=>P.virtual.value.options,resolveActiveIndex:()=>{var we,be;return(be=(we=P.activeOptionIndex.value)!=null?we:P.virtual.value.options.findIndex(Ae=>{var Pe;return!((Pe=P.virtual.value)!=null&&Pe.disabled(Ae))}))!=null?be:null},resolveDisabled:we=>P.virtual.value.disabled(we),resolveId(){throw new Error("Function not implemented.")}}),g.value=z??2;return}let G=_();if(G.activeOptionIndex===null){let we=G.options.findIndex(be=>!be.dataRef.disabled);we!==-1&&(G.activeOptionIndex=we)}let te=D===$t.Specific?F:Dh({focus:D},{resolveItems:()=>G.options,resolveActiveIndex:()=>G.activeOptionIndex,resolveId:we=>we.id,resolveDisabled:we=>we.dataRef.disabled});h.value=te,g.value=z??2,p.value=G.options})},selectOption(D){let F=p.value.find(G=>G.id===D);if(!F)return;let{dataRef:z}=F;I(z.value)},selectActiveOption(){if(P.activeOptionIndex.value!==null){if(P.virtual.value)I(P.virtual.value.options[P.activeOptionIndex.value]);else{let{dataRef:D}=p.value[P.activeOptionIndex.value];I(D.value)}P.goToOption($t.Specific,P.activeOptionIndex.value)}},registerOption(D,F){let z=xi({id:D,dataRef:F});if(P.virtual.value){p.value.push(z);return}x&&cancelAnimationFrame(x);let G=_(te=>(te.push(z),te));h.value===null&&P.isSelected(F.value.value)&&(G.activeOptionIndex=G.options.indexOf(z)),p.value=G.options,h.value=G.activeOptionIndex,g.value=2,G.options.some(te=>!ue(te.dataRef.domRef))&&(x=requestAnimationFrame(()=>{let te=_();p.value=te.options,h.value=te.activeOptionIndex}))},unregisterOption(D,F){if(O!==null&&cancelAnimationFrame(O),F&&(y.value=!0),P.virtual.value){p.value=p.value.filter(G=>G.id!==D);return}let z=_(G=>{let te=G.findIndex(we=>we.id===D);return te!==-1&&G.splice(te,1),G});p.value=z.options,h.value=z.activeOptionIndex,g.value=2},isSelected(D){return Tt(S.value,{0:()=>P.compare(Ue(P.value.value),Ue(D)),1:()=>Ue(P.value.value).some(F=>P.compare(Ue(F),Ue(D)))})},isActive(D){return h.value===P.calculateIndex(D)}};zd([l,a,c],()=>P.closeCombobox(),ce(()=>o.value===0)),Zt(t$,P),Kd(ce(()=>Tt(o.value,{0:It.Open,1:It.Closed})));let H=ce(()=>{var D;return(D=ue(l))==null?void 0:D.closest("form")});return vt(()=>{Ft([H],()=>{if(!H.value||e.defaultValue===void 0)return;function D(){P.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:G,disabled:te,form:we,...be}=e,Ae={open:o.value===0,disabled:te,activeIndex:P.activeOptionIndex.value,activeOption:P.activeOptionIndex.value===null?null:P.virtual.value?P.virtual.value.options[(D=P.activeOptionIndex.value)!=null?D:0]:(z=(F=P.options.value[P.activeOptionIndex.value])==null?void 0:F.dataRef.value)!=null?z:null,value:E.value};return dt(Fe,[...G!=null&&E.value!=null?jg({[G]:E.value}).map(([Pe,Ye])=>dt(_o,Ug({features:to.Hidden,key:Pe,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:we,disabled:te,name:Pe,value:Ye}))):[],Et({theirProps:{...n,...hs(be,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Ae,slots:t,attrs:n,name:"Combobox"})])}}}),YU=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=gs("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,d={id:o,ref:s.labelRef,onClick:l};return Et({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),o$=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=gs("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($t.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 d=qd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let g={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,_={ref:l.buttonRef,id:s,type:d.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 Et({ourProps:_,theirProps:y,slot:g,attrs:t,slots:n,name:"ComboboxButton"})}}}),i$=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=gs("ComboboxInput"),c=ce(()=>Wr(ue(a.inputRef))),d={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let x=ue(a.optionsRef);x&&(x.scrollTop=0),a.goToOption($t.Nothing)}let h=ce(()=>{var x;let I=a.value.value;return ue(a.inputRef)?typeof e.displayValue<"u"&&I!==void 0?(x=e.displayValue(I))!=null?x:"":typeof I=="string"?I:"":""});vt(()=>{Ft([h,a.comboboxState,c],([x,I],[k,P])=>{if(d.value)return;let H=ue(a.inputRef);H&&((P===0&&I===1||x!==k)&&(H.value=x),requestAnimationFrame(()=>{var D;if(d.value||!H||((D=c.value)==null?void 0:D.activeElement)!==H)return;let{selectionStart:F,selectionEnd:z}=H;Math.abs((z??0)-(F??0))===0&&F===0&&H.setSelectionRange(H.value.length,H.value.length)}))},{immediate:!0}),Ft([a.comboboxState],([x],[I])=>{if(x===0&&I===1){if(d.value)return;let k=ue(a.inputRef);if(!k)return;let P=k.value,{selectionStart:H,selectionEnd:D,selectionDirection:F}=k;k.value="",k.value=P,F!==null?k.setSelectionRange(H,D,F):k.setSelectionRange(H,D)}})});let g=_e(!1);function y(){g.value=!0}function _(){Ei().nextFrame(()=>{g.value=!1})}let S=OU();function C(x){switch(d.value=!0,S(()=>{d.value=!1}),x.key){case lt.Enter:if(d.value=!1,a.comboboxState.value!==0||g.value)return;if(x.preventDefault(),x.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case lt.ArrowDown:return d.value=!1,x.preventDefault(),x.stopPropagation(),Tt(a.comboboxState.value,{0:()=>a.goToOption($t.Next),1:()=>a.openCombobox()});case lt.ArrowUp:return d.value=!1,x.preventDefault(),x.stopPropagation(),Tt(a.comboboxState.value,{0:()=>a.goToOption($t.Previous),1:()=>{a.openCombobox(),rn(()=>{a.value.value||a.goToOption($t.Last)})}});case lt.Home:if(x.shiftKey)break;return d.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption($t.First);case lt.PageUp:return d.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption($t.First);case lt.End:if(x.shiftKey)break;return d.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption($t.Last);case lt.PageDown:return d.value=!1,x.preventDefault(),x.stopPropagation(),a.goToOption($t.Last);case lt.Escape:if(d.value=!1,a.comboboxState.value!==0)return;x.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&x.stopPropagation(),a.nullable.value&&a.mode.value===0&&a.value.value===null&&p(),a.closeCombobox();break;case lt.Tab:if(d.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function T(x){t("change",x),a.nullable.value&&a.mode.value===0&&x.target.value===""&&p(),a.openCombobox()}function w(x){var I,k,P;let H=(I=x.relatedTarget)!=null?I:Uo.find(D=>D!==x.currentTarget);if(d.value=!1,!((k=ue(a.optionsRef))!=null&&k.contains(H))&&!((P=ue(a.buttonRef))!=null&&P.contains(H))&&a.comboboxState.value===0)return x.preventDefault(),a.mode.value===0&&(a.nullable.value&&a.value.value===null?p():a.activationTrigger.value!==1&&a.selectActiveOption()),a.closeCombobox()}function E(x){var I,k,P;let H=(I=x.relatedTarget)!=null?I:Uo.find(D=>D!==x.currentTarget);(k=ue(a.buttonRef))!=null&&k.contains(H)||(P=ue(a.optionsRef))!=null&&P.contains(H)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),Ei().nextFrame(()=>{a.setActivationTrigger(1)}))}let O=ce(()=>{var x,I,k,P;return(P=(k=(I=e.defaultValue)!=null?I:a.defaultValue.value!==void 0?(x=e.displayValue)==null?void 0:x.call(e,a.defaultValue.value):null)!=null?k:a.defaultValue.value)!=null?P:""});return()=>{var x,I,k,P,H,D,F;let z={open:a.comboboxState.value===0},{displayValue:G,onChange:te,...we}=e,be={"aria-controls":(x=a.optionsRef.value)==null?void 0:x.id,"aria-expanded":a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null?void 0:a.virtual.value?(I=a.options.value.find(Ae=>!a.virtual.value.disabled(Ae.dataRef.value)&&a.compare(Ae.dataRef.value,a.virtual.value.options[a.activeOptionIndex.value])))==null?void 0:I.id:(k=a.options.value[a.activeOptionIndex.value])==null?void 0:k.id,"aria-labelledby":(D=(P=ue(a.labelRef))==null?void 0:P.id)!=null?D:(H=ue(a.buttonRef))==null?void 0:H.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:_,onKeydown:C,onInput:T,onFocus:E,onBlur:w,role:"combobox",type:(F=n.type)!=null?F:"text",tabIndex:0,ref:a.inputRef,defaultValue:O.value,disabled:a.disabled.value===!0?!0:void 0};return Et({ourProps:be,theirProps:we,slot:z,attrs:n,slots:r,features:sr.RenderStrategy|sr.Static,name:"ComboboxInput"})}}}),s$=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=gs("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=ms(),a=ce(()=>l!==null?(l.value&It.Open)===It.Open:o.comboboxState.value===0);BU({container:ce(()=>ue(o.optionsRef)),enabled:ce(()=>o.comboboxState.value===0),accept(d){return d.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:d.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(d){d.setAttribute("role","none")}});function c(d){d.preventDefault()}return()=>{var d,p,h;let g={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(d=ue(o.labelRef))==null?void 0:d.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},_=hs(e,["hold"]);return Et({ourProps:y,theirProps:_,slot:g,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[dt(JU,{},n.default)]}:n,features:sr.RenderStrategy|sr.Static,visible:a.value,name:"ComboboxOptions"})}}}),l$=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=gs("ComboboxOption"),s=`headlessui-combobox-option-${zt()}`,l=_e(null),a=ce(()=>e.disabled);r({el:l,$el:l});let c=ce(()=>{var w;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((w=o.options.value[o.activeOptionIndex.value])==null?void 0:w.id)===s}),d=ce(()=>o.isSelected(e.value)),p=Rt(n$,null),h=ce(()=>({disabled:e.disabled,value:e.value,domRef:l,order:ce(()=>e.order)}));vt(()=>o.registerOption(s,h)),Qt(()=>o.unregisterOption(s,c.value)),jt(()=>{let w=ue(l);w&&(p==null||p.value.measureElement(w))}),jt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&rn(()=>{var w,E;return(E=(w=ue(l))==null?void 0:w.scrollIntoView)==null?void 0:E.call(w,{block:"nearest"})}))});function g(w){w.preventDefault(),w.button===Zx.Left&&(a.value||(o.selectOption(s),qx()||requestAnimationFrame(()=>{var E;return(E=ue(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var w;if(e.disabled||(w=o.virtual.value)!=null&&w.disabled(e.value))return o.goToOption($t.Nothing);let E=o.calculateIndex(e.value);o.goToOption($t.Specific,E)}let _=Gx();function S(w){_.update(w)}function C(w){var E;if(!_.wasMoved(w)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let O=o.calculateIndex(e.value);o.goToOption($t.Specific,O,0)}function T(w){var E;_.wasMoved(w)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption($t.Nothing)))}return()=>{let{disabled:w}=e,E={active:c.value,selected:d.value,disabled:w},O={id:s,ref:l,role:"option",tabIndex:w===!0?void 0:-1,"aria-disabled":w===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onMousedown:g,onFocus:y,onPointerenter:S,onMouseenter:S,onPointermove:C,onMousemove:C,onPointerleave:T,onMouseleave:T},x=hs(e,["order","value"]);return Et({ourProps:O,theirProps:x,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function Hg(e,t,n,r){ja.isServer||jt(o=>{e=e??window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var mr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(mr||{});function Vg(){let e=_e(0);return Kx("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function a$(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 u$=(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))(u$||{});let Nl=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(()=>Wr(o)),l=_e(!1);vt(()=>l.value=!0),Qt(()=>l.value=!1),QU({ownerDocument:s},ce(()=>l.value&&!!(e.features&16)));let a=ej({ownerDocument:s,container:o,initialFocus:ce(()=>e.initialFocus)},ce(()=>l.value&&!!(e.features&2)));tj({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},ce(()=>l.value&&!!(e.features&8)));let c=Vg();function d(y){let _=ue(o);_&&(S=>S())(()=>{Tt(c.value,{[mr.Forwards]:()=>{Yr(_,In.First,{skipElements:[y.relatedTarget]})},[mr.Backwards]:()=>{Yr(_,In.Last,{skipElements:[y.relatedTarget]})}})})}let p=_e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function g(y){if(!l.value)return;let _=a$(e.containers);ue(o)instanceof HTMLElement&&_.add(ue(o));let S=y.relatedTarget;S instanceof HTMLElement&&S.dataset.headlessuiFocusGuard!=="true"&&(c$(_,S)||(p.value?Yr(ue(o),Tt(c.value,{[mr.Forwards]:()=>In.Next,[mr.Backwards]:()=>In.Previous})|In.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&rs(y.target)))}return()=>{let y={},_={ref:o,onKeydown:h,onFocusout:g},{features:S,initialFocus:C,containers:T,...w}=e;return dt(Fe,[!!(S&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:to.Focusable}),Et({ourProps:_,theirProps:{...t,...w},slot:y,attrs:t,slots:n,name:"FocusTrap"}),!!(S&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:to.Focusable})])}}}),{features:u$});function ZU(e){let t=_e(Uo.slice());return Ft([e],([n],[r])=>{r===!0&&n===!1?Dg(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Uo.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function QU({ownerDocument:e},t){let n=ZU(t);vt(()=>{jt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&rs(n())},{flush:"post"})}),Qt(()=>{t.value&&rs(n())})}function ej({ownerDocument:e,container:t,initialFocus:n},r){let o=_e(null),s=_e(!1);return vt(()=>s.value=!0),Qt(()=>s.value=!1),vt(()=>{Ft([t,n,r],(l,a)=>{if(l.every((d,p)=>(a==null?void 0:a[p])===d)||!r.value)return;let c=ue(t);c&&Dg(()=>{var d,p;if(!s.value)return;let h=ue(n),g=(d=e.value)==null?void 0:d.activeElement;if(h){if(h===g){o.value=g;return}}else if(c.contains(g)){o.value=g;return}h?rs(h):Yr(c,In.First|In.NoScroll)===ba.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 tj({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;Hg((s=e.value)==null?void 0:s.defaultView,"focus",l=>{if(!o.value)return;let a=a$(n);ue(t)instanceof HTMLElement&&a.add(ue(t));let c=r.value;if(!c)return;let d=l.target;d&&d instanceof HTMLElement?c$(a,d)?(r.value=d,rs(d)):(l.preventDefault(),l.stopPropagation(),rs(c)):rs(r.value)},!0)}function c$(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function nj(e){let t=sd(e.getSnapshot());return Qt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function rj(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 oj(){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 ij(){return zx()?{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=Ei();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:d}=new URL(c.href),p=e.querySelector(d);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 sj(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function lj(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Xi=rj(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ei(),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:lj(n)},o=[ij(),oj(),sj()];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)}});Xi.subscribe(()=>{let e=Xi.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)&&Xi.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Xi.dispatch("TEARDOWN",n)}});function aj(e,t,n){let r=nj(Xi),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;Xi.dispatch("PUSH",s,n);let d=!1;c(()=>{d||(Xi.dispatch("POP",a??s,n),d=!0)})},{immediate:!0}),o}let Hp=new Map,Ml=new Map;function D_(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=Ml.get(o))!=null?l:1;if(a===1?Ml.delete(o):Ml.set(o,a-1),a!==1)return;let c=Hp.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,Hp.delete(o))});let s=(r=Ml.get(o))!=null?r:0;Ml.set(o,s+1),s===0&&(Hp.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function d$({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=_e(null),o=Wr(r);function s(){var l,a,c;let d=[];for(let p of e)p!==null&&(p instanceof HTMLElement?d.push(p):"value"in p&&p.value instanceof HTMLElement&&d.push(p.value));if(t!=null&&t.value)for(let p of t.value)d.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)||d.some(h=>p.contains(h))||d.push(p));return d}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 uj(){let e=_e(null);return{mainTreeNodeRef:e,MainTreeNode(){return dt(_o,{features:to.Hidden,ref:e})}}}let f$=Symbol("ForcePortalRootContext");function cj(){return Rt(f$,!1)}let Fh=ve({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Zt(f$,e.force),()=>{let{force:r,...o}=e;return Et({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),p$=Symbol("StackContext");var Bh=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Bh||{});function dj(){return Rt(p$,()=>{})}function fj({type:e,enabled:t,element:n,onUpdate:r}){let o=dj();function s(...l){r==null||r(...l),o(...l)}vt(()=>{Ft(t,(l,a)=>{l?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),Qt(()=>{t.value&&s(1,e,n)}),Zt(p$,s)}let h$=Symbol("DescriptionContext");function pj(){let e=Rt(h$,null);if(e===null)throw new Error("Missing parent");return e}function m$({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 Zt(h$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}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=pj();return vt(()=>Qt(s.register(o))),()=>{let{name:l="Description",slot:a=_e({}),props:c={}}=s,{...d}=e,p={...Object.entries(c).reduce((h,[g,y])=>Object.assign(h,{[g]:Hn(y)}),{}),id:o};return Et({ourProps:p,theirProps:d,slot:a.value,attrs:t,slots:n,name:l})}}});function hj(e){let t=Wr(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 Uh=new WeakMap;function mj(e){var t;return(t=Uh.get(e))!=null?t:0}function F_(e,t){let n=t(mj(e));return n<=0?Uh.delete(e):Uh.set(e,n),n}let g$=ve({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=ce(()=>Wr(r)),s=cj(),l=Rt(y$,null),a=_e(s===!0||l==null?hj(r.value):l.resolveTarget());a.value&&F_(a.value,g=>g+1);let c=_e(!1);vt(()=>{c.value=!0}),jt(()=>{s||l!=null&&(a.value=l.resolveTarget())});let d=Rt(jh,null),p=!1,h=Xo();return Ft(r,()=>{if(p||!d)return;let g=ue(r);g&&(Qt(d.register(g),h),p=!0)}),Qt(()=>{var g,y;let _=(g=o.value)==null?void 0:g.getElementById("headlessui-portal-root");!_||a.value!==_||F_(a.value,S=>S-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let g={ref:r,"data-headlessui-portal":""};return dt(aw,{to:a.value},Et({ourProps:g,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),jh=Symbol("PortalParentContext");function v$(){let e=Rt(jh,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 Zt(jh,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let y$=Symbol("PortalGroupContext"),gj=ve({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=xi({resolveTarget(){return e.target}});return Zt(y$,r),()=>{let{target:o,...s}=e;return Et({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var vj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(vj||{});let Hh=Symbol("DialogContext");function Ha(e){let t=Rt(Hh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ha),n}return t}let Qu="DC8F892D-2EBD-447C-A4C8-A03058436FF4",yj=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:Qu},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);vt(()=>{c.value=!0});let d=!1,p=ce(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(d||(d=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=_e(0),g=ms(),y=ce(()=>e.open===Qu&&g!==null?(g.value&It.Open)===It.Open:e.open),_=_e(null),S=ce(()=>Wr(_));if(o({el:_,$el:_}),!(e.open!==Qu||g!==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===Qu?void 0:e.open}`);let C=ce(()=>c.value&&y.value?0:1),T=ce(()=>C.value===0),w=ce(()=>h.value>1),E=Rt(Hh,null)!==null,[O,x]=v$(),{resolveContainers:I,mainTreeNodeRef:k,MainTreeNode:P}=d$({portals:O,defaultContainers:[ce(()=>{var Le;return(Le=Ae.panelRef.value)!=null?Le:_.value})]}),H=ce(()=>w.value?"parent":"leaf"),D=ce(()=>g!==null?(g.value&It.Closing)===It.Closing:!1),F=ce(()=>E||D.value?!1:T.value),z=ce(()=>{var Le,Ge,Q;return(Q=Array.from((Ge=(Le=S.value)==null?void 0:Le.querySelectorAll("body > *"))!=null?Ge:[]).find(ae=>ae.id==="headlessui-portal-root"?!1:ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});D_(z,F);let G=ce(()=>w.value?!0:T.value),te=ce(()=>{var Le,Ge,Q;return(Q=Array.from((Ge=(Le=S.value)==null?void 0:Le.querySelectorAll("[data-headlessui-portal]"))!=null?Ge:[]).find(ae=>ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});D_(te,G),fj({type:"Dialog",enabled:ce(()=>C.value===0),element:_,onUpdate:(Le,Ge)=>{if(Ge==="Dialog")return Tt(Le,{[Bh.Add]:()=>h.value+=1,[Bh.Remove]:()=>h.value-=1})}});let we=m$({name:"DialogDescription",slot:ce(()=>({open:y.value}))}),be=_e(null),Ae={titleId:be,panelRef:_e(null),dialogState:C,setTitleId(Le){be.value!==Le&&(be.value=Le)},close(){t("close",!1)}};Zt(Hh,Ae);let Pe=ce(()=>!(!T.value||w.value));zd(I,(Le,Ge)=>{Le.preventDefault(),Ae.close(),rn(()=>Ge==null?void 0:Ge.focus())},Pe);let Ye=ce(()=>!(w.value||C.value!==0));Hg((l=S.value)==null?void 0:l.defaultView,"keydown",Le=>{Ye.value&&(Le.defaultPrevented||Le.key===lt.Escape&&(Le.preventDefault(),Le.stopPropagation(),Ae.close()))});let ft=ce(()=>!(D.value||C.value!==0||E));return aj(S,ft,Le=>{var Ge;return{containers:[...(Ge=Le.containers)!=null?Ge:[],I]}}),jt(Le=>{if(C.value!==0)return;let Ge=ue(_);if(!Ge)return;let Q=new ResizeObserver(ae=>{for(let fe of ae){let $e=fe.target.getBoundingClientRect();$e.x===0&&$e.y===0&&$e.width===0&&$e.height===0&&Ae.close()}});Q.observe(Ge),Le(()=>Q.disconnect())}),()=>{let{open:Le,initialFocus:Ge,...Q}=e,ae={...n,ref:_,id:a,role:p.value,"aria-modal":C.value===0?!0:void 0,"aria-labelledby":be.value,"aria-describedby":we.value},fe={open:C.value===0};return dt(Fh,{force:!0},()=>[dt(g$,()=>dt(gj,{target:_.value},()=>dt(Fh,{force:!1},()=>dt(Nl,{initialFocus:Ge,containers:I,features:T.value?Tt(H.value,{parent:Nl.features.RestoreFocus,leaf:Nl.features.All&~Nl.features.FocusLock}):Nl.features.None},()=>dt(x,{},()=>Et({ourProps:ae,theirProps:{...Q,...n},slot:fe,attrs:n,slots:r,visible:C.value===0,features:sr.RenderStrategy|sr.Static,name:"Dialog"})))))),dt(P)])}}}),bj=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=Ha("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),s.close())}return()=>{let{...a}=e;return Et({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=Ha("DialogBackdrop"),a=_e(null);return r({el:a,$el:a}),vt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,d={id:s,ref:a,"aria-hidden":!0};return dt(Fh,{force:!0},()=>dt(g$,()=>Et({ourProps:d,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=Ha("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,d={id:s,ref:l.panelRef,onClick:a};return Et({ourProps:d,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let _j=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=Ha("DialogTitle");return vt(()=>{s.setTitleId(o),Qt(()=>s.setTitleId(null))}),()=>{let{...l}=e;return Et({ourProps:{id:o},theirProps:l,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),B_=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function U_(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 B_.test(l)&&(l=l.replace(B_,"")),l}function wj(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():U_(s).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return U_(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=wj(r).trim().toLowerCase();return t.value=o,n.value=s,s}}function Ej(e,t){return e===t}var xj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(xj||{}),$j=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))($j||{}),Cj=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Cj||{});function Tj(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let b$=Symbol("ListboxContext");function Va(e){let t=Rt(b$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Va),n}return t}let Wg=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:()=>Ej},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([]),d=_e(""),p=_e(null),h=_e(1);function g(E=O=>O){let O=p.value!==null?c.value[p.value]:null,x=Bg(E(c.value.slice()),k=>ue(k.dataRef.domRef)),I=O?x.indexOf(O):null;return I===-1&&(I=null),{options:x,activeOptionIndex:I}}let y=ce(()=>e.multiple?1:0),[_,S]=Mg(ce(()=>e.modelValue),E=>r("update:modelValue",E),ce(()=>e.defaultValue)),C=ce(()=>_.value===void 0?Tt(y.value,{1:[],0:void 0}):_.value),T={listboxState:o,value:C,mode:y,compare(E,O){if(typeof e.by=="string"){let x=e.by;return(E==null?void 0:E[x])===(O==null?void 0:O[x])}return e.by(E,O)},orientation:ce(()=>e.horizontal?"horizontal":"vertical"),labelRef:s,buttonRef:l,optionsRef:a,disabled:ce(()=>e.disabled),options:c,searchQuery:d,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,O,x){if(e.disabled||o.value===1)return;let I=g(),k=Dh(E===$t.Specific?{focus:$t.Specific,id:O}:{focus:E},{resolveItems:()=>I.options,resolveActiveIndex:()=>I.activeOptionIndex,resolveId:P=>P.id,resolveDisabled:P=>P.dataRef.disabled});d.value="",p.value=k,h.value=x??1,c.value=I.options},search(E){if(e.disabled||o.value===1)return;let O=d.value!==""?0:1;d.value+=E.toLowerCase();let x=(p.value!==null?c.value.slice(p.value+O).concat(c.value.slice(0,p.value+O)):c.value).find(k=>k.dataRef.textValue.startsWith(d.value)&&!k.dataRef.disabled),I=x?c.value.indexOf(x):-1;I===-1||I===p.value||(p.value=I,h.value=1)},clearSearch(){e.disabled||o.value!==1&&d.value!==""&&(d.value="")},registerOption(E,O){let x=g(I=>[...I,{id:E,dataRef:O}]);c.value=x.options,p.value=x.activeOptionIndex},unregisterOption(E){let O=g(x=>{let I=x.findIndex(k=>k.id===E);return I!==-1&&x.splice(I,1),x});c.value=O.options,p.value=O.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||S(E)},select(E){e.disabled||S(Tt(y.value,{0:()=>E,1:()=>{let O=Ue(T.value.value).slice(),x=Ue(E),I=O.findIndex(k=>T.compare(x,Ue(k)));return I===-1?O.push(x):O.splice(I,1),O}}))}};zd([l,a],(E,O)=>{var x;T.closeListbox(),Fg(O,Wd.Loose)||(E.preventDefault(),(x=ue(l))==null||x.focus())},ce(()=>o.value===0)),Zt(b$,T),Kd(ce(()=>Tt(o.value,{0:It.Open,1:It.Closed})));let w=ce(()=>{var E;return(E=ue(l))==null?void 0:E.closest("form")});return vt(()=>{Ft([w],()=>{if(!w.value||e.defaultValue===void 0)return;function E(){T.theirOnChange(e.defaultValue)}return w.value.addEventListener("reset",E),()=>{var O;(O=w.value)==null||O.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:O,disabled:x,form:I,...k}=e,P={open:o.value===0,disabled:x,value:C.value};return dt(Fe,[...E!=null&&C.value!=null?jg({[E]:C.value}).map(([H,D])=>dt(_o,Ug({features:to.Hidden,key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:I,disabled:x,name:H,value:D}))):[],Et({ourProps:{},theirProps:{...n,...hs(k,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:P,slots:t,attrs:n,name:"Listbox"})])}}}),zg=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=Va("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,d={id:o,ref:s.labelRef,onClick:l};return Et({ourProps:d,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),qg=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=Va("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 g;(g=ue(l.optionsRef))==null||g.focus({preventScroll:!0}),l.value.value||l.goToOption($t.First)});break;case lt.ArrowUp:h.preventDefault(),l.openListbox(),rn(()=>{var g;(g=ue(l.optionsRef))==null||g.focus({preventScroll:!0}),l.value.value||l.goToOption($t.Last)});break}}function c(h){switch(h.key){case lt.Space:h.preventDefault();break}}function d(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),Tj(()=>{var g;return(g=ue(l.optionsRef))==null?void 0:g.focus({preventScroll:!0})})))}let p=qd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,g;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{..._}=e,S={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?[(g=ue(l.labelRef))==null?void 0:g.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:d};return Et({ourProps:S,theirProps:_,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),Kg=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=Va("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 g=l.options.value[l.activeOptionIndex.value];l.select(g.dataRef.value)}l.mode.value===0&&(l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.focus({preventScroll:!0})}));break;case Tt(l.orientation.value,{vertical:lt.ArrowDown,horizontal:lt.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Next);case Tt(l.orientation.value,{vertical:lt.ArrowUp,horizontal:lt.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Previous);case lt.Home:case lt.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption($t.First);case lt.End:case lt.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption($t.Last);case lt.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),rn(()=>{var g;return(g=ue(l.buttonRef))==null?void 0:g.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 d=ms(),p=ce(()=>d!==null?(d.value&It.Open)===It.Open:l.listboxState.value===0);return()=>{var h,g;let y={open:l.listboxState.value===0},{..._}=e,S={"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":(g=ue(l.buttonRef))==null?void 0:g.id,"aria-orientation":l.orientation.value,id:s,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return Et({ourProps:S,theirProps:_,slot:y,attrs:t,slots:n,features:sr.RenderStrategy|sr.Static,visible:p.value,name:"ListboxOptions"})}}}),Gg=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=Va("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),d=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 O=Ue(l.value.value);return((E=l.options.value.find(x=>O.some(I=>l.compare(Ue(I),Ue(x.dataRef.value)))))==null?void 0:E.id)===s},0:()=>d.value})),h=Sj(a),g=ce(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));vt(()=>l.registerOption(s,g)),Qt(()=>l.unregisterOption(s)),vt(()=>{Ft([l.listboxState,d],()=>{l.listboxState.value===0&&d.value&&Tt(l.mode.value,{1:()=>{p.value&&l.goToOption($t.Specific,s)},0:()=>{l.goToOption($t.Specific,s)}})},{immediate:!0})}),jt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&rn(()=>{var E,O;return(O=(E=ue(a))==null?void 0:E.scrollIntoView)==null?void 0:O.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 O;return(O=ue(l.buttonRef))==null?void 0:O.focus({preventScroll:!0})}))}function _(){if(e.disabled)return l.goToOption($t.Nothing);l.goToOption($t.Specific,s)}let S=Gx();function C(E){S.update(E)}function T(E){S.wasMoved(E)&&(e.disabled||c.value||l.goToOption($t.Specific,s,0))}function w(E){S.wasMoved(E)&&(e.disabled||c.value&&l.goToOption($t.Nothing))}return()=>{let{disabled:E}=e,O={active:c.value,selected:d.value,disabled:E},{value:x,disabled:I,...k}=e,P={id:s,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:y,onFocus:_,onPointerenter:C,onMouseenter:C,onPointermove:T,onMousemove:T,onPointerleave:w,onMouseleave:w};return Et({ourProps:P,theirProps:k,slot:O,attrs:n,slots:t,name:"ListboxOption"})}}});var Oj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Oj||{});let _$=Symbol("PopoverContext");function Gd(e){let t=Rt(_$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${x$.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Gd),n}return t}let w$=Symbol("PopoverGroupContext");function S$(){return Rt(w$,null)}let E$=Symbol("PopoverPanelContext");function Aj(){return Rt(E$,null)}let x$=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),d=_e(null),p=_e(null),h=ce(()=>Wr(s)),g=ce(()=>{var x,I;if(!ue(a)||!ue(p))return!1;for(let G of document.querySelectorAll("body > *"))if(Number(G==null?void 0:G.contains(ue(a)))^Number(G==null?void 0:G.contains(ue(p))))return!0;let k=Vd(),P=k.indexOf(ue(a)),H=(P+k.length-1)%k.length,D=(P+1)%k.length,F=k[H],z=k[D];return!((x=ue(p))!=null&&x.contains(F))&&!((I=ue(p))!=null&&I.contains(z))}),y={popoverState:l,buttonId:_e(null),panelId:_e(null),panel:p,button:a,isPortalled:g,beforePanelSentinel:c,afterPanelSentinel:d,togglePopover(){l.value=Tt(l.value,{0:1,1:0})},closePopover(){l.value!==1&&(l.value=1)},close(x){y.closePopover();let I=x?x instanceof HTMLElement?x:x.value instanceof HTMLElement?ue(x):ue(y.button):ue(y.button);I==null||I.focus()}};Zt(_$,y),Kd(ce(()=>Tt(l.value,{0:It.Open,1:It.Closed})));let _={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},S=S$(),C=S==null?void 0:S.registerPopover,[T,w]=v$(),E=d$({mainTreeNodeRef:S==null?void 0:S.mainTreeNodeRef,portals:T,defaultContainers:[a,p]});function O(){var x,I,k,P;return(P=S==null?void 0:S.isFocusWithinPopoverGroup())!=null?P:((x=h.value)==null?void 0:x.activeElement)&&(((I=ue(a))==null?void 0:I.contains(h.value.activeElement))||((k=ue(p))==null?void 0:k.contains(h.value.activeElement)))}return jt(()=>C==null?void 0:C(_)),Hg((o=h.value)==null?void 0:o.defaultView,"focus",x=>{var I,k;x.target!==window&&x.target instanceof HTMLElement&&l.value===0&&(O()||a&&p&&(E.contains(x.target)||(I=ue(y.beforePanelSentinel))!=null&&I.contains(x.target)||(k=ue(y.afterPanelSentinel))!=null&&k.contains(x.target)||y.closePopover()))},!0),zd(E.resolveContainers,(x,I)=>{var k;y.closePopover(),Fg(I,Wd.Loose)||(x.preventDefault(),(k=ue(a))==null||k.focus())},ce(()=>l.value===0)),()=>{let x={open:l.value===0,close:y.close};return dt(Fe,[dt(w,{},()=>Et({theirProps:{...e,...n},ourProps:{ref:s},slot:x,slots:t,attrs:n,name:"Popover"})),dt(E.MainTreeNode)])}}}),Pj=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=Gd("PopoverButton"),a=ce(()=>Wr(l.button));r({el:l.button,$el:l.button}),vt(()=>{l.buttonId.value=s}),Qt(()=>{l.buttonId.value=null});let c=S$(),d=c==null?void 0:c.closeOthers,p=Aj(),h=ce(()=>p===null?!1:p.value===l.panelId.value),g=_e(null),y=`headlessui-focus-sentinel-${zt()}`;h.value||jt(()=>{l.button.value=ue(g)});let _=qd(ce(()=>({as:e.as,type:t.type})),g);function S(x){var I,k,P,H,D;if(h.value){if(l.popoverState.value===1)return;switch(x.key){case lt.Space:case lt.Enter:x.preventDefault(),(k=(I=x.target).click)==null||k.call(I),l.closePopover(),(P=ue(l.button))==null||P.focus();break}}else switch(x.key){case lt.Space:case lt.Enter:x.preventDefault(),x.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover();break;case lt.Escape:if(l.popoverState.value!==0)return d==null?void 0:d(l.buttonId.value);if(!ue(l.button)||(H=a.value)!=null&&H.activeElement&&!((D=ue(l.button))!=null&&D.contains(a.value.activeElement)))return;x.preventDefault(),x.stopPropagation(),l.closePopover();break}}function C(x){h.value||x.key===lt.Space&&x.preventDefault()}function T(x){var I,k;e.disabled||(h.value?(l.closePopover(),(I=ue(l.button))==null||I.focus()):(x.preventDefault(),x.stopPropagation(),l.popoverState.value===1&&(d==null||d(l.buttonId.value)),l.togglePopover(),(k=ue(l.button))==null||k.focus()))}function w(x){x.preventDefault(),x.stopPropagation()}let E=Vg();function O(){let x=ue(l.panel);if(!x)return;function I(){Tt(E.value,{[mr.Forwards]:()=>Yr(x,In.First),[mr.Backwards]:()=>Yr(x,In.Last)})===ba.Error&&Yr(Vd().filter(k=>k.dataset.headlessuiFocusGuard!=="true"),Tt(E.value,{[mr.Forwards]:In.Next,[mr.Backwards]:In.Previous}),{relativeTo:ue(l.button)})}I()}return()=>{let x=l.popoverState.value===0,I={open:x},{...k}=e,P=h.value?{ref:g,type:_.value,onKeydown:S,onClick:T}:{ref:g,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:S,onKeyup:C,onClick:T,onMousedown:w};return dt(Fe,[Et({ourProps:P,theirProps:{...t,...k},slot:I,attrs:t,slots:n,name:"PopoverButton"}),x&&!h.value&&l.isPortalled.value&&dt(_o,{id:y,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])}}});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=Gd("PopoverOverlay"),o=`headlessui-popover-overlay-${zt()}`,s=ms(),l=ce(()=>s!==null?(s.value&It.Open)===It.Open:r.popoverState.value===0);function a(){r.closePopover()}return()=>{let c={open:r.popoverState.value===0};return Et({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:sr.RenderStrategy|sr.Static,visible:l.value,name:"PopoverOverlay"})}}});let Ij=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=Gd("PopoverPanel"),c=ce(()=>Wr(a.panel)),d=`headlessui-focus-sentinel-before-${zt()}`,p=`headlessui-focus-sentinel-after-${zt()}`;r({el:a.panel,$el:a.panel}),vt(()=>{a.panelId.value=s}),Qt(()=>{a.panelId.value=null}),Zt(E$,a.panelId),jt(()=>{var w,E;if(!l||a.popoverState.value!==0||!a.panel)return;let O=(w=c.value)==null?void 0:w.activeElement;(E=ue(a.panel))!=null&&E.contains(O)||Yr(ue(a.panel),In.First)});let h=ms(),g=ce(()=>h!==null?(h.value&It.Open)===It.Open:a.popoverState.value===0);function y(w){var E,O;switch(w.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;w.preventDefault(),w.stopPropagation(),a.closePopover(),(O=ue(a.button))==null||O.focus();break}}function _(w){var E,O,x,I,k;let P=w.relatedTarget;P&&ue(a.panel)&&((E=ue(a.panel))!=null&&E.contains(P)||(a.closePopover(),((x=(O=ue(a.beforePanelSentinel))==null?void 0:O.contains)!=null&&x.call(O,P)||(k=(I=ue(a.afterPanelSentinel))==null?void 0:I.contains)!=null&&k.call(I,P))&&P.focus({preventScroll:!0})))}let S=Vg();function C(){let w=ue(a.panel);if(!w)return;function E(){Tt(S.value,{[mr.Forwards]:()=>{var O;Yr(w,In.First)===ba.Error&&((O=ue(a.afterPanelSentinel))==null||O.focus())},[mr.Backwards]:()=>{var O;(O=ue(a.button))==null||O.focus({preventScroll:!0})}})}E()}function T(){let w=ue(a.panel);if(!w)return;function E(){Tt(S.value,{[mr.Forwards]:()=>{let O=ue(a.button),x=ue(a.panel);if(!O)return;let I=Vd(),k=I.indexOf(O),P=I.slice(0,k+1),H=[...I.slice(k+1),...P];for(let D of H.slice())if(D.dataset.headlessuiFocusGuard==="true"||x!=null&&x.contains(D)){let F=H.indexOf(D);F!==-1&&H.splice(F,1)}Yr(H,In.First,{sorted:!1})},[mr.Backwards]:()=>{var O;Yr(w,In.Previous)===ba.Error&&((O=ue(a.button))==null||O.focus())}})}E()}return()=>{let w={open:a.popoverState.value===0,close:a.close},{focus:E,...O}=e,x={ref:a.panel,id:s,onKeydown:y,onFocusout:l&&a.popoverState.value===0?_:void 0,tabIndex:-1};return Et({ourProps:x,theirProps:{...t,...O},attrs:t,slot:w,slots:{...n,default:(...I)=>{var k;return[dt(Fe,[g.value&&a.isPortalled.value&&dt(_o,{id:d,ref:a.beforePanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:C}),(k=n.default)==null?void 0:k.call(n,...I),g.value&&a.isPortalled.value&&dt(_o,{id:p,ref:a.afterPanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T})])]}},features:sr.RenderStrategy|sr.Static,visible:g.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=sd([]),l=ce(()=>Wr(o)),a=uj();r({el:o,$el:o});function c(g){let y=s.value.indexOf(g);y!==-1&&s.value.splice(y,1)}function d(g){return s.value.push(g),()=>{c(g)}}function p(){var g;let y=l.value;if(!y)return!1;let _=y.activeElement;return(g=ue(o))!=null&&g.contains(_)?!0:s.value.some(S=>{var C,T;return((C=y.getElementById(S.buttonId.value))==null?void 0:C.contains(_))||((T=y.getElementById(S.panelId.value))==null?void 0:T.contains(_))})}function h(g){for(let y of s.value)y.buttonId.value!==g&&y.close()}return Zt(w$,{registerPopover:d,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>dt(Fe,[Et({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),dt(a.MainTreeNode)])}});let $$=Symbol("LabelContext");function C$(){let e=Rt($$,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,C$),t}return e}function kj({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 Zt($$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let Rj=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=C$();return vt(()=>Qt(s.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=s,{passive:d,...p}=e,h={...Object.entries(c).reduce((g,[y,_])=>Object.assign(g,{[y]:Hn(_)}),{}),id:o};return d&&(delete h.onClick,delete h.htmlFor,delete p.onClick),Et({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),T$=Symbol("GroupContext"),Lj=ve({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=kj({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=m$({name:"SwitchDescription"});return Zt(T$,{switchRef:r,labelledby:o,describedby:s}),()=>Et({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),Nj=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=Rt(T$,null),[c,d]=Mg(ce(()=>e.modelValue),w=>t("update:modelValue",w),ce(()=>e.defaultChecked));function p(){d(!c.value)}let h=_e(null),g=a===null?h:a.switchRef,y=qd(ce(()=>({as:e.as,type:n.type})),g);o({el:g,$el:g});function _(w){w.preventDefault(),p()}function S(w){w.key===lt.Space?(w.preventDefault(),p()):w.key===lt.Enter&&WU(w.currentTarget)}function C(w){w.preventDefault()}let T=ce(()=>{var w,E;return(E=(w=ue(g))==null?void 0:w.closest)==null?void 0:E.call(w,"form")});return vt(()=>{Ft([T],()=>{if(!T.value||e.defaultChecked===void 0)return;function w(){d(e.defaultChecked)}return T.value.addEventListener("reset",w),()=>{var E;(E=T.value)==null||E.removeEventListener("reset",w)}},{immediate:!0})}),()=>{let{name:w,value:E,form:O,tabIndex:x,...I}=e,k={checked:c.value},P={id:l,ref:g,role:"switch",type:y.value,tabIndex:x===-1?0:x,"aria-checked":c.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:_,onKeyup:S,onKeypress:C};return dt(Fe,[w!=null&&c.value!=null?dt(_o,Ug({features:to.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:O,disabled:I.disabled,name:w,value:E})):null,Et({ourProps:P,theirProps:{...n,...hs(I,["modelValue","defaultChecked"])},slot:k,attrs:n,slots:r,name:"Switch"})])}}}),Mj=Rj;function Dj(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Vp(e,...t){e&&t.length>0&&e.classList.add(...t)}function ec(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Vh=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Vh||{});function Fj(e,t){let n=Ei();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(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,p)=>p-d);return c});return s!==0?n.setTimeout(()=>t("finished"),s+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function j_(e,t,n,r,o,s){let l=Ei(),a=s!==void 0?Dj(s):()=>{};return ec(e,...o),Vp(e,...t,...n),l.nextFrame(()=>{ec(e,...n),Vp(e,...r),l.add(Fj(e,c=>(ec(e,...r,...t),Vp(e,...o),a(c))))}),l.add(()=>ec(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function ji(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Xg=Symbol("TransitionContext");var Bj=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Bj||{});function Uj(){return Rt(Xg,null)!==null}function jj(){let e=Rt(Xg,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Hj(){let e=Rt(Jg,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Jg=Symbol("NestingContext");function Xd(e){return"children"in e?Xd(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function O$(e){let t=_e([]),n=_e(!1);vt(()=>n.value=!0),Qt(()=>n.value=!1);function r(s,l=hi.Hidden){let a=t.value.findIndex(({id:c})=>c===s);a!==-1&&(Tt(l,{[hi.Unmount](){t.value.splice(a,1)},[hi.Hidden](){t.value[a].state="hidden"}}),!Xd(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,hi.Unmount)}return{children:t,register:o,unregister:r}}let A$=sr.RenderStrategy,P$=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|=It.Opening,t("beforeEnter")}function a(){s.value&=~It.Opening,t("afterEnter")}function c(){s.value|=It.Closing,t("beforeLeave")}function d(){s.value&=~It.Closing,t("afterLeave")}if(!Uj()&&jU())return()=>dt(I$,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:d},r);let p=_e(null),h=ce(()=>e.unmount?hi.Unmount:hi.Hidden);o({el:p,$el:p});let{show:g,appear:y}=jj(),{register:_,unregister:S}=Hj(),C=_e(g.value?"visible":"hidden"),T={value:!0},w=zt(),E={value:!1},O=O$(()=>{!E.value&&C.value!=="hidden"&&(C.value="hidden",S(w),d())});vt(()=>{let G=_(w);Qt(G)}),jt(()=>{if(h.value===hi.Hidden&&w){if(g.value&&C.value!=="visible"){C.value="visible";return}Tt(C.value,{hidden:()=>S(w),visible:()=>_(w)})}});let x=ji(e.enter),I=ji(e.enterFrom),k=ji(e.enterTo),P=ji(e.entered),H=ji(e.leave),D=ji(e.leaveFrom),F=ji(e.leaveTo);vt(()=>{jt(()=>{if(C.value==="visible"){let G=ue(p);if(G instanceof Comment&&G.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function z(G){let te=T.value&&!y.value,we=ue(p);!we||!(we instanceof HTMLElement)||te||(E.value=!0,g.value&&l(),g.value||c(),G(g.value?j_(we,x,I,k,P,be=>{E.value=!1,be===Vh.Finished&&a()}):j_(we,H,D,F,P,be=>{E.value=!1,be===Vh.Finished&&(Xd(O)||(C.value="hidden",S(w),d()))})))}return vt(()=>{Ft([g],(G,te,we)=>{z(we),T.value=!1},{immediate:!0})}),Zt(Jg,O),Kd(ce(()=>Tt(C.value,{visible:It.Open,hidden:It.Closed})|s.value)),()=>{let{appear:G,show:te,enter:we,enterFrom:be,enterTo:Ae,entered:Pe,leave:Ye,leaveFrom:ft,leaveTo:Le,...Ge}=e,Q={ref:p},ae={...Ge,...y.value&&g.value&&ja.isServer?{class:St([n.class,Ge.class,...x,...I])}:{}};return Et({theirProps:ae,ourProps:Q,slot:{},slots:r,attrs:n,features:A$,visible:C.value==="visible",name:"TransitionChild"})}}}),Vj=P$,I$=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=ms(),s=ce(()=>e.show===null&&o!==null?(o.value&It.Open)===It.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=O$(()=>{l.value="hidden"}),c=_e(!0),d={show:s,appear:ce(()=>e.appear||!c.value)};return vt(()=>{jt(()=>{c.value=!1,s.value?l.value="visible":Xd(a)||(l.value="hidden")})}),Zt(Jg,a),Zt(Xg,d),()=>{let p=hs(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return Et({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[dt(Vj,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:A$,visible:l.value==="visible",name:"Transition"})}}});const Wj=ve({components:{Dialog:yj,DialogOverlay:bj,TransitionChild:P$,TransitionRoot:I$,XIcon:Ua},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),zj={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},qj={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Kj=v("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"​",-1),Gj={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},Xj=v("span",{class:"sr-only"},"Close",-1);function Jj(e,t,n,r,o,s){const l=J("DialogOverlay"),a=J("TransitionChild"),c=J("XIcon"),d=J("Dialog"),p=J("TransitionRoot");return N(),bt(p,{as:"template",show:e.open},{default:ye(()=>[q(d,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:ye(()=>[v("div",zj,[v("div",qj,[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}),Kj,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(()=>[v("div",{class:St(["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"}])},[v("div",Gj,[v("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())},[Xj,q(c,{class:"h-6 w-6","aria-hidden":"true"})])]),_r(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}const Wa=Be(Wj,[["render",Jj]]),Yj=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"}}}}),Zj=["disabled"];function Qj(e,t,n,r,o,s){return N(),V("button",{type:"button",class:St(["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},[_r(e.$slots,"default")],10,Zj)}const zn=Be(Yj,[["render",Qj]]),eH=ve({components:{PodloveButton:zn,Modal:Wa,PencilIcon:Hx,XIcon:Ua},setup(){return{state:yt({poster:K.episode.poster,episodePoster:K.episode.episodePoster,asset:K.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(g7())},updatePoster(e){const t=X.get(e,["target","value"],null);this.dispatch(wt({prop:"episode_poster",value:t}))}}}),tH={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},nH={class:"text-lg leading-6 font-medium text-gray-900"},rH={class:"relative"},oH=["value"],iH=["title"],sH={class:"mt-2 text-sm text-gray-500"},lH={class:"mt-2 flex justify-end"},aH={class:"block text-sm font-medium text-gray-700"},uH={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"},cH={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"},dH={class:"w-full text-center"},fH={class:"w-full text-center"},pH={class:"w-full text-center"};function hH(e,t,n,r,o,s){const l=J("x-icon"),a=J("podlove-button"),c=J("modal"),d=J("pencil-icon");return N(),V("div",null,[q(c,{size:"medium",open:e.modalOpen,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[v("div",tH,[v("h3",nH,U(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",rH,[v("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,oH),v("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,iH)]),v("p",sH,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),v("p",lH,[q(a,{variant:"primary",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[Xe(U(e.__("Use this URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"]),v("label",aH,U(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),v("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:Wo(e.posterStyle)},[e.state.asset==="manual"?(N(),V("div",uH,[q(d,{class:"h-6 w-6","aria-hidden":"true"})])):He("",!0),e.state.asset==="manual"?(N(),V("div",cH,[q(a,{onClick:t[4]||(t[4]=p=>e.openModal()),class:"w-32 mb-2"},{default:ye(()=>[v("span",dH,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(()=>[v("span",fH,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(()=>[v("span",pH,U(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):He("",!0)],4)])}const mH=Be(eH,[["render",hH]]),gH=ve({components:{Module:Mn},setup(){return{state:yt({number:K.episode.number}),dispatch:it().dispatch}},methods:{updateNumber(e){this.dispatch(wt({prop:"number",value:e.target.value}))}}}),vH={for:"episode-number",class:"block text-sm font-medium text-gray-700"},yH={class:"mt-1 mb-1"},bH=["value"],_H={class:"mt-2 text-sm text-gray-500"};function wH(e,t,n,r,o,s){return N(),V("div",null,[v("label",vH,U(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),v("div",yH,[v("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,bH)]),v("p",_H,U(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}const SH=Be(gH,[["render",wH]]),EH=ve({setup(){return{state:yt({explicit:K.episode.explicit}),dispatch:it().dispatch}},methods:{updateExplicit(e){this.dispatch(wt({prop:"explicit",value:e.target.checked}))}}}),xH={class:"relative flex items-start"},$H={class:"flex items-center h-5"},CH=["checked"],TH={class:"ml-3 text-sm"},OH={for:"explicit-content",class:"font-medium text-gray-700"},AH={class:"text-gray-500"};function PH(e,t,n,r,o,s){return N(),V("div",xH,[v("div",$H,[v("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)]),v("div",TH,[v("label",OH,U(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),v("p",AH,U(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}const IH=Be(EH,[["render",PH]]),kH=ve({components:{Module:Mn},setup(){return{state:yt({title:K.episode.title,post_title:K.post.title}),dispatch:it().dispatch}},methods:{updateTitle(e){this.dispatch(wt({prop:"title",value:e.target.value}))}}}),RH={for:"episode-title",class:"block text-sm font-medium text-gray-700"},LH={class:"mt-1"},NH=["value","placeholder"],MH={class:"mt-2 text-sm text-gray-500"};function DH(e,t,n,r,o,s){return N(),V("div",null,[v("label",RH,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),v("div",LH,[v("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,NH)]),v("p",MH,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)])}const FH=Be(kH,[["render",DH]]),BH=ve({setup(){const e=yt({subtitle:K.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(wt({prop:"subtitle",value:e.target.value}))}}}),UH={for:"subtitle",class:"block text-sm font-medium text-gray-700"},jH={class:"mt-1"},HH=["value"],VH={class:"mt-2 text-sm text-gray-500 flex justify-between"};function WH(e,t,n,r,o,s){return N(),V("div",null,[v("label",UH,U(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),v("div",jH,[v("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,HH)]),v("p",VH,[v("span",null,U(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),v("span",null,U(e.charactersLeft),1)])])}const zH=Be(BH,[["render",WH]]),qH=ve({setup(){const e=yt({summary:K.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(wt({prop:"summary",value:e.target.value}))}}}),KH={for:"summary",class:"block text-sm font-medium text-gray-700"},GH={class:"mt-1"},XH=["value"],JH={class:"mt-2 text-sm text-gray-500 flex justify-end"};function YH(e,t,n,r,o,s){return N(),V("div",null,[v("label",KH,U(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),v("div",GH,[v("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,XH)]),v("p",JH,[v("span",null,U(e.charactersLeft),1)])])}const ZH=Be(qH,[["render",YH]]),QH=ve({components:{Module:Mn},setup(){return{state:yt({type:K.episode.type}),dispatch:it().dispatch}},methods:{updateType(e){this.dispatch(wt({prop:"type",value:e.target.value}))}}}),eV={for:"episode-type",class:"block text-sm font-medium text-gray-700"},tV={class:"mt-1"},nV=["value"],rV={value:"full"},oV={value:"trailer"},iV={value:"bonus"},sV={class:"mt-2 text-sm text-gray-500"};function lV(e,t,n,r,o,s){return N(),V("div",null,[v("label",eV,U(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),v("div",tV,[v("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))},[v("option",null,U(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),v("option",rV,U(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),v("option",oV,U(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),v("option",iV,U(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,nV)]),v("p",sV,U(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}const aV=Be(QH,[["render",lV]]),uV=ve({components:{Module:Mn,EpisodePoster:mH,EpisodeNumber:SH,EpisodeContent:IH,EpisodeTitle:FH,EpisodeSubtitle:zH,EpisodeSummary:ZH,EpisodeType:aV},setup(){return{state:yt({explicitContentEnabled:K.settings.enableEpisodeExplicit}),dispatch:it().dispatch}},created(){this.dispatch(kd())}}),cV={class:"p-3"},dV={class:"flex justify-items-stretch mb-5"},fV={class:"mb-2 w-full"},pV={class:"flex mb-5"},hV={class:"mb-5"},mV={class:"mb-5"};function gV(e,t,n,r,o,s){const l=J("episode-poster"),a=J("episode-number"),c=J("episode-content"),d=J("episode-type"),p=J("episode-title"),h=J("episode-subtitle"),g=J("episode-summary"),y=J("module");return N(),bt(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[v("div",cV,[v("div",dV,[q(l,{class:"mr-5"}),v("div",fV,[v("div",pV,[q(a,{class:"w-full"}),e.state.explicitContentEnabled?(N(),bt(c,{key:0,class:"ml-5 w-full"})):He("",!0)]),q(d,{class:"w-full"})])]),v("div",hV,[q(p,{class:"w-full"})]),v("div",mV,[q(h,{class:"w-full"})]),v("div",null,[q(g,{class:"w-full"})])])]),_:1},8,["title"])}const vV=Be(uV,[["render",gV]]),yV=ve({data(){return{visible:!1}},props:{name:String},methods:{}}),bV=["data-tab"];function _V(e,t,n,r,o,s){return N(),V("div",{class:"hidden","data-tab":e.name},[_r(e.$slots,"default")],8,bV)}const k$=Be(yV,[["render",_V]]),wV=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:X.get(n,["props","name"]),title:X.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(X.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"},EV={class:"border-b border-gray-200"},xV={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},$V=["onClick"],CV={ref:"tabs"};function TV(e,t,n,r,o,s){return N(),V("div",null,[v("div",SV,[v("div",EV,[v("nav",xV,[(N(!0),V(Fe,null,Dt(e.tabs,l=>(N(),V("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:St([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"])},[v("span",null,U(l.title),1)],10,$V))),128))])])]),v("div",CV,[_r(e.$slots,"default")],512)])}const R$=Be(wV,[["render",TV]]),OV=ve({components:{PodloveButton:zn,PlusSmIcon:Ng,BookmarkAltIcon:sU,UploadIcon:oU},setup(){return{state:yt({chapters:K.chapters.list,selected:K.chapters.selected,selectedIndex:K.chapters.selectedIndex,episodeDuration:K.episode.duration}),dispatch:it().dispatch}},computed:{selectedIndex(){return this.state.selectedIndex},episodeDuration(){return this.state.episodeDuration?Mt.fromString(this.state.episodeDuration).totalMs:0},chapters(){return this.state.chapters.reduce((e,t,n,r)=>{const o=X.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 Mt(l).prettyShort;return[...e,{index:n,title:t.title,start:t.start?new Mt(t.start).pretty:new Mt(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(pi(null)):this.dispatch(pi(e))},updateChapter(e,t){const n=t.target.value;if(this.state.selectedIndex===null)return;let r;switch(e){case"start":r=Mt.fromString(n).totalMs;break;default:r=n}this.dispatch(i7({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(s7(this.state.selectedIndex))},async addChapter(){this.dispatch(l7()),this.dispatch(pi(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 Mt(e).pretty},selectImage(){this.dispatch(d7())}}}),AV={key:0},PV={class:"md:flex p-2 sm:block"},IV={class:"w-full"},kV={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},RV={class:"min-w-full divide-y divide-gray-200 mb-2"},LV={ref:"chapters"},NV=["onClick"],MV={key:0,class:"px-2 py-2 w-16"},DV=["src"],FV={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},BV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},UV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},jV={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},HV={class:"mb-5 mt-2"},VV={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},WV={class:"mt-1"},zV=["value"],qV={class:"mb-5"},KV={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},GV={class:"text-xs"},XV={class:"mt-1"},JV=["value"],YV={class:"mb-5"},ZV={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},QV={class:"mt-1"},eW=["value"],tW={class:"mb-5"},nW={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},rW={class:"text-xs"},oW={class:"mt-1 relative"},iW=["value"],sW=["title"],lW={class:"mb-5 ml-1"},aW={class:"mt-5 ml-5 pb-5"},uW={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},cW={class:"mt-2 text-sm font-medium text-gray-900"},dW={class:"mt-1 text-sm text-gray-500"},fW={class:"mt-6"};function pW(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button"),c=J("plus-sm-icon"),d=J("bookmark-alt-icon");return e.chapters.length>0?(N(),V("div",AV,[v("div",PV,[v("div",IV,[v("div",kV,[v("table",RV,[v("tbody",LV,[(N(!0),V(Fe,null,Dt(e.chapters,(p,h)=>(N(),V("tr",{onClick:g=>e.selectChapter(h),key:`chapter-${h}`,class:St(["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",MV,[p!=null&&p.image?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:p==null?void 0:p.image},null,8,DV)):He("",!0)])):He("",!0),v("td",FV,U(p.start),1),v("td",BV,U(p.title),1),v("td",UV,U(p.duration),1)],10,NV))),128))],512)])],512)]),e.state.selected?(N(),V("div",jV,[v("div",HV,[v("label",VV,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),v("div",WV,[v("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,zV)])]),v("div",qV,[v("label",KV,[Xe("Url "),v("span",GV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",XV,[v("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,JV)])]),v("div",YV,[v("label",ZV,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),v("div",QV,[v("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,eW)])]),v("div",tW,[v("label",nW,[Xe(U(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",rW,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",oW,[v("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,iW),v("button",{onClick:t[4]||(t[4]=xc(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,sW)])]),v("div",lW,[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})])])):He("",!0)]),v("div",aW,[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",uW,[q(d,{class:"mx-auto h-12 w-12 text-gray-400"}),v("h3",cW,U(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),v("p",dW,U(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),v("div",fW,[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})])]))}const hW=Be(OV,[["render",pW]]);function Wh(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 d=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 d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(a=e.apply(s,o),s=o=null,clearTimeout(r),r=null)},d}Wh.debounce=Wh;var Wp=Wh;function mW(e,t,n){dn(e)?Ft(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):vt(()=>{e.addEventListener(t,n)}),fs(()=>{var r;(r=Hn(e))===null||r===void 0||r.removeEventListener(t,n)})}function gW(e,t){const n="pointerdown";return typeof window>"u"||!window?void 0:mW(window,n,o=>{const s=Hn(e);s&&(s===o.target||o.composedPath().includes(s)||t(o))})}function vW(e,t,n){let r=null;const o=_e(!1);vt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(s),r.observe(t.value,{childList:!0,subtree:!0})}),fs(()=>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 el(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 Yg(e){var t=lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _a(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function Mr(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function L$(e){if(typeof ShadowRoot>"u")return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function yW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bW(e){return e===lo(e)||!Mr(e)?Yg(e):yW(e)}function wo(e){return e?(e.nodeName||"").toLowerCase():null}function Ti(e){return((_a(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zg(e){return el(Ti(e)).left+Yg(e).scrollLeft}function qo(e){return lo(e).getComputedStyle(e)}function Qg(e){var t=qo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function _W(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function wW(e,t,n){n===void 0&&(n=!1);var r=Mr(t);Mr(t)&&_W(t);var o=Ti(t),s=el(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((wo(t)!=="body"||Qg(o))&&(l=bW(t)),Mr(t)?(a=el(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Zg(o))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function ev(e){var t=el(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 Jd(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(L$(e)?e.host:null)||Ti(e)}function N$(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:Mr(e)&&Qg(e)?e:N$(Jd(e))}function ta(e,t){var n;t===void 0&&(t=[]);var r=N$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=lo(r),l=o?[s].concat(s.visualViewport||[],Qg(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ta(Jd(l)))}function SW(e){return["table","td","th"].indexOf(wo(e))>=0}function H_(e){return!Mr(e)||qo(e).position==="fixed"?null:e.offsetParent}function EW(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Mr(e)){var r=qo(e);if(r.position==="fixed")return null}for(var o=Jd(e);Mr(o)&&["html","body"].indexOf(wo(o))<0;){var s=qo(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=lo(e),n=H_(e);n&&SW(n)&&qo(n).position==="static";)n=H_(n);return n&&(wo(n)==="html"||wo(n)==="body"&&qo(n).position==="static")?t:n||EW(e)||t}var Dr="top",no="bottom",ro="right",Fr="left",tv="auto",qa=[Dr,no,ro,Fr],tl="start",wa="end",xW="clippingParents",M$="viewport",Dl="popper",$W="reference",V_=qa.reduce(function(e,t){return e.concat([t+"-"+tl,t+"-"+wa])},[]),D$=[].concat(qa,[tv]).reduce(function(e,t){return e.concat([t,t+"-"+tl,t+"-"+wa])},[]),CW="beforeRead",TW="read",OW="afterRead",AW="beforeMain",PW="main",IW="afterMain",kW="beforeWrite",RW="write",LW="afterWrite",NW=[CW,TW,OW,AW,PW,IW,kW,RW,LW];function MW(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 DW(e){var t=MW(e);return NW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function FW(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 BW(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 UW(e){var t=lo(e),n=Ti(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+Zg(e),y:a}}var vi=Math.max,Sa=Math.min,tc=Math.round;function jW(e){var t,n=Ti(e),r=Yg(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=vi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=vi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Zg(e),c=-r.scrollTop;return qo(o||n).direction==="rtl"&&(a+=vi(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function F$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&L$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function HW(e){var t=el(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 W_(e,t){return t===M$?zh(UW(e)):Mr(t)?HW(t):zh(jW(Ti(e)))}function VW(e){var t=ta(Jd(e)),n=["absolute","fixed"].indexOf(qo(e).position)>=0,r=n&&Mr(e)?za(e):e;return _a(r)?t.filter(function(o){return _a(o)&&F$(o,r)&&wo(o)!=="body"}):[]}function WW(e,t,n){var r=t==="clippingParents"?VW(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var d=W_(e,c);return a.top=vi(d.top,a.top),a.right=Sa(d.right,a.right),a.bottom=Sa(d.bottom,a.bottom),a.left=vi(d.left,a.left),a},W_(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 nl(e){return e.split("-")[1]}function nv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function B$(e){var t=e.reference,n=e.element,r=e.placement,o=r?yo(r):null,s=r?nl(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Dr: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 Fr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?nv(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case tl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case wa:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function U$(){return{top:0,right:0,bottom:0,left:0}}function j$(e){return Object.assign({},U$(),e)}function H$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function rv(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?xW:s,a=n.rootBoundary,c=a===void 0?M$:a,d=n.elementContext,p=d===void 0?Dl:d,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,S=j$(typeof _!="number"?_:H$(_,qa)),C=p===Dl?$W:Dl,T=e.rects.popper,w=e.elements[g?C:p],E=WW(_a(w)?w:w.contextElement||Ti(e.elements.popper),l,c),O=el(e.elements.reference),x=B$({reference:O,element:T,strategy:"absolute",placement:o}),I=zh(Object.assign({},T,x)),k=p===Dl?I:O,P={top:E.top-k.top+S.top,bottom:k.bottom-E.bottom+S.bottom,left:E.left-k.left+S.left,right:k.right-E.right+S.right},H=e.modifiersData.offset;if(p===Dl&&H){var D=H[o];Object.keys(P).forEach(function(F){var z=[ro,no].indexOf(F)>=0?1:-1,G=[Dr,no].indexOf(F)>=0?"y":"x";P[F]+=D[G]*z})}return P}var z_={placement:"bottom",modifiers:[],strategy:"absolute"};function q_(){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 zW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?z_:o;return function(a,c,d){d===void 0&&(d=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},z_,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(T){var w=typeof T=="function"?T(p.options):T;S(),p.options=Object.assign({},s,p.options,w),p.scrollParents={reference:_a(a)?ta(a):a.contextElement?ta(a.contextElement):[],popper:ta(c)};var E=DW(BW([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),_(),y.update()},forceUpdate:function(){if(!g){var T=p.elements,w=T.reference,E=T.popper;if(q_(w,E)){p.rects={reference:wW(w,za(E),p.options.strategy==="fixed"),popper:ev(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 O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var x=p.orderedModifiers[O],I=x.fn,k=x.options,P=k===void 0?{}:k,H=x.name;typeof I=="function"&&(p=I({state:p,options:P,name:H,instance:y})||p)}}}},update:FW(function(){return new Promise(function(C){y.forceUpdate(),C(p)})}),destroy:function(){S(),g=!0}};if(!q_(a,c))return y;y.setOptions(d).then(function(C){!g&&d.onFirstUpdate&&d.onFirstUpdate(C)});function _(){p.orderedModifiers.forEach(function(C){var T=C.name,w=C.options,E=w===void 0?{}:w,O=C.effect;if(typeof O=="function"){var x=O({state:p,name:T,instance:y,options:E}),I=function(){};h.push(x||I)}})}function S(){h.forEach(function(C){return C()}),h=[]}return y}}var nc={passive:!0};function qW(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),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",n.update,nc)}),a&&c.addEventListener("resize",n.update,nc),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",n.update,nc)}),a&&c.removeEventListener("resize",n.update,nc)}}var KW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qW,data:{}};function GW(e){var t=e.state,n=e.name;t.modifiersData[n]=B$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var XW={name:"popperOffsets",enabled:!0,phase:"read",fn:GW,data:{}},JW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YW(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:tc(tc(t*o)/o)||0,y:tc(tc(n*o)/o)||0}}function K_(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=p===!0?YW(l):typeof p=="function"?p(l):l,g=h.x,y=g===void 0?0:g,_=h.y,S=_===void 0?0:_,C=l.hasOwnProperty("x"),T=l.hasOwnProperty("y"),w=Fr,E=Dr,O=window;if(d){var x=za(n),I="clientHeight",k="clientWidth";x===lo(n)&&(x=Ti(n),qo(x).position!=="static"&&a==="absolute"&&(I="scrollHeight",k="scrollWidth")),x=x,(o===Dr||(o===Fr||o===ro)&&s===wa)&&(E=no,S-=x[I]-r.height,S*=c?1:-1),(o===Fr||(o===Dr||o===no)&&s===wa)&&(w=ro,y-=x[k]-r.width,y*=c?1:-1)}var P=Object.assign({position:a},d&&JW);if(c){var H;return Object.assign({},P,(H={},H[E]=T?"0":"",H[w]=C?"0":"",H.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",H))}return Object.assign({},P,(t={},t[E]=T?S+"px":"",t[w]=C?y+"px":"",t.transform="",t))}function ZW(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,d={placement:yo(t.placement),variation:nl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,K_(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,K_(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var QW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ZW,data:{}};function ez(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)||!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 tz(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,d){return c[d]="",c},{});!Mr(o)||!wo(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var nz={name:"applyStyles",enabled:!0,phase:"write",fn:ez,effect:tz,requires:["computeStyles"]},rz=[KW,XW,QW,nz],oz=zW({defaultModifiers:rz});function iz(e){return e==="x"?"y":"x"}function hc(e,t,n){return vi(e,Sa(t,n))}function sz(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,d=n.rootBoundary,p=n.altBoundary,h=n.padding,g=n.tether,y=g===void 0?!0:g,_=n.tetherOffset,S=_===void 0?0:_,C=rv(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),T=yo(t.placement),w=nl(t.placement),E=!w,O=nv(T),x=iz(O),I=t.modifiersData.popperOffsets,k=t.rects.reference,P=t.rects.popper,H=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,D={x:0,y:0};if(I){if(s||a){var F=O==="y"?Dr:Fr,z=O==="y"?no:ro,G=O==="y"?"height":"width",te=I[O],we=I[O]+C[F],be=I[O]-C[z],Ae=y?-P[G]/2:0,Pe=w===tl?k[G]:P[G],Ye=w===tl?-P[G]:-k[G],ft=t.elements.arrow,Le=y&&ft?ev(ft):{width:0,height:0},Ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:U$(),Q=Ge[F],ae=Ge[z],fe=hc(0,k[G],Le[G]),$e=E?k[G]/2-Ae-fe-Q-H:Pe-fe-Q-H,Ve=E?-k[G]/2+Ae+fe+ae+H:Ye+fe+ae+H,De=t.elements.arrow&&za(t.elements.arrow),tt=De?O==="y"?De.clientTop||0:De.clientLeft||0:0,gn=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,ln=I[O]+$e-gn-tt,L=I[O]+Ve-gn;if(s){var B=hc(y?Sa(we,ln):we,te,y?vi(be,L):be);I[O]=B,D[O]=B-te}if(a){var Z=O==="x"?Dr:Fr,le=O==="x"?no:ro,ie=I[x],pe=ie+C[Z],Ce=ie-C[le],me=hc(y?Sa(pe,ln):pe,ie,y?vi(Ce,L):Ce);I[x]=me,D[x]=me-ie}}t.modifiersData[r]=D}}var lz={name:"preventOverflow",enabled:!0,phase:"main",fn:sz,requiresIfExists:["offset"]},az={left:"right",right:"left",bottom:"top",top:"bottom"};function mc(e){return e.replace(/left|right|bottom|top/g,function(t){return az[t]})}var uz={start:"end",end:"start"};function G_(e){return e.replace(/start|end/g,function(t){return uz[t]})}function cz(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,d=c===void 0?D$:c,p=nl(r),h=p?a?V_:V_.filter(function(_){return nl(_)===p}):qa,g=h.filter(function(_){return d.indexOf(_)>=0});g.length===0&&(g=h);var y=g.reduce(function(_,S){return _[S]=rv(e,{placement:S,boundary:o,rootBoundary:s,padding:l})[yo(S)],_},{});return Object.keys(y).sort(function(_,S){return y[_]-y[S]})}function dz(e){if(yo(e)===tv)return[];var t=mc(e);return[G_(e),t,G_(t)]}function fz(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,d=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,S=n.allowedAutoPlacements,C=t.options.placement,T=yo(C),w=T===C,E=c||(w||!_?[mc(C)]:dz(C)),O=[C].concat(E).reduce(function(ae,fe){return ae.concat(yo(fe)===tv?cz(t,{placement:fe,boundary:p,rootBoundary:h,padding:d,flipVariations:_,allowedAutoPlacements:S}):fe)},[]),x=t.rects.reference,I=t.rects.popper,k=new Map,P=!0,H=O[0],D=0;D<O.length;D++){var F=O[D],z=yo(F),G=nl(F)===tl,te=[Dr,no].indexOf(z)>=0,we=te?"width":"height",be=rv(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),Ae=te?G?ro:Fr:G?no:Dr;x[we]>I[we]&&(Ae=mc(Ae));var Pe=mc(Ae),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Ae]<=0,be[Pe]<=0),Ye.every(function(ae){return ae})){H=F,P=!1;break}k.set(F,Ye)}if(P)for(var ft=_?3:1,Le=function(fe){var $e=O.find(function(Ve){var De=k.get(Ve);if(De)return De.slice(0,fe).every(function(tt){return tt})});if($e)return H=$e,"break"},Ge=ft;Ge>0;Ge--){var Q=Le(Ge);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var pz={name:"flip",enabled:!0,phase:"main",fn:fz,requiresIfExists:["offset"],data:{_skip:!1}};function hz(e,t,n){var r=yo(e),o=[Fr,Dr].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,[Fr,ro].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function mz(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=D$.reduce(function(p,h){return p[h]=hz(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}var gz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mz},vz=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,j$(typeof t!="number"?t:H$(t,qa))};function yz(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=nv(a),d=[Fr,ro].indexOf(a)>=0,p=d?"height":"width";if(!(!s||!l)){var h=vz(o.padding,n),g=ev(s),y=c==="y"?Dr:Fr,_=c==="y"?no:ro,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],C=l[c]-n.rects.reference[c],T=za(s),w=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,E=S/2-C/2,O=h[y],x=w-g[p]-h[_],I=w/2-g[p]/2+E,k=hc(O,I,x),P=c;n.modifiersData[r]=(t={},t[P]=k,t.centerOffset=k-I,t)}}function bz(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)||F$(t.elements.popper,o)&&(t.elements.arrow=o))}var _z={name:"arrow",enabled:!0,phase:"main",fn:yz,effect:bz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const zp=e=>parseInt(e,10);function wz({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:s,popperNode:l,triggerNode:a}){const c=xi({isOpen:!1,popperInstance:null}),d=S=>{var C;(C=c.popperInstance)===null||C===void 0||C.setOptions(T=>({...T,modifiers:[...T.modifiers,{name:"eventListeners",enabled:S}]}))},p=()=>d(!0),h=()=>d(!1),g=()=>{c.isOpen&&(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ft([()=>c.isOpen,s],async([S])=>{S?(await _(),p()):h()});const _=async()=>{await rn(),c.popperInstance=oz(a.value,l.value,{placement:s.value,modifiers:[lz,pz,{name:"flip",enabled:!n.value},_z,{name:"arrow",options:{padding:zp(e.value)}},gz,{name:"offset",options:{offset:[zp(o.value),zp(r.value)]}}]}),c.popperInstance.update()};return fs(()=>{var S;(S=c.popperInstance)===null||S===void 0||S.destroy()}),{...lm(c),open:y,close:g}}const Sz={id:"arrow","data-popper-arrow":""};function Ez(e,t){return N(),V("div",Sz)}function V$(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){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 xz=`
    6262#arrow[data-v-20b7fd4a],
    6363  #arrow[data-v-20b7fd4a]::before {
     
    115115    left: -5px;
    116116}
    117 `;U$(pz);const rv={};rv.render=fz;rv.__scopeId="data-v-20b7fd4a";var hz=rv;const mz=["onKeyup"];var j$={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(Ie=>({c81fc0a4:e.zIndex}));const r=_w(),o=_e(null),s=_e(null),l=_e(null),a=_e(!1);vt(()=>{const Ie=r.default();if(Ie&&Ie.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Ie.length} child nodes.`)});const{arrowPadding:c,closeDelay:d,content:p,disableClickAway:h,disabled:g,interactive:y,locked:_,offsetDistance:S,offsetSkid:C,openDelay:T,placement:w,show:E}=lm(n),{isOpen:O,open:$,close:P}=cz({arrowPadding:c,emit:t,locked:_,offsetDistance:S,offsetSkid:C,placement:w,popperNode:s,triggerNode:l}),{hasContent:k}=sW(r,s,p),I=ce(()=>E.value!==null),H=ce(()=>g.value||!k.value),D=ce(()=>O.value&&!H.value),F=ce(()=>!h.value&&!I.value),z=ce(()=>y.value?`border: ${S.value}px solid transparent; margin: -${S.value}px;`:null),G=Wp.debounce($,T.value),te=Wp.debounce(P,d.value),we=async()=>{H.value||I.value||(te.clear(),G())},be=async()=>{I.value||(G.clear(),te())},Ae=()=>{O.value?be():we()};return Ft([k,g],([Ie,Ye])=>{O.value&&(!Ie||Ye)&&P()}),Ft(O,Ie=>{Ie?a.value=!0:Wp.debounce(()=>{a.value=!1},200)}),jt(()=>{I.value&&(E.value?G():te())}),jt(()=>{F.value&&iW(o,be)}),(Ie,Ye)=>(N(),V("div",{class:"inline-block",style:cs(jn(z)),onMouseleave:Ye[2]||(Ye[2]=ft=>e.hover&&be()),ref:(ft,Le)=>{Le.popperContainerNode=ft,o.value=ft}},[v("div",{ref:(ft,Le)=>{Le.triggerNode=ft,l.value=ft},onMouseover:Ye[0]||(Ye[0]=ft=>e.hover&&we()),onClick:Ae,onFocus:we,onKeyup:Hw(be,["esc"])},[_r(Ie.$slots,"default")],40,mz),q(xi,{name:"fade"},{default:ye(()=>[G1(v("div",{onClick:Ye[1]||(Ye[1]=ft=>!jn(y)&&be()),class:"popper",ref:(ft,Le)=>{Le.popperNode=ft,s.value=ft}},[_r(Ie.$slots,"content",{close:jn(P),isOpen:a.value},()=>[Xe(U(jn(p)),1)]),e.arrow?(N(),bt(hz,{key:0})):Ke("",!0)],512),[[Em,jn(D)]])]),_:3})],36))}},gz=`
     117`;V$(xz);const ov={};ov.render=Ez;ov.__scopeId="data-v-20b7fd4a";var $z=ov;const Cz=["onKeyup"];var W$={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(Pe=>({c81fc0a4:e.zIndex}));const r=ww(),o=_e(null),s=_e(null),l=_e(null),a=_e(!1);vt(()=>{const Pe=r.default();if(Pe&&Pe.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Pe.length} child nodes.`)});const{arrowPadding:c,closeDelay:d,content:p,disableClickAway:h,disabled:g,interactive:y,locked:_,offsetDistance:S,offsetSkid:C,openDelay:T,placement:w,show:E}=lm(n),{isOpen:O,open:x,close:I}=wz({arrowPadding:c,emit:t,locked:_,offsetDistance:S,offsetSkid:C,placement:w,popperNode:s,triggerNode:l}),{hasContent:k}=vW(r,s,p),P=ce(()=>E.value!==null),H=ce(()=>g.value||!k.value),D=ce(()=>O.value&&!H.value),F=ce(()=>!h.value&&!P.value),z=ce(()=>y.value?`border: ${S.value}px solid transparent; margin: -${S.value}px;`:null),G=Wp.debounce(x,T.value),te=Wp.debounce(I,d.value),we=async()=>{H.value||P.value||(te.clear(),G())},be=async()=>{P.value||(G.clear(),te())},Ae=()=>{O.value?be():we()};return Ft([k,g],([Pe,Ye])=>{O.value&&(!Pe||Ye)&&I()}),Ft(O,Pe=>{Pe?a.value=!0:Wp.debounce(()=>{a.value=!1},200)}),jt(()=>{P.value&&(E.value?G():te())}),jt(()=>{F.value&&gW(o,be)}),(Pe,Ye)=>(N(),V("div",{class:"inline-block",style:Wo(Hn(z)),onMouseleave:Ye[2]||(Ye[2]=ft=>e.hover&&be()),ref:(ft,Le)=>{Le.popperContainerNode=ft,o.value=ft}},[v("div",{ref:(ft,Le)=>{Le.triggerNode=ft,l.value=ft},onMouseover:Ye[0]||(Ye[0]=ft=>e.hover&&we()),onClick:Ae,onFocus:we,onKeyup:Vw(be,["esc"])},[_r(Pe.$slots,"default")],40,Cz),q($i,{name:"fade"},{default:ye(()=>[X1(v("div",{onClick:Ye[1]||(Ye[1]=ft=>!Hn(y)&&be()),class:"popper",ref:(ft,Le)=>{Le.popperNode=ft,s.value=ft}},[_r(Pe.$slots,"content",{close:Hn(I),isOpen:a.value},()=>[Xe(U(Hn(p)),1)]),e.arrow?(N(),bt($z,{key:0})):He("",!0)],512),[[Em,Hn(D)]])]),_:3})],36))}},Tz=`
    118118.inline-block[data-v-5784ed69] {
    119119    display: inline-block;
     
    146146    opacity: 0;
    147147}
    148 `;U$(gz);j$.__scopeId="data-v-5784ed69";var vz=(()=>{const e=j$;return e.install=t=>{t.component("Popper",e)},e})();const yz=ge({components:{Popper:vz},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}}}),bz={class:"bg-white p-4 rounded shadow-lg max-w-md"};function _z(e,t,n,r,o,s){const l=J("Popper");return N(),V("div",null,[q(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:ye(()=>[v("div",bz,[_r(e.$slots,"content")])]),default:ye(()=>[_r(e.$slots,"trigger")]),_:3})])}const wz=Be(yz,[["render",_z]]),Sz=ge({components:{PodloveButton:Vn,Tooltip:wz},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(i7(n.target.result))},t.readAsText(X.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),Ez={class:"text-xs"},xz={class:"text-gray-600 leading-3 font-semibold mb-2"},$z={class:"text-gray-500 ml-1"},Cz={class:"mb-1"},Tz={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},Oz=v("code",null,".psc",-1),Az={class:"mb-1"},Iz={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},Pz={class:"mb-1"},kz={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},Rz=v("code",null,".txt",-1);function Lz(e,t,n,r,o,s){const l=J("podlove-button"),a=J("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}),v("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:ye(()=>[v("div",Ez,[v("p",xz,U(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),v("ul",$z,[v("li",Cz,[v("a",Tz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Xe(" ("),Oz,Xe("), ")]),v("li",Az,[v("a",Iz,U(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),v("li",Pz,[v("a",kz,U(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),Rz,Xe(") ")])])])]),_:1})}const Nz=Be(Sz,[["render",Lz]]),Mz=ge({components:{Popover:w$,PopoverButton:bj,PopoverPanel:_j}});function Dz(e,t,n,r,o,s){const l=J("PopoverButton"),a=J("PopoverPanel"),c=J("Popover",!0);return N(),bt(c,{class:"relative"},{default:ye(()=>[q(l,null,{default:ye(()=>[_r(e.$slots,"trigger")]),_:3}),q(xi,{"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(()=>[_r(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}const H$=Be(Mz,[["render",Dz]]),Fz=ge({components:{Popover:H$,PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{download(e){this.dispatch(l7(e))}}}),Bz={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Uz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},jz=v("div",{class:"text-sm text-gray-500"},".psc",-1),Hz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Vz=v("div",{class:"text-sm text-gray-500"},".txt",-1);function Wz(e,t,n,r,o,s){const l=J("podlove-button"),a=J("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(()=>[v("div",Bz,[v("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"},[v("div",Uz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),jz]),v("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"},[v("div",Hz,U(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),Vz])])]),_:1})])}const zz=Be(Fz,[["render",Wz]]),qz=ge({components:{Module:Nn,TabsContainer:I$,Tab:A$,ChaptersForm:rW,ChaptersImport:Nz,ChaptersExport:zz},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(t7())}});function Kz(e,t,n,r,o,s){const l=J("chapters-import"),a=J("chapters-export"),c=J("chapters-form"),d=J("module");return N(),bt(d,{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"])}const Gz=Be(qz,[["render",Kz]]),Xz={},Jz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},Yz=v("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),Zz=[Yz];function Qz(e,t){return N(),V("svg",Jz,Zz)}const eq=Be(Xz,[["render",Qz]]),tq=ge({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:Vn,UploadIcon:Nx,DocumentTextIcon:Dx},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(I7())},handleImport(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(A7(n.target.result))},t.readAsText(X.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),nq={ref:"importForm",class:"cursor-pointer"},rq={class:"grid grid-cols-2"};function oq(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button");return N(),V("form",nq,[v("div",rq,[v("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"]),v("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),v("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)}const iq=Be(tq,[["render",oq]]),sq=ge({components:{Avatar:eq,TranscriptsImport:iq,DocumentTextIcon:Dx},setup(){return{state:yt({transcripts:K.transcripts.list,contributors:K.contributors.contributors,voices:K.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=X.last(e);return n&&n.voiceId===t.voice?[...X.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:X.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Nt(e).prettyShort}}}),lq={key:0,class:"h-96 p-2 overflow-x-auto"},aq={class:"mr-2 w-12 text-gray-400 select-none"},uq=["src"],cq={class:"w-full font-light text-sm mr-2"},dq={class:"block font-bold"},fq={class:"flex justify-between"},pq={class:"ml-1 font-mono select-none"},hq={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},mq={class:"mt-2 text-sm font-medium text-gray-900"},gq={class:"mt-1 text-sm text-gray-500"},vq={class:"mt-6"};function yq(e,t,n,r,o,s){const l=J("avatar"),a=J("document-text-icon"),c=J("transcripts-import");return e.transcripts.length>0?(N(),V("div",lq,[(N(!0),V(Fe,null,Mt(e.transcripts,(d,p)=>{var h,g,y;return N(),V("div",{class:"flex mb-2",key:`transcript-${p}`},[v("div",aq,[(h=d==null?void 0:d.voice)!=null&&h.avatar?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:(g=d==null?void 0:d.voice)==null?void 0:g.avatar},null,8,uq)):(N(),bt(l,{key:1}))]),v("div",cq,[v("span",dq,U((y=d==null?void 0:d.voice)==null?void 0:y.name),1),v("span",fq,[v("span",null,[(N(!0),V(Fe,null,Mt(d.content,(_,S)=>(N(),V("span",{class:"mr-1",key:`transcript-${p}-content-${S}`},U(_.text),1))),128))]),v("span",pq,U(e.formatTime(d.content[0].start)),1)])])])}),128))])):(N(),V("div",hq,[q(a,{class:"mx-auto h-12 w-12 text-gray-400"}),v("h3",mq,U(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),v("p",gq,U(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),v("div",vq,[q(c,{outlet:"content",class:"mr-1"})])]))}const bq=Be(sq,[["render",yq]]),_q=ge({components:{PodloveButton:Vn,Modal:Wa},data(){return{modalOpen:!1}},setup(){return{state:yt({contributors:K.contributors.contributors,voices:K.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(O7({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),wq={key:0},Sq={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Eq={class:"text-lg leading-6 font-medium text-gray-900"},xq={for:"country",class:"block text-sm font-medium text-gray-700"},$q=["value","onChange"],Cq=v("option",{value:"0"},null,-1),Tq=["value"];function Oq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("modal");return e.state.voices.length>0?(N(),V("div",wq,[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(()=>[v("div",Sq,[v("h3",Eq,U(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.state.voices,(c,d)=>(N(),V("div",{key:`voice-${d}`,class:St(["w-full py-2 px-4",{"bg-white":d%2}])},[v("label",xq,U(c.voice),1),v("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)},[Cq,(N(!0),V(Fe,null,Mt(e.sortedContributors,(p,h)=>(N(),V("option",{key:`voice-${d}-contributor-${h}`,value:p.id},U(p.publicname||p.realname||p.nickname),9,Tq))),128))],40,$q)],2))),128))]),_:1},8,["open"])])):Ke("",!0)}const Aq=Be(_q,[["render",Oq]]),Iq=[{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"}],Pq=ge({components:{Popover:H$,PodloveButton:Vn},setup(){return{state:yt({post:K.post.id,baseUrl:K.runtime.baseUrl,transcripts:K.transcripts.list})}},data(){return{exportTypes:Iq}}}),kq={key:0},Rq={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Lq=["download","href"],Nq={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Mq={class:"text-sm text-gray-500"};function Dq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("popover");return e.state.transcripts.length>0?(N(),V("div",kq,[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(()=>[v("div",Rq,[(N(!0),V(Fe,null,Mt(e.exportTypes,(c,d)=>(N(),V("a",{key:`type-${d}`,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"},[v("div",Nq,U(c.title),1),v("div",Mq,U(c.ending),1)],8,Lq))),128))])]),_:1})])):Ke("",!0)}const Fq=Be(Pq,[["render",Dq]]),Bq=ge({components:{PodloveButton:Vn,Modal:Wa,ExclamationIcon:Fx,DialogTitle:uj},data(){return{modalVisible:!1}},setup(){return{state:yt({transcripts:K.transcripts.list}),dispatch:it().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(P7())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),Uq={key:0},jq={class:"sm:flex sm:items-start"},Hq={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"},Vq={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},Wq={class:"mt-2"},zq={class:"text-sm text-gray-500"},qq={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function Kq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("exclamation-icon"),c=J("DialogTitle"),d=J("modal");return e.state.transcripts.length>0?(N(),V("div",Uq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:ye(()=>[Xe("Clear")]),_:1}),q(d,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[v("div",jq,[v("div",Hq,[q(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),v("div",Vq,[q(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:ye(()=>[Xe(" Clear Transcript ")]),_:1}),v("div",Wq,[v("p",zq,U(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),v("div",qq,[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"])])):Ke("",!0)}const Gq=Be(Bq,[["render",Kq]]),Xq=ge({components:{Module:Nn,TabsContainer:I$,Tab:A$,TranscriptsList:bq,TranscriptsVoices:Aq,TranscriptsExport:Fq,TranscriptsDelete:Gq},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(o2()),this.dispatch($7())}});function Jq(e,t,n,r,o,s){const l=J("transcripts-voices"),a=J("transcripts-export"),c=J("transcripts-delete"),d=J("transcripts-list"),p=J("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(d)]),_:1},8,["title"])}const Yq=Be(Xq,[["render",Jq]]);function Zq(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"},[v("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 Yd(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"},[v("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 Zd(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"},[v("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 V$(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"},[v("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 Qq=ge({props:["file_key","track_index"],components:{Listbox:Vg,ListboxButton:zg,ListboxLabel:Wg,ListboxOption:Kg,ListboxOptions:qg,CheckIcon:Yd,SelectorIcon:Zd,DocumentCheckIcon:tU},setup(){return{state:yt({services:K.auphonic.incomingServices,serviceFiles:K.auphonic.serviceFiles,fileSelections:K.auphonic.fileSelections,episodeSlug:K.episode.slug}),dispatch:it().dispatch}},methods:{set(e,t){this.dispatch(T2({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch(A2({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(wt({prop:"slug",value:e})),this.dispatch(F2())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return X.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}}}),eK={class:"flex flex-col gap-2"},tK=v("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),nK=["value","selected"],rK={key:0},oK={key:0},iK=["for"],sK={key:0,class:"sm:mt-1"},lK={class:"text-sm font-normal"},aK={key:1,class:"sm:mt-1"},uK=["id"],cK={key:1},dK=["for"],fK={class:"mt-1"},pK=["id","value"],hK={key:2},mK={key:0},gK=["for"],vK=["id","value"],yK=["value"],bK={key:1},_K={key:3,class:"mt-3"},wK={class:"font-mono"};function SK(e,t,n,r,o,s){const l=J("DocumentCheckIcon");return N(),V("div",null,[v("div",eK,[v("div",null,[tK,v("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,nK))),128))],32)]),e.currentService?(N(),V("div",rK,[e.currentService.type==="file"?(N(),V("div",oK,[v("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",sK,[Xe(" Upload "),v("span",lK,U(e.filenameSelectedForUpload),1)])):(N(),V("div",aK,U(e.__("Upload a file","podlove-podcasting-plugin-for-wordpress")),1)),v("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,uK)],8,iK)])):e.currentService.type==="url"?(N(),V("div",cK,[v("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,dK),v("div",fK,[v("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,pK)])])):(N(),V("div",hK,[e.serviceFiles!==null?(N(),V("div",mK,[v("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,gK),v("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,yK))),128))],40,vK)])):(N(),V("div",bK,"..."))])),e.shouldSuggestSlug?(N(),V("div",_K,[v("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"}),v("span",null,[Xe(U(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",wK,U(e.slugCandidate),1)])])])):Ke("",!0)])):Ke("",!0)])])}const EK=Be(Qq,[["render",SK]]),xK=ge({components:{ClipboardCheckIcon:Q9,ExternalLinkIcon:Rx,ExclamationIcon:Fx},setup(){return{state:yt({production:K.auphonic.production,title:K.episode.title,subtitle:K.episode.subtitle,summary:K.episode.summary,duration:K.episode.duration,slug:K.episode.slug,license_name:K.episode.license_name,license_url:K.episode.license_url,chapters:K.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(wt({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"},CK={class:"flex"},TK={class:"flex-shrink-0"},OK={class:"ml-3"},AK={class:"text-sm font-medium text-green-800"},IK={class:"mt-2 text-sm text-green-700"},PK=["href"],kK={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},RK={class:"flex"},LK={class:"flex-shrink-0"},NK={class:"ml-3"},MK={class:"text-sm font-medium text-yellow-800"},DK={class:"mt-2 text-sm text-yellow-700"},FK={key:2,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},BK={class:"p-6"},UK=v("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),jK={class:"mt-1 text-sm text-gray-500"},HK={class:"mt-6 flow-root"},VK={role:"list",class:"-my-5 divide-y divide-gray-200"},WK={class:"flex items-center space-x-4"},zK={class:"min-w-0 flex-1"},qK={class:"truncate text-sm text-gray-500"},KK={class:"truncate text-sm font-medium text-gray-900"},GK=["onClick"],XK={class:"hidden sm:inline"},JK={class:"mt-6"},YK={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},ZK={class:"p-6"};function QK(e,t,n,r,o,s){const l=J("ClipboardCheckIcon"),a=J("ExternalLinkIcon"),c=J("ExclamationIcon");return N(),V("div",null,[e.production.status==3?(N(),V("div",$K,[v("div",CK,[v("div",TK,[q(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),v("div",OK,[v("h3",AK,U(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),v("div",IK,[v("p",null,[v("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,PK),Xe(" "+U(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Ke("",!0),e.production.warning_message?(N(),V("div",kK,[v("div",RK,[v("div",LK,[q(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),v("div",NK,[v("h3",MK,U(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),v("div",DK,[v("p",null,U(e.production.warning_message),1)])])])])):Ke("",!0),e.visibleEntries.length>0?(N(),V("div",FK,[v("div",BK,[v("div",null,[UK,v("p",jK,U(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",HK,[v("ul",VK,[(N(!0),V(Fe,null,Mt(e.visibleEntries,d=>(N(),V("li",{key:d.key,class:"py-4"},[v("div",WK,[v("div",zK,[v("p",qK,[v("em",null,U(d.title),1),Xe(" "+U(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),v("p",KK,U(e.renderEntryPreview(d)),1)]),v("div",null,[v("button",{onClick:xc(p=>e.importMeta(d.title,d.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),v("span",XK," "+U(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,GK)])])]))),128))])]),v("div",JK,[v("button",{onClick:t[0]||(t[0]=xc((...d)=>e.importAllMeta&&e.importAllMeta(...d),["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",YK,[v("div",ZK,U(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}const eG=Be(xK,[["render",QK]]),tG=ge({components:{Switch:xj,SwitchGroup:Ej,SwitchLabel:$j},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(I2(e))}},setup(){return{state:yt({publishWhenDone:K.auphonic.publishWhenDone}),dispatch:it().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),nG={class:"text-sm text-gray-900"};function rG(e,t,n,r,o,s){const l=J("Switch"),a=J("SwitchLabel"),c=J("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:St([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(()=>[v("span",{"aria-hidden":"true",class:St([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(()=>[v("span",nG,U(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}const oG=Be(tG,[["render",rG]]),iG=ge({props:{className:{type:String,default:""}}}),sG=v("g",{transform:"translate(-12.73496,-48.464)"},[v("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"}),v("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),lG=[sG];function aG(e,t,n,r,o,s){return N(),V("svg",{class:St(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},lG,2)}const ov=Be(iG,[["render",aG]]),uG=ge({components:{PodloveButton:Vn,FileChooser:EK,CogIcon:eU,ChevronDownIcon:Lx,ChevronRightIcon:Y9,XIcon:Ua,DatabaseIcon:Z9,ExternalLinkIcon:Rx,CloudIcon:Mx,TrashIcon:nU,ArrowDownIcon:Px,ArrowDownTrayIcon:q9,AuphonicLogo:ov,DonePage:eG,WebhookToggle:oG},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:yt({production:K.auphonic.production,tracks:K.auphonic.tracks,isSaving:K.auphonic.isSaving}),dispatch:it().dispatch}},methods:{saveProduction(){this.dispatch(x2({uuid:this.production.uuid}))},startProduction(){this.dispatch($2({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(S2())},addTrack(){this.dispatch(sD())},removeTrack(e){this.dispatch(O2(e))},updateTrack(e,t,n){this.dispatch(A2({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!X.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}}}),cG={class:"pb-5 space-y-4"},dG={class:"space-y-8"},fG={class:"bg-white px-4 sm:px-6"},pG={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},hG={class:"ml-4 mt-4"},mG={class:"flex items-center"},gG={class:"flex-shrink-0"},vG={class:"ml-4"},yG={class:"text-base font-semibold leading-6 text-gray-900"},bG={class:"text-sm text-gray-500"},_G={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},wG={key:0,class:"inline-flex items-center animate-pulse text-green-600"},SG={key:0},EG={key:1},xG={class:"space-y-4"},$G={key:0},CG={key:1},TG={class:"rounded-md bg-indigo-50 p-4"},OG={class:"flex"},AG={class:"flex-shrink-0"},IG={class:"ml-3"},PG={class:"text-sm font-medium text-indigo-800"},kG={class:"mt-2 text-sm text-indigo-700"},RG={key:2},LG={key:3},NG={class:"bg-white shadow overflow-hidden rounded-md"},MG={class:"px-6 pt-4 hidden md:block"},DG={class:"md:grid md:grid-cols-3 md:gap-12"},FG={class:"block text-sm font-medium text-gray-700 md:col-span-1"},BG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},UG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},jG=v("div",{class:"block w-8 md:col-span-1"},null,-1),HG={role:"list",class:"divide-y divide-gray-200"},VG={class:"md:grid md:grid-cols-3 md:gap-12"},WG={class:"md:col-span-1"},zG=["for"],qG=["id","value","onInput"],KG={class:"mt-5 md:mt-0 md:col-span-1"},GG={class:"sm:items-baseline"},XG={class:"mt-4 sm:mt-0"},JG={key:0,class:"mt-1 text-sm text-gray-700"},YG={class:"md:col-span-1"},ZG={key:0,role:"group",class:"bg-gr"},QG={class:"sm:items-baseline"},eX={class:""},tX={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},nX={class:"max-w-lg relative"},rX=["title","onClick"],oX={class:"space-y-4"},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 items-start"},dX={class:"flex items-center h-5"},fX=["id","checked","onInput"],pX={class:"ml-3 text-sm"},hX=["for"],mX={class:"relative flex justify-start align-middle items-center gap-3"},gX={class:"text-sm"},vX=["for"],yX=["value","onInput","id"],bX={value:"auto"},_X={value:"foreground"},wX={value:"background"},SX={value:"ducking"},EX={value:"unchanged"},xX={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"},CX={class:"sm:col-span-4"},TX={class:"text-base font-medium text-gray-900"},OX={class:"mt-2"},AX={key:0,class:"mt-1 text-sm text-gray-700"},IX={class:"pt-5"},PX={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},kX={class:"flex justify-end gap-3"},RX=["href"];function LX(e,t,n,r,o,s){var T,w,E,O;const l=J("AuphonicLogo"),a=J("CloudIcon"),c=J("ArrowDownTrayIcon"),d=J("XIcon"),p=J("DatabaseIcon"),h=J("DonePage"),g=J("FileChooser"),y=J("TrashIcon"),_=J("podlove-button"),S=J("WebhookToggle"),C=J("ExternalLinkIcon");return N(),V("form",cG,[v("div",dG,[v("div",fG,[v("div",pG,[v("div",hG,[v("div",mG,[v("div",gG,[q(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),v("div",vG,[v("h3",yG,U((w=(T=e.production)==null?void 0:T.metadata)==null?void 0:w.title),1),v("p",bG,U(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),v("div",_G,[e.isSaving?(N(),V("span",wG,[q(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):Ke("",!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",SG,U(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):Ke("",!0),e.showImportPage?Ke("",!0):(N(),V("span",EG,U(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):Ke("",!0),v("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(d,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),v("span",null,U(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),v("div",xG,[e.showUploadScreen?(N(),V("div",$G,U(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):Ke("",!0),e.showProcessingScreen?(N(),V("div",CG,[v("div",TG,[v("div",OG,[v("div",AG,[q(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),v("div",IG,[v("h3",PG,U(e.production.status_string),1),v("div",kG,[v("p",null,U(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):Ke("",!0),e.production.status==3||e.showImportPage?(N(),V("div",RG,[q(h)])):Ke("",!0),e.isMultitrack&&e.showTrackEditor?(N(),V("div",LG,[v("div",NG,[v("div",MG,[v("div",DG,[v("div",FG,U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),v("div",BG,U(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),v("div",UG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),jG])]),v("ul",HG,[(N(!0),V(Fe,null,Mt(e.tracks,($,P)=>(N(),V("li",{key:`xtrack-${P}`,class:"px-6 py-4"},[v("div",VG,[v("div",WG,[v("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,zG),v("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,qG)]),v("div",KG,[v("div",GG,[v("div",XG,[q(g,{track_index:P,file_key:`${e.production.uuid}_t${P}`},null,8,["track_index","file_key"]),$.input_file_name?(N(),V("div",JG,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U($.input_file_name),1)):Ke("",!0)])])]),v("div",YG,[e.algorithmSettingsVisible(P)?(N(),V("div",ZG,[v("div",QG,[v("div",eX,[v("div",tX,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),v("div",nX,[v("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,rX),v("div",oX,[v("div",iX,[v("div",sX,[v("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,lX)]),v("div",aX,[v("label",{for:`track_${P}_filtering`,class:"text-gray-700"},U(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,uX)])]),v("div",null,[v("div",cX,[v("div",dX,[v("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,fX)]),v("div",pX,[v("label",{for:`track_${P}_noisehum`,class:"text-gray-700"},U(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,hX)])])]),v("div",null,[v("div",mX,[v("div",gX,[v("label",{for:`track_${P}_fgbg`,class:"text-gray-700"},U(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,vX)]),v("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"},[v("option",bX,U(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),v("option",_X,U(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",wX,U(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",SX,U(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",EX,U(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,yX)])])])])])])])):Ke("",!0)])])]))),128))]),v("div",xX,[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",$X,[v("fieldset",CX,[v("legend",TX,U(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),v("div",OX,[q(g,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(N(),V("div",AX,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.production.input_file),1)):Ke("",!0)])])])):Ke("",!0)])]),v("div",IX,[v("div",PX,[q(S),v("div",kX,[v("a",{href:(O=e.production)==null?void 0:O.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(C,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,RX),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"])])])])])}const NX=Be(uG,[["render",LX]]),MX=ge({components:{Listbox:Vg,ListboxButton:zg,ListboxLabel:Wg,ListboxOption:Kg,ListboxOptions:qg,CheckIcon:Yd,SelectorIcon:Zd},setup(){return{state:yt({productions:K.auphonic.productions,production:K.auphonic.production}),dispatch:it().dispatch}},methods:{setProduction(e){this.dispatch(ps(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}}}),DX={class:"mt-1 relative"},FX={class:"w-full inline-flex truncate"},BX={key:0,class:"truncate"},UX={key:1,class:"truncate"},jX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},HX={class:"flex justify-between"},VX={class:St(["font-normal","truncate"])};function WX(e,t,n,r,o,s){const l=J("ListboxLabel"),a=J("SelectorIcon"),c=J("ListboxButton"),d=J("ListboxOption"),p=J("ListboxOptions"),h=J("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}),v("div",DX,[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(()=>[v("span",FX,[e.currentProduction?(N(),V("span",BX,U(e.currentProduction.metadata.title),1)):(N(),V("span",UX," "))]),v("span",jX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(xi,{"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,g=>(N(),bt(d,{as:"template",key:g._select.date,value:g},{default:ye(({active:y})=>[v("li",{class:St([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[v("div",HX,[v("span",VX,[v("span",{class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(g._select.date),3),Xe(" "+U(g._select.name),1)]),v("span",{class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},U(g.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const zX=Be(MX,[["render",WX]]),qX=ge({components:{Listbox:Vg,ListboxButton:zg,ListboxLabel:Wg,ListboxOption:Kg,ListboxOptions:qg,CheckIcon:Yd,SelectorIcon:Zd},setup(){return{state:yt({presets:K.auphonic.presets,currentPreset:K.auphonic.preset}),dispatch:it().dispatch}},methods:{setPreset(e){this.dispatch(wg(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)}}}),KX={class:"mt-1 relative"},GX={class:"w-full inline-flex truncate"},XX={key:0,class:"truncate"},JX={key:1,class:"truncate"},YX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},ZX={class:"flex"},QX={class:St(["font-normal","truncate"])};function eJ(e,t,n,r,o,s){const l=J("ListboxLabel"),a=J("SelectorIcon"),c=J("ListboxButton"),d=J("ListboxOption"),p=J("ListboxOptions"),h=J("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}),v("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(()=>[v("span",GX,[e.currentPreset?(N(),V("span",XX,U(e.currentPreset._select.name),1)):(N(),V("span",JX," "))]),v("span",YX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(xi,{"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,g=>(N(),bt(d,{as:"template",key:g._select.date,value:g},{default:ye(({active:y})=>[v("li",{class:St([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[v("div",ZX,[v("span",QX,U(g._select.name),1),g._select.is_multitrack?(N(),V("span",{key:0,class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):Ke("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const tJ=Be(qX,[["render",eJ]]),nJ=ge({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lg,RefreshIcon:kx,SelectProduction:zX,SelectPreset:tJ,AuphonicLogo:ov},data(){return{}},setup(){return{state:yt({presetUUID:K.auphonic.preset,presets:K.auphonic.presets,isInitializing:K.auphonic.isInitializing}),dispatch:it().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(tD())},createMultitrackProduction(){this.dispatch(nD())}},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"}}}),rJ={class:"m-6 text-center max-w-5xl"},oJ={key:0,class:"w-full flex justify-center"},iJ={class:"animate-pulse mt-4 flex space-x-4"},sJ={class:"mt-1 text-sm text-gray-500"},lJ={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"},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"},pJ={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},hJ={class:"flow-root sm:px-6"},mJ={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"},gJ={class:"text-sm font-medium text-gray-900"},vJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},yJ={class:"w-full max-w-md"};function bJ(e,t,n,r,o,s){const l=J("AuphonicLogo"),a=J("RefreshIcon"),c=J("SelectPreset"),d=J("plus-sm-icon"),p=J("podlove-button"),h=J("SelectProduction");return N(),V("div",null,[v("div",rJ,[q(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(N(),V("div",oJ,[v("div",iJ,[q(a,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):Ke("",!0),v("div",{class:St({"text-left":!0,"opacity-0":e.isInitializing})},[v("p",sJ,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),v("div",lJ,[v("div",aJ,[v("div",uJ,[v("div",null,[v("h3",cJ,U(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),v("div",dJ,[v("div",fJ,[q(c)])]),v("div",pJ,[q(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:ye(()=>[q(d,{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"])])]),v("div",hJ,[v("div",mJ,[v("div",null,[v("h3",gJ,U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),v("div",vJ,[v("div",yJ,[q(h)])])])])],2)])])}const _J=Be(nJ,[["render",bJ]]),wJ=ge({components:{Module:Nn,ManageProductionForm:NX,StartScreen:_J,AuphonicLogo:ov},setup(){return{state:yt({productionId:K.auphonic.productionId,isInitializing:K.auphonic.isInitializing}),dispatch:it().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(Z7())}}),SJ={key:0},EJ={key:1,class:"m-7"};function xJ(e,t,n,r,o,s){const l=J("StartScreen"),a=J("ManageProductionForm"),c=J("module");return N(),bt(c,{name:"auphonic",title:"Auphonic"},{default:ye(()=>[e.isProductionSelected?Ke("",!0):(N(),V("div",SJ,[q(l)])),e.productionId?(N(),V("div",EJ,[q(a)])):Ke("",!0)]),_:1})}const $J=Be(wJ,[["render",xJ]]),CJ=ge({components:{ArrowUpIcon:G9,ArrowDownIcon:Px,XIcon:Ua,UserCircleIcon:Ux,PencilIcon:Bx},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:K.contributors.roles,groups:K.contributors.groups,baseUrl:K.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(h7(this.data))},moveContributionDown(){this.dispatch(m7(this.data))},deleteContribution(){this.dispatch(g7(this.data))},updateRole(e){const t=X.get(e,["target","value"]);this.dispatch(Pp({...this.data,role_id:t}))},updateGroup(e){const t=X.get(e,["target","value"]);console.log(t),this.dispatch(Pp({...this.data,group_id:t}))},updateComment(e){const t=X.get(e,["target","value"]);this.dispatch(Pp({...this.data,comment:t}))}}}),TJ={class:"block hover:bg-gray-50"},OJ={class:"flex items-center px-4 py-4 sm:px-6"},AJ={class:"flex min-w-0 flex-1 items-center"},IJ={class:"flex-shrink-0"},PJ=["src","alt"],kJ={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},RJ={class:"flex-shrink-0"},LJ={class:"truncate text-sm font-medium text-gray-900"},NJ={class:"flex items-center text-sm text-gray-500"},MJ={class:"truncate"},DJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},FJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},BJ=["value","selected"],UJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},jJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},HJ=["value","selected"],VJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},WJ={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},zJ={class:"mt-2"},qJ=["value","placeholder"],KJ={class:"flex space-x-2 justify-end mt-[30px]"},GJ=["disabled"],XJ=["disabled"],JJ=["href"];function YJ(e,t,n,r,o,s){const l=J("UserCircleIcon"),a=J("arrow-up-icon"),c=J("arrow-down-icon"),d=J("pencil-icon"),p=J("x-icon");return N(),V("div",TJ,[v("div",OJ,[v("div",AJ,[v("div",IJ,[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,PJ)):Ke("",!0),e.data.avatar_url?Ke("",!0):(N(),bt(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),v("div",kJ,[v("div",RJ,[v("p",LJ,U(e.data.realname),1),v("p",NJ,[v("span",MJ,U(e.data.nickname),1)])])]),v("div",DJ,[v("div",null,[v("label",FJ,U(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),v("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,BJ))),256))],32)])]),v("div",UJ,[v("div",null,[v("label",jJ,U(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),v("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,HJ))),256))],32)])]),v("div",VJ,[v("div",null,[v("label",WJ,U(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),v("div",zJ,[v("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,qJ)])])]),v("div",KJ,[v("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:St({"text-indigo-600":!e.first,"text-gray-500":e.first})},[q(a,{class:"w-5 h-5"})],10,GJ),v("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:St({"text-indigo-600":!e.last,"text-gray-500":e.last})},[q(c,{class:"w-5 h-5"})],10,XJ),v("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[q(d,{class:"w-5 h-5"})],8,JJ),v("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[q(p,{class:"w-5 h-5"})])])])])])}const ZJ=Be(CJ,[["render",YJ]]);var tr="top",jr="bottom",Hr="right",nr="left",iv="auto",Ka=[tr,jr,Hr,nr],rl="start",Ea="end",QJ="clippingParents",W$="viewport",Fl="popper",eY="reference",G_=Ka.reduce(function(e,t){return e.concat([t+"-"+rl,t+"-"+Ea])},[]),z$=[].concat(Ka,[iv]).reduce(function(e,t){return e.concat([t,t+"-"+rl,t+"-"+Ea])},[]),tY="beforeRead",nY="read",rY="afterRead",oY="beforeMain",iY="main",sY="afterMain",lY="beforeWrite",aY="write",uY="afterWrite",cY=[tY,nY,rY,oY,iY,sY,lY,aY,uY];function So(e){return e?(e.nodeName||"").toLowerCase():null}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 ol(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function Fr(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sv(e){if(typeof ShadowRoot>"u")return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function dY(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];!Fr(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 fY(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,d){return c[d]="",c},{});!Fr(o)||!So(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const pY={name:"applyStyles",enabled:!0,phase:"write",fn:dY,effect:fY,requires:["computeStyles"]};function bo(e){return e.split("-")[0]}var rs=Math.max,Jc=Math.min,il=Math.round;function sl(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Fr(e)&&t){var s=e.offsetHeight,l=e.offsetWidth;l>0&&(r=il(n.width)/l||1),s>0&&(o=il(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 lv(e){var t=sl(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 q$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qo(e){return lo(e).getComputedStyle(e)}function hY(e){return["table","td","th"].indexOf(So(e))>=0}function Ti(e){return((ol(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qd(e){return So(e)==="html"?e:e.assignedSlot||e.parentNode||(sv(e)?e.host:null)||Ti(e)}function X_(e){return!Fr(e)||qo(e).position==="fixed"?null:e.offsetParent}function mY(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Fr(e)){var r=qo(e);if(r.position==="fixed")return null}var o=Qd(e);for(sv(o)&&(o=o.host);Fr(o)&&["html","body"].indexOf(So(o))<0;){var s=qo(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 Ga(e){for(var t=lo(e),n=X_(e);n&&hY(n)&&qo(n).position==="static";)n=X_(n);return n&&(So(n)==="html"||So(n)==="body"&&qo(n).position==="static")?t:n||mY(e)||t}function av(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function na(e,t,n){return rs(e,Jc(t,n))}function gY(e,t,n){var r=na(e,t,n);return r>n?n:r}function K$(){return{top:0,right:0,bottom:0,left:0}}function G$(e){return Object.assign({},K$(),e)}function X$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var vY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,G$(typeof t!="number"?t:X$(t,Ka))};function yY(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=av(a),d=[nr,Hr].indexOf(a)>=0,p=d?"height":"width";if(!(!s||!l)){var h=vY(o.padding,n),g=lv(s),y=c==="y"?tr:nr,_=c==="y"?jr:Hr,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],C=l[c]-n.rects.reference[c],T=Ga(s),w=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,E=S/2-C/2,O=h[y],$=w-g[p]-h[_],P=w/2-g[p]/2+E,k=na(O,P,$),I=c;n.modifiersData[r]=(t={},t[I]=k,t.centerOffset=k-P,t)}}function bY(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)||q$(t.elements.popper,o)&&(t.elements.arrow=o))}const _Y={name:"arrow",enabled:!0,phase:"main",fn:yY,effect:bY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ll(e){return e.split("-")[1]}var wY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:il(t*o)/o||0,y:il(n*o)/o||0}}function J_(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,g=l.x,y=g===void 0?0:g,_=l.y,S=_===void 0?0:_,C=typeof p=="function"?p({x:y,y:S}):{x:y,y:S};y=C.x,S=C.y;var T=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),E=nr,O=tr,$=window;if(d){var P=Ga(n),k="clientHeight",I="clientWidth";if(P===lo(n)&&(P=Ti(n),qo(P).position!=="static"&&a==="absolute"&&(k="scrollHeight",I="scrollWidth")),P=P,o===tr||(o===nr||o===Hr)&&s===Ea){O=jr;var H=h&&P===$&&$.visualViewport?$.visualViewport.height:P[k];S-=H-r.height,S*=c?1:-1}if(o===nr||(o===tr||o===jr)&&s===Ea){E=Hr;var D=h&&P===$&&$.visualViewport?$.visualViewport.width:P[I];y-=D-r.width,y*=c?1:-1}}var F=Object.assign({position:a},d&&wY),z=p===!0?SY({x:y,y:S}):{x:y,y:S};if(y=z.x,S=z.y,c){var G;return Object.assign({},F,(G={},G[O]=w?"0":"",G[E]=T?"0":"",G.transform=($.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",G))}return Object.assign({},F,(t={},t[O]=w?S+"px":"",t[E]=T?y+"px":"",t.transform="",t))}function EY(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,d={placement:bo(t.placement),variation:ll(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,J_(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,J_(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:EY,data:{}};var rc={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=lo(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",n.update,rc)}),a&&c.addEventListener("resize",n.update,rc),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",n.update,rc)}),a&&c.removeEventListener("resize",n.update,rc)}}const CY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$Y,data:{}};var TY={left:"right",right:"left",bottom:"top",top:"bottom"};function gc(e){return e.replace(/left|right|bottom|top/g,function(t){return TY[t]})}var OY={start:"end",end:"start"};function Y_(e){return e.replace(/start|end/g,function(t){return OY[t]})}function uv(e){var t=lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cv(e){return sl(Ti(e)).left+uv(e).scrollLeft}function AY(e){var t=lo(e),n=Ti(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+cv(e),y:a}}function IY(e){var t,n=Ti(e),r=uv(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=rs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=rs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+cv(e),c=-r.scrollTop;return qo(o||n).direction==="rtl"&&(a+=rs(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function dv(e){var t=qo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function J$(e){return["html","body","#document"].indexOf(So(e))>=0?e.ownerDocument.body:Fr(e)&&dv(e)?e:J$(Qd(e))}function ra(e,t){var n;t===void 0&&(t=[]);var r=J$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=lo(r),l=o?[s].concat(s.visualViewport||[],dv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ra(Qd(l)))}function qh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function PY(e){var t=sl(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 Z_(e,t){return t===W$?qh(AY(e)):ol(t)?PY(t):qh(IY(Ti(e)))}function kY(e){var t=ra(Qd(e)),n=["absolute","fixed"].indexOf(qo(e).position)>=0,r=n&&Fr(e)?Ga(e):e;return ol(r)?t.filter(function(o){return ol(o)&&q$(o,r)&&So(o)!=="body"}):[]}function RY(e,t,n){var r=t==="clippingParents"?kY(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var d=Z_(e,c);return a.top=rs(d.top,a.top),a.right=Jc(d.right,a.right),a.bottom=Jc(d.bottom,a.bottom),a.left=rs(d.left,a.left),a},Z_(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 Y$(e){var t=e.reference,n=e.element,r=e.placement,o=r?bo(r):null,s=r?ll(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case tr:c={x:l,y:t.y-n.height};break;case jr:c={x:l,y:t.y+t.height};break;case Hr: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 d=o?av(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case rl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Ea:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function xa(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?QJ:s,a=n.rootBoundary,c=a===void 0?W$:a,d=n.elementContext,p=d===void 0?Fl:d,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,S=G$(typeof _!="number"?_:X$(_,Ka)),C=p===Fl?eY:Fl,T=e.rects.popper,w=e.elements[g?C:p],E=RY(ol(w)?w:w.contextElement||Ti(e.elements.popper),l,c),O=sl(e.elements.reference),$=Y$({reference:O,element:T,strategy:"absolute",placement:o}),P=qh(Object.assign({},T,$)),k=p===Fl?P:O,I={top:E.top-k.top+S.top,bottom:k.bottom-E.bottom+S.bottom,left:E.left-k.left+S.left,right:k.right-E.right+S.right},H=e.modifiersData.offset;if(p===Fl&&H){var D=H[o];Object.keys(I).forEach(function(F){var z=[Hr,jr].indexOf(F)>=0?1:-1,G=[tr,jr].indexOf(F)>=0?"y":"x";I[F]+=D[G]*z})}return I}function LY(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,d=c===void 0?z$:c,p=ll(r),h=p?a?G_:G_.filter(function(_){return ll(_)===p}):Ka,g=h.filter(function(_){return d.indexOf(_)>=0});g.length===0&&(g=h);var y=g.reduce(function(_,S){return _[S]=xa(e,{placement:S,boundary:o,rootBoundary:s,padding:l})[bo(S)],_},{});return Object.keys(y).sort(function(_,S){return y[_]-y[S]})}function NY(e){if(bo(e)===iv)return[];var t=gc(e);return[Y_(e),t,Y_(t)]}function MY(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,d=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,S=n.allowedAutoPlacements,C=t.options.placement,T=bo(C),w=T===C,E=c||(w||!_?[gc(C)]:NY(C)),O=[C].concat(E).reduce(function(ae,fe){return ae.concat(bo(fe)===iv?LY(t,{placement:fe,boundary:p,rootBoundary:h,padding:d,flipVariations:_,allowedAutoPlacements:S}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,I=!0,H=O[0],D=0;D<O.length;D++){var F=O[D],z=bo(F),G=ll(F)===rl,te=[tr,jr].indexOf(z)>=0,we=te?"width":"height",be=xa(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),Ae=te?G?Hr:nr:G?jr:tr;$[we]>P[we]&&(Ae=gc(Ae));var Ie=gc(Ae),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Ae]<=0,be[Ie]<=0),Ye.every(function(ae){return ae})){H=F,I=!1;break}k.set(F,Ye)}if(I)for(var ft=_?3:1,Le=function(fe){var xe=O.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(xe)return H=xe,"break"},Ge=ft;Ge>0;Ge--){var Q=Le(Ge);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const DY={name:"flip",enabled:!0,phase:"main",fn:MY,requiresIfExists:["offset"],data:{_skip:!1}};function Q_(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 e1(e){return[tr,Hr,jr,nr].some(function(t){return e[t]>=0})}function FY(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=xa(t,{elementContext:"reference"}),a=xa(t,{altBoundary:!0}),c=Q_(l,r),d=Q_(a,o,s),p=e1(c),h=e1(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const BY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:FY};function UY(e,t,n){var r=bo(e),o=[nr,tr].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,Hr].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function jY(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=z$.reduce(function(p,h){return p[h]=UY(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const HY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jY};function VY(e){var t=e.state,n=e.name;t.modifiersData[n]=Y$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const WY={name:"popperOffsets",enabled:!0,phase:"read",fn:VY,data:{}};function zY(e){return e==="x"?"y":"x"}function qY(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,d=n.rootBoundary,p=n.altBoundary,h=n.padding,g=n.tether,y=g===void 0?!0:g,_=n.tetherOffset,S=_===void 0?0:_,C=xa(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),T=bo(t.placement),w=ll(t.placement),E=!w,O=av(T),$=zY(O),P=t.modifiersData.popperOffsets,k=t.rects.reference,I=t.rects.popper,H=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,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 G,te=O==="y"?tr:nr,we=O==="y"?jr:Hr,be=O==="y"?"height":"width",Ae=P[O],Ie=Ae+C[te],Ye=Ae-C[we],ft=y?-I[be]/2:0,Le=w===rl?k[be]:I[be],Ge=w===rl?-I[be]:-k[be],Q=t.elements.arrow,ae=y&&Q?lv(Q):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:K$(),xe=fe[te],He=fe[we],De=na(0,k[be],ae[be]),tt=E?k[be]/2-ft-De-xe-D.mainAxis:Le-De-xe-D.mainAxis,gn=E?-k[be]/2+ft+De+He+D.mainAxis:Ge+De+He+D.mainAxis,ln=t.elements.arrow&&Ga(t.elements.arrow),L=ln?O==="y"?ln.clientTop||0:ln.clientLeft||0:0,B=(G=F==null?void 0:F[O])!=null?G:0,Z=Ae+tt-B-L,le=Ae+gn-B,ie=na(y?Jc(Ie,Z):Ie,Ae,y?rs(Ye,le):Ye);P[O]=ie,z[O]=ie-Ae}if(a){var pe,$e=O==="x"?tr:nr,he=O==="x"?jr:Hr,me=P[$],se=$==="y"?"height":"width",Re=me+C[$e],Pe=me-C[he],Me=[tr,nr].indexOf(T)!==-1,je=(pe=F==null?void 0:F[$])!=null?pe:0,rt=Me?Re:me-k[se]-I[se]-je+D.altAxis,mt=Me?me+k[se]+I[se]-je-D.altAxis:Pe,ct=y&&Me?gY(rt,me,mt):na(y?rt:Re,me,y?mt:Pe);P[$]=ct,z[$]=ct-me}t.modifiersData[r]=z}}const KY={name:"preventOverflow",enabled:!0,phase:"main",fn:qY,requiresIfExists:["offset"]};function GY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function XY(e){return e===lo(e)||!Fr(e)?uv(e):GY(e)}function JY(e){var t=e.getBoundingClientRect(),n=il(t.width)/e.offsetWidth||1,r=il(t.height)/e.offsetHeight||1;return n!==1||r!==1}function YY(e,t,n){n===void 0&&(n=!1);var r=Fr(t),o=Fr(t)&&JY(t),s=Ti(t),l=sl(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((So(t)!=="body"||dv(s))&&(a=XY(t)),Fr(t)?(c=sl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=cv(s))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function ZY(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 QY(e){var t=ZY(e);return cY.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function eZ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function tZ(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 t1={placement:"bottom",modifiers:[],strategy:"absolute"};function n1(){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 nZ(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?t1:o;return function(a,c,d){d===void 0&&(d=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},t1,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(T){var w=typeof T=="function"?T(p.options):T;S(),p.options=Object.assign({},s,p.options,w),p.scrollParents={reference:ol(a)?ra(a):a.contextElement?ra(a.contextElement):[],popper:ra(c)};var E=QY(tZ([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),_(),y.update()},forceUpdate:function(){if(!g){var T=p.elements,w=T.reference,E=T.popper;if(n1(w,E)){p.rects={reference:YY(w,Ga(E),p.options.strategy==="fixed"),popper:lv(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 O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var $=p.orderedModifiers[O],P=$.fn,k=$.options,I=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:I,name:H,instance:y})||p)}}}},update:eZ(function(){return new Promise(function(C){y.forceUpdate(),C(p)})}),destroy:function(){S(),g=!0}};if(!n1(a,c))return y;y.setOptions(d).then(function(C){!g&&d.onFirstUpdate&&d.onFirstUpdate(C)});function _(){p.orderedModifiers.forEach(function(C){var T=C.name,w=C.options,E=w===void 0?{}:w,O=C.effect;if(typeof O=="function"){var $=O({state:p,name:T,instance:y,options:E}),P=function(){};h.push($||P)}})}function S(){h.forEach(function(C){return C()}),h=[]}return y}}var rZ=[CY,WY,xY,pY,HY,DY,KY,_Y,BY],oZ=nZ({defaultModifiers:rZ});function iZ(e){let t=_e(null),n=_e(null);return vt(()=>{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}=oZ(s,o,e);r(l)})}),[t,n]}const sZ=ge({data(){return{query:"",data:""}},emits:["addContributor","createContributor","close"],setup(){let[e,t]=iZ({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:K.contributors.contributors,episodeContributions:K.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:J9,XIcon:Ua,ChevronDownIcon:Lx,Combobox:e$,ComboboxButton:t$,ComboboxInput:n$,ComboboxLabel:UU,ComboboxOption:o$,ComboboxOptions:r$,UserCircleIcon:Ux,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=X.get(e,["target","value"],"")},close(){this.$emit("close")}}}),lZ={class:"block hover:bg-gray-50"},aZ={class:"flex items-center px-4 py-4 sm:px-6"},uZ={class:"flex min-w-0 flex-1 items-center"},cZ={class:"min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4"},dZ={class:"relative mt-2 max-w-sm"},fZ={ref:"container"},pZ={class:"flex items-center"},hZ=["src","onError"],mZ={class:"flex space-x-2 justify-end"};function gZ(e,t,n,r,o,s){const l=J("ComboboxLabel"),a=J("ComboboxInput"),c=J("ChevronDownIcon"),d=J("ComboboxButton"),p=J("UserCircleIcon"),h=J("CheckIcon"),g=J("ComboboxOption"),y=J("ComboboxOptions"),_=J("Combobox"),S=J("x-icon");return N(),V("div",lZ,[v("div",aZ,[v("div",uZ,[v("div",cZ,[q(_,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=C=>e.data=C)},{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}),v("div",dZ,[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]=C=>e.filterContributors(C)),displayValue:()=>e.query},null,8,["displayValue"]),q(d,{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})]),v("div",fZ,[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,C=>(N(),bt(g,{key:C.id||"create",value:C,as:"template"},{default:ye(({active:T,selected:w})=>[v("li",{class:St(["relative cursor-default select-none py-2 pl-3 pr-9",T?"bg-indigo-600 text-white":"text-gray-900"])},[v("div",pZ,[C.avatar_url?(N(),V("img",{key:0,src:C.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>C.avatar_url=""},null,40,hZ)):Ke("",!0),C.avatar_url?Ke("",!0):(N(),bt(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),v("span",{class:St(["ml-3 truncate",w&&"font-semibold"])},U(C.realname),3)]),w?(N(),V("span",{key:0,class:St(["absolute inset-y-0 right-0 flex items-center pr-4",T?"text-white":"text-indigo-600"])},[q(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):Ke("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):Ke("",!0)],512)]),_:1},8,["modelValue"])])]),v("div",mZ,[v("button",{class:"text-red-600",onClick:t[2]||(t[2]=C=>e.close())},[q(S,{class:"w-5 h-5"})])])])])}const vZ=Be(sZ,[["render",gZ]]),yZ=ge({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lg,Contribution:ZJ,AddContribution:vZ},data(){return{addContributorInput:!1}},setup(){return{dispatch:it().dispatch,state:yt({contributions:K.episode.contributions,roles:K.contributors.roles,groups:K.contributors.groups})}},created(){this.dispatch(o2())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(zE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(v7(e))},closeAddContributor(){this.addContributorInput=!1}}}),bZ={role:"list",class:"divide-y divide-gray-200"},_Z={key:0,class:"mb-0"},wZ={class:"py-5 px-6 border-t border-gray-200"};function SZ(e,t,n,r,o,s){const l=J("Contribution"),a=J("AddContribution"),c=J("plus-sm-icon"),d=J("podlove-button"),p=J("module");return N(),bt(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:ye(()=>[]),default:ye(()=>[v("ul",bZ,[(N(!0),V(Fe,null,Mt(e.state.contributions,(h,g)=>(N(),V("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(N(),bt(l,{key:0,data:h,first:g===0,last:g===e.state.contributions.length-1},null,8,["data","first","last"])):Ke("",!0)]))),128)),e.addContributorInput?(N(),V("li",_Z,[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())})])):Ke("",!0)]),v("div",wZ,[q(d,{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"])}const EZ=Be(yZ,[["render",SZ]]),xZ=ge({setup(){return{state:yt({slug:K.episode.slug,baseUri:K.settings.mediaFileBaseUri}),dispatch:it().dispatch}},methods:{updateSlug(e){this.dispatch(wt({prop:"slug",value:e.target.value})),this.dispatch(F2())}},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"},CZ={class:"mt-2 sm:col-span-2 sm:mt-0"},TZ={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"},OZ={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},AZ=["value"],IZ=v("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1);function PZ(e,t,n,r,o,s){return N(),V(Fe,null,[v("label",$Z,U(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),v("div",CZ,[v("div",TZ,[v("span",OZ,U(e.assetPrefix),1),v("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,AZ),IZ])])],64)}const kZ=Be(xZ,[["render",PZ]]),RZ=ge({components:{PodloveButton:Vn,UploadIcon:Nx},setup(){return{state:yt({}),dispatch:it().dispatch}},methods:{uploadIntent(){this.dispatch(wD())}},computed:{}}),LZ={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},NZ={class:"mt-2 sm:col-span-2 sm:mt-0"};function MZ(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button");return N(),V(Fe,null,[v("label",LZ,U(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),v("div",NZ,[v("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)}const DZ=Be(RZ,[["render",MZ]]),FZ={},BZ={class:"text-center"},UZ=v("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[v("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),jZ={class:"mt-2 text-sm font-semibold text-gray-900"},HZ={class:"mt-1 text-sm text-gray-500"};function VZ(e,t){return N(),V("div",BZ,[UZ,v("h3",jZ,U(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),v("p",HZ,U(e.__("Please go to Podlove → Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}const WZ=Be(FZ,[["render",VZ]]),zZ=ge({components:{CheckCircleIcon:Zq,XCircleIcon:V$,CloudIcon:Mx,AssetsEmptyState:WZ},setup(){return{state:yt({files:K.mediafiles.files,duration:K.episode.duration}),dispatch:it().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(yD(r)):this.dispatch(bD(r))},handleVerify(e){this.dispatch(_D(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}}}),qZ={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},KZ={class:"mt-2 sm:col-span-2 sm:mt-0"},GZ={key:0},XZ={class:"min-w-full table-fixed divide-y divide-gray-300"},JZ={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},YZ={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},ZZ={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},QZ=v("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),eQ={class:"divide-y divide-gray-200 bg-white"},tQ={class:"relative px-7 sm:w-12 sm:px-6"},nQ={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},rQ=["value","checked"],oQ={class:"text-sm"},iQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},sQ={class:"flex flex-col"},lQ=["href"],aQ={class:"flex"},uQ={key:3},cQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},dQ=["onClick"],fQ={class:"mt-3 text-sm leading-6 text-gray-600"};function pQ(e,t,n,r,o,s){const l=J("CloudIcon"),a=J("CheckCircleIcon"),c=J("XCircleIcon"),d=J("AssetsEmptyState");return N(),V(Fe,null,[v("label",qZ,U(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),v("div",KZ,[e.hasFiles?(N(),V("div",GZ,[v("table",XZ,[v("thead",null,[v("tr",null,[v("th",JZ,U(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),v("th",YZ,U(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),v("th",ZZ,U(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),QZ])]),v("tbody",eQ,[(N(!0),V(Fe,null,Mt(e.files,p=>(N(),V("tr",{key:p.asset_id,class:St({"opacity-50":!p.enable})},[v("td",tQ,[p.is_verifying?(N(),V("div",nQ,[q(l,{class:"h-5 w-5","aria-hidden":"true"})])):Ke("",!0),v("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,rQ)]),v("td",oQ,U(p.asset),1),v("td",iQ,[v("div",sQ,[v("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},U(p.url),9,lQ),v("span",aQ,[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:St(["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",uQ,U(e.fileSize(p)),1)):(N(),V("span",{key:2,class:St({"text-gray-400":!p.enable,"text-red-400":p.enable})},U(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),v("td",cQ,[v("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,dQ)])],2))),128))])]),v("p",fQ,U(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.duration),1)])):(N(),bt(d,{key:1}))])],64)}const hQ=Be(zZ,[["render",pQ]]),mQ=ge({components:{Module:Nn,RefreshIcon:kx,MediaSlug:kZ,MediaUpload:DZ,AssetsTable:hQ},setup(){return{state:yt({isInitializing:K.mediafiles.isInitializing,modules:K.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(mD())}}),gQ={key:0,class:"w-full flex justify-center m-12 text-center"},vQ={class:"animate-pulse mt-4 flex space-x-4"},yQ={key:1},bQ={class:"px-6"},_Q={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"},wQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},SQ={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},EQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function xQ(e,t,n,r,o,s){const l=J("RefreshIcon"),a=J("MediaSlug"),c=J("MediaUpload"),d=J("AssetsTable"),p=J("module");return N(),bt(p,{name:"mediafiles",title:"Media Files"},{default:ye(()=>[v("div",null,[e.isInitializing?(N(),V("div",gQ,[v("div",vQ,[q(l,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(N(),V("div",yQ,[v("div",bQ,[v("div",_Q,[v("div",wQ,[q(a)]),e.isMediaUploadEnabled?(N(),V("div",SQ,[q(c)])):Ke("",!0),v("div",EQ,[q(d)])])])]))])]),_:1})}const $Q=Be(mQ,[["render",xQ]]),CQ=ge({name:"PodloveCombobox",components:{Combobox:e$,ComboboxButton:t$,ComboboxInput:n$,ComboboxOption:o$,ComboboxOptions:r$,CheckIcon:Yd,SelectorIcon:Zd},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=""}}}),TQ={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},OQ={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},AQ={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},IQ={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},PQ={key:0,class:"text-xs text-red-400 mt-1"};function kQ(e,t,n,r,o,s){const l=J("ComboboxInput"),a=J("SelectorIcon"),c=J("ComboboxButton"),d=J("CheckIcon"),p=J("ComboboxOption"),h=J("ComboboxOptions"),g=J("Combobox",!0);return N(),bt(g,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:ye(()=>[v("div",TQ,[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"]),v("div",OQ,U(e.label),1),q(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),q(xi,{"leave-active-class":`
     148`;V$(Tz);W$.__scopeId="data-v-5784ed69";var Oz=(()=>{const e=W$;return e.install=t=>{t.component("Popper",e)},e})();const Az=ve({components:{Popper:Oz},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 Iz(e,t,n,r,o,s){const l=J("Popper");return N(),V("div",null,[q(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:ye(()=>[v("div",Pz,[_r(e.$slots,"content")])]),default:ye(()=>[_r(e.$slots,"trigger")]),_:3})])}const kz=Be(Az,[["render",Iz]]),Rz=ve({components:{PodloveButton:zn,Tooltip:kz},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(a7(n.target.result))},t.readAsText(X.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),Lz={class:"text-xs"},Nz={class:"text-gray-600 leading-3 font-semibold mb-2"},Mz={class:"text-gray-500 ml-1"},Dz={class:"mb-1"},Fz={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},Bz=v("code",null,".psc",-1),Uz={class:"mb-1"},jz={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},Hz={class:"mb-1"},Vz={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},Wz=v("code",null,".txt",-1);function zz(e,t,n,r,o,s){const l=J("podlove-button"),a=J("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}),v("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:ye(()=>[v("div",Lz,[v("p",Nz,U(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),v("ul",Mz,[v("li",Dz,[v("a",Fz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Xe(" ("),Bz,Xe("), ")]),v("li",Uz,[v("a",jz,U(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),v("li",Hz,[v("a",Vz,U(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),Wz,Xe(") ")])])])]),_:1})}const qz=Be(Rz,[["render",zz]]),Kz=ve({components:{Popover:x$,PopoverButton:Pj,PopoverPanel:Ij}});function Gz(e,t,n,r,o,s){const l=J("PopoverButton"),a=J("PopoverPanel"),c=J("Popover",!0);return N(),bt(c,{class:"relative"},{default:ye(()=>[q(l,null,{default:ye(()=>[_r(e.$slots,"trigger")]),_:3}),q($i,{"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(()=>[_r(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}const z$=Be(Kz,[["render",Gz]]),Xz=ve({components:{Popover:z$,PodloveButton:zn},setup(){return{dispatch:it().dispatch}},methods:{download(e){this.dispatch(c7(e))}}}),Jz={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Yz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Zz=v("div",{class:"text-sm text-gray-500"},".psc",-1),Qz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},eq=v("div",{class:"text-sm text-gray-500"},".txt",-1);function tq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("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(()=>[v("div",Jz,[v("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"},[v("div",Yz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Zz]),v("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"},[v("div",Qz,U(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),eq])])]),_:1})])}const nq=Be(Xz,[["render",tq]]),rq=ve({components:{Module:Mn,TabsContainer:R$,Tab:k$,ChaptersForm:hW,ChaptersImport:qz,ChaptersExport:nq},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(o7())}});function oq(e,t,n,r,o,s){const l=J("chapters-import"),a=J("chapters-export"),c=J("chapters-form"),d=J("module");return N(),bt(d,{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"])}const iq=Be(rq,[["render",oq]]),sq={},lq={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},aq=v("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),uq=[aq];function cq(e,t){return N(),V("svg",lq,uq)}const dq=Be(sq,[["render",cq]]),fq=ve({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:zn,UploadIcon:Fx,DocumentTextIcon:Ux},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(R7())},handleImport(){const e=this.$refs.import;if(e)try{const t=new FileReader;t.onload=n=>{this.dispatch(k7(n.target.result))},t.readAsText(X.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),pq={ref:"importForm",class:"cursor-pointer"},hq={class:"grid grid-cols-2"};function mq(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button");return N(),V("form",pq,[v("div",hq,[v("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"]),v("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),v("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)}const gq=Be(fq,[["render",mq]]),vq=ve({components:{Avatar:dq,TranscriptsImport:gq,DocumentTextIcon:Ux},setup(){return{state:yt({transcripts:K.transcripts.list,contributors:K.contributors.contributors,voices:K.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=X.last(e);return n&&n.voiceId===t.voice?[...X.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:X.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Mt(e).prettyShort}}}),yq={key:0,class:"h-96 p-2 overflow-x-auto"},bq={class:"mr-2 w-12 text-gray-400 select-none"},_q=["src"],wq={class:"w-full font-light text-sm mr-2"},Sq={class:"block font-bold"},Eq={class:"flex justify-between"},xq={class:"ml-1 font-mono select-none"},$q={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"},Tq={class:"mt-1 text-sm text-gray-500"},Oq={class:"mt-6"};function Aq(e,t,n,r,o,s){const l=J("avatar"),a=J("document-text-icon"),c=J("transcripts-import");return e.transcripts.length>0?(N(),V("div",yq,[(N(!0),V(Fe,null,Dt(e.transcripts,(d,p)=>{var h,g,y;return N(),V("div",{class:"flex mb-2",key:`transcript-${p}`},[v("div",bq,[(h=d==null?void 0:d.voice)!=null&&h.avatar?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:(g=d==null?void 0:d.voice)==null?void 0:g.avatar},null,8,_q)):(N(),bt(l,{key:1}))]),v("div",wq,[v("span",Sq,U((y=d==null?void 0:d.voice)==null?void 0:y.name),1),v("span",Eq,[v("span",null,[(N(!0),V(Fe,null,Dt(d.content,(_,S)=>(N(),V("span",{class:"mr-1",key:`transcript-${p}-content-${S}`},U(_.text),1))),128))]),v("span",xq,U(e.formatTime(d.content[0].start)),1)])])])}),128))])):(N(),V("div",$q,[q(a,{class:"mx-auto h-12 w-12 text-gray-400"}),v("h3",Cq,U(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),v("p",Tq,U(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),v("div",Oq,[q(c,{outlet:"content",class:"mr-1"})])]))}const Pq=Be(vq,[["render",Aq]]),Iq=ve({components:{PodloveButton:zn,Modal:Wa},data(){return{modalOpen:!1}},setup(){return{state:yt({contributors:K.contributors.contributors,voices:K.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(I7({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),kq={key:0},Rq={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Lq={class:"text-lg leading-6 font-medium text-gray-900"},Nq={for:"country",class:"block text-sm font-medium text-gray-700"},Mq=["value","onChange"],Dq=v("option",{value:"0"},null,-1),Fq=["value"];function Bq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("modal");return e.state.voices.length>0?(N(),V("div",kq,[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(()=>[v("div",Rq,[v("h3",Lq,U(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Dt(e.state.voices,(c,d)=>(N(),V("div",{key:`voice-${d}`,class:St(["w-full py-2 px-4",{"bg-white":d%2}])},[v("label",Nq,U(c.voice),1),v("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)},[Dq,(N(!0),V(Fe,null,Dt(e.sortedContributors,(p,h)=>(N(),V("option",{key:`voice-${d}-contributor-${h}`,value:p.id},U(p.publicname||p.realname||p.nickname),9,Fq))),128))],40,Mq)],2))),128))]),_:1},8,["open"])])):He("",!0)}const Uq=Be(Iq,[["render",Bq]]),jq=[{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"}],Hq=ve({components:{Popover:z$,PodloveButton:zn},setup(){return{state:yt({post:K.post.id,baseUrl:K.runtime.baseUrl,transcripts:K.transcripts.list})}},data(){return{exportTypes:jq}}}),Vq={key:0},Wq={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},zq=["download","href"],qq={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Kq={class:"text-sm text-gray-500"};function Gq(e,t,n,r,o,s){const l=J("podlove-button"),a=J("popover");return e.state.transcripts.length>0?(N(),V("div",Vq,[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(()=>[v("div",Wq,[(N(!0),V(Fe,null,Dt(e.exportTypes,(c,d)=>(N(),V("a",{key:`type-${d}`,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"},[v("div",qq,U(c.title),1),v("div",Kq,U(c.ending),1)],8,zq))),128))])]),_:1})])):He("",!0)}const Xq=Be(Hq,[["render",Gq]]),Jq=ve({components:{PodloveButton:zn,Modal:Wa,ExclamationIcon:jx,DialogTitle:_j},data(){return{modalVisible:!1}},setup(){return{state:yt({transcripts:K.transcripts.list}),dispatch:it().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(L7())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),Yq={key:0},Zq={class:"sm:flex sm:items-start"},Qq={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"},eK={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},tK={class:"mt-2"},nK={class:"text-sm text-gray-500"},rK={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function oK(e,t,n,r,o,s){const l=J("podlove-button"),a=J("exclamation-icon"),c=J("DialogTitle"),d=J("modal");return e.state.transcripts.length>0?(N(),V("div",Yq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:ye(()=>[Xe("Clear")]),_:1}),q(d,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[v("div",Zq,[v("div",Qq,[q(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),v("div",eK,[q(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:ye(()=>[Xe(" Clear Transcript ")]),_:1}),v("div",tK,[v("p",nK,U(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),v("div",rK,[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"])])):He("",!0)}const iK=Be(Jq,[["render",oK]]),sK=ve({components:{Module:Mn,TabsContainer:R$,Tab:k$,TranscriptsList:Pq,TranscriptsVoices:Uq,TranscriptsExport:Xq,TranscriptsDelete:iK},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(i2()),this.dispatch(O7())}});function lK(e,t,n,r,o,s){const l=J("transcripts-voices"),a=J("transcripts-export"),c=J("transcripts-delete"),d=J("transcripts-list"),p=J("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(d)]),_:1},8,["title"])}const aK=Be(sK,[["render",lK]]);function uK(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"},[v("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 Yd(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"},[v("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 Zd(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"},[v("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 q$(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"},[v("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 cK=ve({props:["file_key","track_index"],components:{Listbox:Wg,ListboxButton:qg,ListboxLabel:zg,ListboxOption:Gg,ListboxOptions:Kg,CheckIcon:Yd,SelectorIcon:Zd,DocumentCheckIcon:fU},setup(){return{state:yt({services:K.auphonic.incomingServices,serviceFiles:K.auphonic.serviceFiles,fileSelections:K.auphonic.fileSelections,episodeSlug:K.episode.slug}),dispatch:it().dispatch}},methods:{set(e,t){this.dispatch(O2({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch(P2({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(wt({prop:"slug",value:e})),this.dispatch(j2())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return X.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}}}),dK={class:"flex flex-col gap-2"},fK=v("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),pK=["value","selected"],hK={key:0},mK={key:0},gK=["for"],vK={class:"sm:mt-1 rounded-md bg-indigo-50 px-3 py-2 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-100"},yK={key:0,class:"sm:mt-1 text-sm font-normal"},bK=["id"],_K={key:1},wK=["for"],SK={class:"mt-1"},EK=["id","value"],xK={key:2},$K={key:0},CK=["for"],TK=["id","value"],OK=["value"],AK={key:1},PK={key:3,class:"mt-3"},IK={class:"font-mono"};function kK(e,t,n,r,o,s){const l=J("DocumentCheckIcon");return N(),V("div",null,[v("div",dK,[v("div",null,[fK,v("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,Dt(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,pK))),128))],32)]),e.currentService?(N(),V("div",hK,[e.currentService.type==="file"?(N(),V("div",mK,[v("label",{for:e.file_key+"file-upload",class:"relative flex items-center gap-2 cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none"},[v("div",vK,U(e.__("Choose File","podlove-podcasting-plugin-for-wordpress")),1),e.filenameSelectedForUpload?(N(),V("div",yK,[Xe(U(e.__("Selected for Upload:","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",null,U(e.filenameSelectedForUpload),1)])):He("",!0),v("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,bK)],8,gK)])):e.currentService.type==="url"?(N(),V("div",_K,[v("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,wK),v("div",SK,[v("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,EK)])])):(N(),V("div",xK,[e.serviceFiles!==null?(N(),V("div",$K,[v("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,CK),v("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,Dt(e.serviceFiles,a=>(N(),V("option",{key:a,value:a,d:""},U(a),9,OK))),128))],40,TK)])):(N(),V("div",AK,"..."))])),e.shouldSuggestSlug?(N(),V("div",PK,[v("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"}),v("span",null,[Xe(U(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",IK,U(e.slugCandidate),1)])])])):He("",!0)])):He("",!0)])])}const RK=Be(cK,[["render",kK]]),LK=ve({components:{ClipboardCheckIcon:cU,ExternalLinkIcon:Mx,ExclamationIcon:jx},setup(){return{state:yt({production:K.auphonic.production,title:K.episode.title,subtitle:K.episode.subtitle,summary:K.episode.summary,duration:K.episode.duration,slug:K.episode.slug,license_name:K.episode.license_name,license_url:K.episode.license_url,chapters:K.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(NE(r));break;default:this.dispatch(wt({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))}}}),NK={key:0,class:"rounded-md bg-green-50 p-4"},MK={class:"flex"},DK={class:"flex-shrink-0"},FK={class:"ml-3"},BK={class:"text-sm font-medium text-green-800"},UK={class:"mt-2 text-sm text-green-700"},jK=["href"],HK={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},VK={class:"flex"},WK={class:"flex-shrink-0"},zK={class:"ml-3"},qK={class:"text-sm font-medium text-yellow-800"},KK={class:"mt-2 text-sm text-yellow-700"},GK={key:2,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},XK={class:"p-6"},JK=v("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),YK={class:"mt-1 text-sm text-gray-500"},ZK={class:"mt-6 flow-root"},QK={role:"list",class:"-my-5 divide-y divide-gray-200"},eG={class:"flex items-center space-x-4"},tG={class:"min-w-0 flex-1"},nG={class:"truncate text-sm text-gray-500"},rG={class:"truncate text-sm font-medium text-gray-900"},oG=["onClick"],iG={class:"hidden sm:inline"},sG={class:"mt-6"},lG={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},aG={class:"p-6"};function uG(e,t,n,r,o,s){const l=J("ClipboardCheckIcon"),a=J("ExternalLinkIcon"),c=J("ExclamationIcon");return N(),V("div",null,[e.production.status==3?(N(),V("div",NK,[v("div",MK,[v("div",DK,[q(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),v("div",FK,[v("h3",BK,U(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),v("div",UK,[v("p",null,[v("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,jK),Xe(" "+U(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):He("",!0),e.production.warning_message?(N(),V("div",HK,[v("div",VK,[v("div",WK,[q(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),v("div",zK,[v("h3",qK,U(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),v("div",KK,[v("p",null,U(e.production.warning_message),1)])])])])):He("",!0),e.visibleEntries.length>0?(N(),V("div",GK,[v("div",XK,[v("div",null,[JK,v("p",YK,U(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",ZK,[v("ul",QK,[(N(!0),V(Fe,null,Dt(e.visibleEntries,d=>(N(),V("li",{key:d.key,class:"py-4"},[v("div",eG,[v("div",tG,[v("p",nG,[v("em",null,U(d.title),1),Xe(" "+U(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),v("p",rG,U(e.renderEntryPreview(d)),1)]),v("div",null,[v("button",{onClick:xc(p=>e.importMeta(d.title,d.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),v("span",iG," "+U(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,oG)])])]))),128))])]),v("div",sG,[v("button",{onClick:t[0]||(t[0]=xc((...d)=>e.importAllMeta&&e.importAllMeta(...d),["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",lG,[v("div",aG,U(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}const cG=Be(LK,[["render",uG]]),dG=ve({components:{Switch:Nj,SwitchGroup:Lj,SwitchLabel:Mj},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(I2(e))}},setup(){return{state:yt({publishWhenDone:K.auphonic.publishWhenDone}),dispatch:it().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),fG={class:"text-sm text-gray-900"};function pG(e,t,n,r,o,s){const l=J("Switch"),a=J("SwitchLabel"),c=J("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:St([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(()=>[v("span",{"aria-hidden":"true",class:St([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(()=>[v("span",fG,U(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}const hG=Be(dG,[["render",pG]]),mG=ve({props:{className:{type:String,default:""}}}),gG=v("g",{transform:"translate(-12.73496,-48.464)"},[v("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"}),v("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),vG=[gG];function yG(e,t,n,r,o,s){return N(),V("svg",{class:St(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},vG,2)}const iv=Be(mG,[["render",yG]]),bG=ve({components:{PodloveButton:zn,FileChooser:RK,CogIcon:dU,ChevronDownIcon:Dx,ChevronRightIcon:aU,XIcon:Ua,DatabaseIcon:uU,ExternalLinkIcon:Mx,CloudIcon:Bx,TrashIcon:pU,ArrowDownIcon:Lx,ArrowDownTrayIcon:rU,AuphonicLogo:iv,DonePage:cG,WebhookToggle:hG},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:yt({production:K.auphonic.production,tracks:K.auphonic.tracks,isSaving:K.auphonic.isSaving,progress:e=>t=>K.progress.progress(e,t)}),dispatch:it().dispatch}},methods:{saveProduction(){this.dispatch($2({uuid:this.production.uuid}))},startProduction(){this.dispatch(C2({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(E2())},addTrack(){this.dispatch(uD())},removeTrack(e){this.dispatch(A2(e))},updateTrack(e,t,n){this.dispatch(P2({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!X.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)},uploadProgress(e){return this.state.progress(e)||null}},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}}}),_G={class:"pb-5 space-y-4"},wG={class:"space-y-8"},SG={class:"bg-white px-4 sm:px-6"},EG={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},xG={class:"ml-4 mt-4"},$G={class:"flex items-center"},CG={class:"flex-shrink-0"},TG={class:"ml-4"},OG={class:"text-base font-semibold leading-6 text-gray-900"},AG={class:"text-sm text-gray-500"},PG={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},IG={key:0,class:"inline-flex items-center animate-pulse text-green-600"},kG={key:0},RG={key:1},LG={class:"space-y-4"},NG={key:0},MG={key:1},DG={class:"rounded-md bg-indigo-50 p-4"},FG={class:"flex"},BG={class:"flex-shrink-0"},UG={class:"ml-3"},jG={class:"text-sm font-medium text-indigo-800"},HG={class:"mt-2 text-sm text-indigo-700"},VG={key:2},WG={key:3},zG={class:"bg-white shadow overflow-hidden rounded-md"},qG={class:"px-6 pt-4 hidden md:block"},KG={class:"md:grid md:grid-cols-3 md:gap-12"},GG={class:"block text-sm font-medium text-gray-700 md:col-span-1"},XG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},JG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},YG=v("div",{class:"block w-8 md:col-span-1"},null,-1),ZG={role:"list",class:"divide-y divide-gray-200"},QG={class:"md:grid md:grid-cols-3 md:gap-12"},eX={class:"md:col-span-1"},tX=["for"],nX=["id","value","onInput"],rX={class:"mt-5 md:mt-0 md:col-span-1"},oX={class:"sm:items-baseline"},iX={class:"mt-4 sm:mt-0"},sX={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},lX={key:1},aX={class:"mt-2","aria-hidden":"true"},uX={class:"overflow-hidden rounded-full bg-gray-100"},cX={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},dX={class:"md:col-span-1"},fX={key:0,role:"group",class:"bg-gr"},pX={class:"sm:items-baseline"},hX={class:""},mX={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},gX={class:"max-w-lg relative"},vX=["title","onClick"],yX={class:"space-y-4"},bX={class:"relative flex items-start"},_X={class:"flex items-center h-5"},wX=["id","checked","onInput"],SX={class:"ml-3 text-sm"},EX=["for"],xX={class:"relative flex items-start"},$X={class:"flex items-center h-5"},CX=["id","checked","onInput"],TX={class:"ml-3 text-sm"},OX=["for"],AX={class:"relative flex justify-start align-middle items-center gap-3"},PX={class:"text-sm"},IX=["for"],kX=["value","onInput","id"],RX={value:"auto"},LX={value:"foreground"},NX={value:"background"},MX={value:"ducking"},DX={value:"unchanged"},FX={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"},UX={class:"sm:col-span-4"},jX={class:"text-base font-medium text-gray-900"},HX={class:"mt-2"},VX={key:0,class:"mt-2 px-3 py-2 bg-gray-100 rounded-md text-sm text-gray-700 break-all"},WX={key:1},zX={class:"mt-2","aria-hidden":"true"},qX={class:"overflow-hidden rounded-full bg-gray-100"},KX={class:"mt-1 hidden grid-cols-4 text-sm font-medium text-gray-600 sm:grid"},GX={class:"pt-5"},XX={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},JX={class:"flex justify-end gap-3"},YX=["href"];function ZX(e,t,n,r,o,s){var T,w,E,O;const l=J("AuphonicLogo"),a=J("CloudIcon"),c=J("ArrowDownTrayIcon"),d=J("XIcon"),p=J("DatabaseIcon"),h=J("DonePage"),g=J("FileChooser"),y=J("TrashIcon"),_=J("podlove-button"),S=J("WebhookToggle"),C=J("ExternalLinkIcon");return N(),V("form",_G,[v("div",wG,[v("div",SG,[v("div",EG,[v("div",xG,[v("div",$G,[v("div",CG,[q(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),v("div",TG,[v("h3",OG,U((w=(T=e.production)==null?void 0:T.metadata)==null?void 0:w.title),1),v("p",AG,U(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),v("div",PG,[e.isSaving?(N(),V("span",IG,[q(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):He("",!0),e.production.status!==3?(N(),V("button",{key:1,onClick:t[0]||(t[0]=x=>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",kG,U(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):He("",!0),e.showImportPage?He("",!0):(N(),V("span",RG,U(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):He("",!0),v("button",{onClick:t[1]||(t[1]=(...x)=>e.deselectProduction&&e.deselectProduction(...x)),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(d,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),v("span",null,U(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),v("div",LG,[e.showUploadScreen?(N(),V("div",NG,U(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):He("",!0),e.showProcessingScreen?(N(),V("div",MG,[v("div",DG,[v("div",FG,[v("div",BG,[q(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),v("div",UG,[v("h3",jG,U(e.production.status_string),1),v("div",HG,[v("p",null,U(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):He("",!0),e.production.status==3||e.showImportPage?(N(),V("div",VG,[q(h)])):He("",!0),e.isMultitrack&&e.showTrackEditor?(N(),V("div",WG,[v("div",zG,[v("div",qG,[v("div",KG,[v("div",GG,U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),v("div",XG,U(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),v("div",JG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),YG])]),v("ul",ZG,[(N(!0),V(Fe,null,Dt(e.tracks,(x,I)=>(N(),V("li",{key:`xtrack-${I}`,class:"px-6 py-4"},[v("div",QG,[v("div",eX,[v("label",{for:`track-id-${I}`,class:"block md:hidden text-sm font-medium text-gray-700"},U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),9,tX),v("input",{id:`track-id-${I}`,type:"text",value:x.identifier_new,onInput:k=>e.handleUpdateIdentifier(k,I),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,nX)]),v("div",rX,[v("div",oX,[v("div",iX,[q(g,{track_index:I,file_key:`${e.production.uuid}_t${I}`},null,8,["track_index","file_key"]),x.input_file_name?(N(),V("div",sX,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U(x.input_file_name),1)):He("",!0),e.uploadProgress(x.identifier)!=null?(N(),V("div",lX,[v("div",aX,[v("div",uX,[v("div",{class:"h-2 rounded-full bg-indigo-600",style:Wo({width:e.uploadProgress(x.identifier)+"%"})},null,4)]),v("div",cX,[v("div",null,U(e.uploadProgress(x.identifier))+"%",1)])])])):He("",!0)])])]),v("div",dX,[e.algorithmSettingsVisible(I)?(N(),V("div",fX,[v("div",pX,[v("div",hX,[v("div",mX,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),v("div",gX,[v("div",{title:e.__("Remove Track","podlove-podcasting-plugin-for-wordpress"),onClick:k=>e.removeTrack(x.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,vX),v("div",yX,[v("div",bX,[v("div",_X,[v("input",{id:`track_${I}_filtering`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:x.filtering,onInput:k=>e.handleToggleFiltering(k,I)},null,40,wX)]),v("div",SX,[v("label",{for:`track_${I}_filtering`,class:"text-gray-700"},U(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,EX)])]),v("div",null,[v("div",xX,[v("div",$X,[v("input",{id:`track_${I}_noisehum`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:x.noise_and_hum_reduction,onInput:k=>e.handleToggleNoiseHum(k,I)},null,40,CX)]),v("div",TX,[v("label",{for:`track_${I}_noisehum`,class:"text-gray-700"},U(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,OX)])])]),v("div",null,[v("div",AX,[v("div",PX,[v("label",{for:`track_${I}_fgbg`,class:"text-gray-700"},U(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,IX)]),v("select",{value:x.fore_background,onInput:k=>e.handleSelectForeBackground(k,I),id:`track_${I}_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"},[v("option",RX,U(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),v("option",LX,U(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",NX,U(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",MX,U(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),v("option",DX,U(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,kX)])])])])])])])):He("",!0)])])]))),128))]),v("div",FX,[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,[v("fieldset",UX,[v("legend",jX,U(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),v("div",HX,[q(g,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(N(),V("div",VX,[v("span",null,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.production.input_file),1)])):He("",!0),e.uploadProgress("singletrack")!=null?(N(),V("div",WX,[v("div",zX,[v("div",qX,[v("div",{class:"h-2 rounded-full bg-indigo-600",style:Wo({width:e.uploadProgress("singletrack")+"%"})},null,4)]),v("div",KX,[v("div",null,U(e.uploadProgress("singletrack"))+"%",1)])])])):He("",!0)])])])):He("",!0)])]),v("div",GX,[v("div",XX,[q(S),v("div",JX,[v("a",{href:(O=e.production)==null?void 0:O.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(C,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,YX),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"])])])])])}const QX=Be(bG,[["render",ZX]]),eJ=ve({components:{Listbox:Wg,ListboxButton:qg,ListboxLabel:zg,ListboxOption:Gg,ListboxOptions:Kg,CheckIcon:Yd,SelectorIcon:Zd},setup(){return{state:yt({productions:K.auphonic.productions,production:K.auphonic.production}),dispatch:it().dispatch}},methods:{setProduction(e){this.dispatch(ps(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}}}),tJ={class:"mt-1 relative"},nJ={class:"w-full inline-flex truncate"},rJ={key:0,class:"truncate"},oJ={key:1,class:"truncate"},iJ={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},sJ={class:"flex justify-between"},lJ={class:St(["font-normal","truncate"])};function aJ(e,t,n,r,o,s){const l=J("ListboxLabel"),a=J("SelectorIcon"),c=J("ListboxButton"),d=J("ListboxOption"),p=J("ListboxOptions"),h=J("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}),v("div",tJ,[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(()=>[v("span",nJ,[e.currentProduction?(N(),V("span",rJ,U(e.currentProduction.metadata.title),1)):(N(),V("span",oJ," "))]),v("span",iJ,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q($i,{"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,Dt(e.productions,g=>(N(),bt(d,{as:"template",key:g._select.date,value:g},{default:ye(({active:y})=>[v("li",{class:St([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[v("div",sJ,[v("span",lJ,[v("span",{class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(g._select.date),3),Xe(" "+U(g._select.name),1)]),v("span",{class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},U(g.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const uJ=Be(eJ,[["render",aJ]]),cJ=ve({components:{Listbox:Wg,ListboxButton:qg,ListboxLabel:zg,ListboxOption:Gg,ListboxOptions:Kg,CheckIcon:Yd,SelectorIcon:Zd},setup(){return{state:yt({presets:K.auphonic.presets,currentPreset:K.auphonic.preset}),dispatch:it().dispatch}},methods:{setPreset(e){this.dispatch(Sg(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)}}}),dJ={class:"mt-1 relative"},fJ={class:"w-full inline-flex truncate"},pJ={key:0,class:"truncate"},hJ={key:1,class:"truncate"},mJ={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},gJ={class:"flex"},vJ={class:St(["font-normal","truncate"])};function yJ(e,t,n,r,o,s){const l=J("ListboxLabel"),a=J("SelectorIcon"),c=J("ListboxButton"),d=J("ListboxOption"),p=J("ListboxOptions"),h=J("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}),v("div",dJ,[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(()=>[v("span",fJ,[e.currentPreset?(N(),V("span",pJ,U(e.currentPreset._select.name),1)):(N(),V("span",hJ," "))]),v("span",mJ,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q($i,{"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,Dt(e.presets,g=>(N(),bt(d,{as:"template",key:g._select.date,value:g},{default:ye(({active:y})=>[v("li",{class:St([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[v("div",gJ,[v("span",vJ,U(g._select.name),1),g._select.is_multitrack?(N(),V("span",{key:0,class:St([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):He("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}const bJ=Be(cJ,[["render",yJ]]),_J=ve({components:{Module:Mn,PodloveButton:zn,PlusSmIcon:Ng,RefreshIcon:Nx,SelectProduction:uJ,SelectPreset:bJ,AuphonicLogo:iv},data(){return{}},setup(){return{state:yt({presetUUID:K.auphonic.preset,presets:K.auphonic.presets,isInitializing:K.auphonic.isInitializing}),dispatch:it().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(oD())},createMultitrackProduction(){this.dispatch(iD())}},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"}}}),wJ={class:"m-6 text-center max-w-5xl"},SJ={key:0,class:"w-full flex justify-center"},EJ={class:"animate-pulse mt-4 flex space-x-4"},xJ={class:"mt-1 text-sm text-gray-500"},$J={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"},CJ={class:"flow-root sm:px-6"},TJ={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"},AJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},PJ={class:"w-full max-w-md"},IJ={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},kJ={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"},LJ={class:"text-sm font-medium text-gray-900"},NJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},MJ={class:"w-full max-w-md"};function DJ(e,t,n,r,o,s){const l=J("AuphonicLogo"),a=J("RefreshIcon"),c=J("SelectPreset"),d=J("plus-sm-icon"),p=J("podlove-button"),h=J("SelectProduction");return N(),V("div",null,[v("div",wJ,[q(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(N(),V("div",SJ,[v("div",EJ,[q(a,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):He("",!0),v("div",{class:St({"text-left":!0,"opacity-0":e.isInitializing})},[v("p",xJ,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),v("div",$J,[v("div",CJ,[v("div",TJ,[v("div",null,[v("h3",OJ,U(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),v("div",AJ,[v("div",PJ,[q(c)])]),v("div",IJ,[q(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:ye(()=>[q(d,{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"])])]),v("div",kJ,[v("div",RJ,[v("div",null,[v("h3",LJ,U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),v("div",NJ,[v("div",MJ,[q(h)])])])])],2)])])}const FJ=Be(_J,[["render",DJ]]),BJ=ve({components:{Module:Mn,ManageProductionForm:QX,StartScreen:FJ,AuphonicLogo:iv},setup(){return{state:yt({productionId:K.auphonic.productionId,isInitializing:K.auphonic.isInitializing}),dispatch:it().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(tD())}}),UJ={key:0},jJ={key:1,class:"m-7"};function HJ(e,t,n,r,o,s){const l=J("StartScreen"),a=J("ManageProductionForm"),c=J("module");return N(),bt(c,{name:"auphonic",title:"Auphonic"},{default:ye(()=>[e.isProductionSelected?He("",!0):(N(),V("div",UJ,[q(l)])),e.productionId?(N(),V("div",jJ,[q(a)])):He("",!0)]),_:1})}const VJ=Be(BJ,[["render",HJ]]),WJ=ve({components:{ArrowUpIcon:iU,ArrowDownIcon:Lx,XIcon:Ua,UserCircleIcon:Vx,PencilIcon:Hx},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:K.contributors.roles,groups:K.contributors.groups,baseUrl:K.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(v7(this.data))},moveContributionDown(){this.dispatch(y7(this.data))},deleteContribution(){this.dispatch(b7(this.data))},updateRole(e){const t=X.get(e,["target","value"]);this.dispatch(Ip({...this.data,role_id:t}))},updateGroup(e){const t=X.get(e,["target","value"]);console.log(t),this.dispatch(Ip({...this.data,group_id:t}))},updateComment(e){const t=X.get(e,["target","value"]);this.dispatch(Ip({...this.data,comment:t}))}}}),zJ={class:"block hover:bg-gray-50"},qJ={class:"flex items-center px-4 py-4 sm:px-6"},KJ={class:"flex min-w-0 flex-1 items-center"},GJ={class:"flex-shrink-0"},XJ=["src","alt"],JJ={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},YJ={class:"flex-shrink-0"},ZJ={class:"truncate text-sm font-medium text-gray-900"},QJ={class:"flex items-center text-sm text-gray-500"},eY={class:"truncate"},tY={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},nY={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},rY=["value","selected"],oY={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},iY={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},sY=["value","selected"],lY={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},aY={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},uY={class:"mt-2"},cY=["value","placeholder"],dY={class:"flex space-x-2 justify-end mt-[30px]"},fY=["disabled"],pY=["disabled"],hY=["href"];function mY(e,t,n,r,o,s){const l=J("UserCircleIcon"),a=J("arrow-up-icon"),c=J("arrow-down-icon"),d=J("pencil-icon"),p=J("x-icon");return N(),V("div",zJ,[v("div",qJ,[v("div",KJ,[v("div",GJ,[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,XJ)):He("",!0),e.data.avatar_url?He("",!0):(N(),bt(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),v("div",JJ,[v("div",YJ,[v("p",ZJ,U(e.data.realname),1),v("p",QJ,[v("span",eY,U(e.data.nickname),1)])])]),v("div",tY,[v("div",null,[v("label",nY,U(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),v("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,Dt(e.state.roles,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.role_id},U(h.title),9,rY))),256))],32)])]),v("div",oY,[v("div",null,[v("label",iY,U(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),v("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,Dt(e.state.groups,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.group_id},U(h.title),9,sY))),256))],32)])]),v("div",lY,[v("div",null,[v("label",aY,U(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),v("div",uY,[v("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,cY)])])]),v("div",dY,[v("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:St({"text-indigo-600":!e.first,"text-gray-500":e.first})},[q(a,{class:"w-5 h-5"})],10,fY),v("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:St({"text-indigo-600":!e.last,"text-gray-500":e.last})},[q(c,{class:"w-5 h-5"})],10,pY),v("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[q(d,{class:"w-5 h-5"})],8,hY),v("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[q(p,{class:"w-5 h-5"})])])])])])}const gY=Be(WJ,[["render",mY]]);var nr="top",Hr="bottom",Vr="right",rr="left",sv="auto",Ka=[nr,Hr,Vr,rr],rl="start",Ea="end",vY="clippingParents",K$="viewport",Fl="popper",yY="reference",X_=Ka.reduce(function(e,t){return e.concat([t+"-"+rl,t+"-"+Ea])},[]),G$=[].concat(Ka,[sv]).reduce(function(e,t){return e.concat([t,t+"-"+rl,t+"-"+Ea])},[]),bY="beforeRead",_Y="read",wY="afterRead",SY="beforeMain",EY="main",xY="afterMain",$Y="beforeWrite",CY="write",TY="afterWrite",OY=[bY,_Y,wY,SY,EY,xY,$Y,CY,TY];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 ol(e){var t=ao(e).Element;return e instanceof t||e instanceof Element}function Br(e){var t=ao(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function lv(e){if(typeof ShadowRoot>"u")return!1;var t=ao(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function AY(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];!Br(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 PY(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,d){return c[d]="",c},{});!Br(o)||!So(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const IY={name:"applyStyles",enabled:!0,phase:"write",fn:AY,effect:PY,requires:["computeStyles"]};function bo(e){return e.split("-")[0]}var os=Math.max,Jc=Math.min,il=Math.round;function sl(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Br(e)&&t){var s=e.offsetHeight,l=e.offsetWidth;l>0&&(r=il(n.width)/l||1),s>0&&(o=il(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 av(e){var t=sl(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 X$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&lv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ko(e){return ao(e).getComputedStyle(e)}function kY(e){return["table","td","th"].indexOf(So(e))>=0}function Oi(e){return((ol(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qd(e){return So(e)==="html"?e:e.assignedSlot||e.parentNode||(lv(e)?e.host:null)||Oi(e)}function J_(e){return!Br(e)||Ko(e).position==="fixed"?null:e.offsetParent}function RY(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Br(e)){var r=Ko(e);if(r.position==="fixed")return null}var o=Qd(e);for(lv(o)&&(o=o.host);Br(o)&&["html","body"].indexOf(So(o))<0;){var s=Ko(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 Ga(e){for(var t=ao(e),n=J_(e);n&&kY(n)&&Ko(n).position==="static";)n=J_(n);return n&&(So(n)==="html"||So(n)==="body"&&Ko(n).position==="static")?t:n||RY(e)||t}function uv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function na(e,t,n){return os(e,Jc(t,n))}function LY(e,t,n){var r=na(e,t,n);return r>n?n:r}function J$(){return{top:0,right:0,bottom:0,left:0}}function Y$(e){return Object.assign({},J$(),e)}function Z$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var NY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Y$(typeof t!="number"?t:Z$(t,Ka))};function MY(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=uv(a),d=[rr,Vr].indexOf(a)>=0,p=d?"height":"width";if(!(!s||!l)){var h=NY(o.padding,n),g=av(s),y=c==="y"?nr:rr,_=c==="y"?Hr:Vr,S=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],C=l[c]-n.rects.reference[c],T=Ga(s),w=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,E=S/2-C/2,O=h[y],x=w-g[p]-h[_],I=w/2-g[p]/2+E,k=na(O,I,x),P=c;n.modifiersData[r]=(t={},t[P]=k,t.centerOffset=k-I,t)}}function DY(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)||X$(t.elements.popper,o)&&(t.elements.arrow=o))}const FY={name:"arrow",enabled:!0,phase:"main",fn:MY,effect:DY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ll(e){return e.split("-")[1]}var BY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function UY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:il(t*o)/o||0,y:il(n*o)/o||0}}function Y_(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,h=e.isFixed,g=l.x,y=g===void 0?0:g,_=l.y,S=_===void 0?0:_,C=typeof p=="function"?p({x:y,y:S}):{x:y,y:S};y=C.x,S=C.y;var T=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),E=rr,O=nr,x=window;if(d){var I=Ga(n),k="clientHeight",P="clientWidth";if(I===ao(n)&&(I=Oi(n),Ko(I).position!=="static"&&a==="absolute"&&(k="scrollHeight",P="scrollWidth")),I=I,o===nr||(o===rr||o===Vr)&&s===Ea){O=Hr;var H=h&&I===x&&x.visualViewport?x.visualViewport.height:I[k];S-=H-r.height,S*=c?1:-1}if(o===rr||(o===nr||o===Hr)&&s===Ea){E=Vr;var D=h&&I===x&&x.visualViewport?x.visualViewport.width:I[P];y-=D-r.width,y*=c?1:-1}}var F=Object.assign({position:a},d&&BY),z=p===!0?UY({x:y,y:S}):{x:y,y:S};if(y=z.x,S=z.y,c){var G;return Object.assign({},F,(G={},G[O]=w?"0":"",G[E]=T?"0":"",G.transform=(x.devicePixelRatio||1)<=1?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",G))}return Object.assign({},F,(t={},t[O]=w?S+"px":"",t[E]=T?y+"px":"",t.transform="",t))}function jY(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,d={placement:bo(t.placement),variation:ll(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,Y_(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Y_(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const HY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jY,data:{}};var rc={passive:!0};function VY(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),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",n.update,rc)}),a&&c.addEventListener("resize",n.update,rc),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",n.update,rc)}),a&&c.removeEventListener("resize",n.update,rc)}}const WY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:VY,data:{}};var zY={left:"right",right:"left",bottom:"top",top:"bottom"};function gc(e){return e.replace(/left|right|bottom|top/g,function(t){return zY[t]})}var qY={start:"end",end:"start"};function Z_(e){return e.replace(/start|end/g,function(t){return qY[t]})}function cv(e){var t=ao(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function dv(e){return sl(Oi(e)).left+cv(e).scrollLeft}function KY(e){var t=ao(e),n=Oi(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+dv(e),y:a}}function GY(e){var t,n=Oi(e),r=cv(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=os(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=os(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+dv(e),c=-r.scrollTop;return Ko(o||n).direction==="rtl"&&(a+=os(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function fv(e){var t=Ko(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Q$(e){return["html","body","#document"].indexOf(So(e))>=0?e.ownerDocument.body:Br(e)&&fv(e)?e:Q$(Qd(e))}function ra(e,t){var n;t===void 0&&(t=[]);var r=Q$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=ao(r),l=o?[s].concat(s.visualViewport||[],fv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ra(Qd(l)))}function qh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function XY(e){var t=sl(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 Q_(e,t){return t===K$?qh(KY(e)):ol(t)?XY(t):qh(GY(Oi(e)))}function JY(e){var t=ra(Qd(e)),n=["absolute","fixed"].indexOf(Ko(e).position)>=0,r=n&&Br(e)?Ga(e):e;return ol(r)?t.filter(function(o){return ol(o)&&X$(o,r)&&So(o)!=="body"}):[]}function YY(e,t,n){var r=t==="clippingParents"?JY(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var d=Q_(e,c);return a.top=os(d.top,a.top),a.right=Jc(d.right,a.right),a.bottom=Jc(d.bottom,a.bottom),a.left=os(d.left,a.left),a},Q_(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 eC(e){var t=e.reference,n=e.element,r=e.placement,o=r?bo(r):null,s=r?ll(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case nr:c={x:l,y:t.y-n.height};break;case Hr:c={x:l,y:t.y+t.height};break;case Vr:c={x:t.x+t.width,y:a};break;case rr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var d=o?uv(o):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case rl:c[d]=c[d]-(t[p]/2-n[p]/2);break;case Ea:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function xa(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?vY:s,a=n.rootBoundary,c=a===void 0?K$:a,d=n.elementContext,p=d===void 0?Fl:d,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,S=Y$(typeof _!="number"?_:Z$(_,Ka)),C=p===Fl?yY:Fl,T=e.rects.popper,w=e.elements[g?C:p],E=YY(ol(w)?w:w.contextElement||Oi(e.elements.popper),l,c),O=sl(e.elements.reference),x=eC({reference:O,element:T,strategy:"absolute",placement:o}),I=qh(Object.assign({},T,x)),k=p===Fl?I:O,P={top:E.top-k.top+S.top,bottom:k.bottom-E.bottom+S.bottom,left:E.left-k.left+S.left,right:k.right-E.right+S.right},H=e.modifiersData.offset;if(p===Fl&&H){var D=H[o];Object.keys(P).forEach(function(F){var z=[Vr,Hr].indexOf(F)>=0?1:-1,G=[nr,Hr].indexOf(F)>=0?"y":"x";P[F]+=D[G]*z})}return P}function ZY(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,d=c===void 0?G$:c,p=ll(r),h=p?a?X_:X_.filter(function(_){return ll(_)===p}):Ka,g=h.filter(function(_){return d.indexOf(_)>=0});g.length===0&&(g=h);var y=g.reduce(function(_,S){return _[S]=xa(e,{placement:S,boundary:o,rootBoundary:s,padding:l})[bo(S)],_},{});return Object.keys(y).sort(function(_,S){return y[_]-y[S]})}function QY(e){if(bo(e)===sv)return[];var t=gc(e);return[Z_(e),t,Z_(t)]}function eZ(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,d=n.padding,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,S=n.allowedAutoPlacements,C=t.options.placement,T=bo(C),w=T===C,E=c||(w||!_?[gc(C)]:QY(C)),O=[C].concat(E).reduce(function(ae,fe){return ae.concat(bo(fe)===sv?ZY(t,{placement:fe,boundary:p,rootBoundary:h,padding:d,flipVariations:_,allowedAutoPlacements:S}):fe)},[]),x=t.rects.reference,I=t.rects.popper,k=new Map,P=!0,H=O[0],D=0;D<O.length;D++){var F=O[D],z=bo(F),G=ll(F)===rl,te=[nr,Hr].indexOf(z)>=0,we=te?"width":"height",be=xa(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:g,padding:d}),Ae=te?G?Vr:rr:G?Hr:nr;x[we]>I[we]&&(Ae=gc(Ae));var Pe=gc(Ae),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Ae]<=0,be[Pe]<=0),Ye.every(function(ae){return ae})){H=F,P=!1;break}k.set(F,Ye)}if(P)for(var ft=_?3:1,Le=function(fe){var $e=O.find(function(Ve){var De=k.get(Ve);if(De)return De.slice(0,fe).every(function(tt){return tt})});if($e)return H=$e,"break"},Ge=ft;Ge>0;Ge--){var Q=Le(Ge);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}const tZ={name:"flip",enabled:!0,phase:"main",fn:eZ,requiresIfExists:["offset"],data:{_skip:!1}};function e1(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 t1(e){return[nr,Vr,Hr,rr].some(function(t){return e[t]>=0})}function nZ(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=xa(t,{elementContext:"reference"}),a=xa(t,{altBoundary:!0}),c=e1(l,r),d=e1(a,o,s),p=t1(c),h=t1(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const rZ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nZ};function oZ(e,t,n){var r=bo(e),o=[rr,nr].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,[rr,Vr].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function iZ(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=G$.reduce(function(p,h){return p[h]=oZ(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=l}const sZ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iZ};function lZ(e){var t=e.state,n=e.name;t.modifiersData[n]=eC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const aZ={name:"popperOffsets",enabled:!0,phase:"read",fn:lZ,data:{}};function uZ(e){return e==="x"?"y":"x"}function cZ(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,d=n.rootBoundary,p=n.altBoundary,h=n.padding,g=n.tether,y=g===void 0?!0:g,_=n.tetherOffset,S=_===void 0?0:_,C=xa(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:p}),T=bo(t.placement),w=ll(t.placement),E=!w,O=uv(T),x=uZ(O),I=t.modifiersData.popperOffsets,k=t.rects.reference,P=t.rects.popper,H=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,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(I){if(s){var G,te=O==="y"?nr:rr,we=O==="y"?Hr:Vr,be=O==="y"?"height":"width",Ae=I[O],Pe=Ae+C[te],Ye=Ae-C[we],ft=y?-P[be]/2:0,Le=w===rl?k[be]:P[be],Ge=w===rl?-P[be]:-k[be],Q=t.elements.arrow,ae=y&&Q?av(Q):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:J$(),$e=fe[te],Ve=fe[we],De=na(0,k[be],ae[be]),tt=E?k[be]/2-ft-De-$e-D.mainAxis:Le-De-$e-D.mainAxis,gn=E?-k[be]/2+ft+De+Ve+D.mainAxis:Ge+De+Ve+D.mainAxis,ln=t.elements.arrow&&Ga(t.elements.arrow),L=ln?O==="y"?ln.clientTop||0:ln.clientLeft||0:0,B=(G=F==null?void 0:F[O])!=null?G:0,Z=Ae+tt-B-L,le=Ae+gn-B,ie=na(y?Jc(Pe,Z):Pe,Ae,y?os(Ye,le):Ye);I[O]=ie,z[O]=ie-Ae}if(a){var pe,Ce=O==="x"?nr:rr,me=O==="x"?Hr:Vr,ge=I[x],se=x==="y"?"height":"width",Re=ge+C[Ce],Ie=ge-C[me],Me=[nr,rr].indexOf(T)!==-1,je=(pe=F==null?void 0:F[x])!=null?pe:0,rt=Me?Re:ge-k[se]-P[se]-je+D.altAxis,mt=Me?ge+k[se]+P[se]-je-D.altAxis:Ie,ct=y&&Me?LY(rt,ge,mt):na(y?rt:Re,ge,y?mt:Ie);I[x]=ct,z[x]=ct-ge}t.modifiersData[r]=z}}const dZ={name:"preventOverflow",enabled:!0,phase:"main",fn:cZ,requiresIfExists:["offset"]};function fZ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pZ(e){return e===ao(e)||!Br(e)?cv(e):fZ(e)}function hZ(e){var t=e.getBoundingClientRect(),n=il(t.width)/e.offsetWidth||1,r=il(t.height)/e.offsetHeight||1;return n!==1||r!==1}function mZ(e,t,n){n===void 0&&(n=!1);var r=Br(t),o=Br(t)&&hZ(t),s=Oi(t),l=sl(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((So(t)!=="body"||fv(s))&&(a=pZ(t)),Br(t)?(c=sl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=dv(s))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function gZ(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 vZ(e){var t=gZ(e);return OY.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function yZ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function bZ(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 n1={placement:"bottom",modifiers:[],strategy:"absolute"};function r1(){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 _Z(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?n1:o;return function(a,c,d){d===void 0&&(d=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},n1,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],g=!1,y={state:p,setOptions:function(T){var w=typeof T=="function"?T(p.options):T;S(),p.options=Object.assign({},s,p.options,w),p.scrollParents={reference:ol(a)?ra(a):a.contextElement?ra(a.contextElement):[],popper:ra(c)};var E=vZ(bZ([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(O){return O.enabled}),_(),y.update()},forceUpdate:function(){if(!g){var T=p.elements,w=T.reference,E=T.popper;if(r1(w,E)){p.rects={reference:mZ(w,Ga(E),p.options.strategy==="fixed"),popper:av(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 O=0;O<p.orderedModifiers.length;O++){if(p.reset===!0){p.reset=!1,O=-1;continue}var x=p.orderedModifiers[O],I=x.fn,k=x.options,P=k===void 0?{}:k,H=x.name;typeof I=="function"&&(p=I({state:p,options:P,name:H,instance:y})||p)}}}},update:yZ(function(){return new Promise(function(C){y.forceUpdate(),C(p)})}),destroy:function(){S(),g=!0}};if(!r1(a,c))return y;y.setOptions(d).then(function(C){!g&&d.onFirstUpdate&&d.onFirstUpdate(C)});function _(){p.orderedModifiers.forEach(function(C){var T=C.name,w=C.options,E=w===void 0?{}:w,O=C.effect;if(typeof O=="function"){var x=O({state:p,name:T,instance:y,options:E}),I=function(){};h.push(x||I)}})}function S(){h.forEach(function(C){return C()}),h=[]}return y}}var wZ=[WY,aZ,HY,IY,sZ,tZ,dZ,FY,rZ],SZ=_Z({defaultModifiers:wZ});function EZ(e){let t=_e(null),n=_e(null);return vt(()=>{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}=SZ(s,o,e);r(l)})}),[t,n]}const xZ=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:K.contributors.contributors,episodeContributions:K.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:lU,XIcon:Ua,ChevronDownIcon:Dx,Combobox:r$,ComboboxButton:o$,ComboboxInput:i$,ComboboxLabel:YU,ComboboxOption:l$,ComboboxOptions:s$,UserCircleIcon:Vx,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=X.get(e,["target","value"],"")},close(){this.$emit("close")}}}),$Z={class:"block hover:bg-gray-50"},CZ={class:"flex items-center px-4 py-4 sm:px-6"},TZ={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"},AZ={class:"relative mt-2 max-w-sm"},PZ={ref:"container"},IZ={class:"flex items-center"},kZ=["src","onError"],RZ={class:"flex space-x-2 justify-end"};function LZ(e,t,n,r,o,s){const l=J("ComboboxLabel"),a=J("ComboboxInput"),c=J("ChevronDownIcon"),d=J("ComboboxButton"),p=J("UserCircleIcon"),h=J("CheckIcon"),g=J("ComboboxOption"),y=J("ComboboxOptions"),_=J("Combobox"),S=J("x-icon");return N(),V("div",$Z,[v("div",CZ,[v("div",TZ,[v("div",OZ,[q(_,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=C=>e.data=C)},{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}),v("div",AZ,[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]=C=>e.filterContributors(C)),displayValue:()=>e.query},null,8,["displayValue"]),q(d,{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})]),v("div",PZ,[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,Dt(e.filteredContributors,C=>(N(),bt(g,{key:C.id||"create",value:C,as:"template"},{default:ye(({active:T,selected:w})=>[v("li",{class:St(["relative cursor-default select-none py-2 pl-3 pr-9",T?"bg-indigo-600 text-white":"text-gray-900"])},[v("div",IZ,[C.avatar_url?(N(),V("img",{key:0,src:C.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>C.avatar_url=""},null,40,kZ)):He("",!0),C.avatar_url?He("",!0):(N(),bt(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),v("span",{class:St(["ml-3 truncate",w&&"font-semibold"])},U(C.realname),3)]),w?(N(),V("span",{key:0,class:St(["absolute inset-y-0 right-0 flex items-center pr-4",T?"text-white":"text-indigo-600"])},[q(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):He("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):He("",!0)],512)]),_:1},8,["modelValue"])])]),v("div",RZ,[v("button",{class:"text-red-600",onClick:t[2]||(t[2]=C=>e.close())},[q(S,{class:"w-5 h-5"})])])])])}const NZ=Be(xZ,[["render",LZ]]),MZ=ve({components:{Module:Mn,PodloveButton:zn,PlusSmIcon:Ng,Contribution:gY,AddContribution:NZ},data(){return{addContributorInput:!1}},setup(){return{dispatch:it().dispatch,state:yt({contributions:K.episode.contributions,roles:K.contributors.roles,groups:K.contributors.groups})}},created(){this.dispatch(i2())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(qE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(_7(e))},closeAddContributor(){this.addContributorInput=!1}}}),DZ={role:"list",class:"divide-y divide-gray-200"},FZ={key:0,class:"mb-0"},BZ={class:"py-5 px-6 border-t border-gray-200"};function UZ(e,t,n,r,o,s){const l=J("Contribution"),a=J("AddContribution"),c=J("plus-sm-icon"),d=J("podlove-button"),p=J("module");return N(),bt(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:ye(()=>[]),default:ye(()=>[v("ul",DZ,[(N(!0),V(Fe,null,Dt(e.state.contributions,(h,g)=>(N(),V("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(N(),bt(l,{key:0,data:h,first:g===0,last:g===e.state.contributions.length-1},null,8,["data","first","last"])):He("",!0)]))),128)),e.addContributorInput?(N(),V("li",FZ,[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())})])):He("",!0)]),v("div",BZ,[q(d,{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"])}const jZ=Be(MZ,[["render",UZ]]),HZ=ve({setup(){return{state:yt({slug:K.episode.slug,baseUri:K.settings.mediaFileBaseUri}),dispatch:it().dispatch}},methods:{updateSlug(e){this.dispatch(wt({prop:"slug",value:e.target.value})),this.dispatch(j2())}},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}}}),VZ={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"},zZ={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"},qZ={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},KZ=["value"],GZ=v("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1);function XZ(e,t,n,r,o,s){return N(),V(Fe,null,[v("label",VZ,U(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),v("div",WZ,[v("div",zZ,[v("span",qZ,U(e.assetPrefix),1),v("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,KZ),GZ])])],64)}const JZ=Be(HZ,[["render",XZ]]),YZ=ve({components:{PodloveButton:zn,UploadIcon:Fx},setup(){return{state:yt({}),dispatch:it().dispatch}},methods:{uploadIntent(){this.dispatch(AD())}},computed:{}}),ZZ={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},QZ={class:"mt-2 sm:col-span-2 sm:mt-0"};function eQ(e,t,n,r,o,s){const l=J("upload-icon"),a=J("podlove-button");return N(),V(Fe,null,[v("label",ZZ,U(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),v("div",QZ,[v("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)}const tQ=Be(YZ,[["render",eQ]]),nQ={},rQ={class:"text-center"},oQ=v("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[v("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),iQ={class:"mt-2 text-sm font-semibold text-gray-900"},sQ={class:"mt-1 text-sm text-gray-500"};function lQ(e,t){return N(),V("div",rQ,[oQ,v("h3",iQ,U(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),v("p",sQ,U(e.__("Please go to Podlove → Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}const aQ=Be(nQ,[["render",lQ]]),uQ=ve({components:{CheckCircleIcon:uK,XCircleIcon:q$,CloudIcon:Bx,AssetsEmptyState:aQ},setup(){return{state:yt({files:K.mediafiles.files,duration:K.episode.duration}),dispatch:it().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(CD(r)):this.dispatch(TD(r))},handleVerify(e){this.dispatch(OD(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=Mt.fromString(this.state.duration);return t.totalMs===0?e:t.pretty}}}),cQ={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},dQ={class:"mt-2 sm:col-span-2 sm:mt-0"},fQ={key:0},pQ={class:"min-w-full table-fixed divide-y divide-gray-300"},hQ={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},mQ={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},gQ={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},vQ=v("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),yQ={class:"divide-y divide-gray-200 bg-white"},bQ={class:"relative px-7 sm:w-12 sm:px-6"},_Q={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},wQ=["value","checked"],SQ={class:"text-sm"},EQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},xQ={class:"flex flex-col"},$Q=["href"],CQ={class:"flex"},TQ={key:3},OQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},AQ=["onClick"],PQ={class:"mt-3 text-sm leading-6 text-gray-600"};function IQ(e,t,n,r,o,s){const l=J("CloudIcon"),a=J("CheckCircleIcon"),c=J("XCircleIcon"),d=J("AssetsEmptyState");return N(),V(Fe,null,[v("label",cQ,U(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),v("div",dQ,[e.hasFiles?(N(),V("div",fQ,[v("table",pQ,[v("thead",null,[v("tr",null,[v("th",hQ,U(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),v("th",mQ,U(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),v("th",gQ,U(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),vQ])]),v("tbody",yQ,[(N(!0),V(Fe,null,Dt(e.files,p=>(N(),V("tr",{key:p.asset_id,class:St({"opacity-50":!p.enable})},[v("td",bQ,[p.is_verifying?(N(),V("div",_Q,[q(l,{class:"h-5 w-5","aria-hidden":"true"})])):He("",!0),v("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,wQ)]),v("td",SQ,U(p.asset),1),v("td",EQ,[v("div",xQ,[v("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},U(p.url),9,$Q),v("span",CQ,[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:St(["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",TQ,U(e.fileSize(p)),1)):(N(),V("span",{key:2,class:St({"text-gray-400":!p.enable,"text-red-400":p.enable})},U(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),v("td",OQ,[v("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,AQ)])],2))),128))])]),v("p",PQ,U(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.duration),1)])):(N(),bt(d,{key:1}))])],64)}const kQ=Be(uQ,[["render",IQ]]),RQ=ve({components:{Module:Mn,RefreshIcon:Nx,MediaSlug:JZ,MediaUpload:tQ,AssetsTable:kQ},setup(){return{state:yt({isInitializing:K.mediafiles.isInitializing,modules:K.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(ED())}}),LQ={key:0,class:"w-full flex justify-center m-12 text-center"},NQ={class:"animate-pulse mt-4 flex space-x-4"},MQ={key:1},DQ={class:"px-6"},FQ={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"},BQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},UQ={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},jQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function HQ(e,t,n,r,o,s){const l=J("RefreshIcon"),a=J("MediaSlug"),c=J("MediaUpload"),d=J("AssetsTable"),p=J("module");return N(),bt(p,{name:"mediafiles",title:"Media Files"},{default:ye(()=>[v("div",null,[e.isInitializing?(N(),V("div",LQ,[v("div",NQ,[q(l,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(N(),V("div",MQ,[v("div",DQ,[v("div",FQ,[v("div",BQ,[q(a)]),e.isMediaUploadEnabled?(N(),V("div",UQ,[q(c)])):He("",!0),v("div",jQ,[q(d)])])])]))])]),_:1})}const VQ=Be(RQ,[["render",HQ]]),WQ=ve({name:"PodloveCombobox",components:{Combobox:r$,ComboboxButton:o$,ComboboxInput:i$,ComboboxOption:l$,ComboboxOptions:s$,CheckIcon:Yd,SelectorIcon:Zd},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=""}}}),zQ={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},qQ={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},KQ={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},GQ={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},XQ={key:0,class:"text-xs text-red-400 mt-1"};function JQ(e,t,n,r,o,s){const l=J("ComboboxInput"),a=J("SelectorIcon"),c=J("ComboboxButton"),d=J("CheckIcon"),p=J("ComboboxOption"),h=J("ComboboxOptions"),g=J("Combobox",!0);return N(),bt(g,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:ye(()=>[v("div",zQ,[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"]),v("div",qQ,U(e.label),1),q(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),q($i,{"leave-active-class":`
    149149          transition
    150150          duration-100
     
    154154        `,"leave-to-class":`
    155155          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",AQ," Nothing found. ")):Ke("",!0),(N(!0),V(Fe,null,Mt(e.filterOptions,_=>(N(),bt(p,{key:_.title,value:_.id,as:"template"},{default:ye(({active:S,selected:C})=>[v("li",{class:St([S?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[v("span",{class:St([C?"font-medium":"font-normal","block truncate"])},U(_.title),3),C?(N(),V("span",IQ,[q(d,{"aria-hidden":"true",class:"w-5 h-5"})])):Ke("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(N(),V("div",PQ,U(e.error),1)):Ke("",!0)])]),_:1},8,["model-value","multiple"])}const RQ=Be(CQ,[["render",kQ]]),LQ=ge({name:"PodloveTag",components:{XCircleIcon:V$},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),NQ={class:"m-1 inline-flex"},MQ={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function DQ(e,t,n,r,o,s){const l=J("XCircleIcon");return N(),V("div",NQ,[v("span",MQ,[Xe(U(e.value)+" ",1),v("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[q(l,{class:"w-5 h-5"})])])])}const FQ=Be(LQ,[["render",DQ]]),BQ=ge({components:{Module:Nn,PodloveListbox:RQ,Tag:FQ},setup(){return{state:yt({episodeList:K.relatedEpisodes.episodeList,selectEpisodes:K.relatedEpisodes.selectEpisode}),dispatch:it().dispatch}},created(){this.dispatch(CD())},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(j2(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),UQ={class:"p-3"},jQ={class:"mt-2 text-sm text-gray-500"},HQ={class:"pl-3 pb-3"};function VQ(e,t,n,r,o,s){const l=J("PodloveListbox"),a=J("Tag"),c=J("module");return N(),bt(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[v("div",UQ,[v("div",null,[q(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=d=>e.updateRelEpisodes(d)),multiple:""},null,8,["options","selectValues"])]),v("p",jQ,U(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",HQ,[(N(!0),V(Fe,null,Mt(e.selectEpisodeNames,d=>(N(),bt(a,{value:d.title,id:Number(d.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}const WQ=Be(BQ,[["render",VQ]]),zQ=ge({components:{PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{clearSoundbite(){this.dispatch(wt({prop:"soundbite_start",value:null})),this.dispatch(wt({prop:"soundbite_duration",value:null})),this.dispatch(wt({prop:"soundbite_title",value:null}))}}});function qQ(e,t,n,r,o,s){const l=J("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})}const KQ=Be(zQ,[["render",qQ]]),GQ=ge({setup(){return{state:yt({soundbite_start:K.episode.soundbite_start,soundbite_duration:K.episode.soundbite_duration,soundbite_title:K.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(wt({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(wt({prop:"soundbite_duration",value:new Nt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Nt.fromString(t).totalMs;this.dispatch(wt({prop:"soundbite_duration",value:new Nt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch(wt({prop:"soundbite_title",value:e.target.value}))}}}),XQ={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},JQ={class:"mb-5 ml-5"},YQ={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},ZQ={class:"mt-1"},QQ=["value"],eee={class:"mb-5 ml-5"},tee={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},nee={class:"mt-1"},ree=["value"],oee={class:"mb-5 ml-5"},iee={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},see={class:"mt-1"},lee=["value"],aee={class:"mb-5 ml-5 md:mr-5"},uee={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},cee={class:"text-xs"},dee={class:"mt-1"},fee=["value"];function pee(e,t,n,r,o,s){return N(),V("div",XQ,[v("div",JQ,[v("label",YQ,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),v("div",ZQ,[v("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,QQ)])]),v("div",eee,[v("label",tee,U(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),v("div",nee,[v("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,ree)])]),v("div",oee,[v("label",iee,U(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),v("div",see,[v("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,lee)])]),v("div",aee,[v("label",uee,[Xe(U(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",cee,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",dee,[v("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,fee)])])])}const hee=Be(GQ,[["render",pee]]),mee=ge({components:{Module:Nn,SoundbiteForm:hee,SoundbiteClear:KQ},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(kd())}});function gee(e,t,n,r,o,s){const l=J("soundbite-clear"),a=J("soundbite-form"),c=J("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"])}const vee=Be(mee,[["render",gee]]),yee=ge({components:{},setup(){return{state:yt({shows:K.shows.list,current:K.episode.currentShow}),dispatch:it().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch(wt({prop:"show",value:e??""}))}},created(){this.dispatch(H2())}}),bee={class:"flex items-center"},_ee=["checked"],wee={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},See={class:"flex items-center"},Eee=["id","value","onInput","checked"],xee=["for"];function $ee(e,t,n,r,o,s){return N(),V("div",null,[v("div",bee,[v("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,_ee),v("label",wee,U(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.shows,l=>(N(),V("div",See,[v("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,Eee),v("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},U(l.title),9,xee)]))),256))])}const Cee=Be(yee,[["render",$ee],["__scopeId","data-v-eaebb871"]]);var 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||{}),gr=(e=>(e.yes="Yes",e.no="No",e))(gr||{}),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 Vs=[{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"}],Tee=ge({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseName:K.episode.license_name,podcastLicenseName:K.podcast.license_name}),dispatch:it().dispatch}},created(){this.dispatch(kd())},computed:{getLicenseName(){return this.scope==cn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_name",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_name",value:e.target.value}))}}}),Oee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Aee={class:"mt-1"},Iee=["value"];function Pee(e,t,n,r,o,s){return N(),V("div",null,[v("label",Oee,U(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),v("div",Aee,[v("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,Iee)])])}const kee=Be(Tee,[["render",Pee]]),Ree=ge({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseUrl:K.episode.license_url,podcastLicenseUrl:K.podcast.license_url}),dispatch:it().dispatch}},created(){this.dispatch(kd())},computed:{getLicenseUrl(){return this.scope==cn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_url",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_url",value:e.target.value}))}}}),Lee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Nee={class:"mt-1"},Mee=["value"],Dee={class:"mt-2 text-sm text-gray-500"};function Fee(e,t,n,r,o,s){return N(),V("div",null,[v("label",Lee,U(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),v("div",Nee,[v("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,Mee)]),v("p",Dee,U(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}const Bee=Be(Ree,[["render",Fee]]),Uee="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=",jee="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",Hee="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",Vee="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",Wee="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",zee="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",qee="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",Kee="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function Hl(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===gr.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==gr.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 r1(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Lt.cc0)return Uee;if(e.version===Lt.pdmark)return jee;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case hn.no:return e.optionCommercial===gr.no?Hee:Vee;case hn.yes:return e.optionCommercial===gr.no?Wee:zee;case hn.yesbutshare:return e.optionCommercial===gr.no?qee:Kee}}function o1(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=gr.yes;r[0].includes("nc")&&(o=gr.no);let s=hn.yes;r[0].includes("sa")?s=hn.yesbutshare:r[0].includes("nd")&&(s=hn.no);let l=Vs[0];if(r.length>2){const a=Vs.findIndex(c=>c.symbol===r[2]);a>0&&(l=Vs[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:s,optionJurisdication:l}}const Gee=ge({components:{Module:Nn},props:{licenseData:{type:null,default:{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:yt({baseUrl:K.runtime.baseUrl}),dispatch:it().dispatch}},computed:{licenseUrl(){return Hl(this.licenseData)},imageUrl(){return r1(this.licenseData,this.state.baseUrl)},isImageAvailable(){return r1(this.licenseData,this.state.baseUrl)!==null}}}),Xee={class:"mt-3"},Jee=v("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),Yee={key:0},Zee={class:"mb-3 w-full"},Qee={class:"flex justify-center items-center"},ete=["src"],tte={class:"mb-3 w-full text-center"},nte=v("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),rte=["href"],ote={key:0},ite=v("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),ste=[ite];function lte(e,t,n,r,o,s){return N(),V("div",Xee,[Jee,e.isImageAvailable?(N(),V("div",Yee,[v("div",null,[v("div",Zee,[v("div",Qee,[v("img",{class:"text-center",src:`${e.imageUrl}`},null,8,ete)])]),v("div",tte,[nte,v("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},U(e.licenseUrl),9,rte)])]),e.isImageAvailable?Ke("",!0):(N(),V("div",ote,ste))])):Ke("",!0)])}const ate=Be(Gee,[["render",lte]]),ute=Object.entries(Lt).map(([e,t])=>({key:e,value:t})),cte=Object.entries(gr).map(([e,t])=>({key:e,value:t})),dte=Object.entries(hn).map(([e,t])=>({key:e,value:t})),fte=ge({components:{PodloveButton:Vn,Modal:Wa,LicensePreview:ate},data(){return{PodloveLicenseVersionList:ute,PodloveLicenseOptionCommercialList:cte,PodloveLicenseOptionModificationList:dte,PodloveLicenseOptionJurisdication:Vs}},setup(){return{state:yt({episodeLicenseUrl:K.episode.license_url,podcastLicenseUrl:K.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 gr.yes:t.optionCommercial=gr.yes;break;case gr.no:t.optionCommercial=gr.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=Vs.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=Vs[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_url",value:Hl(e)})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_url",value:Hl(e)}))},updateLicenseDataNameNUrl(e){this.scope===cn.Episode&&(this.dispatch(wt({prop:"license_name",value:e.version})),this.dispatch(wt({prop:"license_url",value:Hl(e)}))),this.scope===cn.Podcast&&(this.dispatch(ea({prop:"license_name",value:e.version})),this.dispatch(ea({prop:"license_url",value:Hl(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}:o1(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:o1(this.state.podcastLicenseUrl)}}}),pte={class:"border-gray-200 border-b pb-2 px-3 py-5"},hte={class:"text-lg leading-6 font-medium text-gray-900"},mte={class:"mb-3"},gte=v("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),vte=["value"],yte=["value"],bte={key:0,class:"mb-3"},_te=v("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),wte=["value"],Ste=["value"],Ete={key:1,class:"mb-3"},xte=v("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),$te=["value"],Cte=["value"],Tte={key:2,class:"mb-3"},Ote=v("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),Ate=["value"],Ite=["value"],Pte={class:"mb-5"};function kte(e,t,n,r,o,s){var a;const l=J("LicensePreview");return N(),V(Fe,null,[v("div",pte,[v("h3",hte,U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",null,[v("div",mte,[gte,v("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,d)=>(N(),V("option",{value:c.value,key:`version-${d}`},U(c.value),9,yte))),128))],40,vte)]),e.isCommercialNModificationNeeded?(N(),V("div",bte,[_te,v("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,d)=>(N(),V("option",{value:c.value,key:`modification-${d}`},U(c.value),9,Ste))),128))],40,wte)])):Ke("",!0),e.isCommercialNModificationNeeded?(N(),V("div",Ete,[xte,v("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,d)=>(N(),V("option",{value:c.value,key:`commercial-${d}`},U(c.value),9,Cte))),128))],40,$te)])):Ke("",!0),e.isJurisdicationNeeded?(N(),V("div",Tte,[Ote,v("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,d)=>(N(),V("option",{value:c.name,key:`jurisdiction-${d}`},U(c.name),9,Ite))),128))],40,Ate)])):Ke("",!0),v("div",Pte,[q(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}const Z$=Be(fte,[["render",kte]]),Rte=ge({components:{PodloveButton:Vn,Modal:Wa,LicenseSelector:Z$},props:{scope:{type:String,default:cn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function Lte(e,t,n,r,o,s){const l=J("podlove-button"),a=J("LicenseSelector"),c=J("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)}const Nte=Be(Rte,[["render",Lte]]),Mte=ge({components:{Module:Nn,LicenseName:kee,LicenseUrl:Bee,LicenseSelector:Z$,LicenseSelectorButton:Nte},props:{scope:{type:String,default:cn.Episode}},computed:{isScopeEpisode(){return this.scope===cn.Episode},getModuleTitle(){return this.scope===cn.Episode?"Episode License":"Podcast License"}}}),Dte={key:0},Fte={class:"p-3"},Bte={class:"mb-3"},Ute={class:"mb-3"},jte={key:0};function Hte(e,t,n,r,o,s){const l=J("LicenseSelectorButton"),a=J("LicenseName"),c=J("LicenseUrl"),d=J("LicenseSelector"),p=J("module");return N(),bt(p,{name:"license",title:e.getModuleTitle},{actions:ye(()=>[e.isScopeEpisode?(N(),V("div",Dte,[q(l,{scope:e.scope},null,8,["scope"])])):Ke("",!0)]),default:ye(()=>[v("div",Fte,[v("div",Bte,[q(a,{scope:e.scope},null,8,["scope"])]),v("div",Ute,[q(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?Ke("",!0):(N(),V("div",jte,[q(d,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}const Vte=Be(Mte,[["render",Hte]]),Wte={PodloveDescription:sV,PodloveChapters:Gz,PodloveTranscripts:Yq,PodloveAuphonic:$J,PodloveContributors:EZ,PodloveMediaFiles:$Q,PodloveRelatedEpisodes:WQ,PodloveSoundbite:vee,PodloveShowSelect:Cee,PodloveLicense:Vte};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=Kw({components:{...Wte}});g6({store:Hd,app:t}),t.use(hF),t.mount(e)})});globalThis.initPodloveUI=e=>{Hd.dispatch(GM(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",KQ," Nothing found. ")):He("",!0),(N(!0),V(Fe,null,Dt(e.filterOptions,_=>(N(),bt(p,{key:_.title,value:_.id,as:"template"},{default:ye(({active:S,selected:C})=>[v("li",{class:St([S?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[v("span",{class:St([C?"font-medium":"font-normal","block truncate"])},U(_.title),3),C?(N(),V("span",GQ,[q(d,{"aria-hidden":"true",class:"w-5 h-5"})])):He("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(N(),V("div",XQ,U(e.error),1)):He("",!0)])]),_:1},8,["model-value","multiple"])}const YQ=Be(WQ,[["render",JQ]]),ZQ=ve({name:"PodloveTag",components:{XCircleIcon:q$},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),QQ={class:"m-1 inline-flex"},eee={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function tee(e,t,n,r,o,s){const l=J("XCircleIcon");return N(),V("div",QQ,[v("span",eee,[Xe(U(e.value)+" ",1),v("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[q(l,{class:"w-5 h-5"})])])])}const nee=Be(ZQ,[["render",tee]]),ree=ve({components:{Module:Mn,PodloveListbox:YQ,Tag:nee},setup(){return{state:yt({episodeList:K.relatedEpisodes.episodeList,selectEpisodes:K.relatedEpisodes.selectEpisode}),dispatch:it().dispatch}},created(){this.dispatch(LD())},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(W2(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),oee={class:"p-3"},iee={class:"mt-2 text-sm text-gray-500"},see={class:"pl-3 pb-3"};function lee(e,t,n,r,o,s){const l=J("PodloveListbox"),a=J("Tag"),c=J("module");return N(),bt(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[v("div",oee,[v("div",null,[q(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=d=>e.updateRelEpisodes(d)),multiple:""},null,8,["options","selectValues"])]),v("p",iee,U(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",see,[(N(!0),V(Fe,null,Dt(e.selectEpisodeNames,d=>(N(),bt(a,{value:d.title,id:Number(d.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}const aee=Be(ree,[["render",lee]]),uee=ve({components:{PodloveButton:zn},setup(){return{dispatch:it().dispatch}},methods:{clearSoundbite(){this.dispatch(wt({prop:"soundbite_start",value:null})),this.dispatch(wt({prop:"soundbite_duration",value:null})),this.dispatch(wt({prop:"soundbite_title",value:null}))}}});function cee(e,t,n,r,o,s){const l=J("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})}const dee=Be(uee,[["render",cee]]),fee=ve({setup(){return{state:yt({soundbite_start:K.episode.soundbite_start,soundbite_duration:K.episode.soundbite_duration,soundbite_title:K.episode.soundbite_title}),dispatch:it().dispatch}},computed:{soundbite_end(){if(this.state.soundbite_start!=null&&this.state.soundbite_duration!=null){let e=Mt.fromString(this.state.soundbite_start).totalMs,t=Mt.fromString(this.state.soundbite_duration).totalMs,n=e+t;return new Mt(n).pretty}return""}},methods:{updateSoundbiteStart(e){const t=e.target.value;let n=Mt.fromString(t).totalMs;this.dispatch(wt({prop:"soundbite_start",value:new Mt(n).pretty}))},updateSoundbiteEnd(e){const t=e.target.value;let n=Mt.fromString(t).totalMs,r=Mt.fromString(this.state.soundbite_start).totalMs;if(r<n){let o=n-r;this.dispatch(wt({prop:"soundbite_duration",value:new Mt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Mt.fromString(t).totalMs;this.dispatch(wt({prop:"soundbite_duration",value:new Mt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch(wt({prop:"soundbite_title",value:e.target.value}))}}}),pee={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},hee={class:"mb-5 ml-5"},mee={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},gee={class:"mt-1"},vee=["value"],yee={class:"mb-5 ml-5"},bee={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},_ee={class:"mt-1"},wee=["value"],See={class:"mb-5 ml-5"},Eee={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},xee={class:"mt-1"},$ee=["value"],Cee={class:"mb-5 ml-5 md:mr-5"},Tee={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},Oee={class:"text-xs"},Aee={class:"mt-1"},Pee=["value"];function Iee(e,t,n,r,o,s){return N(),V("div",pee,[v("div",hee,[v("label",mee,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),v("div",gee,[v("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,vee)])]),v("div",yee,[v("label",bee,U(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),v("div",_ee,[v("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,wee)])]),v("div",See,[v("label",Eee,U(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),v("div",xee,[v("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,$ee)])]),v("div",Cee,[v("label",Tee,[Xe(U(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),v("span",Oee,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",Aee,[v("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,Pee)])])])}const kee=Be(fee,[["render",Iee]]),Ree=ve({components:{Module:Mn,SoundbiteForm:kee,SoundbiteClear:dee},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(kd())}});function Lee(e,t,n,r,o,s){const l=J("soundbite-clear"),a=J("soundbite-form"),c=J("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"])}const Nee=Be(Ree,[["render",Lee]]),Mee=ve({components:{},setup(){return{state:yt({shows:K.shows.list,current:K.episode.currentShow}),dispatch:it().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch(wt({prop:"show",value:e??""}))}},created(){this.dispatch(z2())}}),Dee={class:"flex items-center"},Fee=["checked"],Bee={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},Uee={class:"flex items-center"},jee=["id","value","onInput","checked"],Hee=["for"];function Vee(e,t,n,r,o,s){return N(),V("div",null,[v("div",Dee,[v("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,Fee),v("label",Bee,U(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Dt(e.shows,l=>(N(),V("div",Uee,[v("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,jee),v("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},U(l.title),9,Hee)]))),256))])}const Wee=Be(Mee,[["render",Vee],["__scopeId","data-v-eaebb871"]]);var Nt=(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))(Nt||{}),gr=(e=>(e.yes="Yes",e.no="No",e))(gr||{}),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 Vs=[{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"}],zee=ve({components:{Module:Mn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseName:K.episode.license_name,podcastLicenseName:K.podcast.license_name}),dispatch:it().dispatch}},created(){this.dispatch(kd())},computed:{getLicenseName(){return this.scope==cn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_name",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_name",value:e.target.value}))}}}),qee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Kee={class:"mt-1"},Gee=["value"];function Xee(e,t,n,r,o,s){return N(),V("div",null,[v("label",qee,U(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),v("div",Kee,[v("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,Gee)])])}const Jee=Be(zee,[["render",Xee]]),Yee=ve({components:{Module:Mn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseUrl:K.episode.license_url,podcastLicenseUrl:K.podcast.license_url}),dispatch:it().dispatch}},created(){this.dispatch(kd())},computed:{getLicenseUrl(){return this.scope==cn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_url",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_url",value:e.target.value}))}}}),Zee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Qee={class:"mt-1"},ete=["value"],tte={class:"mt-2 text-sm text-gray-500"};function nte(e,t,n,r,o,s){return N(),V("div",null,[v("label",Zee,U(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),v("div",Qee,[v("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,ete)]),v("p",tte,U(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}const rte=Be(Yee,[["render",nte]]),ote="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=",ite="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",ste="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",lte="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",ate="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",ute="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",cte="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",dte="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function Hl(e){if(e.type===null||e.type!="cc")return null;if(e.version===Nt.cc0)return"http://creativecommons.org/publicdomain/zero/1.0/";if(e.version===Nt.pdmark)return"http://creativecommons.org/publicdomain/mark/1.0/";if(e.version===Nt.cc3){let t="http://creativecommons.org/licenses/by";return e.optionCommercial===gr.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===Nt.cc4){let t="http://creativecommons.org/licenses/by";return e.optionCommercial==gr.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 o1(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Nt.cc0)return ote;if(e.version===Nt.pdmark)return ite;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case hn.no:return e.optionCommercial===gr.no?ste:lte;case hn.yes:return e.optionCommercial===gr.no?ate:ute;case hn.yesbutshare:return e.optionCommercial===gr.no?cte:dte}}function i1(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=Nt.cc0:t.indexOf("/publicdomain/mark/")>=0?n=Nt.pdmark:t.indexOf("/4.0")>=0?n=Nt.cc4:n=Nt.cc3;const r=t.split("/").slice(4);let o=gr.yes;r[0].includes("nc")&&(o=gr.no);let s=hn.yes;r[0].includes("sa")?s=hn.yesbutshare:r[0].includes("nd")&&(s=hn.no);let l=Vs[0];if(r.length>2){const a=Vs.findIndex(c=>c.symbol===r[2]);a>0&&(l=Vs[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:s,optionJurisdication:l}}const fte=ve({components:{Module:Mn},props:{licenseData:{type:null,default:{type:"cc",version:Nt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:yt({baseUrl:K.runtime.baseUrl}),dispatch:it().dispatch}},computed:{licenseUrl(){return Hl(this.licenseData)},imageUrl(){return o1(this.licenseData,this.state.baseUrl)},isImageAvailable(){return o1(this.licenseData,this.state.baseUrl)!==null}}}),pte={class:"mt-3"},hte=v("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),mte={key:0},gte={class:"mb-3 w-full"},vte={class:"flex justify-center items-center"},yte=["src"],bte={class:"mb-3 w-full text-center"},_te=v("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),wte=["href"],Ste={key:0},Ete=v("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),xte=[Ete];function $te(e,t,n,r,o,s){return N(),V("div",pte,[hte,e.isImageAvailable?(N(),V("div",mte,[v("div",null,[v("div",gte,[v("div",vte,[v("img",{class:"text-center",src:`${e.imageUrl}`},null,8,yte)])]),v("div",bte,[_te,v("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},U(e.licenseUrl),9,wte)])]),e.isImageAvailable?He("",!0):(N(),V("div",Ste,xte))])):He("",!0)])}const Cte=Be(fte,[["render",$te]]),Tte=Object.entries(Nt).map(([e,t])=>({key:e,value:t})),Ote=Object.entries(gr).map(([e,t])=>({key:e,value:t})),Ate=Object.entries(hn).map(([e,t])=>({key:e,value:t})),Pte=ve({components:{PodloveButton:zn,Modal:Wa,LicensePreview:Cte},data(){return{PodloveLicenseVersionList:Tte,PodloveLicenseOptionCommercialList:Ote,PodloveLicenseOptionModificationList:Ate,PodloveLicenseOptionJurisdication:Vs}},setup(){return{state:yt({episodeLicenseUrl:K.episode.license_url,podcastLicenseUrl:K.podcast.license_url}),dispatch:it().dispatch}},props:{scope:{type:String,default:cn.Episode}},computed:{isCommercialNModificationNeeded(){return this.getLicenseData().type==="cc"&&(this.getLicenseData().version===Nt.cc3||this.getLicenseData().version===Nt.cc4)},isJurisdicationNeeded(){return this.getLicenseData().type==="cc"&&this.getLicenseData().version===Nt.cc3}},methods:{updateVersion(e){let t=this.getLicenseData();switch(t.type="cc",e.target.value){case Nt.cc0:t.version=Nt.cc0;break;case Nt.pdmark:t.version=Nt.pdmark;break;case Nt.cc3:t.version=Nt.cc3;break;case Nt.cc4:t.version=Nt.cc4;break}this.updateLicenseDataNameNUrl(t)},updateCommercial(e){let t=this.getLicenseData();switch(e.target.value){case gr.yes:t.optionCommercial=gr.yes;break;case gr.no:t.optionCommercial=gr.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=Vs.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=Vs[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===cn.Episode&&this.dispatch(wt({prop:"license_url",value:Hl(e)})),this.scope===cn.Podcast&&this.dispatch(ea({prop:"license_url",value:Hl(e)}))},updateLicenseDataNameNUrl(e){this.scope===cn.Episode&&(this.dispatch(wt({prop:"license_name",value:e.version})),this.dispatch(wt({prop:"license_url",value:Hl(e)}))),this.scope===cn.Podcast&&(this.dispatch(ea({prop:"license_name",value:e.version})),this.dispatch(ea({prop:"license_url",value:Hl(e)})))},getLicenseData(){return this.scope===cn.Episode?this.state.episodeLicenseUrl===null||this.state.episodeLicenseUrl===void 0?{type:"cc",version:Nt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:i1(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Nt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:i1(this.state.podcastLicenseUrl)}}}),Ite={class:"border-gray-200 border-b pb-2 px-3 py-5"},kte={class:"text-lg leading-6 font-medium text-gray-900"},Rte={class:"mb-3"},Lte=v("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),Nte=["value"],Mte=["value"],Dte={key:0,class:"mb-3"},Fte=v("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),Bte=["value"],Ute=["value"],jte={key:1,class:"mb-3"},Hte=v("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),Vte=["value"],Wte=["value"],zte={key:2,class:"mb-3"},qte=v("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),Kte=["value"],Gte=["value"],Xte={class:"mb-5"};function Jte(e,t,n,r,o,s){var a;const l=J("LicensePreview");return N(),V(Fe,null,[v("div",Ite,[v("h3",kte,U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),v("div",null,[v("div",Rte,[Lte,v("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,Dt(e.PodloveLicenseVersionList,(c,d)=>(N(),V("option",{value:c.value,key:`version-${d}`},U(c.value),9,Mte))),128))],40,Nte)]),e.isCommercialNModificationNeeded?(N(),V("div",Dte,[Fte,v("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,Dt(e.PodloveLicenseOptionModificationList,(c,d)=>(N(),V("option",{value:c.value,key:`modification-${d}`},U(c.value),9,Ute))),128))],40,Bte)])):He("",!0),e.isCommercialNModificationNeeded?(N(),V("div",jte,[Hte,v("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,Dt(e.PodloveLicenseOptionCommercialList,(c,d)=>(N(),V("option",{value:c.value,key:`commercial-${d}`},U(c.value),9,Wte))),128))],40,Vte)])):He("",!0),e.isJurisdicationNeeded?(N(),V("div",zte,[qte,v("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,Dt(e.PodloveLicenseOptionJurisdication,(c,d)=>(N(),V("option",{value:c.name,key:`jurisdiction-${d}`},U(c.name),9,Gte))),128))],40,Kte)])):He("",!0),v("div",Xte,[q(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}const tC=Be(Pte,[["render",Jte]]),Yte=ve({components:{PodloveButton:zn,Modal:Wa,LicenseSelector:tC},props:{scope:{type:String,default:cn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function Zte(e,t,n,r,o,s){const l=J("podlove-button"),a=J("LicenseSelector"),c=J("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)}const Qte=Be(Yte,[["render",Zte]]),ene=ve({components:{Module:Mn,LicenseName:Jee,LicenseUrl:rte,LicenseSelector:tC,LicenseSelectorButton:Qte},props:{scope:{type:String,default:cn.Episode}},computed:{isScopeEpisode(){return this.scope===cn.Episode},getModuleTitle(){return this.scope===cn.Episode?"Episode License":"Podcast License"}}}),tne={key:0},nne={class:"p-3"},rne={class:"mb-3"},one={class:"mb-3"},ine={key:0};function sne(e,t,n,r,o,s){const l=J("LicenseSelectorButton"),a=J("LicenseName"),c=J("LicenseUrl"),d=J("LicenseSelector"),p=J("module");return N(),bt(p,{name:"license",title:e.getModuleTitle},{actions:ye(()=>[e.isScopeEpisode?(N(),V("div",tne,[q(l,{scope:e.scope},null,8,["scope"])])):He("",!0)]),default:ye(()=>[v("div",nne,[v("div",rne,[q(a,{scope:e.scope},null,8,["scope"])]),v("div",one,[q(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?He("",!0):(N(),V("div",ine,[q(d,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}const lne=Be(ene,[["render",sne]]),ane={PodloveDescription:vV,PodloveChapters:iq,PodloveTranscripts:aK,PodloveAuphonic:VJ,PodloveContributors:jZ,PodloveMediaFiles:VQ,PodloveRelatedEpisodes:aee,PodloveSoundbite:Nee,PodloveShowSelect:Wee,PodloveLicense:lne};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=Gw({components:{...ane}});bN({store:Hd,app:t}),t.use(EF),t.mount(e)})});globalThis.initPodloveUI=e=>{Hd.dispatch(YM(e))};
  • podlove-podcasting-plugin-for-wordpress/trunk/client/dist/style.css

    r3177486 r3195601  
    1 [data-client=podlove] .tab-active{text-shadow:0 0 1px currentColor}[data-client=podlove] div>input[type=radio][data-v-eaebb871]:checked:before{background-color:#fff}/*! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com*/[data-client=podlove] *,[data-client=podlove] :after,[data-client=podlove] :before{border:0 solid #e5e7eb;box-sizing:border-box}[data-client=podlove] :after,[data-client=podlove] :before{--tw-content:""}[data-client=podlove] :host,[data-client=podlove] html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter var,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}[data-client=podlove] body{line-height:inherit;margin:0}[data-client=podlove] hr{border-top-width:1px;color:inherit;height:0}[data-client=podlove] abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}[data-client=podlove] h1,[data-client=podlove] h2,[data-client=podlove] h3,[data-client=podlove] h4,[data-client=podlove] h5,[data-client=podlove] h6{font-size:inherit;font-weight:inherit}[data-client=podlove] a{color:inherit;text-decoration:inherit}[data-client=podlove] b,[data-client=podlove] strong{font-weight:bolder}[data-client=podlove] code,[data-client=podlove] kbd,[data-client=podlove] pre,[data-client=podlove] samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}[data-client=podlove] small{font-size:80%}[data-client=podlove] sub,[data-client=podlove] sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}[data-client=podlove] sub{bottom:-.25em}[data-client=podlove] sup{top:-.5em}[data-client=podlove] table{border-collapse:collapse;border-color:inherit;text-indent:0}[data-client=podlove] button,[data-client=podlove] input,[data-client=podlove] optgroup,[data-client=podlove] select,[data-client=podlove] textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}[data-client=podlove] button,[data-client=podlove] select{text-transform:none}[data-client=podlove] button,[data-client=podlove] input:where([type=button]),[data-client=podlove] input:where([type=reset]),[data-client=podlove] input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[data-client=podlove] :-moz-focusring{outline:auto}[data-client=podlove] :-moz-ui-invalid{box-shadow:none}[data-client=podlove] progress{vertical-align:baseline}[data-client=podlove] ::-webkit-inner-spin-button,[data-client=podlove] ::-webkit-outer-spin-button{height:auto}[data-client=podlove] [type=search]{-webkit-appearance:textfield;outline-offset:-2px}[data-client=podlove] ::-webkit-search-decoration{-webkit-appearance:none}[data-client=podlove] ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[data-client=podlove] summary{display:list-item}[data-client=podlove] blockquote,[data-client=podlove] dd,[data-client=podlove] dl,[data-client=podlove] figure,[data-client=podlove] h1,[data-client=podlove] h2,[data-client=podlove] h3,[data-client=podlove] h4,[data-client=podlove] h5,[data-client=podlove] h6,[data-client=podlove] hr,[data-client=podlove] p,[data-client=podlove] pre{margin:0}[data-client=podlove] fieldset{margin:0;padding:0}[data-client=podlove] legend{padding:0}[data-client=podlove] menu,[data-client=podlove] ol,[data-client=podlove] ul{list-style:none;margin:0;padding:0}[data-client=podlove] dialog{padding:0}[data-client=podlove] textarea{resize:vertical}[data-client=podlove] input::-moz-placeholder,[data-client=podlove] textarea::-moz-placeholder{color:#9ca3af;opacity:1}[data-client=podlove] input::placeholder,[data-client=podlove] textarea::placeholder{color:#9ca3af;opacity:1}[data-client=podlove] [role=button],[data-client=podlove] button{cursor:pointer}[data-client=podlove] :disabled{cursor:default}[data-client=podlove] audio,[data-client=podlove] canvas,[data-client=podlove] embed,[data-client=podlove] iframe,[data-client=podlove] img,[data-client=podlove] object,[data-client=podlove] svg,[data-client=podlove] video{display:block;vertical-align:middle}[data-client=podlove] img,[data-client=podlove] video{height:auto;max-width:100%}[data-client=podlove] [hidden]{display:none}[data-client=podlove] [multiple],[data-client=podlove] [type=date],[data-client=podlove] [type=datetime-local],[data-client=podlove] [type=email],[data-client=podlove] [type=month],[data-client=podlove] [type=number],[data-client=podlove] [type=password],[data-client=podlove] [type=search],[data-client=podlove] [type=tel],[data-client=podlove] [type=text],[data-client=podlove] [type=time],[data-client=podlove] [type=url],[data-client=podlove] [type=week],[data-client=podlove] input:where(:not([type])),[data-client=podlove] select,[data-client=podlove] textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[data-client=podlove] [multiple]:focus,[data-client=podlove] [type=date]:focus,[data-client=podlove] [type=datetime-local]:focus,[data-client=podlove] [type=email]:focus,[data-client=podlove] [type=month]:focus,[data-client=podlove] [type=number]:focus,[data-client=podlove] [type=password]:focus,[data-client=podlove] [type=search]:focus,[data-client=podlove] [type=tel]:focus,[data-client=podlove] [type=text]:focus,[data-client=podlove] [type=time]:focus,[data-client=podlove] [type=url]:focus,[data-client=podlove] [type=week]:focus,[data-client=podlove] input:where(:not([type])):focus,[data-client=podlove] select:focus,[data-client=podlove] textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[data-client=podlove] input::-moz-placeholder,[data-client=podlove] textarea::-moz-placeholder{color:#6b7280;opacity:1}[data-client=podlove] input::placeholder,[data-client=podlove] textarea::placeholder{color:#6b7280;opacity:1}[data-client=podlove] ::-webkit-datetime-edit-fields-wrapper{padding:0}[data-client=podlove] ::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}[data-client=podlove] ::-webkit-datetime-edit{display:inline-flex}[data-client=podlove] ::-webkit-datetime-edit,[data-client=podlove] ::-webkit-datetime-edit-day-field,[data-client=podlove] ::-webkit-datetime-edit-hour-field,[data-client=podlove] ::-webkit-datetime-edit-meridiem-field,[data-client=podlove] ::-webkit-datetime-edit-millisecond-field,[data-client=podlove] ::-webkit-datetime-edit-minute-field,[data-client=podlove] ::-webkit-datetime-edit-month-field,[data-client=podlove] ::-webkit-datetime-edit-second-field,[data-client=podlove] ::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}[data-client=podlove] select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[data-client=podlove] [multiple],[data-client=podlove] [size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[data-client=podlove] [type=checkbox],[data-client=podlove] [type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[data-client=podlove] [type=checkbox]{border-radius:0}[data-client=podlove] [type=radio]{border-radius:100%}[data-client=podlove] [type=checkbox]:focus,[data-client=podlove] [type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[data-client=podlove] [type=checkbox]:checked,[data-client=podlove] [type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[data-client=podlove] [type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}@media (forced-colors:active){[data-client=podlove] [type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active){[data-client=podlove] [type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=checkbox]:checked:focus,[data-client=podlove] [type=checkbox]:checked:hover,[data-client=podlove] [type=radio]:checked:focus,[data-client=podlove] [type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[data-client=podlove] [type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active){[data-client=podlove] [type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=checkbox]:indeterminate:focus,[data-client=podlove] [type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[data-client=podlove] [type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[data-client=podlove] [type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}[data-client=podlove] *,[data-client=podlove] :after,[data-client=podlove] :before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-client=podlove] ::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-client=podlove] .container{width:100%}@media (min-width:640px){[data-client=podlove] .container{max-width:640px}}@media (min-width:768px){[data-client=podlove] .container{max-width:768px}}@media (min-width:1024px){[data-client=podlove] .container{max-width:1024px}}@media (min-width:1280px){[data-client=podlove] .container{max-width:1280px}}@media (min-width:1536px){[data-client=podlove] .container{max-width:1536px}}[data-client=podlove] .sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-client=podlove] .pointer-events-none{pointer-events:none}[data-client=podlove] .visible{visibility:visible}[data-client=podlove] .static{position:static}[data-client=podlove] .fixed{position:fixed}[data-client=podlove] .absolute{position:absolute}[data-client=podlove] .relative{position:relative}[data-client=podlove] .inset-0{top:0;right:0;bottom:0;left:0}[data-client=podlove] .inset-y-0{bottom:0;top:0}[data-client=podlove] .-top-2{top:-.5rem}[data-client=podlove] .bottom-0{bottom:0}[data-client=podlove] .left-0{left:0}[data-client=podlove] .left-4{left:1rem}[data-client=podlove] .left-\[-14px\]{left:-14px}[data-client=podlove] .right-0{right:0}[data-client=podlove] .right-10{right:2.5rem}[data-client=podlove] .right-2{right:.5rem}[data-client=podlove] .top-0{top:0}[data-client=podlove] .top-1\/2{top:50%}[data-client=podlove] .z-10{z-index:10}[data-client=podlove] .z-50{z-index:50}[data-client=podlove] .-m-2{margin:-.5rem}[data-client=podlove] .-m-3{margin:-.75rem}[data-client=podlove] .m-1{margin:.25rem}[data-client=podlove] .m-12{margin:3rem}[data-client=podlove] .m-6{margin:1.5rem}[data-client=podlove] .m-7{margin:1.75rem}[data-client=podlove] .-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}[data-client=podlove] .-my-5{margin-bottom:-1.25rem;margin-top:-1.25rem}[data-client=podlove] .mx-2{margin-left:.5rem;margin-right:.5rem}[data-client=podlove] .mx-auto{margin-left:auto;margin-right:auto}[data-client=podlove] .-mb-px{margin-bottom:-1px}[data-client=podlove] .-ml-0{margin-left:0}[data-client=podlove] .-ml-0\.5{margin-left:-.125rem}[data-client=podlove] .-ml-2{margin-left:-.5rem}[data-client=podlove] .-ml-4{margin-left:-1rem}[data-client=podlove] .-mr-0{margin-right:0}[data-client=podlove] .-mr-0\.5{margin-right:-.125rem}[data-client=podlove] .-mt-2{margin-top:-.5rem}[data-client=podlove] .-mt-2\.5{margin-top:-.625rem}[data-client=podlove] .-mt-3{margin-top:-.75rem}[data-client=podlove] .-mt-4{margin-top:-1rem}[data-client=podlove] .mb-0{margin-bottom:0}[data-client=podlove] .mb-1{margin-bottom:.25rem}[data-client=podlove] .mb-2{margin-bottom:.5rem}[data-client=podlove] .mb-3{margin-bottom:.75rem}[data-client=podlove] .mb-4{margin-bottom:1rem}[data-client=podlove] .mb-5{margin-bottom:1.25rem}[data-client=podlove] .ml-0{margin-left:0}[data-client=podlove] .ml-0\.5{margin-left:.125rem}[data-client=podlove] .ml-1{margin-left:.25rem}[data-client=podlove] .ml-16{margin-left:4rem}[data-client=podlove] .ml-2{margin-left:.5rem}[data-client=podlove] .ml-3{margin-left:.75rem}[data-client=podlove] .ml-4{margin-left:1rem}[data-client=podlove] .ml-5{margin-left:1.25rem}[data-client=podlove] .mr-1{margin-right:.25rem}[data-client=podlove] .mr-1\.5{margin-right:.375rem}[data-client=podlove] .mr-2{margin-right:.5rem}[data-client=podlove] .mr-3{margin-right:.75rem}[data-client=podlove] .mr-5{margin-right:1.25rem}[data-client=podlove] .mt-0{margin-top:0}[data-client=podlove] .mt-1{margin-top:.25rem}[data-client=podlove] .mt-10{margin-top:2.5rem}[data-client=podlove] .mt-2{margin-top:.5rem}[data-client=podlove] .mt-3{margin-top:.75rem}[data-client=podlove] .mt-4{margin-top:1rem}[data-client=podlove] .mt-5{margin-top:1.25rem}[data-client=podlove] .mt-6{margin-top:1.5rem}[data-client=podlove] .mt-\[30px\]{margin-top:30px}[data-client=podlove] .block{display:block}[data-client=podlove] .inline-block{display:inline-block}[data-client=podlove] .flex{display:flex}[data-client=podlove] .inline-flex{display:inline-flex}[data-client=podlove] .table{display:table}[data-client=podlove] .flow-root{display:flow-root}[data-client=podlove] .grid{display:grid}[data-client=podlove] .contents{display:contents}[data-client=podlove] .hidden{display:none}[data-client=podlove] .h-12{height:3rem}[data-client=podlove] .h-16{height:4rem}[data-client=podlove] .h-4{height:1rem}[data-client=podlove] .h-44{height:11rem}[data-client=podlove] .h-5{height:1.25rem}[data-client=podlove] .h-6{height:1.5rem}[data-client=podlove] .h-96{height:24rem}[data-client=podlove] .h-full{height:100%}[data-client=podlove] .max-h-36{max-height:9rem}[data-client=podlove] .max-h-56{max-height:14rem}[data-client=podlove] .max-h-60{max-height:15rem}[data-client=podlove] .min-h-screen{min-height:100vh}[data-client=podlove] .w-11{width:2.75rem}[data-client=podlove] .w-12{width:3rem}[data-client=podlove] .w-16{width:4rem}[data-client=podlove] .w-32{width:8rem}[data-client=podlove] .w-4{width:1rem}[data-client=podlove] .w-44{width:11rem}[data-client=podlove] .w-5{width:1.25rem}[data-client=podlove] .w-6{width:1.5rem}[data-client=podlove] .w-8{width:2rem}[data-client=podlove] .w-\[168px\]{width:168px}[data-client=podlove] .w-full{width:100%}[data-client=podlove] .min-w-0{min-width:0}[data-client=podlove] .min-w-full{min-width:100%}[data-client=podlove] .max-w-5xl{max-width:64rem}[data-client=podlove] .max-w-lg{max-width:32rem}[data-client=podlove] .max-w-md{max-width:28rem}[data-client=podlove] .max-w-sm{max-width:24rem}[data-client=podlove] .flex-1{flex:1 1 0%}[data-client=podlove] .flex-shrink-0{flex-shrink:0}[data-client=podlove] .table-fixed{table-layout:fixed}[data-client=podlove] .-translate-x-full{--tw-translate-x:-100%}[data-client=podlove] .-translate-x-full,[data-client=podlove] .-translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .-translate-y-full{--tw-translate-y:-100%}[data-client=podlove] .translate-x-0{--tw-translate-x:0px}[data-client=podlove] .translate-x-0,[data-client=podlove] .translate-x-5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .translate-x-5{--tw-translate-x:1.25rem}[data-client=podlove] .translate-y-0{--tw-translate-y:0px}[data-client=podlove] .translate-y-0,[data-client=podlove] .translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .translate-y-1{--tw-translate-y:.25rem}[data-client=podlove] .translate-y-4{--tw-translate-y:1rem}[data-client=podlove] .transform,[data-client=podlove] .translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}[data-client=podlove] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}[data-client=podlove] .animate-spin{animation:spin 1s linear infinite}[data-client=podlove] .cursor-default{cursor:default}[data-client=podlove] .cursor-not-allowed{cursor:not-allowed}[data-client=podlove] .cursor-pointer{cursor:pointer}[data-client=podlove] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-client=podlove] .resize-y{resize:vertical}[data-client=podlove] .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}[data-client=podlove] .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .flex-col{flex-direction:column}[data-client=podlove] .flex-wrap{flex-wrap:wrap}[data-client=podlove] .content-center{align-content:center}[data-client=podlove] .items-start{align-items:flex-start}[data-client=podlove] .items-end{align-items:flex-end}[data-client=podlove] .items-center{align-items:center}[data-client=podlove] .justify-start{justify-content:flex-start}[data-client=podlove] .justify-end{justify-content:flex-end}[data-client=podlove] .justify-center{justify-content:center}[data-client=podlove] .justify-between{justify-content:space-between}[data-client=podlove] .justify-around{justify-content:space-around}[data-client=podlove] .justify-items-stretch{justify-items:stretch}[data-client=podlove] .gap-2{gap:.5rem}[data-client=podlove] .gap-3{gap:.75rem}[data-client=podlove] .gap-4{gap:1rem}[data-client=podlove] .gap-8{gap:2rem}[data-client=podlove] .gap-x-4{-moz-column-gap:1rem;column-gap:1rem}[data-client=podlove] .gap-y-6{row-gap:1.5rem}[data-client=podlove] .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}[data-client=podlove] .divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}[data-client=podlove] .divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(209 213 219/var(--tw-divide-opacity))}[data-client=podlove] .overflow-auto{overflow:auto}[data-client=podlove] .overflow-hidden{overflow:hidden}[data-client=podlove] .overflow-x-auto{overflow-x:auto}[data-client=podlove] .overflow-y-auto{overflow-y:auto}[data-client=podlove] .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-client=podlove] .whitespace-nowrap{white-space:nowrap}[data-client=podlove] .rounded{border-radius:.25rem}[data-client=podlove] .rounded-full{border-radius:9999px}[data-client=podlove] .rounded-lg{border-radius:.5rem}[data-client=podlove] .rounded-md{border-radius:.375rem}[data-client=podlove] .rounded-xl{border-radius:.75rem}[data-client=podlove] .rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}[data-client=podlove] .border{border-width:1px}[data-client=podlove] .border-0{border-width:0}[data-client=podlove] .border-2{border-width:2px}[data-client=podlove] .border-b{border-bottom-width:1px}[data-client=podlove] .border-b-2{border-bottom-width:2px}[data-client=podlove] .border-t{border-top-width:1px}[data-client=podlove] .border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}[data-client=podlove] .border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}[data-client=podlove] .border-gray-900\/10{border-color:#1118271a}[data-client=podlove] .border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .border-transparent{border-color:transparent}[data-client=podlove] .bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}[data-client=podlove] .bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}[data-client=podlove] .bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}[data-client=podlove] .bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}[data-client=podlove] .bg-transparent{background-color:transparent}[data-client=podlove] .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}[data-client=podlove] .bg-opacity-40{--tw-bg-opacity:.4}[data-client=podlove] .bg-opacity-50{--tw-bg-opacity:.5}[data-client=podlove] .bg-opacity-75{--tw-bg-opacity:.75}[data-client=podlove] .bg-cover{background-size:cover}[data-client=podlove] .bg-center{background-position:50%}[data-client=podlove] .bg-no-repeat{background-repeat:no-repeat}[data-client=podlove] .p-2{padding:.5rem}[data-client=podlove] .p-3{padding:.75rem}[data-client=podlove] .p-4{padding:1rem}[data-client=podlove] .p-6{padding:1.5rem}[data-client=podlove] .p-7{padding:1.75rem}[data-client=podlove] .px-1{padding-left:.25rem;padding-right:.25rem}[data-client=podlove] .px-2{padding-left:.5rem;padding-right:.5rem}[data-client=podlove] .px-2\.5{padding-left:.625rem;padding-right:.625rem}[data-client=podlove] .px-3{padding-left:.75rem;padding-right:.75rem}[data-client=podlove] .px-4{padding-left:1rem;padding-right:1rem}[data-client=podlove] .px-6{padding-left:1.5rem;padding-right:1.5rem}[data-client=podlove] .px-7{padding-left:1.75rem;padding-right:1.75rem}[data-client=podlove] .py-0{padding-bottom:0;padding-top:0}[data-client=podlove] .py-0\.5{padding-bottom:.125rem;padding-top:.125rem}[data-client=podlove] .py-1{padding-bottom:.25rem;padding-top:.25rem}[data-client=podlove] .py-1\.5{padding-bottom:.375rem;padding-top:.375rem}[data-client=podlove] .py-2{padding-bottom:.5rem;padding-top:.5rem}[data-client=podlove] .py-3{padding-bottom:.75rem;padding-top:.75rem}[data-client=podlove] .py-3\.5{padding-bottom:.875rem;padding-top:.875rem}[data-client=podlove] .py-4{padding-bottom:1rem;padding-top:1rem}[data-client=podlove] .py-5{padding-bottom:1.25rem;padding-top:1.25rem}[data-client=podlove] .py-6{padding-bottom:1.5rem;padding-top:1.5rem}[data-client=podlove] .pb-1{padding-bottom:.25rem}[data-client=podlove] .pb-12{padding-bottom:3rem}[data-client=podlove] .pb-2{padding-bottom:.5rem}[data-client=podlove] .pb-20{padding-bottom:5rem}[data-client=podlove] .pb-3{padding-bottom:.75rem}[data-client=podlove] .pb-4{padding-bottom:1rem}[data-client=podlove] .pb-5{padding-bottom:1.25rem}[data-client=podlove] .pl-1{padding-left:.25rem}[data-client=podlove] .pl-10{padding-left:2.5rem}[data-client=podlove] .pl-3{padding-left:.75rem}[data-client=podlove] .pr-10{padding-right:2.5rem}[data-client=podlove] .pr-12{padding-right:3rem}[data-client=podlove] .pr-2{padding-right:.5rem}[data-client=podlove] .pr-3{padding-right:.75rem}[data-client=podlove] .pr-4{padding-right:1rem}[data-client=podlove] .pr-8{padding-right:2rem}[data-client=podlove] .pr-9{padding-right:2.25rem}[data-client=podlove] .pt-4{padding-top:1rem}[data-client=podlove] .pt-5{padding-top:1.25rem}[data-client=podlove] .text-left{text-align:left}[data-client=podlove] .text-center{text-align:center}[data-client=podlove] .text-right{text-align:right}[data-client=podlove] .align-middle{vertical-align:middle}[data-client=podlove] .align-bottom{vertical-align:bottom}[data-client=podlove] .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}[data-client=podlove] .font-sans{font-family:Inter var,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}[data-client=podlove] .text-base{font-size:1rem;line-height:1.5rem}[data-client=podlove] .text-lg{font-size:1.125rem;line-height:1.75rem}[data-client=podlove] .text-sm{font-size:.875rem;line-height:1.25rem}[data-client=podlove] .text-xs{font-size:.75rem;line-height:1rem}[data-client=podlove] .font-bold{font-weight:700}[data-client=podlove] .font-light{font-weight:300}[data-client=podlove] .font-medium{font-weight:500}[data-client=podlove] .font-normal{font-weight:400}[data-client=podlove] .font-semibold{font-weight:600}[data-client=podlove] .uppercase{text-transform:uppercase}[data-client=podlove] .tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}[data-client=podlove] .leading-3{line-height:.75rem}[data-client=podlove] .leading-4{line-height:1rem}[data-client=podlove] .leading-5{line-height:1.25rem}[data-client=podlove] .leading-6{line-height:1.5rem}[data-client=podlove] .text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}[data-client=podlove] .text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity))}[data-client=podlove] .text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}[data-client=podlove] .text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}[data-client=podlove] .text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}[data-client=podlove] .text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}[data-client=podlove] .text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}[data-client=podlove] .text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}[data-client=podlove] .text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}[data-client=podlove] .text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}[data-client=podlove] .text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-200{--tw-text-opacity:1;color:rgb(199 210 254/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-400{--tw-text-opacity:1;color:rgb(129 140 248/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-700{--tw-text-opacity:1;color:rgb(67 56 202/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-800{--tw-text-opacity:1;color:rgb(55 48 163/var(--tw-text-opacity))}[data-client=podlove] .text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}[data-client=podlove] .text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}[data-client=podlove] .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}[data-client=podlove] .underline{text-decoration-line:underline}[data-client=podlove] .opacity-0{opacity:0}[data-client=podlove] .opacity-100{opacity:1}[data-client=podlove] .opacity-50{opacity:.5}[data-client=podlove] .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}[data-client=podlove] .shadow,[data-client=podlove] .shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}[data-client=podlove] .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}[data-client=podlove] .shadow-md,[data-client=podlove] .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}[data-client=podlove] .shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}[data-client=podlove] .ring-0,[data-client=podlove] .ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}[data-client=podlove] .ring-inset{--tw-ring-inset:inset}[data-client=podlove] .ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}[data-client=podlove] .ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}[data-client=podlove] .ring-opacity-5{--tw-ring-opacity:.05}[data-client=podlove] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-client=podlove] .transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .duration-100{transition-duration:.1s}[data-client=podlove] .duration-150{transition-duration:.15s}[data-client=podlove] .duration-200{transition-duration:.2s}[data-client=podlove] .duration-300{transition-duration:.3s}[data-client=podlove] .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}[data-client=podlove] .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}[data-client=podlove] input[type=checkbox]:checked:before{content:""}[data-client=podlove] .placeholder\:text-gray-400::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-client=podlove] .focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus-within\:ring-inset:focus-within{--tw-ring-inset:inset}[data-client=podlove] .focus-within\:ring-indigo-500:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus-within\:ring-indigo-600:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}[data-client=podlove] .focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}[data-client=podlove] .hover\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}[data-client=podlove] .hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-100:hover{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-200:hover{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}[data-client=podlove] .hover\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}[data-client=podlove] .hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}[data-client=podlove] .hover\:text-indigo-500:hover{--tw-text-opacity:1;color:rgb(99 102 241/var(--tw-text-opacity))}[data-client=podlove] .hover\:opacity-0:hover{opacity:0}[data-client=podlove] .hover\:opacity-100:hover{opacity:1}[data-client=podlove] .focus\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-client=podlove] .focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-inset:focus{--tw-ring-inset:inset}[data-client=podlove] .focus\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-indigo-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}[data-client=podlove] .focus-visible\:border-indigo-500:focus-visible{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .focus-visible\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus-visible\:ring-indigo-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus-visible\:ring-opacity-50:focus-visible{--tw-ring-opacity:.5}[data-client=podlove] .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}[data-client=podlove] .disabled\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-indigo-300:disabled{--tw-bg-opacity:1;background-color:rgb(165 180 252/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-indigo-50:disabled{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-red-300:disabled{--tw-bg-opacity:1;background-color:rgb(252 165 165/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:opacity-30:disabled{opacity:.3}[data-client=podlove] .disabled\:opacity-75:disabled{opacity:.75}[data-client=podlove] .disabled\:hover\:bg-white:hover:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}@media (min-width:640px){[data-client=podlove] .sm\:col-span-2{grid-column:span 2/span 2}[data-client=podlove] .sm\:col-span-4{grid-column:span 4/span 4}[data-client=podlove] .sm\:mx-0{margin-left:0;margin-right:0}[data-client=podlove] .sm\:my-8{margin-bottom:2rem;margin-top:2rem}[data-client=podlove] .sm\:ml-3{margin-left:.75rem}[data-client=podlove] .sm\:ml-4{margin-left:1rem}[data-client=podlove] .sm\:mt-0{margin-top:0}[data-client=podlove] .sm\:mt-1{margin-top:.25rem}[data-client=podlove] .sm\:mt-4{margin-top:1rem}[data-client=podlove] .sm\:mt-8{margin-top:2rem}[data-client=podlove] .sm\:block{display:block}[data-client=podlove] .sm\:inline-block{display:inline-block}[data-client=podlove] .sm\:inline{display:inline}[data-client=podlove] .sm\:flex{display:flex}[data-client=podlove] .sm\:grid{display:grid}[data-client=podlove] .sm\:h-10{height:2.5rem}[data-client=podlove] .sm\:h-screen{height:100vh}[data-client=podlove] .sm\:w-10{width:2.5rem}[data-client=podlove] .sm\:w-12{width:3rem}[data-client=podlove] .sm\:w-auto{width:auto}[data-client=podlove] .sm\:w-full{width:100%}[data-client=podlove] .sm\:max-w-md{max-width:28rem}[data-client=podlove] .sm\:max-w-sm{max-width:24rem}[data-client=podlove] .sm\:max-w-xs{max-width:20rem}[data-client=podlove] .sm\:translate-y-0{--tw-translate-y:0px}[data-client=podlove] .sm\:scale-100,[data-client=podlove] .sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}[data-client=podlove] .sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}[data-client=podlove] .sm\:grid-cols-\[175px_auto_auto\]{grid-template-columns:175px auto auto}[data-client=podlove] .sm\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}[data-client=podlove] .sm\:flex-row{flex-direction:row}[data-client=podlove] .sm\:flex-row-reverse{flex-direction:row-reverse}[data-client=podlove] .sm\:flex-nowrap{flex-wrap:nowrap}[data-client=podlove] .sm\:items-start{align-items:flex-start}[data-client=podlove] .sm\:items-baseline{align-items:baseline}[data-client=podlove] .sm\:gap-0{gap:0}[data-client=podlove] .sm\:gap-2{gap:.5rem}[data-client=podlove] .sm\:gap-4{gap:1rem}[data-client=podlove] .sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .sm\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(1px*var(--tw-divide-x-reverse))}[data-client=podlove] .sm\:divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}[data-client=podlove] .sm\:divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}[data-client=podlove] .sm\:divide-gray-900\/10>:not([hidden])~:not([hidden]){border-color:#1118271a}[data-client=podlove] .sm\:rounded-lg{border-radius:.5rem}[data-client=podlove] .sm\:p-0{padding:0}[data-client=podlove] .sm\:p-6{padding:1.5rem}[data-client=podlove] .sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}[data-client=podlove] .sm\:py-6{padding-bottom:1.5rem;padding-top:1.5rem}[data-client=podlove] .sm\:pb-0{padding-bottom:0}[data-client=podlove] .sm\:pt-1{padding-top:.25rem}[data-client=podlove] .sm\:pt-1\.5{padding-top:.375rem}[data-client=podlove] .sm\:text-left{text-align:left}[data-client=podlove] .sm\:align-middle{vertical-align:middle}[data-client=podlove] .sm\:text-sm{font-size:.875rem;line-height:1.25rem}[data-client=podlove] .sm\:leading-6{line-height:1.5rem}[data-client=podlove] .sm\:shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}@media (min-width:768px){[data-client=podlove] .md\:col-span-1{grid-column:span 1/span 1}[data-client=podlove] .md\:mx-4{margin-left:1rem;margin-right:1rem}[data-client=podlove] .md\:my-2{margin-bottom:.5rem;margin-top:.5rem}[data-client=podlove] .md\:mr-5{margin-right:1.25rem}[data-client=podlove] .md\:mt-0{margin-top:0}[data-client=podlove] .md\:block{display:block}[data-client=podlove] .md\:flex{display:flex}[data-client=podlove] .md\:grid{display:grid}[data-client=podlove] .md\:hidden{display:none}[data-client=podlove] .md\:w-4\/12{width:33.333333%}[data-client=podlove] .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}[data-client=podlove] .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}[data-client=podlove] .md\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}[data-client=podlove] .md\:gap-12{gap:3rem}[data-client=podlove] .md\:gap-4{gap:1rem}}
     1[data-client=podlove] .tab-active{text-shadow:0 0 1px currentColor}[data-client=podlove] div>input[type=radio][data-v-eaebb871]:checked:before{background-color:#fff}/*! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com*/[data-client=podlove] *,[data-client=podlove] :after,[data-client=podlove] :before{border:0 solid #e5e7eb;box-sizing:border-box}[data-client=podlove] :after,[data-client=podlove] :before{--tw-content:""}[data-client=podlove] :host,[data-client=podlove] html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter var,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}[data-client=podlove] body{line-height:inherit;margin:0}[data-client=podlove] hr{border-top-width:1px;color:inherit;height:0}[data-client=podlove] abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}[data-client=podlove] h1,[data-client=podlove] h2,[data-client=podlove] h3,[data-client=podlove] h4,[data-client=podlove] h5,[data-client=podlove] h6{font-size:inherit;font-weight:inherit}[data-client=podlove] a{color:inherit;text-decoration:inherit}[data-client=podlove] b,[data-client=podlove] strong{font-weight:bolder}[data-client=podlove] code,[data-client=podlove] kbd,[data-client=podlove] pre,[data-client=podlove] samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}[data-client=podlove] small{font-size:80%}[data-client=podlove] sub,[data-client=podlove] sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}[data-client=podlove] sub{bottom:-.25em}[data-client=podlove] sup{top:-.5em}[data-client=podlove] table{border-collapse:collapse;border-color:inherit;text-indent:0}[data-client=podlove] button,[data-client=podlove] input,[data-client=podlove] optgroup,[data-client=podlove] select,[data-client=podlove] textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}[data-client=podlove] button,[data-client=podlove] select{text-transform:none}[data-client=podlove] button,[data-client=podlove] input:where([type=button]),[data-client=podlove] input:where([type=reset]),[data-client=podlove] input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[data-client=podlove] :-moz-focusring{outline:auto}[data-client=podlove] :-moz-ui-invalid{box-shadow:none}[data-client=podlove] progress{vertical-align:baseline}[data-client=podlove] ::-webkit-inner-spin-button,[data-client=podlove] ::-webkit-outer-spin-button{height:auto}[data-client=podlove] [type=search]{-webkit-appearance:textfield;outline-offset:-2px}[data-client=podlove] ::-webkit-search-decoration{-webkit-appearance:none}[data-client=podlove] ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[data-client=podlove] summary{display:list-item}[data-client=podlove] blockquote,[data-client=podlove] dd,[data-client=podlove] dl,[data-client=podlove] figure,[data-client=podlove] h1,[data-client=podlove] h2,[data-client=podlove] h3,[data-client=podlove] h4,[data-client=podlove] h5,[data-client=podlove] h6,[data-client=podlove] hr,[data-client=podlove] p,[data-client=podlove] pre{margin:0}[data-client=podlove] fieldset{margin:0;padding:0}[data-client=podlove] legend{padding:0}[data-client=podlove] menu,[data-client=podlove] ol,[data-client=podlove] ul{list-style:none;margin:0;padding:0}[data-client=podlove] dialog{padding:0}[data-client=podlove] textarea{resize:vertical}[data-client=podlove] input::-moz-placeholder,[data-client=podlove] textarea::-moz-placeholder{color:#9ca3af;opacity:1}[data-client=podlove] input::placeholder,[data-client=podlove] textarea::placeholder{color:#9ca3af;opacity:1}[data-client=podlove] [role=button],[data-client=podlove] button{cursor:pointer}[data-client=podlove] :disabled{cursor:default}[data-client=podlove] audio,[data-client=podlove] canvas,[data-client=podlove] embed,[data-client=podlove] iframe,[data-client=podlove] img,[data-client=podlove] object,[data-client=podlove] svg,[data-client=podlove] video{display:block;vertical-align:middle}[data-client=podlove] img,[data-client=podlove] video{height:auto;max-width:100%}[data-client=podlove] [hidden]{display:none}[data-client=podlove] [multiple],[data-client=podlove] [type=date],[data-client=podlove] [type=datetime-local],[data-client=podlove] [type=email],[data-client=podlove] [type=month],[data-client=podlove] [type=number],[data-client=podlove] [type=password],[data-client=podlove] [type=search],[data-client=podlove] [type=tel],[data-client=podlove] [type=text],[data-client=podlove] [type=time],[data-client=podlove] [type=url],[data-client=podlove] [type=week],[data-client=podlove] input:where(:not([type])),[data-client=podlove] select,[data-client=podlove] textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[data-client=podlove] [multiple]:focus,[data-client=podlove] [type=date]:focus,[data-client=podlove] [type=datetime-local]:focus,[data-client=podlove] [type=email]:focus,[data-client=podlove] [type=month]:focus,[data-client=podlove] [type=number]:focus,[data-client=podlove] [type=password]:focus,[data-client=podlove] [type=search]:focus,[data-client=podlove] [type=tel]:focus,[data-client=podlove] [type=text]:focus,[data-client=podlove] [type=time]:focus,[data-client=podlove] [type=url]:focus,[data-client=podlove] [type=week]:focus,[data-client=podlove] input:where(:not([type])):focus,[data-client=podlove] select:focus,[data-client=podlove] textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[data-client=podlove] input::-moz-placeholder,[data-client=podlove] textarea::-moz-placeholder{color:#6b7280;opacity:1}[data-client=podlove] input::placeholder,[data-client=podlove] textarea::placeholder{color:#6b7280;opacity:1}[data-client=podlove] ::-webkit-datetime-edit-fields-wrapper{padding:0}[data-client=podlove] ::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}[data-client=podlove] ::-webkit-datetime-edit{display:inline-flex}[data-client=podlove] ::-webkit-datetime-edit,[data-client=podlove] ::-webkit-datetime-edit-day-field,[data-client=podlove] ::-webkit-datetime-edit-hour-field,[data-client=podlove] ::-webkit-datetime-edit-meridiem-field,[data-client=podlove] ::-webkit-datetime-edit-millisecond-field,[data-client=podlove] ::-webkit-datetime-edit-minute-field,[data-client=podlove] ::-webkit-datetime-edit-month-field,[data-client=podlove] ::-webkit-datetime-edit-second-field,[data-client=podlove] ::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}[data-client=podlove] select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[data-client=podlove] [multiple],[data-client=podlove] [size]:where(select:not([size="1"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[data-client=podlove] [type=checkbox],[data-client=podlove] [type=radio]{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[data-client=podlove] [type=checkbox]{border-radius:0}[data-client=podlove] [type=radio]{border-radius:100%}[data-client=podlove] [type=checkbox]:focus,[data-client=podlove] [type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[data-client=podlove] [type=checkbox]:checked,[data-client=podlove] [type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[data-client=podlove] [type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}@media (forced-colors:active){[data-client=podlove] [type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}@media (forced-colors:active){[data-client=podlove] [type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=checkbox]:checked:focus,[data-client=podlove] [type=checkbox]:checked:hover,[data-client=podlove] [type=radio]:checked:focus,[data-client=podlove] [type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[data-client=podlove] [type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active){[data-client=podlove] [type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[data-client=podlove] [type=checkbox]:indeterminate:focus,[data-client=podlove] [type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[data-client=podlove] [type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[data-client=podlove] [type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}[data-client=podlove] *,[data-client=podlove] :after,[data-client=podlove] :before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-client=podlove] ::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-client=podlove] .container{width:100%}@media (min-width:640px){[data-client=podlove] .container{max-width:640px}}@media (min-width:768px){[data-client=podlove] .container{max-width:768px}}@media (min-width:1024px){[data-client=podlove] .container{max-width:1024px}}@media (min-width:1280px){[data-client=podlove] .container{max-width:1280px}}@media (min-width:1536px){[data-client=podlove] .container{max-width:1536px}}[data-client=podlove] .sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}[data-client=podlove] .pointer-events-none{pointer-events:none}[data-client=podlove] .visible{visibility:visible}[data-client=podlove] .static{position:static}[data-client=podlove] .fixed{position:fixed}[data-client=podlove] .absolute{position:absolute}[data-client=podlove] .relative{position:relative}[data-client=podlove] .inset-0{top:0;right:0;bottom:0;left:0}[data-client=podlove] .inset-y-0{bottom:0;top:0}[data-client=podlove] .-top-2{top:-.5rem}[data-client=podlove] .bottom-0{bottom:0}[data-client=podlove] .left-0{left:0}[data-client=podlove] .left-4{left:1rem}[data-client=podlove] .left-\[-14px\]{left:-14px}[data-client=podlove] .right-0{right:0}[data-client=podlove] .right-10{right:2.5rem}[data-client=podlove] .right-2{right:.5rem}[data-client=podlove] .top-0{top:0}[data-client=podlove] .top-1\/2{top:50%}[data-client=podlove] .z-10{z-index:10}[data-client=podlove] .z-50{z-index:50}[data-client=podlove] .-m-2{margin:-.5rem}[data-client=podlove] .-m-3{margin:-.75rem}[data-client=podlove] .m-1{margin:.25rem}[data-client=podlove] .m-12{margin:3rem}[data-client=podlove] .m-6{margin:1.5rem}[data-client=podlove] .m-7{margin:1.75rem}[data-client=podlove] .-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}[data-client=podlove] .-my-5{margin-bottom:-1.25rem;margin-top:-1.25rem}[data-client=podlove] .mx-2{margin-left:.5rem;margin-right:.5rem}[data-client=podlove] .mx-auto{margin-left:auto;margin-right:auto}[data-client=podlove] .-mb-px{margin-bottom:-1px}[data-client=podlove] .-ml-0{margin-left:0}[data-client=podlove] .-ml-0\.5{margin-left:-.125rem}[data-client=podlove] .-ml-2{margin-left:-.5rem}[data-client=podlove] .-ml-4{margin-left:-1rem}[data-client=podlove] .-mr-0{margin-right:0}[data-client=podlove] .-mr-0\.5{margin-right:-.125rem}[data-client=podlove] .-mt-2{margin-top:-.5rem}[data-client=podlove] .-mt-2\.5{margin-top:-.625rem}[data-client=podlove] .-mt-3{margin-top:-.75rem}[data-client=podlove] .-mt-4{margin-top:-1rem}[data-client=podlove] .mb-0{margin-bottom:0}[data-client=podlove] .mb-1{margin-bottom:.25rem}[data-client=podlove] .mb-2{margin-bottom:.5rem}[data-client=podlove] .mb-3{margin-bottom:.75rem}[data-client=podlove] .mb-4{margin-bottom:1rem}[data-client=podlove] .mb-5{margin-bottom:1.25rem}[data-client=podlove] .ml-0{margin-left:0}[data-client=podlove] .ml-0\.5{margin-left:.125rem}[data-client=podlove] .ml-1{margin-left:.25rem}[data-client=podlove] .ml-16{margin-left:4rem}[data-client=podlove] .ml-2{margin-left:.5rem}[data-client=podlove] .ml-3{margin-left:.75rem}[data-client=podlove] .ml-4{margin-left:1rem}[data-client=podlove] .ml-5{margin-left:1.25rem}[data-client=podlove] .mr-1{margin-right:.25rem}[data-client=podlove] .mr-1\.5{margin-right:.375rem}[data-client=podlove] .mr-2{margin-right:.5rem}[data-client=podlove] .mr-3{margin-right:.75rem}[data-client=podlove] .mr-5{margin-right:1.25rem}[data-client=podlove] .mt-0{margin-top:0}[data-client=podlove] .mt-1{margin-top:.25rem}[data-client=podlove] .mt-10{margin-top:2.5rem}[data-client=podlove] .mt-2{margin-top:.5rem}[data-client=podlove] .mt-3{margin-top:.75rem}[data-client=podlove] .mt-4{margin-top:1rem}[data-client=podlove] .mt-5{margin-top:1.25rem}[data-client=podlove] .mt-6{margin-top:1.5rem}[data-client=podlove] .mt-\[30px\]{margin-top:30px}[data-client=podlove] .block{display:block}[data-client=podlove] .inline-block{display:inline-block}[data-client=podlove] .flex{display:flex}[data-client=podlove] .inline-flex{display:inline-flex}[data-client=podlove] .table{display:table}[data-client=podlove] .flow-root{display:flow-root}[data-client=podlove] .grid{display:grid}[data-client=podlove] .contents{display:contents}[data-client=podlove] .hidden{display:none}[data-client=podlove] .h-12{height:3rem}[data-client=podlove] .h-16{height:4rem}[data-client=podlove] .h-2{height:.5rem}[data-client=podlove] .h-4{height:1rem}[data-client=podlove] .h-44{height:11rem}[data-client=podlove] .h-5{height:1.25rem}[data-client=podlove] .h-6{height:1.5rem}[data-client=podlove] .h-96{height:24rem}[data-client=podlove] .h-full{height:100%}[data-client=podlove] .max-h-36{max-height:9rem}[data-client=podlove] .max-h-56{max-height:14rem}[data-client=podlove] .max-h-60{max-height:15rem}[data-client=podlove] .min-h-screen{min-height:100vh}[data-client=podlove] .w-11{width:2.75rem}[data-client=podlove] .w-12{width:3rem}[data-client=podlove] .w-16{width:4rem}[data-client=podlove] .w-32{width:8rem}[data-client=podlove] .w-4{width:1rem}[data-client=podlove] .w-44{width:11rem}[data-client=podlove] .w-5{width:1.25rem}[data-client=podlove] .w-6{width:1.5rem}[data-client=podlove] .w-8{width:2rem}[data-client=podlove] .w-\[168px\]{width:168px}[data-client=podlove] .w-full{width:100%}[data-client=podlove] .min-w-0{min-width:0}[data-client=podlove] .min-w-full{min-width:100%}[data-client=podlove] .max-w-5xl{max-width:64rem}[data-client=podlove] .max-w-lg{max-width:32rem}[data-client=podlove] .max-w-md{max-width:28rem}[data-client=podlove] .max-w-sm{max-width:24rem}[data-client=podlove] .flex-1{flex:1 1 0%}[data-client=podlove] .flex-shrink-0{flex-shrink:0}[data-client=podlove] .table-fixed{table-layout:fixed}[data-client=podlove] .-translate-x-full{--tw-translate-x:-100%}[data-client=podlove] .-translate-x-full,[data-client=podlove] .-translate-y-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .-translate-y-full{--tw-translate-y:-100%}[data-client=podlove] .translate-x-0{--tw-translate-x:0px}[data-client=podlove] .translate-x-0,[data-client=podlove] .translate-x-5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .translate-x-5{--tw-translate-x:1.25rem}[data-client=podlove] .translate-y-0{--tw-translate-y:0px}[data-client=podlove] .translate-y-0,[data-client=podlove] .translate-y-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .translate-y-1{--tw-translate-y:.25rem}[data-client=podlove] .translate-y-4{--tw-translate-y:1rem}[data-client=podlove] .transform,[data-client=podlove] .translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}[data-client=podlove] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}[data-client=podlove] .animate-spin{animation:spin 1s linear infinite}[data-client=podlove] .cursor-default{cursor:default}[data-client=podlove] .cursor-not-allowed{cursor:not-allowed}[data-client=podlove] .cursor-pointer{cursor:pointer}[data-client=podlove] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-client=podlove] .resize-y{resize:vertical}[data-client=podlove] .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}[data-client=podlove] .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}[data-client=podlove] .flex-col{flex-direction:column}[data-client=podlove] .flex-wrap{flex-wrap:wrap}[data-client=podlove] .content-center{align-content:center}[data-client=podlove] .items-start{align-items:flex-start}[data-client=podlove] .items-end{align-items:flex-end}[data-client=podlove] .items-center{align-items:center}[data-client=podlove] .justify-start{justify-content:flex-start}[data-client=podlove] .justify-end{justify-content:flex-end}[data-client=podlove] .justify-center{justify-content:center}[data-client=podlove] .justify-between{justify-content:space-between}[data-client=podlove] .justify-around{justify-content:space-around}[data-client=podlove] .justify-items-stretch{justify-items:stretch}[data-client=podlove] .gap-2{gap:.5rem}[data-client=podlove] .gap-3{gap:.75rem}[data-client=podlove] .gap-4{gap:1rem}[data-client=podlove] .gap-8{gap:2rem}[data-client=podlove] .gap-x-4{-moz-column-gap:1rem;column-gap:1rem}[data-client=podlove] .gap-y-6{row-gap:1.5rem}[data-client=podlove] .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}[data-client=podlove] .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}[data-client=podlove] .divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}[data-client=podlove] .divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(209 213 219/var(--tw-divide-opacity))}[data-client=podlove] .overflow-auto{overflow:auto}[data-client=podlove] .overflow-hidden{overflow:hidden}[data-client=podlove] .overflow-x-auto{overflow-x:auto}[data-client=podlove] .overflow-y-auto{overflow-y:auto}[data-client=podlove] .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-client=podlove] .whitespace-nowrap{white-space:nowrap}[data-client=podlove] .break-all{word-break:break-all}[data-client=podlove] .rounded{border-radius:.25rem}[data-client=podlove] .rounded-full{border-radius:9999px}[data-client=podlove] .rounded-lg{border-radius:.5rem}[data-client=podlove] .rounded-md{border-radius:.375rem}[data-client=podlove] .rounded-xl{border-radius:.75rem}[data-client=podlove] .rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}[data-client=podlove] .border{border-width:1px}[data-client=podlove] .border-0{border-width:0}[data-client=podlove] .border-2{border-width:2px}[data-client=podlove] .border-b{border-bottom-width:1px}[data-client=podlove] .border-b-2{border-bottom-width:2px}[data-client=podlove] .border-t{border-top-width:1px}[data-client=podlove] .border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}[data-client=podlove] .border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}[data-client=podlove] .border-gray-900\/10{border-color:#1118271a}[data-client=podlove] .border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .border-transparent{border-color:transparent}[data-client=podlove] .bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}[data-client=podlove] .bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}[data-client=podlove] .bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}[data-client=podlove] .bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}[data-client=podlove] .bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}[data-client=podlove] .bg-transparent{background-color:transparent}[data-client=podlove] .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}[data-client=podlove] .bg-yellow-50{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity))}[data-client=podlove] .bg-opacity-40{--tw-bg-opacity:.4}[data-client=podlove] .bg-opacity-50{--tw-bg-opacity:.5}[data-client=podlove] .bg-opacity-75{--tw-bg-opacity:.75}[data-client=podlove] .bg-cover{background-size:cover}[data-client=podlove] .bg-center{background-position:50%}[data-client=podlove] .bg-no-repeat{background-repeat:no-repeat}[data-client=podlove] .p-2{padding:.5rem}[data-client=podlove] .p-3{padding:.75rem}[data-client=podlove] .p-4{padding:1rem}[data-client=podlove] .p-6{padding:1.5rem}[data-client=podlove] .p-7{padding:1.75rem}[data-client=podlove] .px-1{padding-left:.25rem;padding-right:.25rem}[data-client=podlove] .px-2{padding-left:.5rem;padding-right:.5rem}[data-client=podlove] .px-2\.5{padding-left:.625rem;padding-right:.625rem}[data-client=podlove] .px-3{padding-left:.75rem;padding-right:.75rem}[data-client=podlove] .px-4{padding-left:1rem;padding-right:1rem}[data-client=podlove] .px-6{padding-left:1.5rem;padding-right:1.5rem}[data-client=podlove] .px-7{padding-left:1.75rem;padding-right:1.75rem}[data-client=podlove] .py-0{padding-bottom:0;padding-top:0}[data-client=podlove] .py-0\.5{padding-bottom:.125rem;padding-top:.125rem}[data-client=podlove] .py-1{padding-bottom:.25rem;padding-top:.25rem}[data-client=podlove] .py-1\.5{padding-bottom:.375rem;padding-top:.375rem}[data-client=podlove] .py-2{padding-bottom:.5rem;padding-top:.5rem}[data-client=podlove] .py-3{padding-bottom:.75rem;padding-top:.75rem}[data-client=podlove] .py-3\.5{padding-bottom:.875rem;padding-top:.875rem}[data-client=podlove] .py-4{padding-bottom:1rem;padding-top:1rem}[data-client=podlove] .py-5{padding-bottom:1.25rem;padding-top:1.25rem}[data-client=podlove] .py-6{padding-bottom:1.5rem;padding-top:1.5rem}[data-client=podlove] .pb-1{padding-bottom:.25rem}[data-client=podlove] .pb-12{padding-bottom:3rem}[data-client=podlove] .pb-2{padding-bottom:.5rem}[data-client=podlove] .pb-20{padding-bottom:5rem}[data-client=podlove] .pb-3{padding-bottom:.75rem}[data-client=podlove] .pb-4{padding-bottom:1rem}[data-client=podlove] .pb-5{padding-bottom:1.25rem}[data-client=podlove] .pl-1{padding-left:.25rem}[data-client=podlove] .pl-10{padding-left:2.5rem}[data-client=podlove] .pl-3{padding-left:.75rem}[data-client=podlove] .pr-10{padding-right:2.5rem}[data-client=podlove] .pr-12{padding-right:3rem}[data-client=podlove] .pr-2{padding-right:.5rem}[data-client=podlove] .pr-3{padding-right:.75rem}[data-client=podlove] .pr-4{padding-right:1rem}[data-client=podlove] .pr-8{padding-right:2rem}[data-client=podlove] .pr-9{padding-right:2.25rem}[data-client=podlove] .pt-4{padding-top:1rem}[data-client=podlove] .pt-5{padding-top:1.25rem}[data-client=podlove] .text-left{text-align:left}[data-client=podlove] .text-center{text-align:center}[data-client=podlove] .text-right{text-align:right}[data-client=podlove] .align-middle{vertical-align:middle}[data-client=podlove] .align-bottom{vertical-align:bottom}[data-client=podlove] .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}[data-client=podlove] .font-sans{font-family:Inter var,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}[data-client=podlove] .text-base{font-size:1rem;line-height:1.5rem}[data-client=podlove] .text-lg{font-size:1.125rem;line-height:1.75rem}[data-client=podlove] .text-sm{font-size:.875rem;line-height:1.25rem}[data-client=podlove] .text-xs{font-size:.75rem;line-height:1rem}[data-client=podlove] .font-bold{font-weight:700}[data-client=podlove] .font-light{font-weight:300}[data-client=podlove] .font-medium{font-weight:500}[data-client=podlove] .font-normal{font-weight:400}[data-client=podlove] .font-semibold{font-weight:600}[data-client=podlove] .uppercase{text-transform:uppercase}[data-client=podlove] .tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}[data-client=podlove] .leading-3{line-height:.75rem}[data-client=podlove] .leading-4{line-height:1rem}[data-client=podlove] .leading-5{line-height:1.25rem}[data-client=podlove] .leading-6{line-height:1.5rem}[data-client=podlove] .text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}[data-client=podlove] .text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity))}[data-client=podlove] .text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}[data-client=podlove] .text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}[data-client=podlove] .text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}[data-client=podlove] .text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}[data-client=podlove] .text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}[data-client=podlove] .text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}[data-client=podlove] .text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}[data-client=podlove] .text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}[data-client=podlove] .text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-200{--tw-text-opacity:1;color:rgb(199 210 254/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-400{--tw-text-opacity:1;color:rgb(129 140 248/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-700{--tw-text-opacity:1;color:rgb(67 56 202/var(--tw-text-opacity))}[data-client=podlove] .text-indigo-800{--tw-text-opacity:1;color:rgb(55 48 163/var(--tw-text-opacity))}[data-client=podlove] .text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}[data-client=podlove] .text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}[data-client=podlove] .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}[data-client=podlove] .text-yellow-800{--tw-text-opacity:1;color:rgb(133 77 14/var(--tw-text-opacity))}[data-client=podlove] .underline{text-decoration-line:underline}[data-client=podlove] .opacity-0{opacity:0}[data-client=podlove] .opacity-100{opacity:1}[data-client=podlove] .opacity-50{opacity:.5}[data-client=podlove] .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}[data-client=podlove] .shadow,[data-client=podlove] .shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}[data-client=podlove] .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}[data-client=podlove] .shadow-md,[data-client=podlove] .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}[data-client=podlove] .shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}[data-client=podlove] .ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}[data-client=podlove] .ring-0,[data-client=podlove] .ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}[data-client=podlove] .ring-inset{--tw-ring-inset:inset}[data-client=podlove] .ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}[data-client=podlove] .ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}[data-client=podlove] .ring-opacity-5{--tw-ring-opacity:.05}[data-client=podlove] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-client=podlove] .transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .duration-100{transition-duration:.1s}[data-client=podlove] .duration-150{transition-duration:.15s}[data-client=podlove] .duration-200{transition-duration:.2s}[data-client=podlove] .duration-300{transition-duration:.3s}[data-client=podlove] .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}[data-client=podlove] .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-client=podlove] .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}[data-client=podlove] input[type=checkbox]:checked:before{content:""}[data-client=podlove] .placeholder\:text-gray-400::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}[data-client=podlove] .focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-client=podlove] .focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus-within\:ring-inset:focus-within{--tw-ring-inset:inset}[data-client=podlove] .focus-within\:ring-indigo-500:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus-within\:ring-indigo-600:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}[data-client=podlove] .hover\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}[data-client=podlove] .hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-100:hover{--tw-bg-opacity:1;background-color:rgb(224 231 255/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-200:hover{--tw-bg-opacity:1;background-color:rgb(199 210 254/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}[data-client=podlove] .hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}[data-client=podlove] .hover\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}[data-client=podlove] .hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}[data-client=podlove] .hover\:text-indigo-500:hover{--tw-text-opacity:1;color:rgb(99 102 241/var(--tw-text-opacity))}[data-client=podlove] .hover\:opacity-0:hover{opacity:0}[data-client=podlove] .hover\:opacity-100:hover{opacity:1}[data-client=podlove] .focus\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-client=podlove] .focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus\:ring-inset:focus{--tw-ring-inset:inset}[data-client=podlove] .focus\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-indigo-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(79 70 229/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}[data-client=podlove] .focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}[data-client=podlove] .focus-visible\:border-indigo-500:focus-visible{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}[data-client=podlove] .focus-visible\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}[data-client=podlove] .focus-visible\:ring-indigo-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}[data-client=podlove] .focus-visible\:ring-opacity-50:focus-visible{--tw-ring-opacity:.5}[data-client=podlove] .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}[data-client=podlove] .disabled\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-indigo-300:disabled{--tw-bg-opacity:1;background-color:rgb(165 180 252/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-indigo-50:disabled{--tw-bg-opacity:1;background-color:rgb(238 242 255/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:bg-red-300:disabled{--tw-bg-opacity:1;background-color:rgb(252 165 165/var(--tw-bg-opacity))}[data-client=podlove] .disabled\:opacity-30:disabled{opacity:.3}[data-client=podlove] .disabled\:opacity-75:disabled{opacity:.75}[data-client=podlove] .disabled\:hover\:bg-white:hover:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}@media (min-width:640px){[data-client=podlove] .sm\:col-span-2{grid-column:span 2/span 2}[data-client=podlove] .sm\:col-span-4{grid-column:span 4/span 4}[data-client=podlove] .sm\:mx-0{margin-left:0;margin-right:0}[data-client=podlove] .sm\:my-8{margin-bottom:2rem;margin-top:2rem}[data-client=podlove] .sm\:ml-3{margin-left:.75rem}[data-client=podlove] .sm\:ml-4{margin-left:1rem}[data-client=podlove] .sm\:mt-0{margin-top:0}[data-client=podlove] .sm\:mt-1{margin-top:.25rem}[data-client=podlove] .sm\:mt-4{margin-top:1rem}[data-client=podlove] .sm\:mt-8{margin-top:2rem}[data-client=podlove] .sm\:block{display:block}[data-client=podlove] .sm\:inline-block{display:inline-block}[data-client=podlove] .sm\:inline{display:inline}[data-client=podlove] .sm\:flex{display:flex}[data-client=podlove] .sm\:grid{display:grid}[data-client=podlove] .sm\:h-10{height:2.5rem}[data-client=podlove] .sm\:h-screen{height:100vh}[data-client=podlove] .sm\:w-10{width:2.5rem}[data-client=podlove] .sm\:w-12{width:3rem}[data-client=podlove] .sm\:w-auto{width:auto}[data-client=podlove] .sm\:w-full{width:100%}[data-client=podlove] .sm\:max-w-md{max-width:28rem}[data-client=podlove] .sm\:max-w-sm{max-width:24rem}[data-client=podlove] .sm\:max-w-xs{max-width:20rem}[data-client=podlove] .sm\:translate-y-0{--tw-translate-y:0px}[data-client=podlove] .sm\:scale-100,[data-client=podlove] .sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}[data-client=podlove] .sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-client=podlove] .sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .sm\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}[data-client=podlove] .sm\:grid-cols-\[175px_auto_auto\]{grid-template-columns:175px auto auto}[data-client=podlove] .sm\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}[data-client=podlove] .sm\:flex-row{flex-direction:row}[data-client=podlove] .sm\:flex-row-reverse{flex-direction:row-reverse}[data-client=podlove] .sm\:flex-nowrap{flex-wrap:nowrap}[data-client=podlove] .sm\:items-start{align-items:flex-start}[data-client=podlove] .sm\:items-baseline{align-items:baseline}[data-client=podlove] .sm\:gap-0{gap:0}[data-client=podlove] .sm\:gap-2{gap:.5rem}[data-client=podlove] .sm\:gap-4{gap:1rem}[data-client=podlove] .sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}[data-client=podlove] .sm\:divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse:0;border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)));border-right-width:calc(1px*var(--tw-divide-x-reverse))}[data-client=podlove] .sm\:divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}[data-client=podlove] .sm\:divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}[data-client=podlove] .sm\:divide-gray-900\/10>:not([hidden])~:not([hidden]){border-color:#1118271a}[data-client=podlove] .sm\:rounded-lg{border-radius:.5rem}[data-client=podlove] .sm\:p-0{padding:0}[data-client=podlove] .sm\:p-6{padding:1.5rem}[data-client=podlove] .sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}[data-client=podlove] .sm\:py-6{padding-bottom:1.5rem;padding-top:1.5rem}[data-client=podlove] .sm\:pb-0{padding-bottom:0}[data-client=podlove] .sm\:pt-1{padding-top:.25rem}[data-client=podlove] .sm\:pt-1\.5{padding-top:.375rem}[data-client=podlove] .sm\:text-left{text-align:left}[data-client=podlove] .sm\:align-middle{vertical-align:middle}[data-client=podlove] .sm\:text-sm{font-size:.875rem;line-height:1.25rem}[data-client=podlove] .sm\:leading-6{line-height:1.5rem}[data-client=podlove] .sm\:shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}@media (min-width:768px){[data-client=podlove] .md\:col-span-1{grid-column:span 1/span 1}[data-client=podlove] .md\:mx-4{margin-left:1rem;margin-right:1rem}[data-client=podlove] .md\:my-2{margin-bottom:.5rem;margin-top:.5rem}[data-client=podlove] .md\:mr-5{margin-right:1.25rem}[data-client=podlove] .md\:mt-0{margin-top:0}[data-client=podlove] .md\:block{display:block}[data-client=podlove] .md\:flex{display:flex}[data-client=podlove] .md\:grid{display:grid}[data-client=podlove] .md\:hidden{display:none}[data-client=podlove] .md\:w-4\/12{width:33.333333%}[data-client=podlove] .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}[data-client=podlove] .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}[data-client=podlove] .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}[data-client=podlove] .md\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}[data-client=podlove] .md\:gap-12{gap:3rem}[data-client=podlove] .md\:gap-4{gap:1rem}}
  • podlove-podcasting-plugin-for-wordpress/trunk/includes/api/episodes.php

    r3188654 r3195601  
    915915            $file->active = false;
    916916            $file->save();
     917        } else {
     918            return new \Podlove\Api\Error\NotFound();
    917919        }
    918920
  • podlove-podcasting-plugin-for-wordpress/trunk/includes/downloads.php

    r3088907 r3195601  
    131131
    132132    // set user agent
    133     $ua_string = trim($_SERVER['HTTP_USER_AGENT']);
     133    $ua_string = isset($_SERVER['HTTP_USER_AGENT']) ? trim($_SERVER['HTTP_USER_AGENT']) : '';
    134134    if ($agent = Model\UserAgent::find_or_create_by_uastring($ua_string)) {
    135135        $intent->user_agent_id = $agent->id;
  • podlove-podcasting-plugin-for-wordpress/trunk/includes/images.php

    r2987303 r3195601  
    22
    33use Podlove\Cache\HttpHeaderValidator;
     4use Podlove\Log;
    45use Podlove\Model\Image;
    56use Symfony\Component\Yaml\Yaml;
     
    8384    }
    8485
    85     // tell WP Super Cache to not cache download links
     86    // Tell WP Super Cache to not cache download links
    8687    if (!defined('DONOTCACHEPAGE')) {
    8788        define('DONOTCACHEPAGE', true);
    8889    }
    8990
    90     $image = (new Image($source_url, $file_name));
     91    $image = new Image($source_url, $file_name);
    9192
    9293    if (!$image->source_exists()) {
     
    9495    }
    9596
    96     // bail if download fails
     97    // Bail if download fails
    9798    if (!$image->source_exists()) {
     99        Log::get()->error('Download failed for image: '.$image->url());
    98100        status_header(307);
    99101        header('Location: '.$source_url);
     
    101103    }
    102104
    103     // do not try to enlarge images
    104     list($orig_width, $orig_height, $type, $attr) = getimagesize($image->original_file());
     105    $imageinfo = getimagesize($image->original_file());
    105106
     107    // Bail if we cannot determine image meta
     108    if ($imageinfo === false) {
     109        Log::get()->error('Image size cannot be determined for file: '.$image->original_file());
     110        status_header(307);
     111        header('Location: '.$source_url);
     112        exit;
     113    }
     114
     115    list($orig_width, $orig_height) = $imageinfo;
     116
     117    // Do not try to enlarge images
    106118    if ($width > $orig_width) {
    107119        $width = $orig_width;
     
    124136    $file = $image->resized_file();
    125137
     138    // Bail if resize fails
     139    if (!file_exists($file)) {
     140        Log::get()->error('Image resize failed for file: '.$file);
     141        status_header(307);
     142        header('Location: '.$source_url);
     143        exit;
     144    }
     145
    126146    $imageInfo = getimagesize($file);
    127147    switch ($imageInfo[2]) {
     
    138158
    139159            break;
     160
     161        default:
     162            Log::get()->error('Unsupported image type for file: '.$file);
     163
     164            return;
    140165    }
    141166
     
    146171    $time = filemtime($file);
    147172    $etag = md5($time.$source_url);
    148     $last_modified = gmdate('D, d M Y H:i:s \\G\\M\\T', $time);
     173    $last_modified = gmdate('D, d M Y H:i:s \G\M\T', $time);
    149174
    150     $if_modified_since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? $_SERVER['HTTP_IF_MODIFIED_SINCE'] : false;
    151     $if_none_match = isset($_SERVER['HTTP_IF_NONE_MATCH']) ? $_SERVER['HTTP_IF_NONE_MATCH'] : false;
     175    $if_modified_since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ?? false;
     176    $if_none_match = isset($_SERVER['HTTP_IF_NONE_MATCH']) ?? false;
    152177
    153178    if ((($if_none_match && $if_none_match == $etag) || (!$if_none_match))
  • podlove-podcasting-plugin-for-wordpress/trunk/lib/api/error.php

    r2987303 r3195601  
    33namespace Podlove\Api\Error;
    44
    5 use WP_Error;
    6 
    7 class ForbiddenAccess extends WP_Error
     5class ForbiddenAccess extends \WP_Error
    86{
    97    /**
    108     * Constructor.
    119     *
    12      * @param $code
    13      * @param $message
     10     * @param mixed $code
     11     * @param mixed $message
    1412     */
    1513    public function __construct($code = '', $message = '')
     
    2523}
    2624
    27 class NotFound extends WP_Error
     25class NotFound extends \WP_Error
    2826{
    2927    /**
    3028     * Constructor.
    3129     *
    32      * @param $code
    33      * @param $message
     30     * @param mixed $code
     31     * @param mixed $message
    3432     */
    3533    public function __construct($code = '', $message = '')
     
    3937        }
    4038        if (strlen($message) == 0) {
    41             $message = esc_html__('sorry, we do not found the requested resource');
     39            $message = esc_html__('sorry, we did not find the requested resource');
    4240        }
    4341        parent::__construct($code, $message, ['status' => 404]);
     
    4543}
    4644
    47 class NotFoundEpisode extends WP_Error
     45class NotFoundEpisode extends \WP_Error
    4846{
    4947    /**
    5048     * Constructor.
    5149     *
    52      * @param $code
    53      * @param $message
     50     * @param mixed $episode_id
    5451     */
    5552    public function __construct($episode_id)
    5653    {
    57         $message = 'sorry, we do not found the episode with ID '.$episode_id;
     54        $message = 'sorry, we did not find the episode with ID '.$episode_id;
    5855        parent::__construct('not_found', esc_html__($message), ['status' => 404]);
    5956    }
    6057}
    6158
    62 
    63 class NotSupported extends WP_Error
     59class NotSupported extends \WP_Error
    6460{
    6561    /**
    6662     * Constructor.
    6763     *
    68      * @param $code
    69      * @param $message
     64     * @param mixed $code
     65     * @param mixed $message
    7066     */
    7167    public function __construct($code = '', $message = '')
     
    8177}
    8278
    83 class InternalServerError extends WP_Error
     79class InternalServerError extends \WP_Error
    8480{
    8581    /**
    8682     * Constructor.
    8783     *
    88      * @param $code
    89      * @param $message
     84     * @param mixed $code
     85     * @param mixed $message
    9086     */
    9187    public function __construct($code = '', $message = '')
  • podlove-podcasting-plugin-for-wordpress/trunk/lib/model/download_intent.php

    r2377370 r3195601  
    8181
    8282                if ($area->type != 'continent') {
    83                     $parent_area = $get_parent_area($area->type);
    84                     $area->parent_id = $parent_area->id;
     83                    if ($parent_area = $get_parent_area($area->type)) {
     84                        $area->parent_id = $parent_area->id;
     85                    }
    8586                }
    8687
  • podlove-podcasting-plugin-for-wordpress/trunk/lib/model/image.php

    r3188654 r3195601  
    5454    public function __construct($url, $file_name = '')
    5555    {
     56        // FIXME: if $file_name is empty, the url will not work. I must not treat this silently!
    5657        $this->source_url = trim($url ?? '');
    5758        $this->file_name = sanitize_title($file_name);
     
    202203            $file_name = urlencode($this->file_name);
    203204
     205            // FIXME: some generated urls have an empty $file_name, which leads to the url not resolving
     206            // example: (new \Podlove\Model\Image("https://pbs.twimg.com/media/Dz2U-vTXgAATlqd.jpg:large"))->setWidth(100)->url();
    204207            if (get_option('permalink_structure')) {
    205208                $path = '/podlove/image/'
     
    354357        }
    355358
     359        // working around WordPress oddities: if WP saves the file under a name
     360        // other than the one we want ... rename the file.
     361        if ($result['path'] != $this->resized_file()) {
     362            @rename($result['path'], $this->resized_file());
     363        }
     364
    356365        // when a new image size is created, Template Cache must be cleared
    357366        TemplateCache::get_instance()->setup_global_purge();
     
    645654        $url = wp_parse_url($this->source_url);
    646655
    647         return pathinfo($url['path'], PATHINFO_EXTENSION);
     656        if (isset($url['path'])) {
     657            return pathinfo($url['path'], PATHINFO_EXTENSION);
     658        }
     659
     660        return '';
    648661    }
    649662}
  • podlove-podcasting-plugin-for-wordpress/trunk/lib/model/user_agent.php

    r2886306 r3195601  
    3737
    3838        $user_agent_match = array_reduce($user_agent_data, function ($agg, $item) use ($user_agent_string) {
    39             if ($agg != null) {
     39            if ($agg !== null) {
    4040                return $agg;
    4141            }
     
    5353        if ($user_agent_match) {
    5454            $this->client_name = isset($user_agent_match->app) ? $user_agent_match->app : '';
    55             $this->os_name = self::normalizeOS($user_agent_match->os);
     55            $this->os_name = isset($user_agent_match->os) ? self::normalizeOS($user_agent_match->os) : '';
    5656
    5757            if (isset($user_agent_match->bot) && $user_agent_match->bot) {
  • podlove-podcasting-plugin-for-wordpress/trunk/lib/modules/oembed/oembed.php

    r3088907 r3195601  
    4242            case 'XML':
    4343                header('Content-Type: application/xml; charset=utf-8');
    44                 $xml_source = new \SimpleXMLElement('<?xml version="1.0" encoding="UTF-8" '.'standalone="yes"?><oembed/>');
    45                 $episode = array_flip($episode);
    46                 array_walk_recursive($episode, [$xml_source, 'addChild']);
     44                $xml_source = new \SimpleXMLElement('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed/>');
     45
     46                foreach ($episode as $key => $value) {
     47                    $xml_source->{$key} = $value;
     48                }
     49
    4750                echo $xml_source->asXML();
    4851                exit;
  • podlove-podcasting-plugin-for-wordpress/trunk/lib/modules/plus/plus.php

    r2586582 r3195601  
    2121        (new FeedPusher($this, $this->api))->init();
    2222        (new FeedProxy($this, $this->api))->init();
    23         (new ImageGenerator($this, $this->api))->init();
     23
     24        // disabling unfinished feature
     25        // (new ImageGenerator($this, $this->api))->init();
    2426    }
    2527
  • podlove-podcasting-plugin-for-wordpress/trunk/lib/modules/transcripts/renderer.php

    r3190792 r3195601  
    102102
    103103        $pretty_voice = function ($voice) use ($contributors_map) {
    104             $contributor = $contributors_map[$voice];
    105             $voice_title = ($contributor && $contributor->getName()) ? $contributor->getName() : $voice;
     104            if (isset($contributors_map[$voice])) {
     105                $contributor = $contributors_map[$voice];
     106                $voice_title = ($contributor && $contributor->getName()) ? $contributor->getName() : $voice;
    106107
    107             if ($voice_title) {
    108                 return "<v {$voice_title}>";
    109             }
    110 
    111             if ($voice) {
    112                 return "<v {$voice}>";
     108                if ($voice_title) {
     109                    return "<v {$voice_title}>";
     110                }
    113111            }
    114112
  • podlove-podcasting-plugin-for-wordpress/trunk/podlove.php

    r3190792 r3195601  
    33 * Plugin Name: Podlove Podcast Publisher
    44 * Plugin URI:  https://podlove.org/podlove-podcast-publisher/
    5  * Version: 4.1.22
     5 * Version: 4.1.23
    66 * Requires at least: 4.9.6
    77 * Requires PHP: 8.0
  • podlove-podcasting-plugin-for-wordpress/trunk/readme.txt

    r3190792 r3195601  
    33Donate link: https://opencollective.com/podlove
    44Tags: podlove, podcast, publishing, rss, audio
    5 Tested up to: 6.7
    6 Stable tag: 4.1.22
     5Tested up to: 6.7.1
     6Stable tag: 4.1.23
    77Requires at least: 4.9.6
    88Requires PHP: 8.0
     
    115115
    116116== Changelog ==
     117
     118= 4.1.23 =
     119
     120* new: Auphonic file uploads display their upload progress
     121* fix: image cache sometimes saved the resized files under a wrong filename
     122* fix: image cache is now more robust, redirecting to the original image url instead of failing when any processing step fails
     123* fix: oembed xml generation with escaping
     124* fix: various PHP warnings/notices when trying to access nonexistent array keys
    117125
    118126= 4.1.22 =
  • podlove-podcasting-plugin-for-wordpress/trunk/vendor/composer/installed.php

    r3190792 r3195601  
    22    'root' => array(
    33        'name' => 'podlove/podcast-publisher',
    4         'pretty_version' => '4.1.22',
    5         'version' => '4.1.22.0',
    6         'reference' => '353fbccf5bb77d1b530ea479a51ff4d1e8f027ae',
     4        'pretty_version' => '4.1.23',
     5        'version' => '4.1.23.0',
     6        'reference' => '767dc21031ad17efde634e1774bc64a258a13f6a',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    135135        ),
    136136        'podlove/podcast-publisher' => array(
    137             'pretty_version' => '4.1.22',
    138             'version' => '4.1.22.0',
    139             'reference' => '353fbccf5bb77d1b530ea479a51ff4d1e8f027ae',
     137            'pretty_version' => '4.1.23',
     138            'version' => '4.1.23.0',
     139            'reference' => '767dc21031ad17efde634e1774bc64a258a13f6a',
    140140            'type' => 'library',
    141141            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.