diff --git a/Plugin.php b/Plugin.php index 97d7e7d..02e844c 100644 --- a/Plugin.php +++ b/Plugin.php @@ -31,7 +31,6 @@ use OFFLINE\Boxes\Models\BoxesSetting; use OFFLINE\Boxes\Models\Content; use OFFLINE\Boxes\Models\Page; -use RainLab\Translate\Classes\Translator; use System\Classes\PluginBase; use Url; @@ -130,23 +129,6 @@ public function boot() } } - // Remove URL prefix, legacy support for RainLab.Translate, - if (class_exists(\RainLab\Translate\Models\Locale::class)) { - $translator = Translator::instance(); - - if ($translator->loadLocaleFromRequest() && $locale = $translator->getLocale()) { - $prefix = "/{$locale}"; - - if ($url === $prefix || str_starts_with($url, $prefix . '/')) { - $url = str_replace($prefix, '', $url); - } - - if ($url === '') { - $url = '/'; - } - } - } - if (str_contains($url, Controller::PREVIEW_URL) && BackendAuth::getUser()) { return Controller::instance()->getPreviewPage($url); } diff --git a/assets/editor/assets/main-30e90e19.js b/assets/editor/assets/main-30e90e19.js new file mode 100644 index 0000000..4a6a1d9 --- /dev/null +++ b/assets/editor/assets/main-30e90e19.js @@ -0,0 +1,26 @@ +/** +* @vue/shared v3.5.4 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function vi(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const xe={},Pn=[],ht=()=>{},Oa=()=>!1,ir=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bi=e=>e.startsWith("onUpdate:"),Be=Object.assign,xi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ba=Object.prototype.hasOwnProperty,ge=(e,t)=>Ba.call(e,t),V=Array.isArray,Tn=e=>ho(e)==="[object Map]",Mn=e=>ho(e)==="[object Set]",Ui=e=>ho(e)==="[object Date]",Q=e=>typeof e=="function",Pe=e=>typeof e=="string",St=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",Ks=e=>(_e(e)||Q(e))&&Q(e.then)&&Q(e.catch),zs=Object.prototype.toString,ho=e=>zs.call(e),Ma=e=>ho(e).slice(8,-1),Ys=e=>ho(e)==="[object Object]",_i=e=>Pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yn=vi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),sr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ka=/-(\w)/g,mt=sr(e=>e.replace(ka,(t,n)=>n?n.toUpperCase():"")),Fa=/\B([A-Z])/g,tn=sr(e=>e.replace(Fa,"-$1").toLowerCase()),lr=sr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Er=sr(e=>e?`on${lr(e)}`:""),Qt=(e,t)=>!Object.is(e,t),Mo=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},Ko=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Na=e=>{const t=Pe(e)?Number(e):NaN;return isNaN(t)?e:t};let Ki;const Gs=()=>Ki||(Ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function go(e){if(V(e)){const t={};for(let n=0;n{if(n){const o=n.split(La);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function te(e){let t="";if(Pe(e))t=e;else if(V(e))for(let n=0;nmo(n,t))}const Js=e=>!!(e&&e.__v_isRef===!0),j=e=>Pe(e)?e:e==null?"":V(e)||_e(e)&&(e.toString===zs||!Q(e.toString))?Js(e)?j(e.value):JSON.stringify(e,Zs,2):String(e),Zs=(e,t)=>Js(t)?Zs(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[Pr(o,i)+" =>"]=r,n),{})}:Mn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Pr(n))}:St(t)?Pr(t):_e(t)&&!V(t)&&!Ys(t)?String(t):t,Pr=(e,t="")=>{var n;return St(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.4 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let We;class Qs{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;let e;for(;Xn;){let t=Xn;for(Xn=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function rl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function il(e){let t,n=e.depsTail;for(let o=n;o;o=o.prevDep)o.version===-1?(o===n&&(n=o.prevDep),Ci(o),za(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function Jr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&sl(t.dep.computed)||t.dep.version!==t.version)return!0;return!!e._dirty}function sl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ro))return;e.globalVersion=ro;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!Jr(e)){e.flags&=-3;return}const n=be,o=gt;be=e,gt=!0;try{rl(e);const r=e.fn(e._value);(t.version===0||Qt(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{be=n,gt=o,il(e),e.flags&=-3}}function Ci(e){const{dep:t,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)Ci(r)}}function za(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let gt=!0;const ll=[];function nn(){ll.push(gt),gt=!1}function on(){const e=ll.pop();gt=e===void 0?!0:e}function zi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=be;be=void 0;try{t()}finally{be=n}}}let ro=0;class Ei{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!be||!gt||be===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==be)n=this.activeLink={dep:this,sub:be,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},be.deps?(n.prevDep=be.depsTail,be.depsTail.nextDep=n,be.depsTail=n):be.deps=be.depsTail=n,be.flags&4&&al(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=be.depsTail,n.nextDep=void 0,be.depsTail.nextDep=n,be.depsTail=n,be.deps===n&&(be.deps=o)}return n}trigger(t){this.version++,ro++,this.notify(t)}notify(t){wi();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{Si()}}}function al(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)al(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const zo=new WeakMap,gn=Symbol(""),Zr=Symbol(""),io=Symbol("");function Le(e,t,n){if(gt&&be){let o=zo.get(e);o||zo.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Ei),r.track()}}function $t(e,t,n,o,r,i){const s=zo.get(e);if(!s){ro++;return}const l=a=>{a&&a.trigger()};if(wi(),t==="clear")s.forEach(l);else{const a=V(e),u=a&&_i(n);if(a&&n==="length"){const c=Number(o);s.forEach((d,p)=>{(p==="length"||p===io||!St(p)&&p>=c)&&l(d)})}else switch(n!==void 0&&l(s.get(n)),u&&l(s.get(io)),t){case"add":a?u&&l(s.get("length")):(l(s.get(gn)),Tn(e)&&l(s.get(Zr)));break;case"delete":a||(l(s.get(gn)),Tn(e)&&l(s.get(Zr)));break;case"set":Tn(e)&&l(s.get(gn));break}}Si()}function Ya(e,t){var n;return(n=zo.get(e))==null?void 0:n.get(t)}function xn(e){const t=de(e);return t===e?t:(Le(t,"iterate",io),ut(e)?t:t.map(Re))}function ar(e){return Le(e=de(e),"iterate",io),e}const Xa={__proto__:null,[Symbol.iterator](){return Ir(this,Symbol.iterator,Re)},concat(...e){return xn(this).concat(...e.map(t=>V(t)?xn(t):t))},entries(){return Ir(this,"entries",e=>(e[1]=Re(e[1]),e))},every(e,t){return It(this,"every",e,t,void 0,arguments)},filter(e,t){return It(this,"filter",e,t,n=>n.map(Re),arguments)},find(e,t){return It(this,"find",e,t,Re,arguments)},findIndex(e,t){return It(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return It(this,"findLast",e,t,Re,arguments)},findLastIndex(e,t){return It(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return It(this,"forEach",e,t,void 0,arguments)},includes(...e){return Dr(this,"includes",e)},indexOf(...e){return Dr(this,"indexOf",e)},join(e){return xn(this).join(e)},lastIndexOf(...e){return Dr(this,"lastIndexOf",e)},map(e,t){return It(this,"map",e,t,void 0,arguments)},pop(){return jn(this,"pop")},push(...e){return jn(this,"push",e)},reduce(e,...t){return Yi(this,"reduce",e,t)},reduceRight(e,...t){return Yi(this,"reduceRight",e,t)},shift(){return jn(this,"shift")},some(e,t){return It(this,"some",e,t,void 0,arguments)},splice(...e){return jn(this,"splice",e)},toReversed(){return xn(this).toReversed()},toSorted(e){return xn(this).toSorted(e)},toSpliced(...e){return xn(this).toSpliced(...e)},unshift(...e){return jn(this,"unshift",e)},values(){return Ir(this,"values",Re)}};function Ir(e,t,n){const o=ar(e),r=o[t]();return o!==e&&!ut(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const Ga=Array.prototype;function It(e,t,n,o,r,i){const s=ar(e),l=s!==e&&!ut(e),a=s[t];if(a!==Ga[t]){const d=a.apply(e,i);return l?Re(d):d}let u=n;s!==e&&(l?u=function(d,p){return n.call(this,Re(d),p,e)}:n.length>2&&(u=function(d,p){return n.call(this,d,p,e)}));const c=a.call(s,u,o);return l&&r?r(c):c}function Yi(e,t,n,o){const r=ar(e);let i=n;return r!==e&&(ut(e)?n.length>3&&(i=function(s,l,a){return n.call(this,s,l,a,e)}):i=function(s,l,a){return n.call(this,s,Re(l),a,e)}),r[t](i,...o)}function Dr(e,t,n){const o=de(e);Le(o,"iterate",io);const r=o[t](...n);return(r===-1||r===!1)&&Di(n[0])?(n[0]=de(n[0]),o[t](...n)):r}function jn(e,t,n=[]){nn(),wi();const o=de(e)[t].apply(e,n);return Si(),on(),o}const qa=vi("__proto__,__v_isRef,__isVue"),cl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(St));function Ja(e){St(e)||(e=String(e));const t=de(this);return Le(t,"has",e),t.hasOwnProperty(e)}class ul{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?uc:hl:i?pl:dl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=V(t);if(!r){let a;if(s&&(a=Xa[n]))return a;if(n==="hasOwnProperty")return Ja}const l=Reflect.get(t,n,Ie(t)?t:o);return(St(n)?cl.has(n):qa(n))||(r||Le(t,"get",n),i)?l:Ie(l)?s&&_i(n)?l:l.value:_e(l)?r?gl(l):ur(l):l}}class fl extends ul{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._isShallow){const a=vn(i);if(!ut(o)&&!vn(o)&&(i=de(i),o=de(o)),!V(t)&&Ie(i)&&!Ie(o))return a?!1:(i.value=o,!0)}const s=V(t)&&_i(n)?Number(n)e,cr=e=>Reflect.getPrototypeOf(e);function wo(e,t,n=!1,o=!1){e=e.__v_raw;const r=de(e),i=de(t);n||(Qt(t,i)&&Le(r,"get",t),Le(r,"get",i));const{has:s}=cr(r),l=o?Pi:n?$i:Re;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function So(e,t=!1){const n=this.__v_raw,o=de(n),r=de(e);return t||(Qt(e,r)&&Le(o,"has",e),Le(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Co(e,t=!1){return e=e.__v_raw,!t&&Le(de(e),"iterate",gn),Reflect.get(e,"size",e)}function Xi(e,t=!1){!t&&!ut(e)&&!vn(e)&&(e=de(e));const n=de(this);return cr(n).has.call(n,e)||(n.add(e),$t(n,"add",e,e)),this}function Gi(e,t,n=!1){!n&&!ut(t)&&!vn(t)&&(t=de(t));const o=de(this),{has:r,get:i}=cr(o);let s=r.call(o,e);s||(e=de(e),s=r.call(o,e));const l=i.call(o,e);return o.set(e,t),s?Qt(t,l)&&$t(o,"set",e,t):$t(o,"add",e,t),this}function qi(e){const t=de(this),{has:n,get:o}=cr(t);let r=n.call(t,e);r||(e=de(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&$t(t,"delete",e,void 0),i}function Ji(){const e=de(this),t=e.size!==0,n=e.clear();return t&&$t(e,"clear",void 0,void 0),n}function Eo(e,t){return function(o,r){const i=this,s=i.__v_raw,l=de(s),a=t?Pi:e?$i:Re;return!e&&Le(l,"iterate",gn),s.forEach((u,c)=>o.call(r,a(u),a(c),i))}}function Po(e,t,n){return function(...o){const r=this.__v_raw,i=de(r),s=Tn(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,u=r[e](...o),c=n?Pi:t?$i:Re;return!t&&Le(i,"iterate",a?Zr:gn),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:l?[c(d[0]),c(d[1])]:c(d),done:p}},[Symbol.iterator](){return this}}}}function jt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nc(){const e={get(i){return wo(this,i)},get size(){return Co(this)},has:So,add:Xi,set:Gi,delete:qi,clear:Ji,forEach:Eo(!1,!1)},t={get(i){return wo(this,i,!1,!0)},get size(){return Co(this)},has:So,add(i){return Xi.call(this,i,!0)},set(i,s){return Gi.call(this,i,s,!0)},delete:qi,clear:Ji,forEach:Eo(!1,!0)},n={get(i){return wo(this,i,!0)},get size(){return Co(this,!0)},has(i){return So.call(this,i,!0)},add:jt("add"),set:jt("set"),delete:jt("delete"),clear:jt("clear"),forEach:Eo(!0,!1)},o={get(i){return wo(this,i,!0,!0)},get size(){return Co(this,!0)},has(i){return So.call(this,i,!0)},add:jt("add"),set:jt("set"),delete:jt("delete"),clear:jt("clear"),forEach:Eo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Po(i,!1,!1),n[i]=Po(i,!0,!1),t[i]=Po(i,!1,!0),o[i]=Po(i,!0,!0)}),[e,n,t,o]}const[oc,rc,ic,sc]=nc();function Ti(e,t){const n=t?e?sc:ic:e?rc:oc;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(ge(n,r)&&r in o?n:o,r,i)}const lc={get:Ti(!1,!1)},ac={get:Ti(!1,!0)},cc={get:Ti(!0,!1)};const dl=new WeakMap,pl=new WeakMap,hl=new WeakMap,uc=new WeakMap;function fc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dc(e){return e.__v_skip||!Object.isExtensible(e)?0:fc(Ma(e))}function ur(e){return vn(e)?e:Ii(e,!1,Qa,lc,dl)}function pc(e){return Ii(e,!1,tc,ac,pl)}function gl(e){return Ii(e,!0,ec,cc,hl)}function Ii(e,t,n,o,r){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=dc(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Zt(e){return vn(e)?Zt(e.__v_raw):!!(e&&e.__v_isReactive)}function vn(e){return!!(e&&e.__v_isReadonly)}function ut(e){return!!(e&&e.__v_isShallow)}function Di(e){return e?!!e.__v_raw:!1}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function Ai(e){return!ge(e,"__v_skip")&&Object.isExtensible(e)&&Xs(e,"__v_skip",!0),e}const Re=e=>_e(e)?ur(e):e,$i=e=>_e(e)?gl(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}function re(e){return hc(e,!1)}function hc(e,t){return Ie(e)?e:new gc(e,t)}class gc{constructor(t,n){this.dep=new Ei,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:de(t),this._value=n?t:Re(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||ut(t)||vn(t);t=o?t:de(t),Qt(t,n)&&(this._rawValue=t,this._value=o?t:Re(t),this.dep.trigger())}}function A(e){return Ie(e)?e.value:e}const mc={get:(e,t,n)=>t==="__v_raw"?e:A(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ie(r)&&!Ie(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ml(e){return Zt(e)?e:new Proxy(e,mc)}function vc(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=xc(e,n);return t}class bc{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ya(de(this._object),this._key)}}function xc(e,t,n){const o=e[t];return Ie(o)?o:new bc(e,t,n)}class _c{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ei(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ro-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){this.flags|=16,be!==this&&this.dep.notify()}get value(){const t=this.dep.track();return sl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function yc(e,t,n=!1){let o,r;return Q(e)?o=e:(o=e.get,r=e.set),new _c(o,r,n)}const To={},Yo=new WeakMap;let fn;function wc(e,t=!1,n=fn){if(n){let o=Yo.get(n);o||Yo.set(n,o=[]),o.push(e)}}function Sc(e,t,n=xe){const{immediate:o,deep:r,once:i,scheduler:s,augmentJob:l,call:a}=n,u=E=>r?E:ut(E)||r===!1||r===0?At(E,1):At(E);let c,d,p,_,x=!1,w=!1;if(Ie(e)?(d=()=>e.value,x=ut(e)):Zt(e)?(d=()=>u(e),x=!0):V(e)?(w=!0,x=e.some(E=>Zt(E)||ut(E)),d=()=>e.map(E=>{if(Ie(E))return E.value;if(Zt(E))return u(E);if(Q(E))return a?a(E,2):E()})):Q(e)?t?d=a?()=>a(e,2):e:d=()=>{if(p){nn();try{p()}finally{on()}}const E=fn;fn=c;try{return a?a(e,3,[_]):e(_)}finally{fn=E}}:d=ht,t&&r){const E=d,k=r===!0?1/0:r;d=()=>At(E(),k)}const G=tl(),H=()=>{c.stop(),G&&xi(G.effects,c)};if(i)if(t){const E=t;t=(...k)=>{E(...k),H()}}else{const E=d;d=()=>{E(),H()}}let O=w?new Array(e.length).fill(To):To;const B=E=>{if(!(!(c.flags&1)||!c.dirty&&!E))if(t){const k=c.run();if(r||x||(w?k.some((K,oe)=>Qt(K,O[oe])):Qt(k,O))){p&&p();const K=fn;fn=c;try{const oe=[k,O===To?void 0:w&&O[0]===To?[]:O,_];a?a(t,3,oe):t(...oe),O=k}finally{fn=K}}}else c.run()};return l&&l(B),c=new nl(d),c.scheduler=s?()=>s(B,!1):B,_=E=>wc(E,!1,c),p=c.onStop=()=>{const E=Yo.get(c);if(E){if(a)a(E,4);else for(const k of E)k();Yo.delete(c)}},t?o?B(!0):O=c.run():s?s(B.bind(null,!0),!0):c.run(),H.pause=c.pause.bind(c),H.resume=c.resume.bind(c),H.stop=H,H}function At(e,t=1/0,n){if(t<=0||!_e(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ie(e))At(e.value,t,n);else if(V(e))for(let o=0;o{At(o,t,n)});else if(Ys(e)){for(const o in e)At(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&At(e[o],t,n)}return e}/** +* @vue/runtime-core v3.5.4 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function vo(e,t,n,o){try{return o?e(...o):e()}catch(r){fr(r,t,n)}}function vt(e,t,n,o){if(Q(e)){const r=vo(e,t,n,o);return r&&Ks(r)&&r.catch(i=>{fr(i,t,n)}),r}if(V(e)){const r=[];for(let i=0;i>>1,r=Ue[o],i=lo(r);i=lo(n)?Ue.push(e):Ue.splice(Ec(t),0,e),e.flags|=1,bl()}}function bl(){!so&&!Qr&&(Qr=!0,Oi=vl.then(_l))}function Pc(e){V(e)?In.push(...e):Ut&&e.id===-1?Ut.splice(Sn+1,0,e):e.flags&1||(In.push(e),e.flags|=1),bl()}function Zi(e,t,n=so?_t+1:0){for(;nlo(n)-lo(o));if(In.length=0,Ut){Ut.push(...t);return}for(Ut=t,Sn=0;Sne.id==null?e.flags&2?-1:1/0:e.id;function _l(e){Qr=!1,so=!0;const t=ht;try{for(_t=0;_t{o._d&&us(-1);const i=Xo(t);let s;try{s=e(...r)}finally{Xo(i),o._d&&us(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Mt(e,t){if(Oe===null)return e;const n=xr(Oe),o=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,Gn=e=>e&&(e.disabled||e.disabled===""),Tc=e=>e&&(e.defer||e.defer===""),Qi=e=>typeof SVGElement<"u"&&e instanceof SVGElement,es=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ei=(e,t)=>{const n=e&&e.to;return Pe(n)?t?t(n):null:n},Ic={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,s,l,a,u){const{mc:c,pc:d,pbc:p,o:{insert:_,querySelector:x,createText:w,createComment:G}}=u,H=Gn(t.props);let{shapeFlag:O,children:B,dynamicChildren:E}=t;if(e==null){const k=t.el=w(""),K=t.anchor=w("");_(k,n,o),_(K,n,o);const oe=(S,R)=>{O&16&&c(B,S,R,r,i,s,l,a)},N=()=>{const S=t.target=ei(t.props,x),R=Cl(S,t,w,_);S&&(s!=="svg"&&Qi(S)?s="svg":s!=="mathml"&&es(S)&&(s="mathml"),H||(oe(S,R),ko(t)))};H&&(oe(n,K),ko(t)),Tc(t.props)?Ge(N,i):N()}else{t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,K=t.target=e.target,oe=t.targetAnchor=e.targetAnchor,N=Gn(e.props),S=N?n:K,R=N?k:oe;if(s==="svg"||Qi(K)?s="svg":(s==="mathml"||es(K))&&(s="mathml"),E?(p(e.dynamicChildren,E,S,r,i,s,l),Ni(e,t,!0)):a||d(e,t,S,R,r,i,s,l,!1),H)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Io(t,n,k,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=ei(t.props,x);W&&Io(t,W,null,u,0)}else N&&Io(t,K,oe,u,1);ko(t)}},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:l,anchor:a,targetStart:u,targetAnchor:c,target:d,props:p}=e;if(d&&(r(u),r(c)),i&&r(a),s&16){const _=i||!Gn(p);for(let x=0;x{e.isMounted=!0}),bo(()=>{e.isUnmounting=!0}),e}const at=[Function,Array],El={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:at,onEnter:at,onAfterEnter:at,onEnterCancelled:at,onBeforeLeave:at,onLeave:at,onAfterLeave:at,onLeaveCancelled:at,onBeforeAppear:at,onAppear:at,onAfterAppear:at,onAppearCancelled:at},Pl=e=>{const t=e.subTree;return t.component?Pl(t.component):t},Oc={name:"BaseTransition",props:El,setup(e,{slots:t}){const n=Ql(),o=$c();return()=>{const r=t.default&&Dl(t.default(),!0);if(!r||!r.length)return;const i=Tl(r),s=de(e),{mode:l}=s;if(o.isLeaving)return Ar(i);const a=ts(i);if(!a)return Ar(i);let u=ti(a,s,o,n,p=>u=p);a.type!==ze&&ao(a,u);const c=n.subTree,d=c&&ts(c);if(d&&d.type!==ze&&!pn(a,d)&&Pl(n).type!==ze){const p=ti(d,s,o,n);if(ao(d,p),l==="out-in"&&a.type!==ze)return o.isLeaving=!0,p.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave},Ar(i);l==="in-out"&&a.type!==ze&&(p.delayLeave=(_,x,w)=>{const G=Il(o,d);G[String(d.key)]=d,_[Kt]=()=>{x(),_[Kt]=void 0,delete u.delayedLeave},u.delayedLeave=w})}return i}}};function Tl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ze){t=n;break}}return t}const Bc=Oc;function Il(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function ti(e,t,n,o,r){const{appear:i,mode:s,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:_,onAfterLeave:x,onLeaveCancelled:w,onBeforeAppear:G,onAppear:H,onAfterAppear:O,onAppearCancelled:B}=t,E=String(e.key),k=Il(n,e),K=(S,R)=>{S&&vt(S,o,9,R)},oe=(S,R)=>{const W=R[1];K(S,R),V(S)?S.every($=>$.length<=1)&&W():S.length<=1&&W()},N={mode:s,persisted:l,beforeEnter(S){let R=a;if(!n.isMounted)if(i)R=G||a;else return;S[Kt]&&S[Kt](!0);const W=k[E];W&&pn(e,W)&&W.el[Kt]&&W.el[Kt](),K(R,[S])},enter(S){let R=u,W=c,$=d;if(!n.isMounted)if(i)R=H||u,W=O||c,$=B||d;else return;let ne=!1;const le=S[Do]=De=>{ne||(ne=!0,De?K($,[S]):K(W,[S]),N.delayedLeave&&N.delayedLeave(),S[Do]=void 0)};R?oe(R,[S,le]):le()},leave(S,R){const W=String(e.key);if(S[Do]&&S[Do](!0),n.isUnmounting)return R();K(p,[S]);let $=!1;const ne=S[Kt]=le=>{$||($=!0,R(),le?K(w,[S]):K(x,[S]),S[Kt]=void 0,k[W]===e&&delete k[W])};k[W]=e,_?oe(_,[S,ne]):ne()},clone(S){const R=ti(S,t,n,o,r);return r&&r(R),R}};return N}function Ar(e){if(pr(e))return e=en(e),e.children=null,e}function ts(e){if(!pr(e))return Sl(e.type)&&e.children?Tl(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Q(n.default))return n.default()}}function ao(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ao(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 Dl(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;iBe({name:e.name},t,{setup:e}))():e}function Al(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ni(e,t,n,o,r=!1){if(V(e)){e.forEach((x,w)=>ni(x,t&&(V(t)?t[w]:t),n,o,r));return}if(Dn(o)&&!r)return;const i=o.shapeFlag&4?xr(o.component):o.el,s=r?null:i,{i:l,r:a}=e,u=t&&t.r,c=l.refs===xe?l.refs={}:l.refs,d=l.setupState,p=de(d),_=d===xe?()=>!1:x=>ge(p,x);if(u!=null&&u!==a&&(Pe(u)?(c[u]=null,_(u)&&(d[u]=null)):Ie(u)&&(u.value=null)),Q(a))vo(a,l,12,[s,c]);else{const x=Pe(a),w=Ie(a);if(x||w){const G=()=>{if(e.f){const H=x?_(a)?d[a]:c[a]:a.value;r?V(H)&&xi(H,i):V(H)?H.includes(i)||H.push(i):x?(c[a]=[i],_(a)&&(d[a]=c[a])):(a.value=[i],e.k&&(c[e.k]=a.value))}else x?(c[a]=s,_(a)&&(d[a]=s)):w&&(a.value=s,e.k&&(c[e.k]=s))};s?(G.id=-1,Ge(G,n)):G()}}}const Dn=e=>!!e.type.__asyncLoader,pr=e=>e.type.__isKeepAlive;function Mc(e,t){$l(e,"a",t)}function kc(e,t){$l(e,"da",t)}function $l(e,t,n=Me){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(hr(t,o,n),n){let r=n.parent;for(;r&&r.parent;)pr(r.parent.vnode)&&Fc(o,t,n,r),r=r.parent}}function Fc(e,t,n,o){const r=hr(t,e,o,!0);Mi(()=>{xi(o[t],r)},n)}function hr(e,t,n=Me,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{nn();const l=xo(n),a=vt(t,n,e,s);return l(),on(),a});return o?r.unshift(i):r.push(i),i}}const Ft=e=>(t,n=Me)=>{(!br||e==="sp")&&hr(e,(...o)=>t(...o),n)},Nc=Ft("bm"),gr=Ft("m"),Rc=Ft("bu"),Lc=Ft("u"),bo=Ft("bum"),Mi=Ft("um"),jc=Ft("sp"),Hc=Ft("rtg"),Vc=Ft("rtc");function Wc(e,t=Me){hr("ec",e,t)}const Ol="components",Bl=Symbol.for("v-ndc");function Uc(e){return Pe(e)?Kc(Ol,e,!1)||e:e||Bl}function Kc(e,t,n=!0,o=!1){const r=Oe||Me;if(r){const i=r.type;if(e===Ol){const l=Bu(i,!1);if(l&&(l===t||l===mt(t)||l===lr(mt(t))))return i}const s=ns(r[e]||i[e],t)||ns(r.appContext[e],t);return!s&&o?i:s}}function ns(e,t){return e&&(e[t]||e[mt(t)]||e[lr(mt(t))])}function qt(e,t,n,o){let r;const i=n&&n[o],s=V(e);if(s||Pe(e)){const l=s&&Zt(e);let a=!1;l&&(a=!ut(e),e=ar(e)),r=new Array(e.length);for(let u=0,c=e.length;ut(l,a,void 0,i&&i[a]));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,u=l.length;aqo(t)?!(t.type===ze||t.type===we&&!Ml(t.children)):!0)?e:null}const oi=e=>e?ea(e)?xr(e):oi(e.parent):null,qn=Be(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=>oi(e.parent),$root:e=>oi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ki(e),$forceUpdate:e=>e.f||(e.f=()=>{Bi(e.update)}),$nextTick:e=>e.n||(e.n=dr.bind(e.proxy)),$watch:e=>mu.bind(e)}),$r=(e,t)=>e!==xe&&!e.__isScriptSetup&&ge(e,t),zc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const _=s[t];if(_!==void 0)switch(_){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if($r(o,t))return s[t]=1,o[t];if(r!==xe&&ge(r,t))return s[t]=2,r[t];if((u=e.propsOptions[0])&&ge(u,t))return s[t]=3,i[t];if(n!==xe&&ge(n,t))return s[t]=4,n[t];ri&&(s[t]=0)}}const c=qn[t];let d,p;if(c)return t==="$attrs"&&Le(e.attrs,"get",""),c(e);if((d=l.__cssModules)&&(d=d[t]))return d;if(n!==xe&&ge(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,ge(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return $r(r,t)?(r[t]=n,!0):o!==xe&&ge(o,t)?(o[t]=n,!0):ge(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==xe&&ge(e,s)||$r(t,s)||(l=i[0])&&ge(l,s)||ge(o,s)||ge(qn,s)||ge(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yc(){return Xc().attrs}function Xc(){const e=Ql();return e.setupContext||(e.setupContext=na(e))}function os(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ri=!0;function Gc(e){const t=ki(e),n=e.proxy,o=e.ctx;ri=!1,t.beforeCreate&&rs(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:u,created:c,beforeMount:d,mounted:p,beforeUpdate:_,updated:x,activated:w,deactivated:G,beforeDestroy:H,beforeUnmount:O,destroyed:B,unmounted:E,render:k,renderTracked:K,renderTriggered:oe,errorCaptured:N,serverPrefetch:S,expose:R,inheritAttrs:W,components:$,directives:ne,filters:le}=t;if(u&&qc(u,o,null),s)for(const ee in s){const se=s[ee];Q(se)&&(o[ee]=se.bind(n))}if(r){const ee=r.call(n,n);_e(ee)&&(e.data=ur(ee))}if(ri=!0,i)for(const ee in i){const se=i[ee],lt=Q(se)?se.bind(n,n):Q(se.get)?se.get.bind(n,n):ht,Rt=!Q(se)&&Q(se.set)?se.set.bind(n):ht,Je=ue({get:lt,set:Rt});Object.defineProperty(o,ee,{enumerable:!0,configurable:!0,get:()=>Je.value,set:Ye=>Je.value=Ye})}if(l)for(const ee in l)kl(l[ee],o,n,ee);if(a){const ee=Q(a)?a.call(n):a;Reflect.ownKeys(ee).forEach(se=>{nu(se,ee[se])})}c&&rs(c,e,"c");function ie(ee,se){V(se)?se.forEach(lt=>ee(lt.bind(n))):se&&ee(se.bind(n))}if(ie(Nc,d),ie(gr,p),ie(Rc,_),ie(Lc,x),ie(Mc,w),ie(kc,G),ie(Wc,N),ie(Vc,K),ie(Hc,oe),ie(bo,O),ie(Mi,E),ie(jc,S),V(R))if(R.length){const ee=e.exposed||(e.exposed={});R.forEach(se=>{Object.defineProperty(ee,se,{get:()=>n[se],set:lt=>n[se]=lt})})}else e.exposed||(e.exposed={});k&&e.render===ht&&(e.render=k),W!=null&&(e.inheritAttrs=W),$&&(e.components=$),ne&&(e.directives=ne),S&&Al(e)}function qc(e,t,n=ht){V(e)&&(e=ii(e));for(const o in e){const r=e[o];let i;_e(r)?"default"in r?i=An(r.from||o,r.default,!0):i=An(r.from||o):i=An(r),Ie(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function rs(e,t,n){vt(V(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function kl(e,t,n,o){let r=o.includes(".")?Xl(n,o):()=>n[o];if(Pe(e)){const i=t[e];Q(i)&&Ke(r,i)}else if(Q(e))Ke(r,e.bind(n));else if(_e(e))if(V(e))e.forEach(i=>kl(i,t,n,o));else{const i=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(i)&&Ke(r,i,e)}}function ki(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(u=>Go(a,u,s,!0)),Go(a,t,s)),_e(t)&&i.set(t,a),a}function Go(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Go(e,i,n,!0),r&&r.forEach(s=>Go(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Jc[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Jc={data:is,props:ss,emits:ss,methods:Wn,computed:Wn,beforeCreate:He,created:He,beforeMount:He,mounted:He,beforeUpdate:He,updated:He,beforeDestroy:He,beforeUnmount:He,destroyed:He,unmounted:He,activated:He,deactivated:He,errorCaptured:He,serverPrefetch:He,components:Wn,directives:Wn,watch:Qc,provide:is,inject:Zc};function is(e,t){return t?e?function(){return Be(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function Zc(e,t){return Wn(ii(e),ii(t))}function ii(e){if(V(e)){const t={};for(let n=0;n1)return n&&Q(t)?t.call(o&&o.proxy):t}}function ou(){return!!(Me||Oe||mn)}const Nl={},Rl=()=>Object.create(Nl),Ll=e=>Object.getPrototypeOf(e)===Nl;function ru(e,t,n,o=!1){const r={},i=Rl();e.propsDefaults=Object.create(null),jl(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:pc(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function iu(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=de(r),[a]=e.propsOptions;let u=!1;if((o||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let d=0;d{a=!0;const[p,_]=Hl(d,t,!0);Be(s,p),_&&l.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return _e(e)&&o.set(e,Pn),Pn;if(V(i))for(let c=0;ce[0]==="_"||e==="$stable",Fi=e=>V(e)?e.map(yt):[yt(e)],lu=(e,t,n)=>{if(t._n)return t;const o=it((...r)=>Fi(t(...r)),n);return o._c=!1,o},Wl=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Vl(r))continue;const i=e[r];if(Q(i))t[r]=lu(r,i,o);else if(i!=null){const s=Fi(i);t[r]=()=>s}}},Ul=(e,t)=>{const n=Fi(t);e.slots.default=()=>n},Kl=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},au=(e,t,n)=>{const o=e.slots=Rl();if(e.vnode.shapeFlag&32){const r=t._;r?(Kl(o,t,n),n&&Xs(o,"_",r,!0)):Wl(t,o)}else t&&Ul(e,t)},cu=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=xe;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Kl(r,t,n):(i=!t.$stable,Wl(t,r)),s=t}else t&&(Ul(e,t),s={default:1});if(i)for(const l in r)!Vl(l)&&s[l]==null&&delete r[l]},Ge=Su;function uu(e){return fu(e)}function fu(e,t){const n=Gs();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:u,setElementText:c,parentNode:d,nextSibling:p,setScopeId:_=ht,insertStaticContent:x}=e,w=(h,v,g,f=null,b=null,y=null,P=void 0,D=null,T=!!v.dynamicChildren)=>{if(h===v)return;h&&!pn(h,v)&&(f=bn(h),Ye(h,b,y,!0),h=null),v.patchFlag===-2&&(T=!1,v.dynamicChildren=null);const{type:C,ref:z,shapeFlag:M}=v;switch(C){case vr:G(h,v,g,f);break;case ze:H(h,v,g,f);break;case Mr:h==null&&O(v,g,f,P);break;case we:$(h,v,g,f,b,y,P,D,T);break;default:M&1?k(h,v,g,f,b,y,P,D,T):M&6?ne(h,v,g,f,b,y,P,D,T):(M&64||M&128)&&C.process(h,v,g,f,b,y,P,D,T,Tt)}z!=null&&b&&ni(z,h&&h.ref,y,v||h,!v)},G=(h,v,g,f)=>{if(h==null)o(v.el=l(v.children),g,f);else{const b=v.el=h.el;v.children!==h.children&&u(b,v.children)}},H=(h,v,g,f)=>{h==null?o(v.el=a(v.children||""),g,f):v.el=h.el},O=(h,v,g,f)=>{[h.el,h.anchor]=x(h.children,v,g,f,h.el,h.anchor)},B=({el:h,anchor:v},g,f)=>{let b;for(;h&&h!==v;)b=p(h),o(h,g,f),h=b;o(v,g,f)},E=({el:h,anchor:v})=>{let g;for(;h&&h!==v;)g=p(h),r(h),h=g;r(v)},k=(h,v,g,f,b,y,P,D,T)=>{v.type==="svg"?P="svg":v.type==="math"&&(P="mathml"),h==null?K(v,g,f,b,y,P,D,T):S(h,v,b,y,P,D,T)},K=(h,v,g,f,b,y,P,D)=>{let T,C;const{props:z,shapeFlag:M,transition:L,dirs:J}=h;if(T=h.el=s(h.type,y,z&&z.is,z),M&8?c(T,h.children):M&16&&N(h.children,T,null,f,b,Or(h,y),P,D),J&&rn(h,null,f,"created"),oe(T,h,h.scopeId,P,f),z){for(const ye in z)ye!=="value"&&!Yn(ye)&&i(T,ye,null,z[ye],y,f);"value"in z&&i(T,"value",null,z.value,y),(C=z.onVnodeBeforeMount)&&xt(C,f,h)}J&&rn(h,null,f,"beforeMount");const ae=du(b,L);ae&&L.beforeEnter(T),o(T,v,g),((C=z&&z.onVnodeMounted)||ae||J)&&Ge(()=>{C&&xt(C,f,h),ae&&L.enter(T),J&&rn(h,null,f,"mounted")},b)},oe=(h,v,g,f,b)=>{if(g&&_(h,g),f)for(let y=0;y{for(let C=T;C{const D=v.el=h.el;let{patchFlag:T,dynamicChildren:C,dirs:z}=v;T|=h.patchFlag&16;const M=h.props||xe,L=v.props||xe;let J;if(g&&sn(g,!1),(J=L.onVnodeBeforeUpdate)&&xt(J,g,v,h),z&&rn(v,h,g,"beforeUpdate"),g&&sn(g,!0),(M.innerHTML&&L.innerHTML==null||M.textContent&&L.textContent==null)&&c(D,""),C?R(h.dynamicChildren,C,D,g,f,Or(v,b),y):P||se(h,v,D,null,g,f,Or(v,b),y,!1),T>0){if(T&16)W(D,M,L,g,b);else if(T&2&&M.class!==L.class&&i(D,"class",null,L.class,b),T&4&&i(D,"style",M.style,L.style,b),T&8){const ae=v.dynamicProps;for(let ye=0;ye{J&&xt(J,g,v,h),z&&rn(v,h,g,"updated")},f)},R=(h,v,g,f,b,y,P)=>{for(let D=0;D{if(v!==g){if(v!==xe)for(const y in v)!Yn(y)&&!(y in g)&&i(h,y,v[y],null,b,f);for(const y in g){if(Yn(y))continue;const P=g[y],D=v[y];P!==D&&y!=="value"&&i(h,y,D,P,b,f)}"value"in g&&i(h,"value",v.value,g.value,b)}},$=(h,v,g,f,b,y,P,D,T)=>{const C=v.el=h?h.el:l(""),z=v.anchor=h?h.anchor:l("");let{patchFlag:M,dynamicChildren:L,slotScopeIds:J}=v;J&&(D=D?D.concat(J):J),h==null?(o(C,g,f),o(z,g,f),N(v.children||[],g,z,b,y,P,D,T)):M>0&&M&64&&L&&h.dynamicChildren?(R(h.dynamicChildren,L,g,b,y,P,D),(v.key!=null||b&&v===b.subTree)&&Ni(h,v,!0)):se(h,v,g,z,b,y,P,D,T)},ne=(h,v,g,f,b,y,P,D,T)=>{v.slotScopeIds=D,h==null?v.shapeFlag&512?b.ctx.activate(v,g,f,P,T):le(v,g,f,b,y,P,T):De(h,v,T)},le=(h,v,g,f,b,y,P)=>{const D=h.component=Du(h,f,b);if(pr(h)&&(D.ctx.renderer=Tt),Au(D,!1,P),D.asyncDep){if(b&&b.registerDep(D,ie,P),!h.el){const T=D.subTree=pe(ze);H(null,T,v,g)}}else ie(D,h,v,g,b,y,P)},De=(h,v,g)=>{const f=v.component=h.component;if(yu(h,v,g))if(f.asyncDep&&!f.asyncResolved){ee(f,v,g);return}else f.next=v,f.update();else v.el=h.el,f.vnode=v},ie=(h,v,g,f,b,y,P)=>{const D=()=>{if(h.isMounted){let{next:M,bu:L,u:J,parent:ae,vnode:ye}=h;{const Qe=zl(h);if(Qe){M&&(M.el=ye.el,ee(h,M,P)),Qe.asyncDep.then(()=>{h.isUnmounted||D()});return}}let me=M,Ze;sn(h,!1),M?(M.el=ye.el,ee(h,M,P)):M=ye,L&&Mo(L),(Ze=M.props&&M.props.onVnodeBeforeUpdate)&&xt(Ze,ae,M,ye),sn(h,!0);const Fe=Br(h),ft=h.subTree;h.subTree=Fe,w(ft,Fe,d(ft.el),bn(ft),h,b,y),M.el=Fe.el,me===null&&wu(h,Fe.el),J&&Ge(J,b),(Ze=M.props&&M.props.onVnodeUpdated)&&Ge(()=>xt(Ze,ae,M,ye),b)}else{let M;const{el:L,props:J}=v,{bm:ae,m:ye,parent:me,root:Ze,type:Fe}=h,ft=Dn(v);if(sn(h,!1),ae&&Mo(ae),!ft&&(M=J&&J.onVnodeBeforeMount)&&xt(M,me,v),sn(h,!0),L&&Rn){const Qe=()=>{h.subTree=Br(h),Rn(L,h.subTree,h,b,null)};ft&&Fe.__asyncHydrate?Fe.__asyncHydrate(L,h,Qe):Qe()}else{Ze.ce&&Ze.ce._injectChildStyle(Fe);const Qe=h.subTree=Br(h);w(null,Qe,g,f,h,b,y),v.el=Qe.el}if(ye&&Ge(ye,b),!ft&&(M=J&&J.onVnodeMounted)){const Qe=v;Ge(()=>xt(M,me,Qe),b)}(v.shapeFlag&256||me&&Dn(me.vnode)&&me.vnode.shapeFlag&256)&&h.a&&Ge(h.a,b),h.isMounted=!0,v=g=f=null}};h.scope.on();const T=h.effect=new nl(D);h.scope.off();const C=h.update=T.run.bind(T),z=h.job=T.runIfDirty.bind(T);z.i=h,z.id=h.uid,T.scheduler=()=>Bi(z),sn(h,!0),C()},ee=(h,v,g)=>{v.component=h;const f=h.vnode.props;h.vnode=v,h.next=null,iu(h,v.props,f,g),cu(h,v.children,g),nn(),Zi(h),on()},se=(h,v,g,f,b,y,P,D,T=!1)=>{const C=h&&h.children,z=h?h.shapeFlag:0,M=v.children,{patchFlag:L,shapeFlag:J}=v;if(L>0){if(L&128){Rt(C,M,g,f,b,y,P,D,T);return}else if(L&256){lt(C,M,g,f,b,y,P,D,T);return}}J&8?(z&16&&Et(C,b,y),M!==C&&c(g,M)):z&16?J&16?Rt(C,M,g,f,b,y,P,D,T):Et(C,b,y,!0):(z&8&&c(g,""),J&16&&N(M,g,f,b,y,P,D,T))},lt=(h,v,g,f,b,y,P,D,T)=>{h=h||Pn,v=v||Pn;const C=h.length,z=v.length,M=Math.min(C,z);let L;for(L=0;Lz?Et(h,b,y,!0,!1,M):N(v,g,f,b,y,P,D,T,M)},Rt=(h,v,g,f,b,y,P,D,T)=>{let C=0;const z=v.length;let M=h.length-1,L=z-1;for(;C<=M&&C<=L;){const J=h[C],ae=v[C]=T?zt(v[C]):yt(v[C]);if(pn(J,ae))w(J,ae,g,null,b,y,P,D,T);else break;C++}for(;C<=M&&C<=L;){const J=h[M],ae=v[L]=T?zt(v[L]):yt(v[L]);if(pn(J,ae))w(J,ae,g,null,b,y,P,D,T);else break;M--,L--}if(C>M){if(C<=L){const J=L+1,ae=JL)for(;C<=M;)Ye(h[C],b,y,!0),C++;else{const J=C,ae=C,ye=new Map;for(C=ae;C<=L;C++){const et=v[C]=T?zt(v[C]):yt(v[C]);et.key!=null&&ye.set(et.key,C)}let me,Ze=0;const Fe=L-ae+1;let ft=!1,Qe=0;const Ln=new Array(Fe);for(C=0;C=Fe){Ye(et,b,y,!0);continue}let bt;if(et.key!=null)bt=ye.get(et.key);else for(me=ae;me<=L;me++)if(Ln[me-ae]===0&&pn(et,v[me])){bt=me;break}bt===void 0?Ye(et,b,y,!0):(Ln[bt-ae]=C+1,bt>=Qe?Qe=bt:ft=!0,w(et,v[bt],g,null,b,y,P,D,T),Ze++)}const Vi=ft?pu(Ln):Pn;for(me=Vi.length-1,C=Fe-1;C>=0;C--){const et=ae+C,bt=v[et],Wi=et+1{const{el:y,type:P,transition:D,children:T,shapeFlag:C}=h;if(C&6){Je(h.component.subTree,v,g,f);return}if(C&128){h.suspense.move(v,g,f);return}if(C&64){P.move(h,v,g,Tt);return}if(P===we){o(y,v,g);for(let M=0;MD.enter(y),b);else{const{leave:M,delayLeave:L,afterLeave:J}=D,ae=()=>o(y,v,g),ye=()=>{M(y,()=>{ae(),J&&J()})};L?L(y,ae,ye):ye()}else o(y,v,g)},Ye=(h,v,g,f=!1,b=!1)=>{const{type:y,props:P,ref:D,children:T,dynamicChildren:C,shapeFlag:z,patchFlag:M,dirs:L,cacheIndex:J}=h;if(M===-2&&(b=!1),D!=null&&ni(D,null,g,h,!0),J!=null&&(v.renderCache[J]=void 0),z&256){v.ctx.deactivate(h);return}const ae=z&1&&L,ye=!Dn(h);let me;if(ye&&(me=P&&P.onVnodeBeforeUnmount)&&xt(me,v,h),z&6)Cr(h.component,g,f);else{if(z&128){h.suspense.unmount(g,f);return}ae&&rn(h,null,v,"beforeUnmount"),z&64?h.type.remove(h,v,g,Tt,f):C&&!C.hasOnce&&(y!==we||M>0&&M&64)?Et(C,v,g,!1,!0):(y===we&&M&384||!b&&z&16)&&Et(T,v,g),f&&Fn(h)}(ye&&(me=P&&P.onVnodeUnmounted)||ae)&&Ge(()=>{me&&xt(me,v,h),ae&&rn(h,null,v,"unmounted")},g)},Fn=h=>{const{type:v,el:g,anchor:f,transition:b}=h;if(v===we){Sr(g,f);return}if(v===Mr){E(h);return}const y=()=>{r(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(h.shapeFlag&1&&b&&!b.persisted){const{leave:P,delayLeave:D}=b,T=()=>P(g,y);D?D(h.el,y,T):T()}else y()},Sr=(h,v)=>{let g;for(;h!==v;)g=p(h),r(h),h=g;r(v)},Cr=(h,v,g)=>{const{bum:f,scope:b,job:y,subTree:P,um:D,m:T,a:C}=h;as(T),as(C),f&&Mo(f),b.stop(),y&&(y.flags|=8,Ye(P,h,v,g)),D&&Ge(D,v),Ge(()=>{h.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve())},Et=(h,v,g,f=!1,b=!1,y=0)=>{for(let P=y;P{if(h.shapeFlag&6)return bn(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const v=p(h.anchor||h.el),g=v&&v[wl];return g?p(g):v};let Pt=!1;const Nn=(h,v,g)=>{h==null?v._vnode&&Ye(v._vnode,null,null,!0):w(v._vnode||null,h,v,null,null,null,g),v._vnode=h,Pt||(Pt=!0,Zi(),xl(),Pt=!1)},Tt={p:w,um:Ye,m:Je,r:Fn,mt:le,mc:N,pc:se,pbc:R,n:bn,o:e};let Lt,Rn;return t&&([Lt,Rn]=t(Tt)),{render:Nn,hydrate:Lt,createApp:tu(Nn,Lt)}}function Or({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function du(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ni(e,t,n=!1){const o=e.children,r=t.children;if(V(o)&&V(r))for(let i=0;i>1,e[n[l]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function zl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zl(t)}function as(e){if(e)for(let t=0;tAn(hu);function Ke(e,t,n){return Yl(e,t,n)}function Yl(e,t,n=xe){const{immediate:o,deep:r,flush:i,once:s}=n,l=Be({},n);let a;if(br)if(i==="sync"){const p=gu();a=p.__watcherHandles||(p.__watcherHandles=[])}else if(!t||o)l.once=!0;else return{stop:ht,resume:ht,pause:ht};const u=Me;l.call=(p,_,x)=>vt(p,u,_,x);let c=!1;i==="post"?l.scheduler=p=>{Ge(p,u&&u.suspense)}:i!=="sync"&&(c=!0,l.scheduler=(p,_)=>{_?p():Bi(p)}),l.augmentJob=p=>{t&&(p.flags|=4),c&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=Sc(e,t,l);return a&&a.push(d),d}function mu(e,t,n){const o=this.proxy,r=Pe(e)?e.includes(".")?Xl(o,e):()=>o[e]:e.bind(o,o);let i;Q(t)?i=t:(i=t.handler,n=t);const s=xo(this),l=Yl(r,i.bind(o),n);return s(),l}function Xl(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${mt(t)}Modifiers`]||e[`${tn(t)}Modifiers`];function bu(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||xe;let r=n;const i=t.startsWith("update:"),s=i&&vu(o,t.slice(7));s&&(s.trim&&(r=n.map(c=>Pe(c)?c.trim():c)),s.number&&(r=n.map(Ko)));let l,a=o[l=Er(t)]||o[l=Er(mt(t))];!a&&i&&(a=o[l=Er(tn(t))]),a&&vt(a,e,6,r);const u=o[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,vt(u,e,6,r)}}function Gl(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!Q(e)){const a=u=>{const c=Gl(u,t,!0);c&&(l=!0,Be(s,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(_e(e)&&o.set(e,null),null):(V(i)?i.forEach(a=>s[a]=null):Be(s,i),_e(e)&&o.set(e,s),s)}function mr(e,t){return!e||!ir(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,tn(t))||ge(e,t))}function Br(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:l,emit:a,render:u,renderCache:c,props:d,data:p,setupState:_,ctx:x,inheritAttrs:w}=e,G=Xo(e);let H,O;try{if(n.shapeFlag&4){const E=r||o,k=E;H=yt(u.call(k,E,c,d,_,p,x)),O=l}else{const E=t;H=yt(E.length>1?E(d,{attrs:l,slots:s,emit:a}):E(d,null)),O=t.props?l:xu(l)}}catch(E){Jn.length=0,fr(E,e,1),H=pe(ze)}let B=H;if(O&&w!==!1){const E=Object.keys(O),{shapeFlag:k}=B;E.length&&k&7&&(i&&E.some(bi)&&(O=_u(O,i)),B=en(B,O,!1,!0))}return n.dirs&&(B=en(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&ao(B,n.transition),H=B,Xo(G),H}const xu=e=>{let t;for(const n in e)(n==="class"||n==="style"||ir(n))&&((t||(t={}))[n]=e[n]);return t},_u=(e,t)=>{const n={};for(const o in e)(!bi(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function yu(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?cs(o,s,u):!!s;if(a&8){const c=t.dynamicProps;for(let d=0;de.__isSuspense;function Su(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Pc(e)}const we=Symbol.for("v-fgt"),vr=Symbol.for("v-txt"),ze=Symbol.for("v-cmt"),Mr=Symbol.for("v-stc"),Jn=[];let ot=null;function F(e=!1){Jn.push(ot=e?null:[])}function Cu(){Jn.pop(),ot=Jn[Jn.length-1]||null}let co=1;function us(e){co+=e,e<0&&ot&&(ot.hasOnce=!0)}function Jl(e){return e.dynamicChildren=co>0?ot||Pn:null,Cu(),co>0&&ot&&ot.push(e),e}function q(e,t,n,o,r,i){return Jl(m(e,t,n,o,r,i,!0))}function rt(e,t,n,o,r){return Jl(pe(e,t,n,o,r,!0))}function qo(e){return e?e.__v_isVNode===!0:!1}function pn(e,t){return e.type===t.type&&e.key===t.key}const Zl=({key:e})=>e??null,No=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Pe(e)||Ie(e)||Q(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function m(e,t=null,n=null,o=0,r=null,i=e===we?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zl(t),ref:t&&No(t),scopeId:yl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Oe};return l?(Ri(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Pe(n)?8:16),co>0&&!s&&ot&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&ot.push(a),a}const pe=Eu;function Eu(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===Bl)&&(e=ze),qo(e)){const l=en(e,t,!0);return n&&Ri(l,n),co>0&&!i&&ot&&(l.shapeFlag&6?ot[ot.indexOf(e)]=l:ot.push(l)),l.patchFlag=-2,l}if(Mu(e)&&(e=e.__vccOpts),t){t=Pu(t);let{class:l,style:a}=t;l&&!Pe(l)&&(t.class=te(l)),_e(a)&&(Di(a)&&!V(a)&&(a=Be({},a)),t.style=go(a))}const s=Pe(e)?1:ql(e)?128:Sl(e)?64:_e(e)?4:Q(e)?2:0;return m(e,t,n,o,r,s,i,!0)}function Pu(e){return e?Di(e)||Ll(e)?Be({},e):e:null}function en(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:l,transition:a}=e,u=t?li(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Zl(u),ref:t&&t.ref?n&&i?V(i)?i.concat(No(t)):[i,No(t)]:No(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==we?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&en(e.ssContent),ssFallback:e.ssFallback&&en(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&o&&ao(c,a.clone(c)),c}function uo(e=" ",t=0){return pe(vr,null,e,t)}function Ee(e="",t=!1){return t?(F(),rt(ze,null,e)):pe(ze,null,e)}function yt(e){return e==null||typeof e=="boolean"?pe(ze):V(e)?pe(we,null,e.slice()):typeof e=="object"?zt(e):pe(vr,null,String(e))}function zt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:en(e)}function Ri(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ri(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ll(t)?t._ctx=Oe:r===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Oe},n=32):(t=String(t),o&64?(n=16,t=[uo(t)]):n=8);e.children=t,e.shapeFlag|=n}function li(...e){const t={};for(let n=0;nMe||Oe;let Jo,ai;{const e=Gs(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};Jo=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),ai=t("__VUE_SSR_SETTERS__",n=>br=n)}const xo=e=>{const t=Me;return Jo(e),e.scope.on(),()=>{e.scope.off(),Jo(t)}},fs=()=>{Me&&Me.scope.off(),Jo(null)};function ea(e){return e.vnode.shapeFlag&4}let br=!1;function Au(e,t=!1,n=!1){t&&ai(t);const{props:o,children:r}=e.vnode,i=ea(e);ru(e,o,i,t),au(e,r,n);const s=i?$u(e,t):void 0;return t&&ai(!1),s}function $u(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,zc);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?na(e):null,i=xo(e);nn();const s=vo(o,e,0,[e.props,r]);if(on(),i(),Ks(s)){if(Dn(e)||Al(e),s.then(fs,fs),t)return s.then(l=>{ds(e,l,t)}).catch(l=>{fr(l,e,0)});e.asyncDep=s}else ds(e,s,t)}else ta(e,t)}function ds(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=ml(t)),ta(e,n)}let ps;function ta(e,t,n){const o=e.type;if(!e.render){if(!t&&ps&&!o.render){const r=o.template||ki(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,u=Be(Be({isCustomElement:i,delimiters:l},s),a);o.render=ps(r,u)}}e.render=o.render||ht}{const r=xo(e);nn();try{Gc(e)}finally{on(),r()}}}const Ou={get(e,t){return Le(e,"get",""),e[t]}};function na(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ou),slots:e.slots,emit:e.emit,expose:t}}function xr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ml(Ai(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in qn)return qn[n](e)},has(t,n){return n in t||n in qn}})):e.proxy}function Bu(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function Mu(e){return Q(e)&&"__vccOpts"in e}const ue=(e,t)=>yc(e,t,br);function ku(e,t,n){const o=arguments.length;return o===2?_e(t)&&!V(t)?qo(t)?pe(e,null,[t]):pe(e,t):pe(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qo(n)&&(n=[n]),pe(e,t,n))}const Fu="3.5.4";/** +* @vue/runtime-dom v3.5.4 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ci;const hs=typeof window<"u"&&window.trustedTypes;if(hs)try{ci=hs.createPolicy("vue",{createHTML:e=>e})}catch{}const oa=ci?e=>ci.createHTML(e):e=>e,Nu="http://www.w3.org/2000/svg",Ru="http://www.w3.org/1998/Math/MathML",Dt=typeof document<"u"?document:null,gs=Dt&&Dt.createElement("template"),Lu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Dt.createElementNS(Nu,e):t==="mathml"?Dt.createElementNS(Ru,e):n?Dt.createElement(e,{is:n}):Dt.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{gs.innerHTML=oa(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const l=gs.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ht="transition",Hn="animation",fo=Symbol("_vtc"),ra={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},ju=Be({},El,ra),Hu=e=>(e.displayName="Transition",e.props=ju,e),ui=Hu((e,{slots:t})=>ku(Bc,Vu(e),t)),ln=(e,t=[])=>{V(e)?e.forEach(n=>n(...t)):e&&e(...t)},ms=e=>e?V(e)?e.some(t=>t.length>1):e.length>1:!1;function Vu(e){const t={};for(const $ in e)$ in ra||(t[$]=e[$]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:u=s,appearToClass:c=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=e,x=Wu(r),w=x&&x[0],G=x&&x[1],{onBeforeEnter:H,onEnter:O,onEnterCancelled:B,onLeave:E,onLeaveCancelled:k,onBeforeAppear:K=H,onAppear:oe=O,onAppearCancelled:N=B}=t,S=($,ne,le)=>{an($,ne?c:l),an($,ne?u:s),le&&le()},R=($,ne)=>{$._isLeaving=!1,an($,d),an($,_),an($,p),ne&&ne()},W=$=>(ne,le)=>{const De=$?oe:O,ie=()=>S(ne,$,le);ln(De,[ne,ie]),vs(()=>{an(ne,$?a:i),Vt(ne,$?c:l),ms(De)||bs(ne,o,w,ie)})};return Be(t,{onBeforeEnter($){ln(H,[$]),Vt($,i),Vt($,s)},onBeforeAppear($){ln(K,[$]),Vt($,a),Vt($,u)},onEnter:W(!1),onAppear:W(!0),onLeave($,ne){$._isLeaving=!0;const le=()=>R($,ne);Vt($,d),Vt($,p),zu(),vs(()=>{$._isLeaving&&(an($,d),Vt($,_),ms(E)||bs($,o,G,le))}),ln(E,[$,le])},onEnterCancelled($){S($,!1),ln(B,[$])},onAppearCancelled($){S($,!0),ln(N,[$])},onLeaveCancelled($){R($),ln(k,[$])}})}function Wu(e){if(e==null)return null;if(_e(e))return[kr(e.enter),kr(e.leave)];{const t=kr(e);return[t,t]}}function kr(e){return Na(e)}function Vt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[fo]||(e[fo]=new Set)).add(t)}function an(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[fo];n&&(n.delete(t),n.size||(e[fo]=void 0))}function vs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Uu=0;function bs(e,t,n,o){const r=e._endId=++Uu,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=Ku(e,t);if(!s)return o();const u=s+"end";let c=0;const d=()=>{e.removeEventListener(u,p),i()},p=_=>{_.target===e&&++c>=a&&d()};setTimeout(()=>{c(n[x]||"").split(", "),r=o(`${Ht}Delay`),i=o(`${Ht}Duration`),s=xs(r,i),l=o(`${Hn}Delay`),a=o(`${Hn}Duration`),u=xs(l,a);let c=null,d=0,p=0;t===Ht?s>0&&(c=Ht,d=s,p=i.length):t===Hn?u>0&&(c=Hn,d=u,p=a.length):(d=Math.max(s,u),c=d>0?s>u?Ht:Hn:null,p=c?c===Ht?i.length:a.length:0);const _=c===Ht&&/\b(transform|all)(,|$)/.test(o(`${Ht}Property`).toString());return{type:c,timeout:d,propCount:p,hasTransform:_}}function xs(e,t){for(;e.length_s(n)+_s(e[o])))}function _s(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function zu(){return document.body.offsetHeight}function Yu(e,t,n){const o=e[fo];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zo=Symbol("_vod"),ia=Symbol("_vsh"),Qo={beforeMount(e,{value:t},{transition:n}){e[Zo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Vn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Vn(e,!0),o.enter(e)):o.leave(e,()=>{Vn(e,!1)}):Vn(e,t))},beforeUnmount(e,{value:t}){Vn(e,t)}};function Vn(e,t){e.style.display=t?e[Zo]:"none",e[ia]=!t}const Xu=Symbol(""),Gu=/(^|;)\s*display\s*:/;function qu(e,t,n){const o=e.style,r=Pe(n);let i=!1;if(n&&!r){if(t)if(Pe(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&Ro(o,l,"")}else for(const s in t)n[s]==null&&Ro(o,s,"");for(const s in n)s==="display"&&(i=!0),Ro(o,s,n[s])}else if(r){if(t!==n){const s=o[Xu];s&&(n+=";"+s),o.cssText=n,i=Gu.test(n)}}else t&&e.removeAttribute("style");Zo in e&&(e[Zo]=i?o.display:"",e[ia]&&(o.display="none"))}const ys=/\s*!important$/;function Ro(e,t,n){if(V(n))n.forEach(o=>Ro(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ju(e,t);ys.test(n)?e.setProperty(tn(o),n.replace(ys,""),"important"):e[o]=n}}const ws=["Webkit","Moz","ms"],Fr={};function Ju(e,t){const n=Fr[t];if(n)return n;let o=mt(t);if(o!=="filter"&&o in e)return Fr[t]=o;o=lr(o);for(let r=0;rNr||(nf.then(()=>Nr=0),Nr=Date.now());function rf(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;vt(sf(o,n.value),t,5,[o])};return n.value=e,n.attached=of(),n}function sf(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Ts=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lf=(e,t,n,o,r,i)=>{const s=r==="svg";t==="class"?Yu(e,o,s):t==="style"?qu(e,n,o):ir(t)?bi(t)||ef(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):af(e,t,o,s))?(Zu(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Cs(e,t,o,s,i,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Cs(e,t,o,s))};function af(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ts(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Ts(t)&&Pe(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Pe(n)))}const On=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Mo(t,n):t};function cf(e){e.target.composing=!0}function Is(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ot=Symbol("_assign"),sa={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[Ot]=On(r);const i=o||r.props&&r.props.type==="number";Xt(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Ko(l)),e[Ot](l)}),n&&Xt(e,"change",()=>{e.value=e.value.trim()}),t||(Xt(e,"compositionstart",cf),Xt(e,"compositionend",Is),Xt(e,"change",Is))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[Ot]=On(s),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Ko(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||r&&e.value.trim()===a)||(e.value=a))}},uf={deep:!0,created(e,t,n){e[Ot]=On(n),Xt(e,"change",()=>{const o=e._modelValue,r=po(e),i=e.checked,s=e[Ot];if(V(o)){const l=yi(o,r),a=l!==-1;if(i&&!a)s(o.concat(r));else if(!i&&a){const u=[...o];u.splice(l,1),s(u)}}else if(Mn(o)){const l=new Set(o);i?l.add(r):l.delete(r),s(l)}else s(aa(e,i))})},mounted:Ds,beforeUpdate(e,t,n){e[Ot]=On(n),Ds(e,t,n)}};function Ds(e,{value:t,oldValue:n},o){e._modelValue=t;let r;V(t)?r=yi(t,o.props.value)>-1:Mn(t)?r=t.has(o.props.value):r=mo(t,aa(e,!0)),e.checked!==r&&(e.checked=r)}const la={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=Mn(t);Xt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Ko(po(s)):po(s));e[Ot](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,dr(()=>{e._assigning=!1})}),e[Ot]=On(o)},mounted(e,{value:t,modifiers:{number:n}}){As(e,t)},beforeUpdate(e,t,n){e[Ot]=On(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||As(e,t)}};function As(e,t,n){const o=e.multiple,r=V(t);if(!(o&&!r&&!Mn(t))){for(let i=0,s=e.options.length;iString(c)===String(a)):l.selected=yi(t,a)>-1}else l.selected=t.has(a);else if(mo(po(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function po(e){return"_value"in e?e._value:e.value}function aa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ff=["ctrl","shift","alt","meta"],df={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)=>ff.some(n=>e[`${n}Key`]&&!t.includes(n))},ce=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=tn(r.key);if(t.some(s=>s===i||pf[s]===i))return e(r)})},hf=Be({patchProp:lf},Lu);let $s;function gf(){return $s||($s=uu(hf))}const mf=(...e)=>{const t=gf().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=bf(o);if(!r)return;const i=t._component;!Q(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const s=n(r,!1,vf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function vf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bf(e){return Pe(e)?document.querySelector(e):e}var xf=!1;/*! + * pinia v2.2.2 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */let ca;const _r=e=>ca=e,ua=Symbol();function fi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Zn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Zn||(Zn={}));function _f(){const e=el(!0),t=e.run(()=>re({}));let n=[],o=[];const r=Ai({install(i){_r(r),r._a=i,i.provide(ua,r),i.config.globalProperties.$pinia=r,o.forEach(s=>n.push(s)),o=[]},use(i){return!this._a&&!xf?o.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const fa=()=>{};function Os(e,t,n,o=fa){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&tl()&&Ka(r),r}function _n(e,...t){e.slice().forEach(n=>{n(...t)})}const yf=e=>e(),Bs=Symbol(),Lr=Symbol();function di(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];fi(r)&&fi(o)&&e.hasOwnProperty(n)&&!Ie(o)&&!Zt(o)?e[n]=di(r,o):e[n]=o}return e}const wf=Symbol();function Sf(e){return!fi(e)||!e.hasOwnProperty(wf)}const{assign:Wt}=Object;function Cf(e){return!!(Ie(e)&&e.effect)}function Ef(e,t,n,o){const{state:r,actions:i,getters:s}=t,l=n.state.value[e];let a;function u(){l||(n.state.value[e]=r?r():{});const c=vc(n.state.value[e]);return Wt(c,i,Object.keys(s||{}).reduce((d,p)=>(d[p]=Ai(ue(()=>{_r(n);const _=n._s.get(e);return s[p].call(_,_)})),d),{}))}return a=da(e,u,t,n,o,!0),a}function da(e,t,n={},o,r,i){let s;const l=Wt({actions:{}},n),a={deep:!0};let u,c,d=[],p=[],_;const x=o.state.value[e];!i&&!x&&(o.state.value[e]={}),re({});let w;function G(N){let S;u=c=!1,typeof N=="function"?(N(o.state.value[e]),S={type:Zn.patchFunction,storeId:e,events:_}):(di(o.state.value[e],N),S={type:Zn.patchObject,payload:N,storeId:e,events:_});const R=w=Symbol();dr().then(()=>{w===R&&(u=!0)}),c=!0,_n(d,S,o.state.value[e])}const H=i?function(){const{state:S}=n,R=S?S():{};this.$patch(W=>{Wt(W,R)})}:fa;function O(){s.stop(),d=[],p=[],o._s.delete(e)}const B=(N,S="")=>{if(Bs in N)return N[Lr]=S,N;const R=function(){_r(o);const W=Array.from(arguments),$=[],ne=[];function le(ee){$.push(ee)}function De(ee){ne.push(ee)}_n(p,{args:W,name:R[Lr],store:k,after:le,onError:De});let ie;try{ie=N.apply(this&&this.$id===e?this:k,W)}catch(ee){throw _n(ne,ee),ee}return ie instanceof Promise?ie.then(ee=>(_n($,ee),ee)).catch(ee=>(_n(ne,ee),Promise.reject(ee))):(_n($,ie),ie)};return R[Bs]=!0,R[Lr]=S,R},E={_p:o,$id:e,$onAction:Os.bind(null,p),$patch:G,$reset:H,$subscribe(N,S={}){const R=Os(d,N,S.detached,()=>W()),W=s.run(()=>Ke(()=>o.state.value[e],$=>{(S.flush==="sync"?c:u)&&N({storeId:e,type:Zn.direct,events:_},$)},Wt({},a,S)));return R},$dispose:O},k=ur(E);o._s.set(e,k);const oe=(o._a&&o._a.runWithContext||yf)(()=>o._e.run(()=>(s=el()).run(()=>t({action:B}))));for(const N in oe){const S=oe[N];if(Ie(S)&&!Cf(S)||Zt(S))i||(x&&Sf(S)&&(Ie(S)?S.value=x[N]:di(S,x[N])),o.state.value[e][N]=S);else if(typeof S=="function"){const R=B(S,N);oe[N]=R,l.actions[N]=S}}return Wt(k,oe),Wt(de(k),oe),Object.defineProperty(k,"$state",{get:()=>o.state.value[e],set:N=>{G(S=>{Wt(S,N)})}}),o._p.forEach(N=>{Wt(k,s.run(()=>N({store:k,app:o._a,pinia:o,options:l})))}),x&&i&&n.hydrate&&n.hydrate(k.$state,x),u=!0,c=!0,k}function Pf(e,t,n){let o,r;const i=typeof t=="function";typeof e=="string"?(o=e,r=i?n:t):(r=e,o=e.id);function s(l,a){const u=ou();return l=l||(u?An(ua,null):null),l&&_r(l),l=ca,l._s.has(o)||(i?da(o,t,r,l):Ef(o,r,l)),l._s.get(o)}return s.$id=o,s}var Lo=(e=>(e.Before="before",e.After="after",e.Below="below",e))(Lo||{}),hn=(e=>(e.Page="page",e.Box="box",e))(hn||{});const st=Pf("editor",{state:()=>({currentBoxId:0,boxes:[],features:[],currentPageId:0,site:{},baseUrl:"",previewUrl:"",pages:[],sites:[],partials:{},i18n:{},mode:"single",sessionKey:"",instanceId:"",draftParam:"",activeRightColumnTab:"box",iframe:null,iframeWidth:0,zoom:100,addBoxParentId:null,addBoxBeforeId:null,partialContexts:["default"],initialPartialContexts:["default"],settings:{partial_selector_default_cols:4}}),actions:{replace(e){this.pages=e.pages??[],this.boxes=e.boxes??[]},init(e){var n;const t=window.__OC_BOXES_STATE__[e];this.instanceId=e,this.currentPageId=t.initialPageId??((n=t.pages[0])==null?void 0:n.id)??0,this.currentBoxId=t.initialBoxId??0,this.site=t.site,this.baseUrl=t.baseUrl,this.previewUrl=t.previewUrl,this.pages=t.pages,this.boxes=t.boxes,this.partials=t.partials,this.i18n=t.i18n,this.mode=t.mode,this.features=t.features,this.sessionKey=t.sessionKey,this.activeRightColumnTab=t.mode==="full"?"page":"box",this.settings=t.settings,this.draftParam=t.draftParam,this.partialContexts=t.partialContexts,this.initialPartialContexts=t.partialContexts,this.sites=t.sites},resetPartialContexts(){this.partialContexts=this.initialPartialContexts}},getters:{isFullMode(){return this.mode==="full"},isSingleMode(){return!this.isFullMode},hasFeature(){return e=>this.features[e]??!1},unpublishedPages(){const e=[];function t(n){for(const o of n)o.has_pending_changes&&e.push(o),o.children&&t(o.children);return e}return t(this.pages),e}}});let jr;function U(e){return jr||(jr=st()),e=e.replace("offline.boxes::lang.",""),jr.i18n[e]??e}const Tf={class:"text-xs border-1 uppercase border-dashed border-primary rounded text-primary text-center"};var pa=je({__name:"BoxListAddItem",props:{parent:{default:null},partialContexts:{default:[]}},emits:["addBox"],setup(e,{emit:t}){return(n,o)=>(F(),q("li",Tf,[m("a",{href:"#",onClick:o[0]||(o[0]=ce(r=>n.$emit("addBox",{parent_id:e.parent,partial_contexts:e.partialContexts}),["prevent","stop"])),class:"block cursor-pointer hover:bg-gray-100 hover:no-underline rounded py-2 pr-4 hover:text-primary"},j(A(U)("add_box")),1)]))}});const If=["data-id","data-contexts","data-partial"],Df={class:"flex-1"},Af={class:"flex"},$f={key:0,class:"flex-0 mr-2"},Of={class:"flex-1"},Bf={class:"flex-0 invisible group-hover:!visible flex -mr-2"},Mf=["title"],kf={key:0},Ff=["title"],Nf={key:0,class:"mt-2"},Rf={key:1,class:"mt-2"};var Lf=je({__name:"BoxListItem",props:{box:Object,level:Number},emits:["clickBox","duplicateBox","deleteBox","addBox","sort"],setup(e,{emit:t}){const n=e,o=st(),r=ue(()=>o.partials),i=ue(()=>n.box.locked??[]),s=ue(()=>o.currentBoxId),l=ue(()=>a.value.labelFrom&&n.box.data[a.value.labelFrom]?n.box.data[a.value.labelFrom]:a.value.name),a=ue(()=>n.box&&r.value.hasOwnProperty(n.box.partial)?r.value[n.box.partial]:{handle:"unknown",name:"unknown"}),u=ue(()=>n.box.references_box_id??n.box.id),c=ue(()=>Array.isArray(a.value.contexts)?a.value.contexts:["default"]);return(d,p)=>{var _;return F(),q("li",{"data-id":u.value,"data-contexts":c.value.join(","),"data-partial":a.value.handle,class:te(["page-list-node text-sm bg-oc-body border rounded py-2 pr-4 shadow-sm hover:!opacity-100",{"border-primary":u.value===s.value,"opacity-50":!e.box.is_enabled,hidden:a.value.handle==="unknown"||i.value.includes("position")}])},[m("div",{class:"flex w-full group cursor-pointer",onClick:p[8]||(p[8]=ce(x=>d.$emit("clickBox",u.value),["stop","prevent"]))},[p[12]||(p[12]=m("div",{class:"px-2.5 w-5 cursor-move drag-handle"},[m("i",{class:"icon-ellipsis-v"})],-1)),m("div",Df,[m("div",Af,[(_=e.box)!=null&&_.is_enabled?Ee("",!0):(F(),q("div",$f,p[9]||(p[9]=[m("i",{class:"icon-eye-slash"},null,-1)]))),m("div",Of,j(l.value),1),m("div",Bf,[m("span",null,[m("a",{href:"#",onClick:p[0]||(p[0]=ce(x=>d.$emit("duplicateBox",e.box.id),["stop","prevent"])),class:"px-2 py-0.5 rounded hover:bg-gray-100",title:A(U)("duplicate")},p[10]||(p[10]=[m("i",{class:"icon-copy"},null,-1)]),8,Mf)]),i.value.includes("deletion")?Ee("",!0):(F(),q("span",kf,[m("a",{href:"#",onClick:p[1]||(p[1]=ce(x=>d.$emit("deleteBox",e.box.id),["stop","prevent"])),class:"px-2 py-0.5 rounded hover:bg-gray-100",title:A(U)("delete")},p[11]||(p[11]=[m("i",{class:"icon-trash"},null,-1)]),8,Ff)]))])]),a.value.children.length>0?(F(),q("div",Nf,[pe(Aa,{onClickBox:p[2]||(p[2]=x=>d.$emit("clickBox",x)),onDeleteBox:p[3]||(p[3]=x=>d.$emit("deleteBox",x)),onDuplicateBox:p[4]||(p[4]=x=>d.$emit("duplicateBox",x)),onAddBox:p[5]||(p[5]=x=>d.$emit("addBox",x)),onSort:p[6]||(p[6]=x=>d.$emit("sort",x)),boxes:e.box.children,parent:e.box,level:n.level+1},null,8,["boxes","parent","level"])])):Ee("",!0),a.value.children.length>0?(F(),q("ul",Rf,[pe(pa,{"partial-contexts":a.value.children,parent:e.box.id,onAddBox:p[7]||(p[7]=x=>d.$emit("addBox",x))},null,8,["partial-contexts","parent"])])):Ee("",!0)])])],10,If)}}});const kn=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},jf=kn(Lf,[["__scopeId","data-v-6e231b69"]]);/**! + * Sortable 1.15.3 + * @author RubaXa + * @author owenm + * @license MIT + */function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function Ct(e){for(var t=1;t=0)&&(n[r]=e[r]);return n}function Wf(e,t){if(e==null)return{};var n=Vf(e,t),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}var Uf="1.15.3";function Bt(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Nt=Bt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_o=Bt(/Edge/i),ks=Bt(/firefox/i),Qn=Bt(/safari/i)&&!Bt(/chrome/i)&&!Bt(/android/i),ha=Bt(/iP(ad|od|hone)/i),ga=Bt(/chrome/i)&&Bt(/android/i),ma={capture:!1,passive:!1};function he(e,t,n){e.addEventListener(t,n,!Nt&&ma)}function fe(e,t,n){e.removeEventListener(t,n,!Nt&&ma)}function er(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function va(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function pt(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&er(e,t):er(e,t))||o&&e===n)return e;if(e===n)break}while(e=va(e))}return null}var Fs=/\s+/g;function tt(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Fs," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Fs," ")}}function Y(e,t,n){var o=e&&e.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function $n(e,t){var n="";if(typeof e=="string")n=e;else do{var o=Y(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function ba(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,i=o.length;if(n)for(;r=i:s=r<=i,!s)return o;if(o===wt())break;o=Jt(o,!1)}return!1}function Bn(e,t,n,o){for(var r=0,i=0,s=e.children;i2&&arguments[2]!==void 0?arguments[2]:{},r=o.evt,i=Wf(o,Zf);yo.pluginEvent.bind(X)(t,n,Ct({dragEl:I,parentEl:Te,ghostEl:Z,rootEl:Se,nextEl:dn,lastDownEl:Ho,cloneEl:Ce,cloneHidden:Gt,dragStarted:Un,putSortable:ke,activeSortable:X.active,originalEvent:r,oldIndex:En,oldDraggableIndex:to,newIndex:nt,newDraggableIndex:Yt,hideGhostForTarget:Pa,unhideGhostForTarget:Ta,cloneNowHidden:function(){Gt=!0},cloneNowShown:function(){Gt=!1},dispatchSortableEvent:function(l){Ve({sortable:n,name:l,originalEvent:r})}},i))};function Ve(e){Jf(Ct({putSortable:ke,cloneEl:Ce,targetEl:I,rootEl:Se,oldIndex:En,oldDraggableIndex:to,newIndex:nt,newDraggableIndex:Yt},e))}var I,Te,Z,Se,dn,Ho,Ce,Gt,En,nt,to,Yt,Ao,ke,Cn=!1,tr=!1,nr=[],cn,dt,Wr,Ur,Ls,js,Un,wn,no,oo=!1,$o=!1,Vo,Ne,Kr=[],pi=!1,or=[],yr=typeof document<"u",Oo=ha,Hs=_o||Nt?"cssFloat":"float",Qf=yr&&!ga&&!ha&&"draggable"in document.createElement("div"),Sa=function(){if(yr){if(Nt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Ca=function(t,n){var o=Y(t),r=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=Bn(t,0,n),s=Bn(t,1,n),l=i&&Y(i),a=s&&Y(s),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+$e(i).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+$e(s).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return s&&(a.clear==="both"||a.clear===d)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=r&&o[Hs]==="none"||s&&o[Hs]==="none"&&u+c>r)?"vertical":"horizontal"},ed=function(t,n,o){var r=o?t.left:t.top,i=o?t.right:t.bottom,s=o?t.width:t.height,l=o?n.left:n.top,a=o?n.right:n.bottom,u=o?n.width:n.height;return r===l||i===a||r+s/2===l+u/2},td=function(t,n){var o;return nr.some(function(r){var i=r[qe].options.emptyInsertThreshold;if(!(!i||Li(r))){var s=$e(r),l=t>=s.left-i&&t<=s.right+i,a=n>=s.top-i&&n<=s.bottom+i;if(l&&a)return o=r}}),o},Ea=function(t){function n(i,s){return function(l,a,u,c){var d=l.options.group.name&&a.options.group.name&&l.options.group.name===a.options.group.name;if(i==null&&(s||d))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return n(i(l,a,u,c),s)(l,a,u,c);var p=(s?l:a).options.group.name;return i===!0||typeof i=="string"&&i===p||i.join&&i.indexOf(p)>-1}}var o={},r=t.group;(!r||jo(r)!="object")&&(r={name:r}),o.name=r.name,o.checkPull=n(r.pull,!0),o.checkPut=n(r.put),o.revertClone=r.revertClone,t.group=o},Pa=function(){!Sa&&Z&&Y(Z,"display","none")},Ta=function(){!Sa&&Z&&Y(Z,"display","")};yr&&!ga&&document.addEventListener("click",function(e){if(tr)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),tr=!1,!1},!0);var un=function(t){if(I){t=t.touches?t.touches[0]:t;var n=td(t.clientX,t.clientY);if(n){var o={};for(var r in t)t.hasOwnProperty(r)&&(o[r]=t[r]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[qe]._onDragOver(o)}}},nd=function(t){I&&I.parentNode[qe]._isOutsideThisEl(t.target)};function X(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=kt({},t),e[qe]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ca(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:X.supportPointer!==!1&&"PointerEvent"in window&&!Qn,emptyInsertThreshold:5};yo.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);Ea(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:Qf,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?he(e,"pointerdown",this._onTapStart):(he(e,"mousedown",this._onTapStart),he(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(he(e,"dragover",this),he(e,"dragenter",this)),nr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),kt(this,Xf())}X.prototype={constructor:X,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(wn=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,I):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,o=this.el,r=this.options,i=r.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,a=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,c=r.filter;if(ud(o),!I&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Qn&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=pt(a,r.draggable,o,!1),!(a&&a.animated)&&Ho!==a)){if(En=ct(a),to=ct(a,r.draggable),typeof c=="function"){if(c.call(this,t,a,this)){Ve({sortable:n,rootEl:u,name:"filter",targetEl:a,toEl:o,fromEl:o}),Xe("filter",n,{evt:t}),i&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=pt(u,d.trim(),o,!1),d)return Ve({sortable:n,rootEl:d,name:"filter",targetEl:a,fromEl:o,toEl:o}),Xe("filter",n,{evt:t}),!0}),c)){i&&t.cancelable&&t.preventDefault();return}r.handle&&!pt(u,r.handle,o,!1)||this._prepareDragStart(t,l,a)}}},_prepareDragStart:function(t,n,o){var r=this,i=r.el,s=r.options,l=i.ownerDocument,a;if(o&&!I&&o.parentNode===i){var u=$e(o);if(Se=i,I=o,Te=I.parentNode,dn=I.nextSibling,Ho=o,Ao=s.group,X.dragged=I,cn={target:I,clientX:(n||t).clientX,clientY:(n||t).clientY},Ls=cn.clientX-u.left,js=cn.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,I.style["will-change"]="all",a=function(){if(Xe("delayEnded",r,{evt:t}),X.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!ks&&r.nativeDraggable&&(I.draggable=!0),r._triggerDragStart(t,n),Ve({sortable:r,name:"choose",originalEvent:t}),tt(I,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){ba(I,c.trim(),zr)}),he(l,"dragover",un),he(l,"mousemove",un),he(l,"touchmove",un),he(l,"mouseup",r._onDrop),he(l,"touchend",r._onDrop),he(l,"touchcancel",r._onDrop),ks&&this.nativeDraggable&&(this.options.touchStartThreshold=4,I.draggable=!0),Xe("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(_o||Nt))){if(X.eventCanceled){this._onDrop();return}he(l,"mouseup",r._disableDelayedDrag),he(l,"touchend",r._disableDelayedDrag),he(l,"touchcancel",r._disableDelayedDrag),he(l,"mousemove",r._delayedDragTouchMoveHandler),he(l,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&he(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(a,s.delay)}else a()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){I&&zr(I),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;fe(t,"mouseup",this._disableDelayedDrag),fe(t,"touchend",this._disableDelayedDrag),fe(t,"touchcancel",this._disableDelayedDrag),fe(t,"mousemove",this._delayedDragTouchMoveHandler),fe(t,"touchmove",this._delayedDragTouchMoveHandler),fe(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?he(document,"pointermove",this._onTouchMove):n?he(document,"touchmove",this._onTouchMove):he(document,"mousemove",this._onTouchMove):(he(I,"dragend",this),he(Se,"dragstart",this._onDragStart));try{document.selection?Wo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Cn=!1,Se&&I){Xe("dragStarted",this,{evt:n}),this.nativeDraggable&&he(document,"dragover",nd);var o=this.options;!t&&tt(I,o.dragClass,!1),tt(I,o.ghostClass,!0),X.active=this,t&&this._appendGhost(),Ve({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Pa();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY),t!==n);)n=t;if(I.parentNode[qe]._isOutsideThisEl(t),n)do{if(n[qe]){var o=void 0;if(o=n[qe]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=va(n));Ta()}},_onTouchMove:function(t){if(cn){var n=this.options,o=n.fallbackTolerance,r=n.fallbackOffset,i=t.touches?t.touches[0]:t,s=Z&&$n(Z,!0),l=Z&&s&&s.a,a=Z&&s&&s.d,u=Oo&&Ne&&Rs(Ne),c=(i.clientX-cn.clientX+r.x)/(l||1)+(u?u[0]-Kr[0]:0)/(l||1),d=(i.clientY-cn.clientY+r.y)/(a||1)+(u?u[1]-Kr[1]:0)/(a||1);if(!X.active&&!Cn){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(Ve({rootEl:Te,name:"add",toEl:Te,fromEl:Se,originalEvent:t}),Ve({sortable:this,name:"remove",toEl:Te,originalEvent:t}),Ve({rootEl:Te,name:"sort",toEl:Te,fromEl:Se,originalEvent:t}),Ve({sortable:this,name:"sort",toEl:Te,originalEvent:t})),ke&&ke.save()):nt!==En&&nt>=0&&(Ve({sortable:this,name:"update",toEl:Te,originalEvent:t}),Ve({sortable:this,name:"sort",toEl:Te,originalEvent:t})),X.active&&((nt==null||nt===-1)&&(nt=En,Yt=to),Ve({sortable:this,name:"end",toEl:Te,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Xe("nulling",this),Se=I=Te=Z=dn=Ce=Ho=Gt=cn=dt=Un=nt=Yt=En=to=wn=no=ke=Ao=X.dragged=X.ghost=X.clone=X.active=null,or.forEach(function(t){t.checked=!0}),or.length=Wr=Ur=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":I&&(this._onDragOver(t),od(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,o=this.el.children,r=0,i=o.length,s=this.options;rr.right+i||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>r.bottom+i||e.clientX>o.right&&e.clientY>o.top}function ld(e,t,n,o,r,i,s,l){var a=o?e.clientY:e.clientX,u=o?n.height:n.width,c=o?n.top:n.left,d=o?n.bottom:n.right,p=!1;if(!s){if(l&&Voc+u*i/2:ad-Vo)return-no}else if(a>c+u*(1-r)/2&&ad-u*i/2)?a>c+u/2?1:-1:0}function ad(e){return ct(I)typeof o.itemKey=="string"?c=>c[o.itemKey]:o.itemKey);return t({containerRef:l,sortable:a,isDragging:s}),Ke(l,c=>{c&&(a.value=new X(c,{...o.options,onChoose:d=>r("choose",d),onUnchoose:d=>r("unchoose",d),onStart:d=>{s.value=!0,r("start",d)},onEnd:d=>{setTimeout(()=>{s.value=!1,r("end",d)})},onAdd:d=>r("add",d),onUpdate:d=>r("update",d),onSort:d=>r("sort",d),onRemove:d=>r("remove",d),onFilter:d=>r("filter",d),onMove:(d,p)=>"onMoveCapture"in i?i.onMoveCapture(d,p):r("move",d,p),onClone:d=>r("clone",d),onChange:d=>r("change",d)}))}),Ke(()=>o.options,c=>{if(c&&(a!=null&&a.value))for(const d in c)a.value.option(d,c[d])}),Mi(()=>{a.value&&(a.value.destroy(),l.value=null,a.value=null)}),(c,d)=>(F(),rt(Uc(c.$props.tag),{ref_key:"containerRef",ref:l,class:te(c.$props.class)},{default:it(()=>[Fo(c.$slots,"header"),(F(!0),q(we,null,qt(e.list,(p,_)=>Fo(c.$slots,"item",{key:u.value(p),element:p,index:_})),128)),Fo(c.$slots,"footer")]),_:3},8,["class"]))}});var Aa=je({__name:"BoxList",props:{boxes:Array,parent:Object,level:{type:Number,default:1}},emits:["sort","addBox","duplicateBox","clickBox","deleteBox"],setup(e,{emit:t}){const n=t,o=st(),r=e,i=ue(()=>r.parent&&o.partials.hasOwnProperty(r.parent.partial)?o.partials[r.parent.partial]:{children:[],name:"unknown"}),s=ue(()=>({handle:".drag-handle",group:{name:"boxes",put:function(a,u,c,d){var _;return!r.parent||i.value.children===!0?!0:Array.isArray(i.value.children)?(((_=c.dataset.contexts)==null?void 0:_.split(","))??[]).some(x=>i.value.children.includes(x)):!1}},animation:150}));function l(a){let u=Lo.After,c=a.item.previousElementSibling;c||(u=Lo.Before,c=a.item.nextElementSibling),c||(u=Lo.Below,c=a.item.parentElement.closest(".page-list-node")),c&&n("sort",{box:a.item.dataset.id,relativeTo:c.dataset.id,position:u})}return(a,u)=>(F(),rt(A(Da),{tag:"ul",class:"space-y-2","item-key":c=>c.id,list:e.boxes,options:s.value,"data-parent":e.parent?e.parent.id:null,onEnd:l},{item:it(({element:c,index:d})=>[(F(),rt(jf,{key:c.id,onClickBox:u[0]||(u[0]=p=>a.$emit("clickBox",p)),onDuplicateBox:u[1]||(u[1]=p=>a.$emit("duplicateBox",p)),onDeleteBox:u[2]||(u[2]=p=>a.$emit("deleteBox",p)),onAddBox:u[3]||(u[3]=p=>a.$emit("addBox",p)),onSort:u[4]||(u[4]=p=>a.$emit("sort",p)),level:e.level,box:c},null,8,["level","box"]))]),footer:it(()=>[e.level===1?(F(),rt(pa,{key:0,class:"js-add-item",onAddBox:u[5]||(u[5]=c=>a.$emit("addBox",c))})):Ee("",!0)]),_:1},8,["item-key","list","options","data-parent"]))}});const dd=["data-id"],pd=["data-tooltip-text"],hd={class:"mr-3 w-3 flex flex-grow-0 flex-shrink-0 justify-center items-center drag-handle cursor-move"},gd={key:0,class:"icon-file-o"},md={key:1,class:"icon-eye-slash"},vd={class:"flex-1 min-w-0"},bd=["title"],xd={class:"space-x-2 flex flex-grow-0 justify-end min-w-[120px] pl-2"},_d=["title"],yd=["title"],wd=["title"],Sd=["title"],Cd={key:0,class:"p-2 -mt-2",style:{"margin-left":"26px"}};var Ed=je({__name:"PageListItem",props:{page:Object,parent:Object,isActive:Boolean,isFocused:Boolean,level:Number},emits:["clickPage","duplicatePage","copyPageToSite","deletePage"],setup(e,{emit:t}){const n=st(),o=e,r=ue(()=>o.page.children.length?i.value?"icon-angle-down":"icon-angle-right":"");window.__OC_BOXES_STATE__.baseUrl;const i=re(o.page?s(o.page):!1);function s(l){return l.children.some(a=>a.id===n.currentPageId||s(a))}return(l,a)=>{var u;return F(),q("li",{class:"-mx-2","data-id":e.page.id},[m("div",{class:te(["group flex items-center hover:bg-oc-tab-active rounded",{"bg-primary text-white":e.isActive,"page-list-item--focused bg-yellow-100 ring-2 ring-yellow-300 ":e.isFocused,"ring-primary":e.isFocused&&e.isActive,"opacity-75":!e.isFocused&&!e.isActive&&e.page.is_hidden,"-ml-1":e.level>1}])},[m("a",{href:"#",class:"flex-grow-0 flex-shrink-0 w-6 p-2",onClick:a[0]||(a[0]=ce(c=>i.value=!i.value,["stop","prevent"]))},[m("i",{class:te(["ml-1",r.value])},null,2)]),m("div",{class:"flex flex-1 p-2 min-w-0 cursor-pointer relative",onClick:a[5]||(a[5]=ce(c=>l.$emit("clickPage",{id:e.page.id,parent_id:e.parent?e.parent.id:null}),["stop","prevent"]))},[(u=e.page)!=null&&u.has_pending_changes&&A(n).hasFeature("revisions")?(F(),q("div",{key:0,class:"absolute right-0 top-[.95rem] w-5","data-tooltip-text":A(U)("unpublished_changes")},[m("div",{class:te([{"bg-primary":!e.isActive,"bg-white":e.isActive},"absolute left-0 top-0 w-[.5rem] h-[.5rem] rounded-full delay-[4s] animate-ping"])},null,2),m("div",{class:te([{"bg-primary":!e.isActive,"bg-white":e.isActive},"absolute left-0 top-0 z-10 w-[.5rem] h-[.5rem] rounded-full"])},null,2)],8,pd)):Ee("",!0),m("div",hd,[e.page.is_hidden?(F(),q("i",md)):(F(),q("i",gd))]),m("div",vd,[m("div",{class:"truncate",title:e.page.name},j(e.page.name),9,bd)]),m("span",xd,[A(n).hasFeature("multisite")&&A(n).sites.length>1?(F(),q("button",{key:0,class:"hidden group-hover:!block group-hover:!visible pr-2",title:A(U)("copy_to_site"),onClick:a[1]||(a[1]=ce(c=>l.$emit("copyPageToSite",{id:e.page.id}),["stop","prevent"]))},a[10]||(a[10]=[m("i",{class:"icon-language-letters"},null,-1)]),8,_d)):Ee("",!0),m("button",{class:"hidden group-hover:!block group-hover:!visible pr-2",title:A(U)("duplicate"),onClick:a[2]||(a[2]=ce(c=>l.$emit("duplicatePage",{id:e.page.id}),["stop","prevent"]))},a[11]||(a[11]=[m("i",{class:"icon-copy"},null,-1)]),8,yd),m("button",{class:"hidden group-hover:!block group-hover:!visible pr-2",title:A(U)("delete"),onClick:a[3]||(a[3]=ce(c=>l.$emit("deletePage",{id:e.page.id}),["stop","prevent"]))},a[12]||(a[12]=[m("i",{class:"icon-trash"},null,-1)]),8,wd),m("button",{class:"hidden group-hover:!block group-hover:!visible pr-2",title:A(U)("create_subpage"),onClick:a[4]||(a[4]=ce(c=>l.$emit("clickPage",{id:null,parent_id:e.page.id}),["stop","prevent"]))},a[13]||(a[13]=[m("i",{class:"icon-plus"},null,-1)]),8,Sd)])])],2),e.page.children.length&&i.value?(F(),q("div",Cd,[pe($a,{onClickPage:a[6]||(a[6]=c=>l.$emit("clickPage",c)),onDuplicatePage:a[7]||(a[7]=c=>l.$emit("duplicatePage",c)),onCopyPageToSite:a[8]||(a[8]=c=>l.$emit("copyPageToSite",c)),onDeletePage:a[9]||(a[9]=c=>l.$emit("deletePage",c)),pages:e.page.children,parent:e.page,level:o.level+1},null,8,["pages","parent","level"])])):Ee("",!0)],8,dd)}}});const Pd=kn(Ed,[["__scopeId","data-v-7bc6a942"]]),Td={class:"flex items-center -mx-2"};var Id=je({__name:"PageList",props:{pages:{type:Array,default:()=>[]},parent:Object,level:{type:Number,default:1},focus:{type:Number,default:-1}},emits:["clickPage","duplicatePage","copyPageToSite","deletePage"],setup(e,{emit:t}){const n={group:"pages",animation:150},o=st(),r=ue(()=>o.currentPageId);function i(s){let l="after",a=s.item.previousElementSibling;a||(l="before",a=s.item.nextElementSibling),window.oc.ajax("onSortPages",{data:{page:s.item.dataset.id,relativeTo:a.dataset.id,position:l}})}return(s,l)=>(F(),rt(A(Da),{list:e.pages,options:n,onEnd:i,class:"text-sm",tag:"ul","item-key":"id"},{item:it(({element:a,index:u})=>[pe(Pd,{onClickPage:l[0]||(l[0]=c=>s.$emit("clickPage",c)),onDuplicatePage:l[1]||(l[1]=c=>s.$emit("duplicatePage",c)),onCopyPageToSite:l[2]||(l[2]=c=>s.$emit("copyPageToSite",c)),onDeletePage:l[3]||(l[3]=c=>s.$emit("deletePage",c)),"is-focused":u===e.focus,level:e.level,page:a,parent:e.parent,"is-active":r.value===a.id},null,8,["is-focused","level","page","parent","is-active"])]),footer:it(()=>[m("li",Td,[m("a",{href:"#",class:te(["flex w-full items-center hover:bg-oc-tab-active rounded p-2",{"-ml-1":e.level>1}]),onClick:l[4]||(l[4]=ce(a=>s.$emit("clickPage",{id:null,parent_id:e.parent?e.parent.id:null}),["stop","prevent"]))},[l[5]||(l[5]=m("div",{class:"ml-6 w-5 mr-1"},[m("i",{class:"icon-plus -ml-px"})],-1)),m("div",null,j(A(U)("create_page")),1)],2)])]),_:1},8,["list"]))}});const $a=kn(Id,[["__scopeId","data-v-70ccd15f"]]),Dd={inheritAttrs:!1};var Ad=je({...Dd,__name:"Modal",props:{visible:Boolean,width:Number},emits:["close"],setup(e,{emit:t}){const n=t,o=e,r=ue(()=>{const s={};return o.width&&(s["max-width"]=`${o.width}px`),s});function i(s){s.target.classList.contains("popup-overlay")&&n("close",s)}return(s,l)=>(F(),rt(Ac,{to:"body"},[pe(ui,{name:"popup"},{default:it(()=>[o.visible?(F(),q("div",li({key:0,class:"popup-overlay px-4 fixed inset-0 z-40 overflow-y-auto flex items-center justify-center w-full"},s.$attrs,{onClick:i}),[m("div",{class:"popup-body-host mx-auto w-full",style:go(r.value)},[m("div",li(s.$attrs,{class:"popup-body flex bg-oc-body text-oc-body-inverse rounded-md shadow-xl transition-all sm:w-full",role:"dialog","aria-modal":"true","aria-labelledby":"modal-headline",style:r.value}),[Fo(s.$slots,"default",{},void 0,!0)],16)],4)],16)):Ee("",!0)]),_:3})]))}});const wr=kn(Ad,[["__scopeId","data-v-ecfd056e"]]),$d={class:"flex flex-col user-select-none w-full"},Od={class:"px-4 flex-0 flex items-center justify-between"},Bd={class:"texts-oc-body-inverse font-bold text-lg py-4"},Md={class:"flex items-center"},kd={for:"per_col",class:"mr-4 text-xs text-gray-500"},Fd={class:"relative text-xs"},Nd=["value"],Rd={key:0,class:"px-4 flex-0 bg-gray-100 search-box border-b border-t border-gray-200"},Ld=["placeholder"],jd={class:"flex-1 overflow-hidden border-b border-gray-200 grid grid-cols-2 grid-cols-[230px_1fr]"},Hd={class:"border-r border-gray-200 overflow-y-auto scrollbar-thin"},Vd={class:"mx-2 my-3 space-y-0.5"},Wd=["href","onClick"],Ud=["id"],Kd=["onClick","onDblclick"],zd={class:"object-contain px-2 mt-3 text-gray-400"},Yd=["src","alt"],Xd={class:"py-3 px-3 text-oc-body-inverse text-xs text-center"},Gd={key:1,class:"p-8 py-20 text-sm text-center text-gray-400"},qd={class:"flex-0 p-4 flex justify-end space-x-4"},Jd=["disabled"],Ws="offline.boxes.partialSelectionModal.cols";var Zd=je({__name:"PartialSelectionModal",props:{visible:Boolean},emits:["close","submit"],setup(e,{emit:t}){const n=st(),o=t,r=re(""),i=re(""),s=re(null),l=re(localStorage.getItem(Ws)??n.settings.partial_selector_default_cols),a=ue(()=>c.value?c.value.length:0),u=ue(()=>n.partialContexts),c=ue(()=>Object.values(n.partials).filter(O=>O.contexts.some(B=>u.value.includes(B)))),d=ue(()=>Object.keys(x.value));Ke(()=>l.value,O=>{localStorage.setItem(Ws,O.toString())});function p(){r.value="",n.resetPartialContexts(),o("close")}function _(){o("submit",r.value),p()}const x=ue(()=>{const O={};return c.value.forEach(B=>{O.hasOwnProperty(B.section)||(O[B.section]=[]),(!i.value||w(B))&&O[B.section].push(B)}),O});function w(O){const B=i.value.toLowerCase();return O.handle.toLowerCase().includes(B)||O.section.toLowerCase().includes(B)||O.name.toLowerCase().includes(B)}function G(O){return O.toLowerCase().replace(/ /g,"-")}function H(O){if(!s.value)return;const B=s.value.querySelector(O);B==null||B.scrollIntoView({behavior:"smooth"})}return(O,B)=>(F(),rt(wr,{class:"oc-boxes-partial-selection-modal",visible:e.visible,onClose:p,width:1100},{default:it(()=>[m("div",$d,[m("div",Od,[m("h2",Bd,j(A(U)("select_box")),1),m("div",Md,[m("label",kd,j(A(U)("display_per_column")),1),m("div",Fd,[Mt(m("select",{"onUpdate:modelValue":B[0]||(B[0]=E=>l.value=E),id:"per_col",class:"h-6 appearance-none bg-transparent rounded border shadow-sm pl-2 pr-6"},[(F(),q(we,null,qt([1,2,3,4,5],E=>m("option",{key:E,value:E},j(E),9,Nd)),64))],512),[[la,l.value]]),B[2]||(B[2]=m("div",{class:"absolute right-0 top-1.5 -mt-px mr-2"},[m("i",{class:"icon-angle-down"})],-1))])])]),a.value>0?(F(),q("div",Rd,[Mt(m("input",{placeholder:A(U)("search_box"),class:"py-3 w-full focus:outline-none bg-transparent",type:"search","onUpdate:modelValue":B[1]||(B[1]=E=>i.value=E)},null,8,Ld),[[sa,i.value]])])):Ee("",!0),m("div",jd,[m("div",Hd,[m("ul",Vd,[(F(!0),q(we,null,qt(d.value,E=>(F(),q("li",{key:E},[m("a",{href:"#section-"+E,class:"block hover:bg-gray-100 text-gray-700 rounded px-3 py-2 hover:no-underline",onClick:ce(k=>H("#section-"+G(E)),["prevent"])},j(E),9,Wd)]))),128))])]),a.value?(F(),q("div",{key:0,class:"flex-1 p-4 overflow-y-auto scollbar-thin space-y-12 min-h-[220px]",ref_key:"partialsContainer",ref:s},[(F(!0),q(we,null,qt(x.value,(E,k)=>(F(),q("div",{key:k},[E.length?(F(),q(we,{key:0},[m("h3",{id:"section-"+G(k),class:"uppercase scroll-mt-4 font-bold text-primary text-md"},j(A(U)(k)),9,Ud),m("ul",{class:te(["mt-4 grid gap-6",`grid-cols-${l.value}`])},[(F(!0),q(we,null,qt(E,K=>(F(),q("li",{key:K.handle},[m("a",{href:"#",onClick:ce(oe=>r.value=K.handle,["prevent"]),onDblclick:ce(oe=>r.value=K.handle&&_(),["prevent"]),class:te(["block shadow-sm border rounded hover:text-inherit hover:no-underline",{"border-primary shadow-md":r.value===K.handle}])},[m("div",zd,[m("img",{class:"partial-icon mx-auto w-full h-full",src:K.icon,alt:K.name},null,8,Yd)]),m("div",Xd,j(K.name),1)],42,Kd)]))),128))],2)],64)):Ee("",!0)]))),128))],512)):(F(),q("div",Gd,j(A(U)("no_partials_available")),1))]),m("div",qd,[m("button",{class:"btn btn-link !text-gray-500",onClick:p},j(A(U)("cancel")),1),m("button",{class:"btn btn-primary",onClick:_,disabled:!r.value},j(A(U)("add_box")),9,Jd)])])]),_:1},8,["visible"]))}});const Qd={key:0,class:"flex flex-grow-0 bg-oc-tab-inactive"},ep={class:"flex-1 text-xs"},tp={class:"text-center mt-1"},np={class:"flex-1 text-xs"},op={class:"text-center mt-1"},rp={class:"text-xs text-center my-4 text-gray-400"},ip={class:"text-xs text-center my-4 text-gray-400"};var sp=je({__name:"RightColumn",props:{loading:Boolean},setup(e){const t=st(),n=ue(()=>t.activeRightColumnTab);return(o,r)=>(F(),q(we,null,[A(t).isFullMode?(F(),q("ul",Qd,[m("li",ep,[m("a",{href:"#",onClick:r[0]||(r[0]=ce(i=>A(t).activeRightColumnTab=A(hn).Page,["prevent"])),class:te(["left-tab w-full border-r border-r-gray-300 border-t-2 border-t-transparent border-b border-b-gray-300 flex flex-col align-center justify-center p-2 hover:no-underline hover:text-inherit",{"left-tab--active !bg-oc-body !border-t-primary !border-b-transparent":n.value===A(hn).Page}])},[r[2]||(r[2]=m("span",{class:"text-lg text-center"},[m("i",{class:"icon-file-o"})],-1)),m("span",tp,j(A(U)("page")),1)],2)]),m("li",np,[m("a",{href:"#",onClick:r[1]||(r[1]=ce(i=>A(t).activeRightColumnTab=A(hn).Box,["prevent"])),class:te(["right-tab w-full border-t-2 border-t-transparent border-b border-b-gray-300 flex flex-col align-center justify-center p-2 hover:no-underline hover:text-inherit",{"right-tab--active !bg-oc-body border-l-gray-300 !border-t-primary !border-b-transparent":n.value===A(hn).Box}])},[r[3]||(r[3]=m("span",{class:"text-lg text-center"},[m("i",{class:"icon-cube"})],-1)),m("span",op,j(A(U)("box")),1)],2)])])):Ee("",!0),Mt(m("div",{class:te([{"opacity-50 pointer-events-none":e.loading},"p-4 !pb-24 flex-grow-1 overflow-y-auto oc-boxes-editor__form-container"]),id:"boxes-page-form-container"},[m("div",rp,j(A(U)("page_tab_empty_state")),1)],2),[[Qo,n.value==="page"]]),Mt(m("div",{class:te([{"opacity-50 pointer-events-none":e.loading},"p-4 !pb-24 flex-grow-1 overflow-y-auto oc-boxes-editor__form-container"]),id:"boxes-box-form-container"},[m("div",ip,j(A(U)("box_tab_empty_state")),1)],2),[[Qo,n.value==="box"]])],64))}});const lp={class:"flex items-center justify-center h-full w-full"},ap=["src"];var cp=je({__name:"IframeCanvas",setup(e){const t=st(),n=re(null),o=re(!0),r=ue(()=>t.iframeWidth),i=ue(()=>t.zoom),s=ue(()=>t.currentPageId===0?"about:blank":`${t.previewUrl}/${t.currentPageId}`),l=ue(()=>{if(r.value===0)return{width:"100%","min-width":0};const u=i.value/100,c=`${r.value}px`;return{"min-width":c,width:c,"border-style":"solid",transform:`scale(${u})`}});function a(){o.value=!1,n.value.contentWindow.addEventListener("beforeunload",()=>{o.value=!0})}return gr(()=>{t.iframe=n.value}),bo(()=>{t.iframe=null}),(u,c)=>(F(),q("div",lp,[Mt(m("iframe",{ref_key:"iframe",ref:n,class:te(["oc-boxes-iframe iframe w-full h-full bg-white border-x shadow-sm border-gray-300",{"iframe--loading":o.value}]),style:go(l.value),src:s.value,onLoad:a},null,46,ap),[[Qo,A(t).currentPageId>0]])]))}});const up=kn(cp,[["__scopeId","data-v-e4f6c12d"]]),fp={class:"bg-gray-300 group relative z-10"};var Us=je({__name:"Splitter",props:{modelValue:{type:Number,default:350},inverse:{type:Boolean,default:!1},max:{type:Number,required:!0},min:{type:Number,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=re(!1);function i(){r.value=!0,document.documentElement.style.cursor="col-resize",document.documentElement.style.userSelect="none",document.documentElement.classList.add("boxes-editor-resizing"),document.addEventListener("mouseup",s),document.addEventListener("mousemove",l)}function s(){document.documentElement.style.cursor="default",document.documentElement.style.userSelect="initial",document.documentElement.classList.remove("boxes-editor-resizing"),document.removeEventListener("mouseup",s),document.removeEventListener("mousemove",l),r.value=!1}bo(()=>{s()});function l(a){if(a.buttons!==1){s();return}const u=o.inverse?a.movementX*-1:a.movementX;let c=o.modelValue+u;c>o.max?c=Number(o.max):c(F(),q("div",fp,[m("div",{onMousedown:u[0]||(u[0]=c=>i()),class:te(["oc-boxes-resizer absolute -translate-x-1/2 inset-0 w-4 bg-gray-300 bg-opacity-50 cursor-col-resize hidden group-hover:!block group-hover:!visible",{"!block !visible":r.value}])},null,34)]))}});const dp={class:"text-xs truncate w-10 text-right"},pp={key:0,class:"absolute bg-white top-0 mt-8 right-0 rounded shadow border"},hp={class:"text-right text-sm py-2"},gp=["onClick"];var mp=je({__name:"ZoomSelector",props:{canvas:Object},setup(e){const t=st(),n=[100,90,80,75,50,30],o=e,r=re(!1),i=ue(()=>t.zoom);function s(l){r.value=!1,l===0&&o.canvas&&t.iframeWidth>0&&(l=Number(o.canvas.offsetWidth/t.iframeWidth)*100,l=Number(l.toFixed(1))),l>100&&(l=100),t.zoom=l}return(l,a)=>(F(),q(we,null,[m("a",{href:"#",onClick:a[0]||(a[0]=ce(u=>r.value=!0,["prevent"])),class:te(["flex h-8 items-center block border py-1 px-2 rounded text-sm hover:no-underline hover:text-inherit bg-oc-tab hover:bg-oc-tab-active",{"opacity-60 cursor-not-allowed":A(t).iframeWidth===0}])},[a[2]||(a[2]=m("div",{class:"mr-2"},[m("i",{class:"icon-search"})],-1)),m("div",dp,j(i.value)+" % ",1),a[3]||(a[3]=m("div",{class:"ml-2"},[m("i",{class:"icon-angle-down"})],-1))],2),r.value?(F(),q("div",pp,[m("ul",hp,[m("li",null,[m("a",{onClick:a[1]||(a[1]=ce(u=>s(0),["prevent"])),class:"block px-4 py-1.5 hover:bg-gray-100 hover:no-underline hover:text-inherit whitespace-nowrap",href:"#"},j(A(U)("zoom_fit")),1)]),(F(),q(we,null,qt(n,u=>m("li",{key:u},[m("a",{onClick:ce(c=>s(u),["prevent"]),class:"block px-4 py-1.5 hover:bg-gray-100 hover:no-underline hover:text-inherit whitespace-nowrap",href:"#"},j(u)+" % ",9,gp)])),64))])])):Ee("",!0)],64))}}),ve=(e=>(e.ClickBox="boxes.box.click",e.FocusBox="boxes.box.focus",e.AddBox="boxes.box.add",e.AddPlaceholder="boxes.box.add_placeholder",e.AddBoxBefore="boxes.box.add_before",e.MoveUp="boxes.box.move_up",e.MoveDown="boxes.box.move_down",e.DeleteBox="boxes.box.delete",e.DuplicateBox="boxes.box.duplicate",e.HandlerSuccess="boxes.handler.success",e.Refresh="boxes.refresh",e.Changed="boxes.changed",e))(ve||{});const vp={class:"flex flex-col user-select-none w-full"},bp={class:"px-4 flex-0 flex items-center justify-center pt-4 px-4"},xp={class:"text-oc-body-inverse font-bold text-lg"},_p={class:"px-4 pt-4"},yp={class:"text-center max-w-md mx-auto leading-tight text-oc-body-inverse"},wp={class:"flex mt-4 justify-center"},Sp={class:"leading-snug mt-2"},Cp=["data-tooltip-text"],Ep={class:"text-xl font-medium"},Pp={class:"text-gray-500"},Tp={key:0,class:"w-40 flex items-center justify-center"},Ip={class:"flex flex-col items-center justify-center mt-4"},Dp={class:"text-xs mt-1 text-gray-500"},Ap={key:1,class:"flex-grow-0 w-52"},$p={class:"leading-snug mt-2"},Op=["data-tooltip-text"],Bp={class:"text-xl font-medium"},Mp={class:"text-gray-500"},kp={class:"flex-0 p-4 mt-4 flex justify-end space-x-4"},Fp=["disabled"];var Np=je({__name:"PublishConfirmationModal",props:{visible:Boolean,context:{type:Object}},emits:["close"],setup(e,{emit:t}){st();const n=t,o=e,r=re(!1),i=re(null);function s(){n("close")}let l;Ke(()=>o.visible,u=>{u&&(clearTimeout(l),l=setTimeout(()=>{var c;(c=i.value)==null||c.focus()},300))});async function a(){var u,c,d,p;r.value=!0,await window.oc.ajax("onPublish",{flash:!0,data:{id:(c=(u=o.context)==null?void 0:u.new)==null?void 0:c.id,reload_id:(p=(d=o.context)==null?void 0:d.reload)==null?void 0:p.id},complete:_=>{var x;window.document.dispatchEvent(new CustomEvent(ve.HandlerSuccess,{detail:{handler:(x=o.context)==null?void 0:x.reload.handler,response:_}})),s(),r.value=!1}})}return(u,c)=>(F(),rt(wr,{class:"oc-boxes-publish-confirmation-modal",visible:e.visible,onClose:s,width:500},{default:it(()=>[m("div",vp,[m("div",bp,[m("h2",xp,j(A(U)("publish")),1)]),m("div",_p,[m("p",yp,j(A(U)("publish_confirmation")),1),m("div",wp,[m("div",{class:te(["flex-grow-0 w-52",{"text-center":!e.context.current,"text-right":e.context.current}])},[m("div",Sp,[m("div",{class:"text-gray-500","data-tooltip-text":e.context.new.date_time},j(A(U)("current")),9,Cp),m("div",Ep,j(A(U)("draft")),1),m("div",Pp,j(e.context.new.author?e.context.new.author:A(U)("unknown_user")),1)])],2),e.context.current?(F(),q("div",Tp,[m("div",Ip,[c[0]||(c[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-8 h-8"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"})],-1)),m("div",Dp,j(A(U)("replaces")),1)])])):Ee("",!0),e.context.current?(F(),q("div",Ap,[m("div",$p,[m("div",{class:"text-gray-500","data-tooltip-text":e.context.current.date_time},j(e.context.current.date_string),9,Op),m("div",Bp,j(A(U)("version"))+" "+j(e.context.current.version),1),m("div",Mp,j(e.context.current.author?e.context.current.author:A(U)("unknown_user")),1)])])):Ee("",!0)])]),m("div",kp,[m("button",{class:"btn btn-link",onClick:s},j(A(U)("cancel")),1),m("button",{ref_key:"submitBtn",ref:i,class:te(["btn oc-icon-rocket btn-special",{"oc-loading":r.value}]),disabled:r.value,onClick:a},j(A(U)("publish")),11,Fp)])])]),_:1},8,["visible"]))}});const Rp={class:"flex flex-col user-select-none w-full"},Lp={class:"px-4 flex-0 flex items-center justify-center pt-12 px-4"},jp={class:"text-oc-body-inverse font-bold text-lg"},Hp={class:"px-4 pt-2"},Vp={class:"text-center max-w-md mx-auto leading-tight text-oc-body-inverse"},Wp={class:"relative px-4 min-h-[150px] max-h-[300px] max-w-md mt-8 w-full mx-auto"},Up={class:"mt-4 text-oc-body-inverse font-bold text-sm"},Kp=["id","value"],zp=["for"],Yp={key:0,class:"text-sm text-gray-500 ml-2 inline-block"},Xp={class:"ml-3 text-sm text-gray-500"},Gp={class:"flex-0 p-4 mt-4 flex justify-end space-x-4"},qp=["disabled"];var Jp=je({__name:"BatchPublishModal",props:{visible:Boolean},emits:["close"],setup(e,{emit:t}){const n=st(),o=t,r=e,i=re(!1),s=re(null);function l(){i.value||o("close")}let a;function u(p){return new Date(p).toLocaleString()}Ke(()=>r.visible,p=>{p?(clearTimeout(a),a=setTimeout(()=>{var _;(_=s.value)==null||_.focus()},300),c.value=n.unpublishedPages.map(_=>_.id)):c.value=[]});const c=re(n.unpublishedPages.map(p=>p.id));function d(){i.value=!0;const p=new Promise(x=>setTimeout(x,750)),_=new Promise(x=>{window.oc.ajax("onBatchPublish",{data:{ids:c.value},complete:w=>{x(w)}})});Promise.all([p,_]).then(([x,w])=>{i.value=!1,w.state&&(n.replace(w.state),n.currentPageId=0),l()})}return(p,_)=>(F(),rt(wr,{class:"oc-boxes-batch-publishing-modal",visible:e.visible,onClose:l,width:500},{default:it(()=>[m("div",Rp,[m("div",Lp,[m("h2",jp,j(A(U)("publish")),1)]),m("div",Hp,[m("p",Vp,j(A(U)("batch_publishing_intro")),1)]),m("div",Wp,[m("div",{class:te(["absolute loading-screen inset-0 z-10 backdrop-filter backdrop-blur-sm flex items-center justify-center flex flex-col items-center",{"opacity-100":i.value,"opacity-0 pointer-events-none":!i.value}])},[_[1]||(_[1]=m("i",{class:"oc-icon-rocket text-7xl animate-bounce text-primary"},null,-1)),m("div",Up,j(A(U)("publishing")),1)],2),m("div",{class:te(["relative px-4 overflow-y-auto h-full w-full mx-auto space-y-4",{"overflow-y-hidden":i.value}])},[(F(!0),q(we,null,qt(A(n).unpublishedPages,x=>(F(),q("div",{class:"checkbox custom-checkbox boxes-checkbox",tabindex:"0",key:x.id},[Mt(m("input",{id:`page-${x.id}`,value:x.id,"onUpdate:modelValue":_[0]||(_[0]=w=>c.value=w),type:"checkbox",checked:""},null,8,Kp),[[uf,c.value]]),m("label",{for:`page-${x.id}`,class:"storm-icon-pseudo"},[uo(j(x.name)+" ",1),x.url?(F(),q("span",Yp,j(x.url),1)):Ee("",!0)],8,zp),m("p",Xp,j(A(U)("updated_at"))+": "+j(u(x.updated_at)),1)]))),128))],2)]),m("div",Gp,[m("button",{class:"btn btn-link",onClick:l},j(A(U)("cancel")),1),m("button",{ref_key:"submitBtn",ref:s,class:te(["btn oc-icon-rocket btn-special",{"oc-loading":i.value}]),disabled:i.value,onClick:d},j(A(U)("publish")),11,qp)])])]),_:1},8,["visible"]))}});const Zp=kn(Jp,[["__scopeId","data-v-c61f3bf7"]]),Qp={class:"flex flex-col user-select-none w-full"},eh={class:"px-4 flex-0 flex items-center justify-center pt-12 px-4"},th={class:"text-oc-body-inverse font-bold text-lg"},nh={class:"px-4 pt-2"},oh={class:"text-center max-w-md mx-auto leading-tight text-oc-body-inverse"},rh={class:"mt-4"},ih={class:"form-group span-full"},sh={value:"",style:{display:"none"}},lh=["value"],ah={class:"flex-0 p-4 mt-4 flex justify-end space-x-4"},ch=["disabled"];var uh=je({__name:"SiteSelectorModal",props:{visible:Boolean,context:String},emits:["close"],setup(e,{emit:t}){const n=st(),o=t,r=e,i=re(!1),s=ue(()=>n.sites.filter(c=>c.id!==n.site.id)),l=re("");function a(){i.value||o("close")}async function u(){i.value=!0;const c=await window.oc.ajax("onCopyPageToSite",{flash:!0,data:{page_id:r.context,site_id:l.value}});c.redirect&&(window.location.href=c.redirect),i.value=!1,a()}return(c,d)=>(F(),rt(wr,{class:"oc-boxes-site-selector-modal",visible:e.visible,onClose:a,width:500},{default:it(()=>[m("div",Qp,[m("div",eh,[m("h2",th,j(A(U)("copy_to_site")),1)]),m("div",nh,[m("p",oh,j(A(U)("copy_to_site_text")),1),m("div",rh,[m("div",ih,[m("label",null,j(A(U)("site")),1),Mt(m("select",{"onUpdate:modelValue":d[0]||(d[0]=p=>l.value=p),class:"form-control custom-select"},[m("option",sh,"-- "+j(A(U)("please_select")),1),(F(!0),q(we,null,qt(s.value,p=>(F(),q("option",{key:p.id,value:p.id},[uo(j(p.name)+" "+j(p.id)+" ",1),p.locale?(F(),q(we,{key:0},[uo(" ("+j(p.locale)+") ",1)],64)):Ee("",!0)],8,lh))),128))],512),[[la,l.value]])])])]),m("div",ah,[m("button",{class:"btn btn-link",onClick:a},j(A(U)("cancel")),1),m("button",{class:te(["btn oc-icon-copy btn-special",{"oc-loading":i.value}]),disabled:i.value||!l.value||!e.context,onClick:u},j(A(U)("copy_verb")),11,ch)])])]),_:1},8,["visible"]))}});const fh={key:0,class:"absolute flex left-1/2 -translate-x-1/2 bg-orange-600 bg-opacity-90 rounded p-2 !pr-4 text-sm shadow text-white z-10 top-0 mt-16"},dh={class:"oc-boxes-editor__toolbar bg-oc-body border-b flex items-center justify-between relative z-10"},ph={class:"w-1/3 flex-grow-0 flex items-center space-x-4"},hh={class:"w-1/3 flex justify-center items-center space-x-4"},gh={class:"flex divide-x text-sm"},mh={key:0},vh={class:"flex divide-x text-sm"},bh={class:"flex items-center relative"},xh={key:0},_h={class:"w-1/3 flex justify-end space-x-2"},yh=["data-tooltip-text"],wh={key:0,class:"border-b"},Sh={class:"flex items-center justify-between px-4 pt-4 mb-2"},Ch={class:"uppercase font-semibold text-xs"},Eh={class:"px-3 mb-2"},Ph=["placeholder","onKeydown"],Th={class:"h-[300px] overflow-y-auto overflow-x-hidden p-4 pt-0"},Ih={key:1,class:"overflow-x-hidden"};var Dh=je({__name:"Editor",setup(e){const t=An("instanceId"),n=st();typeof t=="string"&&n.init(t);const o=re(!1),r=re(!1),i=re(null),s=re(null),l=re(null),a=re(n.mode==="full"),u=re(!0),c=re(!0),d=re(350),p=re(350),_=re(!1),x=re(null),w=re(!1),G=re(""),H=re(null),O=re(-1);Ke(()=>d.value,g=>{var f,b;(b=(f=s.value)==null?void 0:f.style)==null||b.setProperty("--sidebar-left-width",`${g}px`),localStorage.setItem("oc-boxes-left-sidebar-width",g.toString())}),Ke(()=>p.value,g=>{var f,b;(b=(f=s.value)==null?void 0:f.style)==null||b.setProperty("--sidebar-right-width",`${g}px`),localStorage.setItem("oc-boxes-right-sidebar-width",g.toString())}),Ke(()=>c.value,g=>{localStorage.setItem("oc-boxes-right-sidebar-pinned",g?"1":"0")});const B=ue(()=>n.pages),E=ue(()=>n.boxes),k=ue(()=>n.iframe);ue(()=>n.zoom);const K=ue(()=>{if(!G.value)return B.value;const g=(f,b="")=>{const y=[];for(const P of f){const D=b?`${b} > ${P.name}`:P.name;if(P.children.length>0){const T=g(P.children,D);y.push(...T)}y.push({...P,children:[],name:D})}return y};return g([...B.value]).filter(f=>f.name.toLowerCase().includes(G.value.toLowerCase()))});Ke(()=>G.value,()=>{O.value=-1});function oe(){O.value0&&O.value--}function S(){let g=O.value;g<0&&(g=0);const f=K.value[g]??null;f&&(Lt({id:f.id}),Et(!1))}function R(){setTimeout(()=>Et(!1),150)}const W=ue(()=>{const g=f=>{for(const b of f){if(n.currentPageId===b.id)return b;if(b.children.length>0){const y=g(b.children);if(y)return y}}return null};return g(n.pages)}),$=document.querySelectorAll("[data-siteswitcher-link]");$==null||$.forEach(g=>{const f=g.getAttribute("href");f.includes("site_switch=true")||g.setAttribute("href",`${f}&site_switch=true`)}),Ke([()=>n.currentPageId,()=>n.currentBoxId],([g,f])=>{if(!g||n.isSingleMode)return;const b=new URLSearchParams;b.append("boxes_page",g),f&&b.append("boxes_box",f),history.replaceState(null,"",`?${b.toString()}`),$==null||$.forEach(y=>{const P=y.getAttribute("href");P.includes("boxes_page=")?y.setAttribute("href",P.replace(/boxes_page=\d+/,`boxes_page=${g}`)):y.setAttribute("href",`${P}&boxes_page=${g}`)})},{immediate:!0});const ne=[ve.AddBox,ve.AddBoxBefore,ve.FocusBox,ve.ClickBox,ve.DeleteBox,ve.MoveUp,ve.MoveDown,ve.DuplicateBox,ve.HandlerSuccess];function le(g){var f;k.value===null||((f=k.value)==null?void 0:f.contentDocument)===null||k.value.contentDocument.dispatchEvent(g)}function De(g){var b;n.iframeWidth=g;let f=100;l.value&&n.iframeWidth>0&&(f=Number(((b=l.value)==null?void 0:b.offsetWidth)/n.iframeWidth)*100,f=Number(f.toFixed(1)),f=Math.min(f,100)),n.zoom=f}function ie(){var g,f;k.value&&((f=(g=k.value)==null?void 0:g.contentDocument)==null||f.location.reload())}function ee(){W.value&&W.value.url&&window.open(`${n.baseUrl}${W.value.url}?${n.draftParam}=${W.value.id}`,"_blank")}const se={};gr(()=>{ne.forEach(y=>{const P=v(y);se[y]=P,window.document.addEventListener(y,P)}),n.currentBoxId&&n.isFullMode?Pt(n.currentBoxId):n.currentPageId&&n.isFullMode&&Lt({id:n.currentPageId});const g=localStorage.getItem("oc-boxes-left-sidebar-width"),f=localStorage.getItem("oc-boxes-right-sidebar-width"),b=localStorage.getItem("oc-boxes-right-sidebar-pinned");g&&(d.value=Math.max(200,Number(g))),f&&(p.value=Math.max(200,Number(f))),b&&(c.value=b==="1"),window.addEventListener("resize",Rt)}),bo(()=>{ne.forEach(g=>{const f=se[g];f&&window.document.removeEventListener(g,f)}),window.removeEventListener("resize",Rt)}),Ke(()=>n.unpublishedPages,g=>{if(!n.hasFeature("revisions"))return;const f=document.querySelectorAll('[data-menu-id="boxes"].counter');if(!f.length)return;const b=g.length;f.forEach(y=>{y.classList.toggle("empty",b===0),b>0&&(y.innerText=b.toString())})},{immediate:!0});const lt=re(0);function Rt(){lt.value=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)}const Je=ue(()=>lt.value/100*40);function Ye(g){le(new CustomEvent(ve.FocusBox,{detail:g})),Pt(g)}async function Fn(g){o.value=!0,await window.oc.ajax("onDeleteBox",{confirm:U("confirm_delete"),data:{Page:{id:n.currentPageId},Box:{id:g}},flash:!0,complete:f=>{var b,y;f&&(n.boxes=f.state.boxes,n.currentBoxId=0),(y=(b=k.value)==null?void 0:b.contentDocument)==null||y.location.reload(),o.value=!1,le(new CustomEvent(ve.Changed))}})}async function Sr(g){o.value=!0,await window.oc.ajax("onSortBoxes",{data:{relativeTo:g.relativeTo,position:g.position,Box:{id:g.box},Page:{id:n.currentPageId}},complete:f=>{le(new CustomEvent(ve.Refresh)),o.value=!1}})}function Cr(g){var f;n.partialContexts=(f=g.partial_contexts)!=null&&f.length?g.partial_contexts:n.initialPartialContexts,n.addBoxParentId=g.parent_id??null,r.value=!0}function Et(g){let f=!w.value;g!==void 0&&(f=g),w.value=f,O.value=-1,w.value?dr(()=>{var b;(b=H.value)==null||b.focus()}):G.value=""}async function bn(g){var y;o.value=!0;const f=n.partials[g]??{};let b=!0;(!n.hasFeature("placeholderPreviews")||f.placeholderPreview===!1)&&(b=!1),le(new CustomEvent(ve.AddPlaceholder,{detail:{partial:g,preview:b,partial_name:((y=n.partials[g])==null?void 0:y.name)??"?",add_before:n.addBoxBeforeId,parent_id:n.addBoxParentId}})),await Pt(null,g)}async function Pt(g,f=""){o.value=!0,u.value=!0,n.currentBoxId=Number(g);const b={Box:{id:g,partial:f,holder_id:n.currentPageId,parent_id:n.addBoxParentId,_add_before:n.addBoxBeforeId}};n.sessionKey&&(b._session_key=n.sessionKey),await window.oc.ajax("onRenderBoxForm",{data:b,complete:()=>{n.activeRightColumnTab=hn.Box,n.currentBoxId=Number(g),n.addBoxParentId=null,n.addBoxBeforeId=null,o.value=!1}})}async function Nn(g,f){o.value=!0,await window.oc.ajax("onMoveBox",{data:{direction:f,Box:{id:g,holder_id:n.currentPageId}},complete:b=>{le(new CustomEvent(ve.Refresh)),n.boxes=b.state.boxes??[],o.value=!1}})}async function Tt(g){await window.oc.ajax("onDuplicateBox",{data:{Box:{id:g}},flash:!0,complete:f=>{le(new CustomEvent(ve.Refresh)),n.currentBoxId=f.id,n.currentPageId=f.holder_id??[],n.boxes=f.state.boxes??[],n.pages=f.state.pages??[],o.value=!1}})}async function Lt(g){o.value=!0,n.currentPageId=g.id??0,n.currentPageId===0&&(u.value=!0),await window.oc.ajax("onRenderPageForm",{data:{Page:{...g}},complete:f=>{n.boxes=f.boxes??[],n.currentPageId=g.id??0,n.currentBoxId=0,n.activeRightColumnTab=hn.Page,o.value=!1}})}async function Rn(g){await window.oc.ajax("onDuplicatePage",{data:{Page:{id:g.id}},flash:!0,complete:f=>{n.currentBoxId=0,n.currentPageId=f.id??[],n.boxes=f.boxes??[],n.pages=f.state.pages??[],o.value=!1}})}async function h(g){await window.oc.ajax("onDeletePage",{confirm:U("confirm_delete"),data:{Page:{id:g.id}},flash:!0,complete:f=>{n.currentBoxId=0,n.currentPageId=0,n.boxes=[],n.pages=f.state.pages??[],o.value=!1}})}function v(g){switch(g){case ve.AddBox:return f=>{n.partialContexts=f.detail.partial_contexts??n.initialPartialContexts,n.addBoxParentId=f.detail.parent_id??null,n.addBoxBeforeId=null,r.value=!0};case ve.AddBoxBefore:return f=>{f.detail.id&&(n.partialContexts=f.detail.partial_contexts??n.initialPartialContexts,n.addBoxBeforeId=Number(f.detail.id),r.value=!0)};case ve.MoveUp:return f=>{Nn(Number(f.detail.id),"up")};case ve.MoveDown:return f=>{Nn(Number(f.detail.id),"down")};case ve.DeleteBox:return f=>{Fn(Number(f.detail.id))};case ve.DuplicateBox:return f=>{Tt(Number(f.detail.id))};case ve.FocusBox:return f=>{};case ve.ClickBox:return f=>{Pt(f.detail.dataset.box)};case ve.HandlerSuccess:return f=>{const b=()=>{n.replace(f.detail.response.state),Lt({id:f.detail.response.id})},y=()=>{n.replace(f.detail.response.state),Pt(f.detail.response.id),le(new CustomEvent(ve.Refresh))};switch(f.detail.handler){case"onPreparePublish":if(Object.keys(f.detail.response.publish).length>0){i.value=f.detail.response.publish;return}f.detail.response.origin==="onSaveBoxForm"?y():b();break;case"onSavePageForm":b();break;case"onSaveBoxForm":y();break}};default:throw new Error("invalid event type "+g)}}return(g,f)=>(F(),q(we,null,[pe(ui,{name:"slide-down"},{default:it(()=>[W.value&&W.value.is_hidden?(F(),q("div",fh,[f[24]||(f[24]=m("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 mr-4",viewBox:"0 0 20 20",fill:"currentColor"},[m("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})],-1)),m("div",null,j(A(U)("page_is_hidden")),1)])):Ee("",!0)]),_:1}),m("div",{ref_key:"editor",ref:s,class:te(["oc-boxes-editor bg-oc-body",`oc-boxes-editor--mode-${A(n).mode}`])},[m("div",dh,[m("ul",ph,[m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center border px-1 py-0 rounded w-10 h-8 text-center hover:bg-oc-tab-active hover:no-underline",{"bg-oc-input !border-oc-focus":a.value,"!border-transparent":!a.value}]),onClick:f[0]||(f[0]=ce(b=>a.value=!a.value,["prevent"]))},f[25]||(f[25]=[m("i",{class:"icon-file-o"},null,-1)]),2)])]),m("div",hh,[m("ul",gh,[m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-l border-y rounded-l bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"opacity-50 pointer-events-none":!A(n).currentPageId,"border-r":A(n).isSingleMode}]),onClick:f[1]||(f[1]=ce(b=>ie(),["prevent"]))},f[26]||(f[26]=[m("i",{class:"icon-refresh"},null,-1)]),2)]),A(n).isFullMode?(F(),q("li",mh,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-r border-y rounded-r bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"opacity-50 pointer-events-none":!W.value||!W.value.url}]),onClick:f[2]||(f[2]=ce(b=>ee(),["prevent"]))},f[27]||(f[27]=[m("i",{class:"icon-external-link"},null,-1)]),2)])):Ee("",!0)]),m("ul",vh,[m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-l border-y rounded-l bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"bg-oc-tab-active shadow-inner":A(n).iframeWidth===480}]),onClick:f[3]||(f[3]=ce(b=>De(480),["prevent"]))},f[28]||(f[28]=[m("i",{class:"icon-mobile"},null,-1)]),2)]),m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-y bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"bg-oc-tab-active shadow-inner":A(n).iframeWidth===720}]),onClick:f[4]||(f[4]=ce(b=>De(720),["prevent"]))},f[29]||(f[29]=[m("i",{class:"icon-tablet"},null,-1)]),2)]),m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-y bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"bg-oc-tab-active shadow-inner":A(n).iframeWidth===1280}]),onClick:f[5]||(f[5]=ce(b=>De(1280),["prevent"]))},f[30]||(f[30]=[m("i",{class:"icon-desktop"},null,-1)]),2)]),m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-r border-y rounded-r bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"bg-oc-tab-active shadow-inner":A(n).iframeWidth===0}]),onClick:f[6]||(f[6]=ce(b=>De(0),["prevent"]))},f[31]||(f[31]=[m("i",{class:"icon-arrows-h"},null,-1)]),2)])]),m("div",bh,[pe(mp,{canvas:l.value},null,8,["canvas"])]),m("ul",null,[A(n).isFullMode&&A(n).hasFeature("revisions")?(F(),q("li",xh,[m("a",{href:"#",class:te(["publish-button flex items-center justify-center border px-2.5 py-0 rounded h-8 text-center hover:bg-oc-tab-active hover:no-underline border-primary text-primary",{"pointer-events-none !border-gray-300 !text-gray-300":A(n).unpublishedPages.length===0}]),"data-hotkey":"ctrl+shift+u,cmd+shift+u","data-tooltip-text":"Ctrl/Cmd+Shift+U",onClick:f[7]||(f[7]=ce(b=>_.value=!0,["prevent"]))},[f[32]||(f[32]=m("i",{class:"icon-rocket mr-3"},null,-1)),uo(" "+j(A(U)("publish_action")),1)],2)])):Ee("",!0)])]),m("ul",_h,[m("li",null,[m("a",{href:"#",class:te(["block border p-1 rounded h-9 w-10 text-center hover:bg-oc-tab-active hover:no-underline",{"bg-oc-input !border-oc-focus":c.value,"!border-transparent":!c.value}]),onClick:f[8]||(f[8]=ce(b=>c.value=!c.value,["prevent"])),"data-tooltip-text":A(U)("pin_sidebar")},f[33]||(f[33]=[m("i",{class:"icon-map-pin"},null,-1)]),10,yh)]),m("li",null,[m("a",{href:"#",class:te(["block border p-1 rounded h-9 w-10 text-center hover:bg-oc-tab-active hover:no-underline",{"bg-oc-input !border-oc-focus":u.value,"!border-transparent":!u.value}]),onClick:f[9]||(f[9]=ce(b=>u.value=!u.value,["prevent"]))},f[34]||(f[34]=[m("i",{class:"icon-sliders"},null,-1)]),2)])])]),m("div",{class:te(["oc-boxes-editor__cols",{"oc-boxes-editor__cols--left-sidebar-only":a.value&&!u.value,"oc-boxes-editor__cols--right-sidebar-only":!a.value&&u.value,"oc-boxes-editor__cols--no-sidebars":!a.value&&!u.value,"oc-boxes-editor__cols--right-sidebar-unpinned":!c.value}])},[m("div",{class:te(["oc-boxes-editor__left-col flex flex-col space-y-2 overflow-y-hidden",{"overflow-hidden":!a.value}])},[A(n).isFullMode?(F(),q("div",wh,[m("div",Sh,[m("h2",Ch,j(A(U)("pages")),1),m("button",{onClick:f[10]||(f[10]=ce(b=>Et(!0),["prevent"])),"data-hotkey":"ctrl+k, cmd+k",class:te(["page-search appearance-none cursor-pointer hover:bg-oc-tab-active w-8 h-8 -mt-2 -mr-2 border rounded flex items-center justify-center text-center",{"page-search--active !bg-yellow-100 !border-yellow-400 shadow-inner":w.value}])},f[35]||(f[35]=[m("i",{class:"oc-icon-search text-xs"},null,-1)]),2)]),Mt(m("div",Eh,[Mt(m("input",{ref_key:"pageSearchInput",ref:H,type:"search",class:"form-control form-control-sm","onUpdate:modelValue":f[11]||(f[11]=b=>G.value=b),placeholder:A(U)("search_page"),onKeydown:[Rr(ce(oe,["prevent"]),["down"]),Rr(ce(N,["prevent"]),["up"]),Rr(ce(S,["prevent"]),["enter"])],onBlur:R},null,40,Ph),[[sa,G.value]])],512),[[Qo,w.value]]),m("div",Th,[pe($a,{onClickPage:f[12]||(f[12]=b=>Lt(b)),onDuplicatePage:f[13]||(f[13]=b=>Rn(b)),onCopyPageToSite:f[14]||(f[14]=b=>x.value=b.id),onDeletePage:f[15]||(f[15]=b=>h(b)),focus:O.value,pages:K.value},null,8,["focus","pages"])])])):Ee("",!0),E.value.length?(F(),q("div",Ih,[m("h2",{class:te(["pt-4 uppercase font-semibold mb-2 text-xs",{"px-4":A(n).isFullMode}])},j(A(U)("structure")),3),m("div",{class:te(["overflow-y-auto overflow-x-hidden",{"p-4 pt-0":A(n).isFullMode,"pr-4":A(n).isSingleMode}])},[pe(Aa,{boxes:E.value,onClickBox:Ye,onDeleteBox:Fn,onSort:Sr,onDuplicateBox:Tt,onAddBox:Cr},null,8,["boxes"])],2)])):Ee("",!0)],2),pe(Us,{class:"oc-boxes-editor__left-splitter",max:Je.value,min:260,modelValue:d.value,"onUpdate:modelValue":f[16]||(f[16]=b=>d.value=b)},null,8,["max","modelValue"]),m("div",{class:"oc-boxes-editor__center-col bg-gray-200 relative shadow-inner overflow-y-auto",ref_key:"centerColumn",ref:l},[pe(ui,{name:"fade-in"},{default:it(()=>[u.value&&!c.value?(F(),q("div",{key:0,onClick:f[17]||(f[17]=ce(b=>u.value=!1,["prevent"])),class:"click-guard absolute inset-0 bg-black/10 backdrop-saturate-50"})):Ee("",!0)]),_:1}),pe(up)],512),pe(Us,{class:"oc-boxes-editor__right-splitter",max:Je.value,min:260,modelValue:p.value,"onUpdate:modelValue":f[18]||(f[18]=b=>p.value=b),inverse:!0},null,8,["max","modelValue"]),m("div",{class:te(["oc-boxes-editor__right-col bg-oc-body flex flex-col overflow-y-hidden relative",{"overflow-hidden":!u.value,"shadow-lg":!c.value}])},[pe(sp,{loading:o.value},null,8,["loading"])],2)],2)],2),pe(Zd,{onSubmit:f[19]||(f[19]=b=>bn(b)),onClose:f[20]||(f[20]=b=>r.value=!1),visible:r.value},null,8,["visible"]),pe(Np,{visible:i.value!==null,context:i.value,onClose:f[21]||(f[21]=b=>i.value=null)},null,8,["visible","context"]),pe(Zp,{visible:_.value,onClose:f[22]||(f[22]=b=>_.value=!1)},null,8,["visible"]),pe(uh,{visible:x.value!==null,context:x.value,onClose:f[23]||(f[23]=b=>x.value=null)},null,8,["visible","context"])],64))}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();const qr={};window.__OC_BOXES__=!0;function Ah(e){qr[e.id]&&qr[e.id].unmount();const t=_f(),n=mf(Dh);n.use(t).provide("instanceId",e.id).mount(e),addEventListener("page:unload",()=>{n.unmount()},{once:!0}),qr[e.id]=n}addEventListener("boxes:init",e=>{if(!e.detail)throw new Error("boxes:init does not contain a Boxes Editor DOM node.");Ah(e.detail)}); diff --git a/assets/editor/assets/main-f228dc83.js b/assets/editor/assets/main-f228dc83.js deleted file mode 100644 index 01cbb48..0000000 --- a/assets/editor/assets/main-f228dc83.js +++ /dev/null @@ -1,26 +0,0 @@ -/** -* @vue/shared v3.5.1 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function vi(e,t){const n=new Set(e.split(","));return t?o=>n.has(o.toLowerCase()):o=>n.has(o)}const ve={},Pn=[],pt=()=>{},Oa=()=>!1,ir=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),bi=e=>e.startsWith("onUpdate:"),Be=Object.assign,xi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ba=Object.prototype.hasOwnProperty,me=(e,t)=>Ba.call(e,t),H=Array.isArray,Tn=e=>po(e)==="[object Map]",Mn=e=>po(e)==="[object Set]",Ui=e=>po(e)==="[object Date]",Q=e=>typeof e=="function",Pe=e=>typeof e=="string",wt=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",Ks=e=>(xe(e)||Q(e))&&Q(e.then)&&Q(e.catch),zs=Object.prototype.toString,po=e=>zs.call(e),Ma=e=>po(e).slice(8,-1),Ys=e=>po(e)==="[object Object]",_i=e=>Pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yn=vi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),sr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ka=/-(\w)/g,mt=sr(e=>e.replace(ka,(t,n)=>n?n.toUpperCase():"")),Fa=/\B([A-Z])/g,en=sr(e=>e.replace(Fa,"-$1").toLowerCase()),lr=sr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Er=sr(e=>e?`on${lr(e)}`:""),Zt=(e,t)=>!Object.is(e,t),Bo=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},Uo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Na=e=>{const t=Pe(e)?Number(e):NaN;return isNaN(t)?e:t};let Ki;const Gs=()=>Ki||(Ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ho(e){if(H(e)){const t={};for(let n=0;n{if(n){const o=n.split(La);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function te(e){let t="";if(Pe(e))t=e;else if(H(e))for(let n=0;ngo(n,t))}const Js=e=>!!(e&&e.__v_isRef===!0),j=e=>Pe(e)?e:e==null?"":H(e)||xe(e)&&(e.toString===zs||!Q(e.toString))?Js(e)?j(e.value):JSON.stringify(e,Zs,2):String(e),Zs=(e,t)=>Js(t)?Zs(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[Pr(o,i)+" =>"]=r,n),{})}:Mn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Pr(n))}:wt(t)?Pr(t):xe(t)&&!H(t)&&!Ys(t)?String(t):t,Pr=(e,t="")=>{var n;return wt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.1 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let We;class Qs{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;let e;for(;Xn;){let t=Xn;for(Xn=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function rl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function il(e){let t,n=e.depsTail;for(let o=n;o;o=o.prevDep)o.version===-1?(o===n&&(n=o.prevDep),Ci(o),za(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function Jr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&sl(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function sl(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ro))return;e.globalVersion=ro;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!Jr(e)){e.flags&=-3;return}const n=ye,o=ht;ye=e,ht=!0;try{rl(e);const r=e.fn();(t.version===0||Zt(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ye=n,ht=o,il(e),e.flags&=-3}}function Ci(e){const{dep:t,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)Ci(r)}}function za(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ht=!0;const ll=[];function tn(){ll.push(ht),ht=!1}function nn(){const e=ll.pop();ht=e===void 0?!0:e}function zi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ye;ye=void 0;try{t()}finally{ye=n}}}let ro=0;class Ei{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!ye||!ht)return;let n=this.activeLink;if(n===void 0||n.sub!==ye)n=this.activeLink={dep:this,sub:ye,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},ye.deps?(n.prevDep=ye.depsTail,ye.depsTail.nextDep=n,ye.depsTail=n):ye.deps=ye.depsTail=n,ye.flags&4&&al(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=ye.depsTail,n.nextDep=void 0,ye.depsTail.nextDep=n,ye.depsTail=n,ye.deps===n&&(ye.deps=o)}return n}trigger(t){this.version++,ro++,this.notify(t)}notify(t){wi();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{Si()}}}function al(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)al(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const Ko=new WeakMap,gn=Symbol(""),Zr=Symbol(""),io=Symbol("");function Re(e,t,n){if(ht&&ye){let o=Ko.get(e);o||Ko.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Ei),r.track()}}function At(e,t,n,o,r,i){const s=Ko.get(e);if(!s){ro++;return}let l=[];if(t==="clear")l=[...s.values()];else{const a=H(e),u=a&&_i(n);if(a&&n==="length"){const c=Number(o);s.forEach((f,p)=>{(p==="length"||p===io||!wt(p)&&p>=c)&&l.push(f)})}else{const c=f=>f&&l.push(f);switch(n!==void 0&&c(s.get(n)),u&&c(s.get(io)),t){case"add":a?u&&c(s.get("length")):(c(s.get(gn)),Tn(e)&&c(s.get(Zr)));break;case"delete":a||(c(s.get(gn)),Tn(e)&&c(s.get(Zr)));break;case"set":Tn(e)&&c(s.get(gn));break}}}wi();for(const a of l)a.trigger();Si()}function Ya(e,t){var n;return(n=Ko.get(e))==null?void 0:n.get(t)}function xn(e){const t=pe(e);return t===e?t:(Re(t,"iterate",io),gt(e)?t:t.map(Ne))}function ar(e){return Re(e=pe(e),"iterate",io),e}const Xa={__proto__:null,[Symbol.iterator](){return Ir(this,Symbol.iterator,Ne)},concat(...e){return xn(this).concat(...e.map(t=>H(t)?xn(t):t))},entries(){return Ir(this,"entries",e=>(e[1]=Ne(e[1]),e))},every(e,t){return Tt(this,"every",e,t,void 0,arguments)},filter(e,t){return Tt(this,"filter",e,t,n=>n.map(Ne),arguments)},find(e,t){return Tt(this,"find",e,t,Ne,arguments)},findIndex(e,t){return Tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Tt(this,"findLast",e,t,Ne,arguments)},findLastIndex(e,t){return Tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Dr(this,"includes",e)},indexOf(...e){return Dr(this,"indexOf",e)},join(e){return xn(this).join(e)},lastIndexOf(...e){return Dr(this,"lastIndexOf",e)},map(e,t){return Tt(this,"map",e,t,void 0,arguments)},pop(){return jn(this,"pop")},push(...e){return jn(this,"push",e)},reduce(e,...t){return Yi(this,"reduce",e,t)},reduceRight(e,...t){return Yi(this,"reduceRight",e,t)},shift(){return jn(this,"shift")},some(e,t){return Tt(this,"some",e,t,void 0,arguments)},splice(...e){return jn(this,"splice",e)},toReversed(){return xn(this).toReversed()},toSorted(e){return xn(this).toSorted(e)},toSpliced(...e){return xn(this).toSpliced(...e)},unshift(...e){return jn(this,"unshift",e)},values(){return Ir(this,"values",Ne)}};function Ir(e,t,n){const o=ar(e),r=o[t]();return o!==e&&!gt(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const Ga=Array.prototype;function Tt(e,t,n,o,r,i){const s=ar(e),l=s!==e&&!gt(e),a=s[t];if(a!==Ga[t]){const f=a.apply(e,i);return l?Ne(f):f}let u=n;s!==e&&(l?u=function(f,p){return n.call(this,Ne(f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const c=a.call(s,u,o);return l&&r?r(c):c}function Yi(e,t,n,o){const r=ar(e);let i=n;return r!==e&&(gt(e)?n.length>3&&(i=function(s,l,a){return n.call(this,s,l,a,e)}):i=function(s,l,a){return n.call(this,s,Ne(l),a,e)}),r[t](i,...o)}function Dr(e,t,n){const o=pe(e);Re(o,"iterate",io);const r=o[t](...n);return(r===-1||r===!1)&&Di(n[0])?(n[0]=pe(n[0]),o[t](...n)):r}function jn(e,t,n=[]){tn(),wi();const o=pe(e)[t].apply(e,n);return Si(),nn(),o}const qa=vi("__proto__,__v_isRef,__isVue"),cl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(wt));function Ja(e){wt(e)||(e=String(e));const t=pe(this);return Re(t,"has",e),t.hasOwnProperty(e)}class ul{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?uc:hl:i?pl:dl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const s=H(t);if(!r){let a;if(s&&(a=Xa[n]))return a;if(n==="hasOwnProperty")return Ja}const l=Reflect.get(t,n,Ie(t)?t:o);return(wt(n)?cl.has(n):qa(n))||(r||Re(t,"get",n),i)?l:Ie(l)?s&&_i(n)?l:l.value:xe(l)?r?gl(l):ur(l):l}}class fl extends ul{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];if(!this._isShallow){const a=vn(i);if(!gt(o)&&!vn(o)&&(i=pe(i),o=pe(o)),!H(t)&&Ie(i)&&!Ie(o))return a?!1:(i.value=o,!0)}const s=H(t)&&_i(n)?Number(n)e,cr=e=>Reflect.getPrototypeOf(e);function yo(e,t,n=!1,o=!1){e=e.__v_raw;const r=pe(e),i=pe(t);n||(Zt(t,i)&&Re(r,"get",t),Re(r,"get",i));const{has:s}=cr(r),l=o?Pi:n?$i:Ne;if(s.call(r,t))return l(e.get(t));if(s.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function wo(e,t=!1){const n=this.__v_raw,o=pe(n),r=pe(e);return t||(Zt(e,r)&&Re(o,"has",e),Re(o,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function So(e,t=!1){return e=e.__v_raw,!t&&Re(pe(e),"iterate",gn),Reflect.get(e,"size",e)}function Xi(e,t=!1){!t&&!gt(e)&&!vn(e)&&(e=pe(e));const n=pe(this);return cr(n).has.call(n,e)||(n.add(e),At(n,"add",e,e)),this}function Gi(e,t,n=!1){!n&&!gt(t)&&!vn(t)&&(t=pe(t));const o=pe(this),{has:r,get:i}=cr(o);let s=r.call(o,e);s||(e=pe(e),s=r.call(o,e));const l=i.call(o,e);return o.set(e,t),s?Zt(t,l)&&At(o,"set",e,t):At(o,"add",e,t),this}function qi(e){const t=pe(this),{has:n,get:o}=cr(t);let r=n.call(t,e);r||(e=pe(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&At(t,"delete",e,void 0),i}function Ji(){const e=pe(this),t=e.size!==0,n=e.clear();return t&&At(e,"clear",void 0,void 0),n}function Co(e,t){return function(o,r){const i=this,s=i.__v_raw,l=pe(s),a=t?Pi:e?$i:Ne;return!e&&Re(l,"iterate",gn),s.forEach((u,c)=>o.call(r,a(u),a(c),i))}}function Eo(e,t,n){return function(...o){const r=this.__v_raw,i=pe(r),s=Tn(i),l=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,u=r[e](...o),c=n?Pi:t?$i:Ne;return!t&&Re(i,"iterate",a?Zr:gn),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:l?[c(f[0]),c(f[1])]:c(f),done:p}},[Symbol.iterator](){return this}}}}function Lt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nc(){const e={get(i){return yo(this,i)},get size(){return So(this)},has:wo,add:Xi,set:Gi,delete:qi,clear:Ji,forEach:Co(!1,!1)},t={get(i){return yo(this,i,!1,!0)},get size(){return So(this)},has:wo,add(i){return Xi.call(this,i,!0)},set(i,s){return Gi.call(this,i,s,!0)},delete:qi,clear:Ji,forEach:Co(!1,!0)},n={get(i){return yo(this,i,!0)},get size(){return So(this,!0)},has(i){return wo.call(this,i,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:Co(!0,!1)},o={get(i){return yo(this,i,!0,!0)},get size(){return So(this,!0)},has(i){return wo.call(this,i,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:Co(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Eo(i,!1,!1),n[i]=Eo(i,!0,!1),t[i]=Eo(i,!1,!0),o[i]=Eo(i,!0,!0)}),[e,n,t,o]}const[oc,rc,ic,sc]=nc();function Ti(e,t){const n=t?e?sc:ic:e?rc:oc;return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(me(n,r)&&r in o?n:o,r,i)}const lc={get:Ti(!1,!1)},ac={get:Ti(!1,!0)},cc={get:Ti(!0,!1)};const dl=new WeakMap,pl=new WeakMap,hl=new WeakMap,uc=new WeakMap;function fc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dc(e){return e.__v_skip||!Object.isExtensible(e)?0:fc(Ma(e))}function ur(e){return vn(e)?e:Ii(e,!1,Qa,lc,dl)}function pc(e){return Ii(e,!1,tc,ac,pl)}function gl(e){return Ii(e,!0,ec,cc,hl)}function Ii(e,t,n,o,r){if(!xe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=dc(e);if(s===0)return e;const l=new Proxy(e,s===2?o:n);return r.set(e,l),l}function Jt(e){return vn(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function vn(e){return!!(e&&e.__v_isReadonly)}function gt(e){return!!(e&&e.__v_isShallow)}function Di(e){return e?!!e.__v_raw:!1}function pe(e){const t=e&&e.__v_raw;return t?pe(t):e}function Ai(e){return Object.isExtensible(e)&&Xs(e,"__v_skip",!0),e}const Ne=e=>xe(e)?ur(e):e,$i=e=>xe(e)?gl(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}function re(e){return hc(e,!1)}function hc(e,t){return Ie(e)?e:new gc(e,t)}class gc{constructor(t,n){this.dep=new Ei,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:pe(t),this._value=n?t:Ne(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||gt(t)||vn(t);t=o?t:pe(t),Zt(t,n)&&(this._rawValue=t,this._value=o?t:Ne(t),this.dep.trigger())}}function A(e){return Ie(e)?e.value:e}const mc={get:(e,t,n)=>A(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ie(r)&&!Ie(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ml(e){return Jt(e)?e:new Proxy(e,mc)}function vc(e){const t=H(e)?new Array(e.length):{};for(const n in e)t[n]=xc(e,n);return t}class bc{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Ya(pe(this._object),this._key)}}function xc(e,t,n){const o=e[t];return Ie(o)?o:new bc(e,t,n)}class _c{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ei(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ro-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){ye!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=this.dep.track();return sl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function yc(e,t,n=!1){let o,r;return Q(e)?o=e:(o=e.get,r=e.set),new _c(o,r,n)}const Po={},zo=new WeakMap;let un;function wc(e,t=!1,n=un){if(n){let o=zo.get(n);o||zo.set(n,o=[]),o.push(e)}}function Sc(e,t,n=ve){const{immediate:o,deep:r,once:i,scheduler:s,augmentJob:l,call:a}=n,u=E=>r?E:gt(E)||r===!1||r===0?Dt(E,1):Dt(E);let c,f,p,x,_=!1,C=!1;if(Ie(e)?(f=()=>e.value,_=gt(e)):Jt(e)?(f=()=>u(e),_=!0):H(e)?(C=!0,_=e.some(E=>Jt(E)||gt(E)),f=()=>e.map(E=>{if(Ie(E))return E.value;if(Jt(E))return u(E);if(Q(E))return a?a(E,2):E()})):Q(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){tn();try{p()}finally{nn()}}const E=un;un=c;try{return a?a(e,3,[x]):e(x)}finally{un=E}}:f=pt,t&&r){const E=f,k=r===!0?1/0:r;f=()=>Dt(E(),k)}const K=tl(),Y=()=>{c.stop(),K&&xi(K.effects,c)};if(i)if(t){const E=t;t=(...k)=>{E(...k),Y()}}else{const E=f;f=()=>{E(),Y()}}let O=C?new Array(e.length).fill(Po):Po;const B=E=>{if(!(!(c.flags&1)||!c.dirty&&!E))if(t){const k=c.run();if(r||_||(C?k.some((U,oe)=>Zt(U,O[oe])):Zt(k,O))){p&&p();const U=un;un=c;try{const oe=[k,O===Po?void 0:C&&O[0]===Po?[]:O,x];a?a(t,3,oe):t(...oe),O=k}finally{un=U}}}else c.run()};return l&&l(B),c=new nl(f),c.scheduler=s?()=>s(B,!1):B,x=E=>wc(E,!1,c),p=c.onStop=()=>{const E=zo.get(c);if(E){if(a)a(E,4);else for(const k of E)k();zo.delete(c)}},t?o?B(!0):O=c.run():s?s(B.bind(null,!0),!0):c.run(),Y.pause=c.pause.bind(c),Y.resume=c.resume.bind(c),Y.stop=Y,Y}function Dt(e,t=1/0,n){if(t<=0||!xe(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ie(e))Dt(e.value,t,n);else if(H(e))for(let o=0;o{Dt(o,t,n)});else if(Ys(e)){for(const o in e)Dt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Dt(e[o],t,n)}return e}/** -* @vue/runtime-core v3.5.1 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function mo(e,t,n,o){try{return o?e(...o):e()}catch(r){fr(r,t,n)}}function vt(e,t,n,o){if(Q(e)){const r=mo(e,t,n,o);return r&&Ks(r)&&r.catch(i=>{fr(i,t,n)}),r}if(H(e)){const r=[];for(let i=0;i>>1,r=nt[o],i=lo(r);i=lo(n)?nt.push(e):nt.splice(Ec(t),0,e),e.flags&4||(e.flags|=1),bl()}}function bl(){!so&&!Qr&&(Qr=!0,Oi=vl.then(_l))}function Pc(e){H(e)?In.push(...e):Wt&&e.id===-1?Wt.splice(Sn+1,0,e):e.flags&1||(In.push(e),e.flags&4||(e.flags|=1)),bl()}function Zi(e,t,n=so?dn+1:0){for(;nlo(n)-lo(o));if(In.length=0,Wt){Wt.push(...t);return}for(Wt=t,Sn=0;Sne.id==null?e.flags&2?-1:1/0:e.id;function _l(e){Qr=!1,so=!0;const t=pt;try{for(dn=0;dn{o._d&&us(-1);const i=Yo(t);let s;try{s=e(...r)}finally{Yo(i),o._d&&us(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function Bt(e,t){if(Oe===null)return e;const n=xr(Oe),o=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,Gn=e=>e&&(e.disabled||e.disabled===""),Tc=e=>e&&(e.defer||e.defer===""),Qi=e=>typeof SVGElement<"u"&&e instanceof SVGElement,es=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ei=(e,t)=>{const n=e&&e.to;return Pe(n)?t?t(n):null:n},Ic={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,s,l,a,u){const{mc:c,pc:f,pbc:p,o:{insert:x,querySelector:_,createText:C,createComment:K}}=u,Y=Gn(t.props);let{shapeFlag:O,children:B,dynamicChildren:E}=t;if(e==null){const k=t.el=C(""),U=t.anchor=C("");x(k,n,o),x(U,n,o);const oe=(w,R)=>{O&16&&c(B,w,R,r,i,s,l,a)},N=()=>{const w=t.target=ei(t.props,_),R=Cl(w,t,C,x);w&&(s!=="svg"&&Qi(w)?s="svg":s!=="mathml"&&es(w)&&(s="mathml"),Y||(oe(w,R),Mo(t)))};Y&&(oe(n,U),Mo(t)),Tc(t.props)?Xe(N,i):N()}else{t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,U=t.target=e.target,oe=t.targetAnchor=e.targetAnchor,N=Gn(e.props),w=N?n:U,R=N?k:oe;if(s==="svg"||Qi(U)?s="svg":(s==="mathml"||es(U))&&(s="mathml"),E?(p(e.dynamicChildren,E,w,r,i,s,l),Ni(e,t,!0)):a||f(e,t,w,R,r,i,s,l,!1),Y)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):To(t,n,k,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const V=t.target=ei(t.props,_);V&&To(t,V,null,u,0)}else N&&To(t,U,oe,u,1);Mo(t)}},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:s,children:l,anchor:a,targetStart:u,targetAnchor:c,target:f,props:p}=e;if(f&&(r(u),r(c)),i&&r(a),s&16){const x=i||!Gn(p);for(let _=0;_{e.isMounted=!0}),vo(()=>{e.isUnmounting=!0}),e}const at=[Function,Array],El={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:at,onEnter:at,onAfterEnter:at,onEnterCancelled:at,onBeforeLeave:at,onLeave:at,onAfterLeave:at,onLeaveCancelled:at,onBeforeAppear:at,onAppear:at,onAfterAppear:at,onAppearCancelled:at},Pl=e=>{const t=e.subTree;return t.component?Pl(t.component):t},Oc={name:"BaseTransition",props:El,setup(e,{slots:t}){const n=Ql(),o=$c();return()=>{const r=t.default&&Dl(t.default(),!0);if(!r||!r.length)return;const i=Tl(r),s=pe(e),{mode:l}=s;if(o.isLeaving)return Ar(i);const a=ts(i);if(!a)return Ar(i);let u=ti(a,s,o,n,p=>u=p);a.type!==Ke&&Xo(a,u);const c=n.subTree,f=c&&ts(c);if(f&&f.type!==Ke&&!pn(a,f)&&Pl(n).type!==Ke){const p=ti(f,s,o,n);if(Xo(f,p),l==="out-in"&&a.type!==Ke)return o.isLeaving=!0,p.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update()},Ar(i);l==="in-out"&&a.type!==Ke&&(p.delayLeave=(x,_,C)=>{const K=Il(o,f);K[String(f.key)]=f,x[Ut]=()=>{_(),x[Ut]=void 0,delete u.delayedLeave},u.delayedLeave=C})}return i}}};function Tl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ke){t=n;break}}return t}const Bc=Oc;function Il(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function ti(e,t,n,o,r){const{appear:i,mode:s,persisted:l=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:p,onLeave:x,onAfterLeave:_,onLeaveCancelled:C,onBeforeAppear:K,onAppear:Y,onAfterAppear:O,onAppearCancelled:B}=t,E=String(e.key),k=Il(n,e),U=(w,R)=>{w&&vt(w,o,9,R)},oe=(w,R)=>{const V=R[1];U(w,R),H(w)?w.every($=>$.length<=1)&&V():w.length<=1&&V()},N={mode:s,persisted:l,beforeEnter(w){let R=a;if(!n.isMounted)if(i)R=K||a;else return;w[Ut]&&w[Ut](!0);const V=k[E];V&&pn(e,V)&&V.el[Ut]&&V.el[Ut](),U(R,[w])},enter(w){let R=u,V=c,$=f;if(!n.isMounted)if(i)R=Y||u,V=O||c,$=B||f;else return;let ne=!1;const le=w[Io]=De=>{ne||(ne=!0,De?U($,[w]):U(V,[w]),N.delayedLeave&&N.delayedLeave(),w[Io]=void 0)};R?oe(R,[w,le]):le()},leave(w,R){const V=String(e.key);if(w[Io]&&w[Io](!0),n.isUnmounting)return R();U(p,[w]);let $=!1;const ne=w[Ut]=le=>{$||($=!0,R(),le?U(C,[w]):U(_,[w]),w[Ut]=void 0,k[V]===e&&delete k[V])};k[V]=e,x?oe(x,[w,ne]):ne()},clone(w){const R=ti(w,t,n,o,r);return r&&r(R),R}};return N}function Ar(e){if(pr(e))return e=Qt(e),e.children=null,e}function ts(e){if(!pr(e))return Sl(e.type)&&e.children?Tl(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Q(n.default))return n.default()}}function Xo(e,t){e.shapeFlag&6&&e.component?Xo(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 Dl(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;iBe({name:e.name},t,{setup:e}))():e}function Al(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ni(e,t,n,o,r=!1){if(H(e)){e.forEach((x,_)=>ni(x,t&&(H(t)?t[_]:t),n,o,r));return}if(Dn(o)&&!r)return;const i=o.shapeFlag&4?xr(o.component):o.el,s=r?null:i,{i:l,r:a}=e,u=t&&t.r,c=l.refs===ve?l.refs={}:l.refs,f=l.setupState,p=f===ve?()=>!1:x=>me(f,x)&&!(Object.getOwnPropertyDescriptor(c,x)||ve).get;if(u!=null&&u!==a&&(Pe(u)?(c[u]=null,p(u)&&(f[u]=null)):Ie(u)&&(u.value=null)),Q(a))mo(a,l,12,[s,c]);else{const x=Pe(a),_=Ie(a);if(x||_){const C=()=>{if(e.f){const K=x?p(a)?f[a]:c[a]:a.value;r?H(K)&&xi(K,i):H(K)?K.includes(i)||K.push(i):x?(c[a]=[i],p(a)&&(f[a]=c[a])):(a.value=[i],e.k&&(c[e.k]=a.value))}else x?(c[a]=s,p(a)&&(f[a]=s)):_&&(a.value=s,e.k&&(c[e.k]=s))};s?(C.id=-1,Xe(C,n)):C()}}}const Dn=e=>!!e.type.__asyncLoader,pr=e=>e.type.__isKeepAlive;function Mc(e,t){$l(e,"a",t)}function kc(e,t){$l(e,"da",t)}function $l(e,t,n=Me){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(hr(t,o,n),n){let r=n.parent;for(;r&&r.parent;)pr(r.parent.vnode)&&Fc(o,t,n,r),r=r.parent}}function Fc(e,t,n,o){const r=hr(t,e,o,!0);Mi(()=>{xi(o[t],r)},n)}function hr(e,t,n=Me,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{tn();const l=bo(n),a=vt(t,n,e,s);return l(),nn(),a});return o?r.unshift(i):r.push(i),i}}const kt=e=>(t,n=Me)=>{(!br||e==="sp")&&hr(e,(...o)=>t(...o),n)},Nc=kt("bm"),gr=kt("m"),Rc=kt("bu"),Lc=kt("u"),vo=kt("bum"),Mi=kt("um"),jc=kt("sp"),Hc=kt("rtg"),Vc=kt("rtc");function Wc(e,t=Me){hr("ec",e,t)}const Ol="components",Bl=Symbol.for("v-ndc");function Uc(e){return Pe(e)?Kc(Ol,e,!1)||e:e||Bl}function Kc(e,t,n=!0,o=!1){const r=Oe||Me;if(r){const i=r.type;if(e===Ol){const l=Bu(i,!1);if(l&&(l===t||l===mt(t)||l===lr(mt(t))))return i}const s=ns(r[e]||i[e],t)||ns(r.appContext[e],t);return!s&&o?i:s}}function ns(e,t){return e&&(e[t]||e[mt(t)]||e[lr(mt(t))])}function Gt(e,t,n,o){let r;const i=n&&n[o],s=H(e);if(s||Pe(e)){const l=s&&Jt(e);l&&(e=ar(e)),r=new Array(e.length);for(let a=0,u=e.length;at(l,a,void 0,i&&i[a]));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,u=l.length;aqo(t)?!(t.type===Ke||t.type===we&&!Ml(t.children)):!0)?e:null}const oi=e=>e?ea(e)?xr(e):oi(e.parent):null,qn=Be(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=>oi(e.parent),$root:e=>oi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ki(e),$forceUpdate:e=>e.f||(e.f=()=>{Bi(e.update)}),$nextTick:e=>e.n||(e.n=dr.bind(e.proxy)),$watch:e=>mu.bind(e)}),$r=(e,t)=>e!==ve&&!e.__isScriptSetup&&me(e,t),zc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const x=s[t];if(x!==void 0)switch(x){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if($r(o,t))return s[t]=1,o[t];if(r!==ve&&me(r,t))return s[t]=2,r[t];if((u=e.propsOptions[0])&&me(u,t))return s[t]=3,i[t];if(n!==ve&&me(n,t))return s[t]=4,n[t];ri&&(s[t]=0)}}const c=qn[t];let f,p;if(c)return t==="$attrs"&&Re(e.attrs,"get",""),c(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ve&&me(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,me(p,t))return p[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return $r(r,t)?(r[t]=n,!0):o!==ve&&me(o,t)?(o[t]=n,!0):me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let l;return!!n[s]||e!==ve&&me(e,s)||$r(t,s)||(l=i[0])&&me(l,s)||me(o,s)||me(qn,s)||me(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yc(){return Xc().attrs}function Xc(){const e=Ql();return e.setupContext||(e.setupContext=na(e))}function os(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ri=!0;function Gc(e){const t=ki(e),n=e.proxy,o=e.ctx;ri=!1,t.beforeCreate&&rs(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:l,provide:a,inject:u,created:c,beforeMount:f,mounted:p,beforeUpdate:x,updated:_,activated:C,deactivated:K,beforeDestroy:Y,beforeUnmount:O,destroyed:B,unmounted:E,render:k,renderTracked:U,renderTriggered:oe,errorCaptured:N,serverPrefetch:w,expose:R,inheritAttrs:V,components:$,directives:ne,filters:le}=t;if(u&&qc(u,o,null),s)for(const ee in s){const se=s[ee];Q(se)&&(o[ee]=se.bind(n))}if(r){const ee=r.call(n,n);xe(ee)&&(e.data=ur(ee))}if(ri=!0,i)for(const ee in i){const se=i[ee],lt=Q(se)?se.bind(n,n):Q(se.get)?se.get.bind(n,n):pt,Nt=!Q(se)&&Q(se.set)?se.set.bind(n):pt,qe=ue({get:lt,set:Nt});Object.defineProperty(o,ee,{enumerable:!0,configurable:!0,get:()=>qe.value,set:ze=>qe.value=ze})}if(l)for(const ee in l)kl(l[ee],o,n,ee);if(a){const ee=Q(a)?a.call(n):a;Reflect.ownKeys(ee).forEach(se=>{nu(se,ee[se])})}c&&rs(c,e,"c");function ie(ee,se){H(se)?se.forEach(lt=>ee(lt.bind(n))):se&&ee(se.bind(n))}if(ie(Nc,f),ie(gr,p),ie(Rc,x),ie(Lc,_),ie(Mc,C),ie(kc,K),ie(Wc,N),ie(Vc,U),ie(Hc,oe),ie(vo,O),ie(Mi,E),ie(jc,w),H(R))if(R.length){const ee=e.exposed||(e.exposed={});R.forEach(se=>{Object.defineProperty(ee,se,{get:()=>n[se],set:lt=>n[se]=lt})})}else e.exposed||(e.exposed={});k&&e.render===pt&&(e.render=k),V!=null&&(e.inheritAttrs=V),$&&(e.components=$),ne&&(e.directives=ne),w&&Al(e)}function qc(e,t,n=pt){H(e)&&(e=ii(e));for(const o in e){const r=e[o];let i;xe(r)?"default"in r?i=An(r.from||o,r.default,!0):i=An(r.from||o):i=An(r),Ie(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[o]=i}}function rs(e,t,n){vt(H(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function kl(e,t,n,o){let r=o.includes(".")?Xl(n,o):()=>n[o];if(Pe(e)){const i=t[e];Q(i)&&Ue(r,i)}else if(Q(e))Ue(r,e.bind(n));else if(xe(e))if(H(e))e.forEach(i=>kl(i,t,n,o));else{const i=Q(e.handler)?e.handler.bind(n):t[e.handler];Q(i)&&Ue(r,i,e)}}function ki(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let a;return l?a=l:!r.length&&!n&&!o?a=t:(a={},r.length&&r.forEach(u=>Go(a,u,s,!0)),Go(a,t,s)),xe(t)&&i.set(t,a),a}function Go(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Go(e,i,n,!0),r&&r.forEach(s=>Go(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const l=Jc[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Jc={data:is,props:ss,emits:ss,methods:Wn,computed:Wn,beforeCreate:He,created:He,beforeMount:He,mounted:He,beforeUpdate:He,updated:He,beforeDestroy:He,beforeUnmount:He,destroyed:He,unmounted:He,activated:He,deactivated:He,errorCaptured:He,serverPrefetch:He,components:Wn,directives:Wn,watch:Qc,provide:is,inject:Zc};function is(e,t){return t?e?function(){return Be(Q(e)?e.call(this,this):e,Q(t)?t.call(this,this):t)}:t:e}function Zc(e,t){return Wn(ii(e),ii(t))}function ii(e){if(H(e)){const t={};for(let n=0;n1)return n&&Q(t)?t.call(o&&o.proxy):t}}function ou(){return!!(Me||Oe||mn)}const Nl={},Rl=()=>Object.create(Nl),Ll=e=>Object.getPrototypeOf(e)===Nl;function ru(e,t,n,o=!1){const r={},i=Rl();e.propsDefaults=Object.create(null),jl(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:pc(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function iu(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,l=pe(r),[a]=e.propsOptions;let u=!1;if((o||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[p,x]=Hl(f,t,!0);Be(s,p),x&&l.push(...x)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!a)return xe(e)&&o.set(e,Pn),Pn;if(H(i))for(let c=0;ce[0]==="_"||e==="$stable",Fi=e=>H(e)?e.map(_t):[_t(e)],lu=(e,t,n)=>{if(t._n)return t;const o=it((...r)=>Fi(t(...r)),n);return o._c=!1,o},Wl=(e,t,n)=>{const o=e._ctx;for(const r in e){if(Vl(r))continue;const i=e[r];if(Q(i))t[r]=lu(r,i,o);else if(i!=null){const s=Fi(i);t[r]=()=>s}}},Ul=(e,t)=>{const n=Fi(t);e.slots.default=()=>n},Kl=(e,t,n)=>{for(const o in t)(n||o!=="_")&&(e[o]=t[o])},au=(e,t,n)=>{const o=e.slots=Rl();if(e.vnode.shapeFlag&32){const r=t._;r?(Kl(o,t,n),n&&Xs(o,"_",r,!0)):Wl(t,o)}else t&&Ul(e,t)},cu=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=ve;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Kl(r,t,n):(i=!t.$stable,Wl(t,r)),s=t}else t&&(Ul(e,t),s={default:1});if(i)for(const l in r)!Vl(l)&&s[l]==null&&delete r[l]},Xe=Su;function uu(e){return fu(e)}function fu(e,t){const n=Gs();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:s,createText:l,createComment:a,setText:u,setElementText:c,parentNode:f,nextSibling:p,setScopeId:x=pt,insertStaticContent:_}=e,C=(h,v,g,d=null,b=null,y=null,P=void 0,D=null,T=!!v.dynamicChildren)=>{if(h===v)return;h&&!pn(h,v)&&(d=bn(h),ze(h,b,y,!0),h=null),v.patchFlag===-2&&(T=!1,v.dynamicChildren=null);const{type:S,ref:z,shapeFlag:M}=v;switch(S){case vr:K(h,v,g,d);break;case Ke:Y(h,v,g,d);break;case Mr:h==null&&O(v,g,d,P);break;case we:$(h,v,g,d,b,y,P,D,T);break;default:M&1?k(h,v,g,d,b,y,P,D,T):M&6?ne(h,v,g,d,b,y,P,D,T):(M&64||M&128)&&S.process(h,v,g,d,b,y,P,D,T,Pt)}z!=null&&b&&ni(z,h&&h.ref,y,v||h,!v)},K=(h,v,g,d)=>{if(h==null)o(v.el=l(v.children),g,d);else{const b=v.el=h.el;v.children!==h.children&&u(b,v.children)}},Y=(h,v,g,d)=>{h==null?o(v.el=a(v.children||""),g,d):v.el=h.el},O=(h,v,g,d)=>{[h.el,h.anchor]=_(h.children,v,g,d,h.el,h.anchor)},B=({el:h,anchor:v},g,d)=>{let b;for(;h&&h!==v;)b=p(h),o(h,g,d),h=b;o(v,g,d)},E=({el:h,anchor:v})=>{let g;for(;h&&h!==v;)g=p(h),r(h),h=g;r(v)},k=(h,v,g,d,b,y,P,D,T)=>{v.type==="svg"?P="svg":v.type==="math"&&(P="mathml"),h==null?U(v,g,d,b,y,P,D,T):w(h,v,b,y,P,D,T)},U=(h,v,g,d,b,y,P,D)=>{let T,S;const{props:z,shapeFlag:M,transition:L,dirs:J}=h;if(T=h.el=s(h.type,y,z&&z.is,z),M&8?c(T,h.children):M&16&&N(h.children,T,null,d,b,Or(h,y),P,D),J&&on(h,null,d,"created"),oe(T,h,h.scopeId,P,d),z){for(const _e in z)_e!=="value"&&!Yn(_e)&&i(T,_e,null,z[_e],y,d);"value"in z&&i(T,"value",null,z.value,y),(S=z.onVnodeBeforeMount)&&xt(S,d,h)}J&&on(h,null,d,"beforeMount");const ae=du(b,L);ae&&L.beforeEnter(T),o(T,v,g),((S=z&&z.onVnodeMounted)||ae||J)&&Xe(()=>{S&&xt(S,d,h),ae&&L.enter(T),J&&on(h,null,d,"mounted")},b)},oe=(h,v,g,d,b)=>{if(g&&x(h,g),d)for(let y=0;y{for(let S=T;S{const D=v.el=h.el;let{patchFlag:T,dynamicChildren:S,dirs:z}=v;T|=h.patchFlag&16;const M=h.props||ve,L=v.props||ve;let J;if(g&&rn(g,!1),(J=L.onVnodeBeforeUpdate)&&xt(J,g,v,h),z&&on(v,h,g,"beforeUpdate"),g&&rn(g,!0),(M.innerHTML&&L.innerHTML==null||M.textContent&&L.textContent==null)&&c(D,""),S?R(h.dynamicChildren,S,D,g,d,Or(v,b),y):P||se(h,v,D,null,g,d,Or(v,b),y,!1),T>0){if(T&16)V(D,M,L,g,b);else if(T&2&&M.class!==L.class&&i(D,"class",null,L.class,b),T&4&&i(D,"style",M.style,L.style,b),T&8){const ae=v.dynamicProps;for(let _e=0;_e{J&&xt(J,g,v,h),z&&on(v,h,g,"updated")},d)},R=(h,v,g,d,b,y,P)=>{for(let D=0;D{if(v!==g){if(v!==ve)for(const y in v)!Yn(y)&&!(y in g)&&i(h,y,v[y],null,b,d);for(const y in g){if(Yn(y))continue;const P=g[y],D=v[y];P!==D&&y!=="value"&&i(h,y,D,P,b,d)}"value"in g&&i(h,"value",v.value,g.value,b)}},$=(h,v,g,d,b,y,P,D,T)=>{const S=v.el=h?h.el:l(""),z=v.anchor=h?h.anchor:l("");let{patchFlag:M,dynamicChildren:L,slotScopeIds:J}=v;J&&(D=D?D.concat(J):J),h==null?(o(S,g,d),o(z,g,d),N(v.children||[],g,z,b,y,P,D,T)):M>0&&M&64&&L&&h.dynamicChildren?(R(h.dynamicChildren,L,g,b,y,P,D),(v.key!=null||b&&v===b.subTree)&&Ni(h,v,!0)):se(h,v,g,z,b,y,P,D,T)},ne=(h,v,g,d,b,y,P,D,T)=>{v.slotScopeIds=D,h==null?v.shapeFlag&512?b.ctx.activate(v,g,d,P,T):le(v,g,d,b,y,P,T):De(h,v,T)},le=(h,v,g,d,b,y,P)=>{const D=h.component=Du(h,d,b);if(pr(h)&&(D.ctx.renderer=Pt),Au(D,!1,P),D.asyncDep){if(b&&b.registerDep(D,ie,P),!h.el){const T=D.subTree=de(Ke);Y(null,T,v,g)}}else ie(D,h,v,g,b,y,P)},De=(h,v,g)=>{const d=v.component=h.component;if(yu(h,v,g))if(d.asyncDep&&!d.asyncResolved){ee(d,v,g);return}else d.next=v,d.update();else v.el=h.el,d.vnode=v},ie=(h,v,g,d,b,y,P)=>{const D=()=>{if(h.isMounted){let{next:M,bu:L,u:J,parent:ae,vnode:_e}=h;{const Ze=zl(h);if(Ze){M&&(M.el=_e.el,ee(h,M,P)),Ze.asyncDep.then(()=>{h.isUnmounted||D()});return}}let ge=M,Je;rn(h,!1),M?(M.el=_e.el,ee(h,M,P)):M=_e,L&&Bo(L),(Je=M.props&&M.props.onVnodeBeforeUpdate)&&xt(Je,ae,M,_e),rn(h,!0);const je=Br(h),ut=h.subTree;h.subTree=je,C(ut,je,f(ut.el),bn(ut),h,b,y),M.el=je.el,ge===null&&wu(h,je.el),J&&Xe(J,b),(Je=M.props&&M.props.onVnodeUpdated)&&Xe(()=>xt(Je,ae,M,_e),b)}else{let M;const{el:L,props:J}=v,{bm:ae,m:_e,parent:ge,root:Je,type:je}=h,ut=Dn(v);if(rn(h,!1),ae&&Bo(ae),!ut&&(M=J&&J.onVnodeBeforeMount)&&xt(M,ge,v),rn(h,!0),L&&Rn){const Ze=()=>{h.subTree=Br(h),Rn(L,h.subTree,h,b,null)};ut?je.__asyncHydrate(L,h,Ze):Ze()}else{Je.ce&&Je.ce._injectChildStyle(je);const Ze=h.subTree=Br(h);C(null,Ze,g,d,h,b,y),v.el=Ze.el}if(_e&&Xe(_e,b),!ut&&(M=J&&J.onVnodeMounted)){const Ze=v;Xe(()=>xt(M,ge,Ze),b)}(v.shapeFlag&256||ge&&Dn(ge.vnode)&&ge.vnode.shapeFlag&256)&&h.a&&Xe(h.a,b),h.isMounted=!0,v=g=d=null}};h.scope.on();const T=h.effect=new nl(D);h.scope.off();const S=h.update=T.run.bind(T),z=h.job=T.runIfDirty.bind(T);z.i=h,z.id=h.uid,T.scheduler=()=>Bi(z),rn(h,!0),S()},ee=(h,v,g)=>{v.component=h;const d=h.vnode.props;h.vnode=v,h.next=null,iu(h,v.props,d,g),cu(h,v.children,g),tn(),Zi(h),nn()},se=(h,v,g,d,b,y,P,D,T=!1)=>{const S=h&&h.children,z=h?h.shapeFlag:0,M=v.children,{patchFlag:L,shapeFlag:J}=v;if(L>0){if(L&128){Nt(S,M,g,d,b,y,P,D,T);return}else if(L&256){lt(S,M,g,d,b,y,P,D,T);return}}J&8?(z&16&&Ct(S,b,y),M!==S&&c(g,M)):z&16?J&16?Nt(S,M,g,d,b,y,P,D,T):Ct(S,b,y,!0):(z&8&&c(g,""),J&16&&N(M,g,d,b,y,P,D,T))},lt=(h,v,g,d,b,y,P,D,T)=>{h=h||Pn,v=v||Pn;const S=h.length,z=v.length,M=Math.min(S,z);let L;for(L=0;Lz?Ct(h,b,y,!0,!1,M):N(v,g,d,b,y,P,D,T,M)},Nt=(h,v,g,d,b,y,P,D,T)=>{let S=0;const z=v.length;let M=h.length-1,L=z-1;for(;S<=M&&S<=L;){const J=h[S],ae=v[S]=T?Kt(v[S]):_t(v[S]);if(pn(J,ae))C(J,ae,g,null,b,y,P,D,T);else break;S++}for(;S<=M&&S<=L;){const J=h[M],ae=v[L]=T?Kt(v[L]):_t(v[L]);if(pn(J,ae))C(J,ae,g,null,b,y,P,D,T);else break;M--,L--}if(S>M){if(S<=L){const J=L+1,ae=JL)for(;S<=M;)ze(h[S],b,y,!0),S++;else{const J=S,ae=S,_e=new Map;for(S=ae;S<=L;S++){const Qe=v[S]=T?Kt(v[S]):_t(v[S]);Qe.key!=null&&_e.set(Qe.key,S)}let ge,Je=0;const je=L-ae+1;let ut=!1,Ze=0;const Ln=new Array(je);for(S=0;S=je){ze(Qe,b,y,!0);continue}let bt;if(Qe.key!=null)bt=_e.get(Qe.key);else for(ge=ae;ge<=L;ge++)if(Ln[ge-ae]===0&&pn(Qe,v[ge])){bt=ge;break}bt===void 0?ze(Qe,b,y,!0):(Ln[bt-ae]=S+1,bt>=Ze?Ze=bt:ut=!0,C(Qe,v[bt],g,null,b,y,P,D,T),Je++)}const Vi=ut?pu(Ln):Pn;for(ge=Vi.length-1,S=je-1;S>=0;S--){const Qe=ae+S,bt=v[Qe],Wi=Qe+1{const{el:y,type:P,transition:D,children:T,shapeFlag:S}=h;if(S&6){qe(h.component.subTree,v,g,d);return}if(S&128){h.suspense.move(v,g,d);return}if(S&64){P.move(h,v,g,Pt);return}if(P===we){o(y,v,g);for(let M=0;MD.enter(y),b);else{const{leave:M,delayLeave:L,afterLeave:J}=D,ae=()=>o(y,v,g),_e=()=>{M(y,()=>{ae(),J&&J()})};L?L(y,ae,_e):_e()}else o(y,v,g)},ze=(h,v,g,d=!1,b=!1)=>{const{type:y,props:P,ref:D,children:T,dynamicChildren:S,shapeFlag:z,patchFlag:M,dirs:L,cacheIndex:J}=h;if(M===-2&&(b=!1),D!=null&&ni(D,null,g,h,!0),J!=null&&(v.renderCache[J]=void 0),z&256){v.ctx.deactivate(h);return}const ae=z&1&&L,_e=!Dn(h);let ge;if(_e&&(ge=P&&P.onVnodeBeforeUnmount)&&xt(ge,v,h),z&6)Cr(h.component,g,d);else{if(z&128){h.suspense.unmount(g,d);return}ae&&on(h,null,v,"beforeUnmount"),z&64?h.type.remove(h,v,g,Pt,d):S&&!S.hasOnce&&(y!==we||M>0&&M&64)?Ct(S,v,g,!1,!0):(y===we&&M&384||!b&&z&16)&&Ct(T,v,g),d&&Fn(h)}(_e&&(ge=P&&P.onVnodeUnmounted)||ae)&&Xe(()=>{ge&&xt(ge,v,h),ae&&on(h,null,v,"unmounted")},g)},Fn=h=>{const{type:v,el:g,anchor:d,transition:b}=h;if(v===we){Sr(g,d);return}if(v===Mr){E(h);return}const y=()=>{r(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(h.shapeFlag&1&&b&&!b.persisted){const{leave:P,delayLeave:D}=b,T=()=>P(g,y);D?D(h.el,y,T):T()}else y()},Sr=(h,v)=>{let g;for(;h!==v;)g=p(h),r(h),h=g;r(v)},Cr=(h,v,g)=>{const{bum:d,scope:b,job:y,subTree:P,um:D,m:T,a:S}=h;as(T),as(S),d&&Bo(d),b.stop(),y&&(y.flags|=8,ze(P,h,v,g)),D&&Xe(D,v),Xe(()=>{h.isUnmounted=!0},v),v&&v.pendingBranch&&!v.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===v.pendingId&&(v.deps--,v.deps===0&&v.resolve())},Ct=(h,v,g,d=!1,b=!1,y=0)=>{for(let P=y;P{if(h.shapeFlag&6)return bn(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const v=p(h.anchor||h.el),g=v&&v[wl];return g?p(g):v};let Et=!1;const Nn=(h,v,g)=>{h==null?v._vnode&&ze(v._vnode,null,null,!0):C(v._vnode||null,h,v,null,null,null,g),v._vnode=h,Et||(Et=!0,Zi(),xl(),Et=!1)},Pt={p:C,um:ze,m:qe,r:Fn,mt:le,mc:N,pc:se,pbc:R,n:bn,o:e};let Rt,Rn;return t&&([Rt,Rn]=t(Pt)),{render:Nn,hydrate:Rt,createApp:tu(Nn,Rt)}}function Or({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function rn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function du(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ni(e,t,n=!1){const o=e.children,r=t.children;if(H(o)&&H(r))for(let i=0;i>1,e[n[l]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function zl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zl(t)}function as(e){if(e)for(let t=0;tAn(hu);function Ue(e,t,n){return Yl(e,t,n)}function Yl(e,t,n=ve){const{immediate:o,deep:r,flush:i,once:s}=n,l=Be({},n);let a;if(br)if(i==="sync"){const p=gu();a=p.__watcherHandles||(p.__watcherHandles=[])}else if(!t||o)l.once=!0;else return{stop:pt,resume:pt,pause:pt};const u=Me;l.call=(p,x,_)=>vt(p,u,x,_);let c=!1;i==="post"?l.scheduler=p=>{Xe(p,u&&u.suspense)}:i!=="sync"&&(c=!0,l.scheduler=(p,x)=>{x?p():Bi(p)}),l.augmentJob=p=>{t&&(p.flags|=4),c&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const f=Sc(e,t,l);return a&&a.push(f),f}function mu(e,t,n){const o=this.proxy,r=Pe(e)?e.includes(".")?Xl(o,e):()=>o[e]:e.bind(o,o);let i;Q(t)?i=t:(i=t.handler,n=t);const s=bo(this),l=Yl(r,i.bind(o),n);return s(),l}function Xl(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${mt(t)}Modifiers`]||e[`${en(t)}Modifiers`];function bu(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||ve;let r=n;const i=t.startsWith("update:"),s=i&&vu(o,t.slice(7));s&&(s.trim&&(r=n.map(c=>Pe(c)?c.trim():c)),s.number&&(r=n.map(Uo)));let l,a=o[l=Er(t)]||o[l=Er(mt(t))];!a&&i&&(a=o[l=Er(en(t))]),a&&vt(a,e,6,r);const u=o[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,vt(u,e,6,r)}}function Gl(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let s={},l=!1;if(!Q(e)){const a=u=>{const c=Gl(u,t,!0);c&&(l=!0,Be(s,c))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!l?(xe(e)&&o.set(e,null),null):(H(i)?i.forEach(a=>s[a]=null):Be(s,i),xe(e)&&o.set(e,s),s)}function mr(e,t){return!e||!ir(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,en(t))||me(e,t))}function Br(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:s,attrs:l,emit:a,render:u,renderCache:c,props:f,data:p,setupState:x,ctx:_,inheritAttrs:C}=e,K=Yo(e);let Y,O;try{if(n.shapeFlag&4){const E=r||o,k=E;Y=_t(u.call(k,E,c,f,x,p,_)),O=l}else{const E=t;Y=_t(E.length>1?E(f,{attrs:l,slots:s,emit:a}):E(f,null)),O=t.props?l:xu(l)}}catch(E){Jn.length=0,fr(E,e,1),Y=de(Ke)}let B=Y;if(O&&C!==!1){const E=Object.keys(O),{shapeFlag:k}=B;E.length&&k&7&&(i&&E.some(bi)&&(O=_u(O,i)),B=Qt(B,O,!1,!0))}return n.dirs&&(B=Qt(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&(B.transition=n.transition),Y=B,Yo(K),Y}const xu=e=>{let t;for(const n in e)(n==="class"||n==="style"||ir(n))&&((t||(t={}))[n]=e[n]);return t},_u=(e,t)=>{const n={};for(const o in e)(!bi(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function yu(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:l,patchFlag:a}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return o?cs(o,s,u):!!s;if(a&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function Su(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):Pc(e)}const we=Symbol.for("v-fgt"),vr=Symbol.for("v-txt"),Ke=Symbol.for("v-cmt"),Mr=Symbol.for("v-stc"),Jn=[];let ot=null;function F(e=!1){Jn.push(ot=e?null:[])}function Cu(){Jn.pop(),ot=Jn[Jn.length-1]||null}let ao=1;function us(e){ao+=e,e<0&&ot&&(ot.hasOnce=!0)}function Jl(e){return e.dynamicChildren=ao>0?ot||Pn:null,Cu(),ao>0&&ot&&ot.push(e),e}function q(e,t,n,o,r,i){return Jl(m(e,t,n,o,r,i,!0))}function rt(e,t,n,o,r){return Jl(de(e,t,n,o,r,!0))}function qo(e){return e?e.__v_isVNode===!0:!1}function pn(e,t){return e.type===t.type&&e.key===t.key}const Zl=({key:e})=>e??null,Fo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Pe(e)||Ie(e)||Q(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function m(e,t=null,n=null,o=0,r=null,i=e===we?0:1,s=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zl(t),ref:t&&Fo(t),scopeId:yl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Oe};return l?(Ri(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=Pe(n)?8:16),ao>0&&!s&&ot&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&ot.push(a),a}const de=Eu;function Eu(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===Bl)&&(e=Ke),qo(e)){const l=Qt(e,t,!0);return n&&Ri(l,n),ao>0&&!i&&ot&&(l.shapeFlag&6?ot[ot.indexOf(e)]=l:ot.push(l)),l.patchFlag=-2,l}if(Mu(e)&&(e=e.__vccOpts),t){t=Pu(t);let{class:l,style:a}=t;l&&!Pe(l)&&(t.class=te(l)),xe(a)&&(Di(a)&&!H(a)&&(a=Be({},a)),t.style=ho(a))}const s=Pe(e)?1:ql(e)?128:Sl(e)?64:xe(e)?4:Q(e)?2:0;return m(e,t,n,o,r,s,i,!0)}function Pu(e){return e?Di(e)||Ll(e)?Be({},e):e:null}function Qt(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:s,children:l,transition:a}=e,u=t?li(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Zl(u),ref:t&&t.ref?n&&i?H(i)?i.concat(Fo(t)):[i,Fo(t)]:Fo(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==we?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qt(e.ssContent),ssFallback:e.ssFallback&&Qt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&o&&Xo(c,a.clone(c)),c}function co(e=" ",t=0){return de(vr,null,e,t)}function Ee(e="",t=!1){return t?(F(),rt(Ke,null,e)):de(Ke,null,e)}function _t(e){return e==null||typeof e=="boolean"?de(Ke):H(e)?de(we,null,e.slice()):typeof e=="object"?Kt(e):de(vr,null,String(e))}function Kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qt(e)}function Ri(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),Ri(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ll(t)?t._ctx=Oe:r===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Q(t)?(t={default:t,_ctx:Oe},n=32):(t=String(t),o&64?(n=16,t=[co(t)]):n=8);e.children=t,e.shapeFlag|=n}function li(...e){const t={};for(let n=0;nMe||Oe;let Jo,ai;{const e=Gs(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(s=>s(i)):r[0](i)}};Jo=t("__VUE_INSTANCE_SETTERS__",n=>Me=n),ai=t("__VUE_SSR_SETTERS__",n=>br=n)}const bo=e=>{const t=Me;return Jo(e),e.scope.on(),()=>{e.scope.off(),Jo(t)}},fs=()=>{Me&&Me.scope.off(),Jo(null)};function ea(e){return e.vnode.shapeFlag&4}let br=!1;function Au(e,t=!1,n=!1){t&&ai(t);const{props:o,children:r}=e.vnode,i=ea(e);ru(e,o,i,t),au(e,r,n);const s=i?$u(e,t):void 0;return t&&ai(!1),s}function $u(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,zc);const{setup:o}=n;if(o){const r=e.setupContext=o.length>1?na(e):null,i=bo(e);tn();const s=mo(o,e,0,[e.props,r]);if(nn(),i(),Ks(s)){if(Dn(e)||Al(e),s.then(fs,fs),t)return s.then(l=>{ds(e,l,t)}).catch(l=>{fr(l,e,0)});e.asyncDep=s}else ds(e,s,t)}else ta(e,t)}function ds(e,t,n){Q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xe(t)&&(e.setupState=ml(t)),ta(e,n)}let ps;function ta(e,t,n){const o=e.type;if(!e.render){if(!t&&ps&&!o.render){const r=o.template||ki(e).template;if(r){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:a}=o,u=Be(Be({isCustomElement:i,delimiters:l},s),a);o.render=ps(r,u)}}e.render=o.render||pt}{const r=bo(e);tn();try{Gc(e)}finally{nn(),r()}}}const Ou={get(e,t){return Re(e,"get",""),e[t]}};function na(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ou),slots:e.slots,emit:e.emit,expose:t}}function xr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ml(Ai(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in qn)return qn[n](e)},has(t,n){return n in t||n in qn}})):e.proxy}function Bu(e,t=!0){return Q(e)?e.displayName||e.name:e.name||t&&e.__name}function Mu(e){return Q(e)&&"__vccOpts"in e}const ue=(e,t)=>yc(e,t,br);function ku(e,t,n){const o=arguments.length;return o===2?xe(t)&&!H(t)?qo(t)?de(e,null,[t]):de(e,t):de(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qo(n)&&(n=[n]),de(e,t,n))}const Fu="3.5.1";/** -* @vue/runtime-dom v3.5.1 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let ci;const hs=typeof window<"u"&&window.trustedTypes;if(hs)try{ci=hs.createPolicy("vue",{createHTML:e=>e})}catch{}const oa=ci?e=>ci.createHTML(e):e=>e,Nu="http://www.w3.org/2000/svg",Ru="http://www.w3.org/1998/Math/MathML",It=typeof document<"u"?document:null,gs=It&&It.createElement("template"),Lu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?It.createElementNS(Nu,e):t==="mathml"?It.createElementNS(Ru,e):n?It.createElement(e,{is:n}):It.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>It.createTextNode(e),createComment:e=>It.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>It.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const s=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{gs.innerHTML=oa(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const l=gs.content;if(o==="svg"||o==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jt="transition",Hn="animation",uo=Symbol("_vtc"),ra={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},ju=Be({},El,ra),Hu=e=>(e.displayName="Transition",e.props=ju,e),ui=Hu((e,{slots:t})=>ku(Bc,Vu(e),t)),sn=(e,t=[])=>{H(e)?e.forEach(n=>n(...t)):e&&e(...t)},ms=e=>e?H(e)?e.some(t=>t.length>1):e.length>1:!1;function Vu(e){const t={};for(const $ in e)$ in ra||(t[$]=e[$]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:u=s,appearToClass:c=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:x=`${n}-leave-to`}=e,_=Wu(r),C=_&&_[0],K=_&&_[1],{onBeforeEnter:Y,onEnter:O,onEnterCancelled:B,onLeave:E,onLeaveCancelled:k,onBeforeAppear:U=Y,onAppear:oe=O,onAppearCancelled:N=B}=t,w=($,ne,le)=>{ln($,ne?c:l),ln($,ne?u:s),le&&le()},R=($,ne)=>{$._isLeaving=!1,ln($,f),ln($,x),ln($,p),ne&&ne()},V=$=>(ne,le)=>{const De=$?oe:O,ie=()=>w(ne,$,le);sn(De,[ne,ie]),vs(()=>{ln(ne,$?a:i),Ht(ne,$?c:l),ms(De)||bs(ne,o,C,ie)})};return Be(t,{onBeforeEnter($){sn(Y,[$]),Ht($,i),Ht($,s)},onBeforeAppear($){sn(U,[$]),Ht($,a),Ht($,u)},onEnter:V(!1),onAppear:V(!0),onLeave($,ne){$._isLeaving=!0;const le=()=>R($,ne);Ht($,f),Ht($,p),zu(),vs(()=>{$._isLeaving&&(ln($,f),Ht($,x),ms(E)||bs($,o,K,le))}),sn(E,[$,le])},onEnterCancelled($){w($,!1),sn(B,[$])},onAppearCancelled($){w($,!0),sn(N,[$])},onLeaveCancelled($){R($),sn(k,[$])}})}function Wu(e){if(e==null)return null;if(xe(e))return[kr(e.enter),kr(e.leave)];{const t=kr(e);return[t,t]}}function kr(e){return Na(e)}function Ht(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[uo]||(e[uo]=new Set)).add(t)}function ln(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[uo];n&&(n.delete(t),n.size||(e[uo]=void 0))}function vs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Uu=0;function bs(e,t,n,o){const r=e._endId=++Uu,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:l,propCount:a}=Ku(e,t);if(!s)return o();const u=s+"end";let c=0;const f=()=>{e.removeEventListener(u,p),i()},p=x=>{x.target===e&&++c>=a&&f()};setTimeout(()=>{c(n[_]||"").split(", "),r=o(`${jt}Delay`),i=o(`${jt}Duration`),s=xs(r,i),l=o(`${Hn}Delay`),a=o(`${Hn}Duration`),u=xs(l,a);let c=null,f=0,p=0;t===jt?s>0&&(c=jt,f=s,p=i.length):t===Hn?u>0&&(c=Hn,f=u,p=a.length):(f=Math.max(s,u),c=f>0?s>u?jt:Hn:null,p=c?c===jt?i.length:a.length:0);const x=c===jt&&/\b(transform|all)(,|$)/.test(o(`${jt}Property`).toString());return{type:c,timeout:f,propCount:p,hasTransform:x}}function xs(e,t){for(;e.length_s(n)+_s(e[o])))}function _s(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function zu(){return document.body.offsetHeight}function Yu(e,t,n){const o=e[uo];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zo=Symbol("_vod"),ia=Symbol("_vsh"),Qo={beforeMount(e,{value:t},{transition:n}){e[Zo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Vn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Vn(e,!0),o.enter(e)):o.leave(e,()=>{Vn(e,!1)}):Vn(e,t))},beforeUnmount(e,{value:t}){Vn(e,t)}};function Vn(e,t){e.style.display=t?e[Zo]:"none",e[ia]=!t}const Xu=Symbol(""),Gu=/(^|;)\s*display\s*:/;function qu(e,t,n){const o=e.style,r=Pe(n);let i=!1;if(n&&!r){if(t)if(Pe(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&No(o,l,"")}else for(const s in t)n[s]==null&&No(o,s,"");for(const s in n)s==="display"&&(i=!0),No(o,s,n[s])}else if(r){if(t!==n){const s=o[Xu];s&&(n+=";"+s),o.cssText=n,i=Gu.test(n)}}else t&&e.removeAttribute("style");Zo in e&&(e[Zo]=i?o.display:"",e[ia]&&(o.display="none"))}const ys=/\s*!important$/;function No(e,t,n){if(H(n))n.forEach(o=>No(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ju(e,t);ys.test(n)?e.setProperty(en(o),n.replace(ys,""),"important"):e[o]=n}}const ws=["Webkit","Moz","ms"],Fr={};function Ju(e,t){const n=Fr[t];if(n)return n;let o=mt(t);if(o!=="filter"&&o in e)return Fr[t]=o;o=lr(o);for(let r=0;rNr||(nf.then(()=>Nr=0),Nr=Date.now());function rf(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;vt(sf(o,n.value),t,5,[o])};return n.value=e,n.attached=of(),n}function sf(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const Ts=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lf=(e,t,n,o,r,i)=>{const s=r==="svg";t==="class"?Yu(e,o,s):t==="style"?qu(e,n,o):ir(t)?bi(t)||ef(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):af(e,t,o,s))?(Zu(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Cs(e,t,o,s,i,t!=="value")):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Cs(e,t,o,s))};function af(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ts(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Ts(t)&&Pe(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!Pe(n)))}const On=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>Bo(t,n):t};function cf(e){e.target.composing=!0}function Is(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $t=Symbol("_assign"),sa={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e[$t]=On(r);const i=o||r.props&&r.props.type==="number";Yt(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Uo(l)),e[$t](l)}),n&&Yt(e,"change",()=>{e.value=e.value.trim()}),t||(Yt(e,"compositionstart",cf),Yt(e,"compositionend",Is),Yt(e,"change",Is))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:r,number:i}},s){if(e[$t]=On(s),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Uo(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||r&&e.value.trim()===a)||(e.value=a))}},uf={deep:!0,created(e,t,n){e[$t]=On(n),Yt(e,"change",()=>{const o=e._modelValue,r=fo(e),i=e.checked,s=e[$t];if(H(o)){const l=yi(o,r),a=l!==-1;if(i&&!a)s(o.concat(r));else if(!i&&a){const u=[...o];u.splice(l,1),s(u)}}else if(Mn(o)){const l=new Set(o);i?l.add(r):l.delete(r),s(l)}else s(aa(e,i))})},mounted:Ds,beforeUpdate(e,t,n){e[$t]=On(n),Ds(e,t,n)}};function Ds(e,{value:t,oldValue:n},o){e._modelValue=t;let r;H(t)?r=yi(t,o.props.value)>-1:Mn(t)?r=t.has(o.props.value):r=go(t,aa(e,!0)),e.checked!==r&&(e.checked=r)}const la={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=Mn(t);Yt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Uo(fo(s)):fo(s));e[$t](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,dr(()=>{e._assigning=!1})}),e[$t]=On(o)},mounted(e,{value:t,modifiers:{number:n}}){As(e,t)},beforeUpdate(e,t,n){e[$t]=On(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||As(e,t)}};function As(e,t,n){const o=e.multiple,r=H(t);if(!(o&&!r&&!Mn(t))){for(let i=0,s=e.options.length;iString(c)===String(a)):l.selected=yi(t,a)>-1}else l.selected=t.has(a);else if(go(fo(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function fo(e){return"_value"in e?e._value:e.value}function aa(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ff=["ctrl","shift","alt","meta"],df={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)=>ff.some(n=>e[`${n}Key`]&&!t.includes(n))},ce=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...i)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=r=>{if(!("key"in r))return;const i=en(r.key);if(t.some(s=>s===i||pf[s]===i))return e(r)})},hf=Be({patchProp:lf},Lu);let $s;function gf(){return $s||($s=uu(hf))}const mf=(...e)=>{const t=gf().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=bf(o);if(!r)return;const i=t._component;!Q(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const s=n(r,!1,vf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function vf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bf(e){return Pe(e)?document.querySelector(e):e}var xf=!1;/*! - * pinia v2.2.2 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */let ca;const _r=e=>ca=e,ua=Symbol();function fi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Zn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Zn||(Zn={}));function _f(){const e=el(!0),t=e.run(()=>re({}));let n=[],o=[];const r=Ai({install(i){_r(r),r._a=i,i.provide(ua,r),i.config.globalProperties.$pinia=r,o.forEach(s=>n.push(s)),o=[]},use(i){return!this._a&&!xf?o.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const fa=()=>{};function Os(e,t,n,o=fa){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&tl()&&Ka(r),r}function _n(e,...t){e.slice().forEach(n=>{n(...t)})}const yf=e=>e(),Bs=Symbol(),Lr=Symbol();function di(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];fi(r)&&fi(o)&&e.hasOwnProperty(n)&&!Ie(o)&&!Jt(o)?e[n]=di(r,o):e[n]=o}return e}const wf=Symbol();function Sf(e){return!fi(e)||!e.hasOwnProperty(wf)}const{assign:Vt}=Object;function Cf(e){return!!(Ie(e)&&e.effect)}function Ef(e,t,n,o){const{state:r,actions:i,getters:s}=t,l=n.state.value[e];let a;function u(){l||(n.state.value[e]=r?r():{});const c=vc(n.state.value[e]);return Vt(c,i,Object.keys(s||{}).reduce((f,p)=>(f[p]=Ai(ue(()=>{_r(n);const x=n._s.get(e);return s[p].call(x,x)})),f),{}))}return a=da(e,u,t,n,o,!0),a}function da(e,t,n={},o,r,i){let s;const l=Vt({actions:{}},n),a={deep:!0};let u,c,f=[],p=[],x;const _=o.state.value[e];!i&&!_&&(o.state.value[e]={}),re({});let C;function K(N){let w;u=c=!1,typeof N=="function"?(N(o.state.value[e]),w={type:Zn.patchFunction,storeId:e,events:x}):(di(o.state.value[e],N),w={type:Zn.patchObject,payload:N,storeId:e,events:x});const R=C=Symbol();dr().then(()=>{C===R&&(u=!0)}),c=!0,_n(f,w,o.state.value[e])}const Y=i?function(){const{state:w}=n,R=w?w():{};this.$patch(V=>{Vt(V,R)})}:fa;function O(){s.stop(),f=[],p=[],o._s.delete(e)}const B=(N,w="")=>{if(Bs in N)return N[Lr]=w,N;const R=function(){_r(o);const V=Array.from(arguments),$=[],ne=[];function le(ee){$.push(ee)}function De(ee){ne.push(ee)}_n(p,{args:V,name:R[Lr],store:k,after:le,onError:De});let ie;try{ie=N.apply(this&&this.$id===e?this:k,V)}catch(ee){throw _n(ne,ee),ee}return ie instanceof Promise?ie.then(ee=>(_n($,ee),ee)).catch(ee=>(_n(ne,ee),Promise.reject(ee))):(_n($,ie),ie)};return R[Bs]=!0,R[Lr]=w,R},E={_p:o,$id:e,$onAction:Os.bind(null,p),$patch:K,$reset:Y,$subscribe(N,w={}){const R=Os(f,N,w.detached,()=>V()),V=s.run(()=>Ue(()=>o.state.value[e],$=>{(w.flush==="sync"?c:u)&&N({storeId:e,type:Zn.direct,events:x},$)},Vt({},a,w)));return R},$dispose:O},k=ur(E);o._s.set(e,k);const oe=(o._a&&o._a.runWithContext||yf)(()=>o._e.run(()=>(s=el()).run(()=>t({action:B}))));for(const N in oe){const w=oe[N];if(Ie(w)&&!Cf(w)||Jt(w))i||(_&&Sf(w)&&(Ie(w)?w.value=_[N]:di(w,_[N])),o.state.value[e][N]=w);else if(typeof w=="function"){const R=B(w,N);oe[N]=R,l.actions[N]=w}}return Vt(k,oe),Vt(pe(k),oe),Object.defineProperty(k,"$state",{get:()=>o.state.value[e],set:N=>{K(w=>{Vt(w,N)})}}),o._p.forEach(N=>{Vt(k,s.run(()=>N({store:k,app:o._a,pinia:o,options:l})))}),_&&i&&n.hydrate&&n.hydrate(k.$state,_),u=!0,c=!0,k}function Pf(e,t,n){let o,r;const i=typeof t=="function";typeof e=="string"?(o=e,r=i?n:t):(r=e,o=e.id);function s(l,a){const u=ou();return l=l||(u?An(ua,null):null),l&&_r(l),l=ca,l._s.has(o)||(i?da(o,t,r,l):Ef(o,r,l)),l._s.get(o)}return s.$id=o,s}var Ro=(e=>(e.Before="before",e.After="after",e.Below="below",e))(Ro||{}),hn=(e=>(e.Page="page",e.Box="box",e))(hn||{});const st=Pf("editor",{state:()=>({currentBoxId:0,boxes:[],features:[],currentPageId:0,site:{},baseUrl:"",previewUrl:"",pages:[],sites:[],partials:{},i18n:{},mode:"single",sessionKey:"",instanceId:"",draftParam:"",activeRightColumnTab:"box",iframe:null,iframeWidth:0,zoom:100,addBoxParentId:null,addBoxBeforeId:null,partialContexts:["default"],initialPartialContexts:["default"],settings:{partial_selector_default_cols:4}}),actions:{replace(e){this.pages=e.pages??[],this.boxes=e.boxes??[]},init(e){var n;const t=window.__OC_BOXES_STATE__[e];this.instanceId=e,this.currentPageId=t.initialPageId??((n=t.pages[0])==null?void 0:n.id)??0,this.currentBoxId=t.initialBoxId??0,this.site=t.site,this.baseUrl=t.baseUrl,this.previewUrl=t.previewUrl,this.pages=t.pages,this.boxes=t.boxes,this.partials=t.partials,this.i18n=t.i18n,this.mode=t.mode,this.features=t.features,this.sessionKey=t.sessionKey,this.activeRightColumnTab=t.mode==="full"?"page":"box",this.settings=t.settings,this.draftParam=t.draftParam,this.partialContexts=t.partialContexts,this.initialPartialContexts=t.partialContexts,this.sites=t.sites},resetPartialContexts(){this.partialContexts=this.initialPartialContexts}},getters:{isFullMode(){return this.mode==="full"},isSingleMode(){return!this.isFullMode},hasFeature(){return e=>this.features[e]??!1},unpublishedPages(){const e=[];function t(n){for(const o of n)o.has_pending_changes&&e.push(o),o.children&&t(o.children);return e}return t(this.pages),e}}});let jr;function W(e){return jr||(jr=st()),e=e.replace("offline.boxes::lang.",""),jr.i18n[e]??e}const Tf={class:"text-xs border-1 uppercase border-dashed border-primary rounded text-primary text-center"};var pa=Le({__name:"BoxListAddItem",props:{parent:{default:null},partialContexts:{default:[]}},emits:["addBox"],setup(e,{emit:t}){return(n,o)=>(F(),q("li",Tf,[m("a",{href:"#",onClick:o[0]||(o[0]=ce(r=>n.$emit("addBox",{parent_id:e.parent,partial_contexts:e.partialContexts}),["prevent","stop"])),class:"block cursor-pointer hover:bg-gray-100 hover:no-underline rounded py-2 pr-4 hover:text-primary"},j(A(W)("add_box")),1)]))}});const If=["data-id","data-contexts","data-partial"],Df={class:"flex-1"},Af={class:"flex"},$f={key:0,class:"flex-0 mr-2"},Of={class:"flex-1"},Bf={class:"flex-0 invisible group-hover:!visible flex -mr-2"},Mf=["title"],kf={key:0},Ff=["title"],Nf={key:0,class:"mt-2"},Rf={key:1,class:"mt-2"};var Lf=Le({__name:"BoxListItem",props:{box:Object,level:Number},emits:["clickBox","duplicateBox","deleteBox","addBox","sort"],setup(e,{emit:t}){const n=e,o=st(),r=ue(()=>o.partials),i=ue(()=>n.box.locked??[]),s=ue(()=>o.currentBoxId),l=ue(()=>a.value.labelFrom&&n.box.data[a.value.labelFrom]?n.box.data[a.value.labelFrom]:a.value.name),a=ue(()=>n.box&&r.value.hasOwnProperty(n.box.partial)?r.value[n.box.partial]:{handle:"unknown",name:"unknown"}),u=ue(()=>n.box.references_box_id??n.box.id),c=ue(()=>Array.isArray(a.value.contexts)?a.value.contexts:["default"]);return(f,p)=>{var x;return F(),q("li",{"data-id":u.value,"data-contexts":c.value.join(","),"data-partial":a.value.handle,class:te(["page-list-node text-sm bg-oc-body border rounded py-2 pr-4 shadow-sm hover:!opacity-100",{"border-primary":u.value===s.value,"opacity-50":!e.box.is_enabled,hidden:a.value.handle==="unknown"||i.value.includes("position")}])},[m("div",{class:"flex w-full group cursor-pointer",onClick:p[8]||(p[8]=ce(_=>f.$emit("clickBox",u.value),["stop","prevent"]))},[p[12]||(p[12]=m("div",{class:"px-2.5 w-5 cursor-move drag-handle"},[m("i",{class:"icon-ellipsis-v"})],-1)),m("div",Df,[m("div",Af,[(x=e.box)!=null&&x.is_enabled?Ee("",!0):(F(),q("div",$f,p[9]||(p[9]=[m("i",{class:"icon-eye-slash"},null,-1)]))),m("div",Of,j(l.value),1),m("div",Bf,[m("span",null,[m("a",{href:"#",onClick:p[0]||(p[0]=ce(_=>f.$emit("duplicateBox",e.box.id),["stop","prevent"])),class:"px-2 py-0.5 rounded hover:bg-gray-100",title:A(W)("duplicate")},p[10]||(p[10]=[m("i",{class:"icon-copy"},null,-1)]),8,Mf)]),i.value.includes("deletion")?Ee("",!0):(F(),q("span",kf,[m("a",{href:"#",onClick:p[1]||(p[1]=ce(_=>f.$emit("deleteBox",e.box.id),["stop","prevent"])),class:"px-2 py-0.5 rounded hover:bg-gray-100",title:A(W)("delete")},p[11]||(p[11]=[m("i",{class:"icon-trash"},null,-1)]),8,Ff)]))])]),a.value.children.length>0?(F(),q("div",Nf,[de(Aa,{onClickBox:p[2]||(p[2]=_=>f.$emit("clickBox",_)),onDeleteBox:p[3]||(p[3]=_=>f.$emit("deleteBox",_)),onDuplicateBox:p[4]||(p[4]=_=>f.$emit("duplicateBox",_)),onAddBox:p[5]||(p[5]=_=>f.$emit("addBox",_)),onSort:p[6]||(p[6]=_=>f.$emit("sort",_)),boxes:e.box.children,parent:e.box,level:n.level+1},null,8,["boxes","parent","level"])])):Ee("",!0),a.value.children.length>0?(F(),q("ul",Rf,[de(pa,{"partial-contexts":a.value.children,parent:e.box.id,onAddBox:p[7]||(p[7]=_=>f.$emit("addBox",_))},null,8,["partial-contexts","parent"])])):Ee("",!0)])])],10,If)}}});const kn=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},jf=kn(Lf,[["__scopeId","data-v-6e231b69"]]);/**! - * Sortable 1.15.3 - * @author RubaXa - * @author owenm - * @license MIT - */function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function St(e){for(var t=1;t=0)&&(n[r]=e[r]);return n}function Wf(e,t){if(e==null)return{};var n=Vf(e,t),o,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}var Uf="1.15.3";function Ot(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ft=Ot(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xo=Ot(/Edge/i),ks=Ot(/firefox/i),Qn=Ot(/safari/i)&&!Ot(/chrome/i)&&!Ot(/android/i),ha=Ot(/iP(ad|od|hone)/i),ga=Ot(/chrome/i)&&Ot(/android/i),ma={capture:!1,passive:!1};function he(e,t,n){e.addEventListener(t,n,!Ft&&ma)}function fe(e,t,n){e.removeEventListener(t,n,!Ft&&ma)}function er(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function va(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function dt(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&er(e,t):er(e,t))||o&&e===n)return e;if(e===n)break}while(e=va(e))}return null}var Fs=/\s+/g;function et(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Fs," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Fs," ")}}function X(e,t,n){var o=e&&e.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function $n(e,t){var n="";if(typeof e=="string")n=e;else do{var o=X(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function ba(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,i=o.length;if(n)for(;r=i:s=r<=i,!s)return o;if(o===yt())break;o=qt(o,!1)}return!1}function Bn(e,t,n,o){for(var r=0,i=0,s=e.children;i2&&arguments[2]!==void 0?arguments[2]:{},r=o.evt,i=Wf(o,Zf);_o.pluginEvent.bind(G)(t,n,St({dragEl:I,parentEl:Te,ghostEl:Z,rootEl:Se,nextEl:fn,lastDownEl:jo,cloneEl:Ce,cloneHidden:Xt,dragStarted:Un,putSortable:ke,activeSortable:G.active,originalEvent:r,oldIndex:En,oldDraggableIndex:to,newIndex:tt,newDraggableIndex:zt,hideGhostForTarget:Pa,unhideGhostForTarget:Ta,cloneNowHidden:function(){Xt=!0},cloneNowShown:function(){Xt=!1},dispatchSortableEvent:function(l){Ve({sortable:n,name:l,originalEvent:r})}},i))};function Ve(e){Jf(St({putSortable:ke,cloneEl:Ce,targetEl:I,rootEl:Se,oldIndex:En,oldDraggableIndex:to,newIndex:tt,newDraggableIndex:zt},e))}var I,Te,Z,Se,fn,jo,Ce,Xt,En,tt,to,zt,Do,ke,Cn=!1,tr=!1,nr=[],an,ft,Wr,Ur,Ls,js,Un,wn,no,oo=!1,Ao=!1,Ho,Fe,Kr=[],pi=!1,or=[],yr=typeof document<"u",$o=ha,Hs=xo||Ft?"cssFloat":"float",Qf=yr&&!ga&&!ha&&"draggable"in document.createElement("div"),Sa=function(){if(yr){if(Ft)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Ca=function(t,n){var o=X(t),r=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=Bn(t,0,n),s=Bn(t,1,n),l=i&&X(i),a=s&&X(s),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+$e(i).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+$e(s).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return s&&(a.clear==="both"||a.clear===f)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=r&&o[Hs]==="none"||s&&o[Hs]==="none"&&u+c>r)?"vertical":"horizontal"},ed=function(t,n,o){var r=o?t.left:t.top,i=o?t.right:t.bottom,s=o?t.width:t.height,l=o?n.left:n.top,a=o?n.right:n.bottom,u=o?n.width:n.height;return r===l||i===a||r+s/2===l+u/2},td=function(t,n){var o;return nr.some(function(r){var i=r[Ge].options.emptyInsertThreshold;if(!(!i||Li(r))){var s=$e(r),l=t>=s.left-i&&t<=s.right+i,a=n>=s.top-i&&n<=s.bottom+i;if(l&&a)return o=r}}),o},Ea=function(t){function n(i,s){return function(l,a,u,c){var f=l.options.group.name&&a.options.group.name&&l.options.group.name===a.options.group.name;if(i==null&&(s||f))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return n(i(l,a,u,c),s)(l,a,u,c);var p=(s?l:a).options.group.name;return i===!0||typeof i=="string"&&i===p||i.join&&i.indexOf(p)>-1}}var o={},r=t.group;(!r||Lo(r)!="object")&&(r={name:r}),o.name=r.name,o.checkPull=n(r.pull,!0),o.checkPut=n(r.put),o.revertClone=r.revertClone,t.group=o},Pa=function(){!Sa&&Z&&X(Z,"display","none")},Ta=function(){!Sa&&Z&&X(Z,"display","")};yr&&!ga&&document.addEventListener("click",function(e){if(tr)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),tr=!1,!1},!0);var cn=function(t){if(I){t=t.touches?t.touches[0]:t;var n=td(t.clientX,t.clientY);if(n){var o={};for(var r in t)t.hasOwnProperty(r)&&(o[r]=t[r]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[Ge]._onDragOver(o)}}},nd=function(t){I&&I.parentNode[Ge]._isOutsideThisEl(t.target)};function G(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Mt({},t),e[Ge]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ca(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:G.supportPointer!==!1&&"PointerEvent"in window&&!Qn,emptyInsertThreshold:5};_o.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);Ea(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:Qf,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?he(e,"pointerdown",this._onTapStart):(he(e,"mousedown",this._onTapStart),he(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(he(e,"dragover",this),he(e,"dragenter",this)),nr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Mt(this,Xf())}G.prototype={constructor:G,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(wn=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,I):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,o=this.el,r=this.options,i=r.preventOnFilter,s=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,a=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,c=r.filter;if(ud(o),!I&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Qn&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=dt(a,r.draggable,o,!1),!(a&&a.animated)&&jo!==a)){if(En=ct(a),to=ct(a,r.draggable),typeof c=="function"){if(c.call(this,t,a,this)){Ve({sortable:n,rootEl:u,name:"filter",targetEl:a,toEl:o,fromEl:o}),Ye("filter",n,{evt:t}),i&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=dt(u,f.trim(),o,!1),f)return Ve({sortable:n,rootEl:f,name:"filter",targetEl:a,fromEl:o,toEl:o}),Ye("filter",n,{evt:t}),!0}),c)){i&&t.cancelable&&t.preventDefault();return}r.handle&&!dt(u,r.handle,o,!1)||this._prepareDragStart(t,l,a)}}},_prepareDragStart:function(t,n,o){var r=this,i=r.el,s=r.options,l=i.ownerDocument,a;if(o&&!I&&o.parentNode===i){var u=$e(o);if(Se=i,I=o,Te=I.parentNode,fn=I.nextSibling,jo=o,Do=s.group,G.dragged=I,an={target:I,clientX:(n||t).clientX,clientY:(n||t).clientY},Ls=an.clientX-u.left,js=an.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,I.style["will-change"]="all",a=function(){if(Ye("delayEnded",r,{evt:t}),G.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!ks&&r.nativeDraggable&&(I.draggable=!0),r._triggerDragStart(t,n),Ve({sortable:r,name:"choose",originalEvent:t}),et(I,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){ba(I,c.trim(),zr)}),he(l,"dragover",cn),he(l,"mousemove",cn),he(l,"touchmove",cn),he(l,"mouseup",r._onDrop),he(l,"touchend",r._onDrop),he(l,"touchcancel",r._onDrop),ks&&this.nativeDraggable&&(this.options.touchStartThreshold=4,I.draggable=!0),Ye("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(xo||Ft))){if(G.eventCanceled){this._onDrop();return}he(l,"mouseup",r._disableDelayedDrag),he(l,"touchend",r._disableDelayedDrag),he(l,"touchcancel",r._disableDelayedDrag),he(l,"mousemove",r._delayedDragTouchMoveHandler),he(l,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&he(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(a,s.delay)}else a()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){I&&zr(I),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;fe(t,"mouseup",this._disableDelayedDrag),fe(t,"touchend",this._disableDelayedDrag),fe(t,"touchcancel",this._disableDelayedDrag),fe(t,"mousemove",this._delayedDragTouchMoveHandler),fe(t,"touchmove",this._delayedDragTouchMoveHandler),fe(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?he(document,"pointermove",this._onTouchMove):n?he(document,"touchmove",this._onTouchMove):he(document,"mousemove",this._onTouchMove):(he(I,"dragend",this),he(Se,"dragstart",this._onDragStart));try{document.selection?Vo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Cn=!1,Se&&I){Ye("dragStarted",this,{evt:n}),this.nativeDraggable&&he(document,"dragover",nd);var o=this.options;!t&&et(I,o.dragClass,!1),et(I,o.ghostClass,!0),G.active=this,t&&this._appendGhost(),Ve({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ft){this._lastX=ft.clientX,this._lastY=ft.clientY,Pa();for(var t=document.elementFromPoint(ft.clientX,ft.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ft.clientX,ft.clientY),t!==n);)n=t;if(I.parentNode[Ge]._isOutsideThisEl(t),n)do{if(n[Ge]){var o=void 0;if(o=n[Ge]._onDragOver({clientX:ft.clientX,clientY:ft.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=va(n));Ta()}},_onTouchMove:function(t){if(an){var n=this.options,o=n.fallbackTolerance,r=n.fallbackOffset,i=t.touches?t.touches[0]:t,s=Z&&$n(Z,!0),l=Z&&s&&s.a,a=Z&&s&&s.d,u=$o&&Fe&&Rs(Fe),c=(i.clientX-an.clientX+r.x)/(l||1)+(u?u[0]-Kr[0]:0)/(l||1),f=(i.clientY-an.clientY+r.y)/(a||1)+(u?u[1]-Kr[1]:0)/(a||1);if(!G.active&&!Cn){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(Ve({rootEl:Te,name:"add",toEl:Te,fromEl:Se,originalEvent:t}),Ve({sortable:this,name:"remove",toEl:Te,originalEvent:t}),Ve({rootEl:Te,name:"sort",toEl:Te,fromEl:Se,originalEvent:t}),Ve({sortable:this,name:"sort",toEl:Te,originalEvent:t})),ke&&ke.save()):tt!==En&&tt>=0&&(Ve({sortable:this,name:"update",toEl:Te,originalEvent:t}),Ve({sortable:this,name:"sort",toEl:Te,originalEvent:t})),G.active&&((tt==null||tt===-1)&&(tt=En,zt=to),Ve({sortable:this,name:"end",toEl:Te,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Ye("nulling",this),Se=I=Te=Z=fn=Ce=jo=Xt=an=ft=Un=tt=zt=En=to=wn=no=ke=Do=G.dragged=G.ghost=G.clone=G.active=null,or.forEach(function(t){t.checked=!0}),or.length=Wr=Ur=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":I&&(this._onDragOver(t),od(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,o=this.el.children,r=0,i=o.length,s=this.options;rr.right+i||e.clientY>o.bottom&&e.clientX>o.left:e.clientY>r.bottom+i||e.clientX>o.right&&e.clientY>o.top}function ld(e,t,n,o,r,i,s,l){var a=o?e.clientY:e.clientX,u=o?n.height:n.width,c=o?n.top:n.left,f=o?n.bottom:n.right,p=!1;if(!s){if(l&&Hoc+u*i/2:af-Ho)return-no}else if(a>c+u*(1-r)/2&&af-u*i/2)?a>c+u/2?1:-1:0}function ad(e){return ct(I)typeof o.itemKey=="string"?c=>c[o.itemKey]:o.itemKey);return t({containerRef:l,sortable:a,isDragging:s}),Ue(l,c=>{c&&(a.value=new G(c,{...o.options,onChoose:f=>r("choose",f),onUnchoose:f=>r("unchoose",f),onStart:f=>{s.value=!0,r("start",f)},onEnd:f=>{setTimeout(()=>{s.value=!1,r("end",f)})},onAdd:f=>r("add",f),onUpdate:f=>r("update",f),onSort:f=>r("sort",f),onRemove:f=>r("remove",f),onFilter:f=>r("filter",f),onMove:(f,p)=>"onMoveCapture"in i?i.onMoveCapture(f,p):r("move",f,p),onClone:f=>r("clone",f),onChange:f=>r("change",f)}))}),Ue(()=>o.options,c=>{if(c&&(a!=null&&a.value))for(const f in c)a.value.option(f,c[f])}),Mi(()=>{a.value&&(a.value.destroy(),l.value=null,a.value=null)}),(c,f)=>(F(),rt(Uc(c.$props.tag),{ref_key:"containerRef",ref:l,class:te(c.$props.class)},{default:it(()=>[ko(c.$slots,"header"),(F(!0),q(we,null,Gt(e.list,(p,x)=>ko(c.$slots,"item",{key:u.value(p),element:p,index:x})),128)),ko(c.$slots,"footer")]),_:3},8,["class"]))}});var Aa=Le({__name:"BoxList",props:{boxes:Array,parent:Object,level:{type:Number,default:1}},emits:["sort","addBox","duplicateBox","clickBox","deleteBox"],setup(e,{emit:t}){const n=t,o=st(),r=e,i=ue(()=>r.parent&&o.partials.hasOwnProperty(r.parent.partial)?o.partials[r.parent.partial]:{children:[],name:"unknown"}),s=ue(()=>({handle:".drag-handle",group:{name:"boxes",put:function(a,u,c,f){var x;return!r.parent||i.value.children===!0?!0:Array.isArray(i.value.children)?(((x=c.dataset.contexts)==null?void 0:x.split(","))??[]).some(_=>i.value.children.includes(_)):!1}},animation:150}));function l(a){let u=Ro.After,c=a.item.previousElementSibling;c||(u=Ro.Before,c=a.item.nextElementSibling),c||(u=Ro.Below,c=a.item.parentElement.closest(".page-list-node")),c&&n("sort",{box:a.item.dataset.id,relativeTo:c.dataset.id,position:u})}return(a,u)=>(F(),rt(A(Da),{tag:"ul",class:"space-y-2","item-key":c=>c.id,list:e.boxes,options:s.value,"data-parent":e.parent?e.parent.id:null,onEnd:l},{item:it(({element:c,index:f})=>[(F(),rt(jf,{key:c.id,onClickBox:u[0]||(u[0]=p=>a.$emit("clickBox",p)),onDuplicateBox:u[1]||(u[1]=p=>a.$emit("duplicateBox",p)),onDeleteBox:u[2]||(u[2]=p=>a.$emit("deleteBox",p)),onAddBox:u[3]||(u[3]=p=>a.$emit("addBox",p)),onSort:u[4]||(u[4]=p=>a.$emit("sort",p)),level:e.level,box:c},null,8,["level","box"]))]),footer:it(()=>[e.level===1?(F(),rt(pa,{key:0,class:"js-add-item",onAddBox:u[5]||(u[5]=c=>a.$emit("addBox",c))})):Ee("",!0)]),_:1},8,["item-key","list","options","data-parent"]))}});const dd=["data-id"],pd=["data-tooltip-text"],hd={class:"mr-3 w-3 flex flex-grow-0 flex-shrink-0 justify-center items-center drag-handle cursor-move"},gd={key:0,class:"icon-file-o"},md={key:1,class:"icon-eye-slash"},vd={class:"flex-1 min-w-0"},bd=["title"],xd={class:"space-x-2 flex flex-grow-0 justify-end min-w-[120px] pl-2"},_d=["title"],yd=["title"],wd=["title"],Sd=["title"],Cd={key:0,class:"p-2 -mt-2",style:{"margin-left":"26px"}};var Ed=Le({__name:"PageListItem",props:{page:Object,parent:Object,isActive:Boolean,isFocused:Boolean,level:Number},emits:["clickPage","duplicatePage","copyPageToSite","deletePage"],setup(e,{emit:t}){const n=st(),o=e,r=ue(()=>o.page.children.length?i.value?"icon-angle-down":"icon-angle-right":"");window.__OC_BOXES_STATE__.baseUrl;const i=re(o.page?s(o.page):!1);function s(l){return l.children.some(a=>a.id===n.currentPageId||s(a))}return(l,a)=>{var u;return F(),q("li",{class:"-mx-2","data-id":e.page.id},[m("div",{class:te(["group flex items-center hover:bg-oc-tab-active rounded",{"bg-primary text-white":e.isActive,"page-list-item--focused bg-yellow-100 ring-2 ring-yellow-300 ":e.isFocused,"ring-primary":e.isFocused&&e.isActive,"opacity-75":!e.isFocused&&!e.isActive&&e.page.is_hidden,"-ml-1":e.level>1}])},[m("a",{href:"#",class:"flex-grow-0 flex-shrink-0 w-6 p-2",onClick:a[0]||(a[0]=ce(c=>i.value=!i.value,["stop","prevent"]))},[m("i",{class:te(["ml-1",r.value])},null,2)]),m("div",{class:"flex flex-1 p-2 min-w-0 cursor-pointer relative",onClick:a[5]||(a[5]=ce(c=>l.$emit("clickPage",{id:e.page.id,parent_id:e.parent?e.parent.id:null}),["stop","prevent"]))},[(u=e.page)!=null&&u.has_pending_changes&&A(n).hasFeature("revisions")?(F(),q("div",{key:0,class:"absolute right-0 top-[.95rem] w-5","data-tooltip-text":A(W)("unpublished_changes")},[m("div",{class:te([{"bg-primary":!e.isActive,"bg-white":e.isActive},"absolute left-0 top-0 w-[.5rem] h-[.5rem] rounded-full delay-[4s] animate-ping"])},null,2),m("div",{class:te([{"bg-primary":!e.isActive,"bg-white":e.isActive},"absolute left-0 top-0 z-10 w-[.5rem] h-[.5rem] rounded-full"])},null,2)],8,pd)):Ee("",!0),m("div",hd,[e.page.is_hidden?(F(),q("i",md)):(F(),q("i",gd))]),m("div",vd,[m("div",{class:"truncate",title:e.page.name},j(e.page.name),9,bd)]),m("span",xd,[A(n).hasFeature("multisite")&&A(n).sites.length>1?(F(),q("button",{key:0,class:"hidden group-hover:!block group-hover:!visible pr-2",title:A(W)("copy_to_site"),onClick:a[1]||(a[1]=ce(c=>l.$emit("copyPageToSite",{id:e.page.id}),["stop","prevent"]))},a[10]||(a[10]=[m("i",{class:"icon-language-letters"},null,-1)]),8,_d)):Ee("",!0),m("button",{class:"hidden group-hover:!block group-hover:!visible pr-2",title:A(W)("duplicate"),onClick:a[2]||(a[2]=ce(c=>l.$emit("duplicatePage",{id:e.page.id}),["stop","prevent"]))},a[11]||(a[11]=[m("i",{class:"icon-copy"},null,-1)]),8,yd),m("button",{class:"hidden group-hover:!block group-hover:!visible pr-2",title:A(W)("delete"),onClick:a[3]||(a[3]=ce(c=>l.$emit("deletePage",{id:e.page.id}),["stop","prevent"]))},a[12]||(a[12]=[m("i",{class:"icon-trash"},null,-1)]),8,wd),m("button",{class:"hidden group-hover:!block group-hover:!visible pr-2",title:A(W)("create_subpage"),onClick:a[4]||(a[4]=ce(c=>l.$emit("clickPage",{id:null,parent_id:e.page.id}),["stop","prevent"]))},a[13]||(a[13]=[m("i",{class:"icon-plus"},null,-1)]),8,Sd)])])],2),e.page.children.length&&i.value?(F(),q("div",Cd,[de($a,{onClickPage:a[6]||(a[6]=c=>l.$emit("clickPage",c)),onDuplicatePage:a[7]||(a[7]=c=>l.$emit("duplicatePage",c)),onCopyPageToSite:a[8]||(a[8]=c=>l.$emit("copyPageToSite",c)),onDeletePage:a[9]||(a[9]=c=>l.$emit("deletePage",c)),pages:e.page.children,parent:e.page,level:o.level+1},null,8,["pages","parent","level"])])):Ee("",!0)],8,dd)}}});const Pd=kn(Ed,[["__scopeId","data-v-7bc6a942"]]),Td={class:"flex items-center -mx-2"};var Id=Le({__name:"PageList",props:{pages:{type:Array,default:()=>[]},parent:Object,level:{type:Number,default:1},focus:{type:Number,default:-1}},emits:["clickPage","duplicatePage","copyPageToSite","deletePage"],setup(e,{emit:t}){const n={group:"pages",animation:150},o=st(),r=ue(()=>o.currentPageId);function i(s){let l="after",a=s.item.previousElementSibling;a||(l="before",a=s.item.nextElementSibling),window.oc.ajax("onSortPages",{data:{page:s.item.dataset.id,relativeTo:a.dataset.id,position:l}})}return(s,l)=>(F(),rt(A(Da),{list:e.pages,options:n,onEnd:i,class:"text-sm",tag:"ul","item-key":"id"},{item:it(({element:a,index:u})=>[de(Pd,{onClickPage:l[0]||(l[0]=c=>s.$emit("clickPage",c)),onDuplicatePage:l[1]||(l[1]=c=>s.$emit("duplicatePage",c)),onCopyPageToSite:l[2]||(l[2]=c=>s.$emit("copyPageToSite",c)),onDeletePage:l[3]||(l[3]=c=>s.$emit("deletePage",c)),"is-focused":u===e.focus,level:e.level,page:a,parent:e.parent,"is-active":r.value===a.id},null,8,["is-focused","level","page","parent","is-active"])]),footer:it(()=>[m("li",Td,[m("a",{href:"#",class:te(["flex w-full items-center hover:bg-oc-tab-active rounded p-2",{"-ml-1":e.level>1}]),onClick:l[4]||(l[4]=ce(a=>s.$emit("clickPage",{id:null,parent_id:e.parent?e.parent.id:null}),["stop","prevent"]))},[l[5]||(l[5]=m("div",{class:"ml-6 w-5 mr-1"},[m("i",{class:"icon-plus -ml-px"})],-1)),m("div",null,j(A(W)("create_page")),1)],2)])]),_:1},8,["list"]))}});const $a=kn(Id,[["__scopeId","data-v-70ccd15f"]]),Dd={inheritAttrs:!1};var Ad=Le({...Dd,__name:"Modal",props:{visible:Boolean,width:Number},emits:["close"],setup(e,{emit:t}){const n=t,o=e,r=ue(()=>{const s={};return o.width&&(s["max-width"]=`${o.width}px`),s});function i(s){s.target.classList.contains("popup-overlay")&&n("close",s)}return(s,l)=>(F(),rt(Ac,{to:"body"},[de(ui,{name:"popup"},{default:it(()=>[o.visible?(F(),q("div",li({key:0,class:"popup-overlay px-4 fixed inset-0 z-40 overflow-y-auto flex items-center justify-center w-full"},s.$attrs,{onClick:i}),[m("div",{class:"popup-body-host mx-auto w-full",style:ho(r.value)},[m("div",li(s.$attrs,{class:"popup-body flex bg-oc-body text-oc-body-inverse rounded-md shadow-xl transition-all sm:w-full",role:"dialog","aria-modal":"true","aria-labelledby":"modal-headline",style:r.value}),[ko(s.$slots,"default",{},void 0,!0)],16)],4)],16)):Ee("",!0)]),_:3})]))}});const wr=kn(Ad,[["__scopeId","data-v-ecfd056e"]]),$d={class:"flex flex-col user-select-none w-full"},Od={class:"px-4 flex-0 flex items-center justify-between"},Bd={class:"texts-oc-body-inverse font-bold text-lg py-4"},Md={class:"flex items-center"},kd={for:"per_col",class:"mr-4 text-xs text-gray-500"},Fd={class:"relative text-xs"},Nd=["value"],Rd={key:0,class:"px-4 flex-0 bg-gray-100 search-box border-b border-t border-gray-200"},Ld=["placeholder"],jd={class:"flex-1 overflow-hidden border-b border-gray-200 grid grid-cols-2 grid-cols-[230px_1fr]"},Hd={class:"border-r border-gray-200 overflow-y-auto scrollbar-thin"},Vd={class:"mx-2 my-3 space-y-0.5"},Wd=["href","onClick"],Ud=["id"],Kd=["onClick","onDblclick"],zd={class:"object-contain px-2 mt-3 text-gray-400"},Yd=["src","alt"],Xd={class:"py-3 px-3 text-oc-body-inverse text-xs text-center"},Gd={key:1,class:"p-8 py-20 text-sm text-center text-gray-400"},qd={class:"flex-0 p-4 flex justify-end space-x-4"},Jd=["disabled"],Ws="offline.boxes.partialSelectionModal.cols";var Zd=Le({__name:"PartialSelectionModal",props:{visible:Boolean},emits:["close","submit"],setup(e,{emit:t}){const n=st(),o=t,r=re(""),i=re(""),s=re(null),l=re(localStorage.getItem(Ws)??n.settings.partial_selector_default_cols),a=ue(()=>c.value?c.value.length:0),u=ue(()=>n.partialContexts),c=ue(()=>Object.values(n.partials).filter(O=>O.contexts.some(B=>u.value.includes(B)))),f=ue(()=>Object.keys(_.value));Ue(()=>l.value,O=>{localStorage.setItem(Ws,O.toString())});function p(){r.value="",n.resetPartialContexts(),o("close")}function x(){o("submit",r.value),p()}const _=ue(()=>{const O={};return c.value.forEach(B=>{O.hasOwnProperty(B.section)||(O[B.section]=[]),(!i.value||C(B))&&O[B.section].push(B)}),O});function C(O){const B=i.value.toLowerCase();return O.handle.toLowerCase().includes(B)||O.section.toLowerCase().includes(B)||O.name.toLowerCase().includes(B)}function K(O){return O.toLowerCase().replace(/ /g,"-")}function Y(O){if(!s.value)return;const B=s.value.querySelector(O);B==null||B.scrollIntoView({behavior:"smooth"})}return(O,B)=>(F(),rt(wr,{class:"oc-boxes-partial-selection-modal",visible:e.visible,onClose:p,width:1100},{default:it(()=>[m("div",$d,[m("div",Od,[m("h2",Bd,j(A(W)("select_box")),1),m("div",Md,[m("label",kd,j(A(W)("display_per_column")),1),m("div",Fd,[Bt(m("select",{"onUpdate:modelValue":B[0]||(B[0]=E=>l.value=E),id:"per_col",class:"h-6 appearance-none bg-transparent rounded border shadow-sm pl-2 pr-6"},[(F(),q(we,null,Gt([1,2,3,4,5],E=>m("option",{key:E,value:E},j(E),9,Nd)),64))],512),[[la,l.value]]),B[2]||(B[2]=m("div",{class:"absolute right-0 top-1.5 -mt-px mr-2"},[m("i",{class:"icon-angle-down"})],-1))])])]),a.value>0?(F(),q("div",Rd,[Bt(m("input",{placeholder:A(W)("search_box"),class:"py-3 w-full focus:outline-none bg-transparent",type:"search","onUpdate:modelValue":B[1]||(B[1]=E=>i.value=E)},null,8,Ld),[[sa,i.value]])])):Ee("",!0),m("div",jd,[m("div",Hd,[m("ul",Vd,[(F(!0),q(we,null,Gt(f.value,E=>(F(),q("li",{key:E},[m("a",{href:"#section-"+E,class:"block hover:bg-gray-100 text-gray-700 rounded px-3 py-2 hover:no-underline",onClick:ce(k=>Y("#section-"+K(E)),["prevent"])},j(E),9,Wd)]))),128))])]),a.value?(F(),q("div",{key:0,class:"flex-1 p-4 overflow-y-auto scollbar-thin space-y-12 min-h-[220px]",ref_key:"partialsContainer",ref:s},[(F(!0),q(we,null,Gt(_.value,(E,k)=>(F(),q("div",{key:k},[E.length?(F(),q(we,{key:0},[m("h3",{id:"section-"+K(k),class:"uppercase scroll-mt-4 font-bold text-primary text-md"},j(A(W)(k)),9,Ud),m("ul",{class:te(["mt-4 grid gap-6",`grid-cols-${l.value}`])},[(F(!0),q(we,null,Gt(E,U=>(F(),q("li",{key:U.handle},[m("a",{href:"#",onClick:ce(oe=>r.value=U.handle,["prevent"]),onDblclick:ce(oe=>r.value=U.handle&&x(),["prevent"]),class:te(["block shadow-sm border rounded hover:text-inherit hover:no-underline",{"border-primary shadow-md":r.value===U.handle}])},[m("div",zd,[m("img",{class:"partial-icon mx-auto w-full h-full",src:U.icon,alt:U.name},null,8,Yd)]),m("div",Xd,j(U.name),1)],42,Kd)]))),128))],2)],64)):Ee("",!0)]))),128))],512)):(F(),q("div",Gd,j(A(W)("no_partials_available")),1))]),m("div",qd,[m("button",{class:"btn btn-link !text-gray-500",onClick:p},j(A(W)("cancel")),1),m("button",{class:"btn btn-primary",onClick:x,disabled:!r.value},j(A(W)("add_box")),9,Jd)])])]),_:1},8,["visible"]))}});const Qd={key:0,class:"flex flex-grow-0 bg-oc-tab-inactive"},ep={class:"flex-1 text-xs"},tp={class:"text-center mt-1"},np={class:"flex-1 text-xs"},op={class:"text-center mt-1"},rp={class:"text-xs text-center my-4 text-gray-400"},ip={class:"text-xs text-center my-4 text-gray-400"};var sp=Le({__name:"RightColumn",props:{loading:Boolean},setup(e){const t=st(),n=ue(()=>t.activeRightColumnTab);return(o,r)=>(F(),q(we,null,[A(t).isFullMode?(F(),q("ul",Qd,[m("li",ep,[m("a",{href:"#",onClick:r[0]||(r[0]=ce(i=>A(t).activeRightColumnTab=A(hn).Page,["prevent"])),class:te(["left-tab w-full border-r border-r-gray-300 border-t-2 border-t-transparent border-b border-b-gray-300 flex flex-col align-center justify-center p-2 hover:no-underline hover:text-inherit",{"left-tab--active !bg-oc-body !border-t-primary !border-b-transparent":n.value===A(hn).Page}])},[r[2]||(r[2]=m("span",{class:"text-lg text-center"},[m("i",{class:"icon-file-o"})],-1)),m("span",tp,j(A(W)("page")),1)],2)]),m("li",np,[m("a",{href:"#",onClick:r[1]||(r[1]=ce(i=>A(t).activeRightColumnTab=A(hn).Box,["prevent"])),class:te(["right-tab w-full border-t-2 border-t-transparent border-b border-b-gray-300 flex flex-col align-center justify-center p-2 hover:no-underline hover:text-inherit",{"right-tab--active !bg-oc-body border-l-gray-300 !border-t-primary !border-b-transparent":n.value===A(hn).Box}])},[r[3]||(r[3]=m("span",{class:"text-lg text-center"},[m("i",{class:"icon-cube"})],-1)),m("span",op,j(A(W)("box")),1)],2)])])):Ee("",!0),Bt(m("div",{class:te([{"opacity-50 pointer-events-none":e.loading},"p-4 !pb-24 flex-grow-1 overflow-y-auto oc-boxes-editor__form-container"]),id:"boxes-page-form-container"},[m("div",rp,j(A(W)("page_tab_empty_state")),1)],2),[[Qo,n.value==="page"]]),Bt(m("div",{class:te([{"opacity-50 pointer-events-none":e.loading},"p-4 !pb-24 flex-grow-1 overflow-y-auto oc-boxes-editor__form-container"]),id:"boxes-box-form-container"},[m("div",ip,j(A(W)("box_tab_empty_state")),1)],2),[[Qo,n.value==="box"]])],64))}});const lp={class:"flex items-center justify-center h-full w-full"},ap=["src"];var cp=Le({__name:"IframeCanvas",setup(e){const t=st(),n=re(null),o=re(!0),r=ue(()=>t.iframeWidth),i=ue(()=>t.zoom),s=ue(()=>t.currentPageId===0?"about:blank":`${t.previewUrl}/${t.currentPageId}`),l=ue(()=>{if(r.value===0)return{width:"100%","min-width":0};const u=i.value/100,c=`${r.value}px`;return{"min-width":c,width:c,"border-style":"solid",transform:`scale(${u})`}});function a(){o.value=!1,n.value.contentWindow.addEventListener("beforeunload",()=>{o.value=!0})}return gr(()=>{t.iframe=n.value}),vo(()=>{t.iframe=null}),(u,c)=>(F(),q("div",lp,[Bt(m("iframe",{ref_key:"iframe",ref:n,class:te(["oc-boxes-iframe iframe w-full h-full bg-white border-x shadow-sm border-gray-300",{"iframe--loading":o.value}]),style:ho(l.value),src:s.value,onLoad:a},null,46,ap),[[Qo,A(t).currentPageId>0]])]))}});const up=kn(cp,[["__scopeId","data-v-e4f6c12d"]]),fp={class:"bg-gray-300 group relative z-10"};var Us=Le({__name:"Splitter",props:{modelValue:{type:Number,default:350},inverse:{type:Boolean,default:!1},max:{type:Number,required:!0},min:{type:Number,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=e,r=re(!1);function i(){r.value=!0,document.documentElement.style.cursor="col-resize",document.documentElement.style.userSelect="none",document.documentElement.classList.add("boxes-editor-resizing"),document.addEventListener("mouseup",s),document.addEventListener("mousemove",l)}function s(){document.documentElement.style.cursor="default",document.documentElement.style.userSelect="initial",document.documentElement.classList.remove("boxes-editor-resizing"),document.removeEventListener("mouseup",s),document.removeEventListener("mousemove",l),r.value=!1}vo(()=>{s()});function l(a){if(a.buttons!==1){s();return}const u=o.inverse?a.movementX*-1:a.movementX;let c=o.modelValue+u;c>o.max?c=Number(o.max):c(F(),q("div",fp,[m("div",{onMousedown:u[0]||(u[0]=c=>i()),class:te(["oc-boxes-resizer absolute -translate-x-1/2 inset-0 w-4 bg-gray-300 bg-opacity-50 cursor-col-resize hidden group-hover:!block group-hover:!visible",{"!block !visible":r.value}])},null,34)]))}});const dp={class:"text-xs truncate w-10 text-right"},pp={key:0,class:"absolute bg-white top-0 mt-8 right-0 rounded shadow border"},hp={class:"text-right text-sm py-2"},gp=["onClick"];var mp=Le({__name:"ZoomSelector",props:{canvas:Object},setup(e){const t=st(),n=[100,90,80,75,50,30],o=e,r=re(!1),i=ue(()=>t.zoom);function s(l){r.value=!1,l===0&&o.canvas&&t.iframeWidth>0&&(l=Number(o.canvas.offsetWidth/t.iframeWidth)*100,l=Number(l.toFixed(1))),l>100&&(l=100),t.zoom=l}return(l,a)=>(F(),q(we,null,[m("a",{href:"#",onClick:a[0]||(a[0]=ce(u=>r.value=!0,["prevent"])),class:te(["flex h-8 items-center block border py-1 px-2 rounded text-sm hover:no-underline hover:text-inherit bg-oc-tab hover:bg-oc-tab-active",{"opacity-60 cursor-not-allowed":A(t).iframeWidth===0}])},[a[2]||(a[2]=m("div",{class:"mr-2"},[m("i",{class:"icon-search"})],-1)),m("div",dp,j(i.value)+" % ",1),a[3]||(a[3]=m("div",{class:"ml-2"},[m("i",{class:"icon-angle-down"})],-1))],2),r.value?(F(),q("div",pp,[m("ul",hp,[m("li",null,[m("a",{onClick:a[1]||(a[1]=ce(u=>s(0),["prevent"])),class:"block px-4 py-1.5 hover:bg-gray-100 hover:no-underline hover:text-inherit whitespace-nowrap",href:"#"},j(A(W)("zoom_fit")),1)]),(F(),q(we,null,Gt(n,u=>m("li",{key:u},[m("a",{onClick:ce(c=>s(u),["prevent"]),class:"block px-4 py-1.5 hover:bg-gray-100 hover:no-underline hover:text-inherit whitespace-nowrap",href:"#"},j(u)+" % ",9,gp)])),64))])])):Ee("",!0)],64))}}),be=(e=>(e.ClickBox="boxes.box.click",e.FocusBox="boxes.box.focus",e.AddBox="boxes.box.add",e.AddPlaceholder="boxes.box.add_placeholder",e.AddBoxBefore="boxes.box.add_before",e.MoveUp="boxes.box.move_up",e.MoveDown="boxes.box.move_down",e.DeleteBox="boxes.box.delete",e.DuplicateBox="boxes.box.duplicate",e.HandlerSuccess="boxes.handler.success",e.Refresh="boxes.refresh",e.Changed="boxes.changed",e))(be||{});const vp={class:"flex flex-col user-select-none w-full"},bp={class:"px-4 flex-0 flex items-center justify-center pt-4 px-4"},xp={class:"text-oc-body-inverse font-bold text-lg"},_p={class:"px-4 pt-4"},yp={class:"text-center max-w-md mx-auto leading-tight text-oc-body-inverse"},wp={class:"flex mt-4 justify-center"},Sp={class:"leading-snug mt-2"},Cp=["data-tooltip-text"],Ep={class:"text-xl font-medium"},Pp={class:"text-gray-500"},Tp={key:0,class:"w-40 flex items-center justify-center"},Ip={class:"flex flex-col items-center justify-center mt-4"},Dp={class:"text-xs mt-1 text-gray-500"},Ap={key:1,class:"flex-grow-0 w-52"},$p={class:"leading-snug mt-2"},Op=["data-tooltip-text"],Bp={class:"text-xl font-medium"},Mp={class:"text-gray-500"},kp={class:"flex-0 p-4 mt-4 flex justify-end space-x-4"},Fp=["disabled"];var Np=Le({__name:"PublishConfirmationModal",props:{visible:Boolean,context:{type:Object}},emits:["close"],setup(e,{emit:t}){st();const n=t,o=e,r=re(!1),i=re(null);function s(){n("close")}let l;Ue(()=>o.visible,u=>{u&&(clearTimeout(l),l=setTimeout(()=>{var c;(c=i.value)==null||c.focus()},300))});async function a(){var u,c,f,p;r.value=!0,await window.oc.ajax("onPublish",{flash:!0,data:{id:(c=(u=o.context)==null?void 0:u.new)==null?void 0:c.id,reload_id:(p=(f=o.context)==null?void 0:f.reload)==null?void 0:p.id},complete:x=>{var _;window.document.dispatchEvent(new CustomEvent(be.HandlerSuccess,{detail:{handler:(_=o.context)==null?void 0:_.reload.handler,response:x}})),s(),r.value=!1}})}return(u,c)=>(F(),rt(wr,{class:"oc-boxes-publish-confirmation-modal",visible:e.visible,onClose:s,width:500},{default:it(()=>[m("div",vp,[m("div",bp,[m("h2",xp,j(A(W)("publish")),1)]),m("div",_p,[m("p",yp,j(A(W)("publish_confirmation")),1),m("div",wp,[m("div",{class:te(["flex-grow-0 w-52",{"text-center":!e.context.current,"text-right":e.context.current}])},[m("div",Sp,[m("div",{class:"text-gray-500","data-tooltip-text":e.context.new.date_time},j(A(W)("current")),9,Cp),m("div",Ep,j(A(W)("draft")),1),m("div",Pp,j(e.context.new.author?e.context.new.author:A(W)("unknown_user")),1)])],2),e.context.current?(F(),q("div",Tp,[m("div",Ip,[c[0]||(c[0]=m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-8 h-8"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"})],-1)),m("div",Dp,j(A(W)("replaces")),1)])])):Ee("",!0),e.context.current?(F(),q("div",Ap,[m("div",$p,[m("div",{class:"text-gray-500","data-tooltip-text":e.context.current.date_time},j(e.context.current.date_string),9,Op),m("div",Bp,j(A(W)("version"))+" "+j(e.context.current.version),1),m("div",Mp,j(e.context.current.author?e.context.current.author:A(W)("unknown_user")),1)])])):Ee("",!0)])]),m("div",kp,[m("button",{class:"btn btn-link",onClick:s},j(A(W)("cancel")),1),m("button",{ref_key:"submitBtn",ref:i,class:te(["btn oc-icon-rocket btn-special",{"oc-loading":r.value}]),disabled:r.value,onClick:a},j(A(W)("publish")),11,Fp)])])]),_:1},8,["visible"]))}});const Rp={class:"flex flex-col user-select-none w-full"},Lp={class:"px-4 flex-0 flex items-center justify-center pt-12 px-4"},jp={class:"text-oc-body-inverse font-bold text-lg"},Hp={class:"px-4 pt-2"},Vp={class:"text-center max-w-md mx-auto leading-tight text-oc-body-inverse"},Wp={class:"relative px-4 min-h-[150px] max-h-[300px] max-w-md mt-8 w-full mx-auto"},Up={class:"mt-4 text-oc-body-inverse font-bold text-sm"},Kp=["id","value"],zp=["for"],Yp={key:0,class:"text-sm text-gray-500 ml-2 inline-block"},Xp={class:"ml-3 text-sm text-gray-500"},Gp={class:"flex-0 p-4 mt-4 flex justify-end space-x-4"},qp=["disabled"];var Jp=Le({__name:"BatchPublishModal",props:{visible:Boolean},emits:["close"],setup(e,{emit:t}){const n=st(),o=t,r=e,i=re(!1),s=re(null);function l(){i.value||o("close")}let a;function u(p){return new Date(p).toLocaleString()}Ue(()=>r.visible,p=>{p?(clearTimeout(a),a=setTimeout(()=>{var x;(x=s.value)==null||x.focus()},300),c.value=n.unpublishedPages.map(x=>x.id)):c.value=[]});const c=re(n.unpublishedPages.map(p=>p.id));function f(){i.value=!0;const p=new Promise(_=>setTimeout(_,750)),x=new Promise(_=>{window.oc.ajax("onBatchPublish",{data:{ids:c.value},complete:C=>{_(C)}})});Promise.all([p,x]).then(([_,C])=>{i.value=!1,C.state&&(n.replace(C.state),n.currentPageId=0),l()})}return(p,x)=>(F(),rt(wr,{class:"oc-boxes-batch-publishing-modal",visible:e.visible,onClose:l,width:500},{default:it(()=>[m("div",Rp,[m("div",Lp,[m("h2",jp,j(A(W)("publish")),1)]),m("div",Hp,[m("p",Vp,j(A(W)("batch_publishing_intro")),1)]),m("div",Wp,[m("div",{class:te(["absolute loading-screen inset-0 z-10 backdrop-filter backdrop-blur-sm flex items-center justify-center flex flex-col items-center",{"opacity-100":i.value,"opacity-0 pointer-events-none":!i.value}])},[x[1]||(x[1]=m("i",{class:"oc-icon-rocket text-7xl animate-bounce text-primary"},null,-1)),m("div",Up,j(A(W)("publishing")),1)],2),m("div",{class:te(["relative px-4 overflow-y-auto h-full w-full mx-auto space-y-4",{"overflow-y-hidden":i.value}])},[(F(!0),q(we,null,Gt(A(n).unpublishedPages,_=>(F(),q("div",{class:"checkbox custom-checkbox boxes-checkbox",tabindex:"0",key:_.id},[Bt(m("input",{id:`page-${_.id}`,value:_.id,"onUpdate:modelValue":x[0]||(x[0]=C=>c.value=C),type:"checkbox",checked:""},null,8,Kp),[[uf,c.value]]),m("label",{for:`page-${_.id}`,class:"storm-icon-pseudo"},[co(j(_.name)+" ",1),_.url?(F(),q("span",Yp,j(_.url),1)):Ee("",!0)],8,zp),m("p",Xp,j(A(W)("updated_at"))+": "+j(u(_.updated_at)),1)]))),128))],2)]),m("div",Gp,[m("button",{class:"btn btn-link",onClick:l},j(A(W)("cancel")),1),m("button",{ref_key:"submitBtn",ref:s,class:te(["btn oc-icon-rocket btn-special",{"oc-loading":i.value}]),disabled:i.value,onClick:f},j(A(W)("publish")),11,qp)])])]),_:1},8,["visible"]))}});const Zp=kn(Jp,[["__scopeId","data-v-c61f3bf7"]]),Qp={class:"flex flex-col user-select-none w-full"},eh={class:"px-4 flex-0 flex items-center justify-center pt-12 px-4"},th={class:"text-oc-body-inverse font-bold text-lg"},nh={class:"px-4 pt-2"},oh={class:"text-center max-w-md mx-auto leading-tight text-oc-body-inverse"},rh={class:"mt-4"},ih={class:"form-group span-full"},sh={value:"",style:{display:"none"}},lh=["value"],ah={class:"flex-0 p-4 mt-4 flex justify-end space-x-4"},ch=["disabled"];var uh=Le({__name:"SiteSelectorModal",props:{visible:Boolean,context:String},emits:["close"],setup(e,{emit:t}){const n=st(),o=t,r=e,i=re(!1),s=ue(()=>n.sites.filter(c=>c.id!==n.site.id)),l=re("");function a(){i.value||o("close")}async function u(){i.value=!0;const c=await window.oc.ajax("onCopyPageToSite",{flash:!0,data:{page_id:r.context,site_id:l.value}});c.redirect&&(window.location.href=c.redirect),i.value=!1,a()}return(c,f)=>(F(),rt(wr,{class:"oc-boxes-site-selector-modal",visible:e.visible,onClose:a,width:500},{default:it(()=>[m("div",Qp,[m("div",eh,[m("h2",th,j(A(W)("copy_to_site")),1)]),m("div",nh,[m("p",oh,j(A(W)("copy_to_site_text")),1),m("div",rh,[m("div",ih,[m("label",null,j(A(W)("site")),1),Bt(m("select",{"onUpdate:modelValue":f[0]||(f[0]=p=>l.value=p),class:"form-control custom-select"},[m("option",sh,"-- "+j(A(W)("please_select")),1),(F(!0),q(we,null,Gt(s.value,p=>(F(),q("option",{key:p.id,value:p.id},[co(j(p.name)+" "+j(p.id)+" ",1),p.locale?(F(),q(we,{key:0},[co(" ("+j(p.locale)+") ",1)],64)):Ee("",!0)],8,lh))),128))],512),[[la,l.value]])])])]),m("div",ah,[m("button",{class:"btn btn-link",onClick:a},j(A(W)("cancel")),1),m("button",{class:te(["btn oc-icon-copy btn-special",{"oc-loading":i.value}]),disabled:i.value||!l.value||!e.context,onClick:u},j(A(W)("copy_verb")),11,ch)])])]),_:1},8,["visible"]))}});const fh={key:0,class:"absolute flex left-1/2 -translate-x-1/2 bg-orange-600 bg-opacity-90 rounded p-2 !pr-4 text-sm shadow text-white z-10 top-0 mt-16"},dh={class:"oc-boxes-editor__toolbar bg-oc-body border-b flex items-center justify-between relative z-10"},ph={class:"w-1/3 flex-grow-0 flex items-center space-x-4"},hh={class:"w-1/3 flex justify-center items-center space-x-4"},gh={class:"flex divide-x text-sm"},mh={key:0},vh={class:"flex divide-x text-sm"},bh={class:"flex items-center relative"},xh={key:0},_h={class:"w-1/3 flex justify-end space-x-2"},yh=["data-tooltip-text"],wh={key:0,class:"border-b"},Sh={class:"flex items-center justify-between px-4 pt-4 mb-2"},Ch={class:"uppercase font-semibold text-xs"},Eh={class:"px-3 mb-2"},Ph=["placeholder","onKeydown"],Th={class:"h-[300px] overflow-y-auto overflow-x-hidden p-4 pt-0"},Ih={key:1,class:"overflow-x-hidden"};var Dh=Le({__name:"Editor",setup(e){const t=An("instanceId"),n=st();typeof t=="string"&&n.init(t);const o=re(!1),r=re(!1),i=re(null),s=re(null),l=re(null),a=re(n.mode==="full"),u=re(!0),c=re(!0),f=re(350),p=re(350),x=re(!1),_=re(null),C=re(!1),K=re(""),Y=re(null),O=re(-1);Ue(()=>f.value,g=>{var d,b;(b=(d=s.value)==null?void 0:d.style)==null||b.setProperty("--sidebar-left-width",`${g}px`),localStorage.setItem("oc-boxes-left-sidebar-width",g.toString())}),Ue(()=>p.value,g=>{var d,b;(b=(d=s.value)==null?void 0:d.style)==null||b.setProperty("--sidebar-right-width",`${g}px`),localStorage.setItem("oc-boxes-right-sidebar-width",g.toString())}),Ue(()=>c.value,g=>{localStorage.setItem("oc-boxes-right-sidebar-pinned",g?"1":"0")});const B=ue(()=>n.pages),E=ue(()=>n.boxes),k=ue(()=>n.iframe);ue(()=>n.zoom);const U=ue(()=>{if(!K.value)return B.value;const g=(d,b="")=>{const y=[];for(const P of d){const D=b?`${b} > ${P.name}`:P.name;if(P.children.length>0){const T=g(P.children,D);y.push(...T)}y.push({...P,children:[],name:D})}return y};return g([...B.value]).filter(d=>d.name.toLowerCase().includes(K.value.toLowerCase()))});Ue(()=>K.value,()=>{O.value=-1});function oe(){O.value0&&O.value--}function w(){let g=O.value;g<0&&(g=0);const d=U.value[g]??null;d&&(Rt({id:d.id}),Ct(!1))}function R(){setTimeout(()=>Ct(!1),150)}const V=ue(()=>{const g=d=>{for(const b of d){if(n.currentPageId===b.id)return b;if(b.children.length>0){const y=g(b.children);if(y)return y}}return null};return g(n.pages)}),$=document.querySelectorAll("[data-siteswitcher-link]");$==null||$.forEach(g=>{const d=g.getAttribute("href");d.includes("site_switch=true")||g.setAttribute("href",`${d}&site_switch=true`)}),Ue([()=>n.currentPageId,()=>n.currentBoxId],([g,d])=>{if(!g||n.isSingleMode)return;const b=new URLSearchParams;b.append("boxes_page",g),d&&b.append("boxes_box",d),history.replaceState(null,"",`?${b.toString()}`),$==null||$.forEach(y=>{const P=y.getAttribute("href");P.includes("boxes_page=")?y.setAttribute("href",P.replace(/boxes_page=\d+/,`boxes_page=${g}`)):y.setAttribute("href",`${P}&boxes_page=${g}`)})},{immediate:!0});const ne=[be.AddBox,be.AddBoxBefore,be.FocusBox,be.ClickBox,be.DeleteBox,be.MoveUp,be.MoveDown,be.DuplicateBox,be.HandlerSuccess];function le(g){var d;k.value===null||((d=k.value)==null?void 0:d.contentDocument)===null||k.value.contentDocument.dispatchEvent(g)}function De(g){var b;n.iframeWidth=g;let d=100;l.value&&n.iframeWidth>0&&(d=Number(((b=l.value)==null?void 0:b.offsetWidth)/n.iframeWidth)*100,d=Number(d.toFixed(1)),d=Math.min(d,100)),n.zoom=d}function ie(){var g,d;k.value&&((d=(g=k.value)==null?void 0:g.contentDocument)==null||d.location.reload())}function ee(){V.value&&V.value.url&&window.open(`${n.baseUrl}${V.value.url}?${n.draftParam}=${V.value.id}`,"_blank")}const se={};gr(()=>{ne.forEach(y=>{const P=v(y);se[y]=P,window.document.addEventListener(y,P)}),n.currentBoxId&&n.isFullMode?Et(n.currentBoxId):n.currentPageId&&n.isFullMode&&Rt({id:n.currentPageId});const g=localStorage.getItem("oc-boxes-left-sidebar-width"),d=localStorage.getItem("oc-boxes-right-sidebar-width"),b=localStorage.getItem("oc-boxes-right-sidebar-pinned");g&&(f.value=Math.max(200,Number(g))),d&&(p.value=Math.max(200,Number(d))),b&&(c.value=b==="1"),window.addEventListener("resize",Nt)}),vo(()=>{ne.forEach(g=>{const d=se[g];d&&window.document.removeEventListener(g,d)}),window.removeEventListener("resize",Nt)}),Ue(()=>n.unpublishedPages,g=>{if(!n.hasFeature("revisions"))return;const d=document.querySelectorAll('[data-menu-id="boxes"].counter');if(!d.length)return;const b=g.length;d.forEach(y=>{y.classList.toggle("empty",b===0),b>0&&(y.innerText=b.toString())})},{immediate:!0});const lt=re(0);function Nt(){lt.value=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)}const qe=ue(()=>lt.value/100*40);function ze(g){le(new CustomEvent(be.FocusBox,{detail:g})),Et(g)}async function Fn(g){o.value=!0,await window.oc.ajax("onDeleteBox",{confirm:W("confirm_delete"),data:{Page:{id:n.currentPageId},Box:{id:g}},flash:!0,complete:d=>{var b,y;d&&(n.boxes=d.state.boxes,n.currentBoxId=0),(y=(b=k.value)==null?void 0:b.contentDocument)==null||y.location.reload(),o.value=!1,le(new CustomEvent(be.Changed))}})}async function Sr(g){o.value=!0,await window.oc.ajax("onSortBoxes",{data:{relativeTo:g.relativeTo,position:g.position,Box:{id:g.box},Page:{id:n.currentPageId}},complete:d=>{le(new CustomEvent(be.Refresh)),o.value=!1}})}function Cr(g){var d;n.partialContexts=(d=g.partial_contexts)!=null&&d.length?g.partial_contexts:n.initialPartialContexts,n.addBoxParentId=g.parent_id??null,r.value=!0}function Ct(g){let d=!C.value;g!==void 0&&(d=g),C.value=d,O.value=-1,C.value?dr(()=>{var b;(b=Y.value)==null||b.focus()}):K.value=""}async function bn(g){var y;o.value=!0;const d=n.partials[g]??{};let b=!0;(!n.hasFeature("placeholderPreviews")||d.placeholderPreview===!1)&&(b=!1),le(new CustomEvent(be.AddPlaceholder,{detail:{partial:g,preview:b,partial_name:((y=n.partials[g])==null?void 0:y.name)??"?",add_before:n.addBoxBeforeId,parent_id:n.addBoxParentId}})),await Et(null,g)}async function Et(g,d=""){o.value=!0,u.value=!0,n.currentBoxId=Number(g);const b={Box:{id:g,partial:d,holder_id:n.currentPageId,parent_id:n.addBoxParentId,_add_before:n.addBoxBeforeId}};n.sessionKey&&(b._session_key=n.sessionKey),await window.oc.ajax("onRenderBoxForm",{data:b,complete:()=>{n.activeRightColumnTab=hn.Box,n.currentBoxId=Number(g),n.addBoxParentId=null,n.addBoxBeforeId=null,o.value=!1}})}async function Nn(g,d){o.value=!0,await window.oc.ajax("onMoveBox",{data:{direction:d,Box:{id:g,holder_id:n.currentPageId}},complete:b=>{le(new CustomEvent(be.Refresh)),n.boxes=b.state.boxes??[],o.value=!1}})}async function Pt(g){await window.oc.ajax("onDuplicateBox",{data:{Box:{id:g}},flash:!0,complete:d=>{le(new CustomEvent(be.Refresh)),n.currentBoxId=d.id,n.currentPageId=d.holder_id??[],n.boxes=d.state.boxes??[],n.pages=d.state.pages??[],o.value=!1}})}async function Rt(g){o.value=!0,n.currentPageId=g.id??0,n.currentPageId===0&&(u.value=!0),await window.oc.ajax("onRenderPageForm",{data:{Page:{...g}},complete:d=>{n.boxes=d.boxes??[],n.currentPageId=g.id??0,n.currentBoxId=0,n.activeRightColumnTab=hn.Page,o.value=!1}})}async function Rn(g){await window.oc.ajax("onDuplicatePage",{data:{Page:{id:g.id}},flash:!0,complete:d=>{n.currentBoxId=0,n.currentPageId=d.id??[],n.boxes=d.boxes??[],n.pages=d.state.pages??[],o.value=!1}})}async function h(g){await window.oc.ajax("onDeletePage",{confirm:W("confirm_delete"),data:{Page:{id:g.id}},flash:!0,complete:d=>{n.currentBoxId=0,n.currentPageId=0,n.boxes=[],n.pages=d.state.pages??[],o.value=!1}})}function v(g){switch(g){case be.AddBox:return d=>{n.partialContexts=d.detail.partial_contexts??n.initialPartialContexts,n.addBoxParentId=d.detail.parent_id??null,n.addBoxBeforeId=null,r.value=!0};case be.AddBoxBefore:return d=>{d.detail.id&&(n.partialContexts=d.detail.partial_contexts??n.initialPartialContexts,n.addBoxBeforeId=Number(d.detail.id),r.value=!0)};case be.MoveUp:return d=>{Nn(Number(d.detail.id),"up")};case be.MoveDown:return d=>{Nn(Number(d.detail.id),"down")};case be.DeleteBox:return d=>{Fn(Number(d.detail.id))};case be.DuplicateBox:return d=>{Pt(Number(d.detail.id))};case be.FocusBox:return d=>{};case be.ClickBox:return d=>{Et(d.detail.dataset.box)};case be.HandlerSuccess:return d=>{const b=()=>{n.replace(d.detail.response.state),Rt({id:d.detail.response.id})},y=()=>{n.replace(d.detail.response.state),Et(d.detail.response.id),le(new CustomEvent(be.Refresh))};switch(d.detail.handler){case"onPreparePublish":if(Object.keys(d.detail.response.publish).length>0){i.value=d.detail.response.publish;return}d.detail.response.origin==="onSaveBoxForm"?y():b();break;case"onSavePageForm":b();break;case"onSaveBoxForm":y();break}};default:throw new Error("invalid event type "+g)}}return(g,d)=>(F(),q(we,null,[de(ui,{name:"slide-down"},{default:it(()=>[V.value&&V.value.is_hidden?(F(),q("div",fh,[d[24]||(d[24]=m("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 mr-4",viewBox:"0 0 20 20",fill:"currentColor"},[m("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})],-1)),m("div",null,j(A(W)("page_is_hidden")),1)])):Ee("",!0)]),_:1}),m("div",{ref_key:"editor",ref:s,class:te(["oc-boxes-editor bg-oc-body",`oc-boxes-editor--mode-${A(n).mode}`])},[m("div",dh,[m("ul",ph,[m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center border px-1 py-0 rounded w-10 h-8 text-center hover:bg-oc-tab-active hover:no-underline",{"bg-oc-input !border-oc-focus":a.value,"!border-transparent":!a.value}]),onClick:d[0]||(d[0]=ce(b=>a.value=!a.value,["prevent"]))},d[25]||(d[25]=[m("i",{class:"icon-file-o"},null,-1)]),2)])]),m("div",hh,[m("ul",gh,[m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-l border-y rounded-l bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"opacity-50 pointer-events-none":!A(n).currentPageId,"border-r":A(n).isSingleMode}]),onClick:d[1]||(d[1]=ce(b=>ie(),["prevent"]))},d[26]||(d[26]=[m("i",{class:"icon-refresh"},null,-1)]),2)]),A(n).isFullMode?(F(),q("li",mh,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-r border-y rounded-r bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"opacity-50 pointer-events-none":!V.value||!V.value.url}]),onClick:d[2]||(d[2]=ce(b=>ee(),["prevent"]))},d[27]||(d[27]=[m("i",{class:"icon-external-link"},null,-1)]),2)])):Ee("",!0)]),m("ul",vh,[m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-l border-y rounded-l bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"bg-oc-tab-active shadow-inner":A(n).iframeWidth===480}]),onClick:d[3]||(d[3]=ce(b=>De(480),["prevent"]))},d[28]||(d[28]=[m("i",{class:"icon-mobile"},null,-1)]),2)]),m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-y bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"bg-oc-tab-active shadow-inner":A(n).iframeWidth===720}]),onClick:d[4]||(d[4]=ce(b=>De(720),["prevent"]))},d[29]||(d[29]=[m("i",{class:"icon-tablet"},null,-1)]),2)]),m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-y bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"bg-oc-tab-active shadow-inner":A(n).iframeWidth===1280}]),onClick:d[5]||(d[5]=ce(b=>De(1280),["prevent"]))},d[30]||(d[30]=[m("i",{class:"icon-desktop"},null,-1)]),2)]),m("li",null,[m("a",{href:"#",class:te(["flex items-center justify-center px-1 w-10 h-8 border-r border-y rounded-r bg-oc-tab hover:bg-oc-tab-active hover:text-inherit hover:no-underline",{"bg-oc-tab-active shadow-inner":A(n).iframeWidth===0}]),onClick:d[6]||(d[6]=ce(b=>De(0),["prevent"]))},d[31]||(d[31]=[m("i",{class:"icon-arrows-h"},null,-1)]),2)])]),m("div",bh,[de(mp,{canvas:l.value},null,8,["canvas"])]),m("ul",null,[A(n).isFullMode&&A(n).hasFeature("revisions")?(F(),q("li",xh,[m("a",{href:"#",class:te(["publish-button flex items-center justify-center border px-2.5 py-0 rounded h-8 text-center hover:bg-oc-tab-active hover:no-underline border-primary text-primary",{"pointer-events-none !border-gray-300 !text-gray-300":A(n).unpublishedPages.length===0}]),"data-hotkey":"ctrl+shift+u,cmd+shift+u","data-tooltip-text":"Ctrl/Cmd+Shift+U",onClick:d[7]||(d[7]=ce(b=>x.value=!0,["prevent"]))},[d[32]||(d[32]=m("i",{class:"icon-rocket mr-3"},null,-1)),co(" "+j(A(W)("publish_action")),1)],2)])):Ee("",!0)])]),m("ul",_h,[m("li",null,[m("a",{href:"#",class:te(["block border p-1 rounded h-9 w-10 text-center hover:bg-oc-tab-active hover:no-underline",{"bg-oc-input !border-oc-focus":c.value,"!border-transparent":!c.value}]),onClick:d[8]||(d[8]=ce(b=>c.value=!c.value,["prevent"])),"data-tooltip-text":A(W)("pin_sidebar")},d[33]||(d[33]=[m("i",{class:"icon-map-pin"},null,-1)]),10,yh)]),m("li",null,[m("a",{href:"#",class:te(["block border p-1 rounded h-9 w-10 text-center hover:bg-oc-tab-active hover:no-underline",{"bg-oc-input !border-oc-focus":u.value,"!border-transparent":!u.value}]),onClick:d[9]||(d[9]=ce(b=>u.value=!u.value,["prevent"]))},d[34]||(d[34]=[m("i",{class:"icon-sliders"},null,-1)]),2)])])]),m("div",{class:te(["oc-boxes-editor__cols",{"oc-boxes-editor__cols--left-sidebar-only":a.value&&!u.value,"oc-boxes-editor__cols--right-sidebar-only":!a.value&&u.value,"oc-boxes-editor__cols--no-sidebars":!a.value&&!u.value,"oc-boxes-editor__cols--right-sidebar-unpinned":!c.value}])},[m("div",{class:te(["oc-boxes-editor__left-col flex flex-col space-y-2 overflow-y-hidden",{"overflow-hidden":!a.value}])},[A(n).isFullMode?(F(),q("div",wh,[m("div",Sh,[m("h2",Ch,j(A(W)("pages")),1),m("button",{onClick:d[10]||(d[10]=ce(b=>Ct(!0),["prevent"])),"data-hotkey":"ctrl+k, cmd+k",class:te(["page-search appearance-none cursor-pointer hover:bg-oc-tab-active w-8 h-8 -mt-2 -mr-2 border rounded flex items-center justify-center text-center",{"page-search--active !bg-yellow-100 !border-yellow-400 shadow-inner":C.value}])},d[35]||(d[35]=[m("i",{class:"oc-icon-search text-xs"},null,-1)]),2)]),Bt(m("div",Eh,[Bt(m("input",{ref_key:"pageSearchInput",ref:Y,type:"search",class:"form-control form-control-sm","onUpdate:modelValue":d[11]||(d[11]=b=>K.value=b),placeholder:A(W)("search_page"),onKeydown:[Rr(ce(oe,["prevent"]),["down"]),Rr(ce(N,["prevent"]),["up"]),Rr(ce(w,["prevent"]),["enter"])],onBlur:R},null,40,Ph),[[sa,K.value]])],512),[[Qo,C.value]]),m("div",Th,[de($a,{onClickPage:d[12]||(d[12]=b=>Rt(b)),onDuplicatePage:d[13]||(d[13]=b=>Rn(b)),onCopyPageToSite:d[14]||(d[14]=b=>_.value=b.id),onDeletePage:d[15]||(d[15]=b=>h(b)),focus:O.value,pages:U.value},null,8,["focus","pages"])])])):Ee("",!0),E.value.length?(F(),q("div",Ih,[m("h2",{class:te(["pt-4 uppercase font-semibold mb-2 text-xs",{"px-4":A(n).isFullMode}])},j(A(W)("structure")),3),m("div",{class:te(["overflow-y-auto overflow-x-hidden",{"p-4 pt-0":A(n).isFullMode,"pr-4":A(n).isSingleMode}])},[de(Aa,{boxes:E.value,onClickBox:ze,onDeleteBox:Fn,onSort:Sr,onDuplicateBox:Pt,onAddBox:Cr},null,8,["boxes"])],2)])):Ee("",!0)],2),de(Us,{class:"oc-boxes-editor__left-splitter",max:qe.value,min:260,modelValue:f.value,"onUpdate:modelValue":d[16]||(d[16]=b=>f.value=b)},null,8,["max","modelValue"]),m("div",{class:"oc-boxes-editor__center-col bg-gray-200 relative shadow-inner overflow-y-auto",ref_key:"centerColumn",ref:l},[de(ui,{name:"fade-in"},{default:it(()=>[u.value&&!c.value?(F(),q("div",{key:0,onClick:d[17]||(d[17]=ce(b=>u.value=!1,["prevent"])),class:"click-guard absolute inset-0 bg-black/10 backdrop-saturate-50"})):Ee("",!0)]),_:1}),de(up)],512),de(Us,{class:"oc-boxes-editor__right-splitter",max:qe.value,min:260,modelValue:p.value,"onUpdate:modelValue":d[18]||(d[18]=b=>p.value=b),inverse:!0},null,8,["max","modelValue"]),m("div",{class:te(["oc-boxes-editor__right-col bg-oc-body flex flex-col overflow-y-hidden relative",{"overflow-hidden":!u.value,"shadow-lg":!c.value}])},[de(sp,{loading:o.value},null,8,["loading"])],2)],2)],2),de(Zd,{onSubmit:d[19]||(d[19]=b=>bn(b)),onClose:d[20]||(d[20]=b=>r.value=!1),visible:r.value},null,8,["visible"]),de(Np,{visible:i.value!==null,context:i.value,onClose:d[21]||(d[21]=b=>i.value=null)},null,8,["visible","context"]),de(Zp,{visible:x.value,onClose:d[22]||(d[22]=b=>x.value=!1)},null,8,["visible"]),de(uh,{visible:_.value!==null,context:_.value,onClose:d[23]||(d[23]=b=>_.value=null)},null,8,["visible","context"])],64))}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();const qr={};window.__OC_BOXES__=!0;function Ah(e){qr[e.id]&&qr[e.id].unmount();const t=_f(),n=mf(Dh);n.use(t).provide("instanceId",e.id).mount(e),addEventListener("page:unload",()=>{n.unmount()},{once:!0}),qr[e.id]=n}addEventListener("boxes:init",e=>{if(!e.detail)throw new Error("boxes:init does not contain a Boxes Editor DOM node.");Ah(e.detail)}); diff --git a/assets/editor/manifest.json b/assets/editor/manifest.json index 2bd8c21..7c52321 100644 --- a/assets/editor/manifest.json +++ b/assets/editor/manifest.json @@ -7,7 +7,7 @@ "css": [ "assets/main-b85d2a9c.css" ], - "file": "assets/main-f228dc83.js", + "file": "assets/main-30e90e19.js", "isEntry": true, "src": "src/main.ts" } diff --git a/formwidgets/BoxFinder.php b/formwidgets/BoxFinder.php index 8a8c173..dee611e 100644 --- a/formwidgets/BoxFinder.php +++ b/formwidgets/BoxFinder.php @@ -4,6 +4,7 @@ use Backend\Classes\FormWidgetBase; use Backend\Widgets\Form; +use Illuminate\Support\Facades\Lang; use OFFLINE\Boxes\Models\Box; use OFFLINE\Boxes\Models\Page; @@ -40,8 +41,8 @@ public function init() 'fields' => [ 'reference_page' => [ 'type' => 'dropdown', - 'label' => 'Seite', - 'emptyOption' => '-- Bitte wählen', + 'label' => Lang::get('offline.boxes::lang.page'), + 'emptyOption' => '-- ' . Lang::get('offline.boxes::lang.please_select'), 'options' => 'OFFLINE\Boxes\FormWidgets\BoxFinder::getPageOptions', 'value' => post(self::PREFIX . '.reference_page'), // TODO: This is somehow registered for each Box on the page and results in one request per box. @@ -49,8 +50,8 @@ public function init() ], 'reference_box' => [ 'type' => 'dropdown', - 'label' => 'Box', - 'emptyOption' => '-- Bitte wählen', + 'label' => Lang::get('offline.boxes::lang.box'), + 'emptyOption' => '-- ' . Lang::get('offline.boxes::lang.please_select'), 'options' => 'OFFLINE\Boxes\FormWidgets\BoxFinder::getBoxOptions', 'trigger' => [ 'action' => 'hide', diff --git a/updates/version.yaml b/updates/version.yaml index a05e586..8f4c852 100644 --- a/updates/version.yaml +++ b/updates/version.yaml @@ -406,5 +406,5 @@ - "Added sections overview to Partial selection modal" 3.6.22: - "Optimized page list" -3.6.23: -- "Optimized RainLab.Translate <2.0 Support" +3.6.24: +- "Added translation strings in BoxFinder form widget"