WordPress loads settings.min.js instead of settings.js when SCRIPT_DEBUG is false (the default on production sites). The old settings.min.js from the original plugin was still present and caused a crash because it referenced licence.is_set which could be undefined. - Add @rollup/plugin-terser to build dependencies - Update rollup.config.mjs to output both settings.js (dev) and settings.min.js (prod, minified) from the same source - Rebuild both outputs with all licence-removal changes included Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3 lines
488 KiB
JavaScript
3 lines
488 KiB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).AS3CFPro_Settings=t()}(this,function(){"use strict";function e(){}const t=e=>e;function n(e,t){for(const n in t)e[n]=t[n];return e}function o(e,t,n,o,s){e.__svelte_meta={loc:{file:t,line:n,column:o,char:s}}}function s(e){return e()}function i(){return Object.create(null)}function c(e){e.forEach(s)}function r(e){return"function"==typeof e}function l(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let a;function u(e,t){return e===t||(a||(a=document.createElement("a")),a.href=t,e===a.href)}function p(e,t){if(null!=e&&"function"!=typeof e.subscribe)throw new Error(`'${t}' is not a store with a 'subscribe' method`)}function d(t,...n){if(null==t){for(const e of n)e(void 0);return e}const o=t.subscribe(...n);return o.unsubscribe?()=>o.unsubscribe():o}function f(e){let t;return d(e,e=>t=e)(),t}function m(e,t,n){e.$$.on_destroy.push(d(t,n))}function $(e,t,n,o){if(e){const s=g(e,t,n,o);return e[0](s)}}function g(e,t,o,s){return e[1]&&s?n(o.ctx.slice(),e[1](s(t))):o.ctx}function h(e,t,n,o){if(e[2]&&o){const s=e[2](o(n));if(void 0===t.dirty)return s;if("object"==typeof s){const e=[],n=Math.max(t.dirty.length,s.length);for(let o=0;o<n;o+=1)e[o]=t.dirty[o]|s[o];return e}return t.dirty|s}return t.dirty}function w(e,t,n,o,s,i){if(s){const c=g(t,n,o,i);e.p(c,s)}}function b(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function v(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}function y(e,t,n){return e.set(n),t}function _(t){return t&&r(t.destroy)?t.destroy:e}const k="undefined"!=typeof window;let x=k?()=>window.performance.now():()=>Date.now(),P=k?e=>requestAnimationFrame(e):e;const S=new Set;function R(e){S.forEach(t=>{t.c(e)||(S.delete(t),t.f())}),0!==S.size&&P(R)}function E(e){let t;return 0===S.size&&P(R),{promise:new Promise(n=>{S.add(t={c:e,f:n})}),abort(){S.delete(t)}}}const j="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function B(e,t){e.appendChild(t)}function N(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function O(e){const t=C("style");return t.textContent="/* empty */",function(e,t){B(e.head||e,t),t.sheet}(N(e),t),t.sheet}function T(e,t,n){e.insertBefore(t,n||null)}function L(e){e.parentNode&&e.parentNode.removeChild(e)}function D(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function C(e){return document.createElement(e)}function M(e){return document.createTextNode(e)}function H(){return M(" ")}function F(){return M("")}function A(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function K(e){return function(t){return t.preventDefault(),e.call(this,t)}}function I(e,t){e.value=null==t?"":t}function U(e,t,n,o){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,o?"important":"")}function q(e,t,n){for(let n=0;n<e.options.length;n+=1){const o=e.options[n];if(o.__value===t)return void(o.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}function V(e){const t=e.querySelector(":checked");return t&&t.__value}let W;function z(){if(void 0===W){W=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){W=!0}}return W}function X(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=C("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const o=z();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=A(window,"message",e=>{e.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{s=A(n.contentWindow,"resize",t),t()}),B(e,n),()=>{(o||s&&n.contentWindow)&&s(),L(n)}}function Y(e,t,n){e.classList.toggle(t,!!n)}function J(e,t,{bubbles:n=!1,cancelable:o=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:o})}class G{is_svg=!1;e=void 0;n=void 0;t=void 0;a=void 0;constructor(e=!1){this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){var o;this.e||(this.is_svg?this.e=(o=t.nodeName,document.createElementNS("http://www.w3.org/2000/svg",o)):this.e=C(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)T(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(L)}}const Z=new Map;let Q,ee=0;function te(e,t,n,o,s,i,c,r=0){const l=16.666/o;let a="{\n";for(let e=0;e<=1;e+=l){const o=t+(n-t)*i(e);a+=100*e+`%{${c(o,1-o)}}\n`}const u=a+`100% {${c(n,1-n)}}\n}`,p=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(u)}_${r}`,d=N(e),{stylesheet:f,rules:m}=Z.get(d)||function(e,t){const n={stylesheet:O(t),rules:{}};return Z.set(e,n),n}(d,e);m[p]||(m[p]=!0,f.insertRule(`@keyframes ${p} ${u}`,f.cssRules.length));const $=e.style.animation||"";return e.style.animation=`${$?`${$}, `:""}${p} ${o}ms linear ${s}ms 1 both`,ee+=1,p}function ne(e,t){const n=(e.style.animation||"").split(", "),o=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),s=n.length-o.length;s&&(e.style.animation=o.join(", "),ee-=s,ee||P(()=>{ee||(Z.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&L(t)}),Z.clear())}))}function oe(e){Q=e}function se(){if(!Q)throw new Error("Function called outside component initialization");return Q}function ie(e){se().$$.on_mount.push(e)}function ce(e){se().$$.after_update.push(e)}function re(e){se().$$.on_destroy.push(e)}function le(){const e=se();return(t,n,{cancelable:o=!1}={})=>{const s=e.$$.callbacks[t];if(s){const i=J(t,n,{cancelable:o});return s.slice().forEach(t=>{t.call(e,i)}),!i.defaultPrevented}return!0}}function ae(e,t){return se().$$.context.set(e,t),t}function ue(e){return se().$$.context.get(e)}function pe(e){return se().$$.context.has(e)}function de(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(e=>e.call(this,t))}const fe=[],me=[];let $e=[];const ge=[],he=Promise.resolve();let we=!1;function be(){we||(we=!0,he.then(Se))}function ve(){return be(),he}function ye(e){$e.push(e)}function _e(e){ge.push(e)}const ke=new Set;let xe,Pe=0;function Se(){if(0!==Pe)return;const e=Q;do{try{for(;Pe<fe.length;){const e=fe[Pe];Pe++,oe(e),Re(e.$$)}}catch(e){throw fe.length=0,Pe=0,e}for(oe(null),fe.length=0,Pe=0;me.length;)me.pop()();for(let e=0;e<$e.length;e+=1){const t=$e[e];ke.has(t)||(ke.add(t),t())}$e.length=0}while(fe.length);for(;ge.length;)ge.pop()();we=!1,ke.clear(),oe(e)}function Re(e){if(null!==e.fragment){e.update(),c(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ye)}}function Ee(e,t,n){e.dispatchEvent(J(`${t?"intro":"outro"}${n}`))}const je=new Set;let Be;function Ne(){Be={r:0,c:[],p:Be}}function Oe(){Be.r||c(Be.c),Be=Be.p}function Te(e,t){e&&e.i&&(je.delete(e),e.i(t))}function Le(e,t,n,o){if(e&&e.o){if(je.has(e))return;je.add(e),Be.c.push(()=>{je.delete(e),o&&(n&&e.d(1),o())}),e.o(t)}else o&&o()}const De={duration:0};function Ce(n,o,s,i){let l,a=o(n,s,{direction:"both"}),u=i?0:1,p=null,d=null,f=null;function m(){f&&ne(n,f)}function $(e,t){const n=e.b-u;return t*=Math.abs(n),{a:u,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function g(o){const{delay:s=0,duration:i=300,easing:r=t,tick:g=e,css:h}=a||De,w={start:x()+s,b:o};o||(w.group=Be,Be.r+=1),"inert"in n&&(o?void 0!==l&&(n.inert=l):(l=n.inert,n.inert=!0)),p||d?d=w:(h&&(m(),f=te(n,u,o,i,s,r,h)),o&&g(0,1),p=$(w,i),ye(()=>Ee(n,o,"start")),E(e=>{if(d&&e>d.start&&(p=$(d,i),d=null,Ee(n,p.b,"start"),h&&(m(),f=te(n,u,p.b,p.duration,0,r,a.css))),p)if(e>=p.end)g(u=p.b,1-u),Ee(n,p.b,"end"),d||(p.b?m():--p.group.r||c(p.group.c)),p=null;else if(e>=p.start){const t=e-p.start;u=p.a+p.d*r(t/p.duration),g(u,1-u)}return!(!p&&!d)}))}return{run(e){r(a)?(xe||(xe=Promise.resolve(),xe.then(()=>{xe=null})),xe).then(()=>{a=a({direction:e?"in":"out"}),g(e)}):g(e)},end(){m(),p=d=null}}}function Me(e,t){const n=t.token={};function o(e,o,s,i){if(t.token!==n)return;t.resolved=i;let c=t.ctx;void 0!==s&&(c=c.slice(),c[s]=i);const r=e&&(t.current=e)(c);let l=!1;t.block&&(t.blocks?t.blocks.forEach((e,n)=>{n!==o&&e&&(Ne(),Le(e,1,1,()=>{t.blocks[n]===e&&(t.blocks[n]=null)}),Oe())}):t.block.d(1),r.c(),Te(r,1),r.m(t.mount(),t.anchor),l=!0),t.block=r,t.blocks&&(t.blocks[o]=r),l&&Se()}if(!(s=e)||"object"!=typeof s&&"function"!=typeof s||"function"!=typeof s.then){if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}else{const n=se();if(e.then(e=>{oe(n),o(t.then,1,t.value,e),oe(null)},e=>{if(oe(n),o(t.catch,2,t.error,e),oe(null),!t.hasCatch)throw e}),t.current!==t.pending)return o(t.pending,0),!0}var s}function He(e,t){e.d(1),t.delete(e.key)}function Fe(e,t){Le(e,1,1,()=>{t.delete(e.key)})}function Ae(e,t,n,o,s,i,r,l,a,u,p,d){let f=e.length,m=i.length,$=f;const g={};for(;$--;)g[e[$].key]=$;const h=[],w=new Map,b=new Map,v=[];for($=m;$--;){const e=d(s,i,$),c=n(e);let l=r.get(c);l?o&&v.push(()=>l.p(e,t)):(l=u(c,e),l.c()),w.set(c,h[$]=l),c in g&&b.set(c,Math.abs($-g[c]))}const y=new Set,_=new Set;function k(e){Te(e,1),e.m(l,p),r.set(e.key,e),p=e.first,m--}for(;f&&m;){const t=h[m-1],n=e[f-1],o=t.key,s=n.key;t===n?(p=t.first,f--,m--):w.has(s)?!r.has(o)||y.has(o)?k(t):_.has(s)?f--:b.get(o)>b.get(s)?(_.add(o),k(t)):(y.add(s),f--):(a(n,r),f--)}for(;f--;){const t=e[f];w.has(t.key)||a(t,r)}for(;m;)k(h[m-1]);return c(v),h}function Ke(e,t,n,o){const s=new Map;for(let i=0;i<t.length;i++){const c=o(n(e,t,i));if(s.has(c)){let e="";try{e=`with value '${String(c)}' `}catch(e){}throw new Error(`Cannot have duplicate keys in a keyed each: Keys at index ${s.get(c)} and ${i} ${e}are duplicates`)}s.set(c,i)}}function Ie(e,t){const n={},o={},s={$$scope:1};let i=e.length;for(;i--;){const c=e[i],r=t[i];if(r){for(const e in c)e in r||(o[e]=1);for(const e in r)s[e]||(n[e]=r[e],s[e]=1);e[i]=r}else for(const e in c)s[e]=1}for(const e in o)e in n||(n[e]=void 0);return n}function Ue(e){return"object"==typeof e&&null!==e?e:{}}function qe(e,t,n){const o=e.$$.props[t];void 0!==o&&(e.$$.bound[o]=n,n(e.$$.ctx[o]))}function Ve(e){e&&e.c()}function We(e,t,n){const{fragment:o,after_update:i}=e.$$;o&&o.m(t,n),ye(()=>{const t=e.$$.on_mount.map(s).filter(r);e.$$.on_destroy?e.$$.on_destroy.push(...t):c(t),e.$$.on_mount=[]}),i.forEach(ye)}function ze(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];$e.forEach(o=>-1===e.indexOf(o)?t.push(o):n.push(o)),n.forEach(e=>e()),$e=t}(n.after_update),c(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Xe(t,n,o,s,r,l,a=null,u=[-1]){const p=Q;oe(t);const d=t.$$={fragment:null,ctx:[],props:l,update:e,not_equal:r,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(p?p.$$.context:[])),callbacks:i(),dirty:u,skip_bound:!1,root:n.target||p.$$.root};a&&a(d.root);let f=!1;if(d.ctx=o?o(t,n.props||{},(e,n,...o)=>{const s=o.length?o[0]:n;return d.ctx&&r(d.ctx[e],d.ctx[e]=s)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](s),f&&function(e,t){-1===e.$$.dirty[0]&&(fe.push(e),be(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(t,e)),n}):[],d.update(),f=!0,c(d.before_update),d.fragment=!!s&&s(d.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);d.fragment&&d.fragment.l(e),e.forEach(L)}else d.fragment&&d.fragment.c();n.intro&&Te(t.$$.fragment),We(t,n.target,n.anchor),Se()}oe(p)}class Ye{$$=void 0;$$set=void 0;$destroy(){ze(this,1),this.$destroy=e}$on(t,n){if(!r(n))return e;const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(n),()=>{const e=o.indexOf(n);-1!==e&&o.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function Je(e,t){document.dispatchEvent(J(e,{version:"4.2.19",...t},{bubbles:!0}))}function Ge(e,t){Je("SvelteDOMInsert",{target:e,node:t}),B(e,t)}function Ze(e,t,n){Je("SvelteDOMInsert",{target:e,node:t,anchor:n}),T(e,t,n)}function Qe(e){Je("SvelteDOMRemove",{node:e}),L(e)}function et(e,t,n,o,s,i,c){const r=!0===o?["capture"]:o?Array.from(Object.keys(o)):[];s&&r.push("preventDefault"),i&&r.push("stopPropagation"),c&&r.push("stopImmediatePropagation"),Je("SvelteDOMAddEventListener",{node:e,event:t,handler:n,modifiers:r});const l=A(e,t,n,o);return()=>{Je("SvelteDOMRemoveEventListener",{node:e,event:t,handler:n,modifiers:r}),l()}}function tt(e,t,n){!function(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}(e,t,n),null==n?Je("SvelteDOMRemoveAttribute",{node:e,attribute:t}):Je("SvelteDOMSetAttribute",{node:e,attribute:t,value:n})}function nt(e,t,n){e[t]=n,Je("SvelteDOMSetProperty",{node:e,property:t,value:n})}function ot(e,t){t=""+t,e.data!==t&&(Je("SvelteDOMSetData",{node:e,data:t}),e.data=t)}function st(e){if(!("string"==typeof e||e&&"object"==typeof e&&"length"in e||"function"==typeof Symbol&&e&&Symbol.iterator in e))throw new Error("{#each} only works with iterable values.");return t=e,void 0!==t?.length?t:Array.from(t);var t}function it(e,t,n){for(const o of Object.keys(t))~n.indexOf(o)||console.warn(`<${e}> received an unexpected slot "${o}".`)}function ct(e,t){const n="this={...} of <svelte:component> should specify a Svelte component.";try{const o=new e(t);if(!(o.$$&&o.$set&&o.$on&&o.$destroy))throw new Error(n);return o}catch(e){const{message:t}=e;throw"string"==typeof t&&-1!==t.indexOf("is not a constructor")?new Error(n):e}}class rt extends Ye{$$prop_def;$$events_def;$$slot_def;constructor(e){if(!e||!e.target&&!e.$$inline)throw new Error("'target' is a required option");super()}$destroy(){super.$destroy(),this.$destroy=()=>{console.warn("Component was already destroyed")}}$capture_state(){}$inject_state(){}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const lt=[];function at(e,t){return{subscribe:ut(e,t).subscribe}}function ut(t,n=e){let o;const s=new Set;function i(e){if(l(t,e)&&(t=e,o)){const e=!lt.length;for(const e of s)e[1](),lt.push(e,t);if(e){for(let e=0;e<lt.length;e+=2)lt[e][0](lt[e+1]);lt.length=0}}}function c(e){i(e(t))}return{set:i,update:c,subscribe:function(r,l=e){const a=[r,l];return s.add(a),1===s.size&&(o=n(i,c)||e),r(t),()=>{s.delete(a),0===s.size&&o&&(o(),o=null)}}}}function pt(t,n,o){const s=!Array.isArray(t),i=s?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=n.length<2;return at(o,(t,o)=>{let a=!1;const u=[];let p=0,f=e;const m=()=>{if(p)return;f();const i=n(s?u[0]:u,t,o);l?t(i):f=r(i)?i:e},$=i.map((e,t)=>d(e,e=>{u[t]=e,p&=~(1<<t),a&&m()},()=>{p|=1<<t}));return a=!0,m(),function(){c($),f(),a=!1}})}function dt([e,t]){if(!e||!t)return!1;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!0;if(n.filter(e=>!o.includes(e)).concat(o.filter(e=>!n.includes(e))).length>0)return!0;for(const n in e)if(JSON.stringify(t[n])!==JSON.stringify(e[n]))return!0;return!1}const ft=ut({}),mt=ut(!1),$t=pt(ft,e=>e.settings),gt=pt(ft,e=>e.defined_settings),ht=pt(ft,e=>e.strings),wt=pt(ft,e=>e.nonce),bt=pt(ft,e=>e.urls),vt=pt(ft,e=>e.docs),yt=pt(ft,e=>e.endpoints),_t=pt(ft,e=>e.diagnostics),kt=pt(ft,e=>e.counts),xt=pt(ft,e=>e.summary_counts),Pt=pt(ft,e=>e.offload_remaining_upsell);pt(ft,e=>e.upgrades);const St=pt(ft,e=>e.is_plugin_setup),Rt=pt(ft,e=>e.is_plugin_setup_with_credentials),Et=pt(ft,e=>e.needs_access_keys),jt=pt(ft,e=>e.bucket_writable),Bt=pt(ft,e=>e.settings_validation),Nt=ut(new Map),Ot=ut(new Map),Tt=ut(!1),Lt=ut(!1),Dt={};const Ct=function(){const{subscribe:e,set:t,update:n}=ut([]);return{subscribe:e,set:t,async save(){const e=await Dt.put("settings",f(this));return e.hasOwnProperty("saved")&&!0===e.saved?(this.updateSettings(e),e):{saved:!1}},reset(){t({...f($t)})},async fetch(){const e=await Dt.get("settings",{});this.updateSettings(e)},updateSettings(e){e.hasOwnProperty("defined_settings")&&e.hasOwnProperty("settings")&&e.hasOwnProperty("storage_providers")&&e.hasOwnProperty("delivery_providers")&&e.hasOwnProperty("is_plugin_setup")&&e.hasOwnProperty("is_plugin_setup_with_credentials")&&e.hasOwnProperty("needs_access_keys")&&e.hasOwnProperty("bucket_writable")&&e.hasOwnProperty("urls")&&(ft.update(t=>({...t,defined_settings:e.defined_settings,settings:e.settings,storage_providers:e.storage_providers,delivery_providers:e.delivery_providers,is_plugin_setup:e.is_plugin_setup,is_plugin_setup_with_credentials:e.is_plugin_setup_with_credentials,needs_access_keys:e.needs_access_keys,bucket_writable:e.bucket_writable,urls:e.urls})),n(t=>({...e.settings})))}}}(),Mt=pt([Ct,$t],dt),Ht=pt(ft,e=>e.default_storage_provider),Ft=pt([ft,bt],([e,t])=>{for(const n in e.storage_providers)e.storage_providers[n].icon=t.assets+"img/icon/provider/storage/"+e.storage_providers[n].provider_key_name+".svg",e.storage_providers[n].link_icon=t.assets+"img/icon/provider/storage/"+e.storage_providers[n].provider_key_name+"-link.svg",e.storage_providers[n].round_icon=t.assets+"img/icon/provider/storage/"+e.storage_providers[n].provider_key_name+"-round.svg";return e.storage_providers}),At=pt([Ct,Ft],([e,t])=>e.hasOwnProperty("provider")&&t.hasOwnProperty(e.provider)?t[e.provider]:[]);pt(ft,e=>e.default_delivery_provider);const Kt=pt([ft,bt,At],([e,t,n])=>{for(const o in e.delivery_providers)"storage"===o?(e.delivery_providers[o].icon=n.icon,e.delivery_providers[o].round_icon=n.round_icon,e.delivery_providers[o].provider_service_quick_start_url=n.provider_service_quick_start_url):(e.delivery_providers[o].icon=t.assets+"img/icon/provider/delivery/"+e.delivery_providers[o].provider_key_name+".svg",e.delivery_providers[o].round_icon=t.assets+"img/icon/provider/delivery/"+e.delivery_providers[o].provider_key_name+"-round.svg");return e.delivery_providers}),It=pt([Ct,Kt,bt],([e,t,n])=>e.hasOwnProperty("delivery-provider")&&t.hasOwnProperty(e["delivery-provider"])?t[e["delivery-provider"]]:[]),Ut=pt([Ct,At,ht],([e,t,n])=>e.region&&t.regions&&t.regions.hasOwnProperty(e.region)?t.regions[e.region]:e.region&&t.regions?n.unknown:t.default_region&&t.regions&&t.regions.hasOwnProperty(t.default_region)?t.regions[t.default_region]:n.unknown),qt=pt([Ct,At],([e,t])=>t.block_public_access_supported&&e.hasOwnProperty("block-public-access")&&e["block-public-access"]),Vt=pt([Ct,At],([e,t])=>t.object_ownership_supported&&e.hasOwnProperty("object-ownership-enforced")&&e["object-ownership-enforced"]);const Wt=function(){const{subscribe:e,set:t,update:n}=ut([]);return{set:t,subscribe:e,add(e){if(e.hasOwnProperty("type")&&"updated"===e.type&&(e.type="success"),e.hasOwnProperty("type")&&"notice-warning"===e.type&&(e.type="warning"),e.hasOwnProperty("type")&&"notice-info"===e.type&&(e.type="info"),!e.hasOwnProperty("message")||e.hasOwnProperty("heading")&&0!==e.heading.trim().length||(e.heading=e.message,e.plainHeading=!0,delete e.message),e.hasOwnProperty("flash")||(e.flash=!0),!e.hasOwnProperty("id")){const t=e.hasOwnProperty("heading")?e.heading.trim():"dynamic-heading",n=e.hasOwnProperty("message")?e.message.trim():"dynamic-message";e.id=btoa(t+n)}const t=e.hasOwnProperty("created_at")?e.created_at:0;e.render_key=e.id+"-"+t,n(t=>{let n=-1;return e.hasOwnProperty("id")&&(n=t.findIndex(t=>t.id===e.id)),n>=0?t[n].hasOwnProperty("dismissed")?t[n].dismissed<e.created_at&&(t.push(e),t.splice(n,1)):t.splice(n,1,e):t.push(e),t.sort(this.sortCompare)})},sortCompare:(e,t)=>e.created_at<t.created_at?-1:e.created_at>t.created_at?1:0,async dismiss(e){n(t=>{const n=t.findIndex(t=>t.id===e);return n>=0&&(t[n].hasOwnProperty("created_at")?t[n].dismissed=t[n].created_at:t.splice(n,1)),t}),await Dt.delete("notifications",{id:e,all_tabs:!0})},delete(e){n(t=>{const n=t.findIndex(t=>t.id===e);return n>=0&&t.splice(n,1),t})},cleanup(e){n(t=>{for(const[n,o]of t.entries())if(o.hasOwnProperty("dismissed")||o.hasOwnProperty("created_at")){e.findIndex(e=>e.id===o.id)<0&&t.splice(n,1)}return t})}}}();let zt,Xt=!1,Yt=!1;const Jt=ut([]),Gt=ut([]);const Zt=function(){const{subscribe:e,set:t,update:n}=ut([]);return{subscribe:e,set:t,update:n,async fetch(){const e=await Dt.get("state",{});Xt&&!Yt&&this.updateState(e)},updateState(e){for(const t of f(Jt))t(e);const t=f(Mt),n={...f($t)};ft.update(t=>({...t,...e})),!t&&f(Mt)&&Ct.reset(),t&&dt([n,f($t)])&&(Lt.update(e=>!0),Ct.reset());for(const t of f(Gt))t(e)},async startPeriodicFetch(){Xt=!0,Yt=!1,await this.fetch(),zt=setInterval(async()=>{await this.fetch()},5e3)},stopPeriodicFetch(){Xt=!1,Yt=!1,clearInterval(zt)},pausePeriodicFetch(){Xt&&(Yt=!0,clearInterval(zt))},async resumePeriodicFetch(){Yt=!1,Xt&&await this.startPeriodicFetch()}}}();Dt.headers=()=>({Accept:"application/json","Content-Type":"application/json","X-WP-Nonce":f(wt)}),Dt.url=e=>f(bt).api+f(yt)[e],Dt.get=async(e,t)=>{let n=new URL(Dt.url(e));new URLSearchParams(t).forEach(function(e,t){n.searchParams.set(t,e)});return(await fetch(n.toString(),{method:"GET",headers:Dt.headers()})).json().then(e=>e=Dt.check_response(e))},Dt.post=async(e,t)=>(await fetch(Dt.url(e),{method:"POST",headers:Dt.headers(),body:JSON.stringify(t)})).json().then(e=>e=Dt.check_response(e)),Dt.put=async(e,t)=>(await fetch(Dt.url(e),{method:"PUT",headers:Dt.headers(),body:JSON.stringify(t)})).json().then(e=>e=Dt.check_response(e)),Dt.delete=async(e,t)=>(await fetch(Dt.url(e),{method:"DELETE",headers:Dt.headers(),body:JSON.stringify(t)})).json().then(e=>e=Dt.check_response(e)),Dt.check_errors=e=>(e.code&&e.message&&(Wt.add({id:e.code,type:"error",dismissible:!0,heading:f(ht).api_error_notice_heading,message:e.message}),delete e.code,delete e.message),e),Dt.check_notifications=e=>{const t=e.hasOwnProperty("notifications")?e.notifications:[];if(t)for(const e of t)Wt.add(e);return Wt.cleanup(t),delete e.notifications,e},Dt.check_response=e=>(e=Dt.check_notifications(e),e=Dt.check_errors(e));const Qt=ut({is_set:!0,is_valid:!0,plan_plus_licence:"Internal Build",customer:"",plan_usage:"",limit_info:{counts_toward_limit:!1,total:0,limit:0}}),en=pt(ft,e=>e.offload_remaining_with_count),tn=pt(ft,e=>e.documentation),nn=ut(!1),on=ut(""),sn={"add-metadata":"offload","reverse-add-metadata":"analyzerepair","verify-add-metadata":"analyzerepair","copy-buckets":"move","download-and-remover":"remove",downloader:"download","elementor-analyze-and-repair":"analyzerepair","move-objects":"move","move-private-objects":"move","move-public-objects":"move","remove-local-files":"clean","update-acls":"analyzerepair",uploader:"offload","woocommerce-product-urls":"analyzerepair"};const cn=function(){const{subscribe:e,set:t,update:n}=ut({});return{subscribe:e,set:t,async action(e,t){Zt.pausePeriodicFetch(),e.status_description=e.busy_description,e.short_status_description=e.busy_description,n(t=>(t[e.id]=e,t));let o={};const s=await Dt.put("tools",{id:e.id,action:t});return s.hasOwnProperty("ok")&&(o=s),await Zt.resumePeriodicFetch(),o},async start(e){return on.update(t=>e.id),e.is_queued=!0,await this.action(e,"start")},async cancel(e){return e.is_cancelled=!0,await this.action(e,"cancel")},async pauseResume(e){return e.is_paused=!e.is_paused,await this.action(e,"pause_resume")},updateTools(e){if(e.hasOwnProperty("tools")){n(t=>({...e.tools}));const t=Object.values(e.tools).find(e=>e.is_processing||e.is_queued||e.is_paused||e.is_cancelled);t?on.update(e=>t.id):on.update(e=>"")}},icon(e,t,n){let o="tool-generic",s="default";return t&&(s=e.is_paused?"paused":n?"running-animated":"active"),e&&e.hasOwnProperty("slug")&&sn.hasOwnProperty(e.slug)&&(o="tool-"+sn[e.slug]),["active","default","paused","running-animated"].includes(s)?o=o+"-"+s+".svg":o+="-default.svg",o}}}(),rn=ut(!1),ln=ut(!1),an=pt(ft,e=>e.assets_settings),un=pt(ft,e=>e.assets_defined_settings);pt(ft,e=>e.assets_domain_check);const pn=pt(ft,e=>e.hasOwnProperty("assets_settings"));const dn=function(){const{subscribe:e,set:t,update:n}=ut([]);return{subscribe:e,set:t,async save(){const e=await Dt.put("assets-settings",f(this));return e.hasOwnProperty("saved")&&!0===e.saved?(this.updateSettings(e),e):{}},reset(){t({...f(an)})},async fetch(){const e=await Dt.get("assets-settings",{});this.updateSettings(e)},updateSettings(e){if(e.hasOwnProperty("assets_defined_settings")&&e.hasOwnProperty("assets_settings")){const t=f(fn),n={...f(an)};if(ft.update(t=>({...t,assets_defined_settings:e.assets_defined_settings,assets_settings:e.assets_settings})),e.hasOwnProperty("saved")&&!0===e.saved)return;!t&&f(fn)&&dn.reset(),t&&dt([n,f(an)])&&(rn.update(e=>!0),dn.reset())}}}}(),fn=pt([dn,an],dt);function mn(e){if(!e)throw Error("Parameter args is required");if(!e.component==!e.asyncComponent)throw Error("One and only one of component and asyncComponent is required");if(e.component&&(e.asyncComponent=()=>Promise.resolve(e.component)),"function"!=typeof e.asyncComponent)throw Error("Parameter asyncComponent must be a function");if(e.conditions){Array.isArray(e.conditions)||(e.conditions=[e.conditions]);for(let t=0;t<e.conditions.length;t++)if(!e.conditions[t]||"function"!=typeof e.conditions[t])throw Error("Invalid parameter conditions["+t+"]")}e.loadingComponent&&(e.asyncComponent.loading=e.loadingComponent,e.asyncComponent.loadingParams=e.loadingParams||void 0);return{component:e.asyncComponent,userData:e.userData,conditions:e.conditions&&e.conditions.length?e.conditions:void 0,props:e.props&&Object.keys(e.props).length?e.props:{},_sveltesparouter:!0}}const $n=function(){const{subscribe:e,set:t,update:n}=ut([]);return{subscribe:e,set:t,add(e){n(t=>[...t,e].sort((e,t)=>e.position-t.position))},withPrefix(e=null){return f(this).filter(t=>e&&t.route.startsWith(e)||!e)},routes(e=null){let t=null,n=null;const o=new Map,s=[e=>!(e.hasOwnProperty("userData")&&e.userData.hasOwnProperty("page")&&e.userData.page.hasOwnProperty("enabled"))||e.userData.page.enabled()];for(const i of this.withPrefix(e)){const c={page:i};let r=i.route;e&&r!==e+"/*"&&(r=r.replace(e,"")),o.set(r,mn({component:i.component,userData:c,conditions:s})),!t&&i.default&&(t=i.component,n=c)}return t&&o.set("*",mn({component:t,userData:n,conditions:s})),o},handleRouteEvent(e){if(e.hasOwnProperty("event")){e.hasOwnProperty("data")||(e.data={});let t=!1;for(const n of f(this).values())n.events&&n.events[e.event]&&n.events[e.event](e.data)&&!t&&(t=n.route);if(t)return t}return!!e.hasOwnProperty("default")&&e.default}}}(),gn=pt($n,()=>$n.routes());function hn(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,o,s,i,c=[],r="",l=e.split("/");for(l[0]||l.shift();s=l.shift();)"*"===(n=s[0])?(c.push("wild"),r+="/(.*)"):":"===n?(o=s.indexOf("?",1),i=s.indexOf(".",1),c.push(s.substring(1,~o?o:~i?i:s.length)),r+=~o&&!~i?"(?:/([^/]+?))?":"/([^/]+?)",~i&&(r+=(~o?"?":"")+"\\"+s.substring(i))):r+="/"+s;return{keys:c,pattern:new RegExp("^"+r+(t?"(?=$|/)":"/?$"),"i")}}const{Error:wn,Object:bn,console:vn}=j;function yn(e){let t,o,s;const i=[e[2]];var c=e[0];function r(e,t){let o={};for(let e=0;e<i.length;e+=1)o=n(o,i[e]);return void 0!==t&&4&t&&(o=n(o,Ie(i,[Ue(e[2])]))),{props:o,$$inline:!0}}c&&(t=ct(c,r(e)),t.$on("routeEvent",e[7]));const l={c:function(){t&&Ve(t.$$.fragment),o=F()},m:function(e,n){t&&We(t,e,n),Ze(e,o,n),s=!0},p:function(e,n){if(1&n&&c!==(c=e[0])){if(t){Ne();const e=t;Le(e.$$.fragment,1,0,()=>{ze(e,1)}),Oe()}c?(t=ct(c,r(e,n)),t.$on("routeEvent",e[7]),Ve(t.$$.fragment),Te(t.$$.fragment,1),We(t,o.parentNode,o)):t=null}else if(c){const o=4&n?Ie(i,[Ue(e[2])]):{};t.$set(o)}},i:function(e){s||(t&&Te(t.$$.fragment,e),s=!0)},o:function(e){t&&Le(t.$$.fragment,e),s=!1},d:function(e){e&&Qe(o),t&&ze(t,e)}};return Je("SvelteRegisterBlock",{block:l,id:yn.name,type:"else",source:"(267:0) {:else}",ctx:e}),l}function _n(e){let t,o,s;const i=[{params:e[1]},e[2]];var c=e[0];function r(e,t){let o={};for(let e=0;e<i.length;e+=1)o=n(o,i[e]);return void 0!==t&&6&t&&(o=n(o,Ie(i,[2&t&&{params:e[1]},4&t&&Ue(e[2])]))),{props:o,$$inline:!0}}c&&(t=ct(c,r(e)),t.$on("routeEvent",e[6]));const l={c:function(){t&&Ve(t.$$.fragment),o=F()},m:function(e,n){t&&We(t,e,n),Ze(e,o,n),s=!0},p:function(e,n){if(1&n&&c!==(c=e[0])){if(t){Ne();const e=t;Le(e.$$.fragment,1,0,()=>{ze(e,1)}),Oe()}c?(t=ct(c,r(e,n)),t.$on("routeEvent",e[6]),Ve(t.$$.fragment),Te(t.$$.fragment,1),We(t,o.parentNode,o)):t=null}else if(c){const o=6&n?Ie(i,[2&n&&{params:e[1]},4&n&&Ue(e[2])]):{};t.$set(o)}},i:function(e){s||(t&&Te(t.$$.fragment,e),s=!0)},o:function(e){t&&Le(t.$$.fragment,e),s=!1},d:function(e){e&&Qe(o),t&&ze(t,e)}};return Je("SvelteRegisterBlock",{block:l,id:_n.name,type:"if",source:"(260:0) {#if componentParams}",ctx:e}),l}function kn(e){let t,n,o,s;const i=[_n,yn],c=[];function r(e,t){return e[1]?0:1}t=r(e),n=c[t]=i[t](e);const l={c:function(){n.c(),o=F()},l:function(e){throw new wn("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,n){c[t].m(e,n),Ze(e,o,n),s=!0},p:function(e,[s]){let l=t;t=r(e),t===l?c[t].p(e,s):(Ne(),Le(c[l],1,1,()=>{c[l]=null}),Oe(),n=c[t],n?n.p(e,s):(n=c[t]=i[t](e),n.c()),Te(n,1),n.m(o.parentNode,o))},i:function(e){s||(Te(n),s=!0)},o:function(e){Le(n),s=!1},d:function(e){e&&Qe(o),c[t].d(e)}};return Je("SvelteRegisterBlock",{block:l,id:kn.name,type:"component",source:"",ctx:e}),l}function xn(e,t,...n){return console.warn("Method `wrap` from `svelte-spa-router` is deprecated and will be removed in a future version. Please use `svelte-spa-router/wrap` instead. See http://bit.ly/svelte-spa-router-upgrading"),mn({component:e,userData:t,conditions:n})}function Pn(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const n=t.indexOf("?");let o="";return n>-1&&(o=t.substr(n+1),t=t.substr(0,n)),{location:t,querystring:o}}const Sn=at(null,function(e){e(Pn());const t=()=>{e(Pn())};return window.addEventListener("hashchange",t,!1),function(){window.removeEventListener("hashchange",t,!1)}}),Rn=pt(Sn,e=>e.location),En=pt(Sn,e=>e.querystring),jn=ut(void 0);async function Bn(e){if(!e||e.length<1||"/"!=e.charAt(0)&&0!==e.indexOf("#/"))throw Error("Invalid parameter location");await ve(),history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=("#"==e.charAt(0)?"":"#")+e}async function Nn(){await ve(),window.history.back()}async function On(e){if(!e||e.length<1||"/"!=e.charAt(0)&&0!==e.indexOf("#/"))throw Error("Invalid parameter location");await ve();const t=("#"==e.charAt(0)?"":"#")+e;try{const e={...history.state};delete e.__svelte_spa_router_scrollX,delete e.__svelte_spa_router_scrollY,window.history.replaceState(e,void 0,t)}catch(e){console.warn("Caught exception while replacing the current page. If you're running this in the Svelte REPL, please note that the `replace` method might not work in this environment.")}window.dispatchEvent(new Event("hashchange"))}function Tn(e,t){if(t=Cn(t),!e||!e.tagName||"a"!=e.tagName.toLowerCase())throw Error('Action "link" can only be used with <a> tags');return Dn(e,t),{update(t){t=Cn(t),Dn(e,t)}}}function Ln(e){e?window.scrollTo(e.__svelte_spa_router_scrollX,e.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function Dn(e,t){let n=t.href||e.getAttribute("href");if(n&&"/"==n.charAt(0))n="#"+n;else if(!n||n.length<2||"#/"!=n.slice(0,2))throw Error('Invalid value for "href" attribute: '+n);e.setAttribute("href",n),e.addEventListener("click",e=>{e.preventDefault(),t.disabled||Mn(e.currentTarget.getAttribute("href"))})}function Cn(e){return e&&"string"==typeof e?{href:e}:e||{}}function Mn(e){history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=e}function Hn(e,t,n){let{$$slots:o={},$$scope:s}=t;it("Router",o,[]);let{routes:i={}}=t,{prefix:c=""}=t,{restoreScrollState:r=!1}=t;class l{constructor(e,t){if(!t||"function"!=typeof t&&("object"!=typeof t||!0!==t._sveltesparouter))throw Error("Invalid component object");if(!e||"string"==typeof e&&(e.length<1||"/"!=e.charAt(0)&&"*"!=e.charAt(0))||"object"==typeof e&&!(e instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:n,keys:o}=hn(e);this.path=e,"object"==typeof t&&!0===t._sveltesparouter?(this.component=t.component,this.conditions=t.conditions||[],this.userData=t.userData,this.props=t.props||{}):(this.component=()=>Promise.resolve(t),this.conditions=[],this.props={}),this._pattern=n,this._keys=o}match(e){if(c)if("string"==typeof c){if(!e.startsWith(c))return null;e=e.substr(c.length)||"/"}else if(c instanceof RegExp){const t=e.match(c);if(!t||!t[0])return null;e=e.substr(t[0].length)||"/"}const t=this._pattern.exec(e);if(null===t)return null;if(!1===this._keys)return t;const n={};let o=0;for(;o<this._keys.length;){try{n[this._keys[o]]=decodeURIComponent(t[o+1]||"")||null}catch(e){n[this._keys[o]]=null}o++}return n}async checkConditions(e){for(let t=0;t<this.conditions.length;t++)if(!await this.conditions[t](e))return!1;return!0}}const a=[];i instanceof Map?i.forEach((e,t)=>{a.push(new l(t,e))}):Object.keys(i).forEach(e=>{a.push(new l(e,i[e]))});let u=null,p=null,d={};const f=le();async function m(e,t){await ve(),f(e,t)}let $=null,g=null;r&&(g=e=>{$=e.state&&(e.state.__svelte_spa_router_scrollY||e.state.__svelte_spa_router_scrollX)?e.state:null},window.addEventListener("popstate",g),ce(()=>{Ln($)}));let h=null,w=null;const b=Sn.subscribe(async e=>{h=e;let t=0;for(;t<a.length;){const o=a[t].match(e.location);if(!o){t++;continue}const s={route:a[t].path,location:e.location,querystring:e.querystring,userData:a[t].userData,params:o&&"object"==typeof o&&Object.keys(o).length?o:null};if(!await a[t].checkConditions(s))return n(0,u=null),w=null,void m("conditionsFailed",s);m("routeLoading",Object.assign({},s));const i=a[t].component;if(w!=i){i.loading?(n(0,u=i.loading),w=i,n(1,p=i.loadingParams),n(2,d={}),m("routeLoaded",Object.assign({},s,{component:u,name:u.name,params:p}))):(n(0,u=null),w=null);const t=await i();if(e!=h)return;n(0,u=t&&t.default||t),w=i}return o&&"object"==typeof o&&Object.keys(o).length?n(1,p=o):n(1,p=null),n(2,d=a[t].props),void m("routeLoaded",Object.assign({},s,{component:u,name:u.name,params:p})).then(()=>{jn.set(p)})}n(0,u=null),w=null,jn.set(void 0)});re(()=>{b(),g&&window.removeEventListener("popstate",g)});const v=["routes","prefix","restoreScrollState"];return bn.keys(t).forEach(e=>{~v.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||vn.warn(`<Router> was created with unknown prop '${e}'`)}),e.$$set=e=>{"routes"in e&&n(3,i=e.routes),"prefix"in e&&n(4,c=e.prefix),"restoreScrollState"in e&&n(5,r=e.restoreScrollState)},e.$capture_state=()=>({readable:at,writable:ut,derived:pt,tick:ve,_wrap:mn,wrap:xn,getLocation:Pn,loc:Sn,location:Rn,querystring:En,params:jn,push:Bn,pop:Nn,replace:On,link:Tn,restoreScroll:Ln,updateLink:Dn,linkOpts:Cn,scrollstateHistoryHandler:Mn,onDestroy:re,createEventDispatcher:le,afterUpdate:ce,parse:hn,routes:i,prefix:c,restoreScrollState:r,RouteItem:l,routesList:a,component:u,componentParams:p,props:d,dispatch:f,dispatchNextTick:m,previousScrollState:$,popStateChanged:g,lastLoc:h,componentObj:w,unsubscribeLoc:b}),e.$inject_state=e=>{"routes"in e&&n(3,i=e.routes),"prefix"in e&&n(4,c=e.prefix),"restoreScrollState"in e&&n(5,r=e.restoreScrollState),"component"in e&&n(0,u=e.component),"componentParams"in e&&n(1,p=e.componentParams),"props"in e&&n(2,d=e.props),"previousScrollState"in e&&($=e.previousScrollState),"popStateChanged"in e&&(g=e.popStateChanged),"lastLoc"in e&&(h=e.lastLoc),"componentObj"in e&&(w=e.componentObj)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{32&e.$$.dirty&&(history.scrollRestoration=r?"manual":"auto")},[u,p,d,i,c,r,function(t){de.call(this,e,t)},function(t){de.call(this,e,t)}]}class Fn extends rt{constructor(e){super(e),Xe(this,e,Hn,kn,l,{routes:3,prefix:4,restoreScrollState:5}),Je("SvelteRegisterComponent",{component:this,tagName:"Router",options:e,id:kn.name})}get routes(){throw new wn("<Router>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set routes(e){throw new wn("<Router>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get prefix(){throw new wn("<Router>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set prefix(e){throw new wn("<Router>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get restoreScrollState(){throw new wn("<Router>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set restoreScrollState(e){throw new wn("<Router>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function An(e){let t,n,s;const i=e[4].default,c=$(i,e,e[3],null),r={c:function(){t=C("div"),c&&c.c(),tt(t,"class",n="page-wrapper "+e[0]),Y(t,"subpage",e[1]),o(t,"ui/components/Page.svelte",30,0,796)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,n){Ze(e,t,n),c&&c.m(t,null),s=!0},p:function(e,[o]){c&&c.p&&(!s||8&o)&&w(c,i,e,e[3],s?h(i,e[3],o,null):b(e[3]),null),(!s||1&o&&n!==(n="page-wrapper "+e[0]))&&tt(t,"class",n),(!s||3&o)&&Y(t,"subpage",e[1])},i:function(e){s||(Te(c,e),s=!0)},o:function(e){Le(c,e),s=!1},d:function(e){e&&Qe(t),c&&c.d(e)}};return Je("SvelteRegisterBlock",{block:r,id:An.name,type:"component",source:"",ctx:e}),r}function Kn(e,t,n){let o,s;p(Rn,"location"),m(e,Rn,e=>n(5,o=e)),p($t,"current_settings"),m(e,$t,e=>n(6,s=e));let{$$slots:i={},$$scope:c}=t;it("Page",i,["default"]);let{name:r=""}=t,{subpage:l=!1}=t,{initialSettings:a=s}=t;const u=le();ae("initialSettings",a),ie(()=>{u("routeEvent",{event:"page.initial.settings",data:{settings:a,location:o}})});const d=["name","subpage","initialSettings"];return Object.keys(t).forEach(e=>{~d.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Page> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,r=e.name),"subpage"in e&&n(1,l=e.subpage),"initialSettings"in e&&n(2,a=e.initialSettings),"$$scope"in e&&n(3,c=e.$$scope)},e.$capture_state=()=>({onMount:ie,createEventDispatcher:le,setContext:ae,location:Rn,current_settings:$t,name:r,subpage:l,initialSettings:a,dispatch:u,$location:o,$current_settings:s}),e.$inject_state=e=>{"name"in e&&n(0,r=e.name),"subpage"in e&&n(1,l=e.subpage),"initialSettings"in e&&n(2,a=e.initialSettings)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[r,l,a,c,i]}class In extends rt{constructor(e){super(e),Xe(this,e,Kn,An,l,{name:0,subpage:1,initialSettings:2}),Je("SvelteRegisterComponent",{component:this,tagName:"Page",options:e,id:An.name})}get name(){throw new Error("<Page>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<Page>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get subpage(){throw new Error("<Page>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set subpage(e){throw new Error("<Page>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get initialSettings(){throw new Error("<Page>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set initialSettings(e){throw new Error("<Page>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Un="ui/components/Button.svelte";function qn(e){let t,n;const s={c:function(){t=C("img"),tt(t,"class","icon refresh"),u(t.src,n=e[15](e[11]))||tt(t,"src",n),tt(t,"alt",e[12]),Y(t,"refreshing",e[11]),o(t,Un,72,2,1802)},m:function(e,n){Ze(e,t,n)},p:function(e,o){2048&o&&!u(t.src,n=e[15](e[11]))&&tt(t,"src",n),4096&o&&tt(t,"alt",e[12]),2048&o&&Y(t,"refreshing",e[11])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:qn.name,type:"if",source:"(72:1) {#if refresh}",ctx:e}),s}function Vn(e){let t,n,s,i,r,l,a=e[7]&&qn(e);const u=e[17].default,p=$(u,e,e[16],null),d={c:function(){t=C("button"),a&&a.c(),n=H(),p&&p.c(),tt(t,"class",e[13]),tt(t,"title",e[12]),t.disabled=s=e[9]||e[11],Y(t,"btn-xs",e[1]),Y(t,"btn-sm",e[2]),Y(t,"btn-md",e[4]),Y(t,"btn-lg",e[3]),Y(t,"btn-primary",e[5]),Y(t,"btn-outline",e[8]),Y(t,"btn-expandable",e[6]),Y(t,"btn-disabled",e[9]),Y(t,"btn-expanded",e[10]),Y(t,"btn-refresh",e[7]),Y(t,"btn-refreshing",e[11]),o(t,Un,51,0,1322)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(o,s){Ze(o,t,s),a&&a.m(t,null),Ge(t,n),p&&p.m(t,null),e[20](t),i=!0,r||(l=[et(t,"click",K(e[18]),!1,!0,!1,!1),et(t,"focusout",e[19],!1,!1,!1,!1),et(t,"keyup",e[14],!1,!1,!1,!1)],r=!0)},p:function(e,[o]){e[7]?a?a.p(e,o):(a=qn(e),a.c(),a.m(t,n)):a&&(a.d(1),a=null),p&&p.p&&(!i||65536&o)&&w(p,u,e,e[16],i?h(u,e[16],o,null):b(e[16]),null),(!i||4096&o)&&tt(t,"title",e[12]),(!i||2560&o&&s!==(s=e[9]||e[11]))&&nt(t,"disabled",s),(!i||2&o)&&Y(t,"btn-xs",e[1]),(!i||4&o)&&Y(t,"btn-sm",e[2]),(!i||16&o)&&Y(t,"btn-md",e[4]),(!i||8&o)&&Y(t,"btn-lg",e[3]),(!i||32&o)&&Y(t,"btn-primary",e[5]),(!i||256&o)&&Y(t,"btn-outline",e[8]),(!i||64&o)&&Y(t,"btn-expandable",e[6]),(!i||512&o)&&Y(t,"btn-disabled",e[9]),(!i||1024&o)&&Y(t,"btn-expanded",e[10]),(!i||128&o)&&Y(t,"btn-refresh",e[7]),(!i||2048&o)&&Y(t,"btn-refreshing",e[11])},i:function(e){i||(Te(p,e),i=!0)},o:function(e){Le(p,e),i=!1},d:function(n){n&&Qe(t),a&&a.d(),p&&p.d(n),e[20](null),r=!1,c(l)}};return Je("SvelteRegisterBlock",{block:d,id:Vn.name,type:"component",source:"",ctx:e}),d}function Wn(e,t,o){let s;p(bt,"urls"),m(e,bt,e=>o(21,s=e));let{$$slots:i={},$$scope:c}=t;it("Button",i,["default"]);const r=t.class?t.class:"",l=le();let{ref:a={}}=t,{extraSmall:u=!1}=t,{small:d=!1}=t,{large:f=!1}=t,{medium:$=!u&&!d&&!f}=t,{primary:g=!1}=t,{expandable:h=!1}=t,{refresh:w=!1}=t,{outline:b=!g&&!h&&!w}=t,{disabled:y=!1}=t,{expanded:_=!1}=t,{refreshing:k=!1}=t,{title:x=""}=t;function P(e){"Escape"===e.key&&(e.preventDefault(),l("cancel"))}function S(e){return s.assets+"img/icon/"+(e?"refresh-disabled.svg":"refresh.svg")}return e.$$set=e=>{o(23,t=n(n({},t),v(e))),"ref"in e&&o(0,a=e.ref),"extraSmall"in e&&o(1,u=e.extraSmall),"small"in e&&o(2,d=e.small),"large"in e&&o(3,f=e.large),"medium"in e&&o(4,$=e.medium),"primary"in e&&o(5,g=e.primary),"expandable"in e&&o(6,h=e.expandable),"refresh"in e&&o(7,w=e.refresh),"outline"in e&&o(8,b=e.outline),"disabled"in e&&o(9,y=e.disabled),"expanded"in e&&o(10,_=e.expanded),"refreshing"in e&&o(11,k=e.refreshing),"title"in e&&o(12,x=e.title),"$$scope"in e&&o(16,c=e.$$scope)},e.$capture_state=()=>({createEventDispatcher:le,urls:bt,classes:r,dispatch:l,ref:a,extraSmall:u,small:d,large:f,medium:$,primary:g,expandable:h,refresh:w,outline:b,disabled:y,expanded:_,refreshing:k,title:x,handleKeyup:P,refreshIcon:S,$urls:s}),e.$inject_state=e=>{o(23,t=n(n({},t),e)),"ref"in t&&o(0,a=e.ref),"extraSmall"in t&&o(1,u=e.extraSmall),"small"in t&&o(2,d=e.small),"large"in t&&o(3,f=e.large),"medium"in t&&o(4,$=e.medium),"primary"in t&&o(5,g=e.primary),"expandable"in t&&o(6,h=e.expandable),"refresh"in t&&o(7,w=e.refresh),"outline"in t&&o(8,b=e.outline),"disabled"in t&&o(9,y=e.disabled),"expanded"in t&&o(10,_=e.expanded),"refreshing"in t&&o(11,k=e.refreshing),"title"in t&&o(12,x=e.title)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),t=v(t),[a,u,d,f,$,g,h,w,b,y,_,k,x,r,P,S,c,i,function(t){de.call(this,e,t)},function(t){de.call(this,e,t)},function(e){me[e?"unshift":"push"](()=>{a=e,o(0,a)})}]}class zn extends rt{constructor(e){super(e),Xe(this,e,Wn,Vn,l,{ref:0,extraSmall:1,small:2,large:3,medium:4,primary:5,expandable:6,refresh:7,outline:8,disabled:9,expanded:10,refreshing:11,title:12}),Je("SvelteRegisterComponent",{component:this,tagName:"Button",options:e,id:Vn.name})}get ref(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set ref(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get extraSmall(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set extraSmall(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get small(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set small(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get large(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set large(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get medium(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set medium(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get primary(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set primary(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get expandable(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set expandable(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get refresh(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set refresh(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get outline(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set outline(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get disabled(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set disabled(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get expanded(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set expanded(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get refreshing(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set refreshing(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get title(){throw new Error("<Button>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set title(e){throw new Error("<Button>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Xn="ui/components/Notification.svelte",Yn=e=>({}),Jn=e=>({});function Gn(e){let t,n,s,i,c;const r={c:function(){t=C("div"),n=C("img"),tt(n,"class","icon type"),u(n.src,s=e[18])||tt(n,"src",s),tt(n,"alt",i=e[0].type+" icon"),o(n,Xn,97,4,2657),tt(t,"class","icon type"),ye(()=>e[25].call(t)),o(t,Xn,96,3,2598)},m:function(o,s){Ze(o,t,s),Ge(t,n),c=X(t,e[25].bind(t))},p:function(e,t){262144&t[0]&&!u(n.src,s=e[18])&&tt(n,"src",s),1&t[0]&&i!==(i=e[0].type+" icon")&&tt(n,"alt",i)},d:function(e){e&&Qe(t),c()}};return Je("SvelteRegisterBlock",{block:r,id:Gn.name,type:"if",source:"(96:2) {#if iconURL}",ctx:e}),r}function Zn(e){let t,n,s,i,c,r=e[8]&&Qn(e);const l=[so,oo,no],a=[];function u(e,t){return e[9]&&e[12]?0:e[12]?1:e[9]?2:-1}~(s=u(e))&&(i=a[s]=l[s](e));const p={c:function(){t=C("div"),r&&r.c(),n=H(),i&&i.c(),tt(t,"class","heading"),o(t,Xn,102,4,2847)},m:function(e,o){Ze(e,t,o),r&&r.m(t,null),Ge(t,n),~s&&a[s].m(t,null),c=!0},p:function(e,o){e[8]?r?r.p(e,o):(r=Qn(e),r.c(),r.m(t,n)):r&&(r.d(1),r=null);let c=s;s=u(e),s===c?~s&&a[s].p(e,o):(i&&(Ne(),Le(a[c],1,1,()=>{a[c]=null}),Oe()),~s?(i=a[s],i?i.p(e,o):(i=a[s]=l[s](e),i.c()),Te(i,1),i.m(t,null)):i=null)},i:function(e){c||(Te(i),c=!0)},o:function(e){Le(i),c=!1},d:function(e){e&&Qe(t),r&&r.d(),~s&&a[s].d()}};return Je("SvelteRegisterBlock",{block:p,id:Zn.name,type:"if",source:"(102:3) {#if heading || dismissible || expandable}",ctx:e}),p}function Qn(e){let t;function n(e,t){return e[10]?to:eo}let o=n(e),s=o(e);const i={c:function(){s.c(),t=F()},m:function(e,n){s.m(e,n),Ze(e,t,n)},p:function(e,i){o===(o=n(e))&&s?s.p(e,i):(s.d(1),s=o(e),s&&(s.c(),s.m(t.parentNode,t)))},d:function(e){e&&Qe(t),s.d(e)}};return Je("SvelteRegisterBlock",{block:i,id:Qn.name,type:"if",source:"(104:5) {#if heading}",ctx:e}),i}function eo(e){let t;const n={c:function(){t=C("h3"),o(t,Xn,107,7,2964)},m:function(n,o){Ze(n,t,o),t.innerHTML=e[8]},p:function(e,n){256&n[0]&&(t.innerHTML=e[8])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:eo.name,type:"else",source:"(107:6) {:else}",ctx:e}),n}function to(e){let t;const n={c:function(){t=C("p"),o(t,Xn,105,7,2920)},m:function(n,o){Ze(n,t,o),t.innerHTML=e[8]},p:function(e,n){256&n[0]&&(t.innerHTML=e[8])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:to.name,type:"if",source:"(105:6) {#if plainHeading}",ctx:e}),n}function no(t){let n,s,i,c;const r={c:function(){n=C("button"),tt(n,"class","icon close"),tt(n,"title",s=t[19].dismiss_notice),o(n,Xn,116,6,3529)},m:function(e,o){Ze(e,n,o),i||(c=et(n,"click",K(t[28]),!1,!0,!1,!1),i=!0)},p:function(e,t){524288&t[0]&&s!==(s=e[19].dismiss_notice)&&tt(n,"title",s)},i:e,o:e,d:function(e){e&&Qe(n),i=!1,c()}};return Je("SvelteRegisterBlock",{block:r,id:no.name,type:"if",source:"(116:27) ",ctx:t}),r}function oo(e){let t,n;t=new zn({props:{expandable:!0,expanded:e[1],title:e[1]?e[19].hide_details:e[19].show_details},$$inline:!0}),t.$on("click",e[27]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};2&n[0]&&(o.expanded=e[1]),524290&n[0]&&(o.title=e[1]?e[19].hide_details:e[19].show_details),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:oo.name,type:"if",source:"(114:26) ",ctx:e}),o}function so(e){let t,n,s,i,c,l,a,u=e[19].dismiss_all+"";i=new zn({props:{expandable:!0,expanded:e[1],title:e[1]?e[19].hide_details:e[19].show_details},$$inline:!0}),i.$on("click",e[26]);const p={c:function(){t=C("button"),n=M(u),s=H(),Ve(i.$$.fragment),tt(t,"class","dismiss"),o(t,Xn,111,6,3055)},m:function(o,u){Ze(o,t,u),Ge(t,n),Ze(o,s,u),We(i,o,u),c=!0,l||(a=et(t,"click",K(function(){r(Wt.dismiss(e[2]))&&Wt.dismiss(e[2]).apply(this,arguments)}),!1,!0,!1,!1),l=!0)},p:function(t,o){e=t,(!c||524288&o[0])&&u!==(u=e[19].dismiss_all+"")&&ot(n,u);const s={};2&o[0]&&(s.expanded=e[1]),524290&o[0]&&(s.title=e[1]?e[19].hide_details:e[19].show_details),i.$set(s)},i:function(e){c||(Te(i.$$.fragment,e),c=!0)},o:function(e){Le(i.$$.fragment,e),c=!1},d:function(e){e&&(Qe(t),Qe(s)),ze(i,e),l=!1,a()}};return Je("SvelteRegisterBlock",{block:p,id:so.name,type:"if",source:"(111:5) {#if dismissible && expandable}",ctx:e}),p}function io(e){let t;const n={c:function(){t=C("p"),o(t,Xn,122,4,3727)},m:function(n,o){Ze(n,t,o),t.innerHTML=e[11]},p:function(e,n){2048&n[0]&&(t.innerHTML=e[11])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:io.name,type:"if",source:"(122:3) {#if extra}",ctx:e}),n}function co(e){let t;const n={c:function(){t=C("p"),tt(t,"class","links"),o(t,Xn,125,4,3780)},m:function(n,o){Ze(n,t,o),t.innerHTML=e[16]},p:function(e,n){65536&n[0]&&(t.innerHTML=e[16])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:co.name,type:"if",source:"(125:3) {#if linksHTML}",ctx:e}),n}function ro(e){let t,n,s,i,c,r,l,a,u,p,d=e[18]&&Gn(e),f=(e[8]||e[9]||e[12])&&Zn(e);const m=e[24].default,g=$(m,e,e[23],null);let v=e[11]&&io(e),y=e[16]&&co(e);const _=e[24].details,k=$(_,e,e[23],Jn),x={c:function(){t=C("div"),n=C("div"),d&&d.c(),s=H(),i=C("div"),f&&f.c(),c=H(),g&&g.c(),r=H(),v&&v.c(),l=H(),y&&y.c(),u=H(),k&&k.c(),tt(i,"class","body"),ye(()=>e[29].call(i)),o(i,Xn,100,2,2747),tt(n,"class","content"),o(n,Xn,94,1,2557),tt(t,"class","notification "+e[20]),Y(t,"inline",e[3]),Y(t,"wordpress",e[4]),Y(t,"success",e[5]),Y(t,"warning",e[6]),Y(t,"error",e[7]),Y(t,"info",e[15]),Y(t,"multiline",e[17]),Y(t,"expandable",e[12]),Y(t,"expanded",e[1]),o(t,Xn,82,0,2380)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(o,m){Ze(o,t,m),Ge(t,n),d&&d.m(n,null),Ge(n,s),Ge(n,i),f&&f.m(i,null),Ge(i,c),g&&g.m(i,null),Ge(i,r),v&&v.m(i,null),Ge(i,l),y&&y.m(i,null),a=X(i,e[29].bind(i)),Ge(t,u),k&&k.m(t,null),p=!0},p:function(e,o){e[18]?d?d.p(e,o):(d=Gn(e),d.c(),d.m(n,s)):d&&(d.d(1),d=null),e[8]||e[9]||e[12]?f?(f.p(e,o),4864&o[0]&&Te(f,1)):(f=Zn(e),f.c(),Te(f,1),f.m(i,c)):f&&(Ne(),Le(f,1,1,()=>{f=null}),Oe()),g&&g.p&&(!p||8388608&o[0])&&w(g,m,e,e[23],p?h(m,e[23],o,null):b(e[23]),null),e[11]?v?v.p(e,o):(v=io(e),v.c(),v.m(i,l)):v&&(v.d(1),v=null),e[16]?y?y.p(e,o):(y=co(e),y.c(),y.m(i,null)):y&&(y.d(1),y=null),k&&k.p&&(!p||8388608&o[0])&&w(k,_,e,e[23],p?h(_,e[23],o,Yn):b(e[23]),Jn),(!p||8&o[0])&&Y(t,"inline",e[3]),(!p||16&o[0])&&Y(t,"wordpress",e[4]),(!p||32&o[0])&&Y(t,"success",e[5]),(!p||64&o[0])&&Y(t,"warning",e[6]),(!p||128&o[0])&&Y(t,"error",e[7]),(!p||32768&o[0])&&Y(t,"info",e[15]),(!p||131072&o[0])&&Y(t,"multiline",e[17]),(!p||4096&o[0])&&Y(t,"expandable",e[12]),(!p||2&o[0])&&Y(t,"expanded",e[1])},i:function(e){p||(Te(f),Te(g,e),Te(k,e),p=!0)},o:function(e){Le(f),Le(g,e),Le(k,e),p=!1},d:function(e){e&&Qe(t),d&&d.d(),f&&f.d(),g&&g.d(e),v&&v.d(),y&&y.d(),a(),k&&k.d(e)}};return Je("SvelteRegisterBlock",{block:x,id:ro.name,type:"component",source:"",ctx:e}),x}function lo(e){return e.length?e.join(" "):""}function ao(e,t,o){let s,i,c,r,l;p(bt,"urls"),m(e,bt,e=>o(30,r=e)),p(ht,"strings"),m(e,ht,e=>o(19,l=e));let{$$slots:a={},$$scope:u}=t;it("Notification",a,["default","details"]);const d=t.class?t.class:"";let{notification:f={}}=t,{unique_id:$=(f.id?f.id:"")}=t,{inline:g=!!f.inline&&f.inline}=t,{wordpress:h=!!f.wordpress&&f.wordpress}=t,{success:w="success"===f.type}=t,{warning:b="warning"===f.type}=t,{error:y="error"===f.type}=t,_=!1;w?f.type="success":b?f.type="warning":y?f.type="error":(_=!0,f.type="info");let{heading:k=(f.hasOwnProperty("heading")&&f.heading.trim().length?f.heading.trim():"")}=t,{dismissible:x=!!f.dismissible&&f.dismissible}=t,{icon:P=!!f.icon&&f.icon}=t,{plainHeading:S=!!f.plainHeading&&f.plainHeading}=t,{extra:R=(f.extra?f.extra:"")}=t,{links:E=(f.links?f.links:[])}=t,{expandable:j=!1}=t,{expanded:B=!1}=t;function N(e,t){return e?r.assets+"img/icon/"+e:r.assets+"img/icon/notification-"+t+".svg"}let O=0,T=0;return e.$$set=e=>{o(32,t=n(n({},t),v(e))),"notification"in e&&o(0,f=e.notification),"unique_id"in e&&o(2,$=e.unique_id),"inline"in e&&o(3,g=e.inline),"wordpress"in e&&o(4,h=e.wordpress),"success"in e&&o(5,w=e.success),"warning"in e&&o(6,b=e.warning),"error"in e&&o(7,y=e.error),"heading"in e&&o(8,k=e.heading),"dismissible"in e&&o(9,x=e.dismissible),"icon"in e&&o(21,P=e.icon),"plainHeading"in e&&o(10,S=e.plainHeading),"extra"in e&&o(11,R=e.extra),"links"in e&&o(22,E=e.links),"expandable"in e&&o(12,j=e.expandable),"expanded"in e&&o(1,B=e.expanded),"$$scope"in e&&o(23,u=e.$$scope)},e.$capture_state=()=>({notifications:Wt,strings:ht,urls:bt,Button:zn,classes:d,notification:f,unique_id:$,inline:g,wordpress:h,success:w,warning:b,error:y,info:_,heading:k,dismissible:x,icon:P,plainHeading:S,extra:R,links:E,expandable:j,expanded:B,getIconURL:N,iconHeight:O,bodyHeight:T,getLinksHTML:lo,linksHTML:c,multiline:i,iconURL:s,$urls:r,$strings:l}),e.$inject_state=e=>{o(32,t=n(n({},t),e)),"notification"in t&&o(0,f=e.notification),"unique_id"in t&&o(2,$=e.unique_id),"inline"in t&&o(3,g=e.inline),"wordpress"in t&&o(4,h=e.wordpress),"success"in t&&o(5,w=e.success),"warning"in t&&o(6,b=e.warning),"error"in t&&o(7,y=e.error),"info"in t&&o(15,_=e.info),"heading"in t&&o(8,k=e.heading),"dismissible"in t&&o(9,x=e.dismissible),"icon"in t&&o(21,P=e.icon),"plainHeading"in t&&o(10,S=e.plainHeading),"extra"in t&&o(11,R=e.extra),"links"in t&&o(22,E=e.links),"expandable"in t&&o(12,j=e.expandable),"expanded"in t&&o(1,B=e.expanded),"iconHeight"in t&&o(13,O=e.iconHeight),"bodyHeight"in t&&o(14,T=e.bodyHeight),"linksHTML"in t&&o(16,c=e.linksHTML),"multiline"in t&&o(17,i=e.multiline),"iconURL"in t&&o(18,s=e.iconURL)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{2097153&e.$$.dirty[0]&&o(18,s=N(P,f.type)),24576&e.$$.dirty[0]&&o(17,i=O&&T&&T>O),4194304&e.$$.dirty[0]&&o(16,c=lo(E))},t=v(t),[f,B,$,g,h,w,b,y,k,x,S,R,j,O,T,_,c,i,s,l,d,P,E,u,a,function(){O=this.clientHeight,o(13,O)},()=>o(1,B=!B),()=>o(1,B=!B),()=>Wt.dismiss($),function(){T=this.clientHeight,o(14,T)}]}class uo extends rt{constructor(e){super(e),Xe(this,e,ao,ro,l,{notification:0,unique_id:2,inline:3,wordpress:4,success:5,warning:6,error:7,heading:8,dismissible:9,icon:21,plainHeading:10,extra:11,links:22,expandable:12,expanded:1},null,[-1,-1]),Je("SvelteRegisterComponent",{component:this,tagName:"Notification",options:e,id:ro.name})}get notification(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set notification(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get unique_id(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set unique_id(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get inline(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set inline(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get wordpress(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set wordpress(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get success(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set success(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get warning(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set warning(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get error(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set error(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get heading(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set heading(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get dismissible(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set dismissible(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get icon(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set icon(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get plainHeading(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set plainHeading(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get extra(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set extra(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get links(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set links(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get expandable(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set expandable(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get expanded(){throw new Error("<Notification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set expanded(e){throw new Error("<Notification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const{Object:po}=j,fo="ui/components/Notifications.svelte";function mo(e,t,n){const o=e.slice();return o[6]=t[n],o}function $o(e){let t,n,s=[],i=new Map,c=st(e[1]);const r=e=>e[6].render_key;Ke(e,c,mo,r);for(let t=0;t<c.length;t+=1){let n=mo(e,c,t),o=r(n);i.set(o,s[t]=bo(o,n))}const l={c:function(){t=C("div");for(let e=0;e<s.length;e+=1)s[e].c();tt(t,"id","notifications"),tt(t,"class","notifications wrapper"),o(t,fo,22,1,793)},m:function(e,o){Ze(e,t,o);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,null);n=!0},p:function(e,n){7&n&&(c=st(e[1]),Ne(),Ke(e,c,mo,r),s=Ae(s,n,r,1,e,c,i,t,Fe,bo,null,mo),Oe())},i:function(e){if(!n){for(let e=0;e<c.length;e+=1)Te(s[e]);n=!0}},o:function(e){for(let e=0;e<s.length;e+=1)Le(s[e]);n=!1},d:function(e){e&&Qe(t);for(let e=0;e<s.length;e+=1)s[e].d()}};return Je("SvelteRegisterBlock",{block:l,id:$o.name,type:"if",source:"(22:0) {#if $notifications.length && Object.values( $notifications ).filter( notification => renderNotification( notification ) ).length}",ctx:e}),l}function go(e){let t,n,o;var s=e[0];function i(e,t){return{props:{notification:e[6],$$slots:{default:[wo]},$$scope:{ctx:e}},$$inline:!0}}s&&(t=ct(s,i(e)));const c={c:function(){t&&Ve(t.$$.fragment),n=F()},m:function(e,s){t&&We(t,e,s),Ze(e,n,s),o=!0},p:function(e,o){if(1&o&&s!==(s=e[0])){if(t){Ne();const e=t;Le(e.$$.fragment,1,0,()=>{ze(e,1)}),Oe()}s?(t=ct(s,i(e)),Ve(t.$$.fragment),Te(t.$$.fragment,1),We(t,n.parentNode,n)):t=null}else if(s){const n={};2&o&&(n.notification=e[6]),514&o&&(n.$$scope={dirty:o,ctx:e}),t.$set(n)}},i:function(e){o||(t&&Te(t.$$.fragment,e),o=!0)},o:function(e){t&&Le(t.$$.fragment,e),o=!1},d:function(e){e&&Qe(n),t&&ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:go.name,type:"if",source:"(25:3) {#if renderNotification( notification )}",ctx:e}),c}function ho(e){let t,n=e[6].message+"";const s={c:function(){t=C("p"),o(t,fo,27,6,1065)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){2&o&&n!==(n=e[6].message+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:ho.name,type:"if",source:"(27:5) {#if notification.message}",ctx:e}),s}function wo(e){let t,n=e[6].message&&ho(e);const o={c:function(){n&&n.c(),t=H()},m:function(e,o){n&&n.m(e,o),Ze(e,t,o)},p:function(e,o){e[6].message?n?n.p(e,o):(n=ho(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d:function(e){e&&Qe(t),n&&n.d(e)}};return Je("SvelteRegisterBlock",{block:o,id:wo.name,type:"slot",source:"(26:4) <svelte:component this={component} notification={notification}>",ctx:e}),o}function bo(e,t){let n,o,s,i=t[2](t[6]),c=i&&go(t);const r={key:e,first:null,c:function(){n=F(),c&&c.c(),o=F(),this.first=n},m:function(e,t){Ze(e,n,t),c&&c.m(e,t),Ze(e,o,t),s=!0},p:function(e,n){t=e,2&n&&(i=t[2](t[6])),i?c?(c.p(t,n),2&n&&Te(c,1)):(c=go(t),c.c(),Te(c,1),c.m(o.parentNode,o)):c&&(Ne(),Le(c,1,1,()=>{c=null}),Oe())},i:function(e){s||(Te(c),s=!0)},o:function(e){Le(c),s=!1},d:function(e){e&&(Qe(n),Qe(o)),c&&c.d(e)}};return Je("SvelteRegisterBlock",{block:r,id:bo.name,type:"each",source:"(24:2) {#each $notifications as notification (notification.render_key)}",ctx:t}),r}function vo(e){let t,n,o=e[1].length&&Object.values(e[1]).filter(e[5]).length,s=o&&$o(e);const i={c:function(){s&&s.c(),t=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){s&&s.m(e,o),Ze(e,t,o),n=!0},p:function(e,[n]){2&n&&(o=e[1].length&&Object.values(e[1]).filter(e[5]).length),o?s?(s.p(e,n),2&n&&Te(s,1)):(s=$o(e),s.c(),Te(s,1),s.m(t.parentNode,t)):s&&(Ne(),Le(s,1,1,()=>{s=null}),Oe())},i:function(e){n||(Te(s),n=!0)},o:function(e){Le(s),n=!1},d:function(e){e&&Qe(t),s&&s.d(e)}};return Je("SvelteRegisterBlock",{block:i,id:vo.name,type:"component",source:"",ctx:e}),i}function yo(e,t,n){let o;p(Wt,"notifications"),m(e,Wt,e=>n(1,o=e));let{$$slots:s={},$$scope:i}=t;it("Notifications",s,[]);let{component:c=uo}=t,{tab:r=""}=t,{tabParent:l=""}=t;function a(e){let t=!e.dismissed,n=e.only_show_on_tab===r&&!0!==e.hide_on_parent,o=e.only_show_on_tab===l,s=!e.only_show_on_tab;return t&&(n||o||s)}const u=["component","tab","tabParent"];po.keys(t).forEach(e=>{~u.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Notifications> was created with unknown prop '${e}'`)});return e.$$set=e=>{"component"in e&&n(0,c=e.component),"tab"in e&&n(3,r=e.tab),"tabParent"in e&&n(4,l=e.tabParent)},e.$capture_state=()=>({notifications:Wt,Notification:uo,component:c,tab:r,tabParent:l,renderNotification:a,$notifications:o}),e.$inject_state=e=>{"component"in e&&n(0,c=e.component),"tab"in e&&n(3,r=e.tab),"tabParent"in e&&n(4,l=e.tabParent)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[c,o,a,r,l,e=>a(e)]}class _o extends rt{constructor(e){super(e),Xe(this,e,yo,vo,l,{component:0,tab:3,tabParent:4}),Je("SvelteRegisterComponent",{component:this,tagName:"Notifications",options:e,id:vo.name})}get component(){throw new Error("<Notifications>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set component(e){throw new Error("<Notifications>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get tab(){throw new Error("<Notifications>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set tab(e){throw new Error("<Notifications>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get tabParent(){throw new Error("<Notifications>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set tabParent(e){throw new Error("<Notifications>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const ko="ui/components/SubNavItem.svelte";function xo(e){let t,n,s,i,c;const r={c:function(){t=C("div"),n=C("img"),tt(n,"class","notice-icon svelte-jtkdoa"),u(n.src,s=e[4])||tt(n,"src",s),tt(n,"alt",i=e[0].noticeIcon),o(n,ko,27,4,799),tt(t,"class",c="notice-icon-wrapper notice-icon-"+e[0].noticeIcon+" svelte-jtkdoa"),o(t,ko,26,3,731)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,o){16&o&&!u(n.src,s=e[4])&&tt(n,"src",s),1&o&&i!==(i=e[0].noticeIcon)&&tt(n,"alt",i),1&o&&c!==(c="notice-icon-wrapper notice-icon-"+e[0].noticeIcon+" svelte-jtkdoa")&&tt(t,"class",c)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:r,id:xo.name,type:"if",source:"(26:2) {#if showIcon}",ctx:e}),r}function Po(t){let n,s,i,r,l,a,u,p,d=t[0].title()+"",f=t[1]&&xo(t);const m={c:function(){n=C("li"),s=C("a"),i=M(d),r=H(),f&&f.c(),tt(s,"href",l=t[0].route),tt(s,"title",a=t[0].title()),o(s,ko,15,1,489),tt(n,"class","subnav-item"),Y(n,"active",t[5]===t[0].route),Y(n,"focus",t[2]),Y(n,"hover",t[3]),Y(n,"has-icon",t[1]),o(n,ko,14,0,373)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,n,o),Ge(n,s),Ge(s,i),Ge(s,r),f&&f.m(s,null),u||(p=[_(Tn.call(null,s)),et(s,"focusin",t[7],!1,!1,!1,!1),et(s,"focusout",t[8],!1,!1,!1,!1),et(s,"mouseenter",t[9],!1,!1,!1,!1),et(s,"mouseleave",t[10],!1,!1,!1,!1)],u=!0)},p:function(e,[t]){1&t&&d!==(d=e[0].title()+"")&&ot(i,d),e[1]?f?f.p(e,t):(f=xo(e),f.c(),f.m(s,null)):f&&(f.d(1),f=null),1&t&&l!==(l=e[0].route)&&tt(s,"href",l),1&t&&a!==(a=e[0].title())&&tt(s,"title",a),33&t&&Y(n,"active",e[5]===e[0].route),4&t&&Y(n,"focus",e[2]),8&t&&Y(n,"hover",e[3]),2&t&&Y(n,"has-icon",e[1])},i:e,o:e,d:function(e){e&&Qe(n),f&&f.d(),u=!1,c(p)}};return Je("SvelteRegisterBlock",{block:m,id:Po.name,type:"component",source:"",ctx:t}),m}function So(e,t,n){let o,s,i,c;p(bt,"urls"),m(e,bt,e=>n(6,i=e)),p(Rn,"location"),m(e,Rn,e=>n(5,c=e));let{$$slots:r={},$$scope:l}=t;it("SubNavItem",r,[]);let{page:a}=t,u=!1,d=!1;e.$$.on_mount.push(function(){void 0!==a||"page"in t||e.$$.bound[e.$$.props.page]||console.warn("<SubNavItem> was created without expected prop 'page'")});const f=["page"];Object.keys(t).forEach(e=>{~f.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<SubNavItem> was created with unknown prop '${e}'`)});return e.$$set=e=>{"page"in e&&n(0,a=e.page)},e.$capture_state=()=>({link:Tn,location:Rn,urls:bt,page:a,focus:u,hover:d,showIcon:o,iconUrl:s,$urls:i,$location:c}),e.$inject_state=e=>{"page"in e&&n(0,a=e.page),"focus"in e&&n(2,u=e.focus),"hover"in e&&n(3,d=e.hover),"showIcon"in e&&n(1,o=e.showIcon),"iconUrl"in e&&n(4,s=e.iconUrl)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{1&e.$$.dirty&&n(1,o="string"==typeof a.noticeIcon&&["warning","error"].includes(a.noticeIcon)),67&e.$$.dirty&&n(4,s=o?i.assets+"img/icon/tab-notifier-"+a.noticeIcon+".svg":"")},[a,o,u,d,s,c,i,()=>n(2,u=!0),()=>n(2,u=!1),()=>n(3,d=!0),()=>n(3,d=!1)]}class Ro extends rt{constructor(e){super(e),Xe(this,e,So,Po,l,{page:0}),Je("SvelteRegisterComponent",{component:this,tagName:"SubNavItem",options:e,id:Po.name})}get page(){throw new Error("<SubNavItem>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set page(e){throw new Error("<SubNavItem>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Eo="ui/components/SubNav.svelte";function jo(e,t,n){const o=e.slice();return o[6]=t[n],o[8]=n,o}function Bo(e){let t,n,s,i=st(e[3]),c=[];for(let t=0;t<i.length;t+=1)c[t]=Oo(jo(e,i,t));const r=e=>Le(c[e],1,1,()=>{c[e]=null}),l={c:function(){t=C("ul");for(let e=0;e<c.length;e+=1)c[e].c();tt(t,"class",n="subnav "+e[0]),Y(t,"subpage",e[1]),Y(t,"progress",e[2]),o(t,Eo,13,1,361)},m:function(e,n){Ze(e,t,n);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(t,null);s=!0},p:function(e,o){if(28&o){let n;for(i=st(e[3]),n=0;n<i.length;n+=1){const s=jo(e,i,n);c[n]?(c[n].p(s,o),Te(c[n],1)):(c[n]=Oo(s),c[n].c(),Te(c[n],1),c[n].m(t,null))}for(Ne(),n=i.length;n<c.length;n+=1)r(n);Oe()}(!s||1&o&&n!==(n="subnav "+e[0]))&&tt(t,"class",n),(!s||3&o)&&Y(t,"subpage",e[1]),(!s||5&o)&&Y(t,"progress",e[2])},i:function(e){if(!s){for(let e=0;e<i.length;e+=1)Te(c[e]);s=!0}},o:function(e){c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)Le(c[e]);s=!1},d:function(e){e&&Qe(t),D(c,e)}};return Je("SvelteRegisterBlock",{block:l,id:Bo.name,type:"if",source:"(13:0) {#if displayItems}",ctx:e}),l}function No(e){let t,n,s,i;const c={c:function(){t=C("li"),n=C("img"),i=H(),u(n.src,s=e[4].assets+"img/icon/subnav-arrow.svg")||tt(n,"src",s),tt(n,"alt",""),o(n,Eo,19,5,634),tt(t,"class","step-arrow"),o(t,Eo,18,4,605)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(t,i)},p:function(e,t){16&t&&!u(n.src,s=e[4].assets+"img/icon/subnav-arrow.svg")&&tt(n,"src",s)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:c,id:No.name,type:"if",source:"(18:3) {#if progress && index < (displayItems.length - 1)}",ctx:e}),c}function Oo(e){let t,n,o,s;t=new Ro({props:{page:e[6]},$$inline:!0});let i=e[2]&&e[8]<e[3].length-1&&No(e);const c={c:function(){Ve(t.$$.fragment),n=H(),i&&i.c(),o=F()},m:function(e,c){We(t,e,c),Ze(e,n,c),i&&i.m(e,c),Ze(e,o,c),s=!0},p:function(e,n){const s={};8&n&&(s.page=e[6]),t.$set(s),e[2]&&e[8]<e[3].length-1?i?i.p(e,n):(i=No(e),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},i:function(e){s||(Te(t.$$.fragment,e),s=!0)},o:function(e){Le(t.$$.fragment,e),s=!1},d:function(e){e&&(Qe(n),Qe(o)),ze(t,e),i&&i.d(e)}};return Je("SvelteRegisterBlock",{block:c,id:Oo.name,type:"each",source:"(15:2) {#each displayItems as page, index}",ctx:e}),c}function To(e){let t,n,o=e[3]&&Bo(e);const s={c:function(){o&&o.c(),t=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,s){o&&o.m(e,s),Ze(e,t,s),n=!0},p:function(e,[n]){e[3]?o?(o.p(e,n),8&n&&Te(o,1)):(o=Bo(e),o.c(),Te(o,1),o.m(t.parentNode,t)):o&&(Ne(),Le(o,1,1,()=>{o=null}),Oe())},i:function(e){n||(Te(o),n=!0)},o:function(e){Le(o),n=!1},d:function(e){e&&Qe(t),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:To.name,type:"component",source:"",ctx:e}),s}function Lo(e,t,n){let o,s;p(bt,"urls"),m(e,bt,e=>n(4,s=e));let{$$slots:i={},$$scope:c}=t;it("SubNav",i,[]);let{name:r="media"}=t,{items:l=[]}=t,{subpage:a=!1}=t,{progress:u=!1}=t;const d=["name","items","subpage","progress"];return Object.keys(t).forEach(e=>{~d.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<SubNav> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,r=e.name),"items"in e&&n(5,l=e.items),"subpage"in e&&n(1,a=e.subpage),"progress"in e&&n(2,u=e.progress)},e.$capture_state=()=>({urls:bt,SubNavItem:Ro,name:r,items:l,subpage:a,progress:u,displayItems:o,$urls:s}),e.$inject_state=e=>{"name"in e&&n(0,r=e.name),"items"in e&&n(5,l=e.items),"subpage"in e&&n(1,a=e.subpage),"progress"in e&&n(2,u=e.progress),"displayItems"in e&&n(3,o=e.displayItems)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{32&e.$$.dirty&&n(3,o=l.filter(e=>e.title&&(!e.hasOwnProperty("enabled")||!0===e.enabled())))},[r,a,u,o,s,l]}class Do extends rt{constructor(e){super(e),Xe(this,e,Lo,To,l,{name:0,items:5,subpage:1,progress:2}),Je("SvelteRegisterComponent",{component:this,tagName:"SubNav",options:e,id:To.name})}get name(){throw new Error("<SubNav>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<SubNav>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get items(){throw new Error("<SubNav>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set items(e){throw new Error("<SubNav>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get subpage(){throw new Error("<SubNav>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set subpage(e){throw new Error("<SubNav>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get progress(){throw new Error("<SubNav>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set progress(e){throw new Error("<SubNav>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function Co(e){let t,n,s,i,c;n=new Fn({props:{routes:e[2],prefix:e[1]},$$inline:!0}),n.$on("routeEvent",e[5]);const r=e[4].default,l=$(r,e,e[3],null),a={c:function(){t=C("div"),Ve(n.$$.fragment),s=H(),l&&l.c(),tt(t,"class",i=e[0]+"-page wrapper"),o(t,"ui/components/SubPages.svelte",9,1,152)},m:function(e,o){Ze(e,t,o),We(n,t,null),Ge(t,s),l&&l.m(t,null),c=!0},p:function(e,o){const s={};4&o&&(s.routes=e[2]),2&o&&(s.prefix=e[1]),n.$set(s),l&&l.p&&(!c||8&o)&&w(l,r,e,e[3],c?h(r,e[3],o,null):b(e[3]),null),(!c||1&o&&i!==(i=e[0]+"-page wrapper"))&&tt(t,"class",i)},i:function(e){c||(Te(n.$$.fragment,e),Te(l,e),c=!0)},o:function(e){Le(n.$$.fragment,e),Le(l,e),c=!1},d:function(e){e&&Qe(t),ze(n),l&&l.d(e)}};return Je("SvelteRegisterBlock",{block:a,id:Co.name,type:"if",source:"(9:0) {#if routes}",ctx:e}),a}function Mo(e){let t,n,o=e[2]&&Co(e);const s={c:function(){o&&o.c(),t=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,s){o&&o.m(e,s),Ze(e,t,s),n=!0},p:function(e,[n]){e[2]?o?(o.p(e,n),4&n&&Te(o,1)):(o=Co(e),o.c(),Te(o,1),o.m(t.parentNode,t)):o&&(Ne(),Le(o,1,1,()=>{o=null}),Oe())},i:function(e){n||(Te(o),n=!0)},o:function(e){Le(o),n=!1},d:function(e){e&&Qe(t),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:Mo.name,type:"component",source:"",ctx:e}),s}function Ho(e,t,n){let{$$slots:o={},$$scope:s}=t;it("SubPages",o,["default"]);let{name:i="sub"}=t,{prefix:c=""}=t,{routes:r={}}=t;const l=["name","prefix","routes"];return Object.keys(t).forEach(e=>{~l.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<SubPages> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,i=e.name),"prefix"in e&&n(1,c=e.prefix),"routes"in e&&n(2,r=e.routes),"$$scope"in e&&n(3,s=e.$$scope)},e.$capture_state=()=>({Router:Fn,name:i,prefix:c,routes:r}),e.$inject_state=e=>{"name"in e&&n(0,i=e.name),"prefix"in e&&n(1,c=e.prefix),"routes"in e&&n(2,r=e.routes)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[i,c,r,s,o,function(t){de.call(this,e,t)}]}class Fo extends rt{constructor(e){super(e),Xe(this,e,Ho,Mo,l,{name:0,prefix:1,routes:2}),Je("SvelteRegisterComponent",{component:this,tagName:"SubPages",options:e,id:Mo.name})}get name(){throw new Error("<SubPages>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<SubPages>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get prefix(){throw new Error("<SubPages>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set prefix(e){throw new Error("<SubPages>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get routes(){throw new Error("<SubPages>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set routes(e){throw new Error("<SubPages>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Ao=[];let Ko;function Io(e){const t=e.pattern.test(Ko);Uo(e,e.className,t),Uo(e,e.inactiveClassName,!t)}function Uo(e,t,n){(t||"").split(" ").forEach(t=>{t&&(e.node.classList.remove(t),n&&e.node.classList.add(t))})}function qo(e,t){if(!(t=t&&("string"==typeof t||"object"==typeof t&&t instanceof RegExp)?{path:t}:t||{}).path&&e.hasAttribute("href")&&(t.path=e.getAttribute("href"),t.path&&t.path.length>1&&"#"==t.path.charAt(0)&&(t.path=t.path.substring(1))),t.className||(t.className="active"),!t.path||"string"==typeof t.path&&(t.path.length<1||"/"!=t.path.charAt(0)&&"*"!=t.path.charAt(0)))throw Error('Invalid value for "path" argument');const{pattern:n}="string"==typeof t.path?hn(t.path):{pattern:t.path},o={node:e,className:t.className,inactiveClassName:t.inactiveClassName,pattern:n};return Ao.push(o),Io(o),{destroy(){Ao.splice(Ao.indexOf(o),1)}}}Sn.subscribe(e=>{Ko=e.location+(e.querystring?"?"+e.querystring:""),Ao.map(Io)});function Vo(e){let t,n,s,i,c;const l=e[3].default,a=$(l,e,e[2],null),u={c:function(){t=C("div"),a&&a.c(),tt(t,"class",e[0]),o(t,"ui/components/SubPage.svelte",7,0,117)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(o,r){Ze(o,t,r),a&&a.m(t,null),s=!0,i||(c=_(n=qo.call(null,t,e[1])),i=!0)},p:function(e,[o]){a&&a.p&&(!s||4&o)&&w(a,l,e,e[2],s?h(l,e[2],o,null):b(e[2]),null),(!s||1&o)&&tt(t,"class",e[0]),n&&r(n.update)&&2&o&&n.update.call(null,e[1])},i:function(e){s||(Te(a,e),s=!0)},o:function(e){Le(a,e),s=!1},d:function(e){e&&Qe(t),a&&a.d(e),i=!1,c()}};return Je("SvelteRegisterBlock",{block:u,id:Vo.name,type:"component",source:"",ctx:e}),u}function Wo(e,t,n){let{$$slots:o={},$$scope:s}=t;it("SubPage",o,["default"]);let{name:i=""}=t,{route:c="/"}=t;const r=["name","route"];return Object.keys(t).forEach(e=>{~r.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<SubPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,i=e.name),"route"in e&&n(1,c=e.route),"$$scope"in e&&n(2,s=e.$$scope)},e.$capture_state=()=>({active:qo,name:i,route:c}),e.$inject_state=e=>{"name"in e&&n(0,i=e.name),"route"in e&&n(1,c=e.route)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[i,c,s,o]}class zo extends rt{constructor(e){super(e),Xe(this,e,Wo,Vo,l,{name:0,route:1}),Je("SvelteRegisterComponent",{component:this,tagName:"SubPage",options:e,id:Vo.name})}get name(){throw new Error("<SubPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<SubPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get route(){throw new Error("<SubPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set route(e){throw new Error("<SubPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function Xo(e){const t=e-1;return t*t*t+1}function Yo(e,{delay:n=0,duration:o=400,easing:s=t}={}){const i=+getComputedStyle(e).opacity;return{delay:n,duration:o,easing:s,css:e=>"opacity: "+e*i}}function Jo(e,{delay:t=0,duration:n=400,easing:o=Xo,axis:s="y"}={}){const i=getComputedStyle(e),c=+i.opacity,r="y"===s?"height":"width",l=parseFloat(i[r]),a="y"===s?["top","bottom"]:["left","right"],u=a.map(e=>`${e[0].toUpperCase()}${e.slice(1)}`),p=parseFloat(i[`padding${u[0]}`]),d=parseFloat(i[`padding${u[1]}`]),f=parseFloat(i[`margin${u[0]}`]),m=parseFloat(i[`margin${u[1]}`]),$=parseFloat(i[`border${u[0]}Width`]),g=parseFloat(i[`border${u[1]}Width`]);return{delay:t,duration:n,easing:o,css:e=>`overflow: hidden;opacity: ${Math.min(20*e,1)*c};${r}: ${e*l}px;padding-${a[0]}: ${e*p}px;padding-${a[1]}: ${e*d}px;margin-${a[0]}: ${e*f}px;margin-${a[1]}: ${e*m}px;border-${a[0]}-width: ${e*$}px;border-${a[1]}-width: ${e*g}px;`}}function Go(e,{delay:t=0,duration:n=400,easing:o=Xo,start:s=0,opacity:i=0}={}){const c=getComputedStyle(e),r=+c.opacity,l="none"===c.transform?"":c.transform,a=1-s,u=r*(1-i);return{delay:t,duration:n,easing:o,css:(e,t)=>`\n\t\t\ttransform: ${l} scale(${1-a*t});\n\t\t\topacity: ${r-u*t}\n\t\t`}}function Zo(e){let t,n;const s=e[2].default,i=$(s,e,e[1],null),c={c:function(){t=C("div"),i&&i.c(),tt(t,"class","panel-container "+e[0]),o(t,"ui/components/PanelContainer.svelte",4,0,73)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,t,o),i&&i.m(t,null),n=!0},p:function(e,[t]){i&&i.p&&(!n||2&t)&&w(i,s,e,e[1],n?h(s,e[1],t,null):b(e[1]),null)},i:function(e){n||(Te(i,e),n=!0)},o:function(e){Le(i,e),n=!1},d:function(e){e&&Qe(t),i&&i.d(e)}};return Je("SvelteRegisterBlock",{block:c,id:Zo.name,type:"component",source:"",ctx:e}),c}function Qo(e,t,o){let{$$slots:s={},$$scope:i}=t;it("PanelContainer",s,["default"]);const c=t.class?t.class:"";return e.$$set=e=>{o(3,t=n(n({},t),v(e))),"$$scope"in e&&o(1,i=e.$$scope)},e.$capture_state=()=>({classes:c}),e.$inject_state=e=>{o(3,t=n(n({},t),e))},t&&"$$inject"in t&&e.$inject_state(t.$$inject),t=v(t),[c,i,s]}class es extends rt{constructor(e){super(e),Xe(this,e,Qo,Zo,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"PanelContainer",options:e,id:Zo.name})}}const ts="ui/components/PanelRow.svelte";function ns(e){let t;const n={c:function(){t=C("div"),tt(t,"class","gradient svelte-41r5oq"),o(t,ts,10,2,238)},m:function(e,n){Ze(e,t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:ns.name,type:"if",source:"(10:1) {#if gradient}",ctx:e}),n}function os(e){let t,n,s,i=e[2]&&ns(e);const c=e[5].default,r=$(c,e,e[4],null),l={c:function(){t=C("div"),i&&i.c(),n=H(),r&&r.c(),tt(t,"class","panel-row "+e[3]+" svelte-41r5oq"),Y(t,"header",e[0]),Y(t,"footer",e[1]),o(t,ts,8,0,160)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,t,o),i&&i.m(t,null),Ge(t,n),r&&r.m(t,null),s=!0},p:function(e,[o]){e[2]?i||(i=ns(e),i.c(),i.m(t,n)):i&&(i.d(1),i=null),r&&r.p&&(!s||16&o)&&w(r,c,e,e[4],s?h(c,e[4],o,null):b(e[4]),null),(!s||1&o)&&Y(t,"header",e[0]),(!s||2&o)&&Y(t,"footer",e[1])},i:function(e){s||(Te(r,e),s=!0)},o:function(e){Le(r,e),s=!1},d:function(e){e&&Qe(t),i&&i.d(),r&&r.d(e)}};return Je("SvelteRegisterBlock",{block:l,id:os.name,type:"component",source:"",ctx:e}),l}function ss(e,t,o){let{$$slots:s={},$$scope:i}=t;it("PanelRow",s,["default"]);const c=t.class?t.class:"";let{header:r=!1}=t,{footer:l=!1}=t,{gradient:a=!1}=t;return e.$$set=e=>{o(6,t=n(n({},t),v(e))),"header"in e&&o(0,r=e.header),"footer"in e&&o(1,l=e.footer),"gradient"in e&&o(2,a=e.gradient),"$$scope"in e&&o(4,i=e.$$scope)},e.$capture_state=()=>({classes:c,header:r,footer:l,gradient:a}),e.$inject_state=e=>{o(6,t=n(n({},t),e)),"header"in t&&o(0,r=e.header),"footer"in t&&o(1,l=e.footer),"gradient"in t&&o(2,a=e.gradient)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),t=v(t),[r,l,a,c,i,s]}class is extends rt{constructor(e){super(e),Xe(this,e,ss,os,l,{header:0,footer:1,gradient:2}),Je("SvelteRegisterComponent",{component:this,tagName:"PanelRow",options:e,id:os.name})}get header(){throw new Error("<PanelRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set header(e){throw new Error("<PanelRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get footer(){throw new Error("<PanelRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set footer(e){throw new Error("<PanelRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get gradient(){throw new Error("<PanelRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set gradient(e){throw new Error("<PanelRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function cs(e){let t,n,s=e[1].defined_in_wp_config+"";const i={c:function(){t=C("p"),n=M(s),tt(t,"class","wp-config"),o(t,"ui/components/DefinedInWPConfig.svelte",7,1,104)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,t){2&t&&s!==(s=e[1].defined_in_wp_config+"")&&ot(n,s)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:i,id:cs.name,type:"if",source:"(7:0) {#if defined}",ctx:e}),i}function rs(t){let n,o=t[0]&&cs(t);const s={c:function(){o&&o.c(),n=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,t){o&&o.m(e,t),Ze(e,n,t)},p:function(e,[t]){e[0]?o?o.p(e,t):(o=cs(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:e,o:e,d:function(e){e&&Qe(n),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:rs.name,type:"component",source:"",ctx:t}),s}function ls(e,t,n){let o;p(ht,"strings"),m(e,ht,e=>n(1,o=e));let{$$slots:s={},$$scope:i}=t;it("DefinedInWPConfig",s,[]);let{defined:c=!1}=t;const r=["defined"];return Object.keys(t).forEach(e=>{~r.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<DefinedInWPConfig> was created with unknown prop '${e}'`)}),e.$$set=e=>{"defined"in e&&n(0,c=e.defined)},e.$capture_state=()=>({strings:ht,defined:c,$strings:o}),e.$inject_state=e=>{"defined"in e&&n(0,c=e.defined)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[c,o]}class as extends rt{constructor(e){super(e),Xe(this,e,ls,rs,l,{defined:0}),Je("SvelteRegisterComponent",{component:this,tagName:"DefinedInWPConfig",options:e,id:rs.name})}get defined(){throw new Error("<DefinedInWPConfig>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set defined(e){throw new Error("<DefinedInWPConfig>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const us="ui/components/ToggleSwitch.svelte";function ps(e){let t,n,s,i,c,r,l;const a=e[4].default,u=$(a,e,e[3],null),p={c:function(){t=C("div"),n=C("input"),s=H(),i=C("label"),u&&u.c(),tt(n,"type","checkbox"),tt(n,"id",e[1]),n.disabled=e[2],o(n,us,7,1,155),tt(i,"class","toggle-label"),tt(i,"for",e[1]),o(i,us,13,1,235),tt(t,"class","toggle-switch"),Y(t,"locked",e[2]),o(t,us,6,0,102)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(o,a){Ze(o,t,a),Ge(t,n),n.checked=e[0],Ge(t,s),Ge(t,i),u&&u.m(i,null),c=!0,r||(l=et(n,"change",e[5]),r=!0)},p:function(e,[o]){(!c||2&o)&&tt(n,"id",e[1]),(!c||4&o)&&nt(n,"disabled",e[2]),1&o&&(n.checked=e[0]),u&&u.p&&(!c||8&o)&&w(u,a,e,e[3],c?h(a,e[3],o,null):b(e[3]),null),(!c||2&o)&&tt(i,"for",e[1]),(!c||4&o)&&Y(t,"locked",e[2])},i:function(e){c||(Te(u,e),c=!0)},o:function(e){Le(u,e),c=!1},d:function(e){e&&Qe(t),u&&u.d(e),r=!1,l()}};return Je("SvelteRegisterBlock",{block:p,id:ps.name,type:"component",source:"",ctx:e}),p}function ds(e,t,n){let{$$slots:o={},$$scope:s}=t;it("ToggleSwitch",o,["default"]);let{name:i=""}=t,{checked:c=!1}=t,{disabled:r=!1}=t;const l=["name","checked","disabled"];return Object.keys(t).forEach(e=>{~l.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<ToggleSwitch> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(1,i=e.name),"checked"in e&&n(0,c=e.checked),"disabled"in e&&n(2,r=e.disabled),"$$scope"in e&&n(3,s=e.$$scope)},e.$capture_state=()=>({name:i,checked:c,disabled:r}),e.$inject_state=e=>{"name"in e&&n(1,i=e.name),"checked"in e&&n(0,c=e.checked),"disabled"in e&&n(2,r=e.disabled)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[c,i,r,s,o,function(){c=this.checked,n(0,c)}]}class fs extends rt{constructor(e){super(e),Xe(this,e,ds,ps,l,{name:1,checked:0,disabled:2}),Je("SvelteRegisterComponent",{component:this,tagName:"ToggleSwitch",options:e,id:ps.name})}get name(){throw new Error("<ToggleSwitch>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<ToggleSwitch>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get checked(){throw new Error("<ToggleSwitch>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set checked(e){throw new Error("<ToggleSwitch>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get disabled(){throw new Error("<ToggleSwitch>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set disabled(e){throw new Error("<ToggleSwitch>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const ms="ui/components/HelpButton.svelte";function $s(e){let t,n,s;const i={c:function(){t=C("a"),n=C("img"),tt(n,"class","icon help"),u(n.src,s=e[2].assets+"img/icon/help.svg")||tt(n,"src",s),tt(n,"alt",e[3]),o(n,ms,14,2,603),tt(t,"href",e[1]),tt(t,"title",e[4]),tt(t,"class","help"),tt(t,"target","_blank"),tt(t,"data-setting-key",e[0]),o(t,ms,13,1,526)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,o){4&o&&!u(n.src,s=e[2].assets+"img/icon/help.svg")&&tt(n,"src",s),2&o&&tt(t,"href",e[1]),1&o&&tt(t,"data-setting-key",e[0])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:i,id:$s.name,type:"if",source:"(13:0) {#if url}",ctx:e}),i}function gs(t){let n,o=t[1]&&$s(t);const s={c:function(){o&&o.c(),n=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,t){o&&o.m(e,t),Ze(e,n,t)},p:function(e,[t]){e[1]?o?o.p(e,t):(o=$s(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:e,o:e,d:function(e){e&&Qe(n),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:gs.name,type:"component",source:"",ctx:t}),s}function hs(e,t,n){let o,s,i;p(ht,"strings"),m(e,ht,e=>n(6,o=e)),p(vt,"docs"),m(e,vt,e=>n(7,s=e)),p(bt,"urls"),m(e,bt,e=>n(2,i=e));let{$$slots:c={},$$scope:r}=t;it("HelpButton",c,[]);let{key:l=""}=t,{url:a=(l&&s.hasOwnProperty(l)&&s[l].hasOwnProperty("url")?s[l].url:"")}=t,{desc:u=""}=t,d=u.length?u:l&&s.hasOwnProperty(l)&&s[l].hasOwnProperty("desc")?s[l].desc:o.help_desc,f=d;const $=["key","url","desc"];return Object.keys(t).forEach(e=>{~$.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<HelpButton> was created with unknown prop '${e}'`)}),e.$$set=e=>{"key"in e&&n(0,l=e.key),"url"in e&&n(1,a=e.url),"desc"in e&&n(5,u=e.desc)},e.$capture_state=()=>({strings:ht,urls:bt,docs:vt,key:l,url:a,desc:u,alt:d,title:f,$strings:o,$docs:s,$urls:i}),e.$inject_state=e=>{"key"in e&&n(0,l=e.key),"url"in e&&n(1,a=e.url),"desc"in e&&n(5,u=e.desc),"alt"in e&&n(3,d=e.alt),"title"in e&&n(4,f=e.title)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[l,a,i,d,f,u]}class ws extends rt{constructor(e){super(e),Xe(this,e,hs,gs,l,{key:0,url:1,desc:5}),Je("SvelteRegisterComponent",{component:this,tagName:"HelpButton",options:e,id:gs.name})}get key(){throw new Error("<HelpButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set key(e){throw new Error("<HelpButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get url(){throw new Error("<HelpButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set url(e){throw new Error("<HelpButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get desc(){throw new Error("<HelpButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set desc(e){throw new Error("<HelpButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const bs="ui/components/Panel.svelte";function vs(e){let t,n,s,i,c,r,l,a,u;const p=[_s,ys],d=[];function f(e,t){return e[13]?0:e[12]?1:-1}~(c=f(e))&&(r=d[c]=p[c](e)),a=new as({props:{defined:e[4]},$$inline:!0});const m={c:function(){t=C("div"),n=C("h2"),s=M(e[3]),i=H(),r&&r.c(),l=H(),Ve(a.$$.fragment),o(n,bs,87,3,2464),tt(t,"class","heading"),o(t,bs,86,2,2439)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s),Ge(t,i),~c&&d[c].m(t,null),Ge(t,l),We(a,t,null),u=!0},p:function(e,n){(!u||8&n[0])&&ot(s,e[3]);let o=c;c=f(e),c===o?~c&&d[c].p(e,n):(r&&(Ne(),Le(d[o],1,1,()=>{d[o]=null}),Oe()),~c?(r=d[c],r?r.p(e,n):(r=d[c]=p[c](e),r.c()),Te(r,1),r.m(t,l)):r=null);const i={};16&n[0]&&(i.defined=e[4]),a.$set(i)},i:function(e){u||(Te(r),Te(a.$$.fragment,e),u=!0)},o:function(e){Le(r),Le(a.$$.fragment,e),u=!1},d:function(e){e&&Qe(t),~c&&d[c].d(),ze(a)}};return Je("SvelteRegisterBlock",{block:m,id:vs.name,type:"if",source:"(86:1) {#if !multi && heading}",ctx:e}),m}function ys(e){let t,n;t=new ws({props:{key:e[12],desc:e[14]},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};4096&n[0]&&(o.key=e[12]),16384&n[0]&&(o.desc=e[14]),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ys.name,type:"if",source:"(91:21) ",ctx:e}),o}function _s(e){let t,n;t=new ws({props:{url:e[13],desc:e[14]},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};8192&n[0]&&(o.url=e[13]),16384&n[0]&&(o.desc=e[14]),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:_s.name,type:"if",source:"(89:3) {#if helpURL}",ctx:e}),o}function ks(e){let t,n;t=new is({props:{header:!0,$$slots:{default:[Os]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};327578&n[0]|8&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ks.name,type:"if",source:"(98:2) {#if multi && heading}",ctx:e}),o}function xs(t){let n,s;const i={c:function(){n=C("h3"),s=M(t[3]),o(n,bs,108,5,3174)},m:function(e,t){Ze(e,n,t),Ge(n,s)},p:function(e,t){8&t[0]&&ot(s,e[3])},i:e,o:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:xs.name,type:"else",source:"(108:4) {:else}",ctx:t}),i}function Ps(e){let t,n,s,i,c,r,l,a;function u(t){e[31](t)}let p={name:e[7],disabled:e[18],$$slots:{default:[Ss]},$$scope:{ctx:e}};void 0!==e[1]&&(p.checked=e[1]),t=new fs({props:p,$$inline:!0}),me.push(()=>qe(t,"checked",u));const d={c:function(){Ve(t.$$.fragment),s=H(),i=C("h3"),c=M(e[3]),tt(i,"class","toggler svelte-k1tgof"),Y(i,"toggleDisabled",e[18]),o(i,bs,106,5,3070)},m:function(n,o){We(t,n,o),Ze(n,s,o),Ze(n,i,o),Ge(i,c),r=!0,l||(a=et(i,"click",e[21],!1,!1,!1,!1),l=!0)},p:function(e,o){const s={};128&o[0]&&(s.name=e[7]),262144&o[0]&&(s.disabled=e[18]),8&o[0]|8&o[1]&&(s.$$scope={dirty:o,ctx:e}),!n&&2&o[0]&&(n=!0,s.checked=e[1],_e(()=>n=!1)),t.$set(s),(!r||8&o[0])&&ot(c,e[3]),(!r||262144&o[0])&&Y(i,"toggleDisabled",e[18])},i:function(e){r||(Te(t.$$.fragment,e),r=!0)},o:function(e){Le(t.$$.fragment,e),r=!1},d:function(e){e&&(Qe(s),Qe(i)),ze(t,e),l=!1,a()}};return Je("SvelteRegisterBlock",{block:d,id:Ps.name,type:"if",source:"(100:4) {#if toggleName}",ctx:e}),d}function Ss(e){let t;const n={c:function(){t=M(e[3])},m:function(e,n){Ze(e,t,n)},p:function(e,n){8&n[0]&&ot(t,e[3])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:Ss.name,type:"slot",source:"(101:5) <ToggleSwitch name={toggleName} bind:checked={toggle} disabled={toggleDisabled}>",ctx:e}),n}function Rs(e){let t,n;t=new zn({props:{refresh:!0,refreshing:e[11],title:e[10],$$slots:{default:[Es]},$$scope:{ctx:e}},$$inline:!0}),t.$on("click",e[32]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};2048&n[0]&&(o.refreshing=e[11]),1024&n[0]&&(o.title=e[10]),512&n[0]|8&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Rs.name,type:"if",source:"(112:4) {#if refresh}",ctx:e}),o}function Es(e){let t,n;const o={c:function(){t=new G(!1),n=F(),t.a=n},m:function(o,s){t.m(e[9],o,s),Ze(o,n,s)},p:function(e,n){512&n[0]&&t.p(e[9])},d:function(e){e&&(Qe(n),t.d())}};return Je("SvelteRegisterBlock",{block:o,id:Es.name,type:"slot",source:'(113:5) <Button refresh {refreshing} title={refreshDesc} on:click={() => dispatch(\\"refresh\\")}>',ctx:e}),o}function js(e){let t,n,s,i,c,r,l,a,p,d=e[15].provider_service_name+"";const f={c:function(){t=C("div"),n=C("a"),s=C("img"),r=H(),l=M(d),u(s.src,i=e[15].link_icon)||tt(s,"src",i),tt(s,"alt",c=e[15].icon_desc),o(s,bs,117,7,3504),tt(n,"href","/storage/provider"),tt(n,"class","link"),o(n,bs,116,6,3446),tt(t,"class","provider"),o(t,bs,115,5,3417)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s),Ge(n,r),Ge(n,l),a||(p=_(Tn.call(null,n)),a=!0)},p:function(e,t){32768&t[0]&&!u(s.src,i=e[15].link_icon)&&tt(s,"src",i),32768&t[0]&&c!==(c=e[15].icon_desc)&&tt(s,"alt",c),32768&t[0]&&d!==(d=e[15].provider_service_name+"")&&ot(l,d)},d:function(e){e&&Qe(t),a=!1,p()}};return Je("SvelteRegisterBlock",{block:f,id:js.name,type:"if",source:"(115:4) {#if storageProvider}",ctx:e}),f}function Bs(e){let t,n;t=new ws({props:{key:e[12],desc:e[14]},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};4096&n[0]&&(o.key=e[12]),16384&n[0]&&(o.desc=e[14]),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Bs.name,type:"if",source:"(125:22) ",ctx:e}),o}function Ns(e){let t,n;t=new ws({props:{url:e[13],desc:e[14]},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};8192&n[0]&&(o.url=e[13]),16384&n[0]&&(o.desc=e[14]),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ns.name,type:"if",source:"(123:4) {#if helpURL}",ctx:e}),o}function Os(e){let t,n,o,s,i,c,r,l,a,u,p;const d=[Ps,xs],f=[];function m(e,t){return e[7]?0:1}t=m(e),n=f[t]=d[t](e),s=new as({props:{defined:e[4]},$$inline:!0});let $=e[8]&&Rs(e),g=e[15]&&js(e);const h=[Ns,Bs],w=[];function b(e,t){return e[13]?0:e[12]?1:-1}~(l=b(e))&&(a=w[l]=h[l](e));const v={c:function(){n.c(),o=H(),Ve(s.$$.fragment),i=H(),$&&$.c(),c=H(),g&&g.c(),r=H(),a&&a.c(),u=F()},m:function(e,n){f[t].m(e,n),Ze(e,o,n),We(s,e,n),Ze(e,i,n),$&&$.m(e,n),Ze(e,c,n),g&&g.m(e,n),Ze(e,r,n),~l&&w[l].m(e,n),Ze(e,u,n),p=!0},p:function(e,i){let p=t;t=m(e),t===p?f[t].p(e,i):(Ne(),Le(f[p],1,1,()=>{f[p]=null}),Oe(),n=f[t],n?n.p(e,i):(n=f[t]=d[t](e),n.c()),Te(n,1),n.m(o.parentNode,o));const v={};16&i[0]&&(v.defined=e[4]),s.$set(v),e[8]?$?($.p(e,i),256&i[0]&&Te($,1)):($=Rs(e),$.c(),Te($,1),$.m(c.parentNode,c)):$&&(Ne(),Le($,1,1,()=>{$=null}),Oe()),e[15]?g?g.p(e,i):(g=js(e),g.c(),g.m(r.parentNode,r)):g&&(g.d(1),g=null);let y=l;l=b(e),l===y?~l&&w[l].p(e,i):(a&&(Ne(),Le(w[y],1,1,()=>{w[y]=null}),Oe()),~l?(a=w[l],a?a.p(e,i):(a=w[l]=h[l](e),a.c()),Te(a,1),a.m(u.parentNode,u)):a=null)},i:function(e){p||(Te(n),Te(s.$$.fragment,e),Te($),Te(a),p=!0)},o:function(e){Le(n),Le(s.$$.fragment,e),Le($),Le(a),p=!1},d:function(e){e&&(Qe(o),Qe(i),Qe(c),Qe(r),Qe(u)),f[t].d(e),ze(s,e),$&&$.d(e),g&&g.d(e),~l&&w[l].d(e)}};return Je("SvelteRegisterBlock",{block:v,id:Os.name,type:"slot",source:"(99:3) <PanelRow header>",ctx:e}),v}function Ts(e){let t,n,o=e[5]&&e[3]&&ks(e);const s=e[25].default,i=$(s,e,e[34],null),c={c:function(){o&&o.c(),t=H(),i&&i.c()},m:function(e,s){o&&o.m(e,s),Ze(e,t,s),i&&i.m(e,s),n=!0},p:function(e,c){e[5]&&e[3]?o?(o.p(e,c),40&c[0]&&Te(o,1)):(o=ks(e),o.c(),Te(o,1),o.m(t.parentNode,t)):o&&(Ne(),Le(o,1,1,()=>{o=null}),Oe()),i&&i.p&&(!n||8&c[1])&&w(i,s,e,e[34],n?h(s,e[34],c,null):b(e[34]),null)},i:function(e){n||(Te(o),Te(i,e),n=!0)},o:function(e){Le(o),Le(i,e),n=!1},d:function(e){e&&Qe(t),o&&o.d(e),i&&i.d(e)}};return Je("SvelteRegisterBlock",{block:c,id:Ts.name,type:"slot",source:"(97:1) <PanelContainer class={classes}>",ctx:e}),c}function Ls(e){let t,n,s,i,r,l,a,u,p=!e[5]&&e[3]&&vs(e);s=new es({props:{class:e[19],$$slots:{default:[Ts]},$$scope:{ctx:e}},$$inline:!0});const d={c:function(){t=C("div"),p&&p.c(),n=H(),Ve(s.$$.fragment),tt(t,"class",i="panel "+e[2]+" svelte-k1tgof"),Y(t,"multi",e[5]),Y(t,"flyout",e[6]),Y(t,"locked",e[16]),o(t,bs,71,0,2186)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(o,i){Ze(o,t,i),p&&p.m(t,null),Ge(t,n),We(s,t,null),e[33](t),l=!0,a||(u=[et(t,"focusout",e[26],!1,!1,!1,!1),et(t,"mouseenter",e[27],!1,!1,!1,!1),et(t,"mouseleave",e[28],!1,!1,!1,!1),et(t,"mousedown",e[29],!1,!1,!1,!1),et(t,"click",e[30],!1,!1,!1,!1),et(t,"keyup",e[22],!1,!1,!1,!1)],a=!0)},p:function(o,c){!(e=o)[5]&&e[3]?p?(p.p(e,c),40&c[0]&&Te(p,1)):(p=vs(e),p.c(),Te(p,1),p.m(t,n)):p&&(Ne(),Le(p,1,1,()=>{p=null}),Oe());const r={};327610&c[0]|8&c[1]&&(r.$$scope={dirty:c,ctx:e}),s.$set(r),(!l||4&c[0]&&i!==(i="panel "+e[2]+" svelte-k1tgof"))&&tt(t,"class",i),(!l||36&c[0])&&Y(t,"multi",e[5]),(!l||68&c[0])&&Y(t,"flyout",e[6]),(!l||65540&c[0])&&Y(t,"locked",e[16])},i:function(n){l||(Te(p),Te(s.$$.fragment,n),n&&ye(()=>{l&&(r||(r=Ce(t,Yo,{duration:e[6]?200:0},!0)),r.run(1))}),l=!0)},o:function(n){Le(p),Le(s.$$.fragment,n),n&&(r||(r=Ce(t,Yo,{duration:e[6]?200:0},!1)),r.run(0)),l=!1},d:function(n){n&&Qe(t),p&&p.d(),ze(s),e[33](null),n&&r&&r.end(),a=!1,c(u)}};return Je("SvelteRegisterBlock",{block:d,id:Ls.name,type:"component",source:"",ctx:e}),d}function Ds(t,o,s){let i,c,r,l,a,u=e,f=()=>(u(),u=d(C,e=>s(24,l=e)),C);p(gt,"defined_settings"),m(t,gt,e=>s(23,r=e)),p(ht,"strings"),m(t,ht,e=>s(35,a=e)),t.$$.on_destroy.push(()=>u());let{$$slots:$={},$$scope:g}=o;it("Panel",$,["default"]);const h=o.class?o.class:"",w=le();let{ref:b={}}=o,{name:y=""}=o,{heading:_=""}=o,{defined:k=!1}=o,{multi:x=!1}=o,{flyout:P=!1}=o,{toggleName:S=""}=o,{toggle:R=!1}=o,{refresh:E=!1}=o,{refreshText:j=a.refresh_title}=o,{refreshDesc:B=j}=o,{refreshing:N=!1}=o,{helpKey:O=""}=o,{helpURL:T=""}=o,{helpDesc:L=a.help_desc}=o,{storageProvider:D=null}=o,C=ut(!1);function M(){S&&!c&&s(1,R=!R)}function H(e){"Escape"===e.key&&(e.preventDefault(),w("cancel"))}p(C,"settingsLocked"),f(),pe("settingsLocked")&&f(C=ue("settingsLocked"));return t.$$set=e=>{s(36,o=n(n({},o),v(e))),"ref"in e&&s(0,b=e.ref),"name"in e&&s(2,y=e.name),"heading"in e&&s(3,_=e.heading),"defined"in e&&s(4,k=e.defined),"multi"in e&&s(5,x=e.multi),"flyout"in e&&s(6,P=e.flyout),"toggleName"in e&&s(7,S=e.toggleName),"toggle"in e&&s(1,R=e.toggle),"refresh"in e&&s(8,E=e.refresh),"refreshText"in e&&s(9,j=e.refreshText),"refreshDesc"in e&&s(10,B=e.refreshDesc),"refreshing"in e&&s(11,N=e.refreshing),"helpKey"in e&&s(12,O=e.helpKey),"helpURL"in e&&s(13,T=e.helpURL),"helpDesc"in e&&s(14,L=e.helpDesc),"storageProvider"in e&&s(15,D=e.storageProvider),"$$scope"in e&&s(34,g=e.$$scope)},t.$capture_state=()=>({createEventDispatcher:le,getContext:ue,hasContext:pe,writable:ut,fade:Yo,link:Tn,defined_settings:gt,strings:ht,PanelContainer:es,PanelRow:is,DefinedInWPConfig:as,ToggleSwitch:fs,HelpButton:ws,Button:zn,classes:h,dispatch:w,ref:b,name:y,heading:_,defined:k,multi:x,flyout:P,toggleName:S,toggle:R,refresh:E,refreshText:j,refreshDesc:B,refreshing:N,helpKey:O,helpURL:T,helpDesc:L,storageProvider:D,settingsLocked:C,headingClickHandler:M,handleKeyup:H,toggleDisabled:c,locked:i,$defined_settings:r,$settingsLocked:l,$strings:a}),t.$inject_state=e=>{s(36,o=n(n({},o),e)),"ref"in o&&s(0,b=e.ref),"name"in o&&s(2,y=e.name),"heading"in o&&s(3,_=e.heading),"defined"in o&&s(4,k=e.defined),"multi"in o&&s(5,x=e.multi),"flyout"in o&&s(6,P=e.flyout),"toggleName"in o&&s(7,S=e.toggleName),"toggle"in o&&s(1,R=e.toggle),"refresh"in o&&s(8,E=e.refresh),"refreshText"in o&&s(9,j=e.refreshText),"refreshDesc"in o&&s(10,B=e.refreshDesc),"refreshing"in o&&s(11,N=e.refreshing),"helpKey"in o&&s(12,O=e.helpKey),"helpURL"in o&&s(13,T=e.helpURL),"helpDesc"in o&&s(14,L=e.helpDesc),"storageProvider"in o&&s(15,D=e.storageProvider),"settingsLocked"in o&&f(s(17,C=e.settingsLocked)),"toggleDisabled"in o&&s(18,c=e.toggleDisabled),"locked"in o&&s(16,i=e.locked)},o&&"$$inject"in o&&t.$inject_state(o.$$inject),t.$$.update=()=>{16777216&t.$$.dirty[0]&&s(16,i=l),8454272&t.$$.dirty[0]&&s(18,c=r.includes(S)||i)},o=v(o),[b,R,y,_,k,x,P,S,E,j,B,N,O,T,L,D,i,C,c,h,w,M,H,r,l,$,function(e){de.call(this,t,e)},function(e){de.call(this,t,e)},function(e){de.call(this,t,e)},function(e){de.call(this,t,e)},function(e){de.call(this,t,e)},function(e){R=e,s(1,R)},()=>w("refresh"),function(e){me[e?"unshift":"push"](()=>{b=e,s(0,b)})},g]}class Cs extends rt{constructor(e){super(e),Xe(this,e,Ds,Ls,l,{ref:0,name:2,heading:3,defined:4,multi:5,flyout:6,toggleName:7,toggle:1,refresh:8,refreshText:9,refreshDesc:10,refreshing:11,helpKey:12,helpURL:13,helpDesc:14,storageProvider:15},null,[-1,-1]),Je("SvelteRegisterComponent",{component:this,tagName:"Panel",options:e,id:Ls.name})}get ref(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set ref(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get name(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get heading(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set heading(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get defined(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set defined(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get multi(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set multi(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get flyout(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set flyout(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get toggleName(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set toggleName(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get toggle(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set toggle(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get refresh(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set refresh(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get refreshText(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set refreshText(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get refreshDesc(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set refreshDesc(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get refreshing(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set refreshing(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get helpKey(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set helpKey(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get helpURL(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set helpURL(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get helpDesc(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set helpDesc(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get storageProvider(){throw new Error("<Panel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set storageProvider(e){throw new Error("<Panel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Ms="ui/components/StorageSettingsHeadingRow.svelte";function Hs(e){let t,n=e[3].edit+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){8&o&&n!==(n=e[3].edit+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:Hs.name,type:"slot",source:"(32:1) <Button outline on:click={() => push('/storage/provider')} title={$strings.edit_storage_provider} disabled={$settingsLocked}>",ctx:e}),o}function Fs(e){let t,n,s,i,c,r,l,a,p,d,f,m,$,g,h,w,b,v,y,_,k=e[1].provider_service_name+"",x=e[4].bucket+"";y=new zn({props:{outline:!0,title:e[3].edit_storage_provider,disabled:e[6],$$slots:{default:[Hs]},$$scope:{ctx:e}},$$inline:!0}),y.$on("click",e[7]);const P={c:function(){t=C("img"),i=H(),c=C("div"),r=C("h3"),l=M(k),a=H(),p=C("p"),d=C("a"),f=M(x),g=H(),h=C("span"),w=M(e[5]),v=H(),Ve(y.$$.fragment),u(t.src,n=e[1].icon)||tt(t,"src",n),tt(t,"alt",s=e[1].provider_service_name),tt(t,"class","svelte-cn9mf"),o(t,Ms,23,1,589),tt(r,"class","svelte-cn9mf"),o(r,Ms,25,2,707),tt(d,"href",m=e[2].storage_provider_console_url),tt(d,"class","console svelte-cn9mf"),tt(d,"target","_blank"),tt(d,"title",$=e[3].view_provider_console),o(d,Ms,27,3,791),tt(h,"class","region svelte-cn9mf"),tt(h,"title",b=e[4].region),o(h,Ms,28,3,933),tt(p,"class","console-details svelte-cn9mf"),o(p,Ms,26,2,760),tt(c,"class","provider-details svelte-cn9mf"),o(c,Ms,24,1,674)},m:function(e,n){Ze(e,t,n),Ze(e,i,n),Ze(e,c,n),Ge(c,r),Ge(r,l),Ge(c,a),Ge(c,p),Ge(p,d),Ge(d,f),Ge(p,g),Ge(p,h),Ge(h,w),Ze(e,v,n),We(y,e,n),_=!0},p:function(e,o){(!_||2&o&&!u(t.src,n=e[1].icon))&&tt(t,"src",n),(!_||2&o&&s!==(s=e[1].provider_service_name))&&tt(t,"alt",s),(!_||2&o)&&k!==(k=e[1].provider_service_name+"")&&ot(l,k),(!_||16&o)&&x!==(x=e[4].bucket+"")&&ot(f,x),(!_||4&o&&m!==(m=e[2].storage_provider_console_url))&&tt(d,"href",m),(!_||8&o&&$!==($=e[3].view_provider_console))&&tt(d,"title",$),(!_||32&o)&&ot(w,e[5]),(!_||16&o&&b!==(b=e[4].region))&&tt(h,"title",b);const i={};8&o&&(i.title=e[3].edit_storage_provider),64&o&&(i.disabled=e[6]),264&o&&(i.$$scope={dirty:o,ctx:e}),y.$set(i)},i:function(e){_||(Te(y.$$.fragment,e),_=!0)},o:function(e){Le(y.$$.fragment,e),_=!1},d:function(e){e&&(Qe(t),Qe(i),Qe(c),Qe(v)),ze(y,e)}};return Je("SvelteRegisterBlock",{block:P,id:Fs.name,type:"slot",source:'(23:0) <PanelRow header gradient class=\\"storage {$storage_provider.provider_key_name}\\">',ctx:e}),P}function As(e){let t,n;t=new is({props:{header:!0,gradient:!0,class:"storage "+e[1].provider_key_name,$$slots:{default:[Fs]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};2&n&&(o.class="storage "+e[1].provider_key_name),382&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:As.name,type:"component",source:"",ctx:e}),o}function Ks(t,n,o){let s,i,c,r,l,a,u=e,f=()=>(u(),u=d(h,e=>o(6,a=e)),h);p(At,"storage_provider"),m(t,At,e=>o(1,s=e)),p(bt,"urls"),m(t,bt,e=>o(2,i=e)),p(ht,"strings"),m(t,ht,e=>o(3,c=e)),p(Ct,"settings"),m(t,Ct,e=>o(4,r=e)),p(Ut,"region_name"),m(t,Ut,e=>o(5,l=e)),t.$$.on_destroy.push(()=>u());let{$$slots:$={},$$scope:g}=n;it("StorageSettingsHeadingRow",$,[]);let h=ut(!1);p(h,"settingsLocked"),f(),pe("settingsLocked")&&f(h=ue("settingsLocked"));const w=[];Object.keys(n).forEach(e=>{~w.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<StorageSettingsHeadingRow> was created with unknown prop '${e}'`)});return t.$capture_state=()=>({getContext:ue,hasContext:pe,writable:ut,push:Bn,region_name:Ut,settings:Ct,storage_provider:At,strings:ht,urls:bt,PanelRow:is,Button:zn,settingsLocked:h,$storage_provider:s,$urls:i,$strings:c,$settings:r,$region_name:l,$settingsLocked:a}),t.$inject_state=e=>{"settingsLocked"in e&&f(o(0,h=e.settingsLocked))},n&&"$$inject"in n&&t.$inject_state(n.$$inject),[h,s,i,c,r,l,a,()=>Bn("/storage/provider")]}class Is extends rt{constructor(e){super(e),Xe(this,e,Ks,As,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"StorageSettingsHeadingRow",options:e,id:As.name})}}function Us(e,t){let n=Date.now()-e;return new Promise(e=>setTimeout(e,t-n))}const qs="ui/components/CheckAgain.svelte";function Vs(e){let t,n;t=new zn({props:{refresh:!0,refreshing:e[1],title:e[3].check_again_desc,$$slots:{default:[zs]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};2&n&&(o.refreshing=e[1]),8&n&&(o.title=e[3].check_again_desc),136&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Vs.name,type:"else",source:"(41:1) {:else}",ctx:e}),o}function Ws(e){let t,n;t=new zn({props:{refresh:!0,refreshing:e[1],title:e[3].check_again_desc,$$slots:{default:[Xs]},$$scope:{ctx:e}},$$inline:!0}),t.$on("click",e[5]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};2&n&&(o.refreshing=e[1]),8&n&&(o.title=e[3].check_again_desc),136&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ws.name,type:"if",source:"(37:1) {#if !refreshing}",ctx:e}),o}function zs(e){let t,n=e[3].check_again_active+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){8&o&&n!==(n=e[3].check_again_active+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:zs.name,type:"slot",source:"(42:2) <Button refresh {refreshing} title={$strings.check_again_desc}>",ctx:e}),o}function Xs(e){let t,n=e[3].check_again_title+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){8&o&&n!==(n=e[3].check_again_title+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:Xs.name,type:"slot",source:"(38:2) <Button refresh {refreshing} title={$strings.check_again_desc} on:click={revalidate}>",ctx:e}),o}function Ys(e){let t,n,s,i,c,r,l,a=e[2][e[0]].last_update+"";const u=[Ws,Vs],p=[];function d(e,t){return e[1]?1:0}n=d(e),s=p[n]=u[n](e);const f={c:function(){t=C("div"),s.c(),i=H(),c=C("span"),r=M(a),tt(c,"class","last-update svelte-1oue4lo"),tt(c,"title",e[4]),o(c,qs,45,1,1006),tt(t,"class","check-again svelte-1oue4lo"),o(t,qs,35,0,701)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,t,o),p[n].m(t,null),Ge(t,i),Ge(t,c),Ge(c,r),l=!0},p:function(e,[o]){let c=n;n=d(e),n===c?p[n].p(e,o):(Ne(),Le(p[c],1,1,()=>{p[c]=null}),Oe(),s=p[n],s?s.p(e,o):(s=p[n]=u[n](e),s.c()),Te(s,1),s.m(t,i)),(!l||5&o)&&a!==(a=e[2][e[0]].last_update+"")&&ot(r,a)},i:function(e){l||(Te(s),l=!0)},o:function(e){Le(s),l=!1},d:function(e){e&&Qe(t),p[n].d()}};return Je("SvelteRegisterBlock",{block:f,id:Ys.name,type:"component",source:"",ctx:e}),f}function Js(e,t,n){let o,s,i,c;p(Bt,"settings_validation"),m(e,Bt,e=>n(2,s=e)),p(Tt,"revalidatingSettings"),m(e,Tt,e=>n(6,i=e)),p(ht,"strings"),m(e,ht,e=>n(3,c=e));let{$$slots:r={},$$scope:l}=t;it("CheckAgain",r,[]);let{section:a=""}=t,u=new Date(1e3*s[a].timestamp).toString();async function d(){let e=Date.now(),t={revalidateSettings:!0,section:a};n(1,o=!0);let s=await Dt.get("state",t);await Us(e,1e3),Zt.updateState(s),n(1,o=!1)}const f=["section"];return Object.keys(t).forEach(e=>{~f.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<CheckAgain> was created with unknown prop '${e}'`)}),e.$$set=e=>{"section"in e&&n(0,a=e.section)},e.$capture_state=()=>({Button:zn,api:Dt,revalidatingSettings:Tt,settings_validation:Bt,state:Zt,strings:ht,delayMin:Us,section:a,datetime:u,revalidate:d,refreshing:o,$settings_validation:s,$revalidatingSettings:i,$strings:c}),e.$inject_state=e=>{"section"in e&&n(0,a=e.section),"datetime"in e&&n(4,u=e.datetime),"refreshing"in e&&n(1,o=e.refreshing)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{64&e.$$.dirty&&n(1,o=i)},[a,o,s,c,u,d,i]}class Gs extends rt{constructor(e){super(e),Xe(this,e,Js,Ys,l,{section:0}),Je("SvelteRegisterComponent",{component:this,tagName:"CheckAgain",options:e,id:Ys.name})}get section(){throw new Error("<CheckAgain>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set section(e){throw new Error("<CheckAgain>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Zs="ui/components/SettingsValidationStatusRow.svelte";function Qs(e){let t,n,s,i,c,r,l,a,p,d,f,m;d=new Gs({props:{section:e[0]},$$inline:!0});const $={c:function(){t=C("div"),n=C("div"),s=C("div"),i=C("img"),l=H(),a=C("div"),p=H(),Ve(d.$$.fragment),tt(i,"class","icon type"),u(i.src,c=e[1])||tt(i,"src",c),tt(i,"alt",r=e[3]+" icon"),o(i,Zs,28,3,821),tt(s,"class","icon type in-panel"),o(s,Zs,27,2,785),tt(a,"class","body"),o(a,Zs,31,2,890),tt(n,"class","content in-panel"),o(n,Zs,26,1,752),tt(t,"class",f="notification in-panel multiline "+e[0]),Y(t,"success",e[7]),Y(t,"warning",e[6]),Y(t,"error",e[5]),Y(t,"info",e[4]),o(t,Zs,19,0,638)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(o,c){Ze(o,t,c),Ge(t,n),Ge(n,s),Ge(s,i),Ge(n,l),Ge(n,a),a.innerHTML=e[2],Ge(n,p),We(d,n,null),m=!0},p:function(e,[n]){(!m||2&n&&!u(i.src,c=e[1]))&&tt(i,"src",c),(!m||8&n&&r!==(r=e[3]+" icon"))&&tt(i,"alt",r),(!m||4&n)&&(a.innerHTML=e[2]);const o={};1&n&&(o.section=e[0]),d.$set(o),(!m||1&n&&f!==(f="notification in-panel multiline "+e[0]))&&tt(t,"class",f),(!m||129&n)&&Y(t,"success",e[7]),(!m||65&n)&&Y(t,"warning",e[6]),(!m||33&n)&&Y(t,"error",e[5]),(!m||17&n)&&Y(t,"info",e[4])},i:function(e){m||(Te(d.$$.fragment,e),m=!0)},o:function(e){Le(d.$$.fragment,e),m=!1},d:function(e){e&&Qe(t),ze(d)}};return Je("SvelteRegisterBlock",{block:$,id:Qs.name,type:"component",source:"",ctx:e}),$}function ei(e,t,n){let o,s,i,c,r,l,a,u,d;p(Bt,"settings_validation"),m(e,Bt,e=>n(8,u=e)),p(bt,"urls"),m(e,bt,e=>n(9,d=e));let{$$slots:f={},$$scope:$}=t;it("SettingsValidationStatusRow",f,[]);let{section:g=""}=t;const h=["section"];return Object.keys(t).forEach(e=>{~h.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<SettingsValidationStatusRow> was created with unknown prop '${e}'`)}),e.$$set=e=>{"section"in e&&n(0,g=e.section)},e.$capture_state=()=>({settings_validation:Bt,urls:bt,CheckAgain:Gs,section:g,iconURL:a,message:l,type:r,info:c,error:i,warning:s,success:o,$settings_validation:u,$urls:d}),e.$inject_state=e=>{"section"in e&&n(0,g=e.section),"iconURL"in e&&n(1,a=e.iconURL),"message"in e&&n(2,l=e.message),"type"in e&&n(3,r=e.type),"info"in e&&n(4,c=e.info),"error"in e&&n(5,i=e.error),"warning"in e&&n(6,s=e.warning),"success"in e&&n(7,o=e.success)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{257&e.$$.dirty&&n(7,o="success"===u[g].type),257&e.$$.dirty&&n(6,s="warning"===u[g].type),257&e.$$.dirty&&n(5,i="error"===u[g].type),257&e.$$.dirty&&n(4,c="info"===u[g].type),257&e.$$.dirty&&n(3,r=u[g].type),257&e.$$.dirty&&n(2,l="<p>"+u[g].message+"</p>"),769&e.$$.dirty&&n(1,a=d.assets+"img/icon/notification-"+u[g].type+".svg")},[g,a,l,r,c,i,s,o,u,d]}class ti extends rt{constructor(e){super(e),Xe(this,e,ei,Qs,l,{section:0}),Je("SvelteRegisterComponent",{component:this,tagName:"SettingsValidationStatusRow",options:e,id:Qs.name})}get section(){throw new Error("<SettingsValidationStatusRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set section(e){throw new Error("<SettingsValidationStatusRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function ni(e,t,n){const o=e.slice();return o[2]=t[n],o}function oi(e){let t,n,o=[],s=new Map,i=st([...e[1].get(e[0]).values()].sort(ri));const c=e=>e[2];Ke(e,i,ni,c);for(let t=0;t<i.length;t+=1){let n=ni(e,i,t),r=c(n);s.set(r,o[t]=ii(r,n))}const r={c:function(){for(let e=0;e<o.length;e+=1)o[e].c();t=F()},m:function(e,s){for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,s);Ze(e,t,s),n=!0},p:function(e,n){3&n&&(i=st([...e[1].get(e[0]).values()].sort(ri)),Ne(),Ke(e,i,ni,c),o=Ae(o,n,c,1,e,i,s,t.parentNode,Fe,ii,t,ni),Oe())},i:function(e){if(!n){for(let e=0;e<i.length;e+=1)Te(o[e]);n=!0}},o:function(e){for(let e=0;e<o.length;e+=1)Le(o[e]);n=!1},d:function(e){e&&Qe(t);for(let t=0;t<o.length;t+=1)o[t].d(e)}};return Je("SvelteRegisterBlock",{block:r,id:oi.name,type:"if",source:"(48:0) {#if $settings_notifications.has( settingKey )}",ctx:e}),r}function si(e){let t,n,s=e[2].message+"";const i={c:function(){t=C("p"),n=H(),o(t,"ui/components/SettingNotifications.svelte",50,3,1314)},m:function(e,o){Ze(e,t,o),t.innerHTML=s,Ze(e,n,o)},p:function(e,n){3&n&&s!==(s=e[2].message+"")&&(t.innerHTML=s)},d:function(e){e&&(Qe(t),Qe(n))}};return Je("SvelteRegisterBlock",{block:i,id:si.name,type:"slot",source:"(50:2) <Notification {notification}>",ctx:e}),i}function ii(e,t){let n,o,s;o=new uo({props:{notification:t[2],$$slots:{default:[si]},$$scope:{ctx:t}},$$inline:!0});const i={key:e,first:null,c:function(){n=F(),Ve(o.$$.fragment),this.first=n},m:function(e,t){Ze(e,n,t),We(o,e,t),s=!0},p:function(e,n){t=e;const s={};3&n&&(s.notification=t[2]),35&n&&(s.$$scope={dirty:n,ctx:t}),o.$set(s)},i:function(e){s||(Te(o.$$.fragment,e),s=!0)},o:function(e){Le(o.$$.fragment,e),s=!1},d:function(e){e&&Qe(n),ze(o,e)}};return Je("SvelteRegisterBlock",{block:i,id:ii.name,type:"each",source:"(49:1) {#each [...$settings_notifications.get( settingKey ).values()].sort( compareNotificationTypes ) as notification (notification)}",ctx:t}),i}function ci(e){let t,n,o=e[1].has(e[0]),s=o&&oi(e);const i={c:function(){s&&s.c(),t=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){s&&s.m(e,o),Ze(e,t,o),n=!0},p:function(e,[n]){3&n&&(o=e[1].has(e[0])),o?s?(s.p(e,n),3&n&&Te(s,1)):(s=oi(e),s.c(),Te(s,1),s.m(t.parentNode,t)):s&&(Ne(),Le(s,1,1,()=>{s=null}),Oe())},i:function(e){n||(Te(s),n=!0)},o:function(e){Le(s),n=!1},d:function(e){e&&Qe(t),s&&s.d(e)}};return Je("SvelteRegisterBlock",{block:i,id:ci.name,type:"component",source:"",ctx:e}),i}function ri(e,t){return"error"===e.type&&"error"!==t.type?-1:"error"===t.type&&"error"!==e.type?1:"warning"===e.type&&"warning"!==t.type?-1:"warning"===t.type&&"warning"!==e.type?1:e.type<t.type?-1:t.type<e.type?1:0}function li(e,t,n){let o;p(Nt,"settings_notifications"),m(e,Nt,e=>n(1,o=e));let{$$slots:s={},$$scope:i}=t;it("SettingNotifications",s,[]);let{settingKey:c}=t;e.$$.on_mount.push(function(){void 0!==c||"settingKey"in t||e.$$.bound[e.$$.props.settingKey]||console.warn("<SettingNotifications> was created without expected prop 'settingKey'")});const r=["settingKey"];return Object.keys(t).forEach(e=>{~r.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<SettingNotifications> was created with unknown prop '${e}'`)}),e.$$set=e=>{"settingKey"in e&&n(0,c=e.settingKey)},e.$capture_state=()=>({settings_notifications:Nt,Notification:uo,settingKey:c,compareNotificationTypes:ri,$settings_notifications:o}),e.$inject_state=e=>{"settingKey"in e&&n(0,c=e.settingKey)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[c,o]}class ai extends rt{constructor(e){super(e),Xe(this,e,li,ci,l,{settingKey:0}),Je("SvelteRegisterComponent",{component:this,tagName:"SettingNotifications",options:e,id:ci.name})}get settingKey(){throw new Error("<SettingNotifications>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set settingKey(e){throw new Error("<SettingNotifications>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const ui="ui/components/SettingsPanelOption.svelte";function pi(t){let n,s;const i={c:function(){n=C("h4"),s=M(t[2]),tt(n,"id",t[17]),o(n,ui,105,3,2906)},m:function(e,t){Ze(e,n,t),Ge(n,s)},p:function(e,t){4&t&&ot(s,e[2]),131072&t&&tt(n,"id",e[17])},i:e,o:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:pi.name,type:"else",source:"(105:2) {:else}",ctx:t}),i}function di(e){let t,n,s,i,c,r,l,a;function u(t){e[25](t)}let p={name:e[7],disabled:e[14],$$slots:{default:[fi]},$$scope:{ctx:e}};void 0!==e[0]&&(p.checked=e[0]),t=new fs({props:p,$$inline:!0}),me.push(()=>qe(t,"checked",u));const d={c:function(){Ve(t.$$.fragment),s=H(),i=C("h4"),c=M(e[2]),tt(i,"id",e[17]),tt(i,"class","toggler svelte-k1tgof"),Y(i,"toggleDisabled",e[14]),o(i,ui,103,3,2789)},m:function(n,o){We(t,n,o),Ze(n,s,o),Ze(n,i,o),Ge(i,c),r=!0,l||(a=et(i,"click",e[19],!1,!1,!1,!1),l=!0)},p:function(e,o){const s={};128&o&&(s.name=e[7]),16384&o&&(s.disabled=e[14]),134217732&o&&(s.$$scope={dirty:o,ctx:e}),!n&&1&o&&(n=!0,s.checked=e[0],_e(()=>n=!1)),t.$set(s),(!r||4&o)&&ot(c,e[2]),(!r||131072&o)&&tt(i,"id",e[17]),(!r||16384&o)&&Y(i,"toggleDisabled",e[14])},i:function(e){r||(Te(t.$$.fragment,e),r=!0)},o:function(e){Le(t.$$.fragment,e),r=!1},d:function(e){e&&(Qe(s),Qe(i)),ze(t,e),l=!1,a()}};return Je("SvelteRegisterBlock",{block:d,id:di.name,type:"if",source:"(97:2) {#if toggleName}",ctx:e}),d}function fi(e){let t;const n={c:function(){t=M(e[2])},m:function(e,n){Ze(e,t,n)},p:function(e,n){4&n&&ot(t,e[2])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:fi.name,type:"slot",source:"(98:3) <ToggleSwitch name={toggleName} bind:checked={toggle} disabled={toggleDisabled}>",ctx:e}),n}function mi(e){let t,n,o,s,i;const c=[di,pi],r=[];function l(e,t){return e[7]?0:1}t=l(e),n=r[t]=c[t](e),s=new as({props:{defined:e[11].includes(e[7])||e[10]&&e[11].includes(e[8])},$$inline:!0});const a={c:function(){n.c(),o=H(),Ve(s.$$.fragment)},m:function(e,n){r[t].m(e,n),Ze(e,o,n),We(s,e,n),i=!0},p:function(e,i){let a=t;t=l(e),t===a?r[t].p(e,i):(Ne(),Le(r[a],1,1,()=>{r[a]=null}),Oe(),n=r[t],n?n.p(e,i):(n=r[t]=c[t](e),n.c()),Te(n,1),n.m(o.parentNode,o));const u={};3456&i&&(u.defined=e[11].includes(e[7])||e[10]&&e[11].includes(e[8])),s.$set(u)},i:function(e){i||(Te(n),Te(s.$$.fragment,e),i=!0)},o:function(e){Le(n),Le(s.$$.fragment,e),i=!1},d:function(e){e&&Qe(o),r[t].d(e),ze(s,e)}};return Je("SvelteRegisterBlock",{block:a,id:mi.name,type:"slot",source:'(96:1) <PanelRow class=\\"option\\">',ctx:e}),a}function $i(e){let t;const n={c:function(){t=C("p"),o(t,ui,110,2,3115)},m:function(n,o){Ze(n,t,o),t.innerHTML=e[3]},p:function(e,n){8&n&&(t.innerHTML=e[3])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:$i.name,type:"slot",source:'(110:1) <PanelRow class=\\"desc\\">',ctx:e}),n}function gi(e){let t,n,o,s;t=new is({props:{class:"input",$$slots:{default:[hi]},$$scope:{ctx:e}},$$inline:!0});let i=e[15]&&e[13]&&wi(e);const c={c:function(){Ve(t.$$.fragment),n=H(),i&&i.c(),o=F()},m:function(e,c){We(t,e,c),Ze(e,n,c),i&&i.m(e,c),Ze(e,o,c),s=!0},p:function(e,n){const s={};134414614&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s),e[15]&&e[13]?i?(i.p(e,n),40960&n&&Te(i,1)):(i=wi(e),i.c(),Te(i,1),i.m(o.parentNode,o)):i&&(Ne(),Le(i,1,1,()=>{i=null}),Oe())},i:function(e){s||(Te(t.$$.fragment,e),Te(i),s=!0)},o:function(e){Le(t.$$.fragment,e),Le(i),s=!1},d:function(e){e&&(Qe(n),Qe(o)),ze(t,e),i&&i.d(e)}};return Je("SvelteRegisterBlock",{block:c,id:gi.name,type:"if",source:"(113:1) {#if input}",ctx:e}),c}function hi(e){let t,n,s,i,r,l;const a={c:function(){t=C("input"),n=H(),s=C("label"),i=M(e[2]),tt(t,"type","text"),tt(t,"id",e[8]),tt(t,"name",e[8]),tt(t,"minlength","1"),tt(t,"size","10"),tt(t,"placeholder",e[4]),t.disabled=e[16],tt(t,"aria-labelledby",e[17]),Y(t,"disabled",e[16]),o(t,ui,114,3,3198),tt(s,"for",e[8]),o(s,ui,127,3,3462)},m:function(o,c){Ze(o,t,c),I(t,e[1]),Ze(o,n,c),Ze(o,s,c),Ge(s,i),r||(l=[et(t,"input",e[26]),et(t,"input",e[18],!1,!1,!1,!1)],r=!0)},p:function(e,n){256&n&&tt(t,"id",e[8]),256&n&&tt(t,"name",e[8]),16&n&&tt(t,"placeholder",e[4]),65536&n&&nt(t,"disabled",e[16]),131072&n&&tt(t,"aria-labelledby",e[17]),2&n&&t.value!==e[1]&&I(t,e[1]),65536&n&&Y(t,"disabled",e[16]),4&n&&ot(i,e[2]),256&n&&tt(s,"for",e[8])},d:function(e){e&&(Qe(t),Qe(n),Qe(s)),r=!1,c(l)}};return Je("SvelteRegisterBlock",{block:a,id:hi.name,type:"slot",source:'(114:2) <PanelRow class=\\"input\\">',ctx:e}),a}function wi(e){let t,n,s,i;const c={c:function(){t=C("p"),n=M(e[15]),tt(t,"class","input-error"),o(t,ui,132,3,3565)},m:function(e,o){Ze(e,t,o),Ge(t,n),i=!0},p:function(e,t){(!i||32768&t)&&ot(n,e[15])},i:function(e){i||(e&&ye(()=>{i&&(s||(s=Ce(t,Jo,{},!0)),s.run(1))}),i=!0)},o:function(e){e&&(s||(s=Ce(t,Jo,{},!1)),s.run(0)),i=!1},d:function(e){e&&Qe(t),e&&s&&s.end()}};return Je("SvelteRegisterBlock",{block:c,id:wi.name,type:"if",source:"(132:2) {#if validationError && textDirty}",ctx:e}),c}function bi(e){let t,n;t=new ai({props:{settingKey:e[7]},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};128&n&&(o.settingKey=e[7]),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:bi.name,type:"if",source:"(137:1) {#if toggleName}",ctx:e}),o}function vi(e){let t,n;t=new ai({props:{settingKey:e[8]},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};256&n&&(o.settingKey=e[8]),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:vi.name,type:"if",source:"(141:1) {#if textName}",ctx:e}),o}function yi(e){let t,n,s,i,c,r,l,a,u;n=new is({props:{class:"option",$$slots:{default:[mi]},$$scope:{ctx:e}},$$inline:!0}),i=new is({props:{class:"desc",$$slots:{default:[$i]},$$scope:{ctx:e}},$$inline:!0});let p=e[10]&&gi(e),d=e[7]&&bi(e),f=e[8]&&vi(e);const m=e[24].default,g=$(m,e,e[27],null),v={c:function(){t=C("div"),Ve(n.$$.fragment),s=H(),Ve(i.$$.fragment),c=H(),p&&p.c(),r=H(),d&&d.c(),l=H(),f&&f.c(),a=H(),g&&g.c(),tt(t,"class","setting"),Y(t,"nested",e[5]),Y(t,"first",e[6]),o(t,ui,94,0,2418)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,t,o),We(n,t,null),Ge(t,s),We(i,t,null),Ge(t,c),p&&p.m(t,null),Ge(t,r),d&&d.m(t,null),Ge(t,l),f&&f.m(t,null),Ge(t,a),g&&g.m(t,null),u=!0},p:function(e,[o]){const s={};134368645&o&&(s.$$scope={dirty:o,ctx:e}),n.$set(s);const c={};134217736&o&&(c.$$scope={dirty:o,ctx:e}),i.$set(c),e[10]?p?(p.p(e,o),1024&o&&Te(p,1)):(p=gi(e),p.c(),Te(p,1),p.m(t,r)):p&&(Ne(),Le(p,1,1,()=>{p=null}),Oe()),e[7]?d?(d.p(e,o),128&o&&Te(d,1)):(d=bi(e),d.c(),Te(d,1),d.m(t,l)):d&&(Ne(),Le(d,1,1,()=>{d=null}),Oe()),e[8]?f?(f.p(e,o),256&o&&Te(f,1)):(f=vi(e),f.c(),Te(f,1),f.m(t,a)):f&&(Ne(),Le(f,1,1,()=>{f=null}),Oe()),g&&g.p&&(!u||134217728&o)&&w(g,m,e,e[27],u?h(m,e[27],o,null):b(e[27]),null),(!u||32&o)&&Y(t,"nested",e[5]),(!u||64&o)&&Y(t,"first",e[6])},i:function(e){u||(Te(n.$$.fragment,e),Te(i.$$.fragment,e),Te(p),Te(d),Te(f),Te(g,e),u=!0)},o:function(e){Le(n.$$.fragment,e),Le(i.$$.fragment,e),Le(p),Le(d),Le(f),Le(g,e),u=!1},d:function(e){e&&Qe(t),ze(n),ze(i),p&&p.d(),d&&d.d(),f&&f.d(),g&&g.d(e)}};return Je("SvelteRegisterBlock",{block:v,id:yi.name,type:"component",source:"",ctx:e}),v}function _i(t,n,o){let s,i,c,r,l,a,u,f,m=e,$=()=>(m(),m=d(B,e=>o(11,u=e)),B),g=e,h=()=>(g(),g=d(O,e=>o(23,f=e)),O);t.$$.on_destroy.push(()=>m()),t.$$.on_destroy.push(()=>g());let{$$slots:w={},$$scope:b}=n;it("SettingsPanelOption",w,["default"]);let{heading:v=""}=n,{description:y=""}=n,{placeholder:_=""}=n,{nested:k=!1}=n,{first:x=!1}=n,{toggleName:P=""}=n,{toggle:S=!1}=n,{textName:R=""}=n,{text:E=""}=n,{alwaysShowText:j=!1}=n,{definedSettings:B=gt}=n;p(B,"definedSettings"),$();let{validator:N=e=>""}=n,O=ut(!1);p(O,"settingsLocked"),h();let T=!1;function L(e,t){let n="";return void 0!==N&&t&&!c&&(n=N(e)),Ot.update(e=>(e.has(R)&&""===n?e.delete(R):""!==n&&e.set(R,n),e)),n}function D(){o(13,T=!0)}function C(){P&&!i&&o(0,S=!S)}pe("settingsLocked")&&h(O=ue("settingsLocked"));const M=["heading","description","placeholder","nested","first","toggleName","toggle","textName","text","alwaysShowText","definedSettings","validator"];return Object.keys(n).forEach(e=>{~M.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<SettingsPanelOption> was created with unknown prop '${e}'`)}),t.$$set=e=>{"heading"in e&&o(2,v=e.heading),"description"in e&&o(3,y=e.description),"placeholder"in e&&o(4,_=e.placeholder),"nested"in e&&o(5,k=e.nested),"first"in e&&o(6,x=e.first),"toggleName"in e&&o(7,P=e.toggleName),"toggle"in e&&o(0,S=e.toggle),"textName"in e&&o(8,R=e.textName),"text"in e&&o(1,E=e.text),"alwaysShowText"in e&&o(20,j=e.alwaysShowText),"definedSettings"in e&&$(o(9,B=e.definedSettings)),"validator"in e&&o(21,N=e.validator),"$$scope"in e&&o(27,b=e.$$scope)},t.$capture_state=()=>({getContext:ue,hasContext:pe,writable:ut,slide:Jo,defined_settings:gt,validationErrors:Ot,PanelRow:is,ToggleSwitch:fs,DefinedInWPConfig:as,SettingNotifications:ai,heading:v,description:y,placeholder:_,nested:k,first:x,toggleName:P,toggle:S,textName:R,text:E,alwaysShowText:j,definedSettings:B,validator:N,settingsLocked:O,textDirty:T,validateText:L,onTextInput:D,headingClickHandler:C,toggleDisabled:i,validationError:a,textDisabled:c,input:r,headingName:l,locked:s,$definedSettings:u,$settingsLocked:f}),t.$inject_state=e=>{"heading"in e&&o(2,v=e.heading),"description"in e&&o(3,y=e.description),"placeholder"in e&&o(4,_=e.placeholder),"nested"in e&&o(5,k=e.nested),"first"in e&&o(6,x=e.first),"toggleName"in e&&o(7,P=e.toggleName),"toggle"in e&&o(0,S=e.toggle),"textName"in e&&o(8,R=e.textName),"text"in e&&o(1,E=e.text),"alwaysShowText"in e&&o(20,j=e.alwaysShowText),"definedSettings"in e&&$(o(9,B=e.definedSettings)),"validator"in e&&o(21,N=e.validator),"settingsLocked"in e&&h(o(12,O=e.settingsLocked)),"textDirty"in e&&o(13,T=e.textDirty),"toggleDisabled"in e&&o(14,i=e.toggleDisabled),"validationError"in e&&o(15,a=e.validationError),"textDisabled"in e&&o(16,c=e.textDisabled),"input"in e&&o(10,r=e.input),"headingName"in e&&o(17,l=e.headingName),"locked"in e&&o(22,s=e.locked)},n&&"$$inject"in n&&t.$inject_state(n.$$inject),t.$$.update=()=>{8388608&t.$$.dirty&&o(22,s=f),4196480&t.$$.dirty&&o(14,i=u.includes(P)||s),4196608&t.$$.dirty&&o(16,c=u.includes(R)||s),1048961&t.$$.dirty&&o(10,r=(P&&S||!P||j)&&R),1408&t.$$.dirty&&o(17,l=r?R+"-heading":P),3&t.$$.dirty&&o(15,a=L(E,S))},[S,E,v,y,_,k,x,P,R,B,r,u,O,T,i,a,c,l,D,C,j,N,s,f,w,function(e){S=e,o(0,S)},function(){E=this.value,o(1,E)},b]}class ki extends rt{constructor(e){super(e),Xe(this,e,_i,yi,l,{heading:2,description:3,placeholder:4,nested:5,first:6,toggleName:7,toggle:0,textName:8,text:1,alwaysShowText:20,definedSettings:9,validator:21}),Je("SvelteRegisterComponent",{component:this,tagName:"SettingsPanelOption",options:e,id:yi.name})}get heading(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set heading(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get description(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set description(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get placeholder(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set placeholder(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get nested(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set nested(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get first(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set first(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get toggleName(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set toggleName(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get toggle(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set toggle(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get textName(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set textName(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get text(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set text(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get alwaysShowText(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set alwaysShowText(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get definedSettings(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set definedSettings(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get validator(){throw new Error("<SettingsPanelOption>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set validator(e){throw new Error("<SettingsPanelOption>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function xi(e){let t,n,o,s,i,c,r,l,a,u,p,d,f,m,$,g,h,w,b,v;function y(t){e[2](t)}t=new Is({$$inline:!0}),o=new ti({props:{section:"storage"},$$inline:!0});let _={heading:e[0].copy_files_to_bucket,description:e[0].copy_files_to_bucket_desc,toggleName:"copy-to-s3"};function k(t){e[3](t)}void 0!==e[1]["copy-to-s3"]&&(_.toggle=e[1]["copy-to-s3"]),i=new ki({props:_,$$inline:!0}),me.push(()=>qe(i,"toggle",y));let x={heading:e[0].remove_local_file,description:e[0].remove_local_file_desc,toggleName:"remove-local-file"};function P(t){e[4](t)}function S(t){e[5](t)}void 0!==e[1]["remove-local-file"]&&(x.toggle=e[1]["remove-local-file"]),l=new ki({props:x,$$inline:!0}),me.push(()=>qe(l,"toggle",k));let R={heading:e[0].path,description:e[0].path_desc,toggleName:"enable-object-prefix",textName:"object-prefix"};function E(t){e[6](t)}void 0!==e[1]["enable-object-prefix"]&&(R.toggle=e[1]["enable-object-prefix"]),void 0!==e[1]["object-prefix"]&&(R.text=e[1]["object-prefix"]),p=new ki({props:R,$$inline:!0}),me.push(()=>qe(p,"toggle",P)),me.push(()=>qe(p,"text",S));let j={heading:e[0].year_month,description:e[0].year_month_desc,toggleName:"use-yearmonth-folders"};function B(t){e[7](t)}void 0!==e[1]["use-yearmonth-folders"]&&(j.toggle=e[1]["use-yearmonth-folders"]),$=new ki({props:j,$$inline:!0}),me.push(()=>qe($,"toggle",E));let N={heading:e[0].object_versioning,description:e[0].object_versioning_desc,toggleName:"object-versioning"};void 0!==e[1]["object-versioning"]&&(N.toggle=e[1]["object-versioning"]),w=new ki({props:N,$$inline:!0}),me.push(()=>qe(w,"toggle",B));const O={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment),s=H(),Ve(i.$$.fragment),r=H(),Ve(l.$$.fragment),u=H(),Ve(p.$$.fragment),m=H(),Ve($.$$.fragment),h=H(),Ve(w.$$.fragment)},m:function(e,c){We(t,e,c),Ze(e,n,c),We(o,e,c),Ze(e,s,c),We(i,e,c),Ze(e,r,c),We(l,e,c),Ze(e,u,c),We(p,e,c),Ze(e,m,c),We($,e,c),Ze(e,h,c),We(w,e,c),v=!0},p:function(e,t){const n={};1&t&&(n.heading=e[0].copy_files_to_bucket),1&t&&(n.description=e[0].copy_files_to_bucket_desc),!c&&2&t&&(c=!0,n.toggle=e[1]["copy-to-s3"],_e(()=>c=!1)),i.$set(n);const o={};1&t&&(o.heading=e[0].remove_local_file),1&t&&(o.description=e[0].remove_local_file_desc),!a&&2&t&&(a=!0,o.toggle=e[1]["remove-local-file"],_e(()=>a=!1)),l.$set(o);const s={};1&t&&(s.heading=e[0].path),1&t&&(s.description=e[0].path_desc),!d&&2&t&&(d=!0,s.toggle=e[1]["enable-object-prefix"],_e(()=>d=!1)),!f&&2&t&&(f=!0,s.text=e[1]["object-prefix"],_e(()=>f=!1)),p.$set(s);const r={};1&t&&(r.heading=e[0].year_month),1&t&&(r.description=e[0].year_month_desc),!g&&2&t&&(g=!0,r.toggle=e[1]["use-yearmonth-folders"],_e(()=>g=!1)),$.$set(r);const u={};1&t&&(u.heading=e[0].object_versioning),1&t&&(u.description=e[0].object_versioning_desc),!b&&2&t&&(b=!0,u.toggle=e[1]["object-versioning"],_e(()=>b=!1)),w.$set(u)},i:function(e){v||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),Te(i.$$.fragment,e),Te(l.$$.fragment,e),Te(p.$$.fragment,e),Te($.$$.fragment,e),Te(w.$$.fragment,e),v=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),Le(i.$$.fragment,e),Le(l.$$.fragment,e),Le(p.$$.fragment,e),Le($.$$.fragment,e),Le(w.$$.fragment,e),v=!1},d:function(e){e&&(Qe(n),Qe(s),Qe(r),Qe(u),Qe(m),Qe(h)),ze(t,e),ze(o,e),ze(i,e),ze(l,e),ze(p,e),ze($,e),ze(w,e)}};return Je("SvelteRegisterBlock",{block:O,id:xi.name,type:"slot",source:'(10:0) <Panel name=\\"settings\\" heading={$strings.storage_settings_title} helpKey=\\"storage-provider\\">',ctx:e}),O}function Pi(e){let t,n;t=new Cs({props:{name:"settings",heading:e[0].storage_settings_title,helpKey:"storage-provider",$$slots:{default:[xi]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.heading=e[0].storage_settings_title),259&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Pi.name,type:"component",source:"",ctx:e}),o}function Si(e,t,n){let o,s;p(ht,"strings"),m(e,ht,e=>n(0,o=e)),p(Ct,"settings"),m(e,Ct,e=>n(1,s=e));let{$$slots:i={},$$scope:c}=t;it("StorageSettingsPanel",i,[]);const r=[];return Object.keys(t).forEach(e=>{~r.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<StorageSettingsPanel> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({settings:Ct,strings:ht,Panel:Cs,StorageSettingsHeadingRow:Is,SettingsValidationStatusRow:ti,SettingsPanelOption:ki,$strings:o,$settings:s}),[o,s,function(t){e.$$.not_equal(s["copy-to-s3"],t)&&(s["copy-to-s3"]=t,Ct.set(s))},function(t){e.$$.not_equal(s["remove-local-file"],t)&&(s["remove-local-file"]=t,Ct.set(s))},function(t){e.$$.not_equal(s["enable-object-prefix"],t)&&(s["enable-object-prefix"]=t,Ct.set(s))},function(t){e.$$.not_equal(s["object-prefix"],t)&&(s["object-prefix"]=t,Ct.set(s))},function(t){e.$$.not_equal(s["use-yearmonth-folders"],t)&&(s["use-yearmonth-folders"]=t,Ct.set(s))},function(t){e.$$.not_equal(s["object-versioning"],t)&&(s["object-versioning"]=t,Ct.set(s))}]}class Ri extends rt{constructor(e){super(e),Xe(this,e,Si,Pi,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"StorageSettingsPanel",options:e,id:Pi.name})}}function Ei(e){let t,n;t=new Ri({$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ei.name,type:"slot",source:'(6:0) <SubPage name=\\"storage-settings\\">',ctx:e}),o}function ji(e){let t,n;t=new zo({props:{name:"storage-settings",$$slots:{default:[Ei]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ji.name,type:"component",source:"",ctx:e}),o}function Bi(e,t,n){let{$$slots:o={},$$scope:s}=t;it("StorageSettingsSubPage",o,[]);const i=[];return Object.keys(t).forEach(e=>{~i.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<StorageSettingsSubPage> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({SubPage:zo,StorageSettingsPanel:Ri}),[]}class Ni extends rt{constructor(e){super(e),Xe(this,e,Bi,ji,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"StorageSettingsSubPage",options:e,id:ji.name})}}const Oi="ui/components/DeliverySettingsHeadingRow.svelte";function Ti(e){let t,n=e[5].edit+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){32&o&&n!==(n=e[5].edit+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:Ti.name,type:"slot",source:"(34:1) <Button outline on:click={() => push('/delivery/provider')} title={$strings.edit_delivery_provider} disabled={$settingsLocked}>",ctx:e}),o}function Li(e){let t,n,s,i,c,r,l,a,p,d,f,m,$,g,h,w,b=e[1].provider_service_name+"",v=e[1].console_title+"";h=new zn({props:{outline:!0,title:e[5].edit_delivery_provider,disabled:e[6],$$slots:{default:[Ti]},$$scope:{ctx:e}},$$inline:!0}),h.$on("click",e[9]);const y={c:function(){t=C("img"),i=H(),c=C("div"),r=C("h3"),l=M(b),a=H(),p=C("p"),d=C("a"),f=M(v),g=H(),Ve(h.$$.fragment),u(t.src,n=e[1].icon)||tt(t,"src",n),tt(t,"alt",s=e[1].provider_service_name),tt(t,"class","svelte-sglpwv"),o(t,Oi,26,1,803),tt(r,"class","svelte-sglpwv"),o(r,Oi,28,2,923),tt(d,"href",m=e[4].delivery_provider_console_url),tt(d,"class","console svelte-sglpwv"),tt(d,"target","_blank"),tt(d,"title",$=e[5].view_provider_console),o(d,Oi,30,3,1008),tt(p,"class","console-details svelte-sglpwv"),o(p,Oi,29,2,977),tt(c,"class","provider-details svelte-sglpwv"),o(c,Oi,27,1,890)},m:function(e,n){Ze(e,t,n),Ze(e,i,n),Ze(e,c,n),Ge(c,r),Ge(r,l),Ge(c,a),Ge(c,p),Ge(p,d),Ge(d,f),Ze(e,g,n),We(h,e,n),w=!0},p:function(e,o){(!w||2&o&&!u(t.src,n=e[1].icon))&&tt(t,"src",n),(!w||2&o&&s!==(s=e[1].provider_service_name))&&tt(t,"alt",s),(!w||2&o)&&b!==(b=e[1].provider_service_name+"")&&ot(l,b),(!w||2&o)&&v!==(v=e[1].console_title+"")&&ot(f,v),(!w||16&o&&m!==(m=e[4].delivery_provider_console_url))&&tt(d,"href",m),(!w||32&o&&$!==($=e[5].view_provider_console))&&tt(d,"title",$);const i={};32&o&&(i.title=e[5].edit_delivery_provider),64&o&&(i.disabled=e[6]),1056&o&&(i.$$scope={dirty:o,ctx:e}),h.$set(i)},i:function(e){w||(Te(h.$$.fragment,e),w=!0)},o:function(e){Le(h.$$.fragment,e),w=!1},d:function(e){e&&(Qe(t),Qe(i),Qe(c),Qe(g)),ze(h,e)}};return Je("SvelteRegisterBlock",{block:y,id:Li.name,type:"slot",source:'(26:0) <PanelRow header gradient class=\\"delivery {providerType} {providerKey}\\">',ctx:e}),y}function Di(e){let t,n;t=new is({props:{header:!0,gradient:!0,class:"delivery "+e[0]+" "+e[3],$$slots:{default:[Li]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};9&n&&(o.class="delivery "+e[0]+" "+e[3]),1138&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Di.name,type:"component",source:"",ctx:e}),o}function Ci(t,n,o){let s,i,c,r,l,a,u,f,$=e,g=()=>($(),$=d(b,e=>o(6,f=e)),b);p(It,"delivery_provider"),m(t,It,e=>o(1,c=e)),p(At,"storage_provider"),m(t,At,e=>o(7,r=e)),p(Ct,"settings"),m(t,Ct,e=>o(8,l=e)),p(bt,"urls"),m(t,bt,e=>o(4,a=e)),p(ht,"strings"),m(t,ht,e=>o(5,u=e)),t.$$.on_destroy.push(()=>$());let{$$slots:h={},$$scope:w}=n;it("DeliverySettingsHeadingRow",h,[]);let b=ut(!1);p(b,"settingsLocked"),g(),pe("settingsLocked")&&g(b=ue("settingsLocked"));const v=[];Object.keys(n).forEach(e=>{~v.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<DeliverySettingsHeadingRow> was created with unknown prop '${e}'`)});return t.$capture_state=()=>({hasContext:pe,getContext:ue,writable:ut,push:Bn,delivery_provider:It,settings:Ct,storage_provider:At,strings:ht,urls:bt,PanelRow:is,Button:zn,settingsLocked:b,providerType:s,providerKey:i,$delivery_provider:c,$storage_provider:r,$settings:l,$urls:a,$strings:u,$settingsLocked:f}),t.$inject_state=e=>{"settingsLocked"in e&&g(o(2,b=e.settingsLocked)),"providerType"in e&&o(0,s=e.providerType),"providerKey"in e&&o(3,i=e.providerKey)},n&&"$$inject"in n&&t.$inject_state(n.$$inject),t.$$.update=()=>{256&t.$$.dirty&&o(0,s="storage"===l["delivery-provider"]?"storage":"delivery"),131&t.$$.dirty&&o(3,i="storage"===s?r.provider_key_name:c.provider_key_name)},[s,c,b,i,a,u,f,r,l,()=>Bn("/delivery/provider")]}class Mi extends rt{constructor(e){super(e),Xe(this,e,Ci,Di,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"DeliverySettingsHeadingRow",options:e,id:Di.name})}}function Hi(e){let t,n,o,s,i,c;function r(t){e[5](t)}function l(t){e[6](t)}let a={heading:e[0].delivery_domain,description:e[1].delivery_domain_desc,toggleName:"enable-delivery-domain",textName:"delivery-domain",validator:e[3]};void 0!==e[2]["enable-delivery-domain"]&&(a.toggle=e[2]["enable-delivery-domain"]),void 0!==e[2]["delivery-domain"]&&(a.text=e[2]["delivery-domain"]),t=new ki({props:a,$$inline:!0}),me.push(()=>qe(t,"toggle",r)),me.push(()=>qe(t,"text",l));let u=e[1].use_signed_urls_key_file_allowed&&e[2]["enable-delivery-domain"]&&Fi(e);const p={c:function(){Ve(t.$$.fragment),s=H(),u&&u.c(),i=F()},m:function(e,n){We(t,e,n),Ze(e,s,n),u&&u.m(e,n),Ze(e,i,n),c=!0},p:function(e,s){const c={};1&s&&(c.heading=e[0].delivery_domain),2&s&&(c.description=e[1].delivery_domain_desc),!n&&4&s&&(n=!0,c.toggle=e[2]["enable-delivery-domain"],_e(()=>n=!1)),!o&&4&s&&(o=!0,c.text=e[2]["delivery-domain"],_e(()=>o=!1)),t.$set(c),e[1].use_signed_urls_key_file_allowed&&e[2]["enable-delivery-domain"]?u?(u.p(e,s),6&s&&Te(u,1)):(u=Fi(e),u.c(),Te(u,1),u.m(i.parentNode,i)):u&&(Ne(),Le(u,1,1,()=>{u=null}),Oe())},i:function(e){c||(Te(t.$$.fragment,e),Te(u),c=!0)},o:function(e){Le(t.$$.fragment,e),Le(u),c=!1},d:function(e){e&&(Qe(s),Qe(i)),ze(t,e),u&&u.d(e)}};return Je("SvelteRegisterBlock",{block:p,id:Hi.name,type:"if",source:"(43:1) {#if $delivery_provider.delivery_domain_allowed}",ctx:e}),p}function Fi(e){let t,n,o;function s(t){e[10](t)}let i={heading:e[1].signed_urls_option_name,description:e[1].signed_urls_option_description,toggleName:"enable-signed-urls",$$slots:{default:[Ki]},$$scope:{ctx:e}};void 0!==e[2]["enable-signed-urls"]&&(i.toggle=e[2]["enable-signed-urls"]),t=new ki({props:i,$$inline:!0}),me.push(()=>qe(t,"toggle",s));const c={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),o=!0},p:function(e,o){const s={};2&o&&(s.heading=e[1].signed_urls_option_name),2&o&&(s.description=e[1].signed_urls_option_description),4102&o&&(s.$$scope={dirty:o,ctx:e}),!n&&4&o&&(n=!0,s.toggle=e[2]["enable-signed-urls"],_e(()=>n=!1)),t.$set(s)},i:function(e){o||(Te(t.$$.fragment,e),o=!0)},o:function(e){Le(t.$$.fragment,e),o=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:Fi.name,type:"if",source:'(53:2) {#if $delivery_provider.use_signed_urls_key_file_allowed && $settings[ \\"enable-delivery-domain\\" ]}',ctx:e}),c}function Ai(e){let t,n,o,s,i,c,r,l,a;function u(t){e[7](t)}let p={heading:e[1].signed_urls_key_id_name,description:e[1].signed_urls_key_id_description,textName:"signed-urls-key-id",nested:!0,first:!0};function d(t){e[8](t)}void 0!==e[2]["signed-urls-key-id"]&&(p.text=e[2]["signed-urls-key-id"]),t=new ki({props:p,$$inline:!0}),me.push(()=>qe(t,"text",u));let f={heading:e[1].signed_urls_key_file_path_name,description:e[1].signed_urls_key_file_path_description,textName:"signed-urls-key-file-path",placeholder:e[1].signed_urls_key_file_path_placeholder,nested:!0};function m(t){e[9](t)}void 0!==e[2]["signed-urls-key-file-path"]&&(f.text=e[2]["signed-urls-key-file-path"]),s=new ki({props:f,$$inline:!0}),me.push(()=>qe(s,"text",d));let $={heading:e[1].signed_urls_object_prefix_name,description:e[1].signed_urls_object_prefix_description,textName:"signed-urls-object-prefix",placeholder:"private/",nested:!0};void 0!==e[2]["signed-urls-object-prefix"]&&($.text=e[2]["signed-urls-object-prefix"]),r=new ki({props:$,$$inline:!0}),me.push(()=>qe(r,"text",m));const g={c:function(){Ve(t.$$.fragment),o=H(),Ve(s.$$.fragment),c=H(),Ve(r.$$.fragment)},m:function(e,n){We(t,e,n),Ze(e,o,n),We(s,e,n),Ze(e,c,n),We(r,e,n),a=!0},p:function(e,o){const c={};2&o&&(c.heading=e[1].signed_urls_key_id_name),2&o&&(c.description=e[1].signed_urls_key_id_description),!n&&4&o&&(n=!0,c.text=e[2]["signed-urls-key-id"],_e(()=>n=!1)),t.$set(c);const a={};2&o&&(a.heading=e[1].signed_urls_key_file_path_name),2&o&&(a.description=e[1].signed_urls_key_file_path_description),2&o&&(a.placeholder=e[1].signed_urls_key_file_path_placeholder),!i&&4&o&&(i=!0,a.text=e[2]["signed-urls-key-file-path"],_e(()=>i=!1)),s.$set(a);const u={};2&o&&(u.heading=e[1].signed_urls_object_prefix_name),2&o&&(u.description=e[1].signed_urls_object_prefix_description),!l&&4&o&&(l=!0,u.text=e[2]["signed-urls-object-prefix"],_e(()=>l=!1)),r.$set(u)},i:function(e){a||(Te(t.$$.fragment,e),Te(s.$$.fragment,e),Te(r.$$.fragment,e),a=!0)},o:function(e){Le(t.$$.fragment,e),Le(s.$$.fragment,e),Le(r.$$.fragment,e),a=!1},d:function(e){e&&(Qe(o),Qe(c)),ze(t,e),ze(s,e),ze(r,e)}};return Je("SvelteRegisterBlock",{block:g,id:Ai.name,type:"if",source:'(61:4) {#if $settings[ \\"enable-signed-urls\\" ]}',ctx:e}),g}function Ki(e){let t,n,o=e[2]["enable-signed-urls"]&&Ai(e);const s={c:function(){o&&o.c(),t=F()},m:function(e,s){o&&o.m(e,s),Ze(e,t,s),n=!0},p:function(e,n){e[2]["enable-signed-urls"]?o?(o.p(e,n),4&n&&Te(o,1)):(o=Ai(e),o.c(),Te(o,1),o.m(t.parentNode,t)):o&&(Ne(),Le(o,1,1,()=>{o=null}),Oe())},i:function(e){n||(Te(o),n=!0)},o:function(e){Le(o),n=!1},d:function(e){e&&Qe(t),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:Ki.name,type:"slot",source:'(54:3) <SettingsPanelOption heading={$delivery_provider.signed_urls_option_name} description={$delivery_provider.signed_urls_option_description} toggleName=\\"enable-signed-urls\\" bind:toggle={$settings[\\"enable-signed-urls\\"]} >',ctx:e}),s}function Ii(e){let t,n,o,s,i,c,r,l,a,u,p;function d(t){e[4](t)}t=new Mi({$$inline:!0}),o=new ti({props:{section:"delivery"},$$inline:!0});let f={heading:e[0].rewrite_media_urls,description:e[1].rewrite_media_urls_desc,toggleName:"serve-from-s3"};void 0!==e[2]["serve-from-s3"]&&(f.toggle=e[2]["serve-from-s3"]),i=new ki({props:f,$$inline:!0}),me.push(()=>qe(i,"toggle",d));let m=e[1].delivery_domain_allowed&&Hi(e);function $(t){e[11](t)}let g={heading:e[0].force_https,description:e[0].force_https_desc,toggleName:"force-https"};void 0!==e[2]["force-https"]&&(g.toggle=e[2]["force-https"]),a=new ki({props:g,$$inline:!0}),me.push(()=>qe(a,"toggle",$));const h={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment),s=H(),Ve(i.$$.fragment),r=H(),m&&m.c(),l=H(),Ve(a.$$.fragment)},m:function(e,c){We(t,e,c),Ze(e,n,c),We(o,e,c),Ze(e,s,c),We(i,e,c),Ze(e,r,c),m&&m.m(e,c),Ze(e,l,c),We(a,e,c),p=!0},p:function(e,t){const n={};1&t&&(n.heading=e[0].rewrite_media_urls),2&t&&(n.description=e[1].rewrite_media_urls_desc),!c&&4&t&&(c=!0,n.toggle=e[2]["serve-from-s3"],_e(()=>c=!1)),i.$set(n),e[1].delivery_domain_allowed?m?(m.p(e,t),2&t&&Te(m,1)):(m=Hi(e),m.c(),Te(m,1),m.m(l.parentNode,l)):m&&(Ne(),Le(m,1,1,()=>{m=null}),Oe());const o={};1&t&&(o.heading=e[0].force_https),1&t&&(o.description=e[0].force_https_desc),!u&&4&t&&(u=!0,o.toggle=e[2]["force-https"],_e(()=>u=!1)),a.$set(o)},i:function(e){p||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),Te(i.$$.fragment,e),Te(m),Te(a.$$.fragment,e),p=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),Le(i.$$.fragment,e),Le(m),Le(a.$$.fragment,e),p=!1},d:function(e){e&&(Qe(n),Qe(s),Qe(r),Qe(l)),ze(t,e),ze(o,e),ze(i,e),m&&m.d(e),ze(a,e)}};return Je("SvelteRegisterBlock",{block:h,id:Ii.name,type:"slot",source:'(33:0) <Panel name=\\"settings\\" heading={$strings.delivery_settings_title} helpKey=\\"delivery-provider\\">',ctx:e}),h}function Ui(e){let t,n;t=new Cs({props:{name:"settings",heading:e[0].delivery_settings_title,helpKey:"delivery-provider",$$slots:{default:[Ii]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.heading=e[0].delivery_settings_title),4103&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ui.name,type:"component",source:"",ctx:e}),o}function qi(e,t,n){let o,s,i;p(ht,"strings"),m(e,ht,e=>n(0,o=e)),p(It,"delivery_provider"),m(e,It,e=>n(1,s=e)),p(Ct,"settings"),m(e,Ct,e=>n(2,i=e));let{$$slots:c={},$$scope:r}=t;function l(e){let t="";return 0===e.trim().length?t=o.domain_blank:!0===/[^a-z0-9.-]/.test(e)?t=o.domain_invalid_content:e.length<3&&(t=o.domain_too_short),t}it("DeliverySettingsPanel",c,[]);const a=[];return Object.keys(t).forEach(e=>{~a.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<DeliverySettingsPanel> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({delivery_provider:It,settings:Ct,strings:ht,Panel:Cs,DeliverySettingsHeadingRow:Mi,SettingsValidationStatusRow:ti,SettingsPanelOption:ki,domainValidator:l,$strings:o,$delivery_provider:s,$settings:i}),[o,s,i,l,function(t){e.$$.not_equal(i["serve-from-s3"],t)&&(i["serve-from-s3"]=t,Ct.set(i))},function(t){e.$$.not_equal(i["enable-delivery-domain"],t)&&(i["enable-delivery-domain"]=t,Ct.set(i))},function(t){e.$$.not_equal(i["delivery-domain"],t)&&(i["delivery-domain"]=t,Ct.set(i))},function(t){e.$$.not_equal(i["signed-urls-key-id"],t)&&(i["signed-urls-key-id"]=t,Ct.set(i))},function(t){e.$$.not_equal(i["signed-urls-key-file-path"],t)&&(i["signed-urls-key-file-path"]=t,Ct.set(i))},function(t){e.$$.not_equal(i["signed-urls-object-prefix"],t)&&(i["signed-urls-object-prefix"]=t,Ct.set(i))},function(t){e.$$.not_equal(i["enable-signed-urls"],t)&&(i["enable-signed-urls"]=t,Ct.set(i))},function(t){e.$$.not_equal(i["force-https"],t)&&(i["force-https"]=t,Ct.set(i))}]}class Vi extends rt{constructor(e){super(e),Xe(this,e,qi,Ui,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"DeliverySettingsPanel",options:e,id:Ui.name})}}function Wi(e){let t,n;t=new Vi({$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Wi.name,type:"slot",source:'(6:0) <SubPage name=\\"delivery-settings\\" route=\\"/media/delivery\\">',ctx:e}),o}function zi(e){let t,n;t=new zo({props:{name:"delivery-settings",route:"/media/delivery",$$slots:{default:[Wi]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:zi.name,type:"component",source:"",ctx:e}),o}function Xi(e,t,n){let{$$slots:o={},$$scope:s}=t;it("DeliverySettingsSubPage",o,[]);const i=[];return Object.keys(t).forEach(e=>{~i.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<DeliverySettingsSubPage> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({SubPage:zo,DeliverySettingsPanel:Vi}),[]}class Yi extends rt{constructor(e){super(e),Xe(this,e,Xi,zi,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"DeliverySettingsSubPage",options:e,id:zi.name})}}function Ji(t){let n,o,s,i;n=new Ni({$$inline:!0}),s=new Yi({$$inline:!0});const c={c:function(){Ve(n.$$.fragment),o=H(),Ve(s.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,t){We(n,e,t),Ze(e,o,t),We(s,e,t),i=!0},p:e,i:function(e){i||(Te(n.$$.fragment,e),Te(s.$$.fragment,e),i=!0)},o:function(e){Le(n.$$.fragment,e),Le(s.$$.fragment,e),i=!1},d:function(e){e&&Qe(o),ze(n,e),ze(s,e)}};return Je("SvelteRegisterBlock",{block:c,id:Ji.name,type:"component",source:"",ctx:t}),c}function Gi(e,t,n){let{$$slots:o={},$$scope:s}=t;it("MediaSettings",o,[]);let{params:i={}}=t;const c=i,r=["params"];return Object.keys(t).forEach(e=>{~r.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<MediaSettings> was created with unknown prop '${e}'`)}),e.$$set=e=>{"params"in e&&n(0,i=e.params)},e.$capture_state=()=>({StorageSettingsSubPage:Ni,DeliverySettingsSubPage:Yi,params:i,_params:c}),e.$inject_state=e=>{"params"in e&&n(0,i=e.params)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[i]}class Zi extends rt{constructor(e){super(e),Xe(this,e,Gi,Ji,l,{params:0}),Je("SvelteRegisterComponent",{component:this,tagName:"MediaSettings",options:e,id:Ji.name})}get params(){throw new Error("<MediaSettings>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set params(e){throw new Error("<MediaSettings>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Qi="ui/components/UrlPreview.svelte";function ec(e,t,n){const o=e.slice();return o[7]=t[n],o}function tc(e){let t,n;t=new Cs({props:{name:"url-preview",heading:e[1].url_preview_title,$$slots:{default:[ic]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};2&n&&(o.heading=e[1].url_preview_title),1027&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:tc.name,type:"if",source:"(43:0) {#if parts.length > 0}",ctx:e}),o}function nc(e){let t,n,s=e[1].url_preview_desc+"";const i={c:function(){t=C("p"),n=M(s),o(t,Qi,45,3,1186)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,t){2&t&&s!==(s=e[1].url_preview_desc+"")&&ot(n,s)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:i,id:nc.name,type:"slot",source:'(45:2) <PanelRow class=\\"desc\\">',ctx:e}),i}function oc(e,t){let n,s,i,c,r,l,a,u,p,d,f=t[7].title+"",m=t[7].example+"";const $={key:e,first:null,c:function(){n=C("div"),s=C("dt"),i=M(f),c=H(),r=C("dd"),l=M(m),a=H(),o(s,Qi,51,6,1371),o(r,Qi,52,6,1399),tt(n,"data-key",u=t[7].key),o(n,Qi,50,5,1322),this.first=n},m:function(e,t){Ze(e,n,t),Ge(n,s),Ge(s,i),Ge(n,c),Ge(n,r),Ge(r,l),Ge(n,a),d=!0},p:function(e,o){t=e,(!d||1&o)&&f!==(f=t[7].title+"")&&ot(i,f),(!d||1&o)&&m!==(m=t[7].example+"")&&ot(l,m),(!d||1&o&&u!==(u=t[7].key))&&tt(n,"data-key",u)},i:function(e){d||(e&&ye(()=>{d&&(p||(p=Ce(n,Go,{},!0)),p.run(1))}),d=!0)},o:function(e){e&&(p||(p=Ce(n,Go,{},!1)),p.run(0)),d=!1},d:function(e){e&&Qe(n),e&&p&&p.end()}};return Je("SvelteRegisterBlock",{block:$,id:oc.name,type:"each",source:"(50:4) {#each parts as part (part.title)}",ctx:t}),$}function sc(e){let t,n,s=[],i=new Map,c=st(e[0]);const r=e=>e[7].title;Ke(e,c,ec,r);for(let t=0;t<c.length;t+=1){let n=ec(e,c,t),o=r(n);i.set(o,s[t]=oc(o,n))}const l={c:function(){t=C("dl");for(let e=0;e<s.length;e+=1)s[e].c();o(t,Qi,48,3,1273)},m:function(e,o){Ze(e,t,o);for(let e=0;e<s.length;e+=1)s[e]&&s[e].m(t,null);n=!0},p:function(e,n){1&n&&(c=st(e[0]),Ne(),Ke(e,c,ec,r),s=Ae(s,n,r,1,e,c,i,t,Fe,oc,null,ec),Oe())},i:function(e){if(!n){for(let e=0;e<c.length;e+=1)Te(s[e]);n=!0}},o:function(e){for(let e=0;e<s.length;e+=1)Le(s[e]);n=!1},d:function(e){e&&Qe(t);for(let e=0;e<s.length;e+=1)s[e].d()}};return Je("SvelteRegisterBlock",{block:l,id:sc.name,type:"slot",source:'(48:2) <PanelRow class=\\"body flex-row\\">',ctx:e}),l}function ic(e){let t,n,o,s;t=new is({props:{class:"desc",$$slots:{default:[nc]},$$scope:{ctx:e}},$$inline:!0}),o=new is({props:{class:"body flex-row",$$slots:{default:[sc]},$$scope:{ctx:e}},$$inline:!0});const i={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment)},m:function(e,i){We(t,e,i),Ze(e,n,i),We(o,e,i),s=!0},p:function(e,n){const s={};1026&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s);const i={};1025&n&&(i.$$scope={dirty:n,ctx:e}),o.$set(i)},i:function(e){s||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),s=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),s=!1},d:function(e){e&&Qe(n),ze(t,e),ze(o,e)}};return Je("SvelteRegisterBlock",{block:i,id:ic.name,type:"slot",source:'(44:1) <Panel name=\\"url-preview\\" heading={$strings.url_preview_title}>',ctx:e}),i}function cc(e){let t,n,o=e[0].length>0&&tc(e);const s={c:function(){o&&o.c(),t=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,s){o&&o.m(e,s),Ze(e,t,s),n=!0},p:function(e,[n]){e[0].length>0?o?(o.p(e,n),1&n&&Te(o,1)):(o=tc(e),o.c(),Te(o,1),o.m(t.parentNode,t)):o&&(Ne(),Le(o,1,1,()=>{o=null}),Oe())},i:function(e){n||(Te(o),n=!0)},o:function(e){Le(o),n=!1},d:function(e){e&&Qe(t),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:cc.name,type:"component",source:"",ctx:e}),s}function rc(e,t,n){let o,s,i,c,r;p(Ct,"settings"),m(e,Ct,e=>n(2,s=e)),p(Mt,"settings_changed"),m(e,Mt,e=>n(3,i=e)),p(bt,"urls"),m(e,bt,e=>n(4,c=e)),p(ht,"strings"),m(e,ht,e=>n(1,r=e));let{$$slots:l={},$$scope:a}=t;it("UrlPreview",l,[]);let u=c.url_parts;async function d(e,t,o){if(t){const e=await Dt.post("url-preview",{settings:o});if(e.hasOwnProperty("url_parts"))return n(0,u=e.url_parts),!0}return n(0,u=e.url_parts),!1}const f=[];return Object.keys(t).forEach(e=>{~f.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<UrlPreview> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({scale:Go,api:Dt,settings:Ct,settings_changed:Mt,strings:ht,urls:bt,Panel:Cs,PanelRow:is,parts:u,temporaryUrl:d,isTemporaryUrl:o,$settings:s,$settings_changed:i,$urls:c,$strings:r}),e.$inject_state=e=>{"parts"in e&&n(0,u=e.parts),"isTemporaryUrl"in e&&(o=e.isTemporaryUrl)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{28&e.$$.dirty&&(o=d(c,i,s))},[u,r,s,i,c]}class lc extends rt{constructor(e){super(e),Xe(this,e,rc,cc,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"UrlPreview",options:e,id:cc.name})}}function ac(){const e=document.getElementById("notifications");e&&e.scrollIntoView({behavior:"smooth",block:"start"})}const uc="ui/components/Footer.svelte";function pc(e){let t,n,s,i,c,r,l;s=new zn({props:{outline:!0,$$slots:{default:[dc]},$$scope:{ctx:e}},$$inline:!0}),s.$on("click",e[4]),c=new zn({props:{primary:!0,disabled:e[1],$$slots:{default:[fc]},$$scope:{ctx:e}},$$inline:!0}),c.$on("click",e[5]);const a={c:function(){t=C("div"),n=C("div"),Ve(s.$$.fragment),i=H(),Ve(c.$$.fragment),tt(n,"class","buttons"),o(n,uc,69,2,1762),tt(t,"class","fixed-cta-block"),o(t,uc,68,1,1713)},m:function(e,o){Ze(e,t,o),Ge(t,n),We(s,n,null),Ge(n,i),We(c,n,null),l=!0},p:function(e,t){const n={};2056&t&&(n.$$scope={dirty:t,ctx:e}),s.$set(n);const o={};2&t&&(o.disabled=e[1]),2056&t&&(o.$$scope={dirty:t,ctx:e}),c.$set(o)},i:function(e){l||(Te(s.$$.fragment,e),Te(c.$$.fragment,e),e&&ye(()=>{l&&(r||(r=Ce(t,Jo,{},!0)),r.run(1))}),l=!0)},o:function(e){Le(s.$$.fragment,e),Le(c.$$.fragment,e),e&&(r||(r=Ce(t,Jo,{},!1)),r.run(0)),l=!1},d:function(e){e&&Qe(t),ze(s),ze(c),e&&r&&r.end()}};return Je("SvelteRegisterBlock",{block:a,id:pc.name,type:"if",source:"(68:0) {#if $settingsChangedStore}",ctx:e}),a}function dc(e){let t,n=e[3].cancel_button+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){8&o&&n!==(n=e[3].cancel_button+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:dc.name,type:"slot",source:"(71:3) <Button outline on:click={handleCancel}>",ctx:e}),o}function fc(e){let t,n=e[3].save_changes+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){8&o&&n!==(n=e[3].save_changes+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:fc.name,type:"slot",source:"(72:3) <Button primary on:click={handleSave} {disabled}>",ctx:e}),o}function mc(e){let t,n,o=e[2]&&pc(e);const s={c:function(){o&&o.c(),t=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,s){o&&o.m(e,s),Ze(e,t,s),n=!0},p:function(e,[n]){e[2]?o?(o.p(e,n),4&n&&Te(o,1)):(o=pc(e),o.c(),Te(o,1),o.m(t.parentNode,t)):o&&(Ne(),Le(o,1,1,()=>{o=null}),Oe())},i:function(e){n||(Te(o),n=!0)},o:function(e){Le(o),n=!1},d:function(e){e&&Qe(t),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:mc.name,type:"component",source:"",ctx:e}),s}function $c(t,n,o){let s,i,c,r,l,a=e,u=()=>(a(),a=d(w,e=>o(2,r=e)),w);p(Tt,"revalidatingSettings"),m(t,Tt,e=>o(9,i=e)),p(Ot,"validationErrors"),m(t,Ot,e=>o(8,c=e)),p(ht,"strings"),m(t,ht,e=>o(3,l=e)),t.$$.on_destroy.push(()=>a());let{$$slots:f={},$$scope:$}=n;it("Footer",f,[]);const g=le();let{settingsStore:h=Ct}=n,{settingsChangedStore:w=Mt}=n;p(w,"settingsChangedStore"),u();let b=!1;function v(){h.reset()}async function _(){o(7,b=!0),Zt.pausePeriodicFetch();const e=await h.save();y(Tt,i=!0,i);const t=Zt.resumePeriodicFetch();e.hasOwnProperty("saved")&&e.hasOwnProperty("changed_settings")&&g("routeEvent",{event:"settings.save",data:e}),ac(),o(7,b=!1),await t,y(Tt,i=!1,i)}Ot.set(new Map),re(()=>v());const k=["settingsStore","settingsChangedStore"];return Object.keys(n).forEach(e=>{~k.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Footer> was created with unknown prop '${e}'`)}),t.$$set=e=>{"settingsStore"in e&&o(6,h=e.settingsStore),"settingsChangedStore"in e&&u(o(0,w=e.settingsChangedStore))},t.$capture_state=()=>({createEventDispatcher:le,onDestroy:re,slide:Jo,revalidatingSettings:Tt,settings_changed:Mt,settings:Ct,strings:ht,state:Zt,validationErrors:Ot,scrollNotificationsIntoView:ac,Button:zn,dispatch:g,settingsStore:h,settingsChangedStore:w,saving:b,handleCancel:v,handleSave:_,disabled:s,$revalidatingSettings:i,$validationErrors:c,$settingsChangedStore:r,$strings:l}),t.$inject_state=e=>{"settingsStore"in e&&o(6,h=e.settingsStore),"settingsChangedStore"in e&&u(o(0,w=e.settingsChangedStore)),"saving"in e&&o(7,b=e.saving),"disabled"in e&&o(1,s=e.disabled)},n&&"$$inject"in n&&t.$inject_state(n.$$inject),t.$$.update=()=>{384&t.$$.dirty&&o(1,s=b||c.size>0)},[w,s,r,l,v,_,h,b,c]}class gc extends rt{constructor(e){super(e),Xe(this,e,$c,mc,l,{settingsStore:6,settingsChangedStore:0}),Je("SvelteRegisterComponent",{component:this,tagName:"Footer",options:e,id:mc.name})}get settingsStore(){throw new Error("<Footer>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set settingsStore(e){throw new Error("<Footer>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get settingsChangedStore(){throw new Error("<Footer>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set settingsChangedStore(e){throw new Error("<Footer>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function hc(e){let t,n,o,s,i,c,r,l;t=new _o({props:{tab:e[0]},$$inline:!0}),o=new Do({props:{name:e[0],items:e[3],subpage:!0},$$inline:!0}),i=new Fo({props:{name:e[0],routes:e[4]},$$inline:!0}),r=new lc({$$inline:!0});const a={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment),s=H(),Ve(i.$$.fragment),c=H(),Ve(r.$$.fragment)},m:function(e,a){We(t,e,a),Ze(e,n,a),We(o,e,a),Ze(e,s,a),We(i,e,a),Ze(e,c,a),We(r,e,a),l=!0},p:function(e,n){const s={};1&n&&(s.tab=e[0]),t.$set(s);const c={};1&n&&(c.name=e[0]),8&n&&(c.items=e[3]),o.$set(c);const r={};1&n&&(r.name=e[0]),i.$set(r)},i:function(e){l||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),Te(i.$$.fragment,e),Te(r.$$.fragment,e),l=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),Le(i.$$.fragment,e),Le(r.$$.fragment,e),l=!1},d:function(e){e&&(Qe(n),Qe(s),Qe(c)),ze(t,e),ze(o,e),ze(i,e),ze(r,e)}};return Je("SvelteRegisterBlock",{block:a,id:hc.name,type:"if",source:"(59:1) {#if render}",ctx:e}),a}function wc(e){let t,n,o=e[2]&&hc(e);const s={c:function(){o&&o.c(),t=F()},m:function(e,s){o&&o.m(e,s),Ze(e,t,s),n=!0},p:function(e,n){e[2]?o?(o.p(e,n),4&n&&Te(o,1)):(o=hc(e),o.c(),Te(o,1),o.m(t.parentNode,t)):o&&(Ne(),Le(o,1,1,()=>{o=null}),Oe())},i:function(e){n||(Te(o),n=!0)},o:function(e){Le(o),n=!1},d:function(e){e&&Qe(t),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:wc.name,type:"slot",source:"(58:0) <Page {name} on:routeEvent>",ctx:e}),s}function bc(e){let t,n,o;var s=e[1];s&&(t=ct(s,{$$inline:!0}));const i={c:function(){t&&Ve(t.$$.fragment),n=F()},m:function(e,s){t&&We(t,e,s),Ze(e,n,s),o=!0},p:function(e,o){if(2&o&&s!==(s=e[1])){if(t){Ne();const e=t;Le(e.$$.fragment,1,0,()=>{ze(e,1)}),Oe()}s?(t=ct(s,{$$inline:!0}),Ve(t.$$.fragment),Te(t.$$.fragment,1),We(t,n.parentNode,n)):t=null}},i:function(e){o||(t&&Te(t.$$.fragment,e),o=!0)},o:function(e){t&&Le(t.$$.fragment,e),o=!1},d:function(e){e&&Qe(n),t&&ze(t,e)}};return Je("SvelteRegisterBlock",{block:i,id:bc.name,type:"if",source:"(67:0) {#if sidebar && render}",ctx:e}),i}function vc(e){let t,n,o,s,i;t=new In({props:{name:e[0],$$slots:{default:[wc]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[8]);let c=e[1]&&e[2]&&bc(e);s=new gc({$$inline:!0}),s.$on("routeEvent",e[9]);const r={c:function(){Ve(t.$$.fragment),n=H(),c&&c.c(),o=H(),Ve(s.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,r){We(t,e,r),Ze(e,n,r),c&&c.m(e,r),Ze(e,o,r),We(s,e,r),i=!0},p:function(e,[n]){const s={};1&n&&(s.name=e[0]),4109&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s),e[1]&&e[2]?c?(c.p(e,n),6&n&&Te(c,1)):(c=bc(e),c.c(),Te(c,1),c.m(o.parentNode,o)):c&&(Ne(),Le(c,1,1,()=>{c=null}),Oe())},i:function(e){i||(Te(t.$$.fragment,e),Te(c),Te(s.$$.fragment,e),i=!0)},o:function(e){Le(t.$$.fragment,e),Le(c),Le(s.$$.fragment,e),i=!1},d:function(e){e&&(Qe(n),Qe(o)),ze(t,e),c&&c.d(e),ze(s,e)}};return Je("SvelteRegisterBlock",{block:r,id:vc.name,type:"component",source:"",ctx:e}),r}function yc(e,t,n){let o,s,i,c;p(St,"is_plugin_setup"),m(e,St,e=>n(10,s=e)),p(Bt,"settings_validation"),m(e,Bt,e=>n(6,i=e)),p(ht,"strings"),m(e,ht,e=>n(7,c=e));let{$$slots:r={},$$scope:l}=t;it("MediaPage",r,[]);let{name:a="media"}=t,{params:u={}}=t;const d=u;let f=null,$=!1;pe("sidebar")&&(f=ue("sidebar")),ae("settingsLocked",mt);const g={"*":Zi};ie(()=>{s&&n(2,$=!0)});const h=["name","params"];return Object.keys(t).forEach(e=>{~h.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<MediaPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,a=e.name),"params"in e&&n(5,u=e.params)},e.$capture_state=()=>({getContext:ue,hasContext:pe,onMount:ie,setContext:ae,is_plugin_setup:St,settingsLocked:mt,strings:ht,settings_validation:Bt,Page:In,Notifications:_o,SubNav:Do,SubPages:Fo,MediaSettings:Zi,UrlPreview:lc,Footer:gc,name:a,params:u,_params:d,sidebar:f,render:$,routes:g,items:o,$is_plugin_setup:s,$settings_validation:i,$strings:c}),e.$inject_state=e=>{"name"in e&&n(0,a=e.name),"params"in e&&n(5,u=e.params),"sidebar"in e&&n(1,f=e.sidebar),"render"in e&&n(2,$=e.render),"items"in e&&n(3,o=e.items)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{192&e.$$.dirty&&n(3,o=[{route:"/",title:()=>c.storage_settings_title,noticeIcon:i.storage.type},{route:"/media/delivery",title:()=>c.delivery_settings_title,noticeIcon:i.delivery.type}])},[a,f,$,o,g,u,i,c,function(t){de.call(this,e,t)},function(t){de.call(this,e,t)}]}function _c(e){let t,n,o,s,i,c;t=new _o({props:{tab:"media",tabParent:"media"},$$inline:!0}),o=new Do({props:{name:e[0],items:e[1],progress:!0},$$inline:!0}),i=new Fo({props:{name:e[0],prefix:xc,routes:e[2]},$$inline:!0}),i.$on("routeEvent",e[4]);const r={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment),s=H(),Ve(i.$$.fragment)},m:function(e,r){We(t,e,r),Ze(e,n,r),We(o,e,r),Ze(e,s,r),We(i,e,r),c=!0},p:function(e,t){const n={};1&t&&(n.name=e[0]),2&t&&(n.items=e[1]),o.$set(n);const s={};1&t&&(s.name=e[0]),4&t&&(s.routes=e[2]),i.$set(s)},i:function(e){c||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),Te(i.$$.fragment,e),c=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),Le(i.$$.fragment,e),c=!1},d:function(e){e&&(Qe(n),Qe(s)),ze(t,e),ze(o,e),ze(i,e)}};return Je("SvelteRegisterBlock",{block:r,id:_c.name,type:"slot",source:"(46:0) <Page {name} subpage on:routeEvent>",ctx:e}),r}function kc(e){let t,n;t=new In({props:{name:e[0],subpage:!0,$$slots:{default:[_c]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[5]);const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.name=e[0]),1031&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:kc.name,type:"component",source:"",ctx:e}),o}const xc="/storage";function Pc(e,t,n){let o,s,i;p(Rn,"location"),m(e,Rn,e=>n(6,o=e)),p(Et,"needs_access_keys"),m(e,Et,e=>n(7,s=e)),p($t,"current_settings"),m(e,$t,e=>n(8,i=e));let{$$slots:c={},$$scope:r}=t;it("StoragePage",c,[]);let{name:l="storage"}=t,{params:a={}}=t;const u=a;i.bucket?ae("initialSetup",!1):ae("initialSetup",!0),ae("settingsLocked",mt);let d=$n.withPrefix(xc),f=$n.routes(xc);ce(()=>{n(1,d=$n.withPrefix(xc)),n(2,f=$n.routes(xc)),s&&o.startsWith("/storage/")&&"/storage/provider"!==o&&Bn("/storage/provider")});const $=["name","params"];return Object.keys(t).forEach(e=>{~$.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<StoragePage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,l=e.name),"params"in e&&n(3,a=e.params)},e.$capture_state=()=>({afterUpdate:ce,setContext:ae,location:Rn,push:Bn,current_settings:$t,settingsLocked:mt,needs_access_keys:Et,Page:In,Notifications:_o,SubNav:Do,SubPages:Fo,pages:$n,name:l,params:a,_params:u,prefix:xc,items:d,routes:f,$location:o,$needs_access_keys:s,$current_settings:i}),e.$inject_state=e=>{"name"in e&&n(0,l=e.name),"params"in e&&n(3,a=e.params),"items"in e&&n(1,d=e.items),"routes"in e&&n(2,f=e.routes)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[l,d,f,a,function(t){de.call(this,e,t)},function(t){de.call(this,e,t)}]}function Sc(e,t,n,o,s){return!e&&(!!dt([t,n])||dt([o,s]))}const Rc="ui/components/TabButton.svelte";function Ec(e){let t,n;const s={c:function(){t=C("img"),u(t.src,n=e[2])||tt(t,"src",n),tt(t,"type","image/svg+xml"),tt(t,"alt",e[3]),o(t,Rc,20,2,363)},m:function(e,n){Ze(e,t,n)},p:function(e,o){4&o&&!u(t.src,n=e[2])&&tt(t,"src",n),8&o&&tt(t,"alt",e[3])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:Ec.name,type:"if",source:"(20:1) {#if icon}",ctx:e}),s}function jc(e){let t,n;const s={c:function(){t=C("p"),n=M(e[4]),o(t,Rc,27,2,449)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,t){16&t&&ot(n,e[4])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:jc.name,type:"if",source:"(27:1) {#if text}",ctx:e}),s}function Bc(e){let t,n,s;const i={c:function(){t=C("img"),tt(t,"class","checkmark"),u(t.src,n=e[6].assets+"img/icon/licence-checked.svg")||tt(t,"src",n),tt(t,"type","image/svg+xml"),tt(t,"alt",s=e[7].selected_desc),o(t,Rc,30,2,486)},m:function(e,n){Ze(e,t,n)},p:function(e,o){64&o&&!u(t.src,n=e[6].assets+"img/icon/licence-checked.svg")&&tt(t,"src",n),128&o&&s!==(s=e[7].selected_desc)&&tt(t,"alt",s)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:i,id:Bc.name,type:"if",source:"(30:1) {#if active}",ctx:e}),i}function Nc(t){let n,s,i,c,r,l=t[2]&&Ec(t),a=t[4]&&jc(t),u=t[0]&&Bc(t);const p={c:function(){n=C("a"),l&&l.c(),s=H(),a&&a.c(),i=H(),u&&u.c(),tt(n,"href",t[5]),tt(n,"class","button-tab"),tt(n,"disabled",t[1]),Y(n,"active",t[0]),Y(n,"btn-disabled",t[1]),o(n,Rc,11,0,230)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,n,o),l&&l.m(n,null),Ge(n,s),a&&a.m(n,null),Ge(n,i),u&&u.m(n,null),c||(r=et(n,"click",K(t[8]),!1,!0,!1,!1),c=!0)},p:function(e,[t]){e[2]?l?l.p(e,t):(l=Ec(e),l.c(),l.m(n,s)):l&&(l.d(1),l=null),e[4]?a?a.p(e,t):(a=jc(e),a.c(),a.m(n,i)):a&&(a.d(1),a=null),e[0]?u?u.p(e,t):(u=Bc(e),u.c(),u.m(n,null)):u&&(u.d(1),u=null),32&t&&tt(n,"href",e[5]),2&t&&tt(n,"disabled",e[1]),1&t&&Y(n,"active",e[0]),2&t&&Y(n,"btn-disabled",e[1])},i:e,o:e,d:function(e){e&&Qe(n),l&&l.d(),a&&a.d(),u&&u.d(),c=!1,r()}};return Je("SvelteRegisterBlock",{block:p,id:Nc.name,type:"component",source:"",ctx:t}),p}function Oc(e,t,n){let o,s;p(bt,"urls"),m(e,bt,e=>n(6,o=e)),p(ht,"strings"),m(e,ht,e=>n(7,s=e));let{$$slots:i={},$$scope:c}=t;it("TabButton",i,[]);let{active:r=!1}=t,{disabled:l=!1}=t,{icon:a=""}=t,{iconDesc:u=""}=t,{text:d=""}=t,{url:f=o.settings}=t;const $=["active","disabled","icon","iconDesc","text","url"];return Object.keys(t).forEach(e=>{~$.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<TabButton> was created with unknown prop '${e}'`)}),e.$$set=e=>{"active"in e&&n(0,r=e.active),"disabled"in e&&n(1,l=e.disabled),"icon"in e&&n(2,a=e.icon),"iconDesc"in e&&n(3,u=e.iconDesc),"text"in e&&n(4,d=e.text),"url"in e&&n(5,f=e.url)},e.$capture_state=()=>({strings:ht,urls:bt,active:r,disabled:l,icon:a,iconDesc:u,text:d,url:f,$urls:o,$strings:s}),e.$inject_state=e=>{"active"in e&&n(0,r=e.active),"disabled"in e&&n(1,l=e.disabled),"icon"in e&&n(2,a=e.icon),"iconDesc"in e&&n(3,u=e.iconDesc),"text"in e&&n(4,d=e.text),"url"in e&&n(5,f=e.url)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[r,l,a,u,d,f,o,s,function(t){de.call(this,e,t)}]}class Tc extends rt{constructor(e){super(e),Xe(this,e,Oc,Nc,l,{active:0,disabled:1,icon:2,iconDesc:3,text:4,url:5}),Je("SvelteRegisterComponent",{component:this,tagName:"TabButton",options:e,id:Nc.name})}get active(){throw new Error("<TabButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set active(e){throw new Error("<TabButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get disabled(){throw new Error("<TabButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set disabled(e){throw new Error("<TabButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get icon(){throw new Error("<TabButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set icon(e){throw new Error("<TabButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get iconDesc(){throw new Error("<TabButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set iconDesc(e){throw new Error("<TabButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get text(){throw new Error("<TabButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set text(e){throw new Error("<TabButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get url(){throw new Error("<TabButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set url(e){throw new Error("<TabButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Lc="ui/components/RadioButton.svelte";function Dc(e){let t;const n={c:function(){t=C("p"),tt(t,"class","radio-desc"),o(t,Lc,16,1,371)},m:function(n,o){Ze(n,t,o),t.innerHTML=e[5]},p:function(e,n){32&n&&(t.innerHTML=e[5])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:Dc.name,type:"if",source:"(16:0) {#if selected === value && desc}",ctx:e}),n}function Cc(e){let t,n,s,i,c,r,l,a,u,p,d=!1;const f=e[7].default,m=$(f,e,e[6],null);let g=e[0]===e[4]&&e[5]&&Dc(e);a=function(e){let t;return{p(...n){t=n,t.forEach(t=>e.push(t))},r(){t.forEach(t=>e.splice(e.indexOf(t),1))}}}(e[9][0]);const v={c:function(){t=C("div"),n=C("label"),s=C("input"),i=H(),m&&m.c(),c=H(),g&&g.c(),r=F(),tt(s,"type","radio"),tt(s,"name",e[3]),s.__value=e[4],I(s,s.__value),s.disabled=e[2],o(s,Lc,11,2,241),o(n,Lc,10,1,231),tt(t,"class","radio-btn"),Y(t,"list",e[1]),Y(t,"disabled",e[2]),o(t,Lc,9,0,180),a.p(s)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(o,a){Ze(o,t,a),Ge(t,n),Ge(n,s),s.checked=s.__value===e[0],Ge(n,i),m&&m.m(n,null),Ze(o,c,a),g&&g.m(o,a),Ze(o,r,a),l=!0,u||(p=et(s,"change",e[8]),u=!0)},p:function(e,[n]){(!l||8&n)&&tt(s,"name",e[3]),(!l||16&n)&&(nt(s,"__value",e[4]),I(s,s.__value),d=!0),(!l||4&n)&&nt(s,"disabled",e[2]),(d||1&n)&&(s.checked=s.__value===e[0]),m&&m.p&&(!l||64&n)&&w(m,f,e,e[6],l?h(f,e[6],n,null):b(e[6]),null),(!l||2&n)&&Y(t,"list",e[1]),(!l||4&n)&&Y(t,"disabled",e[2]),e[0]===e[4]&&e[5]?g?g.p(e,n):(g=Dc(e),g.c(),g.m(r.parentNode,r)):g&&(g.d(1),g=null)},i:function(e){l||(Te(m,e),l=!0)},o:function(e){Le(m,e),l=!1},d:function(e){e&&(Qe(t),Qe(c),Qe(r)),m&&m.d(e),g&&g.d(e),a.r(),u=!1,p()}};return Je("SvelteRegisterBlock",{block:v,id:Cc.name,type:"component",source:"",ctx:e}),v}function Mc(e,t,n){let{$$slots:o={},$$scope:s}=t;it("RadioButton",o,["default"]);let{list:i=!1}=t,{disabled:c=!1}=t,{name:r="options"}=t,{value:l=""}=t,{selected:a=""}=t,{desc:u=""}=t;const p=["list","disabled","name","value","selected","desc"];Object.keys(t).forEach(e=>{~p.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<RadioButton> was created with unknown prop '${e}'`)});return e.$$set=e=>{"list"in e&&n(1,i=e.list),"disabled"in e&&n(2,c=e.disabled),"name"in e&&n(3,r=e.name),"value"in e&&n(4,l=e.value),"selected"in e&&n(0,a=e.selected),"desc"in e&&n(5,u=e.desc),"$$scope"in e&&n(6,s=e.$$scope)},e.$capture_state=()=>({list:i,disabled:c,name:r,value:l,selected:a,desc:u}),e.$inject_state=e=>{"list"in e&&n(1,i=e.list),"disabled"in e&&n(2,c=e.disabled),"name"in e&&n(3,r=e.name),"value"in e&&n(4,l=e.value),"selected"in e&&n(0,a=e.selected),"desc"in e&&n(5,u=e.desc)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[a,i,c,r,l,u,s,o,function(){a=this.__value,n(0,a)},[[]]]}class Hc extends rt{constructor(e){super(e),Xe(this,e,Mc,Cc,l,{list:1,disabled:2,name:3,value:4,selected:0,desc:5}),Je("SvelteRegisterComponent",{component:this,tagName:"RadioButton",options:e,id:Cc.name})}get list(){throw new Error("<RadioButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set list(e){throw new Error("<RadioButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get disabled(){throw new Error("<RadioButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set disabled(e){throw new Error("<RadioButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get name(){throw new Error("<RadioButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<RadioButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get value(){throw new Error("<RadioButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set value(e){throw new Error("<RadioButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get selected(){throw new Error("<RadioButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set selected(e){throw new Error("<RadioButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get desc(){throw new Error("<RadioButton>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set desc(e){throw new Error("<RadioButton>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Fc="ui/components/AccessKeysDefine.svelte";function Ac(t){let n,s,i,c,r=t[0].define_access_keys_desc+"",l=t[0].define_access_keys_example+"";const a={c:function(){n=C("p"),s=H(),i=C("pre"),c=M(l),o(n,Fc,4,0,42),o(i,Fc,6,0,91)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,t){Ze(e,n,t),n.innerHTML=r,Ze(e,s,t),Ze(e,i,t),Ge(i,c)},p:function(e,[t]){1&t&&r!==(r=e[0].define_access_keys_desc+"")&&(n.innerHTML=r),1&t&&l!==(l=e[0].define_access_keys_example+"")&&ot(c,l)},i:e,o:e,d:function(e){e&&(Qe(n),Qe(s),Qe(i))}};return Je("SvelteRegisterBlock",{block:a,id:Ac.name,type:"component",source:"",ctx:t}),a}function Kc(e,t,n){let{$$slots:o={},$$scope:s}=t;it("AccessKeysDefine",o,[]);let{provider:i}=t;e.$$.on_mount.push(function(){void 0!==i||"provider"in t||e.$$.bound[e.$$.props.provider]||console.warn("<AccessKeysDefine> was created without expected prop 'provider'")});const c=["provider"];return Object.keys(t).forEach(e=>{~c.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<AccessKeysDefine> was created with unknown prop '${e}'`)}),e.$$set=e=>{"provider"in e&&n(0,i=e.provider)},e.$capture_state=()=>({provider:i}),e.$inject_state=e=>{"provider"in e&&n(0,i=e.provider)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[i]}class Ic extends rt{constructor(e){super(e),Xe(this,e,Kc,Ac,l,{provider:0}),Je("SvelteRegisterComponent",{component:this,tagName:"AccessKeysDefine",options:e,id:Ac.name})}get provider(){throw new Error("<AccessKeysDefine>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set provider(e){throw new Error("<AccessKeysDefine>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function Uc(e){let t,n;t=new zn({props:{large:!0,disabled:e[1],title:e[2],$$slots:{default:[qc]},$$scope:{ctx:e}},$$inline:!0}),t.$on("click",e[12]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};2&n&&(o.disabled=e[1]),4&n&&(o.title=e[2]),65537&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Uc.name,type:"if",source:"(27:1) {#if backVisible}",ctx:e}),o}function qc(e){let t;const n={c:function(){t=M(e[0])},m:function(e,n){Ze(e,t,n)},p:function(e,n){1&n&&ot(t,e[0])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:qc.name,type:"slot",source:"(28:2) <Button large on:click=\\\"{() => dispatch('back')}\\\" disabled={backDisabled} title={backTitle} >",ctx:e}),n}function Vc(e){let t,n;t=new zn({props:{large:!0,outline:!0,disabled:e[5],title:e[6],$$slots:{default:[Wc]},$$scope:{ctx:e}},$$inline:!0}),t.$on("click",e[13]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};32&n&&(o.disabled=e[5]),64&n&&(o.title=e[6]),65552&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Vc.name,type:"if",source:"(37:1) {#if skipVisible}",ctx:e}),o}function Wc(e){let t;const n={c:function(){t=M(e[4])},m:function(e,n){Ze(e,t,n)},p:function(e,n){16&n&&ot(t,e[4])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:Wc.name,type:"slot",source:"(38:2) <Button large outline on:click=\\\"{() => dispatch('skip')}\\\" disabled={skipDisabled} title={skipTitle} >",ctx:e}),n}function zc(e){let t;const n={c:function(){t=M(e[8])},m:function(e,n){Ze(e,t,n)},p:function(e,n){256&n&&ot(t,e[8])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:zc.name,type:"slot",source:"(48:1) <Button large primary on:click=\\\"{() => dispatch('next')}\\\" disabled={nextDisabled} title={nextTitle} >",ctx:e}),n}function Xc(e){let t,n,s,i,c,r=e[3]&&Uc(e),l=e[7]&&Vc(e);i=new zn({props:{large:!0,primary:!0,disabled:e[9],title:e[10],$$slots:{default:[zc]},$$scope:{ctx:e}},$$inline:!0}),i.$on("click",e[14]);const a={c:function(){t=C("div"),r&&r.c(),n=H(),l&&l.c(),s=H(),Ve(i.$$.fragment),tt(t,"class","btn-row"),o(t,"ui/components/BackNextButtonsRow.svelte",25,0,702)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,t,o),r&&r.m(t,null),Ge(t,n),l&&l.m(t,null),Ge(t,s),We(i,t,null),c=!0},p:function(e,[o]){e[3]?r?(r.p(e,o),8&o&&Te(r,1)):(r=Uc(e),r.c(),Te(r,1),r.m(t,n)):r&&(Ne(),Le(r,1,1,()=>{r=null}),Oe()),e[7]?l?(l.p(e,o),128&o&&Te(l,1)):(l=Vc(e),l.c(),Te(l,1),l.m(t,s)):l&&(Ne(),Le(l,1,1,()=>{l=null}),Oe());const c={};512&o&&(c.disabled=e[9]),1024&o&&(c.title=e[10]),65792&o&&(c.$$scope={dirty:o,ctx:e}),i.$set(c)},i:function(e){c||(Te(r),Te(l),Te(i.$$.fragment,e),c=!0)},o:function(e){Le(r),Le(l),Le(i.$$.fragment,e),c=!1},d:function(e){e&&Qe(t),r&&r.d(),l&&l.d(),ze(i)}};return Je("SvelteRegisterBlock",{block:a,id:Xc.name,type:"component",source:"",ctx:e}),a}function Yc(e,t,n){let o;p(ht,"strings"),m(e,ht,e=>n(15,o=e));let{$$slots:s={},$$scope:i}=t;it("BackNextButtonsRow",s,[]);const c=le();let{backText:r=o.back}=t,{backDisabled:l=!1}=t,{backTitle:a=""}=t,{backVisible:u=!1}=t,{skipText:d=o.skip}=t,{skipDisabled:f=!1}=t,{skipTitle:$=""}=t,{skipVisible:g=!1}=t,{nextText:h=o.next}=t,{nextDisabled:w=!1}=t,{nextTitle:b=""}=t;const v=["backText","backDisabled","backTitle","backVisible","skipText","skipDisabled","skipTitle","skipVisible","nextText","nextDisabled","nextTitle"];Object.keys(t).forEach(e=>{~v.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<BackNextButtonsRow> was created with unknown prop '${e}'`)});return e.$$set=e=>{"backText"in e&&n(0,r=e.backText),"backDisabled"in e&&n(1,l=e.backDisabled),"backTitle"in e&&n(2,a=e.backTitle),"backVisible"in e&&n(3,u=e.backVisible),"skipText"in e&&n(4,d=e.skipText),"skipDisabled"in e&&n(5,f=e.skipDisabled),"skipTitle"in e&&n(6,$=e.skipTitle),"skipVisible"in e&&n(7,g=e.skipVisible),"nextText"in e&&n(8,h=e.nextText),"nextDisabled"in e&&n(9,w=e.nextDisabled),"nextTitle"in e&&n(10,b=e.nextTitle)},e.$capture_state=()=>({createEventDispatcher:le,strings:ht,Button:zn,dispatch:c,backText:r,backDisabled:l,backTitle:a,backVisible:u,skipText:d,skipDisabled:f,skipTitle:$,skipVisible:g,nextText:h,nextDisabled:w,nextTitle:b,$strings:o}),e.$inject_state=e=>{"backText"in e&&n(0,r=e.backText),"backDisabled"in e&&n(1,l=e.backDisabled),"backTitle"in e&&n(2,a=e.backTitle),"backVisible"in e&&n(3,u=e.backVisible),"skipText"in e&&n(4,d=e.skipText),"skipDisabled"in e&&n(5,f=e.skipDisabled),"skipTitle"in e&&n(6,$=e.skipTitle),"skipVisible"in e&&n(7,g=e.skipVisible),"nextText"in e&&n(8,h=e.nextText),"nextDisabled"in e&&n(9,w=e.nextDisabled),"nextTitle"in e&&n(10,b=e.nextTitle)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[r,l,a,u,d,f,$,g,h,w,b,c,()=>c("back"),()=>c("skip"),()=>c("next")]}class Jc extends rt{constructor(e){super(e),Xe(this,e,Yc,Xc,l,{backText:0,backDisabled:1,backTitle:2,backVisible:3,skipText:4,skipDisabled:5,skipTitle:6,skipVisible:7,nextText:8,nextDisabled:9,nextTitle:10}),Je("SvelteRegisterComponent",{component:this,tagName:"BackNextButtonsRow",options:e,id:Xc.name})}get backText(){throw new Error("<BackNextButtonsRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set backText(e){throw new Error("<BackNextButtonsRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get backDisabled(){throw new Error("<BackNextButtonsRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set backDisabled(e){throw new Error("<BackNextButtonsRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get backTitle(){throw new Error("<BackNextButtonsRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set backTitle(e){throw new Error("<BackNextButtonsRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get backVisible(){throw new Error("<BackNextButtonsRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set backVisible(e){throw new Error("<BackNextButtonsRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get skipText(){throw new Error("<BackNextButtonsRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set skipText(e){throw new Error("<BackNextButtonsRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get skipDisabled(){throw new Error("<BackNextButtonsRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set skipDisabled(e){throw new Error("<BackNextButtonsRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get skipTitle(){throw new Error("<BackNextButtonsRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set skipTitle(e){throw new Error("<BackNextButtonsRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get skipVisible(){throw new Error("<BackNextButtonsRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set skipVisible(e){throw new Error("<BackNextButtonsRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get nextText(){throw new Error("<BackNextButtonsRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set nextText(e){throw new Error("<BackNextButtonsRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get nextDisabled(){throw new Error("<BackNextButtonsRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set nextDisabled(e){throw new Error("<BackNextButtonsRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get nextTitle(){throw new Error("<BackNextButtonsRow>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set nextTitle(e){throw new Error("<BackNextButtonsRow>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Gc="ui/components/KeyFileDefine.svelte";function Zc(t){let n,s,i,c,r=t[0].define_key_file_desc+"",l=t[0].define_key_file_example+"";const a={c:function(){n=C("p"),s=H(),i=C("pre"),c=M(l),o(n,Gc,4,0,42),o(i,Gc,6,0,88)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,t){Ze(e,n,t),n.innerHTML=r,Ze(e,s,t),Ze(e,i,t),Ge(i,c)},p:function(e,[t]){1&t&&r!==(r=e[0].define_key_file_desc+"")&&(n.innerHTML=r),1&t&&l!==(l=e[0].define_key_file_example+"")&&ot(c,l)},i:e,o:e,d:function(e){e&&(Qe(n),Qe(s),Qe(i))}};return Je("SvelteRegisterBlock",{block:a,id:Zc.name,type:"component",source:"",ctx:t}),a}function Qc(e,t,n){let{$$slots:o={},$$scope:s}=t;it("KeyFileDefine",o,[]);let{provider:i}=t;e.$$.on_mount.push(function(){void 0!==i||"provider"in t||e.$$.bound[e.$$.props.provider]||console.warn("<KeyFileDefine> was created without expected prop 'provider'")});const c=["provider"];return Object.keys(t).forEach(e=>{~c.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<KeyFileDefine> was created with unknown prop '${e}'`)}),e.$$set=e=>{"provider"in e&&n(0,i=e.provider)},e.$capture_state=()=>({provider:i}),e.$inject_state=e=>{"provider"in e&&n(0,i=e.provider)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[i]}class er extends rt{constructor(e){super(e),Xe(this,e,Qc,Zc,l,{provider:0}),Je("SvelteRegisterComponent",{component:this,tagName:"KeyFileDefine",options:e,id:Zc.name})}get provider(){throw new Error("<KeyFileDefine>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set provider(e){throw new Error("<KeyFileDefine>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const tr="ui/components/UseServerRolesDefine.svelte";function nr(t){let n,s,i,c,r=t[0].use_server_roles_desc+"",l=t[0].use_server_roles_example+"";const a={c:function(){n=C("p"),s=H(),i=C("pre"),c=M(l),o(n,tr,4,0,42),o(i,tr,6,0,89)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,t){Ze(e,n,t),n.innerHTML=r,Ze(e,s,t),Ze(e,i,t),Ge(i,c)},p:function(e,[t]){1&t&&r!==(r=e[0].use_server_roles_desc+"")&&(n.innerHTML=r),1&t&&l!==(l=e[0].use_server_roles_example+"")&&ot(c,l)},i:e,o:e,d:function(e){e&&(Qe(n),Qe(s),Qe(i))}};return Je("SvelteRegisterBlock",{block:a,id:nr.name,type:"component",source:"",ctx:t}),a}function or(e,t,n){let{$$slots:o={},$$scope:s}=t;it("UseServerRolesDefine",o,[]);let{provider:i}=t;e.$$.on_mount.push(function(){void 0!==i||"provider"in t||e.$$.bound[e.$$.props.provider]||console.warn("<UseServerRolesDefine> was created without expected prop 'provider'")});const c=["provider"];return Object.keys(t).forEach(e=>{~c.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<UseServerRolesDefine> was created with unknown prop '${e}'`)}),e.$$set=e=>{"provider"in e&&n(0,i=e.provider)},e.$capture_state=()=>({provider:i}),e.$inject_state=e=>{"provider"in e&&n(0,i=e.provider)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[i]}class sr extends rt{constructor(e){super(e),Xe(this,e,or,nr,l,{provider:0}),Je("SvelteRegisterComponent",{component:this,tagName:"UseServerRolesDefine",options:e,id:nr.name})}get provider(){throw new Error("<UseServerRolesDefine>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set provider(e){throw new Error("<UseServerRolesDefine>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const ir="ui/components/AccessKeysEntry.svelte";function cr(t){let n,s,i,r,l,a,u,p,d,f,m,$,g,h=t[2].enter_access_keys_desc+"";const w={c:function(){n=C("p"),s=H(),i=C("label"),r=M(t[5]),l=H(),a=C("input"),u=H(),p=C("label"),d=M(t[7]),f=H(),m=C("input"),o(n,ir,15,0,370),tt(i,"class","input-label"),tt(i,"for",t[4]),o(i,ir,17,0,418),tt(a,"type","text"),tt(a,"id",t[4]),tt(a,"name",t[4]),tt(a,"minlength","20"),tt(a,"size","20"),a.disabled=t[3],Y(a,"disabled",t[3]),o(a,ir,18,0,494),tt(p,"class","input-label"),tt(p,"for",t[6]),o(p,ir,29,0,644),tt(m,"type","text"),tt(m,"id",t[6]),tt(m,"name",t[6]),tt(m,"autocomplete","off"),tt(m,"minlength","40"),tt(m,"size","40"),m.disabled=t[3],Y(m,"disabled",t[3]),o(m,ir,30,0,728)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,n,o),n.innerHTML=h,Ze(e,s,o),Ze(e,i,o),Ge(i,r),Ze(e,l,o),Ze(e,a,o),I(a,t[0]),Ze(e,u,o),Ze(e,p,o),Ge(p,d),Ze(e,f,o),Ze(e,m,o),I(m,t[1]),$||(g=[et(a,"input",t[8]),et(m,"input",t[9])],$=!0)},p:function(e,[t]){4&t&&h!==(h=e[2].enter_access_keys_desc+"")&&(n.innerHTML=h),8&t&&nt(a,"disabled",e[3]),1&t&&a.value!==e[0]&&I(a,e[0]),8&t&&Y(a,"disabled",e[3]),8&t&&nt(m,"disabled",e[3]),2&t&&m.value!==e[1]&&I(m,e[1]),8&t&&Y(m,"disabled",e[3])},i:e,o:e,d:function(e){e&&(Qe(n),Qe(s),Qe(i),Qe(l),Qe(a),Qe(u),Qe(p),Qe(f),Qe(m)),$=!1,c(g)}};return Je("SvelteRegisterBlock",{block:w,id:cr.name,type:"component",source:"",ctx:t}),w}function rr(e,t,n){let o;p(ht,"strings"),m(e,ht,e=>n(10,o=e));let{$$slots:s={},$$scope:i}=t;it("AccessKeysEntry",s,[]);let{provider:c}=t,{accessKeyId:r=""}=t,{secretAccessKey:l=""}=t,{disabled:a=!1}=t,u="access-key-id",d=o.access_key_id,f="secret-access-key",$=o.secret_access_key;e.$$.on_mount.push(function(){void 0!==c||"provider"in t||e.$$.bound[e.$$.props.provider]||console.warn("<AccessKeysEntry> was created without expected prop 'provider'")});const g=["provider","accessKeyId","secretAccessKey","disabled"];return Object.keys(t).forEach(e=>{~g.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<AccessKeysEntry> was created with unknown prop '${e}'`)}),e.$$set=e=>{"provider"in e&&n(2,c=e.provider),"accessKeyId"in e&&n(0,r=e.accessKeyId),"secretAccessKey"in e&&n(1,l=e.secretAccessKey),"disabled"in e&&n(3,a=e.disabled)},e.$capture_state=()=>({strings:ht,provider:c,accessKeyId:r,secretAccessKey:l,disabled:a,accessKeyIdName:u,accessKeyIdLabel:d,secretAccessKeyName:f,secretAccessKeyLabel:$,$strings:o}),e.$inject_state=e=>{"provider"in e&&n(2,c=e.provider),"accessKeyId"in e&&n(0,r=e.accessKeyId),"secretAccessKey"in e&&n(1,l=e.secretAccessKey),"disabled"in e&&n(3,a=e.disabled),"accessKeyIdName"in e&&n(4,u=e.accessKeyIdName),"accessKeyIdLabel"in e&&n(5,d=e.accessKeyIdLabel),"secretAccessKeyName"in e&&n(6,f=e.secretAccessKeyName),"secretAccessKeyLabel"in e&&n(7,$=e.secretAccessKeyLabel)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[r,l,c,a,u,d,f,$,function(){r=this.value,n(0,r)},function(){l=this.value,n(1,l)}]}class lr extends rt{constructor(e){super(e),Xe(this,e,rr,cr,l,{provider:2,accessKeyId:0,secretAccessKey:1,disabled:3}),Je("SvelteRegisterComponent",{component:this,tagName:"AccessKeysEntry",options:e,id:cr.name})}get provider(){throw new Error("<AccessKeysEntry>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set provider(e){throw new Error("<AccessKeysEntry>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get accessKeyId(){throw new Error("<AccessKeysEntry>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set accessKeyId(e){throw new Error("<AccessKeysEntry>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get secretAccessKey(){throw new Error("<AccessKeysEntry>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set secretAccessKey(e){throw new Error("<AccessKeysEntry>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get disabled(){throw new Error("<AccessKeysEntry>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set disabled(e){throw new Error("<AccessKeysEntry>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const ar="ui/components/KeyFileEntry.svelte";function ur(t){let n,s,i,c,r,l,a,u,p=t[1].enter_key_file_desc+"";const d={c:function(){n=C("p"),s=H(),i=C("label"),c=M(t[4]),r=H(),l=C("textarea"),o(n,ar,11,0,193),tt(i,"class","input-label"),tt(i,"for",t[3]),o(i,ar,13,0,238),tt(l,"id",t[3]),tt(l,"name",t[3]),l.disabled=t[2],tt(l,"rows","10"),Y(l,"disabled",t[2]),o(l,ar,14,0,292)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,n,o),n.innerHTML=p,Ze(e,s,o),Ze(e,i,o),Ge(i,c),Ze(e,r,o),Ze(e,l,o),I(l,t[0]),a||(u=et(l,"input",t[5]),a=!0)},p:function(e,[t]){2&t&&p!==(p=e[1].enter_key_file_desc+"")&&(n.innerHTML=p),4&t&&nt(l,"disabled",e[2]),1&t&&I(l,e[0]),4&t&&Y(l,"disabled",e[2])},i:e,o:e,d:function(e){e&&(Qe(n),Qe(s),Qe(i),Qe(r),Qe(l)),a=!1,u()}};return Je("SvelteRegisterBlock",{block:d,id:ur.name,type:"component",source:"",ctx:t}),d}function pr(e,t,n){let o;p(ht,"strings"),m(e,ht,e=>n(6,o=e));let{$$slots:s={},$$scope:i}=t;it("KeyFileEntry",s,[]);let{provider:c}=t,{value:r=""}=t,{disabled:l=!1}=t,a="key-file",u=o.key_file;e.$$.on_mount.push(function(){void 0!==c||"provider"in t||e.$$.bound[e.$$.props.provider]||console.warn("<KeyFileEntry> was created without expected prop 'provider'")});const d=["provider","value","disabled"];return Object.keys(t).forEach(e=>{~d.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<KeyFileEntry> was created with unknown prop '${e}'`)}),e.$$set=e=>{"provider"in e&&n(1,c=e.provider),"value"in e&&n(0,r=e.value),"disabled"in e&&n(2,l=e.disabled)},e.$capture_state=()=>({strings:ht,provider:c,value:r,disabled:l,name:a,label:u,$strings:o}),e.$inject_state=e=>{"provider"in e&&n(1,c=e.provider),"value"in e&&n(0,r=e.value),"disabled"in e&&n(2,l=e.disabled),"name"in e&&n(3,a=e.name),"label"in e&&n(4,u=e.label)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[r,c,l,a,u,function(){r=this.value,n(0,r)}]}class dr extends rt{constructor(e){super(e),Xe(this,e,pr,ur,l,{provider:1,value:0,disabled:2}),Je("SvelteRegisterComponent",{component:this,tagName:"KeyFileEntry",options:e,id:ur.name})}get provider(){throw new Error("<KeyFileEntry>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set provider(e){throw new Error("<KeyFileEntry>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get value(){throw new Error("<KeyFileEntry>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set value(e){throw new Error("<KeyFileEntry>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get disabled(){throw new Error("<KeyFileEntry>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set disabled(e){throw new Error("<KeyFileEntry>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const{Object:fr}=j,mr="ui/components/StorageProviderSubPage.svelte";function $r(e,t,n){const o=e.slice();return o[44]=t[n],o}function gr(e){let t,n;t=new uo({props:{inline:!0,warning:!0,heading:e[0].media_already_offloaded_warning.heading,$$slots:{default:[hr]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1&n[0]&&(o.heading=e[0].media_already_offloaded_warning.heading),1&n[0]|65536&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:gr.name,type:"if",source:"(215:1) {#if changedWithOffloaded}",ctx:e}),o}function hr(e){let t,n=e[0].media_already_offloaded_warning.message+"";const s={c:function(){t=C("p"),o(t,mr,216,3,6548)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o[0]&&n!==(n=e[0].media_already_offloaded_warning.message+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:hr.name,type:"slot",source:"(216:2) <Notification inline warning heading={storageProvider.media_already_offloaded_warning.heading}>",ctx:e}),s}function wr(e){let t,n;t=new Tc({props:{active:e[44].provider_key_name===e[0].provider_key_name,disabled:e[14],icon:e[44].icon,iconDesc:e[44].icon_desc,text:e[44].provider_service_name},$$inline:!0}),t.$on("click",function(){return e[25](e[44])});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(n,o){e=n;const s={};65537&o[0]&&(s.active=e[44].provider_key_name===e[0].provider_key_name),16384&o[0]&&(s.disabled=e[14]),65536&o[0]&&(s.icon=e[44].icon),65536&o[0]&&(s.iconDesc=e[44].icon_desc),65536&o[0]&&(s.text=e[44].provider_service_name),t.$set(s)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:wr.name,type:"each",source:"(223:3) {#each Object.values( $storage_providers ) as provider}",ctx:e}),o}function br(e){let t,n=e[0].get_access_keys_help+"";const s={c:function(){t=C("p"),o(t,mr,234,4,7162)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o[0]&&n!==(n=e[0].get_access_keys_help+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:br.name,type:"slot",source:'(234:3) <Notification class=\\"notice-qsg\\">',ctx:e}),s}function vr(e){let t,n,o,s=st(Object.values(e[16])),i=[];for(let t=0;t<s.length;t+=1)i[t]=wr($r(e,s,t));const c=e=>Le(i[e],1,1,()=>{i[e]=null});n=new uo({props:{class:"notice-qsg",$$slots:{default:[br]},$$scope:{ctx:e}},$$inline:!0});const r={c:function(){for(let e=0;e<i.length;e+=1)i[e].c();t=H(),Ve(n.$$.fragment)},m:function(e,s){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,s);Ze(e,t,s),We(n,e,s),o=!0},p:function(e,o){if(212993&o[0]){let n;for(s=st(Object.values(e[16])),n=0;n<s.length;n+=1){const c=$r(e,s,n);i[n]?(i[n].p(c,o),Te(i[n],1)):(i[n]=wr(c),i[n].c(),Te(i[n],1),i[n].m(t.parentNode,t))}for(Ne(),n=s.length;n<i.length;n+=1)c(n);Oe()}const r={};1&o[0]|65536&o[1]&&(r.$$scope={dirty:o,ctx:e}),n.$set(r)},i:function(e){if(!o){for(let e=0;e<s.length;e+=1)Te(i[e]);Te(n.$$.fragment,e),o=!0}},o:function(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)Le(i[e]);Le(n.$$.fragment,e),o=!1},d:function(e){e&&Qe(t),D(i,e),ze(n,e)}};return Je("SvelteRegisterBlock",{block:r,id:vr.name,type:"slot",source:'(222:2) <PanelRow class=\\"body flex-row tab-buttons\\">',ctx:e}),r}function yr(e){let t,n;t=new is({props:{class:"body flex-row tab-buttons",$$slots:{default:[vr]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};81921&n[0]|65536&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:yr.name,type:"slot",source:"(221:1) <Panel heading={$strings.select_storage_provider_title} defined={defined} multi>",ctx:e}),o}function _r(e){let t,n;t=new Cs({props:{heading:e[15].s3compat_endpoint_title,multi:!0,$$slots:{default:[xr]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};32768&n[0]&&(o.heading=e[15].s3compat_endpoint_title),49280&n[0]|65536&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:_r.name,type:"if",source:'(240:1) {#if storageProvider.provider_key_name === \\"s3compatible\\"}',ctx:e}),o}function kr(e){let t,n,s,i,c,r,l,a,u,p,d=e[15].s3compat_endpoint_label+"",f=e[15].s3compat_endpoint_desc+"";const m={c:function(){t=C("label"),n=M(d),s=H(),i=C("input"),r=H(),l=C("p"),a=M(f),tt(t,"class","input-label"),tt(t,"for","s3compat-endpoint"),o(t,mr,242,4,7420),tt(i,"type","url"),tt(i,"id","s3compat-endpoint"),tt(i,"name","endpoint"),tt(i,"placeholder",c=e[15].s3compat_endpoint_placeholder),i.disabled=e[14],Y(i,"disabled",e[14]),o(i,mr,243,4,7518),tt(l,"class","desc"),o(l,mr,252,4,7724)},m:function(o,c){Ze(o,t,c),Ge(t,n),Ze(o,s,c),Ze(o,i,c),I(i,e[7]),Ze(o,r,c),Ze(o,l,c),Ge(l,a),u||(p=et(i,"input",e[26]),u=!0)},p:function(e,t){32768&t[0]&&d!==(d=e[15].s3compat_endpoint_label+"")&&ot(n,d),32768&t[0]&&c!==(c=e[15].s3compat_endpoint_placeholder)&&tt(i,"placeholder",c),16384&t[0]&&nt(i,"disabled",e[14]),128&t[0]&&i.value!==e[7]&&I(i,e[7]),16384&t[0]&&Y(i,"disabled",e[14]),32768&t[0]&&f!==(f=e[15].s3compat_endpoint_desc+"")&&ot(a,f)},d:function(e){e&&(Qe(t),Qe(s),Qe(i),Qe(r),Qe(l)),u=!1,p()}};return Je("SvelteRegisterBlock",{block:m,id:kr.name,type:"slot",source:'(242:3) <PanelRow class=\\"body flex-column\\">',ctx:e}),m}function xr(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[kr]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};49280&n[0]|65536&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:xr.name,type:"slot",source:"(241:2) <Panel heading={$strings.s3compat_endpoint_title} multi>",ctx:e}),o}function Pr(e){let t,n,o;function s(t){e[28](t)}let i={disabled:e[12],value:"define",desc:e[0].defined_auth_desc,$$slots:{default:[Rr]},$$scope:{ctx:e}};void 0!==e[1]&&(i.selected=e[1]),t=new Hc({props:i,$$inline:!0}),me.push(()=>qe(t,"selected",s));const c={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),o=!0},p:function(e,o){const s={};4096&o[0]&&(s.disabled=e[12]),1&o[0]&&(s.desc=e[0].defined_auth_desc),32768&o[0]|65536&o[1]&&(s.$$scope={dirty:o,ctx:e}),!n&&2&o[0]&&(n=!0,s.selected=e[1],_e(()=>n=!1)),t.$set(s)},i:function(e){o||(Te(t.$$.fragment,e),o=!0)},o:function(e){Le(t.$$.fragment,e),o=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:Pr.name,type:"if",source:"(265:50) ",ctx:e}),c}function Sr(e){let t,n,o;function s(t){e[27](t)}let i={disabled:e[12],value:"define",desc:e[0].defined_auth_desc,$$slots:{default:[Er]},$$scope:{ctx:e}};void 0!==e[1]&&(i.selected=e[1]),t=new Hc({props:i,$$inline:!0}),me.push(()=>qe(t,"selected",s));const c={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),o=!0},p:function(e,o){const s={};4096&o[0]&&(s.disabled=e[12]),1&o[0]&&(s.desc=e[0].defined_auth_desc),32768&o[0]|65536&o[1]&&(s.$$scope={dirty:o,ctx:e}),!n&&2&o[0]&&(n=!0,s.selected=e[1],_e(()=>n=!1)),t.$set(s)},i:function(e){o||(Te(t.$$.fragment,e),o=!0)},o:function(e){Le(t.$$.fragment,e),o=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:Sr.name,type:"if",source:"(261:3) {#if storageProvider.use_access_keys_allowed}",ctx:e}),c}function Rr(e){let t,n=e[15].define_key_file_path+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){32768&o[0]&&n!==(n=e[15].define_key_file_path+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:Rr.name,type:"slot",source:'(266:4) <RadioButton bind:selected={authMethod} disabled={authDisabled} value=\\"define\\" desc={storageProvider.defined_auth_desc}>',ctx:e}),o}function Er(e){let t,n=e[15].define_access_keys+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){32768&o[0]&&n!==(n=e[15].define_access_keys+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:Er.name,type:"slot",source:'(262:4) <RadioButton bind:selected={authMethod} disabled={authDisabled} value=\\"define\\" desc={storageProvider.defined_auth_desc}>',ctx:e}),o}function jr(e){let t,n,o;function s(t){e[29](t)}let i={disabled:e[12],value:"server-role",desc:e[0].defined_auth_desc,$$slots:{default:[Br]},$$scope:{ctx:e}};void 0!==e[1]&&(i.selected=e[1]),t=new Hc({props:i,$$inline:!0}),me.push(()=>qe(t,"selected",s));const c={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),o=!0},p:function(e,o){const s={};4096&o[0]&&(s.disabled=e[12]),1&o[0]&&(s.desc=e[0].defined_auth_desc),1&o[0]|65536&o[1]&&(s.$$scope={dirty:o,ctx:e}),!n&&2&o[0]&&(n=!0,s.selected=e[1],_e(()=>n=!1)),t.$set(s)},i:function(e){o||(Te(t.$$.fragment,e),o=!0)},o:function(e){Le(t.$$.fragment,e),o=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:jr.name,type:"if",source:"(272:3) {#if storageProvider.use_server_roles_allowed}",ctx:e}),c}function Br(e){let t,n=e[0].use_server_roles_title+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){1&o[0]&&n!==(n=e[0].use_server_roles_title+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:Br.name,type:"slot",source:'(273:4) <RadioButton bind:selected={authMethod} disabled={authDisabled} value=\\"server-role\\" desc={storageProvider.defined_auth_desc}>',ctx:e}),o}function Nr(e){let t,n,o;function s(t){e[31](t)}let i={disabled:e[12],value:"database",$$slots:{default:[Tr]},$$scope:{ctx:e}};void 0!==e[1]&&(i.selected=e[1]),t=new Hc({props:i,$$inline:!0}),me.push(()=>qe(t,"selected",s));const c={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),o=!0},p:function(e,o){const s={};4096&o[0]&&(s.disabled=e[12]),32768&o[0]|65536&o[1]&&(s.$$scope={dirty:o,ctx:e}),!n&&2&o[0]&&(n=!0,s.selected=e[1],_e(()=>n=!1)),t.$set(s)},i:function(e){o||(Te(t.$$.fragment,e),o=!0)},o:function(e){Le(t.$$.fragment,e),o=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:Nr.name,type:"if",source:"(283:50) ",ctx:e}),c}function Or(e){let t,n,o;function s(t){e[30](t)}let i={disabled:e[12],value:"database",$$slots:{default:[Lr]},$$scope:{ctx:e}};void 0!==e[1]&&(i.selected=e[1]),t=new Hc({props:i,$$inline:!0}),me.push(()=>qe(t,"selected",s));const c={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),o=!0},p:function(e,o){const s={};4096&o[0]&&(s.disabled=e[12]),32768&o[0]|65536&o[1]&&(s.$$scope={dirty:o,ctx:e}),!n&&2&o[0]&&(n=!0,s.selected=e[1],_e(()=>n=!1)),t.$set(s)},i:function(e){o||(Te(t.$$.fragment,e),o=!0)},o:function(e){Le(t.$$.fragment,e),o=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:Or.name,type:"if",source:"(279:3) {#if storageProvider.use_access_keys_allowed}",ctx:e}),c}function Tr(e){let t,n=e[15].store_key_file_in_db+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){32768&o[0]&&n!==(n=e[15].store_key_file_in_db+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:Tr.name,type:"slot",source:'(284:4) <RadioButton bind:selected={authMethod} disabled={authDisabled} value=\\"database\\">',ctx:e}),o}function Lr(e){let t,n=e[15].store_access_keys_in_db+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){32768&o[0]&&n!==(n=e[15].store_access_keys_in_db+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:Lr.name,type:"slot",source:'(280:4) <RadioButton bind:selected={authMethod} disabled={authDisabled} value=\\"database\\">',ctx:e}),o}function Dr(e){let t,n,o,s,i,c,r,l;const a=[Sr,Pr],u=[];function p(e,t){return e[0].use_access_keys_allowed?0:e[0].use_key_file_allowed?1:-1}~(t=p(e))&&(n=u[t]=a[t](e));let d=e[0].use_server_roles_allowed&&jr(e);const f=[Or,Nr],m=[];function $(e,t){return e[0].use_access_keys_allowed?0:e[0].use_key_file_allowed?1:-1}~(i=$(e))&&(c=m[i]=f[i](e));const g={c:function(){n&&n.c(),o=H(),d&&d.c(),s=H(),c&&c.c(),r=F()},m:function(e,n){~t&&u[t].m(e,n),Ze(e,o,n),d&&d.m(e,n),Ze(e,s,n),~i&&m[i].m(e,n),Ze(e,r,n),l=!0},p:function(e,l){let g=t;t=p(e),t===g?~t&&u[t].p(e,l):(n&&(Ne(),Le(u[g],1,1,()=>{u[g]=null}),Oe()),~t?(n=u[t],n?n.p(e,l):(n=u[t]=a[t](e),n.c()),Te(n,1),n.m(o.parentNode,o)):n=null),e[0].use_server_roles_allowed?d?(d.p(e,l),1&l[0]&&Te(d,1)):(d=jr(e),d.c(),Te(d,1),d.m(s.parentNode,s)):d&&(Ne(),Le(d,1,1,()=>{d=null}),Oe());let h=i;i=$(e),i===h?~i&&m[i].p(e,l):(c&&(Ne(),Le(m[h],1,1,()=>{m[h]=null}),Oe()),~i?(c=m[i],c?c.p(e,l):(c=m[i]=f[i](e),c.c()),Te(c,1),c.m(r.parentNode,r)):c=null)},i:function(e){l||(Te(n),Te(d),Te(c),l=!0)},o:function(e){Le(n),Le(d),Le(c),l=!1},d:function(e){e&&(Qe(o),Qe(s),Qe(r)),~t&&u[t].d(e),d&&d.d(e),~i&&m[i].d(e)}};return Je("SvelteRegisterBlock",{block:g,id:Dr.name,type:"slot",source:'(259:2) <PanelRow class=\\"body flex-column\\">',ctx:e}),g}function Cr(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[Dr]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};36867&n[0]|65536&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Cr.name,type:"slot",source:"(258:1) <Panel heading={$strings.select_auth_method_title} defined={authDefined} multi>",ctx:e}),o}function Mr(e){let t,n;t=new Cs({props:{heading:e[11],multi:!0,$$slots:{default:[qr]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};2048&n[0]&&(o.heading=e[11]),5891&n[0]|65536&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Mr.name,type:"if",source:"(291:1) {#if !authDefined}",ctx:e}),o}function Hr(e){let t,n,o;function s(t){e[34](t)}let i={provider:e[0]};void 0!==e[10]&&(i.value=e[10]),t=new dr({props:i,$$inline:!0}),me.push(()=>qe(t,"value",s));const c={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),o=!0},p:function(e,o){const s={};1&o[0]&&(s.provider=e[0]),!n&&1024&o[0]&&(n=!0,s.value=e[10],_e(()=>n=!1)),t.$set(s)},i:function(e){o||(Te(t.$$.fragment,e),o=!0)},o:function(e){Le(t.$$.fragment,e),o=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:Hr.name,type:"if",source:"(307:80) ",ctx:e}),c}function Fr(e){let t,n,o,s;function i(t){e[32](t)}function c(t){e[33](t)}let r={provider:e[0],disabled:e[12]};void 0!==e[8]&&(r.accessKeyId=e[8]),void 0!==e[9]&&(r.secretAccessKey=e[9]),t=new lr({props:r,$$inline:!0}),me.push(()=>qe(t,"accessKeyId",i)),me.push(()=>qe(t,"secretAccessKey",c));const l={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),s=!0},p:function(e,s){const i={};1&s[0]&&(i.provider=e[0]),4096&s[0]&&(i.disabled=e[12]),!n&&256&s[0]&&(n=!0,i.accessKeyId=e[8],_e(()=>n=!1)),!o&&512&s[0]&&(o=!0,i.secretAccessKey=e[9],_e(()=>o=!1)),t.$set(i)},i:function(e){s||(Te(t.$$.fragment,e),s=!0)},o:function(e){Le(t.$$.fragment,e),s=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:l,id:Fr.name,type:"if",source:"(300:83) ",ctx:e}),l}function Ar(e){let t,n;t=new sr({props:{provider:e[0]},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1&n[0]&&(o.provider=e[0]),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ar.name,type:"if",source:"(298:87) ",ctx:e}),o}function Kr(e){let t,n;t=new er({props:{provider:e[0]},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1&n[0]&&(o.provider=e[0]),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Kr.name,type:"if",source:"(296:78) ",ctx:e}),o}function Ir(e){let t,n;t=new Ic({props:{provider:e[0]},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1&n[0]&&(o.provider=e[0]),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ir.name,type:"if",source:'(294:4) {#if authMethod === \\"define\\" && storageProvider.use_access_keys_allowed}',ctx:e}),o}function Ur(e){let t,n,o,s;const i=[Ir,Kr,Ar,Fr,Hr],c=[];function r(e,t){return"define"===e[1]&&e[0].use_access_keys_allowed?0:"define"===e[1]&&e[0].use_key_file_allowed?1:"server-role"===e[1]&&e[0].use_server_roles_allowed?2:"database"===e[1]&&e[0].use_access_keys_allowed?3:"database"===e[1]&&e[0].use_key_file_allowed?4:-1}~(t=r(e))&&(n=c[t]=i[t](e));const l={c:function(){n&&n.c(),o=F()},m:function(e,n){~t&&c[t].m(e,n),Ze(e,o,n),s=!0},p:function(e,s){let l=t;t=r(e),t===l?~t&&c[t].p(e,s):(n&&(Ne(),Le(c[l],1,1,()=>{c[l]=null}),Oe()),~t?(n=c[t],n?n.p(e,s):(n=c[t]=i[t](e),n.c()),Te(n,1),n.m(o.parentNode,o)):n=null)},i:function(e){s||(Te(n),s=!0)},o:function(e){Le(n),s=!1},d:function(e){e&&Qe(o),~t&&c[t].d(e)}};return Je("SvelteRegisterBlock",{block:l,id:Ur.name,type:"slot",source:'(293:3) <PanelRow class=\\"body flex-column access-keys\\">',ctx:e}),l}function qr(e){let t,n;t=new is({props:{class:"body flex-column access-keys",$$slots:{default:[Ur]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};5891&n[0]|65536&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:qr.name,type:"slot",source:"(292:2) <Panel heading={saveCredentialsTitle} multi>",ctx:e}),o}function Vr(e){let t,n,o,s,i,c,r,l,a,u=e[13]&&gr(e);n=new Cs({props:{heading:e[15].select_storage_provider_title,defined:e[3],multi:!0,$$slots:{default:[yr]},$$scope:{ctx:e}},$$inline:!0});let p="s3compatible"===e[0].provider_key_name&&_r(e);i=new Cs({props:{heading:e[15].select_auth_method_title,defined:e[2],multi:!0,$$slots:{default:[Cr]},$$scope:{ctx:e}},$$inline:!0});let d=!e[2]&&Mr(e);l=new Jc({props:{nextDisabled:e[5]||e[4],nextText:e[15].save_and_continue},$$inline:!0}),l.$on("next",e[18]);const f={c:function(){u&&u.c(),t=H(),Ve(n.$$.fragment),o=H(),p&&p.c(),s=H(),Ve(i.$$.fragment),c=H(),d&&d.c(),r=H(),Ve(l.$$.fragment)},m:function(e,f){u&&u.m(e,f),Ze(e,t,f),We(n,e,f),Ze(e,o,f),p&&p.m(e,f),Ze(e,s,f),We(i,e,f),Ze(e,c,f),d&&d.m(e,f),Ze(e,r,f),We(l,e,f),a=!0},p:function(e,o){e[13]?u?(u.p(e,o),8192&o[0]&&Te(u,1)):(u=gr(e),u.c(),Te(u,1),u.m(t.parentNode,t)):u&&(Ne(),Le(u,1,1,()=>{u=null}),Oe());const c={};32768&o[0]&&(c.heading=e[15].select_storage_provider_title),8&o[0]&&(c.defined=e[3]),81921&o[0]|65536&o[1]&&(c.$$scope={dirty:o,ctx:e}),n.$set(c),"s3compatible"===e[0].provider_key_name?p?(p.p(e,o),1&o[0]&&Te(p,1)):(p=_r(e),p.c(),Te(p,1),p.m(s.parentNode,s)):p&&(Ne(),Le(p,1,1,()=>{p=null}),Oe());const a={};32768&o[0]&&(a.heading=e[15].select_auth_method_title),4&o[0]&&(a.defined=e[2]),36867&o[0]|65536&o[1]&&(a.$$scope={dirty:o,ctx:e}),i.$set(a),e[2]?d&&(Ne(),Le(d,1,1,()=>{d=null}),Oe()):d?(d.p(e,o),4&o[0]&&Te(d,1)):(d=Mr(e),d.c(),Te(d,1),d.m(r.parentNode,r));const f={};48&o[0]&&(f.nextDisabled=e[5]||e[4]),32768&o[0]&&(f.nextText=e[15].save_and_continue),l.$set(f)},i:function(e){a||(Te(u),Te(n.$$.fragment,e),Te(p),Te(i.$$.fragment,e),Te(d),Te(l.$$.fragment,e),a=!0)},o:function(e){Le(u),Le(n.$$.fragment,e),Le(p),Le(i.$$.fragment,e),Le(d),Le(l.$$.fragment,e),a=!1},d:function(e){e&&(Qe(t),Qe(o),Qe(s),Qe(c),Qe(r)),u&&u.d(e),ze(n,e),p&&p.d(e),ze(i,e),d&&d.d(e),ze(l,e)}};return Je("SvelteRegisterBlock",{block:f,id:Vr.name,type:"slot",source:'(214:0) <SubPage name=\\"storage-provider-settings\\" route=\\"/storage/provider\\">',ctx:e}),f}function Wr(e){let t,n;t=new zo({props:{name:"storage-provider-settings",route:"/storage/provider",$$slots:{default:[Vr]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};131007&n[0]|65536&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Wr.name,type:"component",source:"",ctx:e}),o}function zr(t,n,o){let s,i,c,r,l,a,u,f,$,g,h,w,b,v,_,k,x=e,P=()=>(x(),x=d(N,e=>o(4,g=e)),N);p(Tt,"revalidatingSettings"),m(t,Tt,e=>o(35,u=e)),p(Ct,"settings"),m(t,Ct,e=>o(36,f=e)),p(ht,"strings"),m(t,ht,e=>o(15,$=e)),p(Lt,"needs_refresh"),m(t,Lt,e=>o(5,h=e)),p(kt,"counts"),m(t,kt,e=>o(22,w=e)),p(gt,"defined_settings"),m(t,gt,e=>o(23,b=e)),p(At,"storage_provider"),m(t,At,e=>o(37,v=e)),p($t,"current_settings"),m(t,$t,e=>o(24,_=e)),p(Ft,"storage_providers"),m(t,Ft,e=>o(16,k=e)),t.$$.on_destroy.push(()=>x());let{$$slots:S={},$$scope:R}=n;it("StorageProviderSubPage",S,[]);let{params:E={}}=n;const j=E,B=le();let N=ut(!1);p(N,"settingsLocked"),P(),pe("settingsLocked")&&P(N=ue("settingsLocked"));let O=_;pe("initialSettings")&&(O=ue("initialSettings"));let T=!1;const L={..._},D={...b};let C={...v};function M(e){i||(o(0,C=e),o(1,U=I(C,U)))}let H=f.endpoint||"",F=f["access-key-id"],A=f["secret-access-key"],K=f["key-file"]?JSON.stringify(f["key-file"]):"";function I(e,t=""){return e.use_access_keys_allowed&&e.used_access_keys_constants.length||e.use_key_file_allowed&&e.used_key_file_path_constants.length?"define":e.use_server_roles_allowed&&e.used_server_roles_constants.length?"server-role":"server-role"!==t||e.use_server_roles_allowed?0===t.length?e.use_access_keys_allowed&&(F||A)||e.use_key_file_allowed&&K?"database":e.use_server_roles_allowed&&f["use-server-roles"]?"server-role":"define":t:"define"}let U=I(C);function q(e){return $.auth_method_title[e]}async function V(){o(21,T=!0),Zt.pausePeriodicFetch(),y(Ct,f.provider=C.provider_key_name,f),y(Ct,f.endpoint="s3compatible"===C.provider_key_name?H:"",f),y(Ct,f["access-key-id"]=F,f),y(Ct,f["secret-access-key"]=A,f),y(Ct,f["use-server-roles"]="server-role"===U,f),y(Ct,f["key-file"]=K,f);const e=await Ct.save();if(!e.hasOwnProperty("saved")||!e.saved)return Ct.reset(),o(21,T=!1),await Zt.resumePeriodicFetch(),void ac();y(Tt,u=!0,u);const t=Zt.resumePeriodicFetch();B("routeEvent",{event:"settings.save",data:e}),await t,y(Tt,u=!1,u)}const W=["params"];fr.keys(n).forEach(e=>{~W.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<StorageProviderSubPage> was created with unknown prop '${e}'`)});return t.$$set=e=>{"params"in e&&o(19,E=e.params)},t.$capture_state=()=>({createEventDispatcher:le,getContext:ue,hasContext:pe,writable:ut,settings:Ct,defined_settings:gt,strings:ht,storage_providers:Ft,storage_provider:At,counts:kt,current_settings:$t,needs_refresh:Lt,revalidatingSettings:Tt,state:Zt,scrollNotificationsIntoView:ac,needsRefresh:Sc,SubPage:zo,Panel:Cs,PanelRow:is,TabButton:Tc,RadioButton:Hc,AccessKeysDefine:Ic,BackNextButtonsRow:Jc,KeyFileDefine:er,UseServerRolesDefine:sr,AccessKeysEntry:lr,KeyFileEntry:dr,Notification:uo,params:E,_params:j,dispatch:B,settingsLocked:N,initialSettings:O,saving:T,previousSettings:L,previousDefines:D,storageProvider:C,handleChooseProvider:M,endpointUrl:H,accessKeyId:F,secretAccessKey:A,keyFile:K,getAuthMethod:I,authMethod:U,getCredentialsTitle:q,handleNext:V,saveCredentialsTitle:a,authDefined:r,authDisabled:l,changedWithOffloaded:c,disabled:i,defined:s,$revalidatingSettings:u,$settings:f,$strings:$,$settingsLocked:g,$needs_refresh:h,$counts:w,$defined_settings:b,$storage_provider:v,$current_settings:_,$storage_providers:k}),t.$inject_state=e=>{"params"in e&&o(19,E=e.params),"settingsLocked"in e&&P(o(6,N=e.settingsLocked)),"initialSettings"in e&&o(20,O=e.initialSettings),"saving"in e&&o(21,T=e.saving),"storageProvider"in e&&o(0,C=e.storageProvider),"endpointUrl"in e&&o(7,H=e.endpointUrl),"accessKeyId"in e&&o(8,F=e.accessKeyId),"secretAccessKey"in e&&o(9,A=e.secretAccessKey),"keyFile"in e&&o(10,K=e.keyFile),"authMethod"in e&&o(1,U=e.authMethod),"saveCredentialsTitle"in e&&o(11,a=e.saveCredentialsTitle),"authDefined"in e&&o(2,r=e.authDefined),"authDisabled"in e&&o(12,l=e.authDisabled),"changedWithOffloaded"in e&&o(13,c=e.changedWithOffloaded),"disabled"in e&&o(14,i=e.disabled),"defined"in e&&o(3,s=e.defined)},n&&"$$inject"in n&&t.$inject_state(n.$$inject),t.$$.update=()=>{27263008&t.$$.dirty[0]&&y(Lt,h=h||Sc(T,L,_,D,b),h),8388608&t.$$.dirty[0]&&o(3,s=b.includes("provider")),56&t.$$.dirty[0]&&o(14,i=s||h||g),5242881&t.$$.dirty[0]&&o(13,c=O.provider!==C.provider_key_name&&w.offloaded>0),1&t.$$.dirty[0]&&o(2,r="database"!==I(C,"database")),52&t.$$.dirty[0]&&o(12,l=r||h||g),2&t.$$.dirty[0]&&o(11,a=q(U))},[C,U,r,s,g,h,N,H,F,A,K,a,l,c,i,$,k,M,V,E,O,T,w,b,_,e=>M(e),function(){H=this.value,o(7,H)},function(e){U=e,o(1,U)},function(e){U=e,o(1,U)},function(e){U=e,o(1,U)},function(e){U=e,o(1,U)},function(e){U=e,o(1,U)},function(e){F=e,o(8,F)},function(e){A=e,o(9,A)},function(e){K=e,o(10,K)}]}function Xr(e,t){t&&e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}function Yr(t){let n,s,i=t[0].loading+"";const c={c:function(){n=C("p"),s=M(i),o(n,"ui/components/Loading.svelte",4,0,59)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,t){Ze(e,n,t),Ge(n,s)},p:function(e,[t]){1&t&&i!==(i=e[0].loading+"")&&ot(s,i)},i:e,o:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:c,id:Yr.name,type:"component",source:"",ctx:t}),c}function Jr(e,t,n){let o;p(ht,"strings"),m(e,ht,e=>n(0,o=e));let{$$slots:s={},$$scope:i}=t;it("Loading",s,[]);const c=[];return Object.keys(t).forEach(e=>{~c.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Loading> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({strings:ht,$strings:o}),[o]}class Gr extends rt{constructor(e){super(e),Xe(this,e,Jr,Yr,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"Loading",options:e,id:Yr.name})}}const{Object:Zr}=j,Qr="ui/components/BucketSettingsSubPage.svelte";function el(e,t,n){const o=e.slice();return o[40]=t[n][0],o[41]=t[n][1],o[43]=n,o}function tl(e,t,n){const o=e.slice();return o[45]=t[n],o}function nl(e,t,n){const o=e.slice();return o[40]=t[n][0],o[41]=t[n][1],o[43]=n,o}function ol(e,t,n){const o=e.slice();return o[40]=t[n][0],o[41]=t[n][1],o[43]=n,o}function sl(e){let t,n,o,s;t=new Tc({props:{active:"existing"===e[0],disabled:e[11],text:e[14].use_existing_bucket},$$inline:!0}),t.$on("click",e[16]),o=new Tc({props:{active:"new"===e[0],disabled:e[11],text:e[14].create_new_bucket},$$inline:!0}),o.$on("click",e[17]);const i={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment)},m:function(e,i){We(t,e,i),Ze(e,n,i),We(o,e,i),s=!0},p:function(e,n){const s={};1&n[0]&&(s.active="existing"===e[0]),2048&n[0]&&(s.disabled=e[11]),16384&n[0]&&(s.text=e[14].use_existing_bucket),t.$set(s);const i={};1&n[0]&&(i.active="new"===e[0]),2048&n[0]&&(i.disabled=e[11]),16384&n[0]&&(i.text=e[14].create_new_bucket),o.$set(i)},i:function(e){s||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),s=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),s=!1},d:function(e){e&&Qe(n),ze(t,e),ze(o,e)}};return Je("SvelteRegisterBlock",{block:i,id:sl.name,type:"slot",source:'(266:2) <PanelRow class=\\"body flex-row tab-buttons\\">',ctx:e}),i}function il(e){let t,n;t=new is({props:{class:"body flex-row tab-buttons",$$slots:{default:[sl]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};18433&n[0]|524288&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:il.name,type:"slot",source:"(265:1) <Panel heading={$strings.bucket_source_title} multi {defined}>",ctx:e}),o}function cl(e){let t,n;t=new Cs({props:{heading:e[14].existing_bucket_title,storageProvider:e[13],multi:!0,defined:e[4],$$slots:{default:[xl]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};16384&n[0]&&(o.heading=e[14].existing_bucket_title),8192&n[0]&&(o.storageProvider=e[13]),16&n[0]&&(o.defined=e[4]),64782&n[0]|524288&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:cl.name,type:"if",source:'(282:1) {#if bucketSource === \\"existing\\"}',ctx:e}),o}function rl(e){let t,n=e[14].enter_bucket+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){16384&o[0]&&n!==(n=e[14].enter_bucket+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:rl.name,type:"slot",source:'(286:5) <RadioButton bind:selected={enterOrSelectExisting} value=\\"enter\\" list {disabled}>',ctx:e}),o}function ll(e){let t,n=e[14].select_bucket+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){16384&o[0]&&n!==(n=e[14].select_bucket+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:ll.name,type:"slot",source:'(287:5) <RadioButton bind:selected={enterOrSelectExisting} value=\\"select\\" list {disabled}>',ctx:e}),o}function al(e){let t,n,s,i,c,r,l,a,u,p,d,f=e[14].bucket_name+"",m=e[13].region_required&&ul(e);const $={c:function(){t=C("div"),n=C("div"),s=C("label"),i=M(f),c=H(),r=C("input"),a=H(),m&&m.c(),tt(s,"class","input-label"),tt(s,"for","bucket-name"),o(s,Qr,292,7,8073),tt(r,"type","text"),tt(r,"id","bucket-name"),tt(r,"class","bucket-name"),tt(r,"name","bucket"),tt(r,"minlength","3"),tt(r,"placeholder",l=e[14].enter_bucket_name_placeholder),r.disabled=e[11],Y(r,"disabled",e[11]),o(r,Qr,293,7,8156),tt(n,"class","new-bucket-details flex-column"),o(n,Qr,291,6,8021),tt(t,"class","flex-row align-center row"),o(t,Qr,290,5,7975)},m:function(o,l){Ze(o,t,l),Ge(t,n),Ge(n,s),Ge(s,i),Ge(n,c),Ge(n,r),I(r,e[2]),Ge(t,a),m&&m.m(t,null),u=!0,p||(d=et(r,"input",e[25]),p=!0)},p:function(e,n){(!u||16384&n[0])&&f!==(f=e[14].bucket_name+"")&&ot(i,f),(!u||16384&n[0]&&l!==(l=e[14].enter_bucket_name_placeholder))&&tt(r,"placeholder",l),(!u||2048&n[0])&&nt(r,"disabled",e[11]),4&n[0]&&r.value!==e[2]&&I(r,e[2]),(!u||2048&n[0])&&Y(r,"disabled",e[11]),e[13].region_required?m?(m.p(e,n),8192&n[0]&&Te(m,1)):(m=ul(e),m.c(),Te(m,1),m.m(t,null)):m&&(Ne(),Le(m,1,1,()=>{m=null}),Oe())},i:function(e){u||(Te(m),u=!0)},o:function(e){Le(m),u=!1},d:function(e){e&&Qe(t),m&&m.d(),p=!1,d()}};return Je("SvelteRegisterBlock",{block:$,id:al.name,type:"if",source:'(290:4) {#if enterOrSelectExisting === \\"enter\\"}',ctx:e}),$}function ul(e){let t,n,s,i,c,r,l,a,u,p,d=e[14].region+"";c=new as({props:{defined:e[3]},$$inline:!0});let f=st(Object.entries(e[13].regions)),m=[];for(let t=0;t<f.length;t+=1)m[t]=pl(ol(e,f,t));const $={c:function(){t=C("div"),n=C("label"),s=M(d),i=M(" "),Ve(c.$$.fragment),r=H(),l=C("select");for(let e=0;e<m.length;e+=1)m[e].c();tt(n,"class","input-label"),tt(n,"for","region"),o(n,Qr,307,8,8530),tt(l,"name","region"),tt(l,"id","region"),l.disabled=e[12],void 0===e[8]&&ye(()=>e[26].call(l)),Y(l,"disabled",e[12]),o(l,Qr,310,8,8676),tt(t,"class","region flex-column"),o(t,Qr,306,7,8489)},m:function(o,d){Ze(o,t,d),Ge(t,n),Ge(n,s),Ge(n,i),We(c,n,null),Ge(t,r),Ge(t,l);for(let e=0;e<m.length;e+=1)m[e]&&m[e].m(l,null);q(l,e[8],!0),a=!0,u||(p=et(l,"change",e[26]),u=!0)},p:function(e,t){(!a||16384&t[0])&&d!==(d=e[14].region+"")&&ot(s,d);const n={};if(8&t[0]&&(n.defined=e[3]),c.$set(n),8448&t[0]){let n;for(f=st(Object.entries(e[13].regions)),n=0;n<f.length;n+=1){const o=ol(e,f,n);m[n]?m[n].p(o,t):(m[n]=pl(o),m[n].c(),m[n].m(l,null))}for(;n<m.length;n+=1)m[n].d(1);m.length=f.length}(!a||4096&t[0])&&nt(l,"disabled",e[12]),8448&t[0]&&q(l,e[8]),(!a||4096&t[0])&&Y(l,"disabled",e[12])},i:function(e){a||(Te(c.$$.fragment,e),a=!0)},o:function(e){Le(c.$$.fragment,e),a=!1},d:function(e){e&&Qe(t),ze(c),D(m,e),u=!1,p()}};return Je("SvelteRegisterBlock",{block:$,id:ul.name,type:"if",source:"(306:6) {#if $storage_provider.region_required}",ctx:e}),$}function pl(e){let t,n,s,i,c,r=e[41]+"";const l={c:function(){t=C("option"),n=M(r),s=H(),t.__value=i=e[40],I(t,t.__value),t.selected=c=e[40]===e[8],o(t,Qr,312,10,8903)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(t,s)},p:function(e,o){8192&o[0]&&r!==(r=e[41]+"")&&ot(n,r),8192&o[0]&&i!==(i=e[40])&&(nt(t,"__value",i),I(t,t.__value)),8448&o[0]&&c!==(c=e[40]===e[8])&&nt(t,"selected",c)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:l,id:pl.name,type:"each",source:"(312:9) {#each Object.entries( $storage_provider.regions ) as [regionKey, regionName], index}",ctx:e}),l}function dl(e){let t,n,o,s,i=e[13].region_required&&fl(e),c={ctx:e,current:null,token:null,hasCatch:!1,pending:yl,then:gl,catch:$l,value:44,blocks:[,,,]};Me(o=e[18](e[8]),c);const r={c:function(){i&&i.c(),t=H(),n=F(),c.block.c()},m:function(e,o){i&&i.m(e,o),Ze(e,t,o),Ze(e,n,o),c.block.m(e,c.anchor=o),c.mount=()=>n.parentNode,c.anchor=n,s=!0},p:function(n,s){(e=n)[13].region_required?i?(i.p(e,s),8192&s[0]&&Te(i,1)):(i=fl(e),i.c(),Te(i,1),i.m(t.parentNode,t)):i&&(Ne(),Le(i,1,1,()=>{i=null}),Oe()),c.ctx=e,256&s[0]&&o!==(o=e[18](e[8]))&&Me(o,c)||function(e,t,n){const o=t.slice(),{resolved:s}=e;e.current===e.then&&(o[e.value]=s),e.current===e.catch&&(o[e.error]=s),e.block.p(o,n)}(c,e,s)},i:function(e){s||(Te(i),Te(c.block),s=!0)},o:function(e){Le(i);for(let e=0;e<3;e+=1){Le(c.blocks[e])}s=!1},d:function(e){e&&(Qe(t),Qe(n)),i&&i.d(e),c.block.d(e),c.token=null,c=null}};return Je("SvelteRegisterBlock",{block:r,id:dl.name,type:"if",source:'(326:4) {#if enterOrSelectExisting === \\"select\\"}',ctx:e}),r}function fl(e){let t,n,s,i,c,r,l,a,u,p=e[14].region+"";i=new as({props:{defined:e[3]},$$inline:!0});let d=st(Object.entries(e[13].regions)),f=[];for(let t=0;t<d.length;t+=1)f[t]=ml(nl(e,d,t));const m={c:function(){t=C("label"),n=M(p),s=M(" "),Ve(i.$$.fragment),c=H(),r=C("select");for(let e=0;e<f.length;e+=1)f[e].c();tt(t,"class","input-label"),tt(t,"for","list-region"),o(t,Qr,327,6,9222),tt(r,"name","region"),tt(r,"id","list-region"),r.disabled=e[12],void 0===e[8]&&ye(()=>e[27].call(r)),Y(r,"disabled",e[12]),o(r,Qr,330,6,9367)},m:function(o,p){Ze(o,t,p),Ge(t,n),Ge(t,s),We(i,t,null),Ze(o,c,p),Ze(o,r,p);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(r,null);q(r,e[8],!0),l=!0,a||(u=et(r,"change",e[27]),a=!0)},p:function(e,t){(!l||16384&t[0])&&p!==(p=e[14].region+"")&&ot(n,p);const o={};if(8&t[0]&&(o.defined=e[3]),i.$set(o),8448&t[0]){let n;for(d=st(Object.entries(e[13].regions)),n=0;n<d.length;n+=1){const o=nl(e,d,n);f[n]?f[n].p(o,t):(f[n]=ml(o),f[n].c(),f[n].m(r,null))}for(;n<f.length;n+=1)f[n].d(1);f.length=d.length}(!l||4096&t[0])&&nt(r,"disabled",e[12]),8448&t[0]&&q(r,e[8]),(!l||4096&t[0])&&Y(r,"disabled",e[12])},i:function(e){l||(Te(i.$$.fragment,e),l=!0)},o:function(e){Le(i.$$.fragment,e),l=!1},d:function(e){e&&(Qe(t),Qe(c),Qe(r)),ze(i),D(f,e),a=!1,u()}};return Je("SvelteRegisterBlock",{block:m,id:fl.name,type:"if",source:"(327:5) {#if $storage_provider.region_required}",ctx:e}),m}function ml(e){let t,n,s,i,c,r=e[41]+"";const l={c:function(){t=C("option"),n=M(r),s=H(),t.__value=i=e[40],I(t,t.__value),t.selected=c=e[40]===e[8],o(t,Qr,332,8,9595)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(t,s)},p:function(e,o){8192&o[0]&&r!==(r=e[41]+"")&&ot(n,r),8192&o[0]&&i!==(i=e[40])&&(nt(t,"__value",i),I(t,t.__value)),8448&o[0]&&c!==(c=e[40]===e[8])&&nt(t,"selected",c)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:l,id:ml.name,type:"each",source:"(332:7) {#each Object.entries( $storage_provider.regions ) as [regionKey, regionName], index}",ctx:e}),l}function $l(t){const n={c:e,m:e,p:e,i:e,o:e,d:e};return Je("SvelteRegisterBlock",{block:n,id:$l.name,type:"catch",source:"(1:0) <script> import { createEventDispatcher, getContext, hasContext, onMount }",ctx:t}),n}function gl(t){let n;function s(e,t){return e[44].length?wl:hl}let i=s(t),c=i(t);const r={c:function(){n=C("ul"),c.c(),tt(n,"class","bucket-list"),o(n,Qr,344,6,9848)},m:function(e,t){Ze(e,n,t),c.m(n,null)},p:function(e,t){i===(i=s(e))&&c?c.p(e,t):(c.d(1),c=i(e),c&&(c.c(),c.m(n,null)))},i:e,o:e,d:function(e){e&&Qe(n),c.d()}};return Je("SvelteRegisterBlock",{block:r,id:gl.name,type:"then",source:"(344:5) {:then buckets}",ctx:t}),r}function hl(e){let t,n,s,i=e[14].nothing_found+"";const c={c:function(){t=C("li"),n=C("p"),s=M(i),o(n,Qr,366,9,10789),tt(t,"class","row nothing-found"),o(t,Qr,365,8,10749)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s)},p:function(e,t){16384&t[0]&&i!==(i=e[14].nothing_found+"")&&ot(s,i)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:c,id:hl.name,type:"else",source:"(365:7) {:else}",ctx:e}),c}function wl(e){let t,n=st(e[44]),o=[];for(let t=0;t<n.length;t+=1)o[t]=vl(tl(e,n,t));const s={c:function(){for(let e=0;e<o.length;e+=1)o[e].c();t=F()},m:function(e,n){for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,n);Ze(e,t,n)},p:function(e,s){if(311556&s[0]){let i;for(n=st(e[44]),i=0;i<n.length;i+=1){const c=tl(e,n,i);o[i]?o[i].p(c,s):(o[i]=vl(c),o[i].c(),o[i].m(t.parentNode,t))}for(;i<o.length;i+=1)o[i].d(1);o.length=n.length}},d:function(e){e&&Qe(t),D(o,e)}};return Je("SvelteRegisterBlock",{block:s,id:wl.name,type:"if",source:"(346:7) {#if buckets.length}",ctx:e}),s}function bl(e){let t,n,s;const i={c:function(){t=C("img"),tt(t,"class","icon status"),u(t.src,n=e[15].assets+"img/icon/licence-checked.svg")||tt(t,"src",n),tt(t,"type","image/svg+xml"),tt(t,"alt",s=e[14].selected_desc),o(t,Qr,360,11,10549)},m:function(e,n){Ze(e,t,n)},p:function(e,o){32768&o[0]&&!u(t.src,n=e[15].assets+"img/icon/licence-checked.svg")&&tt(t,"src",n),16384&o[0]&&s!==(s=e[14].selected_desc)&&tt(t,"alt",s)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:i,id:bl.name,type:"if",source:"(360:10) {#if newBucket === bucket.Name}",ctx:e}),i}function vl(e){let t,n,s,i,l,a,p,d,f,m,$,g,h,w=e[45].Name+"",b=e[2]===e[45].Name&&bl(e);function v(){return e[28](e[45])}const y={c:function(){t=C("li"),n=C("img"),l=H(),a=C("p"),p=M(w),d=H(),b&&b.c(),f=H(),tt(n,"class","icon bucket"),u(n.src,s=e[15].assets+"img/icon/bucket.svg")||tt(n,"src",s),tt(n,"alt",i=e[14].bucket_icon),o(n,Qr,357,10,10367),o(a,Qr,358,10,10475),tt(t,"class","row"),tt(t,"data-bucket-name",m=e[45].Name),Y(t,"active",e[2]===e[45].Name),o(t,Qr,350,9,10120)},m:function(o,s){Ze(o,t,s),Ge(t,n),Ge(t,l),Ge(t,a),Ge(a,p),Ge(t,d),b&&b.m(t,null),Ge(t,f),g||(h=[et(t,"click",v,!1,!1,!1,!1),_($=Xr.call(null,t,e[2]===e[45].Name))],g=!0)},p:function(o,c){e=o,32768&c[0]&&!u(n.src,s=e[15].assets+"img/icon/bucket.svg")&&tt(n,"src",s),16384&c[0]&&i!==(i=e[14].bucket_icon)&&tt(n,"alt",i),256&c[0]&&w!==(w=e[45].Name+"")&&ot(p,w),e[2]===e[45].Name?b?b.p(e,c):(b=bl(e),b.c(),b.m(t,f)):b&&(b.d(1),b=null),8448&c[0]&&m!==(m=e[45].Name)&&tt(t,"data-bucket-name",m),$&&r($.update)&&260&c[0]&&$.update.call(null,e[2]===e[45].Name),262404&c[0]&&Y(t,"active",e[2]===e[45].Name)},d:function(e){e&&Qe(t),b&&b.d(),g=!1,c(h)}};return Je("SvelteRegisterBlock",{block:y,id:vl.name,type:"each",source:"(347:8) {#each buckets as bucket}",ctx:e}),y}function yl(t){let n,o;n=new Gr({$$inline:!0});const s={c:function(){Ve(n.$$.fragment)},m:function(e,t){We(n,e,t),o=!0},p:e,i:function(e){o||(Te(n.$$.fragment,e),o=!0)},o:function(e){Le(n.$$.fragment,e),o=!1},d:function(e){ze(n,e)}};return Je("SvelteRegisterBlock",{block:s,id:yl.name,type:"pending",source:"(342:37) <Loading/> {:then buckets}",ctx:t}),s}function _l(e){let t,n,s,i;const c={c:function(){t=C("p"),n=M(e[10]),tt(t,"class","input-error"),o(t,Qr,373,5,10924)},m:function(e,o){Ze(e,t,o),Ge(t,n),i=!0},p:function(e,t){(!i||1024&t[0])&&ot(n,e[10])},i:function(e){i||(e&&ye(()=>{i&&(s||(s=Ce(t,Jo,{},!0)),s.run(1))}),i=!0)},o:function(e){e&&(s||(s=Ce(t,Jo,{},!1)),s.run(0)),i=!1},d:function(e){e&&Qe(t),e&&s&&s.end()}};return Je("SvelteRegisterBlock",{block:c,id:_l.name,type:"if",source:"(373:4) {#if invalidBucketNameMessage}",ctx:e}),c}function kl(e){let t,n,s,i,c,r,l,a,u,p,d;function f(t){e[23](t)}let m={value:"enter",list:!0,disabled:e[11],$$slots:{default:[rl]},$$scope:{ctx:e}};function $(t){e[24](t)}void 0!==e[1]&&(m.selected=e[1]),n=new Hc({props:m,$$inline:!0}),me.push(()=>qe(n,"selected",f));let g={value:"select",list:!0,disabled:e[11],$$slots:{default:[ll]},$$scope:{ctx:e}};void 0!==e[1]&&(g.selected=e[1]),c=new Hc({props:g,$$inline:!0}),me.push(()=>qe(c,"selected",$));let h="enter"===e[1]&&al(e),w="select"===e[1]&&dl(e),b=e[10]&&_l(e);const v={c:function(){t=C("div"),Ve(n.$$.fragment),i=H(),Ve(c.$$.fragment),l=H(),h&&h.c(),a=H(),w&&w.c(),u=H(),b&&b.c(),p=F(),tt(t,"class","flex-row align-center row radio-btns"),o(t,Qr,284,4,7613)},m:function(e,o){Ze(e,t,o),We(n,t,null),Ge(t,i),We(c,t,null),Ze(e,l,o),h&&h.m(e,o),Ze(e,a,o),w&&w.m(e,o),Ze(e,u,o),b&&b.m(e,o),Ze(e,p,o),d=!0},p:function(e,t){const o={};2048&t[0]&&(o.disabled=e[11]),16384&t[0]|524288&t[1]&&(o.$$scope={dirty:t,ctx:e}),!s&&2&t[0]&&(s=!0,o.selected=e[1],_e(()=>s=!1)),n.$set(o);const i={};2048&t[0]&&(i.disabled=e[11]),16384&t[0]|524288&t[1]&&(i.$$scope={dirty:t,ctx:e}),!r&&2&t[0]&&(r=!0,i.selected=e[1],_e(()=>r=!1)),c.$set(i),"enter"===e[1]?h?(h.p(e,t),2&t[0]&&Te(h,1)):(h=al(e),h.c(),Te(h,1),h.m(a.parentNode,a)):h&&(Ne(),Le(h,1,1,()=>{h=null}),Oe()),"select"===e[1]?w?(w.p(e,t),2&t[0]&&Te(w,1)):(w=dl(e),w.c(),Te(w,1),w.m(u.parentNode,u)):w&&(Ne(),Le(w,1,1,()=>{w=null}),Oe()),e[10]?b?(b.p(e,t),1024&t[0]&&Te(b,1)):(b=_l(e),b.c(),Te(b,1),b.m(p.parentNode,p)):b&&(Ne(),Le(b,1,1,()=>{b=null}),Oe())},i:function(e){d||(Te(n.$$.fragment,e),Te(c.$$.fragment,e),Te(h),Te(w),Te(b),d=!0)},o:function(e){Le(n.$$.fragment,e),Le(c.$$.fragment,e),Le(h),Le(w),Le(b),d=!1},d:function(e){e&&(Qe(t),Qe(l),Qe(a),Qe(u),Qe(p)),ze(n),ze(c),h&&h.d(e),w&&w.d(e),b&&b.d(e)}};return Je("SvelteRegisterBlock",{block:v,id:kl.name,type:"slot",source:'(284:3) <PanelRow class=\\"body flex-column\\">',ctx:e}),v}function xl(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[kl]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};64782&n[0]|524288&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:xl.name,type:"slot",source:"(283:2) <Panel heading={$strings.existing_bucket_title} storageProvider={$storage_provider} multi {defined}>",ctx:e}),o}function Pl(e){let t,n;t=new Cs({props:{heading:e[14].new_bucket_title,storageProvider:e[13],multi:!0,defined:e[4],$$slots:{default:[jl]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};16384&n[0]&&(o.heading=e[14].new_bucket_title),8192&n[0]&&(o.storageProvider=e[13]),16&n[0]&&(o.defined=e[4]),32012&n[0]|524288&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Pl.name,type:"if",source:'(380:1) {#if bucketSource === \\"new\\"}',ctx:e}),o}function Sl(e){let t,n,s,i,c,r=e[41]+"";const l={c:function(){t=C("option"),n=M(r),s=H(),t.__value=i=e[40],I(t,t.__value),t.selected=c=e[40]===e[8],o(t,Qr,403,8,12080)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(t,s)},p:function(e,o){8192&o[0]&&r!==(r=e[41]+"")&&ot(n,r),8192&o[0]&&i!==(i=e[40])&&(nt(t,"__value",i),I(t,t.__value)),8448&o[0]&&c!==(c=e[40]===e[8])&&nt(t,"selected",c)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:l,id:Sl.name,type:"each",source:"(403:7) {#each Object.entries( $storage_provider.regions ) as [regionKey, regionName], index}",ctx:e}),l}function Rl(e){let t,n,s,i;const c={c:function(){t=C("p"),n=M(e[10]),tt(t,"class","input-error"),o(t,Qr,414,5,12303)},m:function(e,o){Ze(e,t,o),Ge(t,n),i=!0},p:function(e,t){(!i||1024&t[0])&&ot(n,e[10])},i:function(e){i||(e&&ye(()=>{i&&(s||(s=Ce(t,Jo,{},!0)),s.run(1))}),i=!0)},o:function(e){e&&(s||(s=Ce(t,Jo,{},!1)),s.run(0)),i=!1},d:function(e){e&&Qe(t),e&&s&&s.end()}};return Je("SvelteRegisterBlock",{block:c,id:Rl.name,type:"if",source:"(414:4) {#if invalidBucketNameMessage}",ctx:e}),c}function El(e){let t,n,s,i,r,l,a,u,p,d,f,m,$,g,h,w,b,v,y,_,k=e[14].bucket_name+"",x=e[14].region+"";$=new as({props:{defined:e[3]},$$inline:!0});let P=st(Object.entries(e[13].regions)),S=[];for(let t=0;t<P.length;t+=1)S[t]=Sl(el(e,P,t));let R=e[10]&&Rl(e);const E={c:function(){t=C("div"),n=C("div"),s=C("label"),i=M(k),r=H(),l=C("input"),u=H(),p=C("div"),d=C("label"),f=M(x),m=M(" "),Ve($.$$.fragment),g=H(),h=C("select");for(let e=0;e<S.length;e+=1)S[e].c();w=H(),R&&R.c(),b=F(),tt(s,"class","input-label"),tt(s,"for","new-bucket-name"),o(s,Qr,384,6,11306),tt(l,"type","text"),tt(l,"id","new-bucket-name"),tt(l,"class","bucket-name"),tt(l,"name","bucket"),tt(l,"minlength","3"),tt(l,"placeholder",a=e[14].enter_bucket_name_placeholder),l.disabled=e[11],Y(l,"disabled",e[11]),o(l,Qr,385,6,11392),tt(n,"class","new-bucket-details flex-column"),o(n,Qr,383,5,11255),tt(d,"class","input-label"),tt(d,"for","new-region"),o(d,Qr,398,6,11709),tt(h,"name","region"),tt(h,"id","new-region"),h.disabled=e[12],void 0===e[8]&&ye(()=>e[30].call(h)),Y(h,"disabled",e[12]),o(h,Qr,401,6,11853),tt(p,"class","region flex-column"),o(p,Qr,397,5,11670),tt(t,"class","flex-row align-center row"),o(t,Qr,382,4,11210)},m:function(o,c){Ze(o,t,c),Ge(t,n),Ge(n,s),Ge(s,i),Ge(n,r),Ge(n,l),I(l,e[2]),Ge(t,u),Ge(t,p),Ge(p,d),Ge(d,f),Ge(d,m),We($,d,null),Ge(p,g),Ge(p,h);for(let e=0;e<S.length;e+=1)S[e]&&S[e].m(h,null);q(h,e[8],!0),Ze(o,w,c),R&&R.m(o,c),Ze(o,b,c),v=!0,y||(_=[et(l,"input",e[29]),et(h,"change",e[30])],y=!0)},p:function(e,t){(!v||16384&t[0])&&k!==(k=e[14].bucket_name+"")&&ot(i,k),(!v||16384&t[0]&&a!==(a=e[14].enter_bucket_name_placeholder))&&tt(l,"placeholder",a),(!v||2048&t[0])&&nt(l,"disabled",e[11]),4&t[0]&&l.value!==e[2]&&I(l,e[2]),(!v||2048&t[0])&&Y(l,"disabled",e[11]),(!v||16384&t[0])&&x!==(x=e[14].region+"")&&ot(f,x);const n={};if(8&t[0]&&(n.defined=e[3]),$.$set(n),8448&t[0]){let n;for(P=st(Object.entries(e[13].regions)),n=0;n<P.length;n+=1){const o=el(e,P,n);S[n]?S[n].p(o,t):(S[n]=Sl(o),S[n].c(),S[n].m(h,null))}for(;n<S.length;n+=1)S[n].d(1);S.length=P.length}(!v||4096&t[0])&&nt(h,"disabled",e[12]),8448&t[0]&&q(h,e[8]),(!v||4096&t[0])&&Y(h,"disabled",e[12]),e[10]?R?(R.p(e,t),1024&t[0]&&Te(R,1)):(R=Rl(e),R.c(),Te(R,1),R.m(b.parentNode,b)):R&&(Ne(),Le(R,1,1,()=>{R=null}),Oe())},i:function(e){v||(Te($.$$.fragment,e),Te(R),v=!0)},o:function(e){Le($.$$.fragment,e),Le(R),v=!1},d:function(e){e&&(Qe(t),Qe(w),Qe(b)),ze($),D(S,e),R&&R.d(e),y=!1,c(_)}};return Je("SvelteRegisterBlock",{block:E,id:El.name,type:"slot",source:'(382:3) <PanelRow class=\\"body flex-column\\">',ctx:e}),E}function jl(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[El]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};32012&n[0]|524288&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:jl.name,type:"slot",source:"(381:2) <Panel heading={$strings.new_bucket_title} storageProvider={$storage_provider} multi {defined}>",ctx:e}),o}function Bl(e){let t,n,o,s,i,c;t=new Cs({props:{heading:e[14].bucket_source_title,multi:!0,defined:e[4],$$slots:{default:[il]},$$scope:{ctx:e}},$$inline:!0});let r="existing"===e[0]&&cl(e),l="new"===e[0]&&Pl(e);i=new Jc({props:{nextText:e[9],nextDisabled:e[10]||e[6]||e[5],nextTitle:e[10]},$$inline:!0}),i.$on("next",e[19]);const a={c:function(){Ve(t.$$.fragment),n=H(),r&&r.c(),o=H(),l&&l.c(),s=H(),Ve(i.$$.fragment)},m:function(e,a){We(t,e,a),Ze(e,n,a),r&&r.m(e,a),Ze(e,o,a),l&&l.m(e,a),Ze(e,s,a),We(i,e,a),c=!0},p:function(e,n){const c={};16384&n[0]&&(c.heading=e[14].bucket_source_title),16&n[0]&&(c.defined=e[4]),18433&n[0]|524288&n[1]&&(c.$$scope={dirty:n,ctx:e}),t.$set(c),"existing"===e[0]?r?(r.p(e,n),1&n[0]&&Te(r,1)):(r=cl(e),r.c(),Te(r,1),r.m(o.parentNode,o)):r&&(Ne(),Le(r,1,1,()=>{r=null}),Oe()),"new"===e[0]?l?(l.p(e,n),1&n[0]&&Te(l,1)):(l=Pl(e),l.c(),Te(l,1),l.m(s.parentNode,s)):l&&(Ne(),Le(l,1,1,()=>{l=null}),Oe());const a={};512&n[0]&&(a.nextText=e[9]),1120&n[0]&&(a.nextDisabled=e[10]||e[6]||e[5]),1024&n[0]&&(a.nextTitle=e[10]),i.$set(a)},i:function(e){c||(Te(t.$$.fragment,e),Te(r),Te(l),Te(i.$$.fragment,e),c=!0)},o:function(e){Le(t.$$.fragment,e),Le(r),Le(l),Le(i.$$.fragment,e),c=!1},d:function(e){e&&(Qe(n),Qe(o),Qe(s)),ze(t,e),r&&r.d(e),l&&l.d(e),ze(i,e)}};return Je("SvelteRegisterBlock",{block:a,id:Bl.name,type:"slot",source:'(264:0) <SubPage name=\\"bucket-settings\\" route=\\"/storage/bucket\\">',ctx:e}),a}function Nl(e){let t,n;t=new zo({props:{name:"bucket-settings",route:"/storage/bucket",$$slots:{default:[Bl]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};65407&n[0]|524288&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Nl.name,type:"component",source:"",ctx:e}),o}function Ol(t,n,o){let s,i,c,r,l,a,u,f,$,g,h,w,b,v,_,k=e,x=()=>(k(),k=d(E,e=>o(5,h=e)),E);p(At,"storage_provider"),m(t,At,e=>o(13,u=e)),p(Tt,"revalidatingSettings"),m(t,Tt,e=>o(32,f=e)),p(Ct,"settings"),m(t,Ct,e=>o(33,$=e)),p(ht,"strings"),m(t,ht,e=>o(14,g=e)),p(Lt,"needs_refresh"),m(t,Lt,e=>o(6,w=e)),p(gt,"defined_settings"),m(t,gt,e=>o(21,b=e)),p($t,"current_settings"),m(t,$t,e=>o(22,v=e)),p(bt,"urls"),m(t,bt,e=>o(15,_=e)),t.$$.on_destroy.push(()=>k());let{$$slots:P={},$$scope:S}=n;it("BucketSettingsSubPage",P,[]);const R=le();let E=ut(!1);p(E,"settingsLocked"),x(),pe("settingsLocked")&&x(E=ue("settingsLocked"));let j=v;pe("initialSettings")&&(j=ue("initialSettings"));let B=!1;const N={...v},O={...b};let T="existing",L="enter",D=$.bucket,C=$.region;function M(){i||o(0,T="existing")}function H(){i||o(0,T="new")}async function F(e){let t={};u.region_required&&(t={region:e});let n=await Dt.get("buckets",t);return n.hasOwnProperty("buckets")?(0===n.buckets.filter(e=>e.Name===D).length&&o(2,D=""),n.buckets):(o(2,D=""),[])}async function A(){let e=await Dt.post("buckets",{bucket:D,region:C});return!!e.hasOwnProperty("saved")&&e.saved}function K(e,t,n){if(c&&(0===C.length||!u.regions.hasOwnProperty(C)))return g.defined_region_invalid;const o="new"===t?/[^a-z0-9.\-]/:/[^a-zA-Z0-9.\-_]/;let s="";return e.trim().length<1?s="existing"===t&&"select"===n?g.no_bucket_selected:g.create_bucket_name_missing:!0===o.test(e)?s="new"===t?g.create_bucket_invalid_chars:g.select_bucket_invalid_chars:e.length<3?s=g.create_bucket_name_short:e.length>63&&(s=g.create_bucket_name_long),s}function I(e,t){return"existing"===e&&"enter"===t?g.save_enter_bucket:"existing"===e&&"select"===t?g.save_select_bucket:"new"===e?g.save_new_bucket:g.next}async function U(){if("new"===T&&!1===await A())return void ac();o(20,B=!0),Zt.pausePeriodicFetch(),y(Ct,$.bucket=D,$),y(Ct,$.region=C,$);const e=await Ct.save();if(e.hasOwnProperty("saved")&&!e.saved)return Ct.reset(),o(20,B=!1),await Zt.resumePeriodicFetch(),void ac();y(Tt,f=!0,f);const t=Zt.resumePeriodicFetch();e.bucketSource=T,e.initialSettings=j,R("routeEvent",{event:"settings.save",data:e,default:"/"}),await t,y(Tt,f=!1,f)}ie(()=>{c||0!==C.length&&u.regions.hasOwnProperty(C)||o(8,C=Object.keys(u.regions)[0])});const q=[];Zr.keys(n).forEach(e=>{~q.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<BucketSettingsSubPage> was created with unknown prop '${e}'`)});return t.$capture_state=()=>({createEventDispatcher:le,getContext:ue,hasContext:pe,onMount:ie,writable:ut,slide:Jo,api:Dt,settings:Ct,defined_settings:gt,strings:ht,storage_provider:At,urls:bt,current_settings:$t,needs_refresh:Lt,revalidatingSettings:Tt,state:Zt,scrollIntoView:Xr,scrollNotificationsIntoView:ac,needsRefresh:Sc,SubPage:zo,Panel:Cs,PanelRow:is,TabButton:Tc,BackNextButtonsRow:Jc,RadioButton:Hc,Loading:Gr,DefinedInWPConfig:as,dispatch:R,settingsLocked:E,initialSettings:j,saving:B,previousSettings:N,previousDefines:O,bucketSource:T,enterOrSelectExisting:L,newBucket:D,newRegion:C,handleExisting:M,handleNew:H,getBuckets:F,createBucket:A,getInvalidBucketNameMessage:K,getNextText:I,handleNext:U,newRegionDefined:c,nextText:a,invalidBucketNameMessage:l,disabled:i,newRegionDisabled:r,defined:s,$storage_provider:u,$revalidatingSettings:f,$settings:$,$strings:g,$settingsLocked:h,$needs_refresh:w,$defined_settings:b,$current_settings:v,$urls:_}),t.$inject_state=e=>{"settingsLocked"in e&&x(o(7,E=e.settingsLocked)),"initialSettings"in e&&(j=e.initialSettings),"saving"in e&&o(20,B=e.saving),"bucketSource"in e&&o(0,T=e.bucketSource),"enterOrSelectExisting"in e&&o(1,L=e.enterOrSelectExisting),"newBucket"in e&&o(2,D=e.newBucket),"newRegion"in e&&o(8,C=e.newRegion),"newRegionDefined"in e&&o(3,c=e.newRegionDefined),"nextText"in e&&o(9,a=e.nextText),"invalidBucketNameMessage"in e&&o(10,l=e.invalidBucketNameMessage),"disabled"in e&&o(11,i=e.disabled),"newRegionDisabled"in e&&o(12,r=e.newRegionDisabled),"defined"in e&&o(4,s=e.defined)},n&&"$$inject"in n&&t.$inject_state(n.$$inject),t.$$.update=()=>{7340096&t.$$.dirty[0]&&y(Lt,w=w||Sc(B,N,v,O,b),w),2097152&t.$$.dirty[0]&&o(4,s=b.includes("bucket")),112&t.$$.dirty[0]&&o(11,i=s||w||h),2097152&t.$$.dirty[0]&&o(3,c=b.includes("region")),104&t.$$.dirty[0]&&o(12,r=c||w||h),7&t.$$.dirty[0]&&o(10,l=K(D,T,L)),3&t.$$.dirty[0]&&o(9,a=I(T,L))},[T,L,D,c,s,h,w,E,C,a,l,i,r,u,g,_,M,H,F,U,B,b,v,function(e){L=e,o(1,L)},function(e){L=e,o(1,L)},function(){D=this.value,o(2,D)},function(){C=V(this),o(8,C)},function(){C=V(this),o(8,C)},e=>o(2,D=e.Name),function(){D=this.value,o(2,D)},function(){C=V(this),o(8,C)}]}const Tl="ui/components/Checkbox.svelte";function Ll(e){let t,n,s,i,c,r,l;const a=e[4].default,u=$(a,e,e[3],null),p={c:function(){t=C("div"),n=C("label"),s=C("input"),i=H(),u&&u.c(),tt(s,"type","checkbox"),tt(s,"id",e[1]),s.disabled=e[2],o(s,Tl,8,2,207),tt(n,"class","toggle-label"),tt(n,"for",e[1]),o(n,Tl,7,1,165),tt(t,"class","checkbox"),Y(t,"locked",e[2]),Y(t,"disabled",e[2]),o(t,Tl,6,0,102)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(o,a){Ze(o,t,a),Ge(t,n),Ge(n,s),s.checked=e[0],Ge(n,i),u&&u.m(n,null),c=!0,r||(l=et(s,"change",e[5]),r=!0)},p:function(e,[o]){(!c||2&o)&&tt(s,"id",e[1]),(!c||4&o)&&nt(s,"disabled",e[2]),1&o&&(s.checked=e[0]),u&&u.p&&(!c||8&o)&&w(u,a,e,e[3],c?h(a,e[3],o,null):b(e[3]),null),(!c||2&o)&&tt(n,"for",e[1]),(!c||4&o)&&Y(t,"locked",e[2]),(!c||4&o)&&Y(t,"disabled",e[2])},i:function(e){c||(Te(u,e),c=!0)},o:function(e){Le(u,e),c=!1},d:function(e){e&&Qe(t),u&&u.d(e),r=!1,l()}};return Je("SvelteRegisterBlock",{block:p,id:Ll.name,type:"component",source:"",ctx:e}),p}function Dl(e,t,n){let{$$slots:o={},$$scope:s}=t;it("Checkbox",o,["default"]);let{name:i=""}=t,{checked:c=!1}=t,{disabled:r=!1}=t;const l=["name","checked","disabled"];return Object.keys(t).forEach(e=>{~l.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Checkbox> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(1,i=e.name),"checked"in e&&n(0,c=e.checked),"disabled"in e&&n(2,r=e.disabled),"$$scope"in e&&n(3,s=e.$$scope)},e.$capture_state=()=>({name:i,checked:c,disabled:r}),e.$inject_state=e=>{"name"in e&&n(1,i=e.name),"checked"in e&&n(0,c=e.checked),"disabled"in e&&n(2,r=e.disabled)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[c,i,r,s,o,function(){c=this.checked,n(0,c)}]}class Cl extends rt{constructor(e){super(e),Xe(this,e,Dl,Ll,l,{name:1,checked:0,disabled:2}),Je("SvelteRegisterComponent",{component:this,tagName:"Checkbox",options:e,id:Ll.name})}get name(){throw new Error("<Checkbox>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<Checkbox>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get checked(){throw new Error("<Checkbox>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set checked(e){throw new Error("<Checkbox>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get disabled(){throw new Error("<Checkbox>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set disabled(e){throw new Error("<Checkbox>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Ml="ui/components/SecuritySubPage.svelte";function Hl(e){let t,n,s,i,c,r,l=e[12].block_public_access_disabled_sub+"",a=e[7].block_public_access_disabled_unsupported_desc+"",u=e[13].block_public_access_disabled_unsupported_desc+"";const p={c:function(){t=C("p"),n=H(),s=C("p"),i=new G(!1),c=H(),r=new G(!1),o(t,Ml,232,4,7335),i.a=c,r.a=null,o(s,Ml,233,4,7396)},m:function(e,o){Ze(e,t,o),t.innerHTML=l,Ze(e,n,o),Ze(e,s,o),i.m(a,s),Ge(s,c),r.m(u,s)},p:function(e,n){4096&n&&l!==(l=e[12].block_public_access_disabled_sub+"")&&(t.innerHTML=l),128&n&&a!==(a=e[7].block_public_access_disabled_unsupported_desc+"")&&i.p(a),8192&n&&u!==(u=e[13].block_public_access_disabled_unsupported_desc+"")&&r.p(u)},d:function(e){e&&(Qe(t),Qe(n),Qe(s))}};return Je("SvelteRegisterBlock",{block:p,id:Hl.name,type:"else",source:"(232:3) {:else}",ctx:e}),p}function Fl(e){let t,n,s,i,c,r,l=e[12].block_public_access_disabled_sub+"",a=e[7].block_public_access_disabled_supported_desc+"",u=e[13].block_public_access_disabled_supported_desc+"";const p={c:function(){t=C("p"),n=H(),s=C("p"),i=new G(!1),c=H(),r=new G(!1),o(t,Ml,229,4,7111),i.a=c,r.a=null,o(s,Ml,230,4,7172)},m:function(e,o){Ze(e,t,o),t.innerHTML=l,Ze(e,n,o),Ze(e,s,o),i.m(a,s),Ge(s,c),r.m(u,s)},p:function(e,n){4096&n&&l!==(l=e[12].block_public_access_disabled_sub+"")&&(t.innerHTML=l),128&n&&a!==(a=e[7].block_public_access_disabled_supported_desc+"")&&i.p(a),8192&n&&u!==(u=e[13].block_public_access_disabled_supported_desc+"")&&r.p(u)},d:function(e){e&&(Qe(t),Qe(n),Qe(s))}};return Je("SvelteRegisterBlock",{block:p,id:Fl.name,type:"if",source:"(229:109) ",ctx:e}),p}function Al(e){let t,n,s,i,c,r,l=e[12].block_public_access_enabled_sub+"",a=e[7].block_public_access_enabled_unsupported_desc+"",u=e[13].block_public_access_enabled_unsupported_desc+"";const p={c:function(){t=C("p"),n=H(),s=C("p"),i=new G(!1),c=H(),r=new G(!1),o(t,Ml,226,4,6787),i.a=c,r.a=null,o(s,Ml,227,4,6847)},m:function(e,o){Ze(e,t,o),t.innerHTML=l,Ze(e,n,o),Ze(e,s,o),i.m(a,s),Ge(s,c),r.m(u,s)},p:function(e,n){4096&n&&l!==(l=e[12].block_public_access_enabled_sub+"")&&(t.innerHTML=l),128&n&&a!==(a=e[7].block_public_access_enabled_unsupported_desc+"")&&i.p(a),8192&n&&u!==(u=e[13].block_public_access_enabled_unsupported_desc+"")&&r.p(u)},d:function(e){e&&(Qe(t),Qe(n),Qe(s))}};return Je("SvelteRegisterBlock",{block:p,id:Al.name,type:"if",source:"(226:109) ",ctx:e}),p}function Kl(e){let t,n,s,i,c,r,l=e[12].block_public_access_enabled_sub+"",a=e[7].block_public_access_enabled_supported_desc+"",u=e[13].block_public_access_enabled_supported_desc+"";const p={c:function(){t=C("p"),n=H(),s=C("p"),i=new G(!1),c=H(),r=new G(!1),o(t,Ml,223,4,6467),i.a=c,r.a=null,o(s,Ml,224,4,6527)},m:function(e,o){Ze(e,t,o),t.innerHTML=l,Ze(e,n,o),Ze(e,s,o),i.m(a,s),Ge(s,c),r.m(u,s)},p:function(e,n){4096&n&&l!==(l=e[12].block_public_access_enabled_sub+"")&&(t.innerHTML=l),128&n&&a!==(a=e[7].block_public_access_enabled_supported_desc+"")&&i.p(a),8192&n&&u!==(u=e[13].block_public_access_enabled_supported_desc+"")&&r.p(u)},d:function(e){e&&(Qe(t),Qe(n),Qe(s))}};return Je("SvelteRegisterBlock",{block:p,id:Kl.name,type:"if",source:"(223:108) ",ctx:e}),p}function Il(e){let t,n,s,i,c,r,l=e[12].block_public_access_enabled_setup_sub+"",a=e[7].block_public_access_enabled_unsupported_setup_desc+"",u=e[13].block_public_access_enabled_unsupported_setup_desc+"";const p={c:function(){t=C("p"),n=H(),s=C("p"),i=new G(!1),c=H(),r=new G(!1),o(t,Ml,220,4,6126),i.a=c,r.a=null,o(s,Ml,221,4,6192)},m:function(e,o){Ze(e,t,o),t.innerHTML=l,Ze(e,n,o),Ze(e,s,o),i.m(a,s),Ge(s,c),r.m(u,s)},p:function(e,n){4096&n&&l!==(l=e[12].block_public_access_enabled_setup_sub+"")&&(t.innerHTML=l),128&n&&a!==(a=e[7].block_public_access_enabled_unsupported_setup_desc+"")&&i.p(a),8192&n&&u!==(u=e[13].block_public_access_enabled_unsupported_setup_desc+"")&&r.p(u)},d:function(e){e&&(Qe(t),Qe(n),Qe(s))}};return Je("SvelteRegisterBlock",{block:p,id:Il.name,type:"if",source:'(220:3) {#if initialSetup && $current_settings[ \\"block-public-access\\" ] && !$delivery_provider.block_public_access_supported}',ctx:e}),p}function Ul(e){let t;function n(e,t){return e[9]&&e[4]["block-public-access"]&&!e[7].block_public_access_supported?Il:e[4]["block-public-access"]&&e[7].block_public_access_supported?Kl:e[4]["block-public-access"]&&!e[7].block_public_access_supported?Al:!e[4]["block-public-access"]&&e[7].block_public_access_supported?Fl:Hl}let o=n(e),s=o(e);const i={c:function(){s.c(),t=F()},m:function(e,n){s.m(e,n),Ze(e,t,n)},p:function(e,i){o===(o=n(e))&&s?s.p(e,i):(s.d(1),s=o(e),s&&(s.c(),s.m(t.parentNode,t)))},d:function(e){e&&Qe(t),s.d(e)}};return Je("SvelteRegisterBlock",{block:i,id:Ul.name,type:"slot",source:'(219:2) <PanelRow class=\\"body flex-column\\">',ctx:e}),i}function ql(e){let t,n,s,i;n=new is({props:{class:"body flex-column toggle-reveal",footer:!0,$$slots:{default:[Wl]},$$scope:{ctx:e}},$$inline:!0});const c={c:function(){t=C("div"),Ve(n.$$.fragment),o(t,Ml,237,3,7699)},m:function(e,o){Ze(e,t,o),We(n,t,null),i=!0},p:function(e,t){const o={};268435682&t&&(o.$$scope={dirty:t,ctx:e}),n.$set(o)},i:function(e){i||(Te(n.$$.fragment,e),e&&ye(()=>{i&&(s||(s=Ce(t,Jo,{},!0)),s.run(1))}),i=!0)},o:function(e){Le(n.$$.fragment,e),e&&(s||(s=Ce(t,Jo,{},!1)),s.run(0)),i=!1},d:function(e){e&&Qe(t),ze(n),e&&s&&s.end()}};return Je("SvelteRegisterBlock",{block:c,id:ql.name,type:"if",source:'(237:2) {#if !$current_settings[ \\"block-public-access\\" ] && blockPublicAccess && $delivery_provider.block_public_access_supported}',ctx:e}),c}function Vl(e){let t,n,o=e[7].block_public_access_confirm_setup_prompt+"";const s={c:function(){t=new G(!1),n=F(),t.a=n},m:function(e,s){t.m(o,e,s),Ze(e,n,s)},p:function(e,n){128&n&&o!==(o=e[7].block_public_access_confirm_setup_prompt+"")&&t.p(o)},d:function(e){e&&(Qe(n),t.d())}};return Je("SvelteRegisterBlock",{block:s,id:Vl.name,type:"slot",source:'(240:5) <Checkbox name=\\"confirm-setup-bapa-oai\\" bind:checked={bapaSetupConfirmed} disabled={$needs_refresh || $settingsLocked}>',ctx:e}),s}function Wl(e){let t,n,o;function s(t){e[17](t)}let i={name:"confirm-setup-bapa-oai",disabled:e[6]||e[5],$$slots:{default:[Vl]},$$scope:{ctx:e}};void 0!==e[1]&&(i.checked=e[1]),t=new Cl({props:i,$$inline:!0}),me.push(()=>qe(t,"checked",s));const c={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),o=!0},p:function(e,o){const s={};96&o&&(s.disabled=e[6]||e[5]),268435584&o&&(s.$$scope={dirty:o,ctx:e}),!n&&2&o&&(n=!0,s.checked=e[1],_e(()=>n=!1)),t.$set(s)},i:function(e){o||(Te(t.$$.fragment,e),o=!0)},o:function(e){Le(t.$$.fragment,e),o=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:Wl.name,type:"slot",source:'(239:4) <PanelRow class=\\"body flex-column toggle-reveal\\" footer>',ctx:e}),c}function zl(e){let t,n,o,s;t=new is({props:{class:"body flex-column",$$slots:{default:[Ul]},$$scope:{ctx:e}},$$inline:!0});let i=!e[4]["block-public-access"]&&e[0]&&e[7].block_public_access_supported&&ql(e);const c={c:function(){Ve(t.$$.fragment),n=H(),i&&i.c(),o=F()},m:function(e,c){We(t,e,c),Ze(e,n,c),i&&i.m(e,c),Ze(e,o,c),s=!0},p:function(e,n){const s={};268448400&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s),!e[4]["block-public-access"]&&e[0]&&e[7].block_public_access_supported?i?(i.p(e,n),145&n&&Te(i,1)):(i=ql(e),i.c(),Te(i,1),i.m(o.parentNode,o)):i&&(Ne(),Le(i,1,1,()=>{i=null}),Oe())},i:function(e){s||(Te(t.$$.fragment,e),Te(i),s=!0)},o:function(e){Le(t.$$.fragment,e),Le(i),s=!1},d:function(e){e&&(Qe(n),Qe(o)),ze(t,e),i&&i.d(e)}};return Je("SvelteRegisterBlock",{block:c,id:zl.name,type:"slot",source:'(211:1) <Panel class=\\"toggle-header\\" heading={$strings.block_public_access_title} toggleName=\\"block-public-access\\" bind:toggle={blockPublicAccess} helpKey=\\"block-public-access\\" multi >',ctx:e}),c}function Xl(e){let t,n,s,i,c,r,l=e[12].object_ownership_not_enforced_sub+"",a=e[7].object_ownership_not_enforced_unsupported_desc+"",u=e[13].object_ownership_not_enforced_unsupported_desc+"";const p={c:function(){t=C("p"),n=H(),s=C("p"),i=new G(!1),c=H(),r=new G(!1),o(t,Ml,267,4,9606),i.a=c,r.a=null,o(s,Ml,268,4,9668)},m:function(e,o){Ze(e,t,o),t.innerHTML=l,Ze(e,n,o),Ze(e,s,o),i.m(a,s),Ge(s,c),r.m(u,s)},p:function(e,n){4096&n&&l!==(l=e[12].object_ownership_not_enforced_sub+"")&&(t.innerHTML=l),128&n&&a!==(a=e[7].object_ownership_not_enforced_unsupported_desc+"")&&i.p(a),8192&n&&u!==(u=e[13].object_ownership_not_enforced_unsupported_desc+"")&&r.p(u)},d:function(e){e&&(Qe(t),Qe(n),Qe(s))}};return Je("SvelteRegisterBlock",{block:p,id:Xl.name,type:"else",source:"(267:3) {:else}",ctx:e}),p}function Yl(e){let t,n,s,i,c,r,l=e[12].object_ownership_not_enforced_sub+"",a=e[7].object_ownership_not_enforced_supported_desc+"",u=e[13].object_ownership_not_enforced_supported_desc+"";const p={c:function(){t=C("p"),n=H(),s=C("p"),i=new G(!1),c=H(),r=new G(!1),o(t,Ml,264,4,9379),i.a=c,r.a=null,o(s,Ml,265,4,9441)},m:function(e,o){Ze(e,t,o),t.innerHTML=l,Ze(e,n,o),Ze(e,s,o),i.m(a,s),Ge(s,c),r.m(u,s)},p:function(e,n){4096&n&&l!==(l=e[12].object_ownership_not_enforced_sub+"")&&(t.innerHTML=l),128&n&&a!==(a=e[7].object_ownership_not_enforced_supported_desc+"")&&i.p(a),8192&n&&u!==(u=e[13].object_ownership_not_enforced_supported_desc+"")&&r.p(u)},d:function(e){e&&(Qe(t),Qe(n),Qe(s))}};return Je("SvelteRegisterBlock",{block:p,id:Yl.name,type:"if",source:"(264:112) ",ctx:e}),p}function Jl(e){let t,n,s,i,c,r,l=e[12].object_ownership_enforced_sub+"",a=e[7].object_ownership_enforced_unsupported_desc+"",u=e[13].object_ownership_enforced_unsupported_desc+"";const p={c:function(){t=C("p"),n=H(),s=C("p"),i=new G(!1),c=H(),r=new G(!1),o(t,Ml,261,4,9058),i.a=c,r.a=null,o(s,Ml,262,4,9116)},m:function(e,o){Ze(e,t,o),t.innerHTML=l,Ze(e,n,o),Ze(e,s,o),i.m(a,s),Ge(s,c),r.m(u,s)},p:function(e,n){4096&n&&l!==(l=e[12].object_ownership_enforced_sub+"")&&(t.innerHTML=l),128&n&&a!==(a=e[7].object_ownership_enforced_unsupported_desc+"")&&i.p(a),8192&n&&u!==(u=e[13].object_ownership_enforced_unsupported_desc+"")&&r.p(u)},d:function(e){e&&(Qe(t),Qe(n),Qe(s))}};return Je("SvelteRegisterBlock",{block:p,id:Jl.name,type:"if",source:"(261:112) ",ctx:e}),p}function Gl(e){let t,n,s,i,c,r,l=e[12].object_ownership_enforced_sub+"",a=e[7].object_ownership_enforced_supported_desc+"",u=e[13].object_ownership_enforced_supported_desc+"";const p={c:function(){t=C("p"),n=H(),s=C("p"),i=new G(!1),c=H(),r=new G(!1),o(t,Ml,258,4,8741),i.a=c,r.a=null,o(s,Ml,259,4,8799)},m:function(e,o){Ze(e,t,o),t.innerHTML=l,Ze(e,n,o),Ze(e,s,o),i.m(a,s),Ge(s,c),r.m(u,s)},p:function(e,n){4096&n&&l!==(l=e[12].object_ownership_enforced_sub+"")&&(t.innerHTML=l),128&n&&a!==(a=e[7].object_ownership_enforced_supported_desc+"")&&i.p(a),8192&n&&u!==(u=e[13].object_ownership_enforced_supported_desc+"")&&r.p(u)},d:function(e){e&&(Qe(t),Qe(n),Qe(s))}};return Je("SvelteRegisterBlock",{block:p,id:Gl.name,type:"if",source:"(258:111) ",ctx:e}),p}function Zl(e){let t,n,s,i,c,r,l=e[12].object_ownership_enforced_setup_sub+"",a=e[7].object_ownership_enforced_unsupported_setup_desc+"",u=e[13].object_ownership_enforced_unsupported_setup_desc+"";const p={c:function(){t=C("p"),n=H(),s=C("p"),i=new G(!1),c=H(),r=new G(!1),o(t,Ml,255,4,8403),i.a=c,r.a=null,o(s,Ml,256,4,8467)},m:function(e,o){Ze(e,t,o),t.innerHTML=l,Ze(e,n,o),Ze(e,s,o),i.m(a,s),Ge(s,c),r.m(u,s)},p:function(e,n){4096&n&&l!==(l=e[12].object_ownership_enforced_setup_sub+"")&&(t.innerHTML=l),128&n&&a!==(a=e[7].object_ownership_enforced_unsupported_setup_desc+"")&&i.p(a),8192&n&&u!==(u=e[13].object_ownership_enforced_unsupported_setup_desc+"")&&r.p(u)},d:function(e){e&&(Qe(t),Qe(n),Qe(s))}};return Je("SvelteRegisterBlock",{block:p,id:Zl.name,type:"if",source:'(255:3) {#if initialSetup && $current_settings[ \\"object-ownership-enforced\\" ] && !$delivery_provider.object_ownership_supported}',ctx:e}),p}function Ql(e){let t;function n(e,t){return e[9]&&e[4]["object-ownership-enforced"]&&!e[7].object_ownership_supported?Zl:e[4]["object-ownership-enforced"]&&e[7].object_ownership_supported?Gl:e[4]["object-ownership-enforced"]&&!e[7].object_ownership_supported?Jl:!e[4]["object-ownership-enforced"]&&e[7].object_ownership_supported?Yl:Xl}let o=n(e),s=o(e);const i={c:function(){s.c(),t=F()},m:function(e,n){s.m(e,n),Ze(e,t,n)},p:function(e,i){o===(o=n(e))&&s?s.p(e,i):(s.d(1),s=o(e),s&&(s.c(),s.m(t.parentNode,t)))},d:function(e){e&&Qe(t),s.d(e)}};return Je("SvelteRegisterBlock",{block:i,id:Ql.name,type:"slot",source:'(254:2) <PanelRow class=\\"body flex-column\\">',ctx:e}),i}function ea(e){let t,n,s,i;n=new is({props:{class:"body flex-column toggle-reveal",$$slots:{default:[na]},$$scope:{ctx:e}},$$inline:!0});const c={c:function(){t=C("div"),Ve(n.$$.fragment),o(t,Ml,272,3,9982)},m:function(e,o){Ze(e,t,o),We(n,t,null),i=!0},p:function(e,t){const o={};268435688&t&&(o.$$scope={dirty:t,ctx:e}),n.$set(o)},i:function(e){i||(Te(n.$$.fragment,e),e&&ye(()=>{i&&(s||(s=Ce(t,Jo,{},!0)),s.run(1))}),i=!0)},o:function(e){Le(n.$$.fragment,e),e&&(s||(s=Ce(t,Jo,{},!1)),s.run(0)),i=!1},d:function(e){e&&Qe(t),ze(n),e&&s&&s.end()}};return Je("SvelteRegisterBlock",{block:c,id:ea.name,type:"if",source:'(272:2) {#if !$current_settings[ \\"object-ownership-enforced\\" ] && objectOwnershipEnforced && $delivery_provider.object_ownership_supported}',ctx:e}),c}function ta(e){let t,n,o=e[7].object_ownership_confirm_setup_prompt+"";const s={c:function(){t=new G(!1),n=F(),t.a=n},m:function(e,s){t.m(o,e,s),Ze(e,n,s)},p:function(e,n){128&n&&o!==(o=e[7].object_ownership_confirm_setup_prompt+"")&&t.p(o)},d:function(e){e&&(Qe(n),t.d())}};return Je("SvelteRegisterBlock",{block:s,id:ta.name,type:"slot",source:'(275:5) <Checkbox name=\\"confirm-setup-ooe-oai\\" bind:checked={ooeSetupConfirmed} disabled={$needs_refresh || $settingsLocked}>',ctx:e}),s}function na(e){let t,n,o;function s(t){e[19](t)}let i={name:"confirm-setup-ooe-oai",disabled:e[6]||e[5],$$slots:{default:[ta]},$$scope:{ctx:e}};void 0!==e[3]&&(i.checked=e[3]),t=new Cl({props:i,$$inline:!0}),me.push(()=>qe(t,"checked",s));const c={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),o=!0},p:function(e,o){const s={};96&o&&(s.disabled=e[6]||e[5]),268435584&o&&(s.$$scope={dirty:o,ctx:e}),!n&&8&o&&(n=!0,s.checked=e[3],_e(()=>n=!1)),t.$set(s)},i:function(e){o||(Te(t.$$.fragment,e),o=!0)},o:function(e){Le(t.$$.fragment,e),o=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:na.name,type:"slot",source:'(274:4) <PanelRow class=\\"body flex-column toggle-reveal\\">',ctx:e}),c}function oa(e){let t,n,o,s;t=new is({props:{class:"body flex-column",$$slots:{default:[Ql]},$$scope:{ctx:e}},$$inline:!0});let i=!e[4]["object-ownership-enforced"]&&e[2]&&e[7].object_ownership_supported&&ea(e);const c={c:function(){Ve(t.$$.fragment),n=H(),i&&i.c(),o=F()},m:function(e,c){We(t,e,c),Ze(e,n,c),i&&i.m(e,c),Ze(e,o,c),s=!0},p:function(e,n){const s={};268448400&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s),!e[4]["object-ownership-enforced"]&&e[2]&&e[7].object_ownership_supported?i?(i.p(e,n),148&n&&Te(i,1)):(i=ea(e),i.c(),Te(i,1),i.m(o.parentNode,o)):i&&(Ne(),Le(i,1,1,()=>{i=null}),Oe())},i:function(e){s||(Te(t.$$.fragment,e),Te(i),s=!0)},o:function(e){Le(t.$$.fragment,e),Le(i),s=!1},d:function(e){e&&(Qe(n),Qe(o)),ze(t,e),i&&i.d(e)}};return Je("SvelteRegisterBlock",{block:c,id:oa.name,type:"slot",source:'(246:1) <Panel class=\\"toggle-header\\" heading={$strings.object_ownership_title} toggleName=\\"object-ownership-enforced\\" bind:toggle={objectOwnershipEnforced} helpKey=\\"object-ownership-enforced\\" multi >',ctx:e}),c}function sa(e){let t,n,o,s,i,c,r,l;function a(t){e[18](t)}let u={class:"toggle-header",heading:e[12].block_public_access_title,toggleName:"block-public-access",helpKey:"block-public-access",multi:!0,$$slots:{default:[zl]},$$scope:{ctx:e}};function p(t){e[20](t)}void 0!==e[0]&&(u.toggle=e[0]),t=new Cs({props:u,$$inline:!0}),me.push(()=>qe(t,"toggle",a));let d={class:"toggle-header",heading:e[12].object_ownership_title,toggleName:"object-ownership-enforced",helpKey:"object-ownership-enforced",multi:!0,$$slots:{default:[oa]},$$scope:{ctx:e}};void 0!==e[2]&&(d.toggle=e[2]),s=new Cs({props:d,$$inline:!0}),me.push(()=>qe(s,"toggle",p)),r=new Jc({props:{nextText:e[11],nextDisabled:e[10]},$$inline:!0}),r.$on("next",e[14]);const f={c:function(){Ve(t.$$.fragment),o=H(),Ve(s.$$.fragment),c=H(),Ve(r.$$.fragment)},m:function(e,n){We(t,e,n),Ze(e,o,n),We(s,e,n),Ze(e,c,n),We(r,e,n),l=!0},p:function(e,o){const c={};4096&o&&(c.heading=e[12].block_public_access_title),268448499&o&&(c.$$scope={dirty:o,ctx:e}),!n&&1&o&&(n=!0,c.toggle=e[0],_e(()=>n=!1)),t.$set(c);const l={};4096&o&&(l.heading=e[12].object_ownership_title),268448508&o&&(l.$$scope={dirty:o,ctx:e}),!i&&4&o&&(i=!0,l.toggle=e[2],_e(()=>i=!1)),s.$set(l);const a={};2048&o&&(a.nextText=e[11]),1024&o&&(a.nextDisabled=e[10]),r.$set(a)},i:function(e){l||(Te(t.$$.fragment,e),Te(s.$$.fragment,e),Te(r.$$.fragment,e),l=!0)},o:function(e){Le(t.$$.fragment,e),Le(s.$$.fragment,e),Le(r.$$.fragment,e),l=!1},d:function(e){e&&(Qe(o),Qe(c)),ze(t,e),ze(s,e),ze(r,e)}};return Je("SvelteRegisterBlock",{block:f,id:sa.name,type:"slot",source:'(210:0) <SubPage name=\\"bapa-settings\\" route=\\"/storage/security\\">',ctx:e}),f}function ia(e){let t,n;t=new zo({props:{name:"bapa-settings",route:"/storage/security",$$slots:{default:[sa]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};268451583&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ia.name,type:"component",source:"",ctx:e}),o}function ca(e,t,n,o,s,i){return s||i||!e&&t&&n&&!o}function ra(t,n,o){let s,i,c,r,l,a,u,f,$,g,h,w=e,b=()=>(w(),w=d(x,e=>o(5,a=e)),x);p(Tt,"revalidatingSettings"),m(t,Tt,e=>o(21,c=e)),p(Ct,"settings"),m(t,Ct,e=>o(22,r=e)),p($t,"current_settings"),m(t,$t,e=>o(4,l=e)),p(Lt,"needs_refresh"),m(t,Lt,e=>o(6,u=e)),p(It,"delivery_provider"),m(t,It,e=>o(7,f=e)),p(ht,"strings"),m(t,ht,e=>o(12,$=e)),p(gt,"defined_settings"),m(t,gt,e=>o(16,g=e)),p(At,"storage_provider"),m(t,At,e=>o(13,h=e)),t.$$.on_destroy.push(()=>w());let{$$slots:v={},$$scope:_}=n;it("SecuritySubPage",v,[]);const k=le();let x=ut(!1);p(x,"settingsLocked"),b(),pe("settingsLocked")&&b(x=ue("settingsLocked"));let P=!1;const S={...l},R={...g};let E=r["block-public-access"],j=!1,B=r["object-ownership-enforced"],N=!1,O=!1;async function T(){let e=await Dt.put("buckets",{bucket:r.bucket,blockPublicAccess:E,objectOwnershipEnforced:B});return!!e.hasOwnProperty("saved")&&e.saved}function L(e,t,n,o,s,i){return s||i?$.settings_locked:e!==t||n!==o?$.update_bucket_security:$.keep_bucket_security}async function D(){if(E===l["block-public-access"]&&B===l["object-ownership-enforced"])return void k("routeEvent",{event:"next",default:"/"});o(15,P=!0),Zt.pausePeriodicFetch();const e=await T();if(await Ct.fetch(),!1===e)return o(15,P=!1),await Zt.resumePeriodicFetch(),void ac();y(Tt,c=!0,c);const t=Zt.resumePeriodicFetch();k("routeEvent",{event:"bucket-security",data:{blockPublicAccess:r["block-public-access"],objectOwnershipEnforced:r["object-ownership-enforced"]},default:"/"}),await t,y(Tt,c=!1,c)}pe("initialSetup")&&(O=ue("initialSetup")),!O&&pe("initialSettings")&&ue("initialSettings").provider!==l.provider&&(O=!0);const C=[];return Object.keys(n).forEach(e=>{~C.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<SecuritySubPage> was created with unknown prop '${e}'`)}),t.$capture_state=()=>({createEventDispatcher:le,getContext:ue,hasContext:pe,writable:ut,slide:Jo,api:Dt,settings:Ct,strings:ht,current_settings:$t,storage_provider:At,delivery_provider:It,needs_refresh:Lt,revalidatingSettings:Tt,state:Zt,defined_settings:gt,scrollNotificationsIntoView:ac,needsRefresh:Sc,SubPage:zo,Panel:Cs,PanelRow:is,BackNextButtonsRow:Jc,Checkbox:Cl,dispatch:k,settingsLocked:x,saving:P,previousSettings:S,previousDefines:R,blockPublicAccess:E,bapaSetupConfirmed:j,objectOwnershipEnforced:B,ooeSetupConfirmed:N,initialSetup:O,updateBucketProperties:T,getNextText:L,getNextDisabled:ca,handleNext:D,nextDisabled:i,nextText:s,$revalidatingSettings:c,$settings:r,$current_settings:l,$settingsLocked:a,$needs_refresh:u,$delivery_provider:f,$strings:$,$defined_settings:g,$storage_provider:h}),t.$inject_state=e=>{"settingsLocked"in e&&b(o(8,x=e.settingsLocked)),"saving"in e&&o(15,P=e.saving),"blockPublicAccess"in e&&o(0,E=e.blockPublicAccess),"bapaSetupConfirmed"in e&&o(1,j=e.bapaSetupConfirmed),"objectOwnershipEnforced"in e&&o(2,B=e.objectOwnershipEnforced),"ooeSetupConfirmed"in e&&o(3,N=e.ooeSetupConfirmed),"initialSetup"in e&&o(9,O=e.initialSetup),"nextDisabled"in e&&o(10,i=e.nextDisabled),"nextText"in e&&o(11,s=e.nextText)},n&&"$$inject"in n&&t.$inject_state(n.$$inject),t.$$.update=()=>{98384&t.$$.dirty&&y(Lt,u=u||Sc(P,S,l,R,g),u),117&t.$$.dirty&&o(11,s=L(l["block-public-access"],E,l["object-ownership-enforced"],B,u,a)),255&t.$$.dirty&&o(10,i=ca(l["block-public-access"],E,f.block_public_access_supported,j,u,a)||ca(l["object-ownership-enforced"],B,f.object_ownership_supported,N,u,a))},[E,j,B,N,l,a,u,f,x,O,i,s,$,h,D,P,g,function(e){j=e,o(1,j)},function(e){E=e,o(0,E)},function(e){N=e,o(3,N)},function(e){B=e,o(2,B)}]}const{Object:la}=j,aa="ui/components/DeliveryPage.svelte";function ua(e,t,n){const o=e.slice();return o[31]=t[n],o}function pa(e){let t,n,s,i,c,r,l,a,u,p,d=e[31].edge_server_support_desc+"",f=e[31].signed_urls_support_desc+"";n=new Tc({props:{active:e[31].provider_key_name===e[1].provider_key_name,disabled:e[5],icon:e[31].icon,text:e[31].default_provider_service_name},$$inline:!0}),n.$on("click",function(){return e[18](e[31])}),a=new ws({props:{url:e[31].provider_service_quick_start_url,desc:e[8].view_quick_start_guide},$$inline:!0});const m={c:function(){t=C("div"),Ve(n.$$.fragment),s=H(),i=C("p"),c=H(),r=C("p"),l=H(),Ve(a.$$.fragment),u=H(),tt(i,"class","speed"),o(i,aa,166,6,5333),tt(r,"class","private-media"),o(r,aa,167,6,5402),tt(t,"class","row"),o(t,aa,158,5,5045)},m:function(e,o){Ze(e,t,o),We(n,t,null),Ge(t,s),Ge(t,i),i.innerHTML=d,Ge(t,c),Ge(t,r),r.innerHTML=f,Ge(t,l),We(a,t,null),Ge(t,u),p=!0},p:function(t,o){e=t;const s={};2&o[0]&&(s.active=e[31].provider_key_name===e[1].provider_key_name),32&o[0]&&(s.disabled=e[5]),n.$set(s);const i={};256&o[0]&&(i.desc=e[8].view_quick_start_guide),a.$set(i)},i:function(e){p||(Te(n.$$.fragment,e),Te(a.$$.fragment,e),p=!0)},o:function(e){Le(n.$$.fragment,e),Le(a.$$.fragment,e),p=!1},d:function(e){e&&Qe(t),ze(n),ze(a)}};return Je("SvelteRegisterBlock",{block:m,id:pa.name,type:"each",source:"(158:4) {#each supportedDeliveryProviders() as provider}",ctx:e}),m}function da(e){let t,n,o=st(e[9]()),s=[];for(let t=0;t<o.length;t+=1)s[t]=pa(ua(e,o,t));const i=e=>Le(s[e],1,1,()=>{s[e]=null}),c={c:function(){for(let e=0;e<s.length;e+=1)s[e].c();t=F()},m:function(e,o){for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,o);Ze(e,t,o),n=!0},p:function(e,n){if(1826&n[0]){let c;for(o=st(e[9]()),c=0;c<o.length;c+=1){const i=ua(e,o,c);s[c]?(s[c].p(i,n),Te(s[c],1)):(s[c]=pa(i),s[c].c(),Te(s[c],1),s[c].m(t.parentNode,t))}for(Ne(),c=o.length;c<s.length;c+=1)i(c);Oe()}},i:function(e){if(!n){for(let e=0;e<o.length;e+=1)Te(s[e]);n=!0}},o:function(e){s=s.filter(Boolean);for(let e=0;e<s.length;e+=1)Le(s[e]);n=!1},d:function(e){e&&Qe(t),D(s,e)}};return Je("SvelteRegisterBlock",{block:c,id:da.name,type:"slot",source:'(157:3) <PanelRow class=\\"body flex-column delivery-provider-buttons\\">',ctx:e}),c}function fa(e){let t,n;t=new is({props:{class:"body flex-column delivery-provider-buttons",$$slots:{default:[da]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};290&n[0]|8&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:fa.name,type:"slot",source:"(156:2) <Panel heading={$strings.select_delivery_provider_title} defined={defined} multi>",ctx:e}),o}function ma(e){let t,n;t=new Cs({props:{heading:e[8].enter_other_cdn_name_title,defined:e[3],multi:!0,$$slots:{default:[ga]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};256&n[0]&&(o.heading=e[8].enter_other_cdn_name_title),8&n[0]&&(o.defined=e[3]),388&n[0]|8&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ma.name,type:"if",source:"(175:2) {#if deliveryProvider.provider_service_name_override_allowed}",ctx:e}),o}function $a(e){let t,n,s,i;const c={c:function(){t=C("input"),tt(t,"type","text"),tt(t,"class","cdn-name"),tt(t,"id","cdn-name"),tt(t,"name","cdn-name"),tt(t,"minlength","4"),tt(t,"placeholder",n=e[8].enter_other_cdn_name_placeholder),t.disabled=e[7],o(t,aa,177,5,5832)},m:function(n,o){Ze(n,t,o),I(t,e[2]),s||(i=et(t,"input",e[19]),s=!0)},p:function(e,o){256&o[0]&&n!==(n=e[8].enter_other_cdn_name_placeholder)&&tt(t,"placeholder",n),128&o[0]&&nt(t,"disabled",e[7]),4&o[0]&&t.value!==e[2]&&I(t,e[2])},d:function(e){e&&Qe(t),s=!1,i()}};return Je("SvelteRegisterBlock",{block:c,id:$a.name,type:"slot",source:'(177:4) <PanelRow class=\\"body flex-column\\">',ctx:e}),c}function ga(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[$a]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};388&n[0]|8&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ga.name,type:"slot",source:"(176:3) <Panel heading={$strings.enter_other_cdn_name_title} defined={serviceNameDefined} multi>",ctx:e}),o}function ha(e){let t,n,s,i,c,r,l,a,u,p,d,f=e[8].delivery_title+"";t=new _o({props:{tab:e[0],tabParent:"media"},$$inline:!0}),l=new Cs({props:{heading:e[8].select_delivery_provider_title,defined:e[4],multi:!0,$$slots:{default:[fa]},$$scope:{ctx:e}},$$inline:!0});let m=e[1].provider_service_name_override_allowed&&ma(e);p=new Jc({props:{nextText:e[8].save_delivery_provider,nextDisabled:e[6],nextTitle:e[6]},$$inline:!0}),p.$on("next",e[11]);const $={c:function(){Ve(t.$$.fragment),n=H(),s=C("h2"),i=M(f),c=H(),r=C("div"),Ve(l.$$.fragment),a=H(),m&&m.c(),u=H(),Ve(p.$$.fragment),tt(s,"class","page-title"),o(s,aa,152,1,4728),tt(r,"class","delivery-provider-settings-page wrapper"),o(r,aa,154,1,4784)},m:function(e,o){We(t,e,o),Ze(e,n,o),Ze(e,s,o),Ge(s,i),Ze(e,c,o),Ze(e,r,o),We(l,r,null),Ge(r,a),m&&m.m(r,null),Ge(r,u),We(p,r,null),d=!0},p:function(e,n){const o={};1&n[0]&&(o.tab=e[0]),t.$set(o),(!d||256&n[0])&&f!==(f=e[8].delivery_title+"")&&ot(i,f);const s={};256&n[0]&&(s.heading=e[8].select_delivery_provider_title),16&n[0]&&(s.defined=e[4]),290&n[0]|8&n[1]&&(s.$$scope={dirty:n,ctx:e}),l.$set(s),e[1].provider_service_name_override_allowed?m?(m.p(e,n),2&n[0]&&Te(m,1)):(m=ma(e),m.c(),Te(m,1),m.m(r,u)):m&&(Ne(),Le(m,1,1,()=>{m=null}),Oe());const c={};256&n[0]&&(c.nextText=e[8].save_delivery_provider),64&n[0]&&(c.nextDisabled=e[6]),64&n[0]&&(c.nextTitle=e[6]),p.$set(c)},i:function(e){d||(Te(t.$$.fragment,e),Te(l.$$.fragment,e),Te(m),Te(p.$$.fragment,e),d=!0)},o:function(e){Le(t.$$.fragment,e),Le(l.$$.fragment,e),Le(m),Le(p.$$.fragment,e),d=!1},d:function(e){e&&(Qe(n),Qe(s),Qe(c),Qe(r)),ze(t,e),ze(l),m&&m.d(),ze(p)}};return Je("SvelteRegisterBlock",{block:$,id:ha.name,type:"slot",source:"(151:0) <Page {name} subpage on:routeEvent>",ctx:e}),$}function wa(e){let t,n;t=new In({props:{name:e[0],subpage:!0,$$slots:{default:[ha]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[20]);const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1&n[0]&&(o.name=e[0]),511&n[0]|8&n[1]&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:wa.name,type:"component",source:"",ctx:e}),o}function ba(e,t,n){let o,s,i,c,r,l,a,u,d,f,$,g,h,w,b;p(Tt,"revalidatingSettings"),m(e,Tt,e=>n(21,l=e)),p(Ct,"settings"),m(e,Ct,e=>n(22,a=e)),p(Lt,"needs_refresh"),m(e,Lt,e=>n(14,u=e)),p(mt,"settingsLocked"),m(e,mt,e=>n(15,d=e)),p(ht,"strings"),m(e,ht,e=>n(8,f=e)),p(It,"delivery_provider"),m(e,It,e=>n(23,$=e)),p(At,"storage_provider"),m(e,At,e=>n(24,g=e)),p(Kt,"delivery_providers"),m(e,Kt,e=>n(25,h=e)),p(gt,"defined_settings"),m(e,gt,e=>n(16,w=e)),p($t,"current_settings"),m(e,$t,e=>n(17,b=e));let{$$slots:v={},$$scope:_}=t;it("DeliveryPage",v,[]);const k=le();let{name:x="delivery-provider"}=t,{params:P={}}=t;const S=P;ae("settingsLocked",mt);let R=!1;const E={...b},j={...w};let B={...$},N=a["delivery-provider-service-name"];function O(){return Object.values(h).filter(e=>0===e.supported_storage_providers.length||e.supported_storage_providers.includes(g.provider_key_name))}function T(e,t,n,o){let s="";return n||o?s=f.settings_locked:e.provider_service_name_override_allowed&&t.trim().length<1?s=f.no_delivery_provider_name:e.provider_service_name_override_allowed&&t.trim().length<4?s=f.delivery_provider_name_short:B.provider_key_name===$.provider_key_name&&t===a["delivery-provider-service-name"]&&(s=f.nothing_to_save),s}function L(e){s||n(1,B=e)}async function D(){n(13,R=!0),Zt.pausePeriodicFetch(),y(Ct,a["delivery-provider"]=B.provider_key_name,a),y(Ct,a["delivery-provider-service-name"]=N,a);const e=await Ct.save();if(e.hasOwnProperty("saved")&&!e.saved)return Ct.reset(),n(13,R=!1),await Zt.resumePeriodicFetch(),void ac();y(Tt,l=!0,l);const t=Zt.resumePeriodicFetch();k("routeEvent",{event:"settings.save",data:e,default:"/media/delivery"}),await t,y(Tt,l=!1,l)}const C=["name","params"];la.keys(t).forEach(e=>{~C.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<DeliveryPage> was created with unknown prop '${e}'`)});return e.$$set=e=>{"name"in e&&n(0,x=e.name),"params"in e&&n(12,P=e.params)},e.$capture_state=()=>({createEventDispatcher:le,setContext:ae,strings:ht,settings:Ct,storage_provider:At,delivery_providers:Kt,delivery_provider:It,defined_settings:gt,settingsLocked:mt,current_settings:$t,needs_refresh:Lt,revalidatingSettings:Tt,state:Zt,scrollNotificationsIntoView:ac,needsRefresh:Sc,Page:In,Notifications:_o,Panel:Cs,PanelRow:is,TabButton:Tc,BackNextButtonsRow:Jc,HelpButton:ws,dispatch:k,name:x,params:P,_params:S,saving:R,previousSettings:E,previousDefines:j,deliveryProvider:B,serviceName:N,supportedDeliveryProviders:O,getNextDisabledMessage:T,handleChooseProvider:L,handleNext:D,disabled:s,nextDisabledMessage:r,serviceNameDefined:i,serviceNameDisabled:c,defined:o,$revalidatingSettings:l,$settings:a,$needs_refresh:u,$settingsLocked:d,$strings:f,$delivery_provider:$,$storage_provider:g,$delivery_providers:h,$defined_settings:w,$current_settings:b}),e.$inject_state=e=>{"name"in e&&n(0,x=e.name),"params"in e&&n(12,P=e.params),"saving"in e&&n(13,R=e.saving),"deliveryProvider"in e&&n(1,B=e.deliveryProvider),"serviceName"in e&&n(2,N=e.serviceName),"disabled"in e&&n(5,s=e.disabled),"nextDisabledMessage"in e&&n(6,r=e.nextDisabledMessage),"serviceNameDefined"in e&&n(3,i=e.serviceNameDefined),"serviceNameDisabled"in e&&n(7,c=e.serviceNameDisabled),"defined"in e&&n(4,o=e.defined)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{221184&e.$$.dirty[0]&&y(Lt,u=u||Sc(R,E,b,j,w),u),65536&e.$$.dirty[0]&&n(4,o=w.includes("delivery-provider")),32784&e.$$.dirty[0]&&n(5,s=o||d),65536&e.$$.dirty[0]&&n(3,i=w.includes("delivery-provider-service-name")),32776&e.$$.dirty[0]&&n(7,c=i||d),49158&e.$$.dirty[0]&&n(6,r=T(B,N,d,u))},[x,B,N,i,o,s,r,c,f,O,L,D,P,R,u,d,w,b,e=>L(e),function(){N=this.value,n(2,N)},function(t){de.call(this,e,t)}]}const va=[{position:0,name:"media-library",title:()=>f(ht).media_tab_title,nav:!0,route:"/",routeMatcher:/^\/(media\/.*)*$/,component:class extends rt{constructor(e){super(e),Xe(this,e,yc,vc,l,{name:0,params:5}),Je("SvelteRegisterComponent",{component:this,tagName:"MediaPage",options:e,id:vc.name})}get name(){throw new Error("<MediaPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<MediaPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get params(){throw new Error("<MediaPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set params(e){throw new Error("<MediaPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}},default:!0},{position:200,name:"storage",route:"/storage/*",component:class extends rt{constructor(e){super(e),Xe(this,e,Pc,kc,l,{name:0,params:3}),Je("SvelteRegisterComponent",{component:this,tagName:"StoragePage",options:e,id:kc.name})}get name(){throw new Error("<StoragePage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<StoragePage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get params(){throw new Error("<StoragePage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set params(e){throw new Error("<StoragePage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}},{position:210,name:"storage-provider",title:()=>f(ht).storage_provider_tab_title,subNav:!0,route:"/storage/provider",component:class extends rt{constructor(e){super(e),Xe(this,e,zr,Wr,l,{params:19},null,[-1,-1]),Je("SvelteRegisterComponent",{component:this,tagName:"StorageProviderSubPage",options:e,id:Wr.name})}get params(){throw new Error("<StorageProviderSubPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set params(e){throw new Error("<StorageProviderSubPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}},default:!0,events:{"page.initial.settings":e=>{if(e.hasOwnProperty("location")&&f(Et)&&!f(St)){for(const t of["/storage","/media","/delivery"])if(e.location.startsWith(t))return!0;return"/"===e.location}return!1}}},{position:220,name:"bucket",title:()=>f(ht).bucket_tab_title,subNav:!0,route:"/storage/bucket",component:class extends rt{constructor(e){super(e),Xe(this,e,Ol,Nl,l,{},null,[-1,-1]),Je("SvelteRegisterComponent",{component:this,tagName:"BucketSettingsSubPage",options:e,id:Nl.name})}},enabled:()=>!f(Et),events:{"page.initial.settings":e=>{if(e.hasOwnProperty("location")&&!f(Et)&&!f(St)){for(const t of["/storage","/media","/delivery"])if(e.location.startsWith(t))return!0;return"/"===e.location}return!1},"settings.save":e=>"/storage/provider"===f(Rn)&&!f(Et)}},{position:230,name:"security",title:()=>f(ht).security_tab_title,subNav:!0,route:"/storage/security",component:class extends rt{constructor(e){super(e),Xe(this,e,ra,ia,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"SecuritySubPage",options:e,id:ia.name})}},enabled:()=>f(Rt)&&!f(At).requires_acls,events:{"settings.save":e=>!("/storage/bucket"!==f(Rn)||!f(Rt)||f(At).requires_acls||e.hasOwnProperty("bucketSource")&&"new"===e.bucketSource&&e.hasOwnProperty("initialSettings")&&e.initialSettings.hasOwnProperty("bucket")&&!(e.initialSettings.bucket.length>0)&&e.hasOwnProperty("settings")&&e.settings.hasOwnProperty("use-bucket-acls")&&(e.settings["use-bucket-acls"]||!f(It).requires_acls))}},{position:300,name:"delivery",route:"/delivery/*",component:class extends rt{constructor(e){super(e),Xe(this,e,ba,wa,l,{name:0,params:12},null,[-1,-1]),Je("SvelteRegisterComponent",{component:this,tagName:"DeliveryPage",options:e,id:wa.name})}get name(){throw new Error("<DeliveryPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<DeliveryPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get params(){throw new Error("<DeliveryPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set params(e){throw new Error("<DeliveryPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}}],ya="ui/pro/AssetsSettingsHeaderRow.svelte";function _a(e){let t,n,s,i,c,r,l,a,p,d=e[1].assets_panel_header+"",f=e[1].assets_panel_header_details+"";const m={c:function(){t=C("img"),s=H(),i=C("div"),c=C("h3"),r=M(d),l=H(),a=C("p"),p=M(f),u(t.src,n=e[0].assets+"img/icon/assets.svg")||tt(t,"src",n),tt(t,"alt","foo"),tt(t,"class","svelte-1m7cok0"),o(t,ya,7,1,155),tt(c,"class","svelte-1m7cok0"),o(c,ya,9,2,249),tt(a,"class","console-details svelte-1m7cok0"),o(a,ya,10,2,291),tt(i,"class","assets-details svelte-1m7cok0"),o(i,ya,8,1,218)},m:function(e,n){Ze(e,t,n),Ze(e,s,n),Ze(e,i,n),Ge(i,c),Ge(c,r),Ge(i,l),Ge(i,a),Ge(a,p)},p:function(e,o){1&o&&!u(t.src,n=e[0].assets+"img/icon/assets.svg")&&tt(t,"src",n),2&o&&d!==(d=e[1].assets_panel_header+"")&&ot(r,d),2&o&&f!==(f=e[1].assets_panel_header_details+"")&&ot(p,f)},d:function(e){e&&(Qe(t),Qe(s),Qe(i))}};return Je("SvelteRegisterBlock",{block:m,id:_a.name,type:"slot",source:'(7:0) <PanelRow header class=\\"assets\\">',ctx:e}),m}function ka(e){let t,n;t=new is({props:{header:!0,class:"assets",$$slots:{default:[_a]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};7&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ka.name,type:"component",source:"",ctx:e}),o}function xa(e,t,n){let o,s;p(bt,"urls"),m(e,bt,e=>n(0,o=e)),p(ht,"strings"),m(e,ht,e=>n(1,s=e));let{$$slots:i={},$$scope:c}=t;it("AssetsSettingsHeaderRow",i,[]);const r=[];return Object.keys(t).forEach(e=>{~r.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<AssetsSettingsHeaderRow> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({strings:ht,urls:bt,PanelRow:is,$urls:o,$strings:s}),[o,s]}class Pa extends rt{constructor(e){super(e),Xe(this,e,xa,ka,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"AssetsSettingsHeaderRow",options:e,id:ka.name})}}function Sa(e){let t,n,o,s,i,c,r,l,a,u,p;function d(t){e[3](t)}function f(t){e[4](t)}t=new Pa({$$inline:!0}),o=new ti({props:{section:"assets"},$$inline:!0});let m={heading:e[0].assets_rewrite_urls,description:e[0].assets_rewrite_urls_desc,placeholder:"assets.example.com",toggleName:"rewrite-urls",textName:"domain",definedSettings:un,validator:e[2]};function $(t){e[5](t)}void 0!==e[1]["rewrite-urls"]&&(m.toggle=e[1]["rewrite-urls"]),void 0!==e[1].domain&&(m.text=e[1].domain),i=new ki({props:m,$$inline:!0}),me.push(()=>qe(i,"toggle",d)),me.push(()=>qe(i,"text",f));let g={heading:e[0].assets_force_https,description:e[0].assets_force_https_desc,toggleName:"force-https",definedSettings:un};void 0!==e[1]["force-https"]&&(g.toggle=e[1]["force-https"]),a=new ki({props:g,$$inline:!0}),me.push(()=>qe(a,"toggle",$));const h={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment),s=H(),Ve(i.$$.fragment),l=H(),Ve(a.$$.fragment)},m:function(e,c){We(t,e,c),Ze(e,n,c),We(o,e,c),Ze(e,s,c),We(i,e,c),Ze(e,l,c),We(a,e,c),p=!0},p:function(e,t){const n={};1&t&&(n.heading=e[0].assets_rewrite_urls),1&t&&(n.description=e[0].assets_rewrite_urls_desc),!c&&2&t&&(c=!0,n.toggle=e[1]["rewrite-urls"],_e(()=>c=!1)),!r&&2&t&&(r=!0,n.text=e[1].domain,_e(()=>r=!1)),i.$set(n);const o={};1&t&&(o.heading=e[0].assets_force_https),1&t&&(o.description=e[0].assets_force_https_desc),!u&&2&t&&(u=!0,o.toggle=e[1]["force-https"],_e(()=>u=!1)),a.$set(o)},i:function(e){p||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),Te(i.$$.fragment,e),Te(a.$$.fragment,e),p=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),Le(i.$$.fragment,e),Le(a.$$.fragment,e),p=!1},d:function(e){e&&(Qe(n),Qe(s),Qe(l)),ze(t,e),ze(o,e),ze(i,e),ze(a,e)}};return Je("SvelteRegisterBlock",{block:h,id:Sa.name,type:"slot",source:'(36:0) <Panel name=\\"settings\\" class=\\"assets-panel\\" heading={$strings.assets_title} helpKey=\\"assets-pull\\">',ctx:e}),h}function Ra(e){let t,n;t=new Cs({props:{name:"settings",class:"assets-panel",heading:e[0].assets_title,helpKey:"assets-pull",$$slots:{default:[Sa]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.heading=e[0].assets_title),131&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ra.name,type:"component",source:"",ctx:e}),o}function Ea(e,t,n){let o,s,i;p(ht,"strings"),m(e,ht,e=>n(0,o=e)),p(bt,"urls"),m(e,bt,e=>n(6,s=e)),p(dn,"assetsSettings"),m(e,dn,e=>n(1,i=e));let{$$slots:c={},$$scope:r}=t;function l(e){let t="";return 0===e.trim().length?t=o.domain_blank:!0===/[^a-z0-9.-]/.test(e)?t=o.domain_invalid_content:e.length<3?t=o.domain_too_short:e===s.home_domain&&(t=o.assets_domain_same_as_site),t}it("AssetsSettings",c,[]);const a=[];return Object.keys(t).forEach(e=>{~a.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<AssetsSettings> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({strings:ht,urls:bt,assetsSettings:dn,assetsDefinedSettings:un,AssetsSettingsHeaderRow:Pa,Panel:Cs,SettingsPanelOption:ki,SettingsValidationStatusRow:ti,validator:l,$strings:o,$urls:s,$assetsSettings:i}),[o,i,l,function(t){e.$$.not_equal(i["rewrite-urls"],t)&&(i["rewrite-urls"]=t,dn.set(i))},function(t){e.$$.not_equal(i.domain,t)&&(i.domain=t,dn.set(i))},function(t){e.$$.not_equal(i["force-https"],t)&&(i["force-https"]=t,dn.set(i))}]}class ja extends rt{constructor(e){super(e),Xe(this,e,Ea,Ra,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"AssetsSettings",options:e,id:Ra.name})}}const Ba="ui/components/Upsell.svelte",Na=e=>({}),Oa=e=>({}),Ta=e=>({}),La=e=>({});function Da(e,t,n){const o=e.slice();return o[3]=t[n],o}const Ca=e=>({}),Ma=e=>({}),Ha=e=>({}),Fa=e=>({});function Aa(e){let t,n,s,i,c,r,l,a,p=e[3].text+"";const d={c:function(){t=C("li"),n=C("img"),c=H(),r=C("span"),l=M(p),a=H(),u(n.src,s=e[3].icon)||tt(n,"src",s),tt(n,"alt",i=e[3].alt),tt(n,"class","svelte-5j10or"),o(n,Ba,20,5,398),o(r,Ba,21,5,450),tt(t,"class","svelte-5j10or"),o(t,Ba,19,4,388)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(t,c),Ge(t,r),Ge(r,l),Ge(t,a)},p:function(e,t){1&t&&!u(n.src,s=e[3].icon)&&tt(n,"src",s),1&t&&i!==(i=e[3].alt)&&tt(n,"alt",i),1&t&&p!==(p=e[3].text+"")&&ot(l,p)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:d,id:Aa.name,type:"each",source:"(19:3) {#each benefits as benefit}",ctx:e}),d}function Ka(e){let t,n,s,i,c,r,l,a,u,p,d,f,m;const g=e[1].heading,v=$(g,e,e[2],Fa),y=e[1].description,_=$(y,e,e[2],Ma);let k=st(e[0]),x=[];for(let t=0;t<k.length;t+=1)x[t]=Aa(Da(e,k,t));const P=e[1]["call-to-action"],S=$(P,e,e[2],La),R=e[1]["call-to-action-note"],E=$(R,e,e[2],Oa),j={c:function(){t=C("div"),n=H(),s=C("div"),i=C("div"),v&&v.c(),c=H(),r=C("div"),_&&_.c(),l=H(),a=C("div");for(let e=0;e<x.length;e+=1)x[e].c();u=H(),p=C("div"),S&&S.c(),d=H(),f=C("div"),E&&E.c(),tt(t,"class","branding"),o(t,Ba,7,1,136),tt(i,"class","heading svelte-5j10or"),o(i,Ba,9,2,190),tt(r,"class","description svelte-5j10or"),o(r,Ba,13,2,256),tt(a,"class","benefits svelte-5j10or"),o(a,Ba,17,2,330),tt(f,"class","note svelte-5j10or"),o(f,Ba,28,3,582),tt(p,"class","call-to-action svelte-5j10or"),o(p,Ba,26,2,511),tt(s,"class","content svelte-5j10or"),o(s,Ba,8,1,166)},m:function(e,o){Ze(e,t,o),Ze(e,n,o),Ze(e,s,o),Ge(s,i),v&&v.m(i,null),Ge(s,c),Ge(s,r),_&&_.m(r,null),Ge(s,l),Ge(s,a);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(a,null);Ge(s,u),Ge(s,p),S&&S.m(p,null),Ge(p,d),Ge(p,f),E&&E.m(f,null),m=!0},p:function(e,t){if(v&&v.p&&(!m||4&t)&&w(v,g,e,e[2],m?h(g,e[2],t,Ha):b(e[2]),Fa),_&&_.p&&(!m||4&t)&&w(_,y,e,e[2],m?h(y,e[2],t,Ca):b(e[2]),Ma),1&t){let n;for(k=st(e[0]),n=0;n<k.length;n+=1){const o=Da(e,k,n);x[n]?x[n].p(o,t):(x[n]=Aa(o),x[n].c(),x[n].m(a,null))}for(;n<x.length;n+=1)x[n].d(1);x.length=k.length}S&&S.p&&(!m||4&t)&&w(S,P,e,e[2],m?h(P,e[2],t,Ta):b(e[2]),La),E&&E.p&&(!m||4&t)&&w(E,R,e,e[2],m?h(R,e[2],t,Na):b(e[2]),Oa)},i:function(e){m||(Te(v,e),Te(_,e),Te(S,e),Te(E,e),m=!0)},o:function(e){Le(v,e),Le(_,e),Le(S,e),Le(E,e),m=!1},d:function(e){e&&(Qe(t),Qe(n),Qe(s)),v&&v.d(e),_&&_.d(e),D(x,e),S&&S.d(e),E&&E.d(e)}};return Je("SvelteRegisterBlock",{block:j,id:Ka.name,type:"slot",source:'(7:0) <Panel name=\\"upsell\\" class=\\"upsell-panel\\">',ctx:e}),j}function Ia(e){let t,n;t=new Cs({props:{name:"upsell",class:"upsell-panel",$$slots:{default:[Ka]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};5&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ia.name,type:"component",source:"",ctx:e}),o}function Ua(e,t,n){let{$$slots:o={},$$scope:s}=t;it("Upsell",o,["heading","description","call-to-action","call-to-action-note"]);let{benefits:i}=t;e.$$.on_mount.push(function(){void 0!==i||"benefits"in t||e.$$.bound[e.$$.props.benefits]||console.warn("<Upsell> was created without expected prop 'benefits'")});const c=["benefits"];return Object.keys(t).forEach(e=>{~c.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Upsell> was created with unknown prop '${e}'`)}),e.$$set=e=>{"benefits"in e&&n(0,i=e.benefits),"$$scope"in e&&n(2,s=e.$$scope)},e.$capture_state=()=>({Panel:Cs,benefits:i}),e.$inject_state=e=>{"benefits"in e&&n(0,i=e.benefits)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[i,o,s]}class qa extends rt{constructor(e){super(e),Xe(this,e,Ua,Ia,l,{benefits:0}),Je("SvelteRegisterComponent",{component:this,tagName:"Upsell",options:e,id:Ia.name})}get benefits(){throw new Error("<Upsell>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set benefits(e){throw new Error("<Upsell>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Va="ui/pro/AssetsUpgrade.svelte";function Wa(e){let t,n,s=e[0].assets_upsell_heading+"";const i={c:function(){t=C("div"),n=M(s),tt(t,"slot","heading"),o(t,Va,24,1,535)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,t){1&t&&s!==(s=e[0].assets_upsell_heading+"")&&ot(n,s)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:i,id:Wa.name,type:"slot",source:"(25:1) ",ctx:e}),i}function za(e){let t,n=e[0].assets_upsell_description+"";const s={c:function(){t=C("div"),tt(t,"slot","description"),o(t,Va,26,1,596)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o&&n!==(n=e[0].assets_upsell_description+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:za.name,type:"slot",source:"(27:1) ",ctx:e}),s}function Xa(e){let t,n,s,i,c,r,l=e[0].assets_upsell_cta+"";const a={c:function(){t=C("a"),n=C("img"),i=H(),c=M(l),u(n.src,s=e[1].assets+"img/icon/stars.svg")||tt(n,"src",s),tt(n,"alt","stars icon"),U(n,"margin-right","5px"),o(n,Va,29,2,769),tt(t,"slot","call-to-action"),tt(t,"href",r=e[1].upsell_discount_assets),tt(t,"class","button btn-lg btn-primary"),o(t,Va,28,1,671)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(t,i),Ge(t,c)},p:function(e,o){2&o&&!u(n.src,s=e[1].assets+"img/icon/stars.svg")&&tt(n,"src",s),1&o&&l!==(l=e[0].assets_upsell_cta+"")&&ot(c,l),2&o&&r!==(r=e[1].upsell_discount_assets)&&tt(t,"href",r)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:a,id:Xa.name,type:"slot",source:"(29:1) ",ctx:e}),a}function Ya(e){let t,n=e[0].assets_upsell_cta_note+"";const s={c:function(){t=C("div"),tt(t,"slot","call-to-action-note"),o(t,Va,33,1,900)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o&&n!==(n=e[0].assets_upsell_cta_note+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:Ya.name,type:"slot",source:"(34:1) ",ctx:e}),s}function Ja(e){let t,n;t=new qa({props:{benefits:e[2],$$slots:{"call-to-action-note":[Ya],"call-to-action":[Xa],description:[za],heading:[Wa]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};11&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ja.name,type:"component",source:"",ctx:e}),o}function Ga(e,t,n){let o,s;p(ht,"strings"),m(e,ht,e=>n(0,o=e)),p(bt,"urls"),m(e,bt,e=>n(1,s=e));let{$$slots:i={},$$scope:c}=t;it("AssetsUpgrade",i,[]);let r=[{icon:s.assets+"img/icon/fonts.svg",alt:"js icon",text:o.assets_uppsell_benefits.js},{icon:s.assets+"img/icon/css.svg",alt:"css icon",text:o.assets_uppsell_benefits.css},{icon:s.assets+"img/icon/fonts.svg",alt:"fonts icon",text:o.assets_uppsell_benefits.fonts}];const l=[];return Object.keys(t).forEach(e=>{~l.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<AssetsUpgrade> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({strings:ht,urls:bt,Upsell:qa,benefits:r,$strings:o,$urls:s}),e.$inject_state=e=>{"benefits"in e&&n(2,r=e.benefits)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[o,s,r]}class Za extends rt{constructor(e){super(e),Xe(this,e,Ga,Ja,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"AssetsUpgrade",options:e,id:Ja.name})}}function Qa(e){let t,n;t=new Za({$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Qa.name,type:"else",source:"(27:2) {:else}",ctx:e}),o}function eu(e){let t,n;t=new ja({$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:eu.name,type:"if",source:"(25:2) {#if $enableAssets}",ctx:e}),o}function tu(e){let t,n,s,i,c,r;t=new _o({props:{tab:e[0]},$$inline:!0});const l=[eu,Qa],a=[];function u(e,t){return e[1]?0:1}i=u(e),c=a[i]=l[i](e);const p={c:function(){Ve(t.$$.fragment),n=H(),s=C("div"),c.c(),tt(s,"class","assets-page wrapper"),o(s,"ui/pro/AssetsPage.svelte",23,1,716)},m:function(e,o){We(t,e,o),Ze(e,n,o),Ze(e,s,o),a[i].m(s,null),r=!0},p:function(e,n){const o={};1&n&&(o.tab=e[0]),t.$set(o);let r=i;i=u(e),i!==r&&(Ne(),Le(a[r],1,1,()=>{a[r]=null}),Oe(),c=a[i],c||(c=a[i]=l[i](e),c.c()),Te(c,1),c.m(s,null))},i:function(e){r||(Te(t.$$.fragment,e),Te(c),r=!0)},o:function(e){Le(t.$$.fragment,e),Le(c),r=!1},d:function(e){e&&(Qe(n),Qe(s)),ze(t,e),a[i].d()}};return Je("SvelteRegisterBlock",{block:p,id:tu.name,type:"slot",source:"(22:0) <Page {name} on:routeEvent initialSettings={currentAssetsSettings}>",ctx:e}),p}function nu(e){let t,n,o,s;t=new In({props:{name:e[0],initialSettings:an,$$slots:{default:[tu]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[2]),o=new gc({props:{settingsStore:dn,settingsChangedStore:fn},$$inline:!0}),o.$on("routeEvent",e[3]);const i={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,i){We(t,e,i),Ze(e,n,i),We(o,e,i),s=!0},p:function(e,[n]){const o={};1&n&&(o.name=e[0]),19&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){s||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),s=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),s=!1},d:function(e){e&&Qe(n),ze(t,e),ze(o,e)}};return Je("SvelteRegisterBlock",{block:i,id:nu.name,type:"component",source:"",ctx:e}),i}function ou(e,t,n){let o;p(pn,"enableAssets"),m(e,pn,e=>n(1,o=e));let{$$slots:s={},$$scope:i}=t;it("AssetsPage",s,[]);let{name:c="assets"}=t;ae("settingsLocked",ln);const r=["name"];return Object.keys(t).forEach(e=>{~r.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<AssetsPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,c=e.name)},e.$capture_state=()=>({assetsSettings:dn,assetsSettingsChanged:fn,assetsSettingsLocked:ln,currentAssetsSettings:an,enableAssets:pn,Page:In,Notifications:_o,AssetsSettings:ja,AssetsUpgrade:Za,Footer:gc,setContext:ae,name:c,$enableAssets:o}),e.$inject_state=e=>{"name"in e&&n(0,c=e.name)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[c,o,function(t){de.call(this,e,t)},function(t){de.call(this,e,t)}]}class su extends rt{constructor(e){super(e),Xe(this,e,ou,nu,l,{name:0}),Je("SvelteRegisterComponent",{component:this,tagName:"AssetsPage",options:e,id:nu.name})}get name(){throw new Error("<AssetsPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<AssetsPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const iu="ui/pro/ToolNotification.svelte";function cu(e,t,n){const o=e.slice();return o[9]=t[n],o[11]=n,o}function ru(e,t,n){const o=e.slice();return o[12]=t[n],o[11]=n,o}function lu(e){let t,n;t=new uo({props:{notification:e[0],$$slots:{default:[uu]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1&n&&(o.notification=e[0]),128&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:lu.name,type:"else",source:"(72:0) {:else}",ctx:e}),o}function au(e){let t,n,o;function s(t){e[6](t)}let i={notification:e[0],expandable:!0,$$slots:{details:[mu]},$$scope:{ctx:e}};void 0!==e[1]&&(i.expanded=e[1]),t=new uo({props:i,$$inline:!0}),me.push(()=>qe(t,"expanded",s));const c={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),o=!0},p:function(e,o){const s={};1&o&&(s.notification=e[0]),135&o&&(s.$$scope={dirty:o,ctx:e}),!n&&2&o&&(n=!0,s.expanded=e[1],_e(()=>n=!1)),t.$set(s)},i:function(e){o||(Te(t.$$.fragment,e),o=!0)},o:function(e){Le(t.$$.fragment,e),o=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:au.name,type:"if",source:'(47:0) {#if notification.hasOwnProperty( \\"class\\" ) && notification.class === \\"tool-error\\" && notification.hasOwnProperty( \\"errors\\" )}',ctx:e}),c}function uu(e){let t;const n=e[4].default,o=$(n,e,e[7],null),s={c:function(){o&&o.c()},m:function(e,n){o&&o.m(e,n),t=!0},p:function(e,s){o&&o.p&&(!t||128&s)&&w(o,n,e,e[7],t?h(n,e[7],s,null):b(e[7]),null)},i:function(e){t||(Te(o,e),t=!0)},o:function(e){Le(o,e),t=!1},d:function(e){o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:uu.name,type:"slot",source:"(73:1) <Notification notification={notification}>",ctx:e}),s}function pu(e){let t,n,s,i=st(e[0].errors.details),c=[];for(let t=0;t<i.length;t+=1)c[t]=fu(cu(e,i,t));const r=e=>Le(c[e],1,1,()=>{c[e]=null}),l={c:function(){t=C("div");for(let e=0;e<c.length;e+=1)c[e].c();tt(t,"class","details"),o(t,iu,50,4,1221)},m:function(e,n){Ze(e,t,n);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(t,null);s=!0},p:function(e,n){if(13&n){let o;for(i=st(e[0].errors.details),o=0;o<i.length;o+=1){const s=cu(e,i,o);c[o]?(c[o].p(s,n),Te(c[o],1)):(c[o]=fu(s),c[o].c(),Te(c[o],1),c[o].m(t,null))}for(Ne(),o=i.length;o<c.length;o+=1)r(o);Oe()}},i:function(e){if(!s){for(let e=0;e<i.length;e+=1)Te(c[e]);e&&ye(()=>{s&&(n||(n=Ce(t,Jo,{},!0)),n.run(1))}),s=!0}},o:function(e){c=c.filter(Boolean);for(let e=0;e<c.length;e+=1)Le(c[e]);e&&(n||(n=Ce(t,Jo,{},!1)),n.run(0)),s=!1},d:function(e){e&&Qe(t),D(c,e),e&&n&&n.end()}};return Je("SvelteRegisterBlock",{block:l,id:pu.name,type:"if",source:"(50:3) {#if expanded}",ctx:e}),l}function du(e){let t,n=e[12]+"";const s={c:function(){t=C("li"),o(t,iu,62,9,1779)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o&&n!==(n=e[12]+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:du.name,type:"each",source:"(62:8) {#each item.messages as message, index}",ctx:e}),s}function fu(e){let t,n,s,i,c,r,l,a,u,p,d,f,m,$,g,h,w,b,v,y=e[11]+1+". "+e[9].source_type_name,_=e[9].source_id+"",k=e[2].dismiss+"";function x(){return e[5](e[9])}let P=st(e[9].messages),S=[];for(let t=0;t<P.length;t+=1)S[t]=du(ru(e,P,t));const R={c:function(){t=C("div"),n=C("div"),s=C("div"),i=M(y),c=H(),r=C("a"),l=M("#"),a=M(_),p=H(),d=C("button"),f=M(k),m=H(),$=C("ul");for(let e=0;e<S.length;e+=1)S[e].c();g=H(),tt(r,"href",u=e[9].edit_url.url),o(r,iu,56,9,1477),tt(s,"class","title"),o(s,iu,54,8,1394),tt(d,"class","dismiss"),o(d,iu,58,8,1550),tt(n,"class","summary"),o(n,iu,53,7,1364),tt($,"class","detail"),o($,iu,60,7,1702),tt(t,"class","item"),o(t,iu,52,6,1322)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s),Ge(s,i),Ge(s,c),Ge(s,r),Ge(r,l),Ge(r,a),Ge(n,p),Ge(n,d),Ge(d,f),Ge(t,m),Ge(t,$);for(let e=0;e<S.length;e+=1)S[e]&&S[e].m($,null);Ge(t,g),w=!0,b||(v=et(d,"click",K(x),!1,!0,!1,!1),b=!0)},p:function(t,n){if(e=t,(!w||1&n)&&y!==(y=e[11]+1+". "+e[9].source_type_name)&&ot(i,y),(!w||1&n)&&_!==(_=e[9].source_id+"")&&ot(a,_),(!w||1&n&&u!==(u=e[9].edit_url.url))&&tt(r,"href",u),(!w||4&n)&&k!==(k=e[2].dismiss+"")&&ot(f,k),1&n){let t;for(P=st(e[9].messages),t=0;t<P.length;t+=1){const o=ru(e,P,t);S[t]?S[t].p(o,n):(S[t]=du(o),S[t].c(),S[t].m($,null))}for(;t<S.length;t+=1)S[t].d(1);S.length=P.length}},i:function(e){w||(e&&ye(()=>{w&&(h||(h=Ce(t,Yo,{},!0)),h.run(1))}),w=!0)},o:function(e){e&&(h||(h=Ce(t,Yo,{},!1)),h.run(0)),w=!1},d:function(e){e&&Qe(t),D(S,e),e&&h&&h.end(),b=!1,v()}};return Je("SvelteRegisterBlock",{block:R,id:fu.name,type:"each",source:"(52:5) {#each notification.errors.details as item, index}",ctx:e}),R}function mu(e){let t,n,o=e[1]&&pu(e);const s={c:function(){o&&o.c(),t=F()},m:function(e,s){o&&o.m(e,s),Ze(e,t,s),n=!0},p:function(e,n){e[1]?o?(o.p(e,n),2&n&&Te(o,1)):(o=pu(e),o.c(),Te(o,1),o.m(t.parentNode,t)):o&&(Ne(),Le(o,1,1,()=>{o=null}),Oe())},i:function(e){n||(Te(o),n=!0)},o:function(e){Le(o),n=!1},d:function(e){e&&Qe(t),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:mu.name,type:"slot",source:'(49:2) <svelte:fragment slot=\\"details\\">',ctx:e}),s}function $u(e){let t,n,o,s,i;const c=[au,lu],r=[];function l(e,n){return 1&n&&(t=null),null==t&&(t=!(!e[0].hasOwnProperty("class")||"tool-error"!==e[0].class||!e[0].hasOwnProperty("errors"))),t?0:1}n=l(e,-1),o=r[n]=c[n](e);const a={c:function(){o.c(),s=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,t){r[n].m(e,t),Ze(e,s,t),i=!0},p:function(e,[t]){let i=n;n=l(e,t),n===i?r[n].p(e,t):(Ne(),Le(r[i],1,1,()=>{r[i]=null}),Oe(),o=r[n],o?o.p(e,t):(o=r[n]=c[n](e),o.c()),Te(o,1),o.m(s.parentNode,s))},i:function(e){i||(Te(o),i=!0)},o:function(e){Le(o),i=!1},d:function(e){e&&Qe(s),r[n].d(e)}};return Je("SvelteRegisterBlock",{block:a,id:$u.name,type:"component",source:"",ctx:e}),a}function gu(e,t,n){let o;p(ht,"strings"),m(e,ht,e=>n(2,o=e));let{$$slots:s={},$$scope:i}=t;it("ToolNotification",s,["default"]);let{notification:c}=t,r=!0;async function l(e,t){await Dt.delete("tools",{id:e,blog_id:t.blog_id,source_type:t.source_type,source_id:t.source_id})}async function a(e,t,n){await Dt.delete("tools",{id:e,blog_id:t.blog_id,source_type:t.source_type,source_id:t.source_id,errors:n})}e.$$.on_mount.push(function(){void 0!==c||"notification"in t||e.$$.bound[e.$$.props.notification]||console.warn("<ToolNotification> was created without expected prop 'notification'")});const u=["notification"];Object.keys(t).forEach(e=>{~u.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<ToolNotification> was created with unknown prop '${e}'`)});return e.$$set=e=>{"notification"in e&&n(0,c=e.notification),"$$scope"in e&&n(7,i=e.$$scope)},e.$capture_state=()=>({fade:Yo,slide:Jo,api:Dt,strings:ht,Notification:uo,notification:c,expanded:r,dismissAll:l,dismissError:a,$strings:o}),e.$inject_state=e=>{"notification"in e&&n(0,c=e.notification),"expanded"in e&&n(1,r=e.expanded)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[c,r,o,l,s,e=>l(c.errors.tool_key,e),function(e){r=e,n(1,r)},i]}class hu extends rt{constructor(e){super(e),Xe(this,e,gu,$u,l,{notification:0}),Je("SvelteRegisterComponent",{component:this,tagName:"ToolNotification",options:e,id:$u.name})}get notification(){throw new Error("<ToolNotification>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set notification(e){throw new Error("<ToolNotification>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function wu(e){return"[object Date]"===Object.prototype.toString.call(e)}function bu(e,t){if(e===t||e!=e)return()=>e;const n=typeof e;if(n!==typeof t||Array.isArray(e)!==Array.isArray(t))throw new Error("Cannot interpolate values of different type");if(Array.isArray(e)){const n=t.map((t,n)=>bu(e[n],t));return e=>n.map(t=>t(e))}if("object"===n){if(!e||!t)throw new Error("Object cannot be null");if(wu(e)&&wu(t)){e=e.getTime();const n=(t=t.getTime())-e;return t=>new Date(e+t*n)}const n=Object.keys(t),o={};return n.forEach(n=>{o[n]=bu(e[n],t[n])}),e=>{const t={};return n.forEach(n=>{t[n]=o[n](e)}),t}}if("number"===n){const n=t-e;return t=>e+t*n}throw new Error(`Cannot interpolate ${n} values`)}function vu(e,o={}){const s=ut(e);let i,c=e;function r(r,l){if(null==e)return s.set(e=r),Promise.resolve();c=r;let a=i,u=!1,{delay:p=0,duration:d=400,easing:f=t,interpolate:m=bu}=n(n({},o),l);if(0===d)return a&&(a.abort(),a=null),s.set(e=c),Promise.resolve();const $=x()+p;let g;return i=E(t=>{if(t<$)return!0;u||(g=m(e,r),"function"==typeof d&&(d=d(e,r)),u=!0),a&&(a.abort(),a=null);const n=t-$;return n>d?(s.set(e=r),!1):(s.set(e=g(f(n/d))),!0)}),i.promise}return{set:r,update:(t,n)=>r(t(c,e),n),subscribe:s.subscribe}}const yu="ui/components/ProgressBar.svelte";function _u(t){let n,s,i,r;const l={c:function(){n=C("div"),s=C("span"),tt(s,"class","indicator animate"),U(s,"width",t[5]+"%"),Y(s,"complete",t[4]),Y(s,"running",t[1]),o(s,yu,50,1,993),tt(n,"class","progress-bar"),tt(n,"title",t[3]),Y(n,"stripe",t[1]&&!t[2]),Y(n,"animate",t[0]),o(n,yu,41,0,837)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,n,o),Ge(n,s),i||(r=[et(n,"click",K(t[8]),!1,!0,!1,!1),et(n,"mouseenter",t[9],!1,!1,!1,!1),et(n,"mouseleave",t[10],!1,!1,!1,!1)],i=!0)},p:function(e,[t]){32&t&&U(s,"width",e[5]+"%"),16&t&&Y(s,"complete",e[4]),2&t&&Y(s,"running",e[1]),8&t&&tt(n,"title",e[3]),6&t&&Y(n,"stripe",e[1]&&!e[2]),1&t&&Y(n,"animate",e[0])},i:e,o:e,d:function(e){e&&Qe(n),i=!1,c(r)}};return Je("SvelteRegisterBlock",{block:l,id:_u.name,type:"component",source:"",ctx:t}),l}function ku(e){return e<1?0:e>=100?100:e}function xu(e,t,n){let o,s,{$$slots:i={},$$scope:c}=t;it("ProgressBar",i,[]);let{percentComplete:r=0}=t,{starting:l=!1}=t,{running:a=!1}=t,{paused:u=!1}=t,{title:d=""}=t,f=vu(0,{duration:400,easing:Xo});p(f,"progressTweened"),m(e,f,e=>n(5,s=e));const $=["percentComplete","starting","running","paused","title"];return Object.keys(t).forEach(e=>{~$.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<ProgressBar> was created with unknown prop '${e}'`)}),e.$$set=e=>{"percentComplete"in e&&n(7,r=e.percentComplete),"starting"in e&&n(0,l=e.starting),"running"in e&&n(1,a=e.running),"paused"in e&&n(2,u=e.paused),"title"in e&&n(3,d=e.title)},e.$capture_state=()=>({cubicOut:Xo,tweened:vu,percentComplete:r,starting:l,running:a,paused:u,title:d,progressTweened:f,getProgress:ku,complete:o,$progressTweened:s}),e.$inject_state=e=>{"percentComplete"in e&&n(7,r=e.percentComplete),"starting"in e&&n(0,l=e.starting),"running"in e&&n(1,a=e.running),"paused"in e&&n(2,u=e.paused),"title"in e&&n(3,d=e.title),"progressTweened"in e&&n(6,f=e.progressTweened),"complete"in e&&n(4,o=e.complete)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{128&e.$$.dirty&&f.set(ku(r)),128&e.$$.dirty&&n(4,o=r>=100)},[l,a,u,d,o,s,f,r,function(t){de.call(this,e,t)},function(t){de.call(this,e,t)},function(t){de.call(this,e,t)}]}class Pu extends rt{constructor(e){super(e),Xe(this,e,xu,_u,l,{percentComplete:7,starting:0,running:1,paused:2,title:3}),Je("SvelteRegisterComponent",{component:this,tagName:"ProgressBar",options:e,id:_u.name})}get percentComplete(){throw new Error("<ProgressBar>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set percentComplete(e){throw new Error("<ProgressBar>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get starting(){throw new Error("<ProgressBar>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set starting(e){throw new Error("<ProgressBar>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get running(){throw new Error("<ProgressBar>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set running(e){throw new Error("<ProgressBar>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get paused(){throw new Error("<ProgressBar>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set paused(e){throw new Error("<ProgressBar>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get title(){throw new Error("<ProgressBar>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set title(e){throw new Error("<ProgressBar>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function Su(e){let t,n,o,s;t=new zn({props:{outline:!0,small:e[2],disabled:e[1],class:"pause",$$slots:{default:[ju]},$$scope:{ctx:e}},$$inline:!0}),t.$on("click",e[4]),o=new zn({props:{outline:!0,small:e[2],disabled:e[1],$$slots:{default:[Bu]},$$scope:{ctx:e}},$$inline:!0}),o.$on("click",e[5]);const i={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment)},m:function(e,i){We(t,e,i),Ze(e,n,i),We(o,e,i),s=!0},p:function(e,n){const s={};4&n&&(s.small=e[2]),2&n&&(s.disabled=e[1]),73&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s);const i={};4&n&&(i.small=e[2]),2&n&&(i.disabled=e[1]),72&n&&(i.$$scope={dirty:n,ctx:e}),o.$set(i)},i:function(e){s||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),s=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),s=!1},d:function(e){e&&Qe(n),ze(t,e),ze(o,e)}};return Je("SvelteRegisterBlock",{block:i,id:Su.name,type:"if",source:"(25:0) {#if tool}",ctx:e}),i}function Ru(e){let t,n=e[3].pause_button+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){8&o&&n!==(n=e[3].pause_button+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:Ru.name,type:"else",source:"(29:2) {:else}",ctx:e}),o}function Eu(e){let t,n=e[3].resume_button+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){8&o&&n!==(n=e[3].resume_button+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:Eu.name,type:"if",source:"(27:2) {#if tool.is_paused}",ctx:e}),o}function ju(e){let t;function n(e,t){return e[0].is_paused?Eu:Ru}let o=n(e),s=o(e);const i={c:function(){s.c(),t=F()},m:function(e,n){s.m(e,n),Ze(e,t,n)},p:function(e,i){o===(o=n(e))&&s?s.p(e,i):(s.d(1),s=o(e),s&&(s.c(),s.m(t.parentNode,t)))},d:function(e){e&&Qe(t),s.d(e)}};return Je("SvelteRegisterBlock",{block:i,id:ju.name,type:"slot",source:'(26:1) <Button outline {small} {disabled} class=\\"pause\\" on:click={handlePauseResume}>',ctx:e}),i}function Bu(e){let t,n=e[3].cancel_button+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){8&o&&n!==(n=e[3].cancel_button+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:Bu.name,type:"slot",source:"(33:1) <Button outline {small} {disabled} on:click={handleCancel}>",ctx:e}),o}function Nu(e){let t,n,o=e[0]&&Su(e);const s={c:function(){o&&o.c(),t=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,s){o&&o.m(e,s),Ze(e,t,s),n=!0},p:function(e,[n]){e[0]?o?(o.p(e,n),1&n&&Te(o,1)):(o=Su(e),o.c(),Te(o,1),o.m(t.parentNode,t)):o&&(Ne(),Le(o,1,1,()=>{o=null}),Oe())},i:function(e){n||(Te(o),n=!0)},o:function(e){Le(o),n=!1},d:function(e){e&&Qe(t),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:Nu.name,type:"component",source:"",ctx:e}),s}function Ou(e,t,n){let o;p(ht,"strings"),m(e,ht,e=>n(3,o=e));let{$$slots:s={},$$scope:i}=t;it("ToolRunningButtons",s,[]);let{tool:c={}}=t,{disabled:r=!1}=t,{small:l=!1}=t;function a(){cn.pauseResume(c)}function u(){cn.cancel(c)}const d=["tool","disabled","small"];return Object.keys(t).forEach(e=>{~d.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<ToolRunningButtons> was created with unknown prop '${e}'`)}),e.$$set=e=>{"tool"in e&&n(0,c=e.tool),"disabled"in e&&n(1,r=e.disabled),"small"in e&&n(2,l=e.small)},e.$capture_state=()=>({tools:cn,strings:ht,Button:zn,tool:c,disabled:r,small:l,handlePauseResume:a,handleCancel:u,$strings:o}),e.$inject_state=e=>{"tool"in e&&n(0,c=e.tool),"disabled"in e&&n(1,r=e.disabled),"small"in e&&n(2,l=e.small)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[c,r,l,o,a,u]}class Tu extends rt{constructor(e){super(e),Xe(this,e,Ou,Nu,l,{tool:0,disabled:1,small:2}),Je("SvelteRegisterComponent",{component:this,tagName:"ToolRunningButtons",options:e,id:Nu.name})}get tool(){throw new Error("<ToolRunningButtons>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set tool(e){throw new Error("<ToolRunningButtons>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get disabled(){throw new Error("<ToolRunningButtons>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set disabled(e){throw new Error("<ToolRunningButtons>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get small(){throw new Error("<ToolRunningButtons>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set small(e){throw new Error("<ToolRunningButtons>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function Lu(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language}function Du(e){return Intl.NumberFormat(Lu()).format(e)}function Cu(e){return Intl.NumberFormat(Lu(),{notation:"compact"}).format(e)}const Mu="ui/pro/ToolPanel.svelte";function Hu(e,t,n){const o=e.slice();return o[26]=t[n][0],o[27]=t[n][1],o}const Fu=e=>({isRunning:2&e}),Au=e=>({isRunning:e[1]});function Ku(e){let t,n=e[0].title+"";const s={c:function(){t=C("h3"),o(t,Mu,115,3,3202)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o&&n!==(n=e[0].title+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:Ku.name,type:"else",source:"(115:2) {:else}",ctx:e}),s}function Iu(e){let t;function n(e,t){return e[4]?Vu:e[3]?qu:Uu}let o=n(e),s=o(e);const i={c:function(){s.c(),t=F()},m:function(e,n){s.m(e,n),Ze(e,t,n)},p:function(e,i){o===(o=n(e))&&s?s.p(e,i):(s.d(1),s=o(e),s&&(s.c(),s.m(t.parentNode,t)))},d:function(e){e&&Qe(t),s.d(e)}};return Je("SvelteRegisterBlock",{block:i,id:Iu.name,type:"if",source:"(107:2) {#if showTotal}",ctx:e}),i}function Uu(e){let t,n=e[0].title_complete+"";const s={c:function(){t=C("h3"),o(t,Mu,112,4,3143)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o&&n!==(n=e[0].title_complete+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:Uu.name,type:"else",source:"(112:3) {:else}",ctx:e}),s}function qu(e){let t,n=e[0].title_partial_complete+"";const s={c:function(){t=C("h3"),o(t,Mu,110,4,3083)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o&&n!==(n=e[0].title_partial_complete+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:qu.name,type:"if",source:"(110:29) ",ctx:e}),s}function Vu(e){let t,n=e[0].title+"";const s={c:function(){t=C("h3"),o(t,Mu,108,4,3021)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o&&n!==(n=e[0].title+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:Vu.name,type:"if",source:"(108:3) {#if initial}",ctx:e}),s}function Wu(e){let t,n;t=new zn({props:{primary:!0,disabled:e[9],title:e[9]?e[13].disabled_tool_button:"",$$slots:{default:[Zu]},$$scope:{ctx:e}},$$inline:!0}),t.$on("click",e[16]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};512&n&&(o.disabled=e[9]),8704&n&&(o.title=e[9]?e[13].disabled_tool_button:""),4194305&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Wu.name,type:"else",source:"(130:4) {:else}",ctx:e}),o}function zu(e){let t,n;t=new zn({props:{primary:!0,disabled:e[9],title:e[9]?e[13].disabled_tool_button:"",$$slots:{default:[Qu]},$$scope:{ctx:e}},$$inline:!0}),t.$on("click",e[16]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};512&n&&(o.disabled=e[9]),8704&n&&(o.title=e[9]?e[13].disabled_tool_button:""),4194305&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:zu.name,type:"if",source:"(128:30) ",ctx:e}),o}function Xu(e){let t,n;t=new zn({props:{primary:!0,disabled:e[9],title:e[9]?e[13].disabled_tool_button:"",$$slots:{default:[ep]},$$scope:{ctx:e}},$$inline:!0}),t.$on("click",e[16]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};512&n&&(o.disabled=e[9]),8704&n&&(o.title=e[9]?e[13].disabled_tool_button:""),4194305&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Xu.name,type:"if",source:"(126:22) ",ctx:e}),o}function Yu(e){let t,n;t=new zn({props:{primary:!0,disabled:!0,title:e[13].disabled_tool_bucket_access,$$slots:{default:[tp]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};8192&n&&(o.title=e[13].disabled_tool_bucket_access),4194313&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Yu.name,type:"if",source:"(124:37) ",ctx:e}),o}function Ju(t){const n={c:e,m:e,p:e,i:e,o:e,d:e};return Je("SvelteRegisterBlock",{block:n,id:Ju.name,type:"if",source:"(122:4) {#if complete}",ctx:t}),n}function Gu(e){let t,n;t=new Tu({props:{tool:e[0],disabled:e[9]},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1&n&&(o.tool=e[0]),512&n&&(o.disabled=e[9]),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Gu.name,type:"if",source:"(119:3) {#if isRunning}",ctx:e}),o}function Zu(e){let t,n,o=e[0].button+"";const s={c:function(){t=new G(!1),n=F(),t.a=n},m:function(e,s){t.m(o,e,s),Ze(e,n,s)},p:function(e,n){1&n&&o!==(o=e[0].button+"")&&t.p(o)},d:function(e){e&&(Qe(n),t.d())}};return Je("SvelteRegisterBlock",{block:s,id:Zu.name,type:"slot",source:'(131:5) <Button primary {disabled} title={disabled ? $strings.disabled_tool_button : \\"\\"} on:click={handleStart}>',ctx:e}),s}function Qu(e){let t,n,o=e[0].button_partial_complete+"";const s={c:function(){t=new G(!1),n=F(),t.a=n},m:function(e,s){t.m(o,e,s),Ze(e,n,s)},p:function(e,n){1&n&&o!==(o=e[0].button_partial_complete+"")&&t.p(o)},d:function(e){e&&(Qe(n),t.d())}};return Je("SvelteRegisterBlock",{block:s,id:Qu.name,type:"slot",source:'(129:5) <Button primary {disabled} title={disabled ? $strings.disabled_tool_button : \\"\\"} on:click={handleStart}>',ctx:e}),s}function ep(e){let t,n,o=e[0].button+"";const s={c:function(){t=new G(!1),n=F(),t.a=n},m:function(e,s){t.m(o,e,s),Ze(e,n,s)},p:function(e,n){1&n&&o!==(o=e[0].button+"")&&t.p(o)},d:function(e){e&&(Qe(n),t.d())}};return Je("SvelteRegisterBlock",{block:s,id:ep.name,type:"slot",source:'(127:5) <Button primary {disabled} title={disabled ? $strings.disabled_tool_button : \\"\\"} on:click={handleStart}>',ctx:e}),s}function tp(e){let t,n,o=(e[3]?e[0].button_partial_complete:e[0].button)+"";const s={c:function(){t=new G(!1),n=F(),t.a=n},m:function(e,s){t.m(o,e,s),Ze(e,n,s)},p:function(e,n){9&n&&o!==(o=(e[3]?e[0].button_partial_complete:e[0].button)+"")&&t.p(o)},d:function(e){e&&(Qe(n),t.d())}};return Je("SvelteRegisterBlock",{block:s,id:tp.name,type:"slot",source:"(125:5) <Button primary disabled={true} title={$strings.disabled_tool_bucket_access}>",ctx:e}),s}function np(e){let t,n,s,i,c,r,l,a,p;function d(e,t){return e[2]?Iu:Ku}let f=d(e),m=f(e);const $=[Gu,Ju,Yu,Xu,zu,Wu],g=[];function h(e,t){return e[1]?0:e[11]?1:e[8]?2:e[4]?3:e[3]?4:5}l=h(e),a=g[l]=$[l](e);const w={c:function(){t=C("img"),i=H(),m.c(),c=H(),r=C("div"),a.c(),u(t.src,n=e[6])||tt(t,"src",n),tt(t,"type","image/svg+xml"),tt(t,"alt",s=e[0].title),o(t,Mu,105,2,2927),tt(r,"class","buttons-right"),o(r,Mu,117,2,3240)},m:function(e,n){Ze(e,t,n),Ze(e,i,n),m.m(e,n),Ze(e,c,n),Ze(e,r,n),g[l].m(r,null),p=!0},p:function(e,o){(!p||64&o&&!u(t.src,n=e[6]))&&tt(t,"src",n),(!p||1&o&&s!==(s=e[0].title))&&tt(t,"alt",s),f===(f=d(e))&&m?m.p(e,o):(m.d(1),m=f(e),m&&(m.c(),m.m(c.parentNode,c)));let i=l;l=h(e),l===i?g[l].p(e,o):(Ne(),Le(g[i],1,1,()=>{g[i]=null}),Oe(),a=g[l],a?a.p(e,o):(a=g[l]=$[l](e),a.c()),Te(a,1),a.m(r,null))},i:function(e){p||(Te(a),p=!0)},o:function(e){Le(a),p=!1},d:function(e){e&&(Qe(t),Qe(i),Qe(c),Qe(r)),m.d(e),g[l].d()}};return Je("SvelteRegisterBlock",{block:w,id:np.name,type:"slot",source:"(105:1) <PanelRow header>",ctx:e}),w}function op(e){let t,n;t=new is({props:{class:"body flex-row show-progress",$$slots:{default:[cp]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};4195463&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:op.name,type:"if",source:"(136:1) {#if complete || partialComplete || isRunning}",ctx:e}),o}function sp(e){let t,n=e[0].progress_description+"";const s={c:function(){t=C("h4"),o(t,Mu,144,5,4543)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o&&n!==(n=e[0].progress_description+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:sp.name,type:"else",source:"(144:4) {:else }",ctx:e}),s}function ip(e){let t,n,s,i,c,r,l,a,u,p,d=e[14](e[0],e[1],e[2])+"",f=Du(e[0].queue.processed)+"",m=Du(e[0].queue.total)+"",$=e[0].status_description?" "+e[0].status_description:" "+e[0].busy_description;const g={c:function(){t=C("h4"),n=C("strong"),s=M(d),i=M("%"),c=M(" ("),r=M(f),l=M("/"),a=M(m),u=M(")\n\t\t\t\t\t\t"),p=new G(!1),o(n,Mu,140,6,4271),p.a=null,o(t,Mu,139,5,4260)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s),Ge(n,i),Ge(t,c),Ge(t,r),Ge(t,l),Ge(t,a),Ge(t,u),p.m($,t)},p:function(e,t){7&t&&d!==(d=e[14](e[0],e[1],e[2])+"")&&ot(s,d),1&t&&f!==(f=Du(e[0].queue.processed)+"")&&ot(r,f),1&t&&m!==(m=Du(e[0].queue.total)+"")&&ot(a,m),1&t&&$!==($=e[0].status_description?" "+e[0].status_description:" "+e[0].busy_description)&&p.p($)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:g,id:ip.name,type:"if",source:"(139:4) {#if isRunning}",ctx:e}),g}function cp(e){let t,n,s,i,c;function r(e,t){return e[1]?ip:sp}let l=r(e),a=l(e);const u=e[20]["status-right"],p=$(u,e,e[22],Au);i=new Pu({props:{percentComplete:e[7],starting:e[10],running:e[1],paused:e[0].is_paused,title:!e[1]&&e[2]?"("+Du(e[0].total_processed)+"/"+Du(e[0].total_items)+")":""},$$inline:!0});const d={c:function(){t=C("div"),a.c(),n=H(),p&&p.c(),s=H(),Ve(i.$$.fragment),tt(t,"class","status"),o(t,Mu,137,3,4214)},m:function(e,o){Ze(e,t,o),a.m(t,null),Ge(t,n),p&&p.m(t,null),Ze(e,s,o),We(i,e,o),c=!0},p:function(e,o){l===(l=r(e))&&a?a.p(e,o):(a.d(1),a=l(e),a&&(a.c(),a.m(t,n))),p&&p.p&&(!c||4194306&o)&&w(p,u,e,e[22],c?h(u,e[22],o,Fu):b(e[22]),Au);const s={};128&o&&(s.percentComplete=e[7]),1024&o&&(s.starting=e[10]),2&o&&(s.running=e[1]),1&o&&(s.paused=e[0].is_paused),7&o&&(s.title=!e[1]&&e[2]?"("+Du(e[0].total_processed)+"/"+Du(e[0].total_items)+")":""),i.$set(s)},i:function(e){c||(Te(p,e),Te(i.$$.fragment,e),c=!0)},o:function(e){Le(p,e),Le(i.$$.fragment,e),c=!1},d:function(e){e&&(Qe(t),Qe(s)),a.d(),p&&p.d(e),ze(i,e)}};return Je("SvelteRegisterBlock",{block:d,id:cp.name,type:"slot",source:'(137:2) <PanelRow class=\\"body flex-row show-progress\\">',ctx:e}),d}function rp(e){let t,n,o,s;t=new is({props:{class:"body flex-row",$$slots:{default:[lp]},$$scope:{ctx:e}},$$inline:!0});let i=!e[9]&&e[5].size>0&&ap(e);const c={c:function(){Ve(t.$$.fragment),n=H(),i&&i.c(),o=F()},m:function(e,c){We(t,e,c),Ze(e,n,c),i&&i.m(e,c),Ze(e,o,c),s=!0},p:function(e,n){const s={};4194305&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s),!e[9]&&e[5].size>0?i?(i.p(e,n),544&n&&Te(i,1)):(i=ap(e),i.c(),Te(i,1),i.m(o.parentNode,o)):i&&(Ne(),Le(i,1,1,()=>{i=null}),Oe())},i:function(e){s||(Te(t.$$.fragment,e),Te(i),s=!0)},o:function(e){Le(t.$$.fragment,e),Le(i),s=!1},d:function(e){e&&(Qe(n),Qe(o)),ze(t,e),i&&i.d(e)}};return Je("SvelteRegisterBlock",{block:c,id:rp.name,type:"if",source:"(158:1) {#if !complete && !partialComplete && !isRunning}",ctx:e}),c}function lp(e){let t,n=e[0].more_info+"";const s={c:function(){t=C("p"),tt(t,"class","desc"),o(t,Mu,159,3,4999)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o&&n!==(n=e[0].more_info+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:lp.name,type:"slot",source:'(159:2) <PanelRow class=\\"body flex-row\\">',ctx:e}),s}function ap(e){let t,n;t=new is({props:{class:"body flex-column",footer:!0,$$slots:{default:[pp]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};4198432&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ap.name,type:"if",source:"(162:2) {#if !disabled && relatedTools.size > 0 }",ctx:e}),o}function up(e){let t,n,s,i,c,r,l,a,u=e[27].title+"";function p(){return e[21](e[27])}const d={c:function(){t=C("p"),n=C("a"),s=M(u),r=H(),tt(n,"href",i=e[12].settings),tt(n,"title",c=e[27].more_info),o(n,Mu,165,6,5214),o(t,Mu,164,5,5204)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s),Ge(t,r),l||(a=et(n,"click",K(p),!1,!0,!1,!1),l=!0)},p:function(t,o){e=t,32&o&&u!==(u=e[27].title+"")&&ot(s,u),4096&o&&i!==(i=e[12].settings)&&tt(n,"href",i),32&o&&c!==(c=e[27].more_info)&&tt(n,"title",c)},d:function(e){e&&Qe(t),l=!1,a()}};return Je("SvelteRegisterBlock",{block:d,id:up.name,type:"each",source:"(164:4) {#each [...relatedTools] as [key, relatedTool] }",ctx:e}),d}function pp(e){let t,n=st([...e[5]]),o=[];for(let t=0;t<n.length;t+=1)o[t]=up(Hu(e,n,t));const s={c:function(){for(let e=0;e<o.length;e+=1)o[e].c();t=F()},m:function(e,n){for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,n);Ze(e,t,n)},p:function(e,s){if(36896&s){let i;for(n=st([...e[5]]),i=0;i<n.length;i+=1){const c=Hu(e,n,i);o[i]?o[i].p(c,s):(o[i]=up(c),o[i].c(),o[i].m(t.parentNode,t))}for(;i<o.length;i+=1)o[i].d(1);o.length=n.length}},d:function(e){e&&Qe(t),D(o,e)}};return Je("SvelteRegisterBlock",{block:s,id:pp.name,type:"slot",source:'(163:3) <PanelRow class=\\"body flex-column\\" footer>',ctx:e}),s}function dp(e){let t,n,o,s,i;t=new is({props:{header:!0,$$slots:{default:[np]},$$scope:{ctx:e}},$$inline:!0});let c=(e[11]||e[3]||e[1])&&op(e),r=!e[11]&&!e[3]&&!e[1]&&rp(e);const l={c:function(){Ve(t.$$.fragment),n=H(),c&&c.c(),o=H(),r&&r.c(),s=F()},m:function(e,l){We(t,e,l),Ze(e,n,l),c&&c.m(e,l),Ze(e,o,l),r&&r.m(e,l),Ze(e,s,l),i=!0},p:function(e,n){const i={};4205407&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i),e[11]||e[3]||e[1]?c?(c.p(e,n),2058&n&&Te(c,1)):(c=op(e),c.c(),Te(c,1),c.m(o.parentNode,o)):c&&(Ne(),Le(c,1,1,()=>{c=null}),Oe()),e[11]||e[3]||e[1]?r&&(Ne(),Le(r,1,1,()=>{r=null}),Oe()):r?(r.p(e,n),2058&n&&Te(r,1)):(r=rp(e),r.c(),Te(r,1),r.m(s.parentNode,s))},i:function(e){i||(Te(t.$$.fragment,e),Te(c),Te(r),i=!0)},o:function(e){Le(t.$$.fragment,e),Le(c),Le(r),i=!1},d:function(e){e&&(Qe(n),Qe(o),Qe(s)),ze(t,e),c&&c.d(e),r&&r.d(e)}};return Je("SvelteRegisterBlock",{block:l,id:dp.name,type:"slot",source:'(104:0) <Panel multi class=\\"tools-panel\\">',ctx:e}),l}function fp(e){let t,n;t=new Cs({props:{multi:!0,class:"tools-panel",$$slots:{default:[dp]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};4210687&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:fp.name,type:"component",source:"",ctx:e}),o}function mp(e,t,n){let o,s,i,c,r,l,a,u,d,f,$,g,h,w,b,v,y;p(cn,"tools"),m(e,cn,e=>n(23,g=e)),p(bt,"urls"),m(e,bt,e=>n(12,h=e)),p(jt,"bucket_writable"),m(e,jt,e=>n(17,w=e)),p(nn,"toolsLocked"),m(e,nn,e=>n(18,b=e)),p(on,"running"),m(e,on,e=>n(19,v=e)),p(ht,"strings"),m(e,ht,e=>n(13,y=e));let{$$slots:_={},$$scope:k}=t;it("ToolPanel",_,["status-right"]);let{tool:x={}}=t;function P(e,t,n){return t?e.progress:n?e.total_progress:0}function S(e,t){const n=cn.icon(e,t,!1);return h.assets+"img/icon/"+n}function R(e){let t=new Map;return e.hasOwnProperty("related_tools")&&e.related_tools.length>0&&e.related_tools.forEach(e=>{g.hasOwnProperty(e)&&t.set(e,g[e])}),t}function E(e){cn.start(e)}function j(){E(x)}const B=["tool"];Object.keys(t).forEach(e=>{~B.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<ToolPanel> was created with unknown prop '${e}'`)});return e.$$set=e=>{"tool"in e&&n(0,x=e.tool),"$$scope"in e&&n(22,k=e.$$scope)},e.$capture_state=()=>({bucket_writable:jt,strings:ht,urls:bt,running:on,tools:cn,toolsLocked:nn,Panel:Cs,PanelRow:is,Button:zn,ProgressBar:Pu,ToolRunningButtons:Tu,numToString:Du,tool:x,getPercentComplete:P,getIcon:S,getRelatedTools:R,handleStartTool:E,handleStart:j,relatedTools:$,isRunning:r,icon:f,showTotal:o,percentComplete:d,disabled_bucket_access:u,disabled:a,starting:l,partialComplete:i,initial:s,complete:c,$tools:g,$urls:h,$bucket_writable:w,$toolsLocked:b,$running:v,$strings:y}),e.$inject_state=e=>{"tool"in e&&n(0,x=e.tool),"relatedTools"in e&&n(5,$=e.relatedTools),"isRunning"in e&&n(1,r=e.isRunning),"icon"in e&&n(6,f=e.icon),"showTotal"in e&&n(2,o=e.showTotal),"percentComplete"in e&&n(7,d=e.percentComplete),"disabled_bucket_access"in e&&n(8,u=e.disabled_bucket_access),"disabled"in e&&n(9,a=e.disabled),"starting"in e&&n(10,l=e.starting),"partialComplete"in e&&n(3,i=e.partialComplete),"initial"in e&&n(4,s=e.initial),"complete"in e&&n(11,c=e.complete)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{1&e.$$.dirty&&n(2,o=!!x.hasOwnProperty("total_progress")),5&e.$$.dirty&&n(4,s=!!(o&&x.total_progress<1)),5&e.$$.dirty&&n(3,i=!!(o&&x.total_progress>0&&x.total_progress<100)),28&e.$$.dirty&&n(11,c=!(!o||s||i)),524289&e.$$.dirty&&n(1,r=!(!v||v!==x.id)),3&e.$$.dirty&&n(10,l=!(!(r&&x.progress<1)||x.is_paused)),786433&e.$$.dirty&&n(9,a=v&&v!==x.id||x.is_processing&&x.is_paused||x.is_cancelled||b),131073&e.$$.dirty&&n(8,u=x.requires_bucket_access&&!w),7&e.$$.dirty&&n(7,d=P(x,r,o)),3&e.$$.dirty&&n(6,f=S(x,r)),1&e.$$.dirty&&n(5,$=R(x))},[x,r,o,i,s,$,f,d,u,a,l,c,h,y,P,E,j,w,b,v,_,e=>E(e),k]}class $p extends rt{constructor(e){super(e),Xe(this,e,mp,fp,l,{tool:0}),Je("SvelteRegisterComponent",{component:this,tagName:"ToolPanel",options:e,id:fp.name})}get tool(){throw new Error("<ToolPanel>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set tool(e){throw new Error("<ToolPanel>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const gp="ui/pro/NoTools.svelte";function hp(e){let t,n,s=e[0].no_tools_header+"";const i={c:function(){t=C("div"),n=M(s),tt(t,"slot","heading"),o(t,gp,29,1,753)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,t){1&t&&s!==(s=e[0].no_tools_header+"")&&ot(n,s)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:i,id:hp.name,type:"slot",source:"(30:1) ",ctx:e}),i}function wp(e){let t,n=e[0].no_tools_description+"";const s={c:function(){t=C("div"),tt(t,"slot","description"),o(t,gp,31,1,808)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){1&o&&n!==(n=e[0].no_tools_description+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:wp.name,type:"slot",source:"(32:1) ",ctx:e}),s}function bp(e){let t,n;t=new qa({props:{benefits:e[1],$$slots:{description:[wp],heading:[hp]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};9&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:bp.name,type:"component",source:"",ctx:e}),o}function vp(e,t,n){let o,s;p(ht,"strings"),m(e,ht,e=>n(0,o=e)),p(bt,"urls"),m(e,bt,e=>n(2,s=e));let{$$slots:i={},$$scope:c}=t;it("NoTools",i,[]);let r=[{icon:s.assets+"img/icon/offload-remaining.svg",alt:"offload icon",text:o.tools_uppsell_benefits.offload},{icon:s.assets+"img/icon/download.svg",alt:"download icon",text:o.tools_uppsell_benefits.download},{icon:s.assets+"img/icon/remove-from-bucket.svg",alt:"remove from bucket icon",text:o.tools_uppsell_benefits.remove_bucket},{icon:s.assets+"img/icon/remove-from-server.svg",alt:"remove from server icon",text:o.tools_uppsell_benefits.remove_server}];const l=[];return Object.keys(t).forEach(e=>{~l.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<NoTools> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({strings:ht,urls:bt,Upsell:qa,benefits:r,$strings:o,$urls:s}),e.$inject_state=e=>{"benefits"in e&&n(1,r=e.benefits)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[o,r]}class yp extends rt{constructor(e){super(e),Xe(this,e,vp,bp,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"NoTools",options:e,id:bp.name})}}const{Object:_p}=j,kp="ui/pro/ToolsPage.svelte";function xp(e,t,n){const o=e.slice();return o[4]=t[n],o}function Pp(e){let t,n;t=new yp({$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Pp.name,type:"else",source:"(25:2) {:else}",ctx:e}),o}function Sp(e,t){let n,o,s;o=new $p({props:{tool:t[4]},$$inline:!0});const i={key:e,first:null,c:function(){n=F(),Ve(o.$$.fragment),this.first=n},m:function(e,t){Ze(e,n,t),We(o,e,t),s=!0},p:function(e,n){t=e;const s={};4&n&&(s.tool=t[4]),o.$set(s)},i:function(e){s||(Te(o.$$.fragment,e),s=!0)},o:function(e){Le(o.$$.fragment,e),s=!1},d:function(e){e&&Qe(n),ze(o,e)}};return Je("SvelteRegisterBlock",{block:i,id:Sp.name,type:"each",source:"(23:2) {#each Object.values( $tools ).filter( ( tool ) => tool.render ) as tool (tool.id)}",ctx:t}),i}function Rp(e){let t,n,s,i,c,r,l,a=e[1].tools_title+"",u=[],p=new Map;t=new _o({props:{tab:e[0],component:hu},$$inline:!0});let d=st(Object.values(e[2]).filter(jp));const f=e=>e[4].id;Ke(e,d,xp,f);for(let t=0;t<d.length;t+=1){let n=xp(e,d,t),o=f(n);p.set(o,u[t]=Sp(o,n))}let m=null;d.length||(m=Pp(e));const $={c:function(){Ve(t.$$.fragment),n=H(),s=C("h2"),i=M(a),c=H(),r=C("div");for(let e=0;e<u.length;e+=1)u[e].c();m&&m.c(),tt(s,"class","page-title"),o(s,kp,19,1,727),tt(r,"class","tools-page wrapper"),o(r,kp,21,1,780)},m:function(e,o){We(t,e,o),Ze(e,n,o),Ze(e,s,o),Ge(s,i),Ze(e,c,o),Ze(e,r,o);for(let e=0;e<u.length;e+=1)u[e]&&u[e].m(r,null);m&&m.m(r,null),l=!0},p:function(e,n){const o={};1&n&&(o.tab=e[0]),t.$set(o),(!l||2&n)&&a!==(a=e[1].tools_title+"")&&ot(i,a),4&n&&(d=st(Object.values(e[2]).filter(jp)),Ne(),Ke(e,d,xp,f),u=Ae(u,n,f,1,e,d,p,r,Fe,Sp,null,xp),Oe(),d.length?m&&(Ne(),Le(m,1,1,()=>{m=null}),Oe()):m||(m=Pp(e),m.c(),Te(m,1),m.m(r,null)))},i:function(e){if(!l){Te(t.$$.fragment,e);for(let e=0;e<d.length;e+=1)Te(u[e]);l=!0}},o:function(e){Le(t.$$.fragment,e);for(let e=0;e<u.length;e+=1)Le(u[e]);l=!1},d:function(e){e&&(Qe(n),Qe(s),Qe(c),Qe(r)),ze(t,e);for(let e=0;e<u.length;e+=1)u[e].d();m&&m.d()}};return Je("SvelteRegisterBlock",{block:$,id:Rp.name,type:"slot",source:"(18:0) <Page {name} on:routeEvent>",ctx:e}),$}function Ep(e){let t,n;t=new In({props:{name:e[0],$$slots:{default:[Rp]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[3]);const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.name=e[0]),135&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ep.name,type:"component",source:"",ctx:e}),o}const jp=e=>e.render;function Bp(e,t,n){let o,s;p(ht,"strings"),m(e,ht,e=>n(1,o=e)),p(cn,"tools"),m(e,cn,e=>n(2,s=e));let{$$slots:i={},$$scope:c}=t;it("ToolsPage",i,[]);let{name:r="tools"}=t;ae("settingsLocked",nn);const l=["name"];return _p.keys(t).forEach(e=>{~l.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<ToolsPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,r=e.name)},e.$capture_state=()=>({setContext:ae,strings:ht,tools:cn,toolsLocked:nn,Page:In,Notifications:_o,ToolNotification:hu,ToolPanel:$p,NoTools:yp,name:r,$strings:o,$tools:s}),e.$inject_state=e=>{"name"in e&&n(0,r=e.name)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[r,o,s,function(t){de.call(this,e,t)}]}class Np extends rt{constructor(e){super(e),Xe(this,e,Bp,Ep,l,{name:0}),Je("SvelteRegisterComponent",{component:this,tagName:"ToolsPage",options:e,id:Ep.name})}get name(){throw new Error("<ToolsPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<ToolsPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Op="ui/components/SupportPage.svelte",Tp=e=>({}),Lp=e=>({}),Dp=e=>({}),Cp=e=>({}),Mp=e=>({}),Hp=e=>({});function Fp(e){let t,n;const s={c:function(){t=C("h2"),n=M(e[1]),tt(t,"class","page-title"),o(t,Op,21,2,541)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,t){2&t&&ot(n,e[1])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:Fp.name,type:"if",source:"(21:1) {#if title}",ctx:e}),s}function Ap(e){let t,n,s,i,c,r,l,a,u=e[2].no_support+"",p=e[2].community_support+"",d=e[2].upgrade_for_support+"",f=e[2].report_a_bug+"";const m={c:function(){t=C("div"),n=C("p"),s=H(),i=C("p"),c=H(),r=C("p"),l=H(),a=C("p"),o(n,Op,31,6,764),o(i,Op,32,6,805),o(r,Op,33,6,853),o(a,Op,34,6,903),tt(t,"class","lite-support"),o(t,Op,30,5,731)},m:function(e,o){Ze(e,t,o),Ge(t,n),n.innerHTML=u,Ge(t,s),Ge(t,i),i.innerHTML=p,Ge(t,c),Ge(t,r),r.innerHTML=d,Ge(t,l),Ge(t,a),a.innerHTML=f},p:function(e,t){4&t&&u!==(u=e[2].no_support+"")&&(n.innerHTML=u),4&t&&p!==(p=e[2].community_support+"")&&(i.innerHTML=p),4&t&&d!==(d=e[2].upgrade_for_support+"")&&(r.innerHTML=d),4&t&&f!==(f=e[2].report_a_bug+"")&&(a.innerHTML=f)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:m,id:Ap.name,type:"fallback",source:"(30:25) ",ctx:e}),m}function Kp(e){let t,n,s,i,c,r,l,a,u,p,d,f,m,g,v,y,_,k,x,P,S,R,E=e[2].diagnostic_info_title+"",j=e[2].download_diagnostics+"";t=new _o({props:{tab:e[0]},$$inline:!0});let B=e[1]&&Fp(e);const N=e[5].header,O=$(N,e,e[7],Hp),T=e[5].content,L=$(T,e,e[7],Cp),D=L||Ap(e),F=e[5].footer,A=$(F,e,e[7],Lp),K={c:function(){Ve(t.$$.fragment),n=H(),B&&B.c(),s=H(),i=C("div"),O&&O.c(),c=H(),r=C("div"),l=C("div"),D&&D.c(),a=H(),u=C("div"),p=C("hr"),d=H(),f=C("h2"),m=M(E),g=H(),v=C("pre"),y=M(e[3]),_=H(),k=C("a"),x=M(j),S=H(),A&&A.c(),o(p,Op,39,5,1004),tt(f,"class","page-title"),o(f,Op,40,5,1014),o(v,Op,41,5,1080),tt(k,"href",P=e[4].download_diagnostics),tt(k,"class","button btn-md btn-outline"),o(k,Op,42,5,1111),tt(u,"class","diagnostic-info"),o(u,Op,38,4,969),tt(l,"class","support-form"),o(l,Op,28,3,673),tt(r,"class","columns"),o(r,Op,27,2,648),tt(i,"class","support-page wrapper"),o(i,Op,23,1,585)},m:function(e,o){We(t,e,o),Ze(e,n,o),B&&B.m(e,o),Ze(e,s,o),Ze(e,i,o),O&&O.m(i,null),Ge(i,c),Ge(i,r),Ge(r,l),D&&D.m(l,null),Ge(l,a),Ge(l,u),Ge(u,p),Ge(u,d),Ge(u,f),Ge(f,m),Ge(u,g),Ge(u,v),Ge(v,y),Ge(u,_),Ge(u,k),Ge(k,x),Ge(r,S),A&&A.m(r,null),R=!0},p:function(e,n){const o={};1&n&&(o.tab=e[0]),t.$set(o),e[1]?B?B.p(e,n):(B=Fp(e),B.c(),B.m(s.parentNode,s)):B&&(B.d(1),B=null),O&&O.p&&(!R||128&n)&&w(O,N,e,e[7],R?h(N,e[7],n,Mp):b(e[7]),Hp),L?L.p&&(!R||128&n)&&w(L,T,e,e[7],R?h(T,e[7],n,Dp):b(e[7]),Cp):D&&D.p&&(!R||4&n)&&D.p(e,R?n:-1),(!R||4&n)&&E!==(E=e[2].diagnostic_info_title+"")&&ot(m,E),(!R||8&n)&&ot(y,e[3]),(!R||4&n)&&j!==(j=e[2].download_diagnostics+"")&&ot(x,j),(!R||16&n&&P!==(P=e[4].download_diagnostics))&&tt(k,"href",P),A&&A.p&&(!R||128&n)&&w(A,F,e,e[7],R?h(F,e[7],n,Tp):b(e[7]),Lp)},i:function(e){R||(Te(t.$$.fragment,e),Te(O,e),Te(D,e),Te(A,e),R=!0)},o:function(e){Le(t.$$.fragment,e),Le(O,e),Le(D,e),Le(A,e),R=!1},d:function(e){e&&(Qe(n),Qe(s),Qe(i)),ze(t,e),B&&B.d(e),O&&O.d(e),D&&D.d(e),A&&A.d(e)}};return Je("SvelteRegisterBlock",{block:K,id:Kp.name,type:"slot",source:"(19:0) <Page {name} on:routeEvent>",ctx:e}),K}function Ip(e){let t,n;t=new In({props:{name:e[0],$$slots:{default:[Kp]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[6]);const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.name=e[0]),159&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ip.name,type:"component",source:"",ctx:e}),o}function Up(e,t,n){let o,s,i,c;p(ft,"config"),m(e,ft,e=>n(8,o=e)),p(ht,"strings"),m(e,ht,e=>n(2,s=e)),p(_t,"diagnostics"),m(e,_t,e=>n(3,i=e)),p(bt,"urls"),m(e,bt,e=>n(4,c=e));let{$$slots:r={},$$scope:l}=t;it("SupportPage",r,["header","content","footer"]);let{name:a="support"}=t,{title:u=s.support_tab_title}=t;ie(async()=>{const e=await Dt.get("diagnostics",{});e.hasOwnProperty("diagnostics")&&y(ft,o.diagnostics=e.diagnostics,o)});const d=["name","title"];return Object.keys(t).forEach(e=>{~d.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<SupportPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,a=e.name),"title"in e&&n(1,u=e.title),"$$scope"in e&&n(7,l=e.$$scope)},e.$capture_state=()=>({onMount:ie,api:Dt,config:ft,diagnostics:_t,strings:ht,urls:bt,Page:In,Notifications:_o,name:a,title:u,$config:o,$strings:s,$diagnostics:i,$urls:c}),e.$inject_state=e=>{"name"in e&&n(0,a=e.name),"title"in e&&n(1,u=e.title)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[a,u,s,i,c,r,function(t){de.call(this,e,t)},l]}class qp extends rt{constructor(e){super(e),Xe(this,e,Up,Ip,l,{name:0,title:1}),Je("SvelteRegisterComponent",{component:this,tagName:"SupportPage",options:e,id:Ip.name})}get name(){throw new Error("<SupportPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<SupportPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get title(){throw new Error("<SupportPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set title(e){throw new Error("<SupportPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Vp="ui/pro/DocumentationSidebar.svelte";function Wp(e,t,n){const o=e.slice();return o[2]=t[n],o}function zp(e){let t,n,s,i,c=e[1].documentation_title+"",r=st(e[0]),l=[];for(let t=0;t<r.length;t+=1)l[t]=Xp(Wp(e,r,t));const a={c:function(){t=C("div"),n=C("h3"),s=M(c),i=H();for(let e=0;e<l.length;e+=1)l[e].c();o(n,Vp,7,2,159),tt(t,"class","documentation"),o(t,Vp,6,1,129)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s),Ge(t,i);for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,null)},p:function(e,n){if(2&n&&c!==(c=e[1].documentation_title+"")&&ot(s,c),1&n){let o;for(r=st(e[0]),o=0;o<r.length;o+=1){const s=Wp(e,r,o);l[o]?l[o].p(s,n):(l[o]=Xp(s),l[o].c(),l[o].m(t,null))}for(;o<l.length;o+=1)l[o].d(1);l.length=r.length}},d:function(e){e&&Qe(t),D(l,e)}};return Je("SvelteRegisterBlock",{block:a,id:zp.name,type:"if",source:"(6:0) {#if $documentation.length}",ctx:e}),a}function Xp(e){let t,n,s,i=e[2].title+"";const c={c:function(){t=C("a"),n=M(i),tt(t,"href",s=e[2].url),tt(t,"class","link"),tt(t,"target","_blank"),o(t,Vp,9,3,235)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,o){1&o&&i!==(i=e[2].title+"")&&ot(n,i),1&o&&s!==(s=e[2].url)&&tt(t,"href",s)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:c,id:Xp.name,type:"each",source:"(9:2) {#each $documentation as item}",ctx:e}),c}function Yp(t){let n,o=t[0].length&&zp(t);const s={c:function(){o&&o.c(),n=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,t){o&&o.m(e,t),Ze(e,n,t)},p:function(e,[t]){e[0].length?o?o.p(e,t):(o=zp(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:e,o:e,d:function(e){e&&Qe(n),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:Yp.name,type:"component",source:"",ctx:t}),s}function Jp(e,t,n){let o,s;p(tn,"documentation"),m(e,tn,e=>n(0,o=e)),p(ht,"strings"),m(e,ht,e=>n(1,s=e));let{$$slots:i={},$$scope:c}=t;it("DocumentationSidebar",i,[]);const r=[];return Object.keys(t).forEach(e=>{~r.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<DocumentationSidebar> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({strings:ht,documentation:tn,$documentation:o,$strings:s}),[o,s]}class Gp extends rt{constructor(e){super(e),Xe(this,e,Jp,Yp,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"DocumentationSidebar",options:e,id:Yp.name})}}const{Object:Zp}=j,Qp="ui/pro/SupportForm.svelte";function ed(e,t,n){const o=e.slice();return o[13]=t[n],o}function td(e){let t,n,s,i=e[13]+"";const c={c:function(){t=C("option"),n=M(i),t.__value=s=e[13],I(t,t.__value),o(t,Qp,122,2,2692)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,o){64&o&&i!==(i=e[13]+"")&&ot(n,i),64&o&&s!==(s=e[13])&&(nt(t,"__value",s),I(t,t.__value))},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:c,id:td.name,type:"each",source:"(122:1) {#each $licence.support_email_addresses as supportEmail}",ctx:e}),c}function nd(e){let t,n=e[5].send_email+"";const o={c:function(){t=M(n)},m:function(e,n){Ze(e,t,n)},p:function(e,o){32&o&&n!==(n=e[5].send_email+"")&&ot(t,n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:o,id:nd.name,type:"slot",source:"(136:1) <Button primary on:click={submitSupportRequest} disabled={disabledReason} title={disabledReason}>",ctx:e}),o}function od(e){let t,n,s,i,r,l,a,u,p,d,f,m,$,g,h,w,b,v,y,_,k,x,P,S,R,E,j,B,N,O=e[5].select_email+"",T=e[5].email_note+"",L=e[5].attach_diagnostics+"",F=e[5].having_trouble+"",A=e[5].email_instead+"",K=st(e[6].support_email_addresses),U=[];for(let t=0;t<K.length;t+=1)U[t]=td(ed(e,K,t));k=new zn({props:{primary:!0,disabled:e[4],title:e[4],$$slots:{default:[nd]},$$scope:{ctx:e}},$$inline:!0}),k.$on("click",e[7]);const V={c:function(){t=C("label"),t.textContent="From",n=H(),s=C("select");for(let e=0;e<U.length;e+=1)U[e].c();i=C("option"),r=M(O),l=H(),a=C("p"),u=H(),p=C("input"),f=H(),m=C("textarea"),g=H(),h=C("div"),w=C("div"),b=C("label"),v=C("input"),y=M(L),_=H(),Ve(k.$$.fragment),x=H(),P=C("p"),S=M(F),R=H(),E=C("p"),tt(t,"for","email"),tt(t,"class","input-label"),o(t,Qp,119,0,2528),i.__value="",I(i,i.__value),o(i,Qp,124,1,2755),tt(s,"name","email"),tt(s,"id","email"),void 0===e[0]&&ye(()=>e[8].call(s)),o(s,Qp,120,0,2580),tt(a,"class","note"),o(a,Qp,126,0,2815),tt(p,"type","text"),tt(p,"id","subject"),tt(p,"name","subject"),tt(p,"minlength","4"),tt(p,"placeholder",d=e[5].email_subject_placeholder),o(p,Qp,127,0,2863),tt(m,"id","message"),tt(m,"name","message"),tt(m,"rows","8"),tt(m,"placeholder",$=e[5].email_message_placeholder),o(m,Qp,128,0,2995),tt(v,"type","checkbox"),tt(v,"id","include-diagnostics"),tt(v,"name","include-diagnostics"),o(v,Qp,132,3,3209),tt(b,"for","include-diagnostics"),o(b,Qp,131,2,3172),tt(w,"class","checkbox"),o(w,Qp,130,1,3147),tt(h,"class","actions"),o(h,Qp,129,0,3124),tt(P,"class","note first"),o(P,Qp,137,0,3503),tt(E,"class","note"),o(E,Qp,138,0,3555)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(o,c){Ze(o,t,c),Ze(o,n,c),Ze(o,s,c);for(let e=0;e<U.length;e+=1)U[e]&&U[e].m(s,null);Ge(s,i),Ge(i,r),q(s,e[0],!0),Ze(o,l,c),Ze(o,a,c),a.innerHTML=T,Ze(o,u,c),Ze(o,p,c),I(p,e[1]),Ze(o,f,c),Ze(o,m,c),I(m,e[2]),Ze(o,g,c),Ze(o,h,c),Ge(h,w),Ge(w,b),Ge(b,v),v.checked=e[3],Ge(b,y),Ge(h,_),We(k,h,null),Ze(o,x,c),Ze(o,P,c),Ge(P,S),Ze(o,R,c),Ze(o,E,c),E.innerHTML=A,j=!0,B||(N=[et(s,"change",e[8]),et(p,"input",e[9]),et(m,"input",e[10]),et(v,"change",e[11])],B=!0)},p:function(e,[t]){if(64&t){let n;for(K=st(e[6].support_email_addresses),n=0;n<K.length;n+=1){const o=ed(e,K,n);U[n]?U[n].p(o,t):(U[n]=td(o),U[n].c(),U[n].m(s,i))}for(;n<U.length;n+=1)U[n].d(1);U.length=K.length}(!j||32&t)&&O!==(O=e[5].select_email+"")&&ot(r,O),65&t&&q(s,e[0]),(!j||32&t)&&T!==(T=e[5].email_note+"")&&(a.innerHTML=T),(!j||32&t&&d!==(d=e[5].email_subject_placeholder))&&tt(p,"placeholder",d),2&t&&p.value!==e[1]&&I(p,e[1]),(!j||32&t&&$!==($=e[5].email_message_placeholder))&&tt(m,"placeholder",$),4&t&&I(m,e[2]),8&t&&(v.checked=e[3]),(!j||32&t)&&L!==(L=e[5].attach_diagnostics+"")&&ot(y,L);const n={};16&t&&(n.disabled=e[4]),16&t&&(n.title=e[4]),65568&t&&(n.$$scope={dirty:t,ctx:e}),k.$set(n),(!j||32&t)&&F!==(F=e[5].having_trouble+"")&&ot(S,F),(!j||32&t)&&A!==(A=e[5].email_instead+"")&&(E.innerHTML=A)},i:function(e){j||(Te(k.$$.fragment,e),j=!0)},o:function(e){Le(k.$$.fragment,e),j=!1},d:function(e){e&&(Qe(t),Qe(n),Qe(s),Qe(l),Qe(a),Qe(u),Qe(p),Qe(f),Qe(m),Qe(g),Qe(h),Qe(x),Qe(P),Qe(R),Qe(E)),D(U,e),ze(k),B=!1,c(N)}};return Je("SvelteRegisterBlock",{block:V,id:od.name,type:"component",source:"",ctx:e}),V}function sd(e,t,n){let o="";return e&&t&&n||(o="Email, Subject and Message required."),o}function id(e,t,n){let o,s,i,c;p(ht,"strings"),m(e,ht,e=>n(5,s=e)),p(Qt,"licence"),m(e,Qt,e=>n(6,i=e)),p(_t,"diagnostics"),m(e,_t,e=>n(12,c=e));let{$$slots:r={},$$scope:l}=t;it("SupportForm",r,[]);let a="",u="",d="",f=!0;async function $(e){const t=new FormData;let o;t.append("email",a),t.append("subject",u),t.append("message",d),f&&(t.append("local-diagnostic","1"),t.append("local-diagnostic-content",c));try{o=await fetch(i.support_url,{method:"POST",body:t})}catch(e){const t=s.send_email_post_error+e.message;return void Wt.add({id:"support-send-email-response",type:"error",dismissible:!0,only_show_on_tab:"support",message:t})}const r=await o.json();if(r.hasOwnProperty("errors"))for(const[e,t]of Object.entries(r.errors)){const e=s.send_email_api_error+t;Wt.add({id:"support-send-email-response",type:"error",dismissible:!0,only_show_on_tab:"support",message:e})}else{if(r.hasOwnProperty("success")&&1===r.success)return Wt.add({id:"support-send-email-response",type:"success",dismissible:!0,only_show_on_tab:"support",message:s.send_email_success}),n(0,a=""),n(1,u=""),n(2,d=""),void n(3,f=!0);Wt.add({id:"support-send-email-response",type:"error",dismissible:!0,only_show_on_tab:"support",message:s.send_email_unexpected_error})}}const g=[];return Zp.keys(t).forEach(e=>{~g.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<SupportForm> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({diagnostics:_t,notifications:Wt,strings:ht,licence:Qt,Button:zn,email:a,subject:u,message:d,includeDiagnostics:f,getDisabledReason:sd,submitSupportRequest:$,disabledReason:o,$strings:s,$licence:i,$diagnostics:c}),e.$inject_state=e=>{"email"in e&&n(0,a=e.email),"subject"in e&&n(1,u=e.subject),"message"in e&&n(2,d=e.message),"includeDiagnostics"in e&&n(3,f=e.includeDiagnostics),"disabledReason"in e&&n(4,o=e.disabledReason)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{7&e.$$.dirty&&n(4,o=sd(a,u,d))},[a,u,d,f,o,s,i,$,function(){a=V(this),n(0,a)},function(){u=this.value,n(1,u)},function(){d=this.value,n(2,d)},function(){f=this.checked,n(3,f)}]}class cd extends rt{constructor(e){super(e),Xe(this,e,id,od,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"SupportForm",options:e,id:od.name})}}const{Object:rd}=j,ld="ui/pro/SupportPage.svelte";function ad(e){let t,n;t=new qp({props:{name:e[0],title:e[3].email_support_title,$$slots:{footer:[fd],content:[dd]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[6]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1&n&&(o.name=e[0]),8&n&&(o.title=e[3].email_support_title),136&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ad.name,type:"else",source:"(58:0) {:else}",ctx:e}),o}function ud(e){let t,n,o,s;const i=[$d,md],c=[];function r(e,t){return e[1].is_valid&&0===e[2].length?0:1}t=r(e),n=c[t]=i[t](e);const l={c:function(){n.c(),o=F()},m:function(e,n){c[t].m(e,n),Ze(e,o,n),s=!0},p:function(e,s){let l=t;t=r(e),t===l?c[t].p(e,s):(Ne(),Le(c[l],1,1,()=>{c[l]=null}),Oe(),n=c[t],n?n.p(e,s):(n=c[t]=i[t](e),n.c()),Te(n,1),n.m(o.parentNode,o))},i:function(e){s||(Te(n),s=!0)},o:function(e){Le(n),s=!1},d:function(e){e&&Qe(o),c[t].d(e)}};return Je("SvelteRegisterBlock",{block:l,id:ud.name,type:"if",source:"(31:0) {#if $licence.is_set}",ctx:e}),l}function pd(e){let t,n,s,i,c,r,l,a,u,p,d=e[3].licence_not_entered+"",f=e[3].please_enter_licence+"",m=e[3].once_licence_entered+"";const $={c:function(){t=C("p"),n=M(d),s=H(),i=C("a"),c=M(f),r=H(),l=C("p"),a=M(m),tt(i,"href","/license"),o(i,ld,63,5,1866),o(t,ld,61,4,1821),o(l,ld,67,4,1956)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(t,s),Ge(t,i),Ge(i,c),Ze(e,r,o),Ze(e,l,o),Ge(l,a),u||(p=_(Tn.call(null,i)),u=!0)},p:function(e,t){8&t&&d!==(d=e[3].licence_not_entered+"")&&ot(n,d),8&t&&f!==(f=e[3].please_enter_licence+"")&&ot(c,f),8&t&&m!==(m=e[3].once_licence_entered+"")&&ot(a,m)},d:function(e){e&&(Qe(t),Qe(r),Qe(l)),u=!1,p()}};return Je("SvelteRegisterBlock",{block:$,id:pd.name,type:"slot",source:"(61:3) <Notification warning inline>",ctx:e}),$}function dd(e){let t,n;t=new uo({props:{warning:!0,inline:!0,$$slots:{default:[pd]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};136&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:dd.name,type:"slot",source:'(60:2) <svelte:fragment slot=\\"content\\">',ctx:e}),o}function fd(e){let t,n;t=new Gp({$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:fd.name,type:"slot",source:'(72:2) <svelte:fragment slot=\\"footer\\">',ctx:e}),o}function md(e){let t,n;t=new qp({props:{name:e[0],title:e[3].email_support_title,$$slots:{footer:[wd],content:[hd]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[5]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1&n&&(o.name=e[0]),8&n&&(o.title=e[3].email_support_title),132&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:md.name,type:"else",source:"(43:1) {:else}",ctx:e}),o}function $d(e){let t,n;t=new qp({props:{name:e[0],title:e[3].email_support_title,$$slots:{footer:[yd],content:[vd],header:[bd]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[4]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1&n&&(o.name=e[0]),8&n&&(o.title=e[3].email_support_title),130&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:$d.name,type:"if",source:"(32:1) {#if $licence.is_valid && licenceError.length === 0}",ctx:e}),o}function gd(e){let t;const n={c:function(){t=C("p"),o(t,ld,46,5,1475)},m:function(n,o){Ze(n,t,o),t.innerHTML=e[2]},p:function(e,n){4&n&&(t.innerHTML=e[2])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:gd.name,type:"slot",source:"(46:4) <Notification warning inline>",ctx:e}),n}function hd(e){let t,n;t=new uo({props:{warning:!0,inline:!0,$$slots:{default:[gd]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};132&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:hd.name,type:"slot",source:'(45:3) <svelte:fragment slot=\\"content\\">',ctx:e}),o}function wd(e){let t,n;t=new Gp({$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:wd.name,type:"slot",source:'(53:3) <svelte:fragment slot=\\"footer\\">',ctx:e}),o}function bd(e){let t,n=e[1].your_active_licence+"";const s={c:function(){t=C("p"),tt(t,"class","licence-type"),tt(t,"slot","header"),o(t,ld,33,3,1058)},m:function(e,o){Ze(e,t,o),t.innerHTML=n},p:function(e,o){2&o&&n!==(n=e[1].your_active_licence+"")&&(t.innerHTML=n)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:bd.name,type:"slot",source:"(34:3) ",ctx:e}),s}function vd(e){let t,n;t=new cd({$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:vd.name,type:"slot",source:'(35:3) <svelte:fragment slot=\\"content\\">',ctx:e}),o}function yd(e){let t,n;t=new Gp({$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:yd.name,type:"slot",source:'(39:3) <svelte:fragment slot=\\"footer\\">',ctx:e}),o}function _d(e){let t,n,o,s;const i=[ud,ad],c=[];function r(e,t){return e[1].is_set?0:1}t=r(e),n=c[t]=i[t](e);const l={c:function(){n.c(),o=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,n){c[t].m(e,n),Ze(e,o,n),s=!0},p:function(e,[s]){let l=t;t=r(e),t===l?c[t].p(e,s):(Ne(),Le(c[l],1,1,()=>{c[l]=null}),Oe(),n=c[t],n?n.p(e,s):(n=c[t]=i[t](e),n.c()),Te(n,1),n.m(o.parentNode,o))},i:function(e){s||(Te(n),s=!0)},o:function(e){Le(n),s=!1},d:function(e){e&&Qe(o),c[t].d(e)}};return Je("SvelteRegisterBlock",{block:l,id:_d.name,type:"component",source:"",ctx:e}),l}function kd(e){return e.hasOwnProperty("errors")&&Object.values(e.errors).length>0?Object.values(e.errors)[0]:""}function xd(e,t,n){let o,s,i;p(Qt,"licence"),m(e,Qt,e=>n(1,s=e)),p(ht,"strings"),m(e,ht,e=>n(3,i=e));let{$$slots:c={},$$scope:r}=t;it("SupportPage",c,[]);let{name:l="support"}=t;const a=["name"];return rd.keys(t).forEach(e=>{~a.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<SupportPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,l=e.name)},e.$capture_state=()=>({link:Tn,strings:ht,licence:Qt,SupportPage:qp,DocumentationSidebar:Gp,SupportForm:cd,Notification:uo,name:l,getLicenceError:kd,licenceError:o,$licence:s,$strings:i}),e.$inject_state=e=>{"name"in e&&n(0,l=e.name),"licenceError"in e&&n(2,o=e.licenceError)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{2&e.$$.dirty&&n(2,o=kd(s))},[l,s,o,i,function(t){de.call(this,e,t)},function(t){de.call(this,e,t)},function(t){de.call(this,e,t)}]}class Pd extends rt{constructor(e){super(e),Xe(this,e,xd,_d,l,{name:0}),Je("SvelteRegisterComponent",{component:this,tagName:"SupportPage_1",options:e,id:_d.name})}get name(){throw new Error("<SupportPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<SupportPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function Sd(t){let n,s=t[3].prompt+"";const i={c:function(){n=C("p"),o(n,"ui/pro/UpdateObjectACLsPromptSubPage.svelte",49,3,1294)},m:function(e,t){Ze(e,n,t),n.innerHTML=s},p:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:Sd.name,type:"slot",source:'(49:2) <PanelRow class=\\"body flex-column\\">',ctx:t}),i}function Rd(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[Sd]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};256&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Rd.name,type:"slot",source:"(43:1) <Panel heading={tool.title} helpURL={tool.doc_url} helpDesc={tool.doc_desc} multi >",ctx:e}),o}function Ed(e){let t,n,o,s;t=new Cs({props:{heading:e[3].title,helpURL:e[3].doc_url,helpDesc:e[3].doc_desc,multi:!0,$$slots:{default:[Rd]},$$scope:{ctx:e}},$$inline:!0}),o=new Jc({props:{skipText:e[1].no,nextText:e[1].yes,skipVisible:!0,nextDisabled:e[2]},$$inline:!0}),o.$on("skip",e[4]),o.$on("next",e[5]);const i={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment)},m:function(e,i){We(t,e,i),Ze(e,n,i),We(o,e,i),s=!0},p:function(e,n){const s={};256&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s);const i={};2&n&&(i.skipText=e[1].no),2&n&&(i.nextText=e[1].yes),4&n&&(i.nextDisabled=e[2]),o.$set(i)},i:function(e){s||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),s=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),s=!1},d:function(e){e&&Qe(n),ze(t,e),ze(o,e)}};return Je("SvelteRegisterBlock",{block:i,id:Ed.name,type:"slot",source:'(42:0) <SubPage name=\\"update-acls\\" route=\\"/storage/update-acls\\">',ctx:e}),i}function jd(e){let t,n;t=new zo({props:{name:"update-acls",route:"/storage/update-acls",$$slots:{default:[Ed]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};262&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:jd.name,type:"component",source:"",ctx:e}),o}function Bd(t,n,o){let s,i,c,r=e,l=()=>(r(),r=d(g,e=>o(2,c=e)),g);p(cn,"tools"),m(t,cn,e=>o(6,s=e)),p(ht,"strings"),m(t,ht,e=>o(1,i=e)),t.$$.on_destroy.push(()=>r());let{$$slots:a={},$$scope:u}=n;it("UpdateObjectACLsPromptSubPage",a,[]);const f=s.update_acls,$=le();let g=ut(!1);async function h(){$("routeEvent",{event:"next",default:"/"})}async function w(){await cn.start(f),$("routeEvent",{event:"next",default:"/"})}p(g,"settingsLocked"),l(),pe("settingsLocked")&&l(g=ue("settingsLocked"));const b=[];return Object.keys(n).forEach(e=>{~b.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<UpdateObjectACLsPromptSubPage> was created with unknown prop '${e}'`)}),t.$capture_state=()=>({createEventDispatcher:le,getContext:ue,hasContext:pe,writable:ut,pop:Nn,strings:ht,tools:cn,SubPage:zo,Panel:Cs,PanelRow:is,BackNextButtonsRow:Jc,tool:f,dispatch:$,settingsLocked:g,handleSkip:h,handleNext:w,$tools:s,$strings:i,$settingsLocked:c}),t.$inject_state=e=>{"settingsLocked"in e&&l(o(0,g=e.settingsLocked))},n&&"$$inject"in n&&t.$inject_state(n.$$inject),[g,i,c,f,h,w]}class Nd extends rt{constructor(e){super(e),Xe(this,e,Bd,jd,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"UpdateObjectACLsPromptSubPage",options:e,id:jd.name})}}function Od(t){let n,s=t[3].prompt+"";const i={c:function(){n=C("p"),o(n,"ui/pro/CopyBucketsPromptSubPage.svelte",49,3,1297)},m:function(e,t){Ze(e,n,t),n.innerHTML=s},p:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:Od.name,type:"slot",source:'(49:2) <PanelRow class=\\"body flex-column\\">',ctx:t}),i}function Td(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[Od]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};256&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Td.name,type:"slot",source:"(43:1) <Panel heading={tool.title} helpURL={tool.doc_url} helpDesc={tool.doc_desc} multi >",ctx:e}),o}function Ld(e){let t,n,o,s;t=new Cs({props:{heading:e[3].title,helpURL:e[3].doc_url,helpDesc:e[3].doc_desc,multi:!0,$$slots:{default:[Td]},$$scope:{ctx:e}},$$inline:!0}),o=new Jc({props:{skipText:e[1].no,nextText:e[1].yes,skipVisible:!0,nextDisabled:e[2]},$$inline:!0}),o.$on("skip",e[4]),o.$on("next",e[5]);const i={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment)},m:function(e,i){We(t,e,i),Ze(e,n,i),We(o,e,i),s=!0},p:function(e,n){const s={};256&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s);const i={};2&n&&(i.skipText=e[1].no),2&n&&(i.nextText=e[1].yes),4&n&&(i.nextDisabled=e[2]),o.$set(i)},i:function(e){s||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),s=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),s=!1},d:function(e){e&&Qe(n),ze(t,e),ze(o,e)}};return Je("SvelteRegisterBlock",{block:i,id:Ld.name,type:"slot",source:'(42:0) <SubPage name=\\"copy-buckets\\" route=\\"/storage/copy-buckets\\">',ctx:e}),i}function Dd(e){let t,n;t=new zo({props:{name:"copy-buckets",route:"/storage/copy-buckets",$$slots:{default:[Ld]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};262&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Dd.name,type:"component",source:"",ctx:e}),o}function Cd(t,n,o){let s,i,c,r=e,l=()=>(r(),r=d(g,e=>o(2,c=e)),g);p(cn,"tools"),m(t,cn,e=>o(6,s=e)),p(ht,"strings"),m(t,ht,e=>o(1,i=e)),t.$$.on_destroy.push(()=>r());let{$$slots:a={},$$scope:u}=n;it("CopyBucketsPromptSubPage",a,[]);const f=s.copy_buckets,$=le();let g=ut(!1);async function h(){$("routeEvent",{event:"next",default:"/"})}async function w(){await cn.start(f),$("routeEvent",{event:"next",default:"/"})}p(g,"settingsLocked"),l(),pe("settingsLocked")&&l(g=ue("settingsLocked"));const b=[];return Object.keys(n).forEach(e=>{~b.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<CopyBucketsPromptSubPage> was created with unknown prop '${e}'`)}),t.$capture_state=()=>({createEventDispatcher:le,getContext:ue,hasContext:pe,writable:ut,pop:Nn,strings:ht,tools:cn,SubPage:zo,Panel:Cs,PanelRow:is,BackNextButtonsRow:Jc,tool:f,dispatch:$,settingsLocked:g,handleSkip:h,handleNext:w,$tools:s,$strings:i,$settingsLocked:c}),t.$inject_state=e=>{"settingsLocked"in e&&l(o(0,g=e.settingsLocked))},n&&"$$inject"in n&&t.$inject_state(n.$$inject),[g,i,c,f,h,w]}class Md extends rt{constructor(e){super(e),Xe(this,e,Cd,Dd,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"CopyBucketsPromptSubPage",options:e,id:Dd.name})}}const Hd="ui/pro/MoveObjectsPromptPage.svelte";function Fd(t){let n,s=t[5].prompt+"";const i={c:function(){n=C("p"),o(n,Hd,66,3,1934)},m:function(e,t){Ze(e,n,t),n.innerHTML=s},p:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:Fd.name,type:"slot",source:'(66:2) <PanelRow class=\\"body flex-column\\">',ctx:t}),i}function Ad(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[Fd]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};32768&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Ad.name,type:"slot",source:'(57:1) <Panel class=\\"toggle-header\\" heading={movePublicObjectsTool.name} toggleName=\\"move-public-objects\\" bind:toggle={movePublicObjects} helpURL={movePublicObjectsTool.doc_url} helpDesc={movePublicObjectsTool.doc_desc} multi >',ctx:e}),o}function Kd(t){let n,s=t[6].prompt+"";const i={c:function(){n=C("p"),o(n,Hd,80,3,2286)},m:function(e,t){Ze(e,n,t),n.innerHTML=s},p:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:Kd.name,type:"slot",source:'(80:2) <PanelRow class=\\"body flex-column\\">',ctx:t}),i}function Id(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[Kd]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};32768&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Id.name,type:"slot",source:'(71:1) <Panel class=\\"toggle-header\\" heading={movePrivateObjectsTool.name} toggleName=\\"move-private-objects\\" bind:toggle={movePrivateObjects} helpURL={movePrivateObjectsTool.doc_url} helpDesc={movePrivateObjectsTool.doc_desc} multi >',ctx:e}),o}function Ud(e){let t,n,o,s,i,c,r,l,a,u;function p(t){e[10](t)}t=new _o({props:{tab:"media",component:hu},$$inline:!0});let d={class:"toggle-header",heading:e[5].name,toggleName:"move-public-objects",helpURL:e[5].doc_url,helpDesc:e[5].doc_desc,multi:!0,$$slots:{default:[Ad]},$$scope:{ctx:e}};function f(t){e[11](t)}void 0!==e[1]&&(d.toggle=e[1]),o=new Cs({props:d,$$inline:!0}),me.push(()=>qe(o,"toggle",p));let m={class:"toggle-header",heading:e[6].name,toggleName:"move-private-objects",helpURL:e[6].doc_url,helpDesc:e[6].doc_desc,multi:!0,$$slots:{default:[Id]},$$scope:{ctx:e}};void 0!==e[2]&&(m.toggle=e[2]),c=new Cs({props:m,$$inline:!0}),me.push(()=>qe(c,"toggle",f)),a=new Jc({props:{nextText:e[4].button,skipVisible:!0,nextDisabled:e[3]},$$inline:!0}),a.$on("skip",e[7]),a.$on("next",e[8]);const $={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment),i=H(),Ve(c.$$.fragment),l=H(),Ve(a.$$.fragment)},m:function(e,s){We(t,e,s),Ze(e,n,s),We(o,e,s),Ze(e,i,s),We(c,e,s),Ze(e,l,s),We(a,e,s),u=!0},p:function(e,t){const n={};32768&t&&(n.$$scope={dirty:t,ctx:e}),!s&&2&t&&(s=!0,n.toggle=e[1],_e(()=>s=!1)),o.$set(n);const i={};32768&t&&(i.$$scope={dirty:t,ctx:e}),!r&&4&t&&(r=!0,i.toggle=e[2],_e(()=>r=!1)),c.$set(i);const l={};8&t&&(l.nextDisabled=e[3]),a.$set(l)},i:function(e){u||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),Te(c.$$.fragment,e),Te(a.$$.fragment,e),u=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),Le(c.$$.fragment,e),Le(a.$$.fragment,e),u=!1},d:function(e){e&&(Qe(n),Qe(i),Qe(l)),ze(t,e),ze(o,e),ze(c,e),ze(a,e)}};return Je("SvelteRegisterBlock",{block:$,id:Ud.name,type:"slot",source:"(54:0) <Page {name} subpage on:routeEvent>",ctx:e}),$}function qd(e){let t,n;t=new In({props:{name:e[0],subpage:!0,$$slots:{default:[Ud]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[12]);const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.name=e[0]),32782&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:qd.name,type:"component",source:"",ctx:e}),o}function Vd(e,t,n){let o,s,i;p(mt,"settingsLocked"),m(e,mt,e=>n(9,s=e)),p(cn,"tools"),m(e,cn,e=>n(13,i=e));let{$$slots:c={},$$scope:r}=t;it("MoveObjectsPromptPage",c,[]);let{name:l="move-objects"}=t;ae("settingsLocked",mt);const a=le(),u=i.move_objects,d=i.move_public_objects,f=i.move_private_objects;let $=!1,g=!0;async function h(){a("routeEvent",{event:"next",default:"/"})}async function w(){let e=u;$&&g||(e=$?d:f),await cn.start(e),a("routeEvent",{event:"next",default:"/"})}const b=["name"];return Object.keys(t).forEach(e=>{~b.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<MoveObjectsPromptPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,l=e.name)},e.$capture_state=()=>({createEventDispatcher:le,setContext:ae,settingsLocked:mt,tools:cn,Page:In,Notifications:_o,ToolNotification:hu,BackNextButtonsRow:Jc,Panel:Cs,PanelRow:is,name:l,dispatch:a,moveObjectsTool:u,movePublicObjectsTool:d,movePrivateObjectsTool:f,movePublicObjects:$,movePrivateObjects:g,handleSkip:h,handleNext:w,nextDisabled:o,$settingsLocked:s,$tools:i}),e.$inject_state=e=>{"name"in e&&n(0,l=e.name),"movePublicObjects"in e&&n(1,$=e.movePublicObjects),"movePrivateObjects"in e&&n(2,g=e.movePrivateObjects),"nextDisabled"in e&&n(3,o=e.nextDisabled)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{518&e.$$.dirty&&n(3,o=s||!$&&!g)},[l,$,g,o,u,d,f,h,w,s,function(e){$=e,n(1,$)},function(e){g=e,n(2,g)},function(t){de.call(this,e,t)}]}class Wd extends rt{constructor(e){super(e),Xe(this,e,Vd,qd,l,{name:0}),Je("SvelteRegisterComponent",{component:this,tagName:"MoveObjectsPromptPage",options:e,id:qd.name})}get name(){throw new Error("<MoveObjectsPromptPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<MoveObjectsPromptPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function zd(t){let n,s=t[2].prompt+"";const i={c:function(){n=C("p"),o(n,"ui/pro/MovePublicObjectsPromptPage.svelte",50,3,1357)},m:function(e,t){Ze(e,n,t),n.innerHTML=s},p:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:zd.name,type:"slot",source:'(50:2) <PanelRow class=\\"body flex-column\\">',ctx:t}),i}function Xd(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[zd]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};256&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Xd.name,type:"slot",source:"(44:1) <Panel heading={tool.name} helpURL={tool.doc_url} helpDesc={tool.doc_desc} multi >",ctx:e}),o}function Yd(e){let t,n,o,s,i,c;t=new _o({props:{tab:"media",component:hu},$$inline:!0}),o=new Cs({props:{heading:e[2].name,helpURL:e[2].doc_url,helpDesc:e[2].doc_desc,multi:!0,$$slots:{default:[Xd]},$$scope:{ctx:e}},$$inline:!0}),i=new Jc({props:{nextText:e[2].button,skipVisible:!0,nextDisabled:e[1]},$$inline:!0}),i.$on("skip",e[3]),i.$on("next",e[4]);const r={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment),s=H(),Ve(i.$$.fragment)},m:function(e,r){We(t,e,r),Ze(e,n,r),We(o,e,r),Ze(e,s,r),We(i,e,r),c=!0},p:function(e,t){const n={};256&t&&(n.$$scope={dirty:t,ctx:e}),o.$set(n);const s={};2&t&&(s.nextDisabled=e[1]),i.$set(s)},i:function(e){c||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),Te(i.$$.fragment,e),c=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),Le(i.$$.fragment,e),c=!1},d:function(e){e&&(Qe(n),Qe(s)),ze(t,e),ze(o,e),ze(i,e)}};return Je("SvelteRegisterBlock",{block:r,id:Yd.name,type:"slot",source:"(41:0) <Page {name} subpage on:routeEvent>",ctx:e}),r}function Jd(e){let t,n;t=new In({props:{name:e[0],subpage:!0,$$slots:{default:[Yd]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[5]);const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.name=e[0]),258&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Jd.name,type:"component",source:"",ctx:e}),o}function Gd(e,t,n){let o,s;p(cn,"tools"),m(e,cn,e=>n(6,o=e)),p(mt,"settingsLocked"),m(e,mt,e=>n(1,s=e));let{$$slots:i={},$$scope:c}=t;it("MovePublicObjectsPromptPage",i,[]);let{name:r="move-public-objects"}=t;ae("settingsLocked",mt);const l=le(),a=o.move_public_objects;async function u(){l("routeEvent",{event:"next",default:"/"})}async function d(){await cn.start(a),l("routeEvent",{event:"next",default:"/"})}const f=["name"];return Object.keys(t).forEach(e=>{~f.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<MovePublicObjectsPromptPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,r=e.name)},e.$capture_state=()=>({createEventDispatcher:le,setContext:ae,settingsLocked:mt,tools:cn,Page:In,Notifications:_o,ToolNotification:hu,BackNextButtonsRow:Jc,Panel:Cs,PanelRow:is,name:r,dispatch:l,tool:a,handleSkip:u,handleNext:d,$tools:o,$settingsLocked:s}),e.$inject_state=e=>{"name"in e&&n(0,r=e.name)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[r,s,a,u,d,function(t){de.call(this,e,t)}]}class Zd extends rt{constructor(e){super(e),Xe(this,e,Gd,Jd,l,{name:0}),Je("SvelteRegisterComponent",{component:this,tagName:"MovePublicObjectsPromptPage",options:e,id:Jd.name})}get name(){throw new Error("<MovePublicObjectsPromptPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<MovePublicObjectsPromptPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function Qd(t){let n,s=t[2].prompt+"";const i={c:function(){n=C("p"),o(n,"ui/pro/MovePrivateObjectsPromptPage.svelte",50,3,1359)},m:function(e,t){Ze(e,n,t),n.innerHTML=s},p:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:Qd.name,type:"slot",source:'(50:2) <PanelRow class=\\"body flex-column\\">',ctx:t}),i}function ef(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[Qd]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};256&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ef.name,type:"slot",source:"(44:1) <Panel heading={tool.name} helpURL={tool.doc_url} helpDesc={tool.doc_desc} multi >",ctx:e}),o}function tf(e){let t,n,o,s,i,c;t=new _o({props:{tab:"media",component:hu},$$inline:!0}),o=new Cs({props:{heading:e[2].name,helpURL:e[2].doc_url,helpDesc:e[2].doc_desc,multi:!0,$$slots:{default:[ef]},$$scope:{ctx:e}},$$inline:!0}),i=new Jc({props:{nextText:e[2].button,skipVisible:!0,nextDisabled:e[1]},$$inline:!0}),i.$on("skip",e[3]),i.$on("next",e[4]);const r={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment),s=H(),Ve(i.$$.fragment)},m:function(e,r){We(t,e,r),Ze(e,n,r),We(o,e,r),Ze(e,s,r),We(i,e,r),c=!0},p:function(e,t){const n={};256&t&&(n.$$scope={dirty:t,ctx:e}),o.$set(n);const s={};2&t&&(s.nextDisabled=e[1]),i.$set(s)},i:function(e){c||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),Te(i.$$.fragment,e),c=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),Le(i.$$.fragment,e),c=!1},d:function(e){e&&(Qe(n),Qe(s)),ze(t,e),ze(o,e),ze(i,e)}};return Je("SvelteRegisterBlock",{block:r,id:tf.name,type:"slot",source:"(41:0) <Page {name} subpage on:routeEvent>",ctx:e}),r}function nf(e){let t,n;t=new In({props:{name:e[0],subpage:!0,$$slots:{default:[tf]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[5]);const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.name=e[0]),258&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:nf.name,type:"component",source:"",ctx:e}),o}function of(e,t,n){let o,s;p(cn,"tools"),m(e,cn,e=>n(6,o=e)),p(mt,"settingsLocked"),m(e,mt,e=>n(1,s=e));let{$$slots:i={},$$scope:c}=t;it("MovePrivateObjectsPromptPage",i,[]);let{name:r="move-private-objects"}=t;ae("settingsLocked",mt);const l=le(),a=o.move_private_objects;async function u(){l("routeEvent",{event:"next",default:"/"})}async function d(){await cn.start(a),l("routeEvent",{event:"next",default:"/"})}const f=["name"];return Object.keys(t).forEach(e=>{~f.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<MovePrivateObjectsPromptPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,r=e.name)},e.$capture_state=()=>({createEventDispatcher:le,setContext:ae,settingsLocked:mt,tools:cn,Page:In,Notifications:_o,ToolNotification:hu,BackNextButtonsRow:Jc,Panel:Cs,PanelRow:is,name:r,dispatch:l,tool:a,handleSkip:u,handleNext:d,$tools:o,$settingsLocked:s}),e.$inject_state=e=>{"name"in e&&n(0,r=e.name)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[r,s,a,u,d,function(t){de.call(this,e,t)}]}class sf extends rt{constructor(e){super(e),Xe(this,e,of,nf,l,{name:0}),Je("SvelteRegisterComponent",{component:this,tagName:"MovePrivateObjectsPromptPage",options:e,id:nf.name})}get name(){throw new Error("<MovePrivateObjectsPromptPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<MovePrivateObjectsPromptPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function cf(t){let n,s=t[2].prompt+"";const i={c:function(){n=C("p"),o(n,"ui/pro/RemoveLocalFilesPromptPage.svelte",50,3,1355)},m:function(e,t){Ze(e,n,t),n.innerHTML=s},p:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:cf.name,type:"slot",source:'(50:2) <PanelRow class=\\"body flex-column\\">',ctx:t}),i}function rf(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[cf]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};256&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:rf.name,type:"slot",source:"(44:1) <Panel heading={tool.name} helpURL={tool.doc_url} helpDesc={tool.doc_desc} multi >",ctx:e}),o}function lf(e){let t,n,o,s,i,c;t=new _o({props:{tab:"media",component:hu},$$inline:!0}),o=new Cs({props:{heading:e[2].name,helpURL:e[2].doc_url,helpDesc:e[2].doc_desc,multi:!0,$$slots:{default:[rf]},$$scope:{ctx:e}},$$inline:!0}),i=new Jc({props:{nextText:e[2].button,skipVisible:!0,nextDisabled:e[1]},$$inline:!0}),i.$on("skip",e[3]),i.$on("next",e[4]);const r={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment),s=H(),Ve(i.$$.fragment)},m:function(e,r){We(t,e,r),Ze(e,n,r),We(o,e,r),Ze(e,s,r),We(i,e,r),c=!0},p:function(e,t){const n={};256&t&&(n.$$scope={dirty:t,ctx:e}),o.$set(n);const s={};2&t&&(s.nextDisabled=e[1]),i.$set(s)},i:function(e){c||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),Te(i.$$.fragment,e),c=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),Le(i.$$.fragment,e),c=!1},d:function(e){e&&(Qe(n),Qe(s)),ze(t,e),ze(o,e),ze(i,e)}};return Je("SvelteRegisterBlock",{block:r,id:lf.name,type:"slot",source:"(41:0) <Page {name} subpage on:routeEvent>",ctx:e}),r}function af(e){let t,n;t=new In({props:{name:e[0],subpage:!0,$$slots:{default:[lf]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[5]);const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.name=e[0]),258&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:af.name,type:"component",source:"",ctx:e}),o}function uf(e,t,n){let o,s;p(cn,"tools"),m(e,cn,e=>n(6,o=e)),p(mt,"settingsLocked"),m(e,mt,e=>n(1,s=e));let{$$slots:i={},$$scope:c}=t;it("RemoveLocalFilesPromptPage",i,[]);let{name:r="remove-local-files"}=t;ae("settingsLocked",mt);const l=le(),a=o.remove_local_files;async function u(){l("routeEvent",{event:"next",default:"/"})}async function d(){await cn.start(a),l("routeEvent",{event:"next",default:"/"})}const f=["name"];return Object.keys(t).forEach(e=>{~f.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<RemoveLocalFilesPromptPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,r=e.name)},e.$capture_state=()=>({createEventDispatcher:le,setContext:ae,settingsLocked:mt,tools:cn,Page:In,Notifications:_o,ToolNotification:hu,BackNextButtonsRow:Jc,Panel:Cs,PanelRow:is,name:r,dispatch:l,tool:a,handleSkip:u,handleNext:d,$tools:o,$settingsLocked:s}),e.$inject_state=e=>{"name"in e&&n(0,r=e.name)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[r,s,a,u,d,function(t){de.call(this,e,t)}]}class pf extends rt{constructor(e){super(e),Xe(this,e,uf,af,l,{name:0}),Je("SvelteRegisterComponent",{component:this,tagName:"RemoveLocalFilesPromptPage",options:e,id:af.name})}get name(){throw new Error("<RemoveLocalFilesPromptPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<RemoveLocalFilesPromptPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function df(t){let n,s=t[2].prompt+"";const i={c:function(){n=C("p"),o(n,"ui/pro/UploaderPromptPage.svelte",50,3,1335)},m:function(e,t){Ze(e,n,t),n.innerHTML=s},p:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:df.name,type:"slot",source:'(50:2) <PanelRow class=\\"body flex-column\\">',ctx:t}),i}function ff(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[df]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};256&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ff.name,type:"slot",source:"(44:1) <Panel heading={tool.name} helpURL={tool.doc_url} helpDesc={tool.doc_desc} multi >",ctx:e}),o}function mf(e){let t,n,o,s,i,c;t=new _o({props:{tab:"media",component:hu},$$inline:!0}),o=new Cs({props:{heading:e[2].name,helpURL:e[2].doc_url,helpDesc:e[2].doc_desc,multi:!0,$$slots:{default:[ff]},$$scope:{ctx:e}},$$inline:!0}),i=new Jc({props:{nextText:e[2].button,skipVisible:!0,nextDisabled:e[1]},$$inline:!0}),i.$on("skip",e[3]),i.$on("next",e[4]);const r={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment),s=H(),Ve(i.$$.fragment)},m:function(e,r){We(t,e,r),Ze(e,n,r),We(o,e,r),Ze(e,s,r),We(i,e,r),c=!0},p:function(e,t){const n={};256&t&&(n.$$scope={dirty:t,ctx:e}),o.$set(n);const s={};2&t&&(s.nextDisabled=e[1]),i.$set(s)},i:function(e){c||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),Te(i.$$.fragment,e),c=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),Le(i.$$.fragment,e),c=!1},d:function(e){e&&(Qe(n),Qe(s)),ze(t,e),ze(o,e),ze(i,e)}};return Je("SvelteRegisterBlock",{block:r,id:mf.name,type:"slot",source:"(41:0) <Page {name} subpage on:routeEvent>",ctx:e}),r}function $f(e){let t,n;t=new In({props:{name:e[0],subpage:!0,$$slots:{default:[mf]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[5]);const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.name=e[0]),258&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:$f.name,type:"component",source:"",ctx:e}),o}function gf(e,t,n){let o,s;p(cn,"tools"),m(e,cn,e=>n(6,o=e)),p(mt,"settingsLocked"),m(e,mt,e=>n(1,s=e));let{$$slots:i={},$$scope:c}=t;it("UploaderPromptPage",i,[]);let{name:r="uploader"}=t;ae("settingsLocked",mt);const l=le(),a=o.uploader;async function u(){l("routeEvent",{event:"next",default:"/"})}async function d(){await cn.start(a),l("routeEvent",{event:"next",default:"/"})}const f=["name"];return Object.keys(t).forEach(e=>{~f.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<UploaderPromptPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,r=e.name)},e.$capture_state=()=>({createEventDispatcher:le,setContext:ae,settingsLocked:mt,tools:cn,Page:In,Notifications:_o,ToolNotification:hu,BackNextButtonsRow:Jc,Panel:Cs,PanelRow:is,name:r,dispatch:l,tool:a,handleSkip:u,handleNext:d,$tools:o,$settingsLocked:s}),e.$inject_state=e=>{"name"in e&&n(0,r=e.name)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[r,s,a,u,d,function(t){de.call(this,e,t)}]}class hf extends rt{constructor(e){super(e),Xe(this,e,gf,$f,l,{name:0}),Je("SvelteRegisterComponent",{component:this,tagName:"UploaderPromptPage",options:e,id:$f.name})}get name(){throw new Error("<UploaderPromptPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<UploaderPromptPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function wf(t){let n,s=t[2].prompt+"";const i={c:function(){n=C("p"),o(n,"ui/pro/DownloaderPromptPage.svelte",50,3,1339)},m:function(e,t){Ze(e,n,t),n.innerHTML=s},p:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:wf.name,type:"slot",source:'(50:2) <PanelRow class=\\"body flex-column\\">',ctx:t}),i}function bf(e){let t,n;t=new is({props:{class:"body flex-column",$$slots:{default:[wf]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};256&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:bf.name,type:"slot",source:"(44:1) <Panel heading={tool.name} helpURL={tool.doc_url} helpDesc={tool.doc_desc} multi >",ctx:e}),o}function vf(e){let t,n,o,s,i,c;t=new _o({props:{tab:"media",component:hu},$$inline:!0}),o=new Cs({props:{heading:e[2].name,helpURL:e[2].doc_url,helpDesc:e[2].doc_desc,multi:!0,$$slots:{default:[bf]},$$scope:{ctx:e}},$$inline:!0}),i=new Jc({props:{nextText:e[2].button,skipVisible:!0,nextDisabled:e[1]},$$inline:!0}),i.$on("skip",e[3]),i.$on("next",e[4]);const r={c:function(){Ve(t.$$.fragment),n=H(),Ve(o.$$.fragment),s=H(),Ve(i.$$.fragment)},m:function(e,r){We(t,e,r),Ze(e,n,r),We(o,e,r),Ze(e,s,r),We(i,e,r),c=!0},p:function(e,t){const n={};256&t&&(n.$$scope={dirty:t,ctx:e}),o.$set(n);const s={};2&t&&(s.nextDisabled=e[1]),i.$set(s)},i:function(e){c||(Te(t.$$.fragment,e),Te(o.$$.fragment,e),Te(i.$$.fragment,e),c=!0)},o:function(e){Le(t.$$.fragment,e),Le(o.$$.fragment,e),Le(i.$$.fragment,e),c=!1},d:function(e){e&&(Qe(n),Qe(s)),ze(t,e),ze(o,e),ze(i,e)}};return Je("SvelteRegisterBlock",{block:r,id:vf.name,type:"slot",source:"(41:0) <Page {name} subpage on:routeEvent>",ctx:e}),r}function yf(e){let t,n;t=new In({props:{name:e[0],subpage:!0,$$slots:{default:[vf]},$$scope:{ctx:e}},$$inline:!0}),t.$on("routeEvent",e[5]);const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.name=e[0]),258&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:yf.name,type:"component",source:"",ctx:e}),o}function _f(e,t,n){let o,s;p(cn,"tools"),m(e,cn,e=>n(6,o=e)),p(mt,"settingsLocked"),m(e,mt,e=>n(1,s=e));let{$$slots:i={},$$scope:c}=t;it("DownloaderPromptPage",i,[]);let{name:r="downloader"}=t;ae("settingsLocked",mt);const l=le(),a=o.downloader;async function u(){l("routeEvent",{event:"next",default:"/"})}async function d(){await cn.start(a),l("routeEvent",{event:"next",default:"/"})}const f=["name"];return Object.keys(t).forEach(e=>{~f.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<DownloaderPromptPage> was created with unknown prop '${e}'`)}),e.$$set=e=>{"name"in e&&n(0,r=e.name)},e.$capture_state=()=>({createEventDispatcher:le,setContext:ae,settingsLocked:mt,tools:cn,Page:In,Notifications:_o,ToolNotification:hu,BackNextButtonsRow:Jc,Panel:Cs,PanelRow:is,name:r,dispatch:l,tool:a,handleSkip:u,handleNext:d,$tools:o,$settingsLocked:s}),e.$inject_state=e=>{"name"in e&&n(0,r=e.name)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[r,s,a,u,d,function(t){de.call(this,e,t)}]}class kf extends rt{constructor(e){super(e),Xe(this,e,_f,yf,l,{name:0}),Je("SvelteRegisterComponent",{component:this,tagName:"DownloaderPromptPage",options:e,id:yf.name})}get name(){throw new Error("<DownloaderPromptPage>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set name(e){throw new Error("<DownloaderPromptPage>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function xf(e){if($n.add({position:10,name:"assets",title:()=>f(ht).assets_tab_title,nav:!0,route:"/assets",component:su}),$n.add({position:20,name:"tools",title:()=>f(ht).tools_tab_title,nav:!0,route:"/tools",component:Np}),$n.add({position:100,name:"support",title:()=>f(ht).support_tab_title,nav:!0,route:"/support",component:Pd}),e.hasOwnProperty("update_acls")){const t={position:240,name:"update-acls",title:()=>e.update_acls.name,subNav:!0,route:"/storage/update-acls",component:Nd,enabled:()=>!(!f(kt).hasOwnProperty("offloaded")||f(kt).offloaded<1||!f($t).hasOwnProperty("bucket"))&&(!f(At).requires_acls&&(!f(qt)&&!f(Vt)&&(!(!f(At).block_public_access_supported||!f($t).hasOwnProperty("block-public-access")||t.blockPublicAccess===f($t)["block-public-access"])||!(!f(At).object_ownership_supported||!f($t).hasOwnProperty("object-ownership-enforced")||t.objectOwnershipEnforced===f($t)["object-ownership-enforced"])))),isNextRoute:e=>!!t.enabled()&&"/storage/security"===f(Rn),blockPublicAccess:!(!f($t).hasOwnProperty("bucket")||!f($t).hasOwnProperty("block-public-access"))&&f($t)["block-public-access"],objectOwnershipEnforced:!(!f($t).hasOwnProperty("bucket")||!f($t).hasOwnProperty("object-ownership-enforced"))&&f($t)["object-ownership-enforced"],setInitialProperties:e=>(e.hasOwnProperty("settings")&&e.settings.hasOwnProperty("bucket")&&(e.settings.hasOwnProperty("block-public-access")?t.blockPublicAccess=e.settings["block-public-access"]:t.blockPublicAccess=!1,e.settings.hasOwnProperty("object-ownership-enforced")?t.objectOwnershipEnforced=e.settings["object-ownership-enforced"]:t.objectOwnershipEnforced=!1),!1),events:{next:e=>t.isNextRoute(e),"bucket-security":e=>t.isNextRoute(e),"settings.save":e=>t.setInitialProperties(e),"page.initial.settings":e=>t.setInitialProperties(e)}};$n.add(t)}if(e.hasOwnProperty("copy_buckets")){const t={position:250,name:"copy-buckets",title:()=>e.copy_buckets.name,subNav:!0,route:"/storage/copy-buckets",component:Md,enabled:()=>f(kt).offloaded>0&&f($t).hasOwnProperty("bucket")&&t.bucket!==f($t).bucket,isNextRoute:e=>!!t.enabled()&&("/storage/bucket"===f(Rn)||"/storage/security"===f(Rn)||"/storage/update-acls"===f(Rn)),bucket:f($t).hasOwnProperty("bucket")?f($t).bucket:"",setInitialBucket:e=>(e.hasOwnProperty("settings")&&e.settings.hasOwnProperty("bucket")&&(t.bucket=e.settings.bucket),!1),events:{next:e=>t.isNextRoute(e),"settings.save":e=>t.isNextRoute(e),"bucket-security":e=>t.isNextRoute(e),"page.initial.settings":e=>t.setInitialBucket(e)}};$n.add(t)}if(e.hasOwnProperty("move_objects")&&e.hasOwnProperty("move_public_objects")&&e.hasOwnProperty("move_private_objects")){const t={position:400,name:"move-objects",title:()=>e.move_objects.name,route:"/prompt/move-objects",component:Wd,publicPathChanged:e=>{if(e.hasOwnProperty("changed_settings")){if(e.changed_settings.includes("use-yearmonth-folders")&&f($t).hasOwnProperty("use-yearmonth-folders")&&!f($t)["use-yearmonth-folders"])return!1;if(e.changed_settings.includes("object-versioning")&&f($t).hasOwnProperty("object-versioning")&&!f($t)["object-versioning"])return!1;if(e.changed_settings.includes("enable-object-prefix")&&f($t).hasOwnProperty("enable-object-prefix"))return!0;if(e.changed_settings.includes("object-prefix")&&f($t).hasOwnProperty("enable-object-prefix")&&f($t)["enable-object-prefix"])return!0;if(e.changed_settings.includes("use-yearmonth-folders")&&f($t).hasOwnProperty("use-yearmonth-folders")&&f($t)["use-yearmonth-folders"])return!0;if(e.changed_settings.includes("object-versioning")&&f($t).hasOwnProperty("object-versioning")&&f($t)["object-versioning"])return!0}return!1},privatePathChanged:e=>{if(e.hasOwnProperty("changed_settings")){if(e.changed_settings.includes("enable-signed-urls")&&f($t).hasOwnProperty("enable-signed-urls"))return!0;if(e.changed_settings.includes("signed-urls-object-prefix")&&f($t).hasOwnProperty("enable-signed-urls")&&f($t)["enable-signed-urls"])return!0}return!1},isNextRoute:e=>!(!f($t).hasOwnProperty("bucket")||!f(kt).hasOwnProperty("offloaded")||f(kt).offloaded<1)&&(t.publicPathChanged(e)&&t.privatePathChanged(e)),events:{"settings.save":e=>t.isNextRoute(e)}};$n.add(t);const n={position:410,name:"move-public-objects",title:()=>e.move_public_objects.name,route:"/prompt/move-public-objects",component:Zd,isNextRoute:e=>!(!f($t).hasOwnProperty("bucket")||!f(kt).hasOwnProperty("offloaded")||f(kt).offloaded<1)&&t.publicPathChanged(e),events:{"settings.save":e=>n.isNextRoute(e)}};$n.add(n);const o={position:420,name:"move-private-objects",title:()=>e.move_private_objects.name,route:"/prompt/move-private-objects",component:sf,isNextRoute:e=>!(!f($t).hasOwnProperty("bucket")||!f(kt).hasOwnProperty("offloaded")||f(kt).offloaded<1)&&t.privatePathChanged(e),events:{"settings.save":e=>o.isNextRoute(e)}};$n.add(o)}if(e.hasOwnProperty("remove_local_files")){const t={position:430,name:"remove-local-files",title:()=>e.remove_local_files.name,route:"/prompt/remove-local-files",component:pf,onPreviousPage:()=>{const e=$n.withPrefix("/prompt/").filter(e=>e.position<t.position);for(const t of e)if(f(Rn)===t.route)return!0;return!1},removeLocalFile:!!f($t).hasOwnProperty("remove-local-file")&&f($t)["remove-local-file"],setInitialRemoveLocalFile:e=>(f(Rn)!==t.route&&!t.onPreviousPage()&&e.hasOwnProperty("settings")&&e.settings.hasOwnProperty("remove-local-file")&&(t.removeLocalFile=e.settings["remove-local-file"]),!1),isNextRoute:e=>!(!f($t).hasOwnProperty("bucket")||!f(kt).hasOwnProperty("offloaded")||f(kt).offloaded<1)&&(!!(e.hasOwnProperty("changed_settings")&&e.changed_settings.includes("remove-local-file")&&f($t).hasOwnProperty("remove-local-file")&&t.removeLocalFile!==f($t)["remove-local-file"]&&f($t)["remove-local-file"])||(!!(t.onPreviousPage()&&f($t).hasOwnProperty("remove-local-file")&&t.removeLocalFile!==f($t)["remove-local-file"]&&f($t)["remove-local-file"])||(f($t).hasOwnProperty("remove-local-file")&&(t.removeLocalFile=f($t)["remove-local-file"]),!1))),events:{next:e=>t.isNextRoute(e),"settings.save":e=>t.isNextRoute(e),"page.initial.settings":e=>t.setInitialRemoveLocalFile(e)}};$n.add(t)}if(e.hasOwnProperty("uploader")){const t={position:440,name:"uploader",title:()=>e.uploader.name,route:"/prompt/uploader",component:hf,onPreviousPage:()=>{const e=$n.withPrefix("/prompt/").filter(e=>e.position<t.position);for(const t of e)if(f(Rn)===t.route)return!0;return!1},copyToProvider:!!f($t).hasOwnProperty("copy-to-s3")&&f($t)["copy-to-s3"],setInitialCopyToProvider:e=>(f(Rn)!==t.route&&!t.onPreviousPage()&&e.hasOwnProperty("settings")&&e.settings.hasOwnProperty("copy-to-s3")&&(t.copyToProvider=e.settings["copy-to-s3"]),!1),isNextRoute:e=>!(!f($t).hasOwnProperty("bucket")||!f(kt).hasOwnProperty("not_offloaded")||f(kt).not_offloaded<1)&&(!!(e.hasOwnProperty("changed_settings")&&e.changed_settings.includes("copy-to-s3")&&f($t).hasOwnProperty("copy-to-s3")&&t.copyToProvider!==f($t)["copy-to-s3"]&&f($t)["copy-to-s3"])||(!!(t.onPreviousPage()&&f($t).hasOwnProperty("copy-to-s3")&&t.copyToProvider!==f($t)["copy-to-s3"]&&f($t)["copy-to-s3"])||(f($t).hasOwnProperty("copy-to-s3")&&(t.copyToProvider=f($t)["copy-to-s3"]),!1))),events:{next:e=>t.isNextRoute(e),"settings.save":e=>t.isNextRoute(e),"page.initial.settings":e=>t.setInitialCopyToProvider(e)}};$n.add(t)}if(e.hasOwnProperty("downloader")){const t={position:450,name:"downloader",title:()=>e.downloader.name,route:"/prompt/downloader",component:kf,onPreviousPage:()=>{const e=$n.withPrefix("/prompt/").filter(e=>e.position<t.position);for(const t of e)if(f(Rn)===t.route)return!0;return!1},removeLocalFile:!!f($t).hasOwnProperty("remove-local-file")&&f($t)["remove-local-file"],setInitialRemoveLocalFile:e=>(f(Rn)!==t.route&&!t.onPreviousPage()&&e.hasOwnProperty("settings")&&e.settings.hasOwnProperty("remove-local-file")&&(t.removeLocalFile=e.settings["remove-local-file"]),!1),isNextRoute:e=>!(!f($t).hasOwnProperty("bucket")||!f(kt).hasOwnProperty("offloaded")||f(kt).offloaded<1)&&(!(!(e.hasOwnProperty("changed_settings")&&e.changed_settings.includes("remove-local-file")&&f($t).hasOwnProperty("remove-local-file")&&t.removeLocalFile!==f($t)["remove-local-file"])||f($t)["remove-local-file"])||(!(!t.onPreviousPage()||!f($t).hasOwnProperty("remove-local-file")||t.removeLocalFile===f($t)["remove-local-file"]||f($t)["remove-local-file"])||(f($t).hasOwnProperty("remove-local-file")&&(t.removeLocalFile=f($t)["remove-local-file"]),!1))),events:{next:e=>t.isNextRoute(e),"settings.save":e=>t.isNextRoute(e),"page.initial.settings":e=>t.setInitialRemoveLocalFile(e)}};$n.add(t)}}const Pf={process:(e,t,n,o)=>{if(t.hasOwnProperty("remove-local-file")&&t["remove-local-file"]){let s=e.has("remove-local-file")?e.get("remove-local-file"):new Map;t.hasOwnProperty("serve-from-s3")&&!t["serve-from-s3"]?s.has("lost-files-notice")||s.set("lost-files-notice",{inline:!0,type:"error",heading:o.lost_files_notice_heading,message:o.lost_files_notice_message}):s.delete("lost-files-notice"),s.has("remove-local-file-notice")||!n.hasOwnProperty("remove-local-file")||n["remove-local-file"]||s.set("remove-local-file-notice",{inline:!0,type:"warning",message:o.remove_local_file_message}),e.set("remove-local-file",s)}else e.delete("remove-local-file");return e}},Sf={process:(e,t,n,o,s,i)=>{let c=e.has("use-yearmonth-folders")?e.get("use-yearmonth-folders"):new Map;return n.hasOwnProperty("use-yearmonth-folders")&&n["use-yearmonth-folders"]&&t.hasOwnProperty("use-yearmonth-folders")&&!t["use-yearmonth-folders"]&&s.hasOwnProperty("offloaded")&&s.offloaded>0&&i.hasOwnProperty("is_valid")&&i.is_valid?c.has("no-move-objects-year-month-notice")||c.set("no-move-objects-year-month-notice",{inline:!0,type:"warning",message:o.no_move_objects_year_month_notice}):c.has("no-move-objects-year-month-notice")&&c.delete("no-move-objects-year-month-notice"),e.set("use-yearmonth-folders",c),c=e.has("object-versioning")?e.get("object-versioning"):new Map,n.hasOwnProperty("object-versioning")&&n["object-versioning"]&&t.hasOwnProperty("object-versioning")&&!t["object-versioning"]&&s.hasOwnProperty("offloaded")&&s.offloaded>0&&i.hasOwnProperty("is_valid")&&i.is_valid?c.has("no-move-objects-object-versioning-notice")||c.set("no-move-objects-object-versioning-notice",{inline:!0,type:"warning",message:o.no_move_objects_object_versioning_notice}):c.has("no-move-objects-object-versioning-notice")&&c.delete("no-move-objects-object-versioning-notice"),e.set("object-versioning",c),e}},Rf="ui/components/Header.svelte";function Ef(e){let t,n,s,i,c,r,l,a,p,d,f,m=e[1].title+"";const g=e[4].default,v=$(g,e,e[3],null),y={c:function(){t=C("div"),n=C("div"),s=C("img"),r=H(),l=C("h1"),a=M(m),p=H(),d=C("div"),v&&v.c(),tt(s,"class","medallion"),u(s.src,i=e[0])||tt(s,"src",i),tt(s,"alt",c=e[1].title+" logo"),o(s,Rf,8,2,185),o(l,Rf,9,2,259),tt(d,"class","licence"),o(d,Rf,10,2,286),tt(n,"class","header-wrapper"),o(n,Rf,7,1,154),tt(t,"class","header"),o(t,Rf,6,0,132)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s),Ge(n,r),Ge(n,l),Ge(l,a),Ge(n,p),Ge(n,d),v&&v.m(d,null),f=!0},p:function(e,[t]){(!f||1&t&&!u(s.src,i=e[0]))&&tt(s,"src",i),(!f||2&t&&c!==(c=e[1].title+" logo"))&&tt(s,"alt",c),(!f||2&t)&&m!==(m=e[1].title+"")&&ot(a,m),v&&v.p&&(!f||8&t)&&w(v,g,e,e[3],f?h(g,e[3],t,null):b(e[3]),null)},i:function(e){f||(Te(v,e),f=!0)},o:function(e){Le(v,e),f=!1},d:function(e){e&&Qe(t),v&&v.d(e)}};return Je("SvelteRegisterBlock",{block:y,id:Ef.name,type:"component",source:"",ctx:e}),y}function jf(e,t,n){let o,s,i;p(bt,"urls"),m(e,bt,e=>n(2,s=e)),p(ft,"config"),m(e,ft,e=>n(1,i=e));let{$$slots:c={},$$scope:r}=t;it("Header",c,["default"]);const l=[];return Object.keys(t).forEach(e=>{~l.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Header> was created with unknown prop '${e}'`)}),e.$$set=e=>{"$$scope"in e&&n(3,r=e.$$scope)},e.$capture_state=()=>({config:ft,urls:bt,header_img_url:o,$urls:s,$config:i}),e.$inject_state=e=>{"header_img_url"in e&&n(0,o=e.header_img_url)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{4&e.$$.dirty&&n(0,o=s.assets+"img/brand/ome-medallion.svg")},[o,i,s,r,c]}class Bf extends rt{constructor(e){super(e),Xe(this,e,jf,Ef,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"Header",options:e,id:Ef.name})}}function Nf(e){let t,n,o;var s=e[0];s&&(t=ct(s,{$$inline:!0}));const i={c:function(){t&&Ve(t.$$.fragment),n=F()},m:function(e,s){t&&We(t,e,s),Ze(e,n,s),o=!0},p:function(e,o){if(1&o&&s!==(s=e[0])){if(t){Ne();const e=t;Le(e.$$.fragment,1,0,()=>{ze(e,1)}),Oe()}s?(t=ct(s,{$$inline:!0}),Ve(t.$$.fragment),Te(t.$$.fragment,1),We(t,n.parentNode,n)):t=null}},i:function(e){o||(t&&Te(t.$$.fragment,e),o=!0)},o:function(e){t&&Le(t.$$.fragment,e),o=!1},d:function(e){e&&Qe(n),t&&ze(t,e)}};return Je("SvelteRegisterBlock",{block:i,id:Nf.name,type:"if",source:"(29:0) {#if header}",ctx:e}),i}function Of(e){let t,n,o;var s=e[1];s&&(t=ct(s,{$$inline:!0}));const i={c:function(){t&&Ve(t.$$.fragment),n=F()},m:function(e,s){t&&We(t,e,s),Ze(e,n,s),o=!0},p:function(e,o){if(2&o&&s!==(s=e[1])){if(t){Ne();const e=t;Le(e.$$.fragment,1,0,()=>{ze(e,1)}),Oe()}s?(t=ct(s,{$$inline:!0}),Ve(t.$$.fragment),Te(t.$$.fragment,1),We(t,n.parentNode,n)):t=null}},i:function(e){o||(t&&Te(t.$$.fragment,e),o=!0)},o:function(e){t&&Le(t.$$.fragment,e),o=!1},d:function(e){e&&Qe(n),t&&ze(t,e)}};return Je("SvelteRegisterBlock",{block:i,id:Of.name,type:"if",source:"(35:0) {#if footer}",ctx:e}),i}function Tf(e){let t,n,o,s,i=e[0]&&Nf(e);const c=e[3].default,r=$(c,e,e[2],null);let l=e[1]&&Of(e);const a={c:function(){i&&i.c(),t=H(),r&&r.c(),n=H(),l&&l.c(),o=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,c){i&&i.m(e,c),Ze(e,t,c),r&&r.m(e,c),Ze(e,n,c),l&&l.m(e,c),Ze(e,o,c),s=!0},p:function(e,[n]){e[0]?i?(i.p(e,n),1&n&&Te(i,1)):(i=Nf(e),i.c(),Te(i,1),i.m(t.parentNode,t)):i&&(Ne(),Le(i,1,1,()=>{i=null}),Oe()),r&&r.p&&(!s||4&n)&&w(r,c,e,e[2],s?h(c,e[2],n,null):b(e[2]),null),e[1]?l?(l.p(e,n),2&n&&Te(l,1)):(l=Of(e),l.c(),Te(l,1),l.m(o.parentNode,o)):l&&(Ne(),Le(l,1,1,()=>{l=null}),Oe())},i:function(e){s||(Te(i),Te(r,e),Te(l),s=!0)},o:function(e){Le(i),Le(r,e),Le(l),s=!1},d:function(e){e&&(Qe(t),Qe(n),Qe(o)),i&&i.d(e),r&&r.d(e),l&&l.d(e)}};return Je("SvelteRegisterBlock",{block:a,id:Tf.name,type:"component",source:"",ctx:e}),a}function Lf(e,t,n){let o;p(ft,"config"),m(e,ft,e=>n(4,o=e));let{$$slots:s={},$$scope:i}=t;it("Settings",s,["default"]);let{header:c=Bf}=t,{footer:r=null}=t;if(Ct.set({...o.settings}),o.notifications.length)for(const e of o.notifications)Wt.add(e);ie(()=>(Zt.startPeriodicFetch(),()=>Zt.stopPeriodicFetch()));const l=["header","footer"];return Object.keys(t).forEach(e=>{~l.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Settings> was created with unknown prop '${e}'`)}),e.$$set=e=>{"header"in e&&n(0,c=e.header),"footer"in e&&n(1,r=e.footer),"$$scope"in e&&n(2,i=e.$$scope)},e.$capture_state=()=>({onMount:ie,config:ft,notifications:Wt,settings:Ct,state:Zt,Header:Bf,header:c,footer:r,$config:o}),e.$inject_state=e=>{"header"in e&&n(0,c=e.header),"footer"in e&&n(1,r=e.footer)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[c,r,i,s]}class Df extends rt{constructor(e){super(e),Xe(this,e,Lf,Tf,l,{header:0,footer:1}),Je("SvelteRegisterComponent",{component:this,tagName:"Settings",options:e,id:Tf.name})}get header(){throw new Error("<Settings>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set header(e){throw new Error("<Settings>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get footer(){throw new Error("<Settings>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set footer(e){throw new Error("<Settings>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Cf="ui/pro/Header.svelte";function Mf(t){let n,s;const i={c:function(){n=C("div"),s=C("span"),s.textContent="Internal Build",o(s,Cf,6,2,110),tt(n,"class","licence-type"),o(n,Cf,5,1,81)},m:function(e,t){Ze(e,n,t),Ge(n,s)},p:e,d:function(e){e&&Qe(n)}};return Je("SvelteRegisterBlock",{block:i,id:Mf.name,type:"slot",source:"(5:0) <Header>",ctx:t}),i}function Hf(e){let t,n;t=new Bf({props:{$$slots:{default:[Mf]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};1&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Hf.name,type:"component",source:"",ctx:e}),o}function Ff(e,t,n){let{$$slots:o={},$$scope:s}=t;it("Header",o,[]);const i=[];return Object.keys(t).forEach(e=>{~i.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Header> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({Header:Bf}),[]}class Af extends rt{constructor(e){super(e),Xe(this,e,Ff,Hf,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"Header_1",options:e,id:Hf.name})}}const Kf="ui/components/NavItem.svelte";function If(t){let n,s,i,l,a,u,p,d,f=t[0].title()+"";const m={c:function(){n=C("li"),s=C("a"),i=M(f),tt(s,"href",l=t[0].route),tt(s,"title",a=t[0].title()),o(s,Kf,11,1,276),tt(n,"class","nav-item"),Y(n,"focus",t[1]),Y(n,"hover",t[2]),o(n,Kf,10,0,168)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,n,o),Ge(n,s),Ge(s,i),p||(d=[_(Tn.call(null,s)),et(s,"focusin",t[3],!1,!1,!1,!1),et(s,"focusout",t[4],!1,!1,!1,!1),et(s,"mouseenter",t[5],!1,!1,!1,!1),et(s,"mouseleave",t[6],!1,!1,!1,!1),_(u=qo.call(null,n,t[0].routeMatcher?t[0].routeMatcher:t[0].route))],p=!0)},p:function(e,[t]){1&t&&f!==(f=e[0].title()+"")&&ot(i,f),1&t&&l!==(l=e[0].route)&&tt(s,"href",l),1&t&&a!==(a=e[0].title())&&tt(s,"title",a),u&&r(u.update)&&1&t&&u.update.call(null,e[0].routeMatcher?e[0].routeMatcher:e[0].route),2&t&&Y(n,"focus",e[1]),4&t&&Y(n,"hover",e[2])},i:e,o:e,d:function(e){e&&Qe(n),p=!1,c(d)}};return Je("SvelteRegisterBlock",{block:m,id:If.name,type:"component",source:"",ctx:t}),m}function Uf(e,t,n){let{$$slots:o={},$$scope:s}=t;it("NavItem",o,[]);let{tab:i}=t,c=!1,r=!1;e.$$.on_mount.push(function(){void 0!==i||"tab"in t||e.$$.bound[e.$$.props.tab]||console.warn("<NavItem> was created without expected prop 'tab'")});const l=["tab"];Object.keys(t).forEach(e=>{~l.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<NavItem> was created with unknown prop '${e}'`)});return e.$$set=e=>{"tab"in e&&n(0,i=e.tab)},e.$capture_state=()=>({link:Tn,active:qo,tab:i,focus:c,hover:r}),e.$inject_state=e=>{"tab"in e&&n(0,i=e.tab),"focus"in e&&n(1,c=e.focus),"hover"in e&&n(2,r=e.hover)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[i,c,r,()=>n(1,c=!0),()=>n(1,c=!1),()=>n(2,r=!0),()=>n(2,r=!1)]}class qf extends rt{constructor(e){super(e),Xe(this,e,Uf,If,l,{tab:0}),Je("SvelteRegisterComponent",{component:this,tagName:"NavItem",options:e,id:If.name})}get tab(){throw new Error("<NavItem>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set tab(e){throw new Error("<NavItem>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const Vf="ui/components/OffloadStatusFlyout.svelte",Wf=e=>({}),zf=e=>({});function Xf(e,t,n){const o=e.slice();return o[21]=t[n],o}function Yf(e){let t,n,o;function s(t){e[19](t)}let i={multi:!0,flyout:!0,refresh:!0,refreshing:e[3],heading:e[4].offload_status_title,refreshDesc:e[4].refresh_media_counts_desc,$$slots:{default:[cm]},$$scope:{ctx:e}};void 0!==e[2]&&(i.ref=e[2]),t=new Cs({props:i,$$inline:!0}),me.push(()=>qe(t,"ref",s)),t.$on("focusout",e[12]),t.$on("mouseenter",e[9]),t.$on("mouseleave",e[10]),t.$on("mousedown",e[9]),t.$on("click",e[11]),t.$on("cancel",e[13]),t.$on("refresh",e[14]);const c={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),o=!0},p:function(e,o){const s={};8&o&&(s.refreshing=e[3]),16&o&&(s.heading=e[4].offload_status_title),16&o&&(s.refreshDesc=e[4].refresh_media_counts_desc),1049072&o&&(s.$$scope={dirty:o,ctx:e}),!n&&4&o&&(n=!0,s.ref=e[2],_e(()=>n=!1)),t.$set(s)},i:function(e){o||(Te(t.$$.fragment,e),o=!0)},o:function(e){Le(t.$$.fragment,e),o=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:c,id:Yf.name,type:"if",source:"(118:0) {#if expanded}",ctx:e}),c}function Jf(e){let t,n,s=Du(e[21].offloaded)+"";const i={c:function(){t=C("td"),n=M(s),tt(t,"class","numeric"),o(t,Vf,153,7,3402)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,t){32&t&&s!==(s=Du(e[21].offloaded)+"")&&ot(n,s)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:i,id:Jf.name,type:"else",source:"(153:6) {:else}",ctx:e}),i}function Gf(e){let t,n,s,i,c=Du(e[21].offloaded)+"";const r={c:function(){t=C("td"),n=C("a"),s=M(c),tt(n,"href",i=e[21].offloaded_url),o(n,Vf,150,8,3295),tt(t,"class","numeric"),o(t,Vf,149,7,3266)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s)},p:function(e,t){32&t&&c!==(c=Du(e[21].offloaded)+"")&&ot(s,c),32&t&&i!==(i=e[21].offloaded_url)&&tt(n,"href",i)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:r,id:Gf.name,type:"if",source:"(149:6) {#if summary.offloaded_url}",ctx:e}),r}function Zf(e){let t,n,s=Du(e[21].not_offloaded)+"";const i={c:function(){t=C("td"),n=M(s),tt(t,"class","numeric"),o(t,Vf,160,7,3663)},m:function(e,o){Ze(e,t,o),Ge(t,n)},p:function(e,t){32&t&&s!==(s=Du(e[21].not_offloaded)+"")&&ot(n,s)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:i,id:Zf.name,type:"else",source:"(160:6) {:else}",ctx:e}),i}function Qf(e){let t,n,s,i,c=Du(e[21].not_offloaded)+"";const r={c:function(){t=C("td"),n=C("a"),s=M(c),tt(n,"href",i=e[21].not_offloaded_url),o(n,Vf,157,8,3548),tt(t,"class","numeric"),o(t,Vf,156,7,3519)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s)},p:function(e,t){32&t&&c!==(c=Du(e[21].not_offloaded)+"")&&ot(s,c),32&t&&i!==(i=e[21].not_offloaded_url)&&tt(n,"href",i)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:r,id:Qf.name,type:"if",source:"(156:6) {#if summary.not_offloaded_url}",ctx:e}),r}function em(e,t){let n,s,i,c,r,l,a=t[21].name+"";function u(e,t){return e[21].offloaded_url?Gf:Jf}let p=u(t),d=p(t);function f(e,t){return e[21].not_offloaded_url?Qf:Zf}let m=f(t),$=m(t);const g={key:e,first:null,c:function(){n=C("tr"),s=C("td"),i=M(a),c=H(),d.c(),r=H(),$.c(),l=H(),o(s,Vf,147,6,3201),o(n,Vf,146,5,3190),this.first=n},m:function(e,t){Ze(e,n,t),Ge(n,s),Ge(s,i),Ge(n,c),d.m(n,null),Ge(n,r),$.m(n,null),Ge(n,l)},p:function(e,o){t=e,32&o&&a!==(a=t[21].name+"")&&ot(i,a),p===(p=u(t))&&d?d.p(t,o):(d.d(1),d=p(t),d&&(d.c(),d.m(n,r))),m===(m=f(t))&&$?$.p(t,o):($.d(1),$=m(t),$&&($.c(),$.m(n,l)))},d:function(e){e&&Qe(n),d.d(),$.d()}};return Je("SvelteRegisterBlock",{block:g,id:em.name,type:"each",source:"(146:4) {#each $summaryCounts as summary (summary.type)}",ctx:t}),g}function tm(e){let t,n,s,i,c,r,l,a,u,p,d=e[4].summary_total_row_title+"",f=Du(e[6].offloaded)+"",m=Du(e[6].not_offloaded)+"";const $={c:function(){t=C("tfoot"),n=C("tr"),s=C("td"),i=M(d),c=H(),r=C("td"),l=M(f),a=H(),u=C("td"),p=M(m),o(s,Vf,169,6,3841),tt(r,"class","numeric"),o(r,Vf,170,6,3891),tt(u,"class","numeric"),o(u,Vf,171,6,3957),o(n,Vf,168,5,3830),o(t,Vf,167,5,3817)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s),Ge(s,i),Ge(n,c),Ge(n,r),Ge(r,l),Ge(n,a),Ge(n,u),Ge(u,p)},p:function(e,t){16&t&&d!==(d=e[4].summary_total_row_title+"")&&ot(i,d),64&t&&f!==(f=Du(e[6].offloaded)+"")&&ot(l,f),64&t&&m!==(m=Du(e[6].not_offloaded)+"")&&ot(p,m)},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:$,id:tm.name,type:"if",source:"(167:4) {#if $summaryCounts.length > 1}",ctx:e}),$}function nm(e){let t,n,s,i,c,r,l,a,u,p,d,f,m,$,g=e[4].summary_type_title+"",h=e[4].summary_offloaded_title+"",w=e[4].summary_not_offloaded_title+"",b=[],v=new Map,y=st(e[5]);const _=e=>e[21].type;Ke(e,y,Xf,_);for(let t=0;t<y.length;t+=1){let n=Xf(e,y,t),o=_(n);v.set(o,b[t]=em(o,n))}let k=e[5].length>1&&tm(e);const x={c:function(){t=C("table"),n=C("thead"),s=C("tr"),i=C("th"),c=M(g),r=H(),l=C("th"),a=M(h),u=H(),p=C("th"),d=M(w),f=H(),m=C("tbody");for(let e=0;e<b.length;e+=1)b[e].c();$=H(),k&&k.c(),o(i,Vf,138,5,2923),tt(l,"class","numeric"),o(l,Vf,139,5,2967),tt(p,"class","numeric"),o(p,Vf,140,5,3032),o(s,Vf,137,4,2913),o(n,Vf,136,4,2901),o(m,Vf,144,4,3124),o(t,Vf,135,3,2889)},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s),Ge(s,i),Ge(i,c),Ge(s,r),Ge(s,l),Ge(l,a),Ge(s,u),Ge(s,p),Ge(p,d),Ge(t,f),Ge(t,m);for(let e=0;e<b.length;e+=1)b[e]&&b[e].m(m,null);Ge(t,$),k&&k.m(t,null)},p:function(e,n){16&n&&g!==(g=e[4].summary_type_title+"")&&ot(c,g),16&n&&h!==(h=e[4].summary_offloaded_title+"")&&ot(a,h),16&n&&w!==(w=e[4].summary_not_offloaded_title+"")&&ot(d,w),32&n&&(y=st(e[5]),Ke(e,y,Xf,_),b=Ae(b,n,_,1,e,y,v,m,He,em,null,Xf)),e[5].length>1?k?k.p(e,n):(k=tm(e),k.c(),k.m(t,null)):k&&(k.d(1),k=null)},d:function(e){e&&Qe(t);for(let e=0;e<b.length;e+=1)b[e].d();k&&k.d()}};return Je("SvelteRegisterBlock",{block:x,id:nm.name,type:"slot",source:'(135:2) <PanelRow class=\\"summary\\">',ctx:e}),x}function om(e){let t;const n={c:function(){t=C("p"),o(t,Vf,181,5,4181)},m:function(n,o){Ze(n,t,o),t.innerHTML=e[7]},p:function(e,n){128&n&&(t.innerHTML=e[7])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:om.name,type:"if",source:"(181:4) {#if $offloadRemainingUpsell}",ctx:e}),n}function sm(e){let t,n,s,i,c,r,l,a=e[4].offload_remaining_upsell_cta+"",p=e[7]&&om(e);const d={c:function(){p&&p.c(),t=H(),n=C("a"),s=C("img"),c=H(),r=M(a),u(s.src,i=e[8].assets+"img/icon/stars.svg")||tt(s,"src",i),tt(s,"alt","stars icon"),U(s,"margin-right","5px"),o(s,Vf,184,5,4330),tt(n,"href",l=e[8].upsell_discount),tt(n,"class","button btn-sm btn-primary licence"),tt(n,"target","_blank"),o(n,Vf,183,4,4234)},m:function(e,o){p&&p.m(e,o),Ze(e,t,o),Ze(e,n,o),Ge(n,s),Ge(n,c),Ge(n,r)},p:function(e,o){e[7]?p?p.p(e,o):(p=om(e),p.c(),p.m(t.parentNode,t)):p&&(p.d(1),p=null),256&o&&!u(s.src,i=e[8].assets+"img/icon/stars.svg")&&tt(s,"src",i),16&o&&a!==(a=e[4].offload_remaining_upsell_cta+"")&&ot(r,a),256&o&&l!==(l=e[8].upsell_discount)&&tt(n,"href",l)},d:function(e){e&&(Qe(t),Qe(n)),p&&p.d(e)}};return Je("SvelteRegisterBlock",{block:d,id:sm.name,type:"slot",source:'(180:3) <PanelRow footer class=\\"upsell\\">',ctx:e}),d}function im(e){let t,n;t=new is({props:{footer:!0,class:"upsell",$$slots:{default:[sm]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1048976&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:im.name,type:"fallback",source:"(179:22) ",ctx:e}),o}function cm(e){let t,n,o;t=new is({props:{class:"summary",$$slots:{default:[nm]},$$scope:{ctx:e}},$$inline:!0});const s=e[16].footer,i=$(s,e,e[20],zf),c=i||im(e),r={c:function(){Ve(t.$$.fragment),n=H(),c&&c.c()},m:function(e,s){We(t,e,s),Ze(e,n,s),c&&c.m(e,s),o=!0},p:function(e,n){const r={};1048688&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r),i?i.p&&(!o||1048576&n)&&w(i,s,e,e[20],o?h(s,e[20],n,Wf):b(e[20]),zf):c&&c.p&&(!o||400&n)&&c.p(e,o?n:-1)},i:function(e){o||(Te(t.$$.fragment,e),Te(c,e),o=!0)},o:function(e){Le(t.$$.fragment,e),Le(c,e),o=!1},d:function(e){e&&Qe(n),ze(t,e),c&&c.d(e)}};return Je("SvelteRegisterBlock",{block:r,id:cm.name,type:"slot",source:"(119:1) <Panel multi flyout refresh {refreshing} heading={$strings.offload_status_title} refreshDesc={$strings.refresh_media_counts_desc} bind:ref={panelRef} on:focusout={handleFocusOut} on:mouseenter={handleMouseEnter} on:mouseleave={handleMouseLeave} on:mousedown={handleMouseEnter} on:click={handlePanelClick} on:cancel={handleCancel} on:refresh={handleRefresh} >",ctx:e}),r}function rm(e){let t,n,o,s,i;function c(t){e[17](t)}let r={expandable:!0,expanded:e[0],title:e[0]?e[4].hide_details:e[4].show_details};void 0!==e[1]&&(r.ref=e[1]),t=new zn({props:r,$$inline:!0}),me.push(()=>qe(t,"ref",c)),t.$on("click",e[18]),t.$on("focusout",e[12]),t.$on("cancel",e[13]);let l=e[0]&&Yf(e);const a={c:function(){Ve(t.$$.fragment),o=H(),l&&l.c(),s=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,n){We(t,e,n),Ze(e,o,n),l&&l.m(e,n),Ze(e,s,n),i=!0},p:function(e,[o]){const i={};1&o&&(i.expanded=e[0]),17&o&&(i.title=e[0]?e[4].hide_details:e[4].show_details),!n&&2&o&&(n=!0,i.ref=e[1],_e(()=>n=!1)),t.$set(i),e[0]?l?(l.p(e,o),1&o&&Te(l,1)):(l=Yf(e),l.c(),Te(l,1),l.m(s.parentNode,s)):l&&(Ne(),Le(l,1,1,()=>{l=null}),Oe())},i:function(e){i||(Te(t.$$.fragment,e),Te(l),i=!0)},o:function(e){Le(t.$$.fragment,e),Le(l),i=!1},d:function(e){e&&(Qe(o),Qe(s)),ze(t,e),l&&l.d(e)}};return Je("SvelteRegisterBlock",{block:a,id:rm.name,type:"component",source:"",ctx:e}),a}function lm(e,t,n){let o,s,i,c,r;p(ht,"strings"),m(e,ht,e=>n(4,o=e)),p(xt,"summaryCounts"),m(e,xt,e=>n(5,s=e)),p(kt,"counts"),m(e,kt,e=>n(6,i=e)),p(Pt,"offloadRemainingUpsell"),m(e,Pt,e=>n(7,c=e)),p(bt,"urls"),m(e,bt,e=>n(8,r=e));let{$$slots:l={},$$scope:a}=t;it("OffloadStatusFlyout",l,["footer"]);let{expanded:u=!1}=t,{buttonRef:d={}}=t,{panelRef:f={}}=t,{hasFocus:$=!1}=t,{refreshing:g=!1}=t;function h(){n(15,$=!0)}function w(){n(15,$=!1)}function b(){n(15,$=!0);const e=f.querySelector("a:not([tabindex='-1']),button:not([tabindex='-1'])");e&&e.focus()}function v(e){if(!u)return!1;null!==e.relatedTarget||$||n(0,u=!1),null===e.relatedTarget||e.relatedTarget===d||f.contains(e.relatedTarget)||n(0,u=!1)}function y(){d.focus(),n(0,u=!1)}async function _(){let e=Date.now();n(3,g=!0);let t=await Dt.get("state",{refreshMediaCounts:!0});await Us(e,1e3),Zt.updateState(t),n(3,g=!1),d.focus()}const k=["expanded","buttonRef","panelRef","hasFocus","refreshing"];Object.keys(t).forEach(e=>{~k.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<OffloadStatusFlyout> was created with unknown prop '${e}'`)});return e.$$set=e=>{"expanded"in e&&n(0,u=e.expanded),"buttonRef"in e&&n(1,d=e.buttonRef),"panelRef"in e&&n(2,f=e.panelRef),"hasFocus"in e&&n(15,$=e.hasFocus),"refreshing"in e&&n(3,g=e.refreshing),"$$scope"in e&&n(20,a=e.$$scope)},e.$capture_state=()=>({counts:kt,offloadRemainingUpsell:Pt,summaryCounts:xt,strings:ht,urls:bt,api:Dt,state:Zt,numToString:Du,delayMin:Us,Button:zn,Panel:Cs,PanelRow:is,expanded:u,buttonRef:d,panelRef:f,hasFocus:$,refreshing:g,handleMouseEnter:h,handleMouseLeave:w,handlePanelClick:b,handleFocusOut:v,handleCancel:y,handleRefresh:_,$strings:o,$summaryCounts:s,$counts:i,$offloadRemainingUpsell:c,$urls:r}),e.$inject_state=e=>{"expanded"in e&&n(0,u=e.expanded),"buttonRef"in e&&n(1,d=e.buttonRef),"panelRef"in e&&n(2,f=e.panelRef),"hasFocus"in e&&n(15,$=e.hasFocus),"refreshing"in e&&n(3,g=e.refreshing)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),[u,d,f,g,o,s,i,c,r,h,w,b,v,y,_,$,l,function(e){d=e,n(1,d)},()=>n(0,u=!u),function(e){f=e,n(2,f)},a]}class am extends rt{constructor(e){super(e),Xe(this,e,lm,rm,l,{expanded:0,buttonRef:1,panelRef:2,hasFocus:15,refreshing:3}),Je("SvelteRegisterComponent",{component:this,tagName:"OffloadStatusFlyout",options:e,id:rm.name})}get expanded(){throw new Error("<OffloadStatusFlyout>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set expanded(e){throw new Error("<OffloadStatusFlyout>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get buttonRef(){throw new Error("<OffloadStatusFlyout>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set buttonRef(e){throw new Error("<OffloadStatusFlyout>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get panelRef(){throw new Error("<OffloadStatusFlyout>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set panelRef(e){throw new Error("<OffloadStatusFlyout>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get hasFocus(){throw new Error("<OffloadStatusFlyout>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set hasFocus(e){throw new Error("<OffloadStatusFlyout>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get refreshing(){throw new Error("<OffloadStatusFlyout>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set refreshing(e){throw new Error("<OffloadStatusFlyout>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const um="ui/components/OffloadStatus.svelte",pm=e=>({}),dm=e=>({});function fm(e){let t,n;const s={c:function(){t=C("img"),tt(t,"class","icon type"),u(t.src,n=e[7].assets+"img/icon/licence-checked.svg")||tt(t,"src",n),tt(t,"alt",e[5]),tt(t,"title",e[5]),o(t,um,91,3,2209)},m:function(e,n){Ze(e,t,n)},p:function(e,o){128&o&&!u(t.src,n=e[7].assets+"img/icon/licence-checked.svg")&&tt(t,"src",n),32&o&&tt(t,"alt",e[5]),32&o&&tt(t,"title",e[5])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:s,id:fm.name,type:"if",source:"(91:2) {#if complete}",ctx:e}),s}function mm(e){let t,n,o,s,i;function c(t){e[14](t)}function r(t){e[15](t)}function l(t){e[16](t)}let a={};void 0!==e[0]&&(a.expanded=e[0]),void 0!==e[2]&&(a.hasFocus=e[2]),void 0!==e[1]&&(a.buttonRef=e[1]),t=new am({props:a,$$inline:!0}),me.push(()=>qe(t,"expanded",c)),me.push(()=>qe(t,"hasFocus",r)),me.push(()=>qe(t,"buttonRef",l));const u={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),i=!0},p:function(e,i){const c={};!n&&1&i&&(n=!0,c.expanded=e[0],_e(()=>n=!1)),!o&&4&i&&(o=!0,c.hasFocus=e[2],_e(()=>o=!1)),!s&&2&i&&(s=!0,c.buttonRef=e[1],_e(()=>s=!1)),t.$set(c)},i:function(e){i||(Te(t.$$.fragment,e),i=!0)},o:function(e){Le(t.$$.fragment,e),i=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:u,id:mm.name,type:"fallback",source:"(111:21) ",ctx:e}),u}function $m(e){let t,n,s,i,r,l,a,u,p,d,f,m,g,v,y,_=e[4].offloaded+"",k=e[6]&&fm(e);f=new Pu({props:{percentComplete:e[3],title:e[5]},$$inline:!0});const x=e[13].flyout,P=$(x,e,e[12],dm),S=P||mm(e),R={c:function(){t=C("div"),n=C("div"),k&&k.c(),s=H(),i=C("p"),r=C("strong"),l=M(e[3]),a=M("%"),u=H(),p=C("span"),d=H(),Ve(f.$$.fragment),m=H(),S&&S.c(),o(r,um,102,3,2382),o(p,um,103,3,2421),tt(i,"class","status-text"),tt(i,"title",e[5]),o(i,um,98,2,2338),tt(n,"class","nav-status"),tt(n,"title",e[5]),o(n,um,83,1,2040),tt(t,"class","nav-status-wrapper svelte-1i784er"),Y(t,"complete",e[6]),o(t,um,80,0,1907)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(o,c){Ze(o,t,c),Ge(t,n),k&&k.m(n,null),Ge(n,s),Ge(n,i),Ge(i,r),Ge(r,l),Ge(r,a),Ge(i,u),Ge(i,p),p.innerHTML=_,Ge(n,d),We(f,n,null),Ge(t,m),S&&S.m(t,null),g=!0,v||(y=[et(n,"click",K(e[8]),!1,!0,!1,!1),et(n,"mouseenter",e[9],!1,!1,!1,!1),et(n,"mouseleave",e[10],!1,!1,!1,!1)],v=!0)},p:function(e,[o]){e[6]?k?k.p(e,o):(k=fm(e),k.c(),k.m(n,s)):k&&(k.d(1),k=null),(!g||8&o)&&ot(l,e[3]),(!g||16&o)&&_!==(_=e[4].offloaded+"")&&(p.innerHTML=_),(!g||32&o)&&tt(i,"title",e[5]);const c={};8&o&&(c.percentComplete=e[3]),32&o&&(c.title=e[5]),f.$set(c),(!g||32&o)&&tt(n,"title",e[5]),P?P.p&&(!g||4096&o)&&w(P,x,e,e[12],g?h(x,e[12],o,pm):b(e[12]),dm):S&&S.p&&(!g||7&o)&&S.p(e,g?o:-1),(!g||64&o)&&Y(t,"complete",e[6])},i:function(e){g||(Te(f.$$.fragment,e),Te(S,e),g=!0)},o:function(e){Le(f.$$.fragment,e),Le(S,e),g=!1},d:function(e){e&&Qe(t),k&&k.d(),ze(f),S&&S.d(e),v=!1,c(y)}};return Je("SvelteRegisterBlock",{block:R,id:$m.name,type:"component",source:"",ctx:e}),R}function gm(e,t){if(e<1||t<1)return 0;const n=Math.floor(Math.abs(t/e*100));return n>100?100:n}function hm(e,t,n){let o,s,i,c,r,l;p(ht,"strings"),m(e,ht,e=>n(4,c=e)),p(kt,"counts"),m(e,kt,e=>n(11,r=e)),p(bt,"urls"),m(e,bt,e=>n(7,l=e));let{$$slots:a={},$$scope:u}=t;it("OffloadStatus",a,["flyout"]);let{expanded:d=!1}=t,{flyoutButton:f={}}=t,{hasFocus:$=!1}=t;function g(e,t,n,o){return e+"% ("+Du(n)+"/"+Du(t)+") "+o}function h(){return n(0,d=!d),f.focus(),!0}function w(){n(2,$=!0)}function b(){n(2,$=!1)}const v=["expanded","flyoutButton","hasFocus"];return Object.keys(t).forEach(e=>{~v.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<OffloadStatus> was created with unknown prop '${e}'`)}),e.$$set=e=>{"expanded"in e&&n(0,d=e.expanded),"flyoutButton"in e&&n(1,f=e.flyoutButton),"hasFocus"in e&&n(2,$=e.hasFocus),"$$scope"in e&&n(12,u=e.$$scope)},e.$capture_state=()=>({counts:kt,strings:ht,urls:bt,numToString:Du,ProgressBar:Pu,OffloadStatusFlyout:am,expanded:d,flyoutButton:f,hasFocus:$,getPercentComplete:gm,getTitle:g,handleClick:h,handleMouseEnter:w,handleMouseLeave:b,percentComplete:o,title:i,complete:s,$strings:c,$counts:r,$urls:l}),e.$inject_state=e=>{"expanded"in e&&n(0,d=e.expanded),"flyoutButton"in e&&n(1,f=e.flyoutButton),"hasFocus"in e&&n(2,$=e.hasFocus),"percentComplete"in e&&n(3,o=e.percentComplete),"title"in e&&n(5,i=e.title),"complete"in e&&n(6,s=e.complete)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{2048&e.$$.dirty&&n(3,o=gm(r.total,r.offloaded)),8&e.$$.dirty&&n(6,s=o>=100),2072&e.$$.dirty&&n(5,i=g(o,r.total,r.offloaded,c.offloaded))},[d,f,$,o,c,i,s,l,h,w,b,r,u,a,function(e){d=e,n(0,d)},function(e){$=e,n(2,$)},function(e){f=e,n(1,f)}]}class wm extends rt{constructor(e){super(e),Xe(this,e,hm,$m,l,{expanded:0,flyoutButton:1,hasFocus:2}),Je("SvelteRegisterComponent",{component:this,tagName:"OffloadStatus",options:e,id:$m.name})}get expanded(){throw new Error("<OffloadStatus>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set expanded(e){throw new Error("<OffloadStatus>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get flyoutButton(){throw new Error("<OffloadStatus>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set flyoutButton(e){throw new Error("<OffloadStatus>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}get hasFocus(){throw new Error("<OffloadStatus>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set hasFocus(e){throw new Error("<OffloadStatus>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}const bm="ui/components/Nav.svelte";function vm(e,t,n){const o=e.slice();return o[3]=t[n],o}function ym(e){let t,n;t=new qf({props:{tab:e[3]},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};1&n&&(o.tab=e[3]),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:ym.name,type:"if",source:"(11:4) {#if tab.nav && tab.title}",ctx:e}),o}function _m(e,t){let n,o,s,i=t[3].nav&&t[3].title&&ym(t);const c={key:e,first:null,c:function(){n=F(),i&&i.c(),o=F(),this.first=n},m:function(e,t){Ze(e,n,t),i&&i.m(e,t),Ze(e,o,t),s=!0},p:function(e,n){(t=e)[3].nav&&t[3].title?i?(i.p(t,n),1&n&&Te(i,1)):(i=ym(t),i.c(),Te(i,1),i.m(o.parentNode,o)):i&&(Ne(),Le(i,1,1,()=>{i=null}),Oe())},i:function(e){s||(Te(i),s=!0)},o:function(e){Le(i),s=!1},d:function(e){e&&(Qe(n),Qe(o)),i&&i.d(e)}};return Je("SvelteRegisterBlock",{block:c,id:_m.name,type:"each",source:"(10:3) {#each $pages as tab (tab.position)}",ctx:t}),c}function km(e){let t,n;t=new wm({$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:km.name,type:"fallback",source:"(16:8) ",ctx:e}),o}function xm(e){let t,n,s,i,c,r=[],l=new Map,a=st(e[0]);const u=e=>e[3].position;Ke(e,a,vm,u);for(let t=0;t<a.length;t+=1){let n=vm(e,a,t),o=u(n);l.set(o,r[t]=_m(o,n))}const p=e[2].default,d=$(p,e,e[1],null),f=d||km(e),m={c:function(){t=C("div"),n=C("div"),s=C("ul");for(let e=0;e<r.length;e+=1)r[e].c();i=H(),f&&f.c(),tt(s,"class","nav"),o(s,bm,8,2,192),tt(n,"class","items"),o(n,bm,7,1,170),tt(t,"class","nav"),o(t,bm,6,0,151)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){Ze(e,t,o),Ge(t,n),Ge(n,s);for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(s,null);Ge(n,i),f&&f.m(n,null),c=!0},p:function(e,[t]){1&t&&(a=st(e[0]),Ne(),Ke(e,a,vm,u),r=Ae(r,t,u,1,e,a,l,s,Fe,_m,null,vm),Oe()),d&&d.p&&(!c||2&t)&&w(d,p,e,e[1],c?h(p,e[1],t,null):b(e[1]),null)},i:function(e){if(!c){for(let e=0;e<a.length;e+=1)Te(r[e]);Te(f,e),c=!0}},o:function(e){for(let e=0;e<r.length;e+=1)Le(r[e]);Le(f,e),c=!1},d:function(e){e&&Qe(t);for(let e=0;e<r.length;e+=1)r[e].d();f&&f.d(e)}};return Je("SvelteRegisterBlock",{block:m,id:xm.name,type:"component",source:"",ctx:e}),m}function Pm(e,t,n){let o;p($n,"pages"),m(e,$n,e=>n(0,o=e));let{$$slots:s={},$$scope:i}=t;it("Nav",s,["default"]);const c=[];return Object.keys(t).forEach(e=>{~c.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Nav> was created with unknown prop '${e}'`)}),e.$$set=e=>{"$$scope"in e&&n(1,i=e.$$scope)},e.$capture_state=()=>({pages:$n,NavItem:qf,OffloadStatus:wm,$pages:o}),[o,i,s]}class Sm extends rt{constructor(e){super(e),Xe(this,e,Pm,xm,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"Nav",options:e,id:xm.name})}}const{Object:Rm}=j,Em="ui/pro/ToolRunningStatus.svelte";function jm(e){let t,n,s,i,c,r,l,a,p,d,f,m,$,g,h,w,b,v,y,_,k=e[1].progress+"";d=new Pu({props:{percentComplete:e[2],starting:e[5],running:e[0],paused:e[1].is_paused,title:e[3]},$$inline:!0}),b=new Tu({props:{tool:e[1],disabled:e[6],small:!0},$$inline:!0});const x={c:function(){t=C("div"),n=C("div"),s=C("p"),i=C("strong"),c=M(k),r=M("%"),l=H(),a=C("span"),p=H(),Ve(d.$$.fragment),f=H(),m=C("div"),$=C("img"),w=H(),Ve(b.$$.fragment),o(i,Em,77,4,2381),o(a,Em,78,4,2419),tt(s,"class","status-text"),tt(s,"title",e[3]),o(s,Em,76,3,2345),u($.src,g=e[8].assets+"img/icon/"+e[7])||tt($,"src",g),tt($,"alt",h=e[1].status_description),o($,Em,88,4,2626),tt(m,"class","animation-running"),tt(m,"title",e[3]),o(m,Em,87,3,2582),tt(n,"class","nav-status"),tt(n,"title",e[3]),o(n,Em,75,2,2277),tt(t,"class","nav-status-wrapper tool-running"),o(t,Em,71,1,2082)},m:function(o,u){Ze(o,t,u),Ge(t,n),Ge(n,s),Ge(s,i),Ge(i,c),Ge(i,r),Ge(s,l),Ge(s,a),a.innerHTML=e[4],Ge(n,p),We(d,n,null),Ge(n,f),Ge(n,m),Ge(m,$),Ge(t,w),We(b,t,null),v=!0,y||(_=et(n,"click",e[12],!1,!1,!1,!1),y=!0)},p:function(e,t){(!v||2&t)&&k!==(k=e[1].progress+"")&&ot(c,k),(!v||16&t)&&(a.innerHTML=e[4]),(!v||8&t)&&tt(s,"title",e[3]);const o={};4&t&&(o.percentComplete=e[2]),32&t&&(o.starting=e[5]),1&t&&(o.running=e[0]),2&t&&(o.paused=e[1].is_paused),8&t&&(o.title=e[3]),d.$set(o),(!v||384&t&&!u($.src,g=e[8].assets+"img/icon/"+e[7]))&&tt($,"src",g),(!v||2&t&&h!==(h=e[1].status_description))&&tt($,"alt",h),(!v||8&t)&&tt(m,"title",e[3]),(!v||8&t)&&tt(n,"title",e[3]);const i={};2&t&&(i.tool=e[1]),64&t&&(i.disabled=e[6]),b.$set(i)},i:function(e){v||(Te(d.$$.fragment,e),Te(b.$$.fragment,e),v=!0)},o:function(e){Le(d.$$.fragment,e),Le(b.$$.fragment,e),v=!1},d:function(e){e&&Qe(t),ze(d),ze(b),y=!1,_()}};return Je("SvelteRegisterBlock",{block:x,id:jm.name,type:"if",source:"(71:0) {#if tool}",ctx:e}),x}function Bm(e){let t,n,o=e[1]&&jm(e);const s={c:function(){o&&o.c(),t=F()},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,s){o&&o.m(e,s),Ze(e,t,s),n=!0},p:function(e,[n]){e[1]?o?(o.p(e,n),2&n&&Te(o,1)):(o=jm(e),o.c(),Te(o,1),o.m(t.parentNode,t)):o&&(Ne(),Le(o,1,1,()=>{o=null}),Oe())},i:function(e){n||(Te(o),n=!0)},o:function(e){Le(o),n=!1},d:function(e){e&&Qe(t),o&&o.d(e)}};return Je("SvelteRegisterBlock",{block:s,id:Bm.name,type:"component",source:"",ctx:e}),s}function Nm(e,t,n){let o,s,i,c,r,l,a,u,d,f,$,g;p(nn,"toolsLocked"),m(e,nn,e=>n(9,d=e)),p(on,"running"),m(e,on,e=>n(10,f=e)),p(cn,"tools"),m(e,cn,e=>n(11,$=e)),p(bt,"urls"),m(e,bt,e=>n(8,g=e));let{$$slots:h={},$$scope:w}=t;function b(e,t){return Object.values(e).find(e=>e.id===t)}function v(e,t){return t?e.short_status_description?e.short_status_description:e.busy_description:""}function y(e,t){return t?e.progress:0}it("ToolRunningStatus",h,[]);const _=[];Rm.keys(t).forEach(e=>{~_.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<ToolRunningStatus> was created with unknown prop '${e}'`)});return e.$capture_state=()=>({push:Bn,urls:bt,running:on,tools:cn,toolsLocked:nn,numToShortString:Cu,numToString:Du,ProgressBar:Pu,ToolRunningButtons:Tu,runningTool:b,toolStatus:v,getPercentComplete:y,isRunning:o,tool:s,percentComplete:u,title:a,status:l,starting:r,disabled:c,icon:i,$toolsLocked:d,$running:f,$tools:$,$urls:g}),e.$inject_state=e=>{"isRunning"in e&&n(0,o=e.isRunning),"tool"in e&&n(1,s=e.tool),"percentComplete"in e&&n(2,u=e.percentComplete),"title"in e&&n(3,a=e.title),"status"in e&&n(4,l=e.status),"starting"in e&&n(5,r=e.starting),"disabled"in e&&n(6,c=e.disabled),"icon"in e&&n(7,i=e.icon)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{1024&e.$$.dirty&&n(0,o=!!f),3072&e.$$.dirty&&n(1,s=b($,f)),3&e.$$.dirty&&n(7,i=cn.icon(s,o,!0)),1539&e.$$.dirty&&n(6,c=o&&(f&&f!==s.id||s.is_processing&&s.is_paused||s.is_cancelled||d)),3&e.$$.dirty&&n(5,r=!(!(o&&s.progress<1)||s.is_paused)),3&e.$$.dirty&&n(4,l=o?"("+Cu(s.queue.processed)+"/"+Cu(s.queue.total)+") "+v(s,o):""),3&e.$$.dirty&&n(3,a=o?s.name+": "+s.progress+"% ("+Du(s.queue.processed)+"/"+Du(s.queue.total)+")":""),3&e.$$.dirty&&n(2,u=y(s,o))},[o,s,u,a,l,r,c,i,g,d,f,$,()=>Bn("/tools")]}class Om extends rt{constructor(e){super(e),Xe(this,e,Nm,Bm,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"ToolRunningStatus",options:e,id:Bm.name})}}function Tm(e){let t,n,o,s,i;function c(t){e[11](t)}function r(t){e[12](t)}function l(t){e[13](t)}let a={$$slots:{flyout:[Hm]},$$scope:{ctx:e}};void 0!==e[0]&&(a.flyoutButton=e[0]),void 0!==e[1]&&(a.expanded=e[1]),void 0!==e[2]&&(a.hasFocus=e[2]),t=new wm({props:a,$$inline:!0}),me.push(()=>qe(t,"flyoutButton",c)),me.push(()=>qe(t,"expanded",r)),me.push(()=>qe(t,"hasFocus",l));const u={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),i=!0},p:function(e,i){const c={};262191&i&&(c.$$scope={dirty:i,ctx:e}),!n&&1&i&&(n=!0,c.flyoutButton=e[0],_e(()=>n=!1)),!o&&2&i&&(o=!0,c.expanded=e[1],_e(()=>o=!1)),!s&&4&i&&(s=!0,c.hasFocus=e[2],_e(()=>s=!1)),t.$set(c)},i:function(e){i||(Te(t.$$.fragment,e),i=!0)},o:function(e){Le(t.$$.fragment,e),i=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:u,id:Tm.name,type:"else",source:"(54:1) {:else}",ctx:e}),u}function Lm(t){let n,o;n=new Om({$$inline:!0});const s={c:function(){Ve(n.$$.fragment)},m:function(e,t){We(n,e,t),o=!0},p:e,i:function(e){o||(Te(n.$$.fragment,e),o=!0)},o:function(e){Le(n.$$.fragment,e),o=!1},d:function(e){ze(n,e)}};return Je("SvelteRegisterBlock",{block:s,id:Lm.name,type:"if",source:"(52:1) {#if !!$running}",ctx:t}),s}function Dm(e){let t;const n={c:function(){t=M(e[5])},m:function(e,n){Ze(e,t,n)},p:function(e,n){32&n&&ot(t,e[5])},d:function(e){e&&Qe(t)}};return Je("SvelteRegisterBlock",{block:n,id:Dm.name,type:"slot",source:"(60:7) <Button primary disabled={offloadRemainingDisabledMessage} title={offloadRemainingDisabledMessage} on:click={startOffload} >",ctx:e}),n}function Cm(e){let t,n;t=new zn({props:{primary:!0,disabled:e[3],title:e[3],$$slots:{default:[Dm]},$$scope:{ctx:e}},$$inline:!0}),t.$on("click",e[6]);const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};8&n&&(o.disabled=e[3]),8&n&&(o.title=e[3]),262176&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Cm.name,type:"slot",source:'(59:6) <PanelRow footer class=\\"offload-remaining\\">',ctx:e}),o}function Mm(e){let t,n;t=new is({props:{footer:!0,class:"offload-remaining",$$slots:{default:[Cm]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},m:function(e,o){We(t,e,o),n=!0},p:function(e,n){const o={};262184&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Mm.name,type:"slot",source:'(58:5) <svelte:fragment slot=\\"footer\\">',ctx:e}),o}function Hm(e){let t,n,o,s,i;function c(t){e[8](t)}function r(t){e[9](t)}function l(t){e[10](t)}let a={$$slots:{footer:[Mm]},$$scope:{ctx:e}};void 0!==e[1]&&(a.expanded=e[1]),void 0!==e[2]&&(a.hasFocus=e[2]),void 0!==e[0]&&(a.buttonRef=e[0]),t=new am({props:a,$$inline:!0}),me.push(()=>qe(t,"expanded",c)),me.push(()=>qe(t,"hasFocus",r)),me.push(()=>qe(t,"buttonRef",l));const u={c:function(){Ve(t.$$.fragment)},m:function(e,n){We(t,e,n),i=!0},p:function(e,i){const c={};262184&i&&(c.$$scope={dirty:i,ctx:e}),!n&&2&i&&(n=!0,c.expanded=e[1],_e(()=>n=!1)),!o&&4&i&&(o=!0,c.hasFocus=e[2],_e(()=>o=!1)),!s&&1&i&&(s=!0,c.buttonRef=e[0],_e(()=>s=!1)),t.$set(c)},i:function(e){i||(Te(t.$$.fragment,e),i=!0)},o:function(e){Le(t.$$.fragment,e),i=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:u,id:Hm.name,type:"slot",source:'(56:3) <svelte:fragment slot=\\"flyout\\">',ctx:e}),u}function Fm(e){let t,n,o,s;const i=[Lm,Tm],c=[];function r(e,t){return e[4]?0:1}t=r(e),n=c[t]=i[t](e);const l={c:function(){n.c(),o=F()},m:function(e,n){c[t].m(e,n),Ze(e,o,n),s=!0},p:function(e,s){let l=t;t=r(e),t===l?c[t].p(e,s):(Ne(),Le(c[l],1,1,()=>{c[l]=null}),Oe(),n=c[t],n?n.p(e,s):(n=c[t]=i[t](e),n.c()),Te(n,1),n.m(o.parentNode,o))},i:function(e){s||(Te(n),s=!0)},o:function(e){Le(n),s=!1},d:function(e){e&&Qe(o),c[t].d(e)}};return Je("SvelteRegisterBlock",{block:l,id:Fm.name,type:"slot",source:"(51:0) <Nav>",ctx:e}),l}function Am(e){let t,n;t=new Sm({props:{$$slots:{default:[Fm]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};262207&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:Am.name,type:"component",source:"",ctx:e}),o}function Km(e,t,n){let o,s,i,c,r,l,a;p(cn,"tools"),m(e,cn,e=>n(14,s=e)),p(kt,"counts"),m(e,kt,e=>n(7,i=e)),p(ht,"strings"),m(e,ht,e=>n(15,c=e)),p(jt,"bucket_writable"),m(e,jt,e=>n(16,r=e)),p(on,"running"),m(e,on,e=>n(4,l=e)),p(en,"offloadRemainingWithCount"),m(e,en,e=>n(5,a=e));let u,{$$slots:d={},$$scope:f}=t;it("Nav",d,[]);let $=!1,g=!1;function h(e){return e.total<1?c.no_media:e.not_offloaded<1?c.all_media_offloaded:r?"":c.disabled_tool_bucket_access}function w(){n(1,$=!1),cn.start(s.uploader)}const b=[];return Object.keys(t).forEach(e=>{~b.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Nav> was created with unknown prop '${e}'`)}),e.$capture_state=()=>({bucket_writable:jt,counts:kt,strings:ht,offloadRemainingWithCount:en,running:on,tools:cn,Nav:Sm,OffloadStatus:wm,ToolRunningStatus:Om,OffloadStatusFlyout:am,PanelRow:is,Button:zn,flyoutButton:u,expanded:$,hasFocus:g,getOffloadRemainingDisabledMessage:h,startOffload:w,offloadRemainingDisabledMessage:o,$tools:s,$counts:i,$strings:c,$bucket_writable:r,$running:l,$offloadRemainingWithCount:a}),e.$inject_state=e=>{"flyoutButton"in e&&n(0,u=e.flyoutButton),"expanded"in e&&n(1,$=e.expanded),"hasFocus"in e&&n(2,g=e.hasFocus),"offloadRemainingDisabledMessage"in e&&n(3,o=e.offloadRemainingDisabledMessage)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{128&e.$$.dirty&&n(3,o=h(i))},[u,$,g,o,l,a,w,i,function(e){$=e,n(1,$)},function(e){g=e,n(2,g)},function(e){u=e,n(0,u)},function(e){u=e,n(0,u)},function(e){$=e,n(1,$)},function(e){g=e,n(2,g)}]}class Im extends rt{constructor(e){super(e),Xe(this,e,Km,Am,l,{}),Je("SvelteRegisterComponent",{component:this,tagName:"Nav_1",options:e,id:Am.name})}}function Um(e){let t,n,s,i,c,r;var l=e[0];l&&(t=ct(l,{$$inline:!0})),i=new Fn({props:{routes:e[1]},$$inline:!0}),i.$on("routeEvent",e[3]);const a=e[5].default,u=$(a,e,e[4],null),p={c:function(){t&&Ve(t.$$.fragment),n=H(),s=C("div"),Ve(i.$$.fragment),c=H(),u&&u.c(),tt(s,"class","wpome-wrapper "+e[2]),o(s,"ui/components/Pages.svelte",32,0,754)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){t&&We(t,e,o),Ze(e,n,o),Ze(e,s,o),We(i,s,null),Ge(s,c),u&&u.m(s,null),r=!0},p:function(e,[o]){if(1&o&&l!==(l=e[0])){if(t){Ne();const e=t;Le(e.$$.fragment,1,0,()=>{ze(e,1)}),Oe()}l?(t=ct(l,{$$inline:!0}),Ve(t.$$.fragment),Te(t.$$.fragment,1),We(t,n.parentNode,n)):t=null}const s={};2&o&&(s.routes=e[1]),i.$set(s),u&&u.p&&(!r||16&o)&&w(u,a,e,e[4],r?h(a,e[4],o,null):b(e[4]),null)},i:function(e){r||(t&&Te(t.$$.fragment,e),Te(i.$$.fragment,e),Te(u,e),r=!0)},o:function(e){t&&Le(t.$$.fragment,e),Le(i.$$.fragment,e),Le(u,e),r=!1},d:function(e){e&&(Qe(n),Qe(s)),t&&ze(t,e),ze(i),u&&u.d(e)}};return Je("SvelteRegisterBlock",{block:p,id:Um.name,type:"component",source:"",ctx:e}),p}function qm(e,t,o){let s;p(gn,"routes"),m(e,gn,e=>o(1,s=e));let{$$slots:i={},$$scope:c}=t;it("Pages",i,["default"]);let{nav:r=Sm}=t;const l=t.class?t.class:"";function a(e){const t=$n.handleRouteEvent(e.detail);t&&Bn(t)}return e.$$set=e=>{o(6,t=n(n({},t),v(e))),"nav"in e&&o(0,r=e.nav),"$$scope"in e&&o(4,c=e.$$scope)},e.$capture_state=()=>({Router:Fn,push:Bn,pages:$n,routes:gn,Nav:Sm,nav:r,classes:l,handleRouteEvent:a,$routes:s}),e.$inject_state=e=>{o(6,t=n(n({},t),e)),"nav"in t&&o(0,r=e.nav)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),t=v(t),[r,s,l,a,c,i]}class Vm extends rt{constructor(e){super(e),Xe(this,e,qm,Um,l,{nav:0}),Je("SvelteRegisterComponent",{component:this,tagName:"Pages",options:e,id:Um.name})}get nav(){throw new Error("<Pages>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set nav(e){throw new Error("<Pages>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}function Wm(t){let n,o;n=new Vm({props:{nav:Im},$$inline:!0});const s={c:function(){Ve(n.$$.fragment)},m:function(e,t){We(n,e,t),o=!0},p:e,i:function(e){o||(Te(n.$$.fragment,e),o=!0)},o:function(e){Le(n.$$.fragment,e),o=!1},d:function(e){ze(n,e)}};return Je("SvelteRegisterBlock",{block:s,id:Wm.name,type:"slot",source:"(199:0) <Settings header={Header}>",ctx:t}),s}function zm(e){let t,n;t=new Df({props:{header:Af,$$slots:{default:[Wm]},$$scope:{ctx:e}},$$inline:!0});const o={c:function(){Ve(t.$$.fragment)},l:function(e){throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option")},m:function(e,o){We(t,e,o),n=!0},p:function(e,[n]){const o={};524288&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i:function(e){n||(Te(t.$$.fragment,e),n=!0)},o:function(e){Le(t.$$.fragment,e),n=!1},d:function(e){ze(t,e)}};return Je("SvelteRegisterBlock",{block:o,id:zm.name,type:"component",source:"",ctx:e}),o}function Xm(e,t,n){let o,s,i,c,r,l,a,u,d,f,$,g,h,w,b,v,_;p(Qt,"licence"),m(e,Qt,e=>n(1,o=e)),p(kt,"counts"),m(e,kt,e=>n(2,s=e)),p(ht,"strings"),m(e,ht,e=>n(3,i=e)),p($t,"current_settings"),m(e,$t,e=>n(4,c=e)),p(Ct,"settings"),m(e,Ct,e=>n(5,r=e)),p(ft,"config"),m(e,ft,e=>n(6,l=e)),p(Et,"needs_access_keys"),m(e,Et,e=>n(7,a=e)),p(on,"running"),m(e,on,e=>n(8,u=e)),p(Ht,"defaultStorageProvider"),m(e,Ht,e=>n(9,d=e)),p(ln,"assetsSettingsLocked"),m(e,ln,e=>n(10,f=e)),p(nn,"toolsLocked"),m(e,nn,e=>n(11,$=e)),p(mt,"settingsLocked"),m(e,mt,e=>n(12,g=e)),p(rn,"assetsNeedsRefresh"),m(e,rn,e=>n(13,h=e)),p(Mt,"settings_changed"),m(e,Mt,e=>n(14,w=e)),p(cn,"tools"),m(e,cn,e=>n(15,b=e)),p(Lt,"needs_refresh"),m(e,Lt,e=>n(16,v=e)),p(fn,"assetsSettingsChanged"),m(e,fn,e=>n(17,_=e));let{$$slots:k={},$$scope:x}=t;it("Settings",k,[]);let{init:P={}}=t;async function S(e){let t=!1,n=!1,o=!1;if(e.upgrades.is_upgrading){t=!0,n=!0,o=!0;const s={id:"as3cf-all-settings-locked",type:"warning",dismissible:!1,heading:e.upgrades.locked_notifications[e.upgrades.running_upgrade],icon:"notification-locked.svg",plainHeading:!0};Wt.add(s),w&&Ct.reset(),_&&dn.reset()}else Wt.delete("as3cf-all-settings-locked");if(v){t=!0,n=!0;const e={id:"as3cf-media-settings-locked",type:"warning",dismissible:!1,only_show_on_tab:"media",heading:i.needs_refresh,icon:"notification-locked.svg",plainHeading:!0};Wt.add(e)}else if(u){t=!0;const e={id:"as3cf-media-settings-locked",type:"warning",dismissible:!1,only_show_on_tab:"media",heading:b[u].locked_notification,icon:"notification-locked.svg",plainHeading:!0};Wt.add(e),w&&Ct.reset()}else Wt.delete("as3cf-media-settings-locked");if(h){o=!0;const e={id:"as3cf-assets-settings-locked",type:"warning",dismissible:!1,only_show_on_tab:"assets",heading:i.needs_refresh,icon:"notification-locked.svg",plainHeading:!0};Wt.add(e)}else Wt.delete("as3cf-assets-settings-locked");if(y(mt,g=t,g),y(nn,$=n,$),y(ln,f=o,f),!a||r.provider===d&&0===r.bucket.length)Wt.delete("as3cf-needs-access-keys");else{const e={id:"as3cf-needs-access-keys",type:"error",dismissible:!1,only_show_on_tab:"media",hide_on_parent:!0,heading:i.needs_access_keys,plainHeading:!0};Wt.add(e)}}ft.set(P),$n.set(va),cn.updateTools({tools:{...l.tools}}),dn.set({...l.assets_settings}),xf(b),ie(()=>{S(l),Jt.update(e=>[...e,dn.updateSettings]),Gt.update(e=>[...e,cn.updateTools,S])});const R=["init"];return Object.keys(t).forEach(e=>{~R.indexOf(e)||"$$"===e.slice(0,2)||"slot"===e||console.warn(`<Settings> was created with unknown prop '${e}'`)}),e.$$set=e=>{"init"in e&&n(0,P=e.init)},e.$capture_state=()=>({onMount:ie,strings:ht,config:ft,defaultStorageProvider:Ht,settingsLocked:mt,notifications:Wt,current_settings:$t,needs_access_keys:Et,needs_refresh:Lt,counts:kt,settings_notifications:Nt,settings:Ct,settings_changed:Mt,preStateUpdateCallbacks:Jt,postStateUpdateCallbacks:Gt,licence:Qt,running:on,tools:cn,toolsLocked:nn,assetsNeedsRefresh:rn,assetsSettingsLocked:ln,assetsSettings:dn,assetsSettingsChanged:fn,pages:$n,defaultPages:va,addPages:xf,settingsNotifications:Pf,toolSettingsNotifications:Sf,Settings:Df,Header:Af,Nav:Im,Pages:Vm,init:P,handleStateUpdate:S,$licence:o,$counts:s,$strings:i,$current_settings:c,$settings:r,$config:l,$needs_access_keys:a,$running:u,$defaultStorageProvider:d,$assetsSettingsLocked:f,$toolsLocked:$,$settingsLocked:g,$assetsNeedsRefresh:h,$settings_changed:w,$tools:b,$needs_refresh:v,$assetsSettingsChanged:_}),e.$inject_state=e=>{"init"in e&&n(0,P=e.init)},t&&"$$inject"in t&&e.$inject_state(t.$$inject),e.$$.update=()=>{320&e.$$.dirty&&u&&S(l),192&e.$$.dirty&&a&&S(l),56&e.$$.dirty&&Nt.update(e=>Pf.process(e,r,c,i)),62&e.$$.dirty&&Nt.update(e=>Sf.process(e,r,c,i,s,o))},[P,o,s,i,c,r,l,a,u]}return class extends rt{constructor(e){super(e),Xe(this,e,Xm,zm,l,{init:0}),Je("SvelteRegisterComponent",{component:this,tagName:"Settings_1",options:e,id:zm.name})}get init(){throw new Error("<Settings>: Props cannot be read directly from the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}set init(e){throw new Error("<Settings>: Props cannot be set directly on the component instance unless compiling with 'accessors: true' or '<svelte:options accessors/>'")}}});
|
||
//# sourceMappingURL=settings.min.js.map
|