@sveltia/cms 0.161.1 → 0.162.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/sveltia-cms.js +42 -42
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +42 -42
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/sveltia-cms.json +1 -1
- package/types/public.d.ts +9 -4
package/dist/sveltia-cms.js
CHANGED
|
@@ -14,7 +14,7 @@ object-assign
|
|
|
14
14
|
(c) Sindre Sorhus
|
|
15
15
|
@license MIT
|
|
16
16
|
*/
|
|
17
|
-
var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),_=c(((e,t)=>{var n=g(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=n({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=n({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=g(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=n({},e.propTypes,t)},statics:function(e,t){m(e,t)},autobind:function(){}};function f(e,t){var n=l.hasOwnProperty(t)?l[t]:null;S.hasOwnProperty(t)&&i(n===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i(n===`DEFINE_MANY`||n===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i(typeof n!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),i(!t(n),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&d.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],u=r.hasOwnProperty(s);if(f(u,s),d.hasOwnProperty(s))d[s](e,c);else{var p=l.hasOwnProperty(s);if(typeof c==`function`&&!p&&!u&&n.autobind!==!1)o.push(s,c),r[s]=c;else if(u){var m=l[s];i(p&&(m===`DEFINE_MANY_MERGED`||m===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,m,s),m===`DEFINE_MANY_MERGED`?r[s]=g(r[s],c):m===`DEFINE_MANY`&&(r[s]=_(r[s],c))}else r[s]=c}}}}function m(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in d),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){i((u.hasOwnProperty(n)?u[n]:null)===`DEFINE_MANY_MERGED`,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=g(e[n],r);return}e[n]=r}}}function h(e,t){for(var n in i(e&&t&&typeof e==`object`&&typeof t==`object`,`mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.`),t)t.hasOwnProperty(n)&&(i(e[n]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function g(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(n==null)return r;if(r==null)return n;var i={};return h(i,n),h(i,r),i}}function _(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=v(e,i)}}var b={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};n(C.prototype,e.prototype,S);function w(e){var t=o(function(e,n,a){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=n,this.refs=r,this.updater=a||s,this.state=null;var o=this.getInitialState?this.getInitialState():null;i(typeof o==`object`&&!Array.isArray(o),`%s.getInitialState(): must return an object or null`,t.displayName||`ReactCompositeComponent`),this.state=o});for(var n in t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],c.forEach(p.bind(null,t)),p(t,b),p(t,e),p(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[n]||(t.prototype[n]=null);return t}return w}t.exports=s})),v=c(((e,t)=>{var n=h(),r=_();if(n===void 0)throw Error(`create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.`);var i=new n.Component().updater;t.exports=r(n.Component,n.isValidElement,i)})),y=s((()=>{})),b=s((()=>{})),x=s((()=>{y(),b()}));function S(e){return typeof e==`function`}function C(e){return typeof e?.then==`function`}function w(e){for(var t=0;t<e.length;t++)e[t]()}function ee(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function T(e,t,n=!1){return e===void 0?n?t():t:e}function te(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var ne,re,ie,ae,oe,se,ce,le,ue,de,fe,E,pe=s((()=>{ne=Array.isArray,re=Array.prototype.indexOf,ie=Array.prototype.includes,ae=Array.from,oe=Object.defineProperty,se=Object.getOwnPropertyDescriptor,ce=Object.getOwnPropertyDescriptors,le=Object.prototype,ue=Array.prototype,de=Object.getPrototypeOf,fe=Object.isExtensible,E=()=>{}})),me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve=s((()=>{me=1<<24,he=1024,ge=2048,_e=4096,ve=8192,ye=16384,be=32768,xe=1<<25,Se=65536,Ce=1<<18,we=1<<19,Te=1<<20,Ee=1<<25,De=65536,Oe=1<<21,ke=1<<22,Ae=1<<23,je=Symbol(`$state`),Me=Symbol(`legacy props`),Ne=Symbol(``),Pe=Symbol(`attributes`),Fe=Symbol(`class`),Ie=Symbol(`style`),Le=Symbol(`text`),Re=Symbol(`form reset`),ze=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Be=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`)}));function He(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}var Ue=s((()=>{x()}));function We(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Ge(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ke(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function qe(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Je(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ye(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Xe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ze(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Qe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function $e(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function et(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function tt(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var nt=s((()=>{x(),Ue()})),rt,it,at,ot,st,ct=s((()=>{rt={},it=Symbol(),at=`http://www.w3.org/1999/xhtml`,ot=`http://www.w3.org/2000/svg`,st=`http://www.w3.org/1998/Math/MathML`}));function lt(){console.warn(`https://svelte.dev/e/derived_inert`)}function ut(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function dt(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function ft(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var pt=s((()=>{x()}));function mt(e){bt=e}function ht(e){if(e===null)throw ut(),rt;return xt=e}function gt(){return ht(jr(xt))}function D(e){if(bt){if(jr(xt)!==null)throw ut(),rt;xt=e}}function _t(e=1){if(bt){for(var t=e,n=xt;t--;)n=jr(n);xt=n}}function vt(e=!0){for(var t=0,n=xt;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=jr(n);e&&n.remove(),n=i}}function yt(e){if(!e||e.nodeType!==8)throw ut(),rt;return e.data}var bt,xt,St=s((()=>{Ve(),ct(),pt(),Vr(),bt=!1}));function Ct(e){return e===this.v}function wt(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Tt(e){return!wt(e,this.v)}var Et=s((()=>{})),Dt,Ot,kt=s((()=>{Dt=!1,Ot=!1})),At=s((()=>{x()}));function jt(e,t=!1,n=!1){return Mt(e,new Map,``,Nt,null,n)}function Mt(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(ne(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(s[c]=Mt(l,t,n,r,null,a))}return s}if(de(e)===le){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=Mt(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return Mt(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var Nt,Pt=s((()=>{x(),At(),pe(),Nt=[]})),Ft=s((()=>{Pt(),Ve(),wi(),ta()})),It=s((()=>{x(),pe(),Ue()}));function Lt(e){Ut=e}function Rt(e){return Vt(`getContext`).get(e)}function zt(e,t){let n=Vt(`setContext`);if(Dt){var r=qi.f;!Gi&&r&32&&!Ut.i||Ze()}return n.set(e,t),t}function O(e,t=!1,n){Ut={p:Ut,i:!1,c:null,e:null,s:e,x:null,r:qi,l:Ot&&!t?{s:null,u:null,$:[]}:null}}function k(e){var t=Ut,n=t.e;if(n!==null){t.e=null;for(var r of n)ni(r)}return e!==void 0&&(t.x=e),t.i=!0,Ut=t.p,e??{}}function Bt(){return!Ot||Ut!==null&&Ut.l===null}function Vt(e){return Ut===null&&He(e),Ut.c??=new Map(Ht(Ut)||void 0)}function Ht(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Ut,Wt=s((()=>{x(),nt(),ta(),wi(),kt(),Ve(),Ut=null}));function Gt(){var e=Jt;Jt=[],w(e)}function Kt(e){if(Jt.length===0&&!zn){var t=Jt;queueMicrotask(()=>{t===Jt&&Gt()})}Jt.push(e)}function qt(){for(;Jt.length>0;)Gt()}var Jt,Yt=s((()=>{pe(),qn(),Jt=[]}));function Xt(e){var t=qi;if(t===null)return Gi.f|=Ae,e;if(!(t.f&32768)&&!(t.f&4))throw e;Zt(e,t)}function Zt(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Qt=s((()=>{x(),ct(),Vr(),Ve(),pe(),ta()}));function $t(e,t){e.f=e.f&tn|t}function en(e){e.f&512||e.deps===null?$t(e,he):$t(e,_e)}var tn,nn=s((()=>{Ve(),tn=~(ge|_e|he)}));function rn(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=De,rn(t.deps))}function an(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),rn(e.deps),$t(e,he)}var on=s((()=>{Ve(),nn()}));function sn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),E;let r=B(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var cn=s((()=>{ta(),pe()}));function ln(e,t){return{subscribe:un(e,t).subscribe}}function un(e,t=E){let n=null,r=new Set;function i(t){if(wt(e,t)&&(e=t,n)){let t=!fn.length;for(let t of r)t[1](),fn.push(t,e);if(t){for(let e=0;e<fn.length;e+=2)fn[e][0](fn[e+1]);fn.length=0}}}function a(t){i(t(e))}function o(o,s=E){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||E),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function dn(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return ln(n,(e,n)=>{let o=!1,s=[],c=0,l=E,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:E},d=i.map((e,t)=>sn(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){w(d),l(),o=!1}})}function A(e){let t;return sn(e,e=>t=e)(),t}var fn,pn=s((()=>{pe(),Et(),cn(),fn=[]}));function j(e,t,n){let r=n[t]??={store:null,source:mr(void 0),unsubscribe:E};if(r.store!==e&&!(Sn in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=E;else{var i=!0;r.unsubscribe=sn(e,e=>{i?r.source.v=e:P(r.source,e)}),i=!1}return e&&Sn in n?A(e):z(r.source)}function mn(e,t){return gn(e,t),t}function hn(){let e={};function t(){ei(()=>{for(var t in e)e[t].unsubscribe();oe(e,Sn,{enumerable:!1,value:!0})})}return[e,t]}function gn(e,t){bn=!0;try{e.set(t)}finally{bn=!1}}function _n(e,t,n){return gn(e,n),t}function vn(){xn=!0}function yn(e){var t=xn;try{return xn=!1,[e(),xn]}finally{xn=t}}var bn,xn,Sn,Cn=s((()=>{cn(),pn(),pe(),ta(),wi(),Sr(),x(),bn=!1,xn=!1,Sn=Symbol()})),wn=s((()=>{Ve(),Pt(),ta()}));function Tn(e){var t=zn;zn=!0;try{var n;for(e&&(Fn!==null&&!Fn.is_fork&&Fn.flush(),n=e());;){if(qt(),Fn===null)return n;Fn.flush()}}finally{zn=t}}function En(){try{Ye()}catch(e){Zt(e,Rn)}}function Dn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Pi(r)&&(Kn=new Set,zi(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&vi(r),Kn?.size>0)){br.clear();for(let e of Kn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Kn.has(n)&&(Kn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||zi(n)}}Kn.clear()}}Kn=null}}function On(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?On(i,t,n,r):e&4194320&&!(e&2048)&&kn(i,t,r)&&($t(i,ge),An(i))}}function kn(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(ie.call(t,r))return!0;if(r.f&2&&kn(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function An(e){Fn.schedule(e)}function jn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),$t(e,he);for(var n=e.first;n!==null;)jn(n,t),n=n.next}}function Mn(e){$t(e,he);for(var t=e.first;t!==null;)Mn(t),t=t.next}var Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn=s((()=>{Ve(),kt(),pe(),ta(),nt(),Yt(),x(),Qt(),Sr(),wi(),on(),ct(),nn(),Cn(),It(),wn(),Nn=null,Pn=null,Fn=null,In=null,Ln=null,Rn=null,zn=!1,Bn=!1,Vn=null,Hn=null,Un=0,Wn=1,Gn=class e{id=Wn++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#a=new Set;#o=0;#s=new Map;#c=null;#l=[];#u=[];#d=new Set;#f=new Set;#p=new Map;#m=new Set;is_fork=!1;#h=!1;#g(){if(this.is_fork)return!0;for(let n of this.#s.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#p.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#m.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#p.get(e);if(n){this.#p.delete(e);for(var r of n.d)$t(r,ge),t(r);for(r of n.m)$t(r,_e),t(r)}this.#m.add(e)}#_(){if(this.#e=!0,Un++>1e3&&(this.#w(),En()),!this.#g()){for(let e of this.#d)this.#f.delete(e),$t(e,ge),this.schedule(e);for(let e of this.#f)$t(e,_e),this.schedule(e)}let t=this.#l;this.#l=[],this.apply();var n=Vn=[],r=[],i=Hn=[];for(let e of t)try{this.#v(e,n,r)}catch(t){throw Mn(e),t}if(Fn=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Vn=null,Hn=null,this.#g()){this.#x(r),this.#x(n);for(let[e,t]of this.#p)jn(e,t);i.length>0&&Fn.#_();return}let o=this.#y();if(o){o.#b(this);return}this.#d.clear(),this.#f.clear();for(let e of this.#r)e(this);this.#r.clear(),In=this,Dn(r),Dn(n),In=null,this.#c?.resolve();var s=Fn;if(this.linked&&this.#o===0&&this.#w(),Dt&&!this.linked&&(this.#S(),Fn=s),this.#l.length>0){s===null&&(s=this,this.#C());let e=s;e.#l.push(...this.#l.filter(t=>!e.#l.includes(t)))}s!==null&&s.#_()}#v(e,t,n){e.f^=he;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#p.has(r))&&r.fn!==null){a?r.f^=he:i&4?t.push(r):Dt&&i&16777224?n.push(r):Pi(r)&&(i&16&&this.#f.add(r),zi(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#y(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#b(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve)}let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#f.delete(i),$t(i,ge),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#w(),Fn=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)an(e[t],this.#d,this.#f)}capture(e,t,n=!1){e.v!==it&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),Ln?.set(e,t)),this.is_fork||(e.v=t)}activate(){Fn=this}deactivate(){Fn=null,Ln=null}flush(){try{Bn=!0,Fn=this,this.#_()}finally{Un=0,Rn=null,Vn=null,Hn=null,Bn=!1,Fn=null,Ln=null,br.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear(),this.#a.clear(),this.#w()}register_created_effect(e){this.#u.push(e)}#S(){this.#w();for(let l=Nn;l!==null;l=l.#n){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}if(e)for(let[e,t]of this.async_deriveds){let n=l.async_deriveds.get(e);n&&t.promise.then(n.resolve)}if(l.#e){var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){if(e)for(let e of this.#m)l.unskip_effect(e,e=>{e.f&4194320?l.schedule(e):l.#x([e])});l.activate();var i=new Set,a=new Map;for(var o of t)On(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e.v:!0);if(s.length>0)for(let e of this.#u)!(e.f&155648)&&kn(e,s,a)&&(e.f&4194320?($t(e,ge),l.schedule(e)):l.#d.add(e));if(l.#l.length>0){l.apply();for(var c of l.#l)l.#v(c,[],[]);l.#l=[]}l.deactivate()}}}}increment(e,t){if(this.#o+=1,e){let e=this.#s.get(t)??0;this.#s.set(t,e+1)}}decrement(e,t){if(--this.#o,e){let e=this.#s.get(t)??0;e===1?this.#s.delete(t):this.#s.set(t,e-1)}this.#h||(this.#h=!0,Kt(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#d.add(t);for(let e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#a.add(e)}run_fork_commit_callbacks(){for(let e of this.#a)e(this);this.#a.clear()}settled(){return(this.#c??=ee()).promise}static ensure(){if(Fn===null){let t=Fn=new e;t.#C(),!Bn&&!zn&&Kt(()=>{t.#e||t.flush()})}return Fn}apply(){if(!Dt||!this.is_fork&&this.#t===null&&this.#n===null){Ln=null;return}Ln=new Map;for(let[e,[t]]of this.current)Ln.set(e,t);for(let t=Nn;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id<this.id){for(let[n,[,r]]of t.current)if(!r&&this.current.has(n)){e=!0;break}}if(!e)for(let[e,n]of t.previous)Ln.has(e)||Ln.set(e,n)}}schedule(e){if(Rn=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Vn!==null&&t===qi&&(Dt||(Gi===null||!(Gi.f&2))&&!bn))return;if(n&96){if(!(n&1024))return;t.f^=he}}this.#l.push(t)}#C(){Pn===null?Nn=Pn=this:(Pn.#n=this,this.#t=Pn),Pn=this}#w(){var e=this.#t,t=this.#n;e===null?Nn=t:e.#n=t,t===null?Pn=e:t.#t=e,this.linked=!1}},Kn=null}));function Jn(e){let t=0,n=pr(0),r;return()=>{$r()&&(z(n),ci(()=>(t===0&&(r=B(()=>e(()=>_r(n)))),t+=1,()=>{Kt(()=>{--t,t===0&&(r?.(),r=void 0,_r(n))})})))}}var Yn=s((()=>{ta(),wi(),Sr(),Ft(),x(),Yt()}));function eee(e,t,n,r){new Zn(e,t,n,r)}var Xn,Zn,Qn=s((()=>{Ve(),ct(),Wt(),Qt(),wi(),ta(),St(),Yt(),nt(),pt(),x(),qn(),Sr(),Ft(),Yn(),Vr(),on(),Xn=Se|we,Zn=class{parent;is_pending=!1;transform_error;#e;#t=bt?xt:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Jn(()=>(this.#m=pr(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=qi;t.b=this,t.f|=128,n(e)},this.parent=qi.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=ui(()=>{if(bt){let e=this.#t;gt();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Xn),bt&&(this.#e=xt)}#g(){try{this.#a=fi(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=fi(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=fi(()=>e(this.#e)),Kt(()=>{var e=this.#c=document.createDocumentFragment(),t=kr();e.append(t),this.#a=this.#x(()=>fi(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,yi(this.#o,()=>{this.#o=null}),this.#b(Fn))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=fi(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Ci(this.#a,e);let t=this.#n.pending;this.#o=fi(()=>t(this.#e))}else this.#b(Fn)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){an(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=qi,n=Gi,r=Ut;ki(this.#i),Oi(this.#i),Lt(this.#i.ctx);try{return Gn.ensure(),e()}catch(e){return Xt(e),null}finally{ki(t),Oi(n),Lt(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&yi(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Kt(()=>{this.#d=!1,this.#m&&hr(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;Fn?.is_fork?(this.#a&&Fn.skip_effect(this.#a),this.#o&&Fn.skip_effect(this.#o),this.#s&&Fn.skip_effect(this.#s),Fn.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(gi(this.#a),null),this.#o&&=(gi(this.#o),null),this.#s&&=(gi(this.#s),null),bt&&(ht(this.#t),_t(),ht(vt()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){ft();return}r=!0,i&&tt(),this.#s!==null&&yi(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Zt(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return fi(()=>{var t=qi;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Zt(e,this.#i.parent),null}}))};Kt(()=>{var t;try{t=this.transform_error(e)}catch(e){Zt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Zt(e,this.#i&&this.#i.parent)):o(t)})}}}));function $n(e,t,n,r){let i=Bt()?ir:ar;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=qi,s=er(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){if(!(o.f&16384)){s();try{r(e)}catch(e){Zt(e,o)}tr()}}var u=nr();if(n.length===0){c.then(()=>l(t.map(i))).finally(u);return}function d(){Promise.all(n.map(e=>tee(e))).then(e=>l([...t.map(i),...e])).catch(e=>Zt(e,o)).finally(u)}c?c.then(()=>{s(),d(),tr()}):d()}function er(){var e=qi,t=Gi,n=Ut,r=Fn;return function(i=!0){ki(e),Oi(t),Lt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function tr(e=!0){ki(null),Oi(null),Lt(null),e&&Fn?.deactivate()}function nr(){var e=qi,t=e.b,n=Fn,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}var rr=s((()=>{Ve(),x(),Wt(),Qn(),Qt(),ta(),qn(),fr(),wi()}));function ir(e){var t=2|ge;return qi!==null&&(qi.f|=we),{ctx:Ut,deps:null,effects:null,equals:Ct,f:t,fn:e,reactions:null,rv:0,v:it,wv:0,parent:qi,ac:null}}function tee(e,t,n){let r=qi;r===null&&We();var i=void 0,a=pr(it),o=!Gi,s=new Set;return si(()=>{var t=qi,n=ee();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==ze&&n.reject(e)}).finally(tr)}catch(e){n.reject(e),tr()}var c=Fn;if(o){if(t.f&32768)var l=nr();if(r.b.is_rendered())c.async_deriveds.get(t)?.reject(dr);else for(let e of s.values())e.reject(dr);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==dr&&(c.activate(),t?(a.f|=Ae,hr(a,t)):(a.f&8388608&&(a.f^=Ae),hr(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),ei(()=>{for(let e of s)e.reject(dr)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=ir(e);return Dt||Ai(t),t}function ar(e){let t=ir(e);return t.equals=Tt,t}function or(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)gi(t[n])}}function sr(e){var t,n=qi,r=e.parent;if(!Wi&&r!==null&&r.f&24576)return lt(),e.v;ki(r);try{e.f&=~De,or(e),t=Ii(e)}finally{ki(n)}return t}function cr(e){var t=sr(e);if(!e.equals(t)&&(e.wv=Ni(),(!Fn?.is_fork||e.deps===null)&&(Fn===null?e.v=t:(Fn.capture(e,t,!0),In?.capture(e,t,!0)),e.deps===null))){$t(e,he);return}Wi||(Ln===null?en(e):($r()||Fn?.is_fork)&&Ln.set(e,t))}function lr(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ze),t.teardown=E,t.ac=null,Ri(t,0),mi(t))}function ur(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&zi(t)}var dr,fr=s((()=>{x(),Ve(),ta(),Et(),nt(),pt(),wi(),Sr(),It(),kt(),Wt(),ct(),qn(),rr(),pe(),nn(),dr=Symbol(`obsolete`)}));function pr(e,t){return{f:0,v:e,reactions:null,equals:Ct,rv:0,wv:0}}function N(e,t){let n=pr(e,t);return Ai(n),n}function mr(e,t=!1,n=!0){let r=pr(e);return t||(r.equals=Tt),Ot&&n&&Ut!==null&&Ut.l!==null&&(Ut.l.s??=[]).push(r),r}function P(e,t,n=!1){return Gi!==null&&(!Ki||Gi.f&131072)&&Bt()&&Gi.f&4325394&&(Ji===null||!ie.call(Ji,e))&&et(),hr(e,n?Cr(t):t,Hn)}function hr(e,t,n=null){if(!e.equals(t)){br.set(e,Wi?t:e.v);var r=Gn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&sr(t),Ln===null&&en(t)}e.wv=Ni(),vr(e,ge,n),Bt()&&qi!==null&&qi.f&1024&&!(qi.f&96)&&(Zi===null?ji([e]):Zi.push(e)),!r.is_fork&&yr.size>0&&!xr&&gr()}return t}function gr(){xr=!1;for(let e of yr){e.f&1024&&$t(e,_e);let t;try{t=Pi(e)}catch{t=!0}t&&zi(e)}yr.clear()}function _r(e){P(e,e.v+1)}function vr(e,t,n){var r=e.reactions;if(r!==null)for(var i=Bt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===qi)){var l=(c&ge)===0;if(l&&$t(s,t),c&131072)yr.add(s);else if(c&2){var u=s;Ln?.delete(u),c&65536||(c&512&&(qi===null||!(qi.f&2097152))&&(s.f|=De),vr(u,_e,n))}else if(l){var d=s;c&16&&Kn!==null&&Kn.add(d),n===null?An(d):n.push(d)}}}}var yr,br,xr,Sr=s((()=>{x(),ta(),Et(),Ve(),nt(),kt(),pe(),Ft(),It(),Wt(),qn(),Er(),fr(),nn(),yr=new Set,br=new Map,xr=!1}));function Cr(e){if(typeof e!=`object`||!e||je in e)return e;let t=de(e);if(t!==le&&t!==ue)return e;var n=new Map,r=ne(e),i=N(0),a=null,o=ea,s=e=>{if(ea===o)return e();var t=Gi,n=ea;Oi(null),Mi(o);var r=e();return Oi(t),Mi(n),r};return r&&n.set(`length`,N(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Qe();var i=n.get(t);return i===void 0?s(()=>{var e=N(r.value,a);return n.set(t,e),e}):P(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>N(it,a));n.set(t,e),_r(i)}}else P(r,it),_r(i);return!0},get(t,r,i){if(r===je)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||se(t,r)?.writable)&&(o=s(()=>N(Cr(c?t[r]:it),a)),n.set(r,o)),o!==void 0){var l=z(o);return l===it?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=z(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==it)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===je)return!0;var r=n.get(t),i=r!==void 0&&r.v!==it||Reflect.has(e,t);return(r!==void 0||qi!==null&&(!i||se(e,t)?.writable))&&(r===void 0&&(r=s(()=>N(i?Cr(e[t]):it,a)),n.set(t,r)),z(r)===it)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>N(it,a)),n.set(d+``,f)):P(f,it)}if(l===void 0)(!u||se(e,t)?.writable)&&(l=s(()=>N(void 0,a)),P(l,Cr(o)),n.set(t,l));else{u=l.v!==it;var p=s(()=>Cr(o));P(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&P(h,g+1)}_r(i)}return!0},ownKeys(e){z(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==it});for(var[r,a]of n)a.v!==it&&!(r in e)&&t.push(r);return t},setPrototypeOf(){$e()}})}function wr(e){try{if(typeof e==`object`&&e&&je in e)return e[je]}catch{}return e}function Tr(e,t){return Object.is(wr(e),wr(t))}var Er=s((()=>{x(),ta(),pe(),Sr(),Ve(),ct(),nt(),Ft(),It(),kt(),new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`])})),Dr=s((()=>{pt(),Er()}));function Or(){if(Ir===void 0){Ir=window,Lr=document,Rr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;zr=se(t,`firstChild`).get,Br=se(t,`nextSibling`).get,fe(e)&&(e[Fe]=void 0,e[Pe]=null,e[Ie]=void 0,e.__e=void 0),fe(n)&&(n[Le]=void 0)}}function kr(e=``){return document.createTextNode(e)}function Ar(e){return zr.call(e)}function jr(e){return Br.call(e)}function F(e,t){if(!bt)return Ar(e);var n=Ar(xt);if(n===null)n=xt.appendChild(kr());else if(t&&n.nodeType!==3){var r=kr();return n?.before(r),ht(r),r}return t&&Fr(n),ht(n),n}function I(e,t=!1){if(!bt){var n=Ar(e);return n instanceof Comment&&n.data===``?jr(n):n}if(t){if(xt?.nodeType!==3){var r=kr();return xt?.before(r),ht(r),r}Fr(xt)}return xt}function L(e,t=1,n=!1){let r=bt?xt:e;for(var i;t--;)i=r,r=jr(r);if(!bt)return r;if(n){if(r?.nodeType!==3){var a=kr();return r===null?i?.after(a):r.before(a),ht(a),a}Fr(r)}return ht(r),r}function Mr(e){e.textContent=``}function Nr(){return!Dt||Kn!==null?!1:(qi.f&be)!==0}function Pr(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Fr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var Ir,Lr,Rr,zr,Br,Vr=s((()=>{St(),x(),Dr(),pe(),ta(),kt(),Ve(),qn(),ct()}));function Hr(e,t){if(t){let t=document.body;e.autofocus=!0,Kt(()=>{document.activeElement===t&&e.focus()})}}function Ur(e){bt&&Ar(e)!==null&&Mr(e)}function Wr(){Gr||(Gr=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Re]?.()})},{capture:!0}))}var Gr,Kr=s((()=>{St(),Vr(),Yt(),Ve(),Gr=!1}));function qr(e){var t=Gi,n=qi;Oi(null),ki(null);try{return e()}finally{Oi(t),ki(n)}}function Jr(e,t,n,r=n){e.addEventListener(t,()=>qr(n));let i=e[Re];i?e[Re]=()=>{i(),r(!0)}:e[Re]=()=>r(!0),Wr()}var Yr=s((()=>{wi(),ta(),Ve(),Kr()}));function Xr(e){qi===null&&(Gi===null&&Je(e),qe()),Wi&&Ke(e)}function Zr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Qr(e,t){var n=qi;n!==null&&n.f&8192&&(e|=ve);var r={ctx:Ut,deps:null,nodes:null,f:e|ge|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Fn?.register_created_effect(r);var i=r;if(e&4)Vn===null?Gn.ensure().schedule(r):Vn.push(r);else if(t!==null){try{zi(r)}catch(e){throw gi(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=Se))}if(i!==null&&(i.parent=n,n!==null&&Zr(i,n),Gi!==null&&Gi.f&2&&!(e&64))){var a=Gi;(a.effects??=[]).push(i)}return r}function $r(){return Gi!==null&&!Ki}function ei(e){let t=Qr(8,null);return $t(t,he),t.teardown=e,t}function ti(e){Xr(`$effect`);var t=qi.f;if(!Gi&&t&32&&!(t&32768)){var n=Ut;(n.e??=[]).push(e)}else return ni(e)}function ni(e){return Qr(4|Te,e)}function ri(e){return Xr(`$effect.pre`),Qr(8|Te,e)}function ii(e){Gn.ensure();let t=Qr(64|we,e);return()=>{gi(t)}}function ai(e){Gn.ensure();let t=Qr(64|we,e);return(e={})=>new Promise(n=>{e.outro?yi(t,()=>{gi(t),n(void 0)}):(gi(t),n(void 0))})}function oi(e){return Qr(4,e)}function si(e){return Qr(ke|we,e)}function ci(e,t=0){return Qr(8|t,e)}function R(e,t=[],n=[],r=[]){$n(r,t,n,t=>{Qr(8,()=>e(...t.map(z)))})}function li(e,t=[],n=[],r=[]){$n(r,t,n,t=>{Qr(4,()=>e(...t.map(z)))})}function ui(e,t=0){return Qr(16|t,e)}function di(e,t=0){return Qr(me|t,e)}function fi(e){return Qr(32|we,e)}function pi(e){var t=e.teardown;if(t!==null){let e=Wi,n=Gi;Di(!0),Oi(null);try{t.call(null)}finally{Di(e),Oi(n)}}}function mi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&qr(()=>{e.abort(ze)});var r=n.next;n.f&64?n.parent=null:gi(n,t),n=r}}function hi(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||gi(t),t=n}}function gi(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(_i(e.nodes.start,e.nodes.end),n=!0),$t(e,xe),mi(e,t&&!n),Ri(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();pi(e),e.f^=xe,e.f|=ye;var i=e.parent;i!==null&&i.first!==null&&vi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function _i(e,t){for(;e!==null;){var n=e===t?null:jr(e);e.remove(),e=n}}function vi(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function yi(e,t,n=!0){var r=[];bi(e,r,!0);var i=()=>{n&&gi(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function bi(e,t,n){if(!(e.f&8192)){e.f^=ve;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;bi(i,t,o?n:!1)}i=a}}}function xi(e){Si(e,!0)}function Si(e,t){if(e.f&8192){e.f^=ve,e.f&1024||($t(e,ge),Gn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Si(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Ci(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:jr(n);t.append(n),n=i}}var wi=s((()=>{ta(),Ve(),nt(),x(),pe(),Vr(),Wt(),qn(),rr(),Yr(),nn()})),Ti,Ei=s((()=>{Sr(),ta(),Ti=null}));function Di(e){Wi=e}function Oi(e){Gi=e}function ki(e){qi=e}function Ai(e){Gi!==null&&(!Dt||Gi.f&2)&&(Ji===null?Ji=[e]:Ji.push(e))}function ji(e){Zi=e}function Mi(e){ea=e}function Ni(){return++Qi}function Pi(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~De),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Pi(a)&&cr(a),a.wv>e.wv)return!0}t&512&&Ln===null&&$t(e,he)}return!1}function Fi(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Dt&&Ji!==null&&ie.call(Ji,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Fi(a,t,!1):t===a&&(n?$t(a,ge):a.f&1024&&$t(a,_e),An(a))}}function Ii(e){var t=Yi,n=Xi,r=Zi,i=Gi,a=Ji,o=Ut,s=Ki,c=ea,l=e.f;Yi=null,Xi=0,Zi=null,Gi=l&96?null:e,Ji=null,Lt(e.ctx),Ki=!1,ea=++$i,e.ac!==null&&(qr(()=>{e.ac.abort(ze)}),e.ac=null);try{e.f|=Oe;var u=e.fn,d=u();e.f|=be;var f=e.deps,p=Fn?.is_fork;if(Yi!==null){var m;if(p||Ri(e,Xi),f!==null&&Xi>0)for(f.length=Xi+Yi.length,m=0;m<Yi.length;m++)f[Xi+m]=Yi[m];else e.deps=f=Yi;if($r()&&e.f&512)for(m=Xi;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Xi<f.length&&(Ri(e,Xi),f.length=Xi);if(Bt()&&Zi!==null&&!Ki&&f!==null&&!(e.f&6146))for(m=0;m<Zi.length;m++)Fi(Zi[m],e);if(i!==null&&i!==e){if($i++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=$i;if(t!==null)for(let e of t)e.rv=$i;Zi!==null&&(r===null?r=Zi:r.push(...Zi))}return e.f&8388608&&(e.f^=Ae),d}catch(e){return Xt(e)}finally{e.f^=Oe,Yi=t,Xi=n,Zi=r,Gi=i,Ji=a,Lt(o),Ki=s,ea=c}}function Li(e,t){let n=t.reactions;if(n!==null){var r=re.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Yi===null||!ie.call(Yi,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~De),a.v!==it&&en(a),lr(a),Ri(a,0)}}function Ri(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Li(e,n[r])}function zi(e){var t=e.f;if(!(t&16384)){$t(e,he);var n=qi,r=Ui;qi=e,Ui=!0;try{t&16777232?hi(e):mi(e),pi(e);var i=Ii(e);e.teardown=typeof i==`function`?i:null,e.wv=Qi}finally{Ui=r,qi=n}}}async function Bi(){if(Dt)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Tn()}function z(e){var t=(e.f&2)!=0;if(Ti?.add(e),Gi!==null&&!Ki&&!(qi!==null&&qi.f&16384)&&(Ji===null||!ie.call(Ji,e))){var n=Gi.deps;if(Gi.f&2097152)e.rv<$i&&(e.rv=$i,Yi===null&&n!==null&&n[Xi]===e?Xi++:Yi===null?Yi=[e]:Yi.push(e));else{(Gi.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[Gi]:ie.call(r,Gi)||r.push(Gi)}}if(Wi&&br.has(e))return br.get(e);if(t){var i=e;if(Wi){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Hi(i))&&(a=sr(i)),br.set(i,a),a}var o=(i.f&512)==0&&!Ki&&Gi!==null&&(Ui||(Gi.f&512)!=0),s=(i.f&be)===0;Pi(i)&&(o&&(i.f|=512),cr(i)),o&&!s&&(ur(i),Vi(i))}if(Ln?.has(e))return Ln.get(e);if(e.f&8388608)throw e.v;return e.v}function Vi(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(ur(t),Vi(t))}function Hi(e){if(e.v===it)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(br.has(t)||t.f&2&&Hi(t))return!0;return!1}function B(e){var t=Ki;try{return Ki=!0,e()}finally{Ki=t}}var Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta=s((()=>{x(),pe(),wi(),Ve(),Sr(),fr(),kt(),Ft(),It(),Wt(),qn(),Qt(),ct(),Ei(),Yr(),nn(),pt(),Ui=!1,Wi=!1,Gi=null,Ki=!1,qi=null,Ji=null,Yi=null,Xi=0,Zi=null,Qi=1,$i=0,ea=$i})),na=s((()=>{Y(),sc(),wi()}));function ra(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}function ia(e){return ca.includes(e)}function aa(e){return e=e.toLowerCase(),ua[e]??e}function oa(e){return da.includes(e)}function sa(e){return pa.includes(e)}var ca,la,ua,da,fa,pa,ma=s((()=>{ca=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`],la=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),ua={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`},[...la],da=[`touchstart`,`touchmove`],fa=[`$state`,`$state.raw`,`$derived`,`$derived.by`],[...fa],pa=[`textarea`,`script`,`style`,`title`]})),ha=s((()=>{Ve(),ma(),ta()})),ga=s((()=>{})),_a=s((()=>{Ve(),St(),Wt()}));function va(e){if(!bt)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function ya(e,t,n,r={}){function i(e){if(r.capture||wa.call(t,e),!e.cancelBubble)return qr(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Kt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ba(e,t,n,r={}){var i=ya(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function xa(e,t,n,r,i){var a={capture:r,passive:i},o=ya(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ei(()=>{t.removeEventListener(e,o,a)})}function Sa(e,t,n){(t[Ta]??={})[e]=n}function Ca(e){for(var t=0;t<e.length;t++)Ea.add(e[t]);for(var n of Da)n(e)}function wa(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Oa=e;var o=0,s=Oa===e&&e[Ta];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Ta]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){oe(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=Gi,d=qi;Oi(null),ki(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[Ta]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Ta]=t,delete e.currentTarget,Oi(u),ki(d)}}}var Ta,Ea,Da,Oa,ka=s((()=>{wi(),pe(),St(),Yt(),ta(),Yr(),Ta=Symbol(`events`),Ea=new Set,Da=new Set,Oa=null}));function Aa(e){return Ma?.createHTML(e)??e}function ja(e){var t=Pr(`template`);return t.innerHTML=Aa(e.replaceAll(`<!>`,`<!---->`)),t.content}var Ma,Na=s((()=>{Vr(),Ma=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e})}));function Pa(e,t){var n=qi;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function V(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(bt)return Pa(xt,null),xt;i===void 0&&(i=ja(a?e:`<!>`+e),n||(i=Ar(i)));var t=r||Rr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Ar(t),s=t.lastChild;Pa(o,s)}else Pa(t,t);return t}}function Fa(e=``){if(!bt){var t=kr(e+``);return Pa(t,t),t}var n=xt;return n.nodeType===3?Fr(n):(n.before(n=kr()),ht(n)),Pa(n,n),n}function H(){if(bt)return Pa(xt,null),xt;var e=document.createDocumentFragment(),t=document.createComment(``),n=kr();return e.append(t,n),Pa(t,n),e}function U(e,t){if(bt){var n=qi;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=xt),gt();return}e!==null&&e.before(t)}function Ia(){if(bt&&xt&&xt.nodeType===8&&xt.textContent?.startsWith(`$`)){let e=xt.textContent.substring(1);return gt(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}var La=s((()=>{St(),Vr(),Na(),ta(),ct(),Ve()}));function Ra(e){Ha=e}function W(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Le]??=e.nodeValue)&&(e[Le]=n,e.nodeValue=`${n}`)}function za(e,t){return Ba(e,t)}function Ba(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Or();var c=void 0,l=ai(()=>{var l=n??t.appendChild(kr());eee(l,{pending:()=>{}},t=>{O({});var n=Ut;if(a&&(n.c=a),i&&(r.$$events=i),bt&&Pa(t,null),Ha=o,c=e(t,r)||{},Ha=!0,bt&&(qi.nodes.end=xt,xt===null||xt.nodeType!==8||xt.data!==`]`))throw ut(),rt;k()},s);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=oa(r);for(let e of[t,document]){var a=Ua.get(e);a===void 0&&(a=new Map,Ua.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,wa,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(ae(Ea)),Da.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Ua.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,wa),r.delete(e),r.size===0&&Ua.delete(n)):r.set(e,i)}Da.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return Wa.set(c,l),c}function Va(e,t){let n=Wa.get(e);return n?(Wa.delete(e),n(t)):Promise.resolve()}var Ha,Ua,Wa,Ga=s((()=>{x(),Vr(),ct(),ta(),Wt(),wi(),St(),pe(),ka(),pt(),nt(),La(),ma(),Ve(),Qn(),Ua=new Map,Wa=new WeakMap})),Ka=s((()=>{Ve(),St(),wi(),Sr(),Ga(),ta()})),qa=s((()=>{pe(),Ve(),Wt(),ma()})),Ja=s((()=>{nt(),Wt()})),Ya=s((()=>{Pt(),wi(),ta(),It()})),Xa=s((()=>{rr(),ta(),St()})),Za=s((()=>{nt()})),Qa,$a=s((()=>{qn(),wi(),Ve(),St(),Vr(),x(),Qa=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)xi(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(gi(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Ci(r,t),t.append(kr()),this.#n.set(e,{effect:r,fragment:t})}else gi(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),yi(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(gi(n.effect),this.#n.delete(e))};ensure(e,t){var n=Fn,r=Nr();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=kr();i.append(a),this.#n.set(e,{effect:fi(()=>t(a)),fragment:i})}else this.#t.set(e,fi(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else bt&&(this.anchor=xt),this.#a(n)}}}));function eo(e,t,n,r,i){bt&>();var a=Bt(),o=it,s=a?pr(o):mr(o,!1,!1),c=a?pr(o):mr(o,!1,!1),l=new Qa(e);ui(()=>{var a=Fn;a.deactivate();var o=t();a.activate();var u=!1;let d=bt&&C(o)===(e.data===`[!`);if(d&&(ht(vt()),mt(!1)),C(o)){var f=er(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Gn.ensure(),bt&&mt(!1);try{e()}finally{tr(!1),zn||Tn()}}};o.then(t=>{e(()=>{hr(s,t),l.ensure(no,r&&(e=>r(e,s)))})},t=>{e(()=>{if(hr(c,t),l.ensure(ro,i&&(e=>i(e,c))),!i)throw c.v})}),bt?l.ensure(to,n):Kt(()=>{p||e(()=>{l.ensure(to,n)})})}else hr(s,o),l.ensure(no,r&&(e=>r(e,s)));return d&&mt(!0),()=>{u=!0}})}var to,no,ro,io=s((()=>{pe(),wi(),Sr(),St(),Yt(),ct(),Wt(),qn(),$a(),rr(),to=0,no=1,ro=2}));function G(e,t,n=!1){var r;bt&&(r=xt,gt());var i=new Qa(e),a=n?Se:0;function o(e,t){if(bt){var n=yt(r);if(e!==parseInt(n.substring(1))){var a=vt();ht(a),i.anchor=a,mt(!1),i.ensure(e,t),mt(!0);return}}i.ensure(e,t)}ui(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var ao=s((()=>{Ve(),St(),wi(),$a()}));function oo(e,t,n){bt&>();var r=new Qa(e),i=!Bt();ui(()=>{var e=t();e!==e&&(e=so),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}var so,co=s((()=>{Wt(),wi(),St(),$a(),so=Symbol(`NaN`)}));function lo(e,t){bt&&ht(Ar(e)),ci(()=>{var n=t();for(var r in n){var i=n[r];i?e.style.setProperty(r,i):e.style.removeProperty(r)}})}var uo=s((()=>{wi(),St(),Vr()}));function fo(e,t){return t}function nee(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];yi(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;po(e,ae(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;Mr(u),u.append(l),e.items.clear()}po(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function po(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=Ee,Ci(a,document.createDocumentFragment())):gi(t[i],n)}}function mo(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=bt?ht(Ar(c)):c.appendChild(kr())}bt&>();var l=null,u=ar(()=>{var e=n();return ne(e)?e:e==null?[]:ae(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,go(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=Ee,vo(l,null,o)):xi(l):yi(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:ui(()=>{d=z(u);var e=d.length;let c=!1;bt&&yt(o)===`[!`!=(e===0)&&(o=vt(),ht(o),mt(!1),c=!0);for(var g=new Set,_=Fn,v=Nr(),y=0;y<e;y+=1){bt&&xt.nodeType===8&&xt.data===`]`&&(o=xt,c=!0,mt(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&hr(S.v,b),S.i&&hr(S.i,y),v&&_.unskip_effect(S.e)):(S=_o(s,p?o:bo??=kr(),b,x,y,i,t,n),p||(S.e.f|=Ee),s.set(x,S)),g.add(x)}if(e===0&&a&&!l&&(p?l=fi(()=>a(o)):(l=fi(()=>a(bo??=kr())),l.f|=Ee)),e>g.size&&Ge(``,``,``),bt&&e>0&&ht(vt()),!p)if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_);c&&mt(!0),z(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,bt&&(o=xt)}function ho(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function go(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=ho(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(xi(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=Ee,g===c)vo(g,null,n);else{var v=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),yo(e,u,g),yo(e,g,v),vo(g,v,n),u=g,f=[],p=[],c=ho(u.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var y=p[0],b;u=y.prev;var x=f[0],S=f[f.length-1];for(b=0;b<f.length;b+=1)vo(f[b],y,n);for(b=0;b<p.length;b+=1)l.delete(p[b]);yo(e,x.prev,S.next),yo(e,u,x),yo(e,S,y),c=y,u=S,--_,f=[],p=[]}else l.delete(g),vo(g,c,n),yo(e,g.prev,g.next),yo(e,g,u===null?e.effect.first:u.next),yo(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=ho(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=ho(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(po(e,ae(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var C=[];if(l!==void 0)for(g of l)g.f&8192||C.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&C.push(c),c=ho(c.next);var w=C.length;if(w>0){var ee=r&4&&o===0?n:null;if(a){for(_=0;_<w;_+=1)C[_].nodes?.a?.measure();for(_=0;_<w;_+=1)C[_].nodes?.a?.fix()}nee(e,C,ee)}}a&&Kt(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function _o(e,t,n,r,i,a,o,s){var c=o&1?o&16?pr(n):mr(n,!1,!1):null,l=o&2?pr(i):null;return{v:c,i:l,e:fi(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function vo(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=jr(r);if(a.before(r),r===i)return;r=o}}function yo(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}var bo,xo=s((()=>{ct(),St(),Vr(),wi(),Sr(),pe(),Ve(),Yt(),ta(),x(),fr(),qn(),nt(),Ft()}));function So(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;bt&&(o=ht(Ar(c)))}R(()=>{var e=qi;if(s===(s=t()??``)){bt&>();return}if(n&&!bt){e.nodes=null,c.innerHTML=s,s!==``&&Pa(Ar(c),c.lastChild);return}if(e.nodes!==null&&(_i(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(bt){for(var a=xt.data,l=gt(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=jr(l);if(l===null)throw ut(),rt;Pa(xt,u),o=ht(l);return}var d=Pr(r?`svg`:i?`math`:`template`,r?ot:i?st:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Pa(Ar(f),f.lastChild),r||i)for(;Ar(f);)o.before(Ar(f));else o.before(f)}})}var Co=s((()=>{ct(),wi(),St(),La(),pt(),ma(),x(),Wt(),Vr(),ta(),Ve()})),wo=s((()=>{St()})),To=s((()=>{ma(),Ue()}));function Eo(e,t,...n){var r=new Qa(e);ui(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},Se)}var Do=s((()=>{Ve(),wi(),Wt(),St(),Na(),La(),nt(),x(),Vr(),To(),$a()}));function Oo(e,t,n){var r;bt&&(r=xt,gt());var i=new Qa(e);ui(()=>{var e=t()??null;if(bt&&yt(r)===`[`!=(e!==null)){var a=vt();ht(a),i.anchor=a,mt(!1),i.ensure(e,e&&(t=>n(t,e))),mt(!0);return}i.ensure(e,e&&(t=>n(t,e)))},Se)}var ko=s((()=>{Ve(),wi(),St(),$a(),ct()})),Ao,jo,Mo=s((()=>{pe(),x(),Ao=()=>performance.now(),jo={tick:e=>requestAnimationFrame(e),now:()=>Ao(),tasks:new Set}}));function No(){let e=jo.now();jo.tasks.forEach(t=>{t.c(e)||(jo.tasks.delete(t),t.f())}),jo.tasks.size!==0&&jo.tick(No)}function Po(e){let t;return jo.tasks.size===0&&jo.tick(No),{promise:new Promise(n=>{jo.tasks.add(t={c:e,f:n})}),abort(){jo.tasks.delete(t)}}}var Fo=s((()=>{Mo()}));function Io(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function Lo(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Io(n.trim());t[i]=r.trim()}return t}function Ro(e){Ho=e}function zo(e,t,n){var r=(Ho??qi).nodes,i,a,o,s=null;r.a??={element:e,measure(){i=this.element.getBoundingClientRect()},apply(){if(o?.abort(),a=this.element.getBoundingClientRect(),i.left!==a.left||i.right!==a.right||i.top!==a.top||i.bottom!==a.bottom){let e=t()(this.element,{from:i,to:a},n?.());o=Bo(this.element,e,void 0,1,()=>{},()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if(t!==`absolute`&&t!==`fixed`){var a=e.style;s={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position=`absolute`,a.width=n,a.height=r;var o=e.getBoundingClientRect();if(i.left!==o.left||i.top!==o.top){var c=`translate(${i.left-o.left}px, ${i.top-o.top}px)`;a.transform=a.transform?`${a.transform} ${c}`:c}}}},unfix(){if(s){var t=e.style;t.position=s.position,t.width=s.width,t.height=s.height,t.transform=s.transform}}},r.a.element=e}function Bo(e,t,n,r,i,a){var o=r===1;if(S(t)){var s,c=!1;return Kt(()=>{c||(s=Bo(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{c=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:E,deactivate:E,reset:E,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=Vo}=t;var p=[];if(o&&n===void 0&&(d&&d(0,1),u)){var m=Lo(u(0,1));p.push(m,m)}var h=()=>1-r,g=e.animate(p,{duration:l,fill:`forwards`});return g.onfinish=()=>{g.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var p=!1;if(u)for(var m=Math.ceil(c/(1e3/60)),_=0;_<=m;_+=1){var v=o+s*f(_/m),y=Lo(u(v,1-v));l.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),h=()=>{var e=g.currentTime;return o+s*f(e/c)},d&&Po(()=>{if(g.playState!==`running`)return!1;var e=h();return d(e,1-e),!0})}g=e.animate(l,{duration:c,fill:`forwards`}),g.onfinish=()=>{h=()=>r,d?.(r,1-r),a()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=E)},deactivate:()=>{a=E},reset:()=>{r===0&&d?.(1,0)},t:()=>h()}}var Vo,Ho,Uo=s((()=>{pe(),wi(),ta(),Fo(),Ga(),Ve(),Yt(),Yr(),Vo=e=>e,Ho=null}));function Wo(e,t,n,r,i,a){let o=bt;bt&>();var s=null;bt&&xt.nodeType===1&&(s=xt,gt());var c=bt?xt:e,l=qi,u=new Qa(c,!1);ui(()=>{let e=t()||null;var a=i?i():n||e===`svg`?ot:void 0;if(e===null){u.ensure(null,null),Ra(!0);return}return u.ensure(e,t=>{if(e){if(s=bt?s:Pr(e,a),Pa(s,s),r){bt&&sa(e)&&s.append(document.createComment(``));var n=bt?Ar(s):s.appendChild(kr());bt&&(n===null?mt(!1):ht(n)),Ro(l),r(s,n),Ro(null)}qi.nodes.end=s,t.before(s)}bt&&ht(t)}),Ra(!0),()=>{e&&Ra(!1)}},Se),ei(()=>{Ra(!0)}),o&&(mt(!0),ht(c))}var Go=s((()=>{ct(),St(),Vr(),wi(),Ga(),ta(),Wt(),x(),Ve(),La(),ma(),$a(),Uo()}));function Ko(e,t){let n=null,r=bt;var i;if(bt){n=xt;for(var a=Ar(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=jr(a);if(a===null)mt(!1);else{var o=jr(a);a.remove(),ht(o)}}bt||(i=document.head.appendChild(kr()));try{ui(()=>{var e=fi(()=>t(i));e.f|=Ce})}finally{r&&(mt(!0),ht(n))}}var qo=s((()=>{St(),Vr(),wi(),Ve()}));function K(e,t){oi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Pr(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Jo=s((()=>{x(),ga(),wi(),Vr()})),Yo=s((()=>{wi(),ta()}));function Xo(e,t){var n=void 0,r;di(()=>{n!==(n=t())&&(r&&=(gi(r),null),n&&(r=fi(()=>{oi(()=>n(e))})))})}var Zo=s((()=>{wi()}));function Qo(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Qo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function $o(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Qo(e))&&(r&&(r+=` `),r+=t);return r}var es=s((()=>{}));function ts(e){return typeof e==`object`?$o(e):e??``}function ns(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||os.includes(r[o-1]))&&(s===r.length||os.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function rs(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function is(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function as(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(is)),i&&c.push(...Object.keys(i).map(is));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=is(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=rs(r)),i&&(n+=rs(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}var os,ss=s((()=>{es(),pe(),os=[...`
|
|
17
|
+
var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),_=c(((e,t)=>{var n=g(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=n({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=n({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=g(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=n({},e.propTypes,t)},statics:function(e,t){m(e,t)},autobind:function(){}};function f(e,t){var n=l.hasOwnProperty(t)?l[t]:null;S.hasOwnProperty(t)&&i(n===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i(n===`DEFINE_MANY`||n===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i(typeof n!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),i(!t(n),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&d.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],u=r.hasOwnProperty(s);if(f(u,s),d.hasOwnProperty(s))d[s](e,c);else{var p=l.hasOwnProperty(s);if(typeof c==`function`&&!p&&!u&&n.autobind!==!1)o.push(s,c),r[s]=c;else if(u){var m=l[s];i(p&&(m===`DEFINE_MANY_MERGED`||m===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,m,s),m===`DEFINE_MANY_MERGED`?r[s]=g(r[s],c):m===`DEFINE_MANY`&&(r[s]=_(r[s],c))}else r[s]=c}}}}function m(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in d),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){i((u.hasOwnProperty(n)?u[n]:null)===`DEFINE_MANY_MERGED`,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=g(e[n],r);return}e[n]=r}}}function h(e,t){for(var n in i(e&&t&&typeof e==`object`&&typeof t==`object`,`mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.`),t)t.hasOwnProperty(n)&&(i(e[n]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function g(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(n==null)return r;if(r==null)return n;var i={};return h(i,n),h(i,r),i}}function _(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=v(e,i)}}var b={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};n(C.prototype,e.prototype,S);function w(e){var t=o(function(e,n,a){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=n,this.refs=r,this.updater=a||s,this.state=null;var o=this.getInitialState?this.getInitialState():null;i(typeof o==`object`&&!Array.isArray(o),`%s.getInitialState(): must return an object or null`,t.displayName||`ReactCompositeComponent`),this.state=o});for(var n in t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],c.forEach(p.bind(null,t)),p(t,b),p(t,e),p(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[n]||(t.prototype[n]=null);return t}return w}t.exports=s})),v=c(((e,t)=>{var n=h(),r=_();if(n===void 0)throw Error(`create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.`);var i=new n.Component().updater;t.exports=r(n.Component,n.isValidElement,i)})),y=s((()=>{})),b=s((()=>{})),x=s((()=>{y(),b()}));function S(e){return typeof e==`function`}function C(e){return typeof e?.then==`function`}function w(e){for(var t=0;t<e.length;t++)e[t]()}function ee(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function T(e,t,n=!1){return e===void 0?n?t():t:e}function te(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var ne,re,ie,ae,oe,se,ce,le,ue,de,fe,E,pe=s((()=>{ne=Array.isArray,re=Array.prototype.indexOf,ie=Array.prototype.includes,ae=Array.from,oe=Object.defineProperty,se=Object.getOwnPropertyDescriptor,ce=Object.getOwnPropertyDescriptors,le=Object.prototype,ue=Array.prototype,de=Object.getPrototypeOf,fe=Object.isExtensible,E=()=>{}})),me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve=s((()=>{me=1<<24,he=1024,ge=2048,_e=4096,ve=8192,ye=16384,be=32768,xe=1<<25,Se=65536,Ce=1<<18,we=1<<19,Te=1<<20,Ee=1<<25,De=65536,Oe=1<<21,ke=1<<22,Ae=1<<23,je=Symbol(`$state`),Me=Symbol(`legacy props`),Ne=Symbol(``),Pe=Symbol(`attributes`),Fe=Symbol(`class`),Ie=Symbol(`style`),Le=Symbol(`text`),Re=Symbol(`form reset`),ze=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Be=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`)}));function He(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}var Ue=s((()=>{x()}));function We(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Ge(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ke(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function qe(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Je(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ye(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Xe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ze(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Qe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function $e(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function et(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function tt(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var nt=s((()=>{x(),Ue()})),rt,it,at,ot,st,ct=s((()=>{rt={},it=Symbol(`uninitialized`),at=`http://www.w3.org/1999/xhtml`,ot=`http://www.w3.org/2000/svg`,st=`http://www.w3.org/1998/Math/MathML`}));function lt(){console.warn(`https://svelte.dev/e/derived_inert`)}function ut(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function dt(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function ft(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var pt=s((()=>{x()}));function mt(e){bt=e}function ht(e){if(e===null)throw ut(),rt;return xt=e}function gt(){return ht(jr(xt))}function D(e){if(bt){if(jr(xt)!==null)throw ut(),rt;xt=e}}function _t(e=1){if(bt){for(var t=e,n=xt;t--;)n=jr(n);xt=n}}function vt(e=!0){for(var t=0,n=xt;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=jr(n);e&&n.remove(),n=i}}function yt(e){if(!e||e.nodeType!==8)throw ut(),rt;return e.data}var bt,xt,St=s((()=>{Ve(),ct(),pt(),Vr(),bt=!1}));function Ct(e){return e===this.v}function wt(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Tt(e){return!wt(e,this.v)}var Et=s((()=>{})),Dt,Ot,kt=s((()=>{Dt=!1,Ot=!1})),At=s((()=>{x()}));function jt(e,t=!1,n=!1){return Mt(e,new Map,``,Nt,null,n)}function Mt(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(ne(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(s[c]=Mt(l,t,n,r,null,a))}return s}if(de(e)===le){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=Mt(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return Mt(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var Nt,Pt=s((()=>{x(),At(),pe(),Nt=[]})),Ft=s((()=>{Pt(),Ve(),wi(),ta()})),It=s((()=>{x(),pe(),Ue()}));function Lt(e){Ut=e}function Rt(e){return Vt(`getContext`).get(e)}function zt(e,t){let n=Vt(`setContext`);if(Dt){var r=qi.f;!Gi&&r&32&&!Ut.i||Ze()}return n.set(e,t),t}function O(e,t=!1,n){Ut={p:Ut,i:!1,c:null,e:null,s:e,x:null,r:qi,l:Ot&&!t?{s:null,u:null,$:[]}:null}}function k(e){var t=Ut,n=t.e;if(n!==null){t.e=null;for(var r of n)ni(r)}return e!==void 0&&(t.x=e),t.i=!0,Ut=t.p,e??{}}function Bt(){return!Ot||Ut!==null&&Ut.l===null}function Vt(e){return Ut===null&&He(e),Ut.c??=new Map(Ht(Ut)||void 0)}function Ht(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Ut,Wt=s((()=>{x(),nt(),ta(),wi(),kt(),Ve(),Ut=null}));function Gt(){var e=Jt;Jt=[],w(e)}function Kt(e){if(Jt.length===0&&!zn){var t=Jt;queueMicrotask(()=>{t===Jt&&Gt()})}Jt.push(e)}function qt(){for(;Jt.length>0;)Gt()}var Jt,Yt=s((()=>{pe(),qn(),Jt=[]}));function Xt(e){var t=qi;if(t===null)return Gi.f|=Ae,e;if(!(t.f&32768)&&!(t.f&4))throw e;Zt(e,t)}function Zt(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Qt=s((()=>{x(),ct(),Vr(),Ve(),pe(),ta()}));function $t(e,t){e.f=e.f&tn|t}function en(e){e.f&512||e.deps===null?$t(e,he):$t(e,_e)}var tn,nn=s((()=>{Ve(),tn=~(ge|_e|he)}));function rn(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=De,rn(t.deps))}function an(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),rn(e.deps),$t(e,he)}var on=s((()=>{Ve(),nn()}));function sn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),E;let r=B(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var cn=s((()=>{ta(),pe()}));function ln(e,t){return{subscribe:un(e,t).subscribe}}function un(e,t=E){let n=null,r=new Set;function i(t){if(wt(e,t)&&(e=t,n)){let t=!fn.length;for(let t of r)t[1](),fn.push(t,e);if(t){for(let e=0;e<fn.length;e+=2)fn[e][0](fn[e+1]);fn.length=0}}}function a(t){i(t(e))}function o(o,s=E){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||E),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function dn(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return ln(n,(e,n)=>{let o=!1,s=[],c=0,l=E,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:E},d=i.map((e,t)=>sn(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){w(d),l(),o=!1}})}function A(e){let t;return sn(e,e=>t=e)(),t}var fn,pn=s((()=>{pe(),Et(),cn(),fn=[]}));function j(e,t,n){let r=n[t]??={store:null,source:mr(void 0),unsubscribe:E};if(r.store!==e&&!(Sn in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=E;else{var i=!0;r.unsubscribe=sn(e,e=>{i?r.source.v=e:P(r.source,e)}),i=!1}return e&&Sn in n?A(e):z(r.source)}function mn(e,t){return gn(e,t),t}function hn(){let e={};function t(){ei(()=>{for(var t in e)e[t].unsubscribe();oe(e,Sn,{enumerable:!1,value:!0})})}return[e,t]}function gn(e,t){bn=!0;try{e.set(t)}finally{bn=!1}}function _n(e,t,n){return gn(e,n),t}function vn(){xn=!0}function yn(e){var t=xn;try{return xn=!1,[e(),xn]}finally{xn=t}}var bn,xn,Sn,Cn=s((()=>{cn(),pn(),pe(),ta(),wi(),Sr(),x(),bn=!1,xn=!1,Sn=Symbol(`unmounted`)})),wn=s((()=>{Ve(),Pt(),ta()}));function Tn(e){var t=zn;zn=!0;try{var n;for(e&&(Fn!==null&&!Fn.is_fork&&Fn.flush(),n=e());;){if(qt(),Fn===null)return n;Fn.flush()}}finally{zn=t}}function En(){try{Ye()}catch(e){Zt(e,Rn)}}function Dn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Pi(r)&&(Kn=new Set,zi(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&vi(r),Kn?.size>0)){br.clear();for(let e of Kn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Kn.has(n)&&(Kn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||zi(n)}}Kn.clear()}}Kn=null}}function On(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?On(i,t,n,r):e&4194320&&!(e&2048)&&kn(i,t,r)&&($t(i,ge),An(i))}}function kn(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(ie.call(t,r))return!0;if(r.f&2&&kn(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function An(e){Fn.schedule(e)}function jn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),$t(e,he);for(var n=e.first;n!==null;)jn(n,t),n=n.next}}function Mn(e){$t(e,he);for(var t=e.first;t!==null;)Mn(t),t=t.next}var Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn=s((()=>{Ve(),kt(),pe(),ta(),nt(),Yt(),x(),Qt(),Sr(),wi(),on(),ct(),nn(),Cn(),It(),wn(),Nn=null,Pn=null,Fn=null,In=null,Ln=null,Rn=null,zn=!1,Bn=!1,Vn=null,Hn=null,Un=0,Wn=1,Gn=class e{id=Wn++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#a=new Set;#o=0;#s=new Map;#c=null;#l=[];#u=[];#d=new Set;#f=new Set;#p=new Map;#m=new Set;is_fork=!1;#h=!1;#g(){if(this.is_fork)return!0;for(let n of this.#s.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#p.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#m.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#p.get(e);if(n){this.#p.delete(e);for(var r of n.d)$t(r,ge),t(r);for(r of n.m)$t(r,_e),t(r)}this.#m.add(e)}#_(){if(this.#e=!0,Un++>1e3&&(this.#w(),En()),!this.#g()){for(let e of this.#d)this.#f.delete(e),$t(e,ge),this.schedule(e);for(let e of this.#f)$t(e,_e),this.schedule(e)}let t=this.#l;this.#l=[],this.apply();var n=Vn=[],r=[],i=Hn=[];for(let e of t)try{this.#v(e,n,r)}catch(t){throw Mn(e),t}if(Fn=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Vn=null,Hn=null,this.#g()){this.#x(r),this.#x(n);for(let[e,t]of this.#p)jn(e,t);i.length>0&&Fn.#_();return}let o=this.#y();if(o){o.#b(this);return}this.#d.clear(),this.#f.clear();for(let e of this.#r)e(this);this.#r.clear(),In=this,Dn(r),Dn(n),In=null,this.#c?.resolve();var s=Fn;if(this.linked&&this.#o===0&&this.#w(),Dt&&!this.linked&&(this.#S(),Fn=s),this.#l.length>0){s===null&&(s=this,this.#C());let e=s;e.#l.push(...this.#l.filter(t=>!e.#l.includes(t)))}s!==null&&s.#_()}#v(e,t,n){e.f^=he;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#p.has(r))&&r.fn!==null){a?r.f^=he:i&4?t.push(r):Dt&&i&16777224?n.push(r):Pi(r)&&(i&16&&this.#f.add(r),zi(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#y(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#b(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve)}let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#f.delete(i),$t(i,ge),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#w(),Fn=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)an(e[t],this.#d,this.#f)}capture(e,t,n=!1){e.v!==it&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),Ln?.set(e,t)),this.is_fork||(e.v=t)}activate(){Fn=this}deactivate(){Fn=null,Ln=null}flush(){try{Bn=!0,Fn=this,this.#_()}finally{Un=0,Rn=null,Vn=null,Hn=null,Bn=!1,Fn=null,Ln=null,br.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear(),this.#a.clear(),this.#w()}register_created_effect(e){this.#u.push(e)}#S(){this.#w();for(let l=Nn;l!==null;l=l.#n){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}if(e)for(let[e,t]of this.async_deriveds){let n=l.async_deriveds.get(e);n&&t.promise.then(n.resolve)}if(l.#e){var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){if(e)for(let e of this.#m)l.unskip_effect(e,e=>{e.f&4194320?l.schedule(e):l.#x([e])});l.activate();var i=new Set,a=new Map;for(var o of t)On(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e.v:!0);if(s.length>0)for(let e of this.#u)!(e.f&155648)&&kn(e,s,a)&&(e.f&4194320?($t(e,ge),l.schedule(e)):l.#d.add(e));if(l.#l.length>0){l.apply();for(var c of l.#l)l.#v(c,[],[]);l.#l=[]}l.deactivate()}}}}increment(e,t){if(this.#o+=1,e){let e=this.#s.get(t)??0;this.#s.set(t,e+1)}}decrement(e,t){if(--this.#o,e){let e=this.#s.get(t)??0;e===1?this.#s.delete(t):this.#s.set(t,e-1)}this.#h||(this.#h=!0,Kt(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#d.add(t);for(let e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#a.add(e)}run_fork_commit_callbacks(){for(let e of this.#a)e(this);this.#a.clear()}settled(){return(this.#c??=ee()).promise}static ensure(){if(Fn===null){let t=Fn=new e;t.#C(),!Bn&&!zn&&Kt(()=>{t.#e||t.flush()})}return Fn}apply(){if(!Dt||!this.is_fork&&this.#t===null&&this.#n===null){Ln=null;return}Ln=new Map;for(let[e,[t]]of this.current)Ln.set(e,t);for(let t=Nn;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id<this.id){for(let[n,[,r]]of t.current)if(!r&&this.current.has(n)){e=!0;break}}if(!e)for(let[e,n]of t.previous)Ln.has(e)||Ln.set(e,n)}}schedule(e){if(Rn=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Vn!==null&&t===qi&&(Dt||(Gi===null||!(Gi.f&2))&&!bn))return;if(n&96){if(!(n&1024))return;t.f^=he}}this.#l.push(t)}#C(){Pn===null?Nn=Pn=this:(Pn.#n=this,this.#t=Pn),Pn=this}#w(){var e=this.#t,t=this.#n;e===null?Nn=t:e.#n=t,t===null?Pn=e:t.#t=e,this.linked=!1}},Kn=null}));function Jn(e){let t=0,n=pr(0),r;return()=>{$r()&&(z(n),ci(()=>(t===0&&(r=B(()=>e(()=>_r(n)))),t+=1,()=>{Kt(()=>{--t,t===0&&(r?.(),r=void 0,_r(n))})})))}}var Yn=s((()=>{ta(),wi(),Sr(),Ft(),x(),Yt()}));function eee(e,t,n,r){new Zn(e,t,n,r)}var Xn,Zn,Qn=s((()=>{Ve(),ct(),Wt(),Qt(),wi(),ta(),St(),Yt(),nt(),pt(),x(),qn(),Sr(),Ft(),Yn(),Vr(),on(),Xn=Se|we,Zn=class{parent;is_pending=!1;transform_error;#e;#t=bt?xt:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Jn(()=>(this.#m=pr(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=qi;t.b=this,t.f|=128,n(e)},this.parent=qi.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=ui(()=>{if(bt){let e=this.#t;gt();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Xn),bt&&(this.#e=xt)}#g(){try{this.#a=fi(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=fi(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=fi(()=>e(this.#e)),Kt(()=>{var e=this.#c=document.createDocumentFragment(),t=kr();e.append(t),this.#a=this.#x(()=>fi(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,yi(this.#o,()=>{this.#o=null}),this.#b(Fn))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=fi(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Ci(this.#a,e);let t=this.#n.pending;this.#o=fi(()=>t(this.#e))}else this.#b(Fn)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){an(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=qi,n=Gi,r=Ut;ki(this.#i),Oi(this.#i),Lt(this.#i.ctx);try{return Gn.ensure(),e()}catch(e){return Xt(e),null}finally{ki(t),Oi(n),Lt(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&yi(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Kt(()=>{this.#d=!1,this.#m&&hr(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;Fn?.is_fork?(this.#a&&Fn.skip_effect(this.#a),this.#o&&Fn.skip_effect(this.#o),this.#s&&Fn.skip_effect(this.#s),Fn.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(gi(this.#a),null),this.#o&&=(gi(this.#o),null),this.#s&&=(gi(this.#s),null),bt&&(ht(this.#t),_t(),ht(vt()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){ft();return}r=!0,i&&tt(),this.#s!==null&&yi(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Zt(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return fi(()=>{var t=qi;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Zt(e,this.#i.parent),null}}))};Kt(()=>{var t;try{t=this.transform_error(e)}catch(e){Zt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Zt(e,this.#i&&this.#i.parent)):o(t)})}}}));function $n(e,t,n,r){let i=Bt()?ir:ar;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=qi,s=er(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){if(!(o.f&16384)){s();try{r(e)}catch(e){Zt(e,o)}tr()}}var u=nr();if(n.length===0){c.then(()=>l(t.map(i))).finally(u);return}function d(){Promise.all(n.map(e=>tee(e))).then(e=>l([...t.map(i),...e])).catch(e=>Zt(e,o)).finally(u)}c?c.then(()=>{s(),d(),tr()}):d()}function er(){var e=qi,t=Gi,n=Ut,r=Fn;return function(i=!0){ki(e),Oi(t),Lt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function tr(e=!0){ki(null),Oi(null),Lt(null),e&&Fn?.deactivate()}function nr(){var e=qi,t=e.b,n=Fn,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}var rr=s((()=>{Ve(),x(),Wt(),Qn(),Qt(),ta(),qn(),fr(),wi()}));function ir(e){var t=2|ge;return qi!==null&&(qi.f|=we),{ctx:Ut,deps:null,effects:null,equals:Ct,f:t,fn:e,reactions:null,rv:0,v:it,wv:0,parent:qi,ac:null}}function tee(e,t,n){let r=qi;r===null&&We();var i=void 0,a=pr(it),o=!Gi,s=new Set;return si(()=>{var t=qi,n=ee();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==ze&&n.reject(e)}).finally(tr)}catch(e){n.reject(e),tr()}var c=Fn;if(o){if(t.f&32768)var l=nr();if(r.b.is_rendered())c.async_deriveds.get(t)?.reject(dr);else for(let e of s.values())e.reject(dr);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==dr&&(c.activate(),t?(a.f|=Ae,hr(a,t)):(a.f&8388608&&(a.f^=Ae),hr(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),ei(()=>{for(let e of s)e.reject(dr)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=ir(e);return Dt||Ai(t),t}function ar(e){let t=ir(e);return t.equals=Tt,t}function or(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)gi(t[n])}}function sr(e){var t,n=qi,r=e.parent;if(!Wi&&r!==null&&e.v!==it&&r.f&24576)return lt(),e.v;ki(r);try{e.f&=~De,or(e),t=Ii(e)}finally{ki(n)}return t}function cr(e){var t=sr(e);if(!e.equals(t)&&(e.wv=Ni(),(!Fn?.is_fork||e.deps===null)&&(Fn===null?e.v=t:(Fn.capture(e,t,!0),In?.capture(e,t,!0)),e.deps===null))){$t(e,he);return}Wi||(Ln===null?en(e):($r()||Fn?.is_fork)&&Ln.set(e,t))}function lr(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ze),t.fn!==null&&(t.teardown=E),t.ac=null,Ri(t,0),mi(t))}function ur(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&zi(t)}var dr,fr=s((()=>{x(),Ve(),ta(),Et(),nt(),pt(),wi(),Sr(),It(),kt(),Wt(),ct(),qn(),rr(),pe(),nn(),dr=Symbol(`obsolete`)}));function pr(e,t){return{f:0,v:e,reactions:null,equals:Ct,rv:0,wv:0}}function N(e,t){let n=pr(e,t);return Ai(n),n}function mr(e,t=!1,n=!0){let r=pr(e);return t||(r.equals=Tt),Ot&&n&&Ut!==null&&Ut.l!==null&&(Ut.l.s??=[]).push(r),r}function P(e,t,n=!1){return Gi!==null&&(!Ki||Gi.f&131072)&&Bt()&&Gi.f&4325394&&(Ji===null||!ie.call(Ji,e))&&et(),hr(e,n?Cr(t):t,Hn)}function hr(e,t,n=null){if(!e.equals(t)){br.set(e,Wi?t:e.v);var r=Gn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&sr(t),Ln===null&&en(t)}e.wv=Ni(),vr(e,ge,n),Bt()&&qi!==null&&qi.f&1024&&!(qi.f&96)&&(Zi===null?ji([e]):Zi.push(e)),!r.is_fork&&yr.size>0&&!xr&&gr()}return t}function gr(){xr=!1;for(let e of yr){e.f&1024&&$t(e,_e);let t;try{t=Pi(e)}catch{t=!0}t&&zi(e)}yr.clear()}function _r(e){P(e,e.v+1)}function vr(e,t,n){var r=e.reactions;if(r!==null)for(var i=Bt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===qi)){var l=(c&ge)===0;if(l&&$t(s,t),c&131072)yr.add(s);else if(c&2){var u=s;Ln?.delete(u),c&65536||(c&512&&(qi===null||!(qi.f&2097152))&&(s.f|=De),vr(u,_e,n))}else if(l){var d=s;c&16&&Kn!==null&&Kn.add(d),n===null?An(d):n.push(d)}}}}var yr,br,xr,Sr=s((()=>{x(),ta(),Et(),Ve(),nt(),kt(),pe(),Ft(),It(),Wt(),qn(),Er(),fr(),nn(),yr=new Set,br=new Map,xr=!1}));function Cr(e){if(typeof e!=`object`||!e||je in e)return e;let t=de(e);if(t!==le&&t!==ue)return e;var n=new Map,r=ne(e),i=N(0),a=null,o=ea,s=e=>{if(ea===o)return e();var t=Gi,n=ea;Oi(null),Mi(o);var r=e();return Oi(t),Mi(n),r};return r&&n.set(`length`,N(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Qe();var i=n.get(t);return i===void 0?s(()=>{var e=N(r.value,a);return n.set(t,e),e}):P(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>N(it,a));n.set(t,e),_r(i)}}else P(r,it),_r(i);return!0},get(t,r,i){if(r===je)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||se(t,r)?.writable)&&(o=s(()=>N(Cr(c?t[r]:it),a)),n.set(r,o)),o!==void 0){var l=z(o);return l===it?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=z(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==it)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===je)return!0;var r=n.get(t),i=r!==void 0&&r.v!==it||Reflect.has(e,t);return(r!==void 0||qi!==null&&(!i||se(e,t)?.writable))&&(r===void 0&&(r=s(()=>N(i?Cr(e[t]):it,a)),n.set(t,r)),z(r)===it)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>N(it,a)),n.set(d+``,f)):P(f,it)}if(l===void 0)(!u||se(e,t)?.writable)&&(l=s(()=>N(void 0,a)),P(l,Cr(o)),n.set(t,l));else{u=l.v!==it;var p=s(()=>Cr(o));P(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&P(h,g+1)}_r(i)}return!0},ownKeys(e){z(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==it});for(var[r,a]of n)a.v!==it&&!(r in e)&&t.push(r);return t},setPrototypeOf(){$e()}})}function wr(e){try{if(typeof e==`object`&&e&&je in e)return e[je]}catch{}return e}function Tr(e,t){return Object.is(wr(e),wr(t))}var Er=s((()=>{x(),ta(),pe(),Sr(),Ve(),ct(),nt(),Ft(),It(),kt(),new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`])})),Dr=s((()=>{pt(),Er()}));function Or(){if(Ir===void 0){Ir=window,Lr=document,Rr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;zr=se(t,`firstChild`).get,Br=se(t,`nextSibling`).get,fe(e)&&(e[Fe]=void 0,e[Pe]=null,e[Ie]=void 0,e.__e=void 0),fe(n)&&(n[Le]=void 0)}}function kr(e=``){return document.createTextNode(e)}function Ar(e){return zr.call(e)}function jr(e){return Br.call(e)}function F(e,t){if(!bt)return Ar(e);var n=Ar(xt);if(n===null)n=xt.appendChild(kr());else if(t&&n.nodeType!==3){var r=kr();return n?.before(r),ht(r),r}return t&&Fr(n),ht(n),n}function I(e,t=!1){if(!bt){var n=Ar(e);return n instanceof Comment&&n.data===``?jr(n):n}if(t){if(xt?.nodeType!==3){var r=kr();return xt?.before(r),ht(r),r}Fr(xt)}return xt}function L(e,t=1,n=!1){let r=bt?xt:e;for(var i;t--;)i=r,r=jr(r);if(!bt)return r;if(n){if(r?.nodeType!==3){var a=kr();return r===null?i?.after(a):r.before(a),ht(a),a}Fr(r)}return ht(r),r}function Mr(e){e.textContent=``}function Nr(){return!Dt||Kn!==null?!1:(qi.f&be)!==0}function Pr(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Fr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var Ir,Lr,Rr,zr,Br,Vr=s((()=>{St(),x(),Dr(),pe(),ta(),kt(),Ve(),qn(),ct()}));function Hr(e,t){if(t){let t=document.body;e.autofocus=!0,Kt(()=>{document.activeElement===t&&e.focus()})}}function Ur(e){bt&&Ar(e)!==null&&Mr(e)}function Wr(){Gr||(Gr=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Re]?.()})},{capture:!0}))}var Gr,Kr=s((()=>{St(),Vr(),Yt(),Ve(),Gr=!1}));function qr(e){var t=Gi,n=qi;Oi(null),ki(null);try{return e()}finally{Oi(t),ki(n)}}function Jr(e,t,n,r=n){e.addEventListener(t,()=>qr(n));let i=e[Re];i?e[Re]=()=>{i(),r(!0)}:e[Re]=()=>r(!0),Wr()}var Yr=s((()=>{wi(),ta(),Ve(),Kr()}));function Xr(e){qi===null&&(Gi===null&&Je(e),qe()),Wi&&Ke(e)}function Zr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Qr(e,t){var n=qi;n!==null&&n.f&8192&&(e|=ve);var r={ctx:Ut,deps:null,nodes:null,f:e|ge|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Fn?.register_created_effect(r);var i=r;if(e&4)Vn===null?Gn.ensure().schedule(r):Vn.push(r);else if(t!==null){try{zi(r)}catch(e){throw gi(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=Se))}if(i!==null&&(i.parent=n,n!==null&&Zr(i,n),Gi!==null&&Gi.f&2&&!(e&64))){var a=Gi;(a.effects??=[]).push(i)}return r}function $r(){return Gi!==null&&!Ki}function ei(e){let t=Qr(8,null);return $t(t,he),t.teardown=e,t}function ti(e){Xr(`$effect`);var t=qi.f;if(!Gi&&t&32&&!(t&32768)){var n=Ut;(n.e??=[]).push(e)}else return ni(e)}function ni(e){return Qr(4|Te,e)}function ri(e){return Xr(`$effect.pre`),Qr(8|Te,e)}function ii(e){Gn.ensure();let t=Qr(64|we,e);return()=>{gi(t)}}function ai(e){Gn.ensure();let t=Qr(64|we,e);return(e={})=>new Promise(n=>{e.outro?yi(t,()=>{gi(t),n(void 0)}):(gi(t),n(void 0))})}function oi(e){return Qr(4,e)}function si(e){return Qr(ke|we,e)}function ci(e,t=0){return Qr(8|t,e)}function R(e,t=[],n=[],r=[]){$n(r,t,n,t=>{Qr(8,()=>e(...t.map(z)))})}function li(e,t=[],n=[],r=[]){$n(r,t,n,t=>{Qr(4,()=>e(...t.map(z)))})}function ui(e,t=0){return Qr(16|t,e)}function di(e,t=0){return Qr(me|t,e)}function fi(e){return Qr(32|we,e)}function pi(e){var t=e.teardown;if(t!==null){let e=Wi,n=Gi;Di(!0),Oi(null);try{t.call(null)}finally{Di(e),Oi(n)}}}function mi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&qr(()=>{e.abort(ze)});var r=n.next;n.f&64?n.parent=null:gi(n,t),n=r}}function hi(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||gi(t),t=n}}function gi(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(_i(e.nodes.start,e.nodes.end),n=!0),$t(e,xe),mi(e,t&&!n),Ri(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();pi(e),e.f^=xe,e.f|=ye;var i=e.parent;i!==null&&i.first!==null&&vi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function _i(e,t){for(;e!==null;){var n=e===t?null:jr(e);e.remove(),e=n}}function vi(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function yi(e,t,n=!0){var r=[];bi(e,r,!0);var i=()=>{n&&gi(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function bi(e,t,n){if(!(e.f&8192)){e.f^=ve;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;bi(i,t,o?n:!1)}i=a}}}function xi(e){Si(e,!0)}function Si(e,t){if(e.f&8192){e.f^=ve,e.f&1024||($t(e,ge),Gn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Si(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Ci(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:jr(n);t.append(n),n=i}}var wi=s((()=>{ta(),Ve(),nt(),x(),pe(),Vr(),Wt(),qn(),rr(),Yr(),nn()})),Ti,Ei=s((()=>{Sr(),ta(),Ti=null}));function Di(e){Wi=e}function Oi(e){Gi=e}function ki(e){qi=e}function Ai(e){Gi!==null&&(!Dt||Gi.f&2)&&(Ji===null?Ji=[e]:Ji.push(e))}function ji(e){Zi=e}function Mi(e){ea=e}function Ni(){return++Qi}function Pi(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~De),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Pi(a)&&cr(a),a.wv>e.wv)return!0}t&512&&Ln===null&&$t(e,he)}return!1}function Fi(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Dt&&Ji!==null&&ie.call(Ji,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Fi(a,t,!1):t===a&&(n?$t(a,ge):a.f&1024&&$t(a,_e),An(a))}}function Ii(e){var t=Yi,n=Xi,r=Zi,i=Gi,a=Ji,o=Ut,s=Ki,c=ea,l=e.f;Yi=null,Xi=0,Zi=null,Gi=l&96?null:e,Ji=null,Lt(e.ctx),Ki=!1,ea=++$i,e.ac!==null&&(qr(()=>{e.ac.abort(ze)}),e.ac=null);try{e.f|=Oe;var u=e.fn,d=u();e.f|=be;var f=e.deps,p=Fn?.is_fork;if(Yi!==null){var m;if(p||Ri(e,Xi),f!==null&&Xi>0)for(f.length=Xi+Yi.length,m=0;m<Yi.length;m++)f[Xi+m]=Yi[m];else e.deps=f=Yi;if($r()&&e.f&512)for(m=Xi;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Xi<f.length&&(Ri(e,Xi),f.length=Xi);if(Bt()&&Zi!==null&&!Ki&&f!==null&&!(e.f&6146))for(m=0;m<Zi.length;m++)Fi(Zi[m],e);if(i!==null&&i!==e){if($i++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=$i;if(t!==null)for(let e of t)e.rv=$i;Zi!==null&&(r===null?r=Zi:r.push(...Zi))}return e.f&8388608&&(e.f^=Ae),d}catch(e){return Xt(e)}finally{e.f^=Oe,Yi=t,Xi=n,Zi=r,Gi=i,Ji=a,Lt(o),Ki=s,ea=c}}function Li(e,t){let n=t.reactions;if(n!==null){var r=re.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Yi===null||!ie.call(Yi,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~De),a.v!==it&&en(a),lr(a),Ri(a,0)}}function Ri(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Li(e,n[r])}function zi(e){var t=e.f;if(!(t&16384)){$t(e,he);var n=qi,r=Ui;qi=e,Ui=!0;try{t&16777232?hi(e):mi(e),pi(e);var i=Ii(e);e.teardown=typeof i==`function`?i:null,e.wv=Qi}finally{Ui=r,qi=n}}}async function Bi(){if(Dt)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),Tn()}function z(e){var t=(e.f&2)!=0;if(Ti?.add(e),Gi!==null&&!Ki&&!(qi!==null&&qi.f&16384)&&(Ji===null||!ie.call(Ji,e))){var n=Gi.deps;if(Gi.f&2097152)e.rv<$i&&(e.rv=$i,Yi===null&&n!==null&&n[Xi]===e?Xi++:Yi===null?Yi=[e]:Yi.push(e));else{(Gi.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[Gi]:ie.call(r,Gi)||r.push(Gi)}}if(Wi&&br.has(e))return br.get(e);if(t){var i=e;if(Wi){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Hi(i))&&(a=sr(i)),br.set(i,a),a}var o=(i.f&512)==0&&!Ki&&Gi!==null&&(Ui||(Gi.f&512)!=0),s=(i.f&be)===0;Pi(i)&&(o&&(i.f|=512),cr(i)),o&&!s&&(ur(i),Vi(i))}if(Ln?.has(e))return Ln.get(e);if(e.f&8388608)throw e.v;return e.v}function Vi(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(ur(t),Vi(t))}function Hi(e){if(e.v===it)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(br.has(t)||t.f&2&&Hi(t))return!0;return!1}function B(e){var t=Ki;try{return Ki=!0,e()}finally{Ki=t}}var Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta=s((()=>{x(),pe(),wi(),Ve(),Sr(),fr(),kt(),Ft(),It(),Wt(),qn(),Qt(),ct(),Ei(),Yr(),nn(),pt(),Ui=!1,Wi=!1,Gi=null,Ki=!1,qi=null,Ji=null,Yi=null,Xi=0,Zi=null,Qi=1,$i=0,ea=$i})),na=s((()=>{Y(),sc(),wi()}));function ra(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}function ia(e){return ca.includes(e)}function aa(e){return e=e.toLowerCase(),ua[e]??e}function oa(e){return da.includes(e)}function sa(e){return pa.includes(e)}var ca,la,ua,da,fa,pa,ma=s((()=>{ca=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`],la=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),ua={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`},[...la],da=[`touchstart`,`touchmove`],fa=[`$state`,`$state.raw`,`$derived`,`$derived.by`],[...fa],pa=[`textarea`,`script`,`style`,`title`]})),ha=s((()=>{Ve(),ma(),ta()})),ga=s((()=>{})),_a=s((()=>{Ve(),St(),Wt()}));function va(e){if(!bt)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function ya(e,t,n,r={}){function i(e){if(r.capture||wa.call(t,e),!e.cancelBubble)return qr(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Kt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ba(e,t,n,r={}){var i=ya(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function xa(e,t,n,r,i){var a={capture:r,passive:i},o=ya(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ei(()=>{t.removeEventListener(e,o,a)})}function Sa(e,t,n){(t[Ta]??={})[e]=n}function Ca(e){for(var t=0;t<e.length;t++)Ea.add(e[t]);for(var n of Da)n(e)}function wa(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Oa=e;var o=0,s=Oa===e&&e[Ta];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Ta]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){oe(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=Gi,d=qi;Oi(null),ki(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[Ta]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Ta]=t,delete e.currentTarget,Oi(u),ki(d)}}}var Ta,Ea,Da,Oa,ka=s((()=>{wi(),pe(),St(),Yt(),ta(),Yr(),Ta=Symbol(`events`),Ea=new Set,Da=new Set,Oa=null}));function Aa(e){return Ma?.createHTML(e)??e}function ja(e){var t=Pr(`template`);return t.innerHTML=Aa(e.replaceAll(`<!>`,`<!---->`)),t.content}var Ma,Na=s((()=>{Vr(),Ma=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e})}));function Pa(e,t){var n=qi;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function V(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(bt)return Pa(xt,null),xt;i===void 0&&(i=ja(a?e:`<!>`+e),n||(i=Ar(i)));var t=r||Rr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Ar(t),s=t.lastChild;Pa(o,s)}else Pa(t,t);return t}}function Fa(e=``){if(!bt){var t=kr(e+``);return Pa(t,t),t}var n=xt;return n.nodeType===3?Fr(n):(n.before(n=kr()),ht(n)),Pa(n,n),n}function H(){if(bt)return Pa(xt,null),xt;var e=document.createDocumentFragment(),t=document.createComment(``),n=kr();return e.append(t,n),Pa(t,n),e}function U(e,t){if(bt){var n=qi;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=xt),gt();return}e!==null&&e.before(t)}function Ia(){if(bt&&xt&&xt.nodeType===8&&xt.textContent?.startsWith(`$`)){let e=xt.textContent.substring(1);return gt(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}var La=s((()=>{St(),Vr(),Na(),ta(),ct(),Ve()}));function Ra(e){Ha=e}function W(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Le]??=e.nodeValue)&&(e[Le]=n,e.nodeValue=`${n}`)}function za(e,t){return Ba(e,t)}function Ba(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Or();var c=void 0,l=ai(()=>{var l=n??t.appendChild(kr());eee(l,{pending:()=>{}},t=>{O({});var n=Ut;if(a&&(n.c=a),i&&(r.$$events=i),bt&&Pa(t,null),Ha=o,c=e(t,r)||{},Ha=!0,bt&&(qi.nodes.end=xt,xt===null||xt.nodeType!==8||xt.data!==`]`))throw ut(),rt;k()},s);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=oa(r);for(let e of[t,document]){var a=Ua.get(e);a===void 0&&(a=new Map,Ua.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,wa,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(ae(Ea)),Da.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Ua.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,wa),r.delete(e),r.size===0&&Ua.delete(n)):r.set(e,i)}Da.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return Wa.set(c,l),c}function Va(e,t){let n=Wa.get(e);return n?(Wa.delete(e),n(t)):Promise.resolve()}var Ha,Ua,Wa,Ga=s((()=>{x(),Vr(),ct(),ta(),Wt(),wi(),St(),pe(),ka(),pt(),nt(),La(),ma(),Ve(),Qn(),Ua=new Map,Wa=new WeakMap})),Ka=s((()=>{Ve(),St(),wi(),Sr(),Ga(),ta()})),qa=s((()=>{pe(),Ve(),Wt(),ma()})),Ja=s((()=>{nt(),Wt()})),Ya=s((()=>{Pt(),wi(),ta(),It()})),Xa=s((()=>{rr(),ta(),St()})),Za=s((()=>{nt()})),Qa,$a=s((()=>{qn(),wi(),Ve(),St(),Vr(),x(),Qa=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)xi(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(gi(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Ci(r,t),t.append(kr()),this.#n.set(e,{effect:r,fragment:t})}else gi(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),yi(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(gi(n.effect),this.#n.delete(e))};ensure(e,t){var n=Fn,r=Nr();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=kr();i.append(a),this.#n.set(e,{effect:fi(()=>t(a)),fragment:i})}else this.#t.set(e,fi(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else bt&&(this.anchor=xt),this.#a(n)}}}));function eo(e,t,n,r,i){bt&>();var a=Bt(),o=it,s=a?pr(o):mr(o,!1,!1),c=a?pr(o):mr(o,!1,!1),l=new Qa(e);ui(()=>{var a=Fn;a.deactivate();var o=t();a.activate();var u=!1;let d=bt&&C(o)===(e.data===`[!`);if(d&&(ht(vt()),mt(!1)),C(o)){var f=er(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Gn.ensure(),bt&&mt(!1);try{e()}finally{tr(!1),zn||Tn()}}};o.then(t=>{e(()=>{hr(s,t),l.ensure(no,r&&(e=>r(e,s)))})},t=>{e(()=>{if(hr(c,t),l.ensure(ro,i&&(e=>i(e,c))),!i)throw c.v})}),bt?l.ensure(to,n):Kt(()=>{p||e(()=>{l.ensure(to,n)})})}else hr(s,o),l.ensure(no,r&&(e=>r(e,s)));return d&&mt(!0),()=>{u=!0}})}var to,no,ro,io=s((()=>{pe(),wi(),Sr(),St(),Yt(),ct(),Wt(),qn(),$a(),rr(),to=0,no=1,ro=2}));function G(e,t,n=!1){var r;bt&&(r=xt,gt());var i=new Qa(e),a=n?Se:0;function o(e,t){if(bt){var n=yt(r);if(e!==parseInt(n.substring(1))){var a=vt();ht(a),i.anchor=a,mt(!1),i.ensure(e,t),mt(!0);return}}i.ensure(e,t)}ui(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var ao=s((()=>{Ve(),St(),wi(),$a()}));function oo(e,t,n){bt&>();var r=new Qa(e),i=!Bt();ui(()=>{var e=t();e!==e&&(e=so),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}var so,co=s((()=>{Wt(),wi(),St(),$a(),so=Symbol(`NaN`)}));function lo(e,t){bt&&ht(Ar(e)),ci(()=>{var n=t();for(var r in n){var i=n[r];i?e.style.setProperty(r,i):e.style.removeProperty(r)}})}var uo=s((()=>{wi(),St(),Vr()}));function fo(e,t){return t}function nee(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];yi(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;po(e,ae(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;Mr(u),u.append(l),e.items.clear()}po(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function po(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=Ee,Ci(a,document.createDocumentFragment())):gi(t[i],n)}}function mo(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=bt?ht(Ar(c)):c.appendChild(kr())}bt&>();var l=null,u=ar(()=>{var e=n();return ne(e)?e:e==null?[]:ae(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,go(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=Ee,vo(l,null,o)):xi(l):yi(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:ui(()=>{d=z(u);var e=d.length;let c=!1;bt&&yt(o)===`[!`!=(e===0)&&(o=vt(),ht(o),mt(!1),c=!0);for(var g=new Set,_=Fn,v=Nr(),y=0;y<e;y+=1){bt&&xt.nodeType===8&&xt.data===`]`&&(o=xt,c=!0,mt(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&hr(S.v,b),S.i&&hr(S.i,y),v&&_.unskip_effect(S.e)):(S=_o(s,p?o:bo??=kr(),b,x,y,i,t,n),p||(S.e.f|=Ee),s.set(x,S)),g.add(x)}if(e===0&&a&&!l&&(p?l=fi(()=>a(o)):(l=fi(()=>a(bo??=kr())),l.f|=Ee)),e>g.size&&Ge(``,``,``),bt&&e>0&&ht(vt()),!p)if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_);c&&mt(!0),z(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,bt&&(o=xt)}function ho(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function go(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=ho(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(xi(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=Ee,g===c)vo(g,null,n);else{var v=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),yo(e,u,g),yo(e,g,v),vo(g,v,n),u=g,f=[],p=[],c=ho(u.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var y=p[0],b;u=y.prev;var x=f[0],S=f[f.length-1];for(b=0;b<f.length;b+=1)vo(f[b],y,n);for(b=0;b<p.length;b+=1)l.delete(p[b]);yo(e,x.prev,S.next),yo(e,u,x),yo(e,S,y),c=y,u=S,--_,f=[],p=[]}else l.delete(g),vo(g,c,n),yo(e,g.prev,g.next),yo(e,g,u===null?e.effect.first:u.next),yo(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=ho(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=ho(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(po(e,ae(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var C=[];if(l!==void 0)for(g of l)g.f&8192||C.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&C.push(c),c=ho(c.next);var w=C.length;if(w>0){var ee=r&4&&o===0?n:null;if(a){for(_=0;_<w;_+=1)C[_].nodes?.a?.measure();for(_=0;_<w;_+=1)C[_].nodes?.a?.fix()}nee(e,C,ee)}}a&&Kt(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function _o(e,t,n,r,i,a,o,s){var c=o&1?o&16?pr(n):mr(n,!1,!1):null,l=o&2?pr(i):null;return{v:c,i:l,e:fi(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function vo(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=jr(r);if(a.before(r),r===i)return;r=o}}function yo(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}var bo,xo=s((()=>{ct(),St(),Vr(),wi(),Sr(),pe(),Ve(),Yt(),ta(),x(),fr(),qn(),nt(),Ft()}));function So(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;bt&&(o=ht(Ar(c)))}R(()=>{var e=qi;if(s===(s=t()??``)){bt&>();return}if(n&&!bt){e.nodes=null,c.innerHTML=s,s!==``&&Pa(Ar(c),c.lastChild);return}if(e.nodes!==null&&(_i(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(bt){for(var a=xt.data,l=gt(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=jr(l);if(l===null)throw ut(),rt;Pa(xt,u),o=ht(l);return}var d=Pr(r?`svg`:i?`math`:`template`,r?ot:i?st:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Pa(Ar(f),f.lastChild),r||i)for(;Ar(f);)o.before(Ar(f));else o.before(f)}})}var Co=s((()=>{ct(),wi(),St(),La(),pt(),ma(),x(),Wt(),Vr(),ta(),Ve()})),wo=s((()=>{St()})),To=s((()=>{ma(),Ue()}));function Eo(e,t,...n){var r=new Qa(e);ui(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},Se)}var Do=s((()=>{Ve(),wi(),Wt(),St(),Na(),La(),nt(),x(),Vr(),To(),$a()}));function Oo(e,t,n){var r;bt&&(r=xt,gt());var i=new Qa(e);ui(()=>{var e=t()??null;if(bt&&yt(r)===`[`!=(e!==null)){var a=vt();ht(a),i.anchor=a,mt(!1),i.ensure(e,e&&(t=>n(t,e))),mt(!0);return}i.ensure(e,e&&(t=>n(t,e)))},Se)}var ko=s((()=>{Ve(),wi(),St(),$a(),ct()})),Ao,jo,Mo=s((()=>{pe(),x(),Ao=()=>performance.now(),jo={tick:e=>requestAnimationFrame(e),now:()=>Ao(),tasks:new Set}}));function No(){let e=jo.now();jo.tasks.forEach(t=>{t.c(e)||(jo.tasks.delete(t),t.f())}),jo.tasks.size!==0&&jo.tick(No)}function Po(e){let t;return jo.tasks.size===0&&jo.tick(No),{promise:new Promise(n=>{jo.tasks.add(t={c:e,f:n})}),abort(){jo.tasks.delete(t)}}}var Fo=s((()=>{Mo()}));function Io(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function Lo(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Io(n.trim());t[i]=r.trim()}return t}function Ro(e){Ho=e}function zo(e,t,n){var r=(Ho??qi).nodes,i,a,o,s=null;r.a??={element:e,measure(){i=this.element.getBoundingClientRect()},apply(){if(o?.abort(),a=this.element.getBoundingClientRect(),i.left!==a.left||i.right!==a.right||i.top!==a.top||i.bottom!==a.bottom){let e=t()(this.element,{from:i,to:a},n?.());o=Bo(this.element,e,void 0,1,()=>{},()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if(t!==`absolute`&&t!==`fixed`){var a=e.style;s={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position=`absolute`,a.width=n,a.height=r;var o=e.getBoundingClientRect();if(i.left!==o.left||i.top!==o.top){var c=`translate(${i.left-o.left}px, ${i.top-o.top}px)`;a.transform=a.transform?`${a.transform} ${c}`:c}}}},unfix(){if(s){var t=e.style;t.position=s.position,t.width=s.width,t.height=s.height,t.transform=s.transform}}},r.a.element=e}function Bo(e,t,n,r,i,a){var o=r===1;if(S(t)){var s,c=!1;return Kt(()=>{c||(s=Bo(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{c=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:E,deactivate:E,reset:E,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=Vo}=t;var p=[];if(o&&n===void 0&&(d&&d(0,1),u)){var m=Lo(u(0,1));p.push(m,m)}var h=()=>1-r,g=e.animate(p,{duration:l,fill:`forwards`});return g.onfinish=()=>{g.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var p=!1;if(u)for(var m=Math.ceil(c/(1e3/60)),_=0;_<=m;_+=1){var v=o+s*f(_/m),y=Lo(u(v,1-v));l.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),h=()=>{var e=g.currentTime;return o+s*f(e/c)},d&&Po(()=>{if(g.playState!==`running`)return!1;var e=h();return d(e,1-e),!0})}g=e.animate(l,{duration:c,fill:`forwards`}),g.onfinish=()=>{h=()=>r,d?.(r,1-r),a()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=E)},deactivate:()=>{a=E},reset:()=>{r===0&&d?.(1,0)},t:()=>h()}}var Vo,Ho,Uo=s((()=>{pe(),wi(),ta(),Fo(),Ga(),Ve(),Yt(),Yr(),Vo=e=>e,Ho=null}));function Wo(e,t,n,r,i,a){let o=bt;bt&>();var s=null;bt&&xt.nodeType===1&&(s=xt,gt());var c=bt?xt:e,l=qi,u=new Qa(c,!1);ui(()=>{let e=t()||null;var a=i?i():n||e===`svg`?ot:void 0;if(e===null){u.ensure(null,null),Ra(!0);return}return u.ensure(e,t=>{if(e){if(s=bt?s:Pr(e,a),Pa(s,s),r){bt&&sa(e)&&s.append(document.createComment(``));var n=bt?Ar(s):s.appendChild(kr());bt&&(n===null?mt(!1):ht(n)),Ro(l),r(s,n),Ro(null)}qi.nodes.end=s,t.before(s)}bt&&ht(t)}),Ra(!0),()=>{e&&Ra(!1)}},Se),ei(()=>{Ra(!0)}),o&&(mt(!0),ht(c))}var Go=s((()=>{ct(),St(),Vr(),wi(),Ga(),ta(),Wt(),x(),Ve(),La(),ma(),$a(),Uo()}));function Ko(e,t){let n=null,r=bt;var i;if(bt){n=xt;for(var a=Ar(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=jr(a);if(a===null)mt(!1);else{var o=jr(a);a.remove(),ht(o)}}bt||(i=document.head.appendChild(kr()));try{ui(()=>{var e=fi(()=>t(i));e.f|=Ce})}finally{r&&(mt(!0),ht(n))}}var qo=s((()=>{St(),Vr(),wi(),Ve()}));function K(e,t){oi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Pr(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Jo=s((()=>{x(),ga(),wi(),Vr()})),Yo=s((()=>{wi(),ta()}));function Xo(e,t){var n=void 0,r;di(()=>{n!==(n=t())&&(r&&=(gi(r),null),n&&(r=fi(()=>{oi(()=>n(e))})))})}var Zo=s((()=>{wi()}));function Qo(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Qo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function $o(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Qo(e))&&(r&&(r+=` `),r+=t);return r}var es=s((()=>{}));function ts(e){return typeof e==`object`?$o(e):e??``}function ns(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||os.includes(r[o-1]))&&(s===r.length||os.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function rs(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function is(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function as(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(is)),i&&c.push(...Object.keys(i).map(is));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=is(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=rs(r)),i&&(n+=rs(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}var os,ss=s((()=>{es(),pe(),os=[...`
|
|
18
18
|
\r\f\xA0\v`]}));function cs(e,t,n,r,i,a){var o=e[Fe];if(bt||o!==n||o===void 0){var s=ns(n,r,a);(!bt||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Fe]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var ls=s((()=>{ss(),Ve(),St()}));function us(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ds(e,t,n,r){var i=e[Ie];if(bt||i!==t){var a=as(t,r);(!bt||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Ie]=t}else r&&(Array.isArray(r)?(us(e,n?.[0],r[0]),us(e,n?.[1],r[1],`important`)):us(e,n,r));return r}var fs=s((()=>{ss(),Ve(),St()}));function ps(e,t,n=!1){if(e.multiple){if(t==null)return;if(!ne(t))return dt();for(var r of e.options)r.selected=t.includes(hs(r));return}for(r of e.options)if(Tr(hs(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ms(e){var t=new MutationObserver(()=>{ps(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),ei(()=>{t.disconnect()})}function hs(e){return`__value`in e?e.__value:e.value}var gs=s((()=>{wi(),Yr(),Er(),pe(),pt(),qn()}));function _s(e){if(bt){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;q(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;q(e,`checked`,null),e.checked=r}}};e[Re]=n,Kt(n),Wr()}}function vs(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function q(e,t,n,r){var i=xs(e);bt&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ds)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Ne]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ss(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ys(e,t,n,r,i=!1,a=!1){if(bt&&i&&e.nodeName===Os){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||_s(o)}var s=xs(e),c=s[Ts],l=!s[Es];let u=bt&&c;u&&mt(!1);var d=t||{},f=e.nodeName===ks;for(var p in t)p in n||(n[p]=null);n.class?n.class=ts(n.class):(r||n[Cs])&&(n.class=null),n[ws]&&(n.style??=null);var m=Ss(e);for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){cs(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Cs],n[Cs]),d[i]=o,d[Cs]=n[Cs];continue}if(i===`style`){ds(e,o,t?.[ws],n[ws]),d[i]=o,d[ws]=n[ws];continue}var h=d[i];if(!(o===h&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var g=i[0]+i[1];if(g!==`$$`)if(g===`on`){let t={},n=`$$`+i,r=i.slice(2);var _=ia(r);if(ra(r)&&(r=r.slice(0,-7),t.capture=!0),!_&&h){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(_)Sa(r,e,o),Ca([r]);else if(o!=null){function v(e){d[i].call(this,e)}d[n]=ya(r,e,v,t)}}else if(i===`style`)q(e,i,o);else if(i===`autofocus`)Hr(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)vs(e,o);else{var y=i;l||(y=aa(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b)if(s[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else b||m.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=it)):typeof o!=`function`&&q(e,y,o,a)}}}return u&&mt(!0),d}function bs(e,t,n=[],r=[],i=[],a,o=!1,s=!1){$n(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===As,l=!1;if(di(()=>{var u=t(...n.map(z)),d=ys(e,r,u,a,o,s);l&&c&&`value`in u&&ps(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||gi(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&gi(i[t]),i[t]=fi(()=>Xo(e,()=>f))),d[t]=f}r=d}),c){var u=e;oi(()=>{ps(u,r.value,!0),ms(u)})}l=!0})}function xs(e){return e[Pe]??={[Ts]:e.nodeName.includes(`-`),[Es]:e.namespaceURI===at}}function Ss(e){var t=e.getAttribute(`is`)||e.nodeName,n=js.get(t);if(n)return n;js.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=ce(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=de(i)}return n}var Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms=s((()=>{x(),St(),pe(),ka(),Kr(),pt(),Ve(),Yt(),ma(),ta(),Zo(),ss(),ls(),fs(),ct(),wi(),gs(),rr(),Cs=Symbol(`class`),ws=Symbol(`style`),Ts=Symbol(`is custom element`),Es=Symbol(`is html`),Ds=Be?`link`:`LINK`,Os=Be?`input`:`INPUT`,ks=Be?`option`:`OPTION`,As=Be?`select`:`SELECT`,js=new Map})),Ns=s((()=>{St(),Vr(),Na(),Zo()})),Ps=s((()=>{Yr()}));function Fs(e,t,n=t){var r=new WeakSet;Jr(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Is(e)?Ls(a):a,n(a),Fn!==null&&r.add(Fn),await Bi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(bt&&e.defaultValue!==e.value||B(t)==null&&e.value)&&(n(Is(e)?Ls(e.value):e.value),Fn!==null&&r.add(Fn)),ci(()=>{var n=t();if(e===document.activeElement){var i=Dt?In:Fn;if(r.has(i))return}Is(e)&&n===Ls(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Is(e){var t=e.type;return t===`number`||t===`range`}function Ls(e){return e===``?null:+e}var Rs=s((()=>{x(),wi(),Yr(),nt(),Er(),Yt(),St(),ta(),Wt(),qn(),kt()})),zs=s((()=>{wi(),Yr()})),Bs=s((()=>{Yr()})),Vs=s((()=>{wi(),pe()})),Hs=s((()=>{wi(),ta()}));function Us(e,t){return e===t||e?.[je]===t}function Ws(e={},t,n,r){var i=Ut.r,a=qi;return oi(()=>{var o,s;return ci(()=>{o=s,s=r?.()||[],B(()=>{Us(n(...s),e)||(t(e,...s),o&&Us(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Us(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var Gs=s((()=>{Ve(),Wt(),wi(),ta()})),ree=s((()=>{wi(),Yr()})),Ks=s((()=>{wi(),Yr()})),qs=s((()=>{pe(),wi(),ka()})),Js=s((()=>{pe(),Wt(),fr(),wi(),ta()})),Ys=s((()=>{Sr(),ta(),pe()}));function Xs(e,t,n){return new Proxy({props:e,exclude:t},Qs)}function Zs(...e){return new Proxy({props:e},$s)}function J(e,t,n,r){var i=!Ot||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=void 0,u=()=>o&&i?(l??=ir(r),z(l)):(c&&(c=!1,s=o?B(r):r),s);let d;if(a){var f=je in e||Me in e;d=se(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=yn(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Xe(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?ir:ar)(()=>(_=!1,h()));a&&z(v);var y=qi;return(function(e,t){if(arguments.length>0){let n=t?z(v):i&&a?Cr(e):e;return P(v,n),_=!0,s!==void 0&&(s=n),e}return Wi&&_||y.f&16384?v.v:z(v)})}var Qs,$s,ec=s((()=>{x(),ct(),pe(),Sr(),fr(),ta(),nt(),Ve(),Er(),Cn(),kt(),wi(),Qs={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}},$s={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(S(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];S(i)&&(i=i());let a=se(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(S(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=se(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===je||t===Me)return!1;for(let n of e.props)if(S(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(S(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}}})),tc=s((()=>{Wt(),wi(),Cn(),rr()})),iee=s((()=>{Ve(),wi(),Sr(),Ga(),ta(),qn(),pe(),nt(),Wt(),kt(),nn(),qs()})),nc=s((()=>{iee(),wi(),La(),pe(),Vr()})),rc=s((()=>{Ve(),Pt(),ta()})),Y=s((()=>{na(),ct(),Wt(),ha(),ga(),_a(),Ka(),qa(),Ja(),Ft(),Ya(),Xa(),Za(),io(),ao(),co(),uo(),xo(),Co(),wo(),Do(),ko(),Go(),qo(),Jo(),Yo(),Zo(),Ms(),ls(),ka(),Kr(),Ns(),fs(),Uo(),Ps(),Rs(),zs(),Bs(),Vs(),gs(),Hs(),Gs(),ree(),Ks(),St(),qs(),Js(),Ys(),La(),rr(),qn(),fr(),wi(),Sr(),ec(),Cn(),Qn(),Ei(),Ga(),ta(),tc(),Mo(),Er(),nc(),Vr(),ss(),Pt(),pe(),To(),Dr(),rc(),Qt()})),ic=s((()=>{St(),nt()}));function ac(e){Ut===null&&He(`onMount`),Ot&&Ut.l!==null?oc(Ut).m.push(e):ti(()=>{let t=B(e);if(typeof t==`function`)return t})}function oc(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}var sc=s((()=>{ta(),pe(),Y(),nt(),kt(),Wt(),x(),qn(),ic(),Ga(),Do()}));function cc(e){return e&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}function lc(e){return e}function uc(e,t){t||={};let n=t.delimiter||`.`,r=t.maxDepth,i=t.transformKey||lc,a={};function o(e,s,c){c||=1,Object.keys(e).forEach(function(l){let u=e[l],d=t.safe&&Array.isArray(u),f=Object.prototype.toString.call(u),p=cc(u),m=f===`[object Object]`||f===`[object Array]`,h=s?s+n+i(l):i(l);if(!d&&!p&&m&&Object.keys(u).length&&(!t.maxDepth||c<r))return o(u,h,c+1);a[h]=u})}return o(e),a}function dc(e,t){t||={};let n=t.delimiter||`.`,r=t.overwrite||!1,i=t.transformKey||lc,a={};if(cc(e)||Object.prototype.toString.call(e)!==`[object Object]`)return e;function o(e){let n=Number(e);return isNaN(n)||e.indexOf(`.`)!==-1||t.object?e:n}function s(e,t,r){return Object.keys(r).reduce(function(t,i){return t[e+n+i]=r[i],t},t)}function c(e){let t=Object.prototype.toString.call(e),n=t===`[object Array]`,r=t===`[object Object]`;if(!e)return!0;if(n)return!e.length;if(r)return!Object.keys(e).length}return e=Object.keys(e).reduce(function(n,r){let i=Object.prototype.toString.call(e[r]);return!(i===`[object Object]`||i===`[object Array]`)||c(e[r])?(n[r]=e[r],n):s(r,n,uc(e[r],t))},{}),Object.keys(e).forEach(function(s){let c=s.split(n).map(i),l=o(c.shift()),u=o(c[0]),d=a;for(;u!==void 0;){if(l===`__proto__`)return;let e=Object.prototype.toString.call(d[l]),n=e===`[object Object]`||e===`[object Array]`;if(!r&&!n&&d[l]!==void 0)return;(r&&!n||!r&&d[l]==null)&&(d[l]=typeof u==`number`&&!t.object?[]:{}),d=d[l],c.length>0&&(l=o(c.shift()),u=o(c[0]))}d[l]=dc(e[s],t)}),a}var fc=s((()=>{}));
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
@@ -431,11 +431,11 @@ zx=(e,t,n)=>(e.has(t)||e.set(t,n()),e.get(t))})),Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx=s((()=>
|
|
|
431
431
|
`).map(e=>e.startsWith(`*.`)&&e.includes(`filter=lfs`)?e.split(` `)[0].slice(2).toLowerCase():``).filter(Boolean)??[])})),FS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof T||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new T(n)},ee=v;ee.l=C,ee.i=S,ee.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(ee.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return ee},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return ee.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!ee.u(t)||t,u=ee.p(e),p=function(e,t){var i=ee.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return ee.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=ee.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[ee.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=ee.p(u),h=function(e){var t=w(p);return ee.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return ee.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=ee.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return ee.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return ee.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return ee.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return ee.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return ee.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return ee.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return ee.s(t.$s,2,`0`);case`SSS`:return ee.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=ee.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return ee.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:ee.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return ee.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),te=T.prototype;return w.prototype=te,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){te[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,T,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),IS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),LS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),RS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r;if(o===0)return this.utc(i);var s=this.clone();if(i)return s.$offset=o,s.$u=!1,s;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c,s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),zS,Nne=s((()=>{zS=new Map([[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Á`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Å`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Ə`,`A`],[`Ì`,`I`],[`Í`,`I`],[`Î`,`I`],[`Ï`,`I`],[`Ð`,`D`],[`Ñ`,`N`],[`Ò`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`Ō`,`O`],[`Ő`,`O`],[`Ø`,`O`],[`Œ`,`OE`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ý`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à`,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`å`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`ə`,`a`],[`ì`,`i`],[`í`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`ō`,`o`],[`ő`,`o`],[`ø`,`o`],[`œ`,`oe`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`à`,`a`],[`À`,`A`],[`á`,`a`],[`Á`,`A`],[`â`,`a`],[`Â`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`È`,`E`],[`é`,`e`],[`É`,`E`],[`ê`,`e`],[`Ê`,`E`],[`ì`,`i`],[`Ì`,`I`],[`í`,`i`],[`Í`,`I`],[`ò`,`o`],[`Ò`,`O`],[`ó`,`o`],[`Ó`,`O`],[`ô`,`o`],[`Ô`,`O`],[`õ`,`o`],[`Õ`,`O`],[`ù`,`u`],[`Ù`,`U`],[`ú`,`u`],[`Ú`,`U`],[`ý`,`y`],[`Ý`,`Y`],[`ă`,`a`],[`Ă`,`A`],[`Đ`,`D`],[`đ`,`d`],[`ĩ`,`i`],[`Ĩ`,`I`],[`ũ`,`u`],[`Ũ`,`U`],[`ơ`,`o`],[`Ơ`,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`ậ`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`ề`,`e`],[`Ề`,`E`],[`ể`,`e`],[`Ể`,`E`],[`ễ`,`e`],[`Ễ`,`E`],[`ệ`,`e`],[`Ệ`,`E`],[`ỉ`,`i`],[`Ỉ`,`I`],[`ị`,`i`],[`Ị`,`I`],[`ọ`,`o`],[`Ọ`,`O`],[`ỏ`,`o`],[`Ỏ`,`O`],[`ố`,`o`],[`Ố`,`O`],[`ồ`,`o`],[`Ồ`,`O`],[`ổ`,`o`],[`Ổ`,`O`],[`ỗ`,`o`],[`Ỗ`,`O`],[`ộ`,`o`],[`Ộ`,`O`],[`ớ`,`o`],[`Ớ`,`O`],[`ờ`,`o`],[`Ờ`,`O`],[`ở`,`o`],[`Ở`,`O`],[`ỡ`,`o`],[`Ỡ`,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`ủ`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`ử`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`Ữ`,`U`],[`ự`,`u`],[`Ự`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`Ỵ`,`Y`],[`ỷ`,`y`],[`Ỷ`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`ء`,`e`],[`آ`,`a`],[`أ`,`a`],[`ؤ`,`w`],[`إ`,`a`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`ة`,`t`],[`ت`,`t`],[`ث`,`th`],[`ج`,`j`],[`ح`,`h`],[`خ`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`ش`,`sh`],[`ص`,`s`],[`ض`,`d`],[`ط`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`ـ`,`_`],[`ف`,`f`],[`ق`,`q`],[`ك`,`k`],[`ل`,`l`],[`م`,`m`],[`ن`,`n`],[`ه`,`h`],[`و`,`w`],[`ى`,`a`],[`ي`,`y`],[`َ`,`a`],[`ُ`,`u`],[`ِ`,`i`],[`٠`,`0`],[`١`,`1`],[`٢`,`2`],[`٣`,`3`],[`٤`,`4`],[`٥`,`5`],[`٦`,`6`],[`٧`,`7`],[`٨`,`8`],[`٩`,`9`],[`چ`,`ch`],[`ک`,`k`],[`گ`,`g`],[`پ`,`p`],[`ژ`,`zh`],[`ی`,`y`],[`۰`,`0`],[`۱`,`1`],[`۲`,`2`],[`۳`,`3`],[`۴`,`4`],[`۵`,`5`],[`۶`,`6`],[`۷`,`7`],[`۸`,`8`],[`۹`,`9`],[`ټ`,`p`],[`ځ`,`z`],[`څ`,`c`],[`ډ`,`d`],[`ﺫ`,`d`],[`ﺭ`,`r`],[`ړ`,`r`],[`ﺯ`,`z`],[`ږ`,`g`],[`ښ`,`x`],[`ګ`,`g`],[`ڼ`,`n`],[`ۀ`,`e`],[`ې`,`e`],[`ۍ`,`ai`],[`ٹ`,`t`],[`ڈ`,`d`],[`ڑ`,`r`],[`ں`,`n`],[`ہ`,`h`],[`ھ`,`h`],[`ے`,`e`],[`А`,`A`],[`а`,`a`],[`Б`,`B`],[`б`,`b`],[`В`,`V`],[`в`,`v`],[`Г`,`G`],[`г`,`g`],[`Д`,`D`],[`д`,`d`],[`ъе`,`ye`],[`Ъе`,`Ye`],[`ъЕ`,`yE`],[`ЪЕ`,`YE`],[`Е`,`E`],[`е`,`e`],[`Ё`,`Yo`],[`ё`,`yo`],[`Ж`,`Zh`],[`ж`,`zh`],[`З`,`Z`],[`з`,`z`],[`И`,`I`],[`и`,`i`],[`ый`,`iy`],[`Ый`,`Iy`],[`ЫЙ`,`IY`],[`ыЙ`,`iY`],[`Й`,`Y`],[`й`,`y`],[`К`,`K`],[`к`,`k`],[`Л`,`L`],[`л`,`l`],[`М`,`M`],[`м`,`m`],[`Н`,`N`],[`н`,`n`],[`О`,`O`],[`о`,`o`],[`П`,`P`],[`п`,`p`],[`Р`,`R`],[`р`,`r`],[`С`,`S`],[`с`,`s`],[`Т`,`T`],[`т`,`t`],[`У`,`U`],[`у`,`u`],[`Ф`,`F`],[`ф`,`f`],[`Х`,`Kh`],[`х`,`kh`],[`Ц`,`Ts`],[`ц`,`ts`],[`Ч`,`Ch`],[`ч`,`ch`],[`Ш`,`Sh`],[`ш`,`sh`],[`Щ`,`Sch`],[`щ`,`sch`],[`Ъ`,``],[`ъ`,``],[`Ы`,`Y`],[`ы`,`y`],[`Ь`,``],[`ь`,``],[`Э`,`E`],[`э`,`e`],[`Ю`,`Yu`],[`ю`,`yu`],[`Я`,`Ya`],[`я`,`ya`],[`ă`,`a`],[`Ă`,`A`],[`ș`,`s`],[`Ș`,`S`],[`ț`,`t`],[`Ț`,`T`],[`ţ`,`t`],[`Ţ`,`T`],[`ş`,`s`],[`Ş`,`S`],[`ç`,`c`],[`Ç`,`C`],[`ğ`,`g`],[`Ğ`,`G`],[`ı`,`i`],[`İ`,`I`],[`ա`,`a`],[`Ա`,`A`],[`բ`,`b`],[`Բ`,`B`],[`գ`,`g`],[`Գ`,`G`],[`դ`,`d`],[`Դ`,`D`],[`ե`,`ye`],[`Ե`,`Ye`],[`զ`,`z`],[`Զ`,`Z`],[`է`,`e`],[`Է`,`E`],[`ը`,`y`],[`Ը`,`Y`],[`թ`,`t`],[`Թ`,`T`],[`ժ`,`zh`],[`Ժ`,`Zh`],[`ի`,`i`],[`Ի`,`I`],[`լ`,`l`],[`Լ`,`L`],[`խ`,`kh`],[`Խ`,`Kh`],[`ծ`,`ts`],[`Ծ`,`Ts`],[`կ`,`k`],[`Կ`,`K`],[`հ`,`h`],[`Հ`,`H`],[`ձ`,`dz`],[`Ձ`,`Dz`],[`ղ`,`gh`],[`Ղ`,`Gh`],[`ճ`,`tch`],[`Ճ`,`Tch`],[`մ`,`m`],[`Մ`,`M`],[`յ`,`y`],[`Յ`,`Y`],[`ն`,`n`],[`Ն`,`N`],[`շ`,`sh`],[`Շ`,`Sh`],[`ու`,`u`],[`ՈՒ`,`U`],[`Ու`,`U`],[`ո`,`vo`],[`Ո`,`Vo`],[`չ`,`ch`],[`Չ`,`Ch`],[`պ`,`p`],[`Պ`,`P`],[`ջ`,`j`],[`Ջ`,`J`],[`ռ`,`r`],[`Ռ`,`R`],[`ս`,`s`],[`Ս`,`S`],[`վ`,`v`],[`Վ`,`V`],[`տ`,`t`],[`Տ`,`T`],[`ր`,`r`],[`Ր`,`R`],[`ց`,`c`],[`Ց`,`C`],[`փ`,`p`],[`Փ`,`P`],[`ք`,`q`],[`Ք`,`Q`],[`օ`,`o`],[`Օ`,`O`],[`ֆ`,`f`],[`Ֆ`,`F`],[`և`,`yev`],[`ა`,`a`],[`ბ`,`b`],[`გ`,`g`],[`დ`,`d`],[`ე`,`e`],[`ვ`,`v`],[`ზ`,`z`],[`თ`,`t`],[`ი`,`i`],[`კ`,`k`],[`ლ`,`l`],[`მ`,`m`],[`ნ`,`n`],[`ო`,`o`],[`პ`,`p`],[`ჟ`,`zh`],[`რ`,`r`],[`ს`,`s`],[`ტ`,`t`],[`უ`,`u`],[`ფ`,`ph`],[`ქ`,`q`],[`ღ`,`gh`],[`ყ`,`k`],[`შ`,`sh`],[`ჩ`,`ch`],[`ც`,`ts`],[`ძ`,`dz`],[`წ`,`ts`],[`ჭ`,`tch`],[`ხ`,`kh`],[`ჯ`,`j`],[`ჰ`,`h`],[`č`,`c`],[`ď`,`d`],[`ě`,`e`],[`ň`,`n`],[`ř`,`r`],[`š`,`s`],[`ť`,`t`],[`ů`,`u`],[`ž`,`z`],[`Č`,`C`],[`Ď`,`D`],[`Ě`,`E`],[`Ň`,`N`],[`Ř`,`R`],[`Š`,`S`],[`Ť`,`T`],[`Ů`,`U`],[`Ž`,`Z`],[`ހ`,`h`],[`ށ`,`sh`],[`ނ`,`n`],[`ރ`,`r`],[`ބ`,`b`],[`ޅ`,`lh`],[`ކ`,`k`],[`އ`,`a`],[`ވ`,`v`],[`މ`,`m`],[`ފ`,`f`],[`ދ`,`dh`],[`ތ`,`th`],[`ލ`,`l`],[`ގ`,`g`],[`ޏ`,`gn`],[`ސ`,`s`],[`ޑ`,`d`],[`ޒ`,`z`],[`ޓ`,`t`],[`ޔ`,`y`],[`ޕ`,`p`],[`ޖ`,`j`],[`ޗ`,`ch`],[`ޘ`,`tt`],[`ޙ`,`hh`],[`ޚ`,`kh`],[`ޛ`,`th`],[`ޜ`,`z`],[`ޝ`,`sh`],[`ޞ`,`s`],[`ޟ`,`d`],[`ޠ`,`t`],[`ޡ`,`z`],[`ޢ`,`a`],[`ޣ`,`gh`],[`ޤ`,`q`],[`ޥ`,`w`],[`ަ`,`a`],[`ާ`,`aa`],[`ި`,`i`],[`ީ`,`ee`],[`ު`,`u`],[`ޫ`,`oo`],[`ެ`,`e`],[`ޭ`,`ey`],[`ޮ`,`o`],[`ޯ`,`oa`],[`ް`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`π`,`p`],[`ρ`,`r`],[`σ`,`s`],[`τ`,`t`],[`υ`,`y`],[`φ`,`f`],[`χ`,`x`],[`ψ`,`ps`],[`ω`,`o`],[`ά`,`a`],[`έ`,`e`],[`ί`,`i`],[`ό`,`o`],[`ύ`,`y`],[`ή`,`i`],[`ώ`,`o`],[`ς`,`s`],[`ϊ`,`i`],[`ΰ`,`y`],[`ϋ`,`y`],[`ΐ`,`i`],[`Α`,`A`],[`Β`,`B`],[`Γ`,`G`],[`Δ`,`D`],[`Ε`,`E`],[`Ζ`,`Z`],[`Η`,`I`],[`Θ`,`TH`],[`Ι`,`I`],[`Κ`,`K`],[`Λ`,`L`],[`Μ`,`M`],[`Ν`,`N`],[`Ξ`,`KS`],[`Ο`,`O`],[`Π`,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Υ`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Ά`,`A`],[`Έ`,`E`],[`Ί`,`I`],[`Ό`,`O`],[`Ύ`,`Y`],[`Ή`,`I`],[`Ώ`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`ā`,`a`],[`ē`,`e`],[`ģ`,`g`],[`ī`,`i`],[`ķ`,`k`],[`ļ`,`l`],[`ņ`,`n`],[`ū`,`u`],[`Ā`,`A`],[`Ē`,`E`],[`Ģ`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ļ`,`L`],[`Ņ`,`N`],[`Ū`,`U`],[`č`,`c`],[`š`,`s`],[`ž`,`z`],[`Č`,`C`],[`Š`,`S`],[`Ž`,`Z`],[`ą`,`a`],[`č`,`c`],[`ę`,`e`],[`ė`,`e`],[`į`,`i`],[`š`,`s`],[`ų`,`u`],[`ū`,`u`],[`ž`,`z`],[`Ą`,`A`],[`Č`,`C`],[`Ę`,`E`],[`Ė`,`E`],[`Į`,`I`],[`Š`,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ќ`,`Kj`],[`ќ`,`kj`],[`Љ`,`Lj`],[`љ`,`lj`],[`Њ`,`Nj`],[`њ`,`nj`],[`Тс`,`Ts`],[`тс`,`ts`],[`ą`,`a`],[`ć`,`c`],[`ę`,`e`],[`ł`,`l`],[`ń`,`n`],[`ś`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ą`,`A`],[`Ć`,`C`],[`Ę`,`E`],[`Ł`,`L`],[`Ń`,`N`],[`Ś`,`S`],[`Ź`,`Z`],[`Ż`,`Z`],[`Є`,`Ye`],[`І`,`I`],[`Ї`,`Yi`],[`Ґ`,`G`],[`є`,`ye`],[`і`,`i`],[`ї`,`yi`],[`ґ`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`¥`,`Y`],[`߿`,`b`],[`৳`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`₠`,`CE`],[`₡`,`C`],[`₢`,`Cr`],[`₣`,`F`],[`₥`,`m`],[`₦`,`N`],[`₧`,`Pt`],[`₨`,`Rs`],[`₩`,`W`],[`₫`,`s`],[`€`,`E`],[`₭`,`K`],[`₮`,`T`],[`₯`,`Dp`],[`₰`,`S`],[`₱`,`P`],[`₲`,`G`],[`₳`,`A`],[`₴`,`S`],[`₵`,`C`],[`₶`,`tt`],[`₷`,`S`],[`₸`,`T`],[`₹`,`R`],[`₺`,`L`],[`₽`,`P`],[`₿`,`B`],[`﹩`,`$`],[`¢`,`c`],[`¥`,`Y`],[`₩`,`W`],[`𝐀`,`A`],[`𝐁`,`B`],[`𝐂`,`C`],[`𝐃`,`D`],[`𝐄`,`E`],[`𝐅`,`F`],[`𝐆`,`G`],[`𝐇`,`H`],[`𝐈`,`I`],[`𝐉`,`J`],[`𝐊`,`K`],[`𝐋`,`L`],[`𝐌`,`M`],[`𝐍`,`N`],[`𝐎`,`O`],[`𝐏`,`P`],[`𝐐`,`Q`],[`𝐑`,`R`],[`𝐒`,`S`],[`𝐓`,`T`],[`𝐔`,`U`],[`𝐕`,`V`],[`𝐖`,`W`],[`𝐗`,`X`],[`𝐘`,`Y`],[`𝐙`,`Z`],[`𝐚`,`a`],[`𝐛`,`b`],[`𝐜`,`c`],[`𝐝`,`d`],[`𝐞`,`e`],[`𝐟`,`f`],[`𝐠`,`g`],[`𝐡`,`h`],[`𝐢`,`i`],[`𝐣`,`j`],[`𝐤`,`k`],[`𝐥`,`l`],[`𝐦`,`m`],[`𝐧`,`n`],[`𝐨`,`o`],[`𝐩`,`p`],[`𝐪`,`q`],[`𝐫`,`r`],[`𝐬`,`s`],[`𝐭`,`t`],[`𝐮`,`u`],[`𝐯`,`v`],[`𝐰`,`w`],[`𝐱`,`x`],[`𝐲`,`y`],[`𝐳`,`z`],[`𝐴`,`A`],[`𝐵`,`B`],[`𝐶`,`C`],[`𝐷`,`D`],[`𝐸`,`E`],[`𝐹`,`F`],[`𝐺`,`G`],[`𝐻`,`H`],[`𝐼`,`I`],[`𝐽`,`J`],[`𝐾`,`K`],[`𝐿`,`L`],[`𝑀`,`M`],[`𝑁`,`N`],[`𝑂`,`O`],[`𝑃`,`P`],[`𝑄`,`Q`],[`𝑅`,`R`],[`𝑆`,`S`],[`𝑇`,`T`],[`𝑈`,`U`],[`𝑉`,`V`],[`𝑊`,`W`],[`𝑋`,`X`],[`𝑌`,`Y`],[`𝑍`,`Z`],[`𝑎`,`a`],[`𝑏`,`b`],[`𝑐`,`c`],[`𝑑`,`d`],[`𝑒`,`e`],[`𝑓`,`f`],[`𝑔`,`g`],[`𝑖`,`i`],[`𝑗`,`j`],[`𝑘`,`k`],[`𝑙`,`l`],[`𝑚`,`m`],[`𝑛`,`n`],[`𝑜`,`o`],[`𝑝`,`p`],[`𝑞`,`q`],[`𝑟`,`r`],[`𝑠`,`s`],[`𝑡`,`t`],[`𝑢`,`u`],[`𝑣`,`v`],[`𝑤`,`w`],[`𝑥`,`x`],[`𝑦`,`y`],[`𝑧`,`z`],[`𝑨`,`A`],[`𝑩`,`B`],[`𝑪`,`C`],[`𝑫`,`D`],[`𝑬`,`E`],[`𝑭`,`F`],[`𝑮`,`G`],[`𝑯`,`H`],[`𝑰`,`I`],[`𝑱`,`J`],[`𝑲`,`K`],[`𝑳`,`L`],[`𝑴`,`M`],[`𝑵`,`N`],[`𝑶`,`O`],[`𝑷`,`P`],[`𝑸`,`Q`],[`𝑹`,`R`],[`𝑺`,`S`],[`𝑻`,`T`],[`𝑼`,`U`],[`𝑽`,`V`],[`𝑾`,`W`],[`𝑿`,`X`],[`𝒀`,`Y`],[`𝒁`,`Z`],[`𝒂`,`a`],[`𝒃`,`b`],[`𝒄`,`c`],[`𝒅`,`d`],[`𝒆`,`e`],[`𝒇`,`f`],[`𝒈`,`g`],[`𝒉`,`h`],[`𝒊`,`i`],[`𝒋`,`j`],[`𝒌`,`k`],[`𝒍`,`l`],[`𝒎`,`m`],[`𝒏`,`n`],[`𝒐`,`o`],[`𝒑`,`p`],[`𝒒`,`q`],[`𝒓`,`r`],[`𝒔`,`s`],[`𝒕`,`t`],[`𝒖`,`u`],[`𝒗`,`v`],[`𝒘`,`w`],[`𝒙`,`x`],[`𝒚`,`y`],[`𝒛`,`z`],[`𝒜`,`A`],[`𝒞`,`C`],[`𝒟`,`D`],[`𝒢`,`g`],[`𝒥`,`J`],[`𝒦`,`K`],[`𝒩`,`N`],[`𝒪`,`O`],[`𝒫`,`P`],[`𝒬`,`Q`],[`𝒮`,`S`],[`𝒯`,`T`],[`𝒰`,`U`],[`𝒱`,`V`],[`𝒲`,`W`],[`𝒳`,`X`],[`𝒴`,`Y`],[`𝒵`,`Z`],[`𝒶`,`a`],[`𝒷`,`b`],[`𝒸`,`c`],[`𝒹`,`d`],[`𝒻`,`f`],[`𝒽`,`h`],[`𝒾`,`i`],[`𝒿`,`j`],[`𝓀`,`k`],[`𝓁`,`l`],[`𝓂`,`m`],[`𝓃`,`n`],[`𝓅`,`p`],[`𝓆`,`q`],[`𝓇`,`r`],[`𝓈`,`s`],[`𝓉`,`t`],[`𝓊`,`u`],[`𝓋`,`v`],[`𝓌`,`w`],[`𝓍`,`x`],[`𝓎`,`y`],[`𝓏`,`z`],[`𝓐`,`A`],[`𝓑`,`B`],[`𝓒`,`C`],[`𝓓`,`D`],[`𝓔`,`E`],[`𝓕`,`F`],[`𝓖`,`G`],[`𝓗`,`H`],[`𝓘`,`I`],[`𝓙`,`J`],[`𝓚`,`K`],[`𝓛`,`L`],[`𝓜`,`M`],[`𝓝`,`N`],[`𝓞`,`O`],[`𝓟`,`P`],[`𝓠`,`Q`],[`𝓡`,`R`],[`𝓢`,`S`],[`𝓣`,`T`],[`𝓤`,`U`],[`𝓥`,`V`],[`𝓦`,`W`],[`𝓧`,`X`],[`𝓨`,`Y`],[`𝓩`,`Z`],[`𝓪`,`a`],[`𝓫`,`b`],[`𝓬`,`c`],[`𝓭`,`d`],[`𝓮`,`e`],[`𝓯`,`f`],[`𝓰`,`g`],[`𝓱`,`h`],[`𝓲`,`i`],[`𝓳`,`j`],[`𝓴`,`k`],[`𝓵`,`l`],[`𝓶`,`m`],[`𝓷`,`n`],[`𝓸`,`o`],[`𝓹`,`p`],[`𝓺`,`q`],[`𝓻`,`r`],[`𝓼`,`s`],[`𝓽`,`t`],[`𝓾`,`u`],[`𝓿`,`v`],[`𝔀`,`w`],[`𝔁`,`x`],[`𝔂`,`y`],[`𝔃`,`z`],[`𝔄`,`A`],[`𝔅`,`B`],[`𝔇`,`D`],[`𝔈`,`E`],[`𝔉`,`F`],[`𝔊`,`G`],[`𝔍`,`J`],[`𝔎`,`K`],[`𝔏`,`L`],[`𝔐`,`M`],[`𝔑`,`N`],[`𝔒`,`O`],[`𝔓`,`P`],[`𝔔`,`Q`],[`𝔖`,`S`],[`𝔗`,`T`],[`𝔘`,`U`],[`𝔙`,`V`],[`𝔚`,`W`],[`𝔛`,`X`],[`𝔜`,`Y`],[`𝔞`,`a`],[`𝔟`,`b`],[`𝔠`,`c`],[`𝔡`,`d`],[`𝔢`,`e`],[`𝔣`,`f`],[`𝔤`,`g`],[`𝔥`,`h`],[`𝔦`,`i`],[`𝔧`,`j`],[`𝔨`,`k`],[`𝔩`,`l`],[`𝔪`,`m`],[`𝔫`,`n`],[`𝔬`,`o`],[`𝔭`,`p`],[`𝔮`,`q`],[`𝔯`,`r`],[`𝔰`,`s`],[`𝔱`,`t`],[`𝔲`,`u`],[`𝔳`,`v`],[`𝔴`,`w`],[`𝔵`,`x`],[`𝔶`,`y`],[`𝔷`,`z`],[`𝔸`,`A`],[`𝔹`,`B`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`𝕆`,`O`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`],[`𝕬`,`A`],[`𝕭`,`B`],[`𝕮`,`C`],[`𝕯`,`D`],[`𝕰`,`E`],[`𝕱`,`F`],[`𝕲`,`G`],[`𝕳`,`H`],[`𝕴`,`I`],[`𝕵`,`J`],[`𝕶`,`K`],[`𝕷`,`L`],[`𝕸`,`M`],[`𝕹`,`N`],[`𝕺`,`O`],[`𝕻`,`P`],[`𝕼`,`Q`],[`𝕽`,`R`],[`𝕾`,`S`],[`𝕿`,`T`],[`𝖀`,`U`],[`𝖁`,`V`],[`𝖂`,`W`],[`𝖃`,`X`],[`𝖄`,`Y`],[`𝖅`,`Z`],[`𝖆`,`a`],[`𝖇`,`b`],[`𝖈`,`c`],[`𝖉`,`d`],[`𝖊`,`e`],[`𝖋`,`f`],[`𝖌`,`g`],[`𝖍`,`h`],[`𝖎`,`i`],[`𝖏`,`j`],[`𝖐`,`k`],[`𝖑`,`l`],[`𝖒`,`m`],[`𝖓`,`n`],[`𝖔`,`o`],[`𝖕`,`p`],[`𝖖`,`q`],[`𝖗`,`r`],[`𝖘`,`s`],[`𝖙`,`t`],[`𝖚`,`u`],[`𝖛`,`v`],[`𝖜`,`w`],[`𝖝`,`x`],[`𝖞`,`y`],[`𝖟`,`z`],[`𝖠`,`A`],[`𝖡`,`B`],[`𝖢`,`C`],[`𝖣`,`D`],[`𝖤`,`E`],[`𝖥`,`F`],[`𝖦`,`G`],[`𝖧`,`H`],[`𝖨`,`I`],[`𝖩`,`J`],[`𝖪`,`K`],[`𝖫`,`L`],[`𝖬`,`M`],[`𝖭`,`N`],[`𝖮`,`O`],[`𝖯`,`P`],[`𝖰`,`Q`],[`𝖱`,`R`],[`𝖲`,`S`],[`𝖳`,`T`],[`𝖴`,`U`],[`𝖵`,`V`],[`𝖶`,`W`],[`𝖷`,`X`],[`𝖸`,`Y`],[`𝖹`,`Z`],[`𝖺`,`a`],[`𝖻`,`b`],[`𝖼`,`c`],[`𝖽`,`d`],[`𝖾`,`e`],[`𝖿`,`f`],[`𝗀`,`g`],[`𝗁`,`h`],[`𝗂`,`i`],[`𝗃`,`j`],[`𝗄`,`k`],[`𝗅`,`l`],[`𝗆`,`m`],[`𝗇`,`n`],[`𝗈`,`o`],[`𝗉`,`p`],[`𝗊`,`q`],[`𝗋`,`r`],[`𝗌`,`s`],[`𝗍`,`t`],[`𝗎`,`u`],[`𝗏`,`v`],[`𝗐`,`w`],[`𝗑`,`x`],[`𝗒`,`y`],[`𝗓`,`z`],[`𝗔`,`A`],[`𝗕`,`B`],[`𝗖`,`C`],[`𝗗`,`D`],[`𝗘`,`E`],[`𝗙`,`F`],[`𝗚`,`G`],[`𝗛`,`H`],[`𝗜`,`I`],[`𝗝`,`J`],[`𝗞`,`K`],[`𝗟`,`L`],[`𝗠`,`M`],[`𝗡`,`N`],[`𝗢`,`O`],[`𝗣`,`P`],[`𝗤`,`Q`],[`𝗥`,`R`],[`𝗦`,`S`],[`𝗧`,`T`],[`𝗨`,`U`],[`𝗩`,`V`],[`𝗪`,`W`],[`𝗫`,`X`],[`𝗬`,`Y`],[`𝗭`,`Z`],[`𝗮`,`a`],[`𝗯`,`b`],[`𝗰`,`c`],[`𝗱`,`d`],[`𝗲`,`e`],[`𝗳`,`f`],[`𝗴`,`g`],[`𝗵`,`h`],[`𝗶`,`i`],[`𝗷`,`j`],[`𝗸`,`k`],[`𝗹`,`l`],[`𝗺`,`m`],[`𝗻`,`n`],[`𝗼`,`o`],[`𝗽`,`p`],[`𝗾`,`q`],[`𝗿`,`r`],[`𝘀`,`s`],[`𝘁`,`t`],[`𝘂`,`u`],[`𝘃`,`v`],[`𝘄`,`w`],[`𝘅`,`x`],[`𝘆`,`y`],[`𝘇`,`z`],[`𝘈`,`A`],[`𝘉`,`B`],[`𝘊`,`C`],[`𝘋`,`D`],[`𝘌`,`E`],[`𝘍`,`F`],[`𝘎`,`G`],[`𝘏`,`H`],[`𝘐`,`I`],[`𝘑`,`J`],[`𝘒`,`K`],[`𝘓`,`L`],[`𝘔`,`M`],[`𝘕`,`N`],[`𝘖`,`O`],[`𝘗`,`P`],[`𝘘`,`Q`],[`𝘙`,`R`],[`𝘚`,`S`],[`𝘛`,`T`],[`𝘜`,`U`],[`𝘝`,`V`],[`𝘞`,`W`],[`𝘟`,`X`],[`𝘠`,`Y`],[`𝘡`,`Z`],[`𝘢`,`a`],[`𝘣`,`b`],[`𝘤`,`c`],[`𝘥`,`d`],[`𝘦`,`e`],[`𝘧`,`f`],[`𝘨`,`g`],[`𝘩`,`h`],[`𝘪`,`i`],[`𝘫`,`j`],[`𝘬`,`k`],[`𝘭`,`l`],[`𝘮`,`m`],[`𝘯`,`n`],[`𝘰`,`o`],[`𝘱`,`p`],[`𝘲`,`q`],[`𝘳`,`r`],[`𝘴`,`s`],[`𝘵`,`t`],[`𝘶`,`u`],[`𝘷`,`v`],[`𝘸`,`w`],[`𝘹`,`x`],[`𝘺`,`y`],[`𝘻`,`z`],[`𝘼`,`A`],[`𝘽`,`B`],[`𝘾`,`C`],[`𝘿`,`D`],[`𝙀`,`E`],[`𝙁`,`F`],[`𝙂`,`G`],[`𝙃`,`H`],[`𝙄`,`I`],[`𝙅`,`J`],[`𝙆`,`K`],[`𝙇`,`L`],[`𝙈`,`M`],[`𝙉`,`N`],[`𝙊`,`O`],[`𝙋`,`P`],[`𝙌`,`Q`],[`𝙍`,`R`],[`𝙎`,`S`],[`𝙏`,`T`],[`𝙐`,`U`],[`𝙑`,`V`],[`𝙒`,`W`],[`𝙓`,`X`],[`𝙔`,`Y`],[`𝙕`,`Z`],[`𝙖`,`a`],[`𝙗`,`b`],[`𝙘`,`c`],[`𝙙`,`d`],[`𝙚`,`e`],[`𝙛`,`f`],[`𝙜`,`g`],[`𝙝`,`h`],[`𝙞`,`i`],[`𝙟`,`j`],[`𝙠`,`k`],[`𝙡`,`l`],[`𝙢`,`m`],[`𝙣`,`n`],[`𝙤`,`o`],[`𝙥`,`p`],[`𝙦`,`q`],[`𝙧`,`r`],[`𝙨`,`s`],[`𝙩`,`t`],[`𝙪`,`u`],[`𝙫`,`v`],[`𝙬`,`w`],[`𝙭`,`x`],[`𝙮`,`y`],[`𝙯`,`z`],[`𝙰`,`A`],[`𝙱`,`B`],[`𝙲`,`C`],[`𝙳`,`D`],[`𝙴`,`E`],[`𝙵`,`F`],[`𝙶`,`G`],[`𝙷`,`H`],[`𝙸`,`I`],[`𝙹`,`J`],[`𝙺`,`K`],[`𝙻`,`L`],[`𝙼`,`M`],[`𝙽`,`N`],[`𝙾`,`O`],[`𝙿`,`P`],[`𝚀`,`Q`],[`𝚁`,`R`],[`𝚂`,`S`],[`𝚃`,`T`],[`𝚄`,`U`],[`𝚅`,`V`],[`𝚆`,`W`],[`𝚇`,`X`],[`𝚈`,`Y`],[`𝚉`,`Z`],[`𝚊`,`a`],[`𝚋`,`b`],[`𝚌`,`c`],[`𝚍`,`d`],[`𝚎`,`e`],[`𝚏`,`f`],[`𝚐`,`g`],[`𝚑`,`h`],[`𝚒`,`i`],[`𝚓`,`j`],[`𝚔`,`k`],[`𝚕`,`l`],[`𝚖`,`m`],[`𝚗`,`n`],[`𝚘`,`o`],[`𝚙`,`p`],[`𝚚`,`q`],[`𝚛`,`r`],[`𝚜`,`s`],[`𝚝`,`t`],[`𝚞`,`u`],[`𝚟`,`v`],[`𝚠`,`w`],[`𝚡`,`x`],[`𝚢`,`y`],[`𝚣`,`z`],[`𝚤`,`l`],[`𝚥`,`j`],[`𝛢`,`A`],[`𝛣`,`B`],[`𝛤`,`G`],[`𝛥`,`D`],[`𝛦`,`E`],[`𝛧`,`Z`],[`𝛨`,`I`],[`𝛩`,`TH`],[`𝛪`,`I`],[`𝛫`,`K`],[`𝛬`,`L`],[`𝛭`,`M`],[`𝛮`,`N`],[`𝛯`,`KS`],[`𝛰`,`O`],[`𝛱`,`P`],[`𝛲`,`R`],[`𝛳`,`TH`],[`𝛴`,`S`],[`𝛵`,`T`],[`𝛶`,`Y`],[`𝛷`,`F`],[`𝛸`,`x`],[`𝛹`,`PS`],[`𝛺`,`O`],[`𝛻`,`D`],[`𝛼`,`a`],[`𝛽`,`b`],[`𝛾`,`g`],[`𝛿`,`d`],[`𝜀`,`e`],[`𝜁`,`z`],[`𝜂`,`i`],[`𝜃`,`th`],[`𝜄`,`i`],[`𝜅`,`k`],[`𝜆`,`l`],[`𝜇`,`m`],[`𝜈`,`n`],[`𝜉`,`ks`],[`𝜊`,`o`],[`𝜋`,`p`],[`𝜌`,`r`],[`𝜍`,`s`],[`𝜎`,`s`],[`𝜏`,`t`],[`𝜐`,`y`],[`𝜑`,`f`],[`𝜒`,`x`],[`𝜓`,`ps`],[`𝜔`,`o`],[`𝜕`,`d`],[`𝜖`,`E`],[`𝜗`,`TH`],[`𝜘`,`K`],[`𝜙`,`f`],[`𝜚`,`r`],[`𝜛`,`p`],[`𝜜`,`A`],[`𝜝`,`V`],[`𝜞`,`G`],[`𝜟`,`D`],[`𝜠`,`E`],[`𝜡`,`Z`],[`𝜢`,`I`],[`𝜣`,`TH`],[`𝜤`,`I`],[`𝜥`,`K`],[`𝜦`,`L`],[`𝜧`,`M`],[`𝜨`,`N`],[`𝜩`,`KS`],[`𝜪`,`O`],[`𝜫`,`P`],[`𝜬`,`S`],[`𝜭`,`TH`],[`𝜮`,`S`],[`𝜯`,`T`],[`𝜰`,`Y`],[`𝜱`,`F`],[`𝜲`,`X`],[`𝜳`,`PS`],[`𝜴`,`O`],[`𝜵`,`D`],[`𝜶`,`a`],[`𝜷`,`v`],[`𝜸`,`g`],[`𝜹`,`d`],[`𝜺`,`e`],[`𝜻`,`z`],[`𝜼`,`i`],[`𝜽`,`th`],[`𝜾`,`i`],[`𝜿`,`k`],[`𝝀`,`l`],[`𝝁`,`m`],[`𝝂`,`n`],[`𝝃`,`ks`],[`𝝄`,`o`],[`𝝅`,`p`],[`𝝆`,`r`],[`𝝇`,`s`],[`𝝈`,`s`],[`𝝉`,`t`],[`𝝊`,`y`],[`𝝋`,`f`],[`𝝌`,`x`],[`𝝍`,`ps`],[`𝝎`,`o`],[`𝝏`,`a`],[`𝝐`,`e`],[`𝝑`,`i`],[`𝝒`,`k`],[`𝝓`,`f`],[`𝝔`,`r`],[`𝝕`,`p`],[`𝝖`,`A`],[`𝝗`,`B`],[`𝝘`,`G`],[`𝝙`,`D`],[`𝝚`,`E`],[`𝝛`,`Z`],[`𝝜`,`I`],[`𝝝`,`TH`],[`𝝞`,`I`],[`𝝟`,`K`],[`𝝠`,`L`],[`𝝡`,`M`],[`𝝢`,`N`],[`𝝣`,`KS`],[`𝝤`,`O`],[`𝝥`,`P`],[`𝝦`,`R`],[`𝝧`,`TH`],[`𝝨`,`S`],[`𝝩`,`T`],[`𝝪`,`Y`],[`𝝫`,`F`],[`𝝬`,`X`],[`𝝭`,`PS`],[`𝝮`,`O`],[`𝝯`,`D`],[`𝝰`,`a`],[`𝝱`,`v`],[`𝝲`,`g`],[`𝝳`,`d`],[`𝝴`,`e`],[`𝝵`,`z`],[`𝝶`,`i`],[`𝝷`,`th`],[`𝝸`,`i`],[`𝝹`,`k`],[`𝝺`,`l`],[`𝝻`,`m`],[`𝝼`,`n`],[`𝝽`,`ks`],[`𝝾`,`o`],[`𝝿`,`p`],[`𝞀`,`r`],[`𝞁`,`s`],[`𝞂`,`s`],[`𝞃`,`t`],[`𝞄`,`y`],[`𝞅`,`f`],[`𝞆`,`x`],[`𝞇`,`ps`],[`𝞈`,`o`],[`𝞉`,`a`],[`𝞊`,`e`],[`𝞋`,`i`],[`𝞌`,`k`],[`𝞍`,`f`],[`𝞎`,`r`],[`𝞏`,`p`],[`𝞐`,`A`],[`𝞑`,`V`],[`𝞒`,`G`],[`𝞓`,`D`],[`𝞔`,`E`],[`𝞕`,`Z`],[`𝞖`,`I`],[`𝞗`,`TH`],[`𝞘`,`I`],[`𝞙`,`K`],[`𝞚`,`L`],[`𝞛`,`M`],[`𝞜`,`N`],[`𝞝`,`KS`],[`𝞞`,`O`],[`𝞟`,`P`],[`𝞠`,`S`],[`𝞡`,`TH`],[`𝞢`,`S`],[`𝞣`,`T`],[`𝞤`,`Y`],[`𝞥`,`F`],[`𝞦`,`X`],[`𝞧`,`PS`],[`𝞨`,`O`],[`𝞩`,`D`],[`𝞪`,`av`],[`𝞫`,`g`],[`𝞬`,`d`],[`𝞭`,`e`],[`𝞮`,`z`],[`𝞯`,`i`],[`𝞰`,`i`],[`𝞱`,`th`],[`𝞲`,`i`],[`𝞳`,`k`],[`𝞴`,`l`],[`𝞵`,`m`],[`𝞶`,`n`],[`𝞷`,`ks`],[`𝞸`,`o`],[`𝞹`,`p`],[`𝞺`,`r`],[`𝞻`,`s`],[`𝞼`,`s`],[`𝞽`,`t`],[`𝞾`,`y`],[`𝞿`,`f`],[`𝟀`,`x`],[`𝟁`,`ps`],[`𝟂`,`o`],[`𝟃`,`a`],[`𝟄`,`e`],[`𝟅`,`i`],[`𝟆`,`k`],[`𝟇`,`f`],[`𝟈`,`r`],[`𝟉`,`p`],[`𝟊`,`F`],[`𝟋`,`f`],[`⒜`,`(a)`],[`⒝`,`(b)`],[`⒞`,`(c)`],[`⒟`,`(d)`],[`⒠`,`(e)`],[`⒡`,`(f)`],[`⒢`,`(g)`],[`⒣`,`(h)`],[`⒤`,`(i)`],[`⒥`,`(j)`],[`⒦`,`(k)`],[`⒧`,`(l)`],[`⒨`,`(m)`],[`⒩`,`(n)`],[`⒪`,`(o)`],[`⒫`,`(p)`],[`⒬`,`(q)`],[`⒭`,`(r)`],[`⒮`,`(s)`],[`⒯`,`(t)`],[`⒰`,`(u)`],[`⒱`,`(v)`],[`⒲`,`(w)`],[`⒳`,`(x)`],[`⒴`,`(y)`],[`⒵`,`(z)`],[`Ⓐ`,`(A)`],[`Ⓑ`,`(B)`],[`Ⓒ`,`(C)`],[`Ⓓ`,`(D)`],[`Ⓔ`,`(E)`],[`Ⓕ`,`(F)`],[`Ⓖ`,`(G)`],[`Ⓗ`,`(H)`],[`Ⓘ`,`(I)`],[`Ⓙ`,`(J)`],[`Ⓚ`,`(K)`],[`Ⓛ`,`(L)`],[`Ⓝ`,`(N)`],[`Ⓞ`,`(O)`],[`Ⓟ`,`(P)`],[`Ⓠ`,`(Q)`],[`Ⓡ`,`(R)`],[`Ⓢ`,`(S)`],[`Ⓣ`,`(T)`],[`Ⓤ`,`(U)`],[`Ⓥ`,`(V)`],[`Ⓦ`,`(W)`],[`Ⓧ`,`(X)`],[`Ⓨ`,`(Y)`],[`Ⓩ`,`(Z)`],[`ⓐ`,`(a)`],[`ⓑ`,`(b)`],[`ⓒ`,`(c)`],[`ⓓ`,`(d)`],[`ⓔ`,`(e)`],[`ⓕ`,`(f)`],[`ⓖ`,`(g)`],[`ⓗ`,`(h)`],[`ⓘ`,`(i)`],[`ⓙ`,`(j)`],[`ⓚ`,`(k)`],[`ⓛ`,`(l)`],[`ⓜ`,`(m)`],[`ⓝ`,`(n)`],[`ⓞ`,`(o)`],[`ⓟ`,`(p)`],[`ⓠ`,`(q)`],[`ⓡ`,`(r)`],[`ⓢ`,`(s)`],[`ⓣ`,`(t)`],[`ⓤ`,`(u)`],[`ⓥ`,`(v)`],[`ⓦ`,`(w)`],[`ⓧ`,`(x)`],[`ⓨ`,`(y)`],[`ⓩ`,`(z)`],[`Ċ`,`C`],[`ċ`,`c`],[`Ġ`,`G`],[`ġ`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Ż`,`Z`],[`ż`,`z`],[`𝟎`,`0`],[`𝟏`,`1`],[`𝟐`,`2`],[`𝟑`,`3`],[`𝟒`,`4`],[`𝟓`,`5`],[`𝟔`,`6`],[`𝟕`,`7`],[`𝟖`,`8`],[`𝟗`,`9`],[`𝟘`,`0`],[`𝟙`,`1`],[`𝟚`,`2`],[`𝟛`,`3`],[`𝟜`,`4`],[`𝟝`,`5`],[`𝟞`,`6`],[`𝟟`,`7`],[`𝟠`,`8`],[`𝟡`,`9`],[`𝟢`,`0`],[`𝟣`,`1`],[`𝟤`,`2`],[`𝟥`,`3`],[`𝟦`,`4`],[`𝟧`,`5`],[`𝟨`,`6`],[`𝟩`,`7`],[`𝟪`,`8`],[`𝟫`,`9`],[`𝟬`,`0`],[`𝟭`,`1`],[`𝟮`,`2`],[`𝟯`,`3`],[`𝟰`,`4`],[`𝟱`,`5`],[`𝟲`,`6`],[`𝟳`,`7`],[`𝟴`,`8`],[`𝟵`,`9`],[`𝟶`,`0`],[`𝟷`,`1`],[`𝟸`,`2`],[`𝟹`,`3`],[`𝟺`,`4`],[`𝟻`,`5`],[`𝟼`,`6`],[`𝟽`,`7`],[`𝟾`,`8`],[`𝟿`,`9`],[`①`,`1`],[`②`,`2`],[`③`,`3`],[`④`,`4`],[`⑤`,`5`],[`⑥`,`6`],[`⑦`,`7`],[`⑧`,`8`],[`⑨`,`9`],[`⑩`,`10`],[`⑪`,`11`],[`⑫`,`12`],[`⑬`,`13`],[`⑭`,`14`],[`⑮`,`15`],[`⑯`,`16`],[`⑰`,`17`],[`⑱`,`18`],[`⑲`,`19`],[`⑳`,`20`],[`⑴`,`1`],[`⑵`,`2`],[`⑶`,`3`],[`⑷`,`4`],[`⑸`,`5`],[`⑹`,`6`],[`⑺`,`7`],[`⑻`,`8`],[`⑼`,`9`],[`⑽`,`10`],[`⑾`,`11`],[`⑿`,`12`],[`⒀`,`13`],[`⒁`,`14`],[`⒂`,`15`],[`⒃`,`16`],[`⒄`,`17`],[`⒅`,`18`],[`⒆`,`19`],[`⒇`,`20`],[`⒈`,`1.`],[`⒉`,`2.`],[`⒊`,`3.`],[`⒋`,`4.`],[`⒌`,`5.`],[`⒍`,`6.`],[`⒎`,`7.`],[`⒏`,`8.`],[`⒐`,`9.`],[`⒑`,`10.`],[`⒒`,`11.`],[`⒓`,`12.`],[`⒔`,`13.`],[`⒕`,`14.`],[`⒖`,`15.`],[`⒗`,`16.`],[`⒘`,`17.`],[`⒙`,`18.`],[`⒚`,`19.`],[`⒛`,`20.`],[`⓪`,`0`],[`⓫`,`11`],[`⓬`,`12`],[`⓭`,`13`],[`⓮`,`14`],[`⓯`,`15`],[`⓰`,`16`],[`⓱`,`17`],[`⓲`,`18`],[`⓳`,`19`],[`⓴`,`20`],[`⓵`,`1`],[`⓶`,`2`],[`⓷`,`3`],[`⓸`,`4`],[`⓹`,`5`],[`⓺`,`6`],[`⓻`,`7`],[`⓼`,`8`],[`⓽`,`9`],[`⓾`,`10`],[`⓿`,`0`],[`🙰`,`&`],[`🙱`,`&`],[`🙲`,`&`],[`🙳`,`&`],[`🙴`,`&`],[`🙵`,`&`],[`🙶`,`"`],[`🙷`,`"`],[`🙸`,`"`],[`‽`,`?!`],[`🙹`,`?!`],[`🙺`,`?!`],[`🙻`,`?!`],[`🙼`,`/`],[`🙽`,`\\`],[`🜇`,`AR`],[`🜈`,`V`],[`🜉`,`V`],[`🜆`,`VR`],[`🜅`,`VF`],[`🜩`,`2`],[`🜪`,`5`],[`🝡`,`f`],[`🝢`,`W`],[`🝣`,`U`],[`🝧`,`V`],[`🝨`,`T`],[`🝪`,`V`],[`🝫`,`MB`],[`🝬`,`VB`],[`🝲`,`3B`],[`🝳`,`3B`],[`💯`,`100`],[`🔙`,`BACK`],[`🔚`,`END`],[`🔛`,`ON!`],[`🔜`,`SOON`],[`🔝`,`TOP`],[`🔞`,`18`],[`🔤`,`abc`],[`🔠`,`ABCD`],[`🔡`,`abcd`],[`🔢`,`1234`],[`🔣`,`T&@%`],[`#️⃣`,`#`],[`*️⃣`,`*`],[`0️⃣`,`0`],[`1️⃣`,`1`],[`2️⃣`,`2`],[`3️⃣`,`3`],[`4️⃣`,`4`],[`5️⃣`,`5`],[`6️⃣`,`6`],[`7️⃣`,`7`],[`8️⃣`,`8`],[`9️⃣`,`9`],[`🔟`,`10`],[`🅰️`,`A`],[`🅱️`,`B`],[`🆎`,`AB`],[`🆑`,`CL`],[`🅾️`,`O`],[`🅿`,`P`],[`🆘`,`SOS`],[`🅲`,`C`],[`🅳`,`D`],[`🅴`,`E`],[`🅵`,`F`],[`🅶`,`G`],[`🅷`,`H`],[`🅸`,`I`],[`🅹`,`J`],[`🅺`,`K`],[`🅻`,`L`],[`🅼`,`M`],[`🅽`,`N`],[`🆀`,`Q`],[`🆁`,`R`],[`🆂`,`S`],[`🆃`,`T`],[`🆄`,`U`],[`🆅`,`V`],[`🆆`,`W`],[`🆇`,`X`],[`🆈`,`Y`],[`🆉`,`Z`],[`−`,`-`],[`⁓`,`-`]])})),BS,VS,Pne=s((()=>{BS=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],VS={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:BS,nb:BS,de:[[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`ß`,`ss`],[`ẞ`,`Ss`]],tr:[[`â`,`a`],[`Â`,`A`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`]],hu:[[`ű`,`u`],[`Ű`,`U`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`],[`á`,`a`],[`Á`,`A`],[`é`,`e`],[`É`,`E`],[`í`,`i`],[`Í`,`I`],[`ó`,`o`],[`Ó`,`O`],[`ú`,`u`],[`Ú`,`U`]],sr:[[`ђ`,`dj`],[`Ђ`,`Dj`],[`џ`,`dz`],[`Џ`,`Dz`],[`љ`,`lj`],[`Љ`,`Lj`],[`њ`,`nj`],[`Њ`,`Nj`],[`ћ`,`c`],[`Ћ`,`C`],[`ч`,`ch`],[`Ч`,`Ch`],[`ш`,`sh`],[`Ш`,`Sh`],[`ж`,`zh`],[`Ж`,`Zh`]]};for(let e of Object.keys(VS))VS[e]=new Map(VS[e])}));function Fne(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=KS(t.locale),r=[...t.customReplacements],i=zS,a=WS;if(n&&({replacements:i,pattern:a}=GS.get(n)),e=e.normalize(),r.length>0){r.sort((e,t)=>t[0].length-e[0].length);for(let[t,n]of r)e=e.replaceAll(t,n)}return e=e.replace(a,e=>i.get(e)??e),e=e.normalize(`NFD`).replaceAll(/\p{Diacritic}/gu,``).normalize(),e=e.replaceAll(/\p{Dash_Punctuation}/gu,`-`),e}var HS,US,WS,GS,KS,Ine=s((()=>{Nne(),Pne(),HS=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),US=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>HS(e)).join(`|`),`gu`)},WS=US(zS),GS=new Map;for(let[e,t]of Object.entries(VS)){let n=new Map(zS);for(let[e,r]of t)n.set(e,r);GS.set(e,{replacements:n,pattern:US(n)})}KS=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(VS,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(VS,n))return n}})),qS,JS,YS,XS=s((()=>{Ine(),gp(),Cp(),ip(),iF(),Bx(),qS=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],JS=new Map,YS=(e,{fallback:t=!0,locale:n=void 0,maxLength:r=void 0}={})=>{let{slug:{encoding:i=`unicode`,clean_accents:a=!1,sanitize_replacement:o=`-`,maxlength:s=void 0,trim:c=!0,lowercase:l=!0}={}}=A($P)??{},u=r??s,d=e;if(a&&(d=Fne(d.normalize(`NFD`),{locale:n&&qS.includes(n)?n:void 0})),d=i===`ascii`?d.replaceAll(/[^\w-~]/g,` `):d.replaceAll(/[\p{Z}\p{C}!"#$%&'()*+,/:;<=>?@[\\\]^`{|}]/gu,` `),d=d.trim().replaceAll(/\s+/g,o),o){let e=o.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),t=zx(JS,e,()=>({consecutivePattern:RegExp(`${e}+`,`g`),trimPattern:RegExp(`^${e}+|${e}+$`,`g`)}));d=d.replace(t.consecutivePattern,o),c&&(d=d.replace(t.trimPattern,``))}return!d&&t&&(d=pp(`short`)),typeof u==`number`&&d.length>u&&(d=vp(d,u,{ellipsis:``})),l&&(d=d.toLocaleLowerCase()),d}})),ZS,QS=s((()=>{ZS=({date:e=new Date,timeZone:t=void 0}={})=>{let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`longOffset`};return Object.fromEntries(new Intl.DateTimeFormat(`en-US`,{...n,hour12:!1,timeZone:t}).formatToParts(e).filter(({type:e})=>e in n).map(({type:e,value:t})=>[e,e===`hour`&&t===`24`?`00`:t]))}})),$S,eC,tC,nC,rC,iC,aC=s((()=>{$S=/^\d{4}-[01]\d-[0-3]\d$/,eC=/T00:00(?::00)?(?:\.000)?Z$/,tC={year:`numeric`,month:`short`,day:`numeric`},nC={hour:`numeric`,minute:`numeric`,hour12:!0},rC={...tC,...nC},iC=(e,t)=>e.toLocaleString(t??void 0,rC)})),oC,Lne,Rne,zne,sC,cC,lC,uC,dC,fC,pC,mC,hC=s((()=>{QS(),oC=u(FS(),1),Lne=u(IS(),1),Rne=u(LS(),1),zne=u(RS(),1),fb(),aC(),oC.default.extend(Lne.default),oC.default.extend(Rne.default),oC.default.extend(zne.default),sC=e=>{let{type:t=`datetime-local`,min:n=void 0,max:r=void 0,step:i=void 0,format:a,date_format:o=void 0,time_format:s=void 0,picker_utc:c=!1}=e,l=typeof o==`string`?o:``,u=typeof s==`string`?s:``,d=t===`date`||s===!1,f=t===`time`||o===!1;return{type:d?`date`:f?`time`:`datetime-local`,min:typeof n==`string`&&n?n:void 0,max:typeof r==`string`&&r?r:d?`9999-12-31`:f?void 0:`9999-12-31T23:59`,step:typeof i==`number`&&Number.isInteger(i)&&i>0||i===`any`?i:void 0,format:a||[l,u].join(` `).trim()||void 0,dateOnly:d,timeOnly:f,utc:c}},cC=e=>e instanceof Date&&!Number.isNaN(e.getTime()),lC=e=>e?oC.default.utc:oC.default,uC=(e,t)=>{let{format:n,timeOnly:r,utc:i}=sC(t);if(!e)return;let a;if(n){let t=lC(i),r=t(e,n);if(!r.isValid()&&(r=t(e),!r.isValid())){console.error(`Invalid Date`,e);return}return r.toDate()}if(a=r?new Date(`${new Date().toJSON().split(`T`)[0]}T${e}`):new Date(e),cC(a))return a;console.error(`Invalid Date`,e)},dC=e=>{let{dateOnly:t,timeOnly:n,utc:r}=sC(e),{year:i,month:a,day:o,hour:s,minute:c}=ZS({timeZone:r?`UTC`:void 0}),l=`${i}-${a}-${o}`,u=`${s}:${c}`;return t?l:n?u:r?`${l}T${u}:00.000Z`:`${l}T${u}`},fC=(e,t,n)=>{let{format:r,dateOnly:i,timeOnly:a,utc:o}=sC(n),s=i?`YYYY-MM-DD`:a?`HH:mm`:`YYYY-MM-DDTHH:mm`,c=`:00${t?.endsWith(`.000`)?`.000`:``}`;if(e===``)return``;if(e){if(r){let t=lC(o),n=t(e,s);return!n.isValid()&&(n=t(e),!n.isValid())?(console.info(`Invalid date`,e),``):n.format(r)}return i?e:o?`${e}:00.000Z`:`${e}${c}`}},pC=(e,t)=>{let{dateOnly:n,timeOnly:r,utc:i}=sC(t);if(!e)return``;let a=n?e.match(/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/)?.groups?.date:r?e.match(/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/)?.groups?.time:void 0;if(a)return a;let o=uC(e,t);if(!o)return``;let{year:s,month:c,day:l,hour:u,minute:d}=ZS({date:o,timeZone:i?`UTC`:void 0}),f=`${s}-${c}-${l}`,p=`${u}:${d}`;return n?f:r?p:`${f}T${p}`},mC=({locale:e,fieldConfig:t,currentValue:n})=>{let{format:r,dateOnly:i,timeOnly:a,utc:o}=sC(t);if(typeof n!=`string`||!n.trim())return``;if(r){let e=lC(o),t=e(n,r);return!t.isValid()&&(t=e(n),!t.isValid())?(console.error(`Invalid Date`,n),``):t.format(r)}let s=uC(n,t),c=ab(e);return cC(s)?a?s.toLocaleTimeString(c,nC):i?s.toLocaleDateString(c,{...tC,timeZone:o||$S.test(n)||eC.test(n)?`UTC`:void 0}):s.toLocaleString(c,{...tC,...nC,timeZone:o?`UTC`:void 0,timeZoneName:o?void 0:`short`}):``}})),gC,Bne,Vne,Hne,_C,vC,yC,Une,Wne,Gne,Kne,qne,Jne,Yne,Xne,bC,xC=s((()=>{Cp(),gC=u(FS(),1),Bne=u(IS(),1),Vne=u(LS(),1),Hne=u(RS(),1),XS(),hC(),gC.default.extend(Bne.default),gC.default.extend(Vne.default),gC.default.extend(Hne.default),_C=/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,vC=/^default\('(?<defaultValue>.+?)'\)$/,yC=/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,Une=/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/,Wne=e=>String(e).toUpperCase(),Gne=e=>String(e).toLowerCase(),Kne=(e,{format:t,timeZone:n},r)=>{let i=String(e),{dateOnly:a,utc:o}=sC(r),s=(n===`utc`||o||a&&i.match(/^\d{4}-[01]\d-[0-3]\d$/)||a&&i.match(/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/)?gC.default.utc:gC.default)(i);return s.isValid()?s.format(t):``},qne=(e,{defaultValue:t})=>e?String(e):t,Jne=(e,{truthyValue:t,falsyValue:n})=>e?t:n,Yne=(e,{max:t,ellipsis:n=`…`})=>vp(String(e),Number(t),{ellipsis:n}),Xne=({fieldConfig:e,value:t,transformation:n,locale:r})=>{if(n===`upper`)return Wne(t);if(n===`lower`)return Gne(t);if(n===`slugify`)return YS(String(t),{locale:r});let i=n.match(_C);if(i?.groups)return Kne(t,i.groups,e??{});let a=n.match(vC);if(a?.groups)return qne(t,a.groups);let o=n.match(yC);if(o?.groups)return Jne(t,o.groups);let s=n.match(Une);return s?.groups?Yne(t,s.groups):String(t)},bC=({fieldConfig:e,value:t,transformations:n,locale:r})=>(n.forEach(n=>{t=Xne({fieldConfig:e,value:t,transformation:n,locale:r})}),t)})),SC,CC,Zne,wC=s((()=>{SC=[`file`,`image`],CC=[...SC,`relation`,`select`],Zne=[...CC,`datetime`,`keyvalue`,`list`,`number`]})),Qne,$ne,ere,TC,EC,DC,tre,nre,OC=s((()=>{ip(),iF(),Qne=`https://console.cloudinary.com`,$ne=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],ere=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],TC=e=>{let t=A($P);if(e??=t,e?.media_libraries&&`cloudinary`in e.media_libraries)return e.media_libraries.cloudinary;if(!e?.media_library)return;let n=e.media_library.name===`cloudinary`,r=!e.media_library.name&&t?.media_library?.name===`cloudinary`;if(n||r)return e.media_library},EC=new Map,DC=e=>{let t=e?JSON.stringify(e):`global`,n=EC.get(t);if(n)return n;let r=TC()||{config:{}},i=TC(e)||{config:{}},a={...r,...i,config:{...r.config,...i.config}};return EC.set(t,a),a},tre=e=>{let t=TC(e)??TC(),{cloud_name:n,api_key:r}=(t?t.config:void 0)??{};return!!(n&&r)},nre={serviceType:`cloud_storage`,serviceId:`cloudinary`,serviceLabel:`Cloudinary`,serviceURL:`https://cloudinary.com/`,showServiceLink:!0,hotlinking:!0,authType:`widget`,developerURL:`https://cloudinary.com/documentation/`,apiKeyURL:`https://console.cloudinary.com/settings/api-keys`,apiKeyPattern:/^[A-Za-z0-9_-]{15,}$/,isEnabled:tre}})),kC,AC,rre,jC,ire,are,MC,NC,PC,FC,IC=s((()=>{Xx(),jS(),kC=async(e,t)=>{let n=new TextEncoder,r=await crypto.subtle.importKey(`raw`,typeof e==`string`?n.encode(e):e,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),i=await crypto.subtle.sign(`HMAC`,r,n.encode(t));return new Uint8Array(i)},AC=async e=>{let t=typeof e==`string`?new TextEncoder().encode(e):e,n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},rre=async({method:e,url:t,headers:n,payloadHash:r,accessKeyId:i,secretAccessKey:a,region:o,service:s,date:c})=>{let l=new URL(t),u=c.toISOString().replace(/[:-]|\.\d{3}/g,``),d=u.slice(0,8),f=l.pathname,p=[...l.searchParams.entries()].sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(`&`),m=Object.entries(n).map(([e,t])=>`${e.toLowerCase()}:${t.trim()}`).sort().join(`
|
|
432
432
|
`),h=Object.keys(n).map(e=>e.toLowerCase()).sort().join(`;`),g=[e,f,p,`${m}\n`,h,r].join(`
|
|
433
433
|
`),_=`AWS4-HMAC-SHA256`,v=`${d}/${o}/${s}/aws4_request`,y=[_,u,v,await AC(g)].join(`
|
|
434
|
-
`),b=await kC(await kC(await kC(await kC(await kC(`AWS4${a}`,d),o),s),`aws4_request`),y),x=Array.from(b).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${x}`].join(` `)},jC=async({method:e,url:t,config:n,secretAccessKey:r,body:i=``,extraHeaders:a={}})=>{let{access_key_id:o,region:s=`us-east-1`}=n,c=new Date,l=new URL(t),u=await AC(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await rre({method:e,url:t,headers:d,payloadHash:u,accessKeyId:o,secretAccessKey:r,region:s,service:`s3`,date:c});return fetch(t,{method:e,headers:{...d,Authorization:f},...i&&{body:i}})},ire=e=>{let t=new DOMParser().parseFromString(e,`text/xml`),n=e=>{if(e.children.length===0)return e.textContent;let t={};return Array.from(e.children).forEach(e=>{let r=e.tagName,i=n(e);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t};return n(t.documentElement)},are=({bucket:e,key:t,endpoint:n,region:r,forcePathStyle:i,publicUrl:a})=>a?`${a}/${t}`:n?`${n}/${e}/${t}`:i?`https://s3.${r}.amazonaws.com/${e}/${t}`:`https://${e}.s3.${r}.amazonaws.com/${t}`,MC=(e,t)=>{let{bucket:n,region:r,endpoint:i,force_path_style:a,prefix:o=``,public_url:s}=t;return e.map(e=>{let t=e.Key,c=t.split(`/`).pop()||t,l=o&&t.startsWith(o)?t.slice(o.length):t,u=are({bucket:n,key:t,endpoint:i,region:r,forcePathStyle:a,publicUrl:s});return{id:t,description:l,previewURL:u,downloadURL:u,fileName:c,lastModified:new Date(e.LastModified),size:Number(e.Size),kind:AS(t)}})},NC=async(e,t,{maxPages:n=10}={})=>{let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=e,{kind:c,apiKey:l}=t;if(!l)return Promise.reject(Error(`S3 secret access key is required`));let u=[],d;for(let t=0;t<n;t+=1){let t=new URLSearchParams({"list-type":`2`,"max-keys":`1000`,...s&&{prefix:s},...d&&{"continuation-token":d}}),n=await jC({method:`GET`,url:a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,config:e,secretAccessKey:l});if(!n.ok){let e=await n.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let c=ire(await n.text()),f=(c.Contents?Array.isArray(c.Contents)?c.Contents:[c.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...f),d=c.NextContinuationToken,c.IsTruncated!==`true`||!d)break;await Yx(50)}return MC(c?u.filter(e=>AS(e.Key)===c):u,e)},PC=async(e,t,n)=>{let r=await NC(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},FC=async(e,t,n)=>{if(e.length===0)return[];let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=t,{apiKey:c}=n;if(!c)return Promise.reject(Error(`S3 secret access key is required`));let l=[];for(let n of e){let u=n.name.split(/[/\\]/).filter(Boolean).at(-1)??n.name,d=s?`${s}${u}`:u,f=await jC({method:`PUT`,url:a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,config:t,secretAccessKey:c,body:await n.arrayBuffer(),extraHeaders:{"Content-Type":n.type||`application/octet-stream`,"x-amz-acl":`public-read`}});if(!f.ok){let e=await f.text();throw Error(`Failed to upload file ${n.name}: ${e}`)}l.push({Key:d,LastModified:new Date().toISOString(),ETag:``,Size:n.size,ContentType:n.type}),e.length>1&&await Yx(50)}return MC(l,t)}})),LC,ore,sre,cre,lre,ure,dre=s((()=>{ip(),iF(),IC(),LC=(e=A($P))=>e?.media_libraries?.aws_s3??(e?.media_library?.name===`aws_s3`?e?.media_library:void 0),ore=e=>{let t=LC(e)??LC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},sre=async e=>{let{fieldConfig:t}=e,n=LC(t)??LC();return n?NC(n,e):Promise.reject(Error(`Amazon S3 configuration is not available`))},cre=async(e,t)=>{let{fieldConfig:n}=t,r=LC(n)??LC();return r?PC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},lre=async(e,t)=>{let{fieldConfig:n}=t,r=LC(n)??LC();return r?FC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},ure={serviceType:`cloud_storage`,serviceId:`aws_s3`,serviceLabel:`Amazon S3`,serviceURL:`https://aws.amazon.com/s3/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.aws.amazon.com/s3/`,apiKeyURL:`https://console.aws.amazon.com/iam/home#/security_credentials`,apiKeyPattern:/^[A-Za-z0-9/+=]{40}$/,isEnabled:ore,list:sre,search:cre,upload:lre}})),fre,RC,zC,pre,mre,hre,gre,_re,vre=s((()=>{ip(),iF(),IC(),fre={default:``,eu:`eu.`,fedramp:`fedramp.`},RC=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${fre[t]??``}r2.cloudflarestorage.com`,zC=(e=A($P))=>e?.media_libraries?.cloudflare_r2??(e?.media_library?.name===`cloudflare_r2`?e?.media_library:void 0),pre=e=>{let t=zC(e)??zC();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},mre=async e=>{let{fieldConfig:t}=e,n=zC(t)??zC();return n?NC({...n,region:`auto`,endpoint:RC(n)},e):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},hre=async(e,t)=>{let{fieldConfig:n}=t,r=zC(n)??zC();return r?PC(e,{...r,region:`auto`,endpoint:RC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},gre=async(e,t)=>{let{fieldConfig:n}=t,r=zC(n)??zC();return r?FC(e,{...r,region:`auto`,endpoint:RC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},_re={serviceType:`cloud_storage`,serviceId:`cloudflare_r2`,serviceLabel:`Cloudflare R2`,serviceURL:`https://www.cloudflare.com/developer-platform/r2/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://developers.cloudflare.com/r2/`,apiKeyURL:`https://dash.cloudflare.com/?to=/:account/r2/api-tokens`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:pre,list:mre,search:hre,upload:gre}})),BC,VC,HC,UC,WC,GC,yre=s((()=>{ip(),iF(),IC(),BC=(e=A($P))=>e?.media_libraries?.digitalocean_spaces??(e?.media_library?.name===`digitalocean_spaces`?e?.media_library:void 0),VC=e=>{let t=BC(e)??BC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},HC=async e=>{let{fieldConfig:t}=e,n=BC(t)??BC();return n?NC({...n,endpoint:`https://${n.region}.digitaloceanspaces.com`,public_url:n.public_url??`https://${n.bucket}.${n.region}.digitaloceanspaces.com`},e):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},UC=async(e,t)=>{let{fieldConfig:n}=t,r=BC(n)??BC();return r?PC(e,{...r,endpoint:`https://${r.region}.digitaloceanspaces.com`,public_url:r.public_url??`https://${r.bucket}.${r.region}.digitaloceanspaces.com`},t):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},WC=async(e,t)=>{let{fieldConfig:n}=t,r=BC(n)??BC();return r?FC(e,{...r,endpoint:`https://${r.region}.digitaloceanspaces.com`,public_url:r.public_url??`https://${r.bucket}.${r.region}.digitaloceanspaces.com`},t):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},GC={serviceType:`cloud_storage`,serviceId:`digitalocean_spaces`,serviceLabel:`DigitalOcean Spaces`,serviceURL:`https://www.digitalocean.com/products/spaces`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.digitalocean.com/products/spaces/`,apiKeyURL:`https://cloud.digitalocean.com/account/api/spaces`,apiKeyPattern:/^[A-Za-z0-9/+=]{43}$/,isEnabled:VC,list:HC,search:UC,upload:WC}})),bre=c(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e,t,i){if(typeof t!=`string`)throw Error(`Input must be string`);for(var a=t.length,o=0,s,c,l=0;l<a;l+=1){if(s=t.charCodeAt(l),c=t[l],n(s)&&r(t.charCodeAt(l+1))&&(l+=1,c+=t[l]),o+=e(c),o===i)return t.slice(0,l+1);if(o>i)return t.slice(0,l-c.length+1)}return t}})),xre=c(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e){if(typeof e!=`string`)throw Error(`Input must be string`);for(var t=e.length,i=0,a=null,o=null,s=0;s<t;s++)a=e.charCodeAt(s),r(a)?o!=null&&n(o)?i+=1:i+=3:a<=127?i+=1:a>=128&&a<=2047?i+=2:a>=2048&&a<=65535&&(i+=3),o=a;return i}})),Sre=c(((e,t)=>{var n=bre(),r=xre();t.exports=n.bind(null,r)})),Cre=c(((e,t)=>{var n=Sre(),r=/[\/\?<>\\:\*\|"]/g,i=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,o=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;function s(e,t){for(var n=e.length;n>0&&(e[n-1]===`.`||e[n-1]===` `);)n--;return n<e.length?e.slice(0,n)+t:e}function c(e,t){if(typeof e!=`string`)throw Error(`Input must be string`);var c=e.replace(r,t).replace(i,t).replace(a,t).replace(o,t);return c=s(c,t),n(c,255)}t.exports=function(e,t){var n=t&&t.replacement||``,r=c(e,n);return n===``?r:c(r,``)}})),KC,qC,JC,YC,XC,ZC,QC,$C,ew,tw,nw,rw,iw=s((()=>{Z(),gp(),Pp(),Cp(),KC=u(Cre(),1),XS(),qC=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),JC=e=>{let t=e.startsWith(`@`);return t&&(e=e.slice(1)),e=e.split(`/`).map(e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)).join(`/`),t?`@${e}`:e},YC=e=>decodeURIComponent(e),XC=new Map,ZC=e=>{let t=kh.current,n=XC.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),XC.set(t,n));let r=1e3,i=r*1e3,a=i*1e3,o=a*1e3;return e<r?X(`file_size_units.b`,{values:{size:n.format(e)}}):e<i?X(`file_size_units.kb`,{values:{size:n.format(e/r)}}):e<a?X(`file_size_units.mb`,{values:{size:n.format(e/i)}}):e<o?X(`file_size_units.gb`,{values:{size:n.format(e/a)}}):X(`file_size_units.tb`,{values:{size:n.format(e/o)}})},QC=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=Op(e),i=RegExp(`^${_p(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>Sp(e.split(`.`)[0],t.split(`.`)[0])).findLast(e=>i.test(e));return a?`${n}-${Number(a.match(i)?.groups?.num??0)+1}${r?`.${r}`:``}`:e},$C=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,KC.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=Op(r);r=`${YS(e)}${t?`.${t.toLowerCase()}`:``}`}return QC(r,n)},ew=e=>e.filter(Boolean).join(`/`),tw=e=>{let t=e.split(`/`),n=!1;return t.forEach((e,r)=>{if(e===`.`||e===`..`){if(n&&(t[r]=null,e===`..`)){let e=t.findLastIndex((e,t)=>!!e&&t<r);e>-1&&(t[e]=null)}}else n=!0}),ew(t)},nw=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,rw=async e=>{let t=await nw(e).arrayBuffer();return hp(new Blob([`blob ${t.byteLength}\0`,t]))}})),aw,ow,sw,cw,lw,uw,dw,fw,pw,mw,wre=s((()=>{Xx(),ip(),iF(),iw(),aw=(e=A($P))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),ow=e=>{let t=aw(e)??aw();return t?t.config?.publicKey:void 0},sw=e=>!!ow(e),cw=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(aw(t)??aw())||{};return e.map(e=>{let{uuid:t,original_filename:a,original_file_url:o,mime_type:s,datetime_uploaded:c,size:l}=e,u=`${new URL(i??o).origin}/${t}/`,d=s.startsWith(`image/`),f=s.startsWith(`video/`);return{id:t,description:a,previewURL:`${u}${d?`-/preview/400x400/`:``}`,downloadURL:`${u}${d&&r?`-${r}`:``}${n?a:``}`,fileName:a,lastModified:new Date(c),size:l,kind:d?`image`:f?`video`:`other`}})},lw=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=ow(i);if(!o)return Promise.reject(Error(`Uploadcare public key is not configured`));let s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${o}:${a}`},c=new URLSearchParams({limit:`100`,ordering:`-datetime_uploaded`,stored:`true`}),l=[],u=`https://api.uploadcare.com/files/?${c}`;for(let e=0;e<t&&u;e+=1){let e=await fetch(u,{headers:s});if(!e.ok)return Promise.reject(Error(`Failed to fetch files: ${e.statusText}`));let t=await e.json(),{results:i}=t;if(r===`image`&&(i=i.filter(e=>e.is_image)),n&&(i=i.filter(n)),l.push(...i),u=t.next,!u)break;await Yx(50)}return cw(l,{fieldConfig:i})},uw=async e=>lw(e),dw=async(e,t)=>{let n=e.toLowerCase();return lw(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},fw=async(e,t)=>{let n=new TextEncoder,r=n.encode(String(t)),i=n.encode(e),a=await crypto.subtle.importKey(`raw`,i,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),o=await crypto.subtle.sign(`HMAC`,a,r);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},pw=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=ow(n);if(!i)return Promise.reject(Error(`Uploadcare public key is not configured`));if(!r)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await fw(r,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,i),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append($C(e.name),e)});let c=await fetch(`https://upload.uploadcare.com/base/`,{method:`POST`,body:s});if(!c.ok)throw Error(`Failed to upload files: ${c.statusText}`);let l=await c.json();return cw(Object.entries(l).filter(([e])=>!e.startsWith(`UPLOADCARE_`)).map(([t,n])=>{let r=e.find(e=>e.name===t),i=r?.type||`application/octet-stream`,a=i.startsWith(`image/`);return{uuid:n,original_filename:t,original_file_url:`https://ucarecdn.com/${n}/${t}`,size:r?.size||0,mime_type:i,is_image:a,is_ready:!0,content_info:null,datetime_uploaded:new Date().toISOString(),datetime_stored:new Date().toISOString(),datetime_removed:null}}),{fieldConfig:n})},mw={serviceType:`cloud_storage`,serviceId:`uploadcare`,serviceLabel:`Uploadcare`,serviceURL:`https://uploadcare.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://uploadcare.com/docs/`,apiKeyURL:`https://app.uploadcare.com/projects/-/api-keys/`,apiKeyPattern:/^[a-f0-9]{20}$/,isEnabled:sw,list:uw,search:dw,upload:pw}})),hw,gw,_w=s((()=>{OC(),dre(),vre(),yre(),wre(),hw={aws_s3:ure,cloudflare_r2:_re,cloudinary:nre,digitalocean_spaces:GC,uploadcare:mw},gw=Object.keys(hw)})),vw,yw,bw,xw,Sw,Cw,ww,Tw,Ew,Dw,Ow,kw,Aw,Tre=s((()=>{vw=`@sveltia/cms`,yw=`0.161.1`,bw=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,xw=[`svelte`,`cms`,`content-management-system`],Sw=`https://sveltiacms.app/en/`,Cw={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},ww={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},Tw=`module`,Ew={build:`vite build`,"build:watch":`vite build --watch`,check:`pnpm run '/^check:.*/'`,"check:audit":`pnpm audit --ignore-registry-errors`,"check:cspell":`cspell --no-progress`,"check:eslint":`eslint .`,"check:imports":`node scripts/find-unused-imports.js`,"check:oxlint":`oxlint .`,"check:prettier":`prettier --check .`,"check:stylelint":`stylelint '**/*.{css,scss,svelte}'`,"check:svelte":`svelte-check`,dev:`vite`,format:`prettier --write .`,prepublishOnly:`vite build`,preview:`vite preview`,test:`NODE_OPTIONS=--no-experimental-webstorage vitest run`,"test:coverage":`NODE_OPTIONS=--no-experimental-webstorage vitest run --coverage`,"test:watch":`NODE_OPTIONS=--no-experimental-webstorage vitest`},Dw={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.44.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.1.0`,"@sveltia/ui":`^0.39.1`,"@sveltia/utils":`^0.10.6`,"create-react-class":`^15.7.0`,dayjs:`^1.11.20`,deepmerge:`^4.3.1`,exifr:`^7.1.3`,"fast-deep-equal":`^3.1.3`,flat:`^6.0.1`,immutable:`^5.1.5`,"isomorphic-dompurify":`^3.12.0`,leaflet:`^1.9.4`,lexical:`^0.44.0`,marked:`^18.0.3`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^5.7.284`,qrcode:`^1.5.4`,react:`^19.2.6`,"react-dom":`^19.2.6`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.6.1`,svgo:`^4.0.1`,"terra-draw":`^1.30.0`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},Ow={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.1.2`,"@types/leaflet":`^1.9.21`,"@types/node":`^25.7.0`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.14`,"@types/react-dom":`^19.2.3`,"@vitest/coverage-v8":`^4.1.6`,cspell:`^10.0.0`,eslint:`^9.39.4`,"eslint-config-airbnb-extended":`^3.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^62.9.0`,"eslint-plugin-package-json":`^0.91.2`,"eslint-plugin-svelte":`^3.17.1`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.6.0`,oxlint:`^1.64.0`,postcss:`^8.5.14`,"postcss-html":`^1.8.1`,prettier:`^3.8.3`,"prettier-plugin-svelte":`^3.5.2`,sass:`^1.99.0`,stylelint:`^17.11.1`,"stylelint-config-recommended-scss":`^17.0.1`,"stylelint-scss":`^7.1.1`,svelte:`^5.55.7`,"svelte-check":`^4.4.8`,"svelte-preprocess":`^6.0.3`,"ts-json-schema-generator":`^2.9.0`,typescript:`^5.9.3`,vite:`^8.0.13`,vitest:`^4.1.6`},kw={directory:`package`,access:`public`,provenance:!0},Aw={name:vw,version:yw,description:bw,keywords:xw,homepage:Sw,repository:Cw,license:`MIT`,author:ww,type:Tw,scripts:Ew,dependencies:Dw,devDependencies:Ow,publishConfig:kw}})),jw,Mw,Nw=s((()=>{Tre(),{dependencies:jw,version:Mw}=Aw})),Pw,Fw=s((()=>{Pw=function(e,t,n){let r=Promise.resolve();function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}})),Iw,Lw,Rw=s((()=>{Nw(),Fw(),Iw=e=>{let t=`https://unpkg.com/${e}`,n=jw[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},Lw=async(e,t)=>Pw(()=>import(`${Iw(e)}/${t}`),void 0)})),zw,Bw,Vw,Hw,Uw,Ww,Gw,Kw,qw=s((()=>{zw=[`avif`,`gif`,`jpeg`,`png`,`webp`],Bw=zw.map(e=>`image/${e}`),Vw=/\b(?:avif|gif|jpe?g|png|webp)$/i,Hw=[`svg`],Uw=[`image/svg+xml`],Ww=/\b(?:svg)$/i,[...zw,...Hw],Gw=[...Bw,...Uw],Kw=[`webp`]})),Jw,Yw,Xw,Zw=s((()=>{Rw(),qw(),Jw={},Yw=async e=>{if(e in Jw)return Jw[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return Jw[e]=r,r},Xw=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await Yw(t)&&Kw.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await Lw(`@jsquash/${t}`,`encode.js?module`)).default,a=await e(i,{quality:n});return new Blob([a],{type:r})}catch{}}return e.convertToBlob({type:r,quality:n/100})}})),Qw,$w,eT=s((()=>{Qw=({width:e,height:t},{width:n=e,height:r=t,fit:i=`scale-down`}={})=>{let a={scale:1,width:e,height:t};if(e===n&&t===r)return a;let o=e<=n&&t<=r,s=1,c=0,l=0;if(i===`scale-down`){if(o)return a;i=`contain`}return i===`contain`&&(s=Math.min(n/e,r/t),c=e*s,l=t*s),{scale:s,width:c,height:l}},$w=(e,t,n)=>{let{scale:r,width:i,height:a}=Qw(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})),tT,nT,rT,iT,aT,oT=s((()=>{Rw(),Zw(),eT(),tT=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise(e=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.src=t})},nT=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise(e=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=t,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n)})},rT=async e=>e.type.startsWith(`video/`)?nT({blob:e}):tT({blob:e}),iT=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{let o,s=0,c=0;try{o=await createImageBitmap(e),{width:s,height:c}=o}catch{({source:o,naturalWidth:s,naturalHeight:c}=await rT(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return $w(l,{width:s,height:c},{fit:a,width:r,height:i}),u.drawImage(o,0,0,l.width,l.height),o instanceof HTMLVideoElement&&document.body.removeChild(o),Xw(l,{format:t,quality:n})},aT=async e=>{let t=await e.text();try{let{optimize:n}=await Lw(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})),sT,cT,lT,uT,dT,fT,Ere=s((()=>{Rw(),Zw(),eT(),Fw(),sT=Iw(`pdfjs-dist`),cT=`${sT}/build/pdf.min.mjs`,lT=`${sT}/build/pdf.worker.min.mjs`,uT={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${sT}/cmaps/`,iccUrl:`${sT}/iccs/`,standardFontDataUrl:`${sT}/standard_fonts/`,wasmUrl:`${sT}/wasm/`},fT=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!dT)try{dT=await Pw(()=>import(cT),void 0),dT.GlobalWorkerOptions.workerSrc=lT}catch{throw Error(`Failed to load PDF.js library`)}let o=URL.createObjectURL(e),s=new OffscreenCanvas(512,512),c=s.getContext(`2d`);try{let e=await(await dT.getDocument({...uT,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=$w(s,{width:t.width,height:t.height},{width:r,height:i,fit:a});await e.render({canvasContext:c,viewport:n===1?t:e.getViewport({scale:n})}).promise,URL.revokeObjectURL(o)}catch{throw Error(`Failed to render PDF`)}return Xw(s,{format:t,quality:n})}})),pT,mT,hT,gT,_T,vT,yT,bT,xT=s((()=>{Pp(),Xx(),lS(),Cp(),xS(),ip(),EF(),Up(),jP(),iF(),_w(),OC(),iw(),oT(),Ere(),pT=new Set,mT=async(e,t=0)=>{let{file:n,handle:r,blobURL:i,name:a,path:o}=e;if(i)return fetch(i).then(e=>e.blob());let s;if(n)s=n;else if(r)try{s=await r.getFile()}catch{throw Error(`Failed to retrieve blob from file handle`)}else{if(pT.has(o)&&t<=25)return await Yx(200),mT(e,t+1);pT.add(o);let n=await A(kP)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:bS.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),pT.delete(o),s},hT=async e=>(e.blobURL||await mT(e),e.blobURL),gT=void 0,_T=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(gT===void 0){let{databaseName:e}=A(kP)?.repository??{};gT=e?new oS(e,`asset-thumbnails`):null}let r=await gT?.get(e.sha);if(!r){if(t)return;let i=await mT(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await fT(i,a):await iT(i,a),await gT?.set(e.sha,r)}return URL.createObjectURL(r)},vT=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:Vp(e.path).find(({collectionName:e})=>e!==void 0)??A(Ip);if(a){if(t){let t=Op(e.path).dirname,n=r?Op(Object.values(r.locales)[0].path).dirname:void 0;if(t!==void 0&&n!==void 0){if(t===n)return e.name;let r=`${n}/`;return e.path.startsWith(r)?e.path.slice(r.length):void 0}let{internalPath:i,internalSubPath:a}=e.folder;if(e.path===ew([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A($P),l=o?e.path.replace(qC(e.folder.internalPath??``,e=>{let t=e.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return t?`(?<${t}>[^/]+)`:_p(e)}),i?.replaceAll(/{{(.+?)}}/g,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=JC(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},yT=e=>{if(hw.cloudinary?.isEnabled?.()){let t=DC(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},bT=async({value:e,entry:t,collectionName:n,fileName:r,fieldConfig:i,typedKeyPath:a,thumbnail:o=!1})=>{if(!e)return;if(/^(?:https?|data|blob):/.test(e))return e;if(SF(e)){let t=yT(i);if(t)return`${t}/${e}`}let s=CF({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await _T(s):await hT(s))??vT(s)}}));
|
|
435
|
-
/*! @license DOMPurify 3.4.
|
|
434
|
+
`),b=await kC(await kC(await kC(await kC(await kC(`AWS4${a}`,d),o),s),`aws4_request`),y),x=Array.from(b).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${x}`].join(` `)},jC=async({method:e,url:t,config:n,secretAccessKey:r,body:i=``,extraHeaders:a={}})=>{let{access_key_id:o,region:s=`us-east-1`}=n,c=new Date,l=new URL(t),u=await AC(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await rre({method:e,url:t,headers:d,payloadHash:u,accessKeyId:o,secretAccessKey:r,region:s,service:`s3`,date:c});return fetch(t,{method:e,headers:{...d,Authorization:f},...i&&{body:i}})},ire=e=>{let t=new DOMParser().parseFromString(e,`text/xml`),n=e=>{if(e.children.length===0)return e.textContent;let t={};return Array.from(e.children).forEach(e=>{let r=e.tagName,i=n(e);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t};return n(t.documentElement)},are=({bucket:e,key:t,endpoint:n,region:r,forcePathStyle:i,publicUrl:a})=>a?`${a}/${t}`:n?`${n}/${e}/${t}`:i?`https://s3.${r}.amazonaws.com/${e}/${t}`:`https://${e}.s3.${r}.amazonaws.com/${t}`,MC=(e,t)=>{let{bucket:n,region:r,endpoint:i,force_path_style:a,prefix:o=``,public_url:s}=t;return e.map(e=>{let t=e.Key,c=t.split(`/`).pop()||t,l=o&&t.startsWith(o)?t.slice(o.length):t,u=are({bucket:n,key:t,endpoint:i,region:r,forcePathStyle:a,publicUrl:s});return{id:t,description:l,previewURL:u,downloadURL:u,fileName:c,lastModified:new Date(e.LastModified),size:Number(e.Size),kind:AS(t)}})},NC=async(e,t,{maxPages:n=10}={})=>{let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=e,{kind:c,apiKey:l}=t;if(!l)return Promise.reject(Error(`S3 secret access key is required`));let u=[],d;for(let t=0;t<n;t+=1){let t=new URLSearchParams({"list-type":`2`,"max-keys":`1000`,...s&&{prefix:s},...d&&{"continuation-token":d}}),n=await jC({method:`GET`,url:a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,config:e,secretAccessKey:l});if(!n.ok){let e=await n.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let c=ire(await n.text()),f=(c.Contents?Array.isArray(c.Contents)?c.Contents:[c.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...f),d=c.NextContinuationToken,c.IsTruncated!==`true`||!d)break;await Yx(50)}return MC(c?u.filter(e=>AS(e.Key)===c):u,e)},PC=async(e,t,n)=>{let r=await NC(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},FC=async(e,t,n)=>{if(e.length===0)return[];let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=t,{apiKey:c}=n;if(!c)return Promise.reject(Error(`S3 secret access key is required`));let l=[];for(let n of e){let u=n.name.split(/[/\\]/).filter(Boolean).at(-1)??n.name,d=s?`${s}${u}`:u,f=await jC({method:`PUT`,url:a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,config:t,secretAccessKey:c,body:await n.arrayBuffer(),extraHeaders:{"Content-Type":n.type||`application/octet-stream`,"x-amz-acl":`public-read`}});if(!f.ok){let e=await f.text();throw Error(`Failed to upload file ${n.name}: ${e}`)}l.push({Key:d,LastModified:new Date().toISOString(),ETag:``,Size:n.size,ContentType:n.type}),e.length>1&&await Yx(50)}return MC(l,t)}})),LC,ore,sre,cre,lre,ure,dre=s((()=>{ip(),iF(),IC(),LC=(e=A($P))=>e?.media_libraries?.aws_s3??(e?.media_library?.name===`aws_s3`?e?.media_library:void 0),ore=e=>{let t=LC(e)??LC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},sre=async e=>{let{fieldConfig:t}=e,n=LC(t)??LC();return n?NC(n,e):Promise.reject(Error(`Amazon S3 configuration is not available`))},cre=async(e,t)=>{let{fieldConfig:n}=t,r=LC(n)??LC();return r?PC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},lre=async(e,t)=>{let{fieldConfig:n}=t,r=LC(n)??LC();return r?FC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},ure={serviceType:`cloud_storage`,serviceId:`aws_s3`,serviceLabel:`Amazon S3`,serviceURL:`https://aws.amazon.com/s3/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.aws.amazon.com/s3/`,apiKeyURL:`https://console.aws.amazon.com/iam/home#/security_credentials`,apiKeyPattern:/^[A-Za-z0-9/+=]{40}$/,isEnabled:ore,list:sre,search:cre,upload:lre}})),fre,RC,zC,pre,mre,hre,gre,_re,vre=s((()=>{ip(),iF(),IC(),fre={default:``,eu:`eu.`,fedramp:`fedramp.`},RC=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${fre[t]??``}r2.cloudflarestorage.com`,zC=(e=A($P))=>e?.media_libraries?.cloudflare_r2??(e?.media_library?.name===`cloudflare_r2`?e?.media_library:void 0),pre=e=>{let t=zC(e)??zC();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},mre=async e=>{let{fieldConfig:t}=e,n=zC(t)??zC();return n?NC({...n,region:`auto`,endpoint:RC(n)},e):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},hre=async(e,t)=>{let{fieldConfig:n}=t,r=zC(n)??zC();return r?PC(e,{...r,region:`auto`,endpoint:RC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},gre=async(e,t)=>{let{fieldConfig:n}=t,r=zC(n)??zC();return r?FC(e,{...r,region:`auto`,endpoint:RC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},_re={serviceType:`cloud_storage`,serviceId:`cloudflare_r2`,serviceLabel:`Cloudflare R2`,serviceURL:`https://www.cloudflare.com/developer-platform/r2/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://developers.cloudflare.com/r2/`,apiKeyURL:`https://dash.cloudflare.com/?to=/:account/r2/api-tokens`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:pre,list:mre,search:hre,upload:gre}})),BC,VC,HC,UC,WC,GC,yre=s((()=>{ip(),iF(),IC(),BC=(e=A($P))=>e?.media_libraries?.digitalocean_spaces??(e?.media_library?.name===`digitalocean_spaces`?e?.media_library:void 0),VC=e=>{let t=BC(e)??BC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},HC=async e=>{let{fieldConfig:t}=e,n=BC(t)??BC();return n?NC({...n,endpoint:`https://${n.region}.digitaloceanspaces.com`,public_url:n.public_url??`https://${n.bucket}.${n.region}.digitaloceanspaces.com`},e):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},UC=async(e,t)=>{let{fieldConfig:n}=t,r=BC(n)??BC();return r?PC(e,{...r,endpoint:`https://${r.region}.digitaloceanspaces.com`,public_url:r.public_url??`https://${r.bucket}.${r.region}.digitaloceanspaces.com`},t):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},WC=async(e,t)=>{let{fieldConfig:n}=t,r=BC(n)??BC();return r?FC(e,{...r,endpoint:`https://${r.region}.digitaloceanspaces.com`,public_url:r.public_url??`https://${r.bucket}.${r.region}.digitaloceanspaces.com`},t):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},GC={serviceType:`cloud_storage`,serviceId:`digitalocean_spaces`,serviceLabel:`DigitalOcean Spaces`,serviceURL:`https://www.digitalocean.com/products/spaces`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.digitalocean.com/products/spaces/`,apiKeyURL:`https://cloud.digitalocean.com/account/api/spaces`,apiKeyPattern:/^[A-Za-z0-9/+=]{43}$/,isEnabled:VC,list:HC,search:UC,upload:WC}})),bre=c(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e,t,i){if(typeof t!=`string`)throw Error(`Input must be string`);for(var a=t.length,o=0,s,c,l=0;l<a;l+=1){if(s=t.charCodeAt(l),c=t[l],n(s)&&r(t.charCodeAt(l+1))&&(l+=1,c+=t[l]),o+=e(c),o===i)return t.slice(0,l+1);if(o>i)return t.slice(0,l-c.length+1)}return t}})),xre=c(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e){if(typeof e!=`string`)throw Error(`Input must be string`);for(var t=e.length,i=0,a=null,o=null,s=0;s<t;s++)a=e.charCodeAt(s),r(a)?o!=null&&n(o)?i+=1:i+=3:a<=127?i+=1:a>=128&&a<=2047?i+=2:a>=2048&&a<=65535&&(i+=3),o=a;return i}})),Sre=c(((e,t)=>{var n=bre(),r=xre();t.exports=n.bind(null,r)})),Cre=c(((e,t)=>{var n=Sre(),r=/[\/\?<>\\:\*\|"]/g,i=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,o=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;function s(e,t){for(var n=e.length;n>0&&(e[n-1]===`.`||e[n-1]===` `);)n--;return n<e.length?e.slice(0,n)+t:e}function c(e,t){if(typeof e!=`string`)throw Error(`Input must be string`);var c=e.replace(r,t).replace(i,t).replace(a,t).replace(o,t);return c=s(c,t),n(c,255)}t.exports=function(e,t){var n=t&&t.replacement||``,r=c(e,n);return n===``?r:c(r,``)}})),KC,qC,JC,YC,XC,ZC,QC,$C,ew,tw,nw,rw,iw=s((()=>{Z(),gp(),Pp(),Cp(),KC=u(Cre(),1),XS(),qC=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),JC=e=>{let t=e.startsWith(`@`);return t&&(e=e.slice(1)),e=e.split(`/`).map(e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)).join(`/`),t?`@${e}`:e},YC=e=>decodeURIComponent(e),XC=new Map,ZC=e=>{let t=kh.current,n=XC.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),XC.set(t,n));let r=1e3,i=r*1e3,a=i*1e3,o=a*1e3;return e<r?X(`file_size_units.b`,{values:{size:n.format(e)}}):e<i?X(`file_size_units.kb`,{values:{size:n.format(e/r)}}):e<a?X(`file_size_units.mb`,{values:{size:n.format(e/i)}}):e<o?X(`file_size_units.gb`,{values:{size:n.format(e/a)}}):X(`file_size_units.tb`,{values:{size:n.format(e/o)}})},QC=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=Op(e),i=RegExp(`^${_p(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>Sp(e.split(`.`)[0],t.split(`.`)[0])).findLast(e=>i.test(e));return a?`${n}-${Number(a.match(i)?.groups?.num??0)+1}${r?`.${r}`:``}`:e},$C=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,KC.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=Op(r);r=`${YS(e)}${t?`.${t.toLowerCase()}`:``}`}return QC(r,n)},ew=e=>e.filter(Boolean).join(`/`),tw=e=>{let t=e.split(`/`),n=!1;return t.forEach((e,r)=>{if(e===`.`||e===`..`){if(n&&(t[r]=null,e===`..`)){let e=t.findLastIndex((e,t)=>!!e&&t<r);e>-1&&(t[e]=null)}}else n=!0}),ew(t)},nw=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,rw=async e=>{let t=await nw(e).arrayBuffer();return hp(new Blob([`blob ${t.byteLength}\0`,t]))}})),aw,ow,sw,cw,lw,uw,dw,fw,pw,mw,wre=s((()=>{Xx(),ip(),iF(),iw(),aw=(e=A($P))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),ow=e=>{let t=aw(e)??aw();return t?t.config?.publicKey:void 0},sw=e=>!!ow(e),cw=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(aw(t)??aw())||{};return e.map(e=>{let{uuid:t,original_filename:a,original_file_url:o,mime_type:s,datetime_uploaded:c,size:l}=e,u=`${new URL(i??o).origin}/${t}/`,d=s.startsWith(`image/`),f=s.startsWith(`video/`);return{id:t,description:a,previewURL:`${u}${d?`-/preview/400x400/`:``}`,downloadURL:`${u}${d&&r?`-${r}`:``}${n?a:``}`,fileName:a,lastModified:new Date(c),size:l,kind:d?`image`:f?`video`:`other`}})},lw=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=ow(i);if(!o)return Promise.reject(Error(`Uploadcare public key is not configured`));let s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${o}:${a}`},c=new URLSearchParams({limit:`100`,ordering:`-datetime_uploaded`,stored:`true`}),l=[],u=`https://api.uploadcare.com/files/?${c}`;for(let e=0;e<t&&u;e+=1){let e=await fetch(u,{headers:s});if(!e.ok)return Promise.reject(Error(`Failed to fetch files: ${e.statusText}`));let t=await e.json(),{results:i}=t;if(r===`image`&&(i=i.filter(e=>e.is_image)),n&&(i=i.filter(n)),l.push(...i),u=t.next,!u)break;await Yx(50)}return cw(l,{fieldConfig:i})},uw=async e=>lw(e),dw=async(e,t)=>{let n=e.toLowerCase();return lw(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},fw=async(e,t)=>{let n=new TextEncoder,r=n.encode(String(t)),i=n.encode(e),a=await crypto.subtle.importKey(`raw`,i,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),o=await crypto.subtle.sign(`HMAC`,a,r);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},pw=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=ow(n);if(!i)return Promise.reject(Error(`Uploadcare public key is not configured`));if(!r)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await fw(r,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,i),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append($C(e.name),e)});let c=await fetch(`https://upload.uploadcare.com/base/`,{method:`POST`,body:s});if(!c.ok)throw Error(`Failed to upload files: ${c.statusText}`);let l=await c.json();return cw(Object.entries(l).filter(([e])=>!e.startsWith(`UPLOADCARE_`)).map(([t,n])=>{let r=e.find(e=>e.name===t),i=r?.type||`application/octet-stream`,a=i.startsWith(`image/`);return{uuid:n,original_filename:t,original_file_url:`https://ucarecdn.com/${n}/${t}`,size:r?.size||0,mime_type:i,is_image:a,is_ready:!0,content_info:null,datetime_uploaded:new Date().toISOString(),datetime_stored:new Date().toISOString(),datetime_removed:null}}),{fieldConfig:n})},mw={serviceType:`cloud_storage`,serviceId:`uploadcare`,serviceLabel:`Uploadcare`,serviceURL:`https://uploadcare.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://uploadcare.com/docs/`,apiKeyURL:`https://app.uploadcare.com/projects/-/api-keys/`,apiKeyPattern:/^[a-f0-9]{20}$/,isEnabled:sw,list:uw,search:dw,upload:pw}})),hw,gw,_w=s((()=>{OC(),dre(),vre(),yre(),wre(),hw={aws_s3:ure,cloudflare_r2:_re,cloudinary:nre,digitalocean_spaces:GC,uploadcare:mw},gw=Object.keys(hw)})),vw,yw,bw,xw,Sw,Cw,ww,Tw,Ew,Dw,Ow,kw,Aw,Tre=s((()=>{vw=`@sveltia/cms`,yw=`0.162.1`,bw=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,xw=[`svelte`,`cms`,`content-management-system`],Sw=`https://sveltiacms.app/en/`,Cw={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},ww={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},Tw=`module`,Ew={build:`vite build`,"build:watch":`vite build --watch`,check:`pnpm run '/^check:.*/'`,"check:audit":`pnpm audit --ignore-registry-errors`,"check:cspell":`cspell --no-progress`,"check:eslint":`eslint .`,"check:imports":`node scripts/find-unused-imports.js`,"check:oxlint":`oxlint .`,"check:prettier":`prettier --check .`,"check:stylelint":`stylelint '**/*.{css,scss,svelte}'`,"check:svelte":`svelte-check`,dev:`vite`,format:`prettier --write .`,prepublishOnly:`vite build`,preview:`vite preview`,test:`NODE_OPTIONS=--no-experimental-webstorage vitest run`,"test:coverage":`NODE_OPTIONS=--no-experimental-webstorage vitest run --coverage`,"test:watch":`NODE_OPTIONS=--no-experimental-webstorage vitest`},Dw={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.44.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.1.0`,"@sveltia/ui":`^0.39.2`,"@sveltia/utils":`^0.10.6`,"create-react-class":`^15.7.0`,dayjs:`^1.11.20`,deepmerge:`^4.3.1`,exifr:`^7.1.3`,"fast-deep-equal":`^3.1.3`,flat:`^6.0.1`,immutable:`^5.1.5`,"isomorphic-dompurify":`^3.13.0`,leaflet:`^1.9.4`,lexical:`^0.44.0`,marked:`^18.0.3`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^5.7.284`,qrcode:`^1.5.4`,react:`^19.2.6`,"react-dom":`^19.2.6`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.6.1`,svgo:`^4.0.1`,"terra-draw":`^1.30.0`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},Ow={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.1.2`,"@types/leaflet":`^1.9.21`,"@types/node":`^25.9.0`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.14`,"@types/react-dom":`^19.2.3`,"@vitest/coverage-v8":`^4.1.6`,cspell:`^10.0.0`,eslint:`^9.39.4`,"eslint-config-airbnb-extended":`^3.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^62.9.0`,"eslint-plugin-package-json":`^1.1.0`,"eslint-plugin-svelte":`^3.17.1`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.6.0`,oxlint:`^1.65.0`,postcss:`^8.5.14`,"postcss-html":`^1.8.1`,prettier:`^3.8.3`,"prettier-plugin-svelte":`^3.5.2`,sass:`^1.99.0`,stylelint:`^17.11.1`,"stylelint-config-recommended-scss":`^17.0.1`,"stylelint-scss":`^7.1.1`,svelte:`^5.55.8`,"svelte-check":`^4.4.8`,"svelte-preprocess":`^6.0.3`,"ts-json-schema-generator":`^2.9.0`,typescript:`^5.9.3`,vite:`^8.0.13`,vitest:`^4.1.6`},kw={directory:`package`,access:`public`,provenance:!0},Aw={name:vw,version:yw,description:bw,keywords:xw,homepage:Sw,repository:Cw,license:`MIT`,author:ww,type:Tw,scripts:Ew,dependencies:Dw,devDependencies:Ow,publishConfig:kw}})),jw,Mw,Nw=s((()=>{Tre(),{dependencies:jw,version:Mw}=Aw})),Pw,Fw=s((()=>{Pw=function(e,t,n){let r=Promise.resolve();function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}})),Iw,Lw,Rw=s((()=>{Nw(),Fw(),Iw=e=>{let t=`https://unpkg.com/${e}`,n=jw[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},Lw=async(e,t)=>Pw(()=>import(`${Iw(e)}/${t}`),void 0)})),zw,Bw,Vw,Hw,Uw,Ww,Gw,Kw,qw=s((()=>{zw=[`avif`,`gif`,`jpeg`,`png`,`webp`],Bw=zw.map(e=>`image/${e}`),Vw=/\b(?:avif|gif|jpe?g|png|webp)$/i,Hw=[`svg`],Uw=[`image/svg+xml`],Ww=/\b(?:svg)$/i,[...zw,...Hw],Gw=[...Bw,...Uw],Kw=[`webp`]})),Jw,Yw,Xw,Zw=s((()=>{Rw(),qw(),Jw={},Yw=async e=>{if(e in Jw)return Jw[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return Jw[e]=r,r},Xw=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await Yw(t)&&Kw.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await Lw(`@jsquash/${t}`,`encode.js?module`)).default,a=await e(i,{quality:n});return new Blob([a],{type:r})}catch{}}return e.convertToBlob({type:r,quality:n/100})}})),Qw,$w,eT=s((()=>{Qw=({width:e,height:t},{width:n=e,height:r=t,fit:i=`scale-down`}={})=>{let a={scale:1,width:e,height:t};if(e===n&&t===r)return a;let o=e<=n&&t<=r,s=1,c=0,l=0;if(i===`scale-down`){if(o)return a;i=`contain`}return i===`contain`&&(s=Math.min(n/e,r/t),c=e*s,l=t*s),{scale:s,width:c,height:l}},$w=(e,t,n)=>{let{scale:r,width:i,height:a}=Qw(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})),tT,nT,rT,iT,aT,oT=s((()=>{Rw(),Zw(),eT(),tT=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise(e=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.src=t})},nT=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise(e=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=t,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n)})},rT=async e=>e.type.startsWith(`video/`)?nT({blob:e}):tT({blob:e}),iT=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{let o,s=0,c=0;try{o=await createImageBitmap(e),{width:s,height:c}=o}catch{({source:o,naturalWidth:s,naturalHeight:c}=await rT(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return $w(l,{width:s,height:c},{fit:a,width:r,height:i}),u.drawImage(o,0,0,l.width,l.height),o instanceof HTMLVideoElement&&document.body.removeChild(o),Xw(l,{format:t,quality:n})},aT=async e=>{let t=await e.text();try{let{optimize:n}=await Lw(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})),sT,cT,lT,uT,dT,fT,Ere=s((()=>{Rw(),Zw(),eT(),Fw(),sT=Iw(`pdfjs-dist`),cT=`${sT}/build/pdf.min.mjs`,lT=`${sT}/build/pdf.worker.min.mjs`,uT={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${sT}/cmaps/`,iccUrl:`${sT}/iccs/`,standardFontDataUrl:`${sT}/standard_fonts/`,wasmUrl:`${sT}/wasm/`},fT=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!dT)try{dT=await Pw(()=>import(cT),void 0),dT.GlobalWorkerOptions.workerSrc=lT}catch{throw Error(`Failed to load PDF.js library`)}let o=URL.createObjectURL(e),s=new OffscreenCanvas(512,512),c=s.getContext(`2d`);try{let e=await(await dT.getDocument({...uT,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=$w(s,{width:t.width,height:t.height},{width:r,height:i,fit:a});await e.render({canvasContext:c,viewport:n===1?t:e.getViewport({scale:n})}).promise,URL.revokeObjectURL(o)}catch{throw Error(`Failed to render PDF`)}return Xw(s,{format:t,quality:n})}})),pT,mT,hT,gT,_T,vT,yT,bT,xT=s((()=>{Pp(),Xx(),lS(),Cp(),xS(),ip(),EF(),Up(),jP(),iF(),_w(),OC(),iw(),oT(),Ere(),pT=new Set,mT=async(e,t=0)=>{let{file:n,handle:r,blobURL:i,name:a,path:o}=e;if(i)return fetch(i).then(e=>e.blob());let s;if(n)s=n;else if(r)try{s=await r.getFile()}catch{throw Error(`Failed to retrieve blob from file handle`)}else{if(pT.has(o)&&t<=25)return await Yx(200),mT(e,t+1);pT.add(o);let n=await A(kP)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:bS.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),pT.delete(o),s},hT=async e=>(e.blobURL||await mT(e),e.blobURL),gT=void 0,_T=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(gT===void 0){let{databaseName:e}=A(kP)?.repository??{};gT=e?new oS(e,`asset-thumbnails`):null}let r=await gT?.get(e.sha);if(!r){if(t)return;let i=await mT(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await fT(i,a):await iT(i,a),await gT?.set(e.sha,r)}return URL.createObjectURL(r)},vT=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:Vp(e.path).find(({collectionName:e})=>e!==void 0)??A(Ip);if(a){if(t){let t=Op(e.path).dirname,n=r?Op(Object.values(r.locales)[0].path).dirname:void 0;if(t!==void 0&&n!==void 0){if(t===n)return e.name;let r=`${n}/`;return e.path.startsWith(r)?e.path.slice(r.length):void 0}let{internalPath:i,internalSubPath:a}=e.folder;if(e.path===ew([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A($P),l=o?e.path.replace(qC(e.folder.internalPath??``,e=>{let t=e.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return t?`(?<${t}>[^/]+)`:_p(e)}),i?.replaceAll(/{{(.+?)}}/g,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=JC(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},yT=e=>{if(hw.cloudinary?.isEnabled?.()){let t=DC(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},bT=async({value:e,entry:t,collectionName:n,fileName:r,fieldConfig:i,typedKeyPath:a,thumbnail:o=!1})=>{if(!e)return;if(/^(?:https?|data|blob):/.test(e))return e;if(SF(e)){let t=yT(i);if(t)return`${t}/${e}`}let s=CF({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await _T(s):await hT(s))??vT(s)}}));
|
|
435
|
+
/*! @license DOMPurify 3.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.5/LICENSE */
|
|
436
436
|
function ST(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dre(e){if(Array.isArray(e))return e}function Ore(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function kre(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
437
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Are(e,t){return Dre(e)||Ore(e,t)||jre(e,t)||kre()}function jre(e,t){if(e){if(typeof e==`string`)return ST(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ST(e,t):void 0}}function CT(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return LT(e,t,r)}}function Mre(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return RT(e,n)}}function wT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:GT;if(kT&&kT(e,null),!WT(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(AT(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Nre(e){for(let t=0;t<e.length;t++)tE(e,t)||(e[t]=null);return e}function TT(e){let t=FT(null);for(let r of OT(e)){var n=Are(r,2);let i=n[0],a=n[1];tE(e,i)&&(WT(a)?t[i]=Nre(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=TT(a):t[i]=a)}return t}function Pre(e){switch(typeof e){case`string`:return e;case`number`:return ZT(e);case`boolean`:return QT(e);case`bigint`:return $T?$T(e):`0`;case`symbol`:return eE?eE(e):`Symbol()`;case`undefined`:return nE(e);case`function`:case`object`:{if(e===null)return nE(e);let t=e,n=ET(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:nE(e)}return nE(e)}default:return nE(e)}}function ET(e,t){for(;e!==null;){let n=MT(e,t);if(n){if(n.get)return CT(n.get);if(typeof n.value==`function`)return CT(n.value)}e=jT(e)}function n(){return null}return n}function Fre(e){try{return rE(e,``),!0}catch{return!1}}function DT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DE(),t=e=>DT(e);if(t.version=`3.4.3`,t.removed=[],!e||!e.document||e.document.nodeType!==EE.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript,a=e.DocumentFragment,o=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,u=e.NamedNodeMap,d=u===void 0?e.NamedNodeMap||e.MozNamedAttrMap:u,f=e.HTMLFormElement,p=e.DOMParser,m=e.trustedTypes,h=c.prototype,g=ET(h,`cloneNode`),_=ET(h,`remove`),v=ET(h,`nextSibling`),y=ET(h,`childNodes`),b=ET(h,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C=n,w=C.implementation,ee=C.createNodeIterator,T=C.createDocumentFragment,te=C.getElementsByTagName,ne=r.importNode,re=kE();t.isSupported=typeof OT==`function`&&typeof b==`function`&&w&&w.createHTMLDocument!==void 0;let ie=gE,ae=_E,oe=vE,se=yE,ce=bE,le=SE,ue=CE,de=TE,fe=xE,E=null,pe=wT({},[...aE,...oE,...sE,...lE,...dE]),me=null,he=wT({},[...fE,...pE,...mE,...hE]),ge=Object.seal(FT(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,ve=null,ye=Object.seal(FT(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),be=!0,xe=!0,Se=!1,Ce=!0,we=!1,Te=!0,Ee=!1,De=!1,Oe=!1,ke=!1,Ae=!1,je=!1,Me=!0,Ne=!1,Pe=`user-content-`,Fe=!0,Ie=!1,Le={},Re=null,ze=wT({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Be=null,Ve=wT({},[`audio`,`video`,`img`,`source`,`image`,`track`]),He=null,Ue=wT({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),We=`http://www.w3.org/1998/Math/MathML`,Ge=`http://www.w3.org/2000/svg`,Ke=`http://www.w3.org/1999/xhtml`,qe=Ke,Je=!1,Ye=null,Xe=wT({},[We,Ge,Ke],KT),Ze=wT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Qe=wT({},[`annotation-xml`]),$e=wT({},[`title`,`style`,`font`,`a`,`script`]),et=null,tt=[`application/xhtml+xml`,`text/html`],nt=null,rt=null,it=n.createElement(`form`),at=function(e){return e instanceof RegExp||e instanceof Function},ot=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rt&&rt===e)return;(!e||typeof e!=`object`)&&(e={}),e=TT(e),et=tt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,nt=et===`application/xhtml+xml`?KT:GT,E=tE(e,`ALLOWED_TAGS`)&&WT(e.ALLOWED_TAGS)?wT({},e.ALLOWED_TAGS,nt):pe,me=tE(e,`ALLOWED_ATTR`)&&WT(e.ALLOWED_ATTR)?wT({},e.ALLOWED_ATTR,nt):he,Ye=tE(e,`ALLOWED_NAMESPACES`)&&WT(e.ALLOWED_NAMESPACES)?wT({},e.ALLOWED_NAMESPACES,KT):Xe,He=tE(e,`ADD_URI_SAFE_ATTR`)&&WT(e.ADD_URI_SAFE_ATTR)?wT(TT(Ue),e.ADD_URI_SAFE_ATTR,nt):Ue,Be=tE(e,`ADD_DATA_URI_TAGS`)&&WT(e.ADD_DATA_URI_TAGS)?wT(TT(Ve),e.ADD_DATA_URI_TAGS,nt):Ve,Re=tE(e,`FORBID_CONTENTS`)&&WT(e.FORBID_CONTENTS)?wT({},e.FORBID_CONTENTS,nt):ze,_e=tE(e,`FORBID_TAGS`)&&WT(e.FORBID_TAGS)?wT({},e.FORBID_TAGS,nt):TT({}),ve=tE(e,`FORBID_ATTR`)&&WT(e.FORBID_ATTR)?wT({},e.FORBID_ATTR,nt):TT({}),Le=tE(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?TT(e.USE_PROFILES):e.USE_PROFILES:!1,be=e.ALLOW_ARIA_ATTR!==!1,xe=e.ALLOW_DATA_ATTR!==!1,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=e.SAFE_FOR_TEMPLATES||!1,Te=e.SAFE_FOR_XML!==!1,Ee=e.WHOLE_DOCUMENT||!1,ke=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,Me=e.SANITIZE_DOM!==!1,Ne=e.SANITIZE_NAMED_PROPS||!1,Fe=e.KEEP_CONTENT!==!1,Ie=e.IN_PLACE||!1,fe=Fre(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:xE,qe=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ke,Ze=tE(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?TT(e.MATHML_TEXT_INTEGRATION_POINTS):wT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Qe=tE(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?TT(e.HTML_INTEGRATION_POINTS):wT({},[`annotation-xml`]);let t=tE(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?TT(e.CUSTOM_ELEMENT_HANDLING):FT(null);if(ge=FT(null),tE(t,`tagNameCheck`)&&at(t.tagNameCheck)&&(ge.tagNameCheck=t.tagNameCheck),tE(t,`attributeNameCheck`)&&at(t.attributeNameCheck)&&(ge.attributeNameCheck=t.attributeNameCheck),tE(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ge.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),we&&(xe=!1),Ae&&(ke=!0),Le&&(E=wT({},dE),me=FT(null),Le.html===!0&&(wT(E,aE),wT(me,fE)),Le.svg===!0&&(wT(E,oE),wT(me,pE),wT(me,hE)),Le.svgFilters===!0&&(wT(E,sE),wT(me,pE),wT(me,hE)),Le.mathMl===!0&&(wT(E,lE),wT(me,mE),wT(me,hE))),ye.tagCheck=null,ye.attributeCheck=null,tE(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?ye.tagCheck=e.ADD_TAGS:WT(e.ADD_TAGS)&&(E===pe&&(E=TT(E)),wT(E,e.ADD_TAGS,nt))),tE(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?ye.attributeCheck=e.ADD_ATTR:WT(e.ADD_ATTR)&&(me===he&&(me=TT(me)),wT(me,e.ADD_ATTR,nt))),tE(e,`ADD_URI_SAFE_ATTR`)&&WT(e.ADD_URI_SAFE_ATTR)&&wT(He,e.ADD_URI_SAFE_ATTR,nt),tE(e,`FORBID_CONTENTS`)&&WT(e.FORBID_CONTENTS)&&(Re===ze&&(Re=TT(Re)),wT(Re,e.FORBID_CONTENTS,nt)),tE(e,`ADD_FORBID_CONTENTS`)&&WT(e.ADD_FORBID_CONTENTS)&&(Re===ze&&(Re=TT(Re)),wT(Re,e.ADD_FORBID_CONTENTS,nt)),Fe&&(E[`#text`]=!0),Ee&&wT(E,[`html`,`head`,`body`]),E.table&&(wT(E,[`tbody`]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw iE(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw iE(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);x=e.TRUSTED_TYPES_POLICY,S=x.createHTML(``)}else x===void 0&&(x=OE(m,i)),x!==null&&typeof S==`string`&&(S=x.createHTML(``));NT&&NT(e),rt=e},st=wT({},[...oE,...sE,...cE]),ct=wT({},[...lE,...uE]),lt=function(e){let t=b(e);(!t||!t.tagName)&&(t={namespaceURI:qe,tagName:`template`});let n=GT(e.tagName),r=GT(t.tagName);return Ye[e.namespaceURI]?e.namespaceURI===Ge?t.namespaceURI===Ke?n===`svg`:t.namespaceURI===We?n===`svg`&&(r===`annotation-xml`||Ze[r]):!!st[n]:e.namespaceURI===We?t.namespaceURI===Ke?n===`math`:t.namespaceURI===Ge?n===`math`&&Qe[r]:!!ct[n]:e.namespaceURI===Ke?t.namespaceURI===Ge&&!Qe[r]||t.namespaceURI===We&&!Ze[r]?!1:!ct[n]&&($e[n]||!st[n]):!!(et===`application/xhtml+xml`&&Ye[e.namespaceURI]):!1},ut=function(e){HT(t.removed,{element:e});try{b(e).removeChild(e)}catch{_(e)}},dt=function(e,n){try{HT(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{HT(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(ke||Ae)try{ut(n)}catch{}else try{n.setAttribute(e,``)}catch{}},ft=function(e){let t=null,r=null;if(Oe)e=`<remove></remove>`+e;else{let t=qT(e,/^[\r\n\t ]+/);r=t&&t[0]}et===`application/xhtml+xml`&&qe===Ke&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?x.createHTML(e):e;if(qe===Ke)try{t=new p().parseFromString(i,et)}catch{}if(!t||!t.documentElement){t=w.createDocument(qe,`template`,null);try{t.documentElement.innerHTML=Je?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),qe===Ke?te.call(t,Ee?`html`:`body`)[0]:Ee?t.documentElement:a},pt=function(e){return ee.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},mt=function(e){return e instanceof f&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof d)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},ht=function(e){return typeof s==`function`&&e instanceof s};function gt(e,n,r){zT(e,e=>{e.call(t,n,r,rt)})}let D=function(e){let n=null;if(gt(re.beforeSanitizeElements,e,null),mt(e))return ut(e),!0;let r=nt(e.nodeName);if(gt(re.uponSanitizeElement,e,{tagName:r,allowedTags:E}),Te&&e.hasChildNodes()&&!ht(e.firstElementChild)&&rE(/<[/\w!]/g,e.innerHTML)&&rE(/<[/\w!]/g,e.textContent)||Te&&e.namespaceURI===Ke&&r===`style`&&ht(e.firstElementChild)||e.nodeType===EE.progressingInstruction||Te&&e.nodeType===EE.comment&&rE(/<[/\w]/g,e.data))return ut(e),!0;if(_e[r]||!(ye.tagCheck instanceof Function&&ye.tagCheck(r))&&!E[r]){if(!_e[r]&&yt(r)&&(ge.tagNameCheck instanceof RegExp&&rE(ge.tagNameCheck,r)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(r)))return!1;if(Fe&&!Re[r]){let t=b(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=g(n[i],!0);t.insertBefore(r,v(e))}}}return ut(e),!0}return e instanceof c&&!lt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&rE(/<\/no(script|embed|frames)/i,e.innerHTML)?(ut(e),!0):(we&&e.nodeType===EE.text&&(n=e.textContent,zT([ie,ae,oe],e=>{n=JT(n,e,` `)}),e.textContent!==n&&(HT(t.removed,{element:e.cloneNode()}),e.textContent=n)),gt(re.afterSanitizeElements,e,null),!1)},_t=function(e,t,r){if(ve[t]||Me&&(t===`id`||t===`name`)&&(r in n||r in it))return!1;let i=me[t]||ye.attributeCheck instanceof Function&&ye.attributeCheck(t,e);if(!(xe&&!ve[t]&&rE(se,t))&&!(be&&rE(ce,t))){if(!i||ve[t]){if(!(yt(e)&&(ge.tagNameCheck instanceof RegExp&&rE(ge.tagNameCheck,e)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(e))&&(ge.attributeNameCheck instanceof RegExp&&rE(ge.attributeNameCheck,t)||ge.attributeNameCheck instanceof Function&&ge.attributeNameCheck(t,e))||t===`is`&&ge.allowCustomizedBuiltInElements&&(ge.tagNameCheck instanceof RegExp&&rE(ge.tagNameCheck,r)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(r))))return!1}else if(!He[t]&&!rE(fe,JT(r,ue,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&YT(r,`data:`)===0&&Be[e])&&!(Se&&!rE(le,JT(r,ue,``)))&&r)return!1}return!0},vt=wT({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),yt=function(e){return!vt[GT(e)]&&rE(de,e)},bt=function(e){gt(re.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||mt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:me,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=nt(o),u=c,d=o===`value`?u:XT(u);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,gt(re.uponSanitizeAttribute,e,r),d=r.attrValue,Ne&&(l===`id`||l===`name`)&&YT(d,Pe)!==0&&(dt(o,e),d=Pe+d),Te&&rE(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){dt(o,e);continue}if(l===`attributename`&&qT(d,`href`)){dt(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){dt(o,e);continue}if(!Ce&&rE(/\/>/i,d)){dt(o,e);continue}we&&zT([ie,ae,oe],e=>{d=JT(d,e,` `)});let f=nt(e.nodeName);if(!_t(f,l,d)){dt(o,e);continue}if(x&&typeof m==`object`&&typeof m.getAttributeType==`function`&&!s)switch(m.getAttributeType(f,l)){case`TrustedHTML`:d=x.createHTML(d);break;case`TrustedScriptURL`:d=x.createScriptURL(d);break}if(d!==u)try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),mt(e)?ut(e):VT(t.removed)}catch{dt(o,e)}}gt(re.afterSanitizeAttributes,e,null)},xt=function(e){let t=null,n=pt(e);for(gt(re.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)gt(re.uponSanitizeShadowNode,t,null),D(t),bt(t),t.content instanceof a&&xt(t.content);gt(re.afterSanitizeShadowDOM,e,null)},St=function(e){if(e.nodeType===EE.element&&e.shadowRoot instanceof a){let t=e.shadowRoot;St(t),xt(t)}let t=e.childNodes;if(!t)return;let n=[];zT(t,e=>{HT(n,e)});for(let e of n)St(e)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Je=!e,Je&&(e=`<!-->`),typeof e!=`string`&&!ht(e)&&(e=Pre(e),typeof e!=`string`))throw iE(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(De||ot(n),t.removed=[],typeof e==`string`&&(Ie=!1),Ie){let t=e.nodeName;if(typeof t==`string`){let e=nt(t);if(!E[e]||_e[e])throw iE(`root node is forbidden and cannot be sanitized in-place`)}St(e)}else if(e instanceof s)i=ft(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===EE.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o),St(o);else{if(!ke&&!we&&!Ee&&e.indexOf(`<`)===-1)return x&&je?x.createHTML(e):e;if(i=ft(e),!i)return ke?null:je?S:``}i&&Oe&&ut(i.firstChild);let u=pt(Ie?e:i);for(;c=u.nextNode();)D(c),bt(c),c.content instanceof a&&xt(c.content);if(Ie)return e;if(ke){if(we){i.normalize();let e=i.innerHTML;zT([ie,ae,oe],t=>{e=JT(e,t,` `)}),i.innerHTML=e}if(Ae)for(l=T.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(me.shadowroot||me.shadowrootmode)&&(l=ne.call(r,l,!0)),l}let d=Ee?i.outerHTML:i.innerHTML;return Ee&&E[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&rE(wE,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
438
|
-
`+
|
|
437
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Are(e,t){return Dre(e)||Ore(e,t)||jre(e,t)||kre()}function jre(e,t){if(e){if(typeof e==`string`)return ST(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ST(e,t):void 0}}function CT(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return LT(e,t,r)}}function Mre(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return RT(e,n)}}function wT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:GT;if(kT&&kT(e,null),!WT(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(AT(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Nre(e){for(let t=0;t<e.length;t++)tE(e,t)||(e[t]=null);return e}function TT(e){let t=FT(null);for(let r of OT(e)){var n=Are(r,2);let i=n[0],a=n[1];tE(e,i)&&(WT(a)?t[i]=Nre(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=TT(a):t[i]=a)}return t}function Pre(e){switch(typeof e){case`string`:return e;case`number`:return ZT(e);case`boolean`:return QT(e);case`bigint`:return $T?$T(e):`0`;case`symbol`:return eE?eE(e):`Symbol()`;case`undefined`:return nE(e);case`function`:case`object`:{if(e===null)return nE(e);let t=e,n=ET(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:nE(e)}return nE(e)}default:return nE(e)}}function ET(e,t){for(;e!==null;){let n=MT(e,t);if(n){if(n.get)return CT(n.get);if(typeof n.value==`function`)return CT(n.value)}e=jT(e)}function n(){return null}return n}function Fre(e){try{return rE(e,``),!0}catch{return!1}}function DT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DE(),t=e=>DT(e);if(t.version=`3.4.5`,t.removed=[],!e||!e.document||e.document.nodeType!==EE.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript,a=e.DocumentFragment,o=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,u=e.NamedNodeMap,d=u===void 0?e.NamedNodeMap||e.MozNamedAttrMap:u,f=e.HTMLFormElement,p=e.DOMParser,m=e.trustedTypes,h=c.prototype,g=ET(h,`cloneNode`),_=ET(h,`remove`),v=ET(h,`nextSibling`),y=ET(h,`childNodes`),b=ET(h,`parentNode`),x=s&&s.prototype?ET(s.prototype,`nodeType`):null;if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w=n,ee=w.implementation,T=w.createNodeIterator,te=w.createDocumentFragment,ne=w.getElementsByTagName,re=r.importNode,ie=kE();t.isSupported=typeof OT==`function`&&typeof b==`function`&&ee&&ee.createHTMLDocument!==void 0;let ae=gE,oe=_E,se=vE,ce=yE,le=bE,ue=SE,de=CE,fe=TE,E=xE,pe=null,me=wT({},[...aE,...oE,...sE,...lE,...dE]),he=null,ge=wT({},[...fE,...pE,...mE,...hE]),_e=Object.seal(FT(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,ye=null,be=Object.seal(FT(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),xe=!0,Se=!0,Ce=!1,we=!0,Te=!1,Ee=!0,De=!1,Oe=!1,ke=!1,Ae=!1,je=!1,Me=!1,Ne=!0,Pe=!1,Fe=`user-content-`,Ie=!0,Le=!1,Re={},ze=null,Be=wT({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Ve=null,He=wT({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ue=null,We=wT({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ge=`http://www.w3.org/1998/Math/MathML`,Ke=`http://www.w3.org/2000/svg`,qe=`http://www.w3.org/1999/xhtml`,Je=qe,Ye=!1,Xe=null,Ze=wT({},[Ge,Ke,qe],KT),Qe=wT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),$e=wT({},[`annotation-xml`]),et=wT({},[`title`,`style`,`font`,`a`,`script`]),tt=null,nt=[`application/xhtml+xml`,`text/html`],rt=null,it=null,at=n.createElement(`form`),ot=function(e){return e instanceof RegExp||e instanceof Function},st=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(it&&it===e)return;(!e||typeof e!=`object`)&&(e={}),e=TT(e),tt=nt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,rt=tt===`application/xhtml+xml`?KT:GT,pe=tE(e,`ALLOWED_TAGS`)&&WT(e.ALLOWED_TAGS)?wT({},e.ALLOWED_TAGS,rt):me,he=tE(e,`ALLOWED_ATTR`)&&WT(e.ALLOWED_ATTR)?wT({},e.ALLOWED_ATTR,rt):ge,Xe=tE(e,`ALLOWED_NAMESPACES`)&&WT(e.ALLOWED_NAMESPACES)?wT({},e.ALLOWED_NAMESPACES,KT):Ze,Ue=tE(e,`ADD_URI_SAFE_ATTR`)&&WT(e.ADD_URI_SAFE_ATTR)?wT(TT(We),e.ADD_URI_SAFE_ATTR,rt):We,Ve=tE(e,`ADD_DATA_URI_TAGS`)&&WT(e.ADD_DATA_URI_TAGS)?wT(TT(He),e.ADD_DATA_URI_TAGS,rt):He,ze=tE(e,`FORBID_CONTENTS`)&&WT(e.FORBID_CONTENTS)?wT({},e.FORBID_CONTENTS,rt):Be,ve=tE(e,`FORBID_TAGS`)&&WT(e.FORBID_TAGS)?wT({},e.FORBID_TAGS,rt):TT({}),ye=tE(e,`FORBID_ATTR`)&&WT(e.FORBID_ATTR)?wT({},e.FORBID_ATTR,rt):TT({}),Re=tE(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?TT(e.USE_PROFILES):e.USE_PROFILES:!1,xe=e.ALLOW_ARIA_ATTR!==!1,Se=e.ALLOW_DATA_ATTR!==!1,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,we=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=e.SAFE_FOR_TEMPLATES||!1,Ee=e.SAFE_FOR_XML!==!1,De=e.WHOLE_DOCUMENT||!1,Ae=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,Me=e.RETURN_TRUSTED_TYPE||!1,ke=e.FORCE_BODY||!1,Ne=e.SANITIZE_DOM!==!1,Pe=e.SANITIZE_NAMED_PROPS||!1,Ie=e.KEEP_CONTENT!==!1,Le=e.IN_PLACE||!1,E=Fre(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:xE,Je=typeof e.NAMESPACE==`string`?e.NAMESPACE:qe,Qe=tE(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?TT(e.MATHML_TEXT_INTEGRATION_POINTS):wT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),$e=tE(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?TT(e.HTML_INTEGRATION_POINTS):wT({},[`annotation-xml`]);let t=tE(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?TT(e.CUSTOM_ELEMENT_HANDLING):FT(null);if(_e=FT(null),tE(t,`tagNameCheck`)&&ot(t.tagNameCheck)&&(_e.tagNameCheck=t.tagNameCheck),tE(t,`attributeNameCheck`)&&ot(t.attributeNameCheck)&&(_e.attributeNameCheck=t.attributeNameCheck),tE(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(_e.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Te&&(Se=!1),je&&(Ae=!0),Re&&(pe=wT({},dE),he=FT(null),Re.html===!0&&(wT(pe,aE),wT(he,fE)),Re.svg===!0&&(wT(pe,oE),wT(he,pE),wT(he,hE)),Re.svgFilters===!0&&(wT(pe,sE),wT(he,pE),wT(he,hE)),Re.mathMl===!0&&(wT(pe,lE),wT(he,mE),wT(he,hE))),be.tagCheck=null,be.attributeCheck=null,tE(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?be.tagCheck=e.ADD_TAGS:WT(e.ADD_TAGS)&&(pe===me&&(pe=TT(pe)),wT(pe,e.ADD_TAGS,rt))),tE(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?be.attributeCheck=e.ADD_ATTR:WT(e.ADD_ATTR)&&(he===ge&&(he=TT(he)),wT(he,e.ADD_ATTR,rt))),tE(e,`ADD_URI_SAFE_ATTR`)&&WT(e.ADD_URI_SAFE_ATTR)&&wT(Ue,e.ADD_URI_SAFE_ATTR,rt),tE(e,`FORBID_CONTENTS`)&&WT(e.FORBID_CONTENTS)&&(ze===Be&&(ze=TT(ze)),wT(ze,e.FORBID_CONTENTS,rt)),tE(e,`ADD_FORBID_CONTENTS`)&&WT(e.ADD_FORBID_CONTENTS)&&(ze===Be&&(ze=TT(ze)),wT(ze,e.ADD_FORBID_CONTENTS,rt)),Ie&&(pe[`#text`]=!0),De&&wT(pe,[`html`,`head`,`body`]),pe.table&&(wT(pe,[`tbody`]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw iE(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw iE(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);S=e.TRUSTED_TYPES_POLICY,C=S.createHTML(``)}else S===void 0&&(S=OE(m,i)),S!==null&&typeof C==`string`&&(C=S.createHTML(``));NT&&NT(e),it=e},ct=wT({},[...oE,...sE,...cE]),lt=wT({},[...lE,...uE]),ut=function(e){let t=b(e);(!t||!t.tagName)&&(t={namespaceURI:Je,tagName:`template`});let n=GT(e.tagName),r=GT(t.tagName);return Xe[e.namespaceURI]?e.namespaceURI===Ke?t.namespaceURI===qe?n===`svg`:t.namespaceURI===Ge?n===`svg`&&(r===`annotation-xml`||Qe[r]):!!ct[n]:e.namespaceURI===Ge?t.namespaceURI===qe?n===`math`:t.namespaceURI===Ke?n===`math`&&$e[r]:!!lt[n]:e.namespaceURI===qe?t.namespaceURI===Ke&&!$e[r]||t.namespaceURI===Ge&&!Qe[r]?!1:!lt[n]&&(et[n]||!ct[n]):!!(tt===`application/xhtml+xml`&&Xe[e.namespaceURI]):!1},dt=function(e){HT(t.removed,{element:e});try{b(e).removeChild(e)}catch{_(e)}},ft=function(e,n){try{HT(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{HT(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ae||je)try{dt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},pt=function(e){let t=null,r=null;if(ke)e=`<remove></remove>`+e;else{let t=qT(e,/^[\r\n\t ]+/);r=t&&t[0]}tt===`application/xhtml+xml`&&Je===qe&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?S.createHTML(e):e;if(Je===qe)try{t=new p().parseFromString(i,tt)}catch{}if(!t||!t.documentElement){t=ee.createDocument(Je,`template`,null);try{t.documentElement.innerHTML=Ye?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Je===qe?ne.call(t,De?`html`:`body`)[0]:De?t.documentElement:a},mt=function(e){return T.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ht=function(e){e.normalize();let t=T.call(e.ownerDocument||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;){let e=n.data;zT([ae,oe,se],t=>{e=JT(e,t,` `)}),n.data=e,n=t.nextNode()}},gt=function(e){return e instanceof f&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof d)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},D=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return typeof x(e)==`number`}catch{return!1}};function _t(e,n,r){zT(e,e=>{e.call(t,n,r,it)})}let vt=function(e){let n=null;if(_t(ie.beforeSanitizeElements,e,null),gt(e))return dt(e),!0;let r=rt(e.nodeName);if(_t(ie.uponSanitizeElement,e,{tagName:r,allowedTags:pe}),Ee&&e.hasChildNodes()&&!D(e.firstElementChild)&&rE(/<[/\w!]/g,e.innerHTML)&&rE(/<[/\w!]/g,e.textContent)||Ee&&e.namespaceURI===qe&&r===`style`&&D(e.firstElementChild)||e.nodeType===EE.progressingInstruction||Ee&&e.nodeType===EE.comment&&rE(/<[/\w]/g,e.data))return dt(e),!0;if(ve[r]||!(be.tagCheck instanceof Function&&be.tagCheck(r))&&!pe[r]){if(!ve[r]&&xt(r)&&(_e.tagNameCheck instanceof RegExp&&rE(_e.tagNameCheck,r)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(r)))return!1;if(Ie&&!ze[r]){let t=b(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=g(n[i],!0);t.insertBefore(r,v(e))}}}return dt(e),!0}return e instanceof c&&!ut(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&rE(/<\/no(script|embed|frames)/i,e.innerHTML)?(dt(e),!0):(Te&&e.nodeType===EE.text&&(n=e.textContent,zT([ae,oe,se],e=>{n=JT(n,e,` `)}),e.textContent!==n&&(HT(t.removed,{element:e.cloneNode()}),e.textContent=n)),_t(ie.afterSanitizeElements,e,null),!1)},yt=function(e,t,r){if(ye[t]||Ne&&(t===`id`||t===`name`)&&(r in n||r in at))return!1;let i=he[t]||be.attributeCheck instanceof Function&&be.attributeCheck(t,e);if(!(Se&&!ye[t]&&rE(ce,t))&&!(xe&&rE(le,t))){if(!i||ye[t]){if(!(xt(e)&&(_e.tagNameCheck instanceof RegExp&&rE(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&rE(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t,e))||t===`is`&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&rE(_e.tagNameCheck,r)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(r))))return!1}else if(!Ue[t]&&!rE(E,JT(r,de,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&YT(r,`data:`)===0&&Ve[e])&&!(Ce&&!rE(ue,JT(r,de,``)))&&r)return!1}return!0},bt=wT({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),xt=function(e){return!bt[GT(e)]&&rE(fe,e)},St=function(e){_t(ie.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||gt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:he,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=rt(o),u=c,d=o===`value`?u:XT(u);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,_t(ie.uponSanitizeAttribute,e,r),d=r.attrValue,Pe&&(l===`id`||l===`name`)&&YT(d,Fe)!==0&&(ft(o,e),d=Fe+d),Ee&&rE(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){ft(o,e);continue}if(l===`attributename`&&qT(d,`href`)){ft(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){ft(o,e);continue}if(!we&&rE(/\/>/i,d)){ft(o,e);continue}Te&&zT([ae,oe,se],e=>{d=JT(d,e,` `)});let f=rt(e.nodeName);if(!yt(f,l,d)){ft(o,e);continue}if(S&&typeof m==`object`&&typeof m.getAttributeType==`function`&&!s)switch(m.getAttributeType(f,l)){case`TrustedHTML`:d=S.createHTML(d);break;case`TrustedScriptURL`:d=S.createScriptURL(d);break}if(d!==u)try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),gt(e)?dt(e):VT(t.removed)}catch{ft(o,e)}}_t(ie.afterSanitizeAttributes,e,null)},Ct=function(e){let t=null,n=mt(e);for(_t(ie.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)_t(ie.uponSanitizeShadowNode,t,null),vt(t),St(t),t.content instanceof a&&Ct(t.content);_t(ie.afterSanitizeShadowDOM,e,null)},wt=function(e){if(e.nodeType===EE.element&&e.shadowRoot instanceof a){let t=e.shadowRoot;wt(t),Ct(t)}let t=e.childNodes;if(!t)return;let n=[];zT(t,e=>{HT(n,e)});for(let e of n)wt(e)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,s=null,c=null;if(Ye=!e,Ye&&(e=`<!-->`),typeof e!=`string`&&!D(e)&&(e=Pre(e),typeof e!=`string`))throw iE(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(Oe||st(n),t.removed=[],typeof e==`string`&&(Le=!1),Le){let t=e.nodeName;if(typeof t==`string`){let e=rt(t);if(!pe[e]||ve[e])throw iE(`root node is forbidden and cannot be sanitized in-place`)}wt(e)}else if(D(e))i=pt(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===EE.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o),wt(o);else{if(!Ae&&!Te&&!De&&e.indexOf(`<`)===-1)return S&&Me?S.createHTML(e):e;if(i=pt(e),!i)return Ae?null:Me?C:``}i&&ke&&dt(i.firstChild);let l=mt(Le?e:i);for(;s=l.nextNode();)vt(s),St(s),s.content instanceof a&&Ct(s.content);if(Le)return Te&&ht(e),e;if(Ae){if(Te&&ht(i),je)for(c=te.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(he.shadowroot||he.shadowrootmode)&&(c=re.call(r,c,!0)),c}let u=De?i.outerHTML:i.innerHTML;return De&&pe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&rE(wE,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
438
|
+
`+u),Te&&zT([ae,oe,se],e=>{u=JT(u,e,` `)}),S&&Me?S.createHTML(u):u},t.setConfig=function(){st(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Oe=!0},t.clearConfig=function(){it=null,Oe=!1},t.isValidAttribute=function(e,t,n){return it||st({}),yt(rt(e),rt(t),n)},t.addHook=function(e,t){typeof t==`function`&&HT(ie[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=BT(ie[e],t);return n===-1?void 0:UT(ie[e],n,1)[0]}return VT(ie[e])},t.removeHooks=function(e){ie[e]=[]},t.removeAllHooks=function(){ie=kE()},t}var OT,kT,AT,jT,MT,NT,PT,FT,IT,LT,RT,zT,BT,VT,HT,UT,WT,GT,KT,qT,JT,YT,XT,ZT,QT,$T,eE,tE,nE,rE,iE,aE,oE,sE,cE,lE,uE,dE,fE,pE,mE,hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,OE,kE,AE,Ire=s((()=>{OT=Object.entries,kT=Object.setPrototypeOf,AT=Object.isFrozen,jT=Object.getPrototypeOf,MT=Object.getOwnPropertyDescriptor,NT=Object.freeze,PT=Object.seal,FT=Object.create,IT=typeof Reflect<`u`&&Reflect,LT=IT.apply,RT=IT.construct,NT||=function(e){return e},PT||=function(e){return e},LT||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},RT||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)},zT=CT(Array.prototype.forEach),BT=CT(Array.prototype.lastIndexOf),VT=CT(Array.prototype.pop),HT=CT(Array.prototype.push),UT=CT(Array.prototype.splice),WT=Array.isArray,GT=CT(String.prototype.toLowerCase),KT=CT(String.prototype.toString),qT=CT(String.prototype.match),JT=CT(String.prototype.replace),YT=CT(String.prototype.indexOf),XT=CT(String.prototype.trim),ZT=CT(Number.prototype.toString),QT=CT(Boolean.prototype.toString),$T=typeof BigInt>`u`?null:CT(BigInt.prototype.toString),eE=typeof Symbol>`u`?null:CT(Symbol.prototype.toString),tE=CT(Object.prototype.hasOwnProperty),nE=CT(Object.prototype.toString),rE=CT(RegExp.prototype.test),iE=Mre(TypeError),aE=NT(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),oE=NT(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),sE=NT([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),cE=NT([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),lE=NT(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),uE=NT([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),dE=NT([`#text`]),fE=NT(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),pE=NT(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),mE=NT(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),hE=NT([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),gE=PT(/{{[\w\W]*|^[\w\W]*}}/g),_E=PT(/<%[\w\W]*|^[\w\W]*%>/g),vE=PT(/\${[\w\W]*/g),yE=PT(/^data-[\-\w.\u00B7-\uFFFF]+$/),bE=PT(/^aria-[\-\w]+$/),xE=PT(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),SE=PT(/^(?:\w+script|data):/i),CE=PT(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wE=PT(/^html$/i),TE=PT(/^[a-z][.\w]*(-[.\w]+)+$/i),EE={element:1,text:3,progressingInstruction:7,comment:8,document:9},DE=function(){return typeof window>`u`?null:window},OE=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},kE=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},AE=DT()})),jE,ME=s((()=>{Ire(),jE=AE.sanitize.bind(AE),AE.isSupported,AE.addHook.bind(AE),AE.removeHook.bind(AE),AE.removeHooks.bind(AE),AE.removeAllHooks.bind(AE),AE.setConfig.bind(AE),AE.clearConfig.bind(AE),AE.isValidAttribute.bind(AE),AE.version,AE.removed}));function NE(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function PE(e){UE=e}function FE(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(KE.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function IE(e,t){if(t){if(KE.escapeTest.test(e))return e.replace(KE.escapeReplace,$D)}else if(KE.escapeTestNoEncode.test(e))return e.replace(KE.escapeReplaceNoEncode,$D);return e}function LE(e){try{e=encodeURI(e).replace(KE.percentDecode,`%`)}catch{return null}return e}function RE(e,t){let n=e.replace(KE.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(KE.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(KE.slashPipe,`|`);return n}function zE(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function BE(e){let t=e.split(`
|
|
439
439
|
`),n=t.length-1;for(;n>=0&&KE.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
440
440
|
`)}function Lre(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Rre(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function VE(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function zre(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
441
441
|
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
@@ -641,31 +641,31 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
`,mP=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=$N,r=n?20:100,i=[...e],a=[];for(;;){let e=await $j(t,{paths:i.splice(0,r)});if(a.push(...e.project.repository.blobs.nodes),!i.length)break}return Object.fromEntries(e.map((e,t)=>[e,a[t]]))},hP=async({fetchingFiles:e,blobs:t,sizes:n={},commits:r={}})=>{let i=e.map(({path:e,sha:i})=>{let a=r[e],o={sha:i,size:Number(n[e]?.size??0),text:t[e]?.rawTextBlob??void 0,meta:{}};if(a){let{author:e,authorName:t,authorEmail:n,committedDate:r}=a,{id:i,username:s}=e??{},c=i?.match(/\d+/);o.meta={commitAuthor:{name:t,email:n,id:c?Number(c[0]):void 0,login:s},committedDate:new Date(r)}}return[e,o]});return Object.fromEntries(i)},gP=async e=>{Iy.set(0);let t=window.setInterval(()=>{Iy.update((e=0)=>e+1)},e.length/10),n=await mP(e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),pP);return window.clearInterval(t),Iy.set(void 0),hP({fetchingFiles:e,blobs:n})},_P=async()=>{await tP(),await WM({repository:$N,fetchDefaultBranchName:rP,fetchLastCommit:oP,fetchFileList:fP,fetchFileContents:gP})},vP=async e=>{let{owner:t,repo:n,branch:r=``}=$N,{path:i}=e;return Qj(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})}})),yP,bP,xP,gie=s((()=>{$x(),yP=`https://status.gitlab.com/`,bP=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,xP=async()=>{try{let{result:{status_overall:{status_code:e}}}=await Qx(bP);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`}})),SP,CP,_ie=s((()=>{Cp(),ip(),mie(),uP(),JN(),hie(),iP(),gie(),eM(),xM(),iF(),nN(),SP=()=>{let{backend:e}=A($P)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=KN,auth_endpoint:i=qN,app_id:a=``,api_root:o=GN,graphql_api_root:s=o.replace(/\/api\/.+$/,`/api/graphql`),include_credentials:c=!1}=e,{owner:l,repo:u}=t.match(/(?<owner>.+)\/(?<repo>[^/]+)$/)?.groups??{},d=`${l}/${u}`,f=`${yp(r)}/${yp(i)}`,p=bM(o,d);return Object.assign($N,{service:UN,label:WN,owner:l,repo:u,branch:n,repoURL:p,tokenPageURL:XN(p),databaseName:`${UN}:${d}`,isSelfHosted:o!==GN},eP(p,n)),Object.assign(Yj,{clientId:a,authScope:`api`,authURL:f,tokenURL:f.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:yp(o),graphqlBaseURL:yp(s),includeCredentials:c}),Object.assign(Xj,{fullPath:d,branch:n}),A(tN).devModeEnabled&&console.info(`repositoryInfo`,$N),$N},CP={isGit:!0,name:UN,label:WN,repository:$N,statusDashboardURL:yP,checkStatus:xP,init:SP,signIn:ZN,signOut:QN,fetchFiles:_P,fetchBlob:vP,commitChanges:sP,fetchFileCommits:lP}})),wP,TP,EP,DP,OP,kP,AP,jP=s((()=>{ip(),$re(),eie(),aie(),fie(),_ie(),wP={github:HN,gitlab:CP,gitea:iN,local:Oj,"test-repo":Rj},TP={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},EP=Object.keys(wP).filter(e=>e!==`local`),DP=Object.fromEntries(Object.entries(wP).filter(([,e])=>e.isGit)),OP=un(),kP=dn([OP],([e],t,n)=>{n(t=>{let n=e?wP[e]:void 0;return n&&n!==t&&n.init(),n})}),AP=un(!0)})),MP,NP,PP,FP,IP,LP=s((()=>{Z(),fb(),MP=({type:e=`error`,strKey:t,values:n={},extraStrKey:r,context:i={},collectors:a})=>{let{collection:o,collectionFile:s,typedKeyPath:c}=i,{errors:l,warnings:u}=a,d=[];o&&d.push(X(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&d.push(X(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&d.push(X(`config.error_locator.field`,{values:{field:c}}));let f=e===`error`?l:u,p=kh.current,m=d.length?`${ub(p).format(d)}: `:``,h=X(`config.${e}.${t}`,{values:n});f.add(`${m}${h}${r?` ${X(`config.${r}`)}`:``}`)},NP=({UNSUPPORTED_OPTIONS:e,config:t,context:n,collectors:r})=>{e.forEach(({type:e=`error`,prop:i,newProp:a,value:o,strKey:s=`unsupported_deprecated_option`})=>{i in t&&(o===void 0||t[i]===o)&&MP({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},PP=/^[^\s.*:<>]+$/,FP=e=>PP.test(e),IP=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return MP({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return FP(e)?n[e]===1?(MP({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(MP({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})),RP,zP,vie=s((()=>{Z(),p(),jP(),tb(),LP(),RP=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],zP=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!d(n)){r.add(X(`config.error.missing_backend`));return}let{name:a}=n;if(!a){r.add(X(`config.error.missing_backend_name`));return}if(!EP.includes(a)){let e=TP[a],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,i=X(`config.error.unsupported_${t}_backend`,{values:{name:n}});r.add(`${i} ${X(`config.error.unsupported_backend_suggestion`)}`);return}if(a in DP){let{repo:o,automatic_deployments:s,allow_token_auth:c=!0,auth_type:l,app_id:u}=n;o===void 0&&r.add(X(`config.error.missing_repository`)),(typeof o!=`string`||!/(.+)\/([^/]+)$/.test(o))&&r.add(X(`config.error.invalid_repository`)),l===`implicit`&&r.add(X(`config.error.oauth_implicit_flow`).replace(`BACKEND_NAME`,a)),a===`github`&&l===`pkce`&&r.add(X(`config.error.github_pkce_unsupported`)),a===`gitlab`&&l===`pkce`&&!u&&r.add(X(`config.error.oauth_no_app_id`)),a===`gitea`&&!u&&(c?i.add(X(`config.warning.oauth_no_app_id`)):r.add(X(`config.error.oauth_no_app_id`))),s!==void 0&&eb(`automatic_deployments`),NP({UNSUPPORTED_OPTIONS:RP,config:n,context:{cmsConfig:e},collectors:t})}}})),BP,VP,HP,yie,UP,bie=s((()=>{BP=[`code`,`markdown`,`richtext`,`text`],VP=[`md`,`markdown`,`mdx`],HP=[`astro`,`njk`],yie=[...VP,...HP],UP=(e,t,n=[])=>{if(!e||!t||t===`raw`)return!1;let r=t.endsWith(`-frontmatter`)||t===`frontmatter`;if(r&&n.length===1){let[{name:e,widget:t=`string`}]=n;if(e===`body`&&BP.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(VP.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return HP.includes(i)?!1:i!==e}if(a===`frontmatter`)return!yie.includes(i);let o=[`yaml`,`toml`,`json`];return o.includes(a)?o.includes(i)&&i!==a:!1}})),xie,Sie,Cie=s((()=>{LP(),xie=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],Sie=e=>{NP({...e,UNSUPPORTED_OPTIONS:xie})}})),wie,WP,Tie=s((()=>{LP(),wie=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],WP=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),NP({...e,UNSUPPORTED_OPTIONS:wie})}})),Eie,Die,Oie=s((()=>{JP(),LP(),Eie=(e,t,n)=>e===`object`?!0:(MP({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),Die=e=>{let{config:t,context:n,collectors:r}=e,{field:i}=t,{fields:a}=t,{types:o}=t,{typedKeyPath:s}=n,c={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a||i&&o||a&&o){MP({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&KP({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&qP(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};IP({...c,name:e,index:a,context:o})&&Eie(t,o,r)&&i&&qP(i,o,r)})}})),kie,Aie,jie=s((()=>{LP(),kie=[{prop:`valueType`,newProp:`value_type`}],Aie=e=>{NP({...e,UNSUPPORTED_OPTIONS:kie})}})),Mie,Nie=s((()=>{JP(),LP(),Mie=e=>{let{config:t,context:n,collectors:r}=e,{fields:i}=t,{types:a}=t,{typedKeyPath:o}=n,s={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a){MP({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){MP({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&qP(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};IP({...s,name:e,index:i,context:a})&&t&&qP(t,a,r)})}})),Pie,Fie,Iie=s((()=>{LP(),Pie=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],Fie=e=>{let{config:t,context:n,collectors:r}=e,i=t,{collection:a,file:o,value_field:s}=i,{cmsConfig:c}=n,l=a===`_singletons`?{files:c?.singletons}:c?.collections?.find(e=>e.name===a),u;if(l){let e=`files`in l&&Array.isArray(l.files);o?(e&&(u=l.files.find(e=>`file`in e&&e.name===o)),u||MP({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&MP({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else MP({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});NP({...e,UNSUPPORTED_OPTIONS:Pie}),r.relationFields.add({fieldConfig:i,context:n})}})),Lie,GP,Rie=s((()=>{LP(),Lie=[{prop:`editorComponents`,newProp:`editor_components`}],GP=e=>{NP({...e,UNSUPPORTED_OPTIONS:Lie})}})),zie,KP,qP,JP=s((()=>{Cie(),Tie(),Oie(),jie(),Nie(),Iie(),Rie(),LP(),zie={datetime:Sie,file:WP,image:WP,list:Die,markdown:GP,number:Aie,object:Mie,relation:Fie,richtext:GP},KP=e=>{let{config:t,context:n}=e,{name:r,widget:i=`string`}=t,{typedKeyPath:a}=n,o={...e,context:{...n,typedKeyPath:a?`${a}.${r}`:r}};zie[i]?.(o),i===`date`&&MP({...o,strKey:`date_field_type`})},qP=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;IP({...r,name:a,index:i})&&KP({config:e,context:t,collectors:n})})}})),Bie,YP,Vie=s((()=>{Pp(),bie(),JP(),LP(),Bie=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o}=r,{extension:s}=Op(i);UP(s,a,o)&&MP({strKey:`file_format_mismatch`,context:e,values:{extension:s,format:a},collectors:t}),o?.length||MP({strKey:`collection_file_no_fields`,context:e,collectors:t}),qP(o,e,t)},YP=(e,t)=>{let{cmsConfig:n,collection:r}=e,{files:i}=r,a={nameCounts:{},strKeyBase:`collection_file_name`,collectors:t};i.forEach((e,i)=>{if(`divider`in e)return;let{name:o}=e,s={cmsConfig:n,collection:r,collectionFile:e};IP({...a,name:o,index:i,context:s})&&Bie(s,t)})}})),Hie,Uie,Wie,Gie,Kie=s((()=>{Z(),tb(),Vie(),bie(),JP(),LP(),Hie=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],Uie=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,slug:c,slug_length:l}=r;UP(i,a)&&MP({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&eb(`slug_length`),NP({UNSUPPORTED_OPTIONS:Hie,config:r,context:e,collectors:t}),o?.length||MP({strKey:`collection_no_fields`,context:e,collectors:t}),qP(o,e,t),s&&qP(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&MP({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},Wie=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){MP({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){MP({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?YP({cmsConfig:e,collection:t},n):a&&Uie({cmsConfig:e,collection:t},n)},Gie=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t;if(!Array.isArray(n)&&!Array.isArray(r)){i.add(X(`config.error.no_collection`));return}let a={nameCounts:{},strKeyBase:`collection_name`,collectors:t};n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,o={cmsConfig:e,collection:n};IP({...a,name:i,index:r,context:o})&&Wie(o,t)}),Array.isArray(r)&&YP({cmsConfig:e,collection:{name:`_singletons`,label:X(`singletons`),label_singular:X(`singleton`),files:r}},t)}})),qie,Jie=s((()=>{Z(),_w(),qie=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!gw.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>gw.includes(e))&&o.add(X(`config.error.missing_media_folder`)):typeof n!=`string`&&o.add(X(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&o.add(X(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&o.add(X(`config.error.public_folder_absolute_url`))):o.add(X(`config.error.invalid_public_folder`)))}})),Yie,Xie,Zie=s((()=>{vie(),Kie(),Jie(),LP(),Yie=[{type:`warning`,prop:`publish_mode`,value:`editorial_workflow`,strKey:`editorial_workflow_unsupported`},{type:`warning`,prop:`local_backend`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`locale`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`search`,strKey:`unsupported_ignored_option`}],Xie=(e,t)=>{zP(e,t),qie(e,t),Gie(e,t),NP({UNSUPPORTED_OPTIONS:Yie,config:e,context:{cmsConfig:e},collectors:t})}})),Qie,XP,$ie,ZP,QP,$P,eF,tF,nF,rF,eae,iF=s((()=>{Z(),gp(),p(),Cp(),Qie=u($ee(),1),ip(),Py(),Up(),lne(),une(),Dne(),Zie(),Uy(),nN(),{DEV:XP,VITE_SITE_URL:$ie}={DEV:!1},ZP=XP?$ie||`http://localhost:5174`:void 0,QP={},$P=un(),eF=un(),tF=un([]),nF=dn([$P,tF],([e,t])=>!!e||!!t.length),rF={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},eae=async e=>{$P.set(void 0),tF.set([]),Object.assign(rF,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(X(`config.error.no_secure_context`));let t;if(e){if(!d(e))throw Error(X(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,Qie.default)(await aS({manualInit:!0}),t))}else t=await aS();if(Object.assign(QP,t),Xie(t,rF),rF.errors.size)throw rF.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);rF.warnings.size&&rF.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(XP?ZP:window.location.origin),n._baseURL=xp(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),$P.set(n),eF.set(await hp(My(n)))}catch(e){tF.set(rF.errors.size?[...rF.errors]:[e.name===`Error`?e.message:X(`config.error.unexpected`)]),console.error(e,e.cause)}},$P.subscribe(e=>{if(A(tN).devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,rF)),!e)return;let t=lx(e),n=nx(e,[...rF.mediaFields]);Ly.set(t),Fp.set(n),A(tN).devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})),aF,oF=s((()=>{ip(),iF(),aF=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=A($P),r=e===`default`?{...n?.media_libraries?.all,...t?.media_libraries?.all}:void 0,i=e=>({...e,...r&&Object.keys(r).length>0&&{config:{...r,...e?.config}}});if(t?.media_libraries&&e in t.media_libraries){let n=t.media_libraries[e];return n===!1?!1:i(n)}if(t?.media_library){let r=n?.media_library?.name??`default`,a=t.media_library,o=a.name;if(r===e&&(o===e||o===void 0))return i(a)}if(n?.media_libraries&&e in n.media_libraries){let t=n.media_libraries[e];return t===!1?!1:i(t)}return n?.media_library?.name===e?i(n.media_library):i(null)}})),sF,tae,cF=s((()=>{p(),oF(),qw(),oT(),sF=({fieldConfig:e}={})=>{let t=aF({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{enabled:t!==!1,config:{max_file_size:typeof n==`number`&&Number.isInteger(n)?n:1/0,multiple:typeof r==`boolean`?r:!1,slugify_filename:typeof i==`boolean`?i:!1,transformations:d(a)?a:void 0}}},tae=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(zw.includes(r)&&(r in t?n=t[r]:`raster_image`in t&&(n=t.raster_image)),n){let{format:t,quality:r,width:i,height:a}=n,o=t&&Kw.includes(t)?t:`webp`,s=await iT(e,{format:o,quality:r&&Number.isSafeInteger(r)?r:85,width:i&&Number.isSafeInteger(i)?i:void 0,height:a&&Number.isSafeInteger(a)?a:void 0}),c=s.type===`image/${o}`?Vw.test(e.name)?e.name.replace(Vw,o):e.name.concat(o):e.name;return new File([s],c,{type:s.type})}}return n===`image`&&r===`svg+xml`&&t.svg?.optimize?new File([await aT(e)],e.name,{type:e.type}):e}})),lF,uF=s((()=>{cF(),iw(),lF=async(e,{slugify_filename:t=!1,transformations:n,max_file_size:r=1/0}={})=>{if(t){let{name:t,type:n,lastModified:r}=e,i=$C(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}let i=e;return n&&(e=await tae(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r}}})),dF,fF,pF,mF,hF,nae,gF,_F,vF,yF,bF,rae,xF,iae,aae,SF,CF,wF,oae,TF,EF=s((()=>{Pp(),Cp(),fc(),ip(),Up(),uF(),BO(),Jb(),ib(),Zy(),XO(),cF(),iw(),dF=un([]),fF={source:void 0,map:new Map},pF=()=>{let e=A(dF);return e!==fF.source&&(fF.source=e,fF.map=new Map(e.map(e=>[e.path,e]))),fF.map},mF=e=>pF().get(e),hF=un([]),nae=dn(hF,e=>new Set(e.map(e=>e.path))),gF=un(),_F=un(),vF=un({folder:void 0,files:[]}),yF=un(),bF=un(),rae=dn([vF],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=sF();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>lF(e,i)));n(()=>({processing:!1,undersizedFiles:e.filter(({oversized:e})=>!e).map(({file:e})=>e),oversizedFiles:e.filter(({oversized:e})=>e).map(({file:e})=>e),transformedFileMap:new WeakMap(e.filter(({originalFile:e})=>e!==void 0).map(({file:e,originalFile:t})=>[e,t]))}))})()}),xF=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?zp({collectionName:n.name,fileName:r?.name,typedKeyPath:i}):void 0,c=s?.entryRelative?s.internalSubPath??``:(r??n).media_folder,{path:l,content:u}=a[o in a?o:Object.keys(a)[0]];if(!l||!u)return;let{entryFolder:d}=l.match(/(?<entryFolder>.+?)(?:\/[^/]+)?$/).groups,f=e.replace(/^\.\//,``),p=tw(ew([d,c,c&&f.startsWith(`${c}/`)?f.slice(c.length+1):f]));return pF().get(p)},iae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?zp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?zp({collectionName:n,fileName:r}):void 0,n?zp({collectionName:n}):void 0,A(Ip)].filter(e=>!!e&&!e.hasTemplateTags),a;return t.find(t=>{let n=t.publicPath?.replace(/^\//,``)??``,r=n&&e.startsWith(`${n}/`)?e.slice(n.length+1):e,i=pF().get(ew([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??pF().get(e)}return KO(t).flatMap(n=>{let r=Jy(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>xF({...a,file:e})):xF({...a})}).filter(Boolean)[0]??pF().get(e)},aae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=pF().get(yp(e));if(a)return a;let{dirname:o=``,basename:s}=Op(e),c;return[i?zp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,zp({collectionName:n,fileName:r}),zp({collectionName:n}),A(Ip),A(Fp).findLast(e=>o.match(`^${(e.publicPath??``).replace(/{{.+?}}/g,`.+?`)}\\b`))].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&/{{.+?}}/.test(i)){let e=r?Gb(r):t?KO(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=zO(i,{type:`media_folder`,collection:e,content:uc(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:rb(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=ew([i,s]),l=pF().get(a);return l&&(c=l),!!l}),c},SF=e=>!/^[/@]/.test(e),CF=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=YC(e.split(`#`)[0]);return SF(a)?iae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):aae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},wF=({folder:e},t)=>e===t||e.collectionName===t.collectionName&&e.fileName===t.fileName&&e.typedKeyPath===t.typedKeyPath&&e.isIndexFile===t.isIndexFile&&e.internalPath===t.internalPath&&e.internalSubPath===t.internalSubPath&&e.publicPath===t.publicPath&&e.entryRelative===t.entryRelative&&e.hasTemplateTags===t.hasTemplateTags,oae=e=>A(dF).filter(t=>wF(t,e)),TF=e=>A(dF).filter(t=>Op(t.path).dirname===e),Lp.subscribe(()=>{gF.set(void 0)})})),DF,OF,kF=s((()=>{Pp(),Cp(),ip(),EF(),Up(),xT(),Jb(),ib(),yA(),DF=async(e,t)=>{let{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=e,{locales:a}=t,{content:o}=a[r]??Object.values(a)[0]??{};if(!o)return;let s=i.some(e=>e.includes(`*`))?Object.keys(o):void 0,c=i.flatMap(e=>{if(e.includes(`*`)){let t=RegExp(`^${_p(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await bT({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},OF=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=Gb(t);if(!a)return[];let o=rb(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||SF(a))){let s=fA({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=CF({value:a,entry:e,collectionName:t,fileName:n});if(c&&Vp(c.path).some(e=>e.collectionName===t&&e.fileName===n&&(r?e.entryRelative:!0)))return c}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&zp({collectionName:t,fileName:n})?.entryRelative){let t=Op(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));A(dF).forEach(n=>{let r=Op(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})),AF,sae,jF,cae,MF,NF=s((()=>{p(),fc(),np(),ip(),kF(),qj(),AF=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],sae=[`preSave`,`prePublish`],jF=new Set,cae=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>yd({data:dc(e),i18n:Object.fromEntries(t.map(e=>[e,{data:dc(n[e].content)}])),slug:r,path:i,newRecord:a,collection:o,mediaFiles:s.map(({sha:e,file:t,size:n,blobURL:r,...i})=>({id:e,name:i.name,path:i.path,file:t,size:n,url:r,displayURL:r})),meta:{path:i},isModification:null,label:null,partial:!1,author:``,raw:``,status:``,updatedOn:``}),MF=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=A(Kj),{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:u}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==u),{content:h,path:g}=p[u],_=OF({entry:n,collectionName:c,fileName:l});for(let t of jF){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:cae({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(sae.includes(e)&&$l(n)){let e=n.toJS();d(e.data)&&d(e.i18n)?(p[u].content=uc(e.data),m.forEach(t=>{d(e.i18n[t]?.data)&&(p[t].content=uc(e.i18n[t].data))})):p[u].content=uc(e)}}}})),PF,FF,IF,LF,RF,zF,BF,VF,lae,HF=s((()=>{ip(),PF=un(!1),FF=un(!1),IF=un({show:!1,multiple:!1}),LF=un({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),RF=un(null),zF=un(null),BF=un(),VF=new Set,lae=new Map})),uae=s((()=>{})),Q=s((()=>{uae(),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})),dae,fae=s((()=>{dae=`{"ok":"OK","cancel":"Cancel","close":"Close","clear":"Clear","insert":"Insert","update":"Update","remove":"Remove","collapse":"Collapse","expand":"Expand","dismiss":"Dismiss","calendar":{"year":"Year","previous_decade":"Previous Decade","next_decade":"Next Decade","month":"Month","previous_month":"Previous Month","next_month":"Next Month","today":"Today"},"split_button":{"x_options":"{$name} Options","more_options":"More Options"},"combobox":{"select_an_option":"Select an option…","filter_options":"Filter Options","no_matching_options":"No matching options found"},"number_input":{"decrease":"Decrease","increase":"Increase"},"password_input":{"show_password":"Show Password","hide_password":"Hide Password"},"secret_input":{"show_secret":"Show Secret","hide_secret":"Hide Secret"},"select_tags":{"selected_options":"Selected options","remove_x":"Remove {$name}"},"text_editor":{"text_editor":"Text Editor","code_editor":"Code Editor","text_style_options":"Text Style Options","show_text_style_options":"Show Text Style Options","paragraph":"Paragraph","heading_1":"Heading 1","heading_2":"Heading 2","heading_3":"Heading 3","heading_4":"Heading 4","heading_5":"Heading 5","heading_6":"Heading 6","bulleted_list":"Bulleted List","numbered_list":"Numbered List","blockquote":"Block Quote","code_block":"Code Block","bold":"Bold","italic":"Italic","strikethrough":"Strikethrough","code":"Code","link":"Link","insert_link":"Insert Link","update_link":"Update Link","text":"Text","url":"URL","edit_in_markdown":"Edit in Markdown","converter_error":"There was an error while enabling rich text mode. Please use the plain text editor instead.","language":"Language","plain_text":"Plain Text"}}`})),pae,mae=s((()=>{pae=`{"ok":"OK","cancel":"キャンセル","close":"閉じる","clear":"クリア","insert":"挿入","update":"更新","remove":"削除","collapse":"折り畳む","expand":"広げる","dismiss":"閉じる","calendar":{"year":"年","previous_decade":"前の 10 年","next_decade":"次の 10 年","month":"月","previous_month":"前月","next_month":"翌月","today":"今日"},"split_button":{"x_options":"{$name} オプション","more_options":"その他のオプション"},"combobox":{"select_an_option":"オプションを選択…","filter_options":"オプションを絞り込み","no_matching_options":"一致するオプションは見つかりませんでした"},"number_input":{"decrease":"減らす","increase":"増やす"},"password_input":{"show_password":"パスワードを表示","hide_password":"パスワードを隠す"},"secret_input":{"show_secret":"シークレットを表示","hide_secret":"シークレットを隠す"},"select_tags":{"selected_options":"選択済みのオプション","remove_x":"{$name} を削除"},"text_editor":{"text_editor":"テキストエディター","code_editor":"コードエディター","text_style_options":"テキストスタイルオプション","show_text_style_options":"テキストスタイルオプションを表示","paragraph":"段落","heading_1":"見出し 1","heading_2":"見出し 2","heading_3":"見出し 3","heading_4":"見出し 4","heading_5":"見出し 5","heading_6":"見出し 6","bulleted_list":"番号なしリスト","numbered_list":"番号付きリスト","blockquote":"ブロック引用","code_block":"コードブロック","bold":"太字","italic":"斜体","strikethrough":"取り消し線","code":"コード","link":"リンク","insert_link":"リンクを挿入","update_link":"リンクを更新","text":"テキスト","url":"URL","edit_in_markdown":"マークダウンで編集","converter_error":"リッチテキストモードを有効化中に問題が発生しました。代わりにプレーンテキストエディターを使用してください。","language":"言語","plain_text":"プレーンテキスト"}}`})),hae,gae=s((()=>{fae(),mae(),Z(),Py(),hae=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.yaml":dae,"../locales/ja.yaml":pae})).forEach(([e,t])=>{Th(e.match(/.+\/(?<locale>.+?)\.yaml$/)?.groups?.locale,{_sui:jy(t)})}),jh({fallbackLocale:e,initialLocale:t})}}));function UF(e,t){K(e,vae);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`name`]);var r=_ae();bs(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-1b5xgh8`);var i=F(r,!0);D(r),R(()=>W(i,t.name)),U(e,r)}var _ae,vae,WF=s((()=>{Q(),Y(),_ae=V(`<span> </span>`),vae={hash:`svelte-1b5xgh8`,code:`.icon.small-arrow.svelte-1b5xgh8 {overflow:hidden;width:12px;text-indent:-6px;}`}}));function GF(e,t){K(e,bae);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]);var r=yae();bs(r,()=>({...n,role:`alert`,class:`sui alert ${t.status??``}`}),void 0,void 0,void 0,`svelte-1wgm17w`);var i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.icon),U(e,n)},o=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);UF(e,{get name(){return z(n)}})}};G(i,e=>{t.icon?e(a):e(o,-1)}),Eo(L(i,2),()=>t.children??E),D(r),U(e,r)}var yae,bae,KF=s((()=>{Q(),Y(),WF(),yae=V(`<div><!> <!></div>`),bae={hash:`svelte-1wgm17w`,code:`.alert.svelte-1wgm17w {display:flex;align-items:center;gap:var(--gap, 8px);padding:var(--padding, 8px);border-width:var(--border-width, var(--sui-control-medium-border-width));border-style:var(--border-style, solid);border-radius:var(--border-radius, var(--sui-control-medium-border-radius));font-size:var(--font-size, var(--sui-font-size-default));}.alert.error.svelte-1wgm17w {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-1wgm17w {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-1wgm17w {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-1wgm17w {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})),xae,qF,Sae,Cae,wae,JF,YF,XF=s((()=>{qF=()=>(xae??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),xae),Sae=[`Ctrl`,`Meta`,`Alt`,`Shift`],Cae=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),wae=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:Cae.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),JF=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.replace(/\bAccel\b/g,qF()?`Meta`:`Ctrl`).split(/\s+/).some(t=>{let o=t.split(`+`);return o.includes(`Ctrl`)&&!n||o.includes(`Meta`)&&!r||o.includes(`Alt`)&&!i||o.includes(`Shift`)&&!a||!o.includes(`Ctrl`)&&n||!o.includes(`Meta`)&&r||!o.includes(`Alt`)&&i||!o.includes(`Shift`)&&a?!1:o.filter(e=>!Sae.includes(e)).every(t=>wae(t,e))})},YF=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,qF()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!JF(n,t))return;let{top:i,left:a}=e.getBoundingClientRect();r&&e.style.setProperty(`pointer-events`,`auto`);let o=document.elementsFromPoint(a+4,i+4).includes(e);r&&e.style.removeProperty(`pointer-events`),o&&(n.preventDefault(),r||(e.focus(),e.click()))};return globalThis.addEventListener(`keydown`,n,{capture:!0}),e.setAttribute(`aria-keyshortcuts`,t),()=>{globalThis.removeEventListener(`keydown`,n,{capture:!0}),e.removeAttribute(`aria-keyshortcuts`)}}:()=>()=>{}}}));function ZF(e,t){K(e,Eae);let n=J(t,`lines`,3,1),r=J(t,`children`,3,void 0);var i=Tae();Eo(F(i),()=>r()??E),D(i),R(()=>ds(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),U(e,i)}var Tae,Eae,QF=s((()=>{Q(),Y(),Tae=V(`<span role="none" class="sui truncated-text svelte-hcwx1l"><!></span>`),Eae={hash:`svelte-hcwx1l`,code:`.truncated-text.svelte-hcwx1l {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})),$F,eI,tI=s((()=>{gp(),$F=(e=`e`,t=7)=>[e,pp(t)].join(`-`),eI=e=>{if(e)return new Promise(t=>{let n=new IntersectionObserver(([e])=>{e.isIntersecting&&(n.disconnect(),t(void 0))});globalThis.requestAnimationFrame(()=>{n.observe(e)})})}})),Dae,Oae,kae=s((()=>{Y(),tI(),Xx(),dh(),Dae=class{#e=N(!1);get open(){return z(this.#e)}set open(e){P(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&(this.anchorElement.focus(),this.anchorElement.removeAttribute(`aria-controls`)),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=N(Cr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let{scrollHeight:n,scrollWidth:r}=this.popupElement.querySelector(`.content`),i=e.top-8,a=t.height-e.bottom-8,{position:o}=this,s;document.dir===`rtl`&&(o.endsWith(`-left`)?o=o.replace(`-left`,`-right`):o.endsWith(`-right`)&&(o=o.replace(`-right`,`-left`)),o.startsWith(`left-`)?o=o.replace(`left-`,`right-`):o.startsWith(`right-`)&&(o=o.replace(`right-`,`left-`))),o.startsWith(`bottom-`)&&n>a&&(i>a?(o=o.replace(`bottom-`,`top-`),s=i):s=a),o.endsWith(`-left`)&&e.left+r>t.width-8&&(o=o.replace(`-left`,`-right`)),o.endsWith(`-right`)&&e.right-r<8&&(o=o.replace(`-right`,`-left`));let c={inset:[o.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:o.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,o.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:o.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,o.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:o.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,o.startsWith(`right-`)?`${Math.round(e.right)}px`:o.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:o.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:s?`${Math.round(s)}px`:`auto`};(c.inset!==this.style.inset||c.zIndex!==this.style.zIndex||c.minWidth!==this.style.minWidth||c.maxWidth!==this.style.maxWidth||c.height!==this.style.height)&&(this.style=c)})});constructor(e,t,n,r){this.anchorElement=e,this.popupElement=t,this.position=n,this.positionBaseElement=r??e,this.id=$F(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),this.anchorElement.setAttribute(`aria-expanded`,`false`),ba(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ba(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),ba(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),ba(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),ba(this.popupElement,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)}),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement)}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement)}async hideImmediately(){this.popupElement.hidden=!0,this.open=!1,await Yx(50),this.popupElement.hidden=!1}destroy(){this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Oae=(...e)=>new Dae(...e)}));function Aae(e,t){var n=H();Eo(I(n),()=>t.children??E),U(e,n)}var jae=s((()=>{Q(),Y()}));function Mae(e,t){O(t,!0),K(e,rI);let n=e=>{var n=nI(),d=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},f=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};bs(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[Cs]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-ltc5sz`);var g=F(n);Eo(g,()=>t.extraContent??E);var _=L(g,2),v=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)};G(_,e=>{(z(h)||l())&&e(v)}),D(n),Ws(n,e=>i(e),()=>i()),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`dialog`,15),a=J(t,`role`,3,`dialog`),o=J(t,`showBackdrop`,3,!1),s=J(t,`lightDismiss`,3,!1),c=J(t,`escapeDismiss`,3,!0),l=J(t,`keepContent`,3,!1),u=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=N(!1),m=N(!1),h=N(!1),g=0,_=async()=>new Promise(e=>{let t=n=>{n.target===i()&&(i().removeEventListener(`transitionend`,t),e())};i()?.addEventListener(`transitionend`,t)}),v=async()=>{if(!i()||i()?.open)return;g+=1;let e=g;t.onOpening?.(new CustomEvent(`Opening`)),P(h,!0),i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),await Yx(0),e===g&&(P(p,!0),await _(),e===g&&P(m,!0))},y=async()=>{if(!i()||!i().open)return;g+=1;let e=g,n=z(p),{returnValue:r}=i();t.onClosing?.(new CustomEvent(`Closing`)),document.body.inert=!0,i().close(),document.body.inert=!1,P(m,!1),P(p,!1),n&&await _(),e===g&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i(i().returnValue=``,!0))};return ti(()=>{r()?v():y()}),ac(()=>{let e=za(Aae,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Va(e)}}),k({focus:d,close:f})}var nI,rI,iI=s((()=>{Q(),Y(),Xx(),sc(),jae(),nI=V(`<dialog><!> <!></dialog>`),rI={hash:`svelte-ltc5sz`,code:`dialog.svelte-ltc5sz {position:fixed;inset:0;z-index:9999999;display:flex;justify-content:center;align-items:center;overflow:hidden;outline:0;margin:0;border:0;padding:0;width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;color:var(--sui-primary-foreground-color);background:transparent;-webkit-user-select:none;user-select:none;touch-action:none;pointer-events:all;cursor:default;}dialog.svelte-ltc5sz::backdrop {background:transparent;}dialog.backdrop.svelte-ltc5sz {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-ltc5sz {transition-duration:50ms;opacity:1;}dialog.svelte-ltc5sz:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-ltc5sz {transition-duration:1ms !important;}dialog.svelte-ltc5sz:not(.active) {pointer-events:none !important;}dialog.svelte-ltc5sz:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}}));function aI(e,t){O(t,!0),K(e,sI);let n=e=>{var n=oI();let o,s;Eo(F(n),()=>t.children??E),D(n),Ws(n,e=>a(e),()=>a()),R(()=>{q(n,`hidden`,!r()),o=cs(n,1,`content ${t.class??``} ${z(h)??``}`,`svelte-yluwtg`,o,{touch:z(y)}),s=ds(n,``,s,{inset:z(g)?.style.inset,"z-index":z(g)?.style.zIndex,"min-width":z(g)?.style.minWidth,"max-width":z(g)?.style.maxWidth,"max-height":z(g)?.style.height,visibility:z(g)?.style.inset?void 0:`hidden`})}),xa(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(_)}),xa(`mouseleave`,n,()=>{i(!1),l()&&(_=window.setTimeout(()=>{r(!1)},200))}),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`hovered`,15,!1),a=J(t,`content`,15,void 0),o=J(t,`showBackdrop`,3,void 0),s=J(t,`position`,3,`bottom-left`),c=J(t,`positionBaseElement`,3,void 0),l=J(t,`parentDialogElement`,3,void 0),u=J(t,`touchOptimized`,3,!1),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),f=N(!1),p=N(void 0),m=N(!1),h=N(void 0),g=N(void 0),_=0,v=()=>{P(g,Oae(t.anchor,z(p),s(),c()),!0),P(h,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),P(f,!0)};ti(()=>{z(g)&&r(z(g).open)}),ti(()=>{l()&&!z(p)&&a()&&(P(p,l()),z(p).append(a()))}),ti(()=>{t.anchor&&z(p)&&!z(f)&&v()}),ti(()=>{l()&&r()&&z(g)?.checkPosition()});let y=M(()=>u()&&z(m));ac(()=>(P(m,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{z(g)?.destroy?.(),globalThis.clearTimeout(_)}));var b=H(),x=I(b),S=e=>{n(e)},C=e=>{{let i=M(()=>o()??z(y));Mae(e,Zs(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await Yx(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return z(p)},set dialog(e){P(p,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};G(x,e=>{l()?e(S):e(C,-1)}),U(e,b),k()}var oI,sI,cI=s((()=>{Q(),Y(),Xx(),sc(),kae(),iI(),oI=V(`<div role="none"><!></div>`),sI={hash:`svelte-yluwtg`,code:`.content.svelte-yluwtg {position:absolute;overflow-y:auto;outline-width:0 !important;width:auto;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition-property:opacity, transform;}.content.menu.svelte-yluwtg {border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}.content.menu.svelte-yluwtg .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-yluwtg {border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);}.content.listbox.svelte-yluwtg .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-yluwtg {position:static;border-width:0 !important;border-radius:4px !important;padding:8px;min-width:320px !important;max-width:calc(100dvw - 32px) !important;max-height:calc(100dvh - 32px) !important;}dialog.open .content.touch.svelte-yluwtg {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-yluwtg {transform:scale(90%);}.content.touch.combobox.svelte-yluwtg .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-yluwtg {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-yluwtg {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}}));function lI(e,t){O(t,!0),K(e,hI);let n=J(t,`element`,15),r=J(t,`class`,3,``),i=J(t,`type`,3,`button`),a=J(t,`role`,3,`button`),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,19,()=>typeof s()),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`pressed`,3,void 0),p=J(t,`keyShortcuts`,3,void 0),m=J(t,`label`,3,``),h=J(t,`lines`,3,1),g=J(t,`variant`,3,void 0),_=J(t,`size`,3,`medium`),v=J(t,`iconic`,3,!1),y=J(t,`pill`,3,!1),b=J(t,`flex`,3,!1),x=J(t,`popupPosition`,3,`bottom-left`),S=J(t,`showPopupBackdrop`,3,!1),C=Xs(t,`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`));var w=mI(),ee=I(w);bs(ee,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[Cs]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-17elcgq`);var T=F(ee);Eo(T,()=>t.startIcon??E);var te=L(T,2),ne=e=>{var n=H(),r=I(n),i=e=>{var t=uI();ZF(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)},a=e=>{var n=dI();Eo(F(n),()=>t.children??E),D(n),U(e,n)};G(r,e=>{m()?e(i):e(a,-1)}),U(e,n)},re=e=>{var n=pI(),r=I(n),i=e=>{var t=fI();ZF(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)};G(r,e=>{m()&&e(i)}),Eo(L(r,2),()=>t.children??E),U(e,n)};G(te,e=>{g()===`link`?e(ne):e(re,-1)}),Eo(L(te,2),()=>t.endIcon??E),D(ee),Ws(ee,e=>n(e),()=>n()),Xo(ee,()=>YF(p()));var ie=L(ee,2),ae=e=>{aI(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=H();Eo(I(r),()=>t.popup),U(e,r)},$$slots:{default:!0}})};G(ie,e=>{t.popup&&e(ae)}),U(e,w),k()}var uI,dI,fI,pI,mI,hI,gI=s((()=>{Q(),Y(),XF(),QF(),cI(),uI=V(`<span role="none" class="label svelte-17elcgq"><!></span>`),dI=V(`<span role="none" class="label svelte-17elcgq"><!></span>`),fI=V(`<span role="none" class="label svelte-17elcgq"><!></span>`),pI=V(`<!> <!>`,1),mI=V(`<button><!> <!> <!></button> <!>`,1),hI={hash:`svelte-17elcgq`,code:`button.svelte-17elcgq {flex:none;display:inline-flex;align-items:center;gap:4px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color, inherit);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;transition:all 200ms;}button[hidden].svelte-17elcgq {display:none !important;}button.svelte-17elcgq:not(:disabled):focus-visible {z-index:1;}button.svelte-17elcgq:is(.primary:where(.svelte-17elcgq), .secondary:where(.svelte-17elcgq), .tertiary:where(.svelte-17elcgq), .ghost:where(.svelte-17elcgq)) {justify-content:center;border-width:1px;}button.svelte-17elcgq:is(.primary:where(.svelte-17elcgq), .secondary:where(.svelte-17elcgq), .tertiary:where(.svelte-17elcgq), .ghost:where(.svelte-17elcgq)) .label:where(.svelte-17elcgq):only-child {padding:0 4px;}button.primary.svelte-17elcgq {border-width:var(--sui-button-primary-border-width, 1px);border-style:var(--sui-button-primary-border-style, solid);border-color:var(--sui-button-primary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted));background-color:var(--sui-button-primary-background-color, var(--sui-primary-accent-color));font-weight:var(--sui-button-primary-font-weight, var(--sui-font-weight-normal, normal));}button.primary.svelte-17elcgq:is(:where(.svelte-17elcgq):hover, :where(.svelte-17elcgq):focus-visible, [aria-expanded=true]:where(.svelte-17elcgq)) {color:var(--sui-button-primary-foreground-color-focus, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-focus, var(--sui-primary-accent-color-light));}button.primary.svelte-17elcgq:active {color:var(--sui-button-primary-foreground-color-active, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-active, var(--sui-primary-accent-color-dark));}button.secondary.svelte-17elcgq {border-width:var(--sui-button-secondary-border-width, 1px);border-style:var(--sui-button-secondary-border-style, solid);border-color:var(--sui-button-secondary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text));background-color:var(--sui-button-secondary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-secondary-font-weight, var(--sui-font-weight-normal, normal));}button.secondary.svelte-17elcgq:is(:where(.svelte-17elcgq):hover, :where(.svelte-17elcgq):focus-visible, [aria-expanded=true]:where(.svelte-17elcgq)) {color:var(--sui-button-secondary-foreground-color-focus, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-focus, var(--sui-hover-background-color));}button.secondary.svelte-17elcgq:active {color:var(--sui-button-secondary-foreground-color-active, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-active, var(--sui-active-background-color));}button.secondary[aria-pressed=true].svelte-17elcgq {color:var(--sui-button-secondary-foreground-color-pressed);background-color:var(--sui-button-secondary-background-color-pressed, var(--sui-primary-accent-color));}button.tertiary.svelte-17elcgq {border-width:var(--sui-button-tertiary-border-width, 1px);border-style:var(--sui-button-tertiary-border-style, solid);border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(--sui-button-tertiary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-tertiary-font-weight, var(--sui-font-weight-normal, normal));}button.tertiary.svelte-17elcgq:is(:where(.svelte-17elcgq):hover, :where(.svelte-17elcgq):focus-visible, [aria-expanded=true]:where(.svelte-17elcgq)) {color:var(--sui-button-tertiary-foreground-color-focus, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-focus, var(--sui-hover-background-color));}button.tertiary.svelte-17elcgq:active {color:var(--sui-button-tertiary-foreground-color-active, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-active, var(--sui-active-background-color));}button.tertiary[aria-pressed=true].svelte-17elcgq {color:var(--sui-button-tertiary-foreground-color-pressed);background-color:var(--sui-button-tertiary-background-color-pressed, var(--sui-selected-background-color));}button.ghost.svelte-17elcgq {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-17elcgq:is(:where(.svelte-17elcgq):hover, :where(.svelte-17elcgq):focus-visible, [aria-expanded=true]:where(.svelte-17elcgq)) {color:var(--sui-button-ghost-foreground-color-focus);background-color:var(--sui-button-ghost-background-color-focus, var(--sui-hover-background-color));}button.ghost.svelte-17elcgq:active {color:var(--sui-button-ghost-foreground-color-active);background-color:var(--sui-button-ghost-background-color-active, var(--sui-active-background-color));}button.ghost[aria-pressed=true].svelte-17elcgq {color:var(--sui-button-ghost-foreground-color-pressed);background-color:var(--sui-button-ghost-background-color-pressed, var(--sui-selected-background-color));}button.link.svelte-17elcgq {outline:0;margin:0;border-radius:0 !important;padding:0 !important;height:auto !important;color:var(--sui-button-link-foreground-color, var(--sui-primary-accent-color-text));}button.link.svelte-17elcgq .label:where(.svelte-17elcgq) {padding:0;line-height:var(--sui-line-height-compact);text-decoration:var(--sui-button-link-text-decoration, none);text-underline-offset:2px;white-space:normal;}:is(:root, :host)[data-underline-links='true'] button.link.svelte-17elcgq .label:where(.svelte-17elcgq) {text-decoration:underline;}button.link.svelte-17elcgq:is(:where(.svelte-17elcgq):hover, :where(.svelte-17elcgq):focus, :where(.svelte-17elcgq):active) .label:where(.svelte-17elcgq) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-17elcgq {border-radius:var(--sui-button-small-border-radius);padding:var(--sui-button-small-padding);height:var(--sui-button-small-height);font-size:var(--sui-button-small-font-size, var(--sui-font-size-small));}button.small.svelte-17elcgq .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-17elcgq {border-radius:var(--sui-button-medium-border-radius);padding:var(--sui-button-medium-padding);height:var(--sui-button-medium-height);font-size:var(--sui-button-medium-font-size, var(--sui-font-size-default));}button.large.svelte-17elcgq {border-radius:var(--sui-button-large-border-radius);padding:var(--sui-button-large-padding);height:var(--sui-button-large-height);font-size:var(--sui-button-large-font-size, var(--sui-font-size-large));}button.pill.svelte-17elcgq {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-17elcgq:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-17elcgq {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-17elcgq {background-color:var(--sui-error-background-color);}button.svelte-17elcgq .label:where(.svelte-17elcgq) {padding:0 4px;}button.svelte-17elcgq > * {pointer-events:none;}button.svelte-17elcgq :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}}));function _I(e,t){O(t,!0),K(e,bI);let n=J(t,`show`,15,!0),r=J(t,`dismissible`,3,!0),i=J(t,`status`,3,`info`),a=J(t,`children`,3,void 0),o=J(t,`icon`,3,void 0);var s=H(),c=I(s),l=e=>{var t=yI(),s=F(t),c=F(s),l=e=>{var t=H();Eo(I(t),o),U(e,t)},u=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());UF(e,{get name(){return z(t)}})}};G(c,e=>{o()?e(l):e(u,-1)}),Eo(L(c,2),()=>a()??E),D(s);var d=L(s,2),f=e=>{var t=vI(),r=F(t);{let e=M(()=>X(`_sui.dismiss`));lI(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{UF(e,{name:`close`})},$$slots:{default:!0}})}D(t),U(e,t)};G(d,e=>{r()&&e(f)}),D(t),R(()=>cs(t,1,`infobar ${i()??``}`,`svelte-1h3krax`)),U(e,t)};G(c,e=>{n()&&e(l)}),U(e,s),k()}var vI,yI,bI,Nae=s((()=>{Q(),Y(),Z(),gI(),WF(),vI=V(`<div role="none"><!></div>`),yI=V(`<div role="none"><div role="alert" class="message svelte-1h3krax"><!> <!></div> <!></div>`),bI={hash:`svelte-1h3krax`,code:`.infobar.svelte-1h3krax {flex:none;display:flex;align-items:center;gap:var(--sui-infobar-gap, 8px);border-width:var(--sui-infobar-border-width, 0 0 1px);border-style:var(--sui-infobar-border-style, solid);padding:var(--sui-infobar-padding, 0);min-height:var(--sui-infobar-min-height, 32px);font-size:var(--sui-infobar-font-size, var(--sui-font-size-small));}.infobar.info.svelte-1h3krax {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-1h3krax {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-1h3krax {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-1h3krax {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-1h3krax {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-1h3krax button {font-size:inherit !important;}.message.svelte-1h3krax .icon {font-size:16px; /* !hardcoded */}`}}));function Pae(e,t){K(e,SI);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=xI();bs(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-7fqn7c`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var xI,SI,Fae=s((()=>{Q(),Y(),xI=V(`<div><!></div>`),SI={hash:`svelte-7fqn7c`,code:`.bottom-navigation.svelte-7fqn7c {height:var(--sui-bottom-navigation-height, var(--sui-primary-toolbar-size));border-top-width:var(--sui-bottom-navigation-border-color, 1px);border-top-style:var(--sui-bottom-navigation-border-style, solid);border-top-color:var(--sui-bottom-navigation-border-color, var(--sui-secondary-border-color));}.bottom-navigation.svelte-7fqn7c:is([inert]:where(.svelte-7fqn7c), [hidden]:where(.svelte-7fqn7c)) {display:none;}.bottom-navigation.svelte-7fqn7c .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}}));function Iae(e,t){K(e,wI);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=CI();bs(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-1u5a30k`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var CI,wI,TI=s((()=>{Q(),Y(),CI=V(`<div><!></div>`),wI={hash:`svelte-1u5a30k`,code:`.button-group.svelte-1u5a30k {flex:none;display:inline-flex;align-items:center;}`}}));function EI(e,t){K(e,OI);let n=J(t,`children`,3,void 0);var r=DI();Eo(F(r),()=>n()??E),D(r),U(e,r)}var DI,OI,Lae=s((()=>{Q(),Y(),DI=V(`<div role="none" class="sui floating-action-button-wrapper svelte-8aykmi"><!></div>`),OI={hash:`svelte-8aykmi`,code:`.floating-action-button-wrapper.svelte-8aykmi {display:contents;}
|
|
645
|
-
@media (width < 768px) {.floating-action-button-wrapper.svelte-
|
|
646
|
-
}`}})),kI,AI=s((()=>{Y(),kI=e=>{let{type:t=`string`,name:n,label:r}=e.dataset,{value:i}=e.dataset;return t===`number`?(i=Number(i),Number.isNaN(i)&&(i=null)):t===`boolean`?i=i===`true`:t===`string`&&(i=i?String(i):``),{target:e,type:t,name:n,label:r,value:i}}})),jI,MI,NI,PI,FI,II=s((()=>{Y(),Z(),tI(),Xx(),AI(),jI=/\p{Diacritic}/gu,MI=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(jI,``).toLocaleLowerCase():``),NI={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0}},PI=class{constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=$F(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o}=NI[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.parent.tabIndex=a?-1:0,(async()=>{await Yx(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=document.querySelector(`#${e.getAttribute(`aria-controls`)}`);e.id||=`${this.id}-item-${t+1}`,e.tabIndex=r?0:-1,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get allMembers(){return[...this.parent.querySelectorAll(this.selector)]}get activeMembers(){return this.allMembers.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}get selected(){return this.activeMembers.find(e=>e.matches(`[${this.childSelectedAttr}="true"]`))}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `;this.activeMembers.forEach(o=>{let s=o.matches(`[role="menuitemcheckbox"]`),c=o.matches(`[role="menuitemradio"]`);if((s||c)&&(o.getAttribute(`role`)!==n||o.closest(this.parentGroupSelector)!==r))return;let l=s||this.multi,u=c||!l,d=o===t,f=o.matches(`[${this.childSelectedAttr}="true"]`),p=o.getAttribute(`aria-controls`),m=p?document.getElementById(p):null;l&&d&&(i||a)&&(o.setAttribute(this.childSelectedAttr,String(!f)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!f}})),f||o.dispatchEvent(new CustomEvent(`Select`))),u&&f!==d&&(!c||a||i)&&(o.setAttribute(this.childSelectedAttr,String(d)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:d}})),d&&(e.type===`keydown`&&o.matches(`[role="radio"]`)&&o.click(),o.dispatchEvent(new CustomEvent(`Select`)))),this.focusChild?globalThis.requestAnimationFrame(()=>{o.tabIndex=d?0:-1,d&&(o.focus(),o.dispatchEvent(new CustomEvent(`Focus`)))}):(o.classList.toggle(`focused`,d),d&&o.dispatchEvent(new CustomEvent(`Focus`))),m&&(m.inert=!d,m.setAttribute(`aria-hidden`,String(!d)),d&&globalThis.setTimeout(()=>{try{m.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{m.scrollIntoView(!0)}},300)),d&&(this.parent.setAttribute(`aria-activedescendant`,o.id),globalThis.setTimeout(()=>{try{o.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{o.scrollIntoView(!0)}},300))}),this.parent.dispatchEvent(new CustomEvent(`Change`,{detail:kI(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;if(i||a||n||r)return;let o=e.target,{allMembers:s,activeMembers:c}=this,l=(()=>{if(!this.focusChild)return c.find(e=>e.matches(`.focused`));if(o.matches(this.selector))return o})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){l?.click();return}if(t===` `){l&&this.selectTarget(e,l);return}let u,d;if(this.grid){let e=Math.floor(this.parent.clientWidth/c[0].clientWidth),n=xh();u=l?s.indexOf(l):-1,t===`ArrowUp`&&u>0&&(d=s[u-e]),t===`ArrowDown`&&u<s.length-1&&(d=s[u+e]),t===`ArrowLeft`&&u>0&&(d=s[u+(n?1:-1)]),t===`ArrowRight`&&u<s.length-1&&(d=s[u+(n?-1:1)]),d?.matches(`[aria-disabled="true"], [aria-hidden="true"]`)&&(d=void 0)}else{u=l?c.indexOf(l):-1;let e=xh(),n=this.orientation===`horizontal`?e?`ArrowRight`:`ArrowLeft`:`ArrowUp`,r=this.orientation===`horizontal`?e?`ArrowLeft`:`ArrowRight`:`ArrowDown`;t===n&&(u>0&&(d=c[u-1]),u<=0&&(d=c[c.length-1])),t===r&&(u<c.length-1&&(d=c[u+1]),u===c.length-1&&([d]=c))}d&&d!==l&&this.selectTarget(e,d)}destroy(){this.parent.removeEventListener(`click`,this._onClick),this.parent.removeEventListener(`keydown`,this._onKeyDown)}onUpdate({searchTerms:e}){let t=MI(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=MI(e.dataset.searchValue??e.dataset.label??e.querySelector(`.label`)?.textContent??e.textContent),r=!n.every(e=>t.includes(e));return e.dispatchEvent(new CustomEvent(`Toggle`,{detail:{hidden:r}})),r}).filter(e=>!e).length;i.dispatchEvent(new CustomEvent(`Filter`,{detail:{matched:a,total:r.length}}))}},FI=e=>t=>{let n=typeof e==`function`,r=new PI(t,n?e():e);return n&&ti(()=>{r.onUpdate(e())}),()=>{r.destroy()}}}));function LI(e,t){O(t,!0),K(e,zI);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]);var c=RI();bs(c,()=>({...s,role:`radiogroup`,class:`sui select-button-group ${t.class??``}`,hidden:n(),tabindex:`-1`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o()}),void 0,void 0,void 0,`svelte-1a67juv`);var l=F(c);Eo(F(l),()=>t.children??E),D(l),D(c),Xo(c,FI),R(()=>l.inert=r()),U(e,c),k()}var RI,zI,Rae=s((()=>{Q(),Y(),II(),RI=V(`<div><div role="none" class="inner svelte-1a67juv"><!></div></div>`),zI={hash:`svelte-1a67juv`,code:`.select-button-group.svelte-1a67juv {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-1a67juv:focus-visible {outline-width:0 !important;}.select-button-group.svelte-1a67juv button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-1a67juv button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-1a67juv button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-1a67juv button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-1a67juv button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-1a67juv [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-1a67juv [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-1a67juv [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-1a67juv {display:contents;}`}}));function BI(e,t){O(t,!0);let n=J(t,`selected`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`]);lI(e,Zs(()=>r,{role:`radio`,get class(){return`sui select-button ${t.class??``}`},get"aria-checked"(){return n()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)}})),k()}var zae=s((()=>{Q(),Y(),gI()}));function VI(e,t){O(t,!0);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`popupPosition`,3,`bottom-left`),a=J(t,`popupPositionBaseElement`,3,void 0),o=J(t,`showPopupBackdrop`,3,!1),s=J(t,`label`,3,``),c=J(t,`variant`,3,void 0),l=J(t,`size`,3,`medium`),u=J(t,`iconic`,3,!1),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),f=N(void 0);var p={focus:()=>{z(f)?.focus()}},m=HI(),h=I(m);return lI(h,Zs(()=>d,{get class(){return`sui menu-button ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get label(){return s()},get variant(){return c()},get size(){return l()},get iconic(){return u()},"aria-haspopup":`menu`,get element(){return z(f)},set element(e){P(f,e,!0)},startIcon:e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.endIcon),U(e,n)},a=e=>{UF(e,{name:`more_vert`})},o=e=>{UF(e,{name:`arrow_drop_down`,class:`small-arrow`})};G(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),U(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),aI(L(h,2),{get anchor(){return z(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=H();Eo(I(r),()=>t.popup??E),U(e,r)},$$slots:{default:!0}}),U(e,m),k(p)}var HI,UI=s((()=>{Q(),Y(),gI(),WF(),cI(),HI=V(`<!> <!>`,1)}));function WI(e,t){O(t,!0),K(e,KI);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`label`,3,``),a=J(t,`variant`,3,void 0),o=J(t,`size`,3,`medium`),s=J(t,`popupPosition`,3,`bottom-left`),c=J(t,`showPopupBackdrop`,3,!1),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),u=N(void 0);var d=GI(),f=F(d);lI(f,Zs(()=>l,{get hidden(){return n()},get disabled(){return r()},get label(){return i()},get variant(){return a()},get size(){return o()}}));var p=L(f,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{UF(e,{name:`arrow_drop_down`,class:`small-arrow`})};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),U(e,n)},i=e=>{var n=H();Eo(I(n),()=>t.popup??E),U(e,n)},l=M(()=>X(`_sui.split_button.more_options`));VI(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return z(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return z(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}D(d),Ws(d,e=>P(u,e),()=>z(u)),R(e=>{q(d,`hidden`,n()),q(d,`aria-hidden`,n()),q(d,`aria-disabled`,r()),q(d,`aria-label`,e)},[()=>X(`_sui.split_button.x_options`,{values:{name:i()}})]),U(e,d),k()}var GI,KI,Bae=s((()=>{Q(),Y(),Z(),WF(),UI(),gI(),GI=V(`<div role="group" class="sui split-button svelte-ktoh5f"><!> <!></div>`),KI={hash:`svelte-ktoh5f`,code:`.split-button.svelte-ktoh5f {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-ktoh5f button {margin:0;}.split-button.svelte-ktoh5f button.menu-button {border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0;aspect-ratio:3/4;}.split-button.svelte-ktoh5f button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`}}));function qI(e,t){K(e,YI);let n=J(t,`hidden`,3,!1),r=J(t,`orientation`,3,`horizontal`),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`]);var a=JI();bs(a,()=>({...i,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r()}),void 0,void 0,void 0,`svelte-19qi2as`),U(e,a)}var JI,YI,XI=s((()=>{Q(),Y(),JI=V(`<div></div>`),YI={hash:`svelte-19qi2as`,code:`.divider.svelte-19qi2as {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-19qi2as {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-19qi2as {margin:0 8px;width:1px;height:100%;}`}}));function ZI(e,t){K(e,$I);let n=J(t,`flex`,3,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]);var i=QI();bs(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[Cs]:{flex:n()}}),void 0,void 0,void 0,`svelte-1put14r`),U(e,i)}var QI,$I,eL=s((()=>{Q(),Y(),QI=V(`<div></div>`),$I={hash:`svelte-1put14r`,code:`.spacer.flex.svelte-1put14r:not([hidden]) {display:block;flex:auto;}.spacer.svelte-1put14r:not(.flex) {width:8px;height:8px;}`}}));function Vae(e,t){K(e,nL);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`children`]);var o=tL();bs(o,()=>({...a,role:`group`,class:`sui checkbox-group ${t.class??``} ${i()??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-roledescription":`checkbox group`}),void 0,void 0,void 0,`svelte-h5m3we`);var s=F(o);Eo(F(s),()=>t.children??E),D(s),D(o),R(()=>s.inert=r()),U(e,o)}var tL,nL,Hae=s((()=>{Q(),Y(),tL=V(`<div><div role="none" class="inner svelte-h5m3we"><!></div></div>`),nL={hash:`svelte-h5m3we`,code:`.checkbox-group.svelte-h5m3we {display:inline-flex;}.checkbox-group.horizontal.svelte-h5m3we {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-h5m3we {gap:4px;flex-direction:column;}
|
|
647
|
-
@media (pointer: coarse) {.checkbox-group.vertical.svelte-
|
|
648
|
-
}.inner.svelte-
|
|
649
|
-
@media (max-height: 400px) {.content.small.svelte-
|
|
650
|
-
}.content.medium.svelte-
|
|
651
|
-
@media (max-height: 600px) {.content.medium.svelte-
|
|
652
|
-
}.content.large.svelte-
|
|
653
|
-
@media (max-height: 800px) {.content.large.svelte-
|
|
654
|
-
}.content.x-large.svelte-
|
|
655
|
-
@media (max-height: 1000px) {.content.x-large.svelte-
|
|
656
|
-
}:is(.header.svelte-
|
|
657
|
-
@media (width < 768px) {.footer.svelte-
|
|
658
|
-
}.body.svelte-
|
|
659
|
-
@media (width < 768px) {.body.svelte-
|
|
660
|
-
}`}}));function hL(e,t){O(t,!0);let n=J(t,`open`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`]);sL(e,Zs(()=>r,{role:`alertdialog`,showCancel:!1,get open(){return n()},set open(e){n(e)}})),k()}var Wae=s((()=>{Q(),Y(),mL()}));function gL(e,t){O(t,!0);let n=J(t,`open`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`]);sL(e,Zs(()=>r,{role:`alertdialog`,get open(){return n()},set open(e){n(e)}})),k()}var Gae=s((()=>{Q(),Y(),mL()}));function _L(e,t){let n=Ia();O(t,!0),K(e,bL);let r=J(t,`value`,15),i=J(t,`element`,15),a=J(t,`role`,3,`textbox`),o=J(t,`keyShortcuts`,3,void 0),s=J(t,`dir`,3,void 0),c=J(t,`name`,3,void 0),l=J(t,`showInlineLabel`,3,!1),u=J(t,`inputmode`,3,`text`),d=J(t,`flex`,3,!1),f=J(t,`monospace`,3,!1),p=J(t,`debounce`,3,!1),m=J(t,`hidden`,3,!1),h=J(t,`disabled`,3,!1),g=J(t,`readonly`,3,!1),_=J(t,`required`,3,!1),v=J(t,`invalid`,3,!1),y=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`role`,`keyShortcuts`,`dir`,`name`,`showInlineLabel`,`inputmode`,`flex`,`monospace`,`debounce`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`aria-label`,`children`,`oninput`]),b=M(()=>typeof p()==`number`?p():300),x=0;ti(()=>()=>{clearTimeout(x)});let S=e=>{r(i()?.value),t.oninput?.(e)},C=e=>{let t=e;p()?(clearTimeout(x),x=setTimeout(()=>{S(t)},z(b))):S(t)};var w=yL();let ee;var T=F(w);bs(T,()=>({...y,value:r(),type:`text`,role:a(),dir:s(),name:c(),tabindex:h()?-1:0,disabled:h()||void 0,readonly:g()||void 0,inputmode:u(),"aria-label":t[`aria-label`],"aria-hidden":m(),"aria-disabled":h(),"aria-readonly":g(),"aria-required":_(),"aria-invalid":v(),oninputcapture:C}),void 0,void 0,void 0,`svelte-
|
|
661
|
-
.label.svelte-
|
|
662
|
-
@media (pointer: coarse) {[role=listbox].svelte-
|
|
663
|
-
}[role=listbox].svelte-
|
|
664
|
-
@media (pointer: coarse) {.menu.svelte-
|
|
665
|
-
}.menu.svelte-
|
|
666
|
-
@media (pointer: coarse) {.radio-group.vertical.svelte-
|
|
667
|
-
}.radio-group.svelte-1omz5h2 [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-1omz5h2 [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-1omz5h2 [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-1omz5h2 {display:contents;}`}}));function aoe(e,t){let n=Ia();O(t,!0),K(e,gR);let r=J(t,`checked`,7,!1),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,3,void 0),l=J(t,`label`,3,void 0),u=J(t,`group`,15),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),f=N(void 0);ti(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=hR(),m=e=>{e.target.matches(`button`)||z(f)?.click()};bs(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[Cs]:{disabled:a()}}),void 0,void 0,void 0,`svelte-1mf9oz0`);var h=F(p);lI(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(f)},set element(e){P(f,e,!0)}});var g=L(h,2),_=e=>{var r=mR(),i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)},o=e=>{var t=Fa();R(()=>W(t,l())),U(e,t)};G(i,e=>{t.children?e(a):e(o,-1)}),D(r),R(()=>q(r,`id`,`${n}-label`)),U(e,r)};G(g,e=>{(t.children||l())&&e(_)}),D(p),U(e,p),k()}var mR,hR,gR,ooe=s((()=>{Q(),Y(),gI(),mR=V(`<label class="svelte-1mf9oz0"><!></label>`),hR=V(`<span><!> <!></span>`),gR={hash:`svelte-1mf9oz0`,code:`.radio.svelte-1mf9oz0 {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.radio.svelte-1mf9oz0 :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-1mf9oz0 :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-1mf9oz0 :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-1mf9oz0 :active button {background-color:var(--sui-active-background-color);}.radio.svelte-1mf9oz0 :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-1mf9oz0 button {flex:none;justify-content:center;overflow:hidden;margin:0 !important;border-width:1.5px;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.radio.svelte-1mf9oz0 button::before {content:"";border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 7px);height:calc(var(--sui-checkbox-height) - 7px);background-color:var(--sui-primary-accent-color);opacity:0;transition:all 200ms;will-change:opacity;}.radio.svelte-1mf9oz0 button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-1mf9oz0 button[aria-checked=true]::before {opacity:1;}.radio.svelte-1mf9oz0 label:where(.svelte-1mf9oz0) {cursor:inherit;}`}}));function soe(e,t){O(t,!0),K(e,yR);let n=J(t,`disabled`,3,!1),r=J(t,`showHandleBar`,3,!1),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`children`,`onResizeStart`,`onResizeEnd`]),a=Rt(`paneGroup`);if(!a)throw Error(`<ResizableHandle> must be used inside a <ResizablePaneGroup>`);let o=a.registerHandle(),s=M(()=>a.direction===`horizontal`),c=M(()=>a.sizes),l=M(()=>z(c)[o]??0),u=M(()=>Math.max(a.paneDefs[o]?.minSize??0,100-a.paneDefs.reduce((e,t,n)=>e+(n===o?0:t.maxSize),0))),d=M(()=>Math.min(a.paneDefs[o]?.maxSize??100,100-a.paneDefs.reduce((e,t,n)=>e+(n===o?0:t.minSize),0))),f=N(void 0),p=N(!1),m=N(0),h=N(0),g=N(!1),_=()=>{let e=z(f)?.closest(`.resizable-pane-group`);return e?z(s)?e.clientWidth:e.clientHeight:0},v=e=>{let{screenX:t,screenY:r,pointerId:i}=e;if(n()||!z(p)||i!==z(h))return;e.preventDefault(),e.stopPropagation();let c=z(s)?t:r,l=c-z(m),u=_();if(!u)return;let d=l/u*100;z(s)&&xh()&&(d=-d),P(m,c,!0),a.resize(o,d)},y=e=>{!z(p)||e.pointerId!==z(h)||(P(p,!1),P(m,0),P(h,0),document.removeEventListener(`pointermove`,v),document.removeEventListener(`pointerup`,y),document.removeEventListener(`pointercancel`,y),t.onResizeEnd?.())},b=e=>{n()||(e.preventDefault(),e.stopPropagation(),P(p,!0),P(m,z(s)?e.screenX:e.screenY,!0),P(h,e.pointerId,!0),t.onResizeStart?.(),document.addEventListener(`pointermove`,v),document.addEventListener(`pointerup`,y),document.addEventListener(`pointercancel`,y))},x=e=>{if(n())return;let{key:r,shiftKey:i}=e,c=i?10:1,l=0;if(r===`Enter`){e.preventDefault(),e.stopPropagation(),a.toggleCollapse(o);return}if(r===`Home`){e.preventDefault(),e.stopPropagation(),a.resize(o,-100);return}if(r===`End`){e.preventDefault(),e.stopPropagation(),a.resize(o,100);return}if(z(s)){let e=xh();if(r===`ArrowLeft`)l=e?c:-c;else if(r===`ArrowRight`)l=e?-c:c;else return}else if(r===`ArrowUp`)l=-c;else if(r===`ArrowDown`)l=c;else return;e.preventDefault(),e.stopPropagation(),z(g)||(P(g,!0),t.onResizeStart?.()),a.resize(o,l)},S=()=>{z(g)&&(P(g,!1),t.onResizeEnd?.())};var C=vR();bs(C,e=>({...i,role:`separator`,tabindex:n()?-1:0,"aria-orientation":z(s)?`vertical`:`horizontal`,"aria-valuenow":e,"aria-valuemin":z(u),"aria-valuemax":z(d),"aria-controls":a.paneDefs[o]?.id,"aria-disabled":n()||void 0,class:`sui resizable-handle ${t.class??``??``}`,onpointerdown:b,onkeydown:x,onblur:S,[Cs]:{horizontal:z(s),vertical:!z(s),disabled:n(),dragging:z(p)}}),[()=>Math.round(z(l))],void 0,void 0,`svelte-ab4he`);var w=F(C),ee=e=>{var n=H();Eo(I(n),()=>t.children),U(e,n)},T=e=>{U(e,_R())};G(w,e=>{t.children?e(ee):r()&&e(T,1)}),D(C),Ws(C,e=>P(f,e),()=>z(f)),U(e,C),k()}var _R,vR,yR,coe=s((()=>{Q(),Y(),Z(),sc(),_R=V(`<div role="none" class="handle-bar svelte-ab4he"></div>`),vR=V(`<div><!></div>`),yR={hash:`svelte-ab4he`,code:`.resizable-handle.svelte-ab4he {position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;touch-action:none;outline-offset:0;background-color:transparent;transition:background-color 200ms;}.resizable-handle.svelte-ab4he:focus-visible, .resizable-handle.svelte-ab4he:hover, .resizable-handle.dragging.svelte-ab4he {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent);}.resizable-handle.svelte-ab4he:focus-visible .handle-bar:where(.svelte-ab4he), .resizable-handle.svelte-ab4he:hover .handle-bar:where(.svelte-ab4he), .resizable-handle.dragging.svelte-ab4he .handle-bar:where(.svelte-ab4he) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-ab4he {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-ab4he {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-ab4he .handle-bar:where(.svelte-ab4he) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-ab4he {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-ab4he .handle-bar:where(.svelte-ab4he) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-ab4he .handle-bar:where(.svelte-ab4he) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`}}));function loe(e,t){O(t,!0),K(e,xR);let n=J(t,`direction`,3,`horizontal`),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),i=Cr([]),a=Cr([]),o=Cr([]),s=0,c=()=>{if(!i.length)return;let e=i.reduce((e,t)=>e+(t.defaultSize??0),0),t=i.filter(e=>e.defaultSize===void 0).length,n=Math.max(0,100-e),r=t>0?n/t:0,o=i.map(e=>e.defaultSize??r);a.splice(0,a.length,...o)},l=(e,n)=>{let r=e,o=e+1;if(r<0||o>=a.length)return;let{minSize:s=0,maxSize:c=100}=i[r],{minSize:l=0,maxSize:u=100}=i[o],d=a[r],f=a[o],p=Math.min(c-d,f-l),m=Math.min(d-s,u-f),h=n>0?Math.min(n,p):-Math.min(-n,m);a[r]=d+h,a[o]=f-h,t.onResize?.({sizes:a.map(e=>Number(e.toFixed(1)))})};zt(`paneGroup`,{get direction(){return n()},sizes:a,registerPane:({id:e,defaultSize:t,minSize:n,maxSize:r})=>{let a=i.length;return i.push({id:e,defaultSize:t,minSize:n,maxSize:r}),{index:a}},registerHandle:()=>{let e=s;return s+=1,e},resize:l,toggleCollapse:e=>{let{minSize:t=0}=i[e];if(o[e]!==void 0){let t=o[e]-a[e];o[e]=void 0,l(e,t)}else o[e]=a[e],l(e,-(a[e]-t))},paneDefs:i}),ti(()=>{i.length&&!a.length&&c()});var u=bR();bs(u,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-geyac`),Eo(F(u),()=>t.children??E),D(u),U(e,u),k()}var bR,xR,uoe=s((()=>{Q(),Y(),sc(),bR=V(`<div><!></div>`),xR={hash:`svelte-geyac`,code:`.resizable-pane-group.svelte-geyac {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-geyac {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-geyac {flex-direction:column;width:100%;height:100%;}`}}));function SR(e,t){let n=Ia();O(t,!0);let r=J(t,`defaultSize`,3,void 0),i=J(t,`minSize`,3,0),a=J(t,`maxSize`,3,100),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),s=Rt(`paneGroup`);if(!s)throw Error(`<ResizablePane> must be used inside a <ResizablePaneGroup>`);let{index:c}=s.registerPane({id:n,defaultSize:r(),minSize:i(),maxSize:a()}),l=M(()=>s.direction),u=M(()=>s.sizes[c]),d=M(()=>z(u)===void 0?r()??0:z(u));ti(()=>{z(u)!==void 0&&B(()=>t.onResize?.({size:Number(z(u).toFixed(1))}))});var f=CR();bs(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[ws]:{"flex-basis":`${z(d)??``}%`,"flex-grow":`0`,"flex-shrink":`0`,"overflow-x":z(l)===`horizontal`?`auto`:void 0,"overflow-y":z(l)===`vertical`?`auto`:void 0}})),Eo(F(f),()=>t.children??E),D(f),U(e,f),k()}var CR,doe=s((()=>{Q(),Y(),sc(),CR=V(`<div><!></div>`)}));function wR(e,t){O(t,!0),K(e,DR);let n=J(t,`itemChunkSize`,3,25),r=M(n),i=N(void 0),a=M(()=>t.items.length>z(r)),o=new IntersectionObserver(([{isIntersecting:e}])=>{e&&(z(a)?P(r,z(r)+n()):o.disconnect())});ti(()=>{z(i)&&o.observe(z(i))});var s=ER(),c=I(s);mo(c,19,()=>t.items.slice(0,z(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=H();Eo(I(i),()=>t.renderItem,()=>z(n),()=>z(r)),U(e,i)});var l=L(c,2),u=e=>{var t=TR();Ws(t,e=>P(i,e),()=>z(i)),U(e,t)};G(l,e=>{z(a)&&e(u)}),U(e,s),k()}var TR,ER,DR,foe=s((()=>{Q(),Y(),TR=V(`<div role="none" class="spinner svelte-nuii1p"></div>`),ER=V(`<!> <!>`,1),DR={hash:`svelte-nuii1p`,code:`.spinner.svelte-nuii1p {height:1px;}`}}));function OR(e,t){let n=Ia();O(t,!0),K(e,AR);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`hidden`,3,!1),o=J(t,`disabled`,3,!1),s=J(t,`readonly`,3,!1),c=J(t,`required`,3,!1),l=J(t,`invalid`,3,!1),u=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),d=N(void 0);var f={focus:()=>{z(d)?.focus()}},p=kR();let m;var h=F(p),g=F(h),_=e=>{var n=H();Eo(I(n),()=>t.searchIcon),U(e,n)},v=e=>{UF(e,{name:`search`})};G(g,e=>{t.searchIcon?e(_):e(v,-1)}),D(h);var y=L(h,2);_L(y,Zs({dir:`auto`},()=>u,{role:`searchbox`,get id(){return n},get flex(){return i()},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},inputmode:`search`,get element(){return z(d)},set element(e){P(d,e,!0)},get value(){return r()},set value(e){r(e)}}));var b=L(y,2),x=e=>{{let i=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.closeIcon),U(e,n)},a=e=>{UF(e,{name:`close`})};G(r,e=>{t.closeIcon?e(i):e(a,-1)}),U(e,n)},a=M(()=>X(`_sui.clear`));lI(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{r(``),z(d)?.focus(),t.onClear?.()},startIcon:i,$$slots:{startIcon:!0}})}};return G(b,e=>{r()&&e(x)}),D(p),R(()=>{q(p,`role`,a()?void 0:`none`),m=cs(p,1,`sui search-bar ${t.class??``}`,`svelte-mnpwqc`,m,{flex:i(),disabled:o(),readonly:s()}),q(p,`hidden`,a()),q(p,`aria-hidden`,a())}),U(e,p),k(f)}var kR,AR,jR=s((()=>{Q(),Y(),Z(),gI(),WF(),xL(),kR=V(`<div><span role="none" class="svelte-mnpwqc"><!></span> <!> <!></div>`),AR={hash:`svelte-mnpwqc`,code:`.search-bar.svelte-mnpwqc {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.search-bar.flex.svelte-mnpwqc:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-mnpwqc > span:where(.svelte-mnpwqc) {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--sui-button-medium-height);height:var(--sui-button-medium-height);}.search-bar.svelte-mnpwqc .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-mnpwqc > button {position:absolute;inset-block:0;inset-inline-start:auto;inset-inline-end:0;z-index:2;margin:0 !important;height:var(--sui-button-medium-height);}.search-bar.svelte-mnpwqc .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-mnpwqc .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-mnpwqc input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`}}));function poe(e,t){let n=Ia();O(t,!0),K(e,IR);let r=`[role="option"][aria-selected="true"]`,i=J(t,`value`,15),a=J(t,`hidden`,3,!1),o=J(t,`disabled`,3,!1),s=J(t,`readonly`,3,!1),c=J(t,`required`,3,!1),l=J(t,`invalid`,3,!1),u=J(t,`editable`,3,!0),d=J(t,`position`,3,`bottom-left`),f=J(t,`filterThreshold`,3,5),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`children`,`chevronIcon`,`onChange`]),m=N(!1),h=N(void 0),g=N(void 0),_=N(void 0),v=N(``),y=N(!1),b=N(``),x=N(!0),S=M(()=>z(h)??z(g)),C=()=>{let e=z(_)?.querySelector(`[role="option"][data-value="${i()}"]`);e&&(P(v,e.dataset.label||e.dataset.value||e.textContent||``,!0),e.getAttribute(`aria-selected`)!==`true`&&(z(_)?.querySelector(r)?.setAttribute(`aria-selected`,`false`),e.setAttribute(`aria-selected`,`true`)))},w=e=>{let n=kI(e);i(n.value),C(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))};ti(()=>{z(_)&&globalThis.requestAnimationFrame(()=>{let e=z(_)?.querySelector(r);e&&w(e)})}),ti(()=>{i(),C()});var ee=FR(),T=I(ee);bs(T,()=>({...p,role:`none`,class:`sui combobox ${t.class??``}`,hidden:a(),[Cs]:{editable:u()}}),void 0,void 0,void 0,`svelte-cx7er7`);var te=F(T),ne=e=>{var t=MR();bs(t,()=>({...p,role:`combobox`,id:n,tabindex:o()?-1:0,"aria-controls":`${n}-popup`,"aria-expanded":z(m),"aria-hidden":a(),"aria-disabled":o(),"aria-readonly":s(),"aria-required":c(),"aria-invalid":l(),"aria-haspopup":`listbox`,[Cs]:{selected:i()!==void 0}}),void 0,void 0,void 0,`svelte-cx7er7`);var r=F(t);ZF(F(r),{children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>i()===void 0?X(`_sui.combobox.select_an_option`):z(v)]),U(e,n)},$$slots:{default:!0}}),D(r),D(t),Ws(t,e=>P(h,e),()=>z(h)),U(e,t)},re=e=>{{let t=M(()=>i()===void 0?``:String(i()));_L(e,Zs(()=>p,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return z(t)},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},get"aria-controls"(){return`${n}-popup`},get"aria-expanded"(){return z(m)},"aria-haspopup":`listbox`,get element(){return z(g)},set element(e){P(g,e,!0)}}))}};G(te,e=>{u()?e(re,-1):e(ne)});var ie=L(te,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{UF(e,{name:`expand_more`})};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>!u()||s()||o()?-1:0),i=M(()=>z(m)?X(`_sui.collapse`):X(`_sui.expand`));lI(ie,{variant:`ghost`,iconic:!0,get hidden(){return a()},get disabled(){return o()},get tabindex(){return z(r)},get"aria-label"(){return z(i)},get"aria-controls"(){return`${n}-popup`},get"aria-expanded"(){return z(m)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!o()&&!s()&&P(m,!z(m))},startIcon:e,$$slots:{startIcon:!0}})}D(T),aI(L(T,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return z(S)},get position(){return d()},touchOptimized:!0,onOpen:()=>{P(y,f()===-1?!1:(z(_)?.querySelectorAll(`[role="option"]`)?.length??0)>f(),!0),P(b,``)},get content(){return z(_)},set content(e){P(_,e,!0)},get open(){return z(m)},set open(e){P(m,e,!0)},children:(e,r)=>{var i=PR(),a=F(i),o=e=>{{let t=M(()=>X(`_sui.combobox.filter_options`));OR(e,{flex:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),z(_)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return z(b)},set value(e){P(b,e,!0)}})}};G(a,e=>{z(y)&&e(o)});var s=L(a,2);zL(s,{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return z(b)},onclick:e=>{e.target.matches(`[role="option"]`)&&w(e.target)},onFilter:e=>{P(x,!!e.detail.matched)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}});var c=L(s,2),l=e=>{var t=NR(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`_sui.combobox.no_matching_options`)]),U(e,t)};G(c,e=>{z(x)||e(l)}),D(i),U(e,i)},$$slots:{default:!0}}),U(e,ee),k()}var MR,NR,PR,FR,IR,LR=s((()=>{Q(),Y(),Z(),AI(),gI(),WF(),HL(),jR(),xL(),QF(),cI(),MR=V(`<div><div role="none" class="label svelte-cx7er7"><!></div></div>`),NR=V(`<div role="alert" class="no-options svelte-cx7er7"> </div>`),PR=V(`<div role="none" class="combobox-inner svelte-cx7er7"><!> <!> <!></div>`),FR=V(`<div><!> <!></div> <!>`,1),IR={hash:`svelte-cx7er7`,code:`.combobox.svelte-cx7er7 {margin:var(--sui-focus-ring-width);display:flex;align-items:center;position:relative;min-width:var(--sui-combobox-min-width, calc(var(--sui-option-height) * 5));}.combobox.svelte-cx7er7 div[role=combobox]:where(.svelte-cx7er7) {display:flex;align-items:center;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-textbox-border-radius);padding-block:0;padding-inline-start:calc(var(--sui-textbox-height) / 4);padding-inline-end:var(--sui-textbox-height);width:100%;height:var(--sui-textbox-height);color:var(--sui-control-foreground-color);background-color:var(--sui-disabled-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;cursor:pointer;transition:all 200ms;}.combobox.svelte-cx7er7 div[role=combobox]:where(.svelte-cx7er7):not(.selected) {font-style:italic;}.combobox.svelte-cx7er7 div[role=combobox]:where(.svelte-cx7er7):is(:where(.svelte-cx7er7):hover, :where(.svelte-cx7er7):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-cx7er7 div[role=combobox][aria-invalid=true]:where(.svelte-cx7er7) {border-color:var(--sui-error-border-color);}.combobox.svelte-cx7er7 div[role=combobox]:where(.svelte-cx7er7) .label:where(.svelte-cx7er7) {width:100%;}.combobox.svelte-cx7er7 .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-cx7er7 > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-cx7er7 > button {position:absolute;inset-block-start:0;inset-inline-end:0;z-index:1;margin:0 !important;border-start-start-radius:0;border-end-start-radius:0;background-color:transparent !important;}.combobox.svelte-cx7er7 > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-cx7er7 :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-cx7er7 .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-cx7er7 input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-cx7er7 + [role=listbox] {position:fixed;z-index:100;border-radius:var(--sui-control-medium-border-radius);box-shadow:0 8px 16px var(--sui-popup-shadow-color);overflow:auto;background-color:var(--sui-secondary-background-color);-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px);
|
|
668
|
-
/* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-cx7er7 + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-cx7er7 {display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-cx7er7 .sui.search-bar {flex:none;}.combobox-inner.svelte-cx7er7 .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-cx7er7 .no-options:where(.svelte-cx7er7) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`}}));function moe(e){let t=e-1;return t*t*t+1}var hoe=s((()=>{}));function goe(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=moe}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=_oe(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function _oe(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var voe=s((()=>{hoe()}));function RR(e,t){O(t,!0);let n=J(t,`value`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`readonly`,3,!1),o=J(t,`required`,3,!1),s=J(t,`invalid`,3,!1),c=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`]);poe(e,Zs(()=>c,{get class(){return`sui select ${t.class??``}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return a()},get required(){return o()},get invalid(){return s()},get onChange(){return t.onChange},editable:!1,get value(){return n()},set value(e){n(e)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}})),k()}var zR=s((()=>{Q(),Y(),LR()}));function yoe(e,t){O(t,!0),K(e,VR);let n=J(t,`values`,31,()=>Cr([])),r=J(t,`max`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),u=M(()=>new Map(t.options.map(e=>[e.value,e]))),d=M(()=>xh()?`ArrowRight`:`ArrowLeft`),f=M(()=>xh()?`ArrowLeft`:`ArrowRight`),p=N(void 0),m=N(void 0),h=N(void 0),g=N(void 0),_=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},v=async(e,t)=>{_(e,t),await Bi(),z(p)?.querySelectorAll(`.label[tabindex]`)?.[t]?.focus()};var y=boe();let b;var x=F(y);mo(x,30,n,e=>e,(e,r,i)=>{let s=M(()=>z(u).get(r)),c=M(()=>z(s)?.label||z(s)?.value||r);var l=BR();let p;var m=F(l),_=F(m,!0);D(m);var y=L(m,2),b=e=>{{let i=e=>{UF(e,{name:`close`})},s=M(()=>a()||o()),l=M(()=>X(`_sui.select_tags.remove_x`,{values:{name:z(c)}}));lI(e,{iconic:!0,size:`small`,get disabled(){return z(s)},get"aria-label"(){return z(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};G(y,e=>{z(s)&&e(b)}),D(l),R(()=>{q(l,`draggable`,!a()&&!o()),p=cs(l,1,`svelte-1g63og`,null,p,{"drag-source":z(h)===z(i),"drop-before":z(g)===z(i)&&z(h)!==z(i)&&z(h)!==z(i)-1,"drop-after":z(g)===n().length&&z(i)===n().length-1&&z(h)!==n().length-1}),q(m,`tabindex`,a()||o()?void 0:0),W(_,z(c))}),xa(`dragstart`,l,e=>{P(h,z(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,z(c)),e.dataTransfer.effectAllowed=`move`)}),xa(`dragover`,l,e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let t=e.currentTarget.getBoundingClientRect();P(g,e.clientX<t.left+t.width/2===xh()?z(i)+1:z(i),!0)}),xa(`drop`,l,async e=>{e.preventDefault();let t=z(h),n=z(g);P(h,void 0),P(g,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await v(t,n>t?n-1:n)}),xa(`dragend`,l,()=>{P(h,void 0),P(g,void 0)}),Sa(`keydown`,m,async e=>{let{key:t}=e,r=t===z(d)&&z(i)>0?z(i)-1:t===z(f)&&z(i)<n().length-1?z(i)+1:t===`Home`&&z(i)>0?0:t===`End`&&z(i)<n().length-1?n().length-1:-1;r!==-1&&(e.preventDefault(),await v(z(i),r))}),zo(l,()=>goe,()=>({duration:200})),U(e,l)}),D(x);var S=L(x,2),C=e=>{{let r=M(()=>a()||o());RR(e,Zs(()=>l,{get disabled(){return z(r)},get readonly(){return o()},get required(){return s()},get invalid(){return c()},onChange:()=>{z(m)&&(n([...n(),z(m)]),t.onAddValue?.(new CustomEvent(`AddValue`,{detail:{value:z(m)}})),P(m,void 0))},get value(){return z(m)},set value(e){P(m,e,!0)},children:(e,r)=>{var i=H();mo(I(i),17,()=>t.options,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value,a=()=>z(t).searchValue;var o=H(),s=I(o),c=e=>{KL(e,{get label(){return r()},get value(){return i()},get searchValue(){return a()}})},l=M(()=>!n().includes(i()));G(s,e=>{z(l)&&e(c)}),U(e,o)}),U(e,i)},$$slots:{default:!0}}))}};G(S,e=>{(typeof r()!=`number`||n().length<r())&&n().length<t.options.length&&e(C)}),D(y),Ws(y,e=>P(p,e),()=>z(p)),R(e=>{b=cs(y,1,`sui select-tags ${t.class??``}`,`svelte-1g63og`,b,{disabled:a()||o()}),q(y,`hidden`,i()),q(x,`aria-label`,e)},[()=>X(`_sui.select_tags.selected_options`)]),U(e,y),k()}var BR,boe,VR,xoe=s((()=>{Q(),Y(),Z(),sc(),voe(),gI(),WF(),XL(),zR(),BR=V(`<span role="none"><span class="label svelte-1g63og" role="option" aria-selected="true"> </span> <!></span>`),boe=V(`<div role="none"><span role="listbox" aria-multiselectable="true" class="svelte-1g63og"></span> <!></div>`),VR={hash:`svelte-1g63og`,code:`.select-tags.svelte-1g63og {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-1g63og {pointer-events:none;}.select-tags.disabled.svelte-1g63og > :where(.svelte-1g63og) {opacity:0.5;}.select-tags.svelte-1g63og span[role=listbox]:where(.svelte-1g63og) {display:contents;}.select-tags.svelte-1g63og span[draggable]:where(.svelte-1g63og) {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);padding:0;padding-inline-start:8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);cursor:grab;outline:none;}.select-tags.svelte-1g63og span[draggable]:where(.svelte-1g63og):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-primary-accent-color-translucent);outline-offset:1px;}.select-tags.svelte-1g63og span[draggable].drag-source:where(.svelte-1g63og) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-1g63og span[draggable].drop-before:where(.svelte-1g63og)::before, .select-tags.svelte-1g63og span[draggable].drop-after:where(.svelte-1g63og)::after {content:"";position:absolute;top:0;bottom:0;margin-left:-1px;border-radius:1px;width:4px;background-color:var(--sui-primary-accent-color);pointer-events:none;}.select-tags.svelte-1g63og span[draggable].drop-before:where(.svelte-1g63og)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1g63og span[draggable].drop-after:where(.svelte-1g63og)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1g63og span[draggable]:where(.svelte-1g63og) .label:where(.svelte-1g63og) {outline:none;}.select-tags.svelte-1g63og span[draggable]:where(.svelte-1g63og) .icon {font-size:var(--sui-font-size-large);}`},Ca([`keydown`])}));function Soe(e,t){O(t,!0),K(e,GR);let n=J(t,`value`,15,0),r=J(t,`min`,3,0),i=J(t,`max`,3,100),a=J(t,`sliderLabel`,3,``),o=J(t,`values`,15,void 0),s=J(t,`sliderLabels`,3,void 0),c=J(t,`step`,3,1),l=J(t,`optionLabels`,19,()=>[]),u=J(t,`hidden`,3,!1),d=J(t,`disabled`,3,!1),f=J(t,`readonly`,3,!1),p=J(t,`invalid`,3,!1),m=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),h=M(()=>Array.isArray(o())),g=N(void 0),_=N(0),v=N(Cr([])),y=N(Cr([])),b=N(0),x=N(0),S=Cr([0,0]),C=N(!1),w=N(0),ee=N(0),T=e=>{let t=xh()?z(_)-e:e;if(t<0||t>z(_))return;let r=z(v).findLastIndex(e=>e<=t),i=z(v).findIndex(e=>t<=e),a=Math.abs(z(v)[r]-t)<Math.abs(z(v)[i]-t)?r:i;S[z(ee)]===z(v)[a]||z(h)&&(z(ee)===0&&S[1]<=z(v)[a]||z(ee)===1&&S[0]>=z(v)[a])||(z(h)?(o(o()[z(ee)]=z(y)[a],!0),o([...o()])):n(z(y)[a]))},te=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=z(h)?o()[t]:n(),g=-1,_=xh(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=z(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m<i()&&(g=z(y).indexOf(m)+1),e.preventDefault(),e.stopPropagation()),g>-1){if(z(h)&&(t===0&&S[1]<=z(v)[g]||t===1&&S[0]>=z(v)[g]))return;z(h)?(o(o()[t]=z(y)[g],!0),o([...o()])):n(z(y)[g])}},ne=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!z(C)||n!==z(w))return;e.stopPropagation();let r=t-z(x);T(z(b)+r)},re=e=>{let{pointerId:t}=e;if(!(d()||f()||!z(C)||t!==z(w))){if(e.stopPropagation(),e.target.matches(`.base-bar, .slider-bar`)){let t=z(g).getBoundingClientRect();T(e.clientX-t.left)}P(C,!1),P(b,0),P(x,0),P(w,0),P(ee,0),document.removeEventListener(`pointermove`,ne),document.removeEventListener(`pointerup`,re),document.removeEventListener(`pointercancel`,re)}},ie=(e,t=0)=>{let{clientX:n,screenX:r,pointerId:i}=e;d()||f()||(e.stopPropagation(),P(C,!0),P(b,n-z(g).getBoundingClientRect().left),P(x,r,!0),P(w,i,!0),P(ee,t,!0),document.addEventListener(`pointermove`,ne),document.addEventListener(`pointerup`,re),document.addEventListener(`pointercancel`,re))},ae=()=>{if(z(h)){let[e,n]=o();S[0]=z(v)[z(y).indexOf(e)],S[1]=z(v)[z(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=z(v)[z(y).indexOf(n())],t.onChange?.({value:n()})},oe=()=>{if(!z(g))return;P(_,z(g).clientWidth,!0);let e=(i()-r())/c()+1,t=z(_)/(e-1),n=Array.from({length:e});P(y,n.map((e,t)=>t*c()+r(),10),!0),P(v,n.map((e,n)=>n*t),!0),ae()};ac(()=>{let e=new ResizeObserver(()=>oe()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(z(g)),t.addEventListener(`change`,oe),oe(),()=>{e.disconnect(),t.removeEventListener(`change`,oe)}}),ti(()=>{n(),o(),ae()});var se=WR();xa(`click`,Lr.body,()=>{P(C,!1)}),bs(se,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[Cs]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-1eytp8`);var ce=F(se),le=L(F(ce),2);let ue;var de=L(le,2);let fe;var E=L(de,2),pe=e=>{var t=HR();let n;R(()=>{q(t,`tabindex`,d()?-1:0),q(t,`aria-label`,s()?.[1]),q(t,`aria-hidden`,u()),q(t,`aria-disabled`,d()),q(t,`aria-readonly`,f()),q(t,`aria-invalid`,p()),q(t,`aria-valuemin`,r()),q(t,`aria-valuemax`,i()),q(t,`aria-valuenow`,o()?.[1]),n=ds(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),Sa(`pointerdown`,t,e=>ie(e,1)),Sa(`keydown`,t,e=>te(e,1)),U(e,t)};G(E,e=>{z(h)&&e(pe)});var me=L(E,2),he=e=>{var t=H();mo(I(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=UR();let i;var a=F(r,!0);D(r),R(()=>{i=ds(r,``,i,{"inset-inline-start":`${z(_)/(l().length-1)*z(n)}px`}),W(a,z(t))}),U(e,r)}),U(e,t)};G(me,e=>{l().length&&e(he)}),D(ce),Ws(ce,e=>P(g,e),()=>z(g)),D(se),R(()=>{ue=ds(le,``,ue,{"inset-inline-start":`${(z(h)?S[0]:0)??``}px`,width:`${(z(h)?S[1]-S[0]:S[0])??``}px`}),q(de,`tabindex`,d()?-1:0),q(de,`aria-label`,z(h)?s()?.[0]:a()),q(de,`aria-hidden`,u()),q(de,`aria-disabled`,d()),q(de,`aria-readonly`,f()),q(de,`aria-invalid`,p()),q(de,`aria-valuemin`,r()),q(de,`aria-valuemax`,i()),q(de,`aria-valuenow`,z(h)?o()?.[0]:n()),fe=ds(de,``,fe,{"inset-inline-start":`${S[0]??``}px`})}),Sa(`pointerdown`,ce,e=>ie(e)),Sa(`pointerdown`,de,e=>ie(e,0)),Sa(`keydown`,de,e=>te(e,0)),U(e,se),k()}var HR,UR,WR,GR,Coe=s((()=>{Q(),Y(),Z(),sc(),HR=V(`<div role="slider" class="svelte-1eytp8"></div>`),UR=V(`<span role="none" class="label svelte-1eytp8"> </span>`),WR=V(`<div><div role="none" class="base svelte-1eytp8"><div role="none" class="base-bar svelte-1eytp8"></div> <div class="slider-bar svelte-1eytp8"></div> <div role="slider" class="svelte-1eytp8"></div> <!> <!></div></div>`),GR={hash:`svelte-1eytp8`,code:`.slider.svelte-1eytp8 {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-1eytp8:hover .base-bar:where(.svelte-1eytp8) {background-color:var(--sui-hover-background-color);}.slider.svelte-1eytp8:active .base-bar:where(.svelte-1eytp8) {background-color:var(--sui-active-background-color);}.base.svelte-1eytp8 {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-1eytp8 {border-width:1px;border-style:solid;border-color:var(--sui-control-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-slider-background-color, var(--sui-secondary-background-color));transition:all 200ms;width:100%;height:100%;}.slider-bar.svelte-1eytp8 {position:absolute;top:0;height:calc(var(--sui-checkbox-height) / 2);border-radius:var(--sui-checkbox-height);background-color:var(--sui-primary-accent-color-light);}.invalid.svelte-1eytp8 .slider-bar:where(.svelte-1eytp8) {background-color:var(--sui-error-border-color);}[role=slider].svelte-1eytp8 {position:absolute;top:0;border:3px solid var(--sui-primary-accent-color-light);border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 2px);height:calc(var(--sui-checkbox-height) - 2px);background-color:var(--sui-primary-accent-color-inverted);cursor:pointer;}[role=slider].svelte-1eytp8:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-1eytp8:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-1eytp8 [role=slider]:where(.svelte-1eytp8) {border-color:var(--sui-error-border-color);}.label.svelte-1eytp8 {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-1eytp8:dir(ltr) {transform:translateX(-50%);}.label.svelte-1eytp8:dir(rtl) {transform:translateX(50%);}`},Ca([`pointerdown`,`keydown`])}));function KR(e,t){O(t,!0),K(e,JR);let n=J(t,`checked`,15),r=J(t,`label`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`]);var u=qR(),d=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};bs(u,()=>({...l,role:`switch`,class:`sui switch ${t.class??``}`,type:`button`,hidden:i(),disabled:a()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),onclick:d}),void 0,void 0,void 0,`svelte-1y56w6a`);var f=L(F(u),2),p=e=>{var t=Fa();R(()=>W(t,r())),U(e,t)},m=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)};G(f,e=>{r()?e(p):e(m,-1)}),D(u),U(e,u),k()}var qR,JR,woe=s((()=>{Q(),Y(),qR=V(`<button><span role="none" class="svelte-1y56w6a"></span> <!></button>`),JR={hash:`svelte-1y56w6a`,code:`button.svelte-1y56w6a {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-1y56w6a:focus-visible {outline:0;}button.svelte-1y56w6a:focus-visible span:where(.svelte-1y56w6a) {outline-color:var(--sui-primary-accent-color-translucent);}button[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a)::before {--translateX: var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height);border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}button[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-1y56w6a {position:relative;width:calc(var(--sui-checkbox-height) * 2);height:var(--sui-checkbox-height);padding:0 2px;display:inline-flex;align-items:center;border-width:1.5px;border-style:solid;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-control-background-color);transition:all 200ms;}span.svelte-1y56w6a::before {display:inline-block;width:calc(var(--sui-checkbox-height) - 6px);height:calc(var(--sui-checkbox-height) - 6px);border-radius:var(--sui-checkbox-height);background-color:var(--sui-checkbox-border-color);transition:all 200ms;content:"";}`}}));function YR(e,t){K(e,ZR);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=XR();bs(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-1vz5acb`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var XR,ZR,Toe=s((()=>{Q(),Y(),XR=V(`<div><!></div>`),ZR={hash:`svelte-1vz5acb`,code:`.table-cell.svelte-1vz5acb {display:table-cell;}`}}));function Eoe(e,t){K(e,$R);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=QR();bs(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-1dh0ns3`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var QR,$R,Doe=s((()=>{Q(),Y(),QR=V(`<div><!></div>`),$R={hash:`svelte-1dh0ns3`,code:`.table-row.svelte-1dh0ns3 {display:table-row;height:var(--sui-primary-row-height);}`}}));function Ooe(e,t){K(e,tz);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=ez();bs(r,()=>({...n,role:`table`,class:`sui table ${t.class??``}`}),void 0,void 0,void 0,`svelte-xiqmwg`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var ez,tz,koe=s((()=>{Q(),Y(),ez=V(`<div><!></div>`),tz={hash:`svelte-xiqmwg`,code:`.table.svelte-xiqmwg {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-xiqmwg {border-collapse:collapse;}.table.data.svelte-xiqmwg :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}}));function Aoe(e,t){O(t,!0),K(e,rz);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`name`,3,void 0),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`children`,`onChange`]),s=N(void 0),c=N(void 0),l=()=>{globalThis.requestAnimationFrame(()=>{let e=z(s)?.querySelector(`[role="tab"][aria-selected="true"]`);if(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;P(c,Object.entries({top:t,left:n,width:r,height:i}).map(([e,t])=>`${e}: ${t}px`).join(`; `),!0)}else P(c,void 0)})};ac(()=>{let e=new ResizeObserver(()=>{l()});return e.observe(z(s)),()=>{e.disconnect()}});var u=nz(),d=()=>{l()},f=e=>{l(),t.onChange?.(e)};bs(u,()=>({...o,role:`tablist`,class:`sui tab-list ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"data-name":a()||void 0,onInitialized:d,onChange:f}),void 0,void 0,void 0,`svelte-1s3yims`);var p=F(u);Eo(F(p),()=>t.children??E),D(p);var m=L(p,2);D(u),Ws(u,e=>P(s,e),()=>z(s)),Xo(u,FI),R(()=>{p.inert=r(),ds(m,z(c))}),U(e,u),k()}var nz,rz,joe=s((()=>{Q(),Y(),sc(),II(),nz=V(`<div><div role="none" class="inner svelte-1s3yims"><!></div> <div role="none" class="indicator svelte-1s3yims"></div></div>`),rz={hash:`svelte-1s3yims`,code:`.tab-list.svelte-1s3yims {flex:none;position:relative;display:flex;align-items:center;margin:var(--sui-tab-list-margin, var(--sui-focus-ring-width));border-color:var(--sui-tab-list-border-color, var(--sui-control-border-color));border-radius:var(--sui-tab-list-border-radius, 0);background-color:var(--sui-tab-list-background-color, transparent);}.tab-list[aria-orientation=horizontal].svelte-1s3yims {gap:var(--sui-horizontal-tab-list-gap, var(--sui-tab-list-gap, 8px));margin-block:var(--sui-horizontal-tab-list-margin-block, 0 32px);margin-inline:var(--sui-horizontal-tab-list-margin-inline, 0);border-block-width:var(--sui-horizontal-tab-list-border-block-width, 0 1px);border-inline-width:var(--sui-horizontal-tab-list-border-inline-width, 0 0);padding:var(--sui-horizontal-tab-list-padding, var(--sui-tab-list-padding, 0 16px));}.tab-list[aria-orientation=horizontal].svelte-1s3yims button {width:var(--sui-horizontal-tab-width, var(--sui-tab-width, auto));height:var(--sui-horizontal-tab-height, var(--sui-tab-height, 100%));justify-content:var(--sui-horizontal-tab-justify-content, center);}.tab-list[aria-orientation=horizontal].svelte-1s3yims .indicator:where(.svelte-1s3yims) {border-block-width:var(--sui-horizontal-tab-list-indicator-border-block-width, 0 2px);border-inline-width:var(--sui-horizontal-tab-list-indicator-border-inline-width, 0 0);}.tab-list[aria-orientation=vertical].svelte-1s3yims {gap:var(--sui-vertical-tab-list-gap, var(--sui-tab-list-gap, 8px));flex-direction:column;margin-block:var(--sui-vertical-tab-list-margin-block, 0);margin-inline:var(--sui-vertical-tab-list-margin-inline, 0 32px);border-block-width:var(--sui-vertical-tab-list-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-border-inline-width, 0 1px);padding:var(--sui-vertical-tab-list-padding, var(--sui-tab-list-padding, 8px 0));width:var(--sui-vertical-tab-list-width, auto);}.tab-list[aria-orientation=vertical].svelte-1s3yims button {justify-content:var(--sui-vertical-tab-justify-content, flex-start);padding-inline-end:32px;width:var(--sui-vertical-tab-width, var(--sui-tab-width, 100%));height:var(--sui-vertical-tab-height, var(--sui-tab-height, auto));}.tab-list[aria-orientation=vertical].svelte-1s3yims .indicator:where(.svelte-1s3yims) {border-block-width:var(--sui-vertical-tab-list-indicator-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-indicator-border-inline-width, 0 2px);}.tab-list.svelte-1s3yims button {position:relative;z-index:1;border-color:transparent;margin:0 !important;border-radius:var(--sui-tab-border-radius, 0);font-family:var(--sui-tab-font-family, var(--sui-control-font-family, inherit));font-size:var(--sui-tab-font-size, var(--sui-control-font-size, inherit));font-weight:var(--sui-tab-font-weight, var(--sui-control-font-weight, var(--sui-font-weight-normal, normal)));}.inner.svelte-1s3yims {display:contents;}.indicator.svelte-1s3yims {position:absolute;z-index:0;inset:auto;border-radius:var(--sui-tab-list-indicator-border-radius, 0);border-color:var(--sui-tab-list-indicator-border-color, var(--sui-primary-accent-color-light));background-color:var(--sui-tab-list-indicator-background-color, transparent);box-shadow:var(--sui-tab-list-indicator-box-shadow, none);pointer-events:none;transition:var(--sui-tab-list-indicator-transition, all 200ms);}`}}));function Moe(e,t){K(e,az);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=iz();bs(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-11uxko2`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var iz,az,Noe=s((()=>{Q(),Y(),iz=V(`<div><!></div>`),az={hash:`svelte-11uxko2`,code:`.tab-panel.svelte-11uxko2 {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-11uxko2, .tab-panel.svelte-11uxko2:not([aria-hidden]) {display:none;}`}}));function Poe(e,t){let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`selected`,3,!1),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`]);lI(e,Zs(()=>a,{role:`tab`,get class(){return`sui tab ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get"aria-selected"(){return i()},startIcon:e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var n=H();Eo(I(n),()=>t.endIcon??E),U(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var Foe=s((()=>{Q(),Y(),gI()}));function oz(e,t){O(t,!0),K(e,cz);let n=J(t,`show`,15,!1),r=J(t,`id`,3,void 0),i=J(t,`duration`,3,5e3),a=J(t,`position`,7,`auto`),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),s=N(void 0),c=N(void 0),l=N(void 0),u=N(0);ac(()=>(P(c,document.querySelector(`.sui.toast-base.enabled`)??void 0,!0),z(c)?z(s)?.remove():(P(c,z(s),!0),z(c)&&(z(c).classList.add(`enabled`),(document.querySelector(`.sui.app-shell`)??document.body).appendChild(z(c)),z(c).showPopover&&(z(c).popover=`manual`,z(c).showPopover()))),()=>{z(l)?.remove()})),ac(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-${document.dir===`rtl`?`left`:`right`}`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),ti(()=>{z(c)&&z(l)&&z(c).appendChild(z(l))}),ti(()=>{r(),n(),i(),B(()=>{globalThis.clearTimeout(z(u))}),n()&&i()&&P(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=sz(),f=I(d);Ws(f,e=>P(s,e),()=>z(s));var p=L(f,2);bs(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-rf1u10`),Eo(F(p),()=>t.children??E),D(p),Ws(p,e=>P(l,e),()=>z(l)),U(e,d),k()}var sz,cz,lz=s((()=>{Q(),Y(),sc(),sz=V(`<div role="none" class="sui toast-base svelte-rf1u10"></div> <div><!></div>`,1),cz={hash:`svelte-rf1u10`,code:`.toast-base.svelte-rf1u10 {position:fixed;inset:16px;z-index:99999;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;margin:0;border:0;padding:0;width:auto;height:auto;background-color:transparent;font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none;}body:has(.sui.bottom-navigation:not([inert]:not([hidden]))) .toast-base {bottom:calc(var(--sui-bottom-navigation-height) + 16px);}.toast.svelte-rf1u10 {position:absolute;width:max-content;max-width:80dvw;box-shadow:0 8px 16px var(--sui-popup-shadow-color);opacity:1;transition-duration:250ms;will-change:opacity;}.toast[aria-hidden=true].svelte-rf1u10 {display:block;opacity:0;}.toast.top-left.svelte-rf1u10 {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-rf1u10 {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-rf1u10:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-rf1u10:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-rf1u10 {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-rf1u10 {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-rf1u10 {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-rf1u10:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-rf1u10:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-rf1u10 {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`}})),uz=c(((e,t)=>{
|
|
644
|
+
`,mP=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=$N,r=n?20:100,i=[...e],a=[];for(;;){let e=await $j(t,{paths:i.splice(0,r)});if(a.push(...e.project.repository.blobs.nodes),!i.length)break}return Object.fromEntries(e.map((e,t)=>[e,a[t]]))},hP=async({fetchingFiles:e,blobs:t,sizes:n={},commits:r={}})=>{let i=e.map(({path:e,sha:i})=>{let a=r[e],o={sha:i,size:Number(n[e]?.size??0),text:t[e]?.rawTextBlob??void 0,meta:{}};if(a){let{author:e,authorName:t,authorEmail:n,committedDate:r}=a,{id:i,username:s}=e??{},c=i?.match(/\d+/);o.meta={commitAuthor:{name:t,email:n,id:c?Number(c[0]):void 0,login:s},committedDate:new Date(r)}}return[e,o]});return Object.fromEntries(i)},gP=async e=>{Iy.set(0);let t=window.setInterval(()=>{Iy.update((e=0)=>e+1)},e.length/10),n=await mP(e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),pP);return window.clearInterval(t),Iy.set(void 0),hP({fetchingFiles:e,blobs:n})},_P=async()=>{await tP(),await WM({repository:$N,fetchDefaultBranchName:rP,fetchLastCommit:oP,fetchFileList:fP,fetchFileContents:gP})},vP=async e=>{let{owner:t,repo:n,branch:r=``}=$N,{path:i}=e;return Qj(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})}})),yP,bP,xP,gie=s((()=>{$x(),yP=`https://status.gitlab.com/`,bP=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,xP=async()=>{try{let{result:{status_overall:{status_code:e}}}=await Qx(bP);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`}})),SP,CP,_ie=s((()=>{Cp(),ip(),mie(),uP(),JN(),hie(),iP(),gie(),eM(),xM(),iF(),nN(),SP=()=>{let{backend:e}=A($P)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=KN,auth_endpoint:i=qN,app_id:a=``,api_root:o=GN,graphql_api_root:s=o.replace(/\/api\/.+$/,`/api/graphql`),include_credentials:c=!1}=e,{owner:l,repo:u}=t.match(/(?<owner>.+)\/(?<repo>[^/]+)$/)?.groups??{},d=`${l}/${u}`,f=`${yp(r)}/${yp(i)}`,p=bM(o,d);return Object.assign($N,{service:UN,label:WN,owner:l,repo:u,branch:n,repoURL:p,tokenPageURL:XN(p),databaseName:`${UN}:${d}`,isSelfHosted:o!==GN},eP(p,n)),Object.assign(Yj,{clientId:a,authScope:`api`,authURL:f,tokenURL:f.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:yp(o),graphqlBaseURL:yp(s),includeCredentials:c}),Object.assign(Xj,{fullPath:d,branch:n}),A(tN).devModeEnabled&&console.info(`repositoryInfo`,$N),$N},CP={isGit:!0,name:UN,label:WN,repository:$N,statusDashboardURL:yP,checkStatus:xP,init:SP,signIn:ZN,signOut:QN,fetchFiles:_P,fetchBlob:vP,commitChanges:sP,fetchFileCommits:lP}})),wP,TP,EP,DP,OP,kP,AP,jP=s((()=>{ip(),$re(),eie(),aie(),fie(),_ie(),wP={github:HN,gitlab:CP,gitea:iN,local:Oj,"test-repo":Rj},TP={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},EP=Object.keys(wP).filter(e=>e!==`local`),DP=Object.fromEntries(Object.entries(wP).filter(([,e])=>e.isGit)),OP=un(),kP=dn([OP],([e],t,n)=>{n(t=>{let n=e?wP[e]:void 0;return n&&n!==t&&n.init(),n})}),AP=un(!0)})),MP,NP,PP,FP,IP,LP=s((()=>{Z(),fb(),MP=({type:e=`error`,strKey:t,values:n={},extraStrKey:r,context:i={},collectors:a})=>{let{collection:o,collectionFile:s,typedKeyPath:c}=i,{errors:l,warnings:u}=a,d=[];o&&d.push(X(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&d.push(X(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&d.push(X(`config.error_locator.field`,{values:{field:c}}));let f=e===`error`?l:u,p=kh.current,m=d.length?`${ub(p).format(d)}: `:``,h=X(`config.${e}.${t}`,{values:n});f.add(`${m}${h}${r?` ${X(`config.${r}`)}`:``}`)},NP=({UNSUPPORTED_OPTIONS:e,config:t,context:n,collectors:r})=>{e.forEach(({type:e=`error`,prop:i,newProp:a,value:o,strKey:s=`unsupported_deprecated_option`})=>{i in t&&(o===void 0||t[i]===o)&&MP({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},PP=/^[^\s.*:<>]+$/,FP=e=>PP.test(e),IP=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return MP({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return FP(e)?n[e]===1?(MP({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(MP({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})),RP,zP,vie=s((()=>{Z(),p(),jP(),tb(),LP(),RP=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],zP=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!d(n)){r.add(X(`config.error.missing_backend`));return}let{name:a}=n;if(!a){r.add(X(`config.error.missing_backend_name`));return}if(!EP.includes(a)){let e=TP[a],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,i=X(`config.error.unsupported_${t}_backend`,{values:{name:n}});r.add(`${i} ${X(`config.error.unsupported_backend_suggestion`)}`);return}if(a in DP){let{repo:o,automatic_deployments:s,auth_methods:c,auth_type:l,app_id:u}=n;Array.isArray(c)&&!c.length&&r.add(X(`config.error.no_auth_methods`));let d=!c||c.includes(`token`);o===void 0&&r.add(X(`config.error.missing_repository`)),(typeof o!=`string`||!/(.+)\/([^/]+)$/.test(o))&&r.add(X(`config.error.invalid_repository`)),l===`implicit`&&r.add(X(`config.error.oauth_implicit_flow`).replace(`BACKEND_NAME`,a)),a===`github`&&l===`pkce`&&r.add(X(`config.error.github_pkce_unsupported`)),a===`gitlab`&&l===`pkce`&&!u&&r.add(X(`config.error.oauth_no_app_id`)),a===`gitea`&&!u&&(d?i.add(X(`config.warning.oauth_no_app_id`)):r.add(X(`config.error.oauth_no_app_id`))),s!==void 0&&eb(`automatic_deployments`),NP({UNSUPPORTED_OPTIONS:RP,config:n,context:{cmsConfig:e},collectors:t})}}})),BP,VP,HP,yie,UP,bie=s((()=>{BP=[`code`,`markdown`,`richtext`,`text`],VP=[`md`,`markdown`,`mdx`],HP=[`astro`,`njk`],yie=[...VP,...HP],UP=(e,t,n=[])=>{if(!e||!t||t===`raw`)return!1;let r=t.endsWith(`-frontmatter`)||t===`frontmatter`;if(r&&n.length===1){let[{name:e,widget:t=`string`}]=n;if(e===`body`&&BP.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(VP.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return HP.includes(i)?!1:i!==e}if(a===`frontmatter`)return!yie.includes(i);let o=[`yaml`,`toml`,`json`];return o.includes(a)?o.includes(i)&&i!==a:!1}})),xie,Sie,Cie=s((()=>{LP(),xie=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],Sie=e=>{NP({...e,UNSUPPORTED_OPTIONS:xie})}})),wie,WP,Tie=s((()=>{LP(),wie=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],WP=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),NP({...e,UNSUPPORTED_OPTIONS:wie})}})),Eie,Die,Oie=s((()=>{JP(),LP(),Eie=(e,t,n)=>e===`object`?!0:(MP({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),Die=e=>{let{config:t,context:n,collectors:r}=e,{field:i}=t,{fields:a}=t,{types:o}=t,{typedKeyPath:s}=n,c={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a||i&&o||a&&o){MP({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&KP({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&qP(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};IP({...c,name:e,index:a,context:o})&&Eie(t,o,r)&&i&&qP(i,o,r)})}})),kie,Aie,jie=s((()=>{LP(),kie=[{prop:`valueType`,newProp:`value_type`}],Aie=e=>{NP({...e,UNSUPPORTED_OPTIONS:kie})}})),Mie,Nie=s((()=>{JP(),LP(),Mie=e=>{let{config:t,context:n,collectors:r}=e,{fields:i}=t,{types:a}=t,{typedKeyPath:o}=n,s={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a){MP({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){MP({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&qP(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};IP({...s,name:e,index:i,context:a})&&t&&qP(t,a,r)})}})),Pie,Fie,Iie=s((()=>{LP(),Pie=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],Fie=e=>{let{config:t,context:n,collectors:r}=e,i=t,{collection:a,file:o,value_field:s}=i,{cmsConfig:c}=n,l=a===`_singletons`?{files:c?.singletons}:c?.collections?.find(e=>e.name===a),u;if(l){let e=`files`in l&&Array.isArray(l.files);o?(e&&(u=l.files.find(e=>`file`in e&&e.name===o)),u||MP({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&MP({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else MP({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});NP({...e,UNSUPPORTED_OPTIONS:Pie}),r.relationFields.add({fieldConfig:i,context:n})}})),Lie,GP,Rie=s((()=>{LP(),Lie=[{prop:`editorComponents`,newProp:`editor_components`}],GP=e=>{NP({...e,UNSUPPORTED_OPTIONS:Lie})}})),zie,KP,qP,JP=s((()=>{Cie(),Tie(),Oie(),jie(),Nie(),Iie(),Rie(),LP(),zie={datetime:Sie,file:WP,image:WP,list:Die,markdown:GP,number:Aie,object:Mie,relation:Fie,richtext:GP},KP=e=>{let{config:t,context:n}=e,{name:r,widget:i=`string`}=t,{typedKeyPath:a}=n,o={...e,context:{...n,typedKeyPath:a?`${a}.${r}`:r}};zie[i]?.(o),i===`date`&&MP({...o,strKey:`date_field_type`})},qP=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;IP({...r,name:a,index:i})&&KP({config:e,context:t,collectors:n})})}})),Bie,YP,Vie=s((()=>{Pp(),bie(),JP(),LP(),Bie=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o}=r,{extension:s}=Op(i);UP(s,a,o)&&MP({strKey:`file_format_mismatch`,context:e,values:{extension:s,format:a},collectors:t}),o?.length||MP({strKey:`collection_file_no_fields`,context:e,collectors:t}),qP(o,e,t)},YP=(e,t)=>{let{cmsConfig:n,collection:r}=e,{files:i}=r,a={nameCounts:{},strKeyBase:`collection_file_name`,collectors:t};i.forEach((e,i)=>{if(`divider`in e)return;let{name:o}=e,s={cmsConfig:n,collection:r,collectionFile:e};IP({...a,name:o,index:i,context:s})&&Bie(s,t)})}})),Hie,Uie,Wie,Gie,Kie=s((()=>{Z(),tb(),Vie(),bie(),JP(),LP(),Hie=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],Uie=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,slug:c,slug_length:l}=r;UP(i,a)&&MP({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&eb(`slug_length`),NP({UNSUPPORTED_OPTIONS:Hie,config:r,context:e,collectors:t}),o?.length||MP({strKey:`collection_no_fields`,context:e,collectors:t}),qP(o,e,t),s&&qP(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&MP({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},Wie=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){MP({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){MP({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?YP({cmsConfig:e,collection:t},n):a&&Uie({cmsConfig:e,collection:t},n)},Gie=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t;if(!Array.isArray(n)&&!Array.isArray(r)){i.add(X(`config.error.no_collection`));return}let a={nameCounts:{},strKeyBase:`collection_name`,collectors:t};n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,o={cmsConfig:e,collection:n};IP({...a,name:i,index:r,context:o})&&Wie(o,t)}),Array.isArray(r)&&YP({cmsConfig:e,collection:{name:`_singletons`,label:X(`singletons`),label_singular:X(`singleton`),files:r}},t)}})),qie,Jie=s((()=>{Z(),_w(),qie=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!gw.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>gw.includes(e))&&o.add(X(`config.error.missing_media_folder`)):typeof n!=`string`&&o.add(X(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&o.add(X(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&o.add(X(`config.error.public_folder_absolute_url`))):o.add(X(`config.error.invalid_public_folder`)))}})),Yie,Xie,Zie=s((()=>{vie(),Kie(),Jie(),LP(),Yie=[{type:`warning`,prop:`publish_mode`,value:`editorial_workflow`,strKey:`editorial_workflow_unsupported`},{type:`warning`,prop:`local_backend`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`locale`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`search`,strKey:`unsupported_ignored_option`}],Xie=(e,t)=>{zP(e,t),qie(e,t),Gie(e,t),NP({UNSUPPORTED_OPTIONS:Yie,config:e,context:{cmsConfig:e},collectors:t})}})),Qie,XP,$ie,ZP,QP,$P,eF,tF,nF,rF,eae,iF=s((()=>{Z(),gp(),p(),Cp(),Qie=u($ee(),1),ip(),Py(),Up(),lne(),une(),Dne(),Zie(),Uy(),nN(),{DEV:XP,VITE_SITE_URL:$ie}={DEV:!1},ZP=XP?$ie||`http://localhost:5174`:void 0,QP={},$P=un(),eF=un(),tF=un([]),nF=dn([$P,tF],([e,t])=>!!e||!!t.length),rF={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},eae=async e=>{$P.set(void 0),tF.set([]),Object.assign(rF,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(X(`config.error.no_secure_context`));let t;if(e){if(!d(e))throw Error(X(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,Qie.default)(await aS({manualInit:!0}),t))}else t=await aS();if(Object.assign(QP,t),Xie(t,rF),rF.errors.size)throw rF.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);rF.warnings.size&&rF.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(XP?ZP:window.location.origin),n._baseURL=xp(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),$P.set(n),eF.set(await hp(My(n)))}catch(e){tF.set(rF.errors.size?[...rF.errors]:[e.name===`Error`?e.message:X(`config.error.unexpected`)]),console.error(e,e.cause)}},$P.subscribe(e=>{if(A(tN).devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,rF)),!e)return;let t=lx(e),n=nx(e,[...rF.mediaFields]);Ly.set(t),Fp.set(n),A(tN).devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})),aF,oF=s((()=>{ip(),iF(),aF=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=A($P),r=e===`default`?{...n?.media_libraries?.all,...t?.media_libraries?.all}:void 0,i=e=>({...e,...r&&Object.keys(r).length>0&&{config:{...r,...e?.config}}});if(t?.media_libraries&&e in t.media_libraries){let n=t.media_libraries[e];return n===!1?!1:i(n)}if(t?.media_library){let r=n?.media_library?.name??`default`,a=t.media_library,o=a.name;if(r===e&&(o===e||o===void 0))return i(a)}if(n?.media_libraries&&e in n.media_libraries){let t=n.media_libraries[e];return t===!1?!1:i(t)}return n?.media_library?.name===e?i(n.media_library):i(null)}})),sF,tae,cF=s((()=>{p(),oF(),qw(),oT(),sF=({fieldConfig:e}={})=>{let t=aF({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{enabled:t!==!1,config:{max_file_size:typeof n==`number`&&Number.isInteger(n)?n:1/0,multiple:typeof r==`boolean`?r:!1,slugify_filename:typeof i==`boolean`?i:!1,transformations:d(a)?a:void 0}}},tae=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(zw.includes(r)&&(r in t?n=t[r]:`raster_image`in t&&(n=t.raster_image)),n){let{format:t,quality:r,width:i,height:a}=n,o=t&&Kw.includes(t)?t:`webp`,s=await iT(e,{format:o,quality:r&&Number.isSafeInteger(r)?r:85,width:i&&Number.isSafeInteger(i)?i:void 0,height:a&&Number.isSafeInteger(a)?a:void 0}),c=s.type===`image/${o}`?Vw.test(e.name)?e.name.replace(Vw,o):e.name.concat(o):e.name;return new File([s],c,{type:s.type})}}return n===`image`&&r===`svg+xml`&&t.svg?.optimize?new File([await aT(e)],e.name,{type:e.type}):e}})),lF,uF=s((()=>{cF(),iw(),lF=async(e,{slugify_filename:t=!1,transformations:n,max_file_size:r=1/0}={})=>{if(t){let{name:t,type:n,lastModified:r}=e,i=$C(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}let i=e;return n&&(e=await tae(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r}}})),dF,fF,pF,mF,hF,nae,gF,_F,vF,yF,bF,rae,xF,iae,aae,SF,CF,wF,oae,TF,EF=s((()=>{Pp(),Cp(),fc(),ip(),Up(),uF(),BO(),Jb(),ib(),Zy(),XO(),cF(),iw(),dF=un([]),fF={source:void 0,map:new Map},pF=()=>{let e=A(dF);return e!==fF.source&&(fF.source=e,fF.map=new Map(e.map(e=>[e.path,e]))),fF.map},mF=e=>pF().get(e),hF=un([]),nae=dn(hF,e=>new Set(e.map(e=>e.path))),gF=un(),_F=un(),vF=un({folder:void 0,files:[]}),yF=un(),bF=un(),rae=dn([vF],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=sF();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>lF(e,i)));n(()=>({processing:!1,undersizedFiles:e.filter(({oversized:e})=>!e).map(({file:e})=>e),oversizedFiles:e.filter(({oversized:e})=>e).map(({file:e})=>e),transformedFileMap:new WeakMap(e.filter(({originalFile:e})=>e!==void 0).map(({file:e,originalFile:t})=>[e,t]))}))})()}),xF=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?zp({collectionName:n.name,fileName:r?.name,typedKeyPath:i}):void 0,c=s?.entryRelative?s.internalSubPath??``:(r??n).media_folder,{path:l,content:u}=a[o in a?o:Object.keys(a)[0]];if(!l||!u)return;let{entryFolder:d}=l.match(/(?<entryFolder>.+?)(?:\/[^/]+)?$/).groups,f=e.replace(/^\.\//,``),p=tw(ew([d,c,c&&f.startsWith(`${c}/`)?f.slice(c.length+1):f]));return pF().get(p)},iae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?zp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?zp({collectionName:n,fileName:r}):void 0,n?zp({collectionName:n}):void 0,A(Ip)].filter(e=>!!e&&!e.hasTemplateTags),a;return t.find(t=>{let n=t.publicPath?.replace(/^\//,``)??``,r=n&&e.startsWith(`${n}/`)?e.slice(n.length+1):e,i=pF().get(ew([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??pF().get(e)}return KO(t).flatMap(n=>{let r=Jy(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>xF({...a,file:e})):xF({...a})}).filter(Boolean)[0]??pF().get(e)},aae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=pF().get(yp(e));if(a)return a;let{dirname:o=``,basename:s}=Op(e),c;return[i?zp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,zp({collectionName:n,fileName:r}),zp({collectionName:n}),A(Ip),A(Fp).findLast(e=>o.match(`^${(e.publicPath??``).replace(/{{.+?}}/g,`.+?`)}\\b`))].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&/{{.+?}}/.test(i)){let e=r?Gb(r):t?KO(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=zO(i,{type:`media_folder`,collection:e,content:uc(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:rb(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=ew([i,s]),l=pF().get(a);return l&&(c=l),!!l}),c},SF=e=>!/^[/@]/.test(e),CF=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=YC(e.split(`#`)[0]);return SF(a)?iae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):aae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},wF=({folder:e},t)=>e===t||e.collectionName===t.collectionName&&e.fileName===t.fileName&&e.typedKeyPath===t.typedKeyPath&&e.isIndexFile===t.isIndexFile&&e.internalPath===t.internalPath&&e.internalSubPath===t.internalSubPath&&e.publicPath===t.publicPath&&e.entryRelative===t.entryRelative&&e.hasTemplateTags===t.hasTemplateTags,oae=e=>A(dF).filter(t=>wF(t,e)),TF=e=>A(dF).filter(t=>Op(t.path).dirname===e),Lp.subscribe(()=>{gF.set(void 0)})})),DF,OF,kF=s((()=>{Pp(),Cp(),ip(),EF(),Up(),xT(),Jb(),ib(),yA(),DF=async(e,t)=>{let{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=e,{locales:a}=t,{content:o}=a[r]??Object.values(a)[0]??{};if(!o)return;let s=i.some(e=>e.includes(`*`))?Object.keys(o):void 0,c=i.flatMap(e=>{if(e.includes(`*`)){let t=RegExp(`^${_p(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await bT({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},OF=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=Gb(t);if(!a)return[];let o=rb(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||SF(a))){let s=fA({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=CF({value:a,entry:e,collectionName:t,fileName:n});if(c&&Vp(c.path).some(e=>e.collectionName===t&&e.fileName===n&&(r?e.entryRelative:!0)))return c}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&zp({collectionName:t,fileName:n})?.entryRelative){let t=Op(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));A(dF).forEach(n=>{let r=Op(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})),AF,sae,jF,cae,MF,NF=s((()=>{p(),fc(),np(),ip(),kF(),qj(),AF=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],sae=[`preSave`,`prePublish`],jF=new Set,cae=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>yd({data:dc(e),i18n:Object.fromEntries(t.map(e=>[e,{data:dc(n[e].content)}])),slug:r,path:i,newRecord:a,collection:o,mediaFiles:s.map(({sha:e,file:t,size:n,blobURL:r,...i})=>({id:e,name:i.name,path:i.path,file:t,size:n,url:r,displayURL:r})),meta:{path:i},isModification:null,label:null,partial:!1,author:``,raw:``,status:``,updatedOn:``}),MF=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=A(Kj),{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:u}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==u),{content:h,path:g}=p[u],_=OF({entry:n,collectionName:c,fileName:l});for(let t of jF){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:cae({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(sae.includes(e)&&$l(n)){let e=n.toJS();d(e.data)&&d(e.i18n)?(p[u].content=uc(e.data),m.forEach(t=>{d(e.i18n[t]?.data)&&(p[t].content=uc(e.i18n[t].data))})):p[u].content=uc(e)}}}})),PF,FF,IF,LF,RF,zF,BF,VF,lae,HF=s((()=>{ip(),PF=un(!1),FF=un(!1),IF=un({show:!1,multiple:!1}),LF=un({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),RF=un(null),zF=un(null),BF=un(),VF=new Set,lae=new Map})),uae=s((()=>{})),Q=s((()=>{uae(),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})),dae,fae=s((()=>{dae=`{"ok":"OK","cancel":"Cancel","close":"Close","clear":"Clear","insert":"Insert","update":"Update","remove":"Remove","collapse":"Collapse","expand":"Expand","dismiss":"Dismiss","calendar":{"year":"Year","previous_decade":"Previous Decade","next_decade":"Next Decade","month":"Month","previous_month":"Previous Month","next_month":"Next Month","today":"Today"},"split_button":{"x_options":"{$name} Options","more_options":"More Options"},"combobox":{"select_an_option":"Select an option…","filter_options":"Filter Options","no_matching_options":"No matching options found"},"number_input":{"decrease":"Decrease","increase":"Increase"},"password_input":{"show_password":"Show Password","hide_password":"Hide Password"},"secret_input":{"show_secret":"Show Secret","hide_secret":"Hide Secret"},"select_tags":{"selected_options":"Selected options","remove_x":"Remove {$name}"},"text_editor":{"text_editor":"Text Editor","code_editor":"Code Editor","text_style_options":"Text Style Options","show_text_style_options":"Show Text Style Options","paragraph":"Paragraph","heading_1":"Heading 1","heading_2":"Heading 2","heading_3":"Heading 3","heading_4":"Heading 4","heading_5":"Heading 5","heading_6":"Heading 6","bulleted_list":"Bulleted List","numbered_list":"Numbered List","blockquote":"Block Quote","code_block":"Code Block","bold":"Bold","italic":"Italic","strikethrough":"Strikethrough","code":"Code","link":"Link","insert_link":"Insert Link","update_link":"Update Link","text":"Text","url":"URL","edit_in_markdown":"Edit in Markdown","converter_error":"There was an error while enabling rich text mode. Please use the plain text editor instead.","language":"Language","plain_text":"Plain Text"}}`})),pae,mae=s((()=>{pae=`{"ok":"OK","cancel":"キャンセル","close":"閉じる","clear":"クリア","insert":"挿入","update":"更新","remove":"削除","collapse":"折り畳む","expand":"広げる","dismiss":"閉じる","calendar":{"year":"年","previous_decade":"前の 10 年","next_decade":"次の 10 年","month":"月","previous_month":"前月","next_month":"翌月","today":"今日"},"split_button":{"x_options":"{$name} オプション","more_options":"その他のオプション"},"combobox":{"select_an_option":"オプションを選択…","filter_options":"オプションを絞り込み","no_matching_options":"一致するオプションは見つかりませんでした"},"number_input":{"decrease":"減らす","increase":"増やす"},"password_input":{"show_password":"パスワードを表示","hide_password":"パスワードを隠す"},"secret_input":{"show_secret":"シークレットを表示","hide_secret":"シークレットを隠す"},"select_tags":{"selected_options":"選択済みのオプション","remove_x":"{$name} を削除"},"text_editor":{"text_editor":"テキストエディター","code_editor":"コードエディター","text_style_options":"テキストスタイルオプション","show_text_style_options":"テキストスタイルオプションを表示","paragraph":"段落","heading_1":"見出し 1","heading_2":"見出し 2","heading_3":"見出し 3","heading_4":"見出し 4","heading_5":"見出し 5","heading_6":"見出し 6","bulleted_list":"番号なしリスト","numbered_list":"番号付きリスト","blockquote":"ブロック引用","code_block":"コードブロック","bold":"太字","italic":"斜体","strikethrough":"取り消し線","code":"コード","link":"リンク","insert_link":"リンクを挿入","update_link":"リンクを更新","text":"テキスト","url":"URL","edit_in_markdown":"マークダウンで編集","converter_error":"リッチテキストモードを有効化中に問題が発生しました。代わりにプレーンテキストエディターを使用してください。","language":"言語","plain_text":"プレーンテキスト"}}`})),hae,gae=s((()=>{fae(),mae(),Z(),Py(),hae=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.yaml":dae,"../locales/ja.yaml":pae})).forEach(([e,t])=>{Th(e.match(/.+\/(?<locale>.+?)\.yaml$/)?.groups?.locale,{_sui:jy(t)})}),jh({fallbackLocale:e,initialLocale:t})}}));function UF(e,t){K(e,vae);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`name`]);var r=_ae();bs(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-1x8rbyf`);var i=F(r,!0);D(r),R(()=>W(i,t.name)),U(e,r)}var _ae,vae,WF=s((()=>{Q(),Y(),_ae=V(`<span> </span>`),vae={hash:`svelte-1x8rbyf`,code:`.icon.small-arrow.svelte-1x8rbyf {overflow:hidden;width:12px;text-indent:-6px;}`}}));function GF(e,t){K(e,bae);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]);var r=yae();bs(r,()=>({...n,role:`alert`,class:`sui alert ${t.status??``}`}),void 0,void 0,void 0,`svelte-jibupz`);var i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.icon),U(e,n)},o=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);UF(e,{get name(){return z(n)}})}};G(i,e=>{t.icon?e(a):e(o,-1)}),Eo(L(i,2),()=>t.children??E),D(r),U(e,r)}var yae,bae,KF=s((()=>{Q(),Y(),WF(),yae=V(`<div><!> <!></div>`),bae={hash:`svelte-jibupz`,code:`.alert.svelte-jibupz {display:flex;align-items:center;gap:var(--gap, 8px);padding:var(--padding, 8px);border-width:var(--border-width, var(--sui-control-medium-border-width));border-style:var(--border-style, solid);border-radius:var(--border-radius, var(--sui-control-medium-border-radius));font-size:var(--font-size, var(--sui-font-size-default));}.alert.error.svelte-jibupz {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-jibupz {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-jibupz {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-jibupz {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})),xae,qF,Sae,Cae,wae,JF,YF,XF=s((()=>{qF=()=>(xae??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),xae),Sae=[`Ctrl`,`Meta`,`Alt`,`Shift`],Cae=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),wae=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:Cae.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),JF=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.replace(/\bAccel\b/g,qF()?`Meta`:`Ctrl`).split(/\s+/).some(t=>{let o=t.split(`+`);return o.includes(`Ctrl`)&&!n||o.includes(`Meta`)&&!r||o.includes(`Alt`)&&!i||o.includes(`Shift`)&&!a||!o.includes(`Ctrl`)&&n||!o.includes(`Meta`)&&r||!o.includes(`Alt`)&&i||!o.includes(`Shift`)&&a?!1:o.filter(e=>!Sae.includes(e)).every(t=>wae(t,e))})},YF=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,qF()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!JF(n,t))return;let{top:i,left:a}=e.getBoundingClientRect();r&&e.style.setProperty(`pointer-events`,`auto`);let o=document.elementsFromPoint(a+4,i+4).includes(e);r&&e.style.removeProperty(`pointer-events`),o&&(n.preventDefault(),r||(e.focus(),e.click()))};return globalThis.addEventListener(`keydown`,n,{capture:!0}),e.setAttribute(`aria-keyshortcuts`,t),()=>{globalThis.removeEventListener(`keydown`,n,{capture:!0}),e.removeAttribute(`aria-keyshortcuts`)}}:()=>()=>{}}}));function ZF(e,t){K(e,Eae);let n=J(t,`lines`,3,1),r=J(t,`children`,3,void 0);var i=Tae();Eo(F(i),()=>r()??E),D(i),R(()=>ds(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),U(e,i)}var Tae,Eae,QF=s((()=>{Q(),Y(),Tae=V(`<span role="none" class="sui truncated-text svelte-cux2q2"><!></span>`),Eae={hash:`svelte-cux2q2`,code:`.truncated-text.svelte-cux2q2 {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})),$F,eI,tI=s((()=>{gp(),$F=(e=`e`,t=7)=>[e,pp(t)].join(`-`),eI=e=>{if(e)return new Promise(t=>{let n=new IntersectionObserver(([e])=>{e.isIntersecting&&(n.disconnect(),t(void 0))});globalThis.requestAnimationFrame(()=>{n.observe(e)})})}})),Dae,Oae,kae=s((()=>{Y(),tI(),Xx(),dh(),Dae=class{#e=N(!1);get open(){return z(this.#e)}set open(e){P(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&(this.anchorElement.focus(),this.anchorElement.removeAttribute(`aria-controls`)),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=N(Cr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let{scrollHeight:n,scrollWidth:r}=this.popupElement.querySelector(`.content`),i=e.top-8,a=t.height-e.bottom-8,{position:o}=this,s;document.dir===`rtl`&&(o.endsWith(`-left`)?o=o.replace(`-left`,`-right`):o.endsWith(`-right`)&&(o=o.replace(`-right`,`-left`)),o.startsWith(`left-`)?o=o.replace(`left-`,`right-`):o.startsWith(`right-`)&&(o=o.replace(`right-`,`left-`))),o.startsWith(`bottom-`)&&n>a&&(i>a?(o=o.replace(`bottom-`,`top-`),s=i):s=a),o.endsWith(`-left`)&&e.left+r>t.width-8&&(o=o.replace(`-left`,`-right`)),o.endsWith(`-right`)&&e.right-r<8&&(o=o.replace(`-right`,`-left`));let c={inset:[o.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:o.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,o.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:o.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,o.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:o.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,o.startsWith(`right-`)?`${Math.round(e.right)}px`:o.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:o.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:s?`${Math.round(s)}px`:`auto`};(c.inset!==this.style.inset||c.zIndex!==this.style.zIndex||c.minWidth!==this.style.minWidth||c.maxWidth!==this.style.maxWidth||c.height!==this.style.height)&&(this.style=c)})});constructor(e,t,n,r){this.anchorElement=e,this.popupElement=t,this.position=n,this.positionBaseElement=r??e,this.id=$F(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),this.anchorElement.setAttribute(`aria-expanded`,`false`),ba(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ba(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),ba(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),ba(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),ba(this.popupElement,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)}),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement)}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement)}async hideImmediately(){this.popupElement.hidden=!0,this.open=!1,await Yx(50),this.popupElement.hidden=!1}destroy(){this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Oae=(...e)=>new Dae(...e)}));function Aae(e,t){var n=H();Eo(I(n),()=>t.children??E),U(e,n)}var jae=s((()=>{Q(),Y()}));function Mae(e,t){O(t,!0),K(e,rI);let n=e=>{var n=nI(),d=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},f=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};bs(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[Cs]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-1vazkqg`);var g=F(n);Eo(g,()=>t.extraContent??E);var _=L(g,2),v=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)};G(_,e=>{(z(h)||l())&&e(v)}),D(n),Ws(n,e=>i(e),()=>i()),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`dialog`,15),a=J(t,`role`,3,`dialog`),o=J(t,`showBackdrop`,3,!1),s=J(t,`lightDismiss`,3,!1),c=J(t,`escapeDismiss`,3,!0),l=J(t,`keepContent`,3,!1),u=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=N(!1),m=N(!1),h=N(!1),g=0,_=async()=>new Promise(e=>{let t=n=>{n.target===i()&&(i().removeEventListener(`transitionend`,t),e())};i()?.addEventListener(`transitionend`,t)}),v=async()=>{if(!i()||i()?.open)return;g+=1;let e=g;t.onOpening?.(new CustomEvent(`Opening`)),P(h,!0),i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),await Yx(0),e===g&&(P(p,!0),await _(),e===g&&P(m,!0))},y=async()=>{if(!i()||!i().open)return;g+=1;let e=g,n=z(p),{returnValue:r}=i();t.onClosing?.(new CustomEvent(`Closing`)),document.body.inert=!0,i().close(),document.body.inert=!1,P(m,!1),P(p,!1),n&&await _(),e===g&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i(i().returnValue=``,!0))};return ti(()=>{r()?v():y()}),ac(()=>{let e=za(Aae,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Va(e)}}),k({focus:d,close:f})}var nI,rI,iI=s((()=>{Q(),Y(),Xx(),sc(),jae(),nI=V(`<dialog><!> <!></dialog>`),rI={hash:`svelte-1vazkqg`,code:`dialog.svelte-1vazkqg {position:fixed;inset:0;z-index:9999999;display:flex;justify-content:center;align-items:center;overflow:hidden;outline:0;margin:0;border:0;padding:0;width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;color:var(--sui-primary-foreground-color);background:transparent;-webkit-user-select:none;user-select:none;touch-action:none;pointer-events:all;cursor:default;}dialog.svelte-1vazkqg::backdrop {background:transparent;}dialog.backdrop.svelte-1vazkqg {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-1vazkqg {transition-duration:50ms;opacity:1;}dialog.svelte-1vazkqg:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-1vazkqg {transition-duration:1ms !important;}dialog.svelte-1vazkqg:not(.active) {pointer-events:none !important;}dialog.svelte-1vazkqg:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}}));function aI(e,t){O(t,!0),K(e,sI);let n=e=>{var n=oI();let o,s;Eo(F(n),()=>t.children??E),D(n),Ws(n,e=>a(e),()=>a()),R(()=>{q(n,`hidden`,!r()),o=cs(n,1,`content ${t.class??``} ${z(h)??``}`,`svelte-11qfuy7`,o,{touch:z(y)}),s=ds(n,``,s,{inset:z(g)?.style.inset,"z-index":z(g)?.style.zIndex,"min-width":z(g)?.style.minWidth,"max-width":z(g)?.style.maxWidth,"max-height":z(g)?.style.height,visibility:z(g)?.style.inset?void 0:`hidden`})}),xa(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(_)}),xa(`mouseleave`,n,()=>{i(!1),l()&&(_=window.setTimeout(()=>{r(!1)},200))}),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`hovered`,15,!1),a=J(t,`content`,15,void 0),o=J(t,`showBackdrop`,3,void 0),s=J(t,`position`,3,`bottom-left`),c=J(t,`positionBaseElement`,3,void 0),l=J(t,`parentDialogElement`,3,void 0),u=J(t,`touchOptimized`,3,!1),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),f=N(!1),p=N(void 0),m=N(!1),h=N(void 0),g=N(void 0),_=0,v=()=>{P(g,Oae(t.anchor,z(p),s(),c()),!0),P(h,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),P(f,!0)};ti(()=>{z(g)&&r(z(g).open)}),ti(()=>{l()&&!z(p)&&a()&&(P(p,l()),z(p).append(a()))}),ti(()=>{t.anchor&&z(p)&&!z(f)&&v()}),ti(()=>{l()&&r()&&z(g)?.checkPosition()});let y=M(()=>u()&&z(m));ac(()=>(P(m,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{z(g)?.destroy?.(),globalThis.clearTimeout(_)}));var b=H(),x=I(b),S=e=>{n(e)},C=e=>{{let i=M(()=>o()??z(y));Mae(e,Zs(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await Yx(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return z(p)},set dialog(e){P(p,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};G(x,e=>{l()?e(S):e(C,-1)}),U(e,b),k()}var oI,sI,cI=s((()=>{Q(),Y(),Xx(),sc(),kae(),iI(),oI=V(`<div role="none"><!></div>`),sI={hash:`svelte-11qfuy7`,code:`.content.svelte-11qfuy7 {position:absolute;overflow-y:auto;outline-width:0 !important;width:auto;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition-property:opacity, transform;}.content.menu.svelte-11qfuy7 {border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}.content.menu.svelte-11qfuy7 .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-11qfuy7 {border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);}.content.listbox.svelte-11qfuy7 .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-11qfuy7 {position:static;border-width:0 !important;border-radius:4px !important;padding:8px;min-width:320px !important;max-width:calc(100dvw - 32px) !important;max-height:calc(100dvh - 32px) !important;}dialog.open .content.touch.svelte-11qfuy7 {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-11qfuy7 {transform:scale(90%);}.content.touch.combobox.svelte-11qfuy7 .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-11qfuy7 {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-11qfuy7 {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}}));function lI(e,t){O(t,!0),K(e,hI);let n=J(t,`element`,15),r=J(t,`class`,3,``),i=J(t,`type`,3,`button`),a=J(t,`role`,3,`button`),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,19,()=>typeof s()),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`pressed`,3,void 0),p=J(t,`keyShortcuts`,3,void 0),m=J(t,`label`,3,``),h=J(t,`lines`,3,1),g=J(t,`variant`,3,void 0),_=J(t,`size`,3,`medium`),v=J(t,`iconic`,3,!1),y=J(t,`pill`,3,!1),b=J(t,`flex`,3,!1),x=J(t,`popupPosition`,3,`bottom-left`),S=J(t,`showPopupBackdrop`,3,!1),C=Xs(t,`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`));var w=mI(),ee=I(w);bs(ee,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[Cs]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-1y79ujd`);var T=F(ee);Eo(T,()=>t.startIcon??E);var te=L(T,2),ne=e=>{var n=H(),r=I(n),i=e=>{var t=uI();ZF(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)},a=e=>{var n=dI();Eo(F(n),()=>t.children??E),D(n),U(e,n)};G(r,e=>{m()?e(i):e(a,-1)}),U(e,n)},re=e=>{var n=pI(),r=I(n),i=e=>{var t=fI();ZF(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)};G(r,e=>{m()&&e(i)}),Eo(L(r,2),()=>t.children??E),U(e,n)};G(te,e=>{g()===`link`?e(ne):e(re,-1)}),Eo(L(te,2),()=>t.endIcon??E),D(ee),Ws(ee,e=>n(e),()=>n()),Xo(ee,()=>YF(p()));var ie=L(ee,2),ae=e=>{aI(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=H();Eo(I(r),()=>t.popup),U(e,r)},$$slots:{default:!0}})};G(ie,e=>{t.popup&&e(ae)}),U(e,w),k()}var uI,dI,fI,pI,mI,hI,gI=s((()=>{Q(),Y(),XF(),QF(),cI(),uI=V(`<span role="none" class="label svelte-1y79ujd"><!></span>`),dI=V(`<span role="none" class="label svelte-1y79ujd"><!></span>`),fI=V(`<span role="none" class="label svelte-1y79ujd"><!></span>`),pI=V(`<!> <!>`,1),mI=V(`<button><!> <!> <!></button> <!>`,1),hI={hash:`svelte-1y79ujd`,code:`button.svelte-1y79ujd {flex:none;display:inline-flex;align-items:center;gap:4px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color, inherit);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;transition:all 200ms;}button[hidden].svelte-1y79ujd {display:none !important;}button.svelte-1y79ujd:not(:disabled):focus-visible {z-index:1;}button.svelte-1y79ujd:is(.primary:where(.svelte-1y79ujd), .secondary:where(.svelte-1y79ujd), .tertiary:where(.svelte-1y79ujd), .ghost:where(.svelte-1y79ujd)) {justify-content:center;border-width:1px;}button.svelte-1y79ujd:is(.primary:where(.svelte-1y79ujd), .secondary:where(.svelte-1y79ujd), .tertiary:where(.svelte-1y79ujd), .ghost:where(.svelte-1y79ujd)) .label:where(.svelte-1y79ujd):only-child {padding:0 4px;}button.primary.svelte-1y79ujd {border-width:var(--sui-button-primary-border-width, 1px);border-style:var(--sui-button-primary-border-style, solid);border-color:var(--sui-button-primary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted));background-color:var(--sui-button-primary-background-color, var(--sui-primary-accent-color));font-weight:var(--sui-button-primary-font-weight, var(--sui-font-weight-normal, normal));}button.primary.svelte-1y79ujd:is(:where(.svelte-1y79ujd):hover, :where(.svelte-1y79ujd):focus-visible, [aria-expanded=true]:where(.svelte-1y79ujd)) {color:var(--sui-button-primary-foreground-color-focus, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-focus, var(--sui-primary-accent-color-light));}button.primary.svelte-1y79ujd:active {color:var(--sui-button-primary-foreground-color-active, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-active, var(--sui-primary-accent-color-dark));}button.secondary.svelte-1y79ujd {border-width:var(--sui-button-secondary-border-width, 1px);border-style:var(--sui-button-secondary-border-style, solid);border-color:var(--sui-button-secondary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text));background-color:var(--sui-button-secondary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-secondary-font-weight, var(--sui-font-weight-normal, normal));}button.secondary.svelte-1y79ujd:is(:where(.svelte-1y79ujd):hover, :where(.svelte-1y79ujd):focus-visible, [aria-expanded=true]:where(.svelte-1y79ujd)) {color:var(--sui-button-secondary-foreground-color-focus, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-focus, var(--sui-hover-background-color));}button.secondary.svelte-1y79ujd:active {color:var(--sui-button-secondary-foreground-color-active, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-active, var(--sui-active-background-color));}button.secondary[aria-pressed=true].svelte-1y79ujd {color:var(--sui-button-secondary-foreground-color-pressed);background-color:var(--sui-button-secondary-background-color-pressed, var(--sui-primary-accent-color));}button.tertiary.svelte-1y79ujd {border-width:var(--sui-button-tertiary-border-width, 1px);border-style:var(--sui-button-tertiary-border-style, solid);border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(--sui-button-tertiary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-tertiary-font-weight, var(--sui-font-weight-normal, normal));}button.tertiary.svelte-1y79ujd:is(:where(.svelte-1y79ujd):hover, :where(.svelte-1y79ujd):focus-visible, [aria-expanded=true]:where(.svelte-1y79ujd)) {color:var(--sui-button-tertiary-foreground-color-focus, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-focus, var(--sui-hover-background-color));}button.tertiary.svelte-1y79ujd:active {color:var(--sui-button-tertiary-foreground-color-active, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-active, var(--sui-active-background-color));}button.tertiary[aria-pressed=true].svelte-1y79ujd {color:var(--sui-button-tertiary-foreground-color-pressed);background-color:var(--sui-button-tertiary-background-color-pressed, var(--sui-selected-background-color));}button.ghost.svelte-1y79ujd {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-1y79ujd:is(:where(.svelte-1y79ujd):hover, :where(.svelte-1y79ujd):focus-visible, [aria-expanded=true]:where(.svelte-1y79ujd)) {color:var(--sui-button-ghost-foreground-color-focus);background-color:var(--sui-button-ghost-background-color-focus, var(--sui-hover-background-color));}button.ghost.svelte-1y79ujd:active {color:var(--sui-button-ghost-foreground-color-active);background-color:var(--sui-button-ghost-background-color-active, var(--sui-active-background-color));}button.ghost[aria-pressed=true].svelte-1y79ujd {color:var(--sui-button-ghost-foreground-color-pressed);background-color:var(--sui-button-ghost-background-color-pressed, var(--sui-selected-background-color));}button.link.svelte-1y79ujd {outline:0;margin:0;border-radius:0 !important;padding:0 !important;height:auto !important;color:var(--sui-button-link-foreground-color, var(--sui-primary-accent-color-text));}button.link.svelte-1y79ujd .label:where(.svelte-1y79ujd) {padding:0;line-height:var(--sui-line-height-compact);text-decoration:var(--sui-button-link-text-decoration, none);text-underline-offset:2px;white-space:normal;}:is(:root, :host)[data-underline-links='true'] button.link.svelte-1y79ujd .label:where(.svelte-1y79ujd) {text-decoration:underline;}button.link.svelte-1y79ujd:is(:where(.svelte-1y79ujd):hover, :where(.svelte-1y79ujd):focus, :where(.svelte-1y79ujd):active) .label:where(.svelte-1y79ujd) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-1y79ujd {border-radius:var(--sui-button-small-border-radius);padding:var(--sui-button-small-padding);height:var(--sui-button-small-height);font-size:var(--sui-button-small-font-size, var(--sui-font-size-small));}button.small.svelte-1y79ujd .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-1y79ujd {border-radius:var(--sui-button-medium-border-radius);padding:var(--sui-button-medium-padding);height:var(--sui-button-medium-height);font-size:var(--sui-button-medium-font-size, var(--sui-font-size-default));}button.large.svelte-1y79ujd {border-radius:var(--sui-button-large-border-radius);padding:var(--sui-button-large-padding);height:var(--sui-button-large-height);font-size:var(--sui-button-large-font-size, var(--sui-font-size-large));}button.pill.svelte-1y79ujd {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-1y79ujd:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-1y79ujd {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-1y79ujd {background-color:var(--sui-error-background-color);}button.svelte-1y79ujd .label:where(.svelte-1y79ujd) {padding:0 4px;}button.svelte-1y79ujd > * {pointer-events:none;}button.svelte-1y79ujd :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}}));function _I(e,t){O(t,!0),K(e,bI);let n=J(t,`show`,15,!0),r=J(t,`dismissible`,3,!0),i=J(t,`status`,3,`info`),a=J(t,`children`,3,void 0),o=J(t,`icon`,3,void 0);var s=H(),c=I(s),l=e=>{var t=yI(),s=F(t),c=F(s),l=e=>{var t=H();Eo(I(t),o),U(e,t)},u=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());UF(e,{get name(){return z(t)}})}};G(c,e=>{o()?e(l):e(u,-1)}),Eo(L(c,2),()=>a()??E),D(s);var d=L(s,2),f=e=>{var t=vI(),r=F(t);{let e=M(()=>X(`_sui.dismiss`));lI(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{UF(e,{name:`close`})},$$slots:{default:!0}})}D(t),U(e,t)};G(d,e=>{r()&&e(f)}),D(t),R(()=>cs(t,1,`infobar ${i()??``}`,`svelte-1g2ya9m`)),U(e,t)};G(c,e=>{n()&&e(l)}),U(e,s),k()}var vI,yI,bI,Nae=s((()=>{Q(),Y(),Z(),gI(),WF(),vI=V(`<div role="none"><!></div>`),yI=V(`<div role="none"><div role="alert" class="message svelte-1g2ya9m"><!> <!></div> <!></div>`),bI={hash:`svelte-1g2ya9m`,code:`.infobar.svelte-1g2ya9m {flex:none;display:flex;align-items:center;gap:var(--sui-infobar-gap, 8px);border-width:var(--sui-infobar-border-width, 0 0 1px);border-style:var(--sui-infobar-border-style, solid);padding:var(--sui-infobar-padding, 0);min-height:var(--sui-infobar-min-height, 32px);font-size:var(--sui-infobar-font-size, var(--sui-font-size-small));}.infobar.info.svelte-1g2ya9m {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-1g2ya9m {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-1g2ya9m {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-1g2ya9m {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-1g2ya9m {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-1g2ya9m button {font-size:inherit !important;}.message.svelte-1g2ya9m .icon {font-size:16px; /* !hardcoded */}`}}));function Pae(e,t){K(e,SI);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=xI();bs(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-yy6cyr`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var xI,SI,Fae=s((()=>{Q(),Y(),xI=V(`<div><!></div>`),SI={hash:`svelte-yy6cyr`,code:`.bottom-navigation.svelte-yy6cyr {height:var(--sui-bottom-navigation-height, var(--sui-primary-toolbar-size));border-top-width:var(--sui-bottom-navigation-border-color, 1px);border-top-style:var(--sui-bottom-navigation-border-style, solid);border-top-color:var(--sui-bottom-navigation-border-color, var(--sui-secondary-border-color));}.bottom-navigation.svelte-yy6cyr:is([inert]:where(.svelte-yy6cyr), [hidden]:where(.svelte-yy6cyr)) {display:none;}.bottom-navigation.svelte-yy6cyr .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}}));function Iae(e,t){K(e,wI);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=CI();bs(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-agsia7`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var CI,wI,TI=s((()=>{Q(),Y(),CI=V(`<div><!></div>`),wI={hash:`svelte-agsia7`,code:`.button-group.svelte-agsia7 {flex:none;display:inline-flex;align-items:center;}`}}));function EI(e,t){K(e,OI);let n=J(t,`children`,3,void 0);var r=DI();Eo(F(r),()=>n()??E),D(r),U(e,r)}var DI,OI,Lae=s((()=>{Q(),Y(),DI=V(`<div role="none" class="sui floating-action-button-wrapper svelte-1vina3t"><!></div>`),OI={hash:`svelte-1vina3t`,code:`.floating-action-button-wrapper.svelte-1vina3t {display:contents;}
|
|
645
|
+
@media (width < 768px) {.floating-action-button-wrapper.svelte-1vina3t {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-1vina3t button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-1vina3t button .icon {font-size:32px;}
|
|
646
|
+
}`}})),kI,AI=s((()=>{Y(),kI=e=>{let{type:t=`string`,name:n,label:r}=e.dataset,{value:i}=e.dataset;return t===`number`?(i=Number(i),Number.isNaN(i)&&(i=null)):t===`boolean`?i=i===`true`:t===`string`&&(i=i?String(i):``),{target:e,type:t,name:n,label:r,value:i}}})),jI,MI,NI,PI,FI,II=s((()=>{Y(),Z(),tI(),Xx(),AI(),jI=/\p{Diacritic}/gu,MI=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(jI,``).toLocaleLowerCase():``),NI={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0}},PI=class{constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=$F(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o}=NI[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.parent.tabIndex=a?-1:0,(async()=>{await Yx(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=document.querySelector(`#${e.getAttribute(`aria-controls`)}`);e.id||=`${this.id}-item-${t+1}`,e.tabIndex=r?0:-1,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get allMembers(){return[...this.parent.querySelectorAll(this.selector)]}get activeMembers(){return this.allMembers.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}get selected(){return this.activeMembers.find(e=>e.matches(`[${this.childSelectedAttr}="true"]`))}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `;this.activeMembers.forEach(o=>{let s=o.matches(`[role="menuitemcheckbox"]`),c=o.matches(`[role="menuitemradio"]`);if((s||c)&&(o.getAttribute(`role`)!==n||o.closest(this.parentGroupSelector)!==r))return;let l=s||this.multi,u=c||!l,d=o===t,f=o.matches(`[${this.childSelectedAttr}="true"]`),p=o.getAttribute(`aria-controls`),m=p?document.getElementById(p):null;l&&d&&(i||a)&&(o.setAttribute(this.childSelectedAttr,String(!f)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!f}})),f||o.dispatchEvent(new CustomEvent(`Select`))),u&&f!==d&&(!c||a||i)&&(o.setAttribute(this.childSelectedAttr,String(d)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:d}})),d&&(e.type===`keydown`&&o.matches(`[role="radio"]`)&&o.click(),o.dispatchEvent(new CustomEvent(`Select`)))),this.focusChild?globalThis.requestAnimationFrame(()=>{o.tabIndex=d?0:-1,d&&(o.focus(),o.dispatchEvent(new CustomEvent(`Focus`)))}):(o.classList.toggle(`focused`,d),d&&o.dispatchEvent(new CustomEvent(`Focus`))),m&&(m.inert=!d,m.setAttribute(`aria-hidden`,String(!d)),d&&globalThis.setTimeout(()=>{try{m.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{m.scrollIntoView(!0)}},300)),d&&(this.parent.setAttribute(`aria-activedescendant`,o.id),globalThis.setTimeout(()=>{try{o.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{o.scrollIntoView(!0)}},300))}),this.parent.dispatchEvent(new CustomEvent(`Change`,{detail:kI(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;if(i||a||n||r)return;let o=e.target,{allMembers:s,activeMembers:c}=this,l=(()=>{if(!this.focusChild)return c.find(e=>e.matches(`.focused`));if(o.matches(this.selector))return o})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){l?.click();return}if(t===` `){l&&this.selectTarget(e,l);return}let u,d;if(this.grid){let e=Math.floor(this.parent.clientWidth/c[0].clientWidth),n=xh();u=l?s.indexOf(l):-1,t===`ArrowUp`&&u>0&&(d=s[u-e]),t===`ArrowDown`&&u<s.length-1&&(d=s[u+e]),t===`ArrowLeft`&&u>0&&(d=s[u+(n?1:-1)]),t===`ArrowRight`&&u<s.length-1&&(d=s[u+(n?-1:1)]),d?.matches(`[aria-disabled="true"], [aria-hidden="true"]`)&&(d=void 0)}else{u=l?c.indexOf(l):-1;let e=xh(),n=this.orientation===`horizontal`?e?`ArrowRight`:`ArrowLeft`:`ArrowUp`,r=this.orientation===`horizontal`?e?`ArrowLeft`:`ArrowRight`:`ArrowDown`;t===n&&(u>0&&(d=c[u-1]),u<=0&&(d=c[c.length-1])),t===r&&(u<c.length-1&&(d=c[u+1]),u===c.length-1&&([d]=c))}d&&d!==l&&this.selectTarget(e,d)}destroy(){this.parent.removeEventListener(`click`,this._onClick),this.parent.removeEventListener(`keydown`,this._onKeyDown)}onUpdate({searchTerms:e}){let t=MI(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=MI(e.dataset.searchValue??e.dataset.label??e.querySelector(`.label`)?.textContent??e.textContent),r=!n.every(e=>t.includes(e));return e.dispatchEvent(new CustomEvent(`Toggle`,{detail:{hidden:r}})),r}).filter(e=>!e).length;i.dispatchEvent(new CustomEvent(`Filter`,{detail:{matched:a,total:r.length}}))}},FI=e=>t=>{let n=typeof e==`function`,r=new PI(t,n?e():e);return n&&ti(()=>{r.onUpdate(e())}),()=>{r.destroy()}}}));function LI(e,t){O(t,!0),K(e,zI);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]);var c=RI();bs(c,()=>({...s,role:`radiogroup`,class:`sui select-button-group ${t.class??``}`,hidden:n(),tabindex:`-1`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o()}),void 0,void 0,void 0,`svelte-w7vim4`);var l=F(c);Eo(F(l),()=>t.children??E),D(l),D(c),Xo(c,FI),R(()=>l.inert=r()),U(e,c),k()}var RI,zI,Rae=s((()=>{Q(),Y(),II(),RI=V(`<div><div role="none" class="inner svelte-w7vim4"><!></div></div>`),zI={hash:`svelte-w7vim4`,code:`.select-button-group.svelte-w7vim4 {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-w7vim4:focus-visible {outline-width:0 !important;}.select-button-group.svelte-w7vim4 button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-w7vim4 button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-w7vim4 button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-w7vim4 button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-w7vim4 button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-w7vim4 [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-w7vim4 [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-w7vim4 [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-w7vim4 {display:contents;}`}}));function BI(e,t){O(t,!0);let n=J(t,`selected`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`]);lI(e,Zs(()=>r,{role:`radio`,get class(){return`sui select-button ${t.class??``}`},get"aria-checked"(){return n()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)}})),k()}var zae=s((()=>{Q(),Y(),gI()}));function VI(e,t){O(t,!0);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`popupPosition`,3,`bottom-left`),a=J(t,`popupPositionBaseElement`,3,void 0),o=J(t,`showPopupBackdrop`,3,!1),s=J(t,`label`,3,``),c=J(t,`variant`,3,void 0),l=J(t,`size`,3,`medium`),u=J(t,`iconic`,3,!1),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),f=N(void 0);var p={focus:()=>{z(f)?.focus()}},m=HI(),h=I(m);return lI(h,Zs(()=>d,{get class(){return`sui menu-button ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get label(){return s()},get variant(){return c()},get size(){return l()},get iconic(){return u()},"aria-haspopup":`menu`,get element(){return z(f)},set element(e){P(f,e,!0)},startIcon:e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.endIcon),U(e,n)},a=e=>{UF(e,{name:`more_vert`})},o=e=>{UF(e,{name:`arrow_drop_down`,class:`small-arrow`})};G(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),U(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),aI(L(h,2),{get anchor(){return z(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=H();Eo(I(r),()=>t.popup??E),U(e,r)},$$slots:{default:!0}}),U(e,m),k(p)}var HI,UI=s((()=>{Q(),Y(),gI(),WF(),cI(),HI=V(`<!> <!>`,1)}));function WI(e,t){O(t,!0),K(e,KI);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`label`,3,``),a=J(t,`variant`,3,void 0),o=J(t,`size`,3,`medium`),s=J(t,`popupPosition`,3,`bottom-left`),c=J(t,`showPopupBackdrop`,3,!1),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),u=N(void 0);var d=GI(),f=F(d);lI(f,Zs(()=>l,{get hidden(){return n()},get disabled(){return r()},get label(){return i()},get variant(){return a()},get size(){return o()}}));var p=L(f,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{UF(e,{name:`arrow_drop_down`,class:`small-arrow`})};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),U(e,n)},i=e=>{var n=H();Eo(I(n),()=>t.popup??E),U(e,n)},l=M(()=>X(`_sui.split_button.more_options`));VI(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return z(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return z(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}D(d),Ws(d,e=>P(u,e),()=>z(u)),R(e=>{q(d,`hidden`,n()),q(d,`aria-hidden`,n()),q(d,`aria-disabled`,r()),q(d,`aria-label`,e)},[()=>X(`_sui.split_button.x_options`,{values:{name:i()}})]),U(e,d),k()}var GI,KI,Bae=s((()=>{Q(),Y(),Z(),WF(),UI(),gI(),GI=V(`<div role="group" class="sui split-button svelte-clnzzc"><!> <!></div>`),KI={hash:`svelte-clnzzc`,code:`.split-button.svelte-clnzzc {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-clnzzc button {margin:0;}.split-button.svelte-clnzzc button.menu-button {border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0;aspect-ratio:3/4;}.split-button.svelte-clnzzc button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`}}));function qI(e,t){K(e,YI);let n=J(t,`hidden`,3,!1),r=J(t,`orientation`,3,`horizontal`),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`]);var a=JI();bs(a,()=>({...i,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r()}),void 0,void 0,void 0,`svelte-1cv30fj`),U(e,a)}var JI,YI,XI=s((()=>{Q(),Y(),JI=V(`<div></div>`),YI={hash:`svelte-1cv30fj`,code:`.divider.svelte-1cv30fj {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-1cv30fj {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-1cv30fj {margin:0 8px;width:1px;height:100%;}`}}));function ZI(e,t){K(e,$I);let n=J(t,`flex`,3,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]);var i=QI();bs(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[Cs]:{flex:n()}}),void 0,void 0,void 0,`svelte-zbmhts`),U(e,i)}var QI,$I,eL=s((()=>{Q(),Y(),QI=V(`<div></div>`),$I={hash:`svelte-zbmhts`,code:`.spacer.flex.svelte-zbmhts:not([hidden]) {display:block;flex:auto;}.spacer.svelte-zbmhts:not(.flex) {width:8px;height:8px;}`}}));function Vae(e,t){K(e,nL);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`children`]);var o=tL();bs(o,()=>({...a,role:`group`,class:`sui checkbox-group ${t.class??``} ${i()??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-roledescription":`checkbox group`}),void 0,void 0,void 0,`svelte-1to95n1`);var s=F(o);Eo(F(s),()=>t.children??E),D(s),D(o),R(()=>s.inert=r()),U(e,o)}var tL,nL,Hae=s((()=>{Q(),Y(),tL=V(`<div><div role="none" class="inner svelte-1to95n1"><!></div></div>`),nL={hash:`svelte-1to95n1`,code:`.checkbox-group.svelte-1to95n1 {display:inline-flex;}.checkbox-group.horizontal.svelte-1to95n1 {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-1to95n1 {gap:4px;flex-direction:column;}
|
|
647
|
+
@media (pointer: coarse) {.checkbox-group.vertical.svelte-1to95n1 {gap:8px;}
|
|
648
|
+
}.inner.svelte-1to95n1 {display:contents;}`}}));function rL(e,t){let n=Ia();O(t,!0),K(e,oL);let r=J(t,`checked`,15),i=J(t,`name`,3,void 0),a=J(t,`value`,3,void 0),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=J(t,`label`,3,void 0),f=J(t,`group`,15),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`name`,`value`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`label`,`aria-label`,`group`,`onChange`,`children`,`checkIcon`]),m=N(void 0),h=M(()=>r()===`mixed`);ti(()=>{Array.isArray(f())&&(f().includes(a())?r()!==!0&&r(!0):r()!==!1&&r(!1))});var g=aL();let _;var v=F(g),y=F(v);{let e=e=>{var n=H(),i=I(n),a=e=>{var n=H();Eo(I(n),()=>t.checkIcon),U(e,n)},o=e=>{UF(e,{name:`remove`})},s=e=>{UF(e,{name:`check`})};G(i,e=>{t.checkIcon?e(a):z(h)?e(o,1):r()&&e(s,2)}),U(e,n)},d=M(()=>t[`aria-label`]||void 0),g=M(()=>t[`aria-label`]?void 0:`${n}-label`);lI(y,Zs(()=>p,{role:`checkbox`,get id(){return n},get name(){return i()},get value(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get"aria-invalid"(){return u()},get"aria-checked"(){return r()},get"aria-label"(){return z(d)},get"aria-labelledby"(){return z(g)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!(s()||c())&&(r(z(h)?!0:!r()),Array.isArray(f())&&(r()?f().includes(a())||f([...f(),a()]):f().includes(a())&&f(f().filter(e=>e!==a()))),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:r()}})))},get element(){return z(m)},set element(e){P(m,e,!0)},startIcon:e,$$slots:{startIcon:!0}}))}var b=L(y,2),x=e=>{var r=iL(),i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.children),U(e,n)},o=e=>{var t=Fa();R(()=>W(t,d())),U(e,t)};G(i,e=>{t.children?e(a):e(o,-1)}),D(r),R(()=>q(r,`id`,`${n}-label`)),U(e,r)};G(b,e=>{(t.children||d())&&e(x)}),D(v),D(g),R(()=>{_=cs(g,1,`sui checkbox ${t.class??``}`,`svelte-1tl7iav`,_,{checked:r(),indeterminate:z(h),disabled:s(),readonly:c()}),q(g,`hidden`,o()),v.inert=s()}),Sa(`click`,g,e=>{e.preventDefault(),e.stopPropagation(),e.target.matches(`button`)||z(m)?.click()}),U(e,g),k()}var iL,aL,oL,Uae=s((()=>{Q(),Y(),gI(),WF(),iL=V(`<label class="svelte-1tl7iav"><!></label>`),aL=V(`<div role="none"><div role="none" class="inner svelte-1tl7iav"><!> <!></div></div>`),oL={hash:`svelte-1tl7iav`,code:`.checkbox.svelte-1tl7iav {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.checkbox.svelte-1tl7iav:hover button {background-color:var(--sui-hover-background-color);}.checkbox.svelte-1tl7iav:hover button[aria-checked=true] {background-color:var(--sui-primary-accent-color-light);}.checkbox.svelte-1tl7iav:active button {background-color:var(--sui-active-background-color);}.checkbox.svelte-1tl7iav:active button[aria-checked=true] {background-color:var(--sui-primary-accent-color-dark);}.checkbox.svelte-1tl7iav button {flex:none;align-items:center;justify-content:center;overflow:hidden;margin:0 !important;border-width:var(--sui-checkbox-border-width, 1.5px);border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-border-radius);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);color:var(--sui-primary-accent-text-color);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.checkbox.svelte-1tl7iav button[aria-checked=true] {border-color:var(--sui-checkbox-border-color-checked, var(--sui-primary-accent-color));color:var(--sui-checkbox-foreground-color-checked, var(--sui-primary-accent-color-inverted));background-color:var(--sui-checkbox-background-color-checked, var(--sui-primary-accent-color));}.checkbox.svelte-1tl7iav button[aria-invalid=true] {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);}.checkbox.svelte-1tl7iav button[aria-checked=true][aria-invalid=true] {background-color:var(--sui-checkbox-background-color);}.checkbox.svelte-1tl7iav button .icon {font-size:calc(var(--sui-checkbox-height) - 2px);}.checkbox.svelte-1tl7iav label:where(.svelte-1tl7iav) {cursor:inherit;}.inner.svelte-1tl7iav {display:contents;}`},Ca([`click`])}));function sL(e,t){let n=Ia();O(t,!0),K(e,pL);let r=J(t,`open`,15,!1);J(t,`value`,11,``);let i=J(t,`role`,3,`dialog`),a=J(t,`size`,3,`medium`),o=J(t,`showClose`,3,!1),s=J(t,`showOk`,3,!0),c=J(t,`showCancel`,3,!0),l=J(t,`okLabel`,3,``),u=J(t,`okShortcuts`,3,void 0),d=J(t,`okDisabled`,3,!1),f=J(t,`cancelLabel`,3,``),p=J(t,`cancelShortcuts`,3,void 0),m=J(t,`cancelDisabled`,3,!1),h=J(t,`focusInput`,3,!0),g=Xs(t,`$$slots.$$events.$$legacy.open.value.title.role.size.class.showClose.showOk.showCancel.okLabel.okShortcuts.okDisabled.cancelLabel.cancelShortcuts.cancelDisabled.focusInput.children.header.headerExtra.footer.footerExtra.closeIcon.input`.split(`.`)),_=N(void 0),v=N(void 0);ti(()=>{if(r()&&z(v)){let e=!1;return(async()=>{await Yx(50),!e&&(h()?(z(v)?.querySelector(`input, button.primary`)?.focus(),z(v)?.querySelector(`input`)?.select()):z(_)?.focus())})(),()=>{e=!0}}});{let h=M(()=>t.header?void 0:t.title),y=M(()=>t.header?t.title:`${n}-title`);Ws(Mae(e,Zs(()=>g,{get role(){return i()},get id(){return n},class:`dialog`,get"aria-label"(){return z(h)},get"aria-labelledby"(){return z(y)},get"aria-describedby"(){return`${n}-body`},showBackdrop:!0,get open(){return r()},set open(e){r(e)},children:(e,r)=>{var i=fL(),h=F(i),g=e=>{var r=lL(),i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.header),U(e,n)},s=e=>{var r=cL(),i=I(r),a=F(i,!0);D(i);var s=L(i,2);ZI(s,{flex:!0});var c=L(s,2);Eo(c,()=>t.headerExtra??E);var l=L(c,2),u=e=>{{let r=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.closeIcon),U(e,n)},a=e=>{UF(e,{name:`close`})};G(r,e=>{t.closeIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>X(`_sui.close`));lI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{z(_)?.close(`close`)},startIcon:r,$$slots:{startIcon:!0}})}};G(l,e=>{o()&&e(u)}),R(()=>{q(i,`id`,`${n}-title`),W(a,t.title)}),U(e,r)};G(i,e=>{t.header?e(a):e(s,-1)}),D(r),U(e,r)};G(h,e=>{(t.title||o()||t.header||t.headerExtra)&&e(g)});var y=L(h,2);Eo(F(y),()=>t.children??E),D(y);var b=L(y,2),x=e=>{var n=dL(),r=F(n),i=e=>{var n=H();Eo(I(n),()=>t.footer??E),U(e,n)},a=e=>{var n=uL(),r=I(n);Eo(r,()=>t.footerExtra??E);var i=L(r,2);ZI(i,{flex:!0});var a=L(i,2),o=e=>{{let t=M(()=>l()||X(`_sui.ok`));lI(e,{variant:`primary`,get label(){return z(t)},get keyShortcuts(){return u()},get disabled(){return d()},onclick:()=>{z(_)?.close(`ok`)}})}};G(a,e=>{s()&&e(o)});var h=L(a,2),g=e=>{{let t=M(()=>f()||X(`_sui.cancel`));lI(e,{variant:`secondary`,get label(){return z(t)},get keyShortcuts(){return p()},get disabled(){return m()},onclick:()=>{z(_)?.close(`cancel`)}})}};G(h,e=>{c()&&e(g)}),U(e,n)};G(r,e=>{t.footer?e(i):e(a,-1)}),D(n),U(e,n)};G(b,e=>{(s()||c()||t.footer||t.footerExtra)&&e(x)}),D(i),Ws(i,e=>P(v,e),()=>z(v)),R(()=>{cs(i,1,`content ${t.class??``} ${a()??``}`,`svelte-y90jpt`),q(y,`id`,`${n}-body`)}),U(e,i)},$$slots:{default:!0}})),e=>P(_,e,!0),()=>z(_))}k()}var cL,lL,uL,dL,fL,pL,mL=s((()=>{Q(),Y(),Z(),Xx(),gI(),eL(),WF(),iI(),cL=V(`<div role="none" class="title svelte-y90jpt"> </div> <!> <!> <!>`,1),lL=V(`<div role="none" class="header svelte-y90jpt"><!></div>`),uL=V(`<!> <!> <!> <!>`,1),dL=V(`<div role="none" class="footer svelte-y90jpt"><!></div>`),fL=V(`<div role="none"><!> <div role="none" class="body svelte-y90jpt"><!></div> <!></div>`),pL={hash:`svelte-y90jpt`,code:`.content.svelte-y90jpt {position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--sui-dialog-content-border-radius, 4px);max-width:calc(100dvw - var(--sui-dialog-content-margin, 16px) * 2);background-color:var(--sui-dialog-content-background-color, var(--sui-secondary-background-color-translucent));box-shadow:var(--sui-dialog-content-box-shadow, 0 8px 16px var(--sui-popup-shadow-color));-webkit-backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));transition-property:transform;}dialog.open .content.svelte-y90jpt {transition-duration:150ms;transform:scale(100%);}dialog:not(.open) .content.svelte-y90jpt {transition-duration:300ms;transform:scale(90%);}.content.small.svelte-y90jpt {width:var(--sui-dialog-small-content-width, var(--sui-dialog-content-width, 400px));max-height:var(--sui-dialog-small-content-max-height, var(--sui-dialog-content-max-height, 400px));}
|
|
649
|
+
@media (max-height: 400px) {.content.small.svelte-y90jpt {max-height:calc(100dvh - 32px);}
|
|
650
|
+
}.content.medium.svelte-y90jpt {width:var(--sui-dialog-medium-content-width, var(--sui-dialog-content-width, 600px));max-height:var(--sui-dialog-medium-content-max-height, var(--sui-dialog-content-max-height, 600px));}
|
|
651
|
+
@media (max-height: 600px) {.content.medium.svelte-y90jpt {max-height:calc(100dvh - 32px);}
|
|
652
|
+
}.content.large.svelte-y90jpt {width:var(--sui-dialog-large-content-width, var(--sui-dialog-content-width, 800px));max-height:var(--sui-dialog-large-content-max-height, var(--sui-dialog-content-max-height, 800px));}
|
|
653
|
+
@media (max-height: 800px) {.content.large.svelte-y90jpt {max-height:calc(100dvh - 32px);}
|
|
654
|
+
}.content.x-large.svelte-y90jpt {width:var(--sui-dialog-x-large-content-width, var(--sui-dialog-content-width, 1000px));max-height:var(--sui-dialog-x-large-content-max-height, var(--sui-dialog-content-max-height, 1000px));}
|
|
655
|
+
@media (max-height: 1000px) {.content.x-large.svelte-y90jpt {max-height:calc(100dvh - 32px);}
|
|
656
|
+
}:is(.header.svelte-y90jpt, .footer.svelte-y90jpt) {display:flex;align-items:center;gap:4px;}.header.svelte-y90jpt {box-sizing:content-box;margin:var(--sui-dialog-header-margin, 0 16px);border-width:var(--sui-dialog-header-border-width, 0 0 1px);border-color:var(--sui-dialog-header-border-color, var(--sui-secondary-border-color));padding:var(--sui-dialog-header-padding, 16px 8px);height:var(--sui-dialog-header-height, 32px);}.header.svelte-y90jpt .title:where(.svelte-y90jpt) {font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-bold);}.footer.svelte-y90jpt {margin:var(--sui-dialog-footer-margin, 0 24px 24px);}
|
|
657
|
+
@media (width < 768px) {.footer.svelte-y90jpt {margin:var(--sui-dialog-footer-margin, 0 16px 16px);}
|
|
658
|
+
}.body.svelte-y90jpt {overflow:auto;margin:var(--sui-dialog-body-margin, 24px 24px);white-space:normal;line-height:var(--sui-line-height-compact);}
|
|
659
|
+
@media (width < 768px) {.body.svelte-y90jpt {margin:var(--sui-dialog-body-margin, 16px 16px);}
|
|
660
|
+
}`}}));function hL(e,t){O(t,!0);let n=J(t,`open`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`]);sL(e,Zs(()=>r,{role:`alertdialog`,showCancel:!1,get open(){return n()},set open(e){n(e)}})),k()}var Wae=s((()=>{Q(),Y(),mL()}));function gL(e,t){O(t,!0);let n=J(t,`open`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`]);sL(e,Zs(()=>r,{role:`alertdialog`,get open(){return n()},set open(e){n(e)}})),k()}var Gae=s((()=>{Q(),Y(),mL()}));function _L(e,t){let n=Ia();O(t,!0),K(e,bL);let r=J(t,`value`,15),i=J(t,`element`,15),a=J(t,`role`,3,`textbox`),o=J(t,`keyShortcuts`,3,void 0),s=J(t,`dir`,3,void 0),c=J(t,`name`,3,void 0),l=J(t,`showInlineLabel`,3,!1),u=J(t,`inputmode`,3,`text`),d=J(t,`flex`,3,!1),f=J(t,`monospace`,3,!1),p=J(t,`debounce`,3,!1),m=J(t,`hidden`,3,!1),h=J(t,`disabled`,3,!1),g=J(t,`readonly`,3,!1),_=J(t,`required`,3,!1),v=J(t,`invalid`,3,!1),y=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`role`,`keyShortcuts`,`dir`,`name`,`showInlineLabel`,`inputmode`,`flex`,`monospace`,`debounce`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`aria-label`,`children`,`oninput`]),b=M(()=>typeof p()==`number`?p():300),x=0;ti(()=>()=>{clearTimeout(x)});let S=e=>{r(i()?.value),t.oninput?.(e)},C=e=>{let t=e;p()?(clearTimeout(x),x=setTimeout(()=>{S(t)},z(b))):S(t)};var w=yL();let ee;var T=F(w);bs(T,()=>({...y,value:r(),type:`text`,role:a(),dir:s(),name:c(),tabindex:h()?-1:0,disabled:h()||void 0,readonly:g()||void 0,inputmode:u(),"aria-label":t[`aria-label`],"aria-hidden":m(),"aria-disabled":h(),"aria-readonly":g(),"aria-required":_(),"aria-invalid":v(),oninputcapture:C}),void 0,void 0,void 0,`svelte-9fsh1h`,!0),Ws(T,e=>i(e),()=>i()),Xo(T,()=>YF(o()));var te=L(T,2),ne=e=>{var i=vL();let a;ZF(F(i),{children:(e,n)=>{_t();var r=Fa();R(()=>W(r,t[`aria-label`])),U(e,r)},$$slots:{default:!0}}),D(i),R(()=>{q(i,`id`,`${n}-label`),a=cs(i,1,`label svelte-9fsh1h`,null,a,{hidden:!!r()})}),U(e,i)};G(te,e=>{t[`aria-label`]&&l()&&e(ne)}),D(w),R(()=>{ee=cs(w,1,`sui text-input ${t.class??``}`,`svelte-9fsh1h`,ee,{flex:d(),monospace:f(),disabled:h(),readonly:g()}),q(w,`hidden`,m()),T.dir=T.dir}),U(e,w),k()}var vL,yL,bL,xL=s((()=>{Q(),Y(),XF(),QF(),vL=V(`<span aria-hidden="true"><!></span>`),yL=V(`<div role="none"><input/> <!></div>`),bL={hash:`svelte-9fsh1h`,code:`.text-input.svelte-9fsh1h {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.text-input.flex.svelte-9fsh1h:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.text-input.monospace.svelte-9fsh1h {--sui-textbox-font-family: var(--sui-font-family-monospace, monospace);}input.svelte-9fsh1h:is(:where(.svelte-9fsh1h):-webkit-autofill, :where(.svelte-9fsh1h):-webkit-autofill:focus) {transition:background-color 0s 600000s, color 0s 600000s;}input.svelte-9fsh1h {display:inline-block;flex:auto;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-singleline-padding);min-width:0;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-singleline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}input.svelte-9fsh1h:focus {border-color:var(--sui-textbox-border-color-focus, var(--sui-primary-accent-color));color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}input.svelte-9fsh1h:read-only {color:var(--sui-tertiary-foreground-color);border-color:var(--sui-textbox-border-color) !important;}input.svelte-9fsh1h:is(:where(.svelte-9fsh1h):disabled, :where(.svelte-9fsh1h):read-only) {background-color:var(--sui-disabled-background-color);}input[aria-invalid=true].svelte-9fsh1h {border-color:var(--sui-error-border-color);}input.svelte-9fsh1h ~ button {flex:none;margin-inline-start:-1px;border-width:1px;border-color:var(--sui-textbox-border-color);height:var(--sui-textbox-height);aspect-ratio:1/1;}input.svelte-9fsh1h ~ button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}input.svelte-9fsh1h ~ button .icon {font-size:var(--sui-font-size-xx-large);}.label.svelte-9fsh1h {position:absolute;inset:var(--sui-textbox-singleline-padding);z-index:2;display:flex;align-items:center;justify-content:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));pointer-events:none;}.label.hidden.svelte-9fsh1h {opacity:0;}input.svelte-9fsh1h:focus + .label:where(.svelte-9fsh1h) {opacity:0;}input.svelte-9fsh1h::placeholder,
|
|
661
|
+
.label.svelte-9fsh1h {color:var(--sui-textbox-placeholder-foreground-color, var(--sui-textbox-foreground-color));opacity:var(--sui-textbox-placeholder-opacity, 0.5);font-family:var(--sui-textbox-placeholder-font-family, var(--sui-textbox-font-family));font-size:var(--sui-textbox-placeholder-font-size, var(--sui-textbox-font-size));line-height:var(--sui-textbox-placeholder-singleline-line-height, var(--sui-textbox-singleline-line-height));font-weight:var(--sui-textbox-placeholder-font-weight, var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal)));text-align:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));text-indent:var(--sui-textbox-placeholder-text-indent, var(--sui-textbox-text-indent, 0));letter-spacing:var(--sui-textbox-placeholder-letter-spacing, var(--sui-textbox-letter-spacing, normal));}`}}));function SL(e,t){O(t,!0),K(e,wL);let n=J(t,`open`,15,!1),r=J(t,`value`,15,``),i=J(t,`textboxAttrs`,19,()=>({})),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`value`,`textboxAttrs`,`children`,`input`,`onkeydown`,`onkeyup`,`onkeypress`,`oninput`]);sL(e,Zs(()=>a,{role:`alertdialog`,get open(){return n()},set open(e){n(e)},children:(e,n)=>{var a=CL(),o=I(a);Eo(o,()=>t.children??E);var s=L(o,2),c=F(s),l=e=>{var n=H();Eo(I(n),()=>t.input),U(e,n)},u=e=>{_L(e,Zs({dir:`auto`,flex:!0,autofocus:!0},i,{get onkeydown(){return t.onkeydown},get onkeyup(){return t.onkeyup},get onkeypress(){return t.onkeypress},get oninput(){return t.oninput},get value(){return r()},set value(e){r(e)}}))};G(c,e=>{t.input?e(l):e(u,-1)}),D(s),U(e,a)},$$slots:{default:!0}})),k()}var CL,wL,Kae=s((()=>{Q(),Y(),xL(),mL(),CL=V(`<!> <div class="input-outer svelte-1a2ai1k"><!></div>`,1),wL={hash:`svelte-1a2ai1k`,code:`.input-outer.svelte-1a2ai1k {margin:12px 0 0;}`}}));function TL(e,t){O(t,!0);let n=J(t,`accept`,3,void 0),r=J(t,`multiple`,3,!1),i=J(t,`onSelect`,3,void 0),a=J(t,`onCancel`,3,void 0),o=N(void 0);var s={open:()=>{z(o)?.click()}},c=EL();return Ws(c,e=>P(o,e),()=>z(o)),R(()=>{q(c,`accept`,n()),c.multiple=r()}),Sa(`change`,c,({target:e})=>{let t=[...e.files];i()?.({files:t,file:t[0]})}),xa(`cancel`,c,e=>{e.stopPropagation(),a()?.()}),U(e,c),k(s)}var EL,qae=s((()=>{Q(),Y(),EL=V(`<input class="sui file-picker" type="file" hidden=""/>`),Ca([`change`])}));function DL(e,t){let n=Ia();K(e,AL);let r=J(t,`label`,3,``),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`label`,`children`]);var a=kL();bs(a,()=>({...i,role:`rowgroup`,class:`sui grid-body row-group ${t.class??``}`,"aria-labelledby":r()?`${n}-label`:void 0,"aria-roledescription":`grid body`}),void 0,void 0,void 0,`svelte-3urzka`);var o=F(a),s=e=>{var t=OL();Wo(F(t),()=>`th`,!1,(e,t)=>{bs(e,()=>({role:`columnheader`,id:`${n}-label`,colspan:`9999`,class:``}),void 0,void 0,void 0,`svelte-3urzka`);var i=Fa();R(()=>W(i,r())),U(t,i)}),D(t),U(e,t)};G(o,e=>{r()&&e(s)}),Eo(L(o,2),()=>t.children??E),D(a),U(e,a)}var OL,kL,AL,Jae=s((()=>{Q(),Y(),OL=V(`<div role="row" class="row-group-caption svelte-3urzka"><!></div>`),kL=V(`<div><!> <!></div>`),AL={hash:`svelte-3urzka`,code:`[role=rowgroup].svelte-3urzka {display:table-row-group;}[role=row].svelte-3urzka {display:table-row;}[role=columnheader].svelte-3urzka {display:table-cell;padding:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);text-align:start;}`}}));function jL(e,t){K(e,NL);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=ML();bs(r,()=>({...n,role:`gridcell`,class:`sui grid-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-9kmk9i`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var ML,NL,Yae=s((()=>{Q(),Y(),ML=V(`<div><!></div>`),NL={hash:`svelte-9kmk9i`,code:`.grid-cell.svelte-9kmk9i {display:table-cell;}`}}));function PL(e,t){K(e,IL);let n=J(t,`selected`,3,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`selected`,`children`]);var i=FL();bs(i,()=>({...r,role:`row`,class:`sui grid-row ${t.class??``}`,tabindex:`0`,"aria-selected":n()}),void 0,void 0,void 0,`svelte-1kensem`),Eo(F(i),()=>t.children??E),D(i),U(e,i)}var FL,IL,Xae=s((()=>{Q(),Y(),FL=V(`<div><!></div>`),IL={hash:`svelte-1kensem`,code:`.grid-row.svelte-1kensem {display:table-row;height:var(--sui-primary-row-height);}`}}));function Zae(e,t){O(t,!0),K(e,RL);let n=J(t,`element`,15),r=J(t,`multiple`,3,!1),i=J(t,`clickToSelect`,3,!0),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`element`,`class`,`multiple`,`clickToSelect`,`children`,`onChange`]);var o=LL(),s=e=>{t.onChange?.(e)};bs(o,()=>({...a,role:`grid`,class:`sui grid ${t.class??``}`,"aria-multiselectable":r(),onChange:s}),void 0,void 0,void 0,`svelte-jd3b1l`),Eo(F(o),()=>t.children??E),D(o),Ws(o,e=>n(e),()=>n()),Xo(o,()=>FI({clickToSelect:i()})),U(e,o),k()}var LL,RL,Qae=s((()=>{Q(),Y(),II(),LL=V(`<div><!></div>`),RL={hash:`svelte-jd3b1l`,code:`.grid.svelte-jd3b1l {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.grid.data.svelte-jd3b1l {border-collapse:collapse;}.grid.data.svelte-jd3b1l :is(.grid-col-header, .grid-row-header, .grid-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}}));function zL(e,t){O(t,!0),K(e,VL);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=J(t,`multiple`,3,!1),c=J(t,`searchTerms`,3,``),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`multiple`,`searchTerms`,`children`,`onFilter`]),u=N(!1);var d=BL(),f=e=>{let{detail:{matched:n,total:r}}=e;P(u,n!==r),t.onFilter?.(e)};bs(d,()=>({...l,role:`listbox`,class:`sui listbox ${t.class??``}`,tabindex:r()?-1:0,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-multiselectable":s(),onFilter:f,[Cs]:{filtered:z(u)}}),void 0,void 0,void 0,`svelte-kctt5v`);var p=F(d);Eo(F(p),()=>t.children??E),D(p),D(d),Xo(d,()=>FI(()=>({searchTerms:c()}))),R(()=>p.inert=r()),U(e,d),k()}var BL,VL,HL=s((()=>{Q(),Y(),II(),BL=V(`<div><div role="none" class="inner svelte-kctt5v"><!></div></div>`),VL={hash:`svelte-kctt5v`,code:`[role=listbox].svelte-kctt5v {display:flex;flex-direction:column;margin:var(--sui-focus-ring-width);border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);min-width:var(--sui-listbox-min-width, calc(var(--sui-option-height) * 5));color:var(--sui-listbox-foreground-color);background-color:var(--sui-listbox-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);}
|
|
662
|
+
@media (pointer: coarse) {[role=listbox].svelte-kctt5v {gap:8px 0;}
|
|
663
|
+
}[role=listbox].svelte-kctt5v [role=separator] {margin:4px 0;background-color:var(--sui-control-border-color);}[role=listbox][aria-invalid=true].svelte-kctt5v {border-color:var(--sui-error-border-color);}[role=listbox].tabs.svelte-kctt5v {padding:0;border-block-start-width:0;border-block-end-width:0;border-inline-end-width:1px;border-inline-start-width:0;border-color:var(--sui-control-border-color);}[role=listbox].tabs.svelte-kctt5v .option button {justify-content:flex-start;border-width:0;border-inline-end-width:2px;border-color:transparent;padding:0 12px;border-start-end-radius:0;border-end-end-radius:0;height:var(--sui-tab-medium-height);}[role=listbox].tabs.svelte-kctt5v .option button[aria-selected=true] {border-color:var(--sui-primary-accent-color-light);}[role=listbox].tabs.svelte-kctt5v .option button .icon {display:none;}[role=listbox].in-combobox.svelte-kctt5v:focus-visible {outline-color:transparent;}[role=listbox].filtered.svelte-kctt5v [role=separator] {display:none;}.inner.svelte-kctt5v {display:contents;}`}}));function UL(e,t){let n=Ia();K(e,GL);let r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`label`,`children`]);var s=WL();bs(s,()=>({...o,role:`group`,id:n,class:`sui option-group ${t.class??``}`,hidden:r(),"aria-hidden":r(),"aria-disabled":i(),"aria-labelledby":`${n}-label`,"aria-roledescription":`option group`}),void 0,void 0,void 0,`svelte-1aq3717`);var c=F(s);ZF(F(c),{children:(e,t)=>{_t();var n=Fa();R(()=>W(n,a())),U(e,n)},$$slots:{default:!0}}),D(c);var l=L(c,2);Eo(F(l),()=>t.children??E),D(l),D(s),R(()=>{q(c,`id`,`${n}-label`),l.inert=i()}),U(e,s)}var WL,GL,$ae=s((()=>{Q(),Y(),QF(),WL=V(`<div><div role="none" class="label svelte-1aq3717"><!></div> <div role="none" class="inner svelte-1aq3717"><!></div></div>`),GL={hash:`svelte-1aq3717`,code:`.option-group.svelte-1aq3717:not(:first-child) {margin:12px 0 0;}.label.svelte-1aq3717 {margin:8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.inner.svelte-1aq3717 {display:contents;}`}}));function KL(e,t){O(t,!0),K(e,YL);let n=J(t,`selected`,15,!1),r=J(t,`hidden`,15,!1),i=J(t,`disabled`,3,!1),a=J(t,`value`,19,()=>t.label),o=J(t,`searchValue`,19,()=>t.label),s=J(t,`wrap`,3,!1),c=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`selected`,`hidden`,`class`,`disabled`,`label`,`value`,`searchValue`,`wrap`,`children`,`checkIcon`,`startIcon`,`onChange`,`onToggle`]);var l=JL();let u;lI(F(l),Zs(()=>c,{role:`option`,tabindex:`-1`,get"aria-selected"(){return n()},get label(){return t.label},get value(){return a()},get hidden(){return r()},get disabled(){return i()},get"data-search-value"(){return o()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)},onToggle:e=>{r(e.detail.hidden),r()&&n(!1),t.onToggle?.(e)},startIcon:e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},children:(e,r)=>{var i=qL(),a=I(i),o=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.checkIcon),U(e,n)},a=e=>{UF(e,{class:`check`,name:`check`})};G(r,e=>{t.checkIcon?e(i):e(a,-1)}),U(e,n)};G(a,e=>{n()&&e(o)}),Eo(L(a,2),()=>t.children??E),U(e,i)},$$slots:{startIcon:!0,default:!0}})),D(l),R(()=>{u=cs(l,1,`sui option ${t.class??``}`,`svelte-1d0mo69`,u,{wrap:s()}),q(l,`hidden`,r())}),U(e,l),k()}var qL,JL,YL,XL=s((()=>{Q(),Y(),gI(),WF(),qL=V(`<!> <!>`,1),JL=V(`<div role="none"><!></div>`),YL={hash:`svelte-1d0mo69`,code:`.option.svelte-1d0mo69 {display:contents;}.option.svelte-1d0mo69:focus-visible {outline-width:0 !important;}.option.svelte-1d0mo69 .wrap button {white-space:normal;}.option.svelte-1d0mo69 button {flex:none;display:flex;gap:4px;margin:0 !important;border-radius:var(--sui-option-border-radius);padding:var(--sui-option-padding);width:100%;height:auto;min-height:var(--sui-option-height);}.option.svelte-1d0mo69 button:active {background-color:var(--sui-active-background-color);}.option.svelte-1d0mo69 button[aria-selected=true] .icon.check {color:var(--sui-primary-accent-color-text);}.option.svelte-1d0mo69 button * {flex:none;}.option.svelte-1d0mo69 button .label {flex:auto;}.option.svelte-1d0mo69 :is(.focused, button:hover) {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-1d0mo69 .icon.check {margin:-2px;}`}}));function ZL(e,t){O(t,!0),K(e,$L);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`children`,`onChange`]);var a=QL(),o=e=>{t.onChange?.(e)};bs(a,()=>({...i,role:`menu`,class:`sui menu ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),onChange:o}),void 0,void 0,void 0,`svelte-sj02jj`),Eo(F(a),()=>t.children??E),D(a),Xo(a,FI),U(e,a),k()}var QL,$L,eR=s((()=>{Q(),Y(),II(),QL=V(`<div><!></div>`),$L={hash:`svelte-sj02jj`,code:`.menu.svelte-sj02jj {display:flex;flex-direction:column;margin:0;border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}
|
|
664
|
+
@media (pointer: coarse) {.menu.svelte-sj02jj {gap:8px 0;}
|
|
665
|
+
}.menu.svelte-sj02jj [role=separator] {margin:var(--sui-menu-divider-margin, 4px);background-color:var(--sui-menu-divider-color, var(--sui-control-border-color));}`}}));function tR(e,t){O(t,!0),K(e,aR);let n=J(t,`role`,3,`menuitem`),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=J(t,`popupPosition`,3,`right-top`),s=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`hidden`,`disabled`,`label`,`popupPosition`,`children`,`startIcon`,`endIcon`,`chevronIcon`,`items`,`onmouseenter`,`onmouseleave`,`onclick`,`onChange`,`onSelect`]),c=N(!1),l=N(!1),u=N(void 0),d=N(void 0),f=M(()=>n()===`menuitem`&&!!t.items);ac(()=>{P(d,z(u)?.closest(`dialog`)??void 0,!0)});var p=iR(),m=F(p);{let e=e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},o=e=>{var n=rR(),r=I(n);let i;var o=F(r),s=e=>{var t=Fa();R(()=>W(t,a())),U(e,t)},c=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)};G(o,e=>{a()?e(s):e(c,-1)}),D(r);var l=L(r,2),u=e=>{var n=nR(),r=F(n),i=e=>{var n=H();Eo(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{{let t=M(()=>xh()?`chevron_left`:`chevron_right`);UF(e,{get name(){return z(t)}})}};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),D(n),U(e,n)};G(l,e=>{z(f)&&e(u)}),R(()=>i=cs(r,1,`content svelte-1eo3p1z`,null,i,{label:!!a()})),U(e,n)},d=e=>{var n=H();Eo(I(n),()=>t.endIcon??E),U(e,n)},p=M(()=>z(f)?`menu`:void 0),h=M(()=>z(f)?z(c):void 0);lI(m,Zs(()=>s,{get role(){return n()},get hidden(){return r()},get disabled(){return i()},get"aria-haspopup"(){return z(p)},get"aria-expanded"(){return z(h)},onmouseenter:e=>{z(f)&&window.setTimeout(()=>{P(c,!0)},200),t.onmouseenter?.(e)},onmouseleave:e=>{z(f)&&window.setTimeout(()=>{z(l)||P(c,!1)},200),t.onmouseleave?.(e)},onclick:e=>{z(f)&&(e.preventDefault(),e.stopPropagation(),P(c,!z(c))),t.onclick?.(e)},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(u)},set element(e){P(u,e,!0)},startIcon:e,children:o,endIcon:d,$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var h=L(m,2),g=e=>{aI(e,{get anchor(){return z(u)},get parentDialogElement(){return z(d)},get position(){return o()},get open(){return z(c)},set open(e){P(c,e,!0)},get hovered(){return z(l)},set hovered(e){P(l,e,!0)},children:(e,n)=>{ZL(e,{children:(e,n)=>{var r=H();Eo(I(r),()=>t.items??E),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(h,e=>{z(f)&&z(u)&&z(d)&&e(g)}),D(p),R(()=>{cs(p,1,`sui menuitem ${t.class??``}`,`svelte-1eo3p1z`),q(p,`hidden`,r())}),U(e,p),k()}var nR,rR,iR,aR,oR=s((()=>{Q(),Y(),Z(),sc(),gI(),WF(),cI(),eR(),nR=V(`<span role="none" class="icon-outer svelte-1eo3p1z"><!></span>`),rR=V(`<div role="none"><!></div> <!>`,1),iR=V(`<div role="none"><!> <!></div>`),aR={hash:`svelte-1eo3p1z`,code:`.menuitem.svelte-1eo3p1z {position:relative;}.menuitem.svelte-1eo3p1z button {display:flex;gap:var(--sui-menuitem-gap, 4px);align-items:var(--sui-menuitem-align-items, center);border-radius:var(--sui-menuitem-border-radius, var(--sui-option-border-radius, 4px));margin:0 !important;padding:var(--sui-menuitem-padding, 0 16px);width:100%;min-width:var(--sui-menuitem-min-width, 160px);height:var(--sui-menuitem-height, var(--sui-option-height));color:var(--sui-menuitem-foreground-color, var(--sui-control-foreground-color, inherit));background-color:var(--sui-menuitem-background-color, transparent);font-size:var(--sui-menuitem-font-size, var(--sui-option-font-size));font-weight:var(--sui-menuitem-font-weight, var(--sui-option-font-weight, var(--sui-font-weight-normal, normal)));}.menuitem.svelte-1eo3p1z button[aria-checked=true] .icon {color:var(--sui-primary-accent-color-text);}.menuitem.svelte-1eo3p1z button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.menuitem.svelte-1eo3p1z button:active {background-color:var(--sui-active-background-color);}.menuitem.svelte-1eo3p1z :hover > [role=menu] {opacity:1;}.menuitem.svelte-1eo3p1z > [role=menu] {position:absolute;inset-block-start:2px;inset-block-end:auto;inset-inline-start:calc(100% + 4px);inset-inline-end:auto;}.menuitem.svelte-1eo3p1z > [role=menu]:hover {opacity:1;}.content.svelte-1eo3p1z {flex:auto;}.icon-outer.svelte-1eo3p1z {flex:none;width:24px;height:24px;}`}}));function sR(e,t){O(t,!0);let n=J(t,`checked`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`]);tR(e,Zs(()=>o,{role:`menuitemcheckbox`,get class(){return`sui menu-item-checkbox ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},startIcon:e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var t=H(),r=I(t),i=e=>{UF(e,{name:`check`})};G(r,e=>{n()&&e(i)}),U(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var cR=s((()=>{Q(),Y(),WF(),oR()}));function lR(e,t){O(t,!0);let n=J(t,`checked`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`]);tR(e,Zs(()=>o,{role:`menuitemradio`,get class(){return`sui menu-item-radio ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},startIcon:e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var t=H(),r=I(t),i=e=>{UF(e,{name:`check`})};G(r,e=>{n()&&e(i)}),U(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var eoe=s((()=>{Q(),Y(),WF(),oR()}));function toe(e,t){K(e,dR);let n=J(t,`now`,3,0),r=J(t,`min`,3,0),i=J(t,`max`,3,100),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`now`,`min`,`max`,`text`]);var o=uR();bs(o,()=>({...a,role:`progressbar`,class:`sui progressbar ${t.class??``}`,"aria-valuenow":n(),"aria-valuemin":r(),"aria-valuemax":i(),"aria-valuetext":t.text}),void 0,void 0,void 0,`svelte-9dpcz`);var s=F(o);let c;D(o),R(()=>c=ds(s,``,c,{width:`${n()??``}%`})),U(e,o)}var uR,dR,noe=s((()=>{Q(),Y(),uR=V(`<div><div role="none" class="svelte-9dpcz"></div></div>`),dR={hash:`svelte-9dpcz`,code:`.progressbar.svelte-9dpcz {overflow:hidden;border-width:var(--sui-progressbar-border-width, 1px);border-style:var(--sui-progressbar-border-style, solid);border-color:var(--sui-progressbar-border-color, var(--sui-control-border-color));border-radius:var(--sui-progressbar-border-radius, 16px);width:var(--sui-progressbar-width, 240px);height:var(--sui-progressbar-height, 10px);background-color:var(--sui-progressbar-background-color, var(--sui-secondary-background-color));}.progressbar.svelte-9dpcz div:where(.svelte-9dpcz) {height:100%;background-color:var(--sui-progressbar-foreground-color, var(--sui-primary-accent-color-light));transition:width 250ms;}`}}));function roe(e,t){O(t,!0),K(e,pR);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=J(t,`orientation`,3,`horizontal`),c=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`orientation`,`children`,`onChange`]);var l=fR(),u=e=>{t.onChange?.(e)};bs(l,()=>({...c,role:`radiogroup`,class:`sui radio-group ${t.class??``} ${s()??``}`,tabindex:`-1`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-orientation":s(),onChange:u}),void 0,void 0,void 0,`svelte-gqauol`);var d=F(l);Eo(F(d),()=>t.children??E),D(d),D(l),Xo(l,FI),R(()=>d.inert=r()),U(e,l),k()}var fR,pR,ioe=s((()=>{Q(),Y(),II(),fR=V(`<div><div role="none" class="inner svelte-gqauol"><!></div></div>`),pR={hash:`svelte-gqauol`,code:`.radio-group.svelte-gqauol {display:inline-flex;}.radio-group.svelte-gqauol:focus-visible {outline-width:0 !important;}.radio-group.horizontal.svelte-gqauol {gap:8px;align-items:center;flex-wrap:wrap;}.radio-group.vertical.svelte-gqauol {gap:4px;flex-direction:column;}
|
|
666
|
+
@media (pointer: coarse) {.radio-group.vertical.svelte-gqauol {gap:8px;}
|
|
667
|
+
}.radio-group.svelte-gqauol [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-gqauol [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-gqauol [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-gqauol {display:contents;}`}}));function aoe(e,t){let n=Ia();O(t,!0),K(e,gR);let r=J(t,`checked`,7,!1),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,3,void 0),l=J(t,`label`,3,void 0),u=J(t,`group`,15),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),f=N(void 0);ti(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=hR(),m=e=>{e.target.matches(`button`)||z(f)?.click()};bs(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[Cs]:{disabled:a()}}),void 0,void 0,void 0,`svelte-9gzih3`);var h=F(p);lI(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(f)},set element(e){P(f,e,!0)}});var g=L(h,2),_=e=>{var r=mR(),i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)},o=e=>{var t=Fa();R(()=>W(t,l())),U(e,t)};G(i,e=>{t.children?e(a):e(o,-1)}),D(r),R(()=>q(r,`id`,`${n}-label`)),U(e,r)};G(g,e=>{(t.children||l())&&e(_)}),D(p),U(e,p),k()}var mR,hR,gR,ooe=s((()=>{Q(),Y(),gI(),mR=V(`<label class="svelte-9gzih3"><!></label>`),hR=V(`<span><!> <!></span>`),gR={hash:`svelte-9gzih3`,code:`.radio.svelte-9gzih3 {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.radio.svelte-9gzih3 :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-9gzih3 :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-9gzih3 :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-9gzih3 :active button {background-color:var(--sui-active-background-color);}.radio.svelte-9gzih3 :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-9gzih3 button {flex:none;justify-content:center;overflow:hidden;margin:0 !important;border-width:1.5px;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.radio.svelte-9gzih3 button::before {content:"";border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 7px);height:calc(var(--sui-checkbox-height) - 7px);background-color:var(--sui-primary-accent-color);opacity:0;transition:all 200ms;will-change:opacity;}.radio.svelte-9gzih3 button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-9gzih3 button[aria-checked=true]::before {opacity:1;}.radio.svelte-9gzih3 label:where(.svelte-9gzih3) {cursor:inherit;}`}}));function soe(e,t){O(t,!0),K(e,yR);let n=J(t,`disabled`,3,!1),r=J(t,`showHandleBar`,3,!1),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`children`,`onResizeStart`,`onResizeEnd`]),a=Rt(`paneGroup`);if(!a)throw Error(`<ResizableHandle> must be used inside a <ResizablePaneGroup>`);let o=a.registerHandle(),s=M(()=>a.direction===`horizontal`),c=M(()=>a.sizes),l=M(()=>z(c)[o]??0),u=M(()=>Math.max(a.paneDefs[o]?.minSize??0,100-a.paneDefs.reduce((e,t,n)=>e+(n===o?0:t.maxSize),0))),d=M(()=>Math.min(a.paneDefs[o]?.maxSize??100,100-a.paneDefs.reduce((e,t,n)=>e+(n===o?0:t.minSize),0))),f=N(void 0),p=N(!1),m=N(0),h=N(0),g=N(!1),_=()=>{let e=z(f)?.closest(`.resizable-pane-group`);return e?z(s)?e.clientWidth:e.clientHeight:0},v=e=>{let{screenX:t,screenY:r,pointerId:i}=e;if(n()||!z(p)||i!==z(h))return;e.preventDefault(),e.stopPropagation();let c=z(s)?t:r,l=c-z(m),u=_();if(!u)return;let d=l/u*100;z(s)&&xh()&&(d=-d),P(m,c,!0),a.resize(o,d)},y=e=>{!z(p)||e.pointerId!==z(h)||(P(p,!1),P(m,0),P(h,0),document.removeEventListener(`pointermove`,v),document.removeEventListener(`pointerup`,y),document.removeEventListener(`pointercancel`,y),t.onResizeEnd?.())},b=e=>{n()||(e.preventDefault(),e.stopPropagation(),P(p,!0),P(m,z(s)?e.screenX:e.screenY,!0),P(h,e.pointerId,!0),t.onResizeStart?.(),document.addEventListener(`pointermove`,v),document.addEventListener(`pointerup`,y),document.addEventListener(`pointercancel`,y))},x=e=>{if(n())return;let{key:r,shiftKey:i}=e,c=i?10:1,l=0;if(r===`Enter`){e.preventDefault(),e.stopPropagation(),a.toggleCollapse(o);return}if(r===`Home`){e.preventDefault(),e.stopPropagation(),a.resize(o,-100);return}if(r===`End`){e.preventDefault(),e.stopPropagation(),a.resize(o,100);return}if(z(s)){let e=xh();if(r===`ArrowLeft`)l=e?c:-c;else if(r===`ArrowRight`)l=e?-c:c;else return}else if(r===`ArrowUp`)l=-c;else if(r===`ArrowDown`)l=c;else return;e.preventDefault(),e.stopPropagation(),z(g)||(P(g,!0),t.onResizeStart?.()),a.resize(o,l)},S=()=>{z(g)&&(P(g,!1),t.onResizeEnd?.())};var C=vR();bs(C,e=>({...i,role:`separator`,tabindex:n()?-1:0,"aria-orientation":z(s)?`vertical`:`horizontal`,"aria-valuenow":e,"aria-valuemin":z(u),"aria-valuemax":z(d),"aria-controls":a.paneDefs[o]?.id,"aria-disabled":n()||void 0,class:`sui resizable-handle ${t.class??``??``}`,onpointerdown:b,onkeydown:x,onblur:S,[Cs]:{horizontal:z(s),vertical:!z(s),disabled:n(),dragging:z(p)}}),[()=>Math.round(z(l))],void 0,void 0,`svelte-zen0m9`);var w=F(C),ee=e=>{var n=H();Eo(I(n),()=>t.children),U(e,n)},T=e=>{U(e,_R())};G(w,e=>{t.children?e(ee):r()&&e(T,1)}),D(C),Ws(C,e=>P(f,e),()=>z(f)),U(e,C),k()}var _R,vR,yR,coe=s((()=>{Q(),Y(),Z(),sc(),_R=V(`<div role="none" class="handle-bar svelte-zen0m9"></div>`),vR=V(`<div><!></div>`),yR={hash:`svelte-zen0m9`,code:`.resizable-handle.svelte-zen0m9 {position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;touch-action:none;outline-offset:0;background-color:transparent;transition:background-color 200ms;}.resizable-handle.svelte-zen0m9:focus-visible, .resizable-handle.svelte-zen0m9:hover, .resizable-handle.dragging.svelte-zen0m9 {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent);}.resizable-handle.svelte-zen0m9:focus-visible .handle-bar:where(.svelte-zen0m9), .resizable-handle.svelte-zen0m9:hover .handle-bar:where(.svelte-zen0m9), .resizable-handle.dragging.svelte-zen0m9 .handle-bar:where(.svelte-zen0m9) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-zen0m9 {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-zen0m9 {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-zen0m9 .handle-bar:where(.svelte-zen0m9) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-zen0m9 {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-zen0m9 .handle-bar:where(.svelte-zen0m9) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-zen0m9 .handle-bar:where(.svelte-zen0m9) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`}}));function loe(e,t){O(t,!0),K(e,xR);let n=J(t,`direction`,3,`horizontal`),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),i=Cr([]),a=Cr([]),o=Cr([]),s=0,c=()=>{if(!i.length)return;let e=i.reduce((e,t)=>e+(t.defaultSize??0),0),t=i.filter(e=>e.defaultSize===void 0).length,n=Math.max(0,100-e),r=t>0?n/t:0,o=i.map(e=>e.defaultSize??r);a.splice(0,a.length,...o)},l=(e,n)=>{let r=e,o=e+1;if(r<0||o>=a.length)return;let{minSize:s=0,maxSize:c=100}=i[r],{minSize:l=0,maxSize:u=100}=i[o],d=a[r],f=a[o],p=Math.min(c-d,f-l),m=Math.min(d-s,u-f),h=n>0?Math.min(n,p):-Math.min(-n,m);a[r]=d+h,a[o]=f-h,t.onResize?.({sizes:a.map(e=>Number(e.toFixed(1)))})};zt(`paneGroup`,{get direction(){return n()},sizes:a,registerPane:({id:e,defaultSize:t,minSize:n,maxSize:r})=>{let a=i.length;return i.push({id:e,defaultSize:t,minSize:n,maxSize:r}),{index:a}},registerHandle:()=>{let e=s;return s+=1,e},resize:l,toggleCollapse:e=>{let{minSize:t=0}=i[e];if(o[e]!==void 0){let t=o[e]-a[e];o[e]=void 0,l(e,t)}else o[e]=a[e],l(e,-(a[e]-t))},paneDefs:i}),ti(()=>{i.length&&!a.length&&c()});var u=bR();bs(u,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-95yezj`),Eo(F(u),()=>t.children??E),D(u),U(e,u),k()}var bR,xR,uoe=s((()=>{Q(),Y(),sc(),bR=V(`<div><!></div>`),xR={hash:`svelte-95yezj`,code:`.resizable-pane-group.svelte-95yezj {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-95yezj {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-95yezj {flex-direction:column;width:100%;height:100%;}`}}));function SR(e,t){let n=Ia();O(t,!0);let r=J(t,`defaultSize`,3,void 0),i=J(t,`minSize`,3,0),a=J(t,`maxSize`,3,100),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),s=Rt(`paneGroup`);if(!s)throw Error(`<ResizablePane> must be used inside a <ResizablePaneGroup>`);let{index:c}=s.registerPane({id:n,defaultSize:r(),minSize:i(),maxSize:a()}),l=M(()=>s.direction),u=M(()=>s.sizes[c]),d=M(()=>z(u)===void 0?r()??0:z(u));ti(()=>{z(u)!==void 0&&B(()=>t.onResize?.({size:Number(z(u).toFixed(1))}))});var f=CR();bs(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[ws]:{"flex-basis":`${z(d)??``}%`,"flex-grow":`0`,"flex-shrink":`0`,"overflow-x":z(l)===`horizontal`?`auto`:void 0,"overflow-y":z(l)===`vertical`?`auto`:void 0}})),Eo(F(f),()=>t.children??E),D(f),U(e,f),k()}var CR,doe=s((()=>{Q(),Y(),sc(),CR=V(`<div><!></div>`)}));function wR(e,t){O(t,!0),K(e,DR);let n=J(t,`itemChunkSize`,3,25),r=N(Cr(n())),i=N(void 0),a=M(()=>t.items.length>z(r)),o=new IntersectionObserver(([{isIntersecting:e}])=>{e&&(z(a)?P(r,z(r)+n()):o.disconnect())});ti(()=>{z(i)&&o.observe(z(i))});var s=ER(),c=I(s);mo(c,19,()=>t.items.slice(0,z(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=H();Eo(I(i),()=>t.renderItem,()=>z(n),()=>z(r)),U(e,i)});var l=L(c,2),u=e=>{var t=TR();Ws(t,e=>P(i,e),()=>z(i)),U(e,t)};G(l,e=>{z(a)&&e(u)}),U(e,s),k()}var TR,ER,DR,foe=s((()=>{Q(),Y(),TR=V(`<div role="none" class="spinner svelte-1c0wzz2"></div>`),ER=V(`<!> <!>`,1),DR={hash:`svelte-1c0wzz2`,code:`.spinner.svelte-1c0wzz2 {height:1px;}`}}));function OR(e,t){let n=Ia();O(t,!0),K(e,AR);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`hidden`,3,!1),o=J(t,`disabled`,3,!1),s=J(t,`readonly`,3,!1),c=J(t,`required`,3,!1),l=J(t,`invalid`,3,!1),u=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),d=N(void 0);var f={focus:()=>{z(d)?.focus()}},p=kR();let m;var h=F(p),g=F(h),_=e=>{var n=H();Eo(I(n),()=>t.searchIcon),U(e,n)},v=e=>{UF(e,{name:`search`})};G(g,e=>{t.searchIcon?e(_):e(v,-1)}),D(h);var y=L(h,2);_L(y,Zs({dir:`auto`},()=>u,{role:`searchbox`,get id(){return n},get flex(){return i()},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},inputmode:`search`,get element(){return z(d)},set element(e){P(d,e,!0)},get value(){return r()},set value(e){r(e)}}));var b=L(y,2),x=e=>{{let i=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.closeIcon),U(e,n)},a=e=>{UF(e,{name:`close`})};G(r,e=>{t.closeIcon?e(i):e(a,-1)}),U(e,n)},a=M(()=>X(`_sui.clear`));lI(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{r(``),z(d)?.focus(),t.onClear?.()},startIcon:i,$$slots:{startIcon:!0}})}};return G(b,e=>{r()&&e(x)}),D(p),R(()=>{q(p,`role`,a()?void 0:`none`),m=cs(p,1,`sui search-bar ${t.class??``}`,`svelte-uliapr`,m,{flex:i(),disabled:o(),readonly:s()}),q(p,`hidden`,a()),q(p,`aria-hidden`,a())}),U(e,p),k(f)}var kR,AR,jR=s((()=>{Q(),Y(),Z(),gI(),WF(),xL(),kR=V(`<div><span role="none" class="svelte-uliapr"><!></span> <!> <!></div>`),AR={hash:`svelte-uliapr`,code:`.search-bar.svelte-uliapr {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.search-bar.flex.svelte-uliapr:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-uliapr > span:where(.svelte-uliapr) {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--sui-button-medium-height);height:var(--sui-button-medium-height);}.search-bar.svelte-uliapr .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-uliapr > button {position:absolute;inset-block:0;inset-inline-start:auto;inset-inline-end:0;z-index:2;margin:0 !important;height:var(--sui-button-medium-height);}.search-bar.svelte-uliapr .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-uliapr .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-uliapr input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`}}));function poe(e,t){let n=Ia();O(t,!0),K(e,IR);let r=`[role="option"][aria-selected="true"]`,i=J(t,`value`,15),a=J(t,`hidden`,3,!1),o=J(t,`disabled`,3,!1),s=J(t,`readonly`,3,!1),c=J(t,`required`,3,!1),l=J(t,`invalid`,3,!1),u=J(t,`editable`,3,!0),d=J(t,`position`,3,`bottom-left`),f=J(t,`filterThreshold`,3,5),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`children`,`chevronIcon`,`onChange`]),m=N(!1),h=N(void 0),g=N(void 0),_=N(void 0),v=N(``),y=N(!1),b=N(``),x=N(!0),S=M(()=>z(h)??z(g)),C=()=>{let e=z(_)?.querySelector(`[role="option"][data-value="${i()}"]`);e&&(P(v,e.dataset.label||e.dataset.value||e.textContent||``,!0),e.getAttribute(`aria-selected`)!==`true`&&(z(_)?.querySelector(r)?.setAttribute(`aria-selected`,`false`),e.setAttribute(`aria-selected`,`true`)))},w=e=>{let n=kI(e);i(n.value),C(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))};ti(()=>{z(_)&&globalThis.requestAnimationFrame(()=>{let e=z(_)?.querySelector(r);e&&w(e)})}),ti(()=>{i(),C()});var ee=FR(),T=I(ee);bs(T,()=>({...p,role:`none`,class:`sui combobox ${t.class??``}`,hidden:a(),[Cs]:{editable:u()}}),void 0,void 0,void 0,`svelte-13vy14`);var te=F(T),ne=e=>{var t=MR();bs(t,()=>({...p,role:`combobox`,id:n,tabindex:o()?-1:0,"aria-controls":`${n}-popup`,"aria-expanded":z(m),"aria-hidden":a(),"aria-disabled":o(),"aria-readonly":s(),"aria-required":c(),"aria-invalid":l(),"aria-haspopup":`listbox`,[Cs]:{selected:i()!==void 0}}),void 0,void 0,void 0,`svelte-13vy14`);var r=F(t);ZF(F(r),{children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>i()===void 0?X(`_sui.combobox.select_an_option`):z(v)]),U(e,n)},$$slots:{default:!0}}),D(r),D(t),Ws(t,e=>P(h,e),()=>z(h)),U(e,t)},re=e=>{{let t=M(()=>i()===void 0?``:String(i()));_L(e,Zs(()=>p,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return z(t)},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},get"aria-controls"(){return`${n}-popup`},get"aria-expanded"(){return z(m)},"aria-haspopup":`listbox`,get element(){return z(g)},set element(e){P(g,e,!0)}}))}};G(te,e=>{u()?e(re,-1):e(ne)});var ie=L(te,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{UF(e,{name:`expand_more`})};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>!u()||s()||o()?-1:0),i=M(()=>z(m)?X(`_sui.collapse`):X(`_sui.expand`));lI(ie,{variant:`ghost`,iconic:!0,get hidden(){return a()},get disabled(){return o()},get tabindex(){return z(r)},get"aria-label"(){return z(i)},get"aria-controls"(){return`${n}-popup`},get"aria-expanded"(){return z(m)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!o()&&!s()&&P(m,!z(m))},startIcon:e,$$slots:{startIcon:!0}})}D(T),aI(L(T,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return z(S)},get position(){return d()},touchOptimized:!0,onOpen:()=>{P(y,f()===-1?!1:(z(_)?.querySelectorAll(`[role="option"]`)?.length??0)>f(),!0),P(b,``)},get content(){return z(_)},set content(e){P(_,e,!0)},get open(){return z(m)},set open(e){P(m,e,!0)},children:(e,r)=>{var i=PR(),a=F(i),o=e=>{{let t=M(()=>X(`_sui.combobox.filter_options`));OR(e,{flex:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),z(_)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return z(b)},set value(e){P(b,e,!0)}})}};G(a,e=>{z(y)&&e(o)});var s=L(a,2);zL(s,{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return z(b)},onclick:e=>{e.target.matches(`[role="option"]`)&&w(e.target)},onFilter:e=>{P(x,!!e.detail.matched)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}});var c=L(s,2),l=e=>{var t=NR(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`_sui.combobox.no_matching_options`)]),U(e,t)};G(c,e=>{z(x)||e(l)}),D(i),U(e,i)},$$slots:{default:!0}}),U(e,ee),k()}var MR,NR,PR,FR,IR,LR=s((()=>{Q(),Y(),Z(),AI(),gI(),WF(),HL(),jR(),xL(),QF(),cI(),MR=V(`<div><div role="none" class="label svelte-13vy14"><!></div></div>`),NR=V(`<div role="alert" class="no-options svelte-13vy14"> </div>`),PR=V(`<div role="none" class="combobox-inner svelte-13vy14"><!> <!> <!></div>`),FR=V(`<div><!> <!></div> <!>`,1),IR={hash:`svelte-13vy14`,code:`.combobox.svelte-13vy14 {margin:var(--sui-focus-ring-width);display:flex;align-items:center;position:relative;min-width:var(--sui-combobox-min-width, calc(var(--sui-option-height) * 5));}.combobox.svelte-13vy14 div[role=combobox]:where(.svelte-13vy14) {display:flex;align-items:center;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-textbox-border-radius);padding-block:0;padding-inline-start:calc(var(--sui-textbox-height) / 4);padding-inline-end:var(--sui-textbox-height);width:100%;height:var(--sui-textbox-height);color:var(--sui-control-foreground-color);background-color:var(--sui-disabled-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;cursor:pointer;transition:all 200ms;}.combobox.svelte-13vy14 div[role=combobox]:where(.svelte-13vy14):not(.selected) {font-style:italic;}.combobox.svelte-13vy14 div[role=combobox]:where(.svelte-13vy14):is(:where(.svelte-13vy14):hover, :where(.svelte-13vy14):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-13vy14 div[role=combobox][aria-invalid=true]:where(.svelte-13vy14) {border-color:var(--sui-error-border-color);}.combobox.svelte-13vy14 div[role=combobox]:where(.svelte-13vy14) .label:where(.svelte-13vy14) {width:100%;}.combobox.svelte-13vy14 .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-13vy14 > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-13vy14 > button {position:absolute;inset-block-start:0;inset-inline-end:0;z-index:1;margin:0 !important;border-start-start-radius:0;border-end-start-radius:0;background-color:transparent !important;}.combobox.svelte-13vy14 > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-13vy14 :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-13vy14 .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-13vy14 input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-13vy14 + [role=listbox] {position:fixed;z-index:100;border-radius:var(--sui-control-medium-border-radius);box-shadow:0 8px 16px var(--sui-popup-shadow-color);overflow:auto;background-color:var(--sui-secondary-background-color);-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px);
|
|
668
|
+
/* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-13vy14 + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-13vy14 {display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-13vy14 .sui.search-bar {flex:none;}.combobox-inner.svelte-13vy14 .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-13vy14 .no-options:where(.svelte-13vy14) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`}}));function moe(e){let t=e-1;return t*t*t+1}var hoe=s((()=>{}));function goe(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=moe}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=_oe(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function _oe(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var voe=s((()=>{hoe()}));function RR(e,t){O(t,!0);let n=J(t,`value`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`readonly`,3,!1),o=J(t,`required`,3,!1),s=J(t,`invalid`,3,!1),c=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`]);poe(e,Zs(()=>c,{get class(){return`sui select ${t.class??``}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return a()},get required(){return o()},get invalid(){return s()},get onChange(){return t.onChange},editable:!1,get value(){return n()},set value(e){n(e)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}})),k()}var zR=s((()=>{Q(),Y(),LR()}));function yoe(e,t){O(t,!0),K(e,VR);let n=J(t,`values`,31,()=>Cr([])),r=J(t,`max`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),u=M(()=>new Map(t.options.map(e=>[e.value,e]))),d=M(()=>xh()?`ArrowRight`:`ArrowLeft`),f=M(()=>xh()?`ArrowLeft`:`ArrowRight`),p=N(void 0),m=N(void 0),h=N(void 0),g=N(void 0),_=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},v=async(e,t)=>{_(e,t),await Bi(),z(p)?.querySelectorAll(`.label[tabindex]`)?.[t]?.focus()};var y=boe();let b;var x=F(y);mo(x,30,n,e=>e,(e,r,i)=>{let s=M(()=>z(u).get(r)),c=M(()=>z(s)?.label||z(s)?.value||r);var l=BR();let p;var m=F(l),_=F(m,!0);D(m);var y=L(m,2),b=e=>{{let i=e=>{UF(e,{name:`close`})},s=M(()=>a()||o()),l=M(()=>X(`_sui.select_tags.remove_x`,{values:{name:z(c)}}));lI(e,{iconic:!0,size:`small`,get disabled(){return z(s)},get"aria-label"(){return z(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};G(y,e=>{z(s)&&e(b)}),D(l),R(()=>{q(l,`draggable`,!a()&&!o()),p=cs(l,1,`svelte-8yhcnv`,null,p,{"drag-source":z(h)===z(i),"drop-before":z(g)===z(i)&&z(h)!==z(i)&&z(h)!==z(i)-1,"drop-after":z(g)===n().length&&z(i)===n().length-1&&z(h)!==n().length-1}),q(m,`tabindex`,a()||o()?void 0:0),W(_,z(c))}),xa(`dragstart`,l,e=>{P(h,z(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,z(c)),e.dataTransfer.effectAllowed=`move`)}),xa(`dragover`,l,e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let t=e.currentTarget.getBoundingClientRect();P(g,e.clientX<t.left+t.width/2===xh()?z(i)+1:z(i),!0)}),xa(`drop`,l,async e=>{e.preventDefault();let t=z(h),n=z(g);P(h,void 0),P(g,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await v(t,n>t?n-1:n)}),xa(`dragend`,l,()=>{P(h,void 0),P(g,void 0)}),Sa(`keydown`,m,async e=>{let{key:t}=e,r=t===z(d)&&z(i)>0?z(i)-1:t===z(f)&&z(i)<n().length-1?z(i)+1:t===`Home`&&z(i)>0?0:t===`End`&&z(i)<n().length-1?n().length-1:-1;r!==-1&&(e.preventDefault(),await v(z(i),r))}),zo(l,()=>goe,()=>({duration:200})),U(e,l)}),D(x);var S=L(x,2),C=e=>{{let r=M(()=>a()||o());RR(e,Zs(()=>l,{get disabled(){return z(r)},get readonly(){return o()},get required(){return s()},get invalid(){return c()},onChange:()=>{z(m)&&(n([...n(),z(m)]),t.onAddValue?.(new CustomEvent(`AddValue`,{detail:{value:z(m)}})),P(m,void 0))},get value(){return z(m)},set value(e){P(m,e,!0)},children:(e,r)=>{var i=H();mo(I(i),17,()=>t.options,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value,a=()=>z(t).searchValue;var o=H(),s=I(o),c=e=>{KL(e,{get label(){return r()},get value(){return i()},get searchValue(){return a()}})},l=M(()=>!n().includes(i()));G(s,e=>{z(l)&&e(c)}),U(e,o)}),U(e,i)},$$slots:{default:!0}}))}};G(S,e=>{(typeof r()!=`number`||n().length<r())&&n().length<t.options.length&&e(C)}),D(y),Ws(y,e=>P(p,e),()=>z(p)),R(e=>{b=cs(y,1,`sui select-tags ${t.class??``}`,`svelte-8yhcnv`,b,{disabled:a()||o()}),q(y,`hidden`,i()),q(x,`aria-label`,e)},[()=>X(`_sui.select_tags.selected_options`)]),U(e,y),k()}var BR,boe,VR,xoe=s((()=>{Q(),Y(),Z(),sc(),voe(),gI(),WF(),XL(),zR(),BR=V(`<span role="none"><span class="label svelte-8yhcnv" role="option" aria-selected="true"> </span> <!></span>`),boe=V(`<div role="none"><span role="listbox" aria-multiselectable="true" class="svelte-8yhcnv"></span> <!></div>`),VR={hash:`svelte-8yhcnv`,code:`.select-tags.svelte-8yhcnv {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-8yhcnv {pointer-events:none;}.select-tags.disabled.svelte-8yhcnv > :where(.svelte-8yhcnv) {opacity:0.5;}.select-tags.svelte-8yhcnv span[role=listbox]:where(.svelte-8yhcnv) {display:contents;}.select-tags.svelte-8yhcnv span[draggable]:where(.svelte-8yhcnv) {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);padding:0;padding-inline-start:8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);cursor:grab;outline:none;}.select-tags.svelte-8yhcnv span[draggable]:where(.svelte-8yhcnv):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-primary-accent-color-translucent);outline-offset:1px;}.select-tags.svelte-8yhcnv span[draggable].drag-source:where(.svelte-8yhcnv) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-8yhcnv span[draggable].drop-before:where(.svelte-8yhcnv)::before, .select-tags.svelte-8yhcnv span[draggable].drop-after:where(.svelte-8yhcnv)::after {content:"";position:absolute;top:0;bottom:0;margin-left:-1px;border-radius:1px;width:4px;background-color:var(--sui-primary-accent-color);pointer-events:none;}.select-tags.svelte-8yhcnv span[draggable].drop-before:where(.svelte-8yhcnv)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-8yhcnv span[draggable].drop-after:where(.svelte-8yhcnv)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-8yhcnv span[draggable]:where(.svelte-8yhcnv) .label:where(.svelte-8yhcnv) {outline:none;}.select-tags.svelte-8yhcnv span[draggable]:where(.svelte-8yhcnv) .icon {font-size:var(--sui-font-size-large);}`},Ca([`keydown`])}));function Soe(e,t){O(t,!0),K(e,GR);let n=J(t,`value`,15,0),r=J(t,`min`,3,0),i=J(t,`max`,3,100),a=J(t,`sliderLabel`,3,``),o=J(t,`values`,15,void 0),s=J(t,`sliderLabels`,3,void 0),c=J(t,`step`,3,1),l=J(t,`optionLabels`,19,()=>[]),u=J(t,`hidden`,3,!1),d=J(t,`disabled`,3,!1),f=J(t,`readonly`,3,!1),p=J(t,`invalid`,3,!1),m=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),h=M(()=>Array.isArray(o())),g=N(void 0),_=N(0),v=N(Cr([])),y=N(Cr([])),b=N(0),x=N(0),S=Cr([0,0]),C=N(!1),w=N(0),ee=N(0),T=e=>{let t=xh()?z(_)-e:e;if(t<0||t>z(_))return;let r=z(v).findLastIndex(e=>e<=t),i=z(v).findIndex(e=>t<=e),a=Math.abs(z(v)[r]-t)<Math.abs(z(v)[i]-t)?r:i;S[z(ee)]===z(v)[a]||z(h)&&(z(ee)===0&&S[1]<=z(v)[a]||z(ee)===1&&S[0]>=z(v)[a])||(z(h)?(o(o()[z(ee)]=z(y)[a],!0),o([...o()])):n(z(y)[a]))},te=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=z(h)?o()[t]:n(),g=-1,_=xh(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=z(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m<i()&&(g=z(y).indexOf(m)+1),e.preventDefault(),e.stopPropagation()),g>-1){if(z(h)&&(t===0&&S[1]<=z(v)[g]||t===1&&S[0]>=z(v)[g]))return;z(h)?(o(o()[t]=z(y)[g],!0),o([...o()])):n(z(y)[g])}},ne=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!z(C)||n!==z(w))return;e.stopPropagation();let r=t-z(x);T(z(b)+r)},re=e=>{let{pointerId:t}=e;if(!(d()||f()||!z(C)||t!==z(w))){if(e.stopPropagation(),e.target.matches(`.base-bar, .slider-bar`)){let t=z(g).getBoundingClientRect();T(e.clientX-t.left)}P(C,!1),P(b,0),P(x,0),P(w,0),P(ee,0),document.removeEventListener(`pointermove`,ne),document.removeEventListener(`pointerup`,re),document.removeEventListener(`pointercancel`,re)}},ie=(e,t=0)=>{let{clientX:n,screenX:r,pointerId:i}=e;d()||f()||(e.stopPropagation(),P(C,!0),P(b,n-z(g).getBoundingClientRect().left),P(x,r,!0),P(w,i,!0),P(ee,t,!0),document.addEventListener(`pointermove`,ne),document.addEventListener(`pointerup`,re),document.addEventListener(`pointercancel`,re))},ae=()=>{if(z(h)){let[e,n]=o();S[0]=z(v)[z(y).indexOf(e)],S[1]=z(v)[z(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=z(v)[z(y).indexOf(n())],t.onChange?.({value:n()})},oe=()=>{if(!z(g))return;P(_,z(g).clientWidth,!0);let e=(i()-r())/c()+1,t=z(_)/(e-1),n=Array.from({length:e});P(y,n.map((e,t)=>t*c()+r(),10),!0),P(v,n.map((e,n)=>n*t),!0),ae()};ac(()=>{let e=new ResizeObserver(()=>oe()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(z(g)),t.addEventListener(`change`,oe),oe(),()=>{e.disconnect(),t.removeEventListener(`change`,oe)}}),ti(()=>{n(),o(),ae()});var se=WR();xa(`click`,Lr.body,()=>{P(C,!1)}),bs(se,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[Cs]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-7mjbzr`);var ce=F(se),le=L(F(ce),2);let ue;var de=L(le,2);let fe;var E=L(de,2),pe=e=>{var t=HR();let n;R(()=>{q(t,`tabindex`,d()?-1:0),q(t,`aria-label`,s()?.[1]),q(t,`aria-hidden`,u()),q(t,`aria-disabled`,d()),q(t,`aria-readonly`,f()),q(t,`aria-invalid`,p()),q(t,`aria-valuemin`,r()),q(t,`aria-valuemax`,i()),q(t,`aria-valuenow`,o()?.[1]),n=ds(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),Sa(`pointerdown`,t,e=>ie(e,1)),Sa(`keydown`,t,e=>te(e,1)),U(e,t)};G(E,e=>{z(h)&&e(pe)});var me=L(E,2),he=e=>{var t=H();mo(I(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=UR();let i;var a=F(r,!0);D(r),R(()=>{i=ds(r,``,i,{"inset-inline-start":`${z(_)/(l().length-1)*z(n)}px`}),W(a,z(t))}),U(e,r)}),U(e,t)};G(me,e=>{l().length&&e(he)}),D(ce),Ws(ce,e=>P(g,e),()=>z(g)),D(se),R(()=>{ue=ds(le,``,ue,{"inset-inline-start":`${(z(h)?S[0]:0)??``}px`,width:`${(z(h)?S[1]-S[0]:S[0])??``}px`}),q(de,`tabindex`,d()?-1:0),q(de,`aria-label`,z(h)?s()?.[0]:a()),q(de,`aria-hidden`,u()),q(de,`aria-disabled`,d()),q(de,`aria-readonly`,f()),q(de,`aria-invalid`,p()),q(de,`aria-valuemin`,r()),q(de,`aria-valuemax`,i()),q(de,`aria-valuenow`,z(h)?o()?.[0]:n()),fe=ds(de,``,fe,{"inset-inline-start":`${S[0]??``}px`})}),Sa(`pointerdown`,ce,e=>ie(e)),Sa(`pointerdown`,de,e=>ie(e,0)),Sa(`keydown`,de,e=>te(e,0)),U(e,se),k()}var HR,UR,WR,GR,Coe=s((()=>{Q(),Y(),Z(),sc(),HR=V(`<div role="slider" class="svelte-7mjbzr"></div>`),UR=V(`<span role="none" class="label svelte-7mjbzr"> </span>`),WR=V(`<div><div role="none" class="base svelte-7mjbzr"><div role="none" class="base-bar svelte-7mjbzr"></div> <div class="slider-bar svelte-7mjbzr"></div> <div role="slider" class="svelte-7mjbzr"></div> <!> <!></div></div>`),GR={hash:`svelte-7mjbzr`,code:`.slider.svelte-7mjbzr {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-7mjbzr:hover .base-bar:where(.svelte-7mjbzr) {background-color:var(--sui-hover-background-color);}.slider.svelte-7mjbzr:active .base-bar:where(.svelte-7mjbzr) {background-color:var(--sui-active-background-color);}.base.svelte-7mjbzr {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-7mjbzr {border-width:1px;border-style:solid;border-color:var(--sui-control-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-slider-background-color, var(--sui-secondary-background-color));transition:all 200ms;width:100%;height:100%;}.slider-bar.svelte-7mjbzr {position:absolute;top:0;height:calc(var(--sui-checkbox-height) / 2);border-radius:var(--sui-checkbox-height);background-color:var(--sui-primary-accent-color-light);}.invalid.svelte-7mjbzr .slider-bar:where(.svelte-7mjbzr) {background-color:var(--sui-error-border-color);}[role=slider].svelte-7mjbzr {position:absolute;top:0;border:3px solid var(--sui-primary-accent-color-light);border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 2px);height:calc(var(--sui-checkbox-height) - 2px);background-color:var(--sui-primary-accent-color-inverted);cursor:pointer;}[role=slider].svelte-7mjbzr:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-7mjbzr:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-7mjbzr [role=slider]:where(.svelte-7mjbzr) {border-color:var(--sui-error-border-color);}.label.svelte-7mjbzr {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-7mjbzr:dir(ltr) {transform:translateX(-50%);}.label.svelte-7mjbzr:dir(rtl) {transform:translateX(50%);}`},Ca([`pointerdown`,`keydown`])}));function KR(e,t){O(t,!0),K(e,JR);let n=J(t,`checked`,15),r=J(t,`label`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`]);var u=qR(),d=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};bs(u,()=>({...l,role:`switch`,class:`sui switch ${t.class??``}`,type:`button`,hidden:i(),disabled:a()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),onclick:d}),void 0,void 0,void 0,`svelte-7ihb69`);var f=L(F(u),2),p=e=>{var t=Fa();R(()=>W(t,r())),U(e,t)},m=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)};G(f,e=>{r()?e(p):e(m,-1)}),D(u),U(e,u),k()}var qR,JR,woe=s((()=>{Q(),Y(),qR=V(`<button><span role="none" class="svelte-7ihb69"></span> <!></button>`),JR={hash:`svelte-7ihb69`,code:`button.svelte-7ihb69 {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-7ihb69:focus-visible {outline:0;}button.svelte-7ihb69:focus-visible span:where(.svelte-7ihb69) {outline-color:var(--sui-primary-accent-color-translucent);}button[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69)::before {--translateX: var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height);border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}button[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-7ihb69 {position:relative;width:calc(var(--sui-checkbox-height) * 2);height:var(--sui-checkbox-height);padding:0 2px;display:inline-flex;align-items:center;border-width:1.5px;border-style:solid;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-control-background-color);transition:all 200ms;}span.svelte-7ihb69::before {display:inline-block;width:calc(var(--sui-checkbox-height) - 6px);height:calc(var(--sui-checkbox-height) - 6px);border-radius:var(--sui-checkbox-height);background-color:var(--sui-checkbox-border-color);transition:all 200ms;content:"";}`}}));function YR(e,t){K(e,ZR);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=XR();bs(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-1uchqzk`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var XR,ZR,Toe=s((()=>{Q(),Y(),XR=V(`<div><!></div>`),ZR={hash:`svelte-1uchqzk`,code:`.table-cell.svelte-1uchqzk {display:table-cell;}`}}));function Eoe(e,t){K(e,$R);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=QR();bs(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-nxk0qg`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var QR,$R,Doe=s((()=>{Q(),Y(),QR=V(`<div><!></div>`),$R={hash:`svelte-nxk0qg`,code:`.table-row.svelte-nxk0qg {display:table-row;height:var(--sui-primary-row-height);}`}}));function Ooe(e,t){K(e,tz);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=ez();bs(r,()=>({...n,role:`table`,class:`sui table ${t.class??``}`}),void 0,void 0,void 0,`svelte-zssm97`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var ez,tz,koe=s((()=>{Q(),Y(),ez=V(`<div><!></div>`),tz={hash:`svelte-zssm97`,code:`.table.svelte-zssm97 {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-zssm97 {border-collapse:collapse;}.table.data.svelte-zssm97 :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}}));function Aoe(e,t){O(t,!0),K(e,rz);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`name`,3,void 0),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`children`,`onChange`]),s=N(void 0),c=N(void 0),l=()=>{globalThis.requestAnimationFrame(()=>{let e=z(s)?.querySelector(`[role="tab"][aria-selected="true"]`);if(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;P(c,Object.entries({top:t,left:n,width:r,height:i}).map(([e,t])=>`${e}: ${t}px`).join(`; `),!0)}else P(c,void 0)})};ac(()=>{let e=new ResizeObserver(()=>{l()});return e.observe(z(s)),()=>{e.disconnect()}});var u=nz(),d=()=>{l()},f=e=>{l(),t.onChange?.(e)};bs(u,()=>({...o,role:`tablist`,class:`sui tab-list ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"data-name":a()||void 0,onInitialized:d,onChange:f}),void 0,void 0,void 0,`svelte-pli61r`);var p=F(u);Eo(F(p),()=>t.children??E),D(p);var m=L(p,2);D(u),Ws(u,e=>P(s,e),()=>z(s)),Xo(u,FI),R(()=>{p.inert=r(),ds(m,z(c))}),U(e,u),k()}var nz,rz,joe=s((()=>{Q(),Y(),sc(),II(),nz=V(`<div><div role="none" class="inner svelte-pli61r"><!></div> <div role="none" class="indicator svelte-pli61r"></div></div>`),rz={hash:`svelte-pli61r`,code:`.tab-list.svelte-pli61r {flex:none;position:relative;display:flex;align-items:center;margin:var(--sui-tab-list-margin, var(--sui-focus-ring-width));border-color:var(--sui-tab-list-border-color, var(--sui-control-border-color));border-radius:var(--sui-tab-list-border-radius, 0);background-color:var(--sui-tab-list-background-color, transparent);}.tab-list[aria-orientation=horizontal].svelte-pli61r {gap:var(--sui-horizontal-tab-list-gap, var(--sui-tab-list-gap, 8px));margin-block:var(--sui-horizontal-tab-list-margin-block, 0 32px);margin-inline:var(--sui-horizontal-tab-list-margin-inline, 0);border-block-width:var(--sui-horizontal-tab-list-border-block-width, 0 1px);border-inline-width:var(--sui-horizontal-tab-list-border-inline-width, 0 0);padding:var(--sui-horizontal-tab-list-padding, var(--sui-tab-list-padding, 0 16px));}.tab-list[aria-orientation=horizontal].svelte-pli61r button {width:var(--sui-horizontal-tab-width, var(--sui-tab-width, auto));height:var(--sui-horizontal-tab-height, var(--sui-tab-height, 100%));justify-content:var(--sui-horizontal-tab-justify-content, center);}.tab-list[aria-orientation=horizontal].svelte-pli61r .indicator:where(.svelte-pli61r) {border-block-width:var(--sui-horizontal-tab-list-indicator-border-block-width, 0 2px);border-inline-width:var(--sui-horizontal-tab-list-indicator-border-inline-width, 0 0);}.tab-list[aria-orientation=vertical].svelte-pli61r {gap:var(--sui-vertical-tab-list-gap, var(--sui-tab-list-gap, 8px));flex-direction:column;margin-block:var(--sui-vertical-tab-list-margin-block, 0);margin-inline:var(--sui-vertical-tab-list-margin-inline, 0 32px);border-block-width:var(--sui-vertical-tab-list-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-border-inline-width, 0 1px);padding:var(--sui-vertical-tab-list-padding, var(--sui-tab-list-padding, 8px 0));width:var(--sui-vertical-tab-list-width, auto);}.tab-list[aria-orientation=vertical].svelte-pli61r button {justify-content:var(--sui-vertical-tab-justify-content, flex-start);padding-inline-end:32px;width:var(--sui-vertical-tab-width, var(--sui-tab-width, 100%));height:var(--sui-vertical-tab-height, var(--sui-tab-height, auto));}.tab-list[aria-orientation=vertical].svelte-pli61r .indicator:where(.svelte-pli61r) {border-block-width:var(--sui-vertical-tab-list-indicator-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-indicator-border-inline-width, 0 2px);}.tab-list.svelte-pli61r button {position:relative;z-index:1;border-color:transparent;margin:0 !important;border-radius:var(--sui-tab-border-radius, 0);font-family:var(--sui-tab-font-family, var(--sui-control-font-family, inherit));font-size:var(--sui-tab-font-size, var(--sui-control-font-size, inherit));font-weight:var(--sui-tab-font-weight, var(--sui-control-font-weight, var(--sui-font-weight-normal, normal)));}.inner.svelte-pli61r {display:contents;}.indicator.svelte-pli61r {position:absolute;z-index:0;inset:auto;border-radius:var(--sui-tab-list-indicator-border-radius, 0);border-color:var(--sui-tab-list-indicator-border-color, var(--sui-primary-accent-color-light));background-color:var(--sui-tab-list-indicator-background-color, transparent);box-shadow:var(--sui-tab-list-indicator-box-shadow, none);pointer-events:none;transition:var(--sui-tab-list-indicator-transition, all 200ms);}`}}));function Moe(e,t){K(e,az);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=iz();bs(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-1a9c1n5`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var iz,az,Noe=s((()=>{Q(),Y(),iz=V(`<div><!></div>`),az={hash:`svelte-1a9c1n5`,code:`.tab-panel.svelte-1a9c1n5 {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-1a9c1n5, .tab-panel.svelte-1a9c1n5:not([aria-hidden]) {display:none;}`}}));function Poe(e,t){let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`selected`,3,!1),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`]);lI(e,Zs(()=>a,{role:`tab`,get class(){return`sui tab ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get"aria-selected"(){return i()},startIcon:e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var n=H();Eo(I(n),()=>t.endIcon??E),U(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var Foe=s((()=>{Q(),Y(),gI()}));function oz(e,t){O(t,!0),K(e,cz);let n=J(t,`show`,15,!1),r=J(t,`id`,3,void 0),i=J(t,`duration`,3,5e3),a=J(t,`position`,7,`auto`),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),s=N(void 0),c=N(void 0),l=N(void 0),u=N(0);ac(()=>(P(c,document.querySelector(`.sui.toast-base.enabled`)??void 0,!0),z(c)?z(s)?.remove():(P(c,z(s),!0),z(c)&&(z(c).classList.add(`enabled`),(document.querySelector(`.sui.app-shell`)??document.body).appendChild(z(c)),z(c).showPopover&&(z(c).popover=`manual`,z(c).showPopover()))),()=>{z(l)?.remove()})),ac(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-${document.dir===`rtl`?`left`:`right`}`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),ti(()=>{z(c)&&z(l)&&z(c).appendChild(z(l))}),ti(()=>{r(),n(),i(),B(()=>{globalThis.clearTimeout(z(u))}),n()&&i()&&P(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=sz(),f=I(d);Ws(f,e=>P(s,e),()=>z(s));var p=L(f,2);bs(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-16rob9r`),Eo(F(p),()=>t.children??E),D(p),Ws(p,e=>P(l,e),()=>z(l)),U(e,d),k()}var sz,cz,lz=s((()=>{Q(),Y(),sc(),sz=V(`<div role="none" class="sui toast-base svelte-16rob9r"></div> <div><!></div>`,1),cz={hash:`svelte-16rob9r`,code:`.toast-base.svelte-16rob9r {position:fixed;inset:16px;z-index:99999;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;margin:0;border:0;padding:0;width:auto;height:auto;background-color:transparent;font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none;}body:has(.sui.bottom-navigation:not([inert]:not([hidden]))) .toast-base {bottom:calc(var(--sui-bottom-navigation-height) + 16px);}.toast.svelte-16rob9r {position:absolute;width:max-content;max-width:80dvw;box-shadow:0 8px 16px var(--sui-popup-shadow-color);opacity:1;transition-duration:250ms;will-change:opacity;}.toast[aria-hidden=true].svelte-16rob9r {display:block;opacity:0;}.toast.top-left.svelte-16rob9r {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-16rob9r {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-16rob9r:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-16rob9r:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-16rob9r {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-16rob9r {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-16rob9r {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-16rob9r:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-16rob9r:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-16rob9r {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`}})),uz=c(((e,t)=>{
|
|
669
669
|
/**
|
|
670
670
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
671
671
|
*
|
|
@@ -712,12 +712,12 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
|
|
|
712
712
|
**$3**$4`).replace(/(\s+)~~([^~\n]+?)\n([^~\n]+?)~~(\s+)/gm,`$1~~$2~~
|
|
713
713
|
~~$3~~$4`).replace(/(\s+)`([^`\n]+?)\n([^`\n]+?)`(\s+)/gm,"$1`$2`\n`$3`$4"),AQ=e=>e.match(/^\s{2}(?:-|\+|\*|\d+\.)\s/m)?e.replace(/^(\s+)(-|\+|\*|\d+\.)/gm,(e,t,n)=>`${` `.repeat(t.length*2)}${n}`):e})),jQ,Ele=s((()=>{dJ(),jQ={dependencies:[uJ],export:e=>Bse(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=Bq();r||e.getNextSibling()!==null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`}}));function Dle(e){let t=e.getFirstChild();return VZ(t)?t.getChildrenSize():0}var MQ,NQ,PQ,FQ,IQ,Ole=s((()=>{PZ(),xQ(),$K(),MQ=/^(?:\|)(.+)(?:\|)\s?$/,NQ=/^(\| ?:?-*:? ?)+\|\s?$/,PQ=e=>{e=e.replace(/\\n/g,`
|
|
714
714
|
`);let t=LZ(fQ.NO_STATUS);return GX(e,NZ,t),t},FQ=e=>{let[,t]=e.match(MQ)??[];return t?t.split(`|`).map(e=>PQ(e)):null},IQ={dependencies:[bQ,mQ,pQ],export:e=>{if(!uQ(e))return null;let t=[];return e.getChildren().forEach(e=>{let n=[];if(!VZ(e))return;let r=!1;e.getChildren().forEach(e=>{RZ(e)&&(n.push(KX(NZ,e).replace(/\n/g,`\\n`).trim()),e.__headerState===fQ.ROW&&(r=!0))}),t.push(`| ${n.join(` | `)} |`),r&&t.push(`| ${n.map(()=>`---`).join(` | `)} |`)}),t.join(`
|
|
715
|
-
`)},regExp:MQ,replace:(e,t,[n])=>{if(NQ.test(n)){let t=e.getPreviousSibling();if(!t||!uQ(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!VZ(r))return;r.getChildren().forEach(e=>{RZ(e)&&e.setHeaderStyles(fQ.ROW,fQ.ROW)}),e.remove();return}let r=FQ(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!OV(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!CB(e))break;let t=FQ(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=lQ();i.forEach(e=>{let t=BZ();s.append(t);for(let n=0;n<o;n+=1)t.append(n<e.length?e[n]:PQ(``))});let c=e.getPreviousSibling();uQ(c)&&Dle(c)===o?(c.append(...s.getChildren()),e.remove()):e.replace(s),s.selectEnd()},type:`element`}})),LQ,RQ,zQ,BQ,VQ,HQ,UQ,WQ,GQ,KQ,qQ=s((()=>{uz(),qJ(),KJ(),JJ(),dJ(),vce(),sY(),DY(),PZ(),MX(),xQ(),bq(),Xx(),$K(),LQ=u(SQ(),1),OQ(),Tle(),Ele(),Ole(),Fw(),RQ=[...NZ,jQ,IQ],zQ=`https://unpkg.com/prismjs@1.30.0`,BQ={namespace:`editor`,nodes:[jX,AX,rY,CY,SY,AJ,jJ,uJ,bQ,pQ,mQ],theme:{text:{italic:`italic`,strikethrough:`strikethrough`},list:{nested:{listitem:`nested`}},code:`code-block`,codeHighlight:{atrule:`token atrule`,attr:`token attr`,boolean:`token boolean`,builtin:`token builtin`,cdata:`token cdata`,char:`token char`,class:`token class`,"class-name":`token class-name`,comment:`token comment`,constant:`token constant`,deleted:`token deleted`,doctype:`token doctype`,entity:`token entity`,function:`token function`,important:`token important`,inserted:`token inserted`,keyword:`token keyword`,namespace:`token namespace`,number:`token number`,operator:`token operator`,prolog:`token prolog`,property:`token property`,punctuation:`token punctuation`,regex:`token regex`,selector:`token selector`,string:`token string`,symbol:`token symbol`,tag:`token tag`,url:`token url`,variable:`token variable`}}},VQ=()=>{let e=GB();if(!AB(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=wQ.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof EK?t:pq(t,EK),ZJ(n)&&(r.push(`link`),n=pq(n,EK)),_Y(n)&&(n=pq(n,CY)));let i=(()=>{if(!n)return`paragraph`;if(gX(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(xY(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(fX(n))return`blockquote`;if(vJ(n)||TJ(n))return`code-block`;let e=n.getType();return EQ.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},HQ=e=>{e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:KX(RQ.filter(({tag:e})=>e!==`*`)).replace(/\\([_\\])/g,`$1`).replace(/ /g,` `),selection:VQ()}}))},UQ=({components:e=[],isCodeEditor:t=!1,defaultLanguage:n=`plain`})=>{e.forEach(({node:e,transformer:t})=>{BQ.nodes.unshift(e),RQ.unshift(t)});let r=AV(BQ);return ole(r),pce(r),gce(r,_ce(),1e3),fce(r,{defaultLanguage:n,tokenize:(e,t=`plain`)=>window.Prism.tokenize(e,window.Prism.languages[t]??window.Prism.languages.plain),$tokenize:GJ.$tokenize}),r.registerCommand(aY,e=>(bce(typeof e==`string`?e:null),!0),2),r.registerCommand(TY,()=>(dY(`bullet`),!0),2),r.registerCommand(EY,()=>(dY(`number`),!0),2),r.registerCommand($W,()=>Oce(),2),r.registerUpdateListener(()=>{r?.isComposing()||(async()=>{await Yx(100),r.update(()=>{if(t){let e=iH(),t=e.getChildren();if(t.length===1&&!vJ(t[0])&&t[0].remove(),t.length===0){let t=_J();t.setLanguage(n),e.append(t)}}HQ(r)})})()}),r.registerRootListener(e=>{e&&e.addEventListener(`keydown`,e=>{r.update(()=>{if(e.key===`Tab`){let t=GB();if(!AB(t))return;let n=t.anchor.getNode(),i=n instanceof EK?n:pq(n,EK);_Y(i)&&i.canIndent()&&(e.shiftKey?i.getIndent()>0&&(e.preventDefault(),r.dispatchCommand(CG,void 0)):(e.preventDefault(),r.dispatchCommand(SG,void 0)))}})})}),r},WQ=async e=>{if(e in window.Prism.languages)return;let t=Object.entries(LQ.default.languages).find(([t,{alias:n}])=>t===e||(Array.isArray(n)?n.includes(e):n===e))?.[0];if(t)try{await Pw(()=>import(`${zQ}/components/prism-${t}.min.js`),void 0)}catch{}},GQ=async(e,t)=>(await Promise.all([...t.matchAll(/^```(?<lang>.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>WQ(e))),t=kQ(t),t=AQ(t),new Promise((n,r)=>{e.update(()=>{try{GX(t,RQ),n(void 0)}catch(e){r(Error(`Failed to convert Markdown`,{cause:e}))}})})),KQ=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})})}));function JQ(e,t){O(t,!0),K(e,XQ);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),c=Rt(`editorStore`),l=N(void 0),u=M(()=>!(r()||i()));ti(()=>{c.editor?.setEditable(z(u))});let d=e=>{let{hasConverterError:t,useRichText:n,inputValue:r}=c;if(t||!n)return;let{value:i,selection:a}=e.detail;r!==i&&(c.useRichText=!1,c.inputValue=i,c.useRichText=!0),c.selection=a},f=e=>{e.target?.matches(`a`)&&e.preventDefault()};ac(()=>(c.editor=UQ(c.config),z(l)?.addEventListener(`Update`,d),z(l)?.addEventListener(`click`,f),()=>{z(l)?.removeEventListener(`Update`,d),z(l)?.removeEventListener(`click`,f)})),ti(()=>{c.editor&&z(l)&&(c.editor.setRootElement(z(l)),c.initialized=!0)});var p=YQ();bs(p,()=>({...s,role:`textbox`,"aria-multiline":`true`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),class:`lexical-root`,id:`${c.editorId??``}-lexical-root`,contenteditable:z(u),hidden:n(),[Cs]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-5omf3m`),Ws(p,e=>P(l,e),()=>z(l)),U(e,p),k()}var YQ,XQ,ZQ=s((()=>{Q(),Y(),sc(),qQ(),YQ=V(`<div></div>`),XQ={hash:`svelte-5omf3m`,code:`.lexical-root.svelte-5omf3m {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:8em;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-5omf3m:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-5omf3m {padding:0;}.lexical-root.code.svelte-5omf3m .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-5omf3m:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-5omf3m {border-color:var(--sui-error-border-color);}.lexical-root.svelte-5omf3m :first-child {margin-top:0;}.lexical-root.svelte-5omf3m :last-child {margin-bottom:0;}.lexical-root.svelte-5omf3m strong.italic {font-style:italic;}.lexical-root.svelte-5omf3m .strikethrough {text-decoration:line-through;}.lexical-root.svelte-5omf3m li.nested {list-style-type:none;}.lexical-root.svelte-5omf3m .code-block {position:relative;display:block;padding-block:8px;padding-inline-start:56px;padding-inline-end:8px;background-color:var(--sui-code-background-color);overflow-x:auto;white-space:pre;}.lexical-root.svelte-5omf3m .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-5omf3m .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-5omf3m .code-block::before {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;content:attr(data-gutter);padding:8px;min-width:40px;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);text-align:end;}.lexical-root.svelte-5omf3m [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-5omf3m :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-5omf3m hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-5omf3m hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.comment, .prolog, .doctype, .cdata) {color:slategray;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token.punctuation {color:#999;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token.namespace {opacity:0.7;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.property, .tag, .boolean, .number, .constant, .symbol, .deleted) {color:#905;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.selector, .attr-name, .string, .char, .builtin, .inserted) {color:#690;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.operator, .entity, .url), :root[data-theme=light] .lexical-root.svelte-5omf3m .language-css .token.string, :root[data-theme=light] .lexical-root.svelte-5omf3m .style .token.string {color:#9a6e3a;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.atrule, .attr-value, .keyword) {color:#07a;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.function, .class-name) {color:#dd4a68;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.regex, .important, .variable) {color:#e90;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.comment, .block-comment, .prolog, .doctype, .cdata) {color:#999;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token.punctuation {color:#ccc;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.tag, .attr-name, .namespace, .deleted) {color:#e2777a;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token.function-name {color:#6196cc;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.boolean, .number, .function) {color:#f08d49;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.property, .class-name, .constant, .symbol) {color:#f8c555;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.selector, .important, .atrule, .keyword, .builtin) {color:#cc99cd;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.string, .char, .attr-value, .regex, .variable) {color:#7ec699;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.operator, .entity, .url) {color:#67cdcc;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.important, .bold) {font-weight:bold;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token.italic {font-style:italic;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token.entity {cursor:help;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token.inserted {color:green;}`}})),QQ,$Q=s((()=>{Y(),tI(),qQ(),QQ=()=>{let e=$F(`editor`),t=N(!1),n=N(void 0),r=N(Cr({modes:[],enabledButtons:[],components:[],isCodeEditor:!1})),i=N(``),a=N(Cr({blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]})),o=N(!0),s=N(!1),c=N(!1),l=async()=>{if(!z(n)||!z(t))return;let e=z(i);try{await GQ(z(n),z(i)||``)}catch(t){P(s,!0),P(i,e,!0),console.error(t)}};return{get editor(){return z(n)},set editor(e){P(n,e,!0)},get initialized(){return z(t)},set initialized(e){P(t,e,!0)},get config(){return z(r)},set config(e){P(r,e,!0),P(o,e.modes[0]===`rich-text`||e.isCodeEditor,!0)},get inputValue(){return z(i)},set inputValue(e){let t=z(i)!==e;t&&P(i,e,!0),z(o)&&(t||z(n)?.getEditorState().isEmpty())&&l()},get selection(){return z(a)},set selection(e){P(a,e,!0)},get useRichText(){return z(o)},set useRichText(e){P(o,e,!0)},get hasConverterError(){return z(s)},set hasConverterError(e){P(s,e,!0),z(s)&&(P(o,!1),P(c,!0))},get showConverterError(){return z(c)},set showConverterError(e){P(c,e,!0)},editorId:e,convertMarkdown:l}}}));function e$(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=Object.entries(t$.default.languages).filter(([,e])=>`title`in e).map(([e,t])=>{let{title:n,aliasTitles:r,alias:i}=t,a=[];return i&&!r&&(a=Array.isArray(i)?i:[i]),[{key:e,label:n,aliases:a},...Object.entries(r??{}).map(([e,t])=>({key:e,label:t,aliases:[]}))]}).flat(1).sort((e,t)=>e.label.localeCompare(t.label)),i=Rt(`editorStore`),a=N(`plain`);ti(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?iH().getChildren()[0]:QV(i.selection.blockNodeKey);vJ(e)&&P(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=M(()=>X(`_sui.text_editor.language`));RR(e,{get disabled(){return n()},get"aria-label"(){return z(t)},get value(){return z(a)},onChange:async({detail:{value:e}})=>{!i.editor||z(a)===e||(await KQ(i.editor),i.selection?.blockNodeKey&&(await WQ(e),i.editor.update(()=>{let t=QV(i.selection.blockNodeKey);vJ(t)&&(t.setLanguage(e),P(a,e,!0))})))},children:(e,t)=>{var n=n$(),i=I(n);{let e=M(()=>X(`_sui.text_editor.plain_text`));KL(i,{get label(){return z(e)},value:`plain`,dir:`ltr`})}mo(L(i,2),17,()=>r,({key:e,label:t,aliases:n})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).aliases;{let t=M(()=>n()===z(a)||i().includes(z(a)));KL(e,{get label(){return r()},get value(){return n()},get selected(){return z(t)},dir:`ltr`})}}),U(e,n)},$$slots:{default:!0}})}k()}var t$,n$,r$=s((()=>{Q(),Y(),uz(),qJ(),Z(),$K(),t$=u(SQ()),sc(),XL(),zR(),qQ(),n$=V(`<!> <!>`,1)}));function i$(e,t){K(e,o$);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`variant`,3,void 0),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`children`]);var s=a$();bs(s,()=>({...o,role:`toolbar`,class:`sui toolbar ${i()??``} ${a()??``} ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i()}),void 0,void 0,void 0,`svelte-1luf6gc`);var c=F(s);Eo(F(c),()=>t.children??E),D(c),D(s),R(()=>c.inert=r()),U(e,s)}var a$,o$,s$=s((()=>{Q(),Y(),a$=V(`<div><div role="none" class="inner svelte-1luf6gc"><!></div></div>`),o$={hash:`svelte-1luf6gc`,code:`[role=toolbar].svelte-1luf6gc {--toolbar-size: var(--sui-secondary-toolbar-size);flex:none !important;display:flex;align-items:center;padding-inline:8px;background-color:var(--toolbar-background-color, transparent);}[role=toolbar].primary.svelte-1luf6gc {--toolbar-size: var(--sui-primary-toolbar-size);}
|
|
716
|
-
@media (width < 768px) {[role=toolbar].secondary.svelte-
|
|
717
|
-
}[role=toolbar][aria-orientation=horizontal].svelte-
|
|
718
|
-
@media (width < 768px) {.wrapper.svelte-
|
|
719
|
-
}.wrapper.svelte-
|
|
720
|
-
.clone.svelte-1nxtpoj {white-space:pre-wrap;word-break:break-all;}`}}));function Nle(e,t){O(t,!0);let n=Rt(`editorStore`),r=M(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{UF(e,{get name(){return CQ[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${CQ[t.type].labelKey}`)),o=M(()=>!n.useRichText);lI(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(o)},get pressed(){return z(r)},onclick:async()=>{n.editor&&(await KQ(n.editor),n.editor.dispatchCommand(aG,t.type))},startIcon:i,$$slots:{startIcon:!0}})}k()}var Ple=s((()=>{Q(),Y(),Z(),$K(),sc(),gI(),WF(),OQ(),qQ()}));function Fle(e,t){O(t,!0);let n=Rt(`editorStore`);{let r=e=>{UF(e,{get name(){return t.component.icon}})},i=M(()=>!n.useRichText);lI(e,{iconic:!0,get"aria-label"(){return t.component.label},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(i)},onclick:()=>{n.editor?.update(()=>{$B([t.component.createNode(),DV()])})},startIcon:r,$$slots:{startIcon:!0}})}k()}var Ile=s((()=>{Q(),Y(),$K(),sc(),gI(),WF()}));function Lle(e,t){let n=Ia();O(t,!0);let r=`link`,i=Rt(`editorStore`),a=M(()=>i.selection.inlineTypes.includes(r)),o=N(!1),s=N(`create`),c=N(!1),l=N(``),u=N(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=rse().trim();P(l,e,!0),P(c,!!e),P(s,`create`),P(o,!0)})},f=()=>{i.editor?.dispatchCommand(aY,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=GB();if(AB(e)){let t=e.anchor.getNode(),n=(t instanceof rY?t:pq(t,rY))?.getURL();if(n){P(c,!0),P(l,n,!0),P(s,`update`),P(o,!0);return}}f()})},m=()=>{z(a)?p():d()},h=e=>{JF(e,`Enter`)&&z(l)&&P(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&z(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=GB()??KB()?.clone();if(AB(t)||(t=HB()),!z(c)){P(u,z(u).trim(),!0),P(u,z(u)||z(l),!0);let{anchor:e,focus:n}=t,r=SB(z(u)),i=r.getKey();$B([r]),e.set(i,z(u).length,`text`),n.set(i,0,`text`)}oH(t),e(void 0)})}),await KQ(i.editor),i.editor.dispatchCommand(aY,z(l))}P(l,``),P(u,``)},_=()=>{i.editor?.registerCommand(cG,e=>(JF(e,qF()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};ti(()=>{i.editor&&_()});var v=x$(),y=I(v);{let e=e=>{UF(e,{get name(){return CQ[r].icon}})},t=M(()=>X(`_sui.text_editor.${CQ[r].labelKey}`)),n=M(()=>!i.useRichText);lI(y,{iconic:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return z(n)},get pressed(){return z(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=L(y,2);{let e=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>X(`_sui.remove`));lI(e,{variant:`secondary`,get label(){return z(t)},onclick:()=>{f(),P(s,`remove`),P(o,!1)}})}};G(n,e=>{z(s)!==`create`&&e(r)}),U(e,t)},t=M(()=>z(s)===`create`?X(`_sui.text_editor.insert_link`):X(`_sui.text_editor.update_link`)),r=M(()=>!z(l)),i=M(()=>z(s)===`create`?X(`_sui.insert`):X(`_sui.update`));sL(b,{get title(){return z(t)},get okDisabled(){return z(r)},get okLabel(){return z(i)},onClose:e=>{g(e)},get open(){return z(o)},set open(e){P(o,e,!0)},get value(){return z(l)},set value(e){P(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=b$(),i=I(r),a=F(i),o=F(a,!0);D(a),_L(L(a,2),{dir:`ltr`,get id(){return`${n}-url`},flex:!0,"aria-label":`URL`,onkeydown:e=>{h(e)},get value(){return z(l)},set value(e){P(l,e,!0)}}),D(i);var s=L(i,2),d=e=>{var t=y$(),r=F(t),i=F(r,!0);D(r),_L(L(r,2),{dir:`auto`,get id(){return`${n}-text`},flex:!0,onkeydown:e=>{h(e)},get value(){return z(u)},set value(e){P(u,e,!0)}}),D(t),R(e=>{q(r,`for`,`${n}-text`),W(i,e)},[()=>X(`_sui.text_editor.text`)]),U(e,t)};G(s,e=>{z(c)||e(d)}),R(e=>{q(a,`for`,`${n}-url`),W(o,e)},[()=>X(`_sui.text_editor.url`)]),U(e,r)},$$slots:{footerExtra:!0,default:!0}})}U(e,v),k()}var y$,b$,x$,Rle=s((()=>{Q(),Y(),sY(),bq(),Z(),XF(),$K(),sc(),gI(),mL(),WF(),xL(),OQ(),qQ(),y$=V(`<div role="none"><label> </label> <!></div>`),b$=V(`<div role="none"><label> </label> <!></div> <!>`,1),x$=V(`<!> <!>`,1)}));function zle(e,t){O(t,!0);let n=Rt(`editorStore`);{let r=e=>{UF(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{ZL(e,{children:(e,r)=>{var i=H();mo(I(i),17,()=>t.components,({id:e,label:t,icon:n,createNode:r})=>e,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).createNode;tR(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{$B([a()()])})},startIcon:e=>{var t=H(),n=I(t),r=e=>{UF(e,{get name(){return i()}})};G(n,e=>{i()&&e(r)}),U(e,t)},$$slots:{startIcon:!0}})}),U(e,i)},$$slots:{default:!0}})},a=M(()=>!n.useRichText),o=M(()=>X(`_sui.insert`));VI(e,{get disabled(){return z(a)},get label(){return z(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}k()}var Ble=s((()=>{Q(),Y(),Z(),$K(),sc(),WF(),UI(),oR(),eR()}));function Vle(e,t){O(t,!0);let n=Rt(`editorStore`),r=M(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await KQ(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{iq(GB(),()=>hX(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{iq(GB(),()=>DV())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(TY,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(EY,void 0),t.type===`blockquote`&&n.editor.update(()=>{iq(GB(),()=>dX())}),t.type===`code-block`&&n.editor.update(()=>{iq(GB(),()=>_J())})};var a=H();oo(I(a),()=>z(r),e=>{{let n=e=>{UF(e,{get name(){return CQ[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${CQ[t.type].labelKey}`));sR(e,{get label(){return z(a)},get checked(){return z(r)},onclick:()=>{z(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),U(e,a),k()}var Hle=s((()=>{Q(),Y(),uz(),qJ(),DY(),MX(),dq(),Z(),$K(),sc(),WF(),cR(),OQ(),qQ()}));function Ule(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`readonly`,3,!1),i=Rt(`editorStore`),a=M(()=>i.config.components.find(({id:e})=>DQ.includes(e))),o=M(()=>i.config.components.filter(({id:e})=>!DQ.includes(e))),s=M(()=>dS([`paragraph`,...i.config.enabledButtons.filter(e=>EQ.includes(e))])),c=M(()=>dS(i.config.enabledButtons.filter(e=>TQ.includes(e))));{let t=M(()=>n()||r()),l=M(()=>X(`_sui.text_editor.text_editor`));c$(e,{get disabled(){return z(t)},get"aria-label"(){return z(l)},children:(e,t)=>{var n=E$(),r=I(n);{let e=e=>{{let t=M(()=>CQ[i.selection.blockType??``]?.icon??`format_paragraph`);UF(e,{get name(){return z(t)}})}},t=e=>{{let t=M(()=>X(`_sui.text_editor.text_style_options`));ZL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),16,()=>z(s),e=>e,(e,t)=>{Vle(e,{get type(){return t}})}),U(e,n)},$$slots:{default:!0}})}},n=M(()=>!i.useRichText),a=M(()=>X(`_sui.text_editor.show_text_style_options`));VI(r,{get disabled(){return z(n)},get"aria-label"(){return z(a)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},startIcon:e,popup:t,$$slots:{startIcon:!0,popup:!0}})}var l=L(r,2),u=e=>{var t=S$(),n=I(t);qI(n,{orientation:`vertical`});var r=L(n,2);{let e=M(()=>!i.useRichText);e$(r,{get disabled(){return z(e)}})}U(e,t)},d=e=>{var t=T$(),n=I(t),r=e=>{var t=C$(),n=I(t);qI(n,{orientation:`vertical`}),Iae(L(n,2),{children:(e,t)=>{var n=H();mo(I(n),16,()=>z(c),e=>e,(e,t)=>{var n=H(),r=I(n),i=e=>{Lle(e,{})},a=e=>{Nle(e,{get type(){return t}})};G(r,e=>{t===`link`?e(i):e(a,-1)}),U(e,n)}),U(e,n)},$$slots:{default:!0}}),U(e,t)};G(n,e=>{z(c).length&&e(r)});var s=L(n,2),l=e=>{var t=w$(),n=I(t);qI(n,{orientation:`vertical`});var r=L(n,2),i=e=>{Fle(e,{get component(){return z(a)}})};G(r,e=>{z(a)&&e(i)});var s=L(r,2),c=e=>{zle(e,{get components(){return z(o)}})};G(s,e=>{z(o).length&&e(c)}),U(e,t)};G(s,e=>{i.config.components.length&&e(l)}),U(e,t)};G(l,e=>{i.selection.blockType===`code-block`?e(u):e(d,-1)});var f=L(l,2);ZI(f,{flex:!0});var p=L(f,2),m=e=>{{let t=e=>{UF(e,{name:`markdown`})},n=M(()=>!i.useRichText),r=M(()=>X(`_sui.text_editor.edit_in_markdown`));lI(e,{iconic:!0,get disabled(){return i.hasConverterError},get pressed(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{i.useRichText=!i.useRichText,i.useRichText&&i.convertMarkdown()},startIcon:t,$$slots:{startIcon:!0}})}};G(p,e=>{i.config.modes.length>1&&e(m)}),U(e,n)},$$slots:{default:!0}})}k()}var S$,C$,w$,T$,E$,Wle=s((()=>{Q(),Y(),Z(),fS(),sc(),TI(),gI(),XI(),eL(),WF(),UI(),eR(),OQ(),r$(),Ple(),Ile(),Rle(),Ble(),Hle(),d$(),S$=V(`<!> <!>`,1),C$=V(`<!> <!>`,1),w$=V(`<!> <!> <!>`,1),T$=V(`<!> <!>`,1),E$=V(`<!> <!> <!> <!>`,1)}));function Gle(e,t){O(t,!0),K(e,O$);let n=J(t,`value`,15,``),r=J(t,`flex`,3,!1),i=J(t,`dir`,3,void 0),a=J(t,`modes`,19,()=>[`rich-text`,`plain-text`]),o=J(t,`buttons`,19,()=>[...TQ,...EQ]),s=J(t,`components`,19,()=>[]),c=J(t,`hidden`,3,!1),l=J(t,`disabled`,3,!1),u=J(t,`readonly`,3,!1),d=J(t,`required`,3,!1),f=J(t,`invalid`,3,!1),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),m=QQ();m.config={...m.config,modes:a(),enabledButtons:o(),components:s()},zt(`editorStore`,m),ti(()=>{if(!m.initialized)return;let e=n();B(()=>{m.inputValue=e})}),ti(()=>{if(!m.initialized)return;let e=m.inputValue;B(()=>{n()!==e&&n(e)})});var h=D$(),g=I(h);bs(g,()=>({...p,role:`none`,class:`sui text-editor`,hidden:c(),[Cs]:{flex:r()}}),void 0,void 0,void 0,`svelte-ilhjak`);var _=F(g);Ule(_,{get disabled(){return l()},get readonly(){return u()}});var v=L(_,2);{let e=M(()=>!m.useRichText||c());JQ(v,{get hidden(){return z(e)},get disabled(){return l()},get readonly(){return u()},get required(){return d()},get invalid(){return f()}})}var y=L(v,2);{let e=M(()=>m.useRichText||c());m$(y,{autoResize:!0,get flex(){return r()},get dir(){return i()},get hidden(){return z(e)},get disabled(){return l()},get readonly(){return u()},get required(){return d()},get invalid(){return f()},get value(){return m.inputValue},set value(e){m.inputValue=e}})}D(g);var b=L(g,2),x=e=>{oz(e,{get show(){return m.showConverterError},set show(e){m.showConverterError=e},children:(e,t)=>{GF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`_sui.text_editor.converter_error`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(b,e=>{m.showConverterError&&e(x)}),U(e,h),k()}var D$,O$,Kle=s((()=>{Q(),Y(),Z(),sc(),KF(),v$(),lz(),OQ(),ZQ(),$Q(),Wle(),D$=V(`<div><!> <!> <!></div> <!>`,1),O$={hash:`svelte-ilhjak`,code:`.text-editor.svelte-ilhjak {margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.text-editor.flex.svelte-ilhjak:not([hidden]) {display:block;}.text-editor.svelte-ilhjak .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-ilhjak .sui.text-area textarea {border-start-start-radius:0 !important;border-start-end-radius:0 !important;border-end-start-radius:var(--sui-textbox-border-radius) !important;border-end-end-radius:var(--sui-textbox-border-radius) !important;}`}}));function qle(e,t){let n=Ia();O(t,!0),K(e,A$);let r=J(t,`value`,15),i=J(t,`invalid`,15,!1),a=J(t,`flex`,3,!1),o=J(t,`min`,3,void 0),s=J(t,`max`,3,void 0),c=J(t,`step`,3,1),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`required`,3,!1),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),m=N(!1),h=N(``),g=M(()=>String(c()).split(`.`)[1]?.length||0),_=M(()=>typeof o()==`number`&&Number(z(h)||0)<=o()),v=M(()=>typeof s()==`number`&&Number(z(h)||0)>=s());ti(()=>{let e=String(r()??``);B(()=>{z(h)!==e&&P(h,e,!0)})}),ti(()=>{let e=z(h).trim()?Number(z(h)):NaN;r(Number.isNaN(e)?void 0:e)}),ti(()=>{z(m)&&i(f()&&(r()===void 0||z(h)===``)||z(h)!==void 0&&z(h)!==``&&(Number.isNaN(Number(z(h)))||typeof o()==`number`&&Number(z(h)||0)<o()||typeof s()==`number`&&Number(z(h)||0)>s()))});let y=()=>{z(_)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)-c()).toFixed(z(g)),!0)},b=()=>{z(v)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)+c()).toFixed(z(g)),!0)};var x=k$();let S;var C=F(x),w=F(C);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.increaseIcon),U(e,n)},a=e=>{UF(e,{name:`expand_less`})};G(r,e=>{t.increaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(v)),a=M(()=>X(`_sui.number_input.increase`));lI(w,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}var ee=L(w,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.decreaseIcon),U(e,n)},a=e=>{UF(e,{name:`expand_more`})};G(r,e=>{t.decreaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(_)),a=M(()=>X(`_sui.number_input.decrease`));lI(ee,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}D(C);var T=L(C,2);{let e=M(()=>Number(r()||0)),c=M(()=>z(g)>0?`decimal`:`numeric`);_L(T,Zs({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return z(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return z(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),z(m)||P(m,!0)},oninput:()=>{z(m)||P(m,!0)},get onChange(){return t.onChange},get value(){return z(h)},set value(e){P(h,e,!0)}}))}D(x),R(()=>{S=cs(x,1,`sui number-input ${t.class??``}`,`svelte-m718ho`,S,{flex:a(),disabled:u(),readonly:d()}),q(x,`hidden`,l())}),U(e,x),k()}var k$,A$,Jle=s((()=>{Q(),Y(),Z(),sc(),gI(),WF(),xL(),k$=V(`<div role="none"><div role="none" class="buttons svelte-m718ho"><!> <!></div> <!></div>`),A$={hash:`svelte-m718ho`,code:`.number-input.svelte-m718ho {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-m718ho:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-m718ho :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-m718ho :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-m718ho :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-m718ho :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-m718ho .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-m718ho {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-m718ho button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-m718ho button:first-of-type {border-block-start-width:1px;border-block-end-width:0;border-inline-end-width:0;border-inline-start-width:1px;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;}.buttons.svelte-m718ho button:last-of-type {border-block-start-width:0;border-block-end-width:1px;border-inline-end-width:0;border-inline-start-width:1px;border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;}.buttons.svelte-m718ho button .icon {font-size:20px;}`}}));function j$(e,t){let n=Ia();O(t,!0),K(e,N$);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`monospace`,3,!0),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),f=N(void 0),p=N(!1);var m=M$();let h;var g=F(m);_L(g,Zs({dir:`ltr`},()=>d,{get id(){return n},spellcheck:`false`,get flex(){return i()},get monospace(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()},get element(){return z(f)},set element(e){P(f,e,!0)},get value(){return r()},set value(e){r(e)}}));var _=L(g,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.visibilityIcon),U(e,n)},a=e=>{{let t=M(()=>z(p)?`visibility_off`:`visibility`);UF(e,{get name(){return z(t)}})}};G(r,e=>{t.visibilityIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>s()||c()),i=M(()=>X(z(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));lI(_,{iconic:!0,get disabled(){return z(r)},get pressed(){return z(p)},get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{P(p,!z(p))},startIcon:e,$$slots:{startIcon:!0}})}D(m),R(()=>{h=cs(m,1,`sui secret-input ${t.class??``}`,`svelte-hwo36v`,h,{flex:i(),disabled:s(),readonly:c(),show:z(p)}),q(m,`hidden`,o())}),U(e,m),k()}var M$,N$,Yle=s((()=>{Q(),Y(),Z(),gI(),WF(),xL(),M$=V(`<div role="none"><!> <!></div>`),N$={hash:`svelte-hwo36v`,code:`.secret-input.svelte-hwo36v {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-hwo36v:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-hwo36v input {-webkit-text-security:none;}.secret-input.svelte-hwo36v .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-hwo36v input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-hwo36v button {flex:none;margin-block:0;margin-inline-start:-1px;margin-inline-end:0;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.secret-input.svelte-hwo36v button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}.secret-input.svelte-hwo36v button .icon {font-size:var(--sui-font-size-xx-large);}`}}));function Xle(e,t){O(t,!0),K(e,R$);let n=J(t,`orientation`,3,`horizontal`),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`orientation`,`children`]),i=[`https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Noto+Sans+Mono:wght@100..900&display=swap`,`https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block`],a=N(!1);ac(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.addEventListener(`change`,n);let r=globalThis.setTimeout(()=>{P(a,!0)},1e3);return()=>{e.removeEventListener(`change`,n),globalThis.clearTimeout(r)}});var o=L$();Ko(`1lqki0a`,e=>{var t=F$(),n=I(t);mo(L(n,8),16,()=>i,e=>e,(e,t)=>{var n=P$(),r=I(n),i=L(r,2);R(()=>{q(r,`href`,t),q(i,`href`,t)}),U(e,n)}),R(e=>q(n,`content`,e),[()=>[`width=device-width`,`initial-scale=1`,`maximum-scale=1`,`interactive-widget=resizes-content`].join(`, `)]),U(e,t)});var s=I(o),c=e=>{var t=I$();ds(t,``,{},{opacity:`0`}),U(e,t)};G(s,e=>{z(a)||e(c)});var l=L(s,2),u=e=>e.preventDefault(),d=e=>e.preventDefault(),f=e=>{if(document.documentElement.matches(`[data-env="dev"]`))return;let t=e.target;document.documentElement.matches(`[data-env="dev"]`)||t?.matches(`input, textarea`)&&`maxLength`in t||t?.closest(`[role="textbox"]`)?.contentEditable===`true`||e.preventDefault()};bs(l,()=>({...r,role:`none`,class:`sui app-shell ${n()??``}`,ondragover:u,ondrop:d,oncontextmenu:f}),void 0,void 0,void 0,`svelte-1lqki0a`),Eo(F(l),()=>t.children??E),D(l),U(e,o),k()}var P$,F$,I$,L$,R$,Zle=s((()=>{Q(),Y(),sc(),P$=V(`<link rel="preload" as="style"/> <link rel="stylesheet"/>`,1),F$=V(`<meta name="viewport"/> <meta name="google" content="notranslate"/> <link rel="preconnect" href="https://fonts.googleapis.com"/> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/> <!>`,1),I$=V(`<div class="font-loader svelte-1lqki0a" aria-hidden="true">Loading <strong>Sveltia</strong> <em>UI</em> <span role="none" class="material-symbols-outlined">favorite</span></div>`),L$=V(`<!> <div><!></div>`,1),R$={hash:`svelte-1lqki0a`,code:`:root,
|
|
715
|
+
`)},regExp:MQ,replace:(e,t,[n])=>{if(NQ.test(n)){let t=e.getPreviousSibling();if(!t||!uQ(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!VZ(r))return;r.getChildren().forEach(e=>{RZ(e)&&e.setHeaderStyles(fQ.ROW,fQ.ROW)}),e.remove();return}let r=FQ(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!OV(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!CB(e))break;let t=FQ(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=lQ();i.forEach(e=>{let t=BZ();s.append(t);for(let n=0;n<o;n+=1)t.append(n<e.length?e[n]:PQ(``))});let c=e.getPreviousSibling();uQ(c)&&Dle(c)===o?(c.append(...s.getChildren()),e.remove()):e.replace(s),s.selectEnd()},type:`element`}})),LQ,RQ,zQ,BQ,VQ,HQ,UQ,WQ,GQ,KQ,qQ=s((()=>{uz(),qJ(),KJ(),JJ(),dJ(),vce(),sY(),DY(),PZ(),MX(),xQ(),bq(),Xx(),$K(),LQ=u(SQ(),1),OQ(),Tle(),Ele(),Ole(),Fw(),RQ=[...NZ,jQ,IQ],zQ=`https://unpkg.com/prismjs@1.30.0`,BQ={namespace:`editor`,nodes:[jX,AX,rY,CY,SY,AJ,jJ,uJ,bQ,pQ,mQ],theme:{text:{italic:`italic`,strikethrough:`strikethrough`},list:{nested:{listitem:`nested`}},code:`code-block`,codeHighlight:{atrule:`token atrule`,attr:`token attr`,boolean:`token boolean`,builtin:`token builtin`,cdata:`token cdata`,char:`token char`,class:`token class`,"class-name":`token class-name`,comment:`token comment`,constant:`token constant`,deleted:`token deleted`,doctype:`token doctype`,entity:`token entity`,function:`token function`,important:`token important`,inserted:`token inserted`,keyword:`token keyword`,namespace:`token namespace`,number:`token number`,operator:`token operator`,prolog:`token prolog`,property:`token property`,punctuation:`token punctuation`,regex:`token regex`,selector:`token selector`,string:`token string`,symbol:`token symbol`,tag:`token tag`,url:`token url`,variable:`token variable`}}},VQ=()=>{let e=GB();if(!AB(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=wQ.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof EK?t:pq(t,EK),ZJ(n)&&(r.push(`link`),n=pq(n,EK)),_Y(n)&&(n=pq(n,CY)));let i=(()=>{if(!n)return`paragraph`;if(gX(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(xY(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(fX(n))return`blockquote`;if(vJ(n)||TJ(n))return`code-block`;let e=n.getType();return EQ.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},HQ=e=>{e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:KX(RQ.filter(({tag:e})=>e!==`*`)).replace(/\\([_\\])/g,`$1`).replace(/ /g,` `),selection:VQ()}}))},UQ=({components:e=[],isCodeEditor:t=!1,defaultLanguage:n=`plain`})=>{e.forEach(({node:e,transformer:t})=>{BQ.nodes.unshift(e),RQ.unshift(t)});let r=AV(BQ);return ole(r),pce(r),gce(r,_ce(),1e3),fce(r,{defaultLanguage:n,tokenize:(e,t=`plain`)=>window.Prism.tokenize(e,window.Prism.languages[t]??window.Prism.languages.plain),$tokenize:GJ.$tokenize}),r.registerCommand(aY,e=>(bce(typeof e==`string`?e:null),!0),2),r.registerCommand(TY,()=>(dY(`bullet`),!0),2),r.registerCommand(EY,()=>(dY(`number`),!0),2),r.registerCommand($W,()=>Oce(),2),r.registerUpdateListener(()=>{r?.isComposing()||(async()=>{await Yx(100),r.update(()=>{if(t){let e=iH(),t=e.getChildren();if(t.length===1&&!vJ(t[0])&&t[0].remove(),t.length===0){let t=_J();t.setLanguage(n),e.append(t)}}HQ(r)})})()}),r.registerRootListener(e=>{e&&e.addEventListener(`keydown`,e=>{r.update(()=>{if(e.key===`Tab`){let t=GB();if(!AB(t))return;let n=t.anchor.getNode(),i=n instanceof EK?n:pq(n,EK);_Y(i)&&i.canIndent()&&(e.shiftKey?i.getIndent()>0&&(e.preventDefault(),r.dispatchCommand(CG,void 0)):(e.preventDefault(),r.dispatchCommand(SG,void 0)))}})})}),r},WQ=async e=>{if(e in window.Prism.languages)return;let t=Object.entries(LQ.default.languages).find(([t,{alias:n}])=>t===e||(Array.isArray(n)?n.includes(e):n===e))?.[0];if(t)try{await Pw(()=>import(`${zQ}/components/prism-${t}.min.js`),void 0)}catch{}},GQ=async(e,t)=>(await Promise.all([...t.matchAll(/^```(?<lang>.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>WQ(e))),t=kQ(t),t=AQ(t),new Promise((n,r)=>{e.update(()=>{try{GX(t,RQ),n(void 0)}catch(e){r(Error(`Failed to convert Markdown`,{cause:e}))}})})),KQ=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})})}));function JQ(e,t){O(t,!0),K(e,XQ);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),c=Rt(`editorStore`),l=N(void 0),u=M(()=>!(r()||i()));ti(()=>{c.editor?.setEditable(z(u))});let d=e=>{let{hasConverterError:t,useRichText:n,inputValue:r}=c;if(t||!n)return;let{value:i,selection:a}=e.detail;r!==i&&(c.useRichText=!1,c.inputValue=i,c.useRichText=!0),c.selection=a},f=e=>{e.target?.matches(`a`)&&e.preventDefault()};ac(()=>(c.editor=UQ(c.config),z(l)?.addEventListener(`Update`,d),z(l)?.addEventListener(`click`,f),()=>{z(l)?.removeEventListener(`Update`,d),z(l)?.removeEventListener(`click`,f)})),ti(()=>{c.editor&&z(l)&&(c.editor.setRootElement(z(l)),c.initialized=!0)});var p=YQ();bs(p,()=>({...s,role:`textbox`,"aria-multiline":`true`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),class:`lexical-root`,id:`${c.editorId??``}-lexical-root`,contenteditable:z(u),hidden:n(),[Cs]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-14syb8h`),Ws(p,e=>P(l,e),()=>z(l)),U(e,p),k()}var YQ,XQ,ZQ=s((()=>{Q(),Y(),sc(),qQ(),YQ=V(`<div></div>`),XQ={hash:`svelte-14syb8h`,code:`.lexical-root.svelte-14syb8h {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:8em;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-14syb8h:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-14syb8h {padding:0;}.lexical-root.code.svelte-14syb8h .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-14syb8h:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-14syb8h {border-color:var(--sui-error-border-color);}.lexical-root.svelte-14syb8h :first-child {margin-top:0;}.lexical-root.svelte-14syb8h :last-child {margin-bottom:0;}.lexical-root.svelte-14syb8h strong.italic {font-style:italic;}.lexical-root.svelte-14syb8h .strikethrough {text-decoration:line-through;}.lexical-root.svelte-14syb8h li.nested {list-style-type:none;}.lexical-root.svelte-14syb8h .code-block {position:relative;display:block;padding-block:8px;padding-inline-start:56px;padding-inline-end:8px;background-color:var(--sui-code-background-color);overflow-x:auto;white-space:pre;}.lexical-root.svelte-14syb8h .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-14syb8h .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-14syb8h .code-block::before {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;content:attr(data-gutter);padding:8px;min-width:40px;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);text-align:end;}.lexical-root.svelte-14syb8h [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-14syb8h :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-14syb8h hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-14syb8h hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.comment, .prolog, .doctype, .cdata) {color:slategray;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token.punctuation {color:#999;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token.namespace {opacity:0.7;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.property, .tag, .boolean, .number, .constant, .symbol, .deleted) {color:#905;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.selector, .attr-name, .string, .char, .builtin, .inserted) {color:#690;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.operator, .entity, .url), :root[data-theme=light] .lexical-root.svelte-14syb8h .language-css .token.string, :root[data-theme=light] .lexical-root.svelte-14syb8h .style .token.string {color:#9a6e3a;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.atrule, .attr-value, .keyword) {color:#07a;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.function, .class-name) {color:#dd4a68;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.regex, .important, .variable) {color:#e90;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.comment, .block-comment, .prolog, .doctype, .cdata) {color:#999;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token.punctuation {color:#ccc;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.tag, .attr-name, .namespace, .deleted) {color:#e2777a;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token.function-name {color:#6196cc;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.boolean, .number, .function) {color:#f08d49;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.property, .class-name, .constant, .symbol) {color:#f8c555;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.selector, .important, .atrule, .keyword, .builtin) {color:#cc99cd;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.string, .char, .attr-value, .regex, .variable) {color:#7ec699;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.operator, .entity, .url) {color:#67cdcc;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.important, .bold) {font-weight:bold;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token.italic {font-style:italic;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token.entity {cursor:help;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token.inserted {color:green;}`}})),QQ,$Q=s((()=>{Y(),tI(),qQ(),QQ=()=>{let e=$F(`editor`),t=N(!1),n=N(void 0),r=N(Cr({modes:[],enabledButtons:[],components:[],isCodeEditor:!1})),i=N(``),a=N(Cr({blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]})),o=N(!0),s=N(!1),c=N(!1),l=async()=>{if(!z(n)||!z(t))return;let e=z(i);try{await GQ(z(n),z(i)||``)}catch(t){P(s,!0),P(i,e,!0),console.error(t)}};return{get editor(){return z(n)},set editor(e){P(n,e,!0)},get initialized(){return z(t)},set initialized(e){P(t,e,!0)},get config(){return z(r)},set config(e){P(r,e,!0),P(o,e.modes[0]===`rich-text`||e.isCodeEditor,!0)},get inputValue(){return z(i)},set inputValue(e){let t=z(i)!==e;t&&P(i,e,!0),z(o)&&(t||z(n)?.getEditorState().isEmpty())&&l()},get selection(){return z(a)},set selection(e){P(a,e,!0)},get useRichText(){return z(o)},set useRichText(e){P(o,e,!0)},get hasConverterError(){return z(s)},set hasConverterError(e){P(s,e,!0),z(s)&&(P(o,!1),P(c,!0))},get showConverterError(){return z(c)},set showConverterError(e){P(c,e,!0)},editorId:e,convertMarkdown:l}}}));function e$(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=Object.entries(t$.default.languages).filter(([,e])=>`title`in e).map(([e,t])=>{let{title:n,aliasTitles:r,alias:i}=t,a=[];return i&&!r&&(a=Array.isArray(i)?i:[i]),[{key:e,label:n,aliases:a},...Object.entries(r??{}).map(([e,t])=>({key:e,label:t,aliases:[]}))]}).flat(1).sort((e,t)=>e.label.localeCompare(t.label)),i=Rt(`editorStore`),a=N(`plain`);ti(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?iH().getChildren()[0]:QV(i.selection.blockNodeKey);vJ(e)&&P(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=M(()=>X(`_sui.text_editor.language`));RR(e,{get disabled(){return n()},get"aria-label"(){return z(t)},get value(){return z(a)},onChange:async({detail:{value:e}})=>{!i.editor||z(a)===e||(await KQ(i.editor),i.selection?.blockNodeKey&&(await WQ(e),i.editor.update(()=>{let t=QV(i.selection.blockNodeKey);vJ(t)&&(t.setLanguage(e),P(a,e,!0))})))},children:(e,t)=>{var n=n$(),i=I(n);{let e=M(()=>X(`_sui.text_editor.plain_text`));KL(i,{get label(){return z(e)},value:`plain`,dir:`ltr`})}mo(L(i,2),17,()=>r,({key:e,label:t,aliases:n})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).aliases;{let t=M(()=>n()===z(a)||i().includes(z(a)));KL(e,{get label(){return r()},get value(){return n()},get selected(){return z(t)},dir:`ltr`})}}),U(e,n)},$$slots:{default:!0}})}k()}var t$,n$,r$=s((()=>{Q(),Y(),uz(),qJ(),Z(),$K(),t$=u(SQ()),sc(),XL(),zR(),qQ(),n$=V(`<!> <!>`,1)}));function i$(e,t){K(e,o$);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`variant`,3,void 0),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`children`]);var s=a$();bs(s,()=>({...o,role:`toolbar`,class:`sui toolbar ${i()??``} ${a()??``} ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i()}),void 0,void 0,void 0,`svelte-iwrgg7`);var c=F(s);Eo(F(c),()=>t.children??E),D(c),D(s),R(()=>c.inert=r()),U(e,s)}var a$,o$,s$=s((()=>{Q(),Y(),a$=V(`<div><div role="none" class="inner svelte-iwrgg7"><!></div></div>`),o$={hash:`svelte-iwrgg7`,code:`[role=toolbar].svelte-iwrgg7 {--toolbar-size: var(--sui-secondary-toolbar-size);flex:none !important;display:flex;align-items:center;padding-inline:8px;background-color:var(--toolbar-background-color, transparent);}[role=toolbar].primary.svelte-iwrgg7 {--toolbar-size: var(--sui-primary-toolbar-size);}
|
|
716
|
+
@media (width < 768px) {[role=toolbar].secondary.svelte-iwrgg7 {padding-inline:0;}
|
|
717
|
+
}[role=toolbar][aria-orientation=horizontal].svelte-iwrgg7 {height:var(--toolbar-size);}[role=toolbar][aria-orientation=vertical].svelte-iwrgg7 {flex-direction:column;width:var(--toolbar-size);}[role=toolbar].svelte-iwrgg7 button[role=button]:is([aria-pressed=true], [aria-checked=true]) {background-color:var(--sui-selected-background-color);}[role=toolbar].svelte-iwrgg7 h2 {flex:auto;display:flex;align-items:center;gap:8px;margin:0;padding-inline-end:12px;min-width:0;font-size:var(--sui-font-size-x-large);}[role=toolbar].svelte-iwrgg7 h2:first-child {padding-inline-start:12px;}[role=toolbar].svelte-iwrgg7 h2 span:not(.sui.truncated-text) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal, normal);opacity:0.8;}[role=toolbar].svelte-iwrgg7 .divider[aria-orientation=horizontal] {margin:0 4px;width:calc(100% - 8px);}[role=toolbar].svelte-iwrgg7 .divider[aria-orientation=vertical] {margin:4px 0;height:calc(100% - 8px);}.inner.svelte-iwrgg7 {display:contents;}`}}));function c$(e,t){O(t,!0),K(e,u$),J(t,`code`,11,``),J(t,`lang`,11,`plain`);let n=J(t,`disabled`,3,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`disabled`,`children`]);var i=l$();i$(F(i),Zs(()=>r,{get disabled(){return n()},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}})),D(i),U(e,i),k()}var l$,u$,d$=s((()=>{Q(),Y(),s$(),l$=V(`<div role="none" class="wrapper svelte-gn6att"><!></div>`),u$={hash:`svelte-gn6att`,code:`.wrapper.svelte-gn6att {display:contents;}.wrapper.svelte-gn6att [role=toolbar] {position:sticky;top:0;z-index:100;display:flex;flex-wrap:wrap;gap:4px;border-width:1px 1px 0;border-style:solid;border-color:var(--sui-textbox-border-color);border-start-start-radius:var(--sui-textbox-border-radius);border-start-end-radius:var(--sui-textbox-border-radius);border-end-start-radius:0;border-end-end-radius:0;padding:0 4px;height:auto;min-height:40px;background-color:var(--sui-tertiary-background-color);}
|
|
718
|
+
@media (width < 768px) {.wrapper.svelte-gn6att [role=toolbar] {flex-wrap:wrap;height:auto;}
|
|
719
|
+
}.wrapper.svelte-gn6att .sui.menu-button {padding:0 4px;}.wrapper.svelte-gn6att .sui.button {flex:none;margin:0 !important;}.wrapper.svelte-gn6att .sui.button-group {gap:4px;}`}}));function kle(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`readonly`,3,!1);{let t=M(()=>n()||r()),i=M(()=>X(`_sui.text_editor.code_editor`));c$(e,{get disabled(){return z(t)},get"aria-label"(){return z(i)},children:(e,t)=>{{let t=M(()=>n()||r());e$(e,{get disabled(){return z(t)}})}},$$slots:{default:!0}})}k()}var Ale=s((()=>{Q(),Y(),Z(),r$(),d$()}));function jle(e,t){O(t,!0),K(e,p$);let n=J(t,`code`,15,``),r=J(t,`lang`,15,`plain`),i=J(t,`showLanguageSwitcher`,3,!1),a=J(t,`flex`,3,!1),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`showLanguageSwitcher`,`flex`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),f=QQ();f.config={...f.config,isCodeEditor:!0,defaultLanguage:r()},zt(`editorStore`,f),ti(()=>{f.initialized&&(n(),r(),B(()=>{f.inputValue=n()?`\`\`\`${r()}\n${n()}\n\`\`\``:`\`\`\`${r()}\n\`\`\``}))}),ti(()=>{f.initialized&&(f.inputValue,B(()=>{let{lang:e=`plain`,code:t=``}=f.inputValue.match(/^```(?<lang>\w+?)?\n(?:(?<code>.*)\n)?```/s)?.groups??{};r()!==e&&r(e),n()!==t&&n(t)}))});var p=f$(),m=I(p);bs(m,()=>({...d,role:`none`,class:`sui code-editor`,hidden:o(),[Cs]:{flex:a()}}),void 0,void 0,void 0,`svelte-1tf7qqh`);var h=F(m),g=e=>{kle(e,{get disabled(){return s()},get readonly(){return c()}})};G(h,e=>{i()&&e(g)}),JQ(L(h,2),{get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()}}),D(m);var _=L(m,2),v=e=>{oz(e,{get show(){return f.showConverterError},set show(e){f.showConverterError=e},children:(e,t)=>{GF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`_sui.text_editor.converter_error`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(_,e=>{f.showConverterError&&e(v)}),U(e,p),k()}var f$,p$,Mle=s((()=>{Q(),Y(),Z(),sc(),KF(),lz(),ZQ(),$Q(),Ale(),f$=V(`<div><!> <!></div> <!>`,1),p$={hash:`svelte-1tf7qqh`,code:`.code-editor.svelte-1tf7qqh {margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.code-editor.flex.svelte-1tf7qqh:not([hidden]) {display:block;}`}}));function m$(e,t){O(t,!0),K(e,_$);let n=J(t,`value`,15,``),r=J(t,`flex`,3,!1),i=J(t,`dir`,3,void 0),a=J(t,`name`,3,void 0),o=J(t,`autoResize`,3,!1),s=J(t,`hidden`,3,!1),c=J(t,`disabled`,3,!1),l=J(t,`readonly`,3,!1),u=J(t,`required`,3,!1),d=J(t,`invalid`,3,!1),f=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`name`,`autoResize`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]);var p=g$();let m;var h=F(p);Ur(h),bs(h,()=>({...f,dir:i(),name:a(),disabled:c()||void 0,readonly:l()||void 0,"aria-hidden":s(),"aria-disabled":c(),"aria-readonly":l(),"aria-required":u(),"aria-invalid":d(),[Cs]:{"auto-resize":o()}}),void 0,void 0,void 0,`svelte-18i6uc8`);var g=L(h,2),_=e=>{var t=h$(),r=F(t,!0);D(t),R(()=>{q(t,`dir`,i()),W(r,n()),t.dir=t.dir}),U(e,t)};G(g,e=>{o()&&e(_)}),D(p),R(()=>{m=cs(p,1,`sui text-area ${t.class??``}`,`svelte-18i6uc8`,m,{flex:r(),disabled:c(),readonly:l()}),q(p,`hidden`,s()),h.dir=h.dir}),Fs(h,n),U(e,p),k()}var h$,g$,_$,v$=s((()=>{Q(),Y(),h$=V(`<div class="clone svelte-18i6uc8" aria-hidden="true"> </div>`),g$=V(`<div role="none"><textarea></textarea> <!></div>`),_$={hash:`svelte-18i6uc8`,code:`.text-area.svelte-18i6uc8 {display:inline-grid;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-multiline-min-width);}.text-area[hidden].svelte-18i6uc8 {display:none;}.text-area.flex.svelte-18i6uc8:not([hidden]) {display:inline-grid;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}:is(textarea.svelte-18i6uc8, .clone.svelte-18i6uc8) {grid-area:1/1/2/2;display:block;margin:0;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-multiline-padding);width:100%;min-height:8em;color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);line-height:var(--sui-textbox-multiline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}:is(textarea:where(.svelte-18i6uc8), .clone:where(.svelte-18i6uc8)).resizing.svelte-18i6uc8 {transition-duration:0ms;}.svelte-18i6uc8:is(textarea:where(.svelte-18i6uc8), .clone:where(.svelte-18i6uc8)):focus {border-color:var(--sui-textbox-border-color-focus, var(--sui-primary-accent-color));color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}.svelte-18i6uc8:is(textarea:where(.svelte-18i6uc8), .clone:where(.svelte-18i6uc8)):is(:where(.svelte-18i6uc8):disabled, :where(.svelte-18i6uc8):read-only) {background-color:var(--sui-disabled-background-color);}textarea.svelte-18i6uc8 {resize:vertical;}textarea.auto-resize.svelte-18i6uc8 {overflow:hidden;resize:none;}textarea[aria-invalid=true].svelte-18i6uc8 {border-color:var(--sui-error-border-color);}.clone.svelte-18i6uc8 {overflow:hidden;visibility:hidden;}textarea.svelte-18i6uc8,
|
|
720
|
+
.clone.svelte-18i6uc8 {white-space:pre-wrap;word-break:break-all;}`}}));function Nle(e,t){O(t,!0);let n=Rt(`editorStore`),r=M(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{UF(e,{get name(){return CQ[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${CQ[t.type].labelKey}`)),o=M(()=>!n.useRichText);lI(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(o)},get pressed(){return z(r)},onclick:async()=>{n.editor&&(await KQ(n.editor),n.editor.dispatchCommand(aG,t.type))},startIcon:i,$$slots:{startIcon:!0}})}k()}var Ple=s((()=>{Q(),Y(),Z(),$K(),sc(),gI(),WF(),OQ(),qQ()}));function Fle(e,t){O(t,!0);let n=Rt(`editorStore`);{let r=e=>{UF(e,{get name(){return t.component.icon}})},i=M(()=>!n.useRichText);lI(e,{iconic:!0,get"aria-label"(){return t.component.label},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(i)},onclick:()=>{n.editor?.update(()=>{$B([t.component.createNode(),DV()])})},startIcon:r,$$slots:{startIcon:!0}})}k()}var Ile=s((()=>{Q(),Y(),$K(),sc(),gI(),WF()}));function Lle(e,t){let n=Ia();O(t,!0);let r=`link`,i=Rt(`editorStore`),a=M(()=>i.selection.inlineTypes.includes(r)),o=N(!1),s=N(`create`),c=N(!1),l=N(``),u=N(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=rse().trim();P(l,e,!0),P(c,!!e),P(s,`create`),P(o,!0)})},f=()=>{i.editor?.dispatchCommand(aY,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=GB();if(AB(e)){let t=e.anchor.getNode(),n=(t instanceof rY?t:pq(t,rY))?.getURL();if(n){P(c,!0),P(l,n,!0),P(s,`update`),P(o,!0);return}}f()})},m=()=>{z(a)?p():d()},h=e=>{JF(e,`Enter`)&&z(l)&&P(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&z(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=GB()??KB()?.clone();if(AB(t)||(t=HB()),!z(c)){P(u,z(u).trim(),!0),P(u,z(u)||z(l),!0);let{anchor:e,focus:n}=t,r=SB(z(u)),i=r.getKey();$B([r]),e.set(i,z(u).length,`text`),n.set(i,0,`text`)}oH(t),e(void 0)})}),await KQ(i.editor),i.editor.dispatchCommand(aY,z(l))}P(l,``),P(u,``)},_=()=>{i.editor?.registerCommand(cG,e=>(JF(e,qF()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};ti(()=>{i.editor&&_()});var v=x$(),y=I(v);{let e=e=>{UF(e,{get name(){return CQ[r].icon}})},t=M(()=>X(`_sui.text_editor.${CQ[r].labelKey}`)),n=M(()=>!i.useRichText);lI(y,{iconic:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return z(n)},get pressed(){return z(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=L(y,2);{let e=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>X(`_sui.remove`));lI(e,{variant:`secondary`,get label(){return z(t)},onclick:()=>{f(),P(s,`remove`),P(o,!1)}})}};G(n,e=>{z(s)!==`create`&&e(r)}),U(e,t)},t=M(()=>z(s)===`create`?X(`_sui.text_editor.insert_link`):X(`_sui.text_editor.update_link`)),r=M(()=>!z(l)),i=M(()=>z(s)===`create`?X(`_sui.insert`):X(`_sui.update`));sL(b,{get title(){return z(t)},get okDisabled(){return z(r)},get okLabel(){return z(i)},onClose:e=>{g(e)},get open(){return z(o)},set open(e){P(o,e,!0)},get value(){return z(l)},set value(e){P(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=b$(),i=I(r),a=F(i),o=F(a,!0);D(a),_L(L(a,2),{dir:`ltr`,get id(){return`${n}-url`},flex:!0,"aria-label":`URL`,onkeydown:e=>{h(e)},get value(){return z(l)},set value(e){P(l,e,!0)}}),D(i);var s=L(i,2),d=e=>{var t=y$(),r=F(t),i=F(r,!0);D(r),_L(L(r,2),{dir:`auto`,get id(){return`${n}-text`},flex:!0,onkeydown:e=>{h(e)},get value(){return z(u)},set value(e){P(u,e,!0)}}),D(t),R(e=>{q(r,`for`,`${n}-text`),W(i,e)},[()=>X(`_sui.text_editor.text`)]),U(e,t)};G(s,e=>{z(c)||e(d)}),R(e=>{q(a,`for`,`${n}-url`),W(o,e)},[()=>X(`_sui.text_editor.url`)]),U(e,r)},$$slots:{footerExtra:!0,default:!0}})}U(e,v),k()}var y$,b$,x$,Rle=s((()=>{Q(),Y(),sY(),bq(),Z(),XF(),$K(),sc(),gI(),mL(),WF(),xL(),OQ(),qQ(),y$=V(`<div role="none"><label> </label> <!></div>`),b$=V(`<div role="none"><label> </label> <!></div> <!>`,1),x$=V(`<!> <!>`,1)}));function zle(e,t){O(t,!0);let n=Rt(`editorStore`);{let r=e=>{UF(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{ZL(e,{children:(e,r)=>{var i=H();mo(I(i),17,()=>t.components,({id:e,label:t,icon:n,createNode:r})=>e,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).createNode;tR(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{$B([a()()])})},startIcon:e=>{var t=H(),n=I(t),r=e=>{UF(e,{get name(){return i()}})};G(n,e=>{i()&&e(r)}),U(e,t)},$$slots:{startIcon:!0}})}),U(e,i)},$$slots:{default:!0}})},a=M(()=>!n.useRichText),o=M(()=>X(`_sui.insert`));VI(e,{get disabled(){return z(a)},get label(){return z(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}k()}var Ble=s((()=>{Q(),Y(),Z(),$K(),sc(),WF(),UI(),oR(),eR()}));function Vle(e,t){O(t,!0);let n=Rt(`editorStore`),r=M(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await KQ(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{iq(GB(),()=>hX(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{iq(GB(),()=>DV())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(TY,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(EY,void 0),t.type===`blockquote`&&n.editor.update(()=>{iq(GB(),()=>dX())}),t.type===`code-block`&&n.editor.update(()=>{iq(GB(),()=>_J())})};var a=H();oo(I(a),()=>z(r),e=>{{let n=e=>{UF(e,{get name(){return CQ[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${CQ[t.type].labelKey}`));sR(e,{get label(){return z(a)},get checked(){return z(r)},onclick:()=>{z(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),U(e,a),k()}var Hle=s((()=>{Q(),Y(),uz(),qJ(),DY(),MX(),dq(),Z(),$K(),sc(),WF(),cR(),OQ(),qQ()}));function Ule(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`readonly`,3,!1),i=Rt(`editorStore`),a=M(()=>i.config.components.find(({id:e})=>DQ.includes(e))),o=M(()=>i.config.components.filter(({id:e})=>!DQ.includes(e))),s=M(()=>dS([`paragraph`,...i.config.enabledButtons.filter(e=>EQ.includes(e))])),c=M(()=>dS(i.config.enabledButtons.filter(e=>TQ.includes(e))));{let t=M(()=>n()||r()),l=M(()=>X(`_sui.text_editor.text_editor`));c$(e,{get disabled(){return z(t)},get"aria-label"(){return z(l)},children:(e,t)=>{var n=E$(),r=I(n);{let e=e=>{{let t=M(()=>CQ[i.selection.blockType??``]?.icon??`format_paragraph`);UF(e,{get name(){return z(t)}})}},t=e=>{{let t=M(()=>X(`_sui.text_editor.text_style_options`));ZL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),16,()=>z(s),e=>e,(e,t)=>{Vle(e,{get type(){return t}})}),U(e,n)},$$slots:{default:!0}})}},n=M(()=>!i.useRichText),a=M(()=>X(`_sui.text_editor.show_text_style_options`));VI(r,{get disabled(){return z(n)},get"aria-label"(){return z(a)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},startIcon:e,popup:t,$$slots:{startIcon:!0,popup:!0}})}var l=L(r,2),u=e=>{var t=S$(),n=I(t);qI(n,{orientation:`vertical`});var r=L(n,2);{let e=M(()=>!i.useRichText);e$(r,{get disabled(){return z(e)}})}U(e,t)},d=e=>{var t=T$(),n=I(t),r=e=>{var t=C$(),n=I(t);qI(n,{orientation:`vertical`}),Iae(L(n,2),{children:(e,t)=>{var n=H();mo(I(n),16,()=>z(c),e=>e,(e,t)=>{var n=H(),r=I(n),i=e=>{Lle(e,{})},a=e=>{Nle(e,{get type(){return t}})};G(r,e=>{t===`link`?e(i):e(a,-1)}),U(e,n)}),U(e,n)},$$slots:{default:!0}}),U(e,t)};G(n,e=>{z(c).length&&e(r)});var s=L(n,2),l=e=>{var t=w$(),n=I(t);qI(n,{orientation:`vertical`});var r=L(n,2),i=e=>{Fle(e,{get component(){return z(a)}})};G(r,e=>{z(a)&&e(i)});var s=L(r,2),c=e=>{zle(e,{get components(){return z(o)}})};G(s,e=>{z(o).length&&e(c)}),U(e,t)};G(s,e=>{i.config.components.length&&e(l)}),U(e,t)};G(l,e=>{i.selection.blockType===`code-block`?e(u):e(d,-1)});var f=L(l,2);ZI(f,{flex:!0});var p=L(f,2),m=e=>{{let t=e=>{UF(e,{name:`markdown`})},n=M(()=>!i.useRichText),r=M(()=>X(`_sui.text_editor.edit_in_markdown`));lI(e,{iconic:!0,get disabled(){return i.hasConverterError},get pressed(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{i.useRichText=!i.useRichText,i.useRichText&&i.convertMarkdown()},startIcon:t,$$slots:{startIcon:!0}})}};G(p,e=>{i.config.modes.length>1&&e(m)}),U(e,n)},$$slots:{default:!0}})}k()}var S$,C$,w$,T$,E$,Wle=s((()=>{Q(),Y(),Z(),fS(),sc(),TI(),gI(),XI(),eL(),WF(),UI(),eR(),OQ(),r$(),Ple(),Ile(),Rle(),Ble(),Hle(),d$(),S$=V(`<!> <!>`,1),C$=V(`<!> <!>`,1),w$=V(`<!> <!> <!>`,1),T$=V(`<!> <!>`,1),E$=V(`<!> <!> <!> <!>`,1)}));function Gle(e,t){O(t,!0),K(e,O$);let n=J(t,`value`,15,``),r=J(t,`flex`,3,!1),i=J(t,`dir`,3,void 0),a=J(t,`modes`,19,()=>[`rich-text`,`plain-text`]),o=J(t,`buttons`,19,()=>[...TQ,...EQ]),s=J(t,`components`,19,()=>[]),c=J(t,`hidden`,3,!1),l=J(t,`disabled`,3,!1),u=J(t,`readonly`,3,!1),d=J(t,`required`,3,!1),f=J(t,`invalid`,3,!1),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),m=QQ();m.config={...m.config,modes:a(),enabledButtons:o(),components:s()},zt(`editorStore`,m),ti(()=>{if(!m.initialized)return;let e=n();B(()=>{m.inputValue=e})}),ti(()=>{if(!m.initialized)return;let e=m.inputValue;B(()=>{n()!==e&&n(e)})});var h=D$(),g=I(h);bs(g,()=>({...p,role:`none`,class:`sui text-editor`,hidden:c(),[Cs]:{flex:r()}}),void 0,void 0,void 0,`svelte-1eoxv9j`);var _=F(g);Ule(_,{get disabled(){return l()},get readonly(){return u()}});var v=L(_,2);{let e=M(()=>!m.useRichText||c());JQ(v,{get hidden(){return z(e)},get disabled(){return l()},get readonly(){return u()},get required(){return d()},get invalid(){return f()}})}var y=L(v,2);{let e=M(()=>m.useRichText||c());m$(y,{autoResize:!0,get flex(){return r()},get dir(){return i()},get hidden(){return z(e)},get disabled(){return l()},get readonly(){return u()},get required(){return d()},get invalid(){return f()},get value(){return m.inputValue},set value(e){m.inputValue=e}})}D(g);var b=L(g,2),x=e=>{oz(e,{get show(){return m.showConverterError},set show(e){m.showConverterError=e},children:(e,t)=>{GF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`_sui.text_editor.converter_error`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(b,e=>{m.showConverterError&&e(x)}),U(e,h),k()}var D$,O$,Kle=s((()=>{Q(),Y(),Z(),sc(),KF(),v$(),lz(),OQ(),ZQ(),$Q(),Wle(),D$=V(`<div><!> <!> <!></div> <!>`,1),O$={hash:`svelte-1eoxv9j`,code:`.text-editor.svelte-1eoxv9j {margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.text-editor.flex.svelte-1eoxv9j:not([hidden]) {display:block;}.text-editor.svelte-1eoxv9j .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-1eoxv9j .sui.text-area textarea {border-start-start-radius:0 !important;border-start-end-radius:0 !important;border-end-start-radius:var(--sui-textbox-border-radius) !important;border-end-end-radius:var(--sui-textbox-border-radius) !important;}`}}));function qle(e,t){let n=Ia();O(t,!0),K(e,A$);let r=J(t,`value`,15),i=J(t,`invalid`,15,!1),a=J(t,`flex`,3,!1),o=J(t,`min`,3,void 0),s=J(t,`max`,3,void 0),c=J(t,`step`,3,1),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`required`,3,!1),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),m=N(!1),h=N(``),g=M(()=>String(c()).split(`.`)[1]?.length||0),_=M(()=>typeof o()==`number`&&Number(z(h)||0)<=o()),v=M(()=>typeof s()==`number`&&Number(z(h)||0)>=s());ti(()=>{let e=String(r()??``);B(()=>{z(h)!==e&&P(h,e,!0)})}),ti(()=>{let e=z(h).trim()?Number(z(h)):NaN;r(Number.isNaN(e)?void 0:e)}),ti(()=>{z(m)&&i(f()&&(r()===void 0||z(h)===``)||z(h)!==void 0&&z(h)!==``&&(Number.isNaN(Number(z(h)))||typeof o()==`number`&&Number(z(h)||0)<o()||typeof s()==`number`&&Number(z(h)||0)>s()))});let y=()=>{z(_)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)-c()).toFixed(z(g)),!0)},b=()=>{z(v)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)+c()).toFixed(z(g)),!0)};var x=k$();let S;var C=F(x),w=F(C);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.increaseIcon),U(e,n)},a=e=>{UF(e,{name:`expand_less`})};G(r,e=>{t.increaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(v)),a=M(()=>X(`_sui.number_input.increase`));lI(w,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}var ee=L(w,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.decreaseIcon),U(e,n)},a=e=>{UF(e,{name:`expand_more`})};G(r,e=>{t.decreaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(_)),a=M(()=>X(`_sui.number_input.decrease`));lI(ee,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}D(C);var T=L(C,2);{let e=M(()=>Number(r()||0)),c=M(()=>z(g)>0?`decimal`:`numeric`);_L(T,Zs({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return z(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return z(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),z(m)||P(m,!0)},oninput:()=>{z(m)||P(m,!0)},get onChange(){return t.onChange},get value(){return z(h)},set value(e){P(h,e,!0)}}))}D(x),R(()=>{S=cs(x,1,`sui number-input ${t.class??``}`,`svelte-19zi0d3`,S,{flex:a(),disabled:u(),readonly:d()}),q(x,`hidden`,l())}),U(e,x),k()}var k$,A$,Jle=s((()=>{Q(),Y(),Z(),sc(),gI(),WF(),xL(),k$=V(`<div role="none"><div role="none" class="buttons svelte-19zi0d3"><!> <!></div> <!></div>`),A$={hash:`svelte-19zi0d3`,code:`.number-input.svelte-19zi0d3 {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-19zi0d3:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-19zi0d3 :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-19zi0d3 :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-19zi0d3 :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-19zi0d3 :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-19zi0d3 .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-19zi0d3 {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-19zi0d3 button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-19zi0d3 button:first-of-type {border-block-start-width:1px;border-block-end-width:0;border-inline-end-width:0;border-inline-start-width:1px;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;}.buttons.svelte-19zi0d3 button:last-of-type {border-block-start-width:0;border-block-end-width:1px;border-inline-end-width:0;border-inline-start-width:1px;border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;}.buttons.svelte-19zi0d3 button .icon {font-size:20px;}`}}));function j$(e,t){let n=Ia();O(t,!0),K(e,N$);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`monospace`,3,!0),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),f=N(void 0),p=N(!1);var m=M$();let h;var g=F(m);_L(g,Zs({dir:`ltr`},()=>d,{get id(){return n},spellcheck:`false`,get flex(){return i()},get monospace(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()},get element(){return z(f)},set element(e){P(f,e,!0)},get value(){return r()},set value(e){r(e)}}));var _=L(g,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.visibilityIcon),U(e,n)},a=e=>{{let t=M(()=>z(p)?`visibility_off`:`visibility`);UF(e,{get name(){return z(t)}})}};G(r,e=>{t.visibilityIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>s()||c()),i=M(()=>X(z(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));lI(_,{iconic:!0,get disabled(){return z(r)},get pressed(){return z(p)},get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{P(p,!z(p))},startIcon:e,$$slots:{startIcon:!0}})}D(m),R(()=>{h=cs(m,1,`sui secret-input ${t.class??``}`,`svelte-1r2ein0`,h,{flex:i(),disabled:s(),readonly:c(),show:z(p)}),q(m,`hidden`,o())}),U(e,m),k()}var M$,N$,Yle=s((()=>{Q(),Y(),Z(),gI(),WF(),xL(),M$=V(`<div role="none"><!> <!></div>`),N$={hash:`svelte-1r2ein0`,code:`.secret-input.svelte-1r2ein0 {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-1r2ein0:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-1r2ein0 input {-webkit-text-security:none;}.secret-input.svelte-1r2ein0 .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-1r2ein0 input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-1r2ein0 button {flex:none;margin-block:0;margin-inline-start:-1px;margin-inline-end:0;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.secret-input.svelte-1r2ein0 button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}.secret-input.svelte-1r2ein0 button .icon {font-size:var(--sui-font-size-xx-large);}`}}));function Xle(e,t){O(t,!0),K(e,R$);let n=J(t,`orientation`,3,`horizontal`),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`orientation`,`children`]),i=[`https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Noto+Sans+Mono:wght@100..900&display=swap`,`https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block`],a=N(!1);ac(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.addEventListener(`change`,n);let r=globalThis.setTimeout(()=>{P(a,!0)},1e3);return()=>{e.removeEventListener(`change`,n),globalThis.clearTimeout(r)}});var o=L$();Ko(`1x75kbt`,e=>{var t=F$(),n=I(t);mo(L(n,8),16,()=>i,e=>e,(e,t)=>{var n=P$(),r=I(n),i=L(r,2);R(()=>{q(r,`href`,t),q(i,`href`,t)}),U(e,n)}),R(e=>q(n,`content`,e),[()=>[`width=device-width`,`initial-scale=1`,`maximum-scale=1`,`interactive-widget=resizes-content`].join(`, `)]),U(e,t)});var s=I(o),c=e=>{var t=I$();ds(t,``,{},{opacity:`0`}),U(e,t)};G(s,e=>{z(a)||e(c)});var l=L(s,2),u=e=>e.preventDefault(),d=e=>e.preventDefault(),f=e=>{if(document.documentElement.matches(`[data-env="dev"]`))return;let t=e.target;document.documentElement.matches(`[data-env="dev"]`)||t?.matches(`input, textarea`)&&`maxLength`in t||t?.closest(`[role="textbox"]`)?.contentEditable===`true`||e.preventDefault()};bs(l,()=>({...r,role:`none`,class:`sui app-shell ${n()??``}`,ondragover:u,ondrop:d,oncontextmenu:f}),void 0,void 0,void 0,`svelte-1x75kbt`),Eo(F(l),()=>t.children??E),D(l),U(e,o),k()}var P$,F$,I$,L$,R$,Zle=s((()=>{Q(),Y(),sc(),P$=V(`<link rel="preload" as="style"/> <link rel="stylesheet"/>`,1),F$=V(`<meta name="viewport"/> <meta name="google" content="notranslate"/> <link rel="preconnect" href="https://fonts.googleapis.com"/> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/> <!>`,1),I$=V(`<div class="font-loader svelte-1x75kbt" aria-hidden="true">Loading <strong>Sveltia</strong> <em>UI</em> <span role="none" class="material-symbols-outlined">favorite</span></div>`),L$=V(`<!> <div><!></div>`,1),R$={hash:`svelte-1x75kbt`,code:`:root,
|
|
721
721
|
:host {--sui-base-hue: 210;--sui-highlight-foreground-color: hsl(var(--sui-foreground-color-1-hsl));--sui-primary-foreground-color: hsl(var(--sui-foreground-color-2-hsl));--sui-secondary-foreground-color: hsl(var(--sui-foreground-color-3-hsl));--sui-tertiary-foreground-color: hsl(var(--sui-foreground-color-4-hsl));--sui-disabled-foreground-color: hsl(var(--sui-foreground-color-5-hsl));--sui-error-foreground-color: hsl(
|
|
722
722
|
var(--sui-error-color-hue) var(--sui-alert-foreground-color-saturation)
|
|
723
723
|
var(--sui-alert-foreground-color-lightness)
|
|
@@ -775,7 +775,7 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
|
|
|
775
775
|
@media (prefers-reduced-motion) {*,
|
|
776
776
|
::before,
|
|
777
777
|
::after {scroll-behavior:auto;transition-duration:1ms !important;}
|
|
778
|
-
}::selection {background-color:var(--sui-primary-accent-color-translucent);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-primary-accent-color-translucent);z-index:2;}h1 {margin:var(--sui-h1-margin, var(--sui-heading-margin));font-size:var(--sui-h1-font-size, 32px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 28px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 24px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 20px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 16px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 12px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-1lqki0a a {text-decoration:underline;}:is(p, ul, ol, dl) {margin:var(--sui-paragraph-margin) 0;line-height:var(--sui-line-height-comfortable);}:is(ul, ol) {padding-inline:2em;}:is(code, pre) {border-radius:4px;background-color:var(--sui-code-background-color);font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);vertical-align:-0.05em;}pre {padding:8px;line-height:var(--sui-line-height-compact);-webkit-user-select:text;user-select:text;}code {padding:2px 4px;}table {border-collapse:collapse;}:is(th, td) {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {margin-inline:16px 0;border-inline-start:4px solid var(--sui-textbox-border-color);padding-inline-start:12px;}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;filter:grayscale(1) opacity(0.35);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) * {filter:grayscale(0) opacity(1);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]) * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-1lqki0a {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-1lqki0a {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-1lqki0a {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-1lqki0a {display:flex;flex-direction:column;overflow:hidden;}`}}));function z$(e,t){K(e,V$);let n=J(t,`children`,3,void 0);var r=B$();Eo(F(r),()=>n()??E),D(r),U(e,r)}var B$,V$,Qle=s((()=>{Q(),Y(),B$=V(`<div role="none" class="sui empty-state svelte-sgkofb"><!></div>`),V$={hash:`svelte-sgkofb`,code:`.empty-state.svelte-sgkofb {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`}}));function H$(e,t){K(e,W$);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`children`]);var a=U$();bs(a,()=>({...i,role:`group`,class:`sui group ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r()}),void 0,void 0,void 0,`svelte-xjgcyd`);var o=F(a);Eo(F(o),()=>t.children??E),D(o),D(a),R(()=>o.inert=r()),U(e,a)}var U$,W$,$le=s((()=>{Q(),Y(),U$=V(`<div><div role="none" class="inner svelte-xjgcyd"><!></div></div>`),W$={hash:`svelte-xjgcyd`,code:`.inner.svelte-xjgcyd {display:contents;}`}})),eue=s((()=>{})),G$=s((()=>{gae(),KF(),Nae(),Fae(),TI(),gI(),Lae(),Rae(),zae(),Bae(),Q(),Y(),Z(),fh(),XI(),eL(),WF(),Hae(),Uae(),Wae(),Gae(),mL(),Kae(),iI(),qae(),Jae(),Yae(),Xae(),Qae(),HL(),$ae(),XL(),UI(),cR(),eoe(),oR(),eR(),noe(),ioe(),ooe(),coe(),uoe(),doe(),foe(),LR(),xoe(),zR(),Coe(),woe(),Toe(),Doe(),koe(),joe(),Noe(),Foe(),Mle(),Kle(),Jle(),xL(),jR(),Yle(),v$(),lz(),s$(),QF(),Zle(),Qle(),$le(),eue(),hae()})),K$,q$,J$,Y$,X$,Z$=s((()=>{lS(),Cp(),K$=u(ZM(),1),$O(),q$=(e,t,n,r)=>{let i=QO(t),a={};return e.forEach(e=>{let t=n(e),o=t==null?r:i?String(t).match(i)?.[0]??r:String(t);o in a||(a[o]=[]),a[o].push(e)}),Object.entries(a).sort(([e],[t])=>Sp(e,t))},J$=(e,t,n)=>n?n.test(String(e??``)):e===t,Y$=(e,t,n,r)=>{let i=e.map(e=>({item:e,key:t(e)}));return i.sort(({key:e},{key:t})=>n?Sp(e,t):e-t),r===`descending`&&i.reverse(),e.splice(0,e.length,...i.map(({item:e})=>e)),e},X$=async(e,t,n)=>{let{databaseName:r}=e??{},i=r?new oS(r,`ui-settings`):null,a=await i?.get(t)??{};n.set(a);let o=a;n.subscribe(e=>{(0,K$.default)(e,o)||(o=e,(async()=>{try{await i?.set(t,e)}catch{}})())})}})),Q$,tue=s((()=>{jS(),Z$(),$O(),Q$=(e,{field:t,pattern:n}={field:``,pattern:``})=>{if(!t)return e;if(t===`fileType`)return e.filter(({path:e})=>AS(e)===n);let r=QO(n);return e.filter(e=>{let i=e[t];return J$(i,n,r)})}})),$$,nue=s((()=>{Z(),Z$(),$$=(e,{field:t,pattern:n}={field:``,pattern:void 0})=>{if(!t)return e.length?{"*":e}:{};let r=X(`other`);return Object.fromEntries(q$(e,n,e=>e[t],r))}})),e1,t1,n1,rue=s((()=>{e1=u(ZM(),1),ip(),Up(),m1(),Z$(),t1=un(),n1=async({repository:e})=>{await X$(e,`assets-view`,t1),Lp.subscribe(e=>{let t=A(t1)?.[e?.internalPath??`*`]??structuredClone(u1);(0,e1.default)(t,A(d1))||d1.set(t)}),d1.subscribe(e=>{let t=A(Lp)?.internalPath??`*`;(0,e1.default)(e,A(t1)?.[t]??{})||t1.update(n=>({...n,[t]:e}))})}})),r1,i1,iue=s((()=>{Z$(),r1=(e,t)=>{let{commitAuthor:{name:n,login:r,email:i}={},commitDate:a}=e;return t===`commit_author`?n||r||i:t===`commit_date`?a:t===`name`?e.name.split(`.`)[0]:e[t]??``},i1=(e,{key:t,order:n}={})=>{if(!t||!n)return e;let r=[...e],i={commit_author:String,commit_date:Date}[t]||r[0]?.[t]?.constructor||String;return Y$(r,e=>{let n=r1(e,t);return i===String?n??``:Number(n??0)},i===String,n),r}})),a1,o1,s1,c1,l1,u1,d1,f1,p1,m1=s((()=>{Z(),a1=u(ZM(),1),ip(),EF(),Up(),tue(),nue(),rue(),iue(),jP(),Jb(),Zy(),nN(),o1=un(!1),s1=un(!1),c1=dn([vF],([e],t)=>{t(!!e.files.length)}),l1=({collectionName:e,fileName:t,internalPath:n})=>{if(e===void 0)return X(n===void 0?`all_assets`:`global_assets`);let r=Gb(e),i=r?Kb(r):e;if(!t)return i;let a=r?Ky(r,t):void 0;return`${i} › ${a?qy(a):t}`},u1={type:`grid`,showInfo:!0,sort:{key:`name`,order:`ascending`}},d1=un({type:`grid`,showInfo:!0}),f1=dn([dF,Lp],([e,t],n)=>{e&&t&&t.internalPath!==void 0?n(e.filter(({folder:e})=>(0,a1.default)(e,t))):n(e?[...e]:[])}),p1=dn([f1,d1],([e,t],n)=>{let r=[...e];r=i1(r,t.sort),r=Q$(r,t.filter);let i=$$(r,t.group);(0,a1.default)(A(p1),i)||n(i)}),kP.subscribe(e=>{e&&!A(t1)&&n1(e)}),f1.subscribe(e=>{hF.set([]),A(tN).devModeEnabled&&console.info(`listedAssets`,e)})})),h1,g1=s((()=>{h1=e=>e?window.open(e,`_blank`,`noopener,noreferrer`):null})),_1,v1,y1,b1,x1,S1,C1,w1,T1,E1,D1=s((()=>{Xx(),sc(),ip(),m1(),iF(),HF(),g1(),_1=dn([PF,o1],([e,t])=>e||t),v1=un(``),y1=un(``),b1=(e=window.location.href)=>{let{origin:t,hash:n}=new URL(e),{pathname:r,searchParams:i}=new URL(`${t}${n.substring(1)}`);return{path:decodeURIComponent(r),params:Object.fromEntries([...new Set(i.keys())].map(e=>[e,i.getAll(e).join(`,`)]))}},x1=null,S1=(e,t)=>{if(!document.startViewTransition||x1){t();return}let n={types:[e],update:async()=>{t(),await Yx(50),await new Promise(e=>{Tn(()=>{e(void 0)})})}};try{x1=document.startViewTransition(n),x1.finished.finally(()=>{x1=null})}catch{t()}},C1=(e,t,n)=>{let{isTrusted:r,oldURL:i,newURL:a}=e;if(!r){t();return}let o=b1(i).path,s=b1(a).path,c=n.test(o)&&n.test(s),l=o.split(`/`).length,u=s.split(`/`).length;S1(c&&l>u?`backwards`:c&&l<u?`forwards`:`unknown`,()=>t())},w1=async(e,{state:t={},replaceState:n=!1,notifyChange:r=!0,transitionType:i=`unknown`}={})=>{let{path:a}=b1();if(a===e&&!Object.keys(t).length&&!n)return;let{origin:o,pathname:s,hash:c}=window.location,l=`${o}${s}${c}`,u=`${o}${s}#${e}`,d=[{...t,from:l},``,u];n?window.history.replaceState(...d):window.history.pushState(...d),r&&S1(i,()=>{window.dispatchEvent(new HashChangeEvent(`hashchange`,{oldURL:l,newURL:u}))})},T1=(e,t={})=>{let n=`backwards`;window.history.state?.from?S1(n,()=>{window.history.back()}):w1(e,{...t,transitionType:n})},E1=()=>{let{display_url:e,_siteURL:t}=A($P);h1(e||t||`/`)}})),O1,k1,A1,j1,M1,N1,P1,F1,I1,L1,R1,z1,B1,V1=s((()=>{Z(),p(),lS(),ip(),D1(),jP(),iF(),Uy(),qj(),nN(),O1=un({message:``,context:`authentication`}),k1=un(!0),A1=un(!1),j1=async()=>{await cS.set(`sveltia-cms.user`,{}),Kj.set(void 0),k1.set(!0)},M1=async e=>{(typeof e?.cause?.status==`number`||e?.message===`Not a collaborator of the repository`)&&await j1()},N1=()=>{O1.set({message:``,context:`authentication`})},P1=(e,t=`authentication`)=>{let n=e.cause?.message||X(`unexpected_error`);e.name===`NotFoundError`&&(n=X(`sign_in_error.not_project_root`)),e.name===`AbortError`&&(n=X(A(OP)===`local`?`sign_in_error.picker_dismissed`:`sign_in_error.authentication_aborted`)),O1.set({message:n,context:t}),console.error(e.name,e.message,e.cause)},F1=()=>{let{path:e}=b1(),{encodedData:t}=e.match(/^\/signin\/(?<encodedData>.+)/)?.groups??{};if(!t)return{_user:void 0,copiedPrefs:void 0};w1(``,{replaceState:!0});let n,r;try{let e=JSON.parse(atob(t));d(e)&&typeof e.token==`string`&&(n={token:e.token},d(e.prefs)&&(r=e.prefs))}catch{}return{_user:n,copiedPrefs:r}},I1=async()=>{let e=await cS.get(`sveltia-cms.user`)||await cS.get(`decap-cms-user`)||await cS.get(`netlify-cms-user`);if(d(e)&&typeof e.backendName==`string`)return e},L1=e=>{let t=e?.backendName===`local`||e?.backendName===`proxy`?`local`:A($P).backend.name;return OP.set(t),A(kP)},R1=async()=>{N1();let e,t;if({_user:e,copiedPrefs:t}=F1(),e??=await I1(),!e)return;let n=L1(e);if(e&&n){Kj.set(e);let{token:t,refreshToken:r}=e;A1.set(!0);try{e=await n.signIn({token:t,refreshToken:r,auto:!0})}catch{e=void 0,Kj.set(void 0)}}if(A1.set(!1),k1.set(!e),!(!e||!n)){Kj.set(e),t&&tN.update(e=>({...e,...t}));try{await n.fetchFiles()}catch(e){[401,403,404].includes(e.cause?.status)?k1.set(!0):P1(e,`dataFetch`),await M1(e)}}},z1=async(e,t)=>{N1(),OP.set(e);let n=A(kP);if(!n)return;let r;A1.set(!0);try{r=await n.signIn({token:t,auto:!1})}catch(e){A1.set(!1),k1.set(!0),t&&e.cause?.status===401?P1(Error(`Invalid token`,{cause:{message:X(`sign_in_error.invalid_token`)}})):P1(e);return}if(A1.set(!1),k1.set(!r),r){Kj.set(r);try{await n.fetchFiles()}catch(e){P1(e,`dataFetch`),await M1(e)}}},B1=async()=>{await A(kP)?.signOut(),await j1(),OP.set(void 0),Fy.set(!1);let e=A($P)?.logout_redirect_url;e&&(window.location.href=e)}}));function H1(e,t){O(t,!0),K(e,Z1);let n=()=>j($P,`$cmsConfig`,c),r=()=>j(LA,`$isLocalHost`,c),i=()=>j(O1,`$signInError`,c),a=()=>j(A1,`$signingIn`,c),o=()=>j(RA,`$isLocalBackendSupported`,c),s=()=>j(zA,`$isBrave`,c),[c,l]=hn(),u=N(!1),d=N(``),f=M(()=>n()?.backend),p=M(()=>z(f).name),m=M(()=>z(p)?wP[z(p)]:null),h=M(()=>z(p)===`test-repo`),g=M(()=>z(h)?void 0:z(f)?.repo?.split(`/`).pop()),_=M(()=>r()&&!z(h)),v=M(()=>!z(h)&&z(f).allow_token_auth===!1),y=M(()=>z(p)===`gitea`&&z(f).base_url===`https://codeberg.org`?`Codeberg`:z(m)?.label),b=M(()=>z(p)===`gitea`&&!z(f).app_id);ac(()=>{i().message||R1()});var x=X1(),S=I(x),C=F(S),w=e=>{var t=U1(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`signing_in`)]),U(e,t)},ee=e=>{var t=q1(),n=I(t),r=e=>{var t=K1(),n=I(t);{let e=M(()=>X(`work_with_local_repo`)),t=M(()=>!o());lI(n,{variant:`primary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{await z1(`local`)}})}var r=L(n,2),a=e=>{var t=W1(),n=F(t),r=e=>{var t=H();So(I(t),()=>Kk(X(`local_workflow.disabled`),`https://sveltiacms.app/en/docs/workflows/local#enabling-file-system-access-api-in-brave`)),U(e,t)},i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`local_workflow.unsupported_browser`)]),U(e,t)};G(n,e=>{s()?e(r):e(i,-1)}),D(t),U(e,t)},c=e=>{var t=G1(),n=F(t),r=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`work_with_local_repo_description`,{values:{repo:z(g)}})]),U(e,t)},i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`work_with_local_repo_description_no_repo`)]),U(e,t)};G(n,e=>{z(g)?e(r):e(i,-1)}),D(t),U(e,t)};G(r,e=>{o()?i().message||e(c,1):e(a)}),ZI(L(r,2),{}),U(e,t)};G(n,e=>{z(_)&&e(r)});var a=L(n,2);{let e=M(()=>z(_)?`secondary`:`primary`),t=M(()=>z(h)?X(`work_with_test_repo`):X(`sign_in_with_x`,{values:{service:z(y)}}));lI(a,{get variant(){return z(e)},get label(){return z(t)},get disabled(){return z(b)},onclick:async()=>{await z1(z(p))}})}var c=L(a,2),l=e=>{{let t=M(()=>X(`sign_in_using_access_token`,{values:{service:z(y)}}));lI(e,{variant:`secondary`,get label(){return z(t)},get disabled(){return z(v)},onclick:()=>{P(u,!0)}})}};G(c,e=>{z(h)||e(l)}),U(e,t)};G(C,e=>{a()?e(w):z(m)&&e(ee,1)});var T=L(C,2),te=e=>{var t=J1(),n=F(t);UF(n,{name:`error`});var r=L(n);D(t),R(()=>W(r,` ${i().message??``}`)),U(e,t)};G(T,e=>{i().message&&i().context===`authentication`&&e(te)}),D(S);var ne=L(S,2);{let e=M(()=>X(`sign_in_using_access_token`)),t=M(()=>({spellcheck:!1,"aria-label":X(`personal_access_token`)})),n=M(()=>X(`sign_in`)),r=M(()=>!z(d).trim());SL(ne,{get title(){return z(e)},get textboxAttrs(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:async()=>{await z1(z(p),z(d).trim())},get open(){return z(u)},set open(e){P(u,e,!0)},get value(){return z(d)},set value(e){P(d,e,!0)},children:(e,t)=>{_t();var n=Y1(),r=I(n),i=L(r),a=e=>{var t=H();So(I(t),()=>Kk(X(`sign_in_using_access_token_link`,{values:{service:z(y)}}),z(m).repository.tokenPageURL)),U(e,t)};G(i,e=>{z(m)?.repository?.tokenPageURL&&e(a)}),R(e=>W(r,`${e??``} `),[()=>X(`sign_in_using_access_token_description`)]),U(e,n)},$$slots:{default:!0}})}U(e,x),k(),l()}var U1,W1,G1,K1,q1,J1,Y1,X1,Z1,aue=s((()=>{Q(),Y(),Z(),G$(),sc(),jP(),iF(),V1(),KA(),qk(),U1=V(`<div role="alert" class="message"> </div>`),W1=V(`<div role="alert"><!></div>`),G1=V(`<div role="none"><!></div>`),K1=V(`<!> <!> <!>`,1),q1=V(`<!> <!> <!>`,1),J1=V(`<div role="alert" class="error iconic svelte-1ff54ya"><!> </div>`),Y1=V(` <!>`,1),X1=V(`<div role="none" class="buttons svelte-1ff54ya"><!> <!></div> <!>`,1),Z1={hash:`svelte-1ff54ya`,code:`.buttons.svelte-1ff54ya {display:flex;flex-direction:column;align-items:center;gap:12px;}.buttons.svelte-1ff54ya .button {width:320px;}[role=alert].iconic.svelte-1ff54ya {display:flex;align-items:center;gap:8px;}[role=alert].error.svelte-1ff54ya {color:var(--sui-error-foreground-color);}`}})),Q1,oue=s((()=>{Q1=`<svg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="400" x2="400" y1="0" y2="800"><stop offset="0" stop-color="#f0980b"/><stop offset="1" stop-color="#ff1d00"/></linearGradient><clipPath id="b"><rect height="800" rx="80" width="800"/></clipPath><rect fill="url(#a)" height="800" rx="80" width="800"/><g style="clip-path:url(#b);fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:180"><path d="m320-80-200 320 200 320-200 320"/><path d="m400 240 200 320 200-320"/></g></svg>`})),$1,e0,t0,n0,r0,i0=s((()=>{xS(),ip(),oue(),iF(),$1=`Sveltia CMS`,e0=`data:image/svg+xml;base64,${btoa(Q1)}`,t0=dn([$P],([e])=>e?.app_title||`Sveltia CMS`),n0=dn([$P],([e])=>e?.logo?.src||e?.logo_url||e0),r0=dn(n0,e=>{let t=e.match(/^data:(image\/[a-zA-Z0-9.+-]+);base64,/);return t?t[1]:bS.getType(e)??void 0})}));function sue(e,t){O(t,!0),K(e,g0);let n=()=>j(nF,`$cmsConfigLoaded`,h),r=()=>j(t0,`$appTitle`,h),i=()=>j(n0,`$appLogoURL`,h),a=()=>j(tF,`$cmsConfigErrors`,h),o=()=>j(eN,`$prefsError`,h),s=()=>j($P,`$cmsConfig`,h),c=()=>j(tN,`$prefs`,h),l=()=>j(O1,`$signInError`,h),u=()=>j(iM,`$inAuthPopup`,h),d=()=>j(Kj,`$user`,h),f=()=>j(k1,`$unauthenticated`,h),p=()=>j(Fy,`$dataLoaded`,h),m=()=>j(Iy,`$dataLoadedProgress`,h),[h,g]=hn();ti(()=>{n()&&mn(y1,X(`welcome_message`,{values:{name:r()}}))});var _=h0(),v=I(_),y=F(v),b=F(y),x=e=>{var t=o0(),n=I(t),a=L(n,2),o=F(a,!0);D(a),R(()=>{q(n,`src`,i()),W(o,r())}),U(e,t)};G(b,e=>{n()&&e(x)});var S=L(b,2),C=e=>{var t=c0(),n=F(t),r=F(n,!0);D(n);var i=L(n,2);mo(i,5,a,e=>e,(e,t)=>{var n=s0();a0(F(n),()=>z(t)),D(n),U(e,n)}),D(i),D(t),R(e=>W(r,e),[()=>X(`config.errors`,{values:{count:a().length}})]),U(e,t)},w=e=>{var t=l0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`prefs.error.${o().type}`)]),U(e,t)},ee=e=>{var t=u0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`loading_cms_config`)]),U(e,t)},T=e=>{var t=d0(),n=I(t),r=F(n),i=F(r,!0);D(r);var a=L(r,2);a0(F(a),()=>l().message),D(a),D(n),H1(L(n,2),{}),R(e=>W(i,e),[()=>X(`loading_site_data_error`)]),U(e,t)},te=e=>{var t=f0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`authorizing`)]),U(e,t)},ne=e=>{H1(e,{})},re=e=>{var t=p0(),n=I(t),r=F(n,!0);D(n);var i=L(n,2),a=e=>{toe(e,{get now(){return m()}})};G(i,e=>{m()!==void 0&&e(a)}),R(e=>W(r,e),[()=>X(`loading_site_data`)]),U(e,t)};G(S,e=>{a().length?e(C):o()?e(w,1):!s()||!c()?e(ee,2):l().message&&l().context===`dataFetch`?e(T,3):u()?e(te,4):!d()||f()?e(ne,5):p()||e(re,6)}),D(y),D(v);var ie=L(v,2),ae=e=>{var t=m0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`powered_by`,{values:{name:$1}})]),U(e,t)};G(ie,e=>{n()&&r()!==`Sveltia CMS`&&e(ae)}),U(e,_),k(),g()}var a0,o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,cue=s((()=>{Q(),Y(),Z(),G$(),ME(),dO(),aue(),i0(),D1(),hM(),iF(),Uy(),qj(),V1(),nN(),a0=(e,t=E)=>{var n=H();So(I(n),()=>jE(HE.parseInline(t()),{ALLOWED_TAGS:[`a`,`code`],ALLOWED_ATTR:[`href`]})),U(e,n)},o0=V(`<img alt="" class="logo svelte-7ua6x9"/> <h1 class="svelte-7ua6x9"> </h1>`,1),s0=V(`<li><!></li>`),c0=V(`<div role="alert" class="message"><div role="none"> </div> <ul class="error svelte-7ua6x9"></ul></div>`),l0=V(`<div role="alert" class="message"> </div>`),u0=V(`<div role="alert" class="message"> </div>`),d0=V(`<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-7ua6x9"><!></div></div> <!>`,1),f0=V(`<div role="alert" class="message"> </div>`),p0=V(`<div role="alert" class="message"> </div> <!>`,1),m0=V(`<div role="none" class="powered-by svelte-7ua6x9"> </div>`),h0=V(`<div role="none" class="container svelte-7ua6x9"><div role="none" class="inner svelte-7ua6x9"><!> <!></div></div> <!>`,1),g0={hash:`svelte-7ua6x9`,code:`.container.svelte-7ua6x9 {position:absolute;inset:0;z-index:101;flex:auto;display:flex;justify-content:center;align-items:center;gap:16px;padding:32px;}.container.svelte-7ua6x9 .inner:where(.svelte-7ua6x9) {display:flex;flex-direction:column;align-items:center;gap:32px;min-width:240px;max-width:800px;min-height:240px;}.container.svelte-7ua6x9 .logo:where(.svelte-7ua6x9) {width:auto;height:160px;}
|
|
778
|
+
}::selection {background-color:var(--sui-primary-accent-color-translucent);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-primary-accent-color-translucent);z-index:2;}h1 {margin:var(--sui-h1-margin, var(--sui-heading-margin));font-size:var(--sui-h1-font-size, 32px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 28px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 24px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 20px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 16px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 12px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-1x75kbt a {text-decoration:underline;}:is(p, ul, ol, dl) {margin:var(--sui-paragraph-margin) 0;line-height:var(--sui-line-height-comfortable);}:is(ul, ol) {padding-inline:2em;}:is(code, pre) {border-radius:4px;background-color:var(--sui-code-background-color);font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);vertical-align:-0.05em;}pre {padding:8px;line-height:var(--sui-line-height-compact);-webkit-user-select:text;user-select:text;}code {padding:2px 4px;}table {border-collapse:collapse;}:is(th, td) {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {margin-inline:16px 0;border-inline-start:4px solid var(--sui-textbox-border-color);padding-inline-start:12px;}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;filter:grayscale(1) opacity(0.35);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) * {filter:grayscale(0) opacity(1);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]) * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-1x75kbt {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-1x75kbt {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-1x75kbt {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-1x75kbt {display:flex;flex-direction:column;overflow:hidden;}`}}));function z$(e,t){K(e,V$);let n=J(t,`children`,3,void 0);var r=B$();Eo(F(r),()=>n()??E),D(r),U(e,r)}var B$,V$,Qle=s((()=>{Q(),Y(),B$=V(`<div role="none" class="sui empty-state svelte-2l71wc"><!></div>`),V$={hash:`svelte-2l71wc`,code:`.empty-state.svelte-2l71wc {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`}}));function H$(e,t){K(e,W$);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`children`]);var a=U$();bs(a,()=>({...i,role:`group`,class:`sui group ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r()}),void 0,void 0,void 0,`svelte-u0t3xi`);var o=F(a);Eo(F(o),()=>t.children??E),D(o),D(a),R(()=>o.inert=r()),U(e,a)}var U$,W$,$le=s((()=>{Q(),Y(),U$=V(`<div><div role="none" class="inner svelte-u0t3xi"><!></div></div>`),W$={hash:`svelte-u0t3xi`,code:`.inner.svelte-u0t3xi {display:contents;}`}})),eue=s((()=>{})),G$=s((()=>{gae(),KF(),Nae(),Fae(),TI(),gI(),Lae(),Rae(),zae(),Bae(),Q(),Y(),Z(),fh(),XI(),eL(),WF(),Hae(),Uae(),Wae(),Gae(),mL(),Kae(),iI(),qae(),Jae(),Yae(),Xae(),Qae(),HL(),$ae(),XL(),UI(),cR(),eoe(),oR(),eR(),noe(),ioe(),ooe(),coe(),uoe(),doe(),foe(),LR(),xoe(),zR(),Coe(),woe(),Toe(),Doe(),koe(),joe(),Noe(),Foe(),Mle(),Kle(),Jle(),xL(),jR(),Yle(),v$(),lz(),s$(),QF(),Zle(),Qle(),$le(),eue(),hae()})),K$,q$,J$,Y$,X$,Z$=s((()=>{lS(),Cp(),K$=u(ZM(),1),$O(),q$=(e,t,n,r)=>{let i=QO(t),a={};return e.forEach(e=>{let t=n(e),o=t==null?r:i?String(t).match(i)?.[0]??r:String(t);o in a||(a[o]=[]),a[o].push(e)}),Object.entries(a).sort(([e],[t])=>Sp(e,t))},J$=(e,t,n)=>n?n.test(String(e??``)):e===t,Y$=(e,t,n,r)=>{let i=e.map(e=>({item:e,key:t(e)}));return i.sort(({key:e},{key:t})=>n?Sp(e,t):e-t),r===`descending`&&i.reverse(),e.splice(0,e.length,...i.map(({item:e})=>e)),e},X$=async(e,t,n)=>{let{databaseName:r}=e??{},i=r?new oS(r,`ui-settings`):null,a=await i?.get(t)??{};n.set(a);let o=a;n.subscribe(e=>{(0,K$.default)(e,o)||(o=e,(async()=>{try{await i?.set(t,e)}catch{}})())})}})),Q$,tue=s((()=>{jS(),Z$(),$O(),Q$=(e,{field:t,pattern:n}={field:``,pattern:``})=>{if(!t)return e;if(t===`fileType`)return e.filter(({path:e})=>AS(e)===n);let r=QO(n);return e.filter(e=>{let i=e[t];return J$(i,n,r)})}})),$$,nue=s((()=>{Z(),Z$(),$$=(e,{field:t,pattern:n}={field:``,pattern:void 0})=>{if(!t)return e.length?{"*":e}:{};let r=X(`other`);return Object.fromEntries(q$(e,n,e=>e[t],r))}})),e1,t1,n1,rue=s((()=>{e1=u(ZM(),1),ip(),Up(),m1(),Z$(),t1=un(),n1=async({repository:e})=>{await X$(e,`assets-view`,t1),Lp.subscribe(e=>{let t=A(t1)?.[e?.internalPath??`*`]??structuredClone(u1);(0,e1.default)(t,A(d1))||d1.set(t)}),d1.subscribe(e=>{let t=A(Lp)?.internalPath??`*`;(0,e1.default)(e,A(t1)?.[t]??{})||t1.update(n=>({...n,[t]:e}))})}})),r1,i1,iue=s((()=>{Z$(),r1=(e,t)=>{let{commitAuthor:{name:n,login:r,email:i}={},commitDate:a}=e;return t===`commit_author`?n||r||i:t===`commit_date`?a:t===`name`?e.name.split(`.`)[0]:e[t]??``},i1=(e,{key:t,order:n}={})=>{if(!t||!n)return e;let r=[...e],i={commit_author:String,commit_date:Date}[t]||r[0]?.[t]?.constructor||String;return Y$(r,e=>{let n=r1(e,t);return i===String?n??``:Number(n??0)},i===String,n),r}})),a1,o1,s1,c1,l1,u1,d1,f1,p1,m1=s((()=>{Z(),a1=u(ZM(),1),ip(),EF(),Up(),tue(),nue(),rue(),iue(),jP(),Jb(),Zy(),nN(),o1=un(!1),s1=un(!1),c1=dn([vF],([e],t)=>{t(!!e.files.length)}),l1=({collectionName:e,fileName:t,internalPath:n})=>{if(e===void 0)return X(n===void 0?`all_assets`:`global_assets`);let r=Gb(e),i=r?Kb(r):e;if(!t)return i;let a=r?Ky(r,t):void 0;return`${i} › ${a?qy(a):t}`},u1={type:`grid`,showInfo:!0,sort:{key:`name`,order:`ascending`}},d1=un({type:`grid`,showInfo:!0}),f1=dn([dF,Lp],([e,t],n)=>{e&&t&&t.internalPath!==void 0?n(e.filter(({folder:e})=>(0,a1.default)(e,t))):n(e?[...e]:[])}),p1=dn([f1,d1],([e,t],n)=>{let r=[...e];r=i1(r,t.sort),r=Q$(r,t.filter);let i=$$(r,t.group);(0,a1.default)(A(p1),i)||n(i)}),kP.subscribe(e=>{e&&!A(t1)&&n1(e)}),f1.subscribe(e=>{hF.set([]),A(tN).devModeEnabled&&console.info(`listedAssets`,e)})})),h1,g1=s((()=>{h1=e=>e?window.open(e,`_blank`,`noopener,noreferrer`):null})),_1,v1,y1,b1,x1,S1,C1,w1,T1,E1,D1=s((()=>{Xx(),sc(),ip(),m1(),iF(),HF(),g1(),_1=dn([PF,o1],([e,t])=>e||t),v1=un(``),y1=un(``),b1=(e=window.location.href)=>{let{origin:t,hash:n}=new URL(e),{pathname:r,searchParams:i}=new URL(`${t}${n.substring(1)}`);return{path:decodeURIComponent(r),params:Object.fromEntries([...new Set(i.keys())].map(e=>[e,i.getAll(e).join(`,`)]))}},x1=null,S1=(e,t)=>{if(!document.startViewTransition||x1){t();return}let n={types:[e],update:async()=>{t(),await Yx(50),await new Promise(e=>{Tn(()=>{e(void 0)})})}};try{x1=document.startViewTransition(n),x1.finished.finally(()=>{x1=null})}catch{t()}},C1=(e,t,n)=>{let{isTrusted:r,oldURL:i,newURL:a}=e;if(!r){t();return}let o=b1(i).path,s=b1(a).path,c=n.test(o)&&n.test(s),l=o.split(`/`).length,u=s.split(`/`).length;S1(c&&l>u?`backwards`:c&&l<u?`forwards`:`unknown`,()=>t())},w1=async(e,{state:t={},replaceState:n=!1,notifyChange:r=!0,transitionType:i=`unknown`}={})=>{let{path:a}=b1();if(a===e&&!Object.keys(t).length&&!n)return;let{origin:o,pathname:s,hash:c}=window.location,l=`${o}${s}${c}`,u=`${o}${s}#${e}`,d=[{...t,from:l},``,u];n?window.history.replaceState(...d):window.history.pushState(...d),r&&S1(i,()=>{window.dispatchEvent(new HashChangeEvent(`hashchange`,{oldURL:l,newURL:u}))})},T1=(e,t={})=>{let n=`backwards`;window.history.state?.from?S1(n,()=>{window.history.back()}):w1(e,{...t,transitionType:n})},E1=()=>{let{display_url:e,_siteURL:t}=A($P);h1(e||t||`/`)}})),O1,k1,A1,j1,M1,N1,P1,F1,I1,L1,R1,z1,B1,V1=s((()=>{Z(),p(),lS(),ip(),D1(),jP(),iF(),Uy(),qj(),nN(),O1=un({message:``,context:`authentication`}),k1=un(!0),A1=un(!1),j1=async()=>{await cS.set(`sveltia-cms.user`,{}),Kj.set(void 0),k1.set(!0)},M1=async e=>{(typeof e?.cause?.status==`number`||e?.message===`Not a collaborator of the repository`)&&await j1()},N1=()=>{O1.set({message:``,context:`authentication`})},P1=(e,t=`authentication`)=>{let n=e.cause?.message||X(`unexpected_error`);e.name===`NotFoundError`&&(n=X(`sign_in_error.not_project_root`)),e.name===`AbortError`&&(n=X(A(OP)===`local`?`sign_in_error.picker_dismissed`:`sign_in_error.authentication_aborted`)),O1.set({message:n,context:t}),console.error(e.name,e.message,e.cause)},F1=()=>{let{path:e}=b1(),{encodedData:t}=e.match(/^\/signin\/(?<encodedData>.+)/)?.groups??{};if(!t)return{_user:void 0,copiedPrefs:void 0};w1(``,{replaceState:!0});let n,r;try{let e=JSON.parse(atob(t));d(e)&&typeof e.token==`string`&&(n={token:e.token},d(e.prefs)&&(r=e.prefs))}catch{}return{_user:n,copiedPrefs:r}},I1=async()=>{let e=await cS.get(`sveltia-cms.user`)||await cS.get(`decap-cms-user`)||await cS.get(`netlify-cms-user`);if(d(e)&&typeof e.backendName==`string`)return e},L1=e=>{let t=e?.backendName===`local`||e?.backendName===`proxy`?`local`:A($P).backend.name;return OP.set(t),A(kP)},R1=async()=>{N1();let e,t;if({_user:e,copiedPrefs:t}=F1(),e??=await I1(),!e)return;let n=L1(e);if(e&&n){Kj.set(e);let{token:t,refreshToken:r}=e;A1.set(!0);try{e=await n.signIn({token:t,refreshToken:r,auto:!0})}catch{e=void 0,Kj.set(void 0)}}if(A1.set(!1),k1.set(!e),!(!e||!n)){Kj.set(e),t&&tN.update(e=>({...e,...t}));try{await n.fetchFiles()}catch(e){[401,403,404].includes(e.cause?.status)?k1.set(!0):P1(e,`dataFetch`),await M1(e)}}},z1=async(e,t)=>{N1(),OP.set(e);let n=A(kP);if(!n)return;let r;A1.set(!0);try{r=await n.signIn({token:t,auto:!1})}catch(e){A1.set(!1),k1.set(!0),t&&e.cause?.status===401?P1(Error(`Invalid token`,{cause:{message:X(`sign_in_error.invalid_token`)}})):P1(e);return}if(A1.set(!1),k1.set(!r),r){Kj.set(r);try{await n.fetchFiles()}catch(e){P1(e,`dataFetch`),await M1(e)}}},B1=async()=>{await A(kP)?.signOut(),await j1(),OP.set(void 0),Fy.set(!1);let e=A($P)?.logout_redirect_url;e&&(window.location.href=e)}}));function H1(e,t){O(t,!0),K(e,Z1);let n=()=>j($P,`$cmsConfig`,c),r=()=>j(LA,`$isLocalHost`,c),i=()=>j(O1,`$signInError`,c),a=()=>j(A1,`$signingIn`,c),o=()=>j(RA,`$isLocalBackendSupported`,c),s=()=>j(zA,`$isBrave`,c),[c,l]=hn(),u=N(!1),d=N(``),f=M(()=>n()?.backend),p=M(()=>z(f).name),m=M(()=>z(p)?wP[z(p)]:null),h=M(()=>z(p)===`test-repo`),g=M(()=>z(h)?void 0:z(f)?.repo?.split(`/`).pop()),_=M(()=>r()&&!z(h)),v=M(()=>!z(h)&&z(f).auth_methods?.includes(`token`)===!1),y=M(()=>z(p)===`gitea`&&z(f).base_url===`https://codeberg.org`?`Codeberg`:z(m)?.label),b=M(()=>!z(h)&&z(f).auth_methods?.includes(`oauth`)===!1||z(p)===`gitea`&&!z(f).app_id);ac(()=>{i().message||R1()});var x=X1(),S=I(x),C=F(S),w=e=>{var t=U1(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`signing_in`)]),U(e,t)},ee=e=>{var t=q1(),n=I(t),r=e=>{var t=K1(),n=I(t);{let e=M(()=>X(`work_with_local_repo`)),t=M(()=>!o());lI(n,{variant:`primary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{await z1(`local`)}})}var r=L(n,2),a=e=>{var t=W1(),n=F(t),r=e=>{var t=H();So(I(t),()=>Kk(X(`local_workflow.disabled`),`https://sveltiacms.app/en/docs/workflows/local#enabling-file-system-access-api-in-brave`)),U(e,t)},i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`local_workflow.unsupported_browser`)]),U(e,t)};G(n,e=>{s()?e(r):e(i,-1)}),D(t),U(e,t)},c=e=>{var t=G1(),n=F(t),r=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`work_with_local_repo_description`,{values:{repo:z(g)}})]),U(e,t)},i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`work_with_local_repo_description_no_repo`)]),U(e,t)};G(n,e=>{z(g)?e(r):e(i,-1)}),D(t),U(e,t)};G(r,e=>{o()?i().message||e(c,1):e(a)}),ZI(L(r,2),{}),U(e,t)};G(n,e=>{z(_)&&e(r)});var a=L(n,2);{let e=M(()=>z(_)?`secondary`:`primary`),t=M(()=>z(h)?X(`work_with_test_repo`):X(`sign_in_with_x`,{values:{service:z(y)}}));lI(a,{get variant(){return z(e)},get label(){return z(t)},get disabled(){return z(b)},onclick:async()=>{await z1(z(p))}})}var c=L(a,2),l=e=>{{let t=M(()=>X(`sign_in_using_access_token`,{values:{service:z(y)}}));lI(e,{variant:`secondary`,get label(){return z(t)},get disabled(){return z(v)},onclick:()=>{P(u,!0)}})}};G(c,e=>{z(h)||e(l)}),U(e,t)};G(C,e=>{a()?e(w):z(m)&&e(ee,1)});var T=L(C,2),te=e=>{var t=J1(),n=F(t);UF(n,{name:`error`});var r=L(n);D(t),R(()=>W(r,` ${i().message??``}`)),U(e,t)};G(T,e=>{i().message&&i().context===`authentication`&&e(te)}),D(S);var ne=L(S,2);{let e=M(()=>X(`sign_in_using_access_token`)),t=M(()=>({spellcheck:!1,"aria-label":X(`personal_access_token`)})),n=M(()=>X(`sign_in`)),r=M(()=>!z(d).trim());SL(ne,{get title(){return z(e)},get textboxAttrs(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:async()=>{await z1(z(p),z(d).trim())},get open(){return z(u)},set open(e){P(u,e,!0)},get value(){return z(d)},set value(e){P(d,e,!0)},children:(e,t)=>{_t();var n=Y1(),r=I(n),i=L(r),a=e=>{var t=H();So(I(t),()=>Kk(X(`sign_in_using_access_token_link`,{values:{service:z(y)}}),z(m).repository.tokenPageURL)),U(e,t)};G(i,e=>{z(m)?.repository?.tokenPageURL&&e(a)}),R(e=>W(r,`${e??``} `),[()=>X(`sign_in_using_access_token_description`)]),U(e,n)},$$slots:{default:!0}})}U(e,x),k(),l()}var U1,W1,G1,K1,q1,J1,Y1,X1,Z1,aue=s((()=>{Q(),Y(),Z(),G$(),sc(),jP(),iF(),V1(),KA(),qk(),U1=V(`<div role="alert" class="message"> </div>`),W1=V(`<div role="alert"><!></div>`),G1=V(`<div role="none"><!></div>`),K1=V(`<!> <!> <!>`,1),q1=V(`<!> <!> <!>`,1),J1=V(`<div role="alert" class="error iconic svelte-1ff54ya"><!> </div>`),Y1=V(` <!>`,1),X1=V(`<div role="none" class="buttons svelte-1ff54ya"><!> <!></div> <!>`,1),Z1={hash:`svelte-1ff54ya`,code:`.buttons.svelte-1ff54ya {display:flex;flex-direction:column;align-items:center;gap:12px;}.buttons.svelte-1ff54ya .button {width:320px;}[role=alert].iconic.svelte-1ff54ya {display:flex;align-items:center;gap:8px;}[role=alert].error.svelte-1ff54ya {color:var(--sui-error-foreground-color);}`}})),Q1,oue=s((()=>{Q1=`<svg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="400" x2="400" y1="0" y2="800"><stop offset="0" stop-color="#f0980b"/><stop offset="1" stop-color="#ff1d00"/></linearGradient><clipPath id="b"><rect height="800" rx="80" width="800"/></clipPath><rect fill="url(#a)" height="800" rx="80" width="800"/><g style="clip-path:url(#b);fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:180"><path d="m320-80-200 320 200 320-200 320"/><path d="m400 240 200 320 200-320"/></g></svg>`})),$1,e0,t0,n0,r0,i0=s((()=>{xS(),ip(),oue(),iF(),$1=`Sveltia CMS`,e0=`data:image/svg+xml;base64,${btoa(Q1)}`,t0=dn([$P],([e])=>e?.app_title||`Sveltia CMS`),n0=dn([$P],([e])=>e?.logo?.src||e?.logo_url||e0),r0=dn(n0,e=>{let t=e.match(/^data:(image\/[a-zA-Z0-9.+-]+);base64,/);return t?t[1]:bS.getType(e)??void 0})}));function sue(e,t){O(t,!0),K(e,g0);let n=()=>j(nF,`$cmsConfigLoaded`,h),r=()=>j(t0,`$appTitle`,h),i=()=>j(n0,`$appLogoURL`,h),a=()=>j(tF,`$cmsConfigErrors`,h),o=()=>j(eN,`$prefsError`,h),s=()=>j($P,`$cmsConfig`,h),c=()=>j(tN,`$prefs`,h),l=()=>j(O1,`$signInError`,h),u=()=>j(iM,`$inAuthPopup`,h),d=()=>j(Kj,`$user`,h),f=()=>j(k1,`$unauthenticated`,h),p=()=>j(Fy,`$dataLoaded`,h),m=()=>j(Iy,`$dataLoadedProgress`,h),[h,g]=hn();ti(()=>{n()&&mn(y1,X(`welcome_message`,{values:{name:r()}}))});var _=h0(),v=I(_),y=F(v),b=F(y),x=e=>{var t=o0(),n=I(t),a=L(n,2),o=F(a,!0);D(a),R(()=>{q(n,`src`,i()),W(o,r())}),U(e,t)};G(b,e=>{n()&&e(x)});var S=L(b,2),C=e=>{var t=c0(),n=F(t),r=F(n,!0);D(n);var i=L(n,2);mo(i,5,a,e=>e,(e,t)=>{var n=s0();a0(F(n),()=>z(t)),D(n),U(e,n)}),D(i),D(t),R(e=>W(r,e),[()=>X(`config.errors`,{values:{count:a().length}})]),U(e,t)},w=e=>{var t=l0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`prefs.error.${o().type}`)]),U(e,t)},ee=e=>{var t=u0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`loading_cms_config`)]),U(e,t)},T=e=>{var t=d0(),n=I(t),r=F(n),i=F(r,!0);D(r);var a=L(r,2);a0(F(a),()=>l().message),D(a),D(n),H1(L(n,2),{}),R(e=>W(i,e),[()=>X(`loading_site_data_error`)]),U(e,t)},te=e=>{var t=f0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`authorizing`)]),U(e,t)},ne=e=>{H1(e,{})},re=e=>{var t=p0(),n=I(t),r=F(n,!0);D(n);var i=L(n,2),a=e=>{toe(e,{get now(){return m()}})};G(i,e=>{m()!==void 0&&e(a)}),R(e=>W(r,e),[()=>X(`loading_site_data`)]),U(e,t)};G(S,e=>{a().length?e(C):o()?e(w,1):!s()||!c()?e(ee,2):l().message&&l().context===`dataFetch`?e(T,3):u()?e(te,4):!d()||f()?e(ne,5):p()||e(re,6)}),D(y),D(v);var ie=L(v,2),ae=e=>{var t=m0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`powered_by`,{values:{name:$1}})]),U(e,t)};G(ie,e=>{n()&&r()!==`Sveltia CMS`&&e(ae)}),U(e,_),k(),g()}var a0,o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,cue=s((()=>{Q(),Y(),Z(),G$(),ME(),dO(),aue(),i0(),D1(),hM(),iF(),Uy(),qj(),V1(),nN(),a0=(e,t=E)=>{var n=H();So(I(n),()=>jE(HE.parseInline(t()),{ALLOWED_TAGS:[`a`,`code`],ALLOWED_ATTR:[`href`]})),U(e,n)},o0=V(`<img alt="" class="logo svelte-7ua6x9"/> <h1 class="svelte-7ua6x9"> </h1>`,1),s0=V(`<li><!></li>`),c0=V(`<div role="alert" class="message"><div role="none"> </div> <ul class="error svelte-7ua6x9"></ul></div>`),l0=V(`<div role="alert" class="message"> </div>`),u0=V(`<div role="alert" class="message"> </div>`),d0=V(`<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-7ua6x9"><!></div></div> <!>`,1),f0=V(`<div role="alert" class="message"> </div>`),p0=V(`<div role="alert" class="message"> </div> <!>`,1),m0=V(`<div role="none" class="powered-by svelte-7ua6x9"> </div>`),h0=V(`<div role="none" class="container svelte-7ua6x9"><div role="none" class="inner svelte-7ua6x9"><!> <!></div></div> <!>`,1),g0={hash:`svelte-7ua6x9`,code:`.container.svelte-7ua6x9 {position:absolute;inset:0;z-index:101;flex:auto;display:flex;justify-content:center;align-items:center;gap:16px;padding:32px;}.container.svelte-7ua6x9 .inner:where(.svelte-7ua6x9) {display:flex;flex-direction:column;align-items:center;gap:32px;min-width:240px;max-width:800px;min-height:240px;}.container.svelte-7ua6x9 .logo:where(.svelte-7ua6x9) {width:auto;height:160px;}
|
|
779
779
|
@media (width < 768px) {.container.svelte-7ua6x9 .logo:where(.svelte-7ua6x9) {height:120px;}
|
|
780
780
|
}.container.svelte-7ua6x9 h1:where(.svelte-7ua6x9) {font-size:48px;}.container.svelte-7ua6x9 .logo:where(.svelte-7ua6x9) ~ h1:where(.svelte-7ua6x9) {font-size:var(--sui-font-size-xxx-large);}.container.svelte-7ua6x9 .error:where(.svelte-7ua6x9) {border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-default);text-align:center;-webkit-user-select:text;user-select:text;cursor:text;}.container.svelte-7ua6x9 .message {margin:0 0 16px;font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-normal);text-align:center;}.container.svelte-7ua6x9 .message ul {margin:12px 0 0;padding:0;max-height:160px;overflow-y:auto;list-style:none;}.container.svelte-7ua6x9 .message li {margin:12px;padding:0;}.powered-by.svelte-7ua6x9 {position:absolute;inset:auto 24px 24px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);text-align:center;}`}}));function lue(e,t){O(t,!0);let n=()=>j(kP,`$backend`,i),r=()=>j($P,`$cmsConfig`,i),[i,a]=hn(),o=0,s=N(!1),c=N(`none`),l=async()=>{n()?.checkStatus&&P(c,await n().checkStatus(),!0)},u=()=>{l(),o=window.setInterval(()=>{l()},3e5)},d=()=>{window.clearInterval(o),P(c,`none`)},f=()=>{z(s)&&(n()?.checkStatus&&!n().repository?.isSelfHosted?u():d())};ac(()=>(P(s,!0),()=>{d()})),ti(()=>{z(s),n(),r(),f()});var p=H(),m=I(p),h=e=>{var t=v0(),r=I(t);{let e=M(()=>z(c)===`major`?`error`:`warning`);lo(r,()=>({"--sui-infobar-message-justify-content":`center`})),_I(r.lastChild,{get status(){return z(e)},children:(e,t)=>{_t();var r=_0(),i=I(r),a=L(i);{let e=M(()=>X(`details`));lI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{h1(n()?.statusDashboardURL)}})}R(e=>W(i,`${e??``} `),[()=>X(`backend_status.${z(c)}_incident`,{values:{service:n()?.label}})]),U(e,r)},$$slots:{default:!0}}),D(r)}U(e,t)},g=M(()=>[`minor`,`major`].includes(z(c)));G(m,e=>{z(g)&&e(h)}),U(e,p),k(),a()}var _0,v0,uue=s((()=>{Q(),Y(),Z(),G$(),sc(),jP(),iF(),g1(),_0=V(` <!>`,1),v0=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function due(e,t){O(t,!0);let n=0,r=0,i=N(!1),a=async()=>{try{let e=await fetch(`https://unpkg.com/@sveltia/cms/package.json`);if(!e.ok)return;let{version:t}=await e.json();if(!t||t===Mw)return;document.querySelector(`script[src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"]`)?r=window.setTimeout(()=>{P(i,!0)},6e5):console.warn(`[Sveltia CMS] A new version (${t}) is available. Update the pinned version in your script tag or package.json to upgrade.`)}catch{}};ac(()=>(a(),n=window.setInterval(()=>{a()},36e5),()=>{window.clearInterval(n),window.clearTimeout(r)}));var o=H(),s=I(o),c=e=>{var t=b0(),n=I(t);lo(n,()=>({"--sui-infobar-message-justify-content":`center`})),_I(n.lastChild,{children:(e,t)=>{_t();var n=y0(),r=I(n),i=L(r);{let e=M(()=>X(`update_now`));lI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{window.location.reload()}})}R(e=>W(r,`${e??``} `),[()=>X(`update_available`)]),U(e,n)},$$slots:{default:!0}}),D(n),U(e,t)};G(s,e=>{z(i)&&e(c)}),U(e,o),k()}var y0,b0,fue=s((()=>{Q(),Y(),Z(),G$(),sc(),Nw(),y0=V(` <!>`,1),b0=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})),x0,S0=s((()=>{x0=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})),C0,pue=s((()=>{Rw(),xT(),S0(),C0=async(e,t)=>{let n=t===`image`?await mT(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let{parse:r}=await Lw(`exifr`,`dist/lite.esm.mjs`),{latitude:i,longitude:a,DateTimeOriginal:o,CreateDate:s=o}=await r(n).catch(()=>{})??{};return{createdDate:s instanceof Date?s:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(a)?{latitude:x0(i,7),longitude:x0(a,7)}:void 0}}})),w0,T0,E0,D0,mue=s((()=>{pue(),w0=e=>{let t=new Image;return new Promise(n=>{t.addEventListener(`load`,()=>{n({dimensions:{width:t.naturalWidth,height:t.naturalHeight}})},{once:!0}),t.src=e})},T0=async(e,t)=>{let n=document.createElement(t);return new Promise(r=>{n.addEventListener(`loadedmetadata`,()=>{let{duration:e}=n;t===`audio`&&r({duration:e});let{videoWidth:i,videoHeight:a}=n;r({dimensions:{width:i,height:a},duration:e})},{once:!0}),n.src=e})},E0=async(e,t)=>t===`image`?w0(e):T0(e,t),D0=async(e,t,n)=>{let{dimensions:r,duration:i}=await E0(t,n),{createdDate:a,coordinates:o}=await C0(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}}})),O0,k0,A0,j0=s((()=>{ip(),xT(),jP(),sk(),mue(),O0={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},k0=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=A(kP)?.repository??{},i=await hT(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await D0(e,i,t)),{...a,publicURL:vT(e),repoBlobURL:r?`${r}/${n}`:void 0}},A0=async e=>{let t=vT(e,{allowSpecial:!0,pathOnly:!0})??await hT(e);return t?ak(t):[]}}));function M0(e,t){O(t,!0);let n=e=>{var t=N0(),n=I(t);{let e=M(()=>X(`public_urls`,{values:{count:r().length}})),t=M(()=>!z(c).length);tR(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(d,`asset_urls_copied`)}})}var i=L(n,2);{let e=M(()=>X(`file_paths`,{values:{count:r().length}}));tR(i,{get label(){return z(e)},onclick:()=>{m(f,`asset_paths_copied`)}})}var a=L(i,2);{let e=M(()=>X(`file_data`)),t=M(()=>!z(o));tR(a,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(p,`asset_data_copied`)}})}U(e,t)},r=J(t,`assets`,19,()=>[]),i=J(t,`useButton`,3,!0),a=N(Cr([])),o=N(!1),s=Cr({show:!1,text:``,status:`success`}),c=M(()=>z(a).filter(({publicURL:e})=>!!e).map(({publicURL:e})=>e)),l,u=async()=>{if(l=void 0,r().length!==1)return!1;let e=await mT(r()[0]),{type:t}=e;return l=e,Dp(t)?!0:Gw.includes(t)?typeof navigator.clipboard.write==`function`:!1},d=async()=>{await navigator.clipboard.writeText(z(c).join(`
|
|
781
781
|
`))},f=async()=>{await navigator.clipboard.writeText(r().map(({path:e})=>`/${e}`).join(`
|
|
@@ -847,7 +847,7 @@ svg.leaflet-image-layer.leaflet-interactive path {pointer-events:visiblePainted;
|
|
|
847
847
|
@media (width < 768px) {.list-view.svelte-1sfbolp [role=grid] .grid-cell {border-width:0 !important;height:64px;}
|
|
848
848
|
}.list-view.svelte-1sfbolp [role=grid] .grid-cell.checkbox {padding-inline-start:8px !important;width:44px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell.title {width:100%; /* flex: auto */color:var(--sui-primary-foreground-color);}.list-view.svelte-1sfbolp [role=grid] .grid-cell:first-child {padding-inline-start:16px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell .label {overflow:hidden;}
|
|
849
849
|
@media (width < 768px) {.list-view.svelte-1sfbolp [role=grid] .grid-cell .label {white-space:normal;line-height:var(--sui-line-height-compact);}
|
|
850
|
-
}.list-view.svelte-1sfbolp [role=grid] .grid-cell.image {width:48px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell.image:empty::before {display:block;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);content:"";}`}}));function Aue(e,t){O(t,!0);let n=()=>j(d1,`$currentView`,o),r=()=>j(Rp,`$targetAssetFolder`,o),i=()=>j(p1,`$assetGroups`,o),a=()=>j(f1,`$listedAssets`,o),[o,s]=hn(),c=M(()=>n().type),l=M(r),u=M(()=>!Hp(z(l)));{let t=M(()=>X(`asset_list`));B3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{A3(e,{get disabled(){return z(u)},multiple:!0,onDrop:({files:e})=>{mn(vF,{folder:z(l),files:e})},children:(e,t)=>{var n=H(),r=I(n),o=e=>{{let t=M(()=>X(`assets`));W3(e,{id:`asset-list`,get viewType(){return z(c)},get"aria-label"(){return z(t)},get"aria-rowcount"(){return a().length},children:(e,t)=>{var n=H();mo(I(n),1,()=>Object.entries(i()),([e,t])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=H();eo(I(a),Yx,null,e=>{{let t=M(()=>r()===`*`?void 0:r());DL(e,{get label(){return z(t)},children:(e,t)=>{wR(e,{get items(){return i()},itemKey:`path`,renderItem:(e,t=E)=>{var n=H();oo(I(n),()=>t().sha,e=>{var n=H();eo(I(n),Yx,null,e=>{Oue(e,{get asset(){return t()},get viewType(){return z(c)}})}),U(e,n)}),U(e,n)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}}),U(e,a)}),U(e,n)},$$slots:{default:!0}})}},s=M(()=>Object.values(i()).flat(1).length),l=e=>{z$(e,{children:(e,t)=>{var n=J3(),r=I(n),i=F(r,!0);D(r);var a=L(r,2),o=e=>{{let t=M(()=>X(`upload_assets`));R3(e,{get label(){return z(t)}})}};G(a,e=>{z(u)||e(o)}),R(e=>W(i,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})};G(r,e=>{z(s)?e(o):e(l,-1)}),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}k(),s()}var J3,jue=s((()=>{Q(),Y(),Z(),G$(),Xx(),kue(),L3(),z3(),U3(),q3(),EF(),Up(),m1(),J3=V(`<span role="none"> </span> <!>`,1)})),Y3,X3,Z3=s((()=>{ip(),Y3=un(null),X3=un(``)}));function Q3(e,t){O(t,!0),K(e,t6);let n=()=>j(X3,`$searchTerms`,i),r=()=>j(Y3,`$searchMode`,i),[i,a]=hn(),o=J(t,`onclick`,3,void 0),s=e=>{let t=!!n(),{path:r}=b1(),i=r.startsWith(`/search/`);mn(X3,e),e?w1(`/search/${e}`,{replaceState:i}):t&&i&&T1(`/collections`)},c=N(void 0);ti(()=>{z(c)&&n()!==z(c)?.value&&(z(c).value=n())});var l=e6(),u=F(l),d=e=>{var t=$3(),n=I(t);{let e=M(()=>X(`search_placeholder_${r()}`));lo(n,()=>({"--sui-textbox-placeholder-text-align":`center`})),Ws(OR(n.lastChild,{debounce:!0,keyShortcuts:`Accel+F`,get placeholder(){return z(e)},get onclick(){return o()},oninput:({target:e})=>{s(e.value.trim())},onClear:()=>{s(``)}}),e=>P(c,e,!0),()=>z(c)),D(n)}U(e,t)};G(u,e=>{r()&&e(d)}),D(l),U(e,l),k(),a()}var $3,e6,t6,n6=s((()=>{Q(),Y(),Z(),G$(),D1(),Z3(),$3=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),e6=V(`<div role="none" class="wrapper svelte-lav5fn"><!></div>`),t6={hash:`svelte-lav5fn`,code:`.wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}`}}));function Mue(e,t){O(t,!0);let n=()=>j(Fp,`$allAssetFolders`,o),r=()=>j(VA,`$isSmallScreen`,o),i=()=>j(Lp,`$selectedAssetFolder`,o),a=()=>j(dF,`$allAssets`,o),[o,s]=hn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(kh.current)),u=M(()=>[...n().filter(({typedKeyPath:e})=>e===void 0).sort((e,t)=>Xy(e.collectionName,e.fileName)-Xy(t.collectionName,t.fileName)).sort((e,t)=>qb(e.collectionName)-qb(t.collectionName))]);var d=o6(),f=F(d),p=e=>{var t=i6(),n=I(t),r=F(n),i=F(r,!0);D(r),D(n),Q3(L(n,2),{onclick:e=>{e.preventDefault(),w1(`/search`)}}),R(e=>W(i,e),[()=>X(`assets`)]),U(e,t)};G(f,e=>{r()&&e(p)});var m=L(f,2);{let e=M(()=>X(`asset_folder_list`));zL(m,{get"aria-label"(){return z(e)},"aria-controls":`assets-container`,children:(e,t)=>{{let t=M(()=>X(`asset_location.repository`));UL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(u),e=>[e.collectionName,e.fileName,e.internalPath].join(`:`),(e,t)=>{var n=H();eo(I(n),Yx,null,e=>{let n=M(()=>{let{collectionName:e,fileName:n,internalPath:r,entryRelative:i,hasTemplateTags:a}=z(t);return{collectionName:e,fileName:n,internalPath:r,entryRelative:i,hasTemplateTags:a}}),o=M(()=>z(n).collectionName?Gb(z(n).collectionName):void 0),s=M(()=>z(o)&&z(n).fileName?Ky(z(o),z(n).fileName):void 0),u=M(()=>z(n).entryRelative||z(n).hasTemplateTags),d=M(()=>(0,r6.default)(i(),z(t)));{let i=e=>{{let t=M(()=>z(s)?.icon||z(o)?.icon||`folder`);UF(e,{get name(){return z(t)}})}},f=e=>{var r=H();oo(I(r),a,e=>{var r=H();eo(I(r),Yx,null,e=>{let r=M(()=>(z(n).internalPath===void 0?a():oae(z(t))).length);var i=a6(),o=F(i,!0);D(i),R((e,t)=>{q(i,`aria-label`,`(${e??``})`),W(o,t)},[()=>X(`x_assets`,{values:{count:z(r)}}),()=>z(l).format(z(r))]),U(e,i)}),U(e,r)}),U(e,r)},p=M(()=>r()||c()?!1:z(d)),m=M(()=>kh.current?l1(z(t)):``);KL(e,{get selected(){return z(p)},get label(){return z(m)},onSelect:()=>{w1(`/assets/${z(n).internalPath??`-/all`}`,{transitionType:`forwards`,state:{folder:z(t)}})},ondragover:e=>{e.preventDefault(),!z(u)&&(z(n).internalPath===void 0||z(d)?e.dataTransfer.dropEffect=`none`:(e.dataTransfer.dropEffect=`move`,e.target.classList.add(`dragover`)))},ondragleave:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},ondragend:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},ondrop:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},startIcon:i,endIcon:f,$$slots:{startIcon:!0,endIcon:!0}})}}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}})}D(d),U(e,d),k(),s()}var r6,i6,a6,o6,Nue=s((()=>{Q(),Y(),Z(),G$(),Xx(),r6=u(ZM()),n6(),D1(),EF(),Up(),m1(),Jb(),Zy(),KA(),i6=V(`<header><h2> </h2></header> <!>`,1),a6=V(`<span class="count"> </span>`),o6=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function Pue(e,t){O(t,!0);{let n=M(()=>!t.asset||!DS(t.asset)),r=M(()=>X(`preview`)),i=M(()=>X(`show_preview`));lI(e,{variant:`ghost`,get disabled(){return z(n)},get label(){return z(r)},get"aria-label"(){return z(i)},onclick:()=>{w1(`/assets/${t.asset?.path}`,{transitionType:`forwards`})}})}k()}var Fue=s((()=>{Q(),Y(),Z(),G$(),D1(),jS()}));function Iue(e,t){O(t,!0);let n=()=>j(hF,`$selectedAssets`,l),r=()=>j(gF,`$focusedAsset`,l),i=()=>j(Rp,`$targetAssetFolder`,l),a=()=>j(VA,`$isSmallScreen`,l),o=()=>j(Lp,`$selectedAssetFolder`,l),s=()=>j(HA,`$isMediumScreen`,l),c=()=>j(f1,`$listedAssets`,l),[l,u]=hn(),d=M(()=>n().length?[...n()]:r()?[r()]:[]),f=M(()=>!Hp(i()));{let t=M(()=>X(`folder`));i$(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=l6(),i=I(n),l=e=>{{let t=M(()=>X(`back_to_asset_folder_list`));r2(e,{get"aria-label"(){return z(t)},onclick:()=>{T1(`/assets`)}})}};G(i,e=>{a()&&e(l)});var u=L(i,2),p=F(u);oo(p,()=>kh.current,e=>{var t=Fa();R(e=>W(t,e),[()=>o()?l1(o()):``]),U(e,t)});var m=L(p,2),h=e=>{var t=s6(),n=F(t);D(t),R(()=>W(n,`/${o().internalPath??``}`)),U(e,t)};G(m,e=>{!a()&&o()?.internalPath!==void 0&&e(h)}),D(u);var g=L(u,2),_=e=>{var t=c6(),n=I(t);Pue(n,{get asset(){return r()}});var i=L(n,2);{let e=M(()=>r()?[r()]:[]);M0(i,{get assets(){return z(e)}})}var a=L(i,2);Z0(a,{get assets(){return z(d)}});var o=L(a,2);{let e=M(()=>X(`delete_selected_assets`,{values:{count:z(d).length}})),t=M(()=>X(z(d).length>1&&z(d).length===c().length?`confirm_deleting_all_assets`:`confirm_deleting_selected_assets`,{values:{count:z(d).length}}));J0(o,{get assets(){return z(d)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)}})}e2(L(o,2),{get asset(){return r()}}),U(e,t)};G(g,e=>{a()||s()||e(_)}),EI(L(g,2),{children:(e,t)=>{var n=H(),r=I(n),i=e=>{{let t=M(()=>a()?void 0:X(`upload`));R3(e,{get label(){return z(t)}})}};G(r,e=>{(!a()||c().length&&!z(f))&&e(i)}),U(e,n)},$$slots:{default:!0}}),U(e,n)},$$slots:{default:!0}})}k(),u()}var s6,c6,l6,Lue=s((()=>{Q(),Y(),Z(),G$(),F0(),X0(),$0(),n2(),Fue(),z3(),i2(),D1(),EF(),Up(),m1(),KA(),s6=V(`<span role="none"> </span>`),c6=V(`<!> <!> <!> <!> <!>`,1),l6=V(`<!> <h2 role="none"><!> <!></h2> <!> <!>`,1)}));function Rue(e,t){O(t,!0);let n=()=>j(UA,`$isLargeScreen`,a),r=()=>j(d1,`$currentView`,a),i=()=>j(gF,`$focusedAsset`,a),[a,o]=hn();var s=H(),c=I(s),l=e=>{{let t=M(()=>X(`asset_info`));H$(e,{id:`asset-info`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),a=e=>{b2(e,{get asset(){return i()},showPreview:!0})},o=e=>{z$(e,{children:(e,t)=>{var n=u6(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`select_asset_show_info`)]),U(e,n)},$$slots:{default:!0}})};G(r,e=>{i()?e(a):e(o,-1)}),U(e,n)},$$slots:{default:!0}})}};G(c,e=>{n()&&r().showInfo&&e(l)}),U(e,s),k(),o()}var u6,zue=s((()=>{Q(),Y(),Z(),G$(),R2(),EF(),m1(),KA(),u6=V(`<span role="none"> </span>`)}));function d6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`multiple`,3,!1),c=J(t,`noneLabel`,3,``),l=J(t,`filters`,19,()=>[]);{let r=e=>{{let r=M(()=>X(`filtering_options`));ZL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=H(),a=I(i),o=e=>{var r=H();mo(I(r),17,l,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}}),a=M(()=>(n().filters||[]).findIndex(e=>e.field===z(i).field&&String(e.pattern)===String(z(i).pattern)));{let n=M(()=>z(a)>-1);sR(e,{get label(){return z(i)._label},get checked(){return z(n)},onChange:()=>{t.currentView.update(e=>{let t=e.filters?[...e.filters]:[];return z(a)>-1?t.splice(z(a),1):t.push({field:z(i).field,pattern:z(i).pattern}),{...e,filters:t}})}})}}),U(e,r)},u=e=>{var r=f6(),i=I(r);{let e=M(()=>c()||X(`sort_keys.none`)),r=M(()=>!n().filter);lR(i,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,filter:void 0}))}})}mo(L(i,2),17,l,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}});{let r=M(()=>n().filter?.field===z(i).field&&String(n().filter.pattern)===String(z(i).pattern));lR(e,{get label(){return z(i)._label},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,filter:{field:z(i).field,pattern:z(i).pattern}}))}})}}),U(e,r)};G(a,e=>{s()?e(o):e(u,-1)}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`filter`));VI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var f6,p6=s((()=>{Q(),Y(),Z(),G$(),f6=V(`<!> <!>`,1)}));function m6(e,t){O(t,!0),K(e,_6);let n=()=>j(t.selectedItems,`$selectedItems`,r),[r,i]=hn(),a=M(()=>t.allItems.length),o=M(()=>n().length),s=M(()=>!!z(o)),c=M(()=>z(s)&&z(o)===z(a));var l=g6(),u=F(l);{let e=M(()=>!z(a)),n=M(()=>X(`select_all`)),r=M(()=>z(s)&&!z(c)?`mixed`:z(s));rL(u,{get disabled(){return z(e)},get"aria-label"(){return z(n)},get checked(){return z(r)},onChange:()=>{t.selectedItems.set(z(c)?[]:[...t.allItems])}})}var d=L(u,2),f=e=>{var t=h6(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`x_of_x_selected`,{values:{total:z(a),selected:z(o)}})]),U(e,t)};G(d,e=>{z(s)&&e(f)}),D(l),U(e,l),k(),i()}var h6,g6,_6,v6=s((()=>{Q(),Y(),Z(),G$(),h6=V(`<span role="none" class="svelte-1sd2xgz"> </span>`),g6=V(`<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>`),_6={hash:`svelte-1sd2xgz`,code:`.wrapper.svelte-1sd2xgz {display:flex;align-items:center;gap:4px;margin-inline:20px;}span.svelte-1sd2xgz {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}`}}));function y6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`sortKeys`,19,()=>[]),c=J(t,`collectionName`,3,void 0),l=[`ascending`,`descending`],u=[`date`,`commit_date`];{let r=e=>{{let r=M(()=>X(`sorting_options`));ZL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=H();mo(I(i),17,s,({key:e,label:t})=>e,(e,r)=>{let i=()=>z(r).key,a=()=>z(r).label;var o=b6(),d=I(o);mo(d,16,()=>l,e=>e,(e,r)=>{{let o=M(()=>X(u.includes(i())||c()&&fA({collectionName:c(),keyPath:i()})?.widget===`datetime`?`${r}_date`:r,{values:{label:a()}})),s=M(()=>n().sort?.key===i()&&n().sort.order===r);lR(e,{get label(){return z(o)},get checked(){return z(s)},onSelect:()=>{t.currentView.update(e=>({...e,sort:{key:i(),order:r}}))}})}});var f=L(d,2),p=e=>{qI(e,{})};G(f,e=>{i()===`_summary`&&s().length>1&&e(p)}),U(e,o)}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`sort`));VI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var b6,x6=s((()=>{Q(),Y(),Z(),G$(),yA(),b6=V(`<!> <!>`,1)}));function S6(e,t){O(t,!0),K(e,T6);let n=()=>j(t.currentView,`$currentView`,i),r=()=>j(UA,`$isLargeScreen`,i),[i,a]=hn(),o=J(t,`disabled`,3,!1),s=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`currentView`]),c=M(()=>n().type===`grid`);var l=w6(),u=F(l),d=e=>{{let n=M(()=>X(`switch_view`));LI(e,Zs({get disabled(){return o()},get"aria-label"(){return z(n)}},()=>s,{children:(e,n)=>{var r=C6(),i=I(r);{let e=e=>{UF(e,{name:`format_list_bulleted`})},n=M(()=>!z(c)),r=M(()=>X(`list_view`));BI(i,{get disabled(){return o()},get selected(){return z(n)},variant:`ghost`,iconic:!0,get"aria-label"(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,type:`list`}))},startIcon:e,$$slots:{startIcon:!0}})}var a=L(i,2);{let e=e=>{UF(e,{name:`grid_view`})},n=M(()=>X(`grid_view`));BI(a,{get disabled(){return o()},get selected(){return z(c)},variant:`ghost`,iconic:!0,get"aria-label"(){return z(n)},onSelect:()=>{t.currentView.update(e=>({...e,type:`grid`}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,r)},$$slots:{default:!0}}))}},f=e=>{{let n=e=>{{let t=M(()=>z(c)?`format_list_bulleted`:`grid_view`);UF(e,{get name(){return z(t)}})}},r=M(()=>X(z(c)?`switch_to_list_view`:`switch_to_grid_view`));lI(e,{get disabled(){return o()},variant:`ghost`,iconic:!0,get"aria-label"(){return z(r)},onclick:()=>{t.currentView.update(e=>({...e,type:z(c)?`list`:`grid`}))},startIcon:n,$$slots:{startIcon:!0}})}};G(u,e=>{r()?e(d):e(f,-1)}),D(l),U(e,l),k(),a()}var C6,w6,T6,E6=s((()=>{Q(),Y(),Z(),G$(),KA(),C6=V(`<!> <!>`,1),w6=V(`<div role="none" class="wrapper svelte-8v3idr"><!></div>`),T6={hash:`svelte-8v3idr`,code:`.wrapper.svelte-8v3idr {display:contents;}.wrapper.svelte-8v3idr .select-button-group button {border-radius:var(--sui-button-medium-border-radius) !important;}`}})),D6,Bue=s((()=>{D6={collections:`Collections`,contents:`Contents`,entries:`Entries`,files:`Files`,assets:`Assets`,media:`Media`,workflow:`Workflow`,editorial_workflow:`Editorial Workflow`,menu:`Menu`,user_name:`User Name`,password:`Password`,sign_in:`Sign In`,sign_in_with_mobile:`Sign In with Mobile`,sign_in_with_mobile_instruction:`Scan the QR code below with your phone or tablet for passwordless sign-in. Your settings will be automatically copied.`,signed_in_as_x:`Signed In as {$name}`,working_with_local_repo:`Working with Local Repository`,working_with_test_repo:`Working with Test Repository`,sign_out:`Sign Out`,create:`New`,select:`Select`,select_all:`Select All`,upload:`Upload`,copy:`Copy`,download:`Download`,duplicate:`Duplicate`,delete:`Delete`,reorder:`Reorder`,cancel:`Cancel`,done:`Done`,save:`Save`,saving:`Saving…`,publish:`Publish`,publishing:`Publishing…`,rename:`Rename`,update:`Update`,replace:`Replace`,add:`Add`,remove:`Remove`,remove_x:`Remove {$name}`,clear:`Clear`,expand:`Expand`,expand_all:`Expand All`,collapse:`Collapse`,collapse_all:`Collapse All`,insert:`Insert`,restore:`Restore`,discard:`Discard`,searching:`Searching…`,no_results:`No results found.`,global:`Global`,primary:`Primary`,secondary:`Secondary`,collection:`Collection`,folder:`Folder`,api_key:`API Key`,details:`Details`,back:`Back`,loading:`Loading…`,later:`Later`,slug:`Slug`,singleton:`Singleton`,singletons:`Singletons`,clipboard_error:`There was an error while copying data.`,welcome_message:`Welcome to {$name}`,powered_by:`Powered by {$name}`,loading_cms_config:`Loading CMS Configuration…`,loading_site_data:`Loading Site Data…`,loading_site_data_error:`There was an error while loading site data.`,sign_in_with_x:`Sign In with {$service}`,sign_in_using_access_token:`Sign In Using Access Token`,sign_in_using_access_token_description:`Enter your token below. It must have read/write access to the repository content.`,sign_in_using_access_token_link:`You can generate a token on the <a>{$service} user settings page</a>.`,personal_access_token:`Personal Access Token`,authorizing:`Authorizing…`,signing_in:`Signing in…`,work_with_local_repo:`Work with Local Repository`,work_with_local_repo_description:`Once prompted, select the root directory of the “{$repo}” repository.`,work_with_local_repo_description_no_repo:`Once prompted, select the root directory of your Git repository.`,work_with_test_repo:`Work with Test Repository`,sign_in_error:{not_project_root:`The folder you have selected is not a repository root directory. Please try again.`,picker_dismissed:`A repository root directory could not be selected. Please try again.`,authentication_aborted:`Authentication aborted. Please try again.`,invalid_token:`The provided token is invalid. Please check and try again.`,UNSUPPORTED_BACKEND:`Your Git backend is not supported by the authenticator.`,UNSUPPORTED_DOMAIN:`Your domain is not allowed to use the authenticator.`,MISCONFIGURED_CLIENT:`OAuth app client ID or secret is not configured.`,AUTH_CODE_REQUEST_FAILED:`Failed to receive an authorization code. Please try again later.`,CSRF_DETECTED:`Potential CSRF attack detected. Authentication flow aborted.`,TOKEN_REQUEST_FAILED:`Failed to request an access token. Please try again later.`,TOKEN_REFRESH_FAILED:`Failed to refresh the access token. Please try again later.`,MALFORMED_RESPONSE:`Server responded with malformed data. Please try again later.`},backend_unsupported_version:`The {$name} backend requires {$name} {$version} or later.`,repository_no_access:`You don’t have access to the “{$repo}” repository.`,repository_not_found:`The “{$repo}” repository doesn’t exist.`,repository_empty:`The “{$repo}” repository has no branches.`,branch_not_found:`The “{$repo}” repository doesn’t have the “{$branch}” branch.`,unexpected_error:`Unexpected Error`,entry_parse_errors:`.input {$count :integer} .match $count one {{There was an error while parsing an entry file. Check the browser console for details.}} * {{There were errors while parsing entry files. Check the browser console for details.}}`,mobile_promo_title:`Sveltia CMS is now available on mobile!`,mobile_promo_button:`Give it a try`,visit_live_site:`Visit Live Site`,switch_page:`Switch Page`,search_placeholder_contents:`Search for contents…`,search_placeholder_assets:`Search for assets…`,search_placeholder_all:`Search for contents and assets…`,create_entry_or_assets:`Create Entry or Assets`,publish_changes:`Publish Changes`,publishing_changes:`Publishing Changes…`,publishing_changes_failed:`Changes could not be published. Please try again later.`,show_notifications:`Show Notifications`,notifications:`Notifications`,show_account_menu:`Show Account Menu`,account:`Account`,live_site:`Live Site`,git_repository:`Git Repository`,settings:`Settings`,cms_config:`CMS Configuration`,show_help_menu:`Show Help Menu`,help:`Help`,keyboard_shortcuts:`Keyboard Shortcuts`,documentation:`Documentation`,release_notes:`Release Notes`,announcements:`Announcements`,version_x:`Version {$version}`,report_issue:`Report Issue`,share_feedback:`Share Feedback`,get_help:`Get Help`,join_discord:`Join Us on Discord`,bluesky:`Follow Us on Bluesky`,update_available:`The latest version of Sveltia CMS is available.`,update_now:`Update Now`,backend_status:{minor_incident:`{$service} is experiencing a minor incident. Your workflow may be potentially affected.`,major_incident:`{$service} is experiencing a major incident. You may want to wait until the situation has improved.`},content_library:`Content Library`,asset_library:`Asset Library`,asset_location:{repository:`Your Site`,external:`External Locations`,stock_photos:`Stock Photos`},collection_assets:`Collection Assets`,entry_list:`Entry List`,file_list:`File List`,asset_list:`Asset List`,x_collection:`“{$collection}” Collection`,x_asset_folder:`“{$folder}” Asset Folder`,viewing_collection_list:`You’re now viewing the collection list.`,viewing_asset_folder_list:`You’re now viewing the asset folder list.`,viewing_x_collection:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$collection}” collection, which has no entries yet.}} one {{You’re now viewing the “{$collection}” collection, which has one entry.}} * {{You’re now viewing the “{$collection}” collection, which has {$count} entries.}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$folder}” asset folder, which has no assets yet.}} one {{You’re now viewing the “{$folder}” asset folder, which has one asset.}} * {{You’re now viewing the “{$folder}” asset folder, which has {$count} assets.}}`,singleton_selected_announcement:`Press Enter to edit the “{$file}” file.`,collection_not_found:`Collection not found`,file_not_found:`File not found.`,x_of_x_selected:`{$selected} of {$total} selected`,switch_view:`Switch View`,list_view:`List View`,grid_view:`Grid View`,switch_to_list_view:`Switch to List View`,switch_to_grid_view:`Switch to Grid View`,sort:`Sort`,sorting_options:`Sorting Options`,sort_keys:{none:`None`,name:`Name`,slug:`Slug`,commit_author:`Updated by`,commit_date:`Updated on`,_summary:`Summary`,_manual:`Manual`},ascending:`{$label}, A to Z`,ascending_date:`{$label}, old to new`,descending:`{$label}, Z to A`,descending_date:`{$label}, new to old`,filter:`Filter`,filtering_options:`Filtering Options`,group:`Group`,grouping_options:`Grouping Options`,type:`Type`,all:`All`,image:`Image`,video:`Video`,audio:`Audio`,document:`Document`,other:`Other`,show_assets:`Show Assets`,hide_assets:`Hide Assets`,show_info:`Show Info`,hide_info:`Hide Info`,all_assets:`All Assets`,global_assets:`Global Assets`,entry_not_found:`Entry not found.`,creating_entries_disabled_by_admin:`Creating new entries in this collection is disabled by the administrator.`,creating_entries_disabled_by_quota:`You cannot add new entries to this collection because it has reached its limit of {$quota} entries.`,creating_entries_nearing_quota:`.input {$remaining :integer} .match $remaining one {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entry.}} * {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entries.}}`,back_to_collection:`Back to Collection`,collection_list:`Collection List`,back_to_collection_list:`Back to Collection List`,asset_folder_list:`Asset Folder List`,back_to_asset_folder_list:`Back to Asset Folder List`,search_results:`Search Results`,search_results_for_x:`Search Results for “{$terms}”`,viewing_entry_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any entries.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one entry.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} entries.}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any assets.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one asset.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} assets.}}`,x_entries:`.input {$count :integer} .match $count 0 {{No entries}} one {{{$count} entry}} * {{{$count} entries}}`,x_assets:`.input {$count :integer} .match $count 0 {{No assets}} one {{{$count} asset}} * {{{$count} assets}}`,no_files_found:`No files found.`,no_entries_found:`No entries found.`,upload_assets:`Upload New Assets`,edit_options:`Edit Options`,show_edit_options:`Show Edit Options`,edit_asset:`Edit Asset`,edit_x:`Edit {$name}`,wrap_long_lines:`Wrap Long Lines`,rename_asset:`Rename Asset`,rename_x:`Rename {$name}`,enter_new_name_for_asset:`.input {$count :integer} .match $count 0 {{Enter a new name below.}} one {{Enter a new name below. An entry using the asset will also be updated.}} * {{Enter a new name below. {$count} entries using the asset will also be updated.}}`,enter_new_name_for_asset_error:{empty:`File name cannot be empty.`,character:`File name cannot contain special characters.`,duplicate:`This file name is used for another asset.`},replace_asset:`Replace Asset`,replace_x:`Replace {$name}`,click_to_browse:`Click to browse…`,tap_to_browse:`Tap to browse…`,drop_files_or_click_to_browse:`.input {$count :integer} .match $count one {{Drop a file here or click to browse…}} * {{Drop files here or click to browse…}}`,drop_files_or:`.input {$count :integer} .match $count one {{Drop a file here or}} * {{Drop files here or}}`,drop_image_files_or:`.input {$count :integer} .match $count one {{Drop an image file here or}} * {{Drop image files here or}}`,browse:`Browse`,paste:`Paste`,paste_image:`Paste Image`,no_image_in_clipboard:`No image found in clipboard.`,clipboard_access_denied:`Clipboard access denied.`,drop_files_here:`.input {$count :integer} .match $count one {{Drop a file here}} * {{Drop files here}}`,unsupported_file_type:`Unsupported File Type`,dropped_file_type_mismatch:`The dropped file is not the {$type} type. Please try again.`,dropped_image_type_mismatch:`The dropped file is not supported. Only an AVIF, GIF, JPEG, PNG, WebP or SVG image is accepted. Please try again.`,choose_files:`.input {$count :integer} .match $count one {{Choose File}} * {{Choose Files}}`,delete_assets:`.input {$count :integer} .match $count one {{Delete Asset}} * {{Delete Assets}}`,delete_selected_assets:`.input {$count :integer} .match $count one {{Delete Selected Asset}} * {{Delete Selected Assets}}`,confirm_deleting_this_asset:`Are you sure you want to delete this asset?`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected asset?}} * {{Are you sure you want to delete the selected {$count} assets?}}`,confirm_deleting_all_assets:`Are you sure you want to delete all the assets?`,delete_entries:`.input {$count :integer} .match $count one {{Delete Entry}} * {{Delete Entries}}`,delete_selected_entries:`.input {$count :integer} .match $count one {{Delete Selected Entry}} * {{Delete Selected Entries}}`,confirm_deleting_this_entry:`Are you sure you want to delete this entry?`,confirm_deleting_this_entry_with_assets:`Are you sure you want to delete this entry and associated assets?`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry?}} * {{Are you sure you want to delete the selected {$count} entries?}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry and associated assets?}} * {{Are you sure you want to delete the selected {$count} entries and associated assets?}}`,confirm_deleting_all_entries:`Are you sure you want to delete all the entries?`,confirm_deleting_all_entries_with_assets:`Are you sure you want to delete all the entries and associated assets?`,reorder_entries:`Reorder Entries`,done_reordering_entries:`Done Reordering Entries`,cancel_reordering_entries:`Cancel Reordering Entries`,saving_reorder_failed:`Failed to save the new entry order. Please try again.`,processing_files:`.input {$count :integer} .match $count one {{Processing a file. This may take a while.}} * {{Processing files. This may take a while.}}`,uploading_files:`Uploading Files`,confirm_replacing_file:`Are you sure you want to replace “{$name}” with the following file?`,confirm_uploading_files:`.input {$count :integer} .match $count one {{Are you sure you want to save the following file to the “{$folder}” folder?}} * {{Are you sure you want to save the following {$count} files to the “{$folder}” folder?}}`,oversized_files:`Oversized Files`,warning_oversized_files:`.input {$count :integer} .match $count one {{This file cannot be uploaded because it exceeds the maximum size of {$size}. Please reduce the size or select a different file.}} * {{These files cannot be uploaded because they exceed the maximum size of {$size}. Please reduce the sizes or select different files.}}`,uploading_files_progress:`.input {$count :integer} .match $count one {{Uploading file…}} * {{Uploading files…}}`,uploading_files_failed:`.input {$count :integer} .match $count one {{File could not be uploaded}} * {{Files could not be uploaded}}`,file_meta:`{$type} · {$size}`,file_meta_converted_from_x:`(converted from {$type})`,no_entries_created:`This collection has no entries yet.`,create_new_entry:`Create New Entry`,entry:`Entry`,index_file:`Index File`,no_files_in_collection:`No files available in this collection.`,asset_info:`Asset Info`,select_asset_show_info:`Select an asset to show the info.`,duplicate_entry:`Duplicate Entry`,entry_duplicated:`Entry has been duplicated. It’s now a new draft.`,entry_validation_errors:`.input {$count :integer} .match $count one {{One field has an error. Please correct it to save the entry.}} * {{{$count} fields have an error. Please correct them to save the entry.}}`,entry_saved:`.input {$count :integer} .match $count one {{Entry has been saved.}} * {{{$count} entries have been saved.}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{Entry has been saved and published.}} * {{{$count} entries have been saved and published.}}`,entries_deleted:`.input {$count :integer} .match $count one {{Entry has been deleted.}} * {{{$count} entries have been deleted.}}`,assets_saved:`.input {$count :integer} .match $count one {{Asset has been saved.}} * {{{$count} assets have been saved.}}`,assets_saved_and_published:`.input {$count :integer} .match $count one {{Asset has been saved and published.}} * {{{$count} assets have been saved and published.}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{Asset URL has been copied to clipboard.}} * {{{$count} asset URLs have been copied to clipboard.}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{Asset file path has been copied to clipboard.}} * {{{$count} asset file paths have been copied to clipboard.}}`,asset_data_copied:`.input {$count :integer} .match $count one {{Asset file has been copied to clipboard.}} * {{{$count} asset files have been copied to clipboard.}}`,assets_downloaded:`.input {$count :integer} .match $count one {{Asset file has been downloaded.}} * {{{$count} asset files have been downloaded.}}`,assets_moved:`.input {$count :integer} .match $count one {{Asset has been moved.}} * {{{$count} assets have been moved.}}`,assets_renamed:`.input {$count :integer} .match $count one {{Asset has been renamed.}} * {{{$count} assets have been renamed.}}`,assets_deleted:`.input {$count :integer} .match $count one {{Asset has been deleted.}} * {{{$count} assets have been deleted.}}`,content_editor:`Content Editor`,restore_backup_title:`Restore Draft`,restore_backup_description:`This entry has a backup from {$datetime}. Do you want to restore the edited draft?`,draft_backup_saved:`Draft backup has been saved.`,draft_backup_restored:`Draft backup has been restored.`,draft_backup_deleted:`Draft backup has been deleted.`,cancel_editing:`Cancel Editing`,create_entry_title:`Creating {$name}`,create_entry_announcement:`You’re now creating a new entry in the “{$collection}” collection.`,edit_entry_title:`{$collection} › {$entry}`,edit_entry_announcement:`You’re now editing the “{$entry}” entry in the “{$collection}” collection.`,edit_file_announcement:`You’re now editing the “{$file}” file in the “{$collection}” collection.`,edit_singleton_announcement:`You’re now editing the “{$file}” file.`,save_and_publish:`Save and Publish`,save_without_publishing:`Save without Publishing`,show_editor_options:`Show Editor Options`,editor_options:`Editor Options`,show_preview:`Show Preview`,sync_scrolling:`Sync Scrolling`,switch_locale:`Switch Locale`,locale_content_disabled_short:`(disabled)`,locale_content_error_short:`(error)`,edit:`Edit`,preview:`Preview`,swap_panes:`Swap Panes`,edit_x_locale:`Edit {$locale} Content`,preview_x_locale:`Preview {$locale} Content`,content_preview:`Content Preview`,show_content_options_x_locale:`Show {$locale} Content Options`,content_options_x_locale:`{$locale} Content Options`,x_field:`“{$field}” Field`,show_field_options:`Show Field Options`,field_options:`Field Options`,unsupported_field_type_x:`Unsupported field type: {$name}`,enable_x_locale:`Enable {$locale}`,reenable_x_locale:`Reenable {$locale}`,disable_x_locale:`Disable {$locale}`,locale_x_has_been_disabled:`The {$locale} content has been disabled.`,locale_x_now_disabled:`The {$locale} content is now disabled. It will be deleted when you save the entry.`,view_in_repository:`View in Repository`,view_on_x:`View on {$service}`,view_on_live_site:`View on Live Site`,copy_from:`Copy from…`,copy_from_x:`Copy from {$locale}`,translation_options:`Translation Options`,translate:`Translate`,translate_fields:`.input {$count :integer} .match $count one {{Translate Field}} * {{Translate Fields}}`,translate_from:`Translate from…`,translate_from_x:`Translate from {$locale}`,revert_changes:`Revert Changes`,revert_all_changes:`Revert All Changes`,edit_slug:`Edit Slug`,edit_slug_warning:`Changing the slug may break internal and external links to the entry. Currently, Sveltia CMS does not update references created with Relation fields, so you’ll need to manually update such references along with other links.`,edit_slug_error:{empty:`The slug cannot be empty.`,duplicate:`This slug is used for another entry.`},required:`Required`,editor:{translation:{none:`Nothing has been translated.`,started:`Translating…`,error:`There was an error while translating.`,complete:`.input {$count :integer} .match $count 0 {{No field has been translated from {$source}.}} one {{Translated a field from {$source}.}} * {{Translated {$count} fields from {$source}.}}`},copy:{none:`Nothing has been copied.`,complete:`.input {$count :integer} .match $count 0 {{No field has been copied from {$source}.}} one {{Copied a field from {$source}.}} * {{Copied {$count} fields from {$source}.}}`}},validation:{value_missing:`This field is required.`,range_underflow:{"datetime-local":`The date/time must be at or after {$min}.`,date:`The date must be on or after {$min}.`,time:`The time must be at or after {$min}.`,number:`The value must be greater than or equal to {$min}.`,select:`.input {$min :integer} .match $min one {{You have to select at least {$min} option.}} * {{You have to select at least {$min} options.}}`,add:`.input {$min :integer} .match $min one {{You have to add at least {$min} item.}} * {{You have to add at least {$min} items.}}`},range_overflow:{"datetime-local":`The date/time must be at or before {$max}.`,date:`The date must be on or before {$max}.`,time:`The time must be at or before {$max}.`,number:`The value must be less than or equal to {$max}.`,select:`.input {$max :integer} .match $max one {{You cannot select more than {$max} option.}} * {{You cannot select more than {$max} options.}}`,add:`.input {$max :integer} .match $max one {{You cannot add more than {$max} item.}} * {{You cannot add more than {$max} items.}}`},too_short:`.input {$min :integer} .match $min one {{You must enter at least {$min} character.}} * {{You must enter at least {$min} characters.}}`,too_long:`.input {$max :integer} .match $max one {{You cannot enter more than {$max} character.}} * {{You cannot enter more than {$max} characters.}}`,type_mismatch:{number:`Please enter a number.`,email:`Please enter a valid email.`,url:`Please enter a valid URL.`}},entry_sidebar:{sidebar_panels:`Sidebar Panels`,validation:{title:`Validation`,placeholder:`Validation results will be shown here.`,no_errors_found:`No errors found.`},history:{title:`History`,fetch_failed:`Failed to load history.`,no_history:`No history found.`},backlinks:{title:`Backlinks`,no_entries:`No entries are referencing this entry.`}},saving_entry:{error:{title:`Error`,description:`There was an error while saving the entry. Please try again later.`}},viewing_x_asset_details:`You’re viewing the details of the “{$name}” asset.`,asset_editor:`Asset Editor`,preview_unavailable:`Preview Unavailable.`,public_urls:`.input {$count :integer} .match $count one {{Public URL}} * {{Public URLs}}`,file_paths:`.input {$count :integer} .match $count one {{File Path}} * {{File Paths}}`,file_data:`File Data`,kind:`Kind`,size:`Size`,dimensions:`Dimensions`,duration:`Duration`,used_in:`Used in`,created_date:`Created Date`,location:`Location`,map_lat_lng:`Map showing latitude {$latitude}, longitude {$longitude}`,remove_this_item:`Remove This Item`,move_up:`Move Up`,move_down:`Move Down`,add_x:`Add {$name}`,add_item_above:`Add Item Above`,add_item_below:`Add Item Below`,select_list_type:`Select List Type`,opacity:`Opacity`,unselected_option:`(None)`,assets_dialog:{title:{file:`Select File`,image:`Select Image`},search_for_file:`Search for Files`,search_for_image:`Search for Images`,locations:`Locations`,folder:{field:`Field Assets`,entry:`Entry Assets`,file:`File Assets`,collection:`Collection Assets`,global:`Global Assets`},error:{invalid_key:`Your API Key is invalid or expired. Please double check and try again.`,search_fetch_failed:`There was an error while searching assets. Please try again later.`,image_fetch_failed:`There was an error while downloading the selected asset. Please try again later.`},available_images:`Available Images`,enter_url:`Enter URL`,enter_file_url:`Enter URL of the file:`,enter_image_url:`Enter URL of the image:`,large_file:{title:`Large File`},photo_credit:{title:`Photo Credit`,description:`Use the following credit if possible:`},unsaved:`Unsaved`},character_counter:{min_max:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}. Maximum: {$max}.}} one {{{$count} character entered. Minimum: {$min}. Maximum: {$max}.}} * {{{$count} characters entered. Minimum: {$min}. Maximum: {$max}.}}`,min:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}.}} one {{{$count} character entered. Minimum: {$min}.}} * {{{$count} characters entered. Minimum: {$min}.}}`,max:`.input {$count :integer} .match $count 0 {{No character entered. Maximum: {$max}.}} one {{{$count} character entered. Maximum: {$max}.}} * {{{$count} characters entered. Maximum: {$max}.}}`},youtube_video_player:`YouTube video player`,today:`Today`,now:`Now`,editor_components:{image:`Image`,src:`Source`,alt:`Alt Text`,title:`Title`,link:`Link`},key_value:{key:`Key`,value:`Value`,action:`Action`,empty_key:`Key is required.`,duplicate_key:`Key must be unique.`},find_place:`Find a Place`,use_your_location:`Use Your Location`,geolocation_error_title:`Geolocation Error`,geolocation_error_body:`There was an error while retrieving your location.`,geolocation_unsupported:`Geolocation API is not supported by this browser.`,boolean:{true:`Yes`,false:`No`},cloud_storage:{invalid:`The service is not configured properly.`,auth:{api_key:{key_label:`API Key`,initial:`Enter your {$key} for {$service}.`,requested:`Validating…`,error:`The provided {$key} is invalid. Please double check and try again.`},password:{initial:`Enter your password for {$service}.`,requested:`Signing in…`,error:`User name or password is incorrect. Please double check and try again.`}},cloudinary:{iframe_title:`Cloudinary media library`,activate:{button_label:`Activate Cloudinary`,description:`After signing in, click the Sign In button again to continue.`},auth_key_label:`API Secret`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`Secret Access Key`},cloudflare_r2:{auth_key_label:`Secret Access Key`},digitalocean_spaces:{auth_key_label:`Secret Access Key`}},config:{errors:`.input {$count :integer} .match $count one {{There is an error in the CMS configuration. Please solve the issue and try again.}} * {{There are errors in the CMS configuration. Please solve the issues and try again.}}`,error_locator:{collection:`{$collection} collection`,file:`{$file} file`,field:"`{$field}` field"},error:{no_secure_context:`Sveltia CMS only works with HTTPS or localhost URLs.`,insecure_url:`The configuration file URL must use HTTPS protocol or a localhost address.`,insecure_urls:`.input {$count :integer} .match $count one {{The configuration file URL must use HTTPS protocol or a localhost address.}} * {{The configuration file URLs must use HTTPS protocol or localhost addresses.}}`,fetch_failed:`The configuration file could not be retrieved.`,fetch_failed_not_ok:`HTTP response returned with status {$status}.`,fetch_failed_with_manual_init:"The configuration file could not be retrieved. To prevent the `config.yml` file from loading, add [`load_config_file: false`](https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration) to the configuration object passed to `CMS.init()`.",parse_failed:`The configuration file could not be parsed.`,parse_failed_invalid_object:`The configuration file is not a valid JavaScript object.`,parse_failed_unsupported_type:`The configuration file is not a valid file type. Only YAML, TOML and JSON are supported.`,no_collection:`Collections are not defined.`,missing_backend:`The backend is not defined.`,missing_backend_name:`The backend name is not defined.`,unsupported_known_backend:`The {$name} backend is [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_deprecated_backend:`The deprecated {$name} backend is [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_custom_backend:`Custom backends are [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_backend_suggestion:`Use one of the [supported backends](https://sveltiacms.app/en/docs/backends#supported-backends) instead.`,missing_repository:`The repository is not defined.`,invalid_repository:`The configured repository is invalid. It must be in “owner/repo” format.`,oauth_implicit_flow:`The configured authentication method (implicit flow) is not supported in Sveltia CMS. Use a different [authentication method](https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication) instead.`,github_pkce_unsupported:`PKCE authorization is not yet supported due to GitHub’s limitations. Use a different [authentication method](https://sveltiacms.app/en/docs/backends/github#authentication) instead.`,oauth_no_app_id:`OAuth application ID is not defined.`,missing_media_folder:`The media folder is not defined.`,invalid_media_folder:`The configured media folder is invalid. It must be a string.`,invalid_public_folder:`The configured public folder is invalid. It must be a string.`,public_folder_relative_path:`The configured public folder is invalid. It must be an absolute path starting with “/”.`,public_folder_absolute_url:`An absolute URL for the public folder option is not supported in Sveltia CMS.`,invalid_collection_no_options:"The collection must have either the `folder`, `files` or `divider` option defined.",invalid_collection_multiple_options:"The collection cannot have the `folder`, `files` and `divider` options together.",file_format_mismatch:"The `{$extension}` extension doesn’t match the `{$format}` format.",invalid_slug_slash:"The slug template `{$slug}` is invalid as it cannot contain slashes. To organize entries in subfolders, use the `path` option instead of `slug`.",missing_collection_name:"The collection {$count} must have the `name` option defined as a non-empty string.",invalid_collection_name:"The collection name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_name:"Collection names must be unique, but `{$name}` is used more than once.",missing_collection_file_name:"The collection file {$count} must have the `name` option defined as a non-empty string.",invalid_collection_file_name:"The collection file name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_file_name:"Collection file names must be unique, but `{$name}` is used more than once.",collection_no_fields:"The collection must have the `fields` option defined with at least one field.",collection_file_no_fields:"The collection file must have the `fields` option defined with at least one field.",missing_field_name:"The field {$count} must have the `name` option defined as a non-empty string.",invalid_field_name:"The field name `{$name}` is invalid. It must not contain special characters. If you want to nest fields, [use Object fields instead of dot notation](https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions).",duplicate_field_name:"Field names must be unique, but `{$name}` is used more than once.",missing_variable_type:"The variable type {$count} must have the `name` option defined as a non-empty string.",invalid_variable_type:"The variable type name `{$name}` is invalid. It must not contain special characters.",duplicate_variable_type:"Variable type names must be unique, but `{$name}` is used more than once.",date_field_type:"The deprecated Date field type is not supported in Sveltia CMS. Use the DateTime field type with the `type: date` option instead.",unsupported_deprecated_option:"The deprecated `{$prop}` option is not supported in Sveltia CMS. Use the `{$newProp}` option instead.",allow_multiple:"The `allow_multiple` option is not supported in Sveltia CMS. Use the `multiple` option instead, which defaults to `false`.",invalid_list_field:"The List field cannot have the `field`, `fields` and `types` options together.",invalid_list_variable_type:"The List field’s variable type is invalid. The `widget` option is set to `{$widget}` but it must be `object`.",invalid_object_field:"The Object field cannot have the `fields` and `types` options together.",object_field_missing_fields:"The Object field must have either the `fields` or `types` option defined.",relation_field_invalid_collection:"The referenced `{$collection}` collection is invalid or not defined.",relation_field_invalid_collection_file:"The referenced `{$file}` file is invalid or not defined.",relation_field_missing_file_name:"The `file` option must be defined for a relation to a file collection.",relation_field_invalid_value_field:"The referenced value field `{$field}` is invalid or not defined.",unexpected:`Unexpected error`},warning:{oauth_no_app_id:`OAuth application ID is not defined. Users are required to provide an access token to sign in.`,editorial_workflow_unsupported:`Editorial workflow is not yet supported in Sveltia CMS.`,open_authoring_unsupported:`Open authoring is not yet supported in Sveltia CMS.`,nested_collections_unsupported:`Nested collections are not yet supported in Sveltia CMS.`,unsupported_ignored_option:"The `{$prop}` option is not supported in Sveltia CMS. It will be ignored."},compatibility_link:`See the compatibility notes for details: https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`},local_workflow:{indicator:`Local`,unsupported_browser:`Local Workflow is not supported in your browser. Please use Chrome or Edge instead.`,disabled:`Local Workflow is disabled in your browser. <a>Here’s how to enable it</a>.`},status:{drafts:`Drafts`,in_review:`In Review`,ready:`Ready`},categories:`Categories`,prefs:{changes:{api_key_saved:`API key has been saved.`,api_key_removed:`API key has been removed.`,api_key_invalid:`The provided API key is invalid. Please double check and try again.`},error:{permission_denied:`Browser storage (Cookie) access has been denied. Please check the permission and try again.`},appearance:{title:`Appearance`,theme:`Theme`,select_theme:`Select Theme`},theme:{auto:`Auto`,dark:`Dark`,light:`Light`},language:{title:`Language`,ui_language:{title:`User Interface Language`,select_language:`Select Language`}},contents:{title:`Contents`,editor:{title:`Editor`,use_draft_backup:{switch_label:`Automatically back up entry drafts`},close_on_save:{switch_label:`Close the editor after saving a draft`},close_with_escape:{switch_label:`Close the editor with the Escape key`}}},i18n:{title:`Internationalization`,translators:{default:{title:`Default Translation Service`,select_service:`Select Service`},api_keys:{title:`Translation Service API Keys`,description:`Manage API keys for <a>translation services</a>.`},field_label:`{$service} Key`,description:`Sign up for <a {$homeHref}>{$service}</a> and enter <a {$apiKeyHref}>your API Key</a> here to enable quick translation of text entry fields.`}},media:{title:`Media`,stock_photos:{api_keys:{title:`Stock Photo Service API Keys`,description:`Manage API keys for <a>stock photo services</a>.`},field_label:`{$service} API Key`,description:`Sign up for <a {$homeHref}>{$service} API</a> and enter <a {$apiKeyHref}>your API Key</a> here to insert free stock photos to image entry fields.`,credit:`Photos provided by {$service}`,no_services:`No <a>stock photo services</a> are configured.`},cloud_storage:{api_keys:{title:`Cloud Storage Service API Keys`,description:`Manage API keys for <a>cloud storage services</a>.`},field_label:`{$service} API Key`,no_services:`No <a>cloud storage services</a> are configured.`}},accessibility:{title:`Accessibility`,underline_links:{title:`Underline Links`,description:`Show underline for links in the entry preview and user interface labels.`,switch_label:`Always Underline Links`}},advanced:{title:`Advanced`,beta:{title:`Beta Features`,description:`Enable some beta features that may be unstable or unlocalized.`,switch_label:`Join Beta Program`},developer_mode:{title:`Developer Mode`,description:`Enable some developer-oriented features, including detailed console logs and native context menus.`,switch_label:`Enable Developer Mode`},deploy_hook:{title:`Deploy Hook`,description:`Enter a webhook URL to be called when you manually trigger a deployment by selecting Publish Changes. This can be left blank if you’re using GitHub Actions.`,url:{field_label:`Hook URL`,saved:`Hook URL has been saved.`,removed:`Hook URL has been removed.`},auth:{field_label:`Authorization header (e.g. Bearer <token>) (optional)`,saved:`Authorization header has been saved.`,removed:`Authorization header has been removed.`}}}},keyboard_shortcuts_:{view_content_library:`View Content Library`,view_asset_library:`View Asset Library`,search:`Search for entries and assets`,create_entry:`Create a new entry`,save_entry:`Save an entry`,cancel_editing:`Cancel entry editing`},file_type_labels:{avif:`AVIF image`,bmp:`Bitmap image`,gif:`GIF image`,ico:`Icon`,jpeg:`JPEG image`,jpg:`JPEG image`,png:`PNG image`,svg:`SVG image`,tif:`TIFF image`,tiff:`TIFF image`,webp:`WebP image`,avi:`AVI video`,m4v:`MP4 video`,mov:`QuickTime video`,mp4:`MP4 video`,mpeg:`MPEG video`,mpg:`MPEG video`,ogg:`Ogg video`,ogv:`Ogg video`,ts:`MPEG video`,webm:`WebM video`,"3gp":`3GPP video`,"3g2":`3GPP2 video`,aac:`AAC audio`,mid:`MIDI`,midi:`MIDI`,m4a:`MP4 audio`,mp3:`MP3 audio`,oga:`Ogg audio`,opus:`OPUS audio`,wav:`WAV audio`,weba:`WebM audio`,csv:`CSV spreadsheet`,doc:`Word document`,docx:`Word document`,odp:`OpenDocument presentation`,ods:`OpenDocument spreadsheet`,odt:`OpenDocument text`,pdf:`PDF document`,ppt:`PowerPoint presentation`,pptx:`PowerPoint presentation`,rtf:`Rich text document`,xls:`Excel spreadsheet`,xlsx:`Excel spreadsheet`,html:`HTML text`,js:`JavaScript`,json:`JSON text`,md:`Markdown text`,toml:`TOML text`,yaml:`YAML text`,yml:`YAML text`},file_size_units:{b:`{$size} bytes`,kb:`{$size} KB`,mb:`{$size} MB`,gb:`{$size} GB`,tb:`{$size} TB`}}})),O6,Vue=s((()=>{O6={collections:`コレクション`,contents:`コンテンツ`,entries:`エントリー`,files:`ファイル`,assets:`アセット`,media:`メディア`,workflow:`ワークフロー`,editorial_workflow:`編集ワークフロー`,menu:`メニュー`,user_name:`ユーザー名`,password:`パスワード`,sign_in:`ログイン`,sign_in_with_mobile:`モバイルでログイン`,sign_in_with_mobile_instruction:`以下の QR コードを携帯電話かタブレットでスキャンすると、パスワードなしでログインできます。ユーザー設定は自動的にコピーされます。`,signed_in_as_x:`{$name} としてログイン中`,working_with_local_repo:`ローカルレポジトリで作業中`,working_with_test_repo:`テストレポジトリで作業中`,sign_out:`ログアウト`,create:`新規作成`,select:`選択`,select_all:`すべて選択`,upload:`アップロード`,copy:`コピー`,download:`ダウンロード`,duplicate:`複製`,delete:`削除`,reorder:`並び替え`,cancel:`キャンセル`,done:`完了`,save:`保存`,saving:`保存中…`,publish:`公開`,publishing:`公開中…`,rename:`名前を変更`,update:`更新`,replace:`差し替え`,add:`追加`,remove:`削除`,remove_x:`{$name} を削除`,clear:`クリア`,expand:`広げる`,expand_all:`すべて広げる`,collapse:`折り畳む`,collapse_all:`すべて折り畳む`,insert:`挿入`,restore:`復元`,discard:`破棄`,searching:`検索中…`,no_results:`結果が見つかりませんでした。`,global:`グローバル`,primary:`プライマリー`,secondary:`セカンダリー`,collection:`コレクション`,folder:`フォルダー`,api_key:`API キー`,details:`詳細`,back:`戻る`,loading:`読み込み中…`,later:`後で`,slug:`スラッグ`,singleton:`シングルトン`,singletons:`シングルトン`,clipboard_error:`データのコピー中に問題が発生しました。`,welcome_message:`{$name} へようこそ`,powered_by:`Powered by {$name}`,loading_cms_config:`CMS 設定を読み込んでいます…`,loading_site_data:`サイトデータを読み込んでいます…`,loading_site_data_error:`サイトデータの読み込み中にエラーが発生しました。`,sign_in_with_x:`{$service} にログイン`,sign_in_using_access_token:`アクセストークンを使用してログイン`,sign_in_using_access_token_description:`以下にトークンを入力してください。レポジトリコンテンツへの読み取り・書き込みアクセスが必要です。`,sign_in_using_access_token_link:`<a>{$service} ユーザー設定ページ</a> でトークンを生成できます。`,personal_access_token:`個人用アクセストークン`,authorizing:`認証中…`,signing_in:`ログイン中…`,work_with_local_repo:`ローカルレポジトリで作業`,work_with_local_repo_description:`ダイアログが表示されたら、「{$repo}」レポジトリのルートディレクトリを選択してください。`,work_with_local_repo_description_no_repo:`ダイアログが表示されたら、Git レポジトリのルートディレクトリを選択してください。`,work_with_test_repo:`テストレポジトリで作業`,sign_in_error:{not_project_root:`選択されたフォルダーはレポジトリのルートディレクトリではありません。再度お試しください。`,picker_dismissed:`レポジトリのルートディレクトリを選択できませんでした。再度お試しください。`,authentication_aborted:`認証が中断されました。再度お試しください。`,invalid_token:`入力されたトークンが無効です。確認して再度お試しください。`,UNSUPPORTED_BACKEND:`この認証アプリはお使いの Git バックエンドに対応していません。`,UNSUPPORTED_DOMAIN:`この認証アプリではお使いのドメインの使用は許可されていません。`,MISCONFIGURED_CLIENT:`OAuth アプリのクライアント ID またはシークレットが設定されていません。`,AUTH_CODE_REQUEST_FAILED:`認証コードを取得できませんでした。後で再度お試しください。`,CSRF_DETECTED:`CSRF 攻撃の可能性が検出されたため、認証フローは中断されました。`,TOKEN_REQUEST_FAILED:`アクセストークンを要求できませんでした。後で再度お試しください。`,TOKEN_REFRESH_FAILED:`アクセストークンの更新に失敗しました。後で再度お試しください。`,MALFORMED_RESPONSE:`サーバーから不正なデータが返されました。後で再度お試しください。`},backend_unsupported_version:`{$name} バックエンドには {$name} {$version} 以降のバージョンが必要です。`,repository_no_access:`あなたには「{$repo}」レポジトリへのアクセス権がありません。`,repository_not_found:`「{$repo}」レポジトリは存在しません。`,repository_empty:`「{$repo}」レポジトリにはブランチがありません。`,branch_not_found:`「{$repo}」レポジトリに「{$branch}」ブランチは存在しません。`,unexpected_error:`予期せぬエラー`,entry_parse_errors:`エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。`,visit_live_site:`管理対象サイトを開く`,switch_page:`ページを切り替え`,search_placeholder_contents:`コンテンツを検索…`,search_placeholder_assets:`アセットを検索…`,search_placeholder_all:`コンテンツとアセットを検索…`,create_entry_or_assets:`エントリーまたはアセットを作成`,publish_changes:`変更を公開`,publishing_changes:`変更を公開しています…`,publishing_changes_failed:`変更を公開できませんでした。後で再度お試しください。`,show_notifications:`通知を表示`,notifications:`通知`,show_account_menu:`アカウントメニューを表示`,account:`アカウント`,live_site:`管理対象サイト`,git_repository:`Git レポジトリ`,settings:`設定`,cms_config:`CMS 設定`,show_help_menu:`ヘルプメニューを表示`,help:`ヘルプ`,keyboard_shortcuts:`キーボードショートカット`,documentation:`ドキュメンテーション`,release_notes:`リリースノート`,announcements:`お知らせ`,version_x:`バージョン {$version}`,report_issue:`問題を報告`,share_feedback:`フィードバックを共有`,get_help:`サポート`,join_discord:`Discord チャンネルに参加`,bluesky:`Bluesky でフォロー`,mobile_promo_title:`Sveltia CMS がモバイルに対応しました!`,mobile_promo_button:`試してみる`,update_available:`Sveltia CMS の最新版が利用可能です。`,update_now:`今すぐ更新`,backend_status:{minor_incident:`{$service} で軽微な障害が発生しています。ワークフローに潜在的な影響が及ぶ可能性があります。`,major_incident:`{$service} で重大な障害が発生しています。状況が改善されるまで待った方が良いかもしれません。`},content_library:`コンテンツライブラリ`,asset_library:`アセットライブラリ`,asset_location:{repository:`あなたのサイト`,external:`外部の場所`,stock_photos:`ストックフォト`},collection_assets:`コレクションアセット`,entry_list:`エントリーリスト`,file_list:`ファイルリスト`,asset_list:`アセットリスト`,x_collection:`「{$collection}」コレクション`,x_asset_folder:`「{$folder}」アセットフォルダー`,viewing_collection_list:`コレクションリストを表示しています。`,viewing_asset_folder_list:`アセットフォルダーリストを表示しています。`,viewing_x_collection:`.input {$count :integer} .match $count 0 {{「{$collection}」コレクションを表示しています。ここにはまだエントリーがありません。}} one {{「{$collection}」コレクションを表示しています。ここにはひとつのエントリーがあります。}} * {{「{$collection}」コレクションを表示しています。ここには {$count} 個のエントリーがあります。}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{「{$folder}」アセットフォルダーを表示しています。ここにはまだアセットがありません。}} one {{「{$folder}」アセットフォルダーを表示しています。ここにはひとつのアセットがあります。}} * {{「{$folder}」アセットフォルダーを表示しています。ここには {$count} 個のアセットがあります。}}`,singleton_selected_announcement:`「{$file}」ファイルを編集するには Enter キーを押してください。`,collection_not_found:`コレクションが見つかりませんでした`,file_not_found:`ファイルが見つかりませんでした`,x_of_x_selected:`{$total} 個のうち {$selected} 個を選択中`,switch_view:`ビューを切り替え`,list_view:`リストビュー`,grid_view:`グリッドビュー`,switch_to_list_view:`リストビューに切り替え`,switch_to_grid_view:`グリッドビューに切り替え`,sort:`表示順`,sorting_options:`表示順オプション`,sort_keys:{none:`なし`,name:`名前`,slug:`スラッグ`,commit_author:`更新者`,commit_date:`更新日時`,_summary:`サマリー`,_manual:`手動`},ascending:`{$label} (A–Z)`,ascending_date:`{$label} (古い順)`,descending:`{$label} (Z–A)`,descending_date:`{$label} (新しい順)`,filter:`絞り込み`,filtering_options:`絞り込みオプション`,group:`グループ化`,grouping_options:`グループ化オプション`,type:`種類`,all:`すべて`,image:`画像`,video:`動画`,audio:`音声`,document:`書類`,other:`その他`,show_assets:`アセットを表示`,hide_assets:`アセットを隠す`,show_info:`情報を表示`,hide_info:`情報を隠す`,all_assets:`すべてのアセット`,global_assets:`グローバルアセット`,entry_not_found:`エントリーが見つかりませんでした。`,creating_entries_disabled_by_admin:`このコレクションへの新しいエントリーの作成は、管理者によって無効化されています。`,creating_entries_disabled_by_quota:`このコレクションは最大の {$quota} エントリーに達したため、新しいエントリーを作成することはできません。`,creating_entries_nearing_quota:`このコレクションは {$quota} エントリーの上限に近づいています。あと {$remaining} 件のエントリーしか作成できません。`,back_to_collection:`コレクションへ戻る`,collection_list:`コレクションリスト`,back_to_collection_list:`コレクションリストへ戻る`,asset_folder_list:`アセットフォルダーリスト`,back_to_asset_folder_list:`アセットフォルダーリストへ戻る`,search_results:`検索結果`,search_results_for_x:`「{$terms}」の検索結果`,viewing_entry_search_results:`.input {$count :integer} .match $count 0 {{「{$terms}」の検索結果を表示しています。エントリーは見つかりませんでした。}} * {{「{$terms}」の検索結果を表示しています。{$count} 件のエントリーが見つかりました。}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{「{$terms}」の検索結果を表示しています。アセットは見つかりませんでした。}} * {{「{$terms}」の検索結果を表示しています。{$count} 件のアセットが見つかりました。}}`,x_entries:`{$count} 個のエントリー`,x_assets:`{$count} 個のアセット`,no_files_found:`ファイルは見つかりませんでした。`,no_entries_found:`エントリーは見つかりませんでした。`,upload_assets:`新しいアセットをアップロード`,edit_options:`編集オプション`,show_edit_options:`編集オプションを表示`,edit_asset:`アセットを編集`,edit_x:`{$name} を編集`,wrap_long_lines:`長い行を折り返す`,rename_asset:`アセットの名前を変更`,rename_x:`{$name} の名前を変更`,enter_new_name_for_asset:`.input {$count :integer} .match $count 0 {{新しい名前を以下に入力してください。}} one {{新しい名前を以下に入力してください。このアセットを使用している 1 個のエントリーも更新されます。}} * {{新しい名前を以下に入力してください。このアセットを使用している {$count} 個のエントリーも更新されます。}}`,enter_new_name_for_asset_error:{empty:`ファイル名を空白にすることはできません。`,character:`ファイル名に特別な文字を含めることはできません。`,duplicate:`このファイル名は他のアセットに使われています。`},replace_asset:`アセットを差し替え`,replace_x:`{$name} を差し替え`,click_to_browse:`クリックして参照…`,tap_to_browse:`タップして参照…`,drop_files_or_click_to_browse:`ここにファイルをドロップするかクリックして参照…`,drop_files_or:`ここにファイルをドロップするか`,drop_image_files_or:`ここに画像ファイルをドロップするか`,browse:`参照`,paste:`貼り付け`,paste_image:`画像を貼り付け`,no_image_in_clipboard:`クリップボードに画像が見つかりません。`,clipboard_access_denied:`クリップボードへのアクセスが拒否されました。`,drop_files_here:`ここにファイルをドロップ`,unsupported_file_type:`非対応ファイル形式`,dropped_file_type_mismatch:`ドロップされたファイルは {$type} 形式ではありません。再度お試しください。`,dropped_image_type_mismatch:`ドロップされたファイルはサポートされていません。AVIF、GIF、JPEG、PNG、WebP または SVG 形式の画像のみが受け入れられます。再度お試しください。`,choose_files:`ファイルを選択`,delete_assets:`アセットを削除`,delete_selected_assets:`選択されたアセットを削除`,confirm_deleting_this_asset:`このアセットを削除してもよろしいですか?`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{選択されたアセットを削除してもよろしいですか?}} * {{選択された {$count} 個のアセットを削除してもよろしいですか?}}`,confirm_deleting_all_assets:`すべてのアセットを削除してもよろしいですか?`,delete_entries:`エントリーを削除`,delete_selected_entries:`選択されたエントリーを削除`,confirm_deleting_this_entry:`このエントリーを削除してもよろしいですか?`,confirm_deleting_this_entry_with_assets:`このエントリーと関連アセットを削除してもよろしいですか?`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{選択されたエントリーを削除してもよろしいですか?}} * {{選択された {$count} 個のエントリーを削除してもよろしいですか?}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{選択されたエントリーと関連アセットを削除してもよろしいですか?}} * {{選択された {$count} 個のエントリーと関連アセットを削除してもよろしいですか?}}`,confirm_deleting_all_entries:`すべてのエントリーを削除してもよろしいですか?`,confirm_deleting_all_entries_with_assets:`すべてのエントリーと関連アセットを削除してもよろしいですか?`,reorder_entries:`エントリーを並び替え`,done_reordering_entries:`エントリーの並び替えを完了`,cancel_reordering_entries:`エントリーの並び替えをキャンセル`,saving_reorder_failed:`エントリーの並び替えを保存できませんでした。再度お試しください。`,processing_files:`ファイルを処理しています。これには時間がかかる場合があります。`,uploading_files:`アップロード対象ファイル`,confirm_replacing_file:`「{$name}」を以下のファイルと差し替えてもよろしいですか?`,confirm_uploading_files:`.input {$count :integer} .match $count one {{以下のファイルを「{$folder}」フォルダーに保存してもよろしいですか?}} * {{以下の {$count} 個のファイルを「{$folder}」フォルダーに保存してもよろしいですか?}}`,oversized_files:`サイズ超過ファイル`,warning_oversized_files:`.input {$count :integer} .match $count one {{このファイルは最大サイズ {$size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}} * {{これらのファイルは最大サイズ {$size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}}`,uploading_files_progress:`ファイルをアップロード中…`,uploading_files_failed:`ファイルをアップロードできませんでした`,file_meta:`{$type} · {$size}`,file_meta_converted_from_x:`({$type} から変換)`,no_entries_created:`このコレクションにはまだエントリーがありません。`,create_new_entry:`新しいエントリーを作成`,entry:`エントリー`,index_file:`インデックスファイル`,no_files_in_collection:`このコレクションにはファイルがありません。`,asset_info:`アセット情報`,select_asset_show_info:`アセットを選択すると情報が表示されます。`,duplicate_entry:`エントリーを複製`,entry_duplicated:`エントリーが複製され、新しい下書きとなりました。`,entry_validation_errors:`.input {$count :integer} .match $count one {{ひとつのフィールドにエラーがあります。エントリーを保存するには問題を修正してください。}} * {{{$count} 個のフィールドにエラーがあります。エントリーを保存するには問題を修正してください。}}`,entry_saved:`.input {$count :integer} .match $count one {{エントリーが保存されました。}} * {{{$count} 件のエントリーが保存されました。}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{エントリーが保存、公開されました。}} * {{{$count} 件のエントリーが保存、公開されました。}}`,entries_deleted:`.input {$count :integer} .match $count one {{エントリーが削除されました。}} * {{{$count} 個のエントリーが削除されました。}}`,assets_saved:`.input {$count :integer} .match $count one {{アセットが保存されました。}} * {{{$count} 個のアセットが保存されました。}}`,asset_saved_and_published:`アセットが保存、公開されました。`,assets_saved_and_published:`.input {$count :integer} .match $count one {{アセットが保存、公開されました。}} * {{{$count} 個のアセットが保存、公開されました。}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{アセット URL がクリップボードにコピーされました。}} * {{{$count} 個のアセット URL がクリップボードにコピーされました。}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{アセットファイルパスがクリップボードにコピーされました。}} * {{{$count} 個のアセットファイルパスがクリップボードにコピーされました。}}`,asset_data_copied:`.input {$count :integer} .match $count one {{アセットファイルがクリップボードにコピーされました。}} * {{{$count} 個のアセットファイルがクリップボードにコピーされました。}}`,assets_downloaded:`.input {$count :integer} .match $count one {{アセットファイルがダウンロードされました。}} * {{{$count} 個のアセットファイルがダウンロードされました。}}`,assets_moved:`.input {$count :integer} .match $count one {{アセットが移動されました。}} * {{{$count} 個のアセットが移動されました。}}`,assets_renamed:`.input {$count :integer} .match $count one {{アセットの名前が変更されました。}} * {{{$count} 個のアセットの名前が変更されました。}}`,assets_deleted:`.input {$count :integer} .match $count one {{アセットが削除されました。}} * {{{$count} 個のアセットが削除されました。}}`,content_editor:`コンテンツエディター`,restore_backup_title:`下書きを復元`,restore_backup_description:`このエントリーには {$datetime} に保存されたバックアップがあります。その編集済みの下書きを復元しますか?`,draft_backup_saved:`下書きのバックアップが保存されました。`,draft_backup_restored:`下書きのバックアップが復元されました。`,draft_backup_deleted:`下書きのバックアップが削除されました。`,cancel_editing:`編集をキャンセル`,create_entry_title:`{$name} を作成`,create_entry_announcement:`「{$collection}」コレクションの新しいエントリーを作成しています。`,edit_entry_title:`{$collection} › {$entry}`,edit_entry_announcement:`「{$collection}」コレクションの「{$entry}」エントリーを編集しています。`,edit_file_announcement:`「{$collection}」コレクションの「{$file}」ファイルを編集しています。`,edit_singleton_announcement:`「{$file}」ファイルを編集しています。`,save_and_publish:`保存して公開`,save_without_publishing:`公開せずに保存`,show_editor_options:`エディターオプションを表示`,editor_options:`エディターオプション`,show_preview:`プレビューを表示`,sync_scrolling:`スクロールを同期`,switch_locale:`ロケールを切り替え`,locale_content_disabled_short:`(無効)`,locale_content_error_short:`(エラー)`,edit:`編集`,preview:`プレビュー`,swap_panes:`ペインを入れ替える`,edit_x_locale:`{$locale} コンテンツを編集`,preview_x_locale:`{$locale} コンテンツをプレビュー`,content_preview:`コンテンツプレビュー`,show_content_options_x_locale:`{$locale} コンテンツのオプションを表示`,content_options_x_locale:`{$locale} コンテンツのオプション`,x_field:`「{$field}」フィールド`,show_field_options:`フィールドオプションを表示`,field_options:`フィールドオプション`,unsupported_field_type_x:`非対応フィールドタイプ: {$name}`,enable_x_locale:`{$locale} を有効化`,reenable_x_locale:`{$locale} を再度有効化`,disable_x_locale:`{$locale} を無効化`,locale_x_has_been_disabled:`{$locale} コンテンツは無効化されています。`,locale_x_now_disabled:`{$locale} コンテンツは無効化されました。エントリーを保存する際に削除されます。`,view_in_repository:`レポジトリ内で見る`,view_on_x:`{$service} で見る`,view_on_live_site:`管理対象サイトで見る`,copy_from:`他の言語からコピー…`,copy_from_x:`{$locale} からコピー`,translation_options:`翻訳オプション`,translate:`翻訳`,translate_fields:`フィールドを翻訳`,translate_from:`他の言語から翻訳…`,translate_from_x:`{$locale} から翻訳`,revert_changes:`変更を取り消す`,revert_all_changes:`すべての変更を取り消す`,edit_slug:`スラッグを編集`,edit_slug_warning:`スラッグを変更すると、エントリーへの内部・外部リンクが壊れる可能性があります。現在のところ、Sveltia CMS は Relation フィールドで作成された参照を更新しないため、そのような参照は他のリンクとともに手動で更新する必要があります。`,edit_slug_error:{empty:`スラッグは空白にはできません。`,duplicate:`このスラッグは他のエントリーに使われています。`},required:`必須`,editor:{translation:{none:`翻訳されたフィールドはありません。`,started:`翻訳中…`,error:`翻訳中に問題が発生しました。`,complete:`.input {$count :integer} .match $count 0 {{{$source} から翻訳されたフィールドはありません。}} one {{{$source} からフィールドを翻訳しました。}} * {{{$source} から {$count} 個のフィールドを翻訳しました。}}`},copy:{none:`コピーされたフィールドはありません。`,complete:`.input {$count :integer} .match $count 0 {{{$source} からコピーされたフィールドはありません。}} one {{{$source} からフィールドをコピーしました。}} * {{{$source} から {$count} 個のフィールドをコピーしました。}}`}},validation:{value_missing:`この項目は必須です。`,range_underflow:{"datetime-local":`日時は {$min} かそれ以降でなければなりません。`,date:`日付は {$min} かそれ以降でなければなりません。`,time:`時刻は {$min} かそれ以降でなければなりません。`,number:`値は {$min} 以上でなければなりません。`,select:`少なくとも {$min} 個の項目を選択してください。`,add:`少なくとも {$min} 個の項目を追加してください。`},range_overflow:{"datetime-local":`日時は {$max} かそれ以前でなければなりません。`,date:`日付は {$max} かそれ以前でなければなりません。`,time:`時刻は {$max} かそれ以前でなければなりません。`,number:`値は {$max} 以下でなければなりません。`,select:`これ以上選択できる項目はありません。最大は {$max} 個です。`,add:`これ以上追加できる項目はありません。最大は {$max} 個です。`},too_short:`少なくとも {$min} 文字は入力してください。`,too_long:`{$max} 文字を超える入力はできません。`,type_mismatch:{number:`数値を入力してください。`,email:`正しいメールアドレスを入力してください。`,url:`正しい URL を入力してください。`}},entry_sidebar:{sidebar_panels:`サイドバーパネル`,validation:{title:`バリデーション`,placeholder:`検証結果がここに表示されます。`,no_errors_found:`エラーは見つかりませんでした。`},history:{title:`履歴`,fetch_failed:`履歴を読み込めませんでした。`,no_history:`履歴が見つかりませんでした。`},backlinks:{title:`バックリンク`,no_entries:`このエントリーを参照しているエントリーはありません。`}},saving_entry:{error:{title:`エラー`,description:`エントリーを保存中に問題が発生しました。後で再度お試しください。`}},find_place:`場所を検索`,use_your_location:`現在地を使用`,geolocation_error_title:`位置情報エラー`,geolocation_error_body:`あなたの現在地を取得できませんでした。`,geolocation_unsupported:`お使いのブラウザーは位置情報 API をサポートしていません。`,viewing_x_asset_details:`「{$name}」アセットの詳細を表示しています。`,asset_editor:`アセットエディター`,preview_unavailable:`プレビューは表示できません`,public_urls:`公開 URL`,file_paths:`ファイルパス`,file_data:`ファイルデータ`,kind:`種類`,size:`サイズ`,dimensions:`大きさ`,duration:`再生時間`,used_in:`使われているエントリー`,created_date:`作成日時`,location:`場所`,map_lat_lng:`緯度 {$latitude}、経度 {$longitude} の地図`,remove_this_item:`このアイテムを削除`,move_up:`上へ移動`,move_down:`下へ移動`,add_x:`{$name} を追加`,add_item_above:`上にアイテムを追加`,add_item_below:`下にアイテムを追加`,select_list_type:`リストタイプを選択`,opacity:`透明度`,unselected_option:`(なし)`,assets_dialog:{title:{file:`ファイルを選択`,image:`画像を選択`},search_for_file:`ファイルを検索`,search_for_image:`画像を検索`,locations:`場所`,folder:{field:`フィールドアセット`,entry:`エントリーアセット`,file:`ファイルアセット`,collection:`コレクションアセット`,global:`グローバルアセット`},error:{invalid_key:`あなたの API キーは正しくないか期限切れです。確認の上、再度お試しください。`,search_fetch_failed:`アセットを検索中に問題が発生しました。後で再度お試しください。`,image_fetch_failed:`選択されたアセットをダウンロード中に問題が発生しました。後で再度お試しください。`},available_images:`利用可能な画像`,enter_url:`URL を入力`,enter_file_url:`ファイルの URL を入力:`,enter_image_url:`画像の URL を入力:`,large_file:{title:`大きなファイル`},photo_credit:{title:`写真クレジット`,description:`可能であれば以下のクレジットを使ってください:`},unsaved:`未保存`},character_counter:{min_max:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最小: {$min}。最大 {$max}。}} * {{{$count} 文字入力されています。最小: {$min}。最大 {$max}。}}`,min:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最小: {$min}}} * {{{$count} 文字入力されています。最小: {$min}。}}`,max:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最大: {$max}。}} * {{{$count} 文字入力されています。最大: {$max}。}}`},youtube_video_player:`YouTube 動画プレーヤー`,today:`今日`,now:`現在時刻`,editor_components:{image:`画像`,src:`ソース`,alt:`代替テキスト`,title:`タイトル`,link:`リンク`},key_value:{key:`キー`,value:`値`,action:`アクション`,empty_key:`キーは必須です。`,duplicate_key:`キーが重複しています。`},boolean:{true:`はい`,false:`いいえ`},cloud_storage:{invalid:`このサービスは正しく設定されていません。`,auth:{api_key:{key_label:`API キー`,initial:`{$service} の {$key} を入力してください。`,requested:`検証中…`,error:`入力された {$key} が無効です。確認の上、再度お試しください。`},password:{initial:`{$service} のパスワードを入力してください。`,requested:`ログイン中…`,error:`ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。`}},cloudinary:{iframe_title:`Cloudinary メディアライブラリ`,activate:{button_label:`Cloudinary を有効化`,description:`ログイン後、再度 Sign In ボタンをクリックして続行してください。`},auth_key_label:`API Secret`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`シークレットアクセスキー`},cloudflare_r2:{auth_key_label:`シークレットアクセスキー`},digitalocean_spaces:{auth_key_label:`シークレットアクセスキー`}},config:{errors:`CMS 設定に問題が見つかりました。問題を解決してから再度お試しください。`,error_locator:{collection:`{$collection} コレクション`,file:`{$file} ファイル`,field:"`{$field}` フィールド"},error:{no_secure_context:`Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。`,insecure_urls:`設定ファイルの URL は HTTPS プロトコルまたはローカルホストアドレスを使用する必要があります。`,fetch_failed:`設定ファイルを読み込めませんでした。`,fetch_failed_not_ok:`HTTP レスポンスがステータス {$status} で返されました。`,fetch_failed_with_manual_init:"設定ファイルを取得できませんでした。`config.yml` ファイルの読み込みを防ぐには、`CMS.init()` に渡される設定オブジェクトに [`load_config_file: false`](https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration) を追加してください。",parse_failed:`設定ファイルを解析できませんでした。`,parse_failed_invalid_object:`設定ファイルが有効な JavaScript オブジェクトではありません。`,parse_failed_unsupported_type:`設定ファイルが有効なファイル形式ではありません。サポートされているのは YAML、TOML と JSON のみです。`,no_collection:`コレクションが定義されていません。`,missing_backend:`バックエンドが定義されていません。`,missing_backend_name:`バックエンド名が定義されていません。`,unsupported_known_backend:`{$name} バックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_deprecated_backend:`廃止予定の {$name} バックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_custom_backend:`カスタムバックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_backend_suggestion:`[サポートされているバックエンド](https://sveltiacms.app/en/docs/backends#supported-backends) のいずれかを使用してください。`,missing_repository:`レポジトリが定義されていません。`,invalid_repository:`設定されているレポジトリが正しくありません。この設定は「owner/repo」形式でなければなりません。`,oauth_implicit_flow:`設定されている認証方式 (暗黙的フロー) は Sveltia CMS では非対応です。代わりに他の [認証方法](https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication) を使用してください。`,github_pkce_unsupported:`GitHub の制約により PKCE 認証はまだサポートされていません。代わりに他の [認証方法](https://sveltiacms.app/en/docs/backends/github#authentication) を使用してください。`,oauth_no_app_id:`OAuth アプリケーション ID が定義されていません。`,missing_media_folder:`メディアフォルダーが定義されていません。`,invalid_media_folder:`設定されているメディアフォルダーが正しくありません。この設定は文字列でなければなりません。`,invalid_public_folder:`設定されているパブリックフォルダーが正しくありません。この設定は文字列でなければなりません。`,public_folder_relative_path:`設定されているパブリックフォルダーが正しくありません。この設定は「/」で始まる絶対パスでなければなりません。`,public_folder_absolute_url:`パブリックフォルダーオプションの絶対 URL は Sveltia CMS では非対応です。`,invalid_collection_no_options:"コレクションは `folder`、`files`、`divider` オプションのいずれかを定義する必要があります。",invalid_collection_multiple_options:"コレクションは `folder`、`files`、`divider` オプションを同時に持つことはできません。",file_format_mismatch:"拡張子 `{$extension}` は `{$format}` 形式と一致しません。",invalid_slug_slash:"スラッグテンプレート `{$slug}` は無効です。スラッシュを含めることはできません。エントリーをサブフォルダーに整理するには、`slug` の代わりに `path` オプションを使用してください。",missing_collection_name:"コレクション {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_collection_name:"コレクション名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_collection_name:"コレクション名は一意でなければなりませんが、`{$name}` が複数回使用されています。",missing_collection_file_name:"コレクションファイル {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_collection_file_name:"コレクションファイル名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_collection_file_name:"コレクションファイル名は一意でなければなりませんが、`{$name}` が複数回使用されています。",collection_no_fields:`コレクションには少なくとも 1 つのフィールドを定義する必要があります。`,collection_file_no_fields:`コレクションファイルには少なくとも 1 つのフィールドを定義する必要があります。`,missing_field_name:"フィールド {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_field_name:"フィールド名 `{$name}` は無効です。特殊文字を含めることはできません。ネストされたフィールドを作成したい場合は、[ドット表記ではなくオブジェクトフィールドを使用してください](https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions)。",duplicate_field_name:"フィールド名は一意でなければなりませんが、`{$name}` が複数回使用されています。",missing_variable_type:"変数タイプ {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_variable_type:"変数タイプ名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_variable_type:"変数タイプ名は一意でなければなりませんが、`{$name}` が複数回使用されています。",date_field_type:"Sveltia CMS では非推奨の Date フィールドタイプはサポートされていません。代わりに `type: date` オプション付きの DateTime フィールドタイプを使用してください。",unsupported_deprecated_option:"Sveltia CMS では非推奨の `{$prop}` オプションはサポートされていません。代わりに `{$newProp}` オプションを使用してください。",allow_multiple:"Sveltia CMS では `allow_multiple` オプションはサポートされていません。代わりにデフォルトで `false` の `multiple` オプションを使用してください。",invalid_list_field:"List フィールドは `field`、`fields`、`types` オプションを同時に持つことはできません。",invalid_list_variable_type:"List フィールドの変数タイプが無効です。`widget` オプションは `{$widget}` に設定されていますが、`object` でなければなりません。",invalid_object_field:"Object フィールドは `fields` と `types` オプションを同時に持つことはできません。",object_field_missing_fields:"Object フィールドは `fields` または `types` オプションのいずれかを定義する必要があります。",relation_field_invalid_collection:"参照されている `{$collection}` コレクションは無効であるか定義されていません。",relation_field_invalid_collection_file:"参照されている `{$file}` ファイルは無効であるか定義されていません。",relation_field_missing_file_name:"ファイルコレクションへの参照には `file` オプションを定義する必要があります。",relation_field_invalid_value_field:"参照されている値フィールド `{$field}` は無効であるか定義されていません。",unexpected:`予期せぬ問題`},warning:{oauth_no_app_id:`OAuth アプリケーション ID が定義されていません。ユーザーがログインするにはアクセストークンを入力する必要があります。`,editorial_workflow_unsupported:`Sveltia CMS ではまだエディトリアルワークフローはサポートされていません。`,open_authoring_unsupported:`Sveltia CMS ではまだオープンオーサリングはサポートされていません。`,nested_collections_unsupported:`Sveltia CMS ではネストされたコレクションはまだサポートされていません。`,unsupported_ignored_option:"`{$prop}` オプションは Sveltia CMS ではサポートされていません。このオプションは無視されます。"},compatibility_link:`詳しくは互換性情報をご覧ください: https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`},local_workflow:{indicator:`ローカル`,unsupported_browser:`お使いのブラウザーはローカルワークフローに対応していません。代わりに Chrome か Edge を使ってください。`,disabled:`お使いのブラウザーではローカルワークフローが無効化されています。<a>有効化する方法はこちら</a>。`},status:{drafts:`下書き`,in_review:`レビュー中`,ready:`公開可`},categories:`カテゴリ`,prefs:{changes:{api_key_saved:`API キーが保存されました。`,api_key_removed:`API キーが削除されました。`,api_key_invalid:`入力された API キーは無効です。再度確認してお試しください。`},error:{permission_denied:`ブラウザーストレージ (Cookie) アクセスが拒否されました。許可設定を確認の上、再度お試しください。`},appearance:{title:`アピアランス`,theme:`テーマ`,select_theme:`テーマを選択`},theme:{auto:`自動`,dark:`ダーク`,light:`ライト`},language:{title:`言語`,ui_language:{title:`ユーザーインターフェース言語`,select_language:`言語を選択`}},contents:{title:`コンテンツ`,editor:{title:`エディター`,use_draft_backup:{switch_label:`エントリーの下書きを自動的にバックアップする`},close_on_save:{switch_label:`下書き保存後にエディターを閉じる`},close_with_escape:{switch_label:`Escape キーでエディターを閉じる`}}},i18n:{title:`国際化`,translators:{default:{title:`デフォルト翻訳サービス`,select_service:`サービスを選択`},api_keys:{title:`翻訳サービス API キー`,description:`<a>翻訳サービス</a> の API キーを管理します。`},field_label:`{$service} キー`,description:`<a {$homeHref}>{$service}</a> にユーザー登録して、<a {$apiKeyHref}>発行されたキー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。`}},media:{title:`メディア`,stock_photos:{api_keys:{title:`無料画像素材サービス API キー`,description:`<a>無料画像素材サービス</a> の API キーを管理します。`},field_label:`{$service} API キー`,description:`<a {$homeHref}>{$service} API</a> にユーザー登録して、<a {$apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。`,credit:`写真提供: {$service}`,no_services:`利用可能な <a>無料画像素材サービス</a> はありません。`},cloud_storage:{api_keys:{title:`クラウドストレージサービス API キー`,description:`<a>クラウドストレージサービス</a> の API キーを管理します。`},field_label:`{$service} API キー`,no_services:`利用可能な <a>クラウドストレージサービス</a> はありません。`}},accessibility:{title:`アクセシビリティ`,underline_links:{title:`リンクに下線を付ける`,description:`エントリープレビューやユーザーインターフェイスラベル内のリンクに下線を表示します。`,switch_label:`常に下線を付ける`}},advanced:{title:`詳細`,beta:{title:`ベータ機能`,description:`不安定あるいは未ローカライズの可能性がある、いくつかのベータ機能を有効化します。`,switch_label:`ベータプログラムに参加する`},developer_mode:{title:`開発者モード`,description:`詳細なコンソールログやネイティブコンテキストメニューなど、いくつかの開発者向け機能を有効化します。`,switch_label:`開発者モードを有効にする`},deploy_hook:{title:`デプロイフック`,description:`「変更を公開」を選択して手動でデプロイを実行する際に呼び出すウェブフック URL を入力してください。GitHub Actions を使用する場合は空欄のままで構いません。`,url:{field_label:`フック URL`,saved:`フック URL が保存されました。`,removed:`フック URL が削除されました。`},auth:{field_label:`認証ヘッダー (例: Bearer <token>) (オプション)`,saved:`認証ヘッダーが保存されました。`,removed:`認証ヘッダーが削除されました。`}}}},keyboard_shortcuts_:{view_content_library:`コンテンツライブラリを表示`,view_asset_library:`アセットライブラリを表示`,search:`エントリーとアセットを検索`,create_entry:`新しいエントリーを作成`,save_entry:`エントリーを保存`,cancel_editing:`エントリーの編集をキャンセル`},file_type_labels:{avif:`AVIF 画像`,bmp:`Bitmap 画像`,gif:`GIF 画像`,ico:`アイコン`,jpeg:`JPEG 画像`,jpg:`JPEG 画像`,png:`PNG 画像`,svg:`SVG 画像`,tif:`TIFF 画像`,tiff:`TIFF 画像`,webp:`WebP 画像`,avi:`AVI 動画`,m4v:`MP4 動画`,mov:`QuickTime 動画`,mp4:`MP4 動画`,mpeg:`MPEG 動画`,mpg:`MPEG 動画`,ogg:`Ogg 動画`,ogv:`Ogg 動画`,ts:`MPEG 動画`,webm:`WebM 動画`,"3gp":`3GPP 動画`,"3g2":`3GPP2 動画`,aac:`AAC 音声`,mid:`MIDI`,midi:`MIDI`,m4a:`MP4 音声`,mp3:`MP3 音声`,oga:`Ogg 音声`,opus:`OPUS 音声`,wav:`WAV 音声`,weba:`WebM 音声`,csv:`CSV スプレッドシート`,doc:`Word ドキュメント`,docx:`Word ドキュメント`,odp:`OpenDocument プレゼンテーション`,ods:`OpenDocument スプレッドシート`,odt:`OpenDocument テキスト`,pdf:`PDF ドキュメント`,ppt:`PowerPoint プレゼンテーション`,pptx:`PowerPoint プレゼンテーション`,rtf:`リッチテキストドキュメント`,xls:`Excel スプレッドシート`,xlsx:`Excel スプレッドシート`,html:`HTML テキスト`,js:`JavaScript`,json:`JSON テキスト`,md:`Markdown テキスト`,toml:`TOML テキスト`,yaml:`YAML テキスト`,yml:`YAML テキスト`},file_size_units:{b:`{$size} バイト`,kb:`{$size} KB`,mb:`{$size} MB`,gb:`{$size} GB`,tb:`{$size} TB`}}})),k6,A6,j6=s((()=>{Bue(),Vue(),Z(),Pp(),ip(),nN(),k6=rp(()=>kh.current),A6=()=>{Object.entries(Object.assign({"/src/lib/locales/en.yaml":D6,"/src/lib/locales/ja.yaml":O6})).forEach(([e,t])=>{let n=Op(e).filename;Th(n,t)}),jh({fallbackLocale:`en`,initialLocale:A(tN).locale||(Ah()??``).split(`-`)[0]||`en`})}})),M6,Hue=s((()=>{Z(),ip(),j6(),EF(),M6=dn([dF,k6],([e],t)=>{let n=[`name`];e.every(e=>!!e.commitAuthor)&&n.push(`commit_author`),e.every(e=>!!e.commitDate)&&n.push(`commit_date`),t(n.map(e=>({key:e,label:X(`sort_keys.${e}`)})))})}));function Uue(e,t){O(t,!0);let n=()=>j(f1,`$listedAssets`,c),r=()=>j(VA,`$isSmallScreen`,c),i=()=>j(HA,`$isMediumScreen`,c),a=()=>j(p1,`$assetGroups`,c),o=()=>j(M6,`$sortKeys`,c),s=()=>j(d1,`$currentView`,c),[c,l]=hn(),u=M(()=>!!n().length),d=M(()=>n().length>1);{let t=M(()=>X(`asset_list`));i$(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=P6(),c=I(n),l=e=>{{let t=M(()=>Object.values(a()).flat(1));m6(e,{get allItems(){return z(t)},get selectedItems(){return hF}})}};G(c,e=>{r()||i()||e(l)});var f=L(c,2);ZI(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(d));y6(p,{get disabled(){return z(e)},get currentView(){return d1},get sortKeys(){return o()},"aria-controls":`asset-list`})}var m=L(p,2);{let e=M(()=>X(`type`)),t=M(()=>!z(d)),n=M(()=>X(`all`)),r=M(()=>wS.map(e=>({label:X(e),field:`fileType`,pattern:e})));d6(m,{get label(){return z(e)},get disabled(){return z(t)},get currentView(){return d1},get noneLabel(){return z(n)},get filters(){return z(r)},"aria-controls":`asset-list`})}var h=L(m,2);{let e=M(()=>!z(u));S6(h,{get disabled(){return z(e)},get currentView(){return d1},"aria-controls":`asset-list`})}var g=L(h,2),_=e=>{var t=N6(),n=I(t);qI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{UF(e,{name:`info`})},t=M(()=>!z(u)),n=M(()=>!!s().showInfo),i=M(()=>!!s().showInfo),a=M(()=>X(s().showInfo?`hide_info`:`show_info`));lI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get pressed(){return z(n)},"aria-controls":`asset-info`,get"aria-expanded"(){return z(i)},get"aria-label"(){return z(a)},onclick:()=>{d1.update(e=>({...e,showInfo:!s().showInfo}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(g,e=>{r()||i()||e(_)}),U(e,n)},$$slots:{default:!0}})}k(),l()}var N6,P6,Wue=s((()=>{Q(),Y(),Z(),G$(),p6(),v6(),x6(),E6(),EF(),jS(),m1(),Hue(),KA(),N6=V(`<!> <!>`,1),P6=V(`<!> <!> <!> <!> <!> <!>`,1)}));function F6(e,t){K(e,L6);let n=J(t,`primaryToolbar`,3,void 0),r=J(t,`secondaryToolbar`,3,void 0),i=J(t,`mainContent`,3,void 0),a=J(t,`secondarySidebar`,3,void 0),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`primaryToolbar`,`secondaryToolbar`,`mainContent`,`secondarySidebar`]);var s=I6();bs(s,()=>({role:`group`,class:`wrapper`,...o}),void 0,void 0,void 0,`svelte-1x2ldab`);var c=F(s);Eo(c,()=>n()??E);var l=L(c,2),u=F(l),d=F(u);Eo(d,()=>r()??E),Eo(L(d,2),()=>i()??E),D(u),Eo(L(u,2),()=>a()??E),D(l),D(s),U(e,s)}var I6,L6,R6=s((()=>{Q(),Y(),I6=V(`<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>`),L6={hash:`svelte-1x2ldab`,code:`.wrapper.svelte-1x2ldab {flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-primary-background-color);}
|
|
850
|
+
}.list-view.svelte-1sfbolp [role=grid] .grid-cell.image {width:48px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell.image:empty::before {display:block;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);content:"";}`}}));function Aue(e,t){O(t,!0);let n=()=>j(d1,`$currentView`,o),r=()=>j(Rp,`$targetAssetFolder`,o),i=()=>j(p1,`$assetGroups`,o),a=()=>j(f1,`$listedAssets`,o),[o,s]=hn(),c=M(()=>n().type),l=M(r),u=M(()=>!Hp(z(l)));{let t=M(()=>X(`asset_list`));B3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{A3(e,{get disabled(){return z(u)},multiple:!0,onDrop:({files:e})=>{mn(vF,{folder:z(l),files:e})},children:(e,t)=>{var n=H(),r=I(n),o=e=>{{let t=M(()=>X(`assets`));W3(e,{id:`asset-list`,get viewType(){return z(c)},get"aria-label"(){return z(t)},get"aria-rowcount"(){return a().length},children:(e,t)=>{var n=H();mo(I(n),1,()=>Object.entries(i()),([e,t])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=H();eo(I(a),Yx,null,e=>{{let t=M(()=>r()===`*`?void 0:r());DL(e,{get label(){return z(t)},children:(e,t)=>{wR(e,{get items(){return i()},itemKey:`path`,renderItem:(e,t=E)=>{var n=H();oo(I(n),()=>t().sha,e=>{var n=H();eo(I(n),Yx,null,e=>{Oue(e,{get asset(){return t()},get viewType(){return z(c)}})}),U(e,n)}),U(e,n)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}}),U(e,a)}),U(e,n)},$$slots:{default:!0}})}},s=M(()=>Object.values(i()).flat(1).length),l=e=>{z$(e,{children:(e,t)=>{var n=J3(),r=I(n),i=F(r,!0);D(r);var a=L(r,2),o=e=>{{let t=M(()=>X(`upload_assets`));R3(e,{get label(){return z(t)}})}};G(a,e=>{z(u)||e(o)}),R(e=>W(i,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})};G(r,e=>{z(s)?e(o):e(l,-1)}),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}k(),s()}var J3,jue=s((()=>{Q(),Y(),Z(),G$(),Xx(),kue(),L3(),z3(),U3(),q3(),EF(),Up(),m1(),J3=V(`<span role="none"> </span> <!>`,1)})),Y3,X3,Z3=s((()=>{ip(),Y3=un(null),X3=un(``)}));function Q3(e,t){O(t,!0),K(e,t6);let n=()=>j(X3,`$searchTerms`,i),r=()=>j(Y3,`$searchMode`,i),[i,a]=hn(),o=J(t,`onclick`,3,void 0),s=e=>{let t=!!n(),{path:r}=b1(),i=r.startsWith(`/search/`);mn(X3,e),e?w1(`/search/${e}`,{replaceState:i}):t&&i&&T1(`/collections`)},c=N(void 0);ti(()=>{z(c)&&n()!==z(c)?.value&&(z(c).value=n())});var l=e6(),u=F(l),d=e=>{var t=$3(),n=I(t);{let e=M(()=>X(`search_placeholder_${r()}`));lo(n,()=>({"--sui-textbox-placeholder-text-align":`center`})),Ws(OR(n.lastChild,{debounce:!0,keyShortcuts:`Accel+F`,get placeholder(){return z(e)},get onclick(){return o()},oninput:({target:e})=>{s(e.value.trim())},onClear:()=>{s(``)}}),e=>P(c,e,!0),()=>z(c)),D(n)}U(e,t)};G(u,e=>{r()&&e(d)}),D(l),U(e,l),k(),a()}var $3,e6,t6,n6=s((()=>{Q(),Y(),Z(),G$(),D1(),Z3(),$3=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),e6=V(`<div role="none" class="wrapper svelte-lav5fn"><!></div>`),t6={hash:`svelte-lav5fn`,code:`.wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}`}}));function Mue(e,t){O(t,!0);let n=()=>j(Fp,`$allAssetFolders`,o),r=()=>j(VA,`$isSmallScreen`,o),i=()=>j(Lp,`$selectedAssetFolder`,o),a=()=>j(dF,`$allAssets`,o),[o,s]=hn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(kh.current)),u=M(()=>[...n().filter(({typedKeyPath:e})=>e===void 0).sort((e,t)=>Xy(e.collectionName,e.fileName)-Xy(t.collectionName,t.fileName)).sort((e,t)=>qb(e.collectionName)-qb(t.collectionName))]);var d=o6(),f=F(d),p=e=>{var t=i6(),n=I(t),r=F(n),i=F(r,!0);D(r),D(n),Q3(L(n,2),{onclick:e=>{e.preventDefault(),w1(`/search`)}}),R(e=>W(i,e),[()=>X(`assets`)]),U(e,t)};G(f,e=>{r()&&e(p)});var m=L(f,2);{let e=M(()=>X(`asset_folder_list`));zL(m,{get"aria-label"(){return z(e)},"aria-controls":`assets-container`,children:(e,t)=>{{let t=M(()=>X(`asset_location.repository`));UL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(u),e=>[e.collectionName,e.fileName,e.internalPath].join(`:`),(e,t)=>{var n=H();eo(I(n),Yx,null,e=>{let n=M(()=>{let{collectionName:e,fileName:n,internalPath:r,entryRelative:i,hasTemplateTags:a}=z(t);return{collectionName:e,fileName:n,internalPath:r,entryRelative:i,hasTemplateTags:a}}),o=M(()=>z(n).collectionName?Gb(z(n).collectionName):void 0),s=M(()=>z(o)&&z(n).fileName?Ky(z(o),z(n).fileName):void 0),u=M(()=>z(n).entryRelative||z(n).hasTemplateTags),d=M(()=>(0,r6.default)(i(),z(t)));{let i=e=>{{let t=M(()=>z(s)?.icon||z(o)?.icon||`folder`);UF(e,{get name(){return z(t)}})}},f=e=>{var r=H();oo(I(r),a,e=>{var r=H();eo(I(r),Yx,null,e=>{let r=M(()=>(z(n).internalPath===void 0?a():oae(z(t))).length);var i=a6(),o=F(i,!0);D(i),R((e,t)=>{q(i,`aria-label`,`(${e??``})`),W(o,t)},[()=>X(`x_assets`,{values:{count:z(r)}}),()=>z(l).format(z(r))]),U(e,i)}),U(e,r)}),U(e,r)},p=M(()=>r()||c()?!1:z(d)),m=M(()=>kh.current?l1(z(t)):``);KL(e,{get selected(){return z(p)},get label(){return z(m)},onSelect:()=>{w1(`/assets/${z(n).internalPath??`-/all`}`,{transitionType:`forwards`,state:{folder:z(t)}})},ondragover:e=>{e.preventDefault(),!z(u)&&(z(n).internalPath===void 0||z(d)?e.dataTransfer.dropEffect=`none`:(e.dataTransfer.dropEffect=`move`,e.target.classList.add(`dragover`)))},ondragleave:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},ondragend:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},ondrop:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},startIcon:i,endIcon:f,$$slots:{startIcon:!0,endIcon:!0}})}}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}})}D(d),U(e,d),k(),s()}var r6,i6,a6,o6,Nue=s((()=>{Q(),Y(),Z(),G$(),Xx(),r6=u(ZM()),n6(),D1(),EF(),Up(),m1(),Jb(),Zy(),KA(),i6=V(`<header><h2> </h2></header> <!>`,1),a6=V(`<span class="count"> </span>`),o6=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function Pue(e,t){O(t,!0);{let n=M(()=>!t.asset||!DS(t.asset)),r=M(()=>X(`preview`)),i=M(()=>X(`show_preview`));lI(e,{variant:`ghost`,get disabled(){return z(n)},get label(){return z(r)},get"aria-label"(){return z(i)},onclick:()=>{w1(`/assets/${t.asset?.path}`,{transitionType:`forwards`})}})}k()}var Fue=s((()=>{Q(),Y(),Z(),G$(),D1(),jS()}));function Iue(e,t){O(t,!0);let n=()=>j(hF,`$selectedAssets`,l),r=()=>j(gF,`$focusedAsset`,l),i=()=>j(Rp,`$targetAssetFolder`,l),a=()=>j(VA,`$isSmallScreen`,l),o=()=>j(Lp,`$selectedAssetFolder`,l),s=()=>j(HA,`$isMediumScreen`,l),c=()=>j(f1,`$listedAssets`,l),[l,u]=hn(),d=M(()=>n().length?[...n()]:r()?[r()]:[]),f=M(()=>!Hp(i()));{let t=M(()=>X(`folder`));i$(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=l6(),i=I(n),l=e=>{{let t=M(()=>X(`back_to_asset_folder_list`));r2(e,{get"aria-label"(){return z(t)},onclick:()=>{T1(`/assets`)}})}};G(i,e=>{a()&&e(l)});var u=L(i,2),p=F(u);oo(p,()=>kh.current,e=>{var t=Fa();R(e=>W(t,e),[()=>o()?l1(o()):``]),U(e,t)});var m=L(p,2),h=e=>{var t=s6(),n=F(t);D(t),R(()=>W(n,`/${o().internalPath??``}`)),U(e,t)};G(m,e=>{!a()&&o()?.internalPath!==void 0&&e(h)}),D(u);var g=L(u,2),_=e=>{var t=c6(),n=I(t);Pue(n,{get asset(){return r()}});var i=L(n,2);{let e=M(()=>r()?[r()]:[]);M0(i,{get assets(){return z(e)}})}var a=L(i,2);Z0(a,{get assets(){return z(d)}});var o=L(a,2);{let e=M(()=>X(`delete_selected_assets`,{values:{count:z(d).length}})),t=M(()=>X(z(d).length>1&&z(d).length===c().length?`confirm_deleting_all_assets`:`confirm_deleting_selected_assets`,{values:{count:z(d).length}}));J0(o,{get assets(){return z(d)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)}})}e2(L(o,2),{get asset(){return r()}}),U(e,t)};G(g,e=>{a()||s()||e(_)}),EI(L(g,2),{children:(e,t)=>{var n=H(),r=I(n),i=e=>{{let t=M(()=>a()?void 0:X(`upload`));R3(e,{get label(){return z(t)}})}};G(r,e=>{(!a()||c().length&&!z(f))&&e(i)}),U(e,n)},$$slots:{default:!0}}),U(e,n)},$$slots:{default:!0}})}k(),u()}var s6,c6,l6,Lue=s((()=>{Q(),Y(),Z(),G$(),F0(),X0(),$0(),n2(),Fue(),z3(),i2(),D1(),EF(),Up(),m1(),KA(),s6=V(`<span role="none"> </span>`),c6=V(`<!> <!> <!> <!> <!>`,1),l6=V(`<!> <h2 role="none"><!> <!></h2> <!> <!>`,1)}));function Rue(e,t){O(t,!0);let n=()=>j(UA,`$isLargeScreen`,a),r=()=>j(d1,`$currentView`,a),i=()=>j(gF,`$focusedAsset`,a),[a,o]=hn();var s=H(),c=I(s),l=e=>{{let t=M(()=>X(`asset_info`));H$(e,{id:`asset-info`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),a=e=>{b2(e,{get asset(){return i()},showPreview:!0})},o=e=>{z$(e,{children:(e,t)=>{var n=u6(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`select_asset_show_info`)]),U(e,n)},$$slots:{default:!0}})};G(r,e=>{i()?e(a):e(o,-1)}),U(e,n)},$$slots:{default:!0}})}};G(c,e=>{n()&&r().showInfo&&e(l)}),U(e,s),k(),o()}var u6,zue=s((()=>{Q(),Y(),Z(),G$(),R2(),EF(),m1(),KA(),u6=V(`<span role="none"> </span>`)}));function d6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`multiple`,3,!1),c=J(t,`noneLabel`,3,``),l=J(t,`filters`,19,()=>[]);{let r=e=>{{let r=M(()=>X(`filtering_options`));ZL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=H(),a=I(i),o=e=>{var r=H();mo(I(r),17,l,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}}),a=M(()=>(n().filters||[]).findIndex(e=>e.field===z(i).field&&String(e.pattern)===String(z(i).pattern)));{let n=M(()=>z(a)>-1);sR(e,{get label(){return z(i)._label},get checked(){return z(n)},onChange:()=>{t.currentView.update(e=>{let t=e.filters?[...e.filters]:[];return z(a)>-1?t.splice(z(a),1):t.push({field:z(i).field,pattern:z(i).pattern}),{...e,filters:t}})}})}}),U(e,r)},u=e=>{var r=f6(),i=I(r);{let e=M(()=>c()||X(`sort_keys.none`)),r=M(()=>!n().filter);lR(i,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,filter:void 0}))}})}mo(L(i,2),17,l,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}});{let r=M(()=>n().filter?.field===z(i).field&&String(n().filter.pattern)===String(z(i).pattern));lR(e,{get label(){return z(i)._label},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,filter:{field:z(i).field,pattern:z(i).pattern}}))}})}}),U(e,r)};G(a,e=>{s()?e(o):e(u,-1)}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`filter`));VI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var f6,p6=s((()=>{Q(),Y(),Z(),G$(),f6=V(`<!> <!>`,1)}));function m6(e,t){O(t,!0),K(e,_6);let n=()=>j(t.selectedItems,`$selectedItems`,r),[r,i]=hn(),a=M(()=>t.allItems.length),o=M(()=>n().length),s=M(()=>!!z(o)),c=M(()=>z(s)&&z(o)===z(a));var l=g6(),u=F(l);{let e=M(()=>!z(a)),n=M(()=>X(`select_all`)),r=M(()=>z(s)&&!z(c)?`mixed`:z(s));rL(u,{get disabled(){return z(e)},get"aria-label"(){return z(n)},get checked(){return z(r)},onChange:()=>{t.selectedItems.set(z(c)?[]:[...t.allItems])}})}var d=L(u,2),f=e=>{var t=h6(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`x_of_x_selected`,{values:{total:z(a),selected:z(o)}})]),U(e,t)};G(d,e=>{z(s)&&e(f)}),D(l),U(e,l),k(),i()}var h6,g6,_6,v6=s((()=>{Q(),Y(),Z(),G$(),h6=V(`<span role="none" class="svelte-1sd2xgz"> </span>`),g6=V(`<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>`),_6={hash:`svelte-1sd2xgz`,code:`.wrapper.svelte-1sd2xgz {display:flex;align-items:center;gap:4px;margin-inline:20px;}span.svelte-1sd2xgz {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}`}}));function y6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`sortKeys`,19,()=>[]),c=J(t,`collectionName`,3,void 0),l=[`ascending`,`descending`],u=[`date`,`commit_date`];{let r=e=>{{let r=M(()=>X(`sorting_options`));ZL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=H();mo(I(i),17,s,({key:e,label:t})=>e,(e,r)=>{let i=()=>z(r).key,a=()=>z(r).label;var o=b6(),d=I(o);mo(d,16,()=>l,e=>e,(e,r)=>{{let o=M(()=>X(u.includes(i())||c()&&fA({collectionName:c(),keyPath:i()})?.widget===`datetime`?`${r}_date`:r,{values:{label:a()}})),s=M(()=>n().sort?.key===i()&&n().sort.order===r);lR(e,{get label(){return z(o)},get checked(){return z(s)},onSelect:()=>{t.currentView.update(e=>({...e,sort:{key:i(),order:r}}))}})}});var f=L(d,2),p=e=>{qI(e,{})};G(f,e=>{i()===`_summary`&&s().length>1&&e(p)}),U(e,o)}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`sort`));VI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var b6,x6=s((()=>{Q(),Y(),Z(),G$(),yA(),b6=V(`<!> <!>`,1)}));function S6(e,t){O(t,!0),K(e,T6);let n=()=>j(t.currentView,`$currentView`,i),r=()=>j(UA,`$isLargeScreen`,i),[i,a]=hn(),o=J(t,`disabled`,3,!1),s=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`currentView`]),c=M(()=>n().type===`grid`);var l=w6(),u=F(l),d=e=>{{let n=M(()=>X(`switch_view`));LI(e,Zs({get disabled(){return o()},get"aria-label"(){return z(n)}},()=>s,{children:(e,n)=>{var r=C6(),i=I(r);{let e=e=>{UF(e,{name:`format_list_bulleted`})},n=M(()=>!z(c)),r=M(()=>X(`list_view`));BI(i,{get disabled(){return o()},get selected(){return z(n)},variant:`ghost`,iconic:!0,get"aria-label"(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,type:`list`}))},startIcon:e,$$slots:{startIcon:!0}})}var a=L(i,2);{let e=e=>{UF(e,{name:`grid_view`})},n=M(()=>X(`grid_view`));BI(a,{get disabled(){return o()},get selected(){return z(c)},variant:`ghost`,iconic:!0,get"aria-label"(){return z(n)},onSelect:()=>{t.currentView.update(e=>({...e,type:`grid`}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,r)},$$slots:{default:!0}}))}},f=e=>{{let n=e=>{{let t=M(()=>z(c)?`format_list_bulleted`:`grid_view`);UF(e,{get name(){return z(t)}})}},r=M(()=>X(z(c)?`switch_to_list_view`:`switch_to_grid_view`));lI(e,{get disabled(){return o()},variant:`ghost`,iconic:!0,get"aria-label"(){return z(r)},onclick:()=>{t.currentView.update(e=>({...e,type:z(c)?`list`:`grid`}))},startIcon:n,$$slots:{startIcon:!0}})}};G(u,e=>{r()?e(d):e(f,-1)}),D(l),U(e,l),k(),a()}var C6,w6,T6,E6=s((()=>{Q(),Y(),Z(),G$(),KA(),C6=V(`<!> <!>`,1),w6=V(`<div role="none" class="wrapper svelte-8v3idr"><!></div>`),T6={hash:`svelte-8v3idr`,code:`.wrapper.svelte-8v3idr {display:contents;}.wrapper.svelte-8v3idr .select-button-group button {border-radius:var(--sui-button-medium-border-radius) !important;}`}})),D6,Bue=s((()=>{D6={collections:`Collections`,contents:`Contents`,entries:`Entries`,files:`Files`,assets:`Assets`,media:`Media`,workflow:`Workflow`,editorial_workflow:`Editorial Workflow`,menu:`Menu`,user_name:`User Name`,password:`Password`,sign_in:`Sign In`,sign_in_with_mobile:`Sign In with Mobile`,sign_in_with_mobile_instruction:`Scan the QR code below with your phone or tablet for passwordless sign-in. Your settings will be automatically copied.`,signed_in_as_x:`Signed In as {$name}`,working_with_local_repo:`Working with Local Repository`,working_with_test_repo:`Working with Test Repository`,sign_out:`Sign Out`,create:`New`,select:`Select`,select_all:`Select All`,upload:`Upload`,copy:`Copy`,download:`Download`,duplicate:`Duplicate`,delete:`Delete`,reorder:`Reorder`,cancel:`Cancel`,done:`Done`,save:`Save`,saving:`Saving…`,publish:`Publish`,publishing:`Publishing…`,rename:`Rename`,update:`Update`,replace:`Replace`,add:`Add`,remove:`Remove`,remove_x:`Remove {$name}`,clear:`Clear`,expand:`Expand`,expand_all:`Expand All`,collapse:`Collapse`,collapse_all:`Collapse All`,insert:`Insert`,restore:`Restore`,discard:`Discard`,searching:`Searching…`,no_results:`No results found.`,global:`Global`,primary:`Primary`,secondary:`Secondary`,collection:`Collection`,folder:`Folder`,api_key:`API Key`,details:`Details`,back:`Back`,loading:`Loading…`,later:`Later`,slug:`Slug`,singleton:`Singleton`,singletons:`Singletons`,clipboard_error:`There was an error while copying data.`,welcome_message:`Welcome to {$name}`,powered_by:`Powered by {$name}`,loading_cms_config:`Loading CMS Configuration…`,loading_site_data:`Loading Site Data…`,loading_site_data_error:`There was an error while loading site data.`,sign_in_with_x:`Sign In with {$service}`,sign_in_using_access_token:`Sign In Using Access Token`,sign_in_using_access_token_description:`Enter your token below. It must have read/write access to the repository content.`,sign_in_using_access_token_link:`You can generate a token on the <a>{$service} user settings page</a>.`,personal_access_token:`Personal Access Token`,authorizing:`Authorizing…`,signing_in:`Signing in…`,work_with_local_repo:`Work with Local Repository`,work_with_local_repo_description:`Once prompted, select the root directory of the “{$repo}” repository.`,work_with_local_repo_description_no_repo:`Once prompted, select the root directory of your Git repository.`,work_with_test_repo:`Work with Test Repository`,sign_in_error:{not_project_root:`The folder you have selected is not a repository root directory. Please try again.`,picker_dismissed:`A repository root directory could not be selected. Please try again.`,authentication_aborted:`Authentication aborted. Please try again.`,invalid_token:`The provided token is invalid. Please check and try again.`,UNSUPPORTED_BACKEND:`Your Git backend is not supported by the authenticator.`,UNSUPPORTED_DOMAIN:`Your domain is not allowed to use the authenticator.`,MISCONFIGURED_CLIENT:`OAuth app client ID or secret is not configured.`,AUTH_CODE_REQUEST_FAILED:`Failed to receive an authorization code. Please try again later.`,CSRF_DETECTED:`Potential CSRF attack detected. Authentication flow aborted.`,TOKEN_REQUEST_FAILED:`Failed to request an access token. Please try again later.`,TOKEN_REFRESH_FAILED:`Failed to refresh the access token. Please try again later.`,MALFORMED_RESPONSE:`Server responded with malformed data. Please try again later.`},backend_unsupported_version:`The {$name} backend requires {$name} {$version} or later.`,repository_no_access:`You don’t have access to the “{$repo}” repository.`,repository_not_found:`The “{$repo}” repository doesn’t exist.`,repository_empty:`The “{$repo}” repository has no branches.`,branch_not_found:`The “{$repo}” repository doesn’t have the “{$branch}” branch.`,unexpected_error:`Unexpected Error`,entry_parse_errors:`.input {$count :integer} .match $count one {{There was an error while parsing an entry file. Check the browser console for details.}} * {{There were errors while parsing entry files. Check the browser console for details.}}`,mobile_promo_title:`Sveltia CMS is now available on mobile!`,mobile_promo_button:`Give it a try`,visit_live_site:`Visit Live Site`,switch_page:`Switch Page`,search_placeholder_contents:`Search for contents…`,search_placeholder_assets:`Search for assets…`,search_placeholder_all:`Search for contents and assets…`,create_entry_or_assets:`Create Entry or Assets`,publish_changes:`Publish Changes`,publishing_changes:`Publishing Changes…`,publishing_changes_failed:`Changes could not be published. Please try again later.`,show_notifications:`Show Notifications`,notifications:`Notifications`,show_account_menu:`Show Account Menu`,account:`Account`,live_site:`Live Site`,git_repository:`Git Repository`,settings:`Settings`,cms_config:`CMS Configuration`,show_help_menu:`Show Help Menu`,help:`Help`,keyboard_shortcuts:`Keyboard Shortcuts`,documentation:`Documentation`,release_notes:`Release Notes`,announcements:`Announcements`,version_x:`Version {$version}`,report_issue:`Report Issue`,share_feedback:`Share Feedback`,get_help:`Get Help`,donate:`Donate`,join_discord:`Join Us on Discord`,bluesky:`Follow Us on Bluesky`,update_available:`The latest version of Sveltia CMS is available.`,update_now:`Update Now`,backend_status:{minor_incident:`{$service} is experiencing a minor incident. Your workflow may be potentially affected.`,major_incident:`{$service} is experiencing a major incident. You may want to wait until the situation has improved.`},content_library:`Content Library`,asset_library:`Asset Library`,asset_location:{repository:`Your Site`,external:`External Locations`,stock_photos:`Stock Photos`},collection_assets:`Collection Assets`,entry_list:`Entry List`,file_list:`File List`,asset_list:`Asset List`,x_collection:`“{$collection}” Collection`,x_asset_folder:`“{$folder}” Asset Folder`,viewing_collection_list:`You’re now viewing the collection list.`,viewing_asset_folder_list:`You’re now viewing the asset folder list.`,viewing_x_collection:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$collection}” collection, which has no entries yet.}} one {{You’re now viewing the “{$collection}” collection, which has one entry.}} * {{You’re now viewing the “{$collection}” collection, which has {$count} entries.}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$folder}” asset folder, which has no assets yet.}} one {{You’re now viewing the “{$folder}” asset folder, which has one asset.}} * {{You’re now viewing the “{$folder}” asset folder, which has {$count} assets.}}`,singleton_selected_announcement:`Press Enter to edit the “{$file}” file.`,collection_not_found:`Collection not found`,file_not_found:`File not found.`,x_of_x_selected:`{$selected} of {$total} selected`,switch_view:`Switch View`,list_view:`List View`,grid_view:`Grid View`,switch_to_list_view:`Switch to List View`,switch_to_grid_view:`Switch to Grid View`,sort:`Sort`,sorting_options:`Sorting Options`,sort_keys:{none:`None`,name:`Name`,slug:`Slug`,commit_author:`Updated by`,commit_date:`Updated on`,_summary:`Summary`,_manual:`Manual`},ascending:`{$label}, A to Z`,ascending_date:`{$label}, old to new`,descending:`{$label}, Z to A`,descending_date:`{$label}, new to old`,filter:`Filter`,filtering_options:`Filtering Options`,group:`Group`,grouping_options:`Grouping Options`,type:`Type`,all:`All`,image:`Image`,video:`Video`,audio:`Audio`,document:`Document`,other:`Other`,show_assets:`Show Assets`,hide_assets:`Hide Assets`,show_info:`Show Info`,hide_info:`Hide Info`,all_assets:`All Assets`,global_assets:`Global Assets`,entry_not_found:`Entry not found.`,creating_entries_disabled_by_admin:`Creating new entries in this collection is disabled by the administrator.`,creating_entries_disabled_by_quota:`You cannot add new entries to this collection because it has reached its limit of {$quota} entries.`,creating_entries_nearing_quota:`.input {$remaining :integer} .match $remaining one {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entry.}} * {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entries.}}`,back_to_collection:`Back to Collection`,collection_list:`Collection List`,back_to_collection_list:`Back to Collection List`,asset_folder_list:`Asset Folder List`,back_to_asset_folder_list:`Back to Asset Folder List`,search_results:`Search Results`,search_results_for_x:`Search Results for “{$terms}”`,viewing_entry_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any entries.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one entry.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} entries.}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any assets.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one asset.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} assets.}}`,x_entries:`.input {$count :integer} .match $count 0 {{No entries}} one {{{$count} entry}} * {{{$count} entries}}`,x_assets:`.input {$count :integer} .match $count 0 {{No assets}} one {{{$count} asset}} * {{{$count} assets}}`,no_files_found:`No files found.`,no_entries_found:`No entries found.`,upload_assets:`Upload New Assets`,edit_options:`Edit Options`,show_edit_options:`Show Edit Options`,edit_asset:`Edit Asset`,edit_x:`Edit {$name}`,wrap_long_lines:`Wrap Long Lines`,rename_asset:`Rename Asset`,rename_x:`Rename {$name}`,enter_new_name_for_asset:`.input {$count :integer} .match $count 0 {{Enter a new name below.}} one {{Enter a new name below. An entry using the asset will also be updated.}} * {{Enter a new name below. {$count} entries using the asset will also be updated.}}`,enter_new_name_for_asset_error:{empty:`File name cannot be empty.`,character:`File name cannot contain special characters.`,duplicate:`This file name is used for another asset.`},replace_asset:`Replace Asset`,replace_x:`Replace {$name}`,click_to_browse:`Click to browse…`,tap_to_browse:`Tap to browse…`,drop_files_or_click_to_browse:`.input {$count :integer} .match $count one {{Drop a file here or click to browse…}} * {{Drop files here or click to browse…}}`,drop_files_or:`.input {$count :integer} .match $count one {{Drop a file here or}} * {{Drop files here or}}`,drop_image_files_or:`.input {$count :integer} .match $count one {{Drop an image file here or}} * {{Drop image files here or}}`,browse:`Browse`,paste:`Paste`,paste_image:`Paste Image`,no_image_in_clipboard:`No image found in clipboard.`,clipboard_access_denied:`Clipboard access denied.`,drop_files_here:`.input {$count :integer} .match $count one {{Drop a file here}} * {{Drop files here}}`,unsupported_file_type:`Unsupported File Type`,dropped_file_type_mismatch:`The dropped file is not the {$type} type. Please try again.`,dropped_image_type_mismatch:`The dropped file is not supported. Only an AVIF, GIF, JPEG, PNG, WebP or SVG image is accepted. Please try again.`,choose_files:`.input {$count :integer} .match $count one {{Choose File}} * {{Choose Files}}`,delete_assets:`.input {$count :integer} .match $count one {{Delete Asset}} * {{Delete Assets}}`,delete_selected_assets:`.input {$count :integer} .match $count one {{Delete Selected Asset}} * {{Delete Selected Assets}}`,confirm_deleting_this_asset:`Are you sure you want to delete this asset?`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected asset?}} * {{Are you sure you want to delete the selected {$count} assets?}}`,confirm_deleting_all_assets:`Are you sure you want to delete all the assets?`,delete_entries:`.input {$count :integer} .match $count one {{Delete Entry}} * {{Delete Entries}}`,delete_selected_entries:`.input {$count :integer} .match $count one {{Delete Selected Entry}} * {{Delete Selected Entries}}`,confirm_deleting_this_entry:`Are you sure you want to delete this entry?`,confirm_deleting_this_entry_with_assets:`Are you sure you want to delete this entry and associated assets?`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry?}} * {{Are you sure you want to delete the selected {$count} entries?}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry and associated assets?}} * {{Are you sure you want to delete the selected {$count} entries and associated assets?}}`,confirm_deleting_all_entries:`Are you sure you want to delete all the entries?`,confirm_deleting_all_entries_with_assets:`Are you sure you want to delete all the entries and associated assets?`,reorder_entries:`Reorder Entries`,done_reordering_entries:`Done Reordering Entries`,cancel_reordering_entries:`Cancel Reordering Entries`,saving_reorder_failed:`Failed to save the new entry order. Please try again.`,processing_files:`.input {$count :integer} .match $count one {{Processing a file. This may take a while.}} * {{Processing files. This may take a while.}}`,uploading_files:`Uploading Files`,confirm_replacing_file:`Are you sure you want to replace “{$name}” with the following file?`,confirm_uploading_files:`.input {$count :integer} .match $count one {{Are you sure you want to save the following file to the “{$folder}” folder?}} * {{Are you sure you want to save the following {$count} files to the “{$folder}” folder?}}`,oversized_files:`Oversized Files`,warning_oversized_files:`.input {$count :integer} .match $count one {{This file cannot be uploaded because it exceeds the maximum size of {$size}. Please reduce the size or select a different file.}} * {{These files cannot be uploaded because they exceed the maximum size of {$size}. Please reduce the sizes or select different files.}}`,uploading_files_progress:`.input {$count :integer} .match $count one {{Uploading file…}} * {{Uploading files…}}`,uploading_files_failed:`.input {$count :integer} .match $count one {{File could not be uploaded}} * {{Files could not be uploaded}}`,file_meta:`{$type} · {$size}`,file_meta_converted_from_x:`(converted from {$type})`,no_entries_created:`This collection has no entries yet.`,create_new_entry:`Create New Entry`,entry:`Entry`,index_file:`Index File`,no_files_in_collection:`No files available in this collection.`,asset_info:`Asset Info`,select_asset_show_info:`Select an asset to show the info.`,duplicate_entry:`Duplicate Entry`,entry_duplicated:`Entry has been duplicated. It’s now a new draft.`,entry_validation_errors:`.input {$count :integer} .match $count one {{One field has an error. Please correct it to save the entry.}} * {{{$count} fields have an error. Please correct them to save the entry.}}`,entry_saved:`.input {$count :integer} .match $count one {{Entry has been saved.}} * {{{$count} entries have been saved.}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{Entry has been saved and published.}} * {{{$count} entries have been saved and published.}}`,entries_deleted:`.input {$count :integer} .match $count one {{Entry has been deleted.}} * {{{$count} entries have been deleted.}}`,assets_saved:`.input {$count :integer} .match $count one {{Asset has been saved.}} * {{{$count} assets have been saved.}}`,assets_saved_and_published:`.input {$count :integer} .match $count one {{Asset has been saved and published.}} * {{{$count} assets have been saved and published.}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{Asset URL has been copied to clipboard.}} * {{{$count} asset URLs have been copied to clipboard.}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{Asset file path has been copied to clipboard.}} * {{{$count} asset file paths have been copied to clipboard.}}`,asset_data_copied:`.input {$count :integer} .match $count one {{Asset file has been copied to clipboard.}} * {{{$count} asset files have been copied to clipboard.}}`,assets_downloaded:`.input {$count :integer} .match $count one {{Asset file has been downloaded.}} * {{{$count} asset files have been downloaded.}}`,assets_moved:`.input {$count :integer} .match $count one {{Asset has been moved.}} * {{{$count} assets have been moved.}}`,assets_renamed:`.input {$count :integer} .match $count one {{Asset has been renamed.}} * {{{$count} assets have been renamed.}}`,assets_deleted:`.input {$count :integer} .match $count one {{Asset has been deleted.}} * {{{$count} assets have been deleted.}}`,content_editor:`Content Editor`,restore_backup_title:`Restore Draft`,restore_backup_description:`This entry has a backup from {$datetime}. Do you want to restore the edited draft?`,draft_backup_saved:`Draft backup has been saved.`,draft_backup_restored:`Draft backup has been restored.`,draft_backup_deleted:`Draft backup has been deleted.`,cancel_editing:`Cancel Editing`,create_entry_title:`Creating {$name}`,create_entry_announcement:`You’re now creating a new entry in the “{$collection}” collection.`,edit_entry_title:`{$collection} › {$entry}`,edit_entry_announcement:`You’re now editing the “{$entry}” entry in the “{$collection}” collection.`,edit_file_announcement:`You’re now editing the “{$file}” file in the “{$collection}” collection.`,edit_singleton_announcement:`You’re now editing the “{$file}” file.`,save_and_publish:`Save and Publish`,save_without_publishing:`Save without Publishing`,show_editor_options:`Show Editor Options`,editor_options:`Editor Options`,show_preview:`Show Preview`,sync_scrolling:`Sync Scrolling`,switch_locale:`Switch Locale`,locale_content_disabled_short:`(disabled)`,locale_content_error_short:`(error)`,edit:`Edit`,preview:`Preview`,swap_panes:`Swap Panes`,edit_x_locale:`Edit {$locale} Content`,preview_x_locale:`Preview {$locale} Content`,content_preview:`Content Preview`,show_content_options_x_locale:`Show {$locale} Content Options`,content_options_x_locale:`{$locale} Content Options`,x_field:`“{$field}” Field`,show_field_options:`Show Field Options`,field_options:`Field Options`,unsupported_field_type_x:`Unsupported field type: {$name}`,enable_x_locale:`Enable {$locale}`,reenable_x_locale:`Reenable {$locale}`,disable_x_locale:`Disable {$locale}`,locale_x_has_been_disabled:`The {$locale} content has been disabled.`,locale_x_now_disabled:`The {$locale} content is now disabled. It will be deleted when you save the entry.`,view_in_repository:`View in Repository`,view_on_x:`View on {$service}`,view_on_live_site:`View on Live Site`,copy_from:`Copy from…`,copy_from_x:`Copy from {$locale}`,translation_options:`Translation Options`,translate:`Translate`,translate_fields:`.input {$count :integer} .match $count one {{Translate Field}} * {{Translate Fields}}`,translate_from:`Translate from…`,translate_from_x:`Translate from {$locale}`,revert_changes:`Revert Changes`,revert_all_changes:`Revert All Changes`,edit_slug:`Edit Slug`,edit_slug_warning:`Changing the slug may break internal and external links to the entry. Currently, Sveltia CMS does not update references created with Relation fields, so you’ll need to manually update such references along with other links.`,edit_slug_error:{empty:`The slug cannot be empty.`,duplicate:`This slug is used for another entry.`},required:`Required`,editor:{translation:{none:`Nothing has been translated.`,started:`Translating…`,error:`There was an error while translating.`,complete:`.input {$count :integer} .match $count 0 {{No field has been translated from {$source}.}} one {{Translated a field from {$source}.}} * {{Translated {$count} fields from {$source}.}}`},copy:{none:`Nothing has been copied.`,complete:`.input {$count :integer} .match $count 0 {{No field has been copied from {$source}.}} one {{Copied a field from {$source}.}} * {{Copied {$count} fields from {$source}.}}`}},validation:{value_missing:`This field is required.`,range_underflow:{"datetime-local":`The date/time must be at or after {$min}.`,date:`The date must be on or after {$min}.`,time:`The time must be at or after {$min}.`,number:`The value must be greater than or equal to {$min}.`,select:`.input {$min :integer} .match $min one {{You have to select at least {$min} option.}} * {{You have to select at least {$min} options.}}`,add:`.input {$min :integer} .match $min one {{You have to add at least {$min} item.}} * {{You have to add at least {$min} items.}}`},range_overflow:{"datetime-local":`The date/time must be at or before {$max}.`,date:`The date must be on or before {$max}.`,time:`The time must be at or before {$max}.`,number:`The value must be less than or equal to {$max}.`,select:`.input {$max :integer} .match $max one {{You cannot select more than {$max} option.}} * {{You cannot select more than {$max} options.}}`,add:`.input {$max :integer} .match $max one {{You cannot add more than {$max} item.}} * {{You cannot add more than {$max} items.}}`},too_short:`.input {$min :integer} .match $min one {{You must enter at least {$min} character.}} * {{You must enter at least {$min} characters.}}`,too_long:`.input {$max :integer} .match $max one {{You cannot enter more than {$max} character.}} * {{You cannot enter more than {$max} characters.}}`,type_mismatch:{number:`Please enter a number.`,email:`Please enter a valid email.`,url:`Please enter a valid URL.`}},entry_sidebar:{sidebar_panels:`Sidebar Panels`,validation:{title:`Validation`,placeholder:`Validation results will be shown here.`,no_errors_found:`No errors found.`},history:{title:`History`,fetch_failed:`Failed to load history.`,no_history:`No history found.`},backlinks:{title:`Backlinks`,no_entries:`No entries are referencing this entry.`}},saving_entry:{error:{title:`Error`,description:`There was an error while saving the entry. Please try again later.`}},viewing_x_asset_details:`You’re viewing the details of the “{$name}” asset.`,asset_editor:`Asset Editor`,preview_unavailable:`Preview Unavailable.`,public_urls:`.input {$count :integer} .match $count one {{Public URL}} * {{Public URLs}}`,file_paths:`.input {$count :integer} .match $count one {{File Path}} * {{File Paths}}`,file_data:`File Data`,kind:`Kind`,size:`Size`,dimensions:`Dimensions`,duration:`Duration`,used_in:`Used in`,created_date:`Created Date`,location:`Location`,map_lat_lng:`Map showing latitude {$latitude}, longitude {$longitude}`,remove_this_item:`Remove This Item`,move_up:`Move Up`,move_down:`Move Down`,add_x:`Add {$name}`,add_item_above:`Add Item Above`,add_item_below:`Add Item Below`,select_list_type:`Select List Type`,opacity:`Opacity`,unselected_option:`(None)`,assets_dialog:{title:{file:`Select File`,image:`Select Image`},search_for_file:`Search for Files`,search_for_image:`Search for Images`,locations:`Locations`,folder:{field:`Field Assets`,entry:`Entry Assets`,file:`File Assets`,collection:`Collection Assets`,global:`Global Assets`},error:{invalid_key:`Your API Key is invalid or expired. Please double check and try again.`,search_fetch_failed:`There was an error while searching assets. Please try again later.`,image_fetch_failed:`There was an error while downloading the selected asset. Please try again later.`},available_images:`Available Images`,enter_url:`Enter URL`,enter_file_url:`Enter URL of the file:`,enter_image_url:`Enter URL of the image:`,large_file:{title:`Large File`},photo_credit:{title:`Photo Credit`,description:`Use the following credit if possible:`},unsaved:`Unsaved`},character_counter:{min_max:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}. Maximum: {$max}.}} one {{{$count} character entered. Minimum: {$min}. Maximum: {$max}.}} * {{{$count} characters entered. Minimum: {$min}. Maximum: {$max}.}}`,min:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}.}} one {{{$count} character entered. Minimum: {$min}.}} * {{{$count} characters entered. Minimum: {$min}.}}`,max:`.input {$count :integer} .match $count 0 {{No character entered. Maximum: {$max}.}} one {{{$count} character entered. Maximum: {$max}.}} * {{{$count} characters entered. Maximum: {$max}.}}`},youtube_video_player:`YouTube video player`,today:`Today`,now:`Now`,editor_components:{image:`Image`,src:`Source`,alt:`Alt Text`,title:`Title`,link:`Link`},key_value:{key:`Key`,value:`Value`,action:`Action`,empty_key:`Key is required.`,duplicate_key:`Key must be unique.`},find_place:`Find a Place`,use_your_location:`Use Your Location`,geolocation_error_title:`Geolocation Error`,geolocation_error_body:`There was an error while retrieving your location.`,geolocation_unsupported:`Geolocation API is not supported by this browser.`,boolean:{true:`Yes`,false:`No`},cloud_storage:{invalid:`The service is not configured properly.`,auth:{api_key:{key_label:`API Key`,initial:`Enter your {$key} for {$service}.`,requested:`Validating…`,error:`The provided {$key} is invalid. Please double check and try again.`},password:{initial:`Enter your password for {$service}.`,requested:`Signing in…`,error:`User name or password is incorrect. Please double check and try again.`}},cloudinary:{iframe_title:`Cloudinary media library`,activate:{button_label:`Activate Cloudinary`,description:`After signing in, click the Sign In button again to continue.`},auth_key_label:`API Secret`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`Secret Access Key`},cloudflare_r2:{auth_key_label:`Secret Access Key`},digitalocean_spaces:{auth_key_label:`Secret Access Key`}},config:{errors:`.input {$count :integer} .match $count one {{There is an error in the CMS configuration. Please solve the issue and try again.}} * {{There are errors in the CMS configuration. Please solve the issues and try again.}}`,error_locator:{collection:`{$collection} collection`,file:`{$file} file`,field:"`{$field}` field"},error:{no_secure_context:`Sveltia CMS only works with HTTPS or localhost URLs.`,insecure_url:`The configuration file URL must use HTTPS protocol or a localhost address.`,insecure_urls:`.input {$count :integer} .match $count one {{The configuration file URL must use HTTPS protocol or a localhost address.}} * {{The configuration file URLs must use HTTPS protocol or localhost addresses.}}`,fetch_failed:`The configuration file could not be retrieved.`,fetch_failed_not_ok:`HTTP response returned with status {$status}.`,fetch_failed_with_manual_init:"The configuration file could not be retrieved. To prevent the `config.yml` file from loading, add [`load_config_file: false`](https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration) to the configuration object passed to `CMS.init()`.",parse_failed:`The configuration file could not be parsed.`,parse_failed_invalid_object:`The configuration file is not a valid JavaScript object.`,parse_failed_unsupported_type:`The configuration file is not a valid file type. Only YAML, TOML and JSON are supported.`,no_collection:`Collections are not defined.`,missing_backend:`The backend is not defined.`,missing_backend_name:`The backend name is not defined.`,unsupported_known_backend:`The {$name} backend is [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_deprecated_backend:`The deprecated {$name} backend is [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_custom_backend:`Custom backends are [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_backend_suggestion:`Use one of the [supported backends](https://sveltiacms.app/en/docs/backends#supported-backends) instead.`,missing_repository:`The repository is not defined.`,invalid_repository:`The configured repository is invalid. It must be in “owner/repo” format.`,oauth_implicit_flow:`The configured authentication method (implicit flow) is not supported in Sveltia CMS. Use a different [authentication method](https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication) instead.`,github_pkce_unsupported:`PKCE authorization is not yet supported due to GitHub’s limitations. Use a different [authentication method](https://sveltiacms.app/en/docs/backends/github#authentication) instead.`,oauth_no_app_id:`OAuth application ID is not defined.`,no_auth_methods:"The `auth_methods` option must contain at least one method.",missing_media_folder:`The media folder is not defined.`,invalid_media_folder:`The configured media folder is invalid. It must be a string.`,invalid_public_folder:`The configured public folder is invalid. It must be a string.`,public_folder_relative_path:`The configured public folder is invalid. It must be an absolute path starting with “/”.`,public_folder_absolute_url:`An absolute URL for the public folder option is not supported in Sveltia CMS.`,invalid_collection_no_options:"The collection must have either the `folder`, `files` or `divider` option defined.",invalid_collection_multiple_options:"The collection cannot have the `folder`, `files` and `divider` options together.",file_format_mismatch:"The `{$extension}` extension doesn’t match the `{$format}` format.",invalid_slug_slash:"The slug template `{$slug}` is invalid as it cannot contain slashes. To organize entries in subfolders, use the `path` option instead of `slug`.",missing_collection_name:"The collection {$count} must have the `name` option defined as a non-empty string.",invalid_collection_name:"The collection name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_name:"Collection names must be unique, but `{$name}` is used more than once.",missing_collection_file_name:"The collection file {$count} must have the `name` option defined as a non-empty string.",invalid_collection_file_name:"The collection file name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_file_name:"Collection file names must be unique, but `{$name}` is used more than once.",collection_no_fields:"The collection must have the `fields` option defined with at least one field.",collection_file_no_fields:"The collection file must have the `fields` option defined with at least one field.",missing_field_name:"The field {$count} must have the `name` option defined as a non-empty string.",invalid_field_name:"The field name `{$name}` is invalid. It must not contain special characters. If you want to nest fields, [use Object fields instead of dot notation](https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions).",duplicate_field_name:"Field names must be unique, but `{$name}` is used more than once.",missing_variable_type:"The variable type {$count} must have the `name` option defined as a non-empty string.",invalid_variable_type:"The variable type name `{$name}` is invalid. It must not contain special characters.",duplicate_variable_type:"Variable type names must be unique, but `{$name}` is used more than once.",date_field_type:"The deprecated Date field type is not supported in Sveltia CMS. Use the DateTime field type with the `type: date` option instead.",unsupported_deprecated_option:"The deprecated `{$prop}` option is not supported in Sveltia CMS. Use the `{$newProp}` option instead.",allow_multiple:"The `allow_multiple` option is not supported in Sveltia CMS. Use the `multiple` option instead, which defaults to `false`.",invalid_list_field:"The List field cannot have the `field`, `fields` and `types` options together.",invalid_list_variable_type:"The List field’s variable type is invalid. The `widget` option is set to `{$widget}` but it must be `object`.",invalid_object_field:"The Object field cannot have the `fields` and `types` options together.",object_field_missing_fields:"The Object field must have either the `fields` or `types` option defined.",relation_field_invalid_collection:"The referenced `{$collection}` collection is invalid or not defined.",relation_field_invalid_collection_file:"The referenced `{$file}` file is invalid or not defined.",relation_field_missing_file_name:"The `file` option must be defined for a relation to a file collection.",relation_field_invalid_value_field:"The referenced value field `{$field}` is invalid or not defined.",unexpected:`Unexpected error`},warning:{oauth_no_app_id:`OAuth application ID is not defined. Users are required to provide an access token to sign in.`,editorial_workflow_unsupported:`Editorial workflow is not yet supported in Sveltia CMS.`,open_authoring_unsupported:`Open authoring is not yet supported in Sveltia CMS.`,nested_collections_unsupported:`Nested collections are not yet supported in Sveltia CMS.`,unsupported_ignored_option:"The `{$prop}` option is not supported in Sveltia CMS. It will be ignored."},compatibility_link:`See the compatibility notes for details: https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`},local_workflow:{indicator:`Local`,unsupported_browser:`Local Workflow is not supported in your browser. Please use Chrome or Edge instead.`,disabled:`Local Workflow is disabled in your browser. <a>Here’s how to enable it</a>.`},status:{drafts:`Drafts`,in_review:`In Review`,ready:`Ready`},categories:`Categories`,prefs:{changes:{api_key_saved:`API key has been saved.`,api_key_removed:`API key has been removed.`,api_key_invalid:`The provided API key is invalid. Please double check and try again.`},error:{permission_denied:`Browser storage (Cookie) access has been denied. Please check the permission and try again.`},appearance:{title:`Appearance`,theme:`Theme`,select_theme:`Select Theme`},theme:{auto:`Auto`,dark:`Dark`,light:`Light`},language:{title:`Language`,ui_language:{title:`User Interface Language`,select_language:`Select Language`}},contents:{title:`Contents`,editor:{title:`Editor`,use_draft_backup:{switch_label:`Automatically back up entry drafts`},close_on_save:{switch_label:`Close the editor after saving a draft`},close_with_escape:{switch_label:`Close the editor with the Escape key`}}},i18n:{title:`Internationalization`,translators:{default:{title:`Default Translation Service`,select_service:`Select Service`},api_keys:{title:`Translation Service API Keys`,description:`Manage API keys for <a>translation services</a>.`},field_label:`{$service} Key`,description:`Sign up for <a {$homeHref}>{$service}</a> and enter <a {$apiKeyHref}>your API Key</a> here to enable quick translation of text entry fields.`}},media:{title:`Media`,stock_photos:{api_keys:{title:`Stock Photo Service API Keys`,description:`Manage API keys for <a>stock photo services</a>.`},field_label:`{$service} API Key`,description:`Sign up for <a {$homeHref}>{$service} API</a> and enter <a {$apiKeyHref}>your API Key</a> here to insert free stock photos to image entry fields.`,credit:`Photos provided by {$service}`,no_services:`No <a>stock photo services</a> are configured.`},cloud_storage:{api_keys:{title:`Cloud Storage Service API Keys`,description:`Manage API keys for <a>cloud storage services</a>.`},field_label:`{$service} API Key`,no_services:`No <a>cloud storage services</a> are configured.`}},accessibility:{title:`Accessibility`,underline_links:{title:`Underline Links`,description:`Show underline for links in the entry preview and user interface labels.`,switch_label:`Always Underline Links`}},advanced:{title:`Advanced`,beta:{title:`Beta Features`,description:`Enable some beta features that may be unstable or unlocalized.`,switch_label:`Join Beta Program`},developer_mode:{title:`Developer Mode`,description:`Enable some developer-oriented features, including detailed console logs and native context menus.`,switch_label:`Enable Developer Mode`},deploy_hook:{title:`Deploy Hook`,description:`Enter a webhook URL to be called when you manually trigger a deployment by selecting Publish Changes. This can be left blank if you’re using GitHub Actions.`,url:{field_label:`Hook URL`,saved:`Hook URL has been saved.`,removed:`Hook URL has been removed.`},auth:{field_label:`Authorization header (e.g. Bearer <token>) (optional)`,saved:`Authorization header has been saved.`,removed:`Authorization header has been removed.`}}}},keyboard_shortcuts_:{view_content_library:`View Content Library`,view_asset_library:`View Asset Library`,search:`Search for entries and assets`,create_entry:`Create a new entry`,save_entry:`Save an entry`,cancel_editing:`Cancel entry editing`},file_type_labels:{avif:`AVIF image`,bmp:`Bitmap image`,gif:`GIF image`,ico:`Icon`,jpeg:`JPEG image`,jpg:`JPEG image`,png:`PNG image`,svg:`SVG image`,tif:`TIFF image`,tiff:`TIFF image`,webp:`WebP image`,avi:`AVI video`,m4v:`MP4 video`,mov:`QuickTime video`,mp4:`MP4 video`,mpeg:`MPEG video`,mpg:`MPEG video`,ogg:`Ogg video`,ogv:`Ogg video`,ts:`MPEG video`,webm:`WebM video`,"3gp":`3GPP video`,"3g2":`3GPP2 video`,aac:`AAC audio`,mid:`MIDI`,midi:`MIDI`,m4a:`MP4 audio`,mp3:`MP3 audio`,oga:`Ogg audio`,opus:`OPUS audio`,wav:`WAV audio`,weba:`WebM audio`,csv:`CSV spreadsheet`,doc:`Word document`,docx:`Word document`,odp:`OpenDocument presentation`,ods:`OpenDocument spreadsheet`,odt:`OpenDocument text`,pdf:`PDF document`,ppt:`PowerPoint presentation`,pptx:`PowerPoint presentation`,rtf:`Rich text document`,xls:`Excel spreadsheet`,xlsx:`Excel spreadsheet`,html:`HTML text`,js:`JavaScript`,json:`JSON text`,md:`Markdown text`,toml:`TOML text`,yaml:`YAML text`,yml:`YAML text`},file_size_units:{b:`{$size} bytes`,kb:`{$size} KB`,mb:`{$size} MB`,gb:`{$size} GB`,tb:`{$size} TB`}}})),O6,Vue=s((()=>{O6={collections:`コレクション`,contents:`コンテンツ`,entries:`エントリー`,files:`ファイル`,assets:`アセット`,media:`メディア`,workflow:`ワークフロー`,editorial_workflow:`編集ワークフロー`,menu:`メニュー`,user_name:`ユーザー名`,password:`パスワード`,sign_in:`ログイン`,sign_in_with_mobile:`モバイルでログイン`,sign_in_with_mobile_instruction:`以下の QR コードを携帯電話かタブレットでスキャンすると、パスワードなしでログインできます。ユーザー設定は自動的にコピーされます。`,signed_in_as_x:`{$name} としてログイン中`,working_with_local_repo:`ローカルレポジトリで作業中`,working_with_test_repo:`テストレポジトリで作業中`,sign_out:`ログアウト`,create:`新規作成`,select:`選択`,select_all:`すべて選択`,upload:`アップロード`,copy:`コピー`,download:`ダウンロード`,duplicate:`複製`,delete:`削除`,reorder:`並び替え`,cancel:`キャンセル`,done:`完了`,save:`保存`,saving:`保存中…`,publish:`公開`,publishing:`公開中…`,rename:`名前を変更`,update:`更新`,replace:`差し替え`,add:`追加`,remove:`削除`,remove_x:`{$name} を削除`,clear:`クリア`,expand:`広げる`,expand_all:`すべて広げる`,collapse:`折り畳む`,collapse_all:`すべて折り畳む`,insert:`挿入`,restore:`復元`,discard:`破棄`,searching:`検索中…`,no_results:`結果が見つかりませんでした。`,global:`グローバル`,primary:`プライマリー`,secondary:`セカンダリー`,collection:`コレクション`,folder:`フォルダー`,api_key:`API キー`,details:`詳細`,back:`戻る`,loading:`読み込み中…`,later:`後で`,slug:`スラッグ`,singleton:`シングルトン`,singletons:`シングルトン`,clipboard_error:`データのコピー中に問題が発生しました。`,welcome_message:`{$name} へようこそ`,powered_by:`Powered by {$name}`,loading_cms_config:`CMS 設定を読み込んでいます…`,loading_site_data:`サイトデータを読み込んでいます…`,loading_site_data_error:`サイトデータの読み込み中にエラーが発生しました。`,sign_in_with_x:`{$service} にログイン`,sign_in_using_access_token:`アクセストークンを使用してログイン`,sign_in_using_access_token_description:`以下にトークンを入力してください。レポジトリコンテンツへの読み取り・書き込みアクセスが必要です。`,sign_in_using_access_token_link:`<a>{$service} ユーザー設定ページ</a> でトークンを生成できます。`,personal_access_token:`個人用アクセストークン`,authorizing:`認証中…`,signing_in:`ログイン中…`,work_with_local_repo:`ローカルレポジトリで作業`,work_with_local_repo_description:`ダイアログが表示されたら、「{$repo}」レポジトリのルートディレクトリを選択してください。`,work_with_local_repo_description_no_repo:`ダイアログが表示されたら、Git レポジトリのルートディレクトリを選択してください。`,work_with_test_repo:`テストレポジトリで作業`,sign_in_error:{not_project_root:`選択されたフォルダーはレポジトリのルートディレクトリではありません。再度お試しください。`,picker_dismissed:`レポジトリのルートディレクトリを選択できませんでした。再度お試しください。`,authentication_aborted:`認証が中断されました。再度お試しください。`,invalid_token:`入力されたトークンが無効です。確認して再度お試しください。`,UNSUPPORTED_BACKEND:`この認証アプリはお使いの Git バックエンドに対応していません。`,UNSUPPORTED_DOMAIN:`この認証アプリではお使いのドメインの使用は許可されていません。`,MISCONFIGURED_CLIENT:`OAuth アプリのクライアント ID またはシークレットが設定されていません。`,AUTH_CODE_REQUEST_FAILED:`認証コードを取得できませんでした。後で再度お試しください。`,CSRF_DETECTED:`CSRF 攻撃の可能性が検出されたため、認証フローは中断されました。`,TOKEN_REQUEST_FAILED:`アクセストークンを要求できませんでした。後で再度お試しください。`,TOKEN_REFRESH_FAILED:`アクセストークンの更新に失敗しました。後で再度お試しください。`,MALFORMED_RESPONSE:`サーバーから不正なデータが返されました。後で再度お試しください。`},backend_unsupported_version:`{$name} バックエンドには {$name} {$version} 以降のバージョンが必要です。`,repository_no_access:`あなたには「{$repo}」レポジトリへのアクセス権がありません。`,repository_not_found:`「{$repo}」レポジトリは存在しません。`,repository_empty:`「{$repo}」レポジトリにはブランチがありません。`,branch_not_found:`「{$repo}」レポジトリに「{$branch}」ブランチは存在しません。`,unexpected_error:`予期せぬエラー`,entry_parse_errors:`エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。`,visit_live_site:`管理対象サイトを開く`,switch_page:`ページを切り替え`,search_placeholder_contents:`コンテンツを検索…`,search_placeholder_assets:`アセットを検索…`,search_placeholder_all:`コンテンツとアセットを検索…`,create_entry_or_assets:`エントリーまたはアセットを作成`,publish_changes:`変更を公開`,publishing_changes:`変更を公開しています…`,publishing_changes_failed:`変更を公開できませんでした。後で再度お試しください。`,show_notifications:`通知を表示`,notifications:`通知`,show_account_menu:`アカウントメニューを表示`,account:`アカウント`,live_site:`管理対象サイト`,git_repository:`Git レポジトリ`,settings:`設定`,cms_config:`CMS 設定`,show_help_menu:`ヘルプメニューを表示`,help:`ヘルプ`,keyboard_shortcuts:`キーボードショートカット`,documentation:`ドキュメンテーション`,release_notes:`リリースノート`,announcements:`お知らせ`,version_x:`バージョン {$version}`,report_issue:`問題を報告`,share_feedback:`フィードバックを共有`,get_help:`サポート`,donate:`寄付`,join_discord:`Discord チャンネルに参加`,bluesky:`Bluesky でフォロー`,mobile_promo_title:`Sveltia CMS がモバイルに対応しました!`,mobile_promo_button:`試してみる`,update_available:`Sveltia CMS の最新版が利用可能です。`,update_now:`今すぐ更新`,backend_status:{minor_incident:`{$service} で軽微な障害が発生しています。ワークフローに潜在的な影響が及ぶ可能性があります。`,major_incident:`{$service} で重大な障害が発生しています。状況が改善されるまで待った方が良いかもしれません。`},content_library:`コンテンツライブラリ`,asset_library:`アセットライブラリ`,asset_location:{repository:`あなたのサイト`,external:`外部の場所`,stock_photos:`ストックフォト`},collection_assets:`コレクションアセット`,entry_list:`エントリーリスト`,file_list:`ファイルリスト`,asset_list:`アセットリスト`,x_collection:`「{$collection}」コレクション`,x_asset_folder:`「{$folder}」アセットフォルダー`,viewing_collection_list:`コレクションリストを表示しています。`,viewing_asset_folder_list:`アセットフォルダーリストを表示しています。`,viewing_x_collection:`.input {$count :integer} .match $count 0 {{「{$collection}」コレクションを表示しています。ここにはまだエントリーがありません。}} one {{「{$collection}」コレクションを表示しています。ここにはひとつのエントリーがあります。}} * {{「{$collection}」コレクションを表示しています。ここには {$count} 個のエントリーがあります。}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{「{$folder}」アセットフォルダーを表示しています。ここにはまだアセットがありません。}} one {{「{$folder}」アセットフォルダーを表示しています。ここにはひとつのアセットがあります。}} * {{「{$folder}」アセットフォルダーを表示しています。ここには {$count} 個のアセットがあります。}}`,singleton_selected_announcement:`「{$file}」ファイルを編集するには Enter キーを押してください。`,collection_not_found:`コレクションが見つかりませんでした`,file_not_found:`ファイルが見つかりませんでした`,x_of_x_selected:`{$total} 個のうち {$selected} 個を選択中`,switch_view:`ビューを切り替え`,list_view:`リストビュー`,grid_view:`グリッドビュー`,switch_to_list_view:`リストビューに切り替え`,switch_to_grid_view:`グリッドビューに切り替え`,sort:`表示順`,sorting_options:`表示順オプション`,sort_keys:{none:`なし`,name:`名前`,slug:`スラッグ`,commit_author:`更新者`,commit_date:`更新日時`,_summary:`サマリー`,_manual:`手動`},ascending:`{$label} (A–Z)`,ascending_date:`{$label} (古い順)`,descending:`{$label} (Z–A)`,descending_date:`{$label} (新しい順)`,filter:`絞り込み`,filtering_options:`絞り込みオプション`,group:`グループ化`,grouping_options:`グループ化オプション`,type:`種類`,all:`すべて`,image:`画像`,video:`動画`,audio:`音声`,document:`書類`,other:`その他`,show_assets:`アセットを表示`,hide_assets:`アセットを隠す`,show_info:`情報を表示`,hide_info:`情報を隠す`,all_assets:`すべてのアセット`,global_assets:`グローバルアセット`,entry_not_found:`エントリーが見つかりませんでした。`,creating_entries_disabled_by_admin:`このコレクションへの新しいエントリーの作成は、管理者によって無効化されています。`,creating_entries_disabled_by_quota:`このコレクションは最大の {$quota} エントリーに達したため、新しいエントリーを作成することはできません。`,creating_entries_nearing_quota:`このコレクションは {$quota} エントリーの上限に近づいています。あと {$remaining} 件のエントリーしか作成できません。`,back_to_collection:`コレクションへ戻る`,collection_list:`コレクションリスト`,back_to_collection_list:`コレクションリストへ戻る`,asset_folder_list:`アセットフォルダーリスト`,back_to_asset_folder_list:`アセットフォルダーリストへ戻る`,search_results:`検索結果`,search_results_for_x:`「{$terms}」の検索結果`,viewing_entry_search_results:`.input {$count :integer} .match $count 0 {{「{$terms}」の検索結果を表示しています。エントリーは見つかりませんでした。}} * {{「{$terms}」の検索結果を表示しています。{$count} 件のエントリーが見つかりました。}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{「{$terms}」の検索結果を表示しています。アセットは見つかりませんでした。}} * {{「{$terms}」の検索結果を表示しています。{$count} 件のアセットが見つかりました。}}`,x_entries:`{$count} 個のエントリー`,x_assets:`{$count} 個のアセット`,no_files_found:`ファイルは見つかりませんでした。`,no_entries_found:`エントリーは見つかりませんでした。`,upload_assets:`新しいアセットをアップロード`,edit_options:`編集オプション`,show_edit_options:`編集オプションを表示`,edit_asset:`アセットを編集`,edit_x:`{$name} を編集`,wrap_long_lines:`長い行を折り返す`,rename_asset:`アセットの名前を変更`,rename_x:`{$name} の名前を変更`,enter_new_name_for_asset:`.input {$count :integer} .match $count 0 {{新しい名前を以下に入力してください。}} one {{新しい名前を以下に入力してください。このアセットを使用している 1 個のエントリーも更新されます。}} * {{新しい名前を以下に入力してください。このアセットを使用している {$count} 個のエントリーも更新されます。}}`,enter_new_name_for_asset_error:{empty:`ファイル名を空白にすることはできません。`,character:`ファイル名に特別な文字を含めることはできません。`,duplicate:`このファイル名は他のアセットに使われています。`},replace_asset:`アセットを差し替え`,replace_x:`{$name} を差し替え`,click_to_browse:`クリックして参照…`,tap_to_browse:`タップして参照…`,drop_files_or_click_to_browse:`ここにファイルをドロップするかクリックして参照…`,drop_files_or:`ここにファイルをドロップするか`,drop_image_files_or:`ここに画像ファイルをドロップするか`,browse:`参照`,paste:`貼り付け`,paste_image:`画像を貼り付け`,no_image_in_clipboard:`クリップボードに画像が見つかりません。`,clipboard_access_denied:`クリップボードへのアクセスが拒否されました。`,drop_files_here:`ここにファイルをドロップ`,unsupported_file_type:`非対応ファイル形式`,dropped_file_type_mismatch:`ドロップされたファイルは {$type} 形式ではありません。再度お試しください。`,dropped_image_type_mismatch:`ドロップされたファイルはサポートされていません。AVIF、GIF、JPEG、PNG、WebP または SVG 形式の画像のみが受け入れられます。再度お試しください。`,choose_files:`ファイルを選択`,delete_assets:`アセットを削除`,delete_selected_assets:`選択されたアセットを削除`,confirm_deleting_this_asset:`このアセットを削除してもよろしいですか?`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{選択されたアセットを削除してもよろしいですか?}} * {{選択された {$count} 個のアセットを削除してもよろしいですか?}}`,confirm_deleting_all_assets:`すべてのアセットを削除してもよろしいですか?`,delete_entries:`エントリーを削除`,delete_selected_entries:`選択されたエントリーを削除`,confirm_deleting_this_entry:`このエントリーを削除してもよろしいですか?`,confirm_deleting_this_entry_with_assets:`このエントリーと関連アセットを削除してもよろしいですか?`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{選択されたエントリーを削除してもよろしいですか?}} * {{選択された {$count} 個のエントリーを削除してもよろしいですか?}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{選択されたエントリーと関連アセットを削除してもよろしいですか?}} * {{選択された {$count} 個のエントリーと関連アセットを削除してもよろしいですか?}}`,confirm_deleting_all_entries:`すべてのエントリーを削除してもよろしいですか?`,confirm_deleting_all_entries_with_assets:`すべてのエントリーと関連アセットを削除してもよろしいですか?`,reorder_entries:`エントリーを並び替え`,done_reordering_entries:`エントリーの並び替えを完了`,cancel_reordering_entries:`エントリーの並び替えをキャンセル`,saving_reorder_failed:`エントリーの並び替えを保存できませんでした。再度お試しください。`,processing_files:`ファイルを処理しています。これには時間がかかる場合があります。`,uploading_files:`アップロード対象ファイル`,confirm_replacing_file:`「{$name}」を以下のファイルと差し替えてもよろしいですか?`,confirm_uploading_files:`.input {$count :integer} .match $count one {{以下のファイルを「{$folder}」フォルダーに保存してもよろしいですか?}} * {{以下の {$count} 個のファイルを「{$folder}」フォルダーに保存してもよろしいですか?}}`,oversized_files:`サイズ超過ファイル`,warning_oversized_files:`.input {$count :integer} .match $count one {{このファイルは最大サイズ {$size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}} * {{これらのファイルは最大サイズ {$size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}}`,uploading_files_progress:`ファイルをアップロード中…`,uploading_files_failed:`ファイルをアップロードできませんでした`,file_meta:`{$type} · {$size}`,file_meta_converted_from_x:`({$type} から変換)`,no_entries_created:`このコレクションにはまだエントリーがありません。`,create_new_entry:`新しいエントリーを作成`,entry:`エントリー`,index_file:`インデックスファイル`,no_files_in_collection:`このコレクションにはファイルがありません。`,asset_info:`アセット情報`,select_asset_show_info:`アセットを選択すると情報が表示されます。`,duplicate_entry:`エントリーを複製`,entry_duplicated:`エントリーが複製され、新しい下書きとなりました。`,entry_validation_errors:`.input {$count :integer} .match $count one {{ひとつのフィールドにエラーがあります。エントリーを保存するには問題を修正してください。}} * {{{$count} 個のフィールドにエラーがあります。エントリーを保存するには問題を修正してください。}}`,entry_saved:`.input {$count :integer} .match $count one {{エントリーが保存されました。}} * {{{$count} 件のエントリーが保存されました。}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{エントリーが保存、公開されました。}} * {{{$count} 件のエントリーが保存、公開されました。}}`,entries_deleted:`.input {$count :integer} .match $count one {{エントリーが削除されました。}} * {{{$count} 個のエントリーが削除されました。}}`,assets_saved:`.input {$count :integer} .match $count one {{アセットが保存されました。}} * {{{$count} 個のアセットが保存されました。}}`,asset_saved_and_published:`アセットが保存、公開されました。`,assets_saved_and_published:`.input {$count :integer} .match $count one {{アセットが保存、公開されました。}} * {{{$count} 個のアセットが保存、公開されました。}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{アセット URL がクリップボードにコピーされました。}} * {{{$count} 個のアセット URL がクリップボードにコピーされました。}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{アセットファイルパスがクリップボードにコピーされました。}} * {{{$count} 個のアセットファイルパスがクリップボードにコピーされました。}}`,asset_data_copied:`.input {$count :integer} .match $count one {{アセットファイルがクリップボードにコピーされました。}} * {{{$count} 個のアセットファイルがクリップボードにコピーされました。}}`,assets_downloaded:`.input {$count :integer} .match $count one {{アセットファイルがダウンロードされました。}} * {{{$count} 個のアセットファイルがダウンロードされました。}}`,assets_moved:`.input {$count :integer} .match $count one {{アセットが移動されました。}} * {{{$count} 個のアセットが移動されました。}}`,assets_renamed:`.input {$count :integer} .match $count one {{アセットの名前が変更されました。}} * {{{$count} 個のアセットの名前が変更されました。}}`,assets_deleted:`.input {$count :integer} .match $count one {{アセットが削除されました。}} * {{{$count} 個のアセットが削除されました。}}`,content_editor:`コンテンツエディター`,restore_backup_title:`下書きを復元`,restore_backup_description:`このエントリーには {$datetime} に保存されたバックアップがあります。その編集済みの下書きを復元しますか?`,draft_backup_saved:`下書きのバックアップが保存されました。`,draft_backup_restored:`下書きのバックアップが復元されました。`,draft_backup_deleted:`下書きのバックアップが削除されました。`,cancel_editing:`編集をキャンセル`,create_entry_title:`{$name} を作成`,create_entry_announcement:`「{$collection}」コレクションの新しいエントリーを作成しています。`,edit_entry_title:`{$collection} › {$entry}`,edit_entry_announcement:`「{$collection}」コレクションの「{$entry}」エントリーを編集しています。`,edit_file_announcement:`「{$collection}」コレクションの「{$file}」ファイルを編集しています。`,edit_singleton_announcement:`「{$file}」ファイルを編集しています。`,save_and_publish:`保存して公開`,save_without_publishing:`公開せずに保存`,show_editor_options:`エディターオプションを表示`,editor_options:`エディターオプション`,show_preview:`プレビューを表示`,sync_scrolling:`スクロールを同期`,switch_locale:`ロケールを切り替え`,locale_content_disabled_short:`(無効)`,locale_content_error_short:`(エラー)`,edit:`編集`,preview:`プレビュー`,swap_panes:`ペインを入れ替える`,edit_x_locale:`{$locale} コンテンツを編集`,preview_x_locale:`{$locale} コンテンツをプレビュー`,content_preview:`コンテンツプレビュー`,show_content_options_x_locale:`{$locale} コンテンツのオプションを表示`,content_options_x_locale:`{$locale} コンテンツのオプション`,x_field:`「{$field}」フィールド`,show_field_options:`フィールドオプションを表示`,field_options:`フィールドオプション`,unsupported_field_type_x:`非対応フィールドタイプ: {$name}`,enable_x_locale:`{$locale} を有効化`,reenable_x_locale:`{$locale} を再度有効化`,disable_x_locale:`{$locale} を無効化`,locale_x_has_been_disabled:`{$locale} コンテンツは無効化されています。`,locale_x_now_disabled:`{$locale} コンテンツは無効化されました。エントリーを保存する際に削除されます。`,view_in_repository:`レポジトリ内で見る`,view_on_x:`{$service} で見る`,view_on_live_site:`管理対象サイトで見る`,copy_from:`他の言語からコピー…`,copy_from_x:`{$locale} からコピー`,translation_options:`翻訳オプション`,translate:`翻訳`,translate_fields:`フィールドを翻訳`,translate_from:`他の言語から翻訳…`,translate_from_x:`{$locale} から翻訳`,revert_changes:`変更を取り消す`,revert_all_changes:`すべての変更を取り消す`,edit_slug:`スラッグを編集`,edit_slug_warning:`スラッグを変更すると、エントリーへの内部・外部リンクが壊れる可能性があります。現在のところ、Sveltia CMS は Relation フィールドで作成された参照を更新しないため、そのような参照は他のリンクとともに手動で更新する必要があります。`,edit_slug_error:{empty:`スラッグは空白にはできません。`,duplicate:`このスラッグは他のエントリーに使われています。`},required:`必須`,editor:{translation:{none:`翻訳されたフィールドはありません。`,started:`翻訳中…`,error:`翻訳中に問題が発生しました。`,complete:`.input {$count :integer} .match $count 0 {{{$source} から翻訳されたフィールドはありません。}} one {{{$source} からフィールドを翻訳しました。}} * {{{$source} から {$count} 個のフィールドを翻訳しました。}}`},copy:{none:`コピーされたフィールドはありません。`,complete:`.input {$count :integer} .match $count 0 {{{$source} からコピーされたフィールドはありません。}} one {{{$source} からフィールドをコピーしました。}} * {{{$source} から {$count} 個のフィールドをコピーしました。}}`}},validation:{value_missing:`この項目は必須です。`,range_underflow:{"datetime-local":`日時は {$min} かそれ以降でなければなりません。`,date:`日付は {$min} かそれ以降でなければなりません。`,time:`時刻は {$min} かそれ以降でなければなりません。`,number:`値は {$min} 以上でなければなりません。`,select:`少なくとも {$min} 個の項目を選択してください。`,add:`少なくとも {$min} 個の項目を追加してください。`},range_overflow:{"datetime-local":`日時は {$max} かそれ以前でなければなりません。`,date:`日付は {$max} かそれ以前でなければなりません。`,time:`時刻は {$max} かそれ以前でなければなりません。`,number:`値は {$max} 以下でなければなりません。`,select:`これ以上選択できる項目はありません。最大は {$max} 個です。`,add:`これ以上追加できる項目はありません。最大は {$max} 個です。`},too_short:`少なくとも {$min} 文字は入力してください。`,too_long:`{$max} 文字を超える入力はできません。`,type_mismatch:{number:`数値を入力してください。`,email:`正しいメールアドレスを入力してください。`,url:`正しい URL を入力してください。`}},entry_sidebar:{sidebar_panels:`サイドバーパネル`,validation:{title:`バリデーション`,placeholder:`検証結果がここに表示されます。`,no_errors_found:`エラーは見つかりませんでした。`},history:{title:`履歴`,fetch_failed:`履歴を読み込めませんでした。`,no_history:`履歴が見つかりませんでした。`},backlinks:{title:`バックリンク`,no_entries:`このエントリーを参照しているエントリーはありません。`}},saving_entry:{error:{title:`エラー`,description:`エントリーを保存中に問題が発生しました。後で再度お試しください。`}},find_place:`場所を検索`,use_your_location:`現在地を使用`,geolocation_error_title:`位置情報エラー`,geolocation_error_body:`あなたの現在地を取得できませんでした。`,geolocation_unsupported:`お使いのブラウザーは位置情報 API をサポートしていません。`,viewing_x_asset_details:`「{$name}」アセットの詳細を表示しています。`,asset_editor:`アセットエディター`,preview_unavailable:`プレビューは表示できません`,public_urls:`公開 URL`,file_paths:`ファイルパス`,file_data:`ファイルデータ`,kind:`種類`,size:`サイズ`,dimensions:`大きさ`,duration:`再生時間`,used_in:`使われているエントリー`,created_date:`作成日時`,location:`場所`,map_lat_lng:`緯度 {$latitude}、経度 {$longitude} の地図`,remove_this_item:`このアイテムを削除`,move_up:`上へ移動`,move_down:`下へ移動`,add_x:`{$name} を追加`,add_item_above:`上にアイテムを追加`,add_item_below:`下にアイテムを追加`,select_list_type:`リストタイプを選択`,opacity:`透明度`,unselected_option:`(なし)`,assets_dialog:{title:{file:`ファイルを選択`,image:`画像を選択`},search_for_file:`ファイルを検索`,search_for_image:`画像を検索`,locations:`場所`,folder:{field:`フィールドアセット`,entry:`エントリーアセット`,file:`ファイルアセット`,collection:`コレクションアセット`,global:`グローバルアセット`},error:{invalid_key:`あなたの API キーは正しくないか期限切れです。確認の上、再度お試しください。`,search_fetch_failed:`アセットを検索中に問題が発生しました。後で再度お試しください。`,image_fetch_failed:`選択されたアセットをダウンロード中に問題が発生しました。後で再度お試しください。`},available_images:`利用可能な画像`,enter_url:`URL を入力`,enter_file_url:`ファイルの URL を入力:`,enter_image_url:`画像の URL を入力:`,large_file:{title:`大きなファイル`},photo_credit:{title:`写真クレジット`,description:`可能であれば以下のクレジットを使ってください:`},unsaved:`未保存`},character_counter:{min_max:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最小: {$min}。最大 {$max}。}} * {{{$count} 文字入力されています。最小: {$min}。最大 {$max}。}}`,min:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最小: {$min}}} * {{{$count} 文字入力されています。最小: {$min}。}}`,max:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最大: {$max}。}} * {{{$count} 文字入力されています。最大: {$max}。}}`},youtube_video_player:`YouTube 動画プレーヤー`,today:`今日`,now:`現在時刻`,editor_components:{image:`画像`,src:`ソース`,alt:`代替テキスト`,title:`タイトル`,link:`リンク`},key_value:{key:`キー`,value:`値`,action:`アクション`,empty_key:`キーは必須です。`,duplicate_key:`キーが重複しています。`},boolean:{true:`はい`,false:`いいえ`},cloud_storage:{invalid:`このサービスは正しく設定されていません。`,auth:{api_key:{key_label:`API キー`,initial:`{$service} の {$key} を入力してください。`,requested:`検証中…`,error:`入力された {$key} が無効です。確認の上、再度お試しください。`},password:{initial:`{$service} のパスワードを入力してください。`,requested:`ログイン中…`,error:`ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。`}},cloudinary:{iframe_title:`Cloudinary メディアライブラリ`,activate:{button_label:`Cloudinary を有効化`,description:`ログイン後、再度 Sign In ボタンをクリックして続行してください。`},auth_key_label:`API Secret`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`シークレットアクセスキー`},cloudflare_r2:{auth_key_label:`シークレットアクセスキー`},digitalocean_spaces:{auth_key_label:`シークレットアクセスキー`}},config:{errors:`CMS 設定に問題が見つかりました。問題を解決してから再度お試しください。`,error_locator:{collection:`{$collection} コレクション`,file:`{$file} ファイル`,field:"`{$field}` フィールド"},error:{no_secure_context:`Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。`,insecure_urls:`設定ファイルの URL は HTTPS プロトコルまたはローカルホストアドレスを使用する必要があります。`,fetch_failed:`設定ファイルを読み込めませんでした。`,fetch_failed_not_ok:`HTTP レスポンスがステータス {$status} で返されました。`,fetch_failed_with_manual_init:"設定ファイルを取得できませんでした。`config.yml` ファイルの読み込みを防ぐには、`CMS.init()` に渡される設定オブジェクトに [`load_config_file: false`](https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration) を追加してください。",parse_failed:`設定ファイルを解析できませんでした。`,parse_failed_invalid_object:`設定ファイルが有効な JavaScript オブジェクトではありません。`,parse_failed_unsupported_type:`設定ファイルが有効なファイル形式ではありません。サポートされているのは YAML、TOML と JSON のみです。`,no_collection:`コレクションが定義されていません。`,missing_backend:`バックエンドが定義されていません。`,missing_backend_name:`バックエンド名が定義されていません。`,unsupported_known_backend:`{$name} バックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_deprecated_backend:`廃止予定の {$name} バックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_custom_backend:`カスタムバックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_backend_suggestion:`[サポートされているバックエンド](https://sveltiacms.app/en/docs/backends#supported-backends) のいずれかを使用してください。`,missing_repository:`レポジトリが定義されていません。`,invalid_repository:`設定されているレポジトリが正しくありません。この設定は「owner/repo」形式でなければなりません。`,oauth_implicit_flow:`設定されている認証方式 (暗黙的フロー) は Sveltia CMS では非対応です。代わりに他の [認証方法](https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication) を使用してください。`,github_pkce_unsupported:`GitHub の制約により PKCE 認証はまだサポートされていません。代わりに他の [認証方法](https://sveltiacms.app/en/docs/backends/github#authentication) を使用してください。`,oauth_no_app_id:`OAuth アプリケーション ID が定義されていません。`,no_auth_methods:"`auth_methods` オプションには少なくとも 1 つの認証方法を含める必要があります。",missing_media_folder:`メディアフォルダーが定義されていません。`,invalid_media_folder:`設定されているメディアフォルダーが正しくありません。この設定は文字列でなければなりません。`,invalid_public_folder:`設定されているパブリックフォルダーが正しくありません。この設定は文字列でなければなりません。`,public_folder_relative_path:`設定されているパブリックフォルダーが正しくありません。この設定は「/」で始まる絶対パスでなければなりません。`,public_folder_absolute_url:`パブリックフォルダーオプションの絶対 URL は Sveltia CMS では非対応です。`,invalid_collection_no_options:"コレクションは `folder`、`files`、`divider` オプションのいずれかを定義する必要があります。",invalid_collection_multiple_options:"コレクションは `folder`、`files`、`divider` オプションを同時に持つことはできません。",file_format_mismatch:"拡張子 `{$extension}` は `{$format}` 形式と一致しません。",invalid_slug_slash:"スラッグテンプレート `{$slug}` は無効です。スラッシュを含めることはできません。エントリーをサブフォルダーに整理するには、`slug` の代わりに `path` オプションを使用してください。",missing_collection_name:"コレクション {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_collection_name:"コレクション名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_collection_name:"コレクション名は一意でなければなりませんが、`{$name}` が複数回使用されています。",missing_collection_file_name:"コレクションファイル {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_collection_file_name:"コレクションファイル名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_collection_file_name:"コレクションファイル名は一意でなければなりませんが、`{$name}` が複数回使用されています。",collection_no_fields:`コレクションには少なくとも 1 つのフィールドを定義する必要があります。`,collection_file_no_fields:`コレクションファイルには少なくとも 1 つのフィールドを定義する必要があります。`,missing_field_name:"フィールド {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_field_name:"フィールド名 `{$name}` は無効です。特殊文字を含めることはできません。ネストされたフィールドを作成したい場合は、[ドット表記ではなくオブジェクトフィールドを使用してください](https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions)。",duplicate_field_name:"フィールド名は一意でなければなりませんが、`{$name}` が複数回使用されています。",missing_variable_type:"変数タイプ {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_variable_type:"変数タイプ名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_variable_type:"変数タイプ名は一意でなければなりませんが、`{$name}` が複数回使用されています。",date_field_type:"Sveltia CMS では非推奨の Date フィールドタイプはサポートされていません。代わりに `type: date` オプション付きの DateTime フィールドタイプを使用してください。",unsupported_deprecated_option:"Sveltia CMS では非推奨の `{$prop}` オプションはサポートされていません。代わりに `{$newProp}` オプションを使用してください。",allow_multiple:"Sveltia CMS では `allow_multiple` オプションはサポートされていません。代わりにデフォルトで `false` の `multiple` オプションを使用してください。",invalid_list_field:"List フィールドは `field`、`fields`、`types` オプションを同時に持つことはできません。",invalid_list_variable_type:"List フィールドの変数タイプが無効です。`widget` オプションは `{$widget}` に設定されていますが、`object` でなければなりません。",invalid_object_field:"Object フィールドは `fields` と `types` オプションを同時に持つことはできません。",object_field_missing_fields:"Object フィールドは `fields` または `types` オプションのいずれかを定義する必要があります。",relation_field_invalid_collection:"参照されている `{$collection}` コレクションは無効であるか定義されていません。",relation_field_invalid_collection_file:"参照されている `{$file}` ファイルは無効であるか定義されていません。",relation_field_missing_file_name:"ファイルコレクションへの参照には `file` オプションを定義する必要があります。",relation_field_invalid_value_field:"参照されている値フィールド `{$field}` は無効であるか定義されていません。",unexpected:`予期せぬ問題`},warning:{oauth_no_app_id:`OAuth アプリケーション ID が定義されていません。ユーザーがログインするにはアクセストークンを入力する必要があります。`,editorial_workflow_unsupported:`Sveltia CMS ではまだエディトリアルワークフローはサポートされていません。`,open_authoring_unsupported:`Sveltia CMS ではまだオープンオーサリングはサポートされていません。`,nested_collections_unsupported:`Sveltia CMS ではネストされたコレクションはまだサポートされていません。`,unsupported_ignored_option:"`{$prop}` オプションは Sveltia CMS ではサポートされていません。このオプションは無視されます。"},compatibility_link:`詳しくは互換性情報をご覧ください: https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`},local_workflow:{indicator:`ローカル`,unsupported_browser:`お使いのブラウザーはローカルワークフローに対応していません。代わりに Chrome か Edge を使ってください。`,disabled:`お使いのブラウザーではローカルワークフローが無効化されています。<a>有効化する方法はこちら</a>。`},status:{drafts:`下書き`,in_review:`レビュー中`,ready:`公開可`},categories:`カテゴリ`,prefs:{changes:{api_key_saved:`API キーが保存されました。`,api_key_removed:`API キーが削除されました。`,api_key_invalid:`入力された API キーは無効です。再度確認してお試しください。`},error:{permission_denied:`ブラウザーストレージ (Cookie) アクセスが拒否されました。許可設定を確認の上、再度お試しください。`},appearance:{title:`アピアランス`,theme:`テーマ`,select_theme:`テーマを選択`},theme:{auto:`自動`,dark:`ダーク`,light:`ライト`},language:{title:`言語`,ui_language:{title:`ユーザーインターフェース言語`,select_language:`言語を選択`}},contents:{title:`コンテンツ`,editor:{title:`エディター`,use_draft_backup:{switch_label:`エントリーの下書きを自動的にバックアップする`},close_on_save:{switch_label:`下書き保存後にエディターを閉じる`},close_with_escape:{switch_label:`Escape キーでエディターを閉じる`}}},i18n:{title:`国際化`,translators:{default:{title:`デフォルト翻訳サービス`,select_service:`サービスを選択`},api_keys:{title:`翻訳サービス API キー`,description:`<a>翻訳サービス</a> の API キーを管理します。`},field_label:`{$service} キー`,description:`<a {$homeHref}>{$service}</a> にユーザー登録して、<a {$apiKeyHref}>発行されたキー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。`}},media:{title:`メディア`,stock_photos:{api_keys:{title:`無料画像素材サービス API キー`,description:`<a>無料画像素材サービス</a> の API キーを管理します。`},field_label:`{$service} API キー`,description:`<a {$homeHref}>{$service} API</a> にユーザー登録して、<a {$apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。`,credit:`写真提供: {$service}`,no_services:`利用可能な <a>無料画像素材サービス</a> はありません。`},cloud_storage:{api_keys:{title:`クラウドストレージサービス API キー`,description:`<a>クラウドストレージサービス</a> の API キーを管理します。`},field_label:`{$service} API キー`,no_services:`利用可能な <a>クラウドストレージサービス</a> はありません。`}},accessibility:{title:`アクセシビリティ`,underline_links:{title:`リンクに下線を付ける`,description:`エントリープレビューやユーザーインターフェイスラベル内のリンクに下線を表示します。`,switch_label:`常に下線を付ける`}},advanced:{title:`詳細`,beta:{title:`ベータ機能`,description:`不安定あるいは未ローカライズの可能性がある、いくつかのベータ機能を有効化します。`,switch_label:`ベータプログラムに参加する`},developer_mode:{title:`開発者モード`,description:`詳細なコンソールログやネイティブコンテキストメニューなど、いくつかの開発者向け機能を有効化します。`,switch_label:`開発者モードを有効にする`},deploy_hook:{title:`デプロイフック`,description:`「変更を公開」を選択して手動でデプロイを実行する際に呼び出すウェブフック URL を入力してください。GitHub Actions を使用する場合は空欄のままで構いません。`,url:{field_label:`フック URL`,saved:`フック URL が保存されました。`,removed:`フック URL が削除されました。`},auth:{field_label:`認証ヘッダー (例: Bearer <token>) (オプション)`,saved:`認証ヘッダーが保存されました。`,removed:`認証ヘッダーが削除されました。`}}}},keyboard_shortcuts_:{view_content_library:`コンテンツライブラリを表示`,view_asset_library:`アセットライブラリを表示`,search:`エントリーとアセットを検索`,create_entry:`新しいエントリーを作成`,save_entry:`エントリーを保存`,cancel_editing:`エントリーの編集をキャンセル`},file_type_labels:{avif:`AVIF 画像`,bmp:`Bitmap 画像`,gif:`GIF 画像`,ico:`アイコン`,jpeg:`JPEG 画像`,jpg:`JPEG 画像`,png:`PNG 画像`,svg:`SVG 画像`,tif:`TIFF 画像`,tiff:`TIFF 画像`,webp:`WebP 画像`,avi:`AVI 動画`,m4v:`MP4 動画`,mov:`QuickTime 動画`,mp4:`MP4 動画`,mpeg:`MPEG 動画`,mpg:`MPEG 動画`,ogg:`Ogg 動画`,ogv:`Ogg 動画`,ts:`MPEG 動画`,webm:`WebM 動画`,"3gp":`3GPP 動画`,"3g2":`3GPP2 動画`,aac:`AAC 音声`,mid:`MIDI`,midi:`MIDI`,m4a:`MP4 音声`,mp3:`MP3 音声`,oga:`Ogg 音声`,opus:`OPUS 音声`,wav:`WAV 音声`,weba:`WebM 音声`,csv:`CSV スプレッドシート`,doc:`Word ドキュメント`,docx:`Word ドキュメント`,odp:`OpenDocument プレゼンテーション`,ods:`OpenDocument スプレッドシート`,odt:`OpenDocument テキスト`,pdf:`PDF ドキュメント`,ppt:`PowerPoint プレゼンテーション`,pptx:`PowerPoint プレゼンテーション`,rtf:`リッチテキストドキュメント`,xls:`Excel スプレッドシート`,xlsx:`Excel スプレッドシート`,html:`HTML テキスト`,js:`JavaScript`,json:`JSON テキスト`,md:`Markdown テキスト`,toml:`TOML テキスト`,yaml:`YAML テキスト`,yml:`YAML テキスト`},file_size_units:{b:`{$size} バイト`,kb:`{$size} KB`,mb:`{$size} MB`,gb:`{$size} GB`,tb:`{$size} TB`}}})),k6,A6,j6=s((()=>{Bue(),Vue(),Z(),Pp(),ip(),nN(),k6=rp(()=>kh.current),A6=()=>{Object.entries(Object.assign({"/src/lib/locales/en.yaml":D6,"/src/lib/locales/ja.yaml":O6})).forEach(([e,t])=>{let n=Op(e).filename;Th(n,t)}),jh({fallbackLocale:`en`,initialLocale:A(tN).locale||(Ah()??``).split(`-`)[0]||`en`})}})),M6,Hue=s((()=>{Z(),ip(),j6(),EF(),M6=dn([dF,k6],([e],t)=>{let n=[`name`];e.every(e=>!!e.commitAuthor)&&n.push(`commit_author`),e.every(e=>!!e.commitDate)&&n.push(`commit_date`),t(n.map(e=>({key:e,label:X(`sort_keys.${e}`)})))})}));function Uue(e,t){O(t,!0);let n=()=>j(f1,`$listedAssets`,c),r=()=>j(VA,`$isSmallScreen`,c),i=()=>j(HA,`$isMediumScreen`,c),a=()=>j(p1,`$assetGroups`,c),o=()=>j(M6,`$sortKeys`,c),s=()=>j(d1,`$currentView`,c),[c,l]=hn(),u=M(()=>!!n().length),d=M(()=>n().length>1);{let t=M(()=>X(`asset_list`));i$(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=P6(),c=I(n),l=e=>{{let t=M(()=>Object.values(a()).flat(1));m6(e,{get allItems(){return z(t)},get selectedItems(){return hF}})}};G(c,e=>{r()||i()||e(l)});var f=L(c,2);ZI(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(d));y6(p,{get disabled(){return z(e)},get currentView(){return d1},get sortKeys(){return o()},"aria-controls":`asset-list`})}var m=L(p,2);{let e=M(()=>X(`type`)),t=M(()=>!z(d)),n=M(()=>X(`all`)),r=M(()=>wS.map(e=>({label:X(e),field:`fileType`,pattern:e})));d6(m,{get label(){return z(e)},get disabled(){return z(t)},get currentView(){return d1},get noneLabel(){return z(n)},get filters(){return z(r)},"aria-controls":`asset-list`})}var h=L(m,2);{let e=M(()=>!z(u));S6(h,{get disabled(){return z(e)},get currentView(){return d1},"aria-controls":`asset-list`})}var g=L(h,2),_=e=>{var t=N6(),n=I(t);qI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{UF(e,{name:`info`})},t=M(()=>!z(u)),n=M(()=>!!s().showInfo),i=M(()=>!!s().showInfo),a=M(()=>X(s().showInfo?`hide_info`:`show_info`));lI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get pressed(){return z(n)},"aria-controls":`asset-info`,get"aria-expanded"(){return z(i)},get"aria-label"(){return z(a)},onclick:()=>{d1.update(e=>({...e,showInfo:!s().showInfo}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(g,e=>{r()||i()||e(_)}),U(e,n)},$$slots:{default:!0}})}k(),l()}var N6,P6,Wue=s((()=>{Q(),Y(),Z(),G$(),p6(),v6(),x6(),E6(),EF(),jS(),m1(),Hue(),KA(),N6=V(`<!> <!>`,1),P6=V(`<!> <!> <!> <!> <!> <!>`,1)}));function F6(e,t){K(e,L6);let n=J(t,`primaryToolbar`,3,void 0),r=J(t,`secondaryToolbar`,3,void 0),i=J(t,`mainContent`,3,void 0),a=J(t,`secondarySidebar`,3,void 0),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`primaryToolbar`,`secondaryToolbar`,`mainContent`,`secondarySidebar`]);var s=I6();bs(s,()=>({role:`group`,class:`wrapper`,...o}),void 0,void 0,void 0,`svelte-1x2ldab`);var c=F(s);Eo(c,()=>n()??E);var l=L(c,2),u=F(l),d=F(u);Eo(d,()=>r()??E),Eo(L(d,2),()=>i()??E),D(u),Eo(L(u,2),()=>a()??E),D(l),D(s),U(e,s)}var I6,L6,R6=s((()=>{Q(),Y(),I6=V(`<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>`),L6={hash:`svelte-1x2ldab`,code:`.wrapper.svelte-1x2ldab {flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-primary-background-color);}
|
|
851
851
|
@media (768px <= width) {.wrapper.svelte-1x2ldab {view-transition-name:page-main;}
|
|
852
852
|
}.wrapper.svelte-1x2ldab:not(:first-child) {border-start-start-radius:16px;}.wrapper.svelte-1x2ldab .sui.toolbar.primary {justify-content:center;}
|
|
853
853
|
@media (width < 768px) {.wrapper.svelte-1x2ldab .sui.toolbar.primary {background-color:var(--sui-secondary-background-color);}
|
|
@@ -931,7 +931,7 @@ IMPORTANT INSTRUCTIONS:\n${[...n,...r,...i].join(`
|
|
|
931
931
|
|
|
932
932
|
Required JSON structure:
|
|
933
933
|
["translation 1", "translation 2", ...]`},D5=e=>`Translate these texts and return ONLY valid JSON (no markdown, no code blocks):
|
|
934
|
-
${JSON.stringify(e)}\n\nRespond with JSON only:`,O5=(e,t,n)=>{let r;try{r=JSON.parse(e)}catch{throw Error(`Failed to parse JSON response from ${n}.`)}if(!Array.isArray(r))throw Error(`Invalid JSON structure in ${n} response.`);if(r.length!==t)throw Error(`Translation count mismatch: expected ${t}, got ${r.length}`);return r}})),Vde,Hde,Ude,Wde,Gde,Kde,qde=s((()=>{Bde(),k5(),Vde=`anthropic`,Hde=`Anthropic Claude`,Ude=`claude-haiku-4-5`,Wde=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),Gde=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await zde({apiKey:r,model:Ude,systemPrompt:E5(i,a),userMessage:D5(e)}),e.length,`Anthropic API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Anthropic API.`)}},Kde={serviceId:Vde,serviceLabel:Hde,apiLabel:Fde,developerURL:Ide,apiKeyURL:Lde,apiKeyPattern:Rde,markdownSupported:!0,availability:Wde,translate:Gde}})),Jde,Yde,Xde,Zde,Qde,$de,efe=s((()=>{Jde=`https://api.deepseek.com/chat/completions`,Yde=`DeepSeek API`,Xde=`https://api-docs.deepseek.com/`,Zde=`https://platform.deepseek.com/api_keys`,Qde=/sk-[a-zA-Z0-9]{32,}/,$de=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,thinking:o=!0})=>{let s=await fetch(Jde,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,messages:[{role:`system`,content:n},{role:`user`,content:r}],temperature:i,max_tokens:a,thinking:{type:o?`enabled`:`disabled`},stream:!1})});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error(`DeepSeek API error: ${s.status} ${s.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let c=await s.json();if(!c.choices||!Array.isArray(c.choices)||!c.choices[0]?.message?.content)throw Error(`Invalid response format from DeepSeek API.`);return c.choices[0].message.content.trim()}})),tfe,nfe,rfe,ife,afe,ofe,sfe=s((()=>{efe(),k5(),tfe=`deepseek`,nfe=`DeepSeek`,rfe=`deepseek-v4-flash`,ife=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),afe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await $de({apiKey:r,model:rfe,systemPrompt:E5(i,a),userMessage:D5(e),thinking:!1}),e.length,`DeepSeek API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with DeepSeek API.`)}},ofe={serviceId:tfe,serviceLabel:nfe,apiLabel:Yde,developerURL:Xde,apiKeyURL:Zde,apiKeyPattern:Qde,markdownSupported:!0,availability:ife,translate:afe}})),cfe,lfe,ufe,dfe,ffe,pfe,A5,j5,mfe,hfe,M5,gfe=s((()=>{cfe=`google`,lfe=`Google Cloud Translation`,ufe=`Cloud Translation API`,dfe=`https://console.cloud.google.com/apis/library/translate.googleapis.com`,ffe=`https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials`,pfe=/AIza[0-9A-Za-z-_]{35}/,A5=[`ab,ace,ach,af,ak,alz,am,ar,as,awa,ay,az`,`ba,ban,bbc,be,bem,bew,bg,bho,bik,bm,bn,br,bs,bts,btx,bua`,`ca,ceb,cgg,chm,ckb,cnh,co,crh,crs,cs,cv,cy`,`da,de,din,doi,dov,dv,dz`,`ee,el,en,eo,es,et,eu`,`fa,ff,fi,fil,fj,fr,fr-CA,fr-FR,fy`,`ga,gaa,gd,gl,gn,gom,gu`,`ha,haw,he,hi,hil,hmn,hr,hrx,ht,hu,hy`,`id,ig,ilo,is,it,iw`,`ja,jv,jw`,`ka,kk,km,kn,ko,kri,ktu,ku,ky`,`la,lb,lg,li,lij,lmo,ln,lo,lt,ltg,luo,lus,lv`,`mai,mak,mg,mi,min,mk,ml,mn,mni-Mtei,mr,ms,ms-Arab,mt,my`,`ne,new,nl,no,nr,nso,nus,ny`,`oc,om,or`,`pa,pa-Arab,pag,pam,pap,pl,ps,pt,pt-BR,pt-PT`,`qu`,`rn,ro,rom,ru,rw`,`sa,scn,sd,sg,shn,si,sk,sl,sm,sn,so,sq,sr,ss,st,su,sv,sw,szl`,`ta,te,tet,tg,th,ti,tk,tl,tn,tr,ts,tt`,`ug,uk,ur,uz`,`vi`,`xh`,`yi,yo,yua,yue`,`zh,zh-CN,zh-TW,zu`].join(`,`).split(`,`),j5=e=>{let t=e.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(e,t,n)=>`${t.toLowerCase()}-${n.toUpperCase()}`);if(A5.includes(t))return t;if([`zh-HK`,`zh-MO`].includes(t))return`zh-TW`;let[n]=t.split(`-`);if(A5.includes(n))return n},mfe=async({sourceLanguage:e,targetLanguage:t})=>!!j5(e)&&!!j5(t),hfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{if(t=j5(t)??``,n=j5(n)??``,!t)throw Error(`Source locale is not supported.`);if(!n)throw Error(`Target locale is not supported.`);let i={q:e,source:t,target:n,format:`html`};try{let e=await fetch(`https://translation.googleapis.com/language/translate/v2`,{method:`POST`,headers:{"Content-Type":`application/json`,"X-goog-api-key":r},body:JSON.stringify(i)});if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(`Google Translate API error: ${e.status} ${e.statusText}${t.error?.message?` - ${t.error.message}`:``}`)}let{data:t}=await e.json();return t.translations.map(e=>e.translatedText.replace(/'/g,`'`))}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Google Translate API.`)}},M5={serviceId:cfe,serviceLabel:lfe,apiLabel:ufe,developerURL:dfe,apiKeyURL:ffe,apiKeyPattern:pfe,markdownSupported:!1,availability:mfe,translate:hfe}})),_fe,vfe,yfe,bfe,xfe,Sfe=s((()=>{_fe=`Google AI Studio API`,vfe=`https://ai.google.dev/gemini-api/docs`,yfe=`https://aistudio.google.com/api-keys`,bfe=/AIza[a-zA-Z0-9_-]{35}/,xfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,responseFormat:o})=>{let s=`https://generativelanguage.googleapis.com/v1beta/models/${t}:generateContent?key=${e}`,c=await fetch(s,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({system_instruction:{parts:[{text:n}]},contents:[{parts:[{text:r}]}],generationConfig:{temperature:i,maxOutputTokens:a,...o?{responseMimeType:o}:{}}})});if(!c.ok){let e=await c.json().catch(()=>({}));throw Error(`Gemini API error: ${c.status} ${c.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let l=await c.json();if(!Array.isArray(l.candidates)||!l.candidates[0]?.content?.parts?.[0])throw Error(`Invalid response format from Gemini API.`);return l.candidates[0].content.parts[0].text.trim()}})),Cfe,wfe,Tfe,Efe,Dfe,Ofe,kfe=s((()=>{Sfe(),k5(),Cfe=`google-ai`,wfe=`Google Gemini`,Tfe=`gemini-3.1-flash-lite`,Efe=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),Dfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await xfe({apiKey:r,model:Tfe,systemPrompt:E5(i,a),userMessage:D5(e),responseFormat:`application/json`}),e.length,`Gemini API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Gemini API.`)}},Ofe={serviceId:Cfe,serviceLabel:wfe,apiLabel:_fe,developerURL:vfe,apiKeyURL:yfe,apiKeyPattern:bfe,markdownSupported:!0,availability:Efe,translate:Dfe}})),Afe,jfe,Mfe,Nfe,Pfe,Ffe,Ife,Lfe,Rfe=s((()=>{Afe=`https://api.openai.com/v1/responses`,jfe=`OpenAI API`,Mfe=`https://platform.openai.com/docs/overview`,Nfe=`https://platform.openai.com/api-keys`,Pfe=/sk-[a-zA-Z0-9-_]{40,}/,Ffe=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`message`&&`content`in e&&Array.isArray(e.content),Ife=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`output_text`&&`text`in e&&typeof e.text==`string`,Lfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3})=>{let o=await fetch(Afe,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,instructions:n,input:r,store:!1,temperature:i,max_output_tokens:a})});if(!o.ok){let e=await o.json().catch(()=>({}));throw Error(`OpenAI API error: ${o.status} ${o.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let s=await o.json();if(typeof s.output_text==`string`)return s.output_text.trim();let c=(Array.isArray(s.output)?s.output:[]).find(Ffe),l=(Array.isArray(c?.content)?c.content:[]).find(Ife);if(typeof l?.text==`string`)return l.text.trim();throw Error(`Invalid response format from OpenAI API.`)}})),zfe,Bfe,Vfe,Hfe,Ufe,Wfe,Gfe=s((()=>{Rfe(),k5(),zfe=`openai`,Bfe=`OpenAI GPT`,Vfe=`gpt-5.4-nano`,Hfe=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),Ufe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await Lfe({apiKey:r,model:Vfe,systemPrompt:E5(i,a),userMessage:D5(e)}),e.length,`OpenAI API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with OpenAI API.`)}},Wfe={serviceId:zfe,serviceLabel:Bfe,apiLabel:jfe,developerURL:Mfe,apiKeyURL:Nfe,apiKeyPattern:Pfe,markdownSupported:!0,availability:Hfe,translate:Ufe}})),N5,P5,F5=s((()=>{ip(),nN(),qde(),sfe(),gfe(),kfe(),Gfe(),N5={google:M5,"google-ai":Ofe,anthropic:Kde,deepseek:ofe,openai:Wfe},P5=dn([tN],([e])=>{let{defaultTranslationService:t=`google`}=e;return N5[t]??M5})})),I5,Kfe,L5,qfe,Jfe,R5,Yfe=s((()=>{dO(),ip(),jde(),Y4(),HF(),yA(),w5(),F5(),nN(),I5=new d5({headingStyle:`atx`,bulletListMarker:`-`,codeBlockStyle:`fenced`}),I5.keep([`span`,`div`]),Kfe=({draft:e,options:t})=>{let{collectionName:n,fileName:r,currentValues:i,isIndexFile:a}=e,{sourceLanguage:o,targetLanguage:s,keyPath:c=``,translate:l=!1}=t,u=i[o],d={collectionName:n,fileName:r,valueMap:u,isIndexFile:a};return Object.fromEntries(Object.entries(u).map(([e,t])=>{let n=i[s][e],r=fA({...d,keyPath:e}),a=r?.widget??`string`;return c&&!e.startsWith(c)||typeof t!=`string`||!t||![`richtext`,`markdown`,`text`,`string`,`list`].includes(a)||a===`list`&&C5(r).hasSubFields||!l&&t===n||!c&&l&&n?null:[e,{value:t,isMarkdown:a===`richtext`||a===`markdown`}]}).filter(e=>!!e))},L5=(e,t,{count:n,sourceLanguage:r})=>{LF.set({id:Date.now(),show:!0,status:e,message:t,count:n,sourceLanguage:r})},qfe=async({currentValues:e,options:t,copingFieldMap:n})=>{let{serviceId:r,markdownSupported:i,translate:a}=A(P5),{sourceLanguage:o,targetLanguage:s}=t,c=Object.keys(n).length,l=A(tN).apiKeys?.[r]||await new Promise(e=>{IF.set({show:!0,multiple:c>1,resolve:e})});if(l){L5(`info`,`translation.started`,{count:c,sourceLanguage:o});try{let t=await a(Object.entries(n).map(([,{value:e,isMarkdown:t}])=>t&&!i?uO(e):e),{apiKey:l,sourceLanguage:o,targetLanguage:s});Object.entries(n).forEach(([n,{isMarkdown:r}],a)=>{let o=t[a];e[s][n]=r&&!i?I5.turndown(o):o}),L5(`success`,`translation.complete`,{count:c,sourceLanguage:o})}catch(e){L5(`error`,`translation.error`,{count:c,sourceLanguage:o}),console.error(e)}}},Jfe=({currentValues:e,options:t,copingFieldMap:n})=>{let{sourceLanguage:r,targetLanguage:i}=t,a=Object.keys(n).length;Object.entries(n).forEach(([t,{value:n}])=>{e[i][t]=n}),L5(`success`,`copy.complete`,{count:a,sourceLanguage:r})},R5=async e=>{let{sourceLanguage:t,translate:n=!1}=e,r=A(W4),{currentValues:i}=r,a=Kfe({draft:r,options:e}),o=Object.keys(a).length;if(!o){L5(`info`,`${n?`translation`:`copy`}.none`,{count:o,sourceLanguage:t});return}n?await qfe({currentValues:i,options:e,copingFieldMap:a}):Jfe({currentValues:i,options:e,copingFieldMap:a}),W4.update(e=>({...e,currentValues:i}))}}));function z5(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,i),r=()=>j(P5,`$translator`,i),[i,a]=hn(),o=J(t,`keyPath`,3,``),s=J(t,`translate`,3,!1),c=async({sourceLanguage:e,targetLanguage:t})=>!n()?.currentLocales[t]||!n().currentLocales[e]||!!o()&&!jt(n().currentValues[e])[o()]||!s()&&!!o()&&jt(n().currentValues[e])[o()]===jt(n().currentValues[t])[o()]||s()&&!await r()?.availability({sourceLanguage:e,targetLanguage:t});var l=H();mo(I(l),16,()=>t.otherLocales,e=>e,(e,n)=>{let r=M(()=>({sourceLanguage:n,targetLanguage:t.locale}));var i=H();eo(I(i),()=>c(z(r)),null,(e,t)=>{{let i=M(()=>X(s()?`translate_from_x`:`copy_from_x`,{values:{locale:cb(n)}}));tR(e,{get label(){return z(i)},get disabled(){return z(t)},onclick:()=>{R5({...z(r),keyPath:o(),translate:s()})}})}}),U(e,i)}),U(e,l),k(),a()}var B5=s((()=>{Q(),Y(),Z(),G$(),Y4(),Yfe(),fb(),F5()}));function Xfe(e,t){O(t,!0),K(e,Qfe);let n=J(t,`children`,3,void 0),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`children`]),i=N(void 0);ac(()=>()=>{z(i)?.dispatchEvent(new CustomEvent(`Unmount`))});var a=Zfe();bs(a,()=>({role:`group`,class:`field`,...r}),void 0,void 0,void 0,`svelte-wzztxu`),Eo(F(a),()=>n()??E),D(a),Ws(a,e=>P(i,e),()=>z(i)),U(e,a),k()}var Zfe,Qfe,$fe=s((()=>{Q(),Y(),sc(),Zfe=V(`<section><!></section>`),Qfe={hash:`svelte-wzztxu`,code:`section.svelte-wzztxu {padding:var(--field-editor-padding);}section.svelte-wzztxu:not(:last-child) {border-width:0 0 1px;border-color:var(--sui-secondary-border-color);}section.svelte-wzztxu > * {margin-inline:auto !important;max-width:768px;}section.svelte-wzztxu > header {display:flex;align-items:center;margin:0 -8px 8px;height:var(--sui-button-small-height);}section.svelte-wzztxu > header h4 {margin-inline:var(--sui-focus-ring-width) 0;font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}section.svelte-wzztxu > header .required {margin-block:2px 0;margin-inline:2px 0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-large);}`}}));function epe(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,i),r=()=>j(P5,`$translator`,i),[i,a]=hn(),o=J(t,`size`,3,`medium`),s=J(t,`keyPath`,3,``),c=M(()=>!n()?.currentLocales[t.locale]),l=async({sourceLanguage:e,targetLanguage:t})=>z(c)||!n()?.currentLocales[e]||!await r()?.availability({sourceLanguage:e,targetLanguage:t});var u=H(),d=I(u),f=e=>{let n=M(()=>{let[e]=t.otherLocales;return{otherLocale:e}}),r=M(()=>X(`translate_from_x`,{values:{locale:cb(z(n).otherLocale)??z(n).otherLocale}})),i=M(()=>({sourceLanguage:z(n).otherLocale,targetLanguage:t.locale}));var a=H();eo(I(a),()=>l(z(i)),null,(e,t)=>{lI(e,{variant:`ghost`,get size(){return o()},iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},get title(){return z(r)},get disabled(){return z(t)},onclick:()=>{R5({...z(i),keyPath:s(),translate:!0})},startIcon:e=>{UF(e,{name:`translate`})},$$slots:{startIcon:!0}})}),U(e,a)},p=e=>{{let n=e=>{UF(e,{name:`translate`})},r=e=>{{let n=M(()=>X(`translation_options`));ZL(e,{get"aria-label"(){return z(n)},children:(e,n)=>{z5(e,{get locale(){return t.locale},get otherLocales(){return t.otherLocales},get keyPath(){return s()},translate:!0})},$$slots:{default:!0}})}},i=M(()=>X(`translate`));VI(e,{variant:`ghost`,get size(){return o()},iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},get disabled(){return z(c)},endIcon:n,popup:r,$$slots:{endIcon:!0,popup:!0}})}};G(d,e=>{t.otherLocales.length===1?e(f):e(p,-1)}),U(e,u),k(),a()}var tpe=s((()=>{Q(),Y(),Z(),G$(),B5(),Y4(),Yfe(),fb(),F5()}));function V5(e,t){K(e,rpe);let n=J(t,`id`,3,void 0),r=J(t,`live`,3,`polite`);var i=npe(),a=F(i),o=F(a);UF(o,{name:`error`}),Eo(L(o,2),()=>t.children),D(a),D(i),R(()=>{q(i,`id`,n()),q(i,`aria-live`,r())}),U(e,i)}var npe,rpe,H5=s((()=>{Q(),Y(),G$(),npe=V(`<div role="alert" class="validation svelte-6wra4i"><div role="none" class="svelte-6wra4i"><!> <!></div></div>`),rpe={hash:`svelte-6wra4i`,code:`.validation.svelte-6wra4i {color:var(--sui-error-foreground-color) !important;font-size:var(--sui-font-size-small);}.validation.svelte-6wra4i div:where(.svelte-6wra4i) {display:flex;align-items:center;gap:4px;margin:4px 0 0;}.validation.svelte-6wra4i div:where(.svelte-6wra4i) .icon {flex:none;font-size:16px; /* !hardcoded */}`}}));function ipe(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1);KR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get checked(){return n()},set checked(e){n(e)}}),k()}var ape=s((()=>{Q(),Y(),G$()}));function ope(e,t){O(t,!0);let n=J(t,`currentValue`,3,!1);var r=H(),i=I(r),a=e=>{var t=spe(),r=F(t,!0);D(t),R(e=>W(r,e),[()=>X(`boolean.${n()}`)]),U(e,t)};G(i,e=>{typeof n()==`boolean`&&e(a)}),U(e,r),k()}var spe,cpe=s((()=>{Q(),Y(),Z(),spe=V(`<p> </p>`)}));function lpe(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`currentValue`,15),s=J(t,`required`,3,!0),c=J(t,`readonly`,3,!1),l=J(t,`invalid`,3,!1),u=N(``),d=N(``),f=M(()=>T(t.fieldConfig.default_language,`plain`)),p=M(()=>T(t.fieldConfig.allow_language_selection,!0)),m=M(()=>T(t.fieldConfig.output_code_only,!1)),h=M(()=>T(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),g=M(()=>jt(n()?.[a][t.locale])??{}),_=M(()=>`${t.keyPath}.${z(h).code}`),v=M(()=>`${t.keyPath}.${z(h).lang}`),y=()=>{if(z(m))typeof o()==`string`?z(u)!==o()&&P(u,o(),!0):P(u,``),P(d,z(f),!0);else{let e=z(g)[z(_)],t=z(g)[z(v)]||z(f);typeof e==`string`?z(u)!==e&&P(u,e,!0):P(u,``),typeof t==`string`?z(d)!==t&&P(d,t,!0):P(d,``)}},b=()=>{z(m)?o()!==z(u)&&o(z(u)):n()&&(o({}),z(g)[z(_)]!==z(u)&&_n(W4,B(n)[a][t.locale][z(_)]=z(u),B(n)),z(g)[z(v)]!==z(d)&&_n(W4,B(n)[a][t.locale][z(v)]=z(d),B(n)))};ti(()=>{z(g),B(()=>{y()})}),ti(()=>{z(u),z(d),B(()=>{b()})});var x=H();eo(I(x),Yx,null,e=>{var n=H();oo(I(n),()=>JSON.stringify(t.fieldConfig),e=>{jle(e,{get showLanguageSwitcher(){return z(p)},flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get code(){return z(u)},set code(e){P(u,e,!0)},get lang(){return z(d)},set lang(e){P(d,e,!0)}})}),U(e,n)}),U(e,x),k(),i()}var upe=s((()=>{Q(),Y(),G$(),Xx(),sc(),Y4()}));function dpe(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>T(t.fieldConfig.default_language,``)),o=M(()=>T(t.fieldConfig.output_code_only,!1)),s=M(()=>T(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),c=M(()=>jt(n()?.currentValues[t.locale])??{}),l=M(()=>`${t.keyPath}.${z(s).code}`),u=M(()=>`${t.keyPath}.${z(s).lang}`),d=M(()=>z(o)?t.currentValue:z(c)[z(l)]),f=M(()=>z(o)?z(a):z(c)[z(u)]);var p=H(),m=I(p),h=e=>{var t=fpe(),n=F(t,!0);D(t),R(()=>{cs(t,1,ts(z(f)?`language-${z(f)}`:void 0)),W(n,z(d))}),U(e,t)};G(m,e=>{z(d)&&e(h)}),U(e,p),k(),i()}var fpe,ppe=s((()=>{Q(),Y(),Y4(),fpe=V(`<pre> </pre>`)}));function mpe(e,t){let n=Ia();O(t,!0),K(e,vpe);let r=J(t,`currentValue`,15),i=J(t,`required`,3,!0),a=J(t,`readonly`,3,!1),o=J(t,`invalid`,3,!1),s=N(``),c=N(255),l=M(()=>T(t.fieldConfig.allowInput,!1)),u=M(()=>T(t.fieldConfig.enableAlpha,!1)),d=/^#[0-9a-f]{6}$/i,f=/^(?<rgb>#[0-9a-f]{6})(?<a>[0-9a-f]{2})?$/i,p=()=>{if(typeof r()!=`string`)return;let{rgb:e,a:t=`ff`}=r().match(f)?.groups??{};if(e&&z(s)!==e&&P(s,e,!0),e&&z(u)){let e=Number.parseInt(`0x${t}`,16);z(c)!==e&&P(c,e,!0)}},m=()=>{let e=d.test(z(s))?z(s):``;e&&z(u)&&(e+=z(c).toString(16).padStart(2,`0`)),r()!==e&&r(e)};ti(()=>{r(),B(()=>{p()})}),ti(()=>{z(s),z(c),B(()=>{m()})});var h=_pe(),g=F(h);_s(g);var _=L(g,2),v=e=>{var r=gpe(),d=F(r),f=e=>{_L(e,{dir:`ltr`,get id(){return`${n}-input`},get invalid(){return o()},get readonly(){return a()},get required(){return i()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return z(s)},set value(e){P(s,e,!0)}})};G(d,e=>{z(l)&&e(f)});var p=L(d,2),m=e=>{var t=hpe(),n=I(t),r=L(n);{let e=M(()=>!z(s)),t=M(()=>X(`opacity`));Soe(r,{min:0,max:255,get disabled(){return z(e)},get"aria-label"(){return z(t)},get value(){return z(c)},set value(e){P(c,e,!0)}})}R(e=>W(n,`${e??``} `),[()=>X(`opacity`)]),U(e,t)};G(p,e=>{z(u)&&e(m)}),D(r),U(e,r)};G(_,e=>{(z(l)||z(u))&&e(v)});var y=L(_,2),b=e=>{{let t=M(()=>X(`clear`)),r=M(()=>!z(s)),i=M(()=>`${n}-picker ${z(l)?`${n}-input`:``}`);lI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},get"aria-controls"(){return z(i)},onclick:()=>{P(s,``),P(c,255)}})}};G(y,e=>{!a()&&!i()&&e(b)}),D(h),R(()=>{q(g,`id`,`${n}-picker`),g.readOnly=a(),q(g,`aria-invalid`,o()),q(g,`aria-readonly`,a()),q(g,`aria-required`,i()),q(g,`aria-labelledby`,`${t.fieldId??``}-label`),q(g,`aria-errormessage`,`${t.fieldId??``}-error`)}),Fs(g,()=>z(s),e=>P(s,e)),U(e,h),k()}var hpe,gpe,_pe,vpe,ype=s((()=>{Q(),Y(),Z(),G$(),sc(),hpe=V(` <!>`,1),gpe=V(`<span role="none" class="value svelte-udhsyb"><!> <!></span>`),_pe=V(`<div role="none" class="svelte-udhsyb"><input type="color" class="svelte-udhsyb"/> <!> <!></div>`),vpe={hash:`svelte-udhsyb`,code:`div.svelte-udhsyb {display:flex;align-items:center;gap:8px;}div.svelte-udhsyb .value:where(.svelte-udhsyb) {display:flex;align-items:center;gap:8px;}div.svelte-udhsyb .value:where(.svelte-udhsyb) .sui.text-input {width:88px;min-width:0;}div.svelte-udhsyb .value:where(.svelte-udhsyb) .sui.slider {padding:8px;--sui-slider-base-width: 80px;}input.svelte-udhsyb {font-family:var(--sui-textbox-font-family);}`}}));function bpe(e,t){O(t,!0),K(e,Spe);let n=M(()=>T(t.fieldConfig.enableAlpha,!1)),r=e=>Number.parseInt(`0x${e}`,16),i=/^#(?<r>[0-9a-f]{2})(?<g>[0-9a-f]{2})(?<b>[0-9a-f]{2})(?<a>[0-9a-f]{2})?$/i,a=M(()=>{let{r:e,g:a,b:o,a:s}=t.currentValue?.match(i)?.groups??{};return e?`rgb(${r(e)} ${r(a)} ${r(o)}${z(n)&&s?` / ${Math.round(r(s)/255*100)}%`:``})`:``});var o=H(),s=I(o),c=e=>{var n=xpe(),r=F(n),i=F(r);let o;var s=L(i,2),c=F(s,!0);D(s);var l=L(s,2),u=F(l,!0);D(l),D(r),D(n),R(()=>{o=ds(i,``,o,{"background-color":t.currentValue}),W(c,t.currentValue),W(u,z(a))}),U(e,n)},l=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());G(s,e=>{z(l)&&e(c)}),U(e,o),k()}var xpe,Spe,Cpe=s((()=>{Q(),Y(),xpe=V(`<p><span role="none" class="preview svelte-1m6xsa0"><span role="none" class="color svelte-1m6xsa0"></span> <span role="none" class="value"> </span> <span role="none" class="value"> </span></span></p>`),Spe={hash:`svelte-1m6xsa0`,code:`.preview.svelte-1m6xsa0 {display:inline-flex;align-items:center;gap:8px;}.preview.svelte-1m6xsa0 .color:where(.svelte-1m6xsa0) {display:block;width:24px;height:24px;border-radius:24px;}`}}));function wpe(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`currentValue`,15),s=J(t,`required`,3,!0),c=J(t,`readonly`,3,!1),l=J(t,`invalid`,3,!1),u=M(()=>T(t.fieldConfig.value,``)),d=M(()=>n()?.isIndexFile??!1),f=M(()=>n()?.collectionName??``),p=M(()=>n()?.fileName),m=M(()=>jt(n()?.[a][t.locale])??{}),h=M(()=>ub(t.locale)),g=()=>{let[e]=t.keyPath.split(`.`).splice(-2,1);return e?.match(/^\d+$/)?Number(e):void 0},_=()=>{if(!(t.keyPath in z(m)))return;let e=z(u)===`{{index}}`?g()??``:z(u).replaceAll(/{{(.+?)}}/g,(e,n)=>{if(n===`index`)return String(g()??``);if(!n.startsWith(`fields.`))return``;let r=gA({collectionName:z(f),fileName:z(p),valueMap:z(m),keyPath:n.replace(/^fields\./,``),locale:t.locale,isIndexFile:z(d)});return Array.isArray(r)?z(h).format(r):String(r)});o()!==e&&o(e)};ti(()=>{z(m),B(()=>{_()})});{let n=M(()=>String(o()));_L(e,{dir:`auto`,get value(){return z(n)},flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`}})}k(),i()}var Tpe=s((()=>{Q(),Y(),G$(),sc(),Y4(),yA(),fb()}));function Epe(e,t){O(t,!0);var n=Dpe(),r=F(n,!0);D(n),R((e,i)=>{q(n,`lang`,e),q(n,`dir`,i),W(r,t.currentValue),n.dir=n.dir},[()=>ab(t.locale),()=>ob(t.locale)]),U(e,n),k()}var Dpe,Ope=s((()=>{Q(),Y(),fb(),Dpe=V(`<p> </p>`)}));function kpe(e,t){O(t,!0),K(e,Mpe);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=N(``),s=M(()=>sC(t.fieldConfig)),c=M(()=>z(s).type),l=M(()=>z(s).min),u=M(()=>z(s).max),d=M(()=>z(s).step),f=M(()=>z(s).dateOnly),p=M(()=>z(s).utc),m=()=>{let e=pC(n(),t.fieldConfig);e!==void 0&&e!==z(o)&&P(o,e,!0)},h=()=>{let e=fC(z(o),n(),t.fieldConfig);e!==void 0&&e!==n()&&Number(uC(e,t.fieldConfig))!==Number(uC(n(),t.fieldConfig))&&n(e)};ti(()=>{n(),B(()=>{m()})}),ti(()=>{z(o),B(()=>{h()})});var g=jpe(),_=F(g);bs(_,()=>({type:z(c),min:z(l),max:z(u),step:z(d),readonly:i(),"aria-readonly":i(),"aria-required":r(),"aria-invalid":a(),"aria-labelledby":`${t.fieldId??``}-label`,"aria-errormessage":`${t.fieldId??``}-error`}),void 0,void 0,void 0,`svelte-1dnhck7`,!0);var v=L(_,2),y=e=>{U(e,Ape())};G(v,e=>{z(p)&&e(y)});var b=L(v,2),x=e=>{{let n=M(()=>X(z(f)?`today`:`now`));lI(e,{variant:`tertiary`,get label(){return z(n)},onclick:()=>{let e=dC(t.fieldConfig);P(o,z(p)?e.replace(/:00\.000Z$/,``):e,!0)}})}};G(b,e=>{i()||e(x)});var S=L(b,2),C=e=>{{let t=M(()=>X(`clear`)),r=M(()=>!n());lI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{n(``)}})}};G(S,e=>{!i()&&!r()&&e(C)}),D(g),Fs(_,()=>z(o),e=>P(o,e)),U(e,g),k()}var Ape,jpe,Mpe,Npe=s((()=>{Q(),Y(),Z(),G$(),sc(),hC(),Ape=V(`<span role="none" class="utc svelte-1dnhck7">UTC</span>`),jpe=V(`<div role="none" class="svelte-1dnhck7"><input/> <!> <!> <!></div>`),Mpe={hash:`svelte-1dnhck7`,code:`div.svelte-1dnhck7 {display:flex;align-items:center;}.utc.svelte-1dnhck7 {margin:0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}`}}));function Ppe(e,t){O(t,!0);let n=M(()=>mC({locale:t.locale,fieldConfig:t.fieldConfig,currentValue:t.currentValue}));var r=H(),i=I(r),a=e=>{var r=Fpe(),i=F(r),a=L(i),o=e=>{U(e,Fa(`UTC`))};G(a,e=>{t.fieldConfig.picker_utc&&e(o)}),D(r),R((e,t)=>{q(r,`lang`,e),q(r,`dir`,t),W(i,`${z(n)??``} `),r.dir=r.dir},[()=>ab(t.locale),()=>ob(t.locale)]),U(e,r)};G(i,e=>{z(n)&&e(a)}),U(e,r),k()}var Fpe,Ipe=s((()=>{Q(),Y(),hC(),fb(),Fpe=V(`<p> <!></p>`)}));function Lpe(e,t){O(t,!0),K(e,Bpe);let n=J(t,`multiple`,3,!1),r=J(t,`hidden`,3,!1),i=M(()=>DC(t.fieldConfig)??{}),a=``,o=N(!1),s=N(!1),c=N(void 0),l=()=>{if(!z(c))return;a=window.crypto.randomUUID();let e=new URLSearchParams({...Object.fromEntries(Object.entries(z(i).config??{}).filter(([e])=>$ne.includes(e))),ml_id:a,pmHost:window.location.origin,new_cms:`true`,remove_header:`true`});z(c).src=`https://console.cloudinary.com/console/media_library/cms?${e}`},u=()=>{let e={...Object.fromEntries(Object.entries(z(i).config??{}).filter(([e])=>ere.includes(e))),multiple:n(),max_files:t.fieldConfig?.max??z(i).config?.max_files??20,folder:{path:z(i).config?.folder?.path??``,resource_type:t.kind??`raw`}},r={type:`ML_WIDGET_SHOW`,data:{mlId:a,config:e}};console.debug(`Cloudinary Panel sending message:`,r),z(c)?.contentWindow?.postMessage(JSON.stringify(r),Qne)},f=({assets:e})=>{let{output_filename_only:n=!1,use_transformations:r=!0}=z(i),a=e.map(e=>{let t=e.secure_url;return n?{url:t.split(`/`).pop()}:r?{url:e.derived?.[0]?.secure_url??t}:{url:t}});t.onSelect(a)},p=({origin:e,data:t})=>{if(e===`https://console.cloudinary.com`){if(typeof t==`string`)try{t=JSON.parse(t)}catch{return}d(t)&&(console.debug(`Cloudinary Panel received message:`,t),t.type===`login`&&t.consoleDomain&&P(o,!0),t.type===`consoleLoaded`&&P(s,!0),t.type===`ML_WIDGET_INSERT_DATA`&&f(t.data))}};ac(()=>(l(),window.addEventListener(`message`,p),()=>{window.removeEventListener(`message`,p)})),ti(()=>{z(i)&&z(s)&&u()});var m=zpe(),h=I(m);Ws(h,e=>P(c,e),()=>z(c));var g=L(h,2),_=e=>{z$(e,{children:(e,t)=>{var n=Rpe(),r=I(n);{let e=M(()=>X(`cloud_storage.cloudinary.activate.button_label`));lI(r,{variant:`primary`,get label(){return z(e)},onclick:async()=>{h1(`https://console.cloudinary.com/console/media_library/cms_login?cms=true`)}})}var i=L(r,2),a=F(i,!0);D(i),R(e=>W(a,e),[()=>X(`cloud_storage.cloudinary.activate.description`)]),U(e,n)},$$slots:{default:!0}})};G(g,e=>{!r()&&!z(o)&&e(_)}),R(e=>{q(h,`title`,e),q(h,`hidden`,r()||!z(o))},[()=>X(`cloud_storage.cloudinary.iframe_title`)]),U(e,m),k()}var Rpe,zpe,Bpe,Vpe=s((()=>{Q(),Y(),Z(),G$(),p(),sc(),OC(),g1(),Rpe=V(`<!> <div role="none"> </div>`,1),zpe=V(`<iframe allow="camera; storage-access" class="svelte-p06t0o"></iframe> <!>`,1),Bpe={hash:`svelte-p06t0o`,code:`iframe.svelte-p06t0o {display:block;width:100%;height:100%;border:none;&[hidden] {display:none;}}`}}));function Hpe(e,t){O(t,!0),K(e,Kpe);let n=J(t,`children`,3,void 0),r=M(()=>t.path?yp(t.path).split(`/`):t.caption?[t.caption]:[]),i={ALLOWED_TAGS:[`wbr`]},a=e=>jE(e.replace(/([-_.])/g,`$1<wbr>`),i);var o=H(),s=I(o),c=e=>{var t=Gpe(),i=F(t);ZF(i,{lines:2,children:(e,t)=>{var n=H();mo(I(n),19,()=>z(r),(e,t)=>`${e}-${t}`,(e,t,n)=>{var i=H(),o=I(i),s=e=>{var n=Upe();So(n,()=>a(z(t)),!0),D(n),U(e,n)},c=e=>{var n=Wpe();So(I(n),()=>a(z(t))),_t(),U(e,n)};G(o,e=>{z(n)===z(r).length-1?e(s):e(c,-1)}),U(e,i)}),U(e,n)},$$slots:{default:!0}}),Eo(L(i,2),()=>n()??E),D(t),U(e,t)};G(s,e=>{z(r).length&&e(c)}),U(e,o),k()}var Upe,Wpe,Gpe,Kpe,qpe=s((()=>{Q(),Y(),G$(),Cp(),ME(),Upe=V(`<strong></strong>`),Wpe=V(`<!>/`,1),Gpe=V(`<span class="name svelte-1ngvthn" aria-hidden="true"><!> <!></span>`),Kpe={hash:`svelte-1ngvthn`,code:`.name.svelte-1ngvthn {color:var(--sui-tertiary-foreground-color);}.name.svelte-1ngvthn strong {color:var(--sui-primary-foreground-color);font-weight:var(--sui-font-weight-normal);}`}}));function Jpe(e,t){K(e,Zpe);let n=J(t,`viewType`,3,`grid`);var r=Xpe();KL(F(r),{label:``,get value(){return t.value},get selected(){return t.selected},get onChange(){return t.onChange},startIcon:e=>{var n=H(),r=I(n),i=e=>{var t=Ype();UF(F(t),{name:`check`,class:`icon check`}),D(t),U(e,t)};G(r,e=>{t.multiple&&e(i)}),U(e,n)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{startIcon:!0,default:!0}}),D(r),R(()=>cs(r,1,`wrapper ${n()??``}`,`svelte-1fitgoo`)),U(e,r)}var Ype,Xpe,Zpe,Qpe=s((()=>{Q(),Y(),G$(),Ype=V(`<span role="none" class="icon check-background"><!></span>`),Xpe=V(`<div role="none"><!></div>`),Zpe={hash:`svelte-1fitgoo`,code:`.wrapper.svelte-1fitgoo {display:contents;}.wrapper.svelte-1fitgoo [role=option] {position:relative;}.wrapper.svelte-1fitgoo [role=option] > .icon.check {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background {border-color:var(--sui-checkbox-border-color);background-color:var(--sui-checkbox-background-color);}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background .icon {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=true] .check-background {border-color:var(--sui-primary-accent-color);color:var(--sui-primary-accent-color-inverted);background-color:var(--sui-primary-accent-color);}.wrapper.svelte-1fitgoo [role=option] .check-background {display:flex;justify-content:center;align-items:center;border-width:1px;border-radius:var(--sui-checkbox-border-radius);width:20px;height:20px;pointer-events:none;}.wrapper.svelte-1fitgoo [role=option] .check-background .icon {color:inherit !important;font-size:20px;}.wrapper.grid.svelte-1fitgoo .check-background {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.wrapper.list.svelte-1fitgoo .check-background {margin-inline-start:16px;}`}}));function $pe(e,t){O(t,!0),K(e,tme);let n=J(t,`viewType`,3,`grid`),r=J(t,`gridId`,3,void 0),i=J(t,`multiple`,3,!1),a=J(t,`showTitle`,3,!1),o=J(t,`onChange`,3,void 0),s=J(t,`children`,3,void 0);var c=eme();let l;var u=F(c);{let e=M(()=>X(`assets_dialog.available_images`));zL(u,{get id(){return r()},get class(){return n()},get multiple(){return i()},get"aria-label"(){return z(e)},onChange:e=>{o()?.(e.detail)},children:(e,t)=>{var n=H();Eo(I(n),()=>s()??E),U(e,n)},$$slots:{default:!0}})}D(c),R(()=>l=cs(c,1,`wrapper svelte-umbokg`,null,l,{"show-title":a()})),U(e,c),k()}var eme,tme,nme=s((()=>{Q(),Y(),Z(),G$(),eme=V(`<div role="none"><!></div>`),tme={hash:`svelte-umbokg`,code:`.wrapper.svelte-umbokg {display:contents;}.wrapper.svelte-umbokg .listbox {gap:4px;border-width:0;max-height:calc(100% - var(--sui-focus-ring-width) * 2);}.wrapper.svelte-umbokg .listbox .option button {border-radius:var(--sui-control-medium-border-radius);padding:4px;width:100%;height:auto;transition:none;}.wrapper.svelte-umbokg .listbox .option button:focus-visible {outline-color:transparent;}.wrapper.svelte-umbokg .listbox .option button .preview {flex:none;border-radius:var(--sui-control-medium-border-radius);aspect-ratio:1/1;object-fit:contain;}.wrapper.svelte-umbokg .listbox .name {min-height:calc(var(--sui-font-size-default) * 2);white-space:normal;line-height:var(--sui-line-height-compact);}.wrapper.svelte-umbokg .listbox.grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));height:auto;max-height:none;}.wrapper.svelte-umbokg .listbox.grid .option button {flex-direction:column;justify-content:flex-start;}.wrapper.svelte-umbokg .listbox.grid .option button .preview {width:100%;height:auto;}.wrapper.svelte-umbokg .listbox.grid .option button .name {flex:none;margin:4px 0 12px;padding:0 8px;width:100%;min-height:calc(var(--sui-font-size-default) * 3);}.wrapper.svelte-umbokg .listbox.grid .option button .name:empty {display:none;}.wrapper.svelte-umbokg .listbox.grid button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}.wrapper.svelte-umbokg :not(.wrapper.show-title) .listbox.grid .option .name {position:absolute;inset-inline-start:-99999px;}.wrapper.svelte-umbokg .listbox.list .option button {gap:16px;}.wrapper.svelte-umbokg .listbox.list .option button .preview {width:64px;}.wrapper.svelte-umbokg .listbox.list .option button .name {flex:auto;padding-inline:0 8px;}.wrapper.svelte-umbokg .listbox.list .option button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}`}}));function rme(e,t){O(t,!0);let n=J(t,`open`,15,!1);{let r=M(()=>X(`assets_dialog.large_file.title`));hL(e,{get title(){return z(r)},get open(){return n()},set open(e){n(e)},children:(e,n)=>{var r=ime(),i=I(r),a=F(i,!0);D(i);var o=L(i,2),s=F(o,!0);D(o),R((e,t)=>{W(a,e),W(s,t)},[()=>X(`warning_oversized_files`,{values:{count:t.oversizedFileNames.length,size:ZC(t.maxSize)}}),()=>ub(kh.current).format(t.oversizedFileNames)]),U(e,r)},$$slots:{default:!0}})}k()}var ime,ame=s((()=>{Q(),Y(),Z(),G$(),fb(),iw(),ime=V(`<div> </div> <div> </div>`,1)}));function ome(e,t){O(t,!0),K(e,vme);let n=()=>j(BF,`$selectAssetsView`,o),r=()=>j($P,`$cmsConfig`,o),i=()=>j(tN,`$prefs`,o),a=()=>j(VA,`$isSmallScreen`,o),[o,s]=hn(),c=e=>{var t=H(),n=I(t),r=e=>{z$(e,{children:(e,t)=>{var n=sme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(d()?`searching`:`loading`)]),U(e,n)},$$slots:{default:!0}})},i=e=>{z$(e,{children:(e,t)=>{var n=cme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})},o=e=>{var t=ume();$pe(F(t),{get viewType(){return z(re)},get gridId(){return f()},get multiple(){return u()},children:(e,t)=>{{let t=(e,t=E)=>{var n=H();eo(I(n),Yx,null,e=>{let n=M(()=>{let{id:e,previewURL:n,description:r,kind:i}=t();return{id:e,previewURL:n,description:r,_kind:i}});{let r=M(()=>Ce(t()));Jpe(e,{get value(){return z(n).id},get viewType(){return z(re)},get multiple(){return u()},get selected(){return z(r)},onChange:({detail:{selected:e}})=>{we(t(),e)},children:(e,t)=>{var r=lme(),i=I(r);s2(i,{get kind(){return z(n)._kind},get src(){return z(n).previewURL},get alt(){return z(n).description},variant:`tile`,crossorigin:`anonymous`});var o=L(i,2),s=e=>{{let t=M(()=>z(ie)?void 0:z(n).description),r=M(()=>z(ie)?z(n).description:void 0);Hpe(e,{get path(){return z(t)},get caption(){return z(r)}})}};G(o,e=>{(z(re)===`list`||!a()&&!z(ie))&&e(s)}),U(e,r)},$$slots:{default:!0}})}}),U(e,n)},n=M(()=>z(me)??[]);wR(e,{get items(){return z(n)},itemKey:`id`,renderItem:t,$$slots:{renderItem:!0}})}},$$slots:{default:!0}}),D(t),U(e,t)};G(n,e=>{z(me)?z(me).length?e(o,-1):e(i,1):e(r)}),U(e,t)},l=J(t,`fieldConfig`,3,void 0),u=J(t,`multiple`,3,!1),d=J(t,`searchTerms`,3,``),f=J(t,`gridId`,3,void 0),p=J(t,`selectedResources`,31,()=>Cr([])),m=M(()=>T(t.serviceProps.serviceType,`stock_assets`)),h=M(()=>T(t.serviceProps.serviceId,``)),g=M(()=>T(t.serviceProps.serviceLabel,``)),_=M(()=>T(t.serviceProps.hotlinking,!1)),v=M(()=>T(t.serviceProps.authType,`api_key`)),y=M(()=>T(t.serviceProps.developerURL,``)),b=M(()=>T(t.serviceProps.apiKeyURL,``)),x=M(()=>t.serviceProps.apiKeyPattern),S=M(()=>t.serviceProps.init),C=M(()=>t.serviceProps.signIn),w=M(()=>t.serviceProps.list),ee=M(()=>t.serviceProps.search),ne=M(()=>t.serviceProps.upload),re=M(()=>z(h)===`picsum`?`grid`:n()?.type),ie=M(()=>z(m)===`stock_assets`),ae=M(()=>l()?.media_libraries?.all??r()?.media_libraries?.all??{}),oe=M(()=>z(ae).max_file_size??1/0),se=Cr({userName:``,password:``}),ce=N(!0),le=N(!1),ue=N(``),de=N(``),fe=N(``),pe=N(`initial`),me=N(null),he=N(void 0),ge=N(Cr({show:!1,status:`info`,length:0})),_e=N(Cr([])),ve=N(!1),ye=M(()=>({kind:t.kind,fieldConfig:l(),apiKey:z(ue),userName:z(de),password:z(fe)})),be=async(e=``)=>{P(me,null),e=e.trim();try{P(me,await(e?z(ee)?.(e,z(ye)):z(w)?.(z(ye)))??[],!0)}catch(e){P(he,`search_fetch_failed`),console.error(e)}},xe=async e=>{if(!z(ne))return;let t=await Promise.all(e.map(e=>lF(e,z(ae))));if(e=t.filter(({oversized:e})=>!e).map(({file:e})=>e),P(_e,t.filter(({oversized:e})=>e).map(({file:e})=>e.name),!0),z(_e).length&&P(ve,!0),e.length){P(ge,{show:!0,status:`info`,length:e.length},!0);try{await z(ne)(e,z(ye)),be()}catch{P(ge,{show:!0,status:`error`,length:e.length},!0)}}},Se=async e=>{let{downloadURL:t,fileName:n,credit:r}=e;if(z(_))return{url:t,credit:r};try{let e=await fetch(t),{ok:i,status:a}=e;if(!i)throw Error(`The response returned with HTTP status ${a}.`);let o=await e.blob();return{url:t,credit:r,file:new File([o],n,{type:o.type})}}catch(e){P(he,`image_fetch_failed`),console.error(e)}},Ce=e=>p().some(t=>t.url===e.downloadURL),we=async(e,t)=>{let n=p().filter(t=>t.url!==e.downloadURL);if(t){let t=await Se(e);t&&p([...n,t])}else p(n)};ac(()=>{(async()=>{typeof z(S)==`function`&&(P(ce,!1),P(ce,await z(S)(),!0)),z(ce)&&(P(ue,i().apiKeys?.[z(h)]??``,!0),(e=>{var t=te(e,2);P(de,t[0],!0),P(fe,t[1],!0)})((i().logins?.[z(h)]??``).split(` `)),P(le,z(v)===`none`||!!z(ue)||!!z(fe),!0),P(me,null))})()}),ti(()=>{d(),z(le),B(()=>{z(le)&&be(d())})});var Te={uploadFiles:xe},Ee=_me(),De=I(Ee),Oe=e=>{var t=H(),n=I(t),r=e=>{z$(e,{children:(e,t)=>{var n=dme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`assets_dialog.error.${z(he)}`)]),U(e,n)},$$slots:{default:!0}})},i=e=>{{let t=M(()=>l()?.accept);A3(e,{get accept(){return z(t)},multiple:!0,onDrop:({files:e})=>xe(e),children:(e,t)=>{c(e)},$$slots:{default:!0}})}},a=e=>{c(e)};G(n,e=>{z(he)?e(r):z(ne)?e(i,1):e(a,-1)}),U(e,t)},ke=e=>{z$(e,{children:(e,t)=>{var n=mme(),r=I(n),a=F(r),o=e=>{var t=H();So(I(t),()=>jE(X(`prefs.media.stock_photos.description`,{values:{service:z(g),homeHref:`href="${z(y)}"`,apiKeyHref:`href="${z(b)}"`}}),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,t)};G(a,e=>{z(ie)&&e(o)});var s=L(a,2),c=e=>{var t=H();So(I(t),()=>jE(X(`cloud_storage.${z(h)}.auth.${z(pe)}`,{default:X(`cloud_storage.auth.${z(v)}.${z(pe)}`,{values:{service:z(g),key:X(`cloud_storage.${z(h)}.auth_key_label`,{default:X(`cloud_storage.auth.${z(v)}.key_label`)})}})}),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,t)};G(s,e=>{z(m)===`cloud_storage`&&e(c)}),D(r);var l=L(r,2),u=e=>{var t=fme(),n=F(t);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(g)}}));_L(n,{dir:`ltr`,flex:!0,monospace:!0,spellcheck:`false`,get"aria-label"(){return z(e)},oninput:e=>{let t=e.target.value.trim();z(x)?.test(t)&&(P(ue,t,!0),P(le,!0),_n(tN,B(i).apiKeys??={},B(i)),_n(tN,B(i).apiKeys[z(h)]=z(ue),B(i)),be())}})}D(t),U(e,t)};G(l,e=>{z(v)===`api_key`&&e(u)});var d=L(l,2),f=e=>{var t=pme(),n=I(t),r=F(n);{let e=M(()=>X(`user_name`)),t=M(()=>z(pe)===`requested`);_L(r,{dir:`ltr`,flex:!0,spellcheck:`false`,get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return se.userName},set value(e){se.userName=e}})}D(n);var a=L(n,2),o=F(a);{let e=M(()=>X(`password`)),t=M(()=>z(pe)===`requested`);j$(o,{get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return se.password},set value(e){se.password=e}})}D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`sign_in`)),t=M(()=>!se.userName||!se.password||z(pe)===`requested`);lI(c,{variant:`secondary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{P(pe,`requested`),se.userName=se.userName.trim(),se.password=se.password.trim(),await z(C)?.(se.userName,se.password)?(P(pe,`success`),P(de,se.userName,!0),P(fe,se.password,!0),P(le,!0),_n(tN,B(i).logins??={},B(i)),_n(tN,B(i).logins[z(h)]=[z(de),z(fe)].join(` `),B(i)),be()):P(pe,`error`)}})}D(s),U(e,t)};G(d,e=>{z(v)===`password`&&e(f)}),U(e,n)},$$slots:{default:!0}})},Ae=e=>{z$(e,{children:(e,t)=>{var n=hme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`cloud_storage.invalid`)]),U(e,n)},$$slots:{default:!0}})};G(De,e=>{z(le)?e(Oe):z(ce)?e(ke,1):e(Ae,-1)});var je=L(De,2);oz(je,{get show(){return z(ge).show},set show(e){z(ge).show=e},children:(e,t)=>{GF(e,{get status(){return z(ge).status},children:(e,t)=>{var n=gme(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`uploading_files_progress`,{values:{count:z(ge).length}})]),U(e,t)};G(r,e=>{z(ge).status===`info`&&e(i)});var a=L(r,2),o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`uploading_files_failed`,{values:{count:z(ge).length}})]),U(e,t)};G(a,e=>{z(ge).status===`error`&&e(o)}),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),rme(L(je,2),{get oversizedFileNames(){return z(_e)},get maxSize(){return z(oe)},get open(){return z(ve)},set open(e){P(ve,e,!0)}}),U(e,Ee);var Me=k(Te);return s(),Me}var sme,cme,lme,ume,dme,fme,pme,mme,hme,gme,_me,vme,yme=s((()=>{Q(),Y(),Z(),G$(),Xx(),ME(),sc(),qpe(),Qpe(),nme(),m2(),L3(),ame(),uF(),iF(),HF(),KA(),nN(),sme=V(`<span role="alert"> </span>`),cme=V(`<span role="alert"> </span>`),lme=V(`<!> <!>`,1),ume=V(`<div role="none" class="grid-wrapper svelte-mqll9n"><!></div>`),dme=V(`<span role="alert"> </span>`),fme=V(`<div role="none" class="input-outer svelte-mqll9n"><!></div>`),pme=V(`<div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div>`,1),mme=V(`<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>`,1),hme=V(`<span role="alert"> </span>`),gme=V(`<!> <!>`,1),_me=V(`<!> <!> <!>`,1),vme={hash:`svelte-mqll9n`,code:`.grid-wrapper.svelte-mqll9n {overflow-y:auto;height:100%;}p.svelte-mqll9n {margin:0 0 8px;}.input-outer.svelte-mqll9n {width:400px;max-width:100%;text-align:center;}`}}));function bme(e,t){O(t,!0),K(e,Eme);let n=()=>j(VA,`$isSmallScreen`,r),[r,i]=hn(),a=J(t,`multiple`,3,!1),o=J(t,`assets`,19,()=>[]),s=J(t,`viewType`,3,`grid`),c=J(t,`searchTerms`,3,``),l=J(t,`basePath`,3,void 0),u=J(t,`gridId`,3,void 0),d=J(t,`checkerboard`,3,!1),f=J(t,`selectedResources`,31,()=>Cr([])),p=J(t,`onSelect`,3,void 0),m=M(()=>(c()?o().filter(({name:e})=>G6(e).includes(c())):o()).filter((e,t,n)=>n.findIndex(t=>t.path===e.path)===t)),h=e=>f().some(t=>(0,U5.default)(t.asset,e)),g=(e,t)=>{let n=f().filter(t=>!(0,U5.default)(t.asset,e));t?(f([...n,{asset:e}]),p()?.({asset:e})):f(n)};var _=H(),v=I(_),y=e=>{var t=wme();$pe(F(t),{get multiple(){return a()},get gridId(){return u()},get viewType(){return s()},showTitle:!0,children:(e,t)=>{wR(e,{get items(){return z(m)},itemKey:`path`,renderItem:(e,t=E)=>{var r=H();eo(I(r),Yx,null,e=>{let r=M(()=>{let{kind:e,name:n,path:r,unsaved:i,folder:a}=t();return{kind:e,name:n,path:r,unsaved:i,folder:a}}),i=M(()=>l()&&!z(r).folder.entryRelative?yp(z(r).path.replace(l(),``)):z(r).name);{let o=M(()=>h(t()));Jpe(e,{get value(){return z(r).path},get viewType(){return s()},get multiple(){return a()},get selected(){return z(o)},onChange:({detail:{selected:e}})=>{g(t(),e)},children:(e,a)=>{var o=Cme(),c=I(o),l=e=>{var t=xme(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`assets_dialog.unsaved`)]),U(e,t)};G(c,e=>{s()===`grid`&&z(r).unsaved&&e(l)});var u=L(c,2);s2(u,{get kind(){return z(r).kind},get asset(){return t()},get alt(){return z(i)},variant:`tile`,get checkerboard(){return d()}});var f=L(u,2),p=e=>{Hpe(e,{get path(){return z(i)},children:(e,t)=>{var n=H(),i=I(n),a=e=>{var t=Sme(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`assets_dialog.unsaved`)]),U(e,t)};G(i,e=>{s()===`list`&&z(r).unsaved&&e(a)}),U(e,n)},$$slots:{default:!0}})};G(f,e=>{(!n()||s()===`list`)&&e(p)}),U(e,o)},$$slots:{default:!0}})}}),U(e,r)},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),D(t),U(e,t)},b=e=>{z$(e,{children:(e,t)=>{var n=Tme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})};G(v,e=>{z(m).length?e(y):e(b,-1)}),U(e,_),k(),i()}var U5,xme,Sme,Cme,wme,Tme,Eme,Dme=s((()=>{Q(),Y(),Z(),G$(),Xx(),Cp(),U5=u(ZM()),qpe(),Qpe(),nme(),m2(),J6(),KA(),xme=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),Sme=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),Cme=V(`<!> <!> <!>`,1),wme=V(`<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>`),Tme=V(`<span role="none"> </span>`),Eme={hash:`svelte-1ong0f1`,code:`.grid-wrapper.svelte-1ong0f1 {overflow-y:auto;height:100%;}.grid-wrapper.svelte-1ong0f1 [role=listbox] {background-color:transparent;}.grid-wrapper.svelte-1ong0f1 [role=listbox].grid .unsaved {position:absolute;inset-block-start:8px;inset-inline-end:8px;z-index:1;}.grid-wrapper.svelte-1ong0f1 [role=listbox].list .name {display:flex;gap:8px;align-items:center;justify-content:space-between;}.unsaved.svelte-1ong0f1 {display:flex;justify-content:center;align-items:center;border-color:var(--sui-info-border-color);border-radius:4px;padding:2px 6px;color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);font-size:var(--sui-font-size-small);}`}}));function Ome(e,t){O(t,!0);let n=()=>j(BF,`$selectAssetsView`,r),[r,i]=hn(),a=J(t,`multiple`,3,!1),o=J(t,`accept`,3,void 0),s=J(t,`assets`,19,()=>[]),c=J(t,`searchTerms`,3,``),l=J(t,`basePath`,3,void 0),u=J(t,`selectedResources`,31,()=>Cr([])),d=N(void 0);ti(()=>{u().length||B(()=>{z(d)?.reset()})}),Ws(A3(e,{get multiple(){return a()},get accept(){return o()},get onDrop(){return t.onDrop},children:(e,t)=>{{let t=M(()=>n()?.type);bme(e,{get multiple(){return a()},get assets(){return s()},get viewType(){return z(t)},get searchTerms(){return c()},get basePath(){return l()},gridId:`select-assets-grid`,checkerboard:!0,get selectedResources(){return u()},set selectedResources(e){u(e)}})}},$$slots:{default:!0}}),e=>P(d,e,!0),()=>z(d)),k(),i()}var kme=s((()=>{Q(),Y(),sc(),Dme(),L3(),HF()})),W5,G5,K5,q5,Ame,J5,Y5=s((()=>{gp(),W5=u(ZM(),1),ME(),ip(),EF(),xT(),jS(),uF(),iw(),G5=async({draft:e,file:t,folder:n})=>{let r=await hp(t),i;return await Promise.all(Object.entries(e.files??{}).map(async([e,t])=>{!i&&await hp(t.file)===r&&(!n?.entryRelative||(0,W5.default)(t.folder,n))&&(i=e)})),i},K5=async({file:e,blobURL:t,folder:n,targetFolderPath:r})=>{let{name:i,size:a}=e;return{unsaved:!0,file:e,blobURL:t??URL.createObjectURL(e),name:i,path:r?`${r}/${i}`:i,sha:await rw(e),size:a,kind:AS(i),folder:n}},q5=async({draft:e,targetFolderPath:t})=>Promise.all(Object.entries(e.files).map(async([e,{file:n,folder:r}])=>K5({file:n,blobURL:e,folder:r,targetFolderPath:t}))),Ame=(e,t)=>{let n=A(dF);if(!t?.entryRelative)return n;let{originalEntry:r,defaultLocale:i,collection:a}=e,o=r?.locales[i]?.path;if(!o)return[];let s=a._type===`entry`?a._file.subPath:void 0,c=s?.includes(`/`)?s.split(`/`).at(-1):void 0,l=o.substring(0,o.lastIndexOf(`.`));c&&!c.includes(`{{`)&&(l=l.match(/(?<path>.+?)(?:\/[^/]+)?$/)?.groups?.path??l);let u=[l,t.internalSubPath].filter(Boolean).join(`/`);return n.filter(e=>e.path.startsWith(`${u}/`))},J5=async({draft:e,resource:t,libraryConfig:n})=>{let{url:r,credit:i}=t,{asset:a,file:o}=t,s=``,c;if(o){let{folder:r}=t,i=await G5({draft:e,file:o,folder:r});if(i)s=i;else{let{file:t,oversized:i}=await lF(o,n??{});o=t;let l=await rw(o),u=[...Ame(e,r),...await q5({draft:e})].find(e=>e.sha===l&&(0,W5.default)(e.folder,r));u?(a=u,o=void 0):i?(c=o.name,o=void 0):(s=URL.createObjectURL(o),e.files[s]={file:o,folder:r})}}return a&&(a.unsaved?a.file&&(s=await G5({draft:e,file:a.file,folder:a.folder})):s=vT(a,{pathOnly:!0,allowSpecial:!0,entry:e.originalEntry})),r&&!o&&!a&&(s=r),{value:s,credit:i?jE(i,{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`]}):``,oversizedFileName:c}}})),X5,Z5,Q5,jme,$5,Mme,Nme,Pme,Fme=s((()=>{Z(),Xx(),X5=[`en-US,pt-BR,es-ES,ca-ES,de-DE,it-IT,fr-FR,sv-SE,id-ID,pl-PL,ja-JP,zh-TW,zh-CN,ko-KR,th-TH,nl-NL`,`hu-HU,vi-VN,cs-CZ,da-DK,fi-FI,uk-UA,el-GR,ro-RO,nb-NO,sk-SK,tr-TR,ru-RU`].join(`,`).split(`,`),Z5=`https://api.pexels.com/v1`,Q5={per_page:80},jme=()=>{let e=kh.current.toLowerCase(),[t]=e.split(`-`);return X5.find(t=>t.toLowerCase()===e)??X5.find(e=>e.split(`-`)[0]===t)??`en-US`},$5=e=>e.map(({id:e,url:t,alt:n,src:{large2x:r,medium:i},photographer:a})=>({id:String(e),description:t.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g,` `)??n,previewURL:i,downloadURL:r,fileName:`pexels-${a.split(/\s+/).join(`-`).toLowerCase()}-${e}.jpg`,kind:`image`,credit:`<a href="${t}">Photo by ${a} on Pexels</a>`})),Mme=async({apiKey:e})=>{let t={Authorization:e},n=new URLSearchParams(Q5),r=await fetch(`${Z5}/curated?${n}`,{headers:t});if(!r.ok)return Promise.reject();let i=(await r.json()).photos;return $5(i)},Nme=async(e,{apiKey:t})=>{let n={Authorization:t},r=new URLSearchParams({...Q5,query:e,locale:jme()}),i=[];for(let e=1;e<=2;e+=1){r.set(`page`,String(e));let t=await fetch(`${Z5}/search?${r}`,{headers:n});if(!t.ok)return Promise.reject();let{photos:a,next_page:o}=await t.json();if(i.push(...a),!o)break;await Yx(50)}return $5(i)},Pme={serviceType:`stock_assets`,serviceId:`pexels`,serviceLabel:`Pexels`,serviceURL:`https://www.pexels.com/`,showServiceLink:!0,hotlinking:!1,authType:`api_key`,developerURL:`https://www.pexels.com/api/`,apiKeyURL:`https://www.pexels.com/api/new/`,apiKeyPattern:/^[a-zA-Z\d]{56}$/,list:Mme,search:Nme}})),Ime,Lme,Rme,zme,Bme,Vme,Hme,Ume=s((()=>{Ime=`https://picsum.photos/v2/list`,Lme=100,Rme=10,zme=3,Bme=e=>e.map(({id:e,width:t,height:n})=>{let r=t>=n,[i,a]=r?[1920,1280]:[1280,1920],[o,s]=r?[480,320]:[320,480];return{id:e,description:``,previewURL:`https://picsum.photos/id/${e}/${o}/${s}.webp`,downloadURL:`https://picsum.photos/id/${e}/${i}/${a}.webp`,fileName:`picsum-${e}.webp`,kind:`image`}}),Vme=async()=>{let e=Array.from({length:Rme},(e,t)=>t+1).sort(()=>Math.random()-.5).slice(0,zme),t=await Promise.all(e.map(e=>fetch(`${Ime}?page=${e}&limit=${Lme}`)));return t.some(e=>!e.ok)?Promise.reject():Bme((await Promise.all(t.map(e=>e.json()))).flat().sort(()=>Math.random()-.5))},Hme={serviceType:`stock_assets`,serviceId:`picsum`,serviceLabel:`Lorem Picsum`,serviceURL:`https://picsum.photos/`,showServiceLink:!0,hotlinking:!0,authType:`none`,list:Vme}})),Wme,e7,t7,n7,r7,Gme,Kme,qme,Jme=s((()=>{Z(),Wme=`cs,da,de,en,es,fr,id,it,hu,nl,no,pl,pt,ro,sk,fi,sv,tr,vi,th,bg,ru,el,ja,ko,zh`.split(`,`),e7=`https://pixabay.com/api`,t7={image_type:`photo`,min_width:1280,safesearch:!0,per_page:150},n7=e=>e.map(({id:e,webformatURL:t,previewURL:n,largeImageURL:r,imageWidth:i,imageHeight:a,pageURL:o,tags:s,user:c})=>({id:String(e),description:s,previewURL:t.replace(`_640.`,i>a?`_180.`:`_340.`),downloadURL:r,fileName:n.split(`/`).pop().replace(`_150.`,`_1280.`),kind:`image`,credit:`<a href="${o}">Photo by ${c} on Pixabay`})),r7=()=>{let[e]=kh.current.toLowerCase().split(`-`);return Wme.includes(e)?e:`en`},Gme=async({apiKey:e})=>{let t=new URLSearchParams({...t7,key:e,lang:r7(),editors_choice:`true`}),n=await fetch(`${e7}/?${t}`);if(!n.ok)return Promise.reject();let r=(await n.json()).hits;return n7(r)},Kme=async(e,{apiKey:t})=>{let n=new URLSearchParams({...t7,key:t,lang:r7(),q:e}),r=await fetch(`${e7}/?${n}`);if(!r.ok)return Promise.reject();let i=(await r.json()).hits;return n7(i)},qme={serviceType:`stock_assets`,serviceId:`pixabay`,serviceLabel:`Pixabay`,serviceURL:`https://pixabay.com/`,showServiceLink:!0,hotlinking:!1,authType:`api_key`,developerURL:`https://pixabay.com/service/about/api/`,apiKeyURL:`https://pixabay.com/api/docs/#api_key`,apiKeyPattern:/^\d+-[a-f\d]{25}$/,list:Gme,search:Kme}})),i7,a7,o7,s7,Yme,c7,Xme,Zme,Qme,$me=s((()=>{Z(),Xx(),i7=[`af,sq,am,ar,hy,as,az,bn,ba,eu,bs,bg,yue,ca,lzh,zh-Hans,zh-Hant,hr,cs,da,prs,dv,nl,en,et,fo,fj`,`fil,fi,fr,fr-ca,gl,ka,de,el,gu,ht,he,hi,mww,hu,is,id,ikt,iu,iu-Latn,ga,it,ja,kn,kk,km,ko,ku,kmr`,`ky,lo,lv,lt,mk,mg,ms,ml,mt,mi,mr,mn-Cyrl,mn-Mong,my,ne,nb,or,ps,fa,pl,pt,pt-pt,pa,otq,ro,ru,sm`,`sr-Cyrl,sr-Latn,sk,sl,so,es,sw,sv,ty,ta,tt,te,th,bo,ti,to,tr,tk,uk,hsb,ur,ug,uz,vi,cy,yua,zu`].join(`,`).split(`,`),a7=`https://api.unsplash.com`,o7=`utm_source=sveltia-cms&utm_medium=referral`,s7={per_page:30},Yme=()=>{let e=kh.current.toLowerCase(),[t]=e.split(`-`);return i7.find(t=>t.toLowerCase()===e)??i7.find(e=>e.split(`-`)[0]===t)??`en`},c7=e=>e.map(({id:e,description:t,alt_description:n,urls:{regular:r,thumb:i},user:{username:a,name:o}})=>({id:String(e),description:[t,n].filter(Boolean).join(` — `),previewURL:i,downloadURL:r,fileName:`${o.split(/\s+/).join(`-`).toLowerCase()}-${e}-unsplash.jpg`,kind:`image`,credit:`Photo by <a href="https://unsplash.com/@${a}?${o7}">${o}</a> on <a href="https://unsplash.com/?${o7}">Unsplash</a>`})),Xme=async({apiKey:e})=>{let t={Authorization:`Client-ID ${e}`},n=new URLSearchParams(s7),r=await fetch(`${a7}/photos?${n}`,{headers:t});return r.ok?c7(await r.json()):Promise.reject()},Zme=async(e,{apiKey:t})=>{let n={Authorization:`Client-ID ${t}`},r=new URLSearchParams({...s7,query:e,lang:Yme()}),i=[];for(let e=1;e<=5;e+=1){r.set(`page`,String(e));let t=await fetch(`${a7}/search/photos?${r}`,{headers:n});if(!t.ok)return Promise.reject();let{results:a,total_pages:o}=await t.json();if(i.push(...a),o===e)break;await Yx(50)}return c7(i)},Qme={serviceType:`stock_assets`,serviceId:`unsplash`,serviceLabel:`Unsplash`,serviceURL:`https://unsplash.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://unsplash.com/developers`,apiKeyURL:`https://unsplash.com/oauth/applications`,apiKeyPattern:/^[a-zA-Z\d_-]{40,}$/,list:Xme,search:Zme}})),l7,u7,ehe=s((()=>{oF(),Fme(),Ume(),Jme(),$me(),l7={pexels:Pme,picsum:Hme,pixabay:qme,unsplash:Qme},u7=({fieldConfig:e}={})=>{let t=aF({libraryName:`stock_assets`,fieldConfig:e});if(t===!1)return{providers:[]};let n=Object.keys(l7),{providers:r}=t;return{providers:Array.isArray(r)?r:n}}}));function the(e,t){let n=Ia();O(t,!0),K(e,fhe);let r=()=>j(t.entryDraft,`$entryDraft`,l),i=()=>j(dF,`$allAssets`,l),a=()=>j(tN,`$prefs`,l),o=()=>j(VA,`$isSmallScreen`,l),s=()=>j(PF,`$showContentOverlay`,l),c=()=>j(BF,`$selectAssetsView`,l),[l,u]=hn(),d=e=>{var n=ihe(),r=I(n),i=e=>{var n=rhe(),r=I(n),i=e=>{{let t=M(()=>BF);S6(e,{get currentView(){return z(t)},"aria-controls":`select-assets-grid`})}};G(r,e=>{c()&&e(i)});var a=L(r,2);{let e=M(()=>!z(ae)),n=M(()=>z(w).some(e=>e.file)),r=M(()=>X(`assets_dialog.search_for_${t.kind??`file`}`));OR(a,{dir:`auto`,get flex(){return o()},get debounce(){return z(e)},get disabled(){return z(n)},get"aria-label"(){return z(r)},get value(){return z(y)},set value(e){P(y,e,!0)}})}U(e,n)};G(r,e=>{(z(ae)||z(fe)&&z(b)!==`cloudinary`||z(E)&&z(b)!==`picsum`)&&e(i)});var a=L(r,2),s=e=>{{let t=e=>{UF(e,{name:`cloud_upload`})},n=M(()=>X(`upload`));lI(e,{variant:`primary`,get label(){return z(n)},onclick:()=>{z(C)?.open()},startIcon:t,$$slots:{startIcon:!0}})}};G(a,e=>{(z(ae)||z(fe)&&z(b)!==`cloudinary`)&&e(s)}),U(e,n)},f=J(t,`open`,15,!1),p=J(t,`multiple`,3,!1),m=J(t,`accept`,19,()=>t.kind===`image`?Gw.join(`,`):void 0),h=J(t,`canEnterURL`,3,!0),g=J(t,`onSelect`,3,void 0),_=J(t,`pendingFiles`,31,()=>Cr([])),v=N(``),y=N(``),b=N(`default-global`),x=N(Cr([])),S=N(Cr([])),C=N(void 0),w=N(Cr([])),ee=N(void 0),T=(e,t)=>{let n=e[1].serviceLabel.toLowerCase(),r=t[1].serviceLabel.toLowerCase();return n.localeCompare(r)},ne=M(()=>t.kind===`image`?X(`assets_dialog.title.image`):X(`assets_dialog.title.file`)),re=M(()=>G6(z(y))),ie=M(()=>aF({fieldConfig:t.fieldConfig})!==!1&&Object.values(t.assetLibraryFolderMap).some(({enabled:e})=>e)),ae=M(()=>z(b).startsWith(`default-`)),oe=M(()=>{if(!z(ae))return;let e=z(b).replace(`default-`,``),{folder:n}=t.assetLibraryFolderMap[e];return n}),se=M(()=>{let{originalEntry:e}=r()??{},{entryRelative:t,internalPath:n,internalSubPath:i}=z(oe)??{};if(!t)return n?.replace(`{{slug}}`,e?.slug??`-`);let a=i||void 0;if(e){let t=Op(Object.values(e.locales)[0].path).dirname;return a?`${t}/${a}`:t}return a?`${n}/${a}/-`:`${n}/-`}),ce=M(()=>[...i(),...z(S)].filter(e=>!t.kind||t.kind===e.kind).sort((e,t)=>e.name.localeCompare(t.name)).sort((e,t)=>Number(!!t.unsaved)-Number(!!e.unsaved))),le=M(()=>{let{providers:e=[]}=u7({fieldConfig:t.fieldConfig});return Object.entries(l7).filter(([t,{hotlinking:n}])=>e.includes(t)&&(n||z(ie))).sort(T)}),ue=M(()=>z(le).some(([e,{authType:t}])=>e===z(b)&&(t===`none`||!!a()?.apiKeys?.[z(b)]))),de=M(()=>[...t.enabledCloudServiceEntries,...z(le)].sort(T)),fe=M(()=>t.enabledCloudServiceEntries.map(([e])=>e).includes(z(b))),E=M(()=>z(le).map(([e])=>e).includes(z(b))),pe=M(()=>o()?RR:zL),me=e=>z(se)!==void 0&&(e===z(se)||`${e}/-`===z(se)||e.startsWith(`${z(se)}/`)),he=e=>{if(z(oe)===void 0||e.folder?.internalPath!==z(oe).internalPath||e.folder?.entryRelative!==z(oe).entryRelative)return!1;if(!z(oe).entryRelative)return me(e.path);let{dirname:t}=Op(e.path);return t===void 0?!1:me(t)},ge=async({hash:e,folder:t})=>(await Promise.all(z(S).map(async n=>!!n.file&&(0,nhe.default)(n.folder,t)&&await hp(n.file)===e))).includes(!0),_e=async e=>{let t=await hp(e),n=z(oe);if(await ge({hash:t,folder:n}))return;let r=await K5({file:e,folder:n,targetFolderPath:z(se)});return z(x).push(r),{asset:r}},ve=async e=>{P(w,(await Promise.all(e.map(_e))).filter(e=>!!e),!0)},ye=()=>{P(v,``),P(y,``),P(x,[],!0),P(S,[],!0),P(w,[],!0)},be=()=>{if(!z(w).length)return;let e=jt(z(w)).map(e=>{let{unsaved:t,file:n,folder:r}=e.asset??{};return t?{file:n,folder:r}:e});g()?.(e)};ri(()=>{let e=z(ie)?Object.entries(t.assetLibraryFolderMap).find(([,{enabled:e}])=>e)?.[0]:void 0;e?P(b,`default-${e}`):P(b,z(de)[0]?.[0],!0)}),ti(()=>{r()?.files,jt(z(x)),(async()=>{P(S,[...r()?.files?await q5({draft:r(),targetFolderPath:z(se)}):[],...Object.values(z(x))],!0)})()}),ti(()=>{s()||f(!1)}),ti(()=>{z(ee)&&_().length&&(z(ee).uploadFiles(_()),_([]))});var xe=dhe(),Se=I(xe);{let e=e=>{var t=H(),n=I(t),r=e=>{d(e)};G(n,e=>{o()||e(r)}),U(e,t)},r=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{showServiceLink:e,serviceLabel:t,serviceURL:n}=l7[z(b)]??{};return{showServiceLink:e,serviceLabel:t,serviceURL:n}});var n=H(),r=I(n),i=e=>{var n=ahe(),r=F(n,!0);D(n),R(e=>{q(n,`href`,z(t).serviceURL),W(r,e)},[()=>X(`prefs.media.stock_photos.credit`,{values:{service:z(t).serviceLabel}})]),U(e,n)};G(r,e=>{z(t).showServiceLink&&e(i)}),U(e,n)};G(n,e=>{z(ue)&&e(r)}),U(e,t)},i=M(()=>X(`insert`)),a=M(()=>!z(w).length);sL(Se,{get title(){return z(ne)},size:`x-large`,get okLabel(){return z(i)},get okDisabled(){return z(a)},keepContent:!0,focusInput:!1,onOk:be,onClose:()=>{ye()},get open(){return f()},set open(e){f(e)},headerExtra:e,footerExtra:r,children:(e,r)=>{var i=uhe(),a=F(i),s=F(a);{let e=M(()=>X(`assets_dialog.locations`));Oo(s,()=>z(pe),(r,i)=>{i(r,{class:`tabs`,get"aria-label"(){return z(e)},get"aria-controls"(){return`${n}-content-pane`},filterThreshold:-1,onChange:e=>{P(b,e.detail.name,!0),P(w,[],!0)},children:(e,n)=>{var r=she(),i=I(r),a=e=>{{let n=M(()=>X(`asset_location.repository`));UL(e,{get label(){return z(n)},children:(e,n)=>{var r=H();mo(I(r),17,()=>Object.entries(t.assetLibraryFolderMap),([e,{enabled:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].enabled;var a=H(),o=I(a),s=e=>{let t=M(()=>`default-${r()}`);{let n=M(()=>X(`assets_dialog.folder.${r()}`)),i=M(()=>z(b)===z(t));KL(e,{get name(){return z(t)},get label(){return z(n)},get selected(){return z(i)}})}};G(o,e=>{i()&&e(s)}),U(e,a)}),U(e,r)},$$slots:{default:!0}})}};G(i,e=>{z(ie)&&e(a)});var o=L(i,2),s=e=>{{let n=M(()=>X(`asset_location.external`));UL(e,{get label(){return z(n)},children:(e,n)=>{var r=ohe(),i=I(r);mo(i,17,()=>t.enabledCloudServiceEntries,([,{serviceId:e,serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[1].serviceId,i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(b)===r());KL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}});var a=L(i,2),o=e=>{{let t=M(()=>X(`assets_dialog.enter_url`)),n=M(()=>z(b)===`enter-url`);KL(e,{name:`enter-url`,get label(){return z(t)},get selected(){return z(n)}})}};G(a,e=>{h()&&e(o)}),U(e,r)},$$slots:{default:!0}})}},c=M(()=>h()||!!Object.keys(t.enabledCloudServiceEntries).length);G(o,e=>{z(c)&&e(s)});var l=L(o,2),u=e=>{{let t=M(()=>X(`asset_location.stock_photos`));UL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(le),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(b)===r());KL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}}),U(e,n)},$$slots:{default:!0}})}};G(l,e=>{z(le).length&&e(u)}),U(e,r)},$$slots:{default:!0}})})}var c=L(s,2),l=e=>{var t=che();d(F(t)),D(t),U(e,t)};G(c,e=>{o()&&e(l)}),D(a);var u=L(a,2),g=F(u),_=e=>{{let t=M(()=>z(ce).filter(he));Ome(e,{get accept(){return m()},get multiple(){return p()},get assets(){return z(t)},get searchTerms(){return z(re)},get basePath(){return z(oe).internalPath},onDrop:({files:e})=>{ve(e)},get selectedResources(){return z(w)},set selectedResources(e){P(w,e,!0)}})}};G(g,e=>{z(ae)&&z(oe)&&e(_)});var y=L(g,2),x=e=>{z$(e,{children:(e,n)=>{var r=lhe(),i=I(r),a=F(i,!0);D(i),_L(L(i,2),{dir:`ltr`,flex:!0,oninput:()=>{let e=z(v).trim();P(w,e?[{url:e}]:[],!0)},get value(){return z(v)},set value(e){P(v,e,!0)}}),R(e=>W(a,e),[()=>t.kind===`image`?X(`assets_dialog.enter_image_url`):X(`assets_dialog.enter_file_url`)]),U(e,r)},$$slots:{default:!0}})};G(y,e=>{h()&&z(b)===`enter-url`&&e(x)}),mo(L(y,2),17,()=>z(de),([e,t])=>e,(e,n)=>{var r=M(()=>te(z(n),2));let i=()=>z(r)[0],a=()=>z(r)[1];var o=H(),s=I(o),c=e=>{{let n=M(()=>z(b)!==`cloudinary`);Lpe(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return p()},get hidden(){return z(n)},onSelect:e=>{f()&&(P(w,e,!0),be(),f(!1))}})}},l=e=>{Ws(ome(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return p()},get searchTerms(){return z(re)},get serviceProps(){return a()},gridId:`select-assets-grid`,get selectedResources(){return z(w)},set selectedResources(e){P(w,e,!0)}}),e=>P(ee,e,!0),()=>z(ee))};G(s,e=>{i()===`cloudinary`?e(c):z(b)===i()&&e(l,1)}),U(e,o)}),D(u),D(i),R(()=>q(u,`id`,`${n}-content-pane`)),U(e,i)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}Ws(TL(L(Se,2),{get accept(){return m()},get multiple(){return p()},onSelect:({files:e})=>{z(fe)?z(ee)?.uploadFiles(e):ve(e)}}),e=>P(C,e,!0),()=>z(C)),U(e,xe),k(),u()}var nhe,rhe,ihe,ahe,ohe,she,che,lhe,uhe,dhe,fhe,phe=s((()=>{Q(),Y(),Z(),G$(),gp(),Pp(),nhe=u(ZM()),Vpe(),yme(),kme(),E6(),EF(),HF(),Y5(),oF(),ehe(),J6(),KA(),nN(),qw(),rhe=V(`<!> <!>`,1),ihe=V(`<!> <!>`,1),ahe=V(`<a> </a>`),ohe=V(`<!> <!>`,1),she=V(`<!> <!> <!>`,1),che=V(`<div role="none" class="filter-tools svelte-5b1zbe"><!></div>`),lhe=V(`<div role="none"> </div> <!>`,1),uhe=V(`<div role="none" class="wrapper svelte-5b1zbe"><div role="none" class="nav svelte-5b1zbe"><!> <!></div> <div role="none" class="content-pane svelte-5b1zbe"><!> <!> <!></div></div>`),dhe=V(`<!> <!>`,1),fhe={hash:`svelte-5b1zbe`,code:`.wrapper.svelte-5b1zbe {display:flex;gap:16px;height:60dvh;max-height:800px;--tile-padding: 4px;}
|
|
934
|
+
${JSON.stringify(e)}\n\nRespond with JSON only:`,O5=(e,t,n)=>{let r;try{r=JSON.parse(e)}catch{throw Error(`Failed to parse JSON response from ${n}.`)}if(!Array.isArray(r))throw Error(`Invalid JSON structure in ${n} response.`);if(r.length!==t)throw Error(`Translation count mismatch: expected ${t}, got ${r.length}`);return r}})),Vde,Hde,Ude,Wde,Gde,Kde,qde=s((()=>{Bde(),k5(),Vde=`anthropic`,Hde=`Anthropic Claude`,Ude=`claude-haiku-4-5`,Wde=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),Gde=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await zde({apiKey:r,model:Ude,systemPrompt:E5(i,a),userMessage:D5(e)}),e.length,`Anthropic API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Anthropic API.`)}},Kde={serviceId:Vde,serviceLabel:Hde,apiLabel:Fde,developerURL:Ide,apiKeyURL:Lde,apiKeyPattern:Rde,markdownSupported:!0,availability:Wde,translate:Gde}})),Jde,Yde,Xde,Zde,Qde,$de,efe=s((()=>{Jde=`https://api.deepseek.com/chat/completions`,Yde=`DeepSeek API`,Xde=`https://api-docs.deepseek.com/`,Zde=`https://platform.deepseek.com/api_keys`,Qde=/sk-[a-zA-Z0-9]{32,}/,$de=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,thinking:o=!0})=>{let s=await fetch(Jde,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,messages:[{role:`system`,content:n},{role:`user`,content:r}],temperature:i,max_tokens:a,thinking:{type:o?`enabled`:`disabled`},stream:!1})});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error(`DeepSeek API error: ${s.status} ${s.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let c=await s.json();if(!c.choices||!Array.isArray(c.choices)||!c.choices[0]?.message?.content)throw Error(`Invalid response format from DeepSeek API.`);return c.choices[0].message.content.trim()}})),tfe,nfe,rfe,ife,afe,ofe,sfe=s((()=>{efe(),k5(),tfe=`deepseek`,nfe=`DeepSeek`,rfe=`deepseek-v4-flash`,ife=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),afe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await $de({apiKey:r,model:rfe,systemPrompt:E5(i,a),userMessage:D5(e),thinking:!1}),e.length,`DeepSeek API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with DeepSeek API.`)}},ofe={serviceId:tfe,serviceLabel:nfe,apiLabel:Yde,developerURL:Xde,apiKeyURL:Zde,apiKeyPattern:Qde,markdownSupported:!0,availability:ife,translate:afe}})),cfe,lfe,ufe,dfe,ffe,pfe,A5,j5,mfe,hfe,M5,gfe=s((()=>{cfe=`google`,lfe=`Google Cloud Translation`,ufe=`Cloud Translation API`,dfe=`https://console.cloud.google.com/apis/library/translate.googleapis.com`,ffe=`https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials`,pfe=/AIza[0-9A-Za-z-_]{35}/,A5=[`ab,ace,ach,af,ak,alz,am,ar,as,awa,ay,az`,`ba,ban,bbc,be,bem,bew,bg,bho,bik,bm,bn,br,bs,bts,btx,bua`,`ca,ceb,cgg,chm,ckb,cnh,co,crh,crs,cs,cv,cy`,`da,de,din,doi,dov,dv,dz`,`ee,el,en,eo,es,et,eu`,`fa,ff,fi,fil,fj,fr,fr-CA,fr-FR,fy`,`ga,gaa,gd,gl,gn,gom,gu`,`ha,haw,he,hi,hil,hmn,hr,hrx,ht,hu,hy`,`id,ig,ilo,is,it,iw`,`ja,jv,jw`,`ka,kk,km,kn,ko,kri,ktu,ku,ky`,`la,lb,lg,li,lij,lmo,ln,lo,lt,ltg,luo,lus,lv`,`mai,mak,mg,mi,min,mk,ml,mn,mni-Mtei,mr,ms,ms-Arab,mt,my`,`ne,new,nl,no,nr,nso,nus,ny`,`oc,om,or`,`pa,pa-Arab,pag,pam,pap,pl,ps,pt,pt-BR,pt-PT`,`qu`,`rn,ro,rom,ru,rw`,`sa,scn,sd,sg,shn,si,sk,sl,sm,sn,so,sq,sr,ss,st,su,sv,sw,szl`,`ta,te,tet,tg,th,ti,tk,tl,tn,tr,ts,tt`,`ug,uk,ur,uz`,`vi`,`xh`,`yi,yo,yua,yue`,`zh,zh-CN,zh-TW,zu`].join(`,`).split(`,`),j5=e=>{let t=e.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(e,t,n)=>`${t.toLowerCase()}-${n.toUpperCase()}`);if(A5.includes(t))return t;if([`zh-HK`,`zh-MO`].includes(t))return`zh-TW`;let[n]=t.split(`-`);if(A5.includes(n))return n},mfe=async({sourceLanguage:e,targetLanguage:t})=>!!j5(e)&&!!j5(t),hfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{if(t=j5(t)??``,n=j5(n)??``,!t)throw Error(`Source locale is not supported.`);if(!n)throw Error(`Target locale is not supported.`);let i={q:e,source:t,target:n,format:`html`};try{let e=await fetch(`https://translation.googleapis.com/language/translate/v2`,{method:`POST`,headers:{"Content-Type":`application/json`,"X-goog-api-key":r},body:JSON.stringify(i)});if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(`Google Translate API error: ${e.status} ${e.statusText}${t.error?.message?` - ${t.error.message}`:``}`)}let{data:t}=await e.json();return t.translations.map(e=>e.translatedText.replace(/'/g,`'`))}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Google Translate API.`)}},M5={serviceId:cfe,serviceLabel:lfe,apiLabel:ufe,developerURL:dfe,apiKeyURL:ffe,apiKeyPattern:pfe,markdownSupported:!1,availability:mfe,translate:hfe}})),_fe,vfe,yfe,bfe,xfe,Sfe=s((()=>{_fe=`Google AI Studio API`,vfe=`https://ai.google.dev/gemini-api/docs`,yfe=`https://aistudio.google.com/api-keys`,bfe=/AIza[a-zA-Z0-9_-]{35}/,xfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,responseFormat:o})=>{let s=`https://generativelanguage.googleapis.com/v1beta/models/${t}:generateContent?key=${e}`,c=await fetch(s,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({system_instruction:{parts:[{text:n}]},contents:[{parts:[{text:r}]}],generationConfig:{temperature:i,maxOutputTokens:a,...o?{responseMimeType:o}:{}}})});if(!c.ok){let e=await c.json().catch(()=>({}));throw Error(`Gemini API error: ${c.status} ${c.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let l=await c.json();if(!Array.isArray(l.candidates)||!l.candidates[0]?.content?.parts?.[0])throw Error(`Invalid response format from Gemini API.`);return l.candidates[0].content.parts[0].text.trim()}})),Cfe,wfe,Tfe,Efe,Dfe,Ofe,kfe=s((()=>{Sfe(),k5(),Cfe=`google-ai`,wfe=`Google Gemini`,Tfe=`gemini-3.1-flash-lite`,Efe=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),Dfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await xfe({apiKey:r,model:Tfe,systemPrompt:E5(i,a),userMessage:D5(e),responseFormat:`application/json`}),e.length,`Gemini API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Gemini API.`)}},Ofe={serviceId:Cfe,serviceLabel:wfe,apiLabel:_fe,developerURL:vfe,apiKeyURL:yfe,apiKeyPattern:bfe,markdownSupported:!0,availability:Efe,translate:Dfe}})),Afe,jfe,Mfe,Nfe,Pfe,Ffe,Ife,Lfe,Rfe=s((()=>{Afe=`https://api.openai.com/v1/responses`,jfe=`OpenAI API`,Mfe=`https://platform.openai.com/docs/overview`,Nfe=`https://platform.openai.com/api-keys`,Pfe=/sk-[a-zA-Z0-9-_]{40,}/,Ffe=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`message`&&`content`in e&&Array.isArray(e.content),Ife=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`output_text`&&`text`in e&&typeof e.text==`string`,Lfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3})=>{let o=await fetch(Afe,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,instructions:n,input:r,store:!1,temperature:i,max_output_tokens:a})});if(!o.ok){let e=await o.json().catch(()=>({}));throw Error(`OpenAI API error: ${o.status} ${o.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let s=await o.json();if(typeof s.output_text==`string`)return s.output_text.trim();let c=(Array.isArray(s.output)?s.output:[]).find(Ffe),l=(Array.isArray(c?.content)?c.content:[]).find(Ife);if(typeof l?.text==`string`)return l.text.trim();throw Error(`Invalid response format from OpenAI API.`)}})),zfe,Bfe,Vfe,Hfe,Ufe,Wfe,Gfe=s((()=>{Rfe(),k5(),zfe=`openai`,Bfe=`OpenAI GPT`,Vfe=`gpt-5.4-nano`,Hfe=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),Ufe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await Lfe({apiKey:r,model:Vfe,systemPrompt:E5(i,a),userMessage:D5(e)}),e.length,`OpenAI API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with OpenAI API.`)}},Wfe={serviceId:zfe,serviceLabel:Bfe,apiLabel:jfe,developerURL:Mfe,apiKeyURL:Nfe,apiKeyPattern:Pfe,markdownSupported:!0,availability:Hfe,translate:Ufe}})),N5,P5,F5=s((()=>{ip(),nN(),qde(),sfe(),gfe(),kfe(),Gfe(),N5={anthropic:Kde,deepseek:ofe,google:M5,"google-ai":Ofe,openai:Wfe},P5=dn([tN],([e])=>{let{defaultTranslationService:t=`google`}=e;return N5[t]??M5})})),I5,Kfe,L5,qfe,Jfe,R5,Yfe=s((()=>{dO(),ip(),jde(),Y4(),HF(),yA(),w5(),F5(),nN(),I5=new d5({headingStyle:`atx`,bulletListMarker:`-`,codeBlockStyle:`fenced`}),I5.keep([`span`,`div`]),Kfe=({draft:e,options:t})=>{let{collectionName:n,fileName:r,currentValues:i,isIndexFile:a}=e,{sourceLanguage:o,targetLanguage:s,keyPath:c=``,translate:l=!1}=t,u=i[o],d={collectionName:n,fileName:r,valueMap:u,isIndexFile:a};return Object.fromEntries(Object.entries(u).map(([e,t])=>{let n=i[s][e],r=fA({...d,keyPath:e}),a=r?.widget??`string`;return c&&!e.startsWith(c)||typeof t!=`string`||!t||![`richtext`,`markdown`,`text`,`string`,`list`].includes(a)||a===`list`&&C5(r).hasSubFields||!l&&t===n||!c&&l&&n?null:[e,{value:t,isMarkdown:a===`richtext`||a===`markdown`}]}).filter(e=>!!e))},L5=(e,t,{count:n,sourceLanguage:r})=>{LF.set({id:Date.now(),show:!0,status:e,message:t,count:n,sourceLanguage:r})},qfe=async({currentValues:e,options:t,copingFieldMap:n})=>{let{serviceId:r,markdownSupported:i,translate:a}=A(P5),{sourceLanguage:o,targetLanguage:s}=t,c=Object.keys(n).length,l=A(tN).apiKeys?.[r]||await new Promise(e=>{IF.set({show:!0,multiple:c>1,resolve:e})});if(l){L5(`info`,`translation.started`,{count:c,sourceLanguage:o});try{let t=await a(Object.entries(n).map(([,{value:e,isMarkdown:t}])=>t&&!i?uO(e):e),{apiKey:l,sourceLanguage:o,targetLanguage:s});Object.entries(n).forEach(([n,{isMarkdown:r}],a)=>{let o=t[a];e[s][n]=r&&!i?I5.turndown(o):o}),L5(`success`,`translation.complete`,{count:c,sourceLanguage:o})}catch(e){L5(`error`,`translation.error`,{count:c,sourceLanguage:o}),console.error(e)}}},Jfe=({currentValues:e,options:t,copingFieldMap:n})=>{let{sourceLanguage:r,targetLanguage:i}=t,a=Object.keys(n).length;Object.entries(n).forEach(([t,{value:n}])=>{e[i][t]=n}),L5(`success`,`copy.complete`,{count:a,sourceLanguage:r})},R5=async e=>{let{sourceLanguage:t,translate:n=!1}=e,r=A(W4),{currentValues:i}=r,a=Kfe({draft:r,options:e}),o=Object.keys(a).length;if(!o){L5(`info`,`${n?`translation`:`copy`}.none`,{count:o,sourceLanguage:t});return}n?await qfe({currentValues:i,options:e,copingFieldMap:a}):Jfe({currentValues:i,options:e,copingFieldMap:a}),W4.update(e=>({...e,currentValues:i}))}}));function z5(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,i),r=()=>j(P5,`$translator`,i),[i,a]=hn(),o=J(t,`keyPath`,3,``),s=J(t,`translate`,3,!1),c=async({sourceLanguage:e,targetLanguage:t})=>!n()?.currentLocales[t]||!n().currentLocales[e]||!!o()&&!jt(n().currentValues[e])[o()]||!s()&&!!o()&&jt(n().currentValues[e])[o()]===jt(n().currentValues[t])[o()]||s()&&!await r()?.availability({sourceLanguage:e,targetLanguage:t});var l=H();mo(I(l),16,()=>t.otherLocales,e=>e,(e,n)=>{let r=M(()=>({sourceLanguage:n,targetLanguage:t.locale}));var i=H();eo(I(i),()=>c(z(r)),null,(e,t)=>{{let i=M(()=>X(s()?`translate_from_x`:`copy_from_x`,{values:{locale:cb(n)}}));tR(e,{get label(){return z(i)},get disabled(){return z(t)},onclick:()=>{R5({...z(r),keyPath:o(),translate:s()})}})}}),U(e,i)}),U(e,l),k(),a()}var B5=s((()=>{Q(),Y(),Z(),G$(),Y4(),Yfe(),fb(),F5()}));function Xfe(e,t){O(t,!0),K(e,Qfe);let n=J(t,`children`,3,void 0),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`children`]),i=N(void 0);ac(()=>()=>{z(i)?.dispatchEvent(new CustomEvent(`Unmount`))});var a=Zfe();bs(a,()=>({role:`group`,class:`field`,...r}),void 0,void 0,void 0,`svelte-wzztxu`),Eo(F(a),()=>n()??E),D(a),Ws(a,e=>P(i,e),()=>z(i)),U(e,a),k()}var Zfe,Qfe,$fe=s((()=>{Q(),Y(),sc(),Zfe=V(`<section><!></section>`),Qfe={hash:`svelte-wzztxu`,code:`section.svelte-wzztxu {padding:var(--field-editor-padding);}section.svelte-wzztxu:not(:last-child) {border-width:0 0 1px;border-color:var(--sui-secondary-border-color);}section.svelte-wzztxu > * {margin-inline:auto !important;max-width:768px;}section.svelte-wzztxu > header {display:flex;align-items:center;margin:0 -8px 8px;height:var(--sui-button-small-height);}section.svelte-wzztxu > header h4 {margin-inline:var(--sui-focus-ring-width) 0;font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}section.svelte-wzztxu > header .required {margin-block:2px 0;margin-inline:2px 0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-large);}`}}));function epe(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,i),r=()=>j(P5,`$translator`,i),[i,a]=hn(),o=J(t,`size`,3,`medium`),s=J(t,`keyPath`,3,``),c=M(()=>!n()?.currentLocales[t.locale]),l=async({sourceLanguage:e,targetLanguage:t})=>z(c)||!n()?.currentLocales[e]||!await r()?.availability({sourceLanguage:e,targetLanguage:t});var u=H(),d=I(u),f=e=>{let n=M(()=>{let[e]=t.otherLocales;return{otherLocale:e}}),r=M(()=>X(`translate_from_x`,{values:{locale:cb(z(n).otherLocale)??z(n).otherLocale}})),i=M(()=>({sourceLanguage:z(n).otherLocale,targetLanguage:t.locale}));var a=H();eo(I(a),()=>l(z(i)),null,(e,t)=>{lI(e,{variant:`ghost`,get size(){return o()},iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},get title(){return z(r)},get disabled(){return z(t)},onclick:()=>{R5({...z(i),keyPath:s(),translate:!0})},startIcon:e=>{UF(e,{name:`translate`})},$$slots:{startIcon:!0}})}),U(e,a)},p=e=>{{let n=e=>{UF(e,{name:`translate`})},r=e=>{{let n=M(()=>X(`translation_options`));ZL(e,{get"aria-label"(){return z(n)},children:(e,n)=>{z5(e,{get locale(){return t.locale},get otherLocales(){return t.otherLocales},get keyPath(){return s()},translate:!0})},$$slots:{default:!0}})}},i=M(()=>X(`translate`));VI(e,{variant:`ghost`,get size(){return o()},iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},get disabled(){return z(c)},endIcon:n,popup:r,$$slots:{endIcon:!0,popup:!0}})}};G(d,e=>{t.otherLocales.length===1?e(f):e(p,-1)}),U(e,u),k(),a()}var tpe=s((()=>{Q(),Y(),Z(),G$(),B5(),Y4(),Yfe(),fb(),F5()}));function V5(e,t){K(e,rpe);let n=J(t,`id`,3,void 0),r=J(t,`live`,3,`polite`);var i=npe(),a=F(i),o=F(a);UF(o,{name:`error`}),Eo(L(o,2),()=>t.children),D(a),D(i),R(()=>{q(i,`id`,n()),q(i,`aria-live`,r())}),U(e,i)}var npe,rpe,H5=s((()=>{Q(),Y(),G$(),npe=V(`<div role="alert" class="validation svelte-6wra4i"><div role="none" class="svelte-6wra4i"><!> <!></div></div>`),rpe={hash:`svelte-6wra4i`,code:`.validation.svelte-6wra4i {color:var(--sui-error-foreground-color) !important;font-size:var(--sui-font-size-small);}.validation.svelte-6wra4i div:where(.svelte-6wra4i) {display:flex;align-items:center;gap:4px;margin:4px 0 0;}.validation.svelte-6wra4i div:where(.svelte-6wra4i) .icon {flex:none;font-size:16px; /* !hardcoded */}`}}));function ipe(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1);KR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get checked(){return n()},set checked(e){n(e)}}),k()}var ape=s((()=>{Q(),Y(),G$()}));function ope(e,t){O(t,!0);let n=J(t,`currentValue`,3,!1);var r=H(),i=I(r),a=e=>{var t=spe(),r=F(t,!0);D(t),R(e=>W(r,e),[()=>X(`boolean.${n()}`)]),U(e,t)};G(i,e=>{typeof n()==`boolean`&&e(a)}),U(e,r),k()}var spe,cpe=s((()=>{Q(),Y(),Z(),spe=V(`<p> </p>`)}));function lpe(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`currentValue`,15),s=J(t,`required`,3,!0),c=J(t,`readonly`,3,!1),l=J(t,`invalid`,3,!1),u=N(``),d=N(``),f=M(()=>T(t.fieldConfig.default_language,`plain`)),p=M(()=>T(t.fieldConfig.allow_language_selection,!0)),m=M(()=>T(t.fieldConfig.output_code_only,!1)),h=M(()=>T(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),g=M(()=>jt(n()?.[a][t.locale])??{}),_=M(()=>`${t.keyPath}.${z(h).code}`),v=M(()=>`${t.keyPath}.${z(h).lang}`),y=()=>{if(z(m))typeof o()==`string`?z(u)!==o()&&P(u,o(),!0):P(u,``),P(d,z(f),!0);else{let e=z(g)[z(_)],t=z(g)[z(v)]||z(f);typeof e==`string`?z(u)!==e&&P(u,e,!0):P(u,``),typeof t==`string`?z(d)!==t&&P(d,t,!0):P(d,``)}},b=()=>{z(m)?o()!==z(u)&&o(z(u)):n()&&(o({}),z(g)[z(_)]!==z(u)&&_n(W4,B(n)[a][t.locale][z(_)]=z(u),B(n)),z(g)[z(v)]!==z(d)&&_n(W4,B(n)[a][t.locale][z(v)]=z(d),B(n)))};ti(()=>{z(g),B(()=>{y()})}),ti(()=>{z(u),z(d),B(()=>{b()})});var x=H();eo(I(x),Yx,null,e=>{var n=H();oo(I(n),()=>JSON.stringify(t.fieldConfig),e=>{jle(e,{get showLanguageSwitcher(){return z(p)},flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get code(){return z(u)},set code(e){P(u,e,!0)},get lang(){return z(d)},set lang(e){P(d,e,!0)}})}),U(e,n)}),U(e,x),k(),i()}var upe=s((()=>{Q(),Y(),G$(),Xx(),sc(),Y4()}));function dpe(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>T(t.fieldConfig.default_language,``)),o=M(()=>T(t.fieldConfig.output_code_only,!1)),s=M(()=>T(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),c=M(()=>jt(n()?.currentValues[t.locale])??{}),l=M(()=>`${t.keyPath}.${z(s).code}`),u=M(()=>`${t.keyPath}.${z(s).lang}`),d=M(()=>z(o)?t.currentValue:z(c)[z(l)]),f=M(()=>z(o)?z(a):z(c)[z(u)]);var p=H(),m=I(p),h=e=>{var t=fpe(),n=F(t,!0);D(t),R(()=>{cs(t,1,ts(z(f)?`language-${z(f)}`:void 0)),W(n,z(d))}),U(e,t)};G(m,e=>{z(d)&&e(h)}),U(e,p),k(),i()}var fpe,ppe=s((()=>{Q(),Y(),Y4(),fpe=V(`<pre> </pre>`)}));function mpe(e,t){let n=Ia();O(t,!0),K(e,vpe);let r=J(t,`currentValue`,15),i=J(t,`required`,3,!0),a=J(t,`readonly`,3,!1),o=J(t,`invalid`,3,!1),s=N(``),c=N(255),l=M(()=>T(t.fieldConfig.allowInput,!1)),u=M(()=>T(t.fieldConfig.enableAlpha,!1)),d=/^#[0-9a-f]{6}$/i,f=/^(?<rgb>#[0-9a-f]{6})(?<a>[0-9a-f]{2})?$/i,p=()=>{if(typeof r()!=`string`)return;let{rgb:e,a:t=`ff`}=r().match(f)?.groups??{};if(e&&z(s)!==e&&P(s,e,!0),e&&z(u)){let e=Number.parseInt(`0x${t}`,16);z(c)!==e&&P(c,e,!0)}},m=()=>{let e=d.test(z(s))?z(s):``;e&&z(u)&&(e+=z(c).toString(16).padStart(2,`0`)),r()!==e&&r(e)};ti(()=>{r(),B(()=>{p()})}),ti(()=>{z(s),z(c),B(()=>{m()})});var h=_pe(),g=F(h);_s(g);var _=L(g,2),v=e=>{var r=gpe(),d=F(r),f=e=>{_L(e,{dir:`ltr`,get id(){return`${n}-input`},get invalid(){return o()},get readonly(){return a()},get required(){return i()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return z(s)},set value(e){P(s,e,!0)}})};G(d,e=>{z(l)&&e(f)});var p=L(d,2),m=e=>{var t=hpe(),n=I(t),r=L(n);{let e=M(()=>!z(s)),t=M(()=>X(`opacity`));Soe(r,{min:0,max:255,get disabled(){return z(e)},get"aria-label"(){return z(t)},get value(){return z(c)},set value(e){P(c,e,!0)}})}R(e=>W(n,`${e??``} `),[()=>X(`opacity`)]),U(e,t)};G(p,e=>{z(u)&&e(m)}),D(r),U(e,r)};G(_,e=>{(z(l)||z(u))&&e(v)});var y=L(_,2),b=e=>{{let t=M(()=>X(`clear`)),r=M(()=>!z(s)),i=M(()=>`${n}-picker ${z(l)?`${n}-input`:``}`);lI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},get"aria-controls"(){return z(i)},onclick:()=>{P(s,``),P(c,255)}})}};G(y,e=>{!a()&&!i()&&e(b)}),D(h),R(()=>{q(g,`id`,`${n}-picker`),g.readOnly=a(),q(g,`aria-invalid`,o()),q(g,`aria-readonly`,a()),q(g,`aria-required`,i()),q(g,`aria-labelledby`,`${t.fieldId??``}-label`),q(g,`aria-errormessage`,`${t.fieldId??``}-error`)}),Fs(g,()=>z(s),e=>P(s,e)),U(e,h),k()}var hpe,gpe,_pe,vpe,ype=s((()=>{Q(),Y(),Z(),G$(),sc(),hpe=V(` <!>`,1),gpe=V(`<span role="none" class="value svelte-udhsyb"><!> <!></span>`),_pe=V(`<div role="none" class="svelte-udhsyb"><input type="color" class="svelte-udhsyb"/> <!> <!></div>`),vpe={hash:`svelte-udhsyb`,code:`div.svelte-udhsyb {display:flex;align-items:center;gap:8px;}div.svelte-udhsyb .value:where(.svelte-udhsyb) {display:flex;align-items:center;gap:8px;}div.svelte-udhsyb .value:where(.svelte-udhsyb) .sui.text-input {width:88px;min-width:0;}div.svelte-udhsyb .value:where(.svelte-udhsyb) .sui.slider {padding:8px;--sui-slider-base-width: 80px;}input.svelte-udhsyb {font-family:var(--sui-textbox-font-family);}`}}));function bpe(e,t){O(t,!0),K(e,Spe);let n=M(()=>T(t.fieldConfig.enableAlpha,!1)),r=e=>Number.parseInt(`0x${e}`,16),i=/^#(?<r>[0-9a-f]{2})(?<g>[0-9a-f]{2})(?<b>[0-9a-f]{2})(?<a>[0-9a-f]{2})?$/i,a=M(()=>{let{r:e,g:a,b:o,a:s}=t.currentValue?.match(i)?.groups??{};return e?`rgb(${r(e)} ${r(a)} ${r(o)}${z(n)&&s?` / ${Math.round(r(s)/255*100)}%`:``})`:``});var o=H(),s=I(o),c=e=>{var n=xpe(),r=F(n),i=F(r);let o;var s=L(i,2),c=F(s,!0);D(s);var l=L(s,2),u=F(l,!0);D(l),D(r),D(n),R(()=>{o=ds(i,``,o,{"background-color":t.currentValue}),W(c,t.currentValue),W(u,z(a))}),U(e,n)},l=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());G(s,e=>{z(l)&&e(c)}),U(e,o),k()}var xpe,Spe,Cpe=s((()=>{Q(),Y(),xpe=V(`<p><span role="none" class="preview svelte-1m6xsa0"><span role="none" class="color svelte-1m6xsa0"></span> <span role="none" class="value"> </span> <span role="none" class="value"> </span></span></p>`),Spe={hash:`svelte-1m6xsa0`,code:`.preview.svelte-1m6xsa0 {display:inline-flex;align-items:center;gap:8px;}.preview.svelte-1m6xsa0 .color:where(.svelte-1m6xsa0) {display:block;width:24px;height:24px;border-radius:24px;}`}}));function wpe(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`currentValue`,15),s=J(t,`required`,3,!0),c=J(t,`readonly`,3,!1),l=J(t,`invalid`,3,!1),u=M(()=>T(t.fieldConfig.value,``)),d=M(()=>n()?.isIndexFile??!1),f=M(()=>n()?.collectionName??``),p=M(()=>n()?.fileName),m=M(()=>jt(n()?.[a][t.locale])??{}),h=M(()=>ub(t.locale)),g=()=>{let[e]=t.keyPath.split(`.`).splice(-2,1);return e?.match(/^\d+$/)?Number(e):void 0},_=()=>{if(!(t.keyPath in z(m)))return;let e=z(u)===`{{index}}`?g()??``:z(u).replaceAll(/{{(.+?)}}/g,(e,n)=>{if(n===`index`)return String(g()??``);if(!n.startsWith(`fields.`))return``;let r=gA({collectionName:z(f),fileName:z(p),valueMap:z(m),keyPath:n.replace(/^fields\./,``),locale:t.locale,isIndexFile:z(d)});return Array.isArray(r)?z(h).format(r):String(r)});o()!==e&&o(e)};ti(()=>{z(m),B(()=>{_()})});{let n=M(()=>String(o()));_L(e,{dir:`auto`,get value(){return z(n)},flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`}})}k(),i()}var Tpe=s((()=>{Q(),Y(),G$(),sc(),Y4(),yA(),fb()}));function Epe(e,t){O(t,!0);var n=Dpe(),r=F(n,!0);D(n),R((e,i)=>{q(n,`lang`,e),q(n,`dir`,i),W(r,t.currentValue),n.dir=n.dir},[()=>ab(t.locale),()=>ob(t.locale)]),U(e,n),k()}var Dpe,Ope=s((()=>{Q(),Y(),fb(),Dpe=V(`<p> </p>`)}));function kpe(e,t){O(t,!0),K(e,Mpe);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=N(``),s=M(()=>sC(t.fieldConfig)),c=M(()=>z(s).type),l=M(()=>z(s).min),u=M(()=>z(s).max),d=M(()=>z(s).step),f=M(()=>z(s).dateOnly),p=M(()=>z(s).utc),m=()=>{let e=pC(n(),t.fieldConfig);e!==void 0&&e!==z(o)&&P(o,e,!0)},h=()=>{let e=fC(z(o),n(),t.fieldConfig);e!==void 0&&e!==n()&&Number(uC(e,t.fieldConfig))!==Number(uC(n(),t.fieldConfig))&&n(e)};ti(()=>{n(),B(()=>{m()})}),ti(()=>{z(o),B(()=>{h()})});var g=jpe(),_=F(g);bs(_,()=>({type:z(c),min:z(l),max:z(u),step:z(d),readonly:i(),"aria-readonly":i(),"aria-required":r(),"aria-invalid":a(),"aria-labelledby":`${t.fieldId??``}-label`,"aria-errormessage":`${t.fieldId??``}-error`}),void 0,void 0,void 0,`svelte-1dnhck7`,!0);var v=L(_,2),y=e=>{U(e,Ape())};G(v,e=>{z(p)&&e(y)});var b=L(v,2),x=e=>{{let n=M(()=>X(z(f)?`today`:`now`));lI(e,{variant:`tertiary`,get label(){return z(n)},onclick:()=>{let e=dC(t.fieldConfig);P(o,z(p)?e.replace(/:00\.000Z$/,``):e,!0)}})}};G(b,e=>{i()||e(x)});var S=L(b,2),C=e=>{{let t=M(()=>X(`clear`)),r=M(()=>!n());lI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{n(``)}})}};G(S,e=>{!i()&&!r()&&e(C)}),D(g),Fs(_,()=>z(o),e=>P(o,e)),U(e,g),k()}var Ape,jpe,Mpe,Npe=s((()=>{Q(),Y(),Z(),G$(),sc(),hC(),Ape=V(`<span role="none" class="utc svelte-1dnhck7">UTC</span>`),jpe=V(`<div role="none" class="svelte-1dnhck7"><input/> <!> <!> <!></div>`),Mpe={hash:`svelte-1dnhck7`,code:`div.svelte-1dnhck7 {display:flex;align-items:center;}.utc.svelte-1dnhck7 {margin:0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}`}}));function Ppe(e,t){O(t,!0);let n=M(()=>mC({locale:t.locale,fieldConfig:t.fieldConfig,currentValue:t.currentValue}));var r=H(),i=I(r),a=e=>{var r=Fpe(),i=F(r),a=L(i),o=e=>{U(e,Fa(`UTC`))};G(a,e=>{t.fieldConfig.picker_utc&&e(o)}),D(r),R((e,t)=>{q(r,`lang`,e),q(r,`dir`,t),W(i,`${z(n)??``} `),r.dir=r.dir},[()=>ab(t.locale),()=>ob(t.locale)]),U(e,r)};G(i,e=>{z(n)&&e(a)}),U(e,r),k()}var Fpe,Ipe=s((()=>{Q(),Y(),hC(),fb(),Fpe=V(`<p> <!></p>`)}));function Lpe(e,t){O(t,!0),K(e,Bpe);let n=J(t,`multiple`,3,!1),r=J(t,`hidden`,3,!1),i=M(()=>DC(t.fieldConfig)??{}),a=``,o=N(!1),s=N(!1),c=N(void 0),l=()=>{if(!z(c))return;a=window.crypto.randomUUID();let e=new URLSearchParams({...Object.fromEntries(Object.entries(z(i).config??{}).filter(([e])=>$ne.includes(e))),ml_id:a,pmHost:window.location.origin,new_cms:`true`,remove_header:`true`});z(c).src=`https://console.cloudinary.com/console/media_library/cms?${e}`},u=()=>{let e={...Object.fromEntries(Object.entries(z(i).config??{}).filter(([e])=>ere.includes(e))),multiple:n(),max_files:t.fieldConfig?.max??z(i).config?.max_files??20,folder:{path:z(i).config?.folder?.path??``,resource_type:t.kind??`raw`}},r={type:`ML_WIDGET_SHOW`,data:{mlId:a,config:e}};console.debug(`Cloudinary Panel sending message:`,r),z(c)?.contentWindow?.postMessage(JSON.stringify(r),Qne)},f=({assets:e})=>{let{output_filename_only:n=!1,use_transformations:r=!0}=z(i),a=e.map(e=>{let t=e.secure_url;return n?{url:t.split(`/`).pop()}:r?{url:e.derived?.[0]?.secure_url??t}:{url:t}});t.onSelect(a)},p=({origin:e,data:t})=>{if(e===`https://console.cloudinary.com`){if(typeof t==`string`)try{t=JSON.parse(t)}catch{return}d(t)&&(console.debug(`Cloudinary Panel received message:`,t),t.type===`login`&&t.consoleDomain&&P(o,!0),t.type===`consoleLoaded`&&P(s,!0),t.type===`ML_WIDGET_INSERT_DATA`&&f(t.data))}};ac(()=>(l(),window.addEventListener(`message`,p),()=>{window.removeEventListener(`message`,p)})),ti(()=>{z(i)&&z(s)&&u()});var m=zpe(),h=I(m);Ws(h,e=>P(c,e),()=>z(c));var g=L(h,2),_=e=>{z$(e,{children:(e,t)=>{var n=Rpe(),r=I(n);{let e=M(()=>X(`cloud_storage.cloudinary.activate.button_label`));lI(r,{variant:`primary`,get label(){return z(e)},onclick:async()=>{h1(`https://console.cloudinary.com/console/media_library/cms_login?cms=true`)}})}var i=L(r,2),a=F(i,!0);D(i),R(e=>W(a,e),[()=>X(`cloud_storage.cloudinary.activate.description`)]),U(e,n)},$$slots:{default:!0}})};G(g,e=>{!r()&&!z(o)&&e(_)}),R(e=>{q(h,`title`,e),q(h,`hidden`,r()||!z(o))},[()=>X(`cloud_storage.cloudinary.iframe_title`)]),U(e,m),k()}var Rpe,zpe,Bpe,Vpe=s((()=>{Q(),Y(),Z(),G$(),p(),sc(),OC(),g1(),Rpe=V(`<!> <div role="none"> </div>`,1),zpe=V(`<iframe allow="camera; storage-access" class="svelte-p06t0o"></iframe> <!>`,1),Bpe={hash:`svelte-p06t0o`,code:`iframe.svelte-p06t0o {display:block;width:100%;height:100%;border:none;&[hidden] {display:none;}}`}}));function Hpe(e,t){O(t,!0),K(e,Kpe);let n=J(t,`children`,3,void 0),r=M(()=>t.path?yp(t.path).split(`/`):t.caption?[t.caption]:[]),i={ALLOWED_TAGS:[`wbr`]},a=e=>jE(e.replace(/([-_.])/g,`$1<wbr>`),i);var o=H(),s=I(o),c=e=>{var t=Gpe(),i=F(t);ZF(i,{lines:2,children:(e,t)=>{var n=H();mo(I(n),19,()=>z(r),(e,t)=>`${e}-${t}`,(e,t,n)=>{var i=H(),o=I(i),s=e=>{var n=Upe();So(n,()=>a(z(t)),!0),D(n),U(e,n)},c=e=>{var n=Wpe();So(I(n),()=>a(z(t))),_t(),U(e,n)};G(o,e=>{z(n)===z(r).length-1?e(s):e(c,-1)}),U(e,i)}),U(e,n)},$$slots:{default:!0}}),Eo(L(i,2),()=>n()??E),D(t),U(e,t)};G(s,e=>{z(r).length&&e(c)}),U(e,o),k()}var Upe,Wpe,Gpe,Kpe,qpe=s((()=>{Q(),Y(),G$(),Cp(),ME(),Upe=V(`<strong></strong>`),Wpe=V(`<!>/`,1),Gpe=V(`<span class="name svelte-1ngvthn" aria-hidden="true"><!> <!></span>`),Kpe={hash:`svelte-1ngvthn`,code:`.name.svelte-1ngvthn {color:var(--sui-tertiary-foreground-color);}.name.svelte-1ngvthn strong {color:var(--sui-primary-foreground-color);font-weight:var(--sui-font-weight-normal);}`}}));function Jpe(e,t){K(e,Zpe);let n=J(t,`viewType`,3,`grid`);var r=Xpe();KL(F(r),{label:``,get value(){return t.value},get selected(){return t.selected},get onChange(){return t.onChange},startIcon:e=>{var n=H(),r=I(n),i=e=>{var t=Ype();UF(F(t),{name:`check`,class:`icon check`}),D(t),U(e,t)};G(r,e=>{t.multiple&&e(i)}),U(e,n)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{startIcon:!0,default:!0}}),D(r),R(()=>cs(r,1,`wrapper ${n()??``}`,`svelte-1fitgoo`)),U(e,r)}var Ype,Xpe,Zpe,Qpe=s((()=>{Q(),Y(),G$(),Ype=V(`<span role="none" class="icon check-background"><!></span>`),Xpe=V(`<div role="none"><!></div>`),Zpe={hash:`svelte-1fitgoo`,code:`.wrapper.svelte-1fitgoo {display:contents;}.wrapper.svelte-1fitgoo [role=option] {position:relative;}.wrapper.svelte-1fitgoo [role=option] > .icon.check {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background {border-color:var(--sui-checkbox-border-color);background-color:var(--sui-checkbox-background-color);}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background .icon {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=true] .check-background {border-color:var(--sui-primary-accent-color);color:var(--sui-primary-accent-color-inverted);background-color:var(--sui-primary-accent-color);}.wrapper.svelte-1fitgoo [role=option] .check-background {display:flex;justify-content:center;align-items:center;border-width:1px;border-radius:var(--sui-checkbox-border-radius);width:20px;height:20px;pointer-events:none;}.wrapper.svelte-1fitgoo [role=option] .check-background .icon {color:inherit !important;font-size:20px;}.wrapper.grid.svelte-1fitgoo .check-background {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.wrapper.list.svelte-1fitgoo .check-background {margin-inline-start:16px;}`}}));function $pe(e,t){O(t,!0),K(e,tme);let n=J(t,`viewType`,3,`grid`),r=J(t,`gridId`,3,void 0),i=J(t,`multiple`,3,!1),a=J(t,`showTitle`,3,!1),o=J(t,`onChange`,3,void 0),s=J(t,`children`,3,void 0);var c=eme();let l;var u=F(c);{let e=M(()=>X(`assets_dialog.available_images`));zL(u,{get id(){return r()},get class(){return n()},get multiple(){return i()},get"aria-label"(){return z(e)},onChange:e=>{o()?.(e.detail)},children:(e,t)=>{var n=H();Eo(I(n),()=>s()??E),U(e,n)},$$slots:{default:!0}})}D(c),R(()=>l=cs(c,1,`wrapper svelte-umbokg`,null,l,{"show-title":a()})),U(e,c),k()}var eme,tme,nme=s((()=>{Q(),Y(),Z(),G$(),eme=V(`<div role="none"><!></div>`),tme={hash:`svelte-umbokg`,code:`.wrapper.svelte-umbokg {display:contents;}.wrapper.svelte-umbokg .listbox {gap:4px;border-width:0;max-height:calc(100% - var(--sui-focus-ring-width) * 2);}.wrapper.svelte-umbokg .listbox .option button {border-radius:var(--sui-control-medium-border-radius);padding:4px;width:100%;height:auto;transition:none;}.wrapper.svelte-umbokg .listbox .option button:focus-visible {outline-color:transparent;}.wrapper.svelte-umbokg .listbox .option button .preview {flex:none;border-radius:var(--sui-control-medium-border-radius);aspect-ratio:1/1;object-fit:contain;}.wrapper.svelte-umbokg .listbox .name {min-height:calc(var(--sui-font-size-default) * 2);white-space:normal;line-height:var(--sui-line-height-compact);}.wrapper.svelte-umbokg .listbox.grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));height:auto;max-height:none;}.wrapper.svelte-umbokg .listbox.grid .option button {flex-direction:column;justify-content:flex-start;}.wrapper.svelte-umbokg .listbox.grid .option button .preview {width:100%;height:auto;}.wrapper.svelte-umbokg .listbox.grid .option button .name {flex:none;margin:4px 0 12px;padding:0 8px;width:100%;min-height:calc(var(--sui-font-size-default) * 3);}.wrapper.svelte-umbokg .listbox.grid .option button .name:empty {display:none;}.wrapper.svelte-umbokg .listbox.grid button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}.wrapper.svelte-umbokg :not(.wrapper.show-title) .listbox.grid .option .name {position:absolute;inset-inline-start:-99999px;}.wrapper.svelte-umbokg .listbox.list .option button {gap:16px;}.wrapper.svelte-umbokg .listbox.list .option button .preview {width:64px;}.wrapper.svelte-umbokg .listbox.list .option button .name {flex:auto;padding-inline:0 8px;}.wrapper.svelte-umbokg .listbox.list .option button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}`}}));function rme(e,t){O(t,!0);let n=J(t,`open`,15,!1);{let r=M(()=>X(`assets_dialog.large_file.title`));hL(e,{get title(){return z(r)},get open(){return n()},set open(e){n(e)},children:(e,n)=>{var r=ime(),i=I(r),a=F(i,!0);D(i);var o=L(i,2),s=F(o,!0);D(o),R((e,t)=>{W(a,e),W(s,t)},[()=>X(`warning_oversized_files`,{values:{count:t.oversizedFileNames.length,size:ZC(t.maxSize)}}),()=>ub(kh.current).format(t.oversizedFileNames)]),U(e,r)},$$slots:{default:!0}})}k()}var ime,ame=s((()=>{Q(),Y(),Z(),G$(),fb(),iw(),ime=V(`<div> </div> <div> </div>`,1)}));function ome(e,t){O(t,!0),K(e,vme);let n=()=>j(BF,`$selectAssetsView`,o),r=()=>j($P,`$cmsConfig`,o),i=()=>j(tN,`$prefs`,o),a=()=>j(VA,`$isSmallScreen`,o),[o,s]=hn(),c=e=>{var t=H(),n=I(t),r=e=>{z$(e,{children:(e,t)=>{var n=sme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(d()?`searching`:`loading`)]),U(e,n)},$$slots:{default:!0}})},i=e=>{z$(e,{children:(e,t)=>{var n=cme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})},o=e=>{var t=ume();$pe(F(t),{get viewType(){return z(re)},get gridId(){return f()},get multiple(){return u()},children:(e,t)=>{{let t=(e,t=E)=>{var n=H();eo(I(n),Yx,null,e=>{let n=M(()=>{let{id:e,previewURL:n,description:r,kind:i}=t();return{id:e,previewURL:n,description:r,_kind:i}});{let r=M(()=>Ce(t()));Jpe(e,{get value(){return z(n).id},get viewType(){return z(re)},get multiple(){return u()},get selected(){return z(r)},onChange:({detail:{selected:e}})=>{we(t(),e)},children:(e,t)=>{var r=lme(),i=I(r);s2(i,{get kind(){return z(n)._kind},get src(){return z(n).previewURL},get alt(){return z(n).description},variant:`tile`,crossorigin:`anonymous`});var o=L(i,2),s=e=>{{let t=M(()=>z(ie)?void 0:z(n).description),r=M(()=>z(ie)?z(n).description:void 0);Hpe(e,{get path(){return z(t)},get caption(){return z(r)}})}};G(o,e=>{(z(re)===`list`||!a()&&!z(ie))&&e(s)}),U(e,r)},$$slots:{default:!0}})}}),U(e,n)},n=M(()=>z(me)??[]);wR(e,{get items(){return z(n)},itemKey:`id`,renderItem:t,$$slots:{renderItem:!0}})}},$$slots:{default:!0}}),D(t),U(e,t)};G(n,e=>{z(me)?z(me).length?e(o,-1):e(i,1):e(r)}),U(e,t)},l=J(t,`fieldConfig`,3,void 0),u=J(t,`multiple`,3,!1),d=J(t,`searchTerms`,3,``),f=J(t,`gridId`,3,void 0),p=J(t,`selectedResources`,31,()=>Cr([])),m=M(()=>T(t.serviceProps.serviceType,`stock_assets`)),h=M(()=>T(t.serviceProps.serviceId,``)),g=M(()=>T(t.serviceProps.serviceLabel,``)),_=M(()=>T(t.serviceProps.hotlinking,!1)),v=M(()=>T(t.serviceProps.authType,`api_key`)),y=M(()=>T(t.serviceProps.developerURL,``)),b=M(()=>T(t.serviceProps.apiKeyURL,``)),x=M(()=>t.serviceProps.apiKeyPattern),S=M(()=>t.serviceProps.init),C=M(()=>t.serviceProps.signIn),w=M(()=>t.serviceProps.list),ee=M(()=>t.serviceProps.search),ne=M(()=>t.serviceProps.upload),re=M(()=>z(h)===`picsum`?`grid`:n()?.type),ie=M(()=>z(m)===`stock_assets`),ae=M(()=>l()?.media_libraries?.all??r()?.media_libraries?.all??{}),oe=M(()=>z(ae).max_file_size??1/0),se=Cr({userName:``,password:``}),ce=N(!0),le=N(!1),ue=N(``),de=N(``),fe=N(``),pe=N(`initial`),me=N(null),he=N(void 0),ge=N(Cr({show:!1,status:`info`,length:0})),_e=N(Cr([])),ve=N(!1),ye=M(()=>({kind:t.kind,fieldConfig:l(),apiKey:z(ue),userName:z(de),password:z(fe)})),be=async(e=``)=>{P(me,null),e=e.trim();try{P(me,await(e?z(ee)?.(e,z(ye)):z(w)?.(z(ye)))??[],!0)}catch(e){P(he,`search_fetch_failed`),console.error(e)}},xe=async e=>{if(!z(ne))return;let t=await Promise.all(e.map(e=>lF(e,z(ae))));if(e=t.filter(({oversized:e})=>!e).map(({file:e})=>e),P(_e,t.filter(({oversized:e})=>e).map(({file:e})=>e.name),!0),z(_e).length&&P(ve,!0),e.length){P(ge,{show:!0,status:`info`,length:e.length},!0);try{await z(ne)(e,z(ye)),be()}catch{P(ge,{show:!0,status:`error`,length:e.length},!0)}}},Se=async e=>{let{downloadURL:t,fileName:n,credit:r}=e;if(z(_))return{url:t,credit:r};try{let e=await fetch(t),{ok:i,status:a}=e;if(!i)throw Error(`The response returned with HTTP status ${a}.`);let o=await e.blob();return{url:t,credit:r,file:new File([o],n,{type:o.type})}}catch(e){P(he,`image_fetch_failed`),console.error(e)}},Ce=e=>p().some(t=>t.url===e.downloadURL),we=async(e,t)=>{let n=p().filter(t=>t.url!==e.downloadURL);if(t){let t=await Se(e);t&&p([...n,t])}else p(n)};ac(()=>{(async()=>{typeof z(S)==`function`&&(P(ce,!1),P(ce,await z(S)(),!0)),z(ce)&&(P(ue,i().apiKeys?.[z(h)]??``,!0),(e=>{var t=te(e,2);P(de,t[0],!0),P(fe,t[1],!0)})((i().logins?.[z(h)]??``).split(` `)),P(le,z(v)===`none`||!!z(ue)||!!z(fe),!0),P(me,null))})()}),ti(()=>{d(),z(le),B(()=>{z(le)&&be(d())})});var Te={uploadFiles:xe},Ee=_me(),De=I(Ee),Oe=e=>{var t=H(),n=I(t),r=e=>{z$(e,{children:(e,t)=>{var n=dme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`assets_dialog.error.${z(he)}`)]),U(e,n)},$$slots:{default:!0}})},i=e=>{{let t=M(()=>l()?.accept);A3(e,{get accept(){return z(t)},multiple:!0,onDrop:({files:e})=>xe(e),children:(e,t)=>{c(e)},$$slots:{default:!0}})}},a=e=>{c(e)};G(n,e=>{z(he)?e(r):z(ne)?e(i,1):e(a,-1)}),U(e,t)},ke=e=>{z$(e,{children:(e,t)=>{var n=mme(),r=I(n),a=F(r),o=e=>{var t=H();So(I(t),()=>jE(X(`prefs.media.stock_photos.description`,{values:{service:z(g),homeHref:`href="${z(y)}"`,apiKeyHref:`href="${z(b)}"`}}).replace(/[\u2068\u2069]/g,``),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,t)};G(a,e=>{z(ie)&&e(o)});var s=L(a,2),c=e=>{var t=H();So(I(t),()=>jE(X(`cloud_storage.${z(h)}.auth.${z(pe)}`,{default:X(`cloud_storage.auth.${z(v)}.${z(pe)}`,{values:{service:z(g),key:X(`cloud_storage.${z(h)}.auth_key_label`,{default:X(`cloud_storage.auth.${z(v)}.key_label`)})}})}),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,t)};G(s,e=>{z(m)===`cloud_storage`&&e(c)}),D(r);var l=L(r,2),u=e=>{var t=fme(),n=F(t);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(g)}}));_L(n,{dir:`ltr`,flex:!0,monospace:!0,spellcheck:`false`,get"aria-label"(){return z(e)},oninput:e=>{let t=e.target.value.trim();z(x)?.test(t)&&(P(ue,t,!0),P(le,!0),_n(tN,B(i).apiKeys??={},B(i)),_n(tN,B(i).apiKeys[z(h)]=z(ue),B(i)),be())}})}D(t),U(e,t)};G(l,e=>{z(v)===`api_key`&&e(u)});var d=L(l,2),f=e=>{var t=pme(),n=I(t),r=F(n);{let e=M(()=>X(`user_name`)),t=M(()=>z(pe)===`requested`);_L(r,{dir:`ltr`,flex:!0,spellcheck:`false`,get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return se.userName},set value(e){se.userName=e}})}D(n);var a=L(n,2),o=F(a);{let e=M(()=>X(`password`)),t=M(()=>z(pe)===`requested`);j$(o,{get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return se.password},set value(e){se.password=e}})}D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`sign_in`)),t=M(()=>!se.userName||!se.password||z(pe)===`requested`);lI(c,{variant:`secondary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{P(pe,`requested`),se.userName=se.userName.trim(),se.password=se.password.trim(),await z(C)?.(se.userName,se.password)?(P(pe,`success`),P(de,se.userName,!0),P(fe,se.password,!0),P(le,!0),_n(tN,B(i).logins??={},B(i)),_n(tN,B(i).logins[z(h)]=[z(de),z(fe)].join(` `),B(i)),be()):P(pe,`error`)}})}D(s),U(e,t)};G(d,e=>{z(v)===`password`&&e(f)}),U(e,n)},$$slots:{default:!0}})},Ae=e=>{z$(e,{children:(e,t)=>{var n=hme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`cloud_storage.invalid`)]),U(e,n)},$$slots:{default:!0}})};G(De,e=>{z(le)?e(Oe):z(ce)?e(ke,1):e(Ae,-1)});var je=L(De,2);oz(je,{get show(){return z(ge).show},set show(e){z(ge).show=e},children:(e,t)=>{GF(e,{get status(){return z(ge).status},children:(e,t)=>{var n=gme(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`uploading_files_progress`,{values:{count:z(ge).length}})]),U(e,t)};G(r,e=>{z(ge).status===`info`&&e(i)});var a=L(r,2),o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`uploading_files_failed`,{values:{count:z(ge).length}})]),U(e,t)};G(a,e=>{z(ge).status===`error`&&e(o)}),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),rme(L(je,2),{get oversizedFileNames(){return z(_e)},get maxSize(){return z(oe)},get open(){return z(ve)},set open(e){P(ve,e,!0)}}),U(e,Ee);var Me=k(Te);return s(),Me}var sme,cme,lme,ume,dme,fme,pme,mme,hme,gme,_me,vme,yme=s((()=>{Q(),Y(),Z(),G$(),Xx(),ME(),sc(),qpe(),Qpe(),nme(),m2(),L3(),ame(),uF(),iF(),HF(),KA(),nN(),sme=V(`<span role="alert"> </span>`),cme=V(`<span role="alert"> </span>`),lme=V(`<!> <!>`,1),ume=V(`<div role="none" class="grid-wrapper svelte-mqll9n"><!></div>`),dme=V(`<span role="alert"> </span>`),fme=V(`<div role="none" class="input-outer svelte-mqll9n"><!></div>`),pme=V(`<div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div>`,1),mme=V(`<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>`,1),hme=V(`<span role="alert"> </span>`),gme=V(`<!> <!>`,1),_me=V(`<!> <!> <!>`,1),vme={hash:`svelte-mqll9n`,code:`.grid-wrapper.svelte-mqll9n {overflow-y:auto;height:100%;}p.svelte-mqll9n {margin:0 0 8px;}.input-outer.svelte-mqll9n {width:400px;max-width:100%;text-align:center;}`}}));function bme(e,t){O(t,!0),K(e,Eme);let n=()=>j(VA,`$isSmallScreen`,r),[r,i]=hn(),a=J(t,`multiple`,3,!1),o=J(t,`assets`,19,()=>[]),s=J(t,`viewType`,3,`grid`),c=J(t,`searchTerms`,3,``),l=J(t,`basePath`,3,void 0),u=J(t,`gridId`,3,void 0),d=J(t,`checkerboard`,3,!1),f=J(t,`selectedResources`,31,()=>Cr([])),p=J(t,`onSelect`,3,void 0),m=M(()=>(c()?o().filter(({name:e})=>G6(e).includes(c())):o()).filter((e,t,n)=>n.findIndex(t=>t.path===e.path)===t)),h=e=>f().some(t=>(0,U5.default)(t.asset,e)),g=(e,t)=>{let n=f().filter(t=>!(0,U5.default)(t.asset,e));t?(f([...n,{asset:e}]),p()?.({asset:e})):f(n)};var _=H(),v=I(_),y=e=>{var t=wme();$pe(F(t),{get multiple(){return a()},get gridId(){return u()},get viewType(){return s()},showTitle:!0,children:(e,t)=>{wR(e,{get items(){return z(m)},itemKey:`path`,renderItem:(e,t=E)=>{var r=H();eo(I(r),Yx,null,e=>{let r=M(()=>{let{kind:e,name:n,path:r,unsaved:i,folder:a}=t();return{kind:e,name:n,path:r,unsaved:i,folder:a}}),i=M(()=>l()&&!z(r).folder.entryRelative?yp(z(r).path.replace(l(),``)):z(r).name);{let o=M(()=>h(t()));Jpe(e,{get value(){return z(r).path},get viewType(){return s()},get multiple(){return a()},get selected(){return z(o)},onChange:({detail:{selected:e}})=>{g(t(),e)},children:(e,a)=>{var o=Cme(),c=I(o),l=e=>{var t=xme(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`assets_dialog.unsaved`)]),U(e,t)};G(c,e=>{s()===`grid`&&z(r).unsaved&&e(l)});var u=L(c,2);s2(u,{get kind(){return z(r).kind},get asset(){return t()},get alt(){return z(i)},variant:`tile`,get checkerboard(){return d()}});var f=L(u,2),p=e=>{Hpe(e,{get path(){return z(i)},children:(e,t)=>{var n=H(),i=I(n),a=e=>{var t=Sme(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`assets_dialog.unsaved`)]),U(e,t)};G(i,e=>{s()===`list`&&z(r).unsaved&&e(a)}),U(e,n)},$$slots:{default:!0}})};G(f,e=>{(!n()||s()===`list`)&&e(p)}),U(e,o)},$$slots:{default:!0}})}}),U(e,r)},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),D(t),U(e,t)},b=e=>{z$(e,{children:(e,t)=>{var n=Tme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})};G(v,e=>{z(m).length?e(y):e(b,-1)}),U(e,_),k(),i()}var U5,xme,Sme,Cme,wme,Tme,Eme,Dme=s((()=>{Q(),Y(),Z(),G$(),Xx(),Cp(),U5=u(ZM()),qpe(),Qpe(),nme(),m2(),J6(),KA(),xme=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),Sme=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),Cme=V(`<!> <!> <!>`,1),wme=V(`<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>`),Tme=V(`<span role="none"> </span>`),Eme={hash:`svelte-1ong0f1`,code:`.grid-wrapper.svelte-1ong0f1 {overflow-y:auto;height:100%;}.grid-wrapper.svelte-1ong0f1 [role=listbox] {background-color:transparent;}.grid-wrapper.svelte-1ong0f1 [role=listbox].grid .unsaved {position:absolute;inset-block-start:8px;inset-inline-end:8px;z-index:1;}.grid-wrapper.svelte-1ong0f1 [role=listbox].list .name {display:flex;gap:8px;align-items:center;justify-content:space-between;}.unsaved.svelte-1ong0f1 {display:flex;justify-content:center;align-items:center;border-color:var(--sui-info-border-color);border-radius:4px;padding:2px 6px;color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);font-size:var(--sui-font-size-small);}`}}));function Ome(e,t){O(t,!0);let n=()=>j(BF,`$selectAssetsView`,r),[r,i]=hn(),a=J(t,`multiple`,3,!1),o=J(t,`accept`,3,void 0),s=J(t,`assets`,19,()=>[]),c=J(t,`searchTerms`,3,``),l=J(t,`basePath`,3,void 0),u=J(t,`selectedResources`,31,()=>Cr([])),d=N(void 0);ti(()=>{u().length||B(()=>{z(d)?.reset()})}),Ws(A3(e,{get multiple(){return a()},get accept(){return o()},get onDrop(){return t.onDrop},children:(e,t)=>{{let t=M(()=>n()?.type);bme(e,{get multiple(){return a()},get assets(){return s()},get viewType(){return z(t)},get searchTerms(){return c()},get basePath(){return l()},gridId:`select-assets-grid`,checkerboard:!0,get selectedResources(){return u()},set selectedResources(e){u(e)}})}},$$slots:{default:!0}}),e=>P(d,e,!0),()=>z(d)),k(),i()}var kme=s((()=>{Q(),Y(),sc(),Dme(),L3(),HF()})),W5,G5,K5,q5,Ame,J5,Y5=s((()=>{gp(),W5=u(ZM(),1),ME(),ip(),EF(),xT(),jS(),uF(),iw(),G5=async({draft:e,file:t,folder:n})=>{let r=await hp(t),i;return await Promise.all(Object.entries(e.files??{}).map(async([e,t])=>{!i&&await hp(t.file)===r&&(!n?.entryRelative||(0,W5.default)(t.folder,n))&&(i=e)})),i},K5=async({file:e,blobURL:t,folder:n,targetFolderPath:r})=>{let{name:i,size:a}=e;return{unsaved:!0,file:e,blobURL:t??URL.createObjectURL(e),name:i,path:r?`${r}/${i}`:i,sha:await rw(e),size:a,kind:AS(i),folder:n}},q5=async({draft:e,targetFolderPath:t})=>Promise.all(Object.entries(e.files).map(async([e,{file:n,folder:r}])=>K5({file:n,blobURL:e,folder:r,targetFolderPath:t}))),Ame=(e,t)=>{let n=A(dF);if(!t?.entryRelative)return n;let{originalEntry:r,defaultLocale:i,collection:a}=e,o=r?.locales[i]?.path;if(!o)return[];let s=a._type===`entry`?a._file.subPath:void 0,c=s?.includes(`/`)?s.split(`/`).at(-1):void 0,l=o.substring(0,o.lastIndexOf(`.`));c&&!c.includes(`{{`)&&(l=l.match(/(?<path>.+?)(?:\/[^/]+)?$/)?.groups?.path??l);let u=[l,t.internalSubPath].filter(Boolean).join(`/`);return n.filter(e=>e.path.startsWith(`${u}/`))},J5=async({draft:e,resource:t,libraryConfig:n})=>{let{url:r,credit:i}=t,{asset:a,file:o}=t,s=``,c;if(o){let{folder:r}=t,i=await G5({draft:e,file:o,folder:r});if(i)s=i;else{let{file:t,oversized:i}=await lF(o,n??{});o=t;let l=await rw(o),u=[...Ame(e,r),...await q5({draft:e})].find(e=>e.sha===l&&(0,W5.default)(e.folder,r));u?(a=u,o=void 0):i?(c=o.name,o=void 0):(s=URL.createObjectURL(o),e.files[s]={file:o,folder:r})}}return a&&(a.unsaved?a.file&&(s=await G5({draft:e,file:a.file,folder:a.folder})):s=vT(a,{pathOnly:!0,allowSpecial:!0,entry:e.originalEntry})),r&&!o&&!a&&(s=r),{value:s,credit:i?jE(i,{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`]}):``,oversizedFileName:c}}})),X5,Z5,Q5,jme,$5,Mme,Nme,Pme,Fme=s((()=>{Z(),Xx(),X5=[`en-US,pt-BR,es-ES,ca-ES,de-DE,it-IT,fr-FR,sv-SE,id-ID,pl-PL,ja-JP,zh-TW,zh-CN,ko-KR,th-TH,nl-NL`,`hu-HU,vi-VN,cs-CZ,da-DK,fi-FI,uk-UA,el-GR,ro-RO,nb-NO,sk-SK,tr-TR,ru-RU`].join(`,`).split(`,`),Z5=`https://api.pexels.com/v1`,Q5={per_page:80},jme=()=>{let e=kh.current.toLowerCase(),[t]=e.split(`-`);return X5.find(t=>t.toLowerCase()===e)??X5.find(e=>e.split(`-`)[0]===t)??`en-US`},$5=e=>e.map(({id:e,url:t,alt:n,src:{large2x:r,medium:i},photographer:a})=>({id:String(e),description:t.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g,` `)??n,previewURL:i,downloadURL:r,fileName:`pexels-${a.split(/\s+/).join(`-`).toLowerCase()}-${e}.jpg`,kind:`image`,credit:`<a href="${t}">Photo by ${a} on Pexels</a>`})),Mme=async({apiKey:e})=>{let t={Authorization:e},n=new URLSearchParams(Q5),r=await fetch(`${Z5}/curated?${n}`,{headers:t});if(!r.ok)return Promise.reject();let i=(await r.json()).photos;return $5(i)},Nme=async(e,{apiKey:t})=>{let n={Authorization:t},r=new URLSearchParams({...Q5,query:e,locale:jme()}),i=[];for(let e=1;e<=2;e+=1){r.set(`page`,String(e));let t=await fetch(`${Z5}/search?${r}`,{headers:n});if(!t.ok)return Promise.reject();let{photos:a,next_page:o}=await t.json();if(i.push(...a),!o)break;await Yx(50)}return $5(i)},Pme={serviceType:`stock_assets`,serviceId:`pexels`,serviceLabel:`Pexels`,serviceURL:`https://www.pexels.com/`,showServiceLink:!0,hotlinking:!1,authType:`api_key`,developerURL:`https://www.pexels.com/api/`,apiKeyURL:`https://www.pexels.com/api/new/`,apiKeyPattern:/^[a-zA-Z\d]{56}$/,list:Mme,search:Nme}})),Ime,Lme,Rme,zme,Bme,Vme,Hme,Ume=s((()=>{Ime=`https://picsum.photos/v2/list`,Lme=100,Rme=10,zme=3,Bme=e=>e.map(({id:e,width:t,height:n})=>{let r=t>=n,[i,a]=r?[1920,1280]:[1280,1920],[o,s]=r?[480,320]:[320,480];return{id:e,description:``,previewURL:`https://picsum.photos/id/${e}/${o}/${s}.webp`,downloadURL:`https://picsum.photos/id/${e}/${i}/${a}.webp`,fileName:`picsum-${e}.webp`,kind:`image`}}),Vme=async()=>{let e=Array.from({length:Rme},(e,t)=>t+1).sort(()=>Math.random()-.5).slice(0,zme),t=await Promise.all(e.map(e=>fetch(`${Ime}?page=${e}&limit=${Lme}`)));return t.some(e=>!e.ok)?Promise.reject():Bme((await Promise.all(t.map(e=>e.json()))).flat().sort(()=>Math.random()-.5))},Hme={serviceType:`stock_assets`,serviceId:`picsum`,serviceLabel:`Lorem Picsum`,serviceURL:`https://picsum.photos/`,showServiceLink:!0,hotlinking:!0,authType:`none`,list:Vme}})),Wme,e7,t7,n7,r7,Gme,Kme,qme,Jme=s((()=>{Z(),Wme=`cs,da,de,en,es,fr,id,it,hu,nl,no,pl,pt,ro,sk,fi,sv,tr,vi,th,bg,ru,el,ja,ko,zh`.split(`,`),e7=`https://pixabay.com/api`,t7={image_type:`photo`,min_width:1280,safesearch:!0,per_page:150},n7=e=>e.map(({id:e,webformatURL:t,previewURL:n,largeImageURL:r,imageWidth:i,imageHeight:a,pageURL:o,tags:s,user:c})=>({id:String(e),description:s,previewURL:t.replace(`_640.`,i>a?`_180.`:`_340.`),downloadURL:r,fileName:n.split(`/`).pop().replace(`_150.`,`_1280.`),kind:`image`,credit:`<a href="${o}">Photo by ${c} on Pixabay`})),r7=()=>{let[e]=kh.current.toLowerCase().split(`-`);return Wme.includes(e)?e:`en`},Gme=async({apiKey:e})=>{let t=new URLSearchParams({...t7,key:e,lang:r7(),editors_choice:`true`}),n=await fetch(`${e7}/?${t}`);if(!n.ok)return Promise.reject();let r=(await n.json()).hits;return n7(r)},Kme=async(e,{apiKey:t})=>{let n=new URLSearchParams({...t7,key:t,lang:r7(),q:e}),r=await fetch(`${e7}/?${n}`);if(!r.ok)return Promise.reject();let i=(await r.json()).hits;return n7(i)},qme={serviceType:`stock_assets`,serviceId:`pixabay`,serviceLabel:`Pixabay`,serviceURL:`https://pixabay.com/`,showServiceLink:!0,hotlinking:!1,authType:`api_key`,developerURL:`https://pixabay.com/service/about/api/`,apiKeyURL:`https://pixabay.com/api/docs/#api_key`,apiKeyPattern:/^\d+-[a-f\d]{25}$/,list:Gme,search:Kme}})),i7,a7,o7,s7,Yme,c7,Xme,Zme,Qme,$me=s((()=>{Z(),Xx(),i7=[`af,sq,am,ar,hy,as,az,bn,ba,eu,bs,bg,yue,ca,lzh,zh-Hans,zh-Hant,hr,cs,da,prs,dv,nl,en,et,fo,fj`,`fil,fi,fr,fr-ca,gl,ka,de,el,gu,ht,he,hi,mww,hu,is,id,ikt,iu,iu-Latn,ga,it,ja,kn,kk,km,ko,ku,kmr`,`ky,lo,lv,lt,mk,mg,ms,ml,mt,mi,mr,mn-Cyrl,mn-Mong,my,ne,nb,or,ps,fa,pl,pt,pt-pt,pa,otq,ro,ru,sm`,`sr-Cyrl,sr-Latn,sk,sl,so,es,sw,sv,ty,ta,tt,te,th,bo,ti,to,tr,tk,uk,hsb,ur,ug,uz,vi,cy,yua,zu`].join(`,`).split(`,`),a7=`https://api.unsplash.com`,o7=`utm_source=sveltia-cms&utm_medium=referral`,s7={per_page:30},Yme=()=>{let e=kh.current.toLowerCase(),[t]=e.split(`-`);return i7.find(t=>t.toLowerCase()===e)??i7.find(e=>e.split(`-`)[0]===t)??`en`},c7=e=>e.map(({id:e,description:t,alt_description:n,urls:{regular:r,thumb:i},user:{username:a,name:o}})=>({id:String(e),description:[t,n].filter(Boolean).join(` — `),previewURL:i,downloadURL:r,fileName:`${o.split(/\s+/).join(`-`).toLowerCase()}-${e}-unsplash.jpg`,kind:`image`,credit:`Photo by <a href="https://unsplash.com/@${a}?${o7}">${o}</a> on <a href="https://unsplash.com/?${o7}">Unsplash</a>`})),Xme=async({apiKey:e})=>{let t={Authorization:`Client-ID ${e}`},n=new URLSearchParams(s7),r=await fetch(`${a7}/photos?${n}`,{headers:t});return r.ok?c7(await r.json()):Promise.reject()},Zme=async(e,{apiKey:t})=>{let n={Authorization:`Client-ID ${t}`},r=new URLSearchParams({...s7,query:e,lang:Yme()}),i=[];for(let e=1;e<=5;e+=1){r.set(`page`,String(e));let t=await fetch(`${a7}/search/photos?${r}`,{headers:n});if(!t.ok)return Promise.reject();let{results:a,total_pages:o}=await t.json();if(i.push(...a),o===e)break;await Yx(50)}return c7(i)},Qme={serviceType:`stock_assets`,serviceId:`unsplash`,serviceLabel:`Unsplash`,serviceURL:`https://unsplash.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://unsplash.com/developers`,apiKeyURL:`https://unsplash.com/oauth/applications`,apiKeyPattern:/^[a-zA-Z\d_-]{40,}$/,list:Xme,search:Zme}})),l7,u7,ehe=s((()=>{oF(),Fme(),Ume(),Jme(),$me(),l7={pexels:Pme,picsum:Hme,pixabay:qme,unsplash:Qme},u7=({fieldConfig:e}={})=>{let t=aF({libraryName:`stock_assets`,fieldConfig:e});if(t===!1)return{providers:[]};let n=Object.keys(l7),{providers:r}=t;return{providers:Array.isArray(r)?r:n}}}));function the(e,t){let n=Ia();O(t,!0),K(e,fhe);let r=()=>j(t.entryDraft,`$entryDraft`,l),i=()=>j(dF,`$allAssets`,l),a=()=>j(tN,`$prefs`,l),o=()=>j(VA,`$isSmallScreen`,l),s=()=>j(PF,`$showContentOverlay`,l),c=()=>j(BF,`$selectAssetsView`,l),[l,u]=hn(),d=e=>{var n=ihe(),r=I(n),i=e=>{var n=rhe(),r=I(n),i=e=>{{let t=M(()=>BF);S6(e,{get currentView(){return z(t)},"aria-controls":`select-assets-grid`})}};G(r,e=>{c()&&e(i)});var a=L(r,2);{let e=M(()=>!z(ae)),n=M(()=>z(w).some(e=>e.file)),r=M(()=>X(`assets_dialog.search_for_${t.kind??`file`}`));OR(a,{dir:`auto`,get flex(){return o()},get debounce(){return z(e)},get disabled(){return z(n)},get"aria-label"(){return z(r)},get value(){return z(y)},set value(e){P(y,e,!0)}})}U(e,n)};G(r,e=>{(z(ae)||z(fe)&&z(b)!==`cloudinary`||z(E)&&z(b)!==`picsum`)&&e(i)});var a=L(r,2),s=e=>{{let t=e=>{UF(e,{name:`cloud_upload`})},n=M(()=>X(`upload`));lI(e,{variant:`primary`,get label(){return z(n)},onclick:()=>{z(C)?.open()},startIcon:t,$$slots:{startIcon:!0}})}};G(a,e=>{(z(ae)||z(fe)&&z(b)!==`cloudinary`)&&e(s)}),U(e,n)},f=J(t,`open`,15,!1),p=J(t,`multiple`,3,!1),m=J(t,`accept`,19,()=>t.kind===`image`?Gw.join(`,`):void 0),h=J(t,`canEnterURL`,3,!0),g=J(t,`onSelect`,3,void 0),_=J(t,`pendingFiles`,31,()=>Cr([])),v=N(``),y=N(``),b=N(`default-global`),x=N(Cr([])),S=N(Cr([])),C=N(void 0),w=N(Cr([])),ee=N(void 0),T=(e,t)=>{let n=e[1].serviceLabel.toLowerCase(),r=t[1].serviceLabel.toLowerCase();return n.localeCompare(r)},ne=M(()=>t.kind===`image`?X(`assets_dialog.title.image`):X(`assets_dialog.title.file`)),re=M(()=>G6(z(y))),ie=M(()=>aF({fieldConfig:t.fieldConfig})!==!1&&Object.values(t.assetLibraryFolderMap).some(({enabled:e})=>e)),ae=M(()=>z(b).startsWith(`default-`)),oe=M(()=>{if(!z(ae))return;let e=z(b).replace(`default-`,``),{folder:n}=t.assetLibraryFolderMap[e];return n}),se=M(()=>{let{originalEntry:e}=r()??{},{entryRelative:t,internalPath:n,internalSubPath:i}=z(oe)??{};if(!t)return n?.replace(`{{slug}}`,e?.slug??`-`);let a=i||void 0;if(e){let t=Op(Object.values(e.locales)[0].path).dirname;return a?`${t}/${a}`:t}return a?`${n}/${a}/-`:`${n}/-`}),ce=M(()=>[...i(),...z(S)].filter(e=>!t.kind||t.kind===e.kind).sort((e,t)=>e.name.localeCompare(t.name)).sort((e,t)=>Number(!!t.unsaved)-Number(!!e.unsaved))),le=M(()=>{let{providers:e=[]}=u7({fieldConfig:t.fieldConfig});return Object.entries(l7).filter(([t,{hotlinking:n}])=>e.includes(t)&&(n||z(ie))).sort(T)}),ue=M(()=>z(le).some(([e,{authType:t}])=>e===z(b)&&(t===`none`||!!a()?.apiKeys?.[z(b)]))),de=M(()=>[...t.enabledCloudServiceEntries,...z(le)].sort(T)),fe=M(()=>t.enabledCloudServiceEntries.map(([e])=>e).includes(z(b))),E=M(()=>z(le).map(([e])=>e).includes(z(b))),pe=M(()=>o()?RR:zL),me=e=>z(se)!==void 0&&(e===z(se)||`${e}/-`===z(se)||e.startsWith(`${z(se)}/`)),he=e=>{if(z(oe)===void 0||e.folder?.internalPath!==z(oe).internalPath||e.folder?.entryRelative!==z(oe).entryRelative)return!1;if(!z(oe).entryRelative)return me(e.path);let{dirname:t}=Op(e.path);return t===void 0?!1:me(t)},ge=async({hash:e,folder:t})=>(await Promise.all(z(S).map(async n=>!!n.file&&(0,nhe.default)(n.folder,t)&&await hp(n.file)===e))).includes(!0),_e=async e=>{let t=await hp(e),n=z(oe);if(await ge({hash:t,folder:n}))return;let r=await K5({file:e,folder:n,targetFolderPath:z(se)});return z(x).push(r),{asset:r}},ve=async e=>{P(w,(await Promise.all(e.map(_e))).filter(e=>!!e),!0)},ye=()=>{P(v,``),P(y,``),P(x,[],!0),P(S,[],!0),P(w,[],!0)},be=()=>{if(!z(w).length)return;let e=jt(z(w)).map(e=>{let{unsaved:t,file:n,folder:r}=e.asset??{};return t?{file:n,folder:r}:e});g()?.(e)};ri(()=>{let e=z(ie)?Object.entries(t.assetLibraryFolderMap).find(([,{enabled:e}])=>e)?.[0]:void 0;e?P(b,`default-${e}`):P(b,z(de)[0]?.[0],!0)}),ti(()=>{r()?.files,jt(z(x)),(async()=>{P(S,[...r()?.files?await q5({draft:r(),targetFolderPath:z(se)}):[],...Object.values(z(x))],!0)})()}),ti(()=>{s()||f(!1)}),ti(()=>{z(ee)&&_().length&&(z(ee).uploadFiles(_()),_([]))});var xe=dhe(),Se=I(xe);{let e=e=>{var t=H(),n=I(t),r=e=>{d(e)};G(n,e=>{o()||e(r)}),U(e,t)},r=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{showServiceLink:e,serviceLabel:t,serviceURL:n}=l7[z(b)]??{};return{showServiceLink:e,serviceLabel:t,serviceURL:n}});var n=H(),r=I(n),i=e=>{var n=ahe(),r=F(n,!0);D(n),R(e=>{q(n,`href`,z(t).serviceURL),W(r,e)},[()=>X(`prefs.media.stock_photos.credit`,{values:{service:z(t).serviceLabel}})]),U(e,n)};G(r,e=>{z(t).showServiceLink&&e(i)}),U(e,n)};G(n,e=>{z(ue)&&e(r)}),U(e,t)},i=M(()=>X(`insert`)),a=M(()=>!z(w).length);sL(Se,{get title(){return z(ne)},size:`x-large`,get okLabel(){return z(i)},get okDisabled(){return z(a)},keepContent:!0,focusInput:!1,onOk:be,onClose:()=>{ye()},get open(){return f()},set open(e){f(e)},headerExtra:e,footerExtra:r,children:(e,r)=>{var i=uhe(),a=F(i),s=F(a);{let e=M(()=>X(`assets_dialog.locations`));Oo(s,()=>z(pe),(r,i)=>{i(r,{class:`tabs`,get"aria-label"(){return z(e)},get"aria-controls"(){return`${n}-content-pane`},filterThreshold:-1,onChange:e=>{P(b,e.detail.name,!0),P(w,[],!0)},children:(e,n)=>{var r=she(),i=I(r),a=e=>{{let n=M(()=>X(`asset_location.repository`));UL(e,{get label(){return z(n)},children:(e,n)=>{var r=H();mo(I(r),17,()=>Object.entries(t.assetLibraryFolderMap),([e,{enabled:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].enabled;var a=H(),o=I(a),s=e=>{let t=M(()=>`default-${r()}`);{let n=M(()=>X(`assets_dialog.folder.${r()}`)),i=M(()=>z(b)===z(t));KL(e,{get name(){return z(t)},get label(){return z(n)},get selected(){return z(i)}})}};G(o,e=>{i()&&e(s)}),U(e,a)}),U(e,r)},$$slots:{default:!0}})}};G(i,e=>{z(ie)&&e(a)});var o=L(i,2),s=e=>{{let n=M(()=>X(`asset_location.external`));UL(e,{get label(){return z(n)},children:(e,n)=>{var r=ohe(),i=I(r);mo(i,17,()=>t.enabledCloudServiceEntries,([,{serviceId:e,serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[1].serviceId,i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(b)===r());KL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}});var a=L(i,2),o=e=>{{let t=M(()=>X(`assets_dialog.enter_url`)),n=M(()=>z(b)===`enter-url`);KL(e,{name:`enter-url`,get label(){return z(t)},get selected(){return z(n)}})}};G(a,e=>{h()&&e(o)}),U(e,r)},$$slots:{default:!0}})}},c=M(()=>h()||!!Object.keys(t.enabledCloudServiceEntries).length);G(o,e=>{z(c)&&e(s)});var l=L(o,2),u=e=>{{let t=M(()=>X(`asset_location.stock_photos`));UL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(le),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(b)===r());KL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}}),U(e,n)},$$slots:{default:!0}})}};G(l,e=>{z(le).length&&e(u)}),U(e,r)},$$slots:{default:!0}})})}var c=L(s,2),l=e=>{var t=che();d(F(t)),D(t),U(e,t)};G(c,e=>{o()&&e(l)}),D(a);var u=L(a,2),g=F(u),_=e=>{{let t=M(()=>z(ce).filter(he));Ome(e,{get accept(){return m()},get multiple(){return p()},get assets(){return z(t)},get searchTerms(){return z(re)},get basePath(){return z(oe).internalPath},onDrop:({files:e})=>{ve(e)},get selectedResources(){return z(w)},set selectedResources(e){P(w,e,!0)}})}};G(g,e=>{z(ae)&&z(oe)&&e(_)});var y=L(g,2),x=e=>{z$(e,{children:(e,n)=>{var r=lhe(),i=I(r),a=F(i,!0);D(i),_L(L(i,2),{dir:`ltr`,flex:!0,oninput:()=>{let e=z(v).trim();P(w,e?[{url:e}]:[],!0)},get value(){return z(v)},set value(e){P(v,e,!0)}}),R(e=>W(a,e),[()=>t.kind===`image`?X(`assets_dialog.enter_image_url`):X(`assets_dialog.enter_file_url`)]),U(e,r)},$$slots:{default:!0}})};G(y,e=>{h()&&z(b)===`enter-url`&&e(x)}),mo(L(y,2),17,()=>z(de),([e,t])=>e,(e,n)=>{var r=M(()=>te(z(n),2));let i=()=>z(r)[0],a=()=>z(r)[1];var o=H(),s=I(o),c=e=>{{let n=M(()=>z(b)!==`cloudinary`);Lpe(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return p()},get hidden(){return z(n)},onSelect:e=>{f()&&(P(w,e,!0),be(),f(!1))}})}},l=e=>{Ws(ome(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return p()},get searchTerms(){return z(re)},get serviceProps(){return a()},gridId:`select-assets-grid`,get selectedResources(){return z(w)},set selectedResources(e){P(w,e,!0)}}),e=>P(ee,e,!0),()=>z(ee))};G(s,e=>{i()===`cloudinary`?e(c):z(b)===i()&&e(l,1)}),U(e,o)}),D(u),D(i),R(()=>q(u,`id`,`${n}-content-pane`)),U(e,i)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}Ws(TL(L(Se,2),{get accept(){return m()},get multiple(){return p()},onSelect:({files:e})=>{z(fe)?z(ee)?.uploadFiles(e):ve(e)}}),e=>P(C,e,!0),()=>z(C)),U(e,xe),k(),u()}var nhe,rhe,ihe,ahe,ohe,she,che,lhe,uhe,dhe,fhe,phe=s((()=>{Q(),Y(),Z(),G$(),gp(),Pp(),nhe=u(ZM()),Vpe(),yme(),kme(),E6(),EF(),HF(),Y5(),oF(),ehe(),J6(),KA(),nN(),qw(),rhe=V(`<!> <!>`,1),ihe=V(`<!> <!>`,1),ahe=V(`<a> </a>`),ohe=V(`<!> <!>`,1),she=V(`<!> <!> <!>`,1),che=V(`<div role="none" class="filter-tools svelte-5b1zbe"><!></div>`),lhe=V(`<div role="none"> </div> <!>`,1),uhe=V(`<div role="none" class="wrapper svelte-5b1zbe"><div role="none" class="nav svelte-5b1zbe"><!> <!></div> <div role="none" class="content-pane svelte-5b1zbe"><!> <!> <!></div></div>`),dhe=V(`<!> <!>`,1),fhe={hash:`svelte-5b1zbe`,code:`.wrapper.svelte-5b1zbe {display:flex;gap:16px;height:60dvh;max-height:800px;--tile-padding: 4px;}
|
|
935
935
|
@media (width < 768px) {.wrapper.svelte-5b1zbe {flex-direction:column;overflow:hidden;height:72dvh;}
|
|
936
936
|
}.wrapper.svelte-5b1zbe .nav:where(.svelte-5b1zbe) {display:flex;gap:4px;}
|
|
937
937
|
@media (width < 768px) {.wrapper.svelte-5b1zbe .nav:where(.svelte-5b1zbe) {flex-direction:column;}
|
|
@@ -945,7 +945,7 @@ td.svelte-u0prcz {border-width:0;}th.svelte-u0prcz {padding-block:4px;color:var(
|
|
|
945
945
|
`)??``,!0)},m=(e=z(d).split(/\n/g))=>{Object.keys(n()?.[a]??{}).forEach(r=>{z(f)!==`duplicate`&&r!==t.locale||(Object.keys(n()?.[a][r]??{}).forEach(e=>{e.match(`^${_p(t.keyPath)}\\.\\d+$`)&&delete n()?.[a][r][e]}),e.forEach((e,i)=>{_n(W4,B(n)[a][r][`${t.keyPath}.${i}`]=e,B(n))}))})},h=()=>{o(z(d).split(/\n/g).map(e=>e.trim()).filter(e=>!!e)),m(o())};ac(()=>{P(u,!0)}),ti(()=>{z(u)&&(o(),B(()=>{p()}))});{let n=M(()=>ob(t.locale));m$(e,{get dir(){return z(n)},autoResize:!0,flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-errormessage"(){return`${t.fieldId??``}-error`},oninput:()=>{m()},onblur:()=>{h()},get value(){return z(d)},set value(e){P(d,e,!0)}})}k(),i()}var $ge=s((()=>{Q(),Y(),G$(),Cp(),sc(),Y4(),fb()}));function e_e(e,t){let n=Ia();O(t,!0);let r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`fieldConfig`]);H$(e,{get"aria-labelledby"(){return`list-${n}-summary`},children:(e,n)=>{var i=H(),a=I(i),o=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));Bge(e,Zs(()=>z(n)))}},s=M(()=>C5(t.fieldConfig).hasSubFields),c=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));Qge(e,Zs(()=>z(n)))}};G(a,e=>{z(s)?e(o):e(c,-1)}),U(e,i)},$$slots:{default:!0}}),k()}var t_e=s((()=>{Q(),Y(),G$(),Zge(),$ge(),w5()}));function n_e(e,t){let n=Ia();K(e,a_e);let r=`${n}-header`;var i=i_e(),a=F(i),o=e=>{var n=r_e(),i=F(n,!0);D(n),R(()=>{q(n,`id`,r),W(i,t.label)}),U(e,n)};G(a,e=>{t.label&&e(o)});var s=L(a,2);Eo(F(s),()=>t.children??E),D(s),D(i),R(()=>q(i,`aria-labelledby`,t.label?r:void 0)),U(e,i)}var r_e,i_e,a_e,o_e=s((()=>{Q(),Y(),r_e=V(`<div role="none" class="header svelte-ygwzbn"> </div>`),i_e=V(`<div role="group" class="subsection svelte-ygwzbn"><!> <div role="none" class="items svelte-ygwzbn"><!></div></div>`),a_e={hash:`svelte-ygwzbn`,code:`.subsection.svelte-ygwzbn {margin:16px auto;border:2px solid var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.subsection.svelte-ygwzbn .title {font-size:inherit;font-weight:var(--sui-font-weight-normal);}.header.svelte-ygwzbn {display:flex;align-items:center;height:24px;padding-inline:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-border-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);}.items.svelte-ygwzbn {padding:8px 16px;}.items.svelte-ygwzbn:empty {display:none;}`}}));function j7(e,t){O(t,!0),K(e,l_e);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`showLabel`,3,!0),o=M(()=>t.fieldConfig.name),s=M(()=>T(t.fieldConfig.widget,`string`)),c=M(()=>T(t.fieldConfig.i18n,!1)),l=M(()=>T(t.fieldConfig.label,``)),u=M(()=>T(t.fieldConfig.preview,!0)),d=M(()=>lA(t.fieldConfig)),f=M(()=>z(s)===`list`||z(d)),p=M(()=>n()?.collection),m=M(()=>n()?.collectionFile),h=M(()=>jt(n()?.currentValues[t.locale]??{})),g=M(()=>(z(m)??z(p))?._i18n??Tb),_=M(()=>z(g).i18nEnabled),v=M(()=>z(g).defaultLocale),y=M(()=>z(_)&&(z(c)===!0||z(c)===`translate`)),b=M(()=>z(_)&&z(c)===`duplicate`),x=M(()=>RegExp(`^${_p(t.keyPath)}\\.\\d+$`)),S=M(()=>z(f)?Object.entries(z(h)).filter(([e])=>z(x).test(e)).map(([,e])=>e).filter(e=>e!==void 0):z(h)[t.keyPath]),C=()=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:t.locale,keyPath:t.keyPath}},window.location.origin)};var w=H(),ee=I(w),te=e=>{var n=c_e(),r=F(n),i=e=>{var t=s_e(),n=F(t,!0);D(t),R(()=>W(n,z(l)||z(o))),U(e,t)};G(r,e=>{a()&&e(i)});var c=L(r,2),u=e=>{let n=M(()=>Q7[z(s)]);var r=H();Oo(I(r),()=>z(n),(e,n)=>{n(e,{get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get locale(){return t.locale},get fieldConfig(){return t.fieldConfig},get currentValue(){return z(S)}})}),U(e,r)};G(c,e=>{z(s)in Q7&&e(u)}),D(n),R(()=>{q(n,`data-field-type`,z(s)),q(n,`data-key-path`,t.keyPath),q(n,`data-typed-key-path`,t.typedKeyPath)}),Sa(`keydown`,n,e=>{e.key===`Enter`&&(e.stopPropagation(),C())}),Sa(`click`,n,e=>{e.stopPropagation(),C()}),U(e,n)};G(ee,e=>{z(s)!==`hidden`&&z(u)&&(t.locale===z(v)||z(y)||z(b))&&e(te)}),U(e,w),k(),i()}var s_e,c_e,l_e,M7=s((()=>{Q(),Y(),Cp(),abe(),Y4(),yA(),Mb(),s_e=V(`<h4 class="svelte-s650n2"> </h4>`),c_e=V(`<section role="group" tabindex="0" class="svelte-s650n2"><!> <!></section>`),l_e={hash:`svelte-s650n2`,code:`[role='document'] section.svelte-s650n2 {overflow:hidden;margin:8px 0;padding:8px 0;}[role='document'] section.svelte-s650n2 h4:where(.svelte-s650n2) {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}[role='document'] section.svelte-s650n2 h4:where(.svelte-s650n2):not(:last-child) {margin-bottom:8px;}[role='document'] section.svelte-s650n2 > * {margin-inline:auto;max-width:768px;}[role='document'] section.svelte-s650n2 p {margin:8px auto 0;-webkit-user-select:text;user-select:text;}[role='document'] section.svelte-s650n2 img {max-height:800px !important;}
|
|
946
946
|
|
|
947
947
|
@media (width < 768px) {[role='document'] > section.svelte-s650n2:is([data-field-type=file]:where(.svelte-s650n2), [data-field-type=image]:where(.svelte-s650n2)):has(img), [role='document'] > section.svelte-s650n2:is([data-field-type=string]:where(.svelte-s650n2)):has(iframe) {overflow:visible;}[role='document'] > section.svelte-s650n2:is([data-field-type=file]:where(.svelte-s650n2), [data-field-type=image]:where(.svelte-s650n2)) img {width:100%;max-height:none !important;}
|
|
948
|
-
}`},Ca([`keydown`,`click`])}));function u_e(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.field),s=M(()=>t.fieldConfig.fields),c=M(()=>t.fieldConfig.types),l=M(()=>T(t.fieldConfig.typeKey,`type`)),u=M(()=>C5(t.fieldConfig)),f=M(()=>z(u).hasSingleSubField),p=M(()=>z(u).hasVariableTypes),m=M(()=>RegExp(`^${_p(t.keyPath)}\\.\\d+`)),h=M(()=>dc(Object.fromEntries(Object.entries(jt(n()?.currentValues[t.locale])??{}).filter(([e])=>z(m).test(e)).map(([e,n])=>[`${z(a)}${e.slice(t.keyPath.length)}`,n])))[z(a)]??[]);var g=H();mo(I(g),19,()=>z(h),(e,t)=>d(e)?e.__sc_item_id??t:t,(e,r,i)=>{W8(e,{children:(e,r)=>{let a=M(()=>`${t.keyPath}.${z(i)}`),u=M(()=>Array.isArray(z(c))?n()?.currentValues[t.locale][`${z(a)}.${z(l)}`]:void 0),d=M(()=>z(c)?.find(({name:e})=>e===z(u))),m=M(()=>z(d)?z(d).label||z(d).name:void 0),h=M(()=>z(u)?z(d)?.fields??[]:z(s)??(z(o)?[z(o)]:[]));n_e(e,{get label(){return z(m)},children:(e,n)=>{var r=H();mo(I(r),17,()=>z(h),e=>e.name,(e,n)=>{W8(e,{children:(e,r)=>{{let r=M(()=>z(f)?z(a):`${z(a)}.${z(n).name}`),i=M(()=>z(p)?`${t.typedKeyPath}.*<${z(u)}>.${z(n).name}`:`${t.typedKeyPath}.*.${z(n).name}`);j7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})}),U(e,g),k(),i()}var d_e=s((()=>{Q(),Y(),p(),Cp(),fc(),q8(),o_e(),M7(),Y4(),w5()}));function f_e(e,t){O(t,!0);var n=H(),r=I(n),i=e=>{var n=m_e();mo(n,23,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,t)=>{var n=p_e(),r=F(n,!0);D(n),R(()=>W(r,z(t))),U(e,n)}),D(n),R((e,t)=>{q(n,`lang`,e),q(n,`dir`,t),n.dir=n.dir},[()=>ab(t.locale),()=>ob(t.locale)]),U(e,n)},a=M(()=>Array.isArray(t.currentValue)&&t.currentValue.length);G(r,e=>{z(a)&&e(i)}),U(e,n),k()}var p_e,m_e,h_e=s((()=>{Q(),Y(),fb(),p_e=V(`<li> </li>`),m_e=V(`<ul></ul>`)}));function g_e(e,t){O(t,!0);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`fieldConfig`]);var r=H(),i=I(r),a=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));u_e(e,Zs(()=>z(r)))}},o=M(()=>C5(t.fieldConfig).hasSubFields),s=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));f_e(e,Zs(()=>z(r)))}};G(i,e=>{z(o)?e(a):e(s,-1)}),U(e,r),k()}var __e=s((()=>{Q(),Y(),d_e(),h_e(),w5()})),v_e,y_e,b_e,x_e=s((()=>{p(),S0(),v_e=(e,t=`Point`)=>{try{let n=JSON.parse(e);return d(n)&&n.type===t&&Array.isArray(n.coordinates)}catch{return!1}},y_e=(e,t)=>e.map(e=>Array.isArray(e)?e.map(e=>Array.isArray(e)?e.map(e=>x0(e,t)):x0(e,t)):x0(e,t)),b_e=e=>{if(e.type===`Point`)return null;let t=e.type===`Polygon`?e.coordinates.flat(1):e.coordinates;if(!t.every(e=>typeof e[0]==`number`&&typeof e[1]==`number`))return null;let n=t.map(e=>e[1]),r=t.map(e=>e[0]);return[[Math.min(...n),Math.min(...r)],[Math.max(...n),Math.max(...r)]]}}));function S_e(e,t){O(t,!0),K(e,E_e);let n=J(t,`currentValue`,15),r=J(t,`readonly`,3,!1),i=J(t,`invalid`,3,!1),a=M(()=>T(t.fieldConfig.decimals,7)),o=M(()=>T(t.fieldConfig.type,`Point`)),s=M(()=>t.fieldConfig.center),c=M(()=>t.fieldConfig.zoom),l=M(()=>z(o).toLowerCase()),u=N(void 0),f=N(void 0),p=N(``),m=N(``),h=N(void 0),g=N(!1),_=N(!1),v=N(``),y,b=async({leaflet:e,map:t})=>{y=t;let{TerraDraw:r,TerraDrawLineStringMode:i,TerraDrawPointMode:a,TerraDrawPolygonMode:u}=await Lw(`terra-draw`,`dist/terra-draw.module.js`),{TerraDrawLeafletAdapter:d}=await Lw(`terra-draw-leaflet-adapter`,`dist/terra-draw-leaflet-adapter.module.js?module`),p={Point:a,LineString:i,Polygon:u},m=new r({adapter:new d({lib:e,map:y}),modes:[new p[z(o)]]});m.start(),m.setMode(z(l)),m.on(`change`,(e,t)=>{x(t)}),P(f,m,!0),(!n()||!v_e(n(),z(o)))&&y.setView(z(s)?[z(s)[1],z(s)[0]]:[0,0],z(c)??2)},x=e=>{if(!z(f))return;let t=z(f).getSnapshot(),n=t[t.length-1];!n||e!==(z(o)===`Point`?`create`:`delete`)||(P(p,JSON.stringify({type:z(o),coordinates:y_e(n.geometry.coordinates,z(a))}),!0),t.length>1&&z(f).removeFeatures(t.filter(e=>e.id!==n.id).map(e=>e.id)))},S=e=>{if(e.type===`Point`){let[t,n]=e.coordinates;typeof t==`number`&&typeof n==`number`&&y?.setView([n,t],15)}else{let t=b_e(e);t&&y?.fitBounds(t)}},C=()=>{if(!z(f))return;let e=n()??``,t;try{if(t=JSON.parse(e),!d(t)||t.type!==z(o)||!Array.isArray(t.coordinates))throw Error(`Invalid object`)}catch{e=``,t=void 0}z(p)!==e&&(P(p,e,!0),z(f).clear(),t&&(z(f).addFeatures([{type:`Feature`,geometry:t,properties:{mode:z(l)}}]),S(t)))},w=()=>{if(!z(f))return;let e=z(p);n()!==e&&n(e)},ee=async()=>{let e=z(m).trim();if(!e)return;P(g,!0);let t=`https://nominatim.openstreetmap.org/search?${new URLSearchParams({q:e,format:`jsonv2`})}`;try{P(h,await Qx(t),!0)}catch{P(h,[],!0)}P(g,!1)},te=({latitude:e,longitude:t})=>{if(!z(f)||(e=x0(e,z(a)),t=x0(t,z(a)),y?.setView([e,t],15),z(o)!==`Point`))return;let n={type:`Point`,coordinates:[t,e]};z(f).clear(),z(f).addFeatures([{type:`Feature`,geometry:n,properties:{mode:`point`}}]),P(p,JSON.stringify(n),!0)},ne=({lat:e,lon:t})=>{te({latitude:parseFloat(e),longitude:parseFloat(t)})},re=()=>{if(!navigator.geolocation){P(_,!0),P(v,X(`geolocation_unsupported`),!0);return}navigator.geolocation.getCurrentPosition(({coords:{latitude:e,longitude:t}})=>{te({latitude:e,longitude:t})},e=>{P(_,!0),P(v,X(`geolocation_error_body`),!0),console.error(`Error getting current location:`,e)})},ie=()=>{n(``)};ti(()=>{z(f),n(),B(()=>{C()})}),ti(()=>{z(p),B(()=>{w()})}),ti(()=>{z(m),B(()=>{ee()})});var ae=T_e(),oe=I(ae),se=F(oe);{let e=M(()=>X(`find_place`));OR(se,{debounce:!0,get readonly(){return r()},flex:!0,get placeholder(){return z(e)},get value(){return z(m)},set value(e){P(m,e,!0)}})}var ce=L(se,2);{let e=e=>{UF(e,{name:`near_me`})},t=M(()=>X(`use_your_location`)),n=M(()=>X(`use_your_location`));lI(ce,{variant:`tertiary`,iconic:!0,get title(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return r()},onclick:()=>{re()},startIcon:e,$$slots:{startIcon:!0}})}var le=L(ce,2);{let e=M(()=>X(`clear`)),t=M(()=>r()||!n());lI(le,{variant:`tertiary`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{ie()}})}D(oe);var ue=L(oe,2),de=e=>{var t=C_e(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`searching`)]),U(e,t)},fe=e=>{var t=H(),n=I(t),r=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>X(`search_results`));zL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(h),e=>e.place_id,(e,t)=>{KL(e,{get label(){return z(t).display_name},onSelect:()=>{ne(z(t))}})}),U(e,n)},$$slots:{default:!0}})}},i=e=>{var t=w_e(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`no_results`)]),U(e,t)};G(n,e=>{z(h).length?e(r):e(i,-1)}),U(e,t)};G(n,e=>{z(h)&&e(r)}),U(e,t)};G(ue,e=>{z(g)?e(de):z(m)&&e(fe,1)});var E=L(ue,2),pe=F(E);{let e=M(()=>i()?`invalid`:void 0);h2(pe,{get inert(){return r()},get class(){return z(e)},onReady:b,get mapElement(){return z(u)},set mapElement(e){P(u,e,!0)}})}D(E);var me=L(E,2);{let e=M(()=>X(`geolocation_error_title`));hL(me,{get title(){return z(e)},get open(){return z(_)},set open(e){P(_,e,!0)},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,z(v))),U(e,n)},$$slots:{default:!0}})}U(e,ae),k()}var C_e,w_e,T_e,E_e,D_e=s((()=>{Q(),Y(),Z(),G$(),p(),sc(),v2(),Rw(),x_e(),$x(),S0(),C_e=V(`<div role="alert" class="search-result searching svelte-ktr5k7"> </div>`),w_e=V(`<div role="alert" class="search-result no-result svelte-ktr5k7"> </div>`),T_e=V(`<div role="none" class="toolbar svelte-ktr5k7"><!> <!> <!></div> <!> <div class="map-wrapper svelte-ktr5k7"><!></div> <!>`,1),E_e={hash:`svelte-ktr5k7`,code:`.toolbar.svelte-ktr5k7 {display:flex;align-items:center;margin-bottom:var(--sui-spacing-2x);}.search-result.svelte-ktr5k7 {padding:12px;color:var(--sui-secondary-foreground-color);}.map-wrapper.svelte-ktr5k7 {display:contents;}.map-wrapper.svelte-ktr5k7 .map {aspect-ratio:auto;height:400px;}.map-wrapper.svelte-ktr5k7 .map.invalid {border-color:var(--sui-error-border-color);}`}}));function O_e(e,t){K(e,A_e);var n=H(),r=I(n),i=e=>{var n=k_e(),r=F(n,!0);D(n),R(()=>W(r,t.currentValue)),U(e,n)};G(r,e=>{t.currentValue&&e(i)}),U(e,n)}var k_e,A_e,j_e=s((()=>{Q(),Y(),k_e=V(`<pre class="svelte-1ox6w30"> </pre>`),A_e={hash:`svelte-1ox6w30`,code:`pre.svelte-1ox6w30 {white-space:pre-wrap;}`}}));function M_e(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=N(void 0),s=M(()=>T(t.fieldConfig.value_type,`int`)),c=M(()=>t.fieldConfig.min),l=M(()=>t.fieldConfig.max),u=M(()=>T(t.fieldConfig.step,1)),d=M(()=>![`int`,`float`].includes(z(s))),f=M(()=>[`float`,`float/string`].includes(z(s))),p=()=>{let e;n()!==void 0&&(typeof n()==`number`?e=n():typeof n()==`string`&&(e=n().trim()?z(f)?Number.parseFloat(n()):Number.parseInt(n(),10):NaN,e=Number.isNaN(e)?void 0:e)),z(o)!==e&&P(o,e,!0)},m=()=>{let e;e=z(o)===void 0?NaN:z(f)?Number.parseFloat(String(z(o))):Number.parseInt(String(z(o)),10),z(d)?e=Number.isNaN(e)?``:String(e):Number.isNaN(e)&&(e=null),n()!==e&&n(e)};ti(()=>{n(),B(()=>{p()})}),ti(()=>{z(o),B(()=>{m()})}),qle(e,{get min(){return z(c)},get max(){return z(l)},get step(){return z(u)},get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onblur:()=>{p()},get value(){return z(o)},set value(e){P(o,e,!0)}}),k()}var N_e=s((()=>{Q(),Y(),G$(),sc()}));function P_e(e,t){O(t,!0);let n=M(()=>ab(t.locale)),r=M(()=>Intl.NumberFormat(z(n)));var i=H(),a=I(i),o=e=>{var i=F_e(),a=F(i,!0);D(i),R((e,t)=>{q(i,`lang`,z(n)),q(i,`dir`,e),W(a,t),i.dir=i.dir},[()=>ob(t.locale),()=>z(r).format(Number(t.currentValue))]),U(e,i)};G(a,e=>{t.currentValue!==void 0&&t.currentValue!==null&&t.currentValue!==``&&e(o)}),U(e,i),k()}var F_e,I_e=s((()=>{Q(),Y(),fb(),F_e=V(`<p> </p>`)})),N7,P7,F7=s((()=>{p(),ip(),Y4(),O8(),C7(),yA(),N7=(e,t)=>{let{collectionName:n,fileName:r,collection:i,collectionFile:a,currentValues:o,isIndexFile:s}=A(W4),{defaultLocale:c}=(a??i)._i18n,l=f(o[c]),u={...f(e),...l},d={collectionName:n,fileName:r,valueMap:u,isIndexFile:s},p=[];return Object.keys(u).forEach(n=>{let r=fA({...d,keyPath:n});if(!r)return;let{widget:i=`text`,i18n:a=!1}=r;if([`text`,`string`,`richtext`,`markdown`].includes(i)&&[!0,`translate`].includes(a)&&(u[n]=e[n]??``),i===`hidden`&&[!0,`translate`].includes(a)){let{default:e}=r;e===`{{locale}}`&&(u[n]=t)}i===`object`&&[!0,`translate`,`duplicate`].includes(a)&&l[n]!==null&&delete u[n],([!1,`none`].includes(a)||p.some(e=>n===e||n.startsWith(`${e}.`)))&&(delete u[n],p.push(n))}),u},P7=e=>{W4.update(t=>{let{fields:n,defaultLocale:r,currentLocales:i,currentValues:a,validities:o,validationMessages:s}=t,c=!i[e];if(c&&!a[e]){let{collectionName:o,fileName:s,originalValues:l}=t,u=S7({fields:n,locale:e,defaultLocale:r});return{...t,currentLocales:{...i,[e]:c},originalValues:{...l,[e]:u},currentValues:{...a,[e]:D8({draft:{collectionName:o,fileName:s},locale:e,target:N7(u,e)})}}}return{...t,currentLocales:{...i,[e]:c},validities:{...o,[e]:{}},validationMessages:{...s,[e]:{}}}})}})),L_e,R_e,z_e=s((()=>{Cp(),yA(),Bx(),L_e=new Map,R_e=({collectionName:e,fileName:t,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:a,summaryTemplate:o})=>{let s={collectionName:e,fileName:t,keyPath:``,valueMap:r,isIndexFile:i};return o?o.replaceAll(/{{(.+?)}}/g,(e,t)=>{let[r,...i]=t.split(/\s*\|\s*/);return gA({...s,keyPath:`${n}.${r.replace(/^fields\./,``)}`,locale:a,transformations:i})}):_A({valueMap:r,locale:a,keyPath:n,keyPathRegex:zx(L_e,n,()=>RegExp(`^${_p(n)}\\.`)),getFieldArgs:s})}}));function B_e(e,t){let n=Ia();O(t,!0),K(e,W_e);let r=()=>j(W4,`$entryDraft`,a),i=()=>j(VA,`$isSmallScreen`,a),[a,o]=hn(),{fieldContext:s,valueStoreKey:c=`currentValues`}=Rt(`field-editor`)??{},l=s===`single-subfield-list-field`,u=J(t,`required`,3,!0),d=M(()=>t.fieldConfig.name),p=M(()=>T(t.fieldConfig.i18n,!1)),m=M(()=>t.fieldConfig.collapsed),h=M(()=>t.fieldConfig.summary),g=M(()=>t.fieldConfig.fields),_=M(()=>t.fieldConfig.types),v=M(()=>T(t.fieldConfig.typeKey,`type`)),y=M(()=>r()?.isIndexFile??!1),b=M(()=>r()?.collection),x=M(()=>r()?.collectionName??``),S=M(()=>r()?.collectionFile),C=M(()=>r()?.fileName),w=M(()=>(z(S)??z(b))?._i18n??Tb),ee=M(()=>z(w).defaultLocale),te=M(()=>jt(r()?.[c][t.locale])??{}),ne=M(()=>({collectionName:z(x),fileName:z(C),valueMap:z(te),isIndexFile:z(y)})),re=M(()=>Object.entries(z(te)).some(([e,n])=>e.startsWith(`${t.keyPath}.`)&&n!==void 0)),ie=M(()=>s===`rich-text-editor-component`||t.locale===z(ee)||z(p)!==!1),ae=M(()=>`${t.keyPath}#`),oe=M(()=>r()?.expanderStates?._[z(ae)]??!0),se=M(()=>Array.isArray(z(_))),ce=M(()=>`${t.keyPath}.${z(v)}`),le=M(()=>z(se)?z(_)?.find(({name:e})=>e===z(te)[z(ce)]):void 0),ue=M(()=>(z(se)?z(le)?.fields:z(g))??[]),de=M(()=>z(se)&&z(le)?.summary||z(h)),fe=M(()=>t.locale!==z(ee)&&z(p)===`duplicate`),E=()=>{if(l)return;let e=z(ae);O7({[e]:D7({key:e,locale:t.locale,collapsed:z(m)})})},pe=async({type:e}={})=>{mn(G4,!1),e&&(Object.keys(r()?.[c]??{}).forEach(n=>{(n===t.locale||z(p)===`duplicate`)&&_n(W4,B(r)[c][n][z(ce)]=e,B(r))}),await Bi());let n=Object.fromEntries(Object.entries(S7({fields:z(ue),locale:t.locale,defaultLocale:z(ee)})).map(([e,n])=>[`${t.keyPath}.${e}`,n])),i=t.locale===z(ee)?n:N7(n,t.locale);Object.entries(r()?.[c]??{}).forEach(([e,n])=>{(e===t.locale||z(p)===`duplicate`)&&(_n(W4,B(r)[c][e]=Object.assign(n,f({...i,...n})),B(r)),delete r()[c][e][t.keyPath])}),mn(G4,!0)},me=()=>{mn(G4,!1),Object.entries(r()?.[c]??{}).forEach(([e,n])=>{(e===t.locale||z(p)===`duplicate`)&&(Object.keys(n).forEach(n=>{n.startsWith(`${t.keyPath}.`)&&(_n(W4,B(r)[c][e][n]=null,B(r)),delete r()?.[c][e][n])}),_n(W4,B(r)[c][e][t.keyPath]=null,B(r)))}),mn(G4,!0)},he=()=>R_e({...z(ne),keyPath:t.keyPath,locale:t.locale,summaryTemplate:z(de)});ac(()=>{E()});var ge=U_e(),_e=I(ge),ve=e=>{{let n=M(()=>X(`add_x`,{values:{name:t.fieldLabel||z(d)}}));rL(e,{get label(){return z(n)},get checked(){return z(re)},get disabled(){return z(fe)},onChange:({detail:{checked:e}})=>{e?pe():me()}})}};G(_e,e=>{!z(se)&&!u()&&e(ve)});var ye=L(_e,2),be=e=>{m7(e,{get disabled(){return z(fe)},get fieldConfig(){return t.fieldConfig},addItem:pe})};G(ye,e=>{z(se)&&!z(re)&&e(be)});var xe=L(ye,2),Se=e=>{var r=H_e(),a=F(r),o=e=>{{let t=e=>{var t=H(),n=I(t),r=e=>{{let t=e=>{UF(e,{name:`close`})},n=M(()=>X(`remove`));lI(e,{size:`small`,iconic:!0,get disabled(){return z(fe)},get"aria-label"(){return z(n)},onclick:()=>{me()},startIcon:t,$$slots:{startIcon:!0}})}};G(n,e=>{z(se)&&e(r)}),U(e,t)},r=M(()=>z(se)?z(le)?.label||z(le)?.name:``),i=M(()=>z(ue).length?()=>O7({[z(ae)]:!z(oe)}):void 0);h7(e,{get label(){return z(r)},get controlId(){return`object-${n}-item-list`},get expanded(){return z(oe)},get toggleExpanded(){return z(i)},endContent:t,$$slots:{endContent:!0}})}};G(a,e=>{l||e(o)});var s=L(a,2),c=F(s),u=e=>{var n=H();mo(I(n),17,()=>z(ue),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);W8(e,{children:(e,i)=>{{let i=M(()=>z(se)&&z(le)?.name?`${t.typedKeyPath}<${z(le).name}>.${z(n).name}`:z(r));r9(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,n)},d=e=>{let t=M(he);var r=H(),a=I(r),o=e=>{var r=V_e(),a=F(r);{let e=M(()=>i()?2:1);ZF(a,{get lines(){return z(e)},children:(e,n)=>{_t();var r=Fa();R(()=>W(r,z(t))),U(e,r)},$$slots:{default:!0}})}D(r),R(()=>q(r,`id`,`object-${n}-summary`)),U(e,r)};G(a,e=>{z(t)&&e(o)}),U(e,r)};G(c,e=>{z(oe)?e(u):e(d,-1)}),D(s),D(r),R(()=>{q(r,`aria-labelledby`,z(oe)?void 0:`object-${n}-summary`),q(s,`id`,`object-${n}-item-list`)}),U(e,r)};G(xe,e=>{(!(!u()||z(se))||z(re))&&z(ie)&&e(Se)}),U(e,ge),k(),o()}var V_e,H_e,U_e,W_e,G_e=s((()=>{Q(),Y(),Z(),G$(),p(),sc(),q8(),a9(),cge(),g7(),Y4(),C7(),F7(),A7(),z_e(),Mb(),KA(),V_e=V(`<div role="none" class="summary svelte-pauyt3"><!></div>`),H_e=V(`<div role="group" class="wrapper svelte-pauyt3"><!> <div role="none" class="item-list"><!></div></div>`),U_e=V(`<!> <!> <!>`,1),W_e={hash:`svelte-pauyt3`,code:`.wrapper.svelte-pauyt3 {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.sui.checkbox + .wrapper.svelte-pauyt3 > .group {margin-top:8px;}.summary.svelte-pauyt3 {padding:8px;}`}}));function K_e(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.fields),o=M(()=>t.fieldConfig.types),s=M(()=>T(t.fieldConfig.typeKey,`type`)),c=M(()=>jt(n()?.currentValues[t.locale])??{}),l=M(()=>Object.entries(z(c)).some(([e,n])=>!!e.startsWith(`${t.keyPath}.`)&&!!n)),u=M(()=>Array.isArray(z(o))),d=M(()=>`${t.keyPath}.${z(s)}`),f=M(()=>z(u)?z(o)?.find(({name:e})=>e===z(c)[z(d)]):void 0),p=M(()=>z(f)?z(f).label||z(f).name:void 0),m=M(()=>(z(u)?z(f)?.fields:z(a))??[]);var h=H(),g=I(h),_=e=>{n_e(e,{get label(){return z(p)},children:(e,n)=>{var r=H();mo(I(r),17,()=>z(m),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);W8(e,{children:(e,i)=>{{let i=M(()=>z(u)&&z(f)?.name?`${t.typedKeyPath}<${z(f).name}>.${z(n).name}`:z(r));j7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})};G(g,e=>{z(l)&&e(_)}),U(e,h),k(),i()}var q_e=s((()=>{Q(),Y(),q8(),o_e(),M7(),Y4()}));function J_e(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!1),c=J(t,`invalid`,3,!1),l=M(()=>t.fieldConfig.i18n),u=M(()=>t.fieldConfig.max),d=M(()=>T(t.fieldConfig.dropdown_threshold,5)),f=e=>{n()&&Object.keys(jt(n()[a])??{}).forEach(n=>{z(l)!==`duplicate`&&n!==t.locale||E7({locale:n,valueStoreKey:a,keyPath:t.keyPath,manipulate:e})})},p=e=>{f(({valueList:t})=>{t.push(e)})},m=e=>{f(({valueList:t})=>{t.splice(t.indexOf(e),1)})};var h=H(),g=I(h),_=e=>{yoe(e,Zs({get disabled(){return s()},get readonly(){return s()},get required(){return o()},get invalid(){return c()},get options(){return t.options}},()=>({values:t.currentValue}),{get max(){return z(u)},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onAddValue:({detail:{value:e}})=>{p(e)},onRemoveValue:({detail:{value:e}})=>{m(e)},onReorder:({detail:{values:e}})=>{f(({valueList:t})=>{t.splice(0,t.length,...e)})}}))},v=e=>{Vae(e,{get"aria-labelledby"(){return`${t.fieldId??``}-label`},children:(e,n)=>{var r=H();mo(I(r),17,()=>t.options,({label:e,value:t})=>t,(e,n)=>{let r=()=>z(n).label,i=()=>z(n).value;{let n=M(()=>t.currentValue?.includes(i())??!1);rL(e,{get label(){return r()},get value(){return i()},get readonly(){return s()},get required(){return o()},get invalid(){return c()},get checked(){return z(n)},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onChange:({detail:{checked:e}})=>{e?p(i()):m(i())}})}}),U(e,r)},$$slots:{default:!0}})};G(g,e=>{t.options.length>z(d)?e(_):e(v,-1)}),U(e,h),k(),i()}var Y_e=s((()=>{Q(),Y(),G$(),sc(),Y4(),Lge()}));function X_e(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=J(t,`options`,7),s=M(()=>T(t.fieldConfig.dropdown_threshold,5)),c=N(void 0);ti(()=>{z(c)||P(c,o()[0]?.value===void 0?`string`:typeof o()[0]?.value,!0)}),ti(()=>{!r()&&!o().some(({value:e})=>!e)&&o([{label:X(`unselected_option`),value:z(c)===`number`?null:``,searchValue:``},...o()])});var l=H(),u=I(l),d=e=>{RR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return n()},set value(e){n(e)},children:(e,t)=>{var r=H();mo(I(r),17,o,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value,a=()=>z(t).searchValue;{let t=M(()=>i()===n());KL(e,{get label(){return r()},get value(){return i()},get valueType(){return z(c)},get searchValue(){return a()},get selected(){return z(t)},wrap:!0})}}),U(e,r)},$$slots:{default:!0}})},f=e=>{roe(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onChange:({detail:{value:e}})=>{n(e)},children:(e,t)=>{var r=H();mo(I(r),17,o,({label:e,value:t})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value;{let t=M(()=>i()===n());aoe(e,{get label(){return r()},get value(){return i()},get valueType(){return z(c)},get checked(){return z(t)}})}}),U(e,r)},$$slots:{default:!0}})};G(u,e=>{o().length>z(s)?e(d):e(f,-1)}),U(e,l),k()}var Z_e=s((()=>{Q(),Y(),Z(),G$()}));function Q_e(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=J(t,`sortOptions`,3,!1),s=M(()=>t.fieldConfig.options),c=M(()=>t.fieldConfig.multiple),l=M(()=>z(c)?J_e:X_e),u=M(()=>{let e=z(s).map(e=>d(e)?e:{label:e,value:e});return o()&&e.sort((e,t)=>Sp(e.label,t.label)),e});var f=H();oo(I(f),()=>JSON.stringify(z(u)),e=>{var o=H();Oo(I(o),()=>z(l),(e,o)=>{o(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get fieldId(){return t.fieldId},get fieldConfig(){return t.fieldConfig},get readonly(){return i()},get required(){return r()},get invalid(){return a()},get options(){return z(u)},get currentValue(){return n()},set currentValue(e){n(e)}})}),U(e,o)}),U(e,f),k()}var $_e=s((()=>{Q(),Y(),p(),Cp(),Y_e(),Z_e()}));function eve(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`currentValue`,15),o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!1),c=J(t,`invalid`,3,!1),l=M(()=>t.fieldConfig.collection),u=M(()=>t.fieldConfig.file),d=M(()=>z(u)?[Yy(z(l),z(u))].filter(e=>!!e):rk(z(l))),f=M(()=>n()?.currentValues[t.locale]),p=M(()=>n()?.currentSlugs[t.locale]??n()?.currentSlugs._),m=M(()=>({...t.fieldConfig,widget:`select`,options:Mk({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(d),currentLocaleValues:z(f),currentSlug:z(p)})}));var h=tve();Q_e(F(h),{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return t.fieldId},get fieldLabel(){return t.fieldLabel},get fieldConfig(){return z(m)},get readonly(){return s()},get required(){return o()},get invalid(){return c()},sortOptions:!0,get currentValue(){return a()},set currentValue(e){a(e)}}),D(h),U(e,h),k(),i()}var tve,nve=s((()=>{Q(),Y(),$_e(),sk(),Zy(),Y4(),Pk(),tve=V(`<div role="none" class="wrapper"><!></div>`)}));function rve(e,t){O(t,!0);let n=M(()=>t.fieldConfig.collection),r=M(()=>t.fieldConfig.file),i=M(()=>T(t.fieldConfig.multiple,!1)),a=M(()=>T(t.fieldConfig.value_field,`{{slug}}`)),o=M(()=>ub(t.locale)),s=M(()=>z(r)?[Yy(z(n),z(r))].filter(e=>!!e):rk(z(n))),c=M(()=>Mk({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(s)})),l=M(()=>(z(i)?t.currentValue:[t.currentValue]).filter(e=>e!==void 0).map(e=>{let t=z(c).find(t=>t.value===e)?.label;return t&&t!==e?[`slug`,`{{slug}}`,`{{fields.slug}}`].includes(z(a))?t:`${t} (${e})`:e}));var u=H(),d=I(u),f=e=>{var n=ive(),r=F(n,!0);D(n),R((e,t,i)=>{q(n,`lang`,e),q(n,`dir`,t),W(r,i),n.dir=n.dir},[()=>ab(t.locale),()=>ob(t.locale),()=>z(o).format(z(l))]),U(e,n)};G(d,e=>{z(l).length&&e(f)}),U(e,u),k()}var ive,ave=s((()=>{Q(),Y(),sk(),Zy(),Pk(),fb(),ive=V(`<p> </p>`)})),I7,ove,sve,cve,lve,L7,R7=s((()=>{I7=/^.+?:\w+:/,ove=[`rich_text`,`raw`],sve={rich_text:`rich-text`,raw:`plain-text`},cve=[`bold`,`italic`,`strikethrough`,`code`,`link`,`heading-one`,`heading-two`,`heading-three`,`heading-four`,`heading-five`,`heading-six`,`bulleted-list`,`numbered-list`,`quote`],lve={bold:`bold`,italic:`italic`,strikethrough:`strikethrough`,code:`code`,link:`link`,"heading-one":`heading-1`,"heading-two":`heading-2`,"heading-three":`heading-3`,"heading-four":`heading-4`,"heading-five":`heading-5`,"heading-six":`heading-6`,"bulleted-list":`bulleted-list`,"numbered-list":`numbered-list`,quote:`blockquote`,"code-block":`code-block`},L7=[`code-block`,`image`]})),uve,dve,z7,fve,pve=s((()=>{hC(),uve=({fieldConfig:e,value:t})=>{let n=e,{type:r,min:i,max:a}=sC(n),o=typeof i==`string`&&!!i,s=typeof a==`string`&&!!a,c=!1,l=!1;if(t&&(o||s)){let e=pC(t,n);if(e){let t=document.createElement(`input`);t.type=r,o&&(t.min=i),s&&(t.max=a),t.value=e,{rangeUnderflow:c,rangeOverflow:l}=t.validity}}return{validity:{rangeUnderflow:c,rangeOverflow:l},detail:{hasMin:o,hasMax:s,invalid:c||l}}},dve=new Intl.DateTimeFormat(`en-GB`,{hour12:!0,timeZone:`UTC`,hour:`2-digit`,minute:`2-digit`}),z7=e=>dve.format(new Date(`1970-01-01T${e}Z`)).toUpperCase(),fve=(e,t)=>{if(e===`date`)return t;if(e===`time`)return z7(t);let[n,r]=t.split(`T`);return`${n}, ${z7(r)}`}})),B7,V7,mve=s((()=>{Z(),yA(),hC(),pve(),B7=({direction:e,limitKey:t,limitValue:n,fieldType:r,type:i,canAddMultiValue:a})=>r===`datetime`&&typeof n==`string`?X(`validation.range_${e}.${i}`,{values:{[t]:fve(i,n)}}):X(r===`number`?`validation.range_${e}.number`:a?`validation.range_${e}.add`:`validation.range_${e}.select`,{values:{[t]:n}}),V7=({validity:e,fieldConfig:t})=>{let n=[],{widget:r=`string`}=t,{pattern:i=[]}=t,a=r===`datetime`,o=a?sC(t):{},s=r===`string`?t.type??`text`:a?o.type:r===`number`?`number`:void 0,{min:c,max:l}=a?o:t,u=r===`list`||r===`keyvalue`||lA(t);if(e.valueMissing&&n.push(X(`validation.value_missing`)),e.tooShort){let{minlength:e}=t;n.push(X(`validation.too_short`,{values:{min:e}}))}if(e.tooLong){let{maxlength:e}=t;n.push(X(`validation.too_long`,{values:{max:e}}))}return e.rangeUnderflow&&n.push(B7({direction:`underflow`,limitKey:`min`,limitValue:c,fieldType:r,type:s,canAddMultiValue:u})),e.rangeOverflow&&n.push(B7({direction:`overflow`,limitKey:`max`,limitValue:l,fieldType:r,type:s,canAddMultiValue:u})),e.patternMismatch&&n.push(i[1]),e.typeMismatch&&n.push(X(`validation.type_mismatch.${s}`)),n}})),hve,gve=s((()=>{hve=({keyPath:e,value:t,valueMap:n,fieldConfig:r,validities:i,locale:a})=>{let{output_code_only:o=!1,keys:s={code:`code`,lang:`lang`}}=r,c=(e.match(`(.+)\\.(?:${s.code}|${s.lang})$`)?.[1]??``)||e;return c in i[a]?{skip:!0,keyPath:c,value:t}:{skip:!1,keyPath:c,value:o?t:n[`${c}.${s.code}`]}}})),_ve,vve=s((()=>{Y4(),yA(),p7(),R7(),_ve=({keyPath:e,getFieldArgs:t,validity:n,validities:r,locale:i,required:a,min:o,max:s})=>{let c=e.match(/(.+?)(?:\.[^.]*)?$/)?.[1],l=fA({...t,keyPath:c.replace(I7,``)});if(c in r[i]||l?.widget!==`keyvalue`)return{skip:!0,keyPath:e};let u=f7({entryDraft:W4,keyPath:c,locale:i});return a&&!u.length?n.valueMissing=!0:typeof o==`number`&&u.length<o?n.rangeUnderflow=!0:typeof s==`number`&&u.length>s&&(n.rangeOverflow=!0),{skip:!1,keyPath:c}}})),yve,bve,xve=s((()=>{Cp(),Bx(),yve=new Map,bve=({keyPath:e,value:t,valueEntries:n,validity:r,validities:i,locale:a,required:o,min:s,max:c})=>{if(e in i[a])return{skip:!0};let l=zx(yve,e,()=>RegExp(`^${_p(e)}\\.\\d+`)),u=Array.isArray(t)&&t.length?t.length:new Set(n.map(([e])=>e.match(l)?.[0]).filter(Boolean)).size;return o&&!u?r.valueMissing=!0:typeof s==`number`&&u<s?r.rangeUnderflow=!0:typeof c==`number`&&u>c&&(r.rangeOverflow=!0),{skip:!1}}})),Sve,Cve=s((()=>{yA(),Sve=({fieldConfig:e,locale:t,value:n})=>{let{value_type:r=`int`,min:i,max:a}=e,o=typeof i==`number`&&n!==null&&Number(n)<i;return{validity:{rangeUnderflow:o,rangeOverflow:!o&&typeof a==`number`&&n!==null&&Number(n)>a,typeMismatch:(r===`int`||r===`float`)&&pA({fieldConfig:e,locale:t})&&n===null}}}})),H7,wve=s((()=>{H7=({fieldConfig:e,value:t})=>{let n=e,{widget:r=`string`,minlength:i,maxlength:a}=n,o=Number.isInteger(i)&&i<=(a??1/0),s=Number.isInteger(a)&&(i??0)<=a,c=t?[...t.trim()].length:0,l=o&&c<i,u=s&&c>a,d=!1;if(r===`string`&&t){let{type:e=`text`,prefix:r,suffix:i}=n,a=t;if(r&&a.startsWith(r)&&(a=a.slice(r.length)),i&&a.endsWith(i)&&(a=a.slice(0,-i.length)),e!==`text`){let t=document.createElement(`input`);t.type=e,t.value=a,{typeMismatch:d}=t.validity}e===`email`&&!d&&!a.split(`@`)[1]?.includes(`.`)&&(d=!0)}return{validity:{tooShort:l,tooLong:u,typeMismatch:d},detail:{count:c,hasMin:o,hasMax:s,invalid:l||u||d}}}})),U7,Tve,Eve,Dve,Ove,kve,W7,Ave,G7,jve=s((()=>{ip(),Y4(),mve(),yA(),wC(),gve(),pve(),vve(),w5(),xve(),Cve(),R7(),wve(),$O(),U7=/\.\d+$/,Tve={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},Eve={datetime:uve,number:Sve,string:H7,text:H7},Dve={get:(e,t)=>t===`valid`?!Object.values(e).some(Boolean):e[t]},Ove=({value:e,required:t,validation:n,validity:r})=>{let i=typeof e==`string`?e.trim():e;if(t&&(i==null||i===``)&&(r.valueMissing=!0),Array.isArray(n)){let e=QO(n[0]);e&&!e.test(String(i))&&(r.patternMismatch=!0)}},kve=e=>{let{draft:t,locale:n,valueMap:r,componentName:i,validities:a}=e,{collection:o,collectionName:s,fileName:c,collectionFile:l,files:u,isIndexFile:d}=t,{keyPath:f,value:p}=e,m={collectionName:s,fileName:c,componentName:i,valueMap:r,keyPath:f.replace(I7,``),isIndexFile:d},h=fA({...m});if(!h)return;let{widget:g=`string`,i18n:_=!1,pattern:v}=h,y=lA(h),{min:b=0,max:x=1/0}=Zne.includes(g)?h:{},{i18nEnabled:S,defaultLocale:C}=(l??o)._i18n;if(!i&&n!==C&&(!S||_===!1||_===`none`||_===`duplicate`))return;let w=Object.entries(r),ee=pA({fieldConfig:h,locale:n}),T={...Tve};if(g===`list`||y){let{skip:e}=bve({keyPath:f,value:p,valueEntries:w,validity:T,validities:a,locale:n,required:ee,min:b,max:x});if(e)return}if(g===`object`&&ee&&!p&&(T.valueMissing=!0),g===`keyvalue`){let e=_ve({keyPath:f,getFieldArgs:m,validity:T,validities:a,locale:n,required:ee,min:b,max:x});if(e.skip)return;f=e.keyPath}if(g===`code`){let e=hve({keyPath:f,value:p,valueMap:r,fieldConfig:h,validities:a,locale:n});if(e.skip)return;f=e.keyPath,p=e.value}SC.includes(g)&&typeof p==`string`&&p.startsWith(`blob:`)&&(p=u[p]?.file?.name),[`object`,`list`,`hidden`,`compute`,`keyvalue`].includes(g)||y||Ove({value:p,required:ee,validation:v,validity:T});let te=Eve[g];return te&&Object.assign(T,te({fieldConfig:h,locale:n,value:p}).validity),new Proxy(T,Dve)},W7=e=>{let{validities:t,locale:n,keyPath:r}=e,i=kve(e),a=!0;return i&&(t[n][r]=i,i.valid||(a=!1)),a},Ave=({fieldConfig:e,validateArgs:t})=>{let{validities:n,locale:r,keyPath:i}=t,a=n[r][i]?.valid??W7(t),{widget:o=`string`}=e;return o===`list`&&!C5(e).hasSubFields||lA(e)?{valid:a,validateItems:!1}:{valid:a,validateItems:!0}},G7=e=>{let t=A(W4),{collectionName:n,fileName:r,isIndexFile:i,currentLocales:a}=t,o={},s={},c={collectionName:n,fileName:r,isIndexFile:i,keyPath:``,valueMap:{}},l=!0;return Object.entries(t[e]).forEach(([e,n])=>{let r=Object.entries(n);if(!a[e]){o[e]=Object.fromEntries(r.map(([e])=>[e,{valid:!0}])),s[e]=Object.fromEntries(r.map(([e])=>[e,[]]));return}let i={draft:t,locale:e,valueMap:n,validities:o};o[e]={},s[e]={},r.forEach(([t,r])=>{let[a]=t.match(I7)??[],u=a?n[`${a}__sc_component_name`]:void 0,d=fA({...c,keyPath:t.replace(I7,``),valueMap:n,componentName:u});if(!d)return;if(U7.test(t)){let n=t.replace(U7,``),{valid:r,validateItems:a}=Ave({fieldConfig:d,validateArgs:{...i,keyPath:n,value:``,componentName:u}});if(r||(l=!1),!(n in s[e])){let t=o[e][n];t&&(s[e][n]=V7({validity:t,fieldConfig:d}))}if(!a)return}W7({...i,keyPath:t,value:r,componentName:u})||(l=!1);let f=o[e][t];f&&(s[e][t]=V7({validity:f,fieldConfig:d}))})}),{valid:l,validities:o,validationMessages:s}}}));function Mve(e,t){let n=Ia();O(t,!0),K(e,Lve);let r=()=>j(W4,`$entryDraft`,i),[i,a]=hn(),o=J(t,`mode`,3,`block`),s=J(t,`collapsed`,3,!1),c=J(t,`values`,7),l=J(t,`onChange`,3,()=>void 0),u=N(void 0),d=N(``),f=N(``),p=N(``),m=N(!s()),h=N(!1),g=N(void 0),_=N(!1),v=M(()=>z(f)?`${z(f)}:${n}:`:``),y=M(()=>z(p)?`${z(p)}:${n}:`:``),b=M(()=>t.fields.find(e=>e.widget===`string`||e.widget===`text`||!e.widget)),x=()=>z(u),S=`extraValues`,C,w=M(()=>{if(r()&&z(d)&&z(f))return dc(Object.fromEntries(Object.entries(jt(r()[S][z(d)]??{})).filter(([e])=>e.startsWith(z(v))).map(([e,t])=>[e.replace(z(v),``),t])))}),ee=()=>{P(g,z(w)?{...z(w)}:void 0,!0),P(h,!0)},T=()=>{r()&&z(d)&&z(f)&&z(g)&&(Object.keys(r()[S][z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r()[S][z(d)][e]}),Object.assign(r()[S][z(d)],Object.fromEntries(Object.entries(uc(z(g))).map(([e,t])=>[`${z(v)}${e}`,t]))))},te=()=>{P(h,!1),l()(new CustomEvent(`remove`))},ne=()=>{let{validities:e}=G7(`extraValues`);W4.update(t=>t&&{...t,validities:Object.fromEntries(Object.keys(t.validities).map(n=>[n,{...t.validities[n],...e[n]}]))});let t=e[z(d)]??{};Object.entries(t).some(([e,t])=>e.startsWith(z(v))&&!t.valid)||(P(h,!1),l()(new CustomEvent(`update`,{detail:z(w)})),P(g,void 0))},re=()=>{z(_)?(P(h,!1),l()(new CustomEvent(`remove`))):(T(),P(h,!1),P(g,void 0))},ie=(e,n)=>{if(!e||!n)return null;let r=uc(n);return e.replaceAll(/{{(.+?)}}/g,(e,n)=>{let[i,...a]=n.trim().split(/\s*\|\s*/),o=i.replace(/^fields\./,``),s=r[o];return s==null?``:(a.length&&(s=bC({fieldConfig:t.fields.find(e=>e.name===o),value:s,transformations:a,locale:z(d)})),String(s))}).trim()||null},ae=M(()=>{if(t.summary&&z(w)){let e=ie(t.summary,z(w));if(e)return e}if(z(b)&&z(w)){let e=z(w)[z(b).name];if(typeof e==`string`&&e.trim())return e.trim()}return t.label});ac(()=>(window.requestAnimationFrame(()=>{let e=z(u)?.closest(`[data-locale]`),t=z(u)?.closest(`[data-key-path]`);P(d,e?.dataset.locale,!0),P(f,t?.dataset.keyPath,!0),o()!==`dialog`&&P(p,t?.dataset.typedKeyPath,!0),P(_,!c()),o()===`dialog`&&z(_)&&ee()}),()=>{r()&&(Object.keys(r()[S][z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r()[S][z(d)][e]}),Object.keys(r().validities[z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r().validities[z(d)][e]}))})),ti(()=>{c(),z(d),z(f),B(()=>{if(r()&&z(d)&&z(f)){let{defaultLocale:e}=r();c(c()??dc(S7({fields:t.fields,locale:z(d),defaultLocale:e}))??{}),c().__sc_component_name=t.componentName,(0,K7.default)(c(),z(w))||Object.assign(r()[S][z(d)],Object.fromEntries(Object.entries(uc(c())).map(([e,t])=>[`${z(v)}${e}`,t])))}})}),ti(()=>{o()!==`dialog`&&(z(w),B(()=>{(0,K7.default)(C,z(w))||(l()(new CustomEvent(`update`,{detail:z(w)})),C=z(w))}))});var oe={getElement:x},se=H(),ce=I(se),le=e=>{var n=Fve(),r=I(n),i=F(r,!0);D(r),Ws(r,e=>P(u,e),()=>z(u)),sL(L(r,2),{get title(){return t.label},size:`large`,showOk:!1,showCancel:!1,get open(){return z(h)},set open(e){P(h,e,!0)},footer:e=>{var t=Nve(),n=I(t);{let e=M(()=>X(`remove`));lI(n,{variant:`secondary`,get label(){return z(e)},onclick:()=>{te()}})}var r=L(n,2);ZI(r,{flex:!0});var i=L(r,2);{let e=M(()=>X(z(_)?`insert`:`update`));lI(i,{variant:`primary`,get label(){return z(e)},onclick:()=>{ne()}})}var a=L(i,2);{let e=M(()=>X(`cancel`));lI(a,{variant:`secondary`,get label(){return z(e)},onclick:()=>{re()}})}U(e,t)},children:(e,n)=>{var r=Pve(),i=F(r),a=e=>{var n=H();mo(I(n),17,()=>t.fields,e=>e.name,(e,t)=>{r9(e,{get locale(){return z(d)},get keyPath(){return`${z(v)??``}${z(t).name??``}`},get typedKeyPath(){return`${z(v)??``}${z(t).name??``}`},get fieldConfig(){return z(t)},context:`rich-text-editor-component`,valueStoreKey:S})}),U(e,n)};G(i,e=>{z(d)&&z(f)&&e(a)}),D(r),U(e,r)},$$slots:{footer:!0,default:!0}}),R(()=>{q(r,`aria-label`,t.label),q(r,`title`,t.label),q(r,`data-key-path-prefix`,z(v)),q(r,`data-component-name`,t.componentName),W(i,z(ae))}),Sa(`click`,r,()=>{ee()}),Sa(`keydown`,r,e=>{e.key===`Enter`&&(e.preventDefault(),ee()),e.key===`Backspace`&&(e.preventDefault(),l()(new CustomEvent(`remove`)))}),U(e,n)},ue=e=>{var r=Ive(),i=F(r);h7(i,{get label(){return t.label},get controlId(){return`object-${n}-item-list`},get expanded(){return z(m)},set expanded(e){P(m,e,!0)},endContent:e=>{{let t=e=>{UF(e,{name:`close`})},n=M(()=>X(`remove`));lI(e,{size:`small`,iconic:!0,get"aria-label"(){return z(n)},onclick:()=>{l()(new CustomEvent(`remove`))},startIcon:t,$$slots:{startIcon:!0}})}},$$slots:{endContent:!0}});var a=L(i,2),o=F(a),s=e=>{var n=H();mo(I(n),17,()=>t.fields,e=>e.name,(e,t)=>{W8(e,{children:(e,n)=>{r9(e,{get locale(){return z(d)},get keyPath(){return`${z(v)??``}${z(t).name??``}`},get typedKeyPath(){return`${z(y)??``}${z(t).name??``}`},get fieldConfig(){return z(t)},context:`rich-text-editor-component`,valueStoreKey:S})},$$slots:{default:!0}})}),U(e,n)};G(o,e=>{z(d)&&z(f)&&z(m)&&e(s)}),D(a),D(r),Ws(r,e=>P(u,e),()=>z(u)),R(()=>{q(r,`aria-label`,t.label),q(r,`data-key-path-prefix`,z(v)),q(r,`data-component-name`,t.componentName),q(a,`id`,`object-${n}-item-list`)}),xa(`keydown`,r,e=>{e.stopPropagation()},!0),Sa(`keydown`,r,e=>{!e.target.matches(`button, input, textarea`)&&e.key!==`Tab`&&e.preventDefault(),e.target===z(u)&&e.key===`Backspace`&&l()(new CustomEvent(`remove`))}),U(e,r)};G(ce,e=>{o()===`dialog`?e(le):e(ue,-1)}),U(e,se);var de=k(oe);return a(),de}var K7,Nve,Pve,Fve,Ive,Lve,Rve=s((()=>{Q(),Y(),Z(),G$(),K7=u(ZM()),fc(),sc(),q8(),a9(),g7(),xC(),Y4(),C7(),jve(),Nve=V(`<!> <!> <!> <!>`,1),Pve=V(`<div role="none" class="fields svelte-1l1n28m"><!></div>`),Fve=V(`<span role="button" class="placeholder svelte-1l1n28m" contenteditable="false" tabindex="0"> </span> <!>`,1),Ive=V(`<div role="group" class="wrapper svelte-1l1n28m" contenteditable="false" tabindex="0"><!> <div role="none" class="item-list"><!></div></div>`),Lve={hash:`svelte-1l1n28m`,code:`.wrapper.svelte-1l1n28m {display:inline-block;border:1px solid var(--sui-secondary-border-color);border-radius:4px;width:100%;color:var(--sui-secondary-foreground-color);background-color:var(--sui-primary-background-color);white-space:normal;-webkit-user-select:none;user-select:none;}.wrapper.svelte-1l1n28m:focus {outline-color:var(--sui-primary-accent-color-translucent);}
|
|
948
|
+
}`},Ca([`keydown`,`click`])}));function u_e(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.field),s=M(()=>t.fieldConfig.fields),c=M(()=>t.fieldConfig.types),l=M(()=>T(t.fieldConfig.typeKey,`type`)),u=M(()=>C5(t.fieldConfig)),f=M(()=>z(u).hasSingleSubField),p=M(()=>z(u).hasVariableTypes),m=M(()=>RegExp(`^${_p(t.keyPath)}\\.\\d+`)),h=M(()=>dc(Object.fromEntries(Object.entries(jt(n()?.currentValues[t.locale])??{}).filter(([e])=>z(m).test(e)).map(([e,n])=>[`${z(a)}${e.slice(t.keyPath.length)}`,n])))[z(a)]??[]);var g=H();mo(I(g),19,()=>z(h),(e,t)=>d(e)?e.__sc_item_id??t:t,(e,r,i)=>{W8(e,{children:(e,r)=>{let a=M(()=>`${t.keyPath}.${z(i)}`),u=M(()=>Array.isArray(z(c))?n()?.currentValues[t.locale][`${z(a)}.${z(l)}`]:void 0),d=M(()=>z(c)?.find(({name:e})=>e===z(u))),m=M(()=>z(d)?z(d).label||z(d).name:void 0),h=M(()=>z(u)?z(d)?.fields??[]:z(s)??(z(o)?[z(o)]:[]));n_e(e,{get label(){return z(m)},children:(e,n)=>{var r=H();mo(I(r),17,()=>z(h),e=>e.name,(e,n)=>{W8(e,{children:(e,r)=>{{let r=M(()=>z(f)?z(a):`${z(a)}.${z(n).name}`),i=M(()=>z(p)?`${t.typedKeyPath}.*<${z(u)}>.${z(n).name}`:`${t.typedKeyPath}.*.${z(n).name}`);j7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})}),U(e,g),k(),i()}var d_e=s((()=>{Q(),Y(),p(),Cp(),fc(),q8(),o_e(),M7(),Y4(),w5()}));function f_e(e,t){O(t,!0);var n=H(),r=I(n),i=e=>{var n=m_e();mo(n,23,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,t)=>{var n=p_e(),r=F(n,!0);D(n),R(()=>W(r,z(t))),U(e,n)}),D(n),R((e,t)=>{q(n,`lang`,e),q(n,`dir`,t),n.dir=n.dir},[()=>ab(t.locale),()=>ob(t.locale)]),U(e,n)},a=M(()=>Array.isArray(t.currentValue)&&t.currentValue.length);G(r,e=>{z(a)&&e(i)}),U(e,n),k()}var p_e,m_e,h_e=s((()=>{Q(),Y(),fb(),p_e=V(`<li> </li>`),m_e=V(`<ul></ul>`)}));function g_e(e,t){O(t,!0);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`fieldConfig`]);var r=H(),i=I(r),a=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));u_e(e,Zs(()=>z(r)))}},o=M(()=>C5(t.fieldConfig).hasSubFields),s=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));f_e(e,Zs(()=>z(r)))}};G(i,e=>{z(o)?e(a):e(s,-1)}),U(e,r),k()}var __e=s((()=>{Q(),Y(),d_e(),h_e(),w5()})),v_e,y_e,b_e,x_e=s((()=>{p(),S0(),v_e=(e,t=`Point`)=>{try{let n=JSON.parse(e);return d(n)&&n.type===t&&Array.isArray(n.coordinates)}catch{return!1}},y_e=(e,t)=>e.map(e=>Array.isArray(e)?e.map(e=>Array.isArray(e)?e.map(e=>x0(e,t)):x0(e,t)):x0(e,t)),b_e=e=>{if(e.type===`Point`)return null;let t=e.type===`Polygon`?e.coordinates.flat(1):e.coordinates;if(!t.every(e=>typeof e[0]==`number`&&typeof e[1]==`number`))return null;let n=t.map(e=>e[1]),r=t.map(e=>e[0]);return[[Math.min(...n),Math.min(...r)],[Math.max(...n),Math.max(...r)]]}}));function S_e(e,t){O(t,!0),K(e,E_e);let n=J(t,`currentValue`,15),r=J(t,`readonly`,3,!1),i=J(t,`invalid`,3,!1),a=M(()=>T(t.fieldConfig.decimals,7)),o=M(()=>T(t.fieldConfig.type,`Point`)),s=M(()=>t.fieldConfig.center),c=M(()=>t.fieldConfig.zoom),l=M(()=>z(o).toLowerCase()),u=N(void 0),f=N(void 0),p=N(``),m=N(``),h=N(void 0),g=N(!1),_=N(!1),v=N(``),y,b=async({leaflet:e,map:t})=>{y=t;let{TerraDraw:r,TerraDrawLineStringMode:i,TerraDrawPointMode:a,TerraDrawPolygonMode:u}=await Lw(`terra-draw`,`dist/terra-draw.module.js`),{TerraDrawLeafletAdapter:d}=await Lw(`terra-draw-leaflet-adapter`,`dist/terra-draw-leaflet-adapter.module.js?module`),p={Point:a,LineString:i,Polygon:u},m=new r({adapter:new d({lib:e,map:y}),modes:[new p[z(o)]]});m.start(),m.setMode(z(l)),m.on(`change`,(e,t)=>{x(t)}),P(f,m,!0),(!n()||!v_e(n(),z(o)))&&y.setView(z(s)?[z(s)[1],z(s)[0]]:[0,0],z(c)??2)},x=e=>{if(!z(f))return;let t=z(f).getSnapshot(),n=t[t.length-1];!n||e!==(z(o)===`Point`?`create`:`delete`)||(P(p,JSON.stringify({type:z(o),coordinates:y_e(n.geometry.coordinates,z(a))}),!0),t.length>1&&z(f).removeFeatures(t.filter(e=>e.id!==n.id).map(e=>e.id)))},S=e=>{if(e.type===`Point`){let[t,n]=e.coordinates;typeof t==`number`&&typeof n==`number`&&y?.setView([n,t],15)}else{let t=b_e(e);t&&y?.fitBounds(t)}},C=()=>{if(!z(f))return;let e=n()??``,t;try{if(t=JSON.parse(e),!d(t)||t.type!==z(o)||!Array.isArray(t.coordinates))throw Error(`Invalid object`)}catch{e=``,t=void 0}z(p)!==e&&(P(p,e,!0),z(f).clear(),t&&(z(f).addFeatures([{type:`Feature`,geometry:t,properties:{mode:z(l)}}]),S(t)))},w=()=>{if(!z(f))return;let e=z(p);n()!==e&&n(e)},ee=async()=>{let e=z(m).trim();if(!e)return;P(g,!0);let t=`https://nominatim.openstreetmap.org/search?${new URLSearchParams({q:e,format:`jsonv2`})}`;try{P(h,await Qx(t),!0)}catch{P(h,[],!0)}P(g,!1)},te=({latitude:e,longitude:t})=>{if(!z(f)||(e=x0(e,z(a)),t=x0(t,z(a)),y?.setView([e,t],15),z(o)!==`Point`))return;let n={type:`Point`,coordinates:[t,e]};z(f).clear(),z(f).addFeatures([{type:`Feature`,geometry:n,properties:{mode:`point`}}]),P(p,JSON.stringify(n),!0)},ne=({lat:e,lon:t})=>{te({latitude:parseFloat(e),longitude:parseFloat(t)})},re=()=>{if(!navigator.geolocation){P(_,!0),P(v,X(`geolocation_unsupported`),!0);return}navigator.geolocation.getCurrentPosition(({coords:{latitude:e,longitude:t}})=>{te({latitude:e,longitude:t})},e=>{P(_,!0),P(v,X(`geolocation_error_body`),!0),console.error(`Error getting current location:`,e)})},ie=()=>{n(``)};ti(()=>{z(f),n(),B(()=>{C()})}),ti(()=>{z(p),B(()=>{w()})}),ti(()=>{z(m),B(()=>{ee()})});var ae=T_e(),oe=I(ae),se=F(oe);{let e=M(()=>X(`find_place`));OR(se,{debounce:!0,get readonly(){return r()},flex:!0,get placeholder(){return z(e)},get value(){return z(m)},set value(e){P(m,e,!0)}})}var ce=L(se,2);{let e=e=>{UF(e,{name:`near_me`})},t=M(()=>X(`use_your_location`)),n=M(()=>X(`use_your_location`));lI(ce,{variant:`tertiary`,iconic:!0,get title(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return r()},onclick:()=>{re()},startIcon:e,$$slots:{startIcon:!0}})}var le=L(ce,2);{let e=M(()=>X(`clear`)),t=M(()=>r()||!n());lI(le,{variant:`tertiary`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{ie()}})}D(oe);var ue=L(oe,2),de=e=>{var t=C_e(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`searching`)]),U(e,t)},fe=e=>{var t=H(),n=I(t),r=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>X(`search_results`));zL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(h),e=>e.place_id,(e,t)=>{KL(e,{get label(){return z(t).display_name},onSelect:()=>{ne(z(t))}})}),U(e,n)},$$slots:{default:!0}})}},i=e=>{var t=w_e(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`no_results`)]),U(e,t)};G(n,e=>{z(h).length?e(r):e(i,-1)}),U(e,t)};G(n,e=>{z(h)&&e(r)}),U(e,t)};G(ue,e=>{z(g)?e(de):z(m)&&e(fe,1)});var E=L(ue,2),pe=F(E);{let e=M(()=>i()?`invalid`:void 0);h2(pe,{get inert(){return r()},get class(){return z(e)},onReady:b,get mapElement(){return z(u)},set mapElement(e){P(u,e,!0)}})}D(E);var me=L(E,2);{let e=M(()=>X(`geolocation_error_title`));hL(me,{get title(){return z(e)},get open(){return z(_)},set open(e){P(_,e,!0)},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,z(v))),U(e,n)},$$slots:{default:!0}})}U(e,ae),k()}var C_e,w_e,T_e,E_e,D_e=s((()=>{Q(),Y(),Z(),G$(),p(),sc(),v2(),Rw(),x_e(),$x(),S0(),C_e=V(`<div role="alert" class="search-result searching svelte-ktr5k7"> </div>`),w_e=V(`<div role="alert" class="search-result no-result svelte-ktr5k7"> </div>`),T_e=V(`<div role="none" class="toolbar svelte-ktr5k7"><!> <!> <!></div> <!> <div class="map-wrapper svelte-ktr5k7"><!></div> <!>`,1),E_e={hash:`svelte-ktr5k7`,code:`.toolbar.svelte-ktr5k7 {display:flex;align-items:center;margin-bottom:var(--sui-spacing-2x);}.search-result.svelte-ktr5k7 {padding:12px;color:var(--sui-secondary-foreground-color);}.map-wrapper.svelte-ktr5k7 {display:contents;}.map-wrapper.svelte-ktr5k7 .map {aspect-ratio:auto;height:400px;}.map-wrapper.svelte-ktr5k7 .map.invalid {border-color:var(--sui-error-border-color);}`}}));function O_e(e,t){K(e,A_e);var n=H(),r=I(n),i=e=>{var n=k_e(),r=F(n,!0);D(n),R(()=>W(r,t.currentValue)),U(e,n)};G(r,e=>{t.currentValue&&e(i)}),U(e,n)}var k_e,A_e,j_e=s((()=>{Q(),Y(),k_e=V(`<pre class="svelte-1ox6w30"> </pre>`),A_e={hash:`svelte-1ox6w30`,code:`pre.svelte-1ox6w30 {white-space:pre-wrap;}`}}));function M_e(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=N(void 0),s=M(()=>T(t.fieldConfig.value_type,`int`)),c=M(()=>t.fieldConfig.min),l=M(()=>t.fieldConfig.max),u=M(()=>T(t.fieldConfig.step,1)),d=M(()=>![`int`,`float`].includes(z(s))),f=M(()=>[`float`,`float/string`].includes(z(s))),p=()=>{let e;n()!==void 0&&(typeof n()==`number`?e=n():typeof n()==`string`&&(e=n().trim()?z(f)?Number.parseFloat(n()):Number.parseInt(n(),10):NaN,e=Number.isNaN(e)?void 0:e)),z(o)!==e&&P(o,e,!0)},m=()=>{let e;e=z(o)===void 0?NaN:z(f)?Number.parseFloat(String(z(o))):Number.parseInt(String(z(o)),10),z(d)?e=Number.isNaN(e)?``:String(e):Number.isNaN(e)&&(e=null),n()!==e&&n(e)};ti(()=>{n(),B(()=>{p()})}),ti(()=>{z(o),B(()=>{m()})}),qle(e,{get min(){return z(c)},get max(){return z(l)},get step(){return z(u)},get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onblur:()=>{p()},get value(){return z(o)},set value(e){P(o,e,!0)}}),k()}var N_e=s((()=>{Q(),Y(),G$(),sc()}));function P_e(e,t){O(t,!0);let n=M(()=>ab(t.locale)),r=M(()=>Intl.NumberFormat(z(n)));var i=H(),a=I(i),o=e=>{var i=F_e(),a=F(i,!0);D(i),R((e,t)=>{q(i,`lang`,z(n)),q(i,`dir`,e),W(a,t),i.dir=i.dir},[()=>ob(t.locale),()=>z(r).format(Number(t.currentValue))]),U(e,i)};G(a,e=>{t.currentValue!==void 0&&t.currentValue!==null&&t.currentValue!==``&&e(o)}),U(e,i),k()}var F_e,I_e=s((()=>{Q(),Y(),fb(),F_e=V(`<p> </p>`)})),N7,P7,F7=s((()=>{p(),ip(),Y4(),O8(),C7(),yA(),N7=(e,t)=>{let{collectionName:n,fileName:r,collection:i,collectionFile:a,currentValues:o,isIndexFile:s}=A(W4),{defaultLocale:c}=(a??i)._i18n,l=f(o[c]),u={...f(e),...l},d={collectionName:n,fileName:r,valueMap:u,isIndexFile:s},p=[];return Object.keys(u).forEach(n=>{let r=fA({...d,keyPath:n});if(!r)return;let{widget:i=`text`,i18n:a=!1}=r;if([`text`,`string`,`richtext`,`markdown`].includes(i)&&[!0,`translate`].includes(a)&&(u[n]=e[n]??``),i===`hidden`&&[!0,`translate`].includes(a)){let{default:e}=r;e===`{{locale}}`&&(u[n]=t)}i===`object`&&[!0,`translate`,`duplicate`].includes(a)&&l[n]!==null&&delete u[n],([!1,`none`].includes(a)||p.some(e=>n===e||n.startsWith(`${e}.`)))&&(delete u[n],p.push(n))}),u},P7=e=>{W4.update(t=>{let{fields:n,defaultLocale:r,currentLocales:i,currentValues:a,validities:o,validationMessages:s}=t,c=!i[e];if(c&&!a[e]){let{collectionName:o,fileName:s,originalValues:l}=t,u=S7({fields:n,locale:e,defaultLocale:r});return{...t,currentLocales:{...i,[e]:c},originalValues:{...l,[e]:u},currentValues:{...a,[e]:D8({draft:{collectionName:o,fileName:s},locale:e,target:N7(u,e)})}}}return{...t,currentLocales:{...i,[e]:c},validities:{...o,[e]:{}},validationMessages:{...s,[e]:{}}}})}})),L_e,R_e,z_e=s((()=>{Cp(),yA(),Bx(),L_e=new Map,R_e=({collectionName:e,fileName:t,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:a,summaryTemplate:o})=>{let s={collectionName:e,fileName:t,keyPath:``,valueMap:r,isIndexFile:i};return o?o.replaceAll(/{{(.+?)}}/g,(e,t)=>{let[r,...i]=t.split(/\s*\|\s*/);return gA({...s,keyPath:`${n}.${r.replace(/^fields\./,``)}`,locale:a,transformations:i})}):_A({valueMap:r,locale:a,keyPath:n,keyPathRegex:zx(L_e,n,()=>RegExp(`^${_p(n)}\\.`)),getFieldArgs:s})}}));function B_e(e,t){let n=Ia();O(t,!0),K(e,W_e);let r=()=>j(W4,`$entryDraft`,a),i=()=>j(VA,`$isSmallScreen`,a),[a,o]=hn(),{fieldContext:s,valueStoreKey:c=`currentValues`}=Rt(`field-editor`)??{},l=s===`single-subfield-list-field`,u=J(t,`required`,3,!0),d=M(()=>t.fieldConfig.name),p=M(()=>T(t.fieldConfig.i18n,!1)),m=M(()=>t.fieldConfig.collapsed),h=M(()=>t.fieldConfig.summary),g=M(()=>t.fieldConfig.fields),_=M(()=>t.fieldConfig.types),v=M(()=>T(t.fieldConfig.typeKey,`type`)),y=M(()=>r()?.isIndexFile??!1),b=M(()=>r()?.collection),x=M(()=>r()?.collectionName??``),S=M(()=>r()?.collectionFile),C=M(()=>r()?.fileName),w=M(()=>(z(S)??z(b))?._i18n??Tb),ee=M(()=>z(w).defaultLocale),te=M(()=>jt(r()?.[c][t.locale])??{}),ne=M(()=>({collectionName:z(x),fileName:z(C),valueMap:z(te),isIndexFile:z(y)})),re=M(()=>Object.entries(z(te)).some(([e,n])=>e.startsWith(`${t.keyPath}.`)&&n!==void 0)),ie=M(()=>s===`rich-text-editor-component`||t.locale===z(ee)||z(p)!==!1),ae=M(()=>`${t.keyPath}#`),oe=M(()=>r()?.expanderStates?._[z(ae)]??!0),se=M(()=>Array.isArray(z(_))),ce=M(()=>`${t.keyPath}.${z(v)}`),le=M(()=>z(se)?z(_)?.find(({name:e})=>e===z(te)[z(ce)]):void 0),ue=M(()=>(z(se)?z(le)?.fields:z(g))??[]),de=M(()=>z(se)&&z(le)?.summary||z(h)),fe=M(()=>t.locale!==z(ee)&&z(p)===`duplicate`),E=()=>{if(l)return;let e=z(ae);O7({[e]:D7({key:e,locale:t.locale,collapsed:z(m)})})},pe=async({type:e}={})=>{mn(G4,!1),e&&(Object.keys(r()?.[c]??{}).forEach(n=>{(n===t.locale||z(p)===`duplicate`)&&_n(W4,B(r)[c][n][z(ce)]=e,B(r))}),await Bi());let n=Object.fromEntries(Object.entries(S7({fields:z(ue),locale:t.locale,defaultLocale:z(ee)})).map(([e,n])=>[`${t.keyPath}.${e}`,n])),i=t.locale===z(ee)?n:N7(n,t.locale);Object.entries(r()?.[c]??{}).forEach(([e,n])=>{(e===t.locale||z(p)===`duplicate`)&&(_n(W4,B(r)[c][e]=Object.assign(n,f({...i,...n})),B(r)),delete r()[c][e][t.keyPath])}),mn(G4,!0)},me=()=>{mn(G4,!1),Object.entries(r()?.[c]??{}).forEach(([e,n])=>{(e===t.locale||z(p)===`duplicate`)&&(Object.keys(n).forEach(n=>{n.startsWith(`${t.keyPath}.`)&&(_n(W4,B(r)[c][e][n]=null,B(r)),delete r()?.[c][e][n])}),_n(W4,B(r)[c][e][t.keyPath]=null,B(r)))}),mn(G4,!0)},he=()=>R_e({...z(ne),keyPath:t.keyPath,locale:t.locale,summaryTemplate:z(de)});ac(()=>{E()});var ge=U_e(),_e=I(ge),ve=e=>{{let n=M(()=>X(`add_x`,{values:{name:t.fieldLabel||z(d)}}));rL(e,{get label(){return z(n)},get checked(){return z(re)},get disabled(){return z(fe)},onChange:({detail:{checked:e}})=>{e?pe():me()}})}};G(_e,e=>{!z(se)&&!u()&&e(ve)});var ye=L(_e,2),be=e=>{m7(e,{get disabled(){return z(fe)},get fieldConfig(){return t.fieldConfig},addItem:pe})};G(ye,e=>{z(se)&&!z(re)&&e(be)});var xe=L(ye,2),Se=e=>{var r=H_e(),a=F(r),o=e=>{{let t=e=>{var t=H(),n=I(t),r=e=>{{let t=e=>{UF(e,{name:`close`})},n=M(()=>X(`remove`));lI(e,{size:`small`,iconic:!0,get disabled(){return z(fe)},get"aria-label"(){return z(n)},onclick:()=>{me()},startIcon:t,$$slots:{startIcon:!0}})}};G(n,e=>{z(se)&&e(r)}),U(e,t)},r=M(()=>z(se)?z(le)?.label||z(le)?.name:``),i=M(()=>z(ue).length?()=>O7({[z(ae)]:!z(oe)}):void 0);h7(e,{get label(){return z(r)},get controlId(){return`object-${n}-item-list`},get expanded(){return z(oe)},get toggleExpanded(){return z(i)},endContent:t,$$slots:{endContent:!0}})}};G(a,e=>{l||e(o)});var s=L(a,2),c=F(s),u=e=>{var n=H();mo(I(n),17,()=>z(ue),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);W8(e,{children:(e,i)=>{{let i=M(()=>z(se)&&z(le)?.name?`${t.typedKeyPath}<${z(le).name}>.${z(n).name}`:z(r));r9(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,n)},d=e=>{let t=M(he);var r=H(),a=I(r),o=e=>{var r=V_e(),a=F(r);{let e=M(()=>i()?2:1);ZF(a,{get lines(){return z(e)},children:(e,n)=>{_t();var r=Fa();R(()=>W(r,z(t))),U(e,r)},$$slots:{default:!0}})}D(r),R(()=>q(r,`id`,`object-${n}-summary`)),U(e,r)};G(a,e=>{z(t)&&e(o)}),U(e,r)};G(c,e=>{z(oe)?e(u):e(d,-1)}),D(s),D(r),R(()=>{q(r,`aria-labelledby`,z(oe)?void 0:`object-${n}-summary`),q(s,`id`,`object-${n}-item-list`)}),U(e,r)};G(xe,e=>{(!(!u()||z(se))||z(re))&&z(ie)&&e(Se)}),U(e,ge),k(),o()}var V_e,H_e,U_e,W_e,G_e=s((()=>{Q(),Y(),Z(),G$(),p(),sc(),q8(),a9(),cge(),g7(),Y4(),C7(),F7(),A7(),z_e(),Mb(),KA(),V_e=V(`<div role="none" class="summary svelte-pauyt3"><!></div>`),H_e=V(`<div role="group" class="wrapper svelte-pauyt3"><!> <div role="none" class="item-list"><!></div></div>`),U_e=V(`<!> <!> <!>`,1),W_e={hash:`svelte-pauyt3`,code:`.wrapper.svelte-pauyt3 {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.sui.checkbox + .wrapper.svelte-pauyt3 > .group {margin-top:8px;}.summary.svelte-pauyt3 {padding:8px;}`}}));function K_e(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.fields),o=M(()=>t.fieldConfig.types),s=M(()=>T(t.fieldConfig.typeKey,`type`)),c=M(()=>jt(n()?.currentValues[t.locale])??{}),l=M(()=>Object.entries(z(c)).some(([e,n])=>!!e.startsWith(`${t.keyPath}.`)&&!!n)),u=M(()=>Array.isArray(z(o))),d=M(()=>`${t.keyPath}.${z(s)}`),f=M(()=>z(u)?z(o)?.find(({name:e})=>e===z(c)[z(d)]):void 0),p=M(()=>z(f)?z(f).label||z(f).name:void 0),m=M(()=>(z(u)?z(f)?.fields:z(a))??[]);var h=H(),g=I(h),_=e=>{n_e(e,{get label(){return z(p)},children:(e,n)=>{var r=H();mo(I(r),17,()=>z(m),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);W8(e,{children:(e,i)=>{{let i=M(()=>z(u)&&z(f)?.name?`${t.typedKeyPath}<${z(f).name}>.${z(n).name}`:z(r));j7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})};G(g,e=>{z(l)&&e(_)}),U(e,h),k(),i()}var q_e=s((()=>{Q(),Y(),q8(),o_e(),M7(),Y4()}));function J_e(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!1),c=J(t,`invalid`,3,!1),l=M(()=>t.fieldConfig.i18n),u=M(()=>t.fieldConfig.max),d=M(()=>T(t.fieldConfig.dropdown_threshold,5)),f=e=>{n()&&Object.keys(jt(n()[a])??{}).forEach(n=>{z(l)!==`duplicate`&&n!==t.locale||E7({locale:n,valueStoreKey:a,keyPath:t.keyPath,manipulate:e})})},p=e=>{f(({valueList:t})=>{t.push(e)})},m=e=>{f(({valueList:t})=>{t.splice(t.indexOf(e),1)})};var h=H(),g=I(h),_=e=>{yoe(e,Zs({get disabled(){return s()},get readonly(){return s()},get required(){return o()},get invalid(){return c()},get options(){return t.options}},()=>({values:t.currentValue}),{get max(){return z(u)},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onAddValue:({detail:{value:e}})=>{p(e)},onRemoveValue:({detail:{value:e}})=>{m(e)},onReorder:({detail:{values:e}})=>{f(({valueList:t})=>{t.splice(0,t.length,...e)})}}))},v=e=>{Vae(e,{get"aria-labelledby"(){return`${t.fieldId??``}-label`},children:(e,n)=>{var r=H();mo(I(r),17,()=>t.options,({label:e,value:t})=>t,(e,n)=>{let r=()=>z(n).label,i=()=>z(n).value;{let n=M(()=>t.currentValue?.includes(i())??!1);rL(e,{get label(){return r()},get value(){return i()},get readonly(){return s()},get required(){return o()},get invalid(){return c()},get checked(){return z(n)},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onChange:({detail:{checked:e}})=>{e?p(i()):m(i())}})}}),U(e,r)},$$slots:{default:!0}})};G(g,e=>{t.options.length>z(d)?e(_):e(v,-1)}),U(e,h),k(),i()}var Y_e=s((()=>{Q(),Y(),G$(),sc(),Y4(),Lge()}));function X_e(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=J(t,`options`,7),s=M(()=>T(t.fieldConfig.dropdown_threshold,5)),c=N(void 0);ti(()=>{z(c)||P(c,o()[0]?.value===void 0?`string`:typeof o()[0]?.value,!0)}),ti(()=>{!r()&&!o().some(({value:e})=>!e)&&o([{label:X(`unselected_option`),value:z(c)===`number`?null:``,searchValue:``},...o()])});var l=H(),u=I(l),d=e=>{RR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return n()},set value(e){n(e)},children:(e,t)=>{var r=H();mo(I(r),17,o,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value,a=()=>z(t).searchValue;{let t=M(()=>i()===n());KL(e,{get label(){return r()},get value(){return i()},get valueType(){return z(c)},get searchValue(){return a()},get selected(){return z(t)},wrap:!0})}}),U(e,r)},$$slots:{default:!0}})},f=e=>{roe(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onChange:({detail:{value:e}})=>{n(e)},children:(e,t)=>{var r=H();mo(I(r),17,o,({label:e,value:t})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value;{let t=M(()=>i()===n());aoe(e,{get label(){return r()},get value(){return i()},get valueType(){return z(c)},get checked(){return z(t)}})}}),U(e,r)},$$slots:{default:!0}})};G(u,e=>{o().length>z(s)?e(d):e(f,-1)}),U(e,l),k()}var Z_e=s((()=>{Q(),Y(),Z(),G$()}));function Q_e(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=J(t,`sortOptions`,3,!1),s=M(()=>t.fieldConfig.options),c=M(()=>t.fieldConfig.multiple),l=M(()=>z(c)?J_e:X_e),u=M(()=>{let e=z(s).map(e=>d(e)?e:{label:e,value:e});return o()&&e.sort((e,t)=>Sp(e.label,t.label)),e});var f=H();oo(I(f),()=>JSON.stringify(z(u)),e=>{var o=H();Oo(I(o),()=>z(l),(e,o)=>{o(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get fieldId(){return t.fieldId},get fieldConfig(){return t.fieldConfig},get readonly(){return i()},get required(){return r()},get invalid(){return a()},get options(){return z(u)},get currentValue(){return n()},set currentValue(e){n(e)}})}),U(e,o)}),U(e,f),k()}var $_e=s((()=>{Q(),Y(),p(),Cp(),Y_e(),Z_e()}));function eve(e,t){O(t,!0);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`currentValue`,15),o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!1),c=J(t,`invalid`,3,!1),l=M(()=>t.fieldConfig.collection),u=M(()=>t.fieldConfig.file),d=M(()=>z(u)?[Yy(z(l),z(u))].filter(e=>!!e):rk(z(l))),f=M(()=>n()?.currentValues[t.locale]),p=M(()=>n()?.currentSlugs[t.locale]??n()?.currentSlugs._),m=M(()=>({...t.fieldConfig,widget:`select`,options:Mk({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(d),currentLocaleValues:z(f),currentSlug:z(p)})}));var h=tve();Q_e(F(h),{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return t.fieldId},get fieldLabel(){return t.fieldLabel},get fieldConfig(){return z(m)},get readonly(){return s()},get required(){return o()},get invalid(){return c()},sortOptions:!0,get currentValue(){return a()},set currentValue(e){a(e)}}),D(h),U(e,h),k(),i()}var tve,nve=s((()=>{Q(),Y(),$_e(),sk(),Zy(),Y4(),Pk(),tve=V(`<div role="none" class="wrapper"><!></div>`)}));function rve(e,t){O(t,!0);let n=M(()=>t.fieldConfig.collection),r=M(()=>t.fieldConfig.file),i=M(()=>T(t.fieldConfig.multiple,!1)),a=M(()=>T(t.fieldConfig.value_field,`{{slug}}`)),o=M(()=>ub(t.locale)),s=M(()=>z(r)?[Yy(z(n),z(r))].filter(e=>!!e):rk(z(n))),c=M(()=>Mk({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(s)})),l=M(()=>(z(i)?t.currentValue:[t.currentValue]).filter(e=>e!==void 0).map(e=>{let t=z(c).find(t=>t.value===e)?.label;return t&&t!==e?[`slug`,`{{slug}}`,`{{fields.slug}}`].includes(z(a))?t:`${t} (${e})`:e}));var u=H(),d=I(u),f=e=>{var n=ive(),r=F(n,!0);D(n),R((e,t,i)=>{q(n,`lang`,e),q(n,`dir`,t),W(r,i),n.dir=n.dir},[()=>ab(t.locale),()=>ob(t.locale),()=>z(o).format(z(l))]),U(e,n)};G(d,e=>{z(l).length&&e(f)}),U(e,u),k()}var ive,ave=s((()=>{Q(),Y(),sk(),Zy(),Pk(),fb(),ive=V(`<p> </p>`)})),I7,ove,sve,cve,lve,L7,R7=s((()=>{I7=/^.+?:\w+:/,ove=[`rich_text`,`raw`],sve={rich_text:`rich-text`,raw:`plain-text`},cve=[`bold`,`italic`,`strikethrough`,`code`,`link`,`heading-one`,`heading-two`,`heading-three`,`heading-four`,`heading-five`,`heading-six`,`bulleted-list`,`numbered-list`,`quote`],lve={bold:`bold`,italic:`italic`,strikethrough:`strikethrough`,code:`code`,link:`link`,"heading-one":`heading-1`,"heading-two":`heading-2`,"heading-three":`heading-3`,"heading-four":`heading-4`,"heading-five":`heading-5`,"heading-six":`heading-6`,"bulleted-list":`bulleted-list`,"numbered-list":`numbered-list`,quote:`blockquote`,"code-block":`code-block`},L7=[`code-block`,`image`]})),uve,dve,z7,fve,pve=s((()=>{hC(),uve=({fieldConfig:e,value:t})=>{let n=e,{type:r,min:i,max:a}=sC(n),o=typeof i==`string`&&!!i,s=typeof a==`string`&&!!a,c=!1,l=!1;if(t&&(o||s)){let e=pC(t,n);if(e){let t=document.createElement(`input`);t.type=r,o&&(t.min=i),s&&(t.max=a),t.value=e,{rangeUnderflow:c,rangeOverflow:l}=t.validity}}return{validity:{rangeUnderflow:c,rangeOverflow:l},detail:{hasMin:o,hasMax:s,invalid:c||l}}},dve=new Intl.DateTimeFormat(`en-GB`,{hour12:!0,timeZone:`UTC`,hour:`2-digit`,minute:`2-digit`}),z7=e=>dve.format(new Date(`1970-01-01T${e}Z`)).toUpperCase(),fve=(e,t)=>{if(e===`date`)return t;if(e===`time`)return z7(t);let[n,r]=t.split(`T`);return`${n}, ${z7(r)}`}})),B7,V7,mve=s((()=>{Z(),yA(),hC(),pve(),B7=({direction:e,limitKey:t,limitValue:n,fieldType:r,type:i,canAddMultiValue:a})=>r===`datetime`&&typeof n==`string`?X(`validation.range_${e}.${i}`,{values:{[t]:fve(i,n)}}):X(r===`number`?`validation.range_${e}.number`:a?`validation.range_${e}.add`:`validation.range_${e}.select`,{values:{[t]:n}}),V7=({validity:e,fieldConfig:t})=>{let n=[],{widget:r=`string`}=t,{pattern:i=[]}=t,a=r===`datetime`,o=a?sC(t):{},s=r===`string`?t.type??`text`:a?o.type:r===`number`?`number`:void 0,{min:c,max:l}=a?o:t,u=r===`list`||r===`keyvalue`||lA(t);if(e.valueMissing&&n.push(X(`validation.value_missing`)),e.tooShort){let{minlength:e}=t;n.push(X(`validation.too_short`,{values:{min:e}}))}if(e.tooLong){let{maxlength:e}=t;n.push(X(`validation.too_long`,{values:{max:e}}))}return e.rangeUnderflow&&n.push(B7({direction:`underflow`,limitKey:`min`,limitValue:c,fieldType:r,type:s,canAddMultiValue:u})),e.rangeOverflow&&n.push(B7({direction:`overflow`,limitKey:`max`,limitValue:l,fieldType:r,type:s,canAddMultiValue:u})),e.patternMismatch&&n.push(i[1]),e.typeMismatch&&n.push(X(`validation.type_mismatch.${s}`)),n}})),hve,gve=s((()=>{hve=({keyPath:e,value:t,valueMap:n,fieldConfig:r,validities:i,locale:a})=>{let{output_code_only:o=!1,keys:s={code:`code`,lang:`lang`}}=r,c=(e.match(`(.+)\\.(?:${s.code}|${s.lang})$`)?.[1]??``)||e;return c in i[a]?{skip:!0,keyPath:c,value:t}:{skip:!1,keyPath:c,value:o?t:n[`${c}.${s.code}`]}}})),_ve,vve=s((()=>{Y4(),yA(),p7(),R7(),_ve=({keyPath:e,getFieldArgs:t,validity:n,validities:r,locale:i,required:a,min:o,max:s})=>{let c=e.match(/(.+?)(?:\.[^.]*)?$/)?.[1],l=fA({...t,keyPath:c.replace(I7,``)});if(c in r[i]||l?.widget!==`keyvalue`)return{skip:!0,keyPath:e};let u=f7({entryDraft:W4,keyPath:c,locale:i});return a&&!u.length?n.valueMissing=!0:typeof o==`number`&&u.length<o?n.rangeUnderflow=!0:typeof s==`number`&&u.length>s&&(n.rangeOverflow=!0),{skip:!1,keyPath:c}}})),yve,bve,xve=s((()=>{Cp(),Bx(),yve=new Map,bve=({keyPath:e,value:t,valueEntries:n,validity:r,validities:i,locale:a,required:o,min:s,max:c})=>{if(e in i[a])return{skip:!0};let l=zx(yve,e,()=>RegExp(`^${_p(e)}\\.\\d+`)),u=Array.isArray(t)&&t.length?t.length:new Set(n.map(([e])=>e.match(l)?.[0]).filter(Boolean)).size;return o&&!u?r.valueMissing=!0:typeof s==`number`&&u<s?r.rangeUnderflow=!0:typeof c==`number`&&u>c&&(r.rangeOverflow=!0),{skip:!1}}})),Sve,Cve=s((()=>{yA(),Sve=({fieldConfig:e,locale:t,value:n})=>{let{value_type:r=`int`,min:i,max:a}=e,o=typeof i==`number`&&n!==null&&Number(n)<i;return{validity:{rangeUnderflow:o,rangeOverflow:!o&&typeof a==`number`&&n!==null&&Number(n)>a,typeMismatch:(r===`int`||r===`float`)&&pA({fieldConfig:e,locale:t})&&n===null}}}})),H7,wve=s((()=>{H7=({fieldConfig:e,value:t})=>{let n=e,{widget:r=`string`,minlength:i,maxlength:a}=n,o=Number.isInteger(i)&&i<=(a??1/0),s=Number.isInteger(a)&&(i??0)<=a,c=t?[...t.trim()].length:0,l=o&&c<i,u=s&&c>a,d=!1;if(r===`string`&&t){let{type:e=`text`,prefix:r,suffix:i}=n,a=t;if(r&&a.startsWith(r)&&(a=a.slice(r.length)),i&&a.endsWith(i)&&(a=a.slice(0,-i.length)),e!==`text`){let t=document.createElement(`input`);t.type=e,t.value=a,{typeMismatch:d}=t.validity}e===`email`&&!d&&!a.split(`@`)[1]?.includes(`.`)&&(d=!0)}return{validity:{tooShort:l,tooLong:u,typeMismatch:d},detail:{count:c,hasMin:o,hasMax:s,invalid:l||u||d}}}})),U7,Tve,Eve,Dve,Ove,kve,W7,Ave,G7,jve=s((()=>{ip(),Y4(),mve(),yA(),wC(),gve(),pve(),vve(),w5(),xve(),Cve(),R7(),wve(),$O(),U7=/\.\d+$/,Tve={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},Eve={datetime:uve,number:Sve,string:H7,text:H7},Dve={get:(e,t)=>t===`valid`?!Object.values(e).some(Boolean):e[t]},Ove=({value:e,required:t,validation:n,validity:r})=>{let i=typeof e==`string`?e.trim():e;if(t&&(i==null||i===``)&&(r.valueMissing=!0),Array.isArray(n)){let e=QO(n[0]);e&&!e.test(String(i))&&(r.patternMismatch=!0)}},kve=e=>{let{draft:t,locale:n,valueMap:r,componentName:i,validities:a}=e,{collection:o,collectionName:s,fileName:c,collectionFile:l,files:u,isIndexFile:d}=t,{keyPath:f,value:p}=e,m={collectionName:s,fileName:c,componentName:i,valueMap:r,keyPath:f.replace(I7,``),isIndexFile:d},h=fA({...m});if(!h)return;let{widget:g=`string`,i18n:_=!1,pattern:v}=h,y=lA(h),{min:b=0,max:x=1/0}=Zne.includes(g)?h:{},{i18nEnabled:S,defaultLocale:C}=(l??o)._i18n;if(!i&&n!==C&&(!S||_===!1||_===`none`||_===`duplicate`))return;let w=Object.entries(r),ee=pA({fieldConfig:h,locale:n}),T={...Tve};if(g===`list`||y){let{skip:e}=bve({keyPath:f,value:p,valueEntries:w,validity:T,validities:a,locale:n,required:ee,min:b,max:x});if(e)return}if(g===`object`&&ee&&!p&&(T.valueMissing=!0),g===`keyvalue`){let e=_ve({keyPath:f,getFieldArgs:m,validity:T,validities:a,locale:n,required:ee,min:b,max:x});if(e.skip)return;f=e.keyPath}if(g===`code`){let e=hve({keyPath:f,value:p,valueMap:r,fieldConfig:h,validities:a,locale:n});if(e.skip)return;f=e.keyPath,p=e.value}SC.includes(g)&&typeof p==`string`&&p.startsWith(`blob:`)&&(p=u[p]?.file?.name),[`object`,`list`,`hidden`,`compute`,`keyvalue`].includes(g)||y||Ove({value:p,required:ee,validation:v,validity:T});let te=Eve[g];return te&&Object.assign(T,te({fieldConfig:h,locale:n,value:p}).validity),new Proxy(T,Dve)},W7=e=>{let{validities:t,locale:n,keyPath:r}=e,i=kve(e),a=!0;return i&&(t[n][r]=i,i.valid||(a=!1)),a},Ave=({fieldConfig:e,validateArgs:t})=>{let{validities:n,locale:r,keyPath:i}=t,a=n[r][i]?.valid??W7(t),{widget:o=`string`}=e;return o===`list`&&!C5(e).hasSubFields||lA(e)?{valid:a,validateItems:!1}:{valid:a,validateItems:!0}},G7=e=>{let t=A(W4),{collectionName:n,fileName:r,isIndexFile:i,currentLocales:a}=t,o={},s={},c={collectionName:n,fileName:r,isIndexFile:i,keyPath:``,valueMap:{}},l=!0;return Object.entries(t[e]).forEach(([e,n])=>{let r=Object.entries(n);if(!a[e]){o[e]=Object.fromEntries(r.map(([e])=>[e,{valid:!0}])),s[e]=Object.fromEntries(r.map(([e])=>[e,[]]));return}let i={draft:t,locale:e,valueMap:n,validities:o};o[e]={},s[e]={},r.forEach(([t,r])=>{let[a]=t.match(I7)??[],u=a?n[`${a}__sc_component_name`]:void 0,d=fA({...c,keyPath:t.replace(I7,``),valueMap:n,componentName:u});if(!d)return;if(U7.test(t)){let n=t.replace(U7,``),{valid:r,validateItems:a}=Ave({fieldConfig:d,validateArgs:{...i,keyPath:n,value:``,componentName:u}});if(r||(l=!1),!(n in s[e])){let t=o[e][n];t&&(s[e][n]=V7({validity:t,fieldConfig:d}))}if(!a)return}W7({...i,keyPath:t,value:r,componentName:u})||(l=!1);let f=o[e][t];f&&(s[e][t]=V7({validity:f,fieldConfig:d}))})}),{valid:l,validities:o,validationMessages:s}}}));function Mve(e,t){let n=Ia();O(t,!0),K(e,Lve);let r=()=>j(W4,`$entryDraft`,i),[i,a]=hn(),o=J(t,`mode`,3,`block`),s=J(t,`collapsed`,3,!1),c=J(t,`values`,7),l=J(t,`onChange`,3,()=>void 0),u=N(void 0),d=N(``),f=N(``),p=N(``),m=N(!s()),h=N(!1),g=N(void 0),_=N(!1),v=M(()=>z(f)?`${z(f)}:${n}:`:``),y=M(()=>z(p)?`${z(p)}:${n}:`:``),b=M(()=>t.fields.find(e=>e.widget===`string`||e.widget===`text`||!e.widget)),x=()=>z(u),S=`extraValues`,C,w=M(()=>{if(r()&&z(d)&&z(f))return dc(Object.fromEntries(Object.entries(jt(r()[S][z(d)]??{})).filter(([e])=>e.startsWith(z(v))).map(([e,t])=>[e.replace(z(v),``),t])))}),ee=()=>{P(g,z(w)?{...z(w)}:void 0,!0),P(h,!0)},T=()=>{r()&&z(d)&&z(f)&&z(g)&&(Object.keys(r()[S][z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r()[S][z(d)][e]}),Object.assign(r()[S][z(d)],Object.fromEntries(Object.entries(uc(z(g))).map(([e,t])=>[`${z(v)}${e}`,t]))))},te=()=>{P(h,!1),l()(new CustomEvent(`remove`))},ne=()=>{let{validities:e}=G7(`extraValues`);W4.update(t=>t&&{...t,validities:Object.fromEntries(Object.keys(t.validities).map(n=>[n,{...t.validities[n],...e[n]}]))});let t=e[z(d)]??{};Object.entries(t).some(([e,t])=>e.startsWith(z(v))&&!t.valid)||(P(_,!1),P(h,!1),l()(new CustomEvent(`update`,{detail:z(w)})),P(g,void 0))},re=()=>{z(_)?(P(h,!1),l()(new CustomEvent(`remove`))):(T(),P(h,!1),P(g,void 0))},ie=(e,n)=>{if(!e||!n)return null;let r=uc(n),i=e.replaceAll(/{{(.+?)}}/g,(e,n)=>{let[i,...a]=n.trim().split(/\s*\|\s*/),o=i.replace(/^fields\./,``),s=r[o];return s==null?``:(a.length&&(s=bC({fieldConfig:t.fields.find(e=>e.name===o),value:s,transformations:a,locale:z(d)})),String(s))});return i!==e.replaceAll(/{{.+?}}/g,``)&&i.trim()?i.trim():null},ae=M(()=>{let e=t.fields.some(e=>z(w)?.[e.name]!==void 0)?z(w):c();if(t.summary&&e){let n=ie(t.summary,e);if(n)return n}if(z(b)&&e){let t=e[z(b).name];if(typeof t==`string`&&t.trim())return t.trim()}return t.label});ac(()=>(window.requestAnimationFrame(()=>{let e=z(u)?.closest(`[data-locale]`),t=z(u)?.closest(`[data-key-path]`);P(d,e?.dataset.locale,!0),P(f,t?.dataset.keyPath,!0),o()!==`dialog`&&P(p,t?.dataset.typedKeyPath,!0),P(_,!c()),o()===`dialog`&&z(_)&&ee()}),()=>{r()&&(Object.keys(r()[S][z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r()[S][z(d)][e]}),Object.keys(r().validities[z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r().validities[z(d)][e]}))})),ti(()=>{c(),z(d),z(f),B(()=>{if(r()&&z(d)&&z(f)){let{defaultLocale:e}=r();if(c(c()??dc(S7({fields:t.fields,locale:z(d),defaultLocale:e}))??{}),c().__sc_component_name=t.componentName,!(0,K7.default)(c(),z(w))){let e=Object.fromEntries(Object.entries(uc(c())).map(([e,t])=>[`${z(v)}${e}`,t]));W4.update(t=>t&&(Object.assign(t[S][z(d)],e),t))}}})}),ti(()=>{o()!==`dialog`&&(z(w),B(()=>{(0,K7.default)(C,z(w))||(l()(new CustomEvent(`update`,{detail:z(w)})),C=z(w))}))});var oe={getElement:x},se=H(),ce=I(se),le=e=>{var n=Fve(),r=I(n),i=F(r,!0);D(r),Ws(r,e=>P(u,e),()=>z(u)),sL(L(r,2),{get title(){return t.label},size:`large`,showOk:!1,showCancel:!1,get open(){return z(h)},set open(e){P(h,e,!0)},footer:e=>{var t=Nve(),n=I(t);{let e=M(()=>X(`remove`));lI(n,{variant:`secondary`,get label(){return z(e)},onclick:()=>{te()}})}var r=L(n,2);ZI(r,{flex:!0});var i=L(r,2);{let e=M(()=>X(z(_)?`insert`:`update`));lI(i,{variant:`primary`,get label(){return z(e)},onclick:()=>{ne()}})}var a=L(i,2);{let e=M(()=>X(`cancel`));lI(a,{variant:`secondary`,get label(){return z(e)},onclick:()=>{re()}})}U(e,t)},children:(e,n)=>{var r=Pve(),i=F(r),a=e=>{var n=H();mo(I(n),17,()=>t.fields,e=>e.name,(e,t)=>{r9(e,{get locale(){return z(d)},get keyPath(){return`${z(v)??``}${z(t).name??``}`},get typedKeyPath(){return`${z(v)??``}${z(t).name??``}`},get fieldConfig(){return z(t)},context:`rich-text-editor-component`,valueStoreKey:S})}),U(e,n)};G(i,e=>{z(d)&&z(f)&&e(a)}),D(r),U(e,r)},$$slots:{footer:!0,default:!0}}),R(()=>{q(r,`aria-label`,t.label),q(r,`title`,t.label),q(r,`data-key-path-prefix`,z(v)),q(r,`data-component-name`,t.componentName),W(i,z(ae))}),Sa(`click`,r,()=>{ee()}),Sa(`keydown`,r,e=>{e.key===`Enter`&&(e.preventDefault(),ee()),e.key===`Backspace`&&(e.preventDefault(),l()(new CustomEvent(`remove`)))}),U(e,n)},ue=e=>{var r=Ive(),i=F(r);h7(i,{get label(){return t.label},get controlId(){return`object-${n}-item-list`},get expanded(){return z(m)},set expanded(e){P(m,e,!0)},endContent:e=>{{let t=e=>{UF(e,{name:`close`})},n=M(()=>X(`remove`));lI(e,{size:`small`,iconic:!0,get"aria-label"(){return z(n)},onclick:()=>{l()(new CustomEvent(`remove`))},startIcon:t,$$slots:{startIcon:!0}})}},$$slots:{endContent:!0}});var a=L(i,2),o=F(a),s=e=>{var n=H();mo(I(n),17,()=>t.fields,e=>e.name,(e,t)=>{W8(e,{children:(e,n)=>{r9(e,{get locale(){return z(d)},get keyPath(){return`${z(v)??``}${z(t).name??``}`},get typedKeyPath(){return`${z(y)??``}${z(t).name??``}`},get fieldConfig(){return z(t)},context:`rich-text-editor-component`,valueStoreKey:S})},$$slots:{default:!0}})}),U(e,n)};G(o,e=>{z(d)&&z(f)&&z(m)&&e(s)}),D(a),D(r),Ws(r,e=>P(u,e),()=>z(u)),R(()=>{q(r,`aria-label`,t.label),q(r,`data-key-path-prefix`,z(v)),q(r,`data-component-name`,t.componentName),q(a,`id`,`object-${n}-item-list`)}),xa(`keydown`,r,e=>{e.stopPropagation()},!0),Sa(`keydown`,r,e=>{!e.target.matches(`button, input, textarea`)&&e.key!==`Tab`&&e.preventDefault(),e.target===z(u)&&e.key===`Backspace`&&l()(new CustomEvent(`remove`))}),U(e,r)};G(ce,e=>{o()===`dialog`?e(le):e(ue,-1)}),U(e,se);var de=k(oe);return a(),de}var K7,Nve,Pve,Fve,Ive,Lve,Rve=s((()=>{Q(),Y(),Z(),G$(),K7=u(ZM()),fc(),sc(),q8(),a9(),g7(),xC(),Y4(),C7(),jve(),Nve=V(`<!> <!> <!> <!>`,1),Pve=V(`<div role="none" class="fields svelte-1l1n28m"><!></div>`),Fve=V(`<span role="button" class="placeholder svelte-1l1n28m" contenteditable="false" tabindex="0"> </span> <!>`,1),Ive=V(`<div role="group" class="wrapper svelte-1l1n28m" contenteditable="false" tabindex="0"><!> <div role="none" class="item-list"><!></div></div>`),Lve={hash:`svelte-1l1n28m`,code:`.wrapper.svelte-1l1n28m {display:inline-block;border:1px solid var(--sui-secondary-border-color);border-radius:4px;width:100%;color:var(--sui-secondary-foreground-color);background-color:var(--sui-primary-background-color);white-space:normal;-webkit-user-select:none;user-select:none;}.wrapper.svelte-1l1n28m:focus {outline-color:var(--sui-primary-accent-color-translucent);}
|
|
949
949
|
@media (768px <= width) {.wrapper.svelte-1l1n28m:is([data-component-name=image]:where(.svelte-1l1n28m), [data-component-name=linked-image]:where(.svelte-1l1n28m)) [data-field-type] {border-width:0;}.wrapper.svelte-1l1n28m:is([data-component-name=image]:where(.svelte-1l1n28m), [data-component-name=linked-image]:where(.svelte-1l1n28m)) [data-field-type=string] {display:flex;align-items:center;gap:8px;padding-block:0 16px;}.wrapper.svelte-1l1n28m:is([data-component-name=image]:where(.svelte-1l1n28m), [data-component-name=linked-image]:where(.svelte-1l1n28m)) [data-field-type=string] h4 {margin-bottom:0 !important;}.wrapper.svelte-1l1n28m:is([data-component-name=image]:where(.svelte-1l1n28m), [data-component-name=linked-image]:where(.svelte-1l1n28m)) [data-field-type=string] .field-wrapper {flex:auto;}
|
|
950
950
|
}.wrapper.svelte-1l1n28m:is([data-component-name=image]:where(.svelte-1l1n28m), [data-component-name=linked-image]:where(.svelte-1l1n28m)) button {margin:var(--sui-focus-ring-width);}.wrapper.svelte-1l1n28m + .wrapper {margin-top:16px;}.placeholder.svelte-1l1n28m {display:inline;border:dashed 1px currentColor;border-color:hsl(from currentColor h s l/0.5);border-radius:2px;padding-inline:0.4em;cursor:pointer;-webkit-user-select:none;user-select:none;}.placeholder.svelte-1l1n28m:hover {border-color:currentColor;}.placeholder.svelte-1l1n28m:focus {outline:2px solid var(--sui-primary-accent-color-translucent);outline-offset:1px;}.fields.svelte-1l1n28m {display:flex;flex-direction:column;gap:16px;}`},Ca([`click`,`keydown`])})),zve,Bve=s((()=>{$K(),sc(),Rve(),Rk(),zve=e=>{let{id:t,label:n,collapsed:r,mode:i,summary:a,fields:o,pattern:s,toBlock:c,toPreview:l}=e,u=Fk(s),d=l?.({}),f=c({}),p=typeof d==`string`?d.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName??(typeof f==`string`?f.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName:void 0):void 0;class m extends DK{__props;constructor(e,t){super(t),this.__props=e}static getType(){return t}isInline(){return!u}static clone(e){return new m(e.__props,e.__key)}static importJSON(e){return new m().updateFromJSON(e)}exportJSON(){return{...Ik(this.__props??{}),type:t,version:1}}createDOM(){let e,s=null,c,l=!1,u=()=>{l||(l=!0,Va(c))};return c=za(Mve,{target:document.createElement(`div`),props:{componentName:t,label:n,collapsed:r,mode:i,summary:a,fields:o,values:this.__props,onChange:async({type:t,detail:n})=>{await Bi(),s??=zV(e);let{activeElement:r}=document,i=r,a=i?.matches(`[contenteditable="true"]`)?window.getSelection():null,o=a&&a.rangeCount>0?a.getRangeAt(0).cloneRange():null;s?.update(()=>{if(t===`update`)try{this.getWritable().__props=n}catch{}t===`remove`&&(u(),this.remove())},{discrete:!0,onUpdate:()=>{i&&document.body.contains(i)&&(i.focus(),o&&a&&(a.removeAllRanges(),a.addRange(o)))}})}}}),Tn(),e=c.getElement(),window.requestAnimationFrame(()=>{e.focus(),e.closest(`.field`)?.addEventListener(`Unmount`,u,{once:!0});let{parentElement:t}=e;if(t){let n=new MutationObserver(()=>{e.isConnected||(u(),n.disconnect())});n.observe(t,{childList:!0})}}),e}exportDOM(){return{element:this.createDOM()}}static importDOM(){let e={};return p&&(e[p]=()=>({conversion:e=>({node:new m(Object.fromEntries(o.map(({name:t})=>[t,e[t]??``])))}),priority:3})),t===`linked-image`&&Object.assign(e,{a:e=>{if(e.firstChild?.nodeName.toLowerCase()===`img`){let{href:t}=e,{src:n,alt:r,title:i}=e.firstChild;return{conversion:()=>({node:new m({src:n,alt:r,title:i,link:t}),after:()=>[]}),priority:4}}return null}}),e}updateDOM(){return!1}}return m}})),Vve,Hve=s((()=>{Rk(),Vve=({componentDef:e,CustomNode:t})=>{let{id:n,pattern:r,fromBlock:i,toBlock:a}=e,o=new RegExp(r.source,r.flags.replace(`g`,``)),s=e=>i?.(e)??e.groups??{},c=e=>e instanceof t&&e.getType()===n,l=e=>c(e)?a(Ik(e.__props??{})):null;return Fk(r)?{type:`multiline-element`,dependencies:[t],regExpStart:/^./,regExpEnd:{optional:!0,regExp:/.$/},handleImportAfterStartMatch:({lines:e,rootNode:n,startLineIndex:r})=>{let i=e.slice(r).join(`
|
|
951
951
|
`),[a]=i.match(o)??[];if(!a||!i.startsWith(a))return null;let c=a.match(o),l=r+a.split(`
|
|
@@ -1020,9 +1020,9 @@ Error generating stack: `+e.message+`
|
|
|
1020
1020
|
}.wrapper.svelte-1ibgz0y .combobox.error [role=combobox] {border-color:var(--sui-error-border-color);}.inner.svelte-1ibgz0y {display:contents;}.inner.svelte-1ibgz0y :is(.error, .error button[data-mode=edit]) {color:var(--sui-error-foreground-color) !important;}`}}));function Xbe(e,t){O(t,!0);let n=()=>j(t.thisPane,`$thisPane`,r),[r,i]=hn();{let r=e=>{UF(e,{name:`visibility`})},i=M(()=>X(`preview`)),a=M(()=>n()?.mode===`preview`);lI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get pressed(){return z(a)},onclick:()=>{mn(t.thisPane,{mode:n()?.mode===`preview`?`edit`:`preview`,locale:n()?.locale??``})},startIcon:r,$$slots:{startIcon:!0}})}k(),i()}var Zbe=s((()=>{Q(),Y(),Z(),G$()}));function Qbe(e,t){O(t,!0),K(e,cxe);let n=()=>j(W4,`$entryDraft`,c),r=()=>j(t.thisPane,`$thisPane`,c),i=()=>j(VA,`$isSmallScreen`,c),a=()=>j(HA,`$isMediumScreen`,c),o=()=>j(tN,`$prefs`,c),s=()=>j(kP,`$backend`,c),[c,l]=hn(),u=J(t,`thatPane`,19,()=>un(null)),d=M(()=>n()?.collection),f=M(()=>n()?.collectionFile),p=M(()=>n()?.originalEntry),m=M(()=>n()?.originalValues??{}),h=M(()=>(z(f)??z(d))?._i18n??Tb),g=M(()=>z(h).i18nEnabled),_=M(()=>z(h).saveAllLocales),v=M(()=>z(h).allLocales),y=M(()=>z(h).defaultLocale),b=M(()=>n()?.currentLocales[r()?.locale??``]),x=M(()=>Object.values(n()?.currentLocales??{}).filter(e=>e).length===1),S=M(()=>z(g)?z(v).filter(e=>e!==r()?.locale):[]),C=M(()=>!!z(S).length),w=M(()=>r()?.locale&&!(0,$be.default)(z(m)[r().locale],q4(jt(n()?.currentValues[r().locale])??{}))),ee=M(()=>n()?.canPreview??!0),T=M(()=>z(d)&&z(p)&&r()?.locale?JO(z(p),r().locale,z(d),z(f)):void 0);var te=sxe(),ne=F(te);{let e=M(()=>X(`secondary`));i$(ne,{variant:`secondary`,get"aria-label"(){return z(e)},children:(e,c)=>{var l=oxe(),d=I(l),f=e=>{var n=exe(),r=I(n);Wbe(r,{get id(){return t.id},get thisPane(){return t.thisPane},get thatPane(){return u()}});var o=L(r,2),s=e=>{Xbe(e,{get thisPane(){return t.thisPane}})};G(o,e=>{(i()||a())&&z(ee)&&e(s)}),U(e,n)},m=e=>{var t=txe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>r()?.mode===`preview`?X(`preview`):X(`edit`)]),U(e,t)},h=e=>{Xbe(e,{get thisPane(){return t.thisPane}})};G(d,e=>{z(g)&&z(v).length>1?e(f):i()||a()?z(ee)&&e(h,2):e(m,1)});var te=L(d,2);ZI(te,{flex:!0});var ne=L(te,2),re=e=>{let t=M(()=>cb(r().locale)??r().locale);var i=axe(),a=I(i),c=e=>{epe(e,{get locale(){return r().locale},get otherLocales(){return z(S)}})};G(a,e=>{z(C)&&e(c)});var l=L(a,2);{let e=e=>{{let i=M(()=>X(`content_options_x_locale`,{values:{locale:z(t)}}));ZL(e,{get"aria-label"(){return z(i)},children:(e,i)=>{var a=ixe(),c=I(a),l=e=>{z5(e,{get locale(){return r().locale},get otherLocales(){return z(S)}})};G(c,e=>{z(C)&&r()?.locale&&e(l)});var u=L(c,2);{let e=M(()=>X(`revert_changes`)),t=M(()=>!z(w));tR(u,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{t9({locale:r()?.locale})}})}var d=L(u,2),f=e=>{var i=nxe(),a=I(i);qI(a,{});var o=L(a,2);{let e=M(()=>X(z(b)?`disable_x_locale`:jt(n()?.currentValues[r().locale])?`reenable_x_locale`:`enable_x_locale`,{values:{locale:z(t)}})),i=M(()=>r().locale===z(y)||z(b)&&z(x));tR(o,{get label(){return z(e)},get disabled(){return z(i)},onclick:()=>{P7(r()?.locale??``)}})}U(e,i)};G(d,e=>{!z(_)&&r()?.locale&&e(f)});var m=L(d,2),h=e=>{var t=rxe(),n=I(t);qI(n,{});var i=L(n,2),a=e=>{{let t=M(()=>X(`view_on_live_site`));tR(e,{get label(){return z(t)},onclick:()=>{h1(z(T))}})}};G(i,e=>{z(T)&&e(a)});var c=L(i,2),l=e=>{{let t=M(()=>!s()?.repository?.blobBaseURL),n=M(()=>X(`view_on_x`,{values:{service:s()?.repository?.label},default:X(`view_in_repository`)}));tR(e,{get disabled(){return z(t)},get label(){return z(n)},onclick:()=>{z(p)&&r()&&h1(YO(z(p),r().locale))}})}};G(c,e=>{o().devModeEnabled&&e(l)}),U(e,t)};G(m,e=>{z(p)&&(z(T)||o().devModeEnabled)&&e(h)}),U(e,a)},$$slots:{default:!0}})}},i=M(()=>X(`show_content_options_x_locale`,{values:{locale:z(t)}}));VI(l,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},popup:e,$$slots:{popup:!0}})}U(e,i)};G(ne,e=>{r()?.mode===`edit`&&e(re)}),U(e,l)},$$slots:{default:!0}})}D(te),R(()=>q(te,`id`,t.id)),U(e,te),k(),l()}var $be,exe,txe,nxe,rxe,ixe,axe,oxe,sxe,cxe,lxe=s((()=>{Q(),Y(),Z(),G$(),$be=u(ZM()),ip(),B5(),tpe(),Ybe(),Zbe(),jP(),Y4(),F7(),n9(),XO(),fb(),Mb(),KA(),nN(),g1(),exe=V(`<!> <!>`,1),txe=V(`<h3 role="none"> </h3>`),nxe=V(`<!> <!>`,1),rxe=V(`<!> <!> <!>`,1),ixe=V(`<!> <!> <!> <!>`,1),axe=V(`<!> <!>`,1),oxe=V(`<!> <!> <!>`,1),sxe=V(`<div role="none" class="header svelte-uj56is"><!></div>`),cxe={hash:`svelte-uj56is`,code:`.header.svelte-uj56is {flex:none !important;}.header.svelte-uj56is > .sui.toolbar {margin-inline:auto;max-width:800px;}
|
|
1021
1021
|
@media (width < 768px) {.header.svelte-uj56is > .sui.toolbar {padding:0;}
|
|
1022
1022
|
}.header.svelte-uj56is > .sui.toolbar h3 {margin:0 8px;font-size:var(--sui-font-size-default);}`}}));function u9(e,t){let n=Ia();K(e,dxe);let r=J(t,`children`,3,void 0);var i=uxe(),a=F(i),o=F(a),s=F(o,!0);D(o),D(a);var c=L(a,2);Eo(F(c),()=>r()??E),D(c),D(i),R(()=>{q(i,`aria-labelledby`,`panel-${n}-label`),q(o,`id`,`panel-${n}-label`),W(s,t.title)}),U(e,i)}var uxe,dxe,d9=s((()=>{Q(),Y(),uxe=V(`<section role="group" class="panel svelte-1bq1or9"><header class="svelte-1bq1or9"><h3 class="svelte-1bq1or9"> </h3></header> <div class="svelte-1bq1or9"><!></div></section>`),dxe={hash:`svelte-1bq1or9`,code:`section.svelte-1bq1or9 {overflow:hidden;height:100%;display:flex;flex-direction:column;}header.svelte-1bq1or9 {flex:none;display:flex;align-items:center;border-bottom:1px solid var(--sui-secondary-border-color);padding:0 16px;height:var(--sui-primary-toolbar-size);}h3.svelte-1bq1or9 {font-size:var(--sui-font-size-x-large);}div.svelte-1bq1or9 {flex:auto;overflow:auto;}div.svelte-1bq1or9 h4 {display:flex;align-items:center;padding:12px 12px 8px;font-size:var(--sui-font-size-large);}div.svelte-1bq1or9 > .empty {padding:16px;}div.svelte-1bq1or9 .empty {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}div.svelte-1bq1or9 .sui.button.ref {display:flex;justify-content:flex-start;gap:8px;padding:8px;width:-moz-available;width:-webkit-fill-available;width:stretch;height:auto;}`}})),f9,fxe,pxe,mxe,hxe=s((()=>{Cp(),ip(),iF(),Uy(),Jb(),sk(),EO(),Pk(),f9=(e,t,n)=>{if(n)return Object.entries(e).filter(([e])=>RegExp(`^${_p(t)}\\.\\d+$`).test(e)).map(([,e])=>e);let r=e[t];return r==null?[]:[r]},fxe=(e,t,n)=>{let{collection:r,file:i}=e;if(!Gb(r))return new Set;let a=Mk({locale:n,fieldConfig:e,refEntries:i?A(Ry).filter(e=>Object.values(e.locales).some(({path:e})=>e.includes(i))):rk(r)}),o=e.value_field;if(!o||o===`{{slug}}`||o===`slug`)return new Set([t.slug]);let s=t.locales[n]?.content??Object.values(t.locales)[0]?.content??{};if(!o.includes(`{{`)&&!o.includes(`*`)){let e=s[o];return e==null?new Set:new Set([e])}let c=t.slug,l=new Set(a.filter(e=>String(e.value).includes(c)).map(e=>e.value));if(l.size===0){let e=s[o.replace(/^{{|}}$/g,``)];e!=null&&l.add(e)}return l},pxe=(e,t,n,r,i)=>i?Object.keys(e).filter(e=>i.test(e)).some(t=>f9(e,t,n).some(e=>r.has(e))):f9(e,t,n).some(e=>r.has(e)),mxe=({collectionName:e,fileName:t,entry:n})=>{let r=Gb(e);if(!r)return[];let{_i18n:{defaultLocale:i}}=r,a=[...rF.relationFields].filter(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t));if(a.length===0)return[];let o=new Map(a.map(({fieldConfig:e})=>[e,fxe(e,n,i)]));return a.flatMap(({fieldConfig:t,context:r})=>{let i=r.collection;if(!i||!(`name`in i))return[];let a=i.name,s=Gb(a);if(!s)return[];let c=s._i18n.defaultLocale,l=o.get(t)??new Set;if(l.size===0)return[];let u=(r.typedKeyPath??``).replace(/<[^>]+>/g,``).replace(/\.\*\./g,`.*.`).replace(/\.\*$/,`.*`),d=t.name,f=u.replace(/\*\./g,``).replace(/\*$/g,``)||d,p=f.includes(`*`)?RegExp(`^${_p(f).replace(/\\\*/g,`\\d+`)}$`):void 0;return(a===e?rk(a).filter(e=>e.slug!==n.slug):rk(a)).map(e=>{let n=e.locales[c]?.content??Object.values(e.locales)[0]?.content;if(!(!n||!pxe(n,f,!!t.multiple,l,p)))return{collectionName:a,collectionLabel:s.label??a,fieldLabel:t.label??d,entry:e,summary:TO(s,e)}}).filter(e=>!!e)})}}));function gxe(e,t){O(t,!0),K(e,bxe);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>{let e=n();return e?.originalEntry?mxe({collectionName:e.collectionName,fileName:e.fileName,entry:e.originalEntry}):[]}),o=M(()=>{let e=[];return z(a).forEach(t=>{let n=e.find(e=>e.collectionLabel===t.collectionLabel);n?n.items.push(t):e.push({collectionLabel:t.collectionLabel,items:[t]})}),e});{let t=M(()=>X(`entry_sidebar.backlinks.title`));u9(e,{get title(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=H();mo(I(t),17,()=>z(o),({collectionLabel:e,items:t})=>e,(e,t)=>{let n=()=>z(t).collectionLabel,r=()=>z(t).items;var i=vxe(),a=F(i),o=F(a,!0);D(a),mo(L(a,2),17,r,e=>e.entry.id,(e,t)=>{lI(e,{class:`ref`,variant:`ghost`,onclick:()=>{w1(`/collections/${z(t).collectionName}/entries/${z(t).entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{var r=_xe(),i=F(r,!0);D(r),R(()=>W(i,z(t).summary)),U(e,r)},$$slots:{default:!0}})}),D(i),R(()=>W(o,n())),U(e,i)}),U(e,t)},s=e=>{var t=yxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.backlinks.no_entries`)]),U(e,t)};G(r,e=>{z(a).length>0?e(i):e(s,-1)}),U(e,n)},$$slots:{default:!0}})}k(),i()}var _xe,vxe,yxe,bxe,xxe=s((()=>{Q(),Y(),Z(),G$(),d9(),D1(),Y4(),hxe(),_xe=V(`<span class="summary"> </span>`),vxe=V(`<section class="collection svelte-1lhuwki" role="group"><h4> </h4> <!></section>`),yxe=V(`<div class="empty"> </div>`),bxe={hash:`svelte-1lhuwki`,code:`.collection.svelte-1lhuwki {padding:4px;}.collection.svelte-1lhuwki:not(:first-child) {border-top:2px solid var(--sui-secondary-background-color);}`}})),p9,Sxe,Cxe,wxe=s((()=>{ip(),jP(),p9=new Map,Sxe=async e=>{let{id:t,locales:n}=e,r=p9.get(t);if(r)return r;let i=A(kP);if(!i?.fetchFileCommits)return{commits:[],loading:!1,error:!1};let a=[...new Set(Object.values(n).map(e=>e.path))];try{let e={commits:await i.fetchFileCommits(a),loading:!1,error:!1};return p9.set(t,e),e}catch{let e={commits:[],loading:!1,error:!0};return p9.set(t,e),e}},Cxe=e=>{p9.delete(e)}}));function Txe(e,t){O(t,!0),K(e,Nxe);let n=()=>j(W4,`$entryDraft`,i),r=()=>j(kP,`$backend`,i),[i,a]=hn(),o=N(Cr([])),s=N(!1),c=N(!1),l=async()=>{let e=n()?.originalEntry;e&&(P(s,!0),await(async e=>{P(o,e.commits,!0),P(c,e.error,!0)})(await Sxe(e)),P(s,!1))};ac(()=>{l()});{let t=M(()=>X(`entry_sidebar.history.title`));u9(e,{get title(){return z(t)},children:(e,t)=>{var n=H(),i=I(n),a=e=>{var t=Exe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`loading`)]),U(e,t)},l=e=>{var t=Dxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.history.fetch_failed`)]),U(e,t)},u=e=>{var t=jxe();mo(t,21,()=>z(o),e=>e.sha,(e,t)=>{let n=M(()=>r()?.repository?.commitBaseURL?`${r().repository.commitBaseURL}/${z(t).sha}`:void 0);{let r=M(()=>!z(n));lI(e,{class:`ref`,variant:`ghost`,role:`link`,get disabled(){return z(r)},onclick:()=>{z(n)&&h1(z(n))},children:(e,n)=>{var r=Axe(),i=I(r),a=e=>{var n=Oxe();R(()=>q(n,`src`,z(t).authorAvatarURL)),U(e,n)},o=e=>{U(e,kxe())};G(i,e=>{z(t).authorAvatarURL?e(a):e(o,-1)});var s=L(i,2),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u,!0);D(u),D(s),R(e=>{W(l,z(t).authorName),W(d,e)},[()=>iC(z(t).date,kh.current)]),U(e,r)},$$slots:{default:!0}})}}),D(t),U(e,t)},d=e=>{var t=Mxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.history.no_history`)]),U(e,t)};G(i,e=>{z(s)?e(a):z(c)?e(l,1):z(o).length>0?e(u,2):e(d,-1)}),U(e,n)},$$slots:{default:!0}})}k(),a()}var Exe,Dxe,Oxe,kxe,Axe,jxe,Mxe,Nxe,Pxe=s((()=>{Q(),Y(),Z(),G$(),sc(),d9(),jP(),Y4(),wxe(),aC(),g1(),Exe=V(`<div class="empty"> </div>`),Dxe=V(`<div class="empty"> </div>`),Oxe=V(`<img class="avatar svelte-14rpg2i" alt="" width="24" height="24" loading="lazy"/>`),kxe=V(`<span class="avatar placeholder svelte-14rpg2i" aria-hidden="true"></span>`),Axe=V(`<!> <span class="details svelte-14rpg2i"><span class="author svelte-14rpg2i"> </span> <span class="date svelte-14rpg2i"> </span></span>`,1),jxe=V(`<div role="list" class="commits svelte-14rpg2i"></div>`),Mxe=V(`<div class="empty"> </div>`),Nxe={hash:`svelte-14rpg2i`,code:`.commits.svelte-14rpg2i {padding:4px;}.avatar.svelte-14rpg2i {flex:none;width:24px;height:24px;border-radius:50%;background-color:var(--sui-secondary-background-color);}.details.svelte-14rpg2i {display:flex;flex-direction:column;gap:2px;overflow:hidden;font-size:var(--sui-font-size-small);}.author.svelte-14rpg2i {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.date.svelte-14rpg2i {color:var(--sui-tertiary-foreground-color);}`}}));function Fxe(e,t){O(t,!0),K(e,Vxe);let n=()=>j(W4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>n()??{}),o=M(()=>z(a).validationMessages),s=M(()=>z(a).collectionName),c=M(()=>z(a).fileName),l=M(()=>z(a).currentValues),u=M(()=>z(a).isIndexFile),d=M(()=>z(a).validities),f=M(()=>Object.values(z(d)??{}).some(e=>!!Object.keys(e).length)),p=M(()=>({collectionName:z(s),fileName:z(c),currentValues:z(l),isIndexFile:z(u)})),m=({locale:e,keyPath:t})=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:e,keyPath:t}},window.location.origin)};{let t=M(()=>X(`entry_sidebar.validation.title`));u9(e,{get title(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=H();mo(I(t),17,()=>Object.entries(z(o)),([e,t])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1],a=M(()=>z(l)?.[r()]),o=M(()=>cb(r()));var s=zxe(),c=F(s),u=e=>{var t=Ixe(),n=F(t,!0);D(t),R(()=>W(n,z(o))),U(e,t)};G(c,e=>{z(o)&&e(u)});var f=L(c,2),h=e=>{var t=H();mo(I(t),16,()=>Object.keys(z(a)),e=>e,(e,t)=>{let n=M(()=>fA({...z(p),valueMap:z(a),keyPath:t})),o=M(()=>i()[t]??[]);var s=H(),c=I(s),l=e=>{lI(e,{class:`ref`,variant:`ghost`,onclick:()=>{m({locale:r(),keyPath:t})},children:(e,t)=>{var r=Lxe(),i=I(r),a=F(i,!0);D(i),mo(L(i,2),17,()=>z(o),fo,(e,t)=>{V5(e,{live:`off`,children:(e,n)=>{_t();var r=Fa();R(()=>W(r,z(t))),U(e,r)},$$slots:{default:!0}})}),R(()=>W(a,z(n)?.label||z(n)?.name)),U(e,r)},$$slots:{default:!0}})};G(c,e=>{z(o).length&&e(l)}),U(e,s)}),U(e,t)},g=M(()=>Object.values(z(d)[r()]).some(e=>e.valid===!1)),_=e=>{var t=Rxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.validation.no_errors_found`)]),U(e,t)};G(f,e=>{z(g)?e(h):e(_,-1)}),D(s),U(e,s)}),U(e,t)},a=e=>{var t=Bxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.validation.placeholder`)]),U(e,t)};G(r,e=>{z(d)&&z(f)?e(i):e(a,-1)}),U(e,n)},$$slots:{default:!0}})}k(),i()}var Ixe,Lxe,Rxe,zxe,Bxe,Vxe,Hxe=s((()=>{Q(),Y(),Z(),G$(),H5(),d9(),Y4(),yA(),fb(),Ixe=V(`<h4 class="svelte-mwf2jd"> </h4>`),Lxe=V(`<span class="summary svelte-mwf2jd"> </span> <!>`,1),Rxe=V(`<div class="empty svelte-mwf2jd"> </div>`),zxe=V(`<section class="locale svelte-mwf2jd" role="group"><!> <!></section>`),Bxe=V(`<div class="empty"> </div>`),Vxe={hash:`svelte-mwf2jd`,code:`.locale.svelte-mwf2jd {padding:4px;}.locale.svelte-mwf2jd:not(:first-child) {border-top:2px solid var(--sui-secondary-background-color);}.locale.svelte-mwf2jd h4:where(.svelte-mwf2jd),
|
|
1023
|
-
.locale.svelte-mwf2jd .empty:where(.svelte-mwf2jd) {margin:0 !important;padding:12px;}.locale.svelte-mwf2jd .summary:where(.svelte-mwf2jd) {display:block;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-heading-font-weight);}.locale.svelte-mwf2jd .sui.button.ref {flex-direction:column;align-items:flex-start;gap:4px;}`}}));function Uxe(e,t){O(t,!0),K(e,Kxe);let n=()=>j(W4,`$entryDraft`,a),r=()=>j(kP,`$backend`,a),i=()=>j(s9,`$entryEditorSettings`,a),[a,o]=hn(),s=M(()=>{let e=n()?.collectionName,t=n()?.fileName;return e?[...rF.relationFields].some(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t)):!1}),c=M(()=>[{key:`validation`,label:X(`entry_sidebar.validation.title`),icon:`task_alt`,disabled:!1,panel:Fxe},{key:`history`,label:X(`entry_sidebar.history.title`),icon:`history`,disabled:!r()?.isGit||!!n()?.isNew,panel:Txe},{key:`backlinks`,label:X(`entry_sidebar.backlinks.title`),icon:`article_shortcut`,disabled:!z(s),panel:gxe}]),l=N(Cr(i()?.sidebarPanel??null)),u=M(()=>z(l)?z(c).find(e=>e.key===z(l))??z(c)[0]:null);ti(()=>{s9.update((e={})=>({...e,sidebarPanel:z(l)}))});var d=Gxe(),f=F(d);{let e=M(()=>X(`entry_sidebar.sidebar_panels`));LI(f,{class:`tabs`,get"aria-label"(){return z(e)},"aria-controls":`entry-sidebar-content`,children:(e,t)=>{var n=H();mo(I(n),17,()=>z(c),({key:e,label:t,icon:n,disabled:r})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).disabled;{let t=M(()=>z(u)?.key===n());BI(e,{iconic:!0,get"aria-label"(){return r()},get selected(){return z(t)},get disabled(){return a()},onclick:()=>{P(l,z(l)===n()?null:n(),!0)},children:(e,t)=>{UF(e,{get name(){return i()}})},$$slots:{default:!0}})}}),U(e,n)},$$slots:{default:!0}})}var p=L(f,2),m=e=>{var t=Wxe();Oo(F(t),()=>z(u).panel,(e,t)=>{t(e,{})}),D(t),U(e,t)};G(p,e=>{z(u)&&e(m)}),D(d),U(e,d),k(),o()}var Wxe,Gxe,Kxe,qxe=s((()=>{Q(),Y(),Z(),G$(),xxe(),Pxe(),Hxe(),jP(),iF(),Y4(),l9(),Wxe=V(`<div role="none" class="content svelte-19e8zut" id="entry-sidebar-content"><!></div>`),Gxe=V(`<div role="none" class="sidebar svelte-19e8zut"><!> <!></div>`),Kxe={hash:`svelte-19e8zut`,code:`.sidebar.svelte-19e8zut {flex:none;display:flex;flex-direction:row-reverse;}.sidebar.svelte-19e8zut .tabs {flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;padding:8px 0;width:48px;}.sidebar.svelte-19e8zut .tabs button {border-radius:4px !important;}.content.svelte-19e8zut {flex:none;width:320px;margin-inline-start:8px;border-radius:16px 16px 0 0;background-color:var(--sui-primary-background-color);}`}}));function Jxe(e,t){let n=Ia();O(t,!0),K(e,$xe);let r=()=>j(W4,`$entryDraft`,i),[i,a]=hn(),o=J(t,`open`,15,!1),s=M(()=>r()?.collectionName??``),c=M(()=>r()?.currentSlugs??{}),l=N(Cr([])),u=Cr({}),d=Cr({}),f=()=>{let e=new Set(Object.values(z(c)));P(l,rk(z(s)).flatMap(e=>Object.values(e.locales).map(({slug:e})=>e)).filter(t=>!e.has(t)),!0),Object.assign(u,z(c)),Object.assign(d,Object.fromEntries(Object.keys(z(c)).map(e=>[e,!1])))};ti(()=>{o()&&f()});{let t=M(()=>X(`edit_slug`)),i=M(()=>X(`update`)),a=M(()=>(0,Yxe.default)(z(c),u)||Object.values(d).some(e=>e!==!1));sL(e,{get title(){return z(t)},get okLabel(){return z(i)},get okDisabled(){return z(a)},onOk:()=>{_n(W4,B(r).currentSlugs=u,B(r))},get open(){return o()},set open(e){o(e)},children:(e,t)=>{var r=Qxe(),i=I(r);lo(i,()=>({"--font-size":`var(--sui-font-size-small)`})),GF(i.lastChild,{status:`warning`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`edit_slug_warning`)]),U(e,n)},$$slots:{default:!0}}),D(i);var a=L(i,2);mo(a,20,()=>Object.keys(u),e=>e,(e,t)=>{var r=Zxe(),i=F(r),a=e=>{var n=Xxe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>cb(t)??t]),U(e,n)},o=M(()=>![`_`,`_default`].includes(t));G(i,e=>{z(o)&&e(a)});var s=L(i,2),c=F(s);{let e=M(()=>d[t]!==!1);_L(c,{dir:`auto`,flex:!0,oninput:()=>{d[t]=u[t].trim()?z(l).includes(u[t])?`duplicate`:!1:`empty`},get invalid(){return z(e)},get"aria-errormessage"(){return`${n}-${t??``}-error`},get value(){return u[t]},set value(e){u[t]=e}})}var f=L(c,2),p=F(f),m=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`edit_slug_error.empty`)]),U(e,t)};G(p,e=>{d[t]===`empty`&&e(m)});var h=L(p,2),g=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`edit_slug_error.duplicate`)]),U(e,t)};G(h,e=>{d[t]===`duplicate`&&e(g)}),D(f),D(s),D(r),R(()=>q(f,`id`,`${n}-${t??``}-error`)),U(e,r)}),D(a),U(e,r)},$$slots:{default:!0}})}k(),a()}var Yxe,Xxe,Zxe,Qxe,$xe,eSe=s((()=>{Q(),Y(),Z(),G$(),Yxe=u(ZM()),sk(),Y4(),fb(),Xxe=V(`<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>`),Zxe=V(`<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>`),Qxe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>`,1),$xe={hash:`svelte-wdavy7`,code:`p.svelte-wdavy7:not(:empty) {margin-top:0;}.locales.svelte-wdavy7 {display:table;margin:16px 0 0;width:100%;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) {display:table-row;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) div:where(.svelte-wdavy7) {display:table-cell;vertical-align:middle;white-space:nowrap;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) div:where(.svelte-wdavy7):last-child {width:90%;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) h3:where(.svelte-wdavy7) {margin-inline-end:8px;font-size:inherit;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) p.error:where(.svelte-wdavy7) {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}`}})),tSe,m9,nSe=s((()=>{fS(),lS(),ip(),EF(),jP(),G0(),Uy(),Jb(),R0(),V4(),l3(),tSe=({ids:e,assetPaths:t})=>{let n=A(Ry),r=new Set(e);if(Ry.set(n.filter(e=>!r.has(e.id))),L0.set({...I0,deleted:!0,count:e.length}),t.length){let e=new Set(t);dF.update(t=>t.filter(t=>!e.has(t.path)))}},m9=async(e,t=[])=>{let n=A(kP)?.repository?.databaseName,r=n?new oS(n,`file-cache`):void 0,i=[],a=`delete`,o=await Promise.all(e.map(async({id:e,locales:t,slug:n})=>{let o=dS(Object.values(t).map(e=>e.path));return await Promise.all(o.map(async e=>{let t=await a3({cacheDB:r,previousPath:e});i.push({action:a,slug:n,path:e,previousSha:t})})),e})),s=t.map(({path:e,sha:t})=>(i.push({action:a,path:e,previousSha:t}),e)),{changes:c,savingEntries:l}=await B4(A(Nb),{excludeIds:new Set(e.map(({id:e})=>e)),cacheDB:r});i.push(...c),await W0({changes:i,savingEntries:l,options:{commitType:`delete`,collection:A(Nb)}}),tSe({ids:o,assetPaths:s})}})),h9,rSe=s((()=>{p(),h9=(e,t)=>{if(Array.isArray(e))return{options:e};if(d(e)){let n=e[t],r=e.default;if(Array.isArray(n)){let e=r?n.find(({name:e})=>e===r):void 0;return{options:n,default:e?{field:e.field,pattern:e.pattern}:void 0}}}return{options:[]}}})),g9,iSe,aSe,oSe,sSe=s((()=>{ip(),Z$(),Jb(),M9(),rSe(),yA(),$O(),g9=e=>h9(e,`filters`),iSe=(e,t,n)=>{let{name:r,view_filters:i=[],_i18n:{defaultLocale:a}}=t,{options:o}=g9(i),s=n.filter(({field:e,pattern:t})=>e!==void 0&&t!==void 0&&o.some(n=>n.field===e&&String(n.pattern)===String(t))).map(({field:e,pattern:t})=>({field:e,pattern:t,regex:QO(t)}));return e.filter(e=>s.every(({field:t,pattern:n,regex:i})=>{let o={entry:e,locale:a,collectionName:r,key:t},s=vA({...o,resolveRef:!1}),c=vA({...o});return s===void 0||c===void 0?!1:J$(s,n,i)||J$(c,n,i)}))},aSe=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=g9(e.view_filters);t(n),S9.update(e=>({...e,filters:e.filters??(r?[r]:void 0)}))},oSe=dn([Nb],([e],t)=>{aSe(e,t)})})),cSe,lSe,uSe,dSe,fSe=s((()=>{Z(),ip(),Z$(),Jb(),M9(),rSe(),yA(),cSe=e=>h9(e,`groups`),lSe=(e,t,n)=>{let{field:r,pattern:i}=n??{field:``,pattern:void 0};if(!r)return e.length?[{name:`*`,entries:e}]:[];let{name:a,_i18n:{defaultLocale:o}}=t,s=A(S9).sort,c=q$(e,i,e=>vA({entry:e,locale:o,collectionName:a,key:r}),X(`other`)).map(([e,t])=>({name:e,entries:t}));return s?.key===r&&s.order===`descending`&&c.reverse(),c},uSe=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=cSe(e.view_groups);t(n),S9.update(e=>({...e,group:e.group===void 0?r:e.group}))},dSe=dn([Nb],([e],t)=>{uSe(e,t)})})),pSe,_9,mSe,hSe=s((()=>{pSe=u(ZM(),1),ip(),Z$(),Jb(),M9(),_9=un(),mSe=async({repository:e})=>{await X$(e,`contents-view`,_9),S9.subscribe(e=>{let{name:t}=A(Nb)??{},n=A(_9)?.[t??``]??{};t&&!(0,pSe.default)(e,n)&&_9.update(n=>({...n,[t]:e}))})}})),gSe,v9,y9,b9,x9,_Se,vSe,ySe,bSe,xSe,SSe,CSe=s((()=>{Z(),fS(),p(),gSe=u(ZM(),1),ip(),j6(),Uy(),Jb(),V4(),M9(),hSe(),yA(),v9=[`title`,`name`,`date`,`author`,`description`],y9={slug:String,commit_author:String,commit_date:Date,_summary:String,_manual:String},b9=Object.keys(y9),x9=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),_Se=e=>{if(x9(e))return{keys:e};if(d(e)){let{fields:t,default:n}=e;return x9(t)?d(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}},vSe=e=>e?{keys:[e,...v9.filter(t=>t!==e)],defaultKey:e}:{keys:[...v9]},ySe=({collection:e,isCommitAuthorAvailable:t,isCommitDateAvailable:n})=>{let{name:r,identifier_field:i,sortable_fields:a,summary:o}=e,{keys:s,defaultKey:c,defaultOrder:l}=a?_Se(a):vSe(i);o&&s.unshift(`_summary`);let u=s.includes(`commit_author`),d=s.includes(`commit_date`);t?!s.includes(`author`)&&!u&&s.push(`commit_author`):u&&(s=s.filter(e=>e!==`commit_author`)),n?!s.includes(`date`)&&!d&&s.push(`commit_date`):d&&(s=s.filter(e=>e!==`commit_date`)),s=dS(s).filter(e=>!!e&&(b9.includes(e)||!!fA({collectionName:r,keyPath:e})));let f=k4(e);return f&&(s=s.filter(e=>e!==f),s.includes(`_manual`)||s.unshift(`_manual`),c=`_manual`,l=`ascending`),c=c&&s.includes(c)?c:s[0],l??=c?`ascending`:void 0,{keys:s,default:{key:c,order:l}}},bSe=({key:e,fieldConfig:t})=>{if(e in y9)return y9[e];if(t?.widget===`boolean`)return Boolean;if(t?.widget===`number`){let{value_type:e=`int`}=t;if(e===`int`||e===`float`)return Number}return String},xSe=({collection:e,key:t})=>[...b9,`name`].includes(t)?X(`sort_keys.${t}`):t.includes(`.`)?t.split(`.`).map((t,n,r)=>{if(/^\d+$/.test(t))return;let i=r.slice(0,n+1).join(`.`);return fA({collectionName:e.name,keyPath:i})?.label||t}).filter(Boolean).join(` – `):e.fields?.find(({name:e})=>e===t)?.label||t,SSe=dn([Nb,Ry,k6],([e,t],n)=>{if(!e||!(`folder`in e)){n([]);return}let r=A(_9)?.[e.name]??{type:`list`},{keys:i,default:a}=ySe({collection:e,isCommitAuthorAvailable:t.some(e=>!!e.commitAuthor),isCommitDateAvailable:t.some(e=>!!e.commitDate)});r.sort??=a,n(i.map(t=>({key:t,label:xSe({collection:e,key:t})}))),(0,gSe.default)(r,A(S9))||S9.set(r)})})),wSe,TSe=s((()=>{wSe=e=>{let t=e,n=!0;for(;n;){let e=t;t=t.replaceAll(/([_*`~])([^_*`~]+)\1/g,`$2`),t=t.replaceAll(/([_*`~]{2,})(.+?)\1/g,`$2`),n=t!==e}return t}})),ESe,DSe,OSe,kSe=s((()=>{Z$(),ib(),V4(),CSe(),yA(),EO(),hC(),TSe(),ESe=[`title`,`summary`,`description`],DSe=({key:e,type:t,collection:n,locale:r,collectionName:i,dateFieldConfig:a,isMarkdownField:o})=>e===`_summary`?e=>TO(n,e,{locale:r,useTemplate:!0}):a?t=>{let n=vA({entry:t,locale:r,collectionName:i,key:e});return n?Number(uC(n,a)??0):0}:t===String?t=>{let n=vA({entry:t,locale:r,collectionName:i,key:e}),a=n?String(n):``;return o?wSe(a):a}:t=>{let n=vA({entry:t,locale:r,collectionName:i,key:e});return Number(n??0)},OSe=(e,t,{key:n,order:r}={})=>{let i=[...e];if(n===void 0)return i;let{name:a,_i18n:{defaultLocale:o}}=t,s=k4(t),c=n===`_manual`?s??n:n,l=fA({collectionName:a,keyPath:c}),u=n===`_manual`||c===s?Number:bSe({key:n,fieldConfig:l}),d=l?.widget===`datetime`?l:void 0,f=DSe({key:c,type:u,collection:t,locale:o,collectionName:a,dateFieldConfig:d,isMarkdownField:l?.widget===`richtext`||l?.widget===`markdown`||ESe.includes(n)}),p=Object.fromEntries(i.map(e=>[e.slug,f(e)]));Y$(i,e=>p[e.slug],!d&&u===String,r);let m=nb(t)?.name;if(m){let e=i.findIndex(e=>e.slug===m);e>-1&&i.unshift(i.splice(e,1)[0])}return i}})),S9,C9,w9,T9,E9,D9,ASe,O9,k9,A9,j9,M9=s((()=>{ip(),j6(),jP(),Uy(),Jb(),sk(),Zy(),sSe(),fSe(),hSe(),kSe(),nN(),S9=un({type:`list`}),C9=un(!1),w9=un([]),T9=un(!1),D9=dn([Ry,Nb],([e,t],n)=>{n(e&&t?rk(t.name):[])}),ASe=5,O9=dn([D9,Nb],([e,t])=>{if(t?._type===`entry`){let n=t.create??!0,r=t.delete??!0,i=!!t.reorder,a=t?.limit??1/0,o=a<1/0?a-e.length:1/0;return{isEntryCollection:!0,canCreate:n,canDelete:r,canReorder:i,quota:a,remaining:o,nearingQuota:o>0&&o<=ASe,creationDisabled:!n||o<=0}}return{isEntryCollection:!1,canCreate:!1,canDelete:!1,canReorder:!1,quota:1/0,remaining:1/0,nearingQuota:!1,creationDisabled:!1}}),k9=void 0,A9=void 0,j9=dn([D9,S9,k6],([e,t],n)=>{if(e===k9&&t===A9)return;k9=e,A9=t;let r=A(Nb),i=[...e];if(!i.length||Jy(r,i[0]).length){n([]);return}t.sort&&(i=OSe(i,r,t.sort)),t.filters&&(i=iSe(i,r,t.filters)),n(lSe(i,r,t.group))}),C9.subscribe(e=>{if(!e){w9.set([]),T9.set(!1),E9&&=(S9.set(E9),void 0);return}let t=A(S9);E9=t;let n={};t.sort?.key!==`_manual`&&(n.sort={key:`_manual`,order:`ascending`}),t.filters?.length&&(n.filters=[]),t.group&&(n.group=null),Object.keys(n).length&&S9.set({...t,...n})}),kP.subscribe(e=>{e&&!A(_9)&&mSe(e)}),D9.subscribe(e=>{tk.set([]),A(tN).devModeEnabled&&console.info(`listedEntries`,e)}),Nb.subscribe(e=>{E9=void 0,C9.set(!1),e&&A(tN).devModeEnabled&&console.info(`selectedCollection`,e)})})),jSe,N9,P9,F9=s((()=>{ip(),iF(),ib(),Y4(),H8(),O8(),C7(),jSe=`{{fields._slug | localize}}`,N9=({collection:e,collectionFile:t,originalSlugs:n})=>{let r=e._type===`entry`,{allLocales:i,defaultLocale:a}=(t??e)._i18n;if(!r)return Object.fromEntries(i.map(e=>[e,!1]));let{identifier_field:o=`title`,slug:s=`{{${o}}}`}=e,c=s.includes(jSe),l=s.includes(`{{fields._slug}}`)||c;return Object.fromEntries(i.map(e=>!l||n._||n[e]?[e,!1]:[e,e===a||c||`readonly`]))},P9=({collection:e,collectionFile:t,originalEntry:n={},dynamicValues:r,extraValues:i,expanderStates:a,isIndexFile:o=rb(e,n)})=>{let s=e.name,c=t?.name,{id:l,slug:u,locales:d}=n,f=l===void 0,{fields:p=[],_i18n:m}=t??e,h=o?nb(e):void 0,g=h?.fields??p,_=h?.editor?.preview??t?.editor?.preview??e.editor?.preview??A($P)?.editor?.preview??!0,{allLocales:v,initialLocales:y,defaultLocale:b,canonicalSlug:{key:x}}=m,S=f?y:v.filter(e=>!!d?.[e]?.content),C=Object.fromEntries(v.map(e=>[e,S.includes(e)])),w=f?{}:x in(d?.[b]?.content??{})?Object.fromEntries(v.map(e=>[e,d?.[e]?.slug])):{_:d?.[b].slug},ee=Object.fromEntries(S.map(e=>f?[e,S7({fields:g,locale:e,defaultLocale:b,dynamicValues:r})]:[e,structuredClone(d?.[e]?.content)]));W4.set({id:f?crypto.randomUUID():l,createdAt:Date.now(),isNew:f,isIndexFile:o,canPreview:_,collectionName:s,collection:e,fileName:c,collectionFile:t,fields:g,originalEntry:f?void 0:n,defaultLocale:b,originalLocales:C,currentLocales:structuredClone(C),originalSlugs:w,currentSlugs:structuredClone(w),originalValues:ee,currentValues:Object.fromEntries(S.map(e=>[e,D8({draft:{collectionName:s,fileName:c,isIndexFile:o},locale:e,target:structuredClone(ee[e])})])),files:{},extraValues:i??Object.fromEntries(v.map(e=>[e,{}])),validities:Object.fromEntries(v.map(e=>[e,{}])),validationMessages:Object.fromEntries(v.map(e=>[e,{}])),expanderStates:a??{_:{}},slugEditor:N9({collection:e,collectionFile:t,originalSlugs:w})}),R8({collectionName:s,fileName:c,slug:u})}})),MSe,NSe=s((()=>{ip(),V4(),Y4(),F9(),HF(),yA(),Sge(),Qye(),MSe=()=>{let e=A(W4),{collectionName:t,fileName:n,collection:r,collectionFile:i,currentValues:a,validities:o,isIndexFile:s}=e,{defaultLocale:c,canonicalSlug:{key:l}}=(i??r)._i18n,u=k4(r);Object.entries(a).forEach(([e,r])=>{delete r[l],u&&delete r[u];let i={collectionName:t,fileName:n,valueMap:r,isIndexFile:s};Object.keys(r).forEach(t=>{let n=fA({...i,keyPath:t});if(n?.widget===`uuid`&&(e===c||[!0,`translate`].includes(n?.i18n??!1))&&(r[t]=X7(n)),n?.widget===`hidden`){if(Array.isArray(n.default)&&t.match(/\.\d+$/)&&(delete r[t],t=t.replace(/\.\d+$/,``),t in r))return;(e===c||[!0,`translate`].includes(n?.i18n??!1))&&Object.assign(r,v7({fieldConfig:n,keyPath:t,locale:e,defaultLocale:c}))}})}),Object.keys(o).forEach(e=>{o[e]={}}),W4.set({...e,id:crypto.randomUUID(),createdAt:Date.now(),isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{},slugEditor:N9({collection:r,collectionFile:i,originalSlugs:{}})}),FF.set(!0)}})),PSe,FSe=s((()=>{ip(),Y4(),PSe=()=>{let{currentLocales:e,currentSlugs:t,slugEditor:n}=A(W4),r={},i=!0;return Object.entries(t).forEach(([t,a])=>{let o=!!e?.[t]&&!!n[t]&&!a?.trim();o&&(i=!1),r[t]={_slug:{valueMissing:o,valid:!o}}}),{valid:i,validities:r}}})),ISe,LSe=s((()=>{Y4(),jve(),FSe(),ISe=()=>{let{valid:e,validities:t,validationMessages:n}=G7(`currentValues`),{valid:r,validities:i,validationMessages:a}=G7(`extraValues`),{valid:o,validities:s}=PSe();return W4.update(e=>({...e,validities:Object.fromEntries(Object.keys(t).map(e=>[e,{...t[e],...i[e],...s[e]}])),validationMessages:Object.fromEntries(Object.keys(n).map(e=>[e,{...n[e],...a[e]}]))})),e&&r&&o}})),RSe,zSe,BSe,VSe=s((()=>{ip(),jP(),Y2(),G0(),R0(),sk(),V4(),Y4(),H8(),NF(),l3(),d4(),LSe(),A7(),wxe(),RSe=({skipCI:e})=>{let t=A(q2)&&!(e??A(J2));L0.set({...I0,saved:!0,published:t,count:1}),AP.set(t)},zSe=e=>{let{collection:t,collectionFile:n,currentValues:r}=e,i=k4(t);if(!i)return;let{defaultLocale:a}=(n??t)._i18n,o=rk(t.name).reduce((e,t)=>{let n=Number(t.locales[a]?.content?.[i]);return Number.isFinite(n)&&n>e?n:e},0)+1;Object.values(r).forEach(e=>{e[i]=o})},BSe=async({skipCI:e=void 0}={})=>{let t=A(W4),{isNew:n,collection:r,collectionName:i,fileName:a,currentValues:o,originalEntry:s}=t;if(!ISe())throw zge({collectionName:i,fileName:a,currentValues:o}),Error(`validation_failed`);n&&r._type===`entry`&&zSe(t);let c=u4({draft:t}),{defaultLocaleSlug:l}=c,{savingEntry:u,changes:d,savingAssets:f}=await c3({draft:t,slugs:c}),p;try{p=await W0({changes:d,savingEntries:[u],savingAssets:f,options:{commitType:n?`create`:`update`,collection:r,skipCI:e}})}catch(e){throw console.error(e.cause??e),Error(`saving_failed`,{cause:e.cause??e})}return await MF({type:`postSave`,draft:t,savingEntry:u}),RSe({skipCI:e}),P8(i,n?``:l),s&&Cxe(s.id),p.savedEntries[0]}}));function HSe(e,t){O(t,!0),K(e,YSe);let n=()=>j(W4,`$entryDraft`,f),r=()=>j(J4,`$entryDraftModified`,f),i=()=>j(tN,`$prefs`,f),a=()=>j(VA,`$isSmallScreen`,f),o=()=>j(O9,`$collectionState`,f),s=()=>j(HA,`$isMediumScreen`,f),c=()=>j(s9,`$entryEditorSettings`,f),l=()=>j(q2,`$skipCIConfigured`,f),u=()=>j(J2,`$skipCIEnabled`,f),d=()=>j(LF,`$copyFromLocaleToast`,f),[f,p]=hn(),m=e=>{let t=M(()=>a()?tR:lI),n=M(()=>!z(ee)&&z(te)?.duplicate!==!1&&!o().creationDisabled&&!z(te)?.path),r=M(()=>z(te)?.delete!==!1);var i=I9(),s=I(i),c=e=>{var n=H(),r=I(n);{let e=M(()=>X(`duplicate`)),n=M(()=>X(`duplicate_entry`));Oo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{w1(`/collections/${z(oe)}/new`,{replaceState:!0,notifyChange:!1,transitionType:`forwards`}),MSe()}})})}U(e,n)};G(s,e=>{z(n)&&e(c)});var l=L(s,2),u=e=>{var n=H(),r=I(n);{let e=M(()=>X(`delete`)),n=M(()=>X(`delete_entry`));Oo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{P(v,!0)}})})}U(e,n)};G(l,e=>{z(r)&&e(u)}),U(e,i)},h=J(t,`disabled`,3,!1),g=N(!1),_=N(!1),v=N(!1),y=N(!1),b=N(``),x=N(!1),S=N(void 0),C=M(()=>n()===void 0),w=M(()=>n()?.isNew??!0),ee=M(()=>n()?.isIndexFile??!1),T=M(()=>n()?.collection),te=M(()=>z(T)?._type===`entry`?z(T):void 0),ne=M(()=>n()?.collectionFile),re=M(()=>n()?.originalEntry),ie=M(()=>(z(ne)??z(T))?._i18n??Tb),ae=M(()=>z(ie).defaultLocale),oe=M(()=>z(T)?.name),se=M(()=>z(ne)?.name),ce=M(()=>kh.current&&z(T)?Kb(z(T)):``),le=M(()=>kh.current&&z(T)?Kb(z(T),{useSingular:!0}):``),ue=M(()=>n()?.canPreview??!0),de=M(()=>z(w)||r()),fe=M(()=>Object.values(n()?.validities??{}).flatMap(e=>Object.values(e).map(({valid:e})=>!e)).filter(Boolean).length),E=M(()=>z(oe)&&z(re)&&zp({collectionName:z(oe),fileName:z(se)})?.entryRelative?OF({entry:z(re),collectionName:z(oe),fileName:z(se),relative:!0}):[]),pe=M(()=>z(T)&&z(re)?JO(z(re),z(ae),z(T),z(ne)):void 0),me=()=>{T1(z(oe)===`_singletons`?`/collections`:`/collections/${z(oe)}`)},he=async({skipCI:e=void 0}={})=>{if(P(x,!0),z(T))try{let t=await BSe({skipCI:e});i()?.closeOnSave??!0?(me(),mn(W4,null)):(z(w)&&w1(`/collections/${z(oe)}/entries/${t.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:`backwards`}),P9({collection:z(T),collectionFile:z(ne),originalEntry:t,extraValues:n()?.extraValues,expanderStates:n()?.expanderStates}))}catch(e){e.message===`validation_failed`?P(g,!0):e.message===`saving_failed`?(P(y,!0),P(b,e.cause?.message??e.message??X(`unexpected_error`),!0)):(P(y,!0),P(b,``),console.error(e))}finally{P(x,!1)}};var ge=JSe(),_e=I(ge);{let e=M(()=>X(`primary`));i$(_e,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var r=GSe(),o=I(r);{let e=M(()=>X(`cancel_editing`));r2(o,{get"aria-label"(){return z(e)},get useShortcut(){return i().closeWithEscape},onclick:()=>{me()}})}var d=L(o,2),f=F(d),p=e=>{ZF(e,{children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`create_entry_title`,{values:{name:z(le)}})]),U(e,t)},o=e=>{let t=M(()=>z(ne)?qy(z(ne)):z(T)&&z(re)&&kh.current?TO(z(T),z(re)):``);var n=H(),r=I(n),i=e=>{var n=Fa();R(()=>W(n,z(t))),U(e,n)},o=e=>{var n=Fa();R(e=>W(n,e),[()=>X(`edit_entry_title`,{values:{collection:z(ce),entry:z(t)}})]),U(e,n)};G(r,e=>{a()?e(i):e(o,-1)}),U(e,n)};G(r,e=>{z(w)?e(i):e(o,-1)}),U(e,n)},$$slots:{default:!0}})};G(f,e=>{z(C)||e(p)}),D(d);var g=L(d,2),v=e=>{{let t=M(()=>X(`view_on_live_site`));lI(e,{variant:`tertiary`,get label(){return z(t)},onclick:()=>{h1(z(pe))}})}};G(g,e=>{!h()&&z(pe)&&e(v)});var y=L(g,2),b=e=>{m(e)};G(y,e=>{!a()&&!h()&&!z(ne)&&!z(w)&&e(b)});var ie=L(y,2);{let e=e=>{{let t=M(()=>X(`editor_options`));ZL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=WSe(),i=I(r),o=e=>{m(e)};G(i,e=>{a()&&!h()&&!z(ne)&&!z(w)&&e(o)});var l=L(i,2);{let e=M(()=>X(`edit_slug`)),t=M(()=>!!z(ne)||z(w)||z(ee)||z(te)?.delete===!1);tR(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{P(_,!0)}})}var u=L(l,2);{let e=M(()=>X(`revert_all_changes`)),t=M(()=>!z(de));tR(u,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{t9()}})}var d=L(u,2),f=e=>{var t=USe(),r=I(t);qI(r,{});var i=L(r,2);{let e=M(()=>X(`show_preview`)),t=M(()=>c()?.showPreview),n=M(()=>!z(ue));sR(i,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(n)},onChange:()=>{s9.update((e={})=>({...e,showPreview:!e.showPreview}))}})}var a=L(i,2);{let e=M(()=>X(`sync_scrolling`)),t=M(()=>c()?.syncScrolling),r=M(()=>!z(ue)&&Object.keys(n()?.currentValues??{}).length===1);sR(a,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(r)},onChange:()=>{s9.update((e={})=>({...e,syncScrolling:!e.syncScrolling}))}})}U(e,t)};G(d,e=>{a()||s()||e(f)}),U(e,r)},$$slots:{default:!0}})}},t=M(()=>X(`show_editor_options`));Ws(VI(ie,{get disabled(){return h()},variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(t)},popup:e,$$slots:{popup:!0}}),e=>P(S,e,!0),()=>z(S))}var ae=L(ie,2),oe=e=>{{let t=e=>{ZL(e,{children:(e,t)=>{{let t=M(()=>X(u()?`save_and_publish`:`save_without_publishing`));tR(e,{get label(){return z(t)},onclick:()=>{he({skipCI:!u()})}})}},$$slots:{default:!0}})},n=M(()=>X(u()?z(x)?`saving`:`save`:z(x)?`publishing`:`publish`)),r=M(()=>h()||!z(de)||z(x));WI(e,{variant:`primary`,get label(){return z(n)},get disabled(){return z(r)},keyShortcuts:`Accel+S`,onclick:()=>{he()},popup:t,$$slots:{popup:!0}})}},se=e=>{{let t=M(()=>X(z(x)?`saving`:`save`)),n=M(()=>h()||!z(de)||z(x));lI(e,{variant:`primary`,get label(){return z(t)},get disabled(){return z(n)},keyShortcuts:`Accel+S`,onclick:()=>{he()}})}};G(ae,e=>{l()?e(oe):e(se,-1)}),U(e,r)},$$slots:{default:!0}})}var ve=L(_e,2);oz(ve,{get show(){return z(g)},set show(e){P(g,e,!0)},children:(e,t)=>{GF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entry_validation_errors`,{values:{count:z(fe)}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var ye=L(ve,2);oz(ye,{get id(){return d().id},get show(){return d().show},set show(e){_n(LF,B(d).show=e,B(d))},children:(e,t)=>{let n=M(()=>{let{status:e,message:t,count:n,sourceLanguage:r}=d();return{status:e,message:t,count:n,sourceLanguage:r}});GF(e,{get status(){return z(n).status},children:(e,t)=>{_t();var r=Fa();R(e=>W(r,e),[()=>X(`editor.${z(n).message}`,{values:{count:z(n).count,source:z(n).sourceLanguage?cb(z(n).sourceLanguage)??z(n).sourceLanguage:``}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=L(ye,2);Jxe(be,{get open(){return z(_)},set open(e){P(_,e,!0)}});var xe=L(be,2);{let e=M(()=>X(`delete_entry`)),t=M(()=>X(`delete`));gL(xe,{get title(){return z(e)},get okLabel(){return z(t)},onOk:async()=>{z(re)&&await m9([z(re)],z(E)),me()},onClose:()=>{z(S)?.focus()},get open(){return z(v)},set open(e){P(v,e,!0)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(z(E).length?`confirm_deleting_this_entry_with_assets`:`confirm_deleting_this_entry`)]),U(e,n)},$$slots:{default:!0}})}var Se=L(xe,2);{let e=M(()=>X(`saving_entry.error.title`));hL(Se,{get title(){return z(e)},onClose:()=>{z(S)?.focus()},get open(){return z(y)},set open(e){P(y,e,!0)},children:(e,t)=>{_t();var n=qSe(),r=I(n),i=L(r),a=e=>{var t=KSe(),n=F(t,!0);D(t),R(()=>W(n,z(b))),U(e,t)};G(i,e=>{z(b)&&e(a)}),R(e=>W(r,`${e??``} `),[()=>X(`saving_entry.error.description`)]),U(e,n)},$$slots:{default:!0}})}U(e,ge),k(),p()}var I9,USe,WSe,GSe,KSe,qSe,JSe,YSe,XSe=s((()=>{Q(),Y(),Z(),G$(),i2(),eSe(),D1(),Up(),Y2(),Jb(),nSe(),Zy(),M9(),Y4(),F9(),NSe(),VSe(),n9(),HF(),l9(),XO(),kF(),EO(),fb(),Mb(),KA(),nN(),g1(),I9=V(`<!> <!>`,1),USe=V(`<!> <!> <!>`,1),WSe=V(`<!> <!> <!> <!>`,1),GSe=V(`<!> <h2 role="none"><!></h2> <!> <!> <!> <!>`,1),KSe=V(`<div role="none" class="error svelte-zjrq31"> </div>`),qSe=V(` <!>`,1),JSe=V(`<!> <!> <!> <!> <!> <!>`,1),YSe={hash:`svelte-zjrq31`,code:`.error.svelte-zjrq31 {margin-top:8px;border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);line-height:1.5;}`}}));function ZSe(e,t){O(t,!0),K(e,cCe);let n=()=>j(W4,`$entryDraft`,f),r=()=>j(s9,`$entryEditorSettings`,f),i=()=>j(O9,`$collectionState`,f),a=()=>j(RF,`$editorFirstPane`,f),o=()=>j(zF,`$editorSecondPane`,f),s=()=>j(VA,`$isSmallScreen`,f),c=()=>j(HA,`$isMediumScreen`,f),l=()=>j(K4,`$entryDraftInteracted`,f),u=()=>j(PF,`$showContentOverlay`,f),d=()=>j(FF,`$showDuplicateToast`,f),[f,p]=hn(),m=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{locale:e,mode:t}=a();return{locale:e,mode:t}});var n=$Se(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:cb(z(t).locale)??z(t).locale}}));H$(r,{class:`pane`,get"aria-label"(){return z(e)},get"data-locale"(){return z(t).locale},get"data-mode"(){return z(t).mode},children:(e,t)=>{var n=QSe(),r=I(n);Qbe(r,{id:`first-pane-header`,get thisPane(){return RF},get thatPane(){return zF}}),Rbe(L(r,2),{id:`first-pane-body`,get thisPane(){return RF},get thisPaneContentArea(){return z(x)},set thisPaneContentArea(e){P(x,e,!0)},get thatPaneContentArea(){return z(S)},set thatPaneContentArea(e){P(S,e,!0)}}),U(e,n)},$$slots:{default:!0}})}D(n),U(e,n)};G(n,e=>{a()&&e(r)}),U(e,t)},h=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{locale:e,mode:t}=o();return{locale:e,mode:t}});var n=tCe(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:cb(z(t).locale)??z(t).locale}}));H$(r,{class:`pane`,get"aria-label"(){return z(e)},get"data-locale"(){return z(t).locale},get"data-mode"(){return z(t).mode},children:(e,t)=>{var n=eCe(),r=I(n);Qbe(r,{id:`second-pane-header`,get thisPane(){return zF},get thatPane(){return RF}}),Rbe(L(r,2),{id:`second-pane-body`,get thisPane(){return zF},get thisPaneContentArea(){return z(S)},set thisPaneContentArea(e){P(S,e,!0)},get thatPaneContentArea(){return z(x)},set thatPaneContentArea(e){P(x,e,!0)}}),U(e,n)},$$slots:{default:!0}})}D(n),U(e,n)};G(n,e=>{o()&&e(r)}),U(e,t)},g=J(t,`editorLocale`,3,void 0),_=!1,v=!1,y=N(!0),b=N(void 0),x=N(void 0),S=N(void 0),C=M(()=>n()===void 0),w=M(()=>n()??{}),ee=M(()=>T(z(w).isNew,!0)),ne=M(()=>T(z(w).canPreview,!0)),re=M(()=>z(w).collection),ie=M(()=>z(w).collectionName),ae=M(()=>z(w).collectionFile),oe=M(()=>z(w).fileName),se=M(()=>z(w).isIndexFile),ce=M(()=>z(w).currentValues),le=M(()=>r()??{}),ue=M(()=>z(le).showPreview),de=M(()=>(z(ae)??z(re))?._i18n??Tb),fe=M(()=>z(de).i18nEnabled),E=M(()=>z(de).allLocales),pe=M(()=>z(de).defaultLocale),me=M(()=>z(ae)?.name?[z(re)?.name,z(ae).name].join(`|`):z(re)?.name),he=M(()=>i().canCreate),ge=M(()=>i().quota),_e=M(()=>i().creationDisabled),ve=M(()=>!a()&&!o()?[0,0,0]:!a()||!o()?[a()?100:0,o()?100:0,0]:typeof a().width==`number`&&typeof o().width==`number`&&a().width>=30&&o().width>=30&&a().width+o().width===100?[a().width,o().width,30]:[50,50,30]),ye=M(()=>te(z(ve),3)),be=M(()=>z(ye)[0]),xe=M(()=>z(ye)[1]),Se=M(()=>z(ye)[2]),Ce=async()=>{let[e,t]=r()?.paneStates?.[z(me)??``]??[];return g()&&(e={mode:`edit`,locale:g()},t={mode:`preview`,locale:g()}),_||!e||!t||e.locale&&!z(E).includes(e.locale)||t.locale&&!z(E).includes(t.locale)||(!z(ue)||!z(ne))&&(e.mode===`preview`||t.mode===`preview`)||z(E).length===2&&e.locale!==z(pe)?!1:(_=!0,await Bi(),mn(RF,e),mn(zF,s()||c()?null:t),await Bi(),_=!1,!0)},we=async()=>{if(!(!n()||v)){if(v=!0,await Ce()){v=!1;return}if(mn(RF,{mode:`edit`,locale:a()?.locale??z(pe)}),s()||c())mn(zF,null);else if(!z(ue)||!z(ne)){let e=z(fe)?z(E).filter(e=>e!==a()?.locale):[];mn(zF,e.length?{mode:`edit`,locale:e[0]}:null)}else mn(zF,{mode:`preview`,locale:a().locale});v=!1}},Te=()=>{!z(re)||_||!a()||!o()||!z(me)||s9.update((e={})=>({...e,paneStates:{...e.paneStates,[z(me)]:[a(),o()]}}))},Ee=e=>{e.isTrusted&&!l()&&mn(K4,!0)},De=async()=>{await Bi(),z(b)&&(z(b).tabIndex=0,z(b).focus())},Oe=async e=>{let t=a(),n=o();t?.mode===`edit`&&t.locale===e||n?.mode===`edit`&&n.locale===e||(n?.mode===`preview`?mn(zF,{mode:`edit`,locale:e}):t?.mode===`preview`?mn(RF,{mode:`edit`,locale:e}):mn(n?zF:RF,{mode:`edit`,locale:e}),await Yx(100))},ke=async({locale:e,keyPath:t})=>{await Oe(e);let n=z(ce)?.[e]??{},r=k7({collectionName:z(ie),fileName:z(oe),valueMap:n,keyPath:t,isIndexFile:z(se)});O7(Object.fromEntries(r.map(e=>[e,!0]))),window.requestAnimationFrame(()=>{let n=document.querySelector(`.content-editor .pane[data-mode="edit"][data-locale="${CSS.escape(e)}"] .field[data-key-path="${CSS.escape(t)}"]`);if(n){typeof n.scrollIntoViewIfNeeded==`function`?n.scrollIntoViewIfNeeded():n.scrollIntoView();let e=n.querySelector(`.field-wrapper`);(e?.querySelector(`[contenteditable="true"], [tabindex="0"]`)??e?.querySelector(`input, textarea, button`))?.focus()}})},Ae=e=>{e.source===window&&e.data?.type===`highlight-editor-field`&&e.data.payload&&ke(e.data.payload)};ac(()=>(u()||mn(W4,null),window.addEventListener(`message`,Ae),()=>{window.removeEventListener(`message`,Ae)})),ti(()=>{z(me)&&(mn(RF,null),mn(zF,null))}),ti(()=>{z(re),z(ue),z(ne),s(),c(),B(()=>{we()})}),ti(()=>{a(),o(),Te()}),ti(()=>{z(b)&&(u()?z(y)&&(P(y,!1),we(),De(),B8()):z8())});var je=sCe(),Me=I(je);oo(F(Me),()=>n()?.id,e=>{var t=oCe(),r=I(t);{let e=M(()=>z(ee)&&z(_e));HSe(r,{get disabled(){return z(e)}})}var i=L(r,2),c=e=>{},l=e=>{z$(e,{children:(e,t)=>{var n=nCe(),r=I(n),i=F(r),a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`entry_not_found`)]),U(e,t)},o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},s=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(ge)}})]),U(e,t)};G(i,e=>{z(C)?e(a):z(he)?e(s,-1):e(o,1)}),D(r);var c=L(r,2);lI(F(c),{variant:`primary`,onclick:()=>{w1(`/collection/${z(re)?.name}`,{replaceState:!0,transitionType:`backwards`})},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`back_to_collection`)]),U(e,n)},$$slots:{default:!0}}),D(c),U(e,n)},$$slots:{default:!0}})},u=e=>{var t=aCe();oo(F(t),()=>`${z(ie)}|${z(oe)}|${z(se)}`,e=>{var t=iCe(),n=I(t),r=F(n),i=e=>{var t=H(),n=I(t),r=e=>{loe(e,{onResize:({sizes:e})=>{a()&&o()&&(e=>{var t=te(e,2);_n(RF,B(a).width=t[0],B(a)),_n(zF,B(o).width=t[1],B(o))})(e)},children:(e,t)=>{var n=rCe(),r=I(n);SR(r,{get defaultSize(){return z(be)},get minSize(){return z(Se)},children:(e,t)=>{m(e)},$$slots:{default:!0}});var i=L(r,2);soe(i,{children:(e,t)=>{{let t=M(()=>X(`swap_panes`));lI(e,{class:`swap-button`,iconic:!0,size:`small`,variant:`tertiary`,get"aria-label"(){return z(t)},onclick:()=>{(e=>{var t=te(e,2);mn(RF,t[0]),mn(zF,t[1])})([o(),a()])},children:(e,t)=>{UF(e,{name:`swap_horiz`})},$$slots:{default:!0}})}},$$slots:{default:!0}}),SR(L(i,2),{get defaultSize(){return z(xe)},get minSize(){return z(Se)},children:(e,t)=>{h(e)},$$slots:{default:!0}}),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(be)&&z(xe)&&e(r)}),U(e,t)},c=e=>{m(e)},l=e=>{h(e)},u=e=>{ZI(e,{flex:!0})};G(r,e=>{a()&&o()?e(i):a()?e(c,1):o()?e(l,2):e(u,-1)}),D(n);var d=L(n,2),f=e=>{Uxe(e,{})};G(d,e=>{s()||e(f)}),U(e,t)}),D(t),Sa(`pointerdown`,t,Ee),Sa(`keydown`,t,Ee),U(e,t)};G(i,e=>{n()===null?e(c):z(C)||z(ee)&&z(_e)?e(l,1):e(u,-1)}),U(e,t)}),D(Me),Ws(Me,e=>P(b,e),()=>z(b));var Ne=L(Me,2);ude(Ne,{}),oz(L(Ne,2),{get show(){return vn(),d()},set show(e){mn(FF,e)},children:(e,t)=>{GF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entry_duplicated`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),R(e=>q(Me,`aria-label`,e),[()=>X(`content_editor`)]),U(e,je),k(),p()}var QSe,$Se,eCe,tCe,nCe,rCe,iCe,aCe,oCe,sCe,cCe,lCe=s((()=>{Q(),Y(),Z(),G$(),Xx(),sc(),dde(),Ube(),lxe(),qxe(),XSe(),D1(),M9(),Y4(),H8(),HF(),A7(),l9(),fb(),Mb(),KA(),QSe=V(`<!> <!>`,1),$Se=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),eCe=V(`<!> <!>`,1),tCe=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),nCe=V(`<div role="none"><!></div> <div role="none"><!></div>`,1),rCe=V(`<!> <!> <!>`,1),iCe=V(`<div role="none" class="content-area svelte-jrunrx"><!></div> <!>`,1),aCe=V(`<div role="none" class="body svelte-jrunrx"><!></div>`),oCe=V(`<!> <!>`,1),sCe=V(`<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>`,1),cCe={hash:`svelte-jrunrx`,code:`.wrapper.svelte-jrunrx {position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;background-color:var(--sui-secondary-background-color);}.pane-wrapper.svelte-jrunrx {display:contents;}.pane-wrapper.svelte-jrunrx > .pane {flex:auto;height:100%;overflow:hidden;display:flex;flex-direction:column;}.body.svelte-jrunrx {flex:auto;display:flex;overflow:hidden;}.content-area.svelte-jrunrx {flex:auto;background-color:var(--sui-primary-background-color);}.content-area.svelte-jrunrx:not(:only-child) {border-start-end-radius:16px;}.content-area.svelte-jrunrx .sui.resizable-handle {background-color:var(--sui-secondary-background-color);}.content-area.svelte-jrunrx .sui.resizable-handle .swap-button {position:absolute;top:calc(50% - 12px);margin:0;border-radius:50%;opacity:0.5;}.content-area.svelte-jrunrx .sui.resizable-handle .swap-button:hover, .content-area.svelte-jrunrx .sui.resizable-handle .swap-button:focus-visible {opacity:1;}`},Ca([`pointerdown`,`keydown`])}));function uCe(e,t){O(t,!0),K(e,mCe);let n=()=>j(VA,`$isSmallScreen`,a),r=()=>j(HA,`$isMediumScreen`,a),i=()=>j(nk,`$selectedEntryIdSet`,a),[a,o]=hn(),s=J(t,`showCheckbox`,3,!1),c=J(t,`onSelect`,3,void 0);var l=pCe(),u=I(l),d=e=>{jL(e,{class:`checkbox`,children:(e,n)=>{{let n=M(()=>i().has(t.entry.id));rL(e,{role:`none`,tabindex:`-1`,get checked(){return z(n)},onChange:({detail:{checked:e}})=>{c()?.(e)}})}},$$slots:{default:!0}})};G(u,e=>{s()&&!(n()||r())&&e(d)});var f=L(u,2),p=e=>{jL(e,{class:`image`,children:(e,n)=>{var r=H();eo(I(r),()=>DF(t.collection,t.entry),null,(e,n)=>{var r=H(),i=I(r),a=e=>{{let r=M(()=>t.viewType===`list`?`icon`:`tile`);S3(e,{get src(){return z(n)},get variant(){return z(r)},cover:!0})}};G(i,e=>{z(n)&&e(a)}),U(e,r)}),U(e,r)},$$slots:{default:!0}})};G(f,e=>{t.collection._thumbnailFieldNames.length&&e(p)}),jL(L(f,2),{class:`title`,children:(e,n)=>{var r=fCe();ZF(F(r),{lines:2,children:(e,n)=>{var r=dCe(),i=I(r);oo(i,()=>kh.current,e=>{var n=H();So(I(n),()=>TO(t.collection,t.entry,{useTemplate:!0,allowMarkdown:!0})),U(e,n)});var a=L(i,2),o=e=>{{let n=M(()=>nb(t.collection)?.icon);UF(e,{get name(){return z(n)},class:`home`})}},s=M(()=>rb(t.collection,t.entry));G(a,e=>{z(s)&&e(o)}),U(e,r)},$$slots:{default:!0}}),D(r),U(e,r)},$$slots:{default:!0}}),U(e,l),k(),o()}var dCe,fCe,pCe,mCe,hCe=s((()=>{Q(),Y(),Z(),G$(),C3(),sk(),ib(),kF(),EO(),KA(),dCe=V(`<!> <!>`,1),fCe=V(`<div role="none" class="label svelte-b1f01"><!></div>`),pCe=V(`<!> <!> <!>`,1),mCe={hash:`svelte-b1f01`,code:`.label.svelte-b1f01 .icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}`}}));function gCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=hn(),a=e=>{tk.update(n=>{let r=n.indexOf(t.entry);return e&&r===-1&&n.push(t.entry),!e&&r>-1&&n.splice(r,1),n})};{let r=M(()=>n().indexOf(t.entry));PL(e,{get"aria-rowindex"(){return z(r)},onChange:e=>{a(e.detail.selected)},onclick:()=>{w1(`/collections/${t.collection.name}/entries/${t.entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{uCe(e,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType},showCheckbox:!0,onSelect:a})},$$slots:{default:!0}})}k(),i()}var _Ce=s((()=>{Q(),Y(),G$(),hCe(),D1(),sk(),M9()}));function vCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=hn(),a=J(t,`dragging`,3,!1),o=J(t,`dropBefore`,3,!1),s=J(t,`dropAfter`,3,!1),c=J(t,`canMoveUp`,3,!1),l=J(t,`canMoveDown`,3,!1),u=J(t,`onDragStart`,3,void 0),d=J(t,`onDragOver`,3,void 0),f=J(t,`onDrop`,3,void 0),p=J(t,`onDragEnd`,3,void 0),m=J(t,`onMoveUp`,3,void 0),h=J(t,`onMoveDown`,3,void 0);{let r=M(()=>n().indexOf(t.entry)),i=M(()=>[a()&&`drag-source`,o()&&`drop-before`,s()&&`drop-after`].filter(Boolean).join(` `));PL(e,{get"aria-rowindex"(){return z(r)},get class(){return z(i)},draggable:!0,ondragstart:e=>{u()?.(),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)},ondragover:e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),d()?.(e.clientY,e.currentTarget.getBoundingClientRect())},ondrop:e=>{e.preventDefault(),f()?.()},ondragend:()=>{p()?.()},children:(e,n)=>{var r=bCe(),i=I(r);uCe(i,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType}}),jL(L(i,2),{class:`reorder-actions`,children:(e,t)=>{var n=yCe(),r=I(n);{let e=e=>{UF(e,{name:`arrow_upward`})},t=M(()=>!c()),n=M(()=>X(`move_up`));lI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),m()?.()},startIcon:e,$$slots:{startIcon:!0}})}var i=L(r,2);{let e=e=>{UF(e,{name:`arrow_downward`})},t=M(()=>!l()),n=M(()=>X(`move_down`));lI(i,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),h()?.()},startIcon:e,$$slots:{startIcon:!0}})}U(e,n)},$$slots:{default:!0}}),U(e,r)},$$slots:{default:!0}})}k(),i()}var yCe,bCe,xCe=s((()=>{Q(),Y(),Z(),G$(),hCe(),M9(),yCe=V(`<!> <!>`,1),bCe=V(`<!> <!>`,1)}));function SCe(e,t){O(t,!0),K(e,wCe);let n=()=>j(j9,`$entryGroups`,r),[r,i]=hn(),a=N(Cr({})),o=N(``),s=N(void 0),c=N(void 0),l=(e=z(a))=>{w9.set(n().flatMap(({name:t,entries:n})=>e[t]??n))},u=(e,t,n)=>{if(t===n)return;let r=[...z(a)[e]??[]],[i]=r.splice(t,1);r.splice(n,0,i),z(a)[e]=r,T9.set(!0),l()};ac(()=>{let e=nb(t.collection)?.name,r=Object.fromEntries(n().map(({name:n,entries:r})=>[n,A4(e?r.filter(t=>t.slug!==e):r,t.collection)]));P(a,r,!0),l(r)});var d=CCe();mo(d,5,n,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var l=H();eo(I(l),Yx,null,e=>{{let n=M(()=>r()===`*`?void 0:r());DL(e,{get label(){return z(n)},children:(e,n)=>{let l=M(()=>z(a)[r()]??i());var d=H();mo(I(d),19,()=>z(l),e=>e.id,(e,n,i)=>{{let a=M(()=>z(s)===z(i)&&z(o)===r()),d=M(()=>z(c)===z(i)&&z(o)===r()&&z(s)!==z(i)&&z(s)!==z(i)-1),f=M(()=>z(c)===z(l).length&&z(i)===z(l).length-1&&z(o)===r()&&z(s)!==z(l).length-1),p=M(()=>z(i)>0),m=M(()=>z(i)<z(l).length-1);vCe(e,{get collection(){return t.collection},get entry(){return z(n)},get viewType(){return t.viewType},get dragging(){return z(a)},get dropBefore(){return z(d)},get dropAfter(){return z(f)},get canMoveUp(){return z(p)},get canMoveDown(){return z(m)},onDragStart:()=>{P(o,r(),!0),P(s,z(i),!0)},onDragOver:(e,t)=>{P(o,r(),!0),P(c,e<t.top+t.height/2?z(i):z(i)+1,!0)},onDrop:()=>{z(s)!==void 0&&z(c)!==void 0&&z(c)!==z(s)&&z(c)!==z(s)+1&&u(r(),z(s),z(c)>z(s)?z(c)-1:z(c)),P(s,void 0),P(c,void 0)},onDragEnd:()=>{P(s,void 0),P(c,void 0)},onMoveUp:()=>{z(i)>0&&u(r(),z(i),z(i)-1)},onMoveDown:()=>{z(i)<z(l).length-1&&u(r(),z(i),z(i)+1)}})}}),U(e,d)},$$slots:{default:!0}})}}),U(e,l)}),D(d),U(e,d),k(),i()}var CCe,wCe,TCe=s((()=>{Q(),Y(),G$(),Xx(),sc(),xCe(),ib(),V4(),M9(),CCe=V(`<div role="none" class="wrapper svelte-1txp9gj"></div>`),wCe={hash:`svelte-1txp9gj`,code:`.wrapper.svelte-1txp9gj .grid-row.drag-source {opacity:0.4;cursor:grabbing;}.wrapper.svelte-1txp9gj .grid-row[draggable=true]:not(.drag-source) {cursor:grab;}.wrapper.svelte-1txp9gj .grid-row.drop-before .grid-cell {border-top:3px solid var(--sui-primary-accent-color) !important;}.wrapper.svelte-1txp9gj .grid-row.drop-after .grid-cell {border-bottom:3px solid var(--sui-primary-accent-color) !important;}`}}));function ECe(e,t){O(t,!0);let n=()=>j(Ry,`$allEntries`,a),r=()=>j(Nb,`$selectedCollection`,a),i=()=>j(O9,`$collectionState`,a),[a,o]=hn(),s=J(t,`label`,3,void 0),c=J(t,`keyShortcuts`,3,void 0),l=M(()=>n()&&r()?ok(r()):!1),u=M(()=>kh.current&&r()?nb(r())?.label:``),d=M(()=>z(l)?WI:lI),f=(e=!1)=>{w1(`/collections/${t.collectionName}/new`,{state:{index:e},transitionType:`forwards`})};var p=H(),m=I(p);{let e=e=>{UF(e,{name:`edit`})},t=e=>{var t=H(),n=I(t),r=e=>{ZL(e,{children:(e,t)=>{var n=DCe(),r=I(n);{let e=M(()=>X(`entry`));tR(r,{get label(){return z(e)},onclick:()=>f()})}tR(L(r,2),{get label(){return z(u)},onclick:()=>f(!0)}),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(l)&&e(r)}),U(e,t)},n=M(()=>!s()),r=M(()=>X(`create_new_entry`));Oo(m,()=>z(d),(a,o)=>{o(a,{variant:`primary`,get iconic(){return z(n)},get disabled(){return i().creationDisabled},get label(){return s()},get"aria-label"(){return z(r)},get keyShortcuts(){return c()},onclick:()=>f(),startIcon:e,popup:t,$$slots:{startIcon:!0,popup:!0}})})}U(e,p),k(),o()}var DCe,OCe=s((()=>{Q(),Y(),Z(),G$(),D1(),Uy(),Jb(),sk(),ib(),M9(),DCe=V(`<!> <!>`,1)}));function kCe(e,t){O(t,!0);let n=()=>j(Nb,`$selectedCollection`,s),r=()=>j(C9,`$reordering`,s),i=()=>j(S9,`$currentView`,s),a=()=>j(j9,`$entryGroups`,s),o=()=>j(D9,`$listedEntries`,s),[s,c]=hn(),l=M(n),u=M(()=>r()?`list`:i().type),d=M(()=>a().flatMap(({entries:e})=>e));{let t=M(()=>X(`entry_list`));B3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H(),i=I(n),s=e=>{var t=H(),n=I(t),i=e=>{let t=M(()=>{let{defaultLocale:e}=z(l)._i18n;return{defaultLocale:e}});{let n=M(()=>X(`entries`));W3(e,{get viewType(){return z(u)},id:`entry-list`,get"aria-label"(){return z(n)},get"aria-rowcount"(){return o().length},children:(e,n)=>{var i=H(),o=I(i),s=e=>{SCe(e,{get collection(){return z(l)},get viewType(){return z(u)}})},c=e=>{var n=H();mo(I(n),1,a,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var a=H();eo(I(a),Yx,null,e=>{{let n=M(()=>r()===`*`?void 0:r());DL(e,{get label(){return z(n)},children:(e,n)=>{{let n=(e,t=E)=>{var n=H();eo(I(n),Yx,null,e=>{gCe(e,{get collection(){return z(l)},get entry(){return t()},get viewType(){return z(u)}})}),U(e,n)},r=M(()=>i().filter(({locales:e})=>!!(e[z(t).defaultLocale]??Object.values(e)[0])?.content));wR(e,{get items(){return z(r)},itemKey:`id`,renderItem:n,$$slots:{renderItem:!0}})}},$$slots:{default:!0}})}}),U(e,a)}),U(e,n)};G(o,e=>{r()?e(s):e(c,-1)}),U(e,i)},$$slots:{default:!0}})}},s=e=>{z$(e,{children:(e,t)=>{var n=ACe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_entries_found`)]),U(e,n)},$$slots:{default:!0}})},c=e=>{z$(e,{children:(e,t)=>{var n=jCe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(`create_new_entry`));ECe(a,{get collectionName(){return z(l).name},get label(){return z(e)}})}R(e=>W(i,e),[()=>X(`no_entries_created`)]),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(d).length?e(i):o().length?e(s,1):e(c,-1)}),U(e,t)},c=e=>{z$(e,{children:(e,t)=>{var n=MCe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`collection_not_found`)]),U(e,n)},$$slots:{default:!0}})};G(i,e=>{z(l)?e(s):e(c,-1)}),U(e,n)},$$slots:{default:!0}})}k(),c()}var ACe,jCe,MCe,NCe=s((()=>{Q(),Y(),Z(),G$(),Xx(),U3(),q3(),_Ce(),TCe(),OCe(),Jb(),M9(),ACe=V(`<span role="none"> </span>`),jCe=V(`<span role="none"> </span> <!>`,1),MCe=V(`<span role="none"> </span>`)}));function PCe(e,t){O(t,!0),K(e,LCe);let n=()=>j(Nb,`$selectedCollection`,r),[r,i]=hn(),a=M(()=>n()?.files.filter(Wy)??[]);{let t=M(()=>X(`file_list`));B3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=H(),i=I(r),o=e=>{{let t=M(()=>X(`files`));W3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return z(a).length},children:(e,t)=>{wR(e,{get items(){return z(a)},itemKey:`name`,renderItem:(e,t)=>{let r=()=>t?.().name,i=()=>t?.().label,a=()=>t?.().icon;var o=H();eo(I(o),Yx,null,e=>{PL(e,{onclick:()=>{w1(`/collections/${n()?.name}/entries/${r()}`,{transitionType:`forwards`})},children:(e,t)=>{jL(e,{class:`title`,children:(e,t)=>{var n=FCe(),o=F(n),s=e=>{UF(e,{get name(){return a()}})};G(o,e=>{a()&&e(s)}),ZF(L(o,2),{lines:2,children:(e,t)=>{_t();var n=Fa();R(()=>W(n,i()||r())),U(e,n)},$$slots:{default:!0}}),D(n),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}),U(e,o)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},s=e=>{z$(e,{children:(e,t)=>{var n=ICe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_in_collection`)]),U(e,n)},$$slots:{default:!0}})};G(i,e=>{z(a)?.length?e(o):e(s,-1)}),U(e,r)},$$slots:{default:!0}})}k(),i()}var FCe,ICe,LCe,RCe=s((()=>{Q(),Y(),Z(),G$(),Xx(),U3(),q3(),D1(),Jb(),Zy(),FCe=V(`<div role="none" class="label svelte-1nfjp1"><!> <!></div>`),ICe=V(`<span role="none"> </span>`),LCe={hash:`svelte-1nfjp1`,code:`.label.svelte-1nfjp1 {display:flex;align-items:center;gap:16px;}.label.svelte-1nfjp1 .icon {display:flex;align-items:center;justify-content:center;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);}`}}));function zCe(e,t){O(t,!0),K(e,VCe);let[n,r]=hn(),i=M(()=>t.file.name),a=M(()=>t.file.label),o=M(()=>t.file.icon),s=N(!1),c=N(void 0);var l=BCe(),u=F(l);{let e=e=>{{let t=M(()=>z(o)||`edit_document`);UF(e,{get name(){return z(t)}})}},t=M(()=>z(a)||z(i));KL(u,{get label(){return z(t)},onSelect:()=>{mn(y1,X(`singleton_selected_announcement`,{values:{file:z(a)||z(i)}}))},onclick:()=>{w1(`/collections/_singletons/entries/${z(i)}`,{transitionType:`forwards`}),P(s,!1),z(c)?.querySelector(`[role="option"]`)?.classList.remove(`focused`)},get selected(){return z(s)},set selected(e){P(s,e,!0)},startIcon:e,$$slots:{startIcon:!0}})}D(l),Ws(l,e=>P(c,e),()=>z(c)),U(e,l),k(),r()}var BCe,VCe,HCe=s((()=>{Q(),Y(),Z(),G$(),D1(),BCe=V(`<div class="wrapper svelte-w0jevb"><!></div>`),VCe={hash:`svelte-w0jevb`,code:`.wrapper.svelte-w0jevb {display:contents;}`}}));function UCe(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,s),r=()=>j(kP,`$backend`,s),i=()=>j(AP,`$isLastCommitPublished`,s),a=()=>j(q2,`$skipCIConfigured`,s),o=()=>j(VA,`$isSmallScreen`,s),[s,c]=hn(),l=M(()=>n().deployHookURL),u=M(()=>n().deployHookAuthHeader),d=M(()=>r()?.triggerDeployment),f=M(()=>(!!z(l)||typeof z(d)==`function`)&&!i()),p=N(`info`),m=N(!1),h=async()=>{P(p,`info`),P(m,!0);try{if(z(l)&&!Zx(z(l)))throw Error(`Deploy hook URL must use HTTPS or localhost`);let{ok:e,status:t}=z(l)?await fetch(z(l),{method:`POST`,mode:z(u)?`cors`:`no-cors`,headers:z(u)?{Authorization:z(u)}:{}}):await z(d)?.()??{};if(!e&&(z(u)||t!==0))throw Error(`Webhook returned ${t} error`);mn(AP,!0)}catch(e){P(p,`error`),P(m,!0),console.error(e)}};var g=H(),_=I(g),v=e=>{var t=WCe(),n=I(t);{let e=M(()=>o()?`small`:`medium`),t=M(()=>X(`publish_changes`)),r=M(()=>!z(f));lI(n,{variant:`secondary`,get size(){return z(e)},get label(){return z(t)},get disabled(){return z(r)},onclick:()=>h()})}oz(L(n,2),{get show(){return z(m)},set show(e){P(m,e,!0)},children:(e,t)=>{GF(e,{get status(){return z(p)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(z(p)===`error`?`publishing_changes_failed`:`publishing_changes`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,t)};G(_,e=>{a()&&e(v)}),U(e,g),k(),c()}var WCe,GCe=s((()=>{Q(),Y(),Z(),G$(),jP(),Y2(),KA(),nN(),$x(),WCe=V(`<!> <!>`,1)}));function KCe(e,t){O(t,!0);let n=()=>j($P,`$cmsConfig`,o),r=()=>j(VA,`$isSmallScreen`,o),i=()=>j(Nb,`$selectedCollection`,o),a=()=>j(Ry,`$allEntries`,o),[o,s]=hn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(kh.current)),u=M(()=>n()?.collections?.filter(({hide:e})=>!e)??[]),d=M(()=>n()?.singletons??[]);var f=ZCe(),p=F(f),m=e=>{var t=qCe(),n=I(t),r=F(n),i=F(r,!0);D(r),UCe(L(r,2),{}),D(n),Q3(L(n,2),{onclick:e=>{e.preventDefault(),w1(`/search`)}}),R(e=>W(i,e),[()=>X(`contents`)]),U(e,t)};G(p,e=>{r()&&e(m)});var h=L(p,2);{let e=M(()=>X(`collection_list`));zL(h,{get"aria-label"(){return z(e)},"aria-controls":`collection-container`,children:(e,t)=>{var n=XCe(),o=I(n),s=e=>{{let t=M(()=>X(`collections`));UL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),19,()=>z(u),(e,t)=>e.name??t,(e,t)=>{var n=H();eo(I(n),Yx,null,e=>{var n=H(),o=I(n),s=e=>{let n=M(()=>{let{name:e,label:n,icon:r}=z(t);return{name:e,label:n,icon:r}});{let o=e=>{{let t=M(()=>z(n).icon||`bookmark_manager`);UF(e,{get name(){return z(t)}})}},s=e=>{var r=H();oo(I(r),a,e=>{let r=M(()=>(`files`in z(t)?z(t).files:rk(z(n).name)).length);var i=JCe(),a=F(i,!0);D(i),R((e,t)=>{q(i,`aria-label`,`(${e??``})`),W(a,t)},[()=>X(`x_entries`,{values:{count:z(r)}}),()=>z(l).format(z(r))]),U(e,i)}),U(e,r)},u=M(()=>z(n).label||z(n).name),d=M(()=>r()||c()?!1:i()?.name===z(n).name);KL(e,{get label(){return z(u)},get selected(){return z(d)},onSelect:()=>{w1(`/collections/${z(n).name}`,{transitionType:`forwards`})},startIcon:o,endIcon:s,$$slots:{startIcon:!0,endIcon:!0}})}},u=e=>{qI(e,{})};G(o,e=>{`divider`in z(t)?z(t).divider&&e(u,1):e(s)}),U(e,n)}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}};G(o,e=>{z(u).length&&e(s)});var f=L(o,2),p=e=>{var t=H(),n=I(t),a=e=>{{let t=M(()=>X(`files`));UL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),19,()=>z(d),(e,t)=>e.name??t,(e,t)=>{var n=H();eo(I(n),Yx,null,e=>{var n=H(),r=I(n),i=e=>{zCe(e,{get file(){return z(t)}})},a=e=>{qI(e,{})};G(r,e=>{`divider`in z(t)?z(t).divider&&e(a,1):e(i)}),U(e,n)}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}},o=e=>{let t=M(()=>z(d).length);{let n=M(()=>X(`collections`));UL(e,{get label(){return z(n)},children:(e,n)=>{{let n=e=>{UF(e,{name:`bookmark_manager`})},r=e=>{var n=YCe(),r=F(n,!0);D(n),R((e,t)=>{q(n,`aria-label`,`(${e??``})`),W(r,t)},[()=>X(`x_entries`,{values:{count:z(t)}}),()=>z(l).format(z(t))]),U(e,n)},a=M(()=>X(`files`)),o=M(()=>i()?.name===`_singletons`);KL(e,{get label(){return z(a)},get selected(){return z(o)},onSelect:()=>{w1(`/collections/_singletons`,{transitionType:`forwards`})},startIcon:n,endIcon:r,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};G(n,e=>{r()||z(u).length?e(a):e(o,-1)}),U(e,t)};G(f,e=>{z(d).length&&e(p)}),U(e,n)},$$slots:{default:!0}})}D(f),U(e,f),k(),s()}var qCe,JCe,YCe,XCe,ZCe,QCe=s((()=>{Q(),Y(),Z(),G$(),Xx(),HCe(),GCe(),n6(),D1(),iF(),Uy(),Jb(),sk(),KA(),qCe=V(`<header><h2> </h2> <!></header> <!>`,1),JCe=V(`<span class="count"> </span>`),YCe=V(`<span class="count"> </span>`),XCe=V(`<!> <!>`,1),ZCe=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function $Ce(e,t){O(t,!0);let n=()=>j(T9,`$reorderDirty`,a),r=()=>j(Nb,`$selectedCollection`,a),i=()=>j(w9,`$reorderedEntries`,a),[a,o]=hn(),s=N(!1),c=N(!1);var l=ewe(),u=I(l);{let e=M(()=>X(`done`)),t=M(()=>X(`done_reordering_entries`)),a=M(()=>z(s)||!n());lI(u,{variant:`primary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(a)},onclick:async()=>{let e=r();P(s,!0);try{await R4(e,i()),mn(C9,!1)}catch(e){console.error(e),P(c,!0)}P(s,!1)}})}var d=L(u,2);{let e=M(()=>X(`cancel`)),t=M(()=>X(`cancel_reordering_entries`));lI(d,{variant:`secondary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(s)},onclick:()=>{mn(C9,!1)}})}oz(L(d,2),{get show(){return z(c)},set show(e){P(c,e,!0)},children:(e,t)=>{GF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`saving_reorder_failed`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,l),k(),o()}var ewe,twe=s((()=>{Q(),Y(),Z(),G$(),Jb(),V4(),M9(),ewe=V(`<!> <!> <!>`,1)}));function nwe(e,t){O(t,!0);let n=()=>j(Nb,`$selectedCollection`,a),r=()=>j(tk,`$selectedEntries`,a),i=()=>j(D9,`$listedEntries`,a),[a,o]=hn(),s=J(t,`open`,15,!1),c=M(()=>{let e=n()?.name;return r().length&&e&&zp({collectionName:e})?.entryRelative?r().flatMap(t=>OF({entry:t,collectionName:e,relative:!0})):[]});{let t=M(()=>X(`delete_entries`,{values:{count:r().length}})),n=M(()=>X(`delete`));gL(e,{get title(){return z(t)},get okLabel(){return z(n)},onOk:()=>{m9(r(),z(c))},get open(){return s()},set open(e){s(e)},children:(e,t)=>{let n=M(()=>r().length>1&&r().length===i().length);_t();var a=Fa();R(e=>W(a,e),[()=>X(z(c).length?z(n)?`confirm_deleting_all_entries_with_assets`:`confirm_deleting_selected_entries_with_assets`:z(n)?`confirm_deleting_all_entries`:`confirm_deleting_selected_entries`,{values:{count:r().length}})]),U(e,a)},$$slots:{default:!0}})}k(),o()}var rwe=s((()=>{Q(),Y(),Z(),G$(),Up(),Jb(),nSe(),sk(),M9(),kF()}));function iwe(e,t){O(t,!0),K(e,dwe);let n=()=>j(Nb,`$selectedCollection`,c),r=()=>j(O9,`$collectionState`,c),i=()=>j(VA,`$isSmallScreen`,c),a=()=>j(C9,`$reordering`,c),o=()=>j(tk,`$selectedEntries`,c),s=()=>j(D9,`$listedEntries`,c),[c,l]=hn(),u=N(!1),d=e=>jE(HE.parseInline(e),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`],ALLOWED_ATTR:[`href`]}),f=M(()=>n()?.name??``),p=M(()=>n()?.description),m=M(()=>kh.current&&n()?Kb(n()):z(f)),h=M(()=>r().isEntryCollection),g=M(()=>r().canCreate),_=M(()=>r().canDelete),v=M(()=>r().canReorder),y=M(()=>r().quota),b=M(()=>r().remaining),x=M(()=>r().nearingQuota),S=M(()=>r().creationDisabled);var C=uwe(),w=I(C),ee=e=>{var t=lwe(),n=I(t);{let e=M(()=>X(`collection`));i$(n,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=swe(),r=I(n),c=e=>{{let t=M(()=>X(`back_to_collection_list`));r2(e,{get"aria-label"(){return z(t)},onclick:()=>{T1(`/collections`)}})}};G(r,e=>{i()&&e(c)});var l=L(r,2),g=F(l,!0);D(l);var y=L(l,2),b=e=>{ZI(e,{flex:!0})},x=e=>{var t=awe();ZF(F(t),{children:(e,t)=>{var n=H();So(I(n),()=>d(z(p)||``)),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)};G(y,e=>{i()?e(b):e(x,-1)});var C=L(y,2),w=e=>{$Ce(e,{})},ee=e=>{var t=owe(),n=I(t),r=e=>{{let t=M(()=>X(`delete`)),n=M(()=>X(`delete_selected_entries`,{values:{count:o().length}})),r=M(()=>!o().length||!z(_));lI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{P(u,!0)}})}};G(n,e=>{i()||e(r)});var a=L(n,2),c=e=>{{let t=M(()=>X(`reorder`)),n=M(()=>X(`reorder_entries`)),r=M(()=>!s().length);lI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(C9,!0)}})}};G(a,e=>{z(v)&&e(c)}),EI(L(a,2),{children:(e,t)=>{var n=H(),r=I(n),a=e=>{{let t=M(()=>i()?void 0:X(`create`));ECe(e,{get collectionName(){return z(f)},get label(){return z(t)},keyShortcuts:`Accel+E`})}};G(r,e=>{(!i()||s().length&&!z(S))&&e(a)}),U(e,n)},$$slots:{default:!0}}),U(e,t)};G(C,e=>{z(h)&&a()?e(w):z(h)&&e(ee,1)}),R(()=>W(g,z(m))),U(e,n)},$$slots:{default:!0}})}var r=L(n,2),c=e=>{var t=cwe(),n=I(t);lo(n,()=>({"--sui-infobar-border-width":`1px 0`,"--sui-infobar-message-justify-content":`center`})),_I(n.lastChild,{dismissible:!1,children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(y)}})]),U(e,t)},o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_nearing_quota`,{values:{quota:z(y),remaining:z(b)}})]),U(e,t)};G(r,e=>{z(g)?z(S)?e(a,1):z(x)&&e(o,2):e(i)}),U(e,n)},$$slots:{default:!0}}),D(n),U(e,t)};G(r,e=>{z(h)&&(z(S)||z(x))&&e(c)}),U(e,t)};G(w,e=>{n()&&e(ee)}),nwe(L(w,2),{get open(){return z(u)},set open(e){P(u,e,!0)}}),U(e,C),k(),l()}var awe,owe,swe,cwe,lwe,uwe,dwe,fwe=s((()=>{Q(),Y(),Z(),G$(),ME(),dO(),i2(),twe(),rwe(),OCe(),D1(),Jb(),sk(),M9(),KA(),awe=V(`<div role="none" class="description svelte-83jnuc"><!></div>`),owe=V(`<!> <!> <!>`,1),swe=V(`<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>`,1),cwe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),lwe=V(`<!> <!>`,1),uwe=V(`<!> <!>`,1),dwe={hash:`svelte-83jnuc`,code:`h2.svelte-83jnuc {flex:none !important;}.description.svelte-83jnuc {flex:auto;font-size:var(--sui-font-size-small);opacity:0.8;}`}}));function pwe(e,t){O(t,!0);let n=()=>j(Nb,`$selectedCollection`,o),r=()=>j(dF,`$allAssets`,o),i=()=>j(UA,`$isLargeScreen`,o),a=()=>j(S9,`$currentView`,o),[o,s]=hn(),c=M(()=>zp({collectionName:n()?.name})),l=M(()=>z(c)?r().filter(e=>wF(e,z(c))):[]),u=M(()=>z(c)??{internalPath:void 0,entryRelative:!1,hasTemplateTags:!1}),d=M(()=>z(u).internalPath),f=M(()=>z(u).entryRelative),p=M(()=>z(u).hasTemplateTags),m=M(()=>z(f)||z(p));var h=H(),g=I(h),_=e=>{{let t=M(()=>X(`collection_assets`));H$(e,{id:`collection-assets`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{A3(e,{get disabled(){return z(m)},multiple:!0,onDrop:({files:e})=>{mn(vF,{folder:z(c),files:e})},children:(e,t)=>{bme(e,{get assets(){return z(l)},onSelect:({asset:e})=>{w1(`/assets/${e.path}`,{transitionType:`forwards`})}})},$$slots:{default:!0}})},$$slots:{default:!0}})}};G(g,e=>{z(d)!==void 0&&i()&&a().showMedia&&e(_)}),U(e,h),k(),s()}var mwe=s((()=>{Q(),Y(),Z(),G$(),Dme(),L3(),D1(),EF(),Up(),Jb(),M9(),KA()}));function hwe(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`noneLabel`,3,``),c=J(t,`groups`,19,()=>[]);{let r=e=>{{let r=M(()=>X(`grouping_options`));ZL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=gwe(),a=I(i);{let e=M(()=>s()||X(`sort_keys.none`)),r=M(()=>!n().group);lR(a,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,group:null}))}})}mo(L(a,2),17,c,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}});{let r=M(()=>n().group?.field===z(i).field&&String(n().group.pattern)===String(z(i).pattern));lR(e,{get label(){return z(i)._label},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,group:{field:z(i).field,pattern:z(i).pattern}}))}})}}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`group`));VI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var gwe,_we=s((()=>{Q(),Y(),Z(),G$(),gwe=V(`<!> <!>`,1)}));function vwe(e,t){O(t,!0);let n=()=>j(Nb,`$selectedCollection`,f),r=()=>j(D9,`$listedEntries`,f),i=()=>j(C9,`$reordering`,f),a=()=>j(VA,`$isSmallScreen`,f),o=()=>j(HA,`$isMediumScreen`,f),s=()=>j(j9,`$entryGroups`,f),c=()=>j(SSe,`$sortKeys`,f),l=()=>j(oSe,`$viewFilters`,f),u=()=>j(dSe,`$viewGroups`,f),d=()=>j(S9,`$currentView`,f),[f,p]=hn(),m=M(()=>n()?._type===`entry`?n():void 0),h=M(()=>z(m)?.name),g=M(()=>z(m)?._thumbnailFieldNames??[]),_=M(()=>!!r().length),v=M(()=>r().length>1);var y=H(),b=I(y),x=e=>{{let t=M(()=>X(`entry_list`));i$(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=bwe(),r=I(n),i=e=>{{let t=M(()=>s().flatMap(({entries:e})=>e));m6(e,{get allItems(){return z(t)},get selectedItems(){return tk}})}};G(r,e=>{a()||o()||e(i)});var f=L(r,2);ZI(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(v)||!c().length);y6(p,{get disabled(){return z(e)},get currentView(){return S9},get sortKeys(){return c()},get collectionName(){return z(h)},"aria-controls":`entry-list`})}var m=L(p,2),y=e=>{{let t=M(()=>!z(v));d6(e,{get disabled(){return z(t)},get currentView(){return S9},get filters(){return l()},multiple:!0,"aria-controls":`entry-list`})}};G(m,e=>{l()?.length&&e(y)});var b=L(m,2),x=e=>{{let t=M(()=>!z(v));hwe(e,{get disabled(){return z(t)},get currentView(){return S9},get groups(){return u()},"aria-controls":`entry-list`})}};G(b,e=>{u()?.length&&e(x)});var S=L(b,2),C=e=>{{let t=M(()=>!z(_));S6(e,{get disabled(){return z(t)},get currentView(){return S9},"aria-controls":`entry-list`})}};G(S,e=>{z(g).length&&e(C)});var w=L(S,2),ee=e=>{var t=ywe(),n=I(t);qI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{UF(e,{name:`photo_library`})},t=M(()=>!z(_)||!zp({collectionName:z(h)})),n=M(()=>!!d().showMedia),i=M(()=>X(d().showMedia?`hide_assets`:`show_assets`));lI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get pressed(){return z(n)},"aria-controls":`collection-assets`,get"aria-expanded"(){return d().showMedia},get"aria-label"(){return z(i)},onclick:()=>{S9.update(e=>({...e,showMedia:!d().showMedia}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(w,e=>{a()||o()||e(ee)}),U(e,n)},$$slots:{default:!0}})}};G(b,e=>{z(m)&&!i()&&e(x)}),U(e,y),k(),p()}var ywe,bwe,xwe=s((()=>{Q(),Y(),Z(),G$(),p6(),_we(),v6(),x6(),E6(),Up(),Jb(),sk(),M9(),sSe(),fSe(),CSe(),KA(),ywe=V(`<!> <!>`,1),bwe=V(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function Swe(e,t){O(t,!0);let n=()=>j(Nb,`$selectedCollection`,s),r=()=>j(PF,`$showContentOverlay`,s),i=()=>j(VA,`$isSmallScreen`,s),a=()=>j(D9,`$listedEntries`,s),o=()=>j(L0,`$contentUpdatesToast`,s),[s,c]=hn(),l=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/,u=N(!1),d=N(!1),f=N(void 0),p=M(()=>`files`in(n()??{})?PCe:kCe),m=()=>{let{path:e,params:t}=b1(),r=e.match(l);if(P(u,!1),P(d,!1),P(f,t._locale,!0),delete t._locale,n()?.name===`_singletons`&&zb().length&&mn(Nb,void 0),!r?.groups){mn(PF,!1),P(d,m8(e),!0);return}let{_collectionName:o,routeType:s,subPath:c}=r.groups;if(!o){i()?(mn(Nb,void 0),mn(PF,!1),mn(y1,X(`viewing_collection_list`)),P(u,!0)):w1(`/collections/${(n()||Bb()||Wb())?.name}`,{replaceState:!0});return}let p=Gb(o);if(!p||p.hide?mn(Nb,void 0):n()?.name!==p.name&&mn(Nb,p),!p||!n()){mn(PF,!1),mn(y1,X(`collection_not_found`));return}let{name:m}=n(),h=Kb(n()),g=`_fileMap`in n()?n()._fileMap:void 0;if(!s){mn(PF,!1),mn(y1,X(`viewing_x_collection`,{values:{collection:h,count:a().length}}));return}if(mn(PF,!0),g){if(s===`entries`&&c){let e=Yy(m,c),t=g[c];P9(e?{collection:p,collectionFile:t,originalEntry:e}:{collection:p,collectionFile:t,originalEntry:{slug:t.name,locales:Object.fromEntries(t._i18n.initialLocales.map(e=>[e,{}]))}}),mn(y1,X(`edit_${p._type}_announcement`,{values:{collection:h,file:qy(t)}}))}}else if(s===`new`&&!c&&(P9({collection:p,dynamicValues:t,isIndexFile:!!window.history.state?.index}),mn(y1,X(`create_entry_announcement`,{values:{collection:h}}))),s===`entries`&&c){let e=a().find(e=>e.subPath===c);e&&kh.current&&(P9({collection:p,originalEntry:e}),mn(y1,X(`edit_entry_announcement`,{values:{collection:h,entry:TO(n(),e)}})))}};ac(()=>(m(),()=>{mn(PF,!1)}));var h=Cwe();xa(`hashchange`,Ir,e=>{C1(e,m,l)});var g=I(h);{let e=e=>{var t=H(),n=I(t),r=e=>{KCe(e,{get isSearchPage(){return z(d)}})};G(n,e=>{(!i()||z(u))&&e(r)}),U(e,t)},t=e=>{var t=H(),r=I(t),o=e=>{l8(e,{})},s=e=>{{let t=e=>{iwe(e,{})},r=e=>{var t=H(),r=I(t),i=e=>{vwe(e,{})};G(r,e=>{n()?._type===`entry`&&a().length&&e(i)}),U(e,t)},i=e=>{var t=H();Oo(I(t),()=>z(p),(e,t)=>{t(e,{})}),U(e,t)},o=e=>{pwe(e,{})},s=M(()=>X(`x_collection`,{values:{collection:kh.current&&n()?Kb(n()):``}})),c=M(()=>n()?.description);F6(e,{get"aria-label"(){return z(s)},get"aria-description"(){return z(c)},primaryToolbar:t,secondaryToolbar:r,mainContent:i,secondarySidebar:o,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};G(r,e=>{z(d)?e(o):(!i()||!z(u))&&e(s,1)}),U(e,t)},r=M(()=>X(`content_library`));z6(g,{get"aria-label"(){return z(r)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var _=L(g,2),v=e=>{ZSe(e,{get editorLocale(){return z(f)}})};G(_,e=>{r()&&e(v)});var y=L(_,2);oz(y,{get show(){return o().saved},set show(e){_n(L0,B(o).saved=e,B(o))},children:(e,t)=>{GF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(o().published?`entry_saved_and_published`:`entry_saved`,{values:{count:o().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),oz(L(y,2),{get show(){return o().deleted},set show(e){_n(L0,B(o).deleted=e,B(o))},children:(e,t)=>{GF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entries_deleted`,{values:{count:o().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,h),k(),c()}var Cwe,wwe=s((()=>{Q(),Y(),Z(),G$(),sc(),R6(),H6(),lCe(),NCe(),RCe(),QCe(),fwe(),mwe(),xwe(),f8(),D1(),Jb(),R0(),Zy(),M9(),F9(),HF(),EO(),h8(),KA(),Cwe=V(`<!> <!> <!> <!>`,1)}));function Twe(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn();{let t=M(()=>X(`prefs.i18n.translators.default.select_service`));RR(e,{get"aria-label"(){return z(t)},get value(){return n().defaultTranslationService},onChange:e=>{mn(tN,{...n(),defaultTranslationService:e.detail.value})},children:(e,t)=>{var r=H();mo(I(r),17,()=>Object.entries(N5),([e,{serviceLabel:t}])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1].serviceLabel;{let t=M(()=>i()===n().defaultTranslationService);KL(e,{get label(){return a()},get value(){return i()},get selected(){return z(t)}})}}),U(e,r)},$$slots:{default:!0}})}k(),i()}var Ewe=s((()=>{Q(),Y(),Z(),G$(),F5(),nN()}));function Dwe(e,t){O(t,!0);let n=()=>j(P5,`$translator`,o),r=()=>j(PF,`$showContentOverlay`,o),i=()=>j(IF,`$translatorApiKeyDialogState`,o),a=()=>j(tN,`$prefs`,o),[o,s]=hn(),c=M(()=>n().serviceId),l=M(()=>n().apiLabel),u=M(()=>n().developerURL),d=M(()=>n().apiKeyURL),f=M(()=>n().apiKeyPattern);ti(()=>{!r()&&i().show&&(_n(IF,B(i).show=!1,B(i)),i().resolve?.())});{let t=M(()=>X(`translate_fields`,{values:{count:i().multiple?2:1}})),n=M(()=>({spellcheck:!1,monospace:!0,"aria-label":X(`api_key`)}));SL(e,{get title(){return z(t)},showOk:!1,get textboxAttrs(){return z(n)},oninput:e=>{let t=e.target.value.trim();z(f)?.test(t)&&(_n(tN,B(a).apiKeys??={},B(a)),_n(tN,B(a).apiKeys[z(c)]=t,B(a)),_n(IF,B(i).show=!1,B(i)),i().resolve?.(t))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(e){_n(IF,B(i).show=e,B(i))},children:(e,t)=>{var n=Owe(),r=I(n);Twe(r,{});var i=L(r,2);ZI(i,{}),So(L(i,2),()=>jE(X(`prefs.i18n.translators.description`,{values:{service:z(l),homeHref:`href="${z(u)}"`,apiKeyHref:`href="${z(d)}"`}}),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,n)},$$slots:{default:!0}})}k(),s()}var Owe,kwe=s((()=>{Q(),Y(),Z(),G$(),ME(),Ewe(),HF(),F5(),nN(),Owe=V(`<!> <!> <!>`,1)}));function Awe(e,t){O(t,!0);let n=()=>j(zy,`$entryParseErrors`,r),[r,i]=hn(),a=N(!!n().length);oz(e,{get show(){return z(a)},set show(e){P(a,e,!0)},children:(e,t)=>{GF(e,{status:`error`,children:(e,t)=>{_t();var r=Fa();R(e=>W(r,e),[()=>X(`entry_parse_errors`,{values:{count:n().length}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),k(),i()}var jwe=s((()=>{Q(),Y(),Z(),G$(),Uy()})),L9,R9,z9=s((()=>{ip(),jP(),qj(),KA(),L9=dn([UA,WA,LA,kP,Kj],([e,t,n,r,i])=>e&&t&&!n&&!!r?.isGit&&!!i?.token),R9=un(!1)}));function Mwe(e,t){O(t,!0);let n=()=>j(kP,`$backend`,r),[r,i]=hn(),a,o=N(!1);ti(()=>{let{databaseName:e}=n()?.repository??{};e&&(a=new oS(e,`ui-settings`),(async()=>{let e=await a.get(`onboarding`)??{};e.mobileCta||P(o,!0),await a.set(`onboarding`,{...e,mobileCta:!0})})())});var s=Pwe(),c=I(s);lo(c,()=>({"--sui-infobar-message-justify-content":`center`})),_I(c.lastChild,{get show(){return z(o)},dismissible:!1,children:(e,t)=>{_t();var n=Nwe(),r=I(n),i=L(r);{let e=M(()=>X(`mobile_promo_button`));lI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1),mn(R9,!0)}})}var a=L(i,2);{let e=M(()=>X(`later`));lI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1)}})}R(e=>W(r,`${e??``} `),[()=>X(`mobile_promo_title`)]),U(e,n)},$$slots:{default:!0}}),D(c),U(e,s),k(),i()}var Nwe,Pwe,Fwe=s((()=>{Q(),Y(),Z(),G$(),lS(),z9(),jP(),Nwe=V(` <!> <!>`,1),Pwe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function Iwe(e,t){O(t,!0),K(e,Rwe);let n=()=>j(Fp,`$allAssetFolders`,l),r=()=>j(VA,`$isSmallScreen`,l),i=()=>j(Lp,`$selectedAssetFolder`,l),a=()=>j($P,`$cmsConfig`,l),o=()=>j(OP,`$backendName`,l),s=()=>j(v1,`$selectedPageName`,l),c=()=>j(Y3,`$searchMode`,l),[l,u]=hn(),d=M(()=>{let e=[{key:`collections`,label:X(`contents`),icon:`article`,link:`/collections`,searchMode:`contents`}];return n().length&&e.push({key:`assets`,label:X(`assets`),icon:`photo`,link:r()?`/assets`:`/assets/${i()?.internalPath??`-/all`}`,searchMode:`assets`}),a()?.publish_mode,o(),r()&&e.push({key:`menu`,label:X(`menu`),icon:`menu`,link:`/menu`,searchMode:void 0}),e});var f=Lwe(),p=F(f);{let e=M(()=>X(`switch_page`));LI(p,{get"aria-label"(){return z(e)},"aria-controls":`page-container`,children:(e,t)=>{var n=H();mo(I(n),19,()=>z(d),({key:e,label:t,icon:n,link:r,searchMode:i})=>e,(e,t,n)=>{let r=()=>z(t).key,i=()=>z(t).label,a=()=>z(t).icon,o=()=>z(t).link,l=()=>z(t).searchMode;{let t=e=>{UF(e,{get name(){return a()}})},u=M(()=>s()===r()||c()===l()),d=M(()=>z(n)+1);BI(e,{variant:`ghost`,iconic:!0,get selected(){return z(u)},get"aria-label"(){return i()},get keyShortcuts(){return`Alt+${z(d)??``}`},onclick:()=>{w1(o())},startIcon:t,$$slots:{startIcon:!0}})}}),U(e,n)},$$slots:{default:!0}})}D(f),U(e,f),k(),u()}var Lwe,Rwe,zwe=s((()=>{Q(),Y(),Z(),G$(),D1(),Up(),jP(),iF(),Z3(),KA(),Lwe=V(`<div role="none" class="wrapper svelte-t2r4ty"><!></div>`),Rwe={hash:`svelte-t2r4ty`,code:`.wrapper.svelte-t2r4ty {display:contents;}.wrapper.svelte-t2r4ty .sui.select-button-group {gap:4px;}
|
|
1023
|
+
.locale.svelte-mwf2jd .empty:where(.svelte-mwf2jd) {margin:0 !important;padding:12px;}.locale.svelte-mwf2jd .summary:where(.svelte-mwf2jd) {display:block;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-heading-font-weight);}.locale.svelte-mwf2jd .sui.button.ref {flex-direction:column;align-items:flex-start;gap:4px;}`}}));function Uxe(e,t){O(t,!0),K(e,Kxe);let n=()=>j(W4,`$entryDraft`,a),r=()=>j(kP,`$backend`,a),i=()=>j(s9,`$entryEditorSettings`,a),[a,o]=hn(),s=M(()=>{let e=n()?.collectionName,t=n()?.fileName;return e?[...rF.relationFields].some(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t)):!1}),c=M(()=>[{key:`validation`,label:X(`entry_sidebar.validation.title`),icon:`task_alt`,disabled:!1,panel:Fxe},{key:`history`,label:X(`entry_sidebar.history.title`),icon:`history`,disabled:!r()?.isGit||!!n()?.isNew,panel:Txe},{key:`backlinks`,label:X(`entry_sidebar.backlinks.title`),icon:`article_shortcut`,disabled:!z(s),panel:gxe}]),l=N(Cr(i()?.sidebarPanel??null)),u=M(()=>z(l)?z(c).find(e=>e.key===z(l))??z(c)[0]:null);ti(()=>{s9.update((e={})=>({...e,sidebarPanel:z(l)}))});var d=Gxe(),f=F(d);{let e=M(()=>X(`entry_sidebar.sidebar_panels`));LI(f,{class:`tabs`,get"aria-label"(){return z(e)},"aria-controls":`entry-sidebar-content`,children:(e,t)=>{var n=H();mo(I(n),17,()=>z(c),({key:e,label:t,icon:n,disabled:r})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).disabled;{let t=M(()=>z(u)?.key===n());BI(e,{iconic:!0,get"aria-label"(){return r()},get selected(){return z(t)},get disabled(){return a()},onclick:()=>{P(l,z(l)===n()?null:n(),!0)},children:(e,t)=>{UF(e,{get name(){return i()}})},$$slots:{default:!0}})}}),U(e,n)},$$slots:{default:!0}})}var p=L(f,2),m=e=>{var t=Wxe();Oo(F(t),()=>z(u).panel,(e,t)=>{t(e,{})}),D(t),U(e,t)};G(p,e=>{z(u)&&e(m)}),D(d),U(e,d),k(),o()}var Wxe,Gxe,Kxe,qxe=s((()=>{Q(),Y(),Z(),G$(),xxe(),Pxe(),Hxe(),jP(),iF(),Y4(),l9(),Wxe=V(`<div role="none" class="content svelte-19e8zut" id="entry-sidebar-content"><!></div>`),Gxe=V(`<div role="none" class="sidebar svelte-19e8zut"><!> <!></div>`),Kxe={hash:`svelte-19e8zut`,code:`.sidebar.svelte-19e8zut {flex:none;display:flex;flex-direction:row-reverse;}.sidebar.svelte-19e8zut .tabs {flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;padding:8px 0;width:48px;}.sidebar.svelte-19e8zut .tabs button {border-radius:4px !important;}.content.svelte-19e8zut {flex:none;width:320px;margin-inline-start:8px;border-radius:16px 16px 0 0;background-color:var(--sui-primary-background-color);}`}}));function Jxe(e,t){let n=Ia();O(t,!0),K(e,$xe);let r=()=>j(W4,`$entryDraft`,i),[i,a]=hn(),o=J(t,`open`,15,!1),s=M(()=>r()?.collectionName??``),c=M(()=>r()?.currentSlugs??{}),l=N(Cr([])),u=Cr({}),d=Cr({}),f=()=>{let e=new Set(Object.values(z(c)));P(l,rk(z(s)).flatMap(e=>Object.values(e.locales).map(({slug:e})=>e)).filter(t=>!e.has(t)),!0),Object.assign(u,z(c)),Object.assign(d,Object.fromEntries(Object.keys(z(c)).map(e=>[e,!1])))};ti(()=>{o()&&f()});{let t=M(()=>X(`edit_slug`)),i=M(()=>X(`update`)),a=M(()=>(0,Yxe.default)(z(c),u)||Object.values(d).some(e=>e!==!1));sL(e,{get title(){return z(t)},get okLabel(){return z(i)},get okDisabled(){return z(a)},onOk:()=>{_n(W4,B(r).currentSlugs=u,B(r))},get open(){return o()},set open(e){o(e)},children:(e,t)=>{var r=Qxe(),i=I(r);lo(i,()=>({"--font-size":`var(--sui-font-size-small)`})),GF(i.lastChild,{status:`warning`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`edit_slug_warning`)]),U(e,n)},$$slots:{default:!0}}),D(i);var a=L(i,2);mo(a,20,()=>Object.keys(u),e=>e,(e,t)=>{var r=Zxe(),i=F(r),a=e=>{var n=Xxe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>cb(t)??t]),U(e,n)},o=M(()=>![`_`,`_default`].includes(t));G(i,e=>{z(o)&&e(a)});var s=L(i,2),c=F(s);{let e=M(()=>d[t]!==!1);_L(c,{dir:`auto`,flex:!0,oninput:()=>{d[t]=u[t].trim()?z(l).includes(u[t])?`duplicate`:!1:`empty`},get invalid(){return z(e)},get"aria-errormessage"(){return`${n}-${t??``}-error`},get value(){return u[t]},set value(e){u[t]=e}})}var f=L(c,2),p=F(f),m=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`edit_slug_error.empty`)]),U(e,t)};G(p,e=>{d[t]===`empty`&&e(m)});var h=L(p,2),g=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`edit_slug_error.duplicate`)]),U(e,t)};G(h,e=>{d[t]===`duplicate`&&e(g)}),D(f),D(s),D(r),R(()=>q(f,`id`,`${n}-${t??``}-error`)),U(e,r)}),D(a),U(e,r)},$$slots:{default:!0}})}k(),a()}var Yxe,Xxe,Zxe,Qxe,$xe,eSe=s((()=>{Q(),Y(),Z(),G$(),Yxe=u(ZM()),sk(),Y4(),fb(),Xxe=V(`<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>`),Zxe=V(`<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>`),Qxe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>`,1),$xe={hash:`svelte-wdavy7`,code:`p.svelte-wdavy7:not(:empty) {margin-top:0;}.locales.svelte-wdavy7 {display:table;margin:16px 0 0;width:100%;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) {display:table-row;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) div:where(.svelte-wdavy7) {display:table-cell;vertical-align:middle;white-space:nowrap;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) div:where(.svelte-wdavy7):last-child {width:90%;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) h3:where(.svelte-wdavy7) {margin-inline-end:8px;font-size:inherit;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) p.error:where(.svelte-wdavy7) {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}`}})),tSe,m9,nSe=s((()=>{fS(),lS(),ip(),EF(),jP(),G0(),Uy(),Jb(),R0(),V4(),l3(),tSe=({ids:e,assetPaths:t})=>{let n=A(Ry),r=new Set(e);if(Ry.set(n.filter(e=>!r.has(e.id))),L0.set({...I0,deleted:!0,count:e.length}),t.length){let e=new Set(t);dF.update(t=>t.filter(t=>!e.has(t.path)))}},m9=async(e,t=[])=>{let n=A(kP)?.repository?.databaseName,r=n?new oS(n,`file-cache`):void 0,i=[],a=`delete`,o=await Promise.all(e.map(async({id:e,locales:t,slug:n})=>{let o=dS(Object.values(t).map(e=>e.path));return await Promise.all(o.map(async e=>{let t=await a3({cacheDB:r,previousPath:e});i.push({action:a,slug:n,path:e,previousSha:t})})),e})),s=t.map(({path:e,sha:t})=>(i.push({action:a,path:e,previousSha:t}),e)),{changes:c,savingEntries:l}=await B4(A(Nb),{excludeIds:new Set(e.map(({id:e})=>e)),cacheDB:r});i.push(...c),await W0({changes:i,savingEntries:l,options:{commitType:`delete`,collection:A(Nb)}}),tSe({ids:o,assetPaths:s})}})),h9,rSe=s((()=>{p(),h9=(e,t)=>{if(Array.isArray(e))return{options:e};if(d(e)){let n=e[t],r=e.default;if(Array.isArray(n)){let e=r?n.find(({name:e})=>e===r):void 0;return{options:n,default:e?{field:e.field,pattern:e.pattern}:void 0}}}return{options:[]}}})),g9,iSe,aSe,oSe,sSe=s((()=>{ip(),Z$(),Jb(),M9(),rSe(),yA(),$O(),g9=e=>h9(e,`filters`),iSe=(e,t,n)=>{let{name:r,view_filters:i=[],_i18n:{defaultLocale:a}}=t,{options:o}=g9(i),s=n.filter(({field:e,pattern:t})=>e!==void 0&&t!==void 0&&o.some(n=>n.field===e&&String(n.pattern)===String(t))).map(({field:e,pattern:t})=>({field:e,pattern:t,regex:QO(t)}));return e.filter(e=>s.every(({field:t,pattern:n,regex:i})=>{let o={entry:e,locale:a,collectionName:r,key:t},s=vA({...o,resolveRef:!1}),c=vA({...o});return s===void 0||c===void 0?!1:J$(s,n,i)||J$(c,n,i)}))},aSe=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=g9(e.view_filters);t(n),S9.update(e=>({...e,filters:e.filters??(r?[r]:void 0)}))},oSe=dn([Nb],([e],t)=>{aSe(e,t)})})),cSe,lSe,uSe,dSe,fSe=s((()=>{Z(),ip(),Z$(),Jb(),M9(),rSe(),yA(),cSe=e=>h9(e,`groups`),lSe=(e,t,n)=>{let{field:r,pattern:i}=n??{field:``,pattern:void 0};if(!r)return e.length?[{name:`*`,entries:e}]:[];let{name:a,_i18n:{defaultLocale:o}}=t,s=A(S9).sort,c=q$(e,i,e=>vA({entry:e,locale:o,collectionName:a,key:r}),X(`other`)).map(([e,t])=>({name:e,entries:t}));return s?.key===r&&s.order===`descending`&&c.reverse(),c},uSe=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=cSe(e.view_groups);t(n),S9.update(e=>({...e,group:e.group===void 0?r:e.group}))},dSe=dn([Nb],([e],t)=>{uSe(e,t)})})),pSe,_9,mSe,hSe=s((()=>{pSe=u(ZM(),1),ip(),Z$(),Jb(),M9(),_9=un(),mSe=async({repository:e})=>{await X$(e,`contents-view`,_9),S9.subscribe(e=>{let{name:t}=A(Nb)??{},n=A(_9)?.[t??``]??{};t&&!(0,pSe.default)(e,n)&&_9.update(n=>({...n,[t]:e}))})}})),gSe,v9,y9,b9,x9,_Se,vSe,ySe,bSe,xSe,SSe,CSe=s((()=>{Z(),fS(),p(),gSe=u(ZM(),1),ip(),j6(),Uy(),Jb(),V4(),M9(),hSe(),yA(),v9=[`title`,`name`,`date`,`author`,`description`],y9={slug:String,commit_author:String,commit_date:Date,_summary:String,_manual:String},b9=Object.keys(y9),x9=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),_Se=e=>{if(x9(e))return{keys:e};if(d(e)){let{fields:t,default:n}=e;return x9(t)?d(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}},vSe=e=>e?{keys:[e,...v9.filter(t=>t!==e)],defaultKey:e}:{keys:[...v9]},ySe=({collection:e,isCommitAuthorAvailable:t,isCommitDateAvailable:n})=>{let{name:r,identifier_field:i,sortable_fields:a,summary:o}=e,{keys:s,defaultKey:c,defaultOrder:l}=a?_Se(a):vSe(i);o&&s.unshift(`_summary`);let u=s.includes(`commit_author`),d=s.includes(`commit_date`);t?!s.includes(`author`)&&!u&&s.push(`commit_author`):u&&(s=s.filter(e=>e!==`commit_author`)),n?!s.includes(`date`)&&!d&&s.push(`commit_date`):d&&(s=s.filter(e=>e!==`commit_date`)),s=dS(s).filter(e=>!!e&&(b9.includes(e)||!!fA({collectionName:r,keyPath:e})));let f=k4(e);return f&&(s=s.filter(e=>e!==f),s.includes(`_manual`)||s.unshift(`_manual`),c=`_manual`,l=`ascending`),c=c&&s.includes(c)?c:s[0],l??=c?`ascending`:void 0,{keys:s,default:{key:c,order:l}}},bSe=({key:e,fieldConfig:t})=>{if(e in y9)return y9[e];if(t?.widget===`boolean`)return Boolean;if(t?.widget===`number`){let{value_type:e=`int`}=t;if(e===`int`||e===`float`)return Number}return String},xSe=({collection:e,key:t})=>[...b9,`name`].includes(t)?X(`sort_keys.${t}`):t.includes(`.`)?t.split(`.`).map((t,n,r)=>{if(/^\d+$/.test(t))return;let i=r.slice(0,n+1).join(`.`);return fA({collectionName:e.name,keyPath:i})?.label||t}).filter(Boolean).join(` – `):e.fields?.find(({name:e})=>e===t)?.label||t,SSe=dn([Nb,Ry,k6],([e,t],n)=>{if(!e||!(`folder`in e)){n([]);return}let r=A(_9)?.[e.name]??{type:`list`},{keys:i,default:a}=ySe({collection:e,isCommitAuthorAvailable:t.some(e=>!!e.commitAuthor),isCommitDateAvailable:t.some(e=>!!e.commitDate)});r.sort??=a,n(i.map(t=>({key:t,label:xSe({collection:e,key:t})}))),(0,gSe.default)(r,A(S9))||S9.set(r)})})),wSe,TSe=s((()=>{wSe=e=>{let t=e,n=!0;for(;n;){let e=t;t=t.replaceAll(/([_*`~])([^_*`~]+)\1/g,`$2`),t=t.replaceAll(/([_*`~]{2,})(.+?)\1/g,`$2`),n=t!==e}return t}})),ESe,DSe,OSe,kSe=s((()=>{Z$(),ib(),V4(),CSe(),yA(),EO(),hC(),TSe(),ESe=[`title`,`summary`,`description`],DSe=({key:e,type:t,collection:n,locale:r,collectionName:i,dateFieldConfig:a,isMarkdownField:o})=>e===`_summary`?e=>TO(n,e,{locale:r,useTemplate:!0}):a?t=>{let n=vA({entry:t,locale:r,collectionName:i,key:e});return n?Number(uC(n,a)??0):0}:t===String?t=>{let n=vA({entry:t,locale:r,collectionName:i,key:e}),a=n?String(n):``;return o?wSe(a):a}:t=>{let n=vA({entry:t,locale:r,collectionName:i,key:e});return Number(n??0)},OSe=(e,t,{key:n,order:r}={})=>{let i=[...e];if(n===void 0)return i;let{name:a,_i18n:{defaultLocale:o}}=t,s=k4(t),c=n===`_manual`?s??n:n,l=fA({collectionName:a,keyPath:c}),u=n===`_manual`||c===s?Number:bSe({key:n,fieldConfig:l}),d=l?.widget===`datetime`?l:void 0,f=DSe({key:c,type:u,collection:t,locale:o,collectionName:a,dateFieldConfig:d,isMarkdownField:l?.widget===`richtext`||l?.widget===`markdown`||ESe.includes(n)}),p=Object.fromEntries(i.map(e=>[e.slug,f(e)]));Y$(i,e=>p[e.slug],!d&&u===String,r);let m=nb(t)?.name;if(m){let e=i.findIndex(e=>e.slug===m);e>-1&&i.unshift(i.splice(e,1)[0])}return i}})),S9,C9,w9,T9,E9,D9,ASe,O9,k9,A9,j9,M9=s((()=>{ip(),j6(),jP(),Uy(),Jb(),sk(),Zy(),sSe(),fSe(),hSe(),kSe(),nN(),S9=un({type:`list`}),C9=un(!1),w9=un([]),T9=un(!1),D9=dn([Ry,Nb],([e,t],n)=>{n(e&&t?rk(t.name):[])}),ASe=5,O9=dn([D9,Nb],([e,t])=>{if(t?._type===`entry`){let n=t.create??!0,r=t.delete??!0,i=!!t.reorder,a=t?.limit??1/0,o=a<1/0?a-e.length:1/0;return{isEntryCollection:!0,canCreate:n,canDelete:r,canReorder:i,quota:a,remaining:o,nearingQuota:o>0&&o<=ASe,creationDisabled:!n||o<=0}}return{isEntryCollection:!1,canCreate:!1,canDelete:!1,canReorder:!1,quota:1/0,remaining:1/0,nearingQuota:!1,creationDisabled:!1}}),k9=void 0,A9=void 0,j9=dn([D9,S9,k6],([e,t],n)=>{if(e===k9&&t===A9)return;k9=e,A9=t;let r=A(Nb),i=[...e];if(!i.length||Jy(r,i[0]).length){n([]);return}t.sort&&(i=OSe(i,r,t.sort)),t.filters&&(i=iSe(i,r,t.filters)),n(lSe(i,r,t.group))}),C9.subscribe(e=>{if(!e){w9.set([]),T9.set(!1),E9&&=(S9.set(E9),void 0);return}let t=A(S9);E9=t;let n={};t.sort?.key!==`_manual`&&(n.sort={key:`_manual`,order:`ascending`}),t.filters?.length&&(n.filters=[]),t.group&&(n.group=null),Object.keys(n).length&&S9.set({...t,...n})}),kP.subscribe(e=>{e&&!A(_9)&&mSe(e)}),D9.subscribe(e=>{tk.set([]),A(tN).devModeEnabled&&console.info(`listedEntries`,e)}),Nb.subscribe(e=>{E9=void 0,C9.set(!1),e&&A(tN).devModeEnabled&&console.info(`selectedCollection`,e)})})),jSe,N9,P9,F9=s((()=>{ip(),iF(),ib(),Y4(),H8(),O8(),C7(),jSe=`{{fields._slug | localize}}`,N9=({collection:e,collectionFile:t,originalSlugs:n})=>{let r=e._type===`entry`,{allLocales:i,defaultLocale:a}=(t??e)._i18n;if(!r)return Object.fromEntries(i.map(e=>[e,!1]));let{identifier_field:o=`title`,slug:s=`{{${o}}}`}=e,c=s.includes(jSe),l=s.includes(`{{fields._slug}}`)||c;return Object.fromEntries(i.map(e=>!l||n._||n[e]?[e,!1]:[e,e===a||c||`readonly`]))},P9=({collection:e,collectionFile:t,originalEntry:n={},dynamicValues:r,extraValues:i,expanderStates:a,isIndexFile:o=rb(e,n)})=>{let s=e.name,c=t?.name,{id:l,slug:u,locales:d}=n,f=l===void 0,{fields:p=[],_i18n:m}=t??e,h=o?nb(e):void 0,g=h?.fields??p,_=h?.editor?.preview??t?.editor?.preview??e.editor?.preview??A($P)?.editor?.preview??!0,{allLocales:v,initialLocales:y,defaultLocale:b,canonicalSlug:{key:x}}=m,S=f?y:v.filter(e=>!!d?.[e]?.content),C=Object.fromEntries(v.map(e=>[e,S.includes(e)])),w=f?{}:x in(d?.[b]?.content??{})?Object.fromEntries(v.map(e=>[e,d?.[e]?.slug])):{_:d?.[b].slug},ee=Object.fromEntries(S.map(e=>f?[e,S7({fields:g,locale:e,defaultLocale:b,dynamicValues:r})]:[e,structuredClone(d?.[e]?.content)]));W4.set({id:f?crypto.randomUUID():l,createdAt:Date.now(),isNew:f,isIndexFile:o,canPreview:_,collectionName:s,collection:e,fileName:c,collectionFile:t,fields:g,originalEntry:f?void 0:n,defaultLocale:b,originalLocales:C,currentLocales:structuredClone(C),originalSlugs:w,currentSlugs:structuredClone(w),originalValues:ee,currentValues:Object.fromEntries(S.map(e=>[e,D8({draft:{collectionName:s,fileName:c,isIndexFile:o},locale:e,target:structuredClone(ee[e])})])),files:{},extraValues:i??Object.fromEntries(v.map(e=>[e,{}])),validities:Object.fromEntries(v.map(e=>[e,{}])),validationMessages:Object.fromEntries(v.map(e=>[e,{}])),expanderStates:a??{_:{}},slugEditor:N9({collection:e,collectionFile:t,originalSlugs:w})}),R8({collectionName:s,fileName:c,slug:u})}})),MSe,NSe=s((()=>{ip(),V4(),Y4(),F9(),HF(),yA(),Sge(),Qye(),MSe=()=>{let e=A(W4),{collectionName:t,fileName:n,collection:r,collectionFile:i,currentValues:a,validities:o,isIndexFile:s}=e,{defaultLocale:c,canonicalSlug:{key:l}}=(i??r)._i18n,u=k4(r);Object.entries(a).forEach(([e,r])=>{delete r[l],u&&delete r[u];let i={collectionName:t,fileName:n,valueMap:r,isIndexFile:s};Object.keys(r).forEach(t=>{let n=fA({...i,keyPath:t});if(n?.widget===`uuid`&&(e===c||[!0,`translate`].includes(n?.i18n??!1))&&(r[t]=X7(n)),n?.widget===`hidden`){if(Array.isArray(n.default)&&t.match(/\.\d+$/)&&(delete r[t],t=t.replace(/\.\d+$/,``),t in r))return;(e===c||[!0,`translate`].includes(n?.i18n??!1))&&Object.assign(r,v7({fieldConfig:n,keyPath:t,locale:e,defaultLocale:c}))}})}),Object.keys(o).forEach(e=>{o[e]={}}),W4.set({...e,id:crypto.randomUUID(),createdAt:Date.now(),isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{},slugEditor:N9({collection:r,collectionFile:i,originalSlugs:{}})}),FF.set(!0)}})),PSe,FSe=s((()=>{ip(),Y4(),PSe=()=>{let{currentLocales:e,currentSlugs:t,slugEditor:n}=A(W4),r={},i=!0;return Object.entries(t).forEach(([t,a])=>{let o=!!e?.[t]&&!!n[t]&&!a?.trim();o&&(i=!1),r[t]={_slug:{valueMissing:o,valid:!o}}}),{valid:i,validities:r}}})),ISe,LSe=s((()=>{Y4(),jve(),FSe(),ISe=()=>{let{valid:e,validities:t,validationMessages:n}=G7(`currentValues`),{valid:r,validities:i,validationMessages:a}=G7(`extraValues`),{valid:o,validities:s}=PSe();return W4.update(e=>({...e,validities:Object.fromEntries(Object.keys(t).map(e=>[e,{...t[e],...i[e],...s[e]}])),validationMessages:Object.fromEntries(Object.keys(n).map(e=>[e,{...n[e],...a[e]}]))})),e&&r&&o}})),RSe,zSe,BSe,VSe=s((()=>{ip(),jP(),Y2(),G0(),R0(),sk(),V4(),Y4(),H8(),NF(),l3(),d4(),LSe(),A7(),wxe(),RSe=({skipCI:e})=>{let t=A(q2)&&!(e??A(J2));L0.set({...I0,saved:!0,published:t,count:1}),AP.set(t)},zSe=e=>{let{collection:t,collectionFile:n,currentValues:r}=e,i=k4(t);if(!i)return;let{defaultLocale:a}=(n??t)._i18n,o=rk(t.name).reduce((e,t)=>{let n=Number(t.locales[a]?.content?.[i]);return Number.isFinite(n)&&n>e?n:e},0)+1;Object.values(r).forEach(e=>{e[i]=o})},BSe=async({skipCI:e=void 0}={})=>{let t=A(W4),{isNew:n,collection:r,collectionName:i,fileName:a,currentValues:o,originalEntry:s}=t;if(!ISe())throw zge({collectionName:i,fileName:a,currentValues:o}),Error(`validation_failed`);n&&r._type===`entry`&&zSe(t);let c=u4({draft:t}),{defaultLocaleSlug:l}=c,{savingEntry:u,changes:d,savingAssets:f}=await c3({draft:t,slugs:c}),p;try{p=await W0({changes:d,savingEntries:[u],savingAssets:f,options:{commitType:n?`create`:`update`,collection:r,skipCI:e}})}catch(e){throw console.error(e.cause??e),Error(`saving_failed`,{cause:e.cause??e})}return await MF({type:`postSave`,draft:t,savingEntry:u}),RSe({skipCI:e}),P8(i,n?``:l),s&&Cxe(s.id),p.savedEntries[0]}}));function HSe(e,t){O(t,!0),K(e,YSe);let n=()=>j(W4,`$entryDraft`,f),r=()=>j(J4,`$entryDraftModified`,f),i=()=>j(tN,`$prefs`,f),a=()=>j(VA,`$isSmallScreen`,f),o=()=>j(O9,`$collectionState`,f),s=()=>j(HA,`$isMediumScreen`,f),c=()=>j(s9,`$entryEditorSettings`,f),l=()=>j(q2,`$skipCIConfigured`,f),u=()=>j(J2,`$skipCIEnabled`,f),d=()=>j(LF,`$copyFromLocaleToast`,f),[f,p]=hn(),m=e=>{let t=M(()=>a()?tR:lI),n=M(()=>!z(ee)&&z(te)?.duplicate!==!1&&!o().creationDisabled&&!z(te)?.path),r=M(()=>z(te)?.delete!==!1);var i=I9(),s=I(i),c=e=>{var n=H(),r=I(n);{let e=M(()=>X(`duplicate`)),n=M(()=>X(`duplicate_entry`));Oo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{w1(`/collections/${z(oe)}/new`,{replaceState:!0,notifyChange:!1,transitionType:`forwards`}),MSe()}})})}U(e,n)};G(s,e=>{z(n)&&e(c)});var l=L(s,2),u=e=>{var n=H(),r=I(n);{let e=M(()=>X(`delete`)),n=M(()=>X(`delete_entry`));Oo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{P(v,!0)}})})}U(e,n)};G(l,e=>{z(r)&&e(u)}),U(e,i)},h=J(t,`disabled`,3,!1),g=N(!1),_=N(!1),v=N(!1),y=N(!1),b=N(``),x=N(!1),S=N(void 0),C=M(()=>n()===void 0),w=M(()=>n()?.isNew??!0),ee=M(()=>n()?.isIndexFile??!1),T=M(()=>n()?.collection),te=M(()=>z(T)?._type===`entry`?z(T):void 0),ne=M(()=>n()?.collectionFile),re=M(()=>n()?.originalEntry),ie=M(()=>(z(ne)??z(T))?._i18n??Tb),ae=M(()=>z(ie).defaultLocale),oe=M(()=>z(T)?.name),se=M(()=>z(ne)?.name),ce=M(()=>kh.current&&z(T)?Kb(z(T)):``),le=M(()=>kh.current&&z(T)?Kb(z(T),{useSingular:!0}):``),ue=M(()=>n()?.canPreview??!0),de=M(()=>z(w)||r()),fe=M(()=>Object.values(n()?.validities??{}).flatMap(e=>Object.values(e).map(({valid:e})=>!e)).filter(Boolean).length),E=M(()=>z(oe)&&z(re)&&zp({collectionName:z(oe),fileName:z(se)})?.entryRelative?OF({entry:z(re),collectionName:z(oe),fileName:z(se),relative:!0}):[]),pe=M(()=>z(T)&&z(re)?JO(z(re),z(ae),z(T),z(ne)):void 0),me=()=>{T1(z(oe)===`_singletons`?`/collections`:`/collections/${z(oe)}`)},he=async({skipCI:e=void 0}={})=>{if(P(x,!0),z(T))try{let t=await BSe({skipCI:e});i()?.closeOnSave??!0?(me(),mn(W4,null)):(z(w)&&w1(`/collections/${z(oe)}/entries/${t.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:`backwards`}),P9({collection:z(T),collectionFile:z(ne),originalEntry:t,extraValues:n()?.extraValues,expanderStates:n()?.expanderStates}))}catch(e){e.message===`validation_failed`?P(g,!0):e.message===`saving_failed`?(P(y,!0),P(b,e.cause?.message??e.message??X(`unexpected_error`),!0)):(P(y,!0),P(b,``),console.error(e))}finally{P(x,!1)}};var ge=JSe(),_e=I(ge);{let e=M(()=>X(`primary`));i$(_e,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var r=GSe(),o=I(r);{let e=M(()=>X(`cancel_editing`));r2(o,{get"aria-label"(){return z(e)},get useShortcut(){return i().closeWithEscape},onclick:()=>{me()}})}var d=L(o,2),f=F(d),p=e=>{ZF(e,{children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`create_entry_title`,{values:{name:z(le)}})]),U(e,t)},o=e=>{let t=M(()=>z(ne)?qy(z(ne)):z(T)&&z(re)&&kh.current?TO(z(T),z(re)):``);var n=H(),r=I(n),i=e=>{var n=Fa();R(()=>W(n,z(t))),U(e,n)},o=e=>{var n=Fa();R(e=>W(n,e),[()=>X(`edit_entry_title`,{values:{collection:z(ce),entry:z(t)}})]),U(e,n)};G(r,e=>{a()?e(i):e(o,-1)}),U(e,n)};G(r,e=>{z(w)?e(i):e(o,-1)}),U(e,n)},$$slots:{default:!0}})};G(f,e=>{z(C)||e(p)}),D(d);var g=L(d,2),v=e=>{{let t=M(()=>X(`view_on_live_site`));lI(e,{variant:`tertiary`,get label(){return z(t)},onclick:()=>{h1(z(pe))}})}};G(g,e=>{!h()&&z(pe)&&e(v)});var y=L(g,2),b=e=>{m(e)};G(y,e=>{!a()&&!h()&&!z(ne)&&!z(w)&&e(b)});var ie=L(y,2);{let e=e=>{{let t=M(()=>X(`editor_options`));ZL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=WSe(),i=I(r),o=e=>{m(e)};G(i,e=>{a()&&!h()&&!z(ne)&&!z(w)&&e(o)});var l=L(i,2);{let e=M(()=>X(`edit_slug`)),t=M(()=>!!z(ne)||z(w)||z(ee)||z(te)?.delete===!1);tR(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{P(_,!0)}})}var u=L(l,2);{let e=M(()=>X(`revert_all_changes`)),t=M(()=>!z(de));tR(u,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{t9()}})}var d=L(u,2),f=e=>{var t=USe(),r=I(t);qI(r,{});var i=L(r,2);{let e=M(()=>X(`show_preview`)),t=M(()=>c()?.showPreview),n=M(()=>!z(ue));sR(i,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(n)},onChange:()=>{s9.update((e={})=>({...e,showPreview:!e.showPreview}))}})}var a=L(i,2);{let e=M(()=>X(`sync_scrolling`)),t=M(()=>c()?.syncScrolling),r=M(()=>!z(ue)&&Object.keys(n()?.currentValues??{}).length===1);sR(a,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(r)},onChange:()=>{s9.update((e={})=>({...e,syncScrolling:!e.syncScrolling}))}})}U(e,t)};G(d,e=>{a()||s()||e(f)}),U(e,r)},$$slots:{default:!0}})}},t=M(()=>X(`show_editor_options`));Ws(VI(ie,{get disabled(){return h()},variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(t)},popup:e,$$slots:{popup:!0}}),e=>P(S,e,!0),()=>z(S))}var ae=L(ie,2),oe=e=>{{let t=e=>{ZL(e,{children:(e,t)=>{{let t=M(()=>X(u()?`save_and_publish`:`save_without_publishing`));tR(e,{get label(){return z(t)},onclick:()=>{he({skipCI:!u()})}})}},$$slots:{default:!0}})},n=M(()=>X(u()?z(x)?`saving`:`save`:z(x)?`publishing`:`publish`)),r=M(()=>h()||!z(de)||z(x));WI(e,{variant:`primary`,get label(){return z(n)},get disabled(){return z(r)},keyShortcuts:`Accel+S`,onclick:()=>{he()},popup:t,$$slots:{popup:!0}})}},se=e=>{{let t=M(()=>X(z(x)?`saving`:`save`)),n=M(()=>h()||!z(de)||z(x));lI(e,{variant:`primary`,get label(){return z(t)},get disabled(){return z(n)},keyShortcuts:`Accel+S`,onclick:()=>{he()}})}};G(ae,e=>{l()?e(oe):e(se,-1)}),U(e,r)},$$slots:{default:!0}})}var ve=L(_e,2);oz(ve,{get show(){return z(g)},set show(e){P(g,e,!0)},children:(e,t)=>{GF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entry_validation_errors`,{values:{count:z(fe)}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var ye=L(ve,2);oz(ye,{get id(){return d().id},get show(){return d().show},set show(e){_n(LF,B(d).show=e,B(d))},children:(e,t)=>{let n=M(()=>{let{status:e,message:t,count:n,sourceLanguage:r}=d();return{status:e,message:t,count:n,sourceLanguage:r}});GF(e,{get status(){return z(n).status},children:(e,t)=>{_t();var r=Fa();R(e=>W(r,e),[()=>X(`editor.${z(n).message}`,{values:{count:z(n).count,source:z(n).sourceLanguage?cb(z(n).sourceLanguage)??z(n).sourceLanguage:``}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=L(ye,2);Jxe(be,{get open(){return z(_)},set open(e){P(_,e,!0)}});var xe=L(be,2);{let e=M(()=>X(`delete_entry`)),t=M(()=>X(`delete`));gL(xe,{get title(){return z(e)},get okLabel(){return z(t)},onOk:async()=>{z(re)&&await m9([z(re)],z(E)),me()},onClose:()=>{z(S)?.focus()},get open(){return z(v)},set open(e){P(v,e,!0)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(z(E).length?`confirm_deleting_this_entry_with_assets`:`confirm_deleting_this_entry`)]),U(e,n)},$$slots:{default:!0}})}var Se=L(xe,2);{let e=M(()=>X(`saving_entry.error.title`));hL(Se,{get title(){return z(e)},onClose:()=>{z(S)?.focus()},get open(){return z(y)},set open(e){P(y,e,!0)},children:(e,t)=>{_t();var n=qSe(),r=I(n),i=L(r),a=e=>{var t=KSe(),n=F(t,!0);D(t),R(()=>W(n,z(b))),U(e,t)};G(i,e=>{z(b)&&e(a)}),R(e=>W(r,`${e??``} `),[()=>X(`saving_entry.error.description`)]),U(e,n)},$$slots:{default:!0}})}U(e,ge),k(),p()}var I9,USe,WSe,GSe,KSe,qSe,JSe,YSe,XSe=s((()=>{Q(),Y(),Z(),G$(),i2(),eSe(),D1(),Up(),Y2(),Jb(),nSe(),Zy(),M9(),Y4(),F9(),NSe(),VSe(),n9(),HF(),l9(),XO(),kF(),EO(),fb(),Mb(),KA(),nN(),g1(),I9=V(`<!> <!>`,1),USe=V(`<!> <!> <!>`,1),WSe=V(`<!> <!> <!> <!>`,1),GSe=V(`<!> <h2 role="none"><!></h2> <!> <!> <!> <!>`,1),KSe=V(`<div role="none" class="error svelte-zjrq31"> </div>`),qSe=V(` <!>`,1),JSe=V(`<!> <!> <!> <!> <!> <!>`,1),YSe={hash:`svelte-zjrq31`,code:`.error.svelte-zjrq31 {margin-top:8px;border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);line-height:1.5;}`}}));function ZSe(e,t){O(t,!0),K(e,cCe);let n=()=>j(W4,`$entryDraft`,f),r=()=>j(s9,`$entryEditorSettings`,f),i=()=>j(O9,`$collectionState`,f),a=()=>j(RF,`$editorFirstPane`,f),o=()=>j(zF,`$editorSecondPane`,f),s=()=>j(VA,`$isSmallScreen`,f),c=()=>j(HA,`$isMediumScreen`,f),l=()=>j(K4,`$entryDraftInteracted`,f),u=()=>j(PF,`$showContentOverlay`,f),d=()=>j(FF,`$showDuplicateToast`,f),[f,p]=hn(),m=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{locale:e,mode:t}=a();return{locale:e,mode:t}});var n=$Se(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:cb(z(t).locale)??z(t).locale}}));H$(r,{class:`pane`,get"aria-label"(){return z(e)},get"data-locale"(){return z(t).locale},get"data-mode"(){return z(t).mode},children:(e,t)=>{var n=QSe(),r=I(n);Qbe(r,{id:`first-pane-header`,get thisPane(){return RF},get thatPane(){return zF}}),Rbe(L(r,2),{id:`first-pane-body`,get thisPane(){return RF},get thisPaneContentArea(){return z(x)},set thisPaneContentArea(e){P(x,e,!0)},get thatPaneContentArea(){return z(S)},set thatPaneContentArea(e){P(S,e,!0)}}),U(e,n)},$$slots:{default:!0}})}D(n),U(e,n)};G(n,e=>{a()&&e(r)}),U(e,t)},h=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{locale:e,mode:t}=o();return{locale:e,mode:t}});var n=tCe(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:cb(z(t).locale)??z(t).locale}}));H$(r,{class:`pane`,get"aria-label"(){return z(e)},get"data-locale"(){return z(t).locale},get"data-mode"(){return z(t).mode},children:(e,t)=>{var n=eCe(),r=I(n);Qbe(r,{id:`second-pane-header`,get thisPane(){return zF},get thatPane(){return RF}}),Rbe(L(r,2),{id:`second-pane-body`,get thisPane(){return zF},get thisPaneContentArea(){return z(S)},set thisPaneContentArea(e){P(S,e,!0)},get thatPaneContentArea(){return z(x)},set thatPaneContentArea(e){P(x,e,!0)}}),U(e,n)},$$slots:{default:!0}})}D(n),U(e,n)};G(n,e=>{o()&&e(r)}),U(e,t)},g=J(t,`editorLocale`,3,void 0),_=!1,v=!1,y=N(!0),b=N(void 0),x=N(void 0),S=N(void 0),C=M(()=>n()===void 0),w=M(()=>n()??{}),ee=M(()=>T(z(w).isNew,!0)),ne=M(()=>T(z(w).canPreview,!0)),re=M(()=>z(w).collection),ie=M(()=>z(w).collectionName),ae=M(()=>z(w).collectionFile),oe=M(()=>z(w).fileName),se=M(()=>z(w).isIndexFile),ce=M(()=>z(w).currentValues),le=M(()=>r()??{}),ue=M(()=>z(le).showPreview),de=M(()=>(z(ae)??z(re))?._i18n??Tb),fe=M(()=>z(de).i18nEnabled),E=M(()=>z(de).allLocales),pe=M(()=>z(de).defaultLocale),me=M(()=>z(ae)?.name?[z(re)?.name,z(ae).name].join(`|`):z(re)?.name),he=M(()=>i().canCreate),ge=M(()=>i().quota),_e=M(()=>i().creationDisabled),ve=M(()=>!a()&&!o()?[0,0,0]:!a()||!o()?[a()?100:0,o()?100:0,0]:typeof a().width==`number`&&typeof o().width==`number`&&a().width>=30&&o().width>=30&&a().width+o().width===100?[a().width,o().width,30]:[50,50,30]),ye=M(()=>te(z(ve),3)),be=M(()=>z(ye)[0]),xe=M(()=>z(ye)[1]),Se=M(()=>z(ye)[2]),Ce=async()=>{let[e,t]=r()?.paneStates?.[z(me)??``]??[];return g()&&(e={mode:`edit`,locale:g()},t={mode:`preview`,locale:g()}),_||!e||!t||e.locale&&!z(E).includes(e.locale)||t.locale&&!z(E).includes(t.locale)||(!z(ue)||!z(ne))&&(e.mode===`preview`||t.mode===`preview`)||z(E).length===2&&e.locale!==z(pe)?!1:(_=!0,await Bi(),mn(RF,e),mn(zF,s()||c()?null:t),await Bi(),_=!1,!0)},we=async()=>{if(!(!n()||v)){if(v=!0,await Ce()){v=!1;return}if(mn(RF,{mode:`edit`,locale:a()?.locale??z(pe)}),s()||c())mn(zF,null);else if(!z(ue)||!z(ne)){let e=z(fe)?z(E).filter(e=>e!==a()?.locale):[];mn(zF,e.length?{mode:`edit`,locale:e[0]}:null)}else mn(zF,{mode:`preview`,locale:a().locale});v=!1}},Te=()=>{!z(re)||_||!a()||!o()||!z(me)||s9.update((e={})=>({...e,paneStates:{...e.paneStates,[z(me)]:[a(),o()]}}))},Ee=e=>{e.isTrusted&&!l()&&mn(K4,!0)},De=async()=>{await Bi(),z(b)&&(z(b).tabIndex=0,z(b).focus())},Oe=async e=>{let t=a(),n=o();t?.mode===`edit`&&t.locale===e||n?.mode===`edit`&&n.locale===e||(n?.mode===`preview`?mn(zF,{mode:`edit`,locale:e}):t?.mode===`preview`?mn(RF,{mode:`edit`,locale:e}):mn(n?zF:RF,{mode:`edit`,locale:e}),await Yx(100))},ke=async({locale:e,keyPath:t})=>{await Oe(e);let n=z(ce)?.[e]??{},r=k7({collectionName:z(ie),fileName:z(oe),valueMap:n,keyPath:t,isIndexFile:z(se)});O7(Object.fromEntries(r.map(e=>[e,!0]))),window.requestAnimationFrame(()=>{let n=document.querySelector(`.content-editor .pane[data-mode="edit"][data-locale="${CSS.escape(e)}"] .field[data-key-path="${CSS.escape(t)}"]`);if(n){typeof n.scrollIntoViewIfNeeded==`function`?n.scrollIntoViewIfNeeded():n.scrollIntoView();let e=n.querySelector(`.field-wrapper`);(e?.querySelector(`[contenteditable="true"], [tabindex="0"]`)??e?.querySelector(`input, textarea, button`))?.focus()}})},Ae=e=>{e.source===window&&e.data?.type===`highlight-editor-field`&&e.data.payload&&ke(e.data.payload)};ac(()=>(u()||mn(W4,null),window.addEventListener(`message`,Ae),()=>{window.removeEventListener(`message`,Ae)})),ti(()=>{z(me)&&(mn(RF,null),mn(zF,null))}),ti(()=>{z(re),z(ue),z(ne),s(),c(),B(()=>{we()})}),ti(()=>{a(),o(),Te()}),ti(()=>{z(b)&&(u()?z(y)&&(P(y,!1),we(),De(),B8()):z8())});var je=sCe(),Me=I(je);oo(F(Me),()=>n()?.id,e=>{var t=oCe(),r=I(t);{let e=M(()=>z(ee)&&z(_e));HSe(r,{get disabled(){return z(e)}})}var i=L(r,2),c=e=>{},l=e=>{z$(e,{children:(e,t)=>{var n=nCe(),r=I(n),i=F(r),a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`entry_not_found`)]),U(e,t)},o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},s=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(ge)}})]),U(e,t)};G(i,e=>{z(C)?e(a):z(he)?e(s,-1):e(o,1)}),D(r);var c=L(r,2);lI(F(c),{variant:`primary`,onclick:()=>{w1(`/collection/${z(re)?.name}`,{replaceState:!0,transitionType:`backwards`})},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`back_to_collection`)]),U(e,n)},$$slots:{default:!0}}),D(c),U(e,n)},$$slots:{default:!0}})},u=e=>{var t=aCe();oo(F(t),()=>`${z(ie)}|${z(oe)}|${z(se)}`,e=>{var t=iCe(),n=I(t),r=F(n),i=e=>{var t=H(),n=I(t),r=e=>{loe(e,{onResize:({sizes:e})=>{a()&&o()&&(e=>{var t=te(e,2);_n(RF,B(a).width=t[0],B(a)),_n(zF,B(o).width=t[1],B(o))})(e)},children:(e,t)=>{var n=rCe(),r=I(n);SR(r,{get defaultSize(){return z(be)},get minSize(){return z(Se)},children:(e,t)=>{m(e)},$$slots:{default:!0}});var i=L(r,2);soe(i,{children:(e,t)=>{{let t=M(()=>X(`swap_panes`));lI(e,{class:`swap-button`,iconic:!0,size:`small`,variant:`tertiary`,get"aria-label"(){return z(t)},onclick:()=>{(e=>{var t=te(e,2);mn(RF,t[0]),mn(zF,t[1])})([o(),a()])},children:(e,t)=>{UF(e,{name:`swap_horiz`})},$$slots:{default:!0}})}},$$slots:{default:!0}}),SR(L(i,2),{get defaultSize(){return z(xe)},get minSize(){return z(Se)},children:(e,t)=>{h(e)},$$slots:{default:!0}}),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(be)&&z(xe)&&e(r)}),U(e,t)},c=e=>{m(e)},l=e=>{h(e)},u=e=>{ZI(e,{flex:!0})};G(r,e=>{a()&&o()?e(i):a()?e(c,1):o()?e(l,2):e(u,-1)}),D(n);var d=L(n,2),f=e=>{Uxe(e,{})};G(d,e=>{s()||e(f)}),U(e,t)}),D(t),Sa(`pointerdown`,t,Ee),Sa(`keydown`,t,Ee),U(e,t)};G(i,e=>{n()===null?e(c):z(C)||z(ee)&&z(_e)?e(l,1):e(u,-1)}),U(e,t)}),D(Me),Ws(Me,e=>P(b,e),()=>z(b));var Ne=L(Me,2);ude(Ne,{}),oz(L(Ne,2),{get show(){return vn(),d()},set show(e){mn(FF,e)},children:(e,t)=>{GF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entry_duplicated`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),R(e=>q(Me,`aria-label`,e),[()=>X(`content_editor`)]),U(e,je),k(),p()}var QSe,$Se,eCe,tCe,nCe,rCe,iCe,aCe,oCe,sCe,cCe,lCe=s((()=>{Q(),Y(),Z(),G$(),Xx(),sc(),dde(),Ube(),lxe(),qxe(),XSe(),D1(),M9(),Y4(),H8(),HF(),A7(),l9(),fb(),Mb(),KA(),QSe=V(`<!> <!>`,1),$Se=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),eCe=V(`<!> <!>`,1),tCe=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),nCe=V(`<div role="none"><!></div> <div role="none"><!></div>`,1),rCe=V(`<!> <!> <!>`,1),iCe=V(`<div role="none" class="content-area svelte-jrunrx"><!></div> <!>`,1),aCe=V(`<div role="none" class="body svelte-jrunrx"><!></div>`),oCe=V(`<!> <!>`,1),sCe=V(`<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>`,1),cCe={hash:`svelte-jrunrx`,code:`.wrapper.svelte-jrunrx {position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;background-color:var(--sui-secondary-background-color);}.pane-wrapper.svelte-jrunrx {display:contents;}.pane-wrapper.svelte-jrunrx > .pane {flex:auto;height:100%;overflow:hidden;display:flex;flex-direction:column;}.body.svelte-jrunrx {flex:auto;display:flex;overflow:hidden;}.content-area.svelte-jrunrx {flex:auto;background-color:var(--sui-primary-background-color);}.content-area.svelte-jrunrx:not(:only-child) {border-start-end-radius:16px;}.content-area.svelte-jrunrx .sui.resizable-handle {background-color:var(--sui-secondary-background-color);}.content-area.svelte-jrunrx .sui.resizable-handle .swap-button {position:absolute;top:calc(50% - 12px);margin:0;border-radius:50%;opacity:0.5;}.content-area.svelte-jrunrx .sui.resizable-handle .swap-button:hover, .content-area.svelte-jrunrx .sui.resizable-handle .swap-button:focus-visible {opacity:1;}`},Ca([`pointerdown`,`keydown`])}));function uCe(e,t){O(t,!0),K(e,mCe);let n=()=>j(VA,`$isSmallScreen`,a),r=()=>j(HA,`$isMediumScreen`,a),i=()=>j(nk,`$selectedEntryIdSet`,a),[a,o]=hn(),s=J(t,`showCheckbox`,3,!1),c=J(t,`onSelect`,3,void 0);var l=pCe(),u=I(l),d=e=>{jL(e,{class:`checkbox`,children:(e,n)=>{{let n=M(()=>i().has(t.entry.id));rL(e,{role:`none`,tabindex:`-1`,get checked(){return z(n)},onChange:({detail:{checked:e}})=>{c()?.(e)}})}},$$slots:{default:!0}})};G(u,e=>{s()&&!(n()||r())&&e(d)});var f=L(u,2),p=e=>{jL(e,{class:`image`,children:(e,n)=>{var r=H();eo(I(r),()=>DF(t.collection,t.entry),null,(e,n)=>{var r=H(),i=I(r),a=e=>{{let r=M(()=>t.viewType===`list`?`icon`:`tile`);S3(e,{get src(){return z(n)},get variant(){return z(r)},cover:!0})}};G(i,e=>{z(n)&&e(a)}),U(e,r)}),U(e,r)},$$slots:{default:!0}})};G(f,e=>{t.collection._thumbnailFieldNames.length&&e(p)}),jL(L(f,2),{class:`title`,children:(e,n)=>{var r=fCe();ZF(F(r),{lines:2,children:(e,n)=>{var r=dCe(),i=I(r);oo(i,()=>kh.current,e=>{var n=H();So(I(n),()=>TO(t.collection,t.entry,{useTemplate:!0,allowMarkdown:!0})),U(e,n)});var a=L(i,2),o=e=>{{let n=M(()=>nb(t.collection)?.icon);UF(e,{get name(){return z(n)},class:`home`})}},s=M(()=>rb(t.collection,t.entry));G(a,e=>{z(s)&&e(o)}),U(e,r)},$$slots:{default:!0}}),D(r),U(e,r)},$$slots:{default:!0}}),U(e,l),k(),o()}var dCe,fCe,pCe,mCe,hCe=s((()=>{Q(),Y(),Z(),G$(),C3(),sk(),ib(),kF(),EO(),KA(),dCe=V(`<!> <!>`,1),fCe=V(`<div role="none" class="label svelte-b1f01"><!></div>`),pCe=V(`<!> <!> <!>`,1),mCe={hash:`svelte-b1f01`,code:`.label.svelte-b1f01 .icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}`}}));function gCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=hn(),a=e=>{tk.update(n=>{let r=n.indexOf(t.entry);return e&&r===-1&&n.push(t.entry),!e&&r>-1&&n.splice(r,1),n})};{let r=M(()=>n().indexOf(t.entry));PL(e,{get"aria-rowindex"(){return z(r)},onChange:e=>{a(e.detail.selected)},onclick:()=>{w1(`/collections/${t.collection.name}/entries/${t.entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{uCe(e,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType},showCheckbox:!0,onSelect:a})},$$slots:{default:!0}})}k(),i()}var _Ce=s((()=>{Q(),Y(),G$(),hCe(),D1(),sk(),M9()}));function vCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=hn(),a=J(t,`dragging`,3,!1),o=J(t,`dropBefore`,3,!1),s=J(t,`dropAfter`,3,!1),c=J(t,`canMoveUp`,3,!1),l=J(t,`canMoveDown`,3,!1),u=J(t,`onDragStart`,3,void 0),d=J(t,`onDragOver`,3,void 0),f=J(t,`onDrop`,3,void 0),p=J(t,`onDragEnd`,3,void 0),m=J(t,`onMoveUp`,3,void 0),h=J(t,`onMoveDown`,3,void 0);{let r=M(()=>n().indexOf(t.entry)),i=M(()=>[a()&&`drag-source`,o()&&`drop-before`,s()&&`drop-after`].filter(Boolean).join(` `));PL(e,{get"aria-rowindex"(){return z(r)},get class(){return z(i)},draggable:!0,ondragstart:e=>{u()?.(),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)},ondragover:e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),d()?.(e.clientY,e.currentTarget.getBoundingClientRect())},ondrop:e=>{e.preventDefault(),f()?.()},ondragend:()=>{p()?.()},children:(e,n)=>{var r=bCe(),i=I(r);uCe(i,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType}}),jL(L(i,2),{class:`reorder-actions`,children:(e,t)=>{var n=yCe(),r=I(n);{let e=e=>{UF(e,{name:`arrow_upward`})},t=M(()=>!c()),n=M(()=>X(`move_up`));lI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),m()?.()},startIcon:e,$$slots:{startIcon:!0}})}var i=L(r,2);{let e=e=>{UF(e,{name:`arrow_downward`})},t=M(()=>!l()),n=M(()=>X(`move_down`));lI(i,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),h()?.()},startIcon:e,$$slots:{startIcon:!0}})}U(e,n)},$$slots:{default:!0}}),U(e,r)},$$slots:{default:!0}})}k(),i()}var yCe,bCe,xCe=s((()=>{Q(),Y(),Z(),G$(),hCe(),M9(),yCe=V(`<!> <!>`,1),bCe=V(`<!> <!>`,1)}));function SCe(e,t){O(t,!0),K(e,wCe);let n=()=>j(j9,`$entryGroups`,r),[r,i]=hn(),a=N(Cr({})),o=N(``),s=N(void 0),c=N(void 0),l=(e=z(a))=>{w9.set(n().flatMap(({name:t,entries:n})=>e[t]??n))},u=(e,t,n)=>{if(t===n)return;let r=[...z(a)[e]??[]],[i]=r.splice(t,1);r.splice(n,0,i),z(a)[e]=r,T9.set(!0),l()};ac(()=>{let e=nb(t.collection)?.name,r=Object.fromEntries(n().map(({name:n,entries:r})=>[n,A4(e?r.filter(t=>t.slug!==e):r,t.collection)]));P(a,r,!0),l(r)});var d=CCe();mo(d,5,n,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var l=H();eo(I(l),Yx,null,e=>{{let n=M(()=>r()===`*`?void 0:r());DL(e,{get label(){return z(n)},children:(e,n)=>{let l=M(()=>z(a)[r()]??i());var d=H();mo(I(d),19,()=>z(l),e=>e.id,(e,n,i)=>{{let a=M(()=>z(s)===z(i)&&z(o)===r()),d=M(()=>z(c)===z(i)&&z(o)===r()&&z(s)!==z(i)&&z(s)!==z(i)-1),f=M(()=>z(c)===z(l).length&&z(i)===z(l).length-1&&z(o)===r()&&z(s)!==z(l).length-1),p=M(()=>z(i)>0),m=M(()=>z(i)<z(l).length-1);vCe(e,{get collection(){return t.collection},get entry(){return z(n)},get viewType(){return t.viewType},get dragging(){return z(a)},get dropBefore(){return z(d)},get dropAfter(){return z(f)},get canMoveUp(){return z(p)},get canMoveDown(){return z(m)},onDragStart:()=>{P(o,r(),!0),P(s,z(i),!0)},onDragOver:(e,t)=>{P(o,r(),!0),P(c,e<t.top+t.height/2?z(i):z(i)+1,!0)},onDrop:()=>{z(s)!==void 0&&z(c)!==void 0&&z(c)!==z(s)&&z(c)!==z(s)+1&&u(r(),z(s),z(c)>z(s)?z(c)-1:z(c)),P(s,void 0),P(c,void 0)},onDragEnd:()=>{P(s,void 0),P(c,void 0)},onMoveUp:()=>{z(i)>0&&u(r(),z(i),z(i)-1)},onMoveDown:()=>{z(i)<z(l).length-1&&u(r(),z(i),z(i)+1)}})}}),U(e,d)},$$slots:{default:!0}})}}),U(e,l)}),D(d),U(e,d),k(),i()}var CCe,wCe,TCe=s((()=>{Q(),Y(),G$(),Xx(),sc(),xCe(),ib(),V4(),M9(),CCe=V(`<div role="none" class="wrapper svelte-1txp9gj"></div>`),wCe={hash:`svelte-1txp9gj`,code:`.wrapper.svelte-1txp9gj .grid-row.drag-source {opacity:0.4;cursor:grabbing;}.wrapper.svelte-1txp9gj .grid-row[draggable=true]:not(.drag-source) {cursor:grab;}.wrapper.svelte-1txp9gj .grid-row.drop-before .grid-cell {border-top:3px solid var(--sui-primary-accent-color) !important;}.wrapper.svelte-1txp9gj .grid-row.drop-after .grid-cell {border-bottom:3px solid var(--sui-primary-accent-color) !important;}`}}));function ECe(e,t){O(t,!0);let n=()=>j(Ry,`$allEntries`,a),r=()=>j(Nb,`$selectedCollection`,a),i=()=>j(O9,`$collectionState`,a),[a,o]=hn(),s=J(t,`label`,3,void 0),c=J(t,`keyShortcuts`,3,void 0),l=M(()=>n()&&r()?ok(r()):!1),u=M(()=>kh.current&&r()?nb(r())?.label:``),d=M(()=>z(l)?WI:lI),f=(e=!1)=>{w1(`/collections/${t.collectionName}/new`,{state:{index:e},transitionType:`forwards`})};var p=H(),m=I(p);{let e=e=>{UF(e,{name:`edit`})},t=e=>{var t=H(),n=I(t),r=e=>{ZL(e,{children:(e,t)=>{var n=DCe(),r=I(n);{let e=M(()=>X(`entry`));tR(r,{get label(){return z(e)},onclick:()=>f()})}tR(L(r,2),{get label(){return z(u)},onclick:()=>f(!0)}),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(l)&&e(r)}),U(e,t)},n=M(()=>!s()),r=M(()=>X(`create_new_entry`));Oo(m,()=>z(d),(a,o)=>{o(a,{variant:`primary`,get iconic(){return z(n)},get disabled(){return i().creationDisabled},get label(){return s()},get"aria-label"(){return z(r)},get keyShortcuts(){return c()},onclick:()=>f(),startIcon:e,popup:t,$$slots:{startIcon:!0,popup:!0}})})}U(e,p),k(),o()}var DCe,OCe=s((()=>{Q(),Y(),Z(),G$(),D1(),Uy(),Jb(),sk(),ib(),M9(),DCe=V(`<!> <!>`,1)}));function kCe(e,t){O(t,!0);let n=()=>j(Nb,`$selectedCollection`,s),r=()=>j(C9,`$reordering`,s),i=()=>j(S9,`$currentView`,s),a=()=>j(j9,`$entryGroups`,s),o=()=>j(D9,`$listedEntries`,s),[s,c]=hn(),l=M(n),u=M(()=>r()?`list`:i().type),d=M(()=>a().flatMap(({entries:e})=>e));{let t=M(()=>X(`entry_list`));B3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H(),i=I(n),s=e=>{var t=H(),n=I(t),i=e=>{let t=M(()=>{let{defaultLocale:e}=z(l)._i18n;return{defaultLocale:e}});{let n=M(()=>X(`entries`));W3(e,{get viewType(){return z(u)},id:`entry-list`,get"aria-label"(){return z(n)},get"aria-rowcount"(){return o().length},children:(e,n)=>{var i=H(),o=I(i),s=e=>{SCe(e,{get collection(){return z(l)},get viewType(){return z(u)}})},c=e=>{var n=H();mo(I(n),1,a,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var a=H();eo(I(a),Yx,null,e=>{{let n=M(()=>r()===`*`?void 0:r());DL(e,{get label(){return z(n)},children:(e,n)=>{{let n=(e,t=E)=>{var n=H();eo(I(n),Yx,null,e=>{gCe(e,{get collection(){return z(l)},get entry(){return t()},get viewType(){return z(u)}})}),U(e,n)},r=M(()=>i().filter(({locales:e})=>!!(e[z(t).defaultLocale]??Object.values(e)[0])?.content));wR(e,{get items(){return z(r)},itemKey:`id`,renderItem:n,$$slots:{renderItem:!0}})}},$$slots:{default:!0}})}}),U(e,a)}),U(e,n)};G(o,e=>{r()?e(s):e(c,-1)}),U(e,i)},$$slots:{default:!0}})}},s=e=>{z$(e,{children:(e,t)=>{var n=ACe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_entries_found`)]),U(e,n)},$$slots:{default:!0}})},c=e=>{z$(e,{children:(e,t)=>{var n=jCe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(`create_new_entry`));ECe(a,{get collectionName(){return z(l).name},get label(){return z(e)}})}R(e=>W(i,e),[()=>X(`no_entries_created`)]),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(d).length?e(i):o().length?e(s,1):e(c,-1)}),U(e,t)},c=e=>{z$(e,{children:(e,t)=>{var n=MCe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`collection_not_found`)]),U(e,n)},$$slots:{default:!0}})};G(i,e=>{z(l)?e(s):e(c,-1)}),U(e,n)},$$slots:{default:!0}})}k(),c()}var ACe,jCe,MCe,NCe=s((()=>{Q(),Y(),Z(),G$(),Xx(),U3(),q3(),_Ce(),TCe(),OCe(),Jb(),M9(),ACe=V(`<span role="none"> </span>`),jCe=V(`<span role="none"> </span> <!>`,1),MCe=V(`<span role="none"> </span>`)}));function PCe(e,t){O(t,!0),K(e,LCe);let n=()=>j(Nb,`$selectedCollection`,r),[r,i]=hn(),a=M(()=>n()?.files.filter(Wy)??[]);{let t=M(()=>X(`file_list`));B3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=H(),i=I(r),o=e=>{{let t=M(()=>X(`files`));W3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return z(a).length},children:(e,t)=>{wR(e,{get items(){return z(a)},itemKey:`name`,renderItem:(e,t)=>{let r=()=>t?.().name,i=()=>t?.().label,a=()=>t?.().icon;var o=H();eo(I(o),Yx,null,e=>{PL(e,{onclick:()=>{w1(`/collections/${n()?.name}/entries/${r()}`,{transitionType:`forwards`})},children:(e,t)=>{jL(e,{class:`title`,children:(e,t)=>{var n=FCe(),o=F(n),s=e=>{UF(e,{get name(){return a()}})};G(o,e=>{a()&&e(s)}),ZF(L(o,2),{lines:2,children:(e,t)=>{_t();var n=Fa();R(()=>W(n,i()||r())),U(e,n)},$$slots:{default:!0}}),D(n),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}),U(e,o)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},s=e=>{z$(e,{children:(e,t)=>{var n=ICe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_in_collection`)]),U(e,n)},$$slots:{default:!0}})};G(i,e=>{z(a)?.length?e(o):e(s,-1)}),U(e,r)},$$slots:{default:!0}})}k(),i()}var FCe,ICe,LCe,RCe=s((()=>{Q(),Y(),Z(),G$(),Xx(),U3(),q3(),D1(),Jb(),Zy(),FCe=V(`<div role="none" class="label svelte-1nfjp1"><!> <!></div>`),ICe=V(`<span role="none"> </span>`),LCe={hash:`svelte-1nfjp1`,code:`.label.svelte-1nfjp1 {display:flex;align-items:center;gap:16px;}.label.svelte-1nfjp1 .icon {display:flex;align-items:center;justify-content:center;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);}`}}));function zCe(e,t){O(t,!0),K(e,VCe);let[n,r]=hn(),i=M(()=>t.file.name),a=M(()=>t.file.label),o=M(()=>t.file.icon),s=N(!1),c=N(void 0);var l=BCe(),u=F(l);{let e=e=>{{let t=M(()=>z(o)||`edit_document`);UF(e,{get name(){return z(t)}})}},t=M(()=>z(a)||z(i));KL(u,{get label(){return z(t)},onSelect:()=>{mn(y1,X(`singleton_selected_announcement`,{values:{file:z(a)||z(i)}}))},onclick:()=>{w1(`/collections/_singletons/entries/${z(i)}`,{transitionType:`forwards`}),P(s,!1),z(c)?.querySelector(`[role="option"]`)?.classList.remove(`focused`)},get selected(){return z(s)},set selected(e){P(s,e,!0)},startIcon:e,$$slots:{startIcon:!0}})}D(l),Ws(l,e=>P(c,e),()=>z(c)),U(e,l),k(),r()}var BCe,VCe,HCe=s((()=>{Q(),Y(),Z(),G$(),D1(),BCe=V(`<div class="wrapper svelte-w0jevb"><!></div>`),VCe={hash:`svelte-w0jevb`,code:`.wrapper.svelte-w0jevb {display:contents;}`}}));function UCe(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,s),r=()=>j(kP,`$backend`,s),i=()=>j(AP,`$isLastCommitPublished`,s),a=()=>j(q2,`$skipCIConfigured`,s),o=()=>j(VA,`$isSmallScreen`,s),[s,c]=hn(),l=M(()=>n().deployHookURL),u=M(()=>n().deployHookAuthHeader),d=M(()=>r()?.triggerDeployment),f=M(()=>(!!z(l)||typeof z(d)==`function`)&&!i()),p=N(`info`),m=N(!1),h=async()=>{P(p,`info`),P(m,!0);try{if(z(l)&&!Zx(z(l)))throw Error(`Deploy hook URL must use HTTPS or localhost`);let{ok:e,status:t}=z(l)?await fetch(z(l),{method:`POST`,mode:z(u)?`cors`:`no-cors`,headers:z(u)?{Authorization:z(u)}:{}}):await z(d)?.()??{};if(!e&&(z(u)||t!==0))throw Error(`Webhook returned ${t} error`);mn(AP,!0)}catch(e){P(p,`error`),P(m,!0),console.error(e)}};var g=H(),_=I(g),v=e=>{var t=WCe(),n=I(t);{let e=M(()=>o()?`small`:`medium`),t=M(()=>X(`publish_changes`)),r=M(()=>!z(f));lI(n,{variant:`secondary`,get size(){return z(e)},get label(){return z(t)},get disabled(){return z(r)},onclick:()=>h()})}oz(L(n,2),{get show(){return z(m)},set show(e){P(m,e,!0)},children:(e,t)=>{GF(e,{get status(){return z(p)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(z(p)===`error`?`publishing_changes_failed`:`publishing_changes`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,t)};G(_,e=>{a()&&e(v)}),U(e,g),k(),c()}var WCe,GCe=s((()=>{Q(),Y(),Z(),G$(),jP(),Y2(),KA(),nN(),$x(),WCe=V(`<!> <!>`,1)}));function KCe(e,t){O(t,!0);let n=()=>j($P,`$cmsConfig`,o),r=()=>j(VA,`$isSmallScreen`,o),i=()=>j(Nb,`$selectedCollection`,o),a=()=>j(Ry,`$allEntries`,o),[o,s]=hn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(kh.current)),u=M(()=>n()?.collections?.filter(({hide:e})=>!e)??[]),d=M(()=>n()?.singletons??[]);var f=ZCe(),p=F(f),m=e=>{var t=qCe(),n=I(t),r=F(n),i=F(r,!0);D(r),UCe(L(r,2),{}),D(n),Q3(L(n,2),{onclick:e=>{e.preventDefault(),w1(`/search`)}}),R(e=>W(i,e),[()=>X(`contents`)]),U(e,t)};G(p,e=>{r()&&e(m)});var h=L(p,2);{let e=M(()=>X(`collection_list`));zL(h,{get"aria-label"(){return z(e)},"aria-controls":`collection-container`,children:(e,t)=>{var n=XCe(),o=I(n),s=e=>{{let t=M(()=>X(`collections`));UL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),19,()=>z(u),(e,t)=>e.name??t,(e,t)=>{var n=H();eo(I(n),Yx,null,e=>{var n=H(),o=I(n),s=e=>{let n=M(()=>{let{name:e,label:n,icon:r}=z(t);return{name:e,label:n,icon:r}});{let o=e=>{{let t=M(()=>z(n).icon||`bookmark_manager`);UF(e,{get name(){return z(t)}})}},s=e=>{var r=H();oo(I(r),a,e=>{let r=M(()=>(`files`in z(t)?z(t).files:rk(z(n).name)).length);var i=JCe(),a=F(i,!0);D(i),R((e,t)=>{q(i,`aria-label`,`(${e??``})`),W(a,t)},[()=>X(`x_entries`,{values:{count:z(r)}}),()=>z(l).format(z(r))]),U(e,i)}),U(e,r)},u=M(()=>z(n).label||z(n).name),d=M(()=>r()||c()?!1:i()?.name===z(n).name);KL(e,{get label(){return z(u)},get selected(){return z(d)},onSelect:()=>{w1(`/collections/${z(n).name}`,{transitionType:`forwards`})},startIcon:o,endIcon:s,$$slots:{startIcon:!0,endIcon:!0}})}},u=e=>{qI(e,{})};G(o,e=>{`divider`in z(t)?z(t).divider&&e(u,1):e(s)}),U(e,n)}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}};G(o,e=>{z(u).length&&e(s)});var f=L(o,2),p=e=>{var t=H(),n=I(t),a=e=>{{let t=M(()=>X(`files`));UL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),19,()=>z(d),(e,t)=>e.name??t,(e,t)=>{var n=H();eo(I(n),Yx,null,e=>{var n=H(),r=I(n),i=e=>{zCe(e,{get file(){return z(t)}})},a=e=>{qI(e,{})};G(r,e=>{`divider`in z(t)?z(t).divider&&e(a,1):e(i)}),U(e,n)}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}},o=e=>{let t=M(()=>z(d).length);{let n=M(()=>X(`collections`));UL(e,{get label(){return z(n)},children:(e,n)=>{{let n=e=>{UF(e,{name:`bookmark_manager`})},r=e=>{var n=YCe(),r=F(n,!0);D(n),R((e,t)=>{q(n,`aria-label`,`(${e??``})`),W(r,t)},[()=>X(`x_entries`,{values:{count:z(t)}}),()=>z(l).format(z(t))]),U(e,n)},a=M(()=>X(`files`)),o=M(()=>i()?.name===`_singletons`);KL(e,{get label(){return z(a)},get selected(){return z(o)},onSelect:()=>{w1(`/collections/_singletons`,{transitionType:`forwards`})},startIcon:n,endIcon:r,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};G(n,e=>{r()||z(u).length?e(a):e(o,-1)}),U(e,t)};G(f,e=>{z(d).length&&e(p)}),U(e,n)},$$slots:{default:!0}})}D(f),U(e,f),k(),s()}var qCe,JCe,YCe,XCe,ZCe,QCe=s((()=>{Q(),Y(),Z(),G$(),Xx(),HCe(),GCe(),n6(),D1(),iF(),Uy(),Jb(),sk(),KA(),qCe=V(`<header><h2> </h2> <!></header> <!>`,1),JCe=V(`<span class="count"> </span>`),YCe=V(`<span class="count"> </span>`),XCe=V(`<!> <!>`,1),ZCe=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function $Ce(e,t){O(t,!0);let n=()=>j(T9,`$reorderDirty`,a),r=()=>j(Nb,`$selectedCollection`,a),i=()=>j(w9,`$reorderedEntries`,a),[a,o]=hn(),s=N(!1),c=N(!1);var l=ewe(),u=I(l);{let e=M(()=>X(`done`)),t=M(()=>X(`done_reordering_entries`)),a=M(()=>z(s)||!n());lI(u,{variant:`primary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(a)},onclick:async()=>{let e=r();P(s,!0);try{await R4(e,i()),mn(C9,!1)}catch(e){console.error(e),P(c,!0)}P(s,!1)}})}var d=L(u,2);{let e=M(()=>X(`cancel`)),t=M(()=>X(`cancel_reordering_entries`));lI(d,{variant:`secondary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(s)},onclick:()=>{mn(C9,!1)}})}oz(L(d,2),{get show(){return z(c)},set show(e){P(c,e,!0)},children:(e,t)=>{GF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`saving_reorder_failed`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,l),k(),o()}var ewe,twe=s((()=>{Q(),Y(),Z(),G$(),Jb(),V4(),M9(),ewe=V(`<!> <!> <!>`,1)}));function nwe(e,t){O(t,!0);let n=()=>j(Nb,`$selectedCollection`,a),r=()=>j(tk,`$selectedEntries`,a),i=()=>j(D9,`$listedEntries`,a),[a,o]=hn(),s=J(t,`open`,15,!1),c=M(()=>{let e=n()?.name;return r().length&&e&&zp({collectionName:e})?.entryRelative?r().flatMap(t=>OF({entry:t,collectionName:e,relative:!0})):[]});{let t=M(()=>X(`delete_entries`,{values:{count:r().length}})),n=M(()=>X(`delete`));gL(e,{get title(){return z(t)},get okLabel(){return z(n)},onOk:()=>{m9(r(),z(c))},get open(){return s()},set open(e){s(e)},children:(e,t)=>{let n=M(()=>r().length>1&&r().length===i().length);_t();var a=Fa();R(e=>W(a,e),[()=>X(z(c).length?z(n)?`confirm_deleting_all_entries_with_assets`:`confirm_deleting_selected_entries_with_assets`:z(n)?`confirm_deleting_all_entries`:`confirm_deleting_selected_entries`,{values:{count:r().length}})]),U(e,a)},$$slots:{default:!0}})}k(),o()}var rwe=s((()=>{Q(),Y(),Z(),G$(),Up(),Jb(),nSe(),sk(),M9(),kF()}));function iwe(e,t){O(t,!0),K(e,dwe);let n=()=>j(Nb,`$selectedCollection`,c),r=()=>j(O9,`$collectionState`,c),i=()=>j(VA,`$isSmallScreen`,c),a=()=>j(C9,`$reordering`,c),o=()=>j(tk,`$selectedEntries`,c),s=()=>j(D9,`$listedEntries`,c),[c,l]=hn(),u=N(!1),d=e=>jE(HE.parseInline(e),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`],ALLOWED_ATTR:[`href`]}),f=M(()=>n()?.name??``),p=M(()=>n()?.description),m=M(()=>kh.current&&n()?Kb(n()):z(f)),h=M(()=>r().isEntryCollection),g=M(()=>r().canCreate),_=M(()=>r().canDelete),v=M(()=>r().canReorder),y=M(()=>r().quota),b=M(()=>r().remaining),x=M(()=>r().nearingQuota),S=M(()=>r().creationDisabled);var C=uwe(),w=I(C),ee=e=>{var t=lwe(),n=I(t);{let e=M(()=>X(`collection`));i$(n,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=swe(),r=I(n),c=e=>{{let t=M(()=>X(`back_to_collection_list`));r2(e,{get"aria-label"(){return z(t)},onclick:()=>{T1(`/collections`)}})}};G(r,e=>{i()&&e(c)});var l=L(r,2),g=F(l,!0);D(l);var y=L(l,2),b=e=>{ZI(e,{flex:!0})},x=e=>{var t=awe();ZF(F(t),{children:(e,t)=>{var n=H();So(I(n),()=>d(z(p)||``)),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)};G(y,e=>{i()?e(b):e(x,-1)});var C=L(y,2),w=e=>{$Ce(e,{})},ee=e=>{var t=owe(),n=I(t),r=e=>{{let t=M(()=>X(`delete`)),n=M(()=>X(`delete_selected_entries`,{values:{count:o().length}})),r=M(()=>!o().length||!z(_));lI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{P(u,!0)}})}};G(n,e=>{i()||e(r)});var a=L(n,2),c=e=>{{let t=M(()=>X(`reorder`)),n=M(()=>X(`reorder_entries`)),r=M(()=>!s().length);lI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(C9,!0)}})}};G(a,e=>{z(v)&&e(c)}),EI(L(a,2),{children:(e,t)=>{var n=H(),r=I(n),a=e=>{{let t=M(()=>i()?void 0:X(`create`));ECe(e,{get collectionName(){return z(f)},get label(){return z(t)},keyShortcuts:`Accel+E`})}};G(r,e=>{(!i()||s().length&&!z(S))&&e(a)}),U(e,n)},$$slots:{default:!0}}),U(e,t)};G(C,e=>{z(h)&&a()?e(w):z(h)&&e(ee,1)}),R(()=>W(g,z(m))),U(e,n)},$$slots:{default:!0}})}var r=L(n,2),c=e=>{var t=cwe(),n=I(t);lo(n,()=>({"--sui-infobar-border-width":`1px 0`,"--sui-infobar-message-justify-content":`center`})),_I(n.lastChild,{dismissible:!1,children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(y)}})]),U(e,t)},o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_nearing_quota`,{values:{quota:z(y),remaining:z(b)}})]),U(e,t)};G(r,e=>{z(g)?z(S)?e(a,1):z(x)&&e(o,2):e(i)}),U(e,n)},$$slots:{default:!0}}),D(n),U(e,t)};G(r,e=>{z(h)&&(z(S)||z(x))&&e(c)}),U(e,t)};G(w,e=>{n()&&e(ee)}),nwe(L(w,2),{get open(){return z(u)},set open(e){P(u,e,!0)}}),U(e,C),k(),l()}var awe,owe,swe,cwe,lwe,uwe,dwe,fwe=s((()=>{Q(),Y(),Z(),G$(),ME(),dO(),i2(),twe(),rwe(),OCe(),D1(),Jb(),sk(),M9(),KA(),awe=V(`<div role="none" class="description svelte-83jnuc"><!></div>`),owe=V(`<!> <!> <!>`,1),swe=V(`<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>`,1),cwe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),lwe=V(`<!> <!>`,1),uwe=V(`<!> <!>`,1),dwe={hash:`svelte-83jnuc`,code:`h2.svelte-83jnuc {flex:none !important;}.description.svelte-83jnuc {flex:auto;font-size:var(--sui-font-size-small);opacity:0.8;}`}}));function pwe(e,t){O(t,!0);let n=()=>j(Nb,`$selectedCollection`,o),r=()=>j(dF,`$allAssets`,o),i=()=>j(UA,`$isLargeScreen`,o),a=()=>j(S9,`$currentView`,o),[o,s]=hn(),c=M(()=>zp({collectionName:n()?.name})),l=M(()=>z(c)?r().filter(e=>wF(e,z(c))):[]),u=M(()=>z(c)??{internalPath:void 0,entryRelative:!1,hasTemplateTags:!1}),d=M(()=>z(u).internalPath),f=M(()=>z(u).entryRelative),p=M(()=>z(u).hasTemplateTags),m=M(()=>z(f)||z(p));var h=H(),g=I(h),_=e=>{{let t=M(()=>X(`collection_assets`));H$(e,{id:`collection-assets`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{A3(e,{get disabled(){return z(m)},multiple:!0,onDrop:({files:e})=>{mn(vF,{folder:z(c),files:e})},children:(e,t)=>{bme(e,{get assets(){return z(l)},onSelect:({asset:e})=>{w1(`/assets/${e.path}`,{transitionType:`forwards`})}})},$$slots:{default:!0}})},$$slots:{default:!0}})}};G(g,e=>{z(d)!==void 0&&i()&&a().showMedia&&e(_)}),U(e,h),k(),s()}var mwe=s((()=>{Q(),Y(),Z(),G$(),Dme(),L3(),D1(),EF(),Up(),Jb(),M9(),KA()}));function hwe(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`noneLabel`,3,``),c=J(t,`groups`,19,()=>[]);{let r=e=>{{let r=M(()=>X(`grouping_options`));ZL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=gwe(),a=I(i);{let e=M(()=>s()||X(`sort_keys.none`)),r=M(()=>!n().group);lR(a,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,group:null}))}})}mo(L(a,2),17,c,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}});{let r=M(()=>n().group?.field===z(i).field&&String(n().group.pattern)===String(z(i).pattern));lR(e,{get label(){return z(i)._label},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,group:{field:z(i).field,pattern:z(i).pattern}}))}})}}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`group`));VI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var gwe,_we=s((()=>{Q(),Y(),Z(),G$(),gwe=V(`<!> <!>`,1)}));function vwe(e,t){O(t,!0);let n=()=>j(Nb,`$selectedCollection`,f),r=()=>j(D9,`$listedEntries`,f),i=()=>j(C9,`$reordering`,f),a=()=>j(VA,`$isSmallScreen`,f),o=()=>j(HA,`$isMediumScreen`,f),s=()=>j(j9,`$entryGroups`,f),c=()=>j(SSe,`$sortKeys`,f),l=()=>j(oSe,`$viewFilters`,f),u=()=>j(dSe,`$viewGroups`,f),d=()=>j(S9,`$currentView`,f),[f,p]=hn(),m=M(()=>n()?._type===`entry`?n():void 0),h=M(()=>z(m)?.name),g=M(()=>z(m)?._thumbnailFieldNames??[]),_=M(()=>!!r().length),v=M(()=>r().length>1);var y=H(),b=I(y),x=e=>{{let t=M(()=>X(`entry_list`));i$(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=bwe(),r=I(n),i=e=>{{let t=M(()=>s().flatMap(({entries:e})=>e));m6(e,{get allItems(){return z(t)},get selectedItems(){return tk}})}};G(r,e=>{a()||o()||e(i)});var f=L(r,2);ZI(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(v)||!c().length);y6(p,{get disabled(){return z(e)},get currentView(){return S9},get sortKeys(){return c()},get collectionName(){return z(h)},"aria-controls":`entry-list`})}var m=L(p,2),y=e=>{{let t=M(()=>!z(v));d6(e,{get disabled(){return z(t)},get currentView(){return S9},get filters(){return l()},multiple:!0,"aria-controls":`entry-list`})}};G(m,e=>{l()?.length&&e(y)});var b=L(m,2),x=e=>{{let t=M(()=>!z(v));hwe(e,{get disabled(){return z(t)},get currentView(){return S9},get groups(){return u()},"aria-controls":`entry-list`})}};G(b,e=>{u()?.length&&e(x)});var S=L(b,2),C=e=>{{let t=M(()=>!z(_));S6(e,{get disabled(){return z(t)},get currentView(){return S9},"aria-controls":`entry-list`})}};G(S,e=>{z(g).length&&e(C)});var w=L(S,2),ee=e=>{var t=ywe(),n=I(t);qI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{UF(e,{name:`photo_library`})},t=M(()=>!z(_)||!zp({collectionName:z(h)})),n=M(()=>!!d().showMedia),i=M(()=>X(d().showMedia?`hide_assets`:`show_assets`));lI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get pressed(){return z(n)},"aria-controls":`collection-assets`,get"aria-expanded"(){return d().showMedia},get"aria-label"(){return z(i)},onclick:()=>{S9.update(e=>({...e,showMedia:!d().showMedia}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(w,e=>{a()||o()||e(ee)}),U(e,n)},$$slots:{default:!0}})}};G(b,e=>{z(m)&&!i()&&e(x)}),U(e,y),k(),p()}var ywe,bwe,xwe=s((()=>{Q(),Y(),Z(),G$(),p6(),_we(),v6(),x6(),E6(),Up(),Jb(),sk(),M9(),sSe(),fSe(),CSe(),KA(),ywe=V(`<!> <!>`,1),bwe=V(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function Swe(e,t){O(t,!0);let n=()=>j(Nb,`$selectedCollection`,s),r=()=>j(PF,`$showContentOverlay`,s),i=()=>j(VA,`$isSmallScreen`,s),a=()=>j(D9,`$listedEntries`,s),o=()=>j(L0,`$contentUpdatesToast`,s),[s,c]=hn(),l=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/,u=N(!1),d=N(!1),f=N(void 0),p=M(()=>`files`in(n()??{})?PCe:kCe),m=()=>{let{path:e,params:t}=b1(),r=e.match(l);if(P(u,!1),P(d,!1),P(f,t._locale,!0),delete t._locale,n()?.name===`_singletons`&&zb().length&&mn(Nb,void 0),!r?.groups){mn(PF,!1),P(d,m8(e),!0);return}let{_collectionName:o,routeType:s,subPath:c}=r.groups;if(!o){i()?(mn(Nb,void 0),mn(PF,!1),mn(y1,X(`viewing_collection_list`)),P(u,!0)):w1(`/collections/${(n()||Bb()||Wb())?.name}`,{replaceState:!0});return}let p=Gb(o);if(!p||p.hide?mn(Nb,void 0):n()?.name!==p.name&&mn(Nb,p),!p||!n()){mn(PF,!1),mn(y1,X(`collection_not_found`));return}let{name:m}=n(),h=Kb(n()),g=`_fileMap`in n()?n()._fileMap:void 0;if(!s){mn(PF,!1),mn(y1,X(`viewing_x_collection`,{values:{collection:h,count:a().length}}));return}if(mn(PF,!0),g){if(s===`entries`&&c){let e=Yy(m,c),t=g[c];P9(e?{collection:p,collectionFile:t,originalEntry:e}:{collection:p,collectionFile:t,originalEntry:{slug:t.name,locales:Object.fromEntries(t._i18n.initialLocales.map(e=>[e,{}]))}}),mn(y1,X(`edit_${p._type}_announcement`,{values:{collection:h,file:qy(t)}}))}}else if(s===`new`&&!c&&(P9({collection:p,dynamicValues:t,isIndexFile:!!window.history.state?.index}),mn(y1,X(`create_entry_announcement`,{values:{collection:h}}))),s===`entries`&&c){let e=a().find(e=>e.subPath===c);e&&kh.current&&(P9({collection:p,originalEntry:e}),mn(y1,X(`edit_entry_announcement`,{values:{collection:h,entry:TO(n(),e)}})))}};ac(()=>(m(),()=>{mn(PF,!1)}));var h=Cwe();xa(`hashchange`,Ir,e=>{C1(e,m,l)});var g=I(h);{let e=e=>{var t=H(),n=I(t),r=e=>{KCe(e,{get isSearchPage(){return z(d)}})};G(n,e=>{(!i()||z(u))&&e(r)}),U(e,t)},t=e=>{var t=H(),r=I(t),o=e=>{l8(e,{})},s=e=>{{let t=e=>{iwe(e,{})},r=e=>{var t=H(),r=I(t),i=e=>{vwe(e,{})};G(r,e=>{n()?._type===`entry`&&a().length&&e(i)}),U(e,t)},i=e=>{var t=H();Oo(I(t),()=>z(p),(e,t)=>{t(e,{})}),U(e,t)},o=e=>{pwe(e,{})},s=M(()=>X(`x_collection`,{values:{collection:kh.current&&n()?Kb(n()):``}})),c=M(()=>n()?.description);F6(e,{get"aria-label"(){return z(s)},get"aria-description"(){return z(c)},primaryToolbar:t,secondaryToolbar:r,mainContent:i,secondarySidebar:o,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};G(r,e=>{z(d)?e(o):(!i()||!z(u))&&e(s,1)}),U(e,t)},r=M(()=>X(`content_library`));z6(g,{get"aria-label"(){return z(r)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var _=L(g,2),v=e=>{ZSe(e,{get editorLocale(){return z(f)}})};G(_,e=>{r()&&e(v)});var y=L(_,2);oz(y,{get show(){return o().saved},set show(e){_n(L0,B(o).saved=e,B(o))},children:(e,t)=>{GF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(o().published?`entry_saved_and_published`:`entry_saved`,{values:{count:o().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),oz(L(y,2),{get show(){return o().deleted},set show(e){_n(L0,B(o).deleted=e,B(o))},children:(e,t)=>{GF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entries_deleted`,{values:{count:o().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,h),k(),c()}var Cwe,wwe=s((()=>{Q(),Y(),Z(),G$(),sc(),R6(),H6(),lCe(),NCe(),RCe(),QCe(),fwe(),mwe(),xwe(),f8(),D1(),Jb(),R0(),Zy(),M9(),F9(),HF(),EO(),h8(),KA(),Cwe=V(`<!> <!> <!> <!>`,1)}));function Twe(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn();{let t=M(()=>X(`prefs.i18n.translators.default.select_service`));RR(e,{get"aria-label"(){return z(t)},get value(){return n().defaultTranslationService},onChange:e=>{mn(tN,{...n(),defaultTranslationService:e.detail.value})},children:(e,t)=>{var r=H();mo(I(r),17,()=>Object.entries(N5),([e,{serviceLabel:t}])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1].serviceLabel;{let t=M(()=>i()===n().defaultTranslationService);KL(e,{get label(){return a()},get value(){return i()},get selected(){return z(t)}})}}),U(e,r)},$$slots:{default:!0}})}k(),i()}var Ewe=s((()=>{Q(),Y(),Z(),G$(),F5(),nN()}));function Dwe(e,t){O(t,!0);let n=()=>j(P5,`$translator`,o),r=()=>j(PF,`$showContentOverlay`,o),i=()=>j(IF,`$translatorApiKeyDialogState`,o),a=()=>j(tN,`$prefs`,o),[o,s]=hn(),c=M(()=>n().serviceId),l=M(()=>n().apiLabel),u=M(()=>n().developerURL),d=M(()=>n().apiKeyURL),f=M(()=>n().apiKeyPattern);ti(()=>{!r()&&i().show&&(_n(IF,B(i).show=!1,B(i)),i().resolve?.())});{let t=M(()=>X(`translate_fields`,{values:{count:i().multiple?2:1}})),n=M(()=>({spellcheck:!1,monospace:!0,"aria-label":X(`api_key`)}));SL(e,{get title(){return z(t)},showOk:!1,get textboxAttrs(){return z(n)},oninput:e=>{let t=e.target.value.trim();z(f)?.test(t)&&(_n(tN,B(a).apiKeys??={},B(a)),_n(tN,B(a).apiKeys[z(c)]=t,B(a)),_n(IF,B(i).show=!1,B(i)),i().resolve?.(t))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(e){_n(IF,B(i).show=e,B(i))},children:(e,t)=>{var n=Owe(),r=I(n);Twe(r,{});var i=L(r,2);ZI(i,{}),So(L(i,2),()=>jE(X(`prefs.i18n.translators.description`,{values:{service:z(l),homeHref:`href="${z(u)}"`,apiKeyHref:`href="${z(d)}"`}}).replace(/[\u2068\u2069]/g,``),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,n)},$$slots:{default:!0}})}k(),s()}var Owe,kwe=s((()=>{Q(),Y(),Z(),G$(),ME(),Ewe(),HF(),F5(),nN(),Owe=V(`<!> <!> <!>`,1)}));function Awe(e,t){O(t,!0);let n=()=>j(zy,`$entryParseErrors`,r),[r,i]=hn(),a=N(!!n().length);oz(e,{get show(){return z(a)},set show(e){P(a,e,!0)},children:(e,t)=>{GF(e,{status:`error`,children:(e,t)=>{_t();var r=Fa();R(e=>W(r,e),[()=>X(`entry_parse_errors`,{values:{count:n().length}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),k(),i()}var jwe=s((()=>{Q(),Y(),Z(),G$(),Uy()})),L9,R9,z9=s((()=>{ip(),jP(),qj(),KA(),L9=dn([UA,WA,LA,kP,Kj],([e,t,n,r,i])=>e&&t&&!n&&!!r?.isGit&&!!i?.token),R9=un(!1)}));function Mwe(e,t){O(t,!0);let n=()=>j(kP,`$backend`,r),[r,i]=hn(),a,o=N(!1);ti(()=>{let{databaseName:e}=n()?.repository??{};e&&(a=new oS(e,`ui-settings`),(async()=>{let e=await a.get(`onboarding`)??{};e.mobileCta||P(o,!0),await a.set(`onboarding`,{...e,mobileCta:!0})})())});var s=Pwe(),c=I(s);lo(c,()=>({"--sui-infobar-message-justify-content":`center`})),_I(c.lastChild,{get show(){return z(o)},dismissible:!1,children:(e,t)=>{_t();var n=Nwe(),r=I(n),i=L(r);{let e=M(()=>X(`mobile_promo_button`));lI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1),mn(R9,!0)}})}var a=L(i,2);{let e=M(()=>X(`later`));lI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1)}})}R(e=>W(r,`${e??``} `),[()=>X(`mobile_promo_title`)]),U(e,n)},$$slots:{default:!0}}),D(c),U(e,s),k(),i()}var Nwe,Pwe,Fwe=s((()=>{Q(),Y(),Z(),G$(),lS(),z9(),jP(),Nwe=V(` <!> <!>`,1),Pwe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function Iwe(e,t){O(t,!0),K(e,Rwe);let n=()=>j(Fp,`$allAssetFolders`,l),r=()=>j(VA,`$isSmallScreen`,l),i=()=>j(Lp,`$selectedAssetFolder`,l),a=()=>j($P,`$cmsConfig`,l),o=()=>j(OP,`$backendName`,l),s=()=>j(v1,`$selectedPageName`,l),c=()=>j(Y3,`$searchMode`,l),[l,u]=hn(),d=M(()=>{let e=[{key:`collections`,label:X(`contents`),icon:`article`,link:`/collections`,searchMode:`contents`}];return n().length&&e.push({key:`assets`,label:X(`assets`),icon:`photo`,link:r()?`/assets`:`/assets/${i()?.internalPath??`-/all`}`,searchMode:`assets`}),a()?.publish_mode,o(),r()&&e.push({key:`menu`,label:X(`menu`),icon:`menu`,link:`/menu`,searchMode:void 0}),e});var f=Lwe(),p=F(f);{let e=M(()=>X(`switch_page`));LI(p,{get"aria-label"(){return z(e)},"aria-controls":`page-container`,children:(e,t)=>{var n=H();mo(I(n),19,()=>z(d),({key:e,label:t,icon:n,link:r,searchMode:i})=>e,(e,t,n)=>{let r=()=>z(t).key,i=()=>z(t).label,a=()=>z(t).icon,o=()=>z(t).link,l=()=>z(t).searchMode;{let t=e=>{UF(e,{get name(){return a()}})},u=M(()=>s()===r()||c()===l()),d=M(()=>z(n)+1);BI(e,{variant:`ghost`,iconic:!0,get selected(){return z(u)},get"aria-label"(){return i()},get keyShortcuts(){return`Alt+${z(d)??``}`},onclick:()=>{w1(o())},startIcon:t,$$slots:{startIcon:!0}})}}),U(e,n)},$$slots:{default:!0}})}D(f),U(e,f),k(),u()}var Lwe,Rwe,zwe=s((()=>{Q(),Y(),Z(),G$(),D1(),Up(),jP(),iF(),Z3(),KA(),Lwe=V(`<div role="none" class="wrapper svelte-t2r4ty"><!></div>`),Rwe={hash:`svelte-t2r4ty`,code:`.wrapper.svelte-t2r4ty {display:contents;}.wrapper.svelte-t2r4ty .sui.select-button-group {gap:4px;}
|
|
1024
1024
|
@media (width < 768px) {.wrapper.svelte-t2r4ty .sui.select-button-group {justify-content:space-evenly;width:100%;}
|
|
1025
|
-
}.wrapper.svelte-t2r4ty .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}`}}));function Bwe(e,t){O(t,!0);let n=()=>j(_1,`$hasOverlay`,r),[r,i]=hn();Pae(e,{get inert(){return n()},children:(e,t)=>{{let t=M(()=>X(`global`));i$(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=Vwe();Iwe(F(n),{}),D(n),U(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}}),k(),i()}var Vwe,Hwe=s((()=>{Q(),Y(),Z(),G$(),zwe(),D1(),Vwe=V(`<div role="none" class="buttons"><!></div>`)}));function Uwe(e,t){O(t,!0),K(e,qwe);let n=()=>j(BA,`$isMacOS`,r),[r,i]=hn(),a=J(t,`open`,15,!1),o=J(t,`onClose`,3,void 0),s=[{feature:`view_content_library`,keys:`Alt+1`},{feature:`view_asset_library`,keys:`Alt+2`},{feature:`search`,keys:`Accel+F`},{feature:`create_entry`,keys:`Accel+E`},{feature:`save_entry`,keys:`Accel+S`},{feature:`cancel_editing`,keys:`Escape`}];{let t=M(()=>X(`keyboard_shortcuts`));sL(e,{get title(){return z(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,onClose:()=>{o()?.()},get open(){return a()},set open(e){a(e)},children:(e,t)=>{var r=Kwe(),i=F(r);{let e=M(()=>X(`keyboard_shortcuts`));Ooe(i,{get"aria-label"(){return z(e)},children:(e,t)=>{var r=H();mo(I(r),17,()=>s,({feature:e,keys:t})=>t,(e,t)=>{let r=()=>z(t).feature,i=()=>z(t).keys;Eoe(e,{children:(e,t)=>{var a=Gwe(),o=I(a);YR(o,{class:`feature`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`keyboard_shortcuts_.${r()}`)]),U(e,n)},$$slots:{default:!0}}),YR(L(o,2),{class:`keys`,children:(e,t)=>{var r=H();mo(I(r),16,()=>i().split(`+`),e=>e,(e,t)=>{var r=Wwe(),i=F(r,!0);D(r),R(e=>W(i,e),[()=>t.replace(`Accel`,n()?`⌘`:`Ctrl`)]),U(e,r)}),U(e,r)},$$slots:{default:!0}}),U(e,a)},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})}D(r),U(e,r)},$$slots:{default:!0}})}k(),i()}var Wwe,Gwe,Kwe,qwe,Jwe=s((()=>{Q(),Y(),Z(),G$(),KA(),Wwe=V(`<kbd class="svelte-13q15u"> </kbd>`),Gwe=V(`<!> <!>`,1),Kwe=V(`<div role="none" class="wrapper svelte-13q15u"><!></div>`),qwe={hash:`svelte-13q15u`,code:`.wrapper.svelte-13q15u {display:contents;}.wrapper.svelte-13q15u .table-row {display:flex;align-items:center;gap:16px;padding:8px 0;border-top:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-13q15u .table-row:last-child {border-bottom:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-13q15u .table-row .feature {flex:auto;}.wrapper.svelte-13q15u .table-row .keys {display:flex;gap:8px;}kbd.svelte-13q15u {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-color:var(--sui-primary-accent-color);border-radius:4px;padding:0 8px;height:32px;min-width:32px;background-color:var(--sui-tertiary-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);}`}}));function Ywe(e,t){O(t,!0);let n=()=>j(WA,`$hasMouse`,r),[r,i]=hn(),a=N(!1);var o=Xwe(),s=I(o),c=e=>{{let t=M(()=>X(`keyboard_shortcuts`));tR(e,{get label(){return z(t)},onclick:()=>{P(a,!0)}})}};G(s,e=>{n()&&e(c)}),Uwe(L(s,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(a)},set open(e){P(a,e,!0)}}),U(e,o),k(),i()}var Xwe,Zwe=s((()=>{Q(),Y(),Z(),G$(),Jwe(),KA(),Xwe=V(`<!> <!>`,1)}));function B9(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn(),a=J(t,`defaultValue`,3,!0),o=N(!0);ti(()=>{P(o,!!(n()[t.key]??a()),!0)}),ti(()=>{n()[t.key]!==z(o)&&_n(tN,B(n)[t.key]=z(o),B(n))}),KR(e,{get label(){return t.label},get checked(){return z(o)},set checked(e){P(o,e,!0)}}),k(),i()}var V9=s((()=>{Q(),Y(),G$(),nN()}));function Qwe(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=$we(),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a,!0);D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`prefs.accessibility.underline_links.switch_label`));B9(c,{key:`underlineLinks`,get label(){return z(e)}})}D(s),D(n),R((e,t)=>{W(i,e),W(o,t)},[()=>X(`prefs.accessibility.underline_links.title`),()=>X(`prefs.accessibility.underline_links.description`)]),U(e,n),k()}var $we,eTe=s((()=>{Q(),Y(),Z(),V9(),$we=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section>`)}));function tTe(e,t){O(t,!0);let n=()=>j(q2,`$skipCIConfigured`,i),r=()=>j(tN,`$prefs`,i),[i,a]=hn(),o=J(t,`onChange`,3,void 0);var s=rTe(),c=I(s),l=F(c),u=F(l,!0);D(l);var d=L(l,2),f=F(d,!0);D(d);var p=L(d,2),m=F(p);{let e=M(()=>X(`prefs.advanced.beta.switch_label`));B9(m,{key:`beta`,get label(){return z(e)},defaultValue:!1})}D(p),D(c);var h=L(c,2),g=F(h),_=F(g,!0);D(g);var v=L(g,2),y=F(v,!0);D(v);var b=L(v,2),x=F(b);{let e=M(()=>X(`prefs.advanced.developer_mode.switch_label`));B9(x,{key:`devModeEnabled`,get label(){return z(e)},defaultValue:!1})}D(b),D(h);var S=L(h,2),C=e=>{var t=nTe(),n=F(t),i=F(n,!0);D(n);var a=L(n,2),s=F(a,!0);D(a);var c=L(a,2),l=F(c);{let e=M(()=>X(`prefs.advanced.deploy_hook.url.field_label`));_L(l,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{o()?.({message:X(r().deployHookURL?`prefs.advanced.deploy_hook.url.saved`:`prefs.advanced.deploy_hook.url.removed`)})},get value(){return r().deployHookURL},set value(e){_n(tN,B(r).deployHookURL=e,B(r))}})}D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.advanced.deploy_hook.auth.field_label`));_L(d,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{o()?.({message:X(r().deployHookAuthHeader?`prefs.advanced.deploy_hook.auth.saved`:`prefs.advanced.deploy_hook.auth.removed`)})},get value(){return r().deployHookAuthHeader},set value(e){_n(tN,B(r).deployHookAuthHeader=e,B(r))}})}D(u),D(t),R((e,t)=>{W(i,e),W(s,t)},[()=>X(`prefs.advanced.deploy_hook.title`),()=>X(`prefs.advanced.deploy_hook.description`)]),U(e,t)};G(S,e=>{n()&&e(C)}),R((e,t,n,r)=>{W(u,e),W(f,t),W(_,n),W(y,r)},[()=>X(`prefs.advanced.beta.title`),()=>X(`prefs.advanced.beta.description`),()=>X(`prefs.advanced.developer_mode.title`),()=>X(`prefs.advanced.developer_mode.description`)]),U(e,s),k(),a()}var nTe,rTe,iTe=s((()=>{Q(),Y(),Z(),G$(),V9(),Y2(),nN(),nTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div> <div role="none"><!></div></section>`),rTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section> <section><h3> </h3> <p> </p> <div role="none"><!></div></section> <!>`,1)}));function aTe(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn();J(t,`onChange`,3,void 0);var a=oTe(),o=F(a),s=F(o,!0);D(o);var c=L(o,2),l=F(c);{let e=M(()=>X(`prefs.appearance.select_theme`));LI(l,{get"aria-label"(){return z(e)},onChange:e=>{mn(tN,{...n(),theme:e.detail.value})},children:(e,t)=>{var r=H();mo(I(r),16,()=>[`auto`,`dark`,`light`],e=>e,(e,t)=>{{let r=M(()=>X(`prefs.theme.${t}`)),i=M(()=>!n().theme&&t===`auto`||n().theme===t);BI(e,{variant:`tertiary`,get label(){return z(r)},get value(){return t},get selected(){return z(i)}})}}),U(e,r)},$$slots:{default:!0}})}D(c),D(a),R(e=>W(s,e),[()=>X(`prefs.appearance.theme`)]),U(e,a),k(),i()}var oTe,sTe=s((()=>{Q(),Y(),Z(),G$(),nN(),oTe=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function cTe(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=lTe(),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a);{let e=M(()=>X(`prefs.contents.editor.use_draft_backup.switch_label`));B9(o,{key:`useDraftBackup`,get label(){return z(e)}})}D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`prefs.contents.editor.close_on_save.switch_label`));B9(c,{key:`closeOnSave`,get label(){return z(e)}})}D(s);var l=L(s,2),u=F(l);{let e=M(()=>X(`prefs.contents.editor.close_with_escape.switch_label`));B9(u,{key:`closeWithEscape`,get label(){return z(e)}})}D(l),D(n),R(e=>W(i,e),[()=>X(`prefs.contents.editor.title`)]),U(e,n),k()}var lTe,uTe=s((()=>{Q(),Y(),Z(),V9(),lTe=V(`<section><h3> </h3> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>`)}));function H9(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn(),a=J(t,`onChange`,3,void 0),o=M(()=>t.service.apiKeyPattern),s=N(``);ac(()=>{P(s,n().apiKeys?.[t.serviceId]??``,!0)}),j$(e,{flex:!0,autocomplete:`off`,spellcheck:`false`,get"aria-label"(){return t.ariaLabel},onchange:()=>{let e=z(s).trim(),r=!!e&&!!z(o)&&!z(o).test(e);_n(tN,B(n).apiKeys??={},B(n)),_n(tN,B(n).apiKeys[t.serviceId]=r?``:e,B(n)),a()?.({message:X(r?`prefs.changes.api_key_invalid`:e?`prefs.changes.api_key_saved`:`prefs.changes.api_key_removed`),status:r?`error`:`success`})},get value(){return z(s)},set value(e){P(s,e,!0)}}),k(),i()}var dTe=s((()=>{Q(),Y(),Z(),G$(),sc(),nN()}));function fTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0);var r=mTe(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2);Twe(F(s),{}),D(s),D(i);var c=L(i,2),l=F(c),u=F(l,!0);D(l);var d=L(l,2);So(d,()=>Kk(X(`prefs.i18n.translators.api_keys.description`),`https://sveltiacms.app/en/docs/integrations/translations`),!0),D(d),mo(L(d,2),17,()=>Object.entries(N5),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=pTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.i18n.translators.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(c),R((e,t)=>{W(o,e),W(u,t)},[()=>X(`prefs.i18n.translators.default.title`),()=>X(`prefs.i18n.translators.api_keys.title`)]),U(e,r),k()}var pTe,mTe,hTe=s((()=>{Q(),Y(),Z(),dTe(),Ewe(),F5(),qk(),pTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),mTe=V(`<section><h3> </h3> <div role="none"><!></div></section> <section><h3> </h3> <p></p> <!></section>`,1)}));function gTe(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn();J(t,`onChange`,3,void 0);var a=_Te(),o=F(a),s=F(o,!0);D(o);var c=L(o,2);oo(F(c),()=>kh.current,e=>{{let t=M(()=>X(`prefs.language.ui_language.select_language`));RR(e,{get"aria-label"(){return z(t)},get value(){return kh.current},onChange:e=>{mn(tN,{...n(),locale:e.detail.value})},children:(e,t)=>{var n=H();mo(I(n),16,()=>mh,e=>e,(e,t)=>{{let n=M(()=>cb(t,{displayLocale:t})??t),r=M(()=>t===kh.current);KL(e,{get label(){return z(n)},get value(){return t},get selected(){return z(r)},dir:`auto`})}}),U(e,n)},$$slots:{default:!0}})}}),D(c),D(a),R(e=>W(s,e),[()=>X(`prefs.language.ui_language.title`)]),U(e,a),k(),i()}var _Te,vTe=s((()=>{Q(),Y(),Z(),G$(),fb(),nN(),_Te=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function yTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0),r=M(()=>{let{providers:e=[]}=u7();return Object.entries(l7).filter(([t,{authType:n}])=>e.includes(t)&&n!==`none`)}),i=M(()=>Object.entries(hw).filter(([,{isEnabled:e,authType:t}])=>(e?.()??!0)&&t!==`widget`));var a=STe(),o=I(a),s=F(o),c=F(s,!0);D(s);var l=L(s,2);So(l,()=>Kk(z(i).length?X(`prefs.media.cloud_storage.api_keys.description`):X(`prefs.media.cloud_storage.no_services`),`https://sveltiacms.app/en/docs/media`),!0),D(l),mo(L(l,2),17,()=>z(i),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=bTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.media.cloud_storage.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(o);var u=L(o,2),d=F(u),f=F(d,!0);D(d);var p=L(d,2);So(p,()=>Kk(z(r).length?X(`prefs.media.stock_photos.api_keys.description`):X(`prefs.media.stock_photos.no_services`),`https://sveltiacms.app/en/docs/integrations/stock-photos`),!0),D(p),mo(L(p,2),17,()=>z(r),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=xTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(u),R((e,t)=>{W(c,e),W(f,t)},[()=>X(`prefs.media.cloud_storage.api_keys.title`),()=>X(`prefs.media.stock_photos.api_keys.title`)]),U(e,a),k()}var bTe,xTe,STe,CTe=s((()=>{Q(),Y(),Z(),dTe(),_w(),ehe(),qk(),bTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),xTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),STe=V(`<section><h3> </h3> <p></p> <!></section> <section><h3> </h3> <p></p> <!></section>`,1)})),U9,wTe=s((()=>{ip(),eTe(),iTe(),sTe(),uTe(),hTe(),vTe(),CTe(),iF(),U9=dn([$P],([e])=>[{key:`appearance`,icon:`palette`,component:aTe},{key:`language`,icon:`language`,component:gTe},{key:`contents`,icon:`library_books`,component:cTe},{key:`i18n`,icon:`translate`,component:fTe,enabled:(e?.i18n?.locales?.length??0)>1},{key:`media`,icon:`photo_library`,component:yTe},{key:`accessibility`,icon:`accessibility_new`,component:Qwe},{key:`advanced`,icon:`build`,component:tTe}])}));function TTe(e,t){K(e,DTe);let n=N(``),r=N(`success`),i=N(!1);var a=ETe(),o=I(a);Oo(F(o),()=>t.Panel,(e,t)=>{t(e,{onChange:({message:e,status:t})=>{P(n,e,!0),P(r,t??`success`,!0),P(i,!0)}})}),D(o),oz(L(o,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{GF(e,{get status(){return z(r)},children:(e,t)=>{_t();var r=Fa();R(()=>W(r,z(n))),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,a)}var ETe,DTe,OTe=s((()=>{Q(),Y(),G$(),ETe=V(`<div class="container svelte-1attlke" role="none"><!></div> <!>`,1),DTe={hash:`svelte-1attlke`,code:`.container.svelte-1attlke {display:contents;}.container.svelte-1attlke section:not(:first-child) {margin:16px 0 0;}.container.svelte-1attlke p {margin-top:0;}.container.svelte-1attlke h3 {font-size:inherit;}.container.svelte-1attlke h3 ~ div {margin:8px 0 0;}.container.svelte-1attlke h3 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.container.svelte-1attlke h4 {margin-bottom:4px;font-size:var(--sui-font-size-small);}`}}));function kTe(e,t){O(t,!0),K(e,jTe);let n=J(t,`open`,15,!1),r=J(t,`onClose`,3,void 0),i=N(`appearance`);{let t=M(()=>X(`settings`));sL(e,{get title(){return z(t)},size:`large`,showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{r()?.()},get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=ATe(),r=F(n);{let e=M(()=>X(`categories`));Aoe(r,{orientation:`vertical`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=H();mo(I(n),17,()=>A(U9),({key:e,icon:t,enabled:n=!0})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).icon,a=ar(()=>T(z(t).enabled,!0));var o=H(),s=I(o),c=e=>{{let t=e=>{UF(e,{get name(){return r()}})},a=M(()=>X(`prefs.${n()}.title`)),o=M(()=>n()===z(i));Poe(e,{get label(){return z(a)},get selected(){return z(o)},get"aria-controls"(){return`prefs-tab-${n()??``}`},onSelect:()=>{P(i,n(),!0)},startIcon:t,$$slots:{startIcon:!0}})}};G(s,e=>{z(a)&&e(c)}),U(e,o)}),U(e,n)},$$slots:{default:!0}})}mo(L(r,2),17,()=>A(U9),({key:e,component:t})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).component;Moe(e,{get id(){return`prefs-tab-${n()??``}`},children:(e,t)=>{TTe(e,{get Panel(){return r()}})},$$slots:{default:!0}})}),D(n),U(e,n)},$$slots:{default:!0}})}k()}var ATe,jTe,MTe=s((()=>{Q(),Y(),Z(),G$(),ip(),wTe(),OTe(),ATe=V(`<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>`),jTe={hash:`svelte-pwxwga`,code:`.wrapper.svelte-pwxwga {display:flex;}.wrapper.svelte-pwxwga .sui.tab-list {flex:none;}.wrapper.svelte-pwxwga .sui.tab-panel {flex:auto;border-width:0;}`}}));function NTe(e,t){O(t,!0);let n=()=>j(OP,`$backendName`,c),r=()=>j(Kj,`$user`,c),i=()=>j(tN,`$prefs`,c),a=()=>j(kP,`$backend`,c),o=()=>j(VA,`$isSmallScreen`,c),s=()=>j(L9,`$canShowMobileSignInDialog`,c),[c,l]=hn(),u=N(!1),d=M(()=>n()===`local`),f=M(()=>n()===`test-repo`);var p=ITe(),m=I(p);{let e=M(()=>X(`account`));ZL(m,{get"aria-label"(){return z(e)},children:(e,n)=>{var c=FTe(),l=I(c);{let e=M(()=>z(d)?X(`working_with_local_repo`):z(f)?X(`working_with_test_repo`):X(`signed_in_as_x`,{values:{name:r()?.login}})),t=M(()=>z(d)||z(f));tR(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{h1(r()?.profileURL)}})}var p=L(l,2);qI(p,{});var m=L(p,2);{let e=M(()=>X(`live_site`));tR(m,{get label(){return z(e)},onclick:()=>{E1()}})}var h=L(m,2),g=e=>{var t=PTe(),n=I(t);{let e=M(()=>X(`git_repository`)),t=M(()=>!a()?.repository?.treeBaseURL);tR(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{h1(a()?.repository?.treeBaseURL)}})}var r=L(n,2);{let e=M(()=>X(`cms_config`));tR(r,{get label(){return z(e)},onclick:()=>{w1(`/config`,{transitionType:`forwards`})}})}U(e,t)};G(h,e=>{i().devModeEnabled&&e(g)});var _=L(h,2);qI(_,{});var v=L(_,2);{let e=M(()=>X(`settings`));tR(v,{get label(){return z(e)},onclick:()=>{o()?w1(`/settings`,{transitionType:`forwards`}):P(u,!0)}})}var y=L(v,2),b=e=>{Ywe(e,{get menuButton(){return t.menuButton}})};G(y,e=>{i().devModeEnabled||e(b)});var x=L(y,2),S=e=>{{let t=M(()=>X(`sign_in_with_mobile`));tR(e,{get label(){return z(t)},onclick:()=>{mn(R9,!0)}})}};G(x,e=>{s()&&e(S)});var C=L(x,2);qI(C,{});var w=L(C,2);{let e=M(()=>X(`sign_out`));tR(w,{get label(){return z(e)},onclick:async()=>{window.requestAnimationFrame(()=>{B1()})}})}U(e,c)},$$slots:{default:!0}})}kTe(L(m,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(u)},set open(e){P(u,e,!0)}}),U(e,p),k(),l()}var PTe,FTe,ITe,LTe=s((()=>{Q(),Y(),Z(),G$(),Zwe(),MTe(),D1(),z9(),jP(),qj(),V1(),KA(),nN(),g1(),PTe=V(`<!> <!>`,1),FTe=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),ITe=V(`<!> <!>`,1)}));function RTe(e,t){O(t,!0),K(e,VTe);let n=()=>j(OP,`$backendName`,i),r=()=>j(Kj,`$user`,i),[i,a]=hn(),o=N(void 0),s=M(()=>n()===`local`),c=M(()=>!!r()?.avatarURL);var l=BTe(),u=F(l);{let e=e=>{var t=H(),n=I(t),i=e=>{UF(e,{name:`arrow_drop_down`,class:`small-arrow`})},a=e=>{var t=zTe();R(()=>q(t,`src`,r()?.avatarURL)),U(e,t)},o=e=>{UF(e,{name:`account_circle`})};G(n,e=>{z(s)?e(i):z(c)?e(a,1):e(o,-1)}),U(e,t)},t=e=>{NTe(e,{get menuButton(){return z(o)}})},n=M(()=>!z(s)),i=M(()=>z(s)?X(`local_workflow.indicator`):void 0),a=M(()=>z(c)?`avatar`:``),l=M(()=>X(`show_account_menu`));Ws(VI(u,{variant:`ghost`,get iconic(){return z(n)},get label(){return z(i)},get class(){return z(a)},popupPosition:`bottom-right`,get"aria-label"(){return z(l)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>P(o,e,!0),()=>z(o))}D(l),U(e,l),k(),a()}var zTe,BTe,VTe,HTe=s((()=>{Q(),Y(),Z(),G$(),LTe(),jP(),qj(),zTe=V(`<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>`),BTe=V(`<div role="none" class="wrapper svelte-q0ng4j"><!></div>`),VTe={hash:`svelte-q0ng4j`,code:`.wrapper.svelte-q0ng4j {display:contents;}.wrapper.svelte-q0ng4j button.avatar {border-width:0;background-color:transparent;}.avatar.svelte-q0ng4j {width:32px;height:32px;border-radius:32px;object-fit:cover;}`}}));function UTe(e,t){O(t,!0);let[n,r]=hn(),i=M(()=>zb({visible:!0,type:`entry`}));{let t=e=>{UF(e,{name:`add`})},n=e=>{{let t=M(()=>X(`create_entry_or_assets`));ZL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=GTe(),r=I(n),a=e=>{var t=WTe(),n=I(t);mo(n,17,()=>z(i),e=>e.name,(e,t)=>{let n=M(()=>{let{name:e,label:n,label_singular:r,create:i=!0,limit:a=1/0}=z(t);return{name:e,label:n,labelSingular:r,create:i,limit:a}});{let t=M(()=>z(n).labelSingular||z(n).label||z(n).name),r=M(()=>!z(n).create||rk(z(n).name).length>=z(n).limit);tR(e,{get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{w1(`/collections/${z(n).name}/new`,{transitionType:`forwards`})}})}}),qI(L(n,2),{}),U(e,t)};G(r,e=>{z(i).length&&e(a)});var o=L(r,2);{let e=M(()=>X(`assets`));tR(o,{get label(){return z(e)},onclick:async()=>{w1(`/assets`,{transitionType:`forwards`}),await Yx(100),mn(s1,!0)}})}U(e,n)},$$slots:{default:!0}})}},r=M(()=>X(`create_entry_or_assets`));VI(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:t,popup:n,$$slots:{endIcon:!0,popup:!0}})}k(),r()}var WTe,GTe,KTe=s((()=>{Q(),Y(),Z(),G$(),Xx(),D1(),m1(),Jb(),sk(),WTe=V(`<!> <!>`,1),GTe=V(`<!> <!>`,1)}));function qTe(e,t){O(t,!0),K(e,YTe);let n=()=>j(tN,`$prefs`,r),[r,i]=hn();{let t=e=>{var t=H(),r=I(t),i=e=>{var t=JTe(),n=F(t);D(t),R(e=>{q(t,`aria-label`,`(${e??``})`),W(n,`v${Mw??``}`)},[()=>X(`version_x`,{values:{version:Mw}})]),U(e,t)};G(r,e=>{n().devModeEnabled&&e(i)}),U(e,t)},r=M(()=>X(`release_notes`));tR(e,{get label(){return z(r)},onclick:()=>{h1(`https://github.com/sveltia/sveltia-cms/releases`)},endIcon:t,$$slots:{endIcon:!0}})}k(),i()}var JTe,YTe,XTe=s((()=>{Q(),Y(),Z(),G$(),Nw(),nN(),g1(),JTe=V(`<span class="version svelte-wmw2gz"> </span>`),YTe={hash:`svelte-wmw2gz`,code:`.version.svelte-wmw2gz {border-radius:4px;padding:0 6px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-selected-background-color);font-size:var(--sui-font-size-small);}`}}));function ZTe(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn();{let r=M(()=>X(`help`));ZL(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=$Te(),a=I(i);Ywe(a,{get menuButton(){return t.menuButton}});var o=L(a,2),s=e=>{var t=QTe(),n=I(t);W9(n,()=>`documentation`,()=>`https://sveltiacms.app/en/docs`);var r=L(n,2);qTe(r,{});var i=L(r,2);W9(i,()=>`announcements`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/announcements`);var a=L(i,2);qI(a,{});var o=L(a,2);W9(o,()=>`report_issue`,()=>`https://github.com/sveltia/sveltia-cms/issues`);var s=L(o,2);W9(s,()=>`share_feedback`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/ideas`);var c=L(s,2);W9(c,()=>`get_help`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/q-a`);var l=L(c,2);qI(l,{});var u=L(l,2);W9(u,()=>`bluesky`,()=>`https://bsky.app/profile/sveltiacms.app`),W9(L(u,2),()=>`join_discord`,()=>`https://discord.com/invite/5hwCGqup5b`),U(e,t)};G(o,e=>{n().devModeEnabled&&e(s)}),U(e,i)},$$slots:{default:!0}})}k(),i()}var W9,QTe,$Te,eEe=s((()=>{Q(),Y(),Z(),G$(),XTe(),Zwe(),nN(),g1(),W9=(e,t=E,n=E)=>{{let r=M(()=>X(t()));tR(e,{get label(){return z(r)},onclick:()=>{h1(n())}})}},QTe=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),$Te=V(`<!> <!>`,1)}));function tEe(e,t){O(t,!0),K(e,rEe);let n=N(void 0),r=N(!1);var i=nEe(),a=I(i),o=F(a);{let e=e=>{UF(e,{name:`help`})},t=e=>{ZTe(e,{get menuButton(){return z(n)}})},r=M(()=>X(`show_help_menu`));Ws(VI(o,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>P(n,e,!0),()=>z(n))}D(a),Uwe(L(a,2),{onClose:()=>{z(n)?.focus()},get open(){return z(r)},set open(e){P(r,e,!0)}}),U(e,i),k()}var nEe,rEe,iEe=s((()=>{Q(),Y(),Z(),G$(),eEe(),Jwe(),nEe=V(`<div role="none" class="wrapper svelte-bzzge3"><!></div> <!>`,1),rEe={hash:`svelte-bzzge3`,code:`.wrapper.svelte-bzzge3 {display:contents;}`}}));function aEe(e,t){O(t,!0);{let t=e=>{UF(e,{name:`notifications`})},n=M(()=>X(`show_notifications`));lI(e,{variant:`ghost`,iconic:!0,hidden:!0,get"aria-label"(){return z(n)},onclick:()=>{},startIcon:t,$$slots:{startIcon:!0}})}k()}var oEe=s((()=>{Q(),Y(),Z(),G$()}));function sEe(e,t){O(t,!0),K(e,lEe);let n=()=>j(n0,`$appLogoURL`,i),r=()=>j($P,`$cmsConfig`,i),[i,a]=hn();var o=H(),s=I(o),c=e=>{{let t=M(()=>X(`visit_live_site`));lI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{E1()},children:(e,t)=>{var r=cEe();R(()=>q(r,`src`,n())),U(e,r)},$$slots:{default:!0}})}};G(s,e=>{n()!==e0&&(r()?.logo?.show_in_header??!0)&&e(c)}),U(e,o),k(),a()}var cEe,lEe,uEe=s((()=>{Q(),Y(),Z(),G$(),i0(),D1(),iF(),cEe=V(`<img alt="" class="logo svelte-15c9hhi"/>`),lEe={hash:`svelte-15c9hhi`,code:`img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}`}}));function dEe(e,t){O(t,!0),K(e,mEe);let n=()=>j(_1,`$hasOverlay`,i),r=()=>j(tN,`$prefs`,i),[i,a]=hn();var o=pEe(),s=F(o);{let e=M(()=>X(`global`));i$(s,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=fEe(),i=I(n),a=F(i);sEe(a,{}),Iwe(L(a,2),{}),D(i);var o=L(i,2);Q3(o,{});var s=L(o,2),c=F(s);UCe(c,{});var l=L(c,2);UTe(l,{});var u=L(l,2);aEe(u,{});var d=L(u,2),f=e=>{tEe(e,{})};G(d,e=>{r().devModeEnabled&&e(f)}),RTe(L(d,2),{}),D(s),U(e,n)},$$slots:{default:!0}})}D(o),R(()=>o.inert=n()),U(e,o),k(),a()}var fEe,pEe,mEe,hEe=s((()=>{Q(),Y(),Z(),G$(),HTe(),KTe(),iEe(),oEe(),zwe(),GCe(),n6(),uEe(),D1(),nN(),fEe=V(`<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>`,1),pEe=V(`<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>`),mEe={hash:`svelte-1kz79fh`,code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;}.toolbar-wrapper[inert].svelte-1kz79fh .sui.search-bar {display:none !important;}
|
|
1025
|
+
}.wrapper.svelte-t2r4ty .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}`}}));function Bwe(e,t){O(t,!0);let n=()=>j(_1,`$hasOverlay`,r),[r,i]=hn();Pae(e,{get inert(){return n()},children:(e,t)=>{{let t=M(()=>X(`global`));i$(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=Vwe();Iwe(F(n),{}),D(n),U(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}}),k(),i()}var Vwe,Hwe=s((()=>{Q(),Y(),Z(),G$(),zwe(),D1(),Vwe=V(`<div role="none" class="buttons"><!></div>`)}));function Uwe(e,t){O(t,!0),K(e,qwe);let n=()=>j(BA,`$isMacOS`,r),[r,i]=hn(),a=J(t,`open`,15,!1),o=J(t,`onClose`,3,void 0),s=[{feature:`view_content_library`,keys:`Alt+1`},{feature:`view_asset_library`,keys:`Alt+2`},{feature:`search`,keys:`Accel+F`},{feature:`create_entry`,keys:`Accel+E`},{feature:`save_entry`,keys:`Accel+S`},{feature:`cancel_editing`,keys:`Escape`}];{let t=M(()=>X(`keyboard_shortcuts`));sL(e,{get title(){return z(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,onClose:()=>{o()?.()},get open(){return a()},set open(e){a(e)},children:(e,t)=>{var r=Kwe(),i=F(r);{let e=M(()=>X(`keyboard_shortcuts`));Ooe(i,{get"aria-label"(){return z(e)},children:(e,t)=>{var r=H();mo(I(r),17,()=>s,({feature:e,keys:t})=>t,(e,t)=>{let r=()=>z(t).feature,i=()=>z(t).keys;Eoe(e,{children:(e,t)=>{var a=Gwe(),o=I(a);YR(o,{class:`feature`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`keyboard_shortcuts_.${r()}`)]),U(e,n)},$$slots:{default:!0}}),YR(L(o,2),{class:`keys`,children:(e,t)=>{var r=H();mo(I(r),16,()=>i().split(`+`),e=>e,(e,t)=>{var r=Wwe(),i=F(r,!0);D(r),R(e=>W(i,e),[()=>t.replace(`Accel`,n()?`⌘`:`Ctrl`)]),U(e,r)}),U(e,r)},$$slots:{default:!0}}),U(e,a)},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})}D(r),U(e,r)},$$slots:{default:!0}})}k(),i()}var Wwe,Gwe,Kwe,qwe,Jwe=s((()=>{Q(),Y(),Z(),G$(),KA(),Wwe=V(`<kbd class="svelte-13q15u"> </kbd>`),Gwe=V(`<!> <!>`,1),Kwe=V(`<div role="none" class="wrapper svelte-13q15u"><!></div>`),qwe={hash:`svelte-13q15u`,code:`.wrapper.svelte-13q15u {display:contents;}.wrapper.svelte-13q15u .table-row {display:flex;align-items:center;gap:16px;padding:8px 0;border-top:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-13q15u .table-row:last-child {border-bottom:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-13q15u .table-row .feature {flex:auto;}.wrapper.svelte-13q15u .table-row .keys {display:flex;gap:8px;}kbd.svelte-13q15u {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-color:var(--sui-primary-accent-color);border-radius:4px;padding:0 8px;height:32px;min-width:32px;background-color:var(--sui-tertiary-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);}`}}));function Ywe(e,t){O(t,!0);let n=()=>j(WA,`$hasMouse`,r),[r,i]=hn(),a=N(!1);var o=Xwe(),s=I(o),c=e=>{{let t=M(()=>X(`keyboard_shortcuts`));tR(e,{get label(){return z(t)},onclick:()=>{P(a,!0)}})}};G(s,e=>{n()&&e(c)}),Uwe(L(s,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(a)},set open(e){P(a,e,!0)}}),U(e,o),k(),i()}var Xwe,Zwe=s((()=>{Q(),Y(),Z(),G$(),Jwe(),KA(),Xwe=V(`<!> <!>`,1)}));function B9(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn(),a=J(t,`defaultValue`,3,!0),o=N(!0);ti(()=>{P(o,!!(n()[t.key]??a()),!0)}),ti(()=>{n()[t.key]!==z(o)&&_n(tN,B(n)[t.key]=z(o),B(n))}),KR(e,{get label(){return t.label},get checked(){return z(o)},set checked(e){P(o,e,!0)}}),k(),i()}var V9=s((()=>{Q(),Y(),G$(),nN()}));function Qwe(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=$we(),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a,!0);D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`prefs.accessibility.underline_links.switch_label`));B9(c,{key:`underlineLinks`,get label(){return z(e)}})}D(s),D(n),R((e,t)=>{W(i,e),W(o,t)},[()=>X(`prefs.accessibility.underline_links.title`),()=>X(`prefs.accessibility.underline_links.description`)]),U(e,n),k()}var $we,eTe=s((()=>{Q(),Y(),Z(),V9(),$we=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section>`)}));function tTe(e,t){O(t,!0);let n=()=>j(q2,`$skipCIConfigured`,i),r=()=>j(tN,`$prefs`,i),[i,a]=hn(),o=J(t,`onChange`,3,void 0);var s=rTe(),c=I(s),l=F(c),u=F(l,!0);D(l);var d=L(l,2),f=F(d,!0);D(d);var p=L(d,2),m=F(p);{let e=M(()=>X(`prefs.advanced.beta.switch_label`));B9(m,{key:`beta`,get label(){return z(e)},defaultValue:!1})}D(p),D(c);var h=L(c,2),g=F(h),_=F(g,!0);D(g);var v=L(g,2),y=F(v,!0);D(v);var b=L(v,2),x=F(b);{let e=M(()=>X(`prefs.advanced.developer_mode.switch_label`));B9(x,{key:`devModeEnabled`,get label(){return z(e)},defaultValue:!1})}D(b),D(h);var S=L(h,2),C=e=>{var t=nTe(),n=F(t),i=F(n,!0);D(n);var a=L(n,2),s=F(a,!0);D(a);var c=L(a,2),l=F(c);{let e=M(()=>X(`prefs.advanced.deploy_hook.url.field_label`));_L(l,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{o()?.({message:X(r().deployHookURL?`prefs.advanced.deploy_hook.url.saved`:`prefs.advanced.deploy_hook.url.removed`)})},get value(){return r().deployHookURL},set value(e){_n(tN,B(r).deployHookURL=e,B(r))}})}D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.advanced.deploy_hook.auth.field_label`));_L(d,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{o()?.({message:X(r().deployHookAuthHeader?`prefs.advanced.deploy_hook.auth.saved`:`prefs.advanced.deploy_hook.auth.removed`)})},get value(){return r().deployHookAuthHeader},set value(e){_n(tN,B(r).deployHookAuthHeader=e,B(r))}})}D(u),D(t),R((e,t)=>{W(i,e),W(s,t)},[()=>X(`prefs.advanced.deploy_hook.title`),()=>X(`prefs.advanced.deploy_hook.description`)]),U(e,t)};G(S,e=>{n()&&e(C)}),R((e,t,n,r)=>{W(u,e),W(f,t),W(_,n),W(y,r)},[()=>X(`prefs.advanced.beta.title`),()=>X(`prefs.advanced.beta.description`),()=>X(`prefs.advanced.developer_mode.title`),()=>X(`prefs.advanced.developer_mode.description`)]),U(e,s),k(),a()}var nTe,rTe,iTe=s((()=>{Q(),Y(),Z(),G$(),V9(),Y2(),nN(),nTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div> <div role="none"><!></div></section>`),rTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section> <section><h3> </h3> <p> </p> <div role="none"><!></div></section> <!>`,1)}));function aTe(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn();J(t,`onChange`,3,void 0);var a=oTe(),o=F(a),s=F(o,!0);D(o);var c=L(o,2),l=F(c);{let e=M(()=>X(`prefs.appearance.select_theme`));LI(l,{get"aria-label"(){return z(e)},onChange:e=>{mn(tN,{...n(),theme:e.detail.value})},children:(e,t)=>{var r=H();mo(I(r),16,()=>[`auto`,`dark`,`light`],e=>e,(e,t)=>{{let r=M(()=>X(`prefs.theme.${t}`)),i=M(()=>!n().theme&&t===`auto`||n().theme===t);BI(e,{variant:`tertiary`,get label(){return z(r)},get value(){return t},get selected(){return z(i)}})}}),U(e,r)},$$slots:{default:!0}})}D(c),D(a),R(e=>W(s,e),[()=>X(`prefs.appearance.theme`)]),U(e,a),k(),i()}var oTe,sTe=s((()=>{Q(),Y(),Z(),G$(),nN(),oTe=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function cTe(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=lTe(),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a);{let e=M(()=>X(`prefs.contents.editor.use_draft_backup.switch_label`));B9(o,{key:`useDraftBackup`,get label(){return z(e)}})}D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`prefs.contents.editor.close_on_save.switch_label`));B9(c,{key:`closeOnSave`,get label(){return z(e)}})}D(s);var l=L(s,2),u=F(l);{let e=M(()=>X(`prefs.contents.editor.close_with_escape.switch_label`));B9(u,{key:`closeWithEscape`,get label(){return z(e)}})}D(l),D(n),R(e=>W(i,e),[()=>X(`prefs.contents.editor.title`)]),U(e,n),k()}var lTe,uTe=s((()=>{Q(),Y(),Z(),V9(),lTe=V(`<section><h3> </h3> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>`)}));function H9(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn(),a=J(t,`onChange`,3,void 0),o=M(()=>t.service.apiKeyPattern),s=N(``);ac(()=>{P(s,n().apiKeys?.[t.serviceId]??``,!0)}),j$(e,{flex:!0,autocomplete:`off`,spellcheck:`false`,get"aria-label"(){return t.ariaLabel},onchange:()=>{let e=z(s).trim(),r=!!e&&!!z(o)&&!z(o).test(e);_n(tN,B(n).apiKeys??={},B(n)),_n(tN,B(n).apiKeys[t.serviceId]=r?``:e,B(n)),a()?.({message:X(r?`prefs.changes.api_key_invalid`:e?`prefs.changes.api_key_saved`:`prefs.changes.api_key_removed`),status:r?`error`:`success`})},get value(){return z(s)},set value(e){P(s,e,!0)}}),k(),i()}var dTe=s((()=>{Q(),Y(),Z(),G$(),sc(),nN()}));function fTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0);var r=mTe(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2);Twe(F(s),{}),D(s),D(i);var c=L(i,2),l=F(c),u=F(l,!0);D(l);var d=L(l,2);So(d,()=>Kk(X(`prefs.i18n.translators.api_keys.description`),`https://sveltiacms.app/en/docs/integrations/translations`),!0),D(d),mo(L(d,2),17,()=>Object.entries(N5),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=pTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.i18n.translators.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(c),R((e,t)=>{W(o,e),W(u,t)},[()=>X(`prefs.i18n.translators.default.title`),()=>X(`prefs.i18n.translators.api_keys.title`)]),U(e,r),k()}var pTe,mTe,hTe=s((()=>{Q(),Y(),Z(),dTe(),Ewe(),F5(),qk(),pTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),mTe=V(`<section><h3> </h3> <div role="none"><!></div></section> <section><h3> </h3> <p></p> <!></section>`,1)}));function gTe(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn();J(t,`onChange`,3,void 0);var a=_Te(),o=F(a),s=F(o,!0);D(o);var c=L(o,2);oo(F(c),()=>kh.current,e=>{{let t=M(()=>X(`prefs.language.ui_language.select_language`));RR(e,{get"aria-label"(){return z(t)},get value(){return kh.current},onChange:e=>{mn(tN,{...n(),locale:e.detail.value})},children:(e,t)=>{var n=H();mo(I(n),16,()=>mh,e=>e,(e,t)=>{{let n=M(()=>cb(t,{displayLocale:t})??t),r=M(()=>t===kh.current);KL(e,{get label(){return z(n)},get value(){return t},get selected(){return z(r)},dir:`auto`})}}),U(e,n)},$$slots:{default:!0}})}}),D(c),D(a),R(e=>W(s,e),[()=>X(`prefs.language.ui_language.title`)]),U(e,a),k(),i()}var _Te,vTe=s((()=>{Q(),Y(),Z(),G$(),fb(),nN(),_Te=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function yTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0),r=M(()=>{let{providers:e=[]}=u7();return Object.entries(l7).filter(([t,{authType:n}])=>e.includes(t)&&n!==`none`)}),i=M(()=>Object.entries(hw).filter(([,{isEnabled:e,authType:t}])=>(e?.()??!0)&&t!==`widget`));var a=STe(),o=I(a),s=F(o),c=F(s,!0);D(s);var l=L(s,2);So(l,()=>Kk(z(i).length?X(`prefs.media.cloud_storage.api_keys.description`):X(`prefs.media.cloud_storage.no_services`),`https://sveltiacms.app/en/docs/media`),!0),D(l),mo(L(l,2),17,()=>z(i),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=bTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.media.cloud_storage.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(o);var u=L(o,2),d=F(u),f=F(d,!0);D(d);var p=L(d,2);So(p,()=>Kk(z(r).length?X(`prefs.media.stock_photos.api_keys.description`):X(`prefs.media.stock_photos.no_services`),`https://sveltiacms.app/en/docs/integrations/stock-photos`),!0),D(p),mo(L(p,2),17,()=>z(r),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=xTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(u),R((e,t)=>{W(c,e),W(f,t)},[()=>X(`prefs.media.cloud_storage.api_keys.title`),()=>X(`prefs.media.stock_photos.api_keys.title`)]),U(e,a),k()}var bTe,xTe,STe,CTe=s((()=>{Q(),Y(),Z(),dTe(),_w(),ehe(),qk(),bTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),xTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),STe=V(`<section><h3> </h3> <p></p> <!></section> <section><h3> </h3> <p></p> <!></section>`,1)})),U9,wTe=s((()=>{ip(),eTe(),iTe(),sTe(),uTe(),hTe(),vTe(),CTe(),iF(),U9=dn([$P],([e])=>[{key:`appearance`,icon:`palette`,component:aTe},{key:`language`,icon:`language`,component:gTe},{key:`contents`,icon:`library_books`,component:cTe},{key:`i18n`,icon:`translate`,component:fTe,enabled:(e?.i18n?.locales?.length??0)>1},{key:`media`,icon:`photo_library`,component:yTe},{key:`accessibility`,icon:`accessibility_new`,component:Qwe},{key:`advanced`,icon:`build`,component:tTe}])}));function TTe(e,t){K(e,DTe);let n=N(``),r=N(`success`),i=N(!1);var a=ETe(),o=I(a);Oo(F(o),()=>t.Panel,(e,t)=>{t(e,{onChange:({message:e,status:t})=>{P(n,e,!0),P(r,t??`success`,!0),P(i,!0)}})}),D(o),oz(L(o,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{GF(e,{get status(){return z(r)},children:(e,t)=>{_t();var r=Fa();R(()=>W(r,z(n))),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,a)}var ETe,DTe,OTe=s((()=>{Q(),Y(),G$(),ETe=V(`<div class="container svelte-1attlke" role="none"><!></div> <!>`,1),DTe={hash:`svelte-1attlke`,code:`.container.svelte-1attlke {display:contents;}.container.svelte-1attlke section:not(:first-child) {margin:16px 0 0;}.container.svelte-1attlke p {margin-top:0;}.container.svelte-1attlke h3 {font-size:inherit;}.container.svelte-1attlke h3 ~ div {margin:8px 0 0;}.container.svelte-1attlke h3 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.container.svelte-1attlke h4 {margin-bottom:4px;font-size:var(--sui-font-size-small);}`}}));function kTe(e,t){O(t,!0),K(e,jTe);let n=J(t,`open`,15,!1),r=J(t,`onClose`,3,void 0),i=N(`appearance`);{let t=M(()=>X(`settings`));sL(e,{get title(){return z(t)},size:`large`,showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{r()?.()},get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=ATe(),r=F(n);{let e=M(()=>X(`categories`));Aoe(r,{orientation:`vertical`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=H();mo(I(n),17,()=>A(U9),({key:e,icon:t,enabled:n=!0})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).icon,a=ar(()=>T(z(t).enabled,!0));var o=H(),s=I(o),c=e=>{{let t=e=>{UF(e,{get name(){return r()}})},a=M(()=>X(`prefs.${n()}.title`)),o=M(()=>n()===z(i));Poe(e,{get label(){return z(a)},get selected(){return z(o)},get"aria-controls"(){return`prefs-tab-${n()??``}`},onSelect:()=>{P(i,n(),!0)},startIcon:t,$$slots:{startIcon:!0}})}};G(s,e=>{z(a)&&e(c)}),U(e,o)}),U(e,n)},$$slots:{default:!0}})}mo(L(r,2),17,()=>A(U9),({key:e,component:t})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).component;Moe(e,{get id(){return`prefs-tab-${n()??``}`},children:(e,t)=>{TTe(e,{get Panel(){return r()}})},$$slots:{default:!0}})}),D(n),U(e,n)},$$slots:{default:!0}})}k()}var ATe,jTe,MTe=s((()=>{Q(),Y(),Z(),G$(),ip(),wTe(),OTe(),ATe=V(`<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>`),jTe={hash:`svelte-pwxwga`,code:`.wrapper.svelte-pwxwga {display:flex;}.wrapper.svelte-pwxwga .sui.tab-list {flex:none;}.wrapper.svelte-pwxwga .sui.tab-panel {flex:auto;border-width:0;}`}}));function NTe(e,t){O(t,!0);let n=()=>j(OP,`$backendName`,c),r=()=>j(Kj,`$user`,c),i=()=>j(tN,`$prefs`,c),a=()=>j(kP,`$backend`,c),o=()=>j(VA,`$isSmallScreen`,c),s=()=>j(L9,`$canShowMobileSignInDialog`,c),[c,l]=hn(),u=N(!1),d=M(()=>n()===`local`),f=M(()=>n()===`test-repo`);var p=ITe(),m=I(p);{let e=M(()=>X(`account`));ZL(m,{get"aria-label"(){return z(e)},children:(e,n)=>{var c=FTe(),l=I(c);{let e=M(()=>z(d)?X(`working_with_local_repo`):z(f)?X(`working_with_test_repo`):X(`signed_in_as_x`,{values:{name:r()?.login}})),t=M(()=>z(d)||z(f));tR(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{h1(r()?.profileURL)}})}var p=L(l,2);qI(p,{});var m=L(p,2);{let e=M(()=>X(`live_site`));tR(m,{get label(){return z(e)},onclick:()=>{E1()}})}var h=L(m,2),g=e=>{var t=PTe(),n=I(t);{let e=M(()=>X(`git_repository`)),t=M(()=>!a()?.repository?.treeBaseURL);tR(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{h1(a()?.repository?.treeBaseURL)}})}var r=L(n,2);{let e=M(()=>X(`cms_config`));tR(r,{get label(){return z(e)},onclick:()=>{w1(`/config`,{transitionType:`forwards`})}})}U(e,t)};G(h,e=>{i().devModeEnabled&&e(g)});var _=L(h,2);qI(_,{});var v=L(_,2);{let e=M(()=>X(`settings`));tR(v,{get label(){return z(e)},onclick:()=>{o()?w1(`/settings`,{transitionType:`forwards`}):P(u,!0)}})}var y=L(v,2),b=e=>{Ywe(e,{get menuButton(){return t.menuButton}})};G(y,e=>{i().devModeEnabled||e(b)});var x=L(y,2),S=e=>{{let t=M(()=>X(`sign_in_with_mobile`));tR(e,{get label(){return z(t)},onclick:()=>{mn(R9,!0)}})}};G(x,e=>{s()&&e(S)});var C=L(x,2);qI(C,{});var w=L(C,2);{let e=M(()=>X(`sign_out`));tR(w,{get label(){return z(e)},onclick:async()=>{window.requestAnimationFrame(()=>{B1()})}})}U(e,c)},$$slots:{default:!0}})}kTe(L(m,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(u)},set open(e){P(u,e,!0)}}),U(e,p),k(),l()}var PTe,FTe,ITe,LTe=s((()=>{Q(),Y(),Z(),G$(),Zwe(),MTe(),D1(),z9(),jP(),qj(),V1(),KA(),nN(),g1(),PTe=V(`<!> <!>`,1),FTe=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),ITe=V(`<!> <!>`,1)}));function RTe(e,t){O(t,!0),K(e,VTe);let n=()=>j(OP,`$backendName`,i),r=()=>j(Kj,`$user`,i),[i,a]=hn(),o=N(void 0),s=M(()=>n()===`local`),c=M(()=>!!r()?.avatarURL);var l=BTe(),u=F(l);{let e=e=>{var t=H(),n=I(t),i=e=>{UF(e,{name:`arrow_drop_down`,class:`small-arrow`})},a=e=>{var t=zTe();R(()=>q(t,`src`,r()?.avatarURL)),U(e,t)},o=e=>{UF(e,{name:`account_circle`})};G(n,e=>{z(s)?e(i):z(c)?e(a,1):e(o,-1)}),U(e,t)},t=e=>{NTe(e,{get menuButton(){return z(o)}})},n=M(()=>!z(s)),i=M(()=>z(s)?X(`local_workflow.indicator`):void 0),a=M(()=>z(c)?`avatar`:``),l=M(()=>X(`show_account_menu`));Ws(VI(u,{variant:`ghost`,get iconic(){return z(n)},get label(){return z(i)},get class(){return z(a)},popupPosition:`bottom-right`,get"aria-label"(){return z(l)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>P(o,e,!0),()=>z(o))}D(l),U(e,l),k(),a()}var zTe,BTe,VTe,HTe=s((()=>{Q(),Y(),Z(),G$(),LTe(),jP(),qj(),zTe=V(`<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>`),BTe=V(`<div role="none" class="wrapper svelte-q0ng4j"><!></div>`),VTe={hash:`svelte-q0ng4j`,code:`.wrapper.svelte-q0ng4j {display:contents;}.wrapper.svelte-q0ng4j button.avatar {border-width:0;background-color:transparent;}.avatar.svelte-q0ng4j {width:32px;height:32px;border-radius:32px;object-fit:cover;}`}}));function UTe(e,t){O(t,!0);let[n,r]=hn(),i=M(()=>zb({visible:!0,type:`entry`}));{let t=e=>{UF(e,{name:`add`})},n=e=>{{let t=M(()=>X(`create_entry_or_assets`));ZL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=GTe(),r=I(n),a=e=>{var t=WTe(),n=I(t);mo(n,17,()=>z(i),e=>e.name,(e,t)=>{let n=M(()=>{let{name:e,label:n,label_singular:r,create:i=!0,limit:a=1/0}=z(t);return{name:e,label:n,labelSingular:r,create:i,limit:a}});{let t=M(()=>z(n).labelSingular||z(n).label||z(n).name),r=M(()=>!z(n).create||rk(z(n).name).length>=z(n).limit);tR(e,{get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{w1(`/collections/${z(n).name}/new`,{transitionType:`forwards`})}})}}),qI(L(n,2),{}),U(e,t)};G(r,e=>{z(i).length&&e(a)});var o=L(r,2);{let e=M(()=>X(`assets`));tR(o,{get label(){return z(e)},onclick:async()=>{w1(`/assets`,{transitionType:`forwards`}),await Yx(100),mn(s1,!0)}})}U(e,n)},$$slots:{default:!0}})}},r=M(()=>X(`create_entry_or_assets`));VI(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:t,popup:n,$$slots:{endIcon:!0,popup:!0}})}k(),r()}var WTe,GTe,KTe=s((()=>{Q(),Y(),Z(),G$(),Xx(),D1(),m1(),Jb(),sk(),WTe=V(`<!> <!>`,1),GTe=V(`<!> <!>`,1)}));function qTe(e,t){O(t,!0),K(e,YTe);let n=()=>j(tN,`$prefs`,r),[r,i]=hn();{let t=e=>{var t=H(),r=I(t),i=e=>{var t=JTe(),n=F(t);D(t),R(e=>{q(t,`aria-label`,`(${e??``})`),W(n,`v${Mw??``}`)},[()=>X(`version_x`,{values:{version:Mw}})]),U(e,t)};G(r,e=>{n().devModeEnabled&&e(i)}),U(e,t)},r=M(()=>X(`release_notes`));tR(e,{get label(){return z(r)},onclick:()=>{h1(`https://github.com/sveltia/sveltia-cms/releases`)},endIcon:t,$$slots:{endIcon:!0}})}k(),i()}var JTe,YTe,XTe=s((()=>{Q(),Y(),Z(),G$(),Nw(),nN(),g1(),JTe=V(`<span class="version svelte-wmw2gz"> </span>`),YTe={hash:`svelte-wmw2gz`,code:`.version.svelte-wmw2gz {border-radius:4px;padding:0 6px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-selected-background-color);font-size:var(--sui-font-size-small);}`}}));function ZTe(e,t){O(t,!0);let n=()=>j(tN,`$prefs`,r),[r,i]=hn();{let r=M(()=>X(`help`));ZL(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=$Te(),a=I(i);Ywe(a,{get menuButton(){return t.menuButton}});var o=L(a,2),s=e=>{var t=QTe(),n=I(t);W9(n,()=>`documentation`,()=>`https://sveltiacms.app/en/docs`);var r=L(n,2);qTe(r,{});var i=L(r,2);W9(i,()=>`announcements`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/announcements`);var a=L(i,2);qI(a,{});var o=L(a,2);W9(o,()=>`report_issue`,()=>`https://github.com/sveltia/sveltia-cms/issues`);var s=L(o,2);W9(s,()=>`share_feedback`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/ideas`);var c=L(s,2);W9(c,()=>`get_help`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/q-a`);var l=L(c,2);W9(l,()=>`donate`,()=>`https://github.com/sponsors/kyoshino`);var u=L(l,2);qI(u,{});var d=L(u,2);W9(d,()=>`bluesky`,()=>`https://bsky.app/profile/sveltiacms.app`),W9(L(d,2),()=>`join_discord`,()=>`https://discord.com/invite/5hwCGqup5b`),U(e,t)};G(o,e=>{n().devModeEnabled&&e(s)}),U(e,i)},$$slots:{default:!0}})}k(),i()}var W9,QTe,$Te,eEe=s((()=>{Q(),Y(),Z(),G$(),XTe(),Zwe(),nN(),g1(),W9=(e,t=E,n=E)=>{{let r=M(()=>X(t()));tR(e,{get label(){return z(r)},onclick:()=>{h1(n())}})}},QTe=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),$Te=V(`<!> <!>`,1)}));function tEe(e,t){O(t,!0),K(e,rEe);let n=N(void 0),r=N(!1);var i=nEe(),a=I(i),o=F(a);{let e=e=>{UF(e,{name:`help`})},t=e=>{ZTe(e,{get menuButton(){return z(n)}})},r=M(()=>X(`show_help_menu`));Ws(VI(o,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>P(n,e,!0),()=>z(n))}D(a),Uwe(L(a,2),{onClose:()=>{z(n)?.focus()},get open(){return z(r)},set open(e){P(r,e,!0)}}),U(e,i),k()}var nEe,rEe,iEe=s((()=>{Q(),Y(),Z(),G$(),eEe(),Jwe(),nEe=V(`<div role="none" class="wrapper svelte-bzzge3"><!></div> <!>`,1),rEe={hash:`svelte-bzzge3`,code:`.wrapper.svelte-bzzge3 {display:contents;}`}}));function aEe(e,t){O(t,!0);{let t=e=>{UF(e,{name:`notifications`})},n=M(()=>X(`show_notifications`));lI(e,{variant:`ghost`,iconic:!0,hidden:!0,get"aria-label"(){return z(n)},onclick:()=>{},startIcon:t,$$slots:{startIcon:!0}})}k()}var oEe=s((()=>{Q(),Y(),Z(),G$()}));function sEe(e,t){O(t,!0),K(e,lEe);let n=()=>j(n0,`$appLogoURL`,i),r=()=>j($P,`$cmsConfig`,i),[i,a]=hn();var o=H(),s=I(o),c=e=>{{let t=M(()=>X(`visit_live_site`));lI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{E1()},children:(e,t)=>{var r=cEe();R(()=>q(r,`src`,n())),U(e,r)},$$slots:{default:!0}})}};G(s,e=>{n()!==e0&&(r()?.logo?.show_in_header??!0)&&e(c)}),U(e,o),k(),a()}var cEe,lEe,uEe=s((()=>{Q(),Y(),Z(),G$(),i0(),D1(),iF(),cEe=V(`<img alt="" class="logo svelte-15c9hhi"/>`),lEe={hash:`svelte-15c9hhi`,code:`img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}`}}));function dEe(e,t){O(t,!0),K(e,mEe);let n=()=>j(_1,`$hasOverlay`,i),r=()=>j(tN,`$prefs`,i),[i,a]=hn();var o=pEe(),s=F(o);{let e=M(()=>X(`global`));i$(s,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=fEe(),i=I(n),a=F(i);sEe(a,{}),Iwe(L(a,2),{}),D(i);var o=L(i,2);Q3(o,{});var s=L(o,2),c=F(s);UCe(c,{});var l=L(c,2);UTe(l,{});var u=L(l,2);aEe(u,{});var d=L(u,2),f=e=>{tEe(e,{})};G(d,e=>{r().devModeEnabled&&e(f)}),RTe(L(d,2),{}),D(s),U(e,n)},$$slots:{default:!0}})}D(o),R(()=>o.inert=n()),U(e,o),k(),a()}var fEe,pEe,mEe,hEe=s((()=>{Q(),Y(),Z(),G$(),HTe(),KTe(),iEe(),oEe(),zwe(),GCe(),n6(),uEe(),D1(),nN(),fEe=V(`<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>`,1),pEe=V(`<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>`),mEe={hash:`svelte-1kz79fh`,code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;}.toolbar-wrapper[inert].svelte-1kz79fh .sui.search-bar {display:none !important;}
|
|
1026
1026
|
@media (width < 768px) {.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar {padding:0 4px;}
|
|
1027
1027
|
}.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar .buttons {flex:auto;display:flex;align-items:center;width:50%;}.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar .buttons:last-child {justify-content:flex-end;}.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar .sui.search-bar {flex:none;width:640px;max-width:50%;}
|
|
1028
1028
|
@media (width < 768px) {.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar .sui.search-bar {flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;max-width:none;}
|