@sveltia/cms 0.151.0 â 0.151.2
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/dist/sveltia-cms.js +15 -15
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +15 -15
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
package/dist/sveltia-cms.mjs
CHANGED
|
@@ -135,7 +135,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
135
135
|
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
136
136
|
`,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(yv(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=Cv(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(yv(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(xv(t.key)&&!yv(t.sep,`newline`)){let e=Cv(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):yv(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!yv(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||yv(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=Cv(Sv(t));wv(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
|
|
137
137
|
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
138
|
-
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=Cv(Sv(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=Cv(Sv(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function Ev(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new vv||null,prettyErrors:t}}function Dv(e,t={}){let{lineCounter:n,prettyErrors:r}=Ev(t),i=new Tv(n?.addNewLine),a=new iv(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new b_(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(S_(e,n)),o.warnings.forEach(S_(e,n))),o}function Ov(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Dv(e,n);if(!i)return null;if(i.warnings.forEach(e=>og(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function kv(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return rh(e)&&!r?e.toString(n):new __(e,r,n).toString(n)}var Av=Ft(!1),jv=Ft(),Mv=Ft([]),Nv=Ft([]),Pv=Ft([]),Fv={source:void 0,fileMap:new Map,regexFolders:[]},Iv=()=>{let e=j(Mv);if(e===Fv.source)return Fv;let t=new Map,n=[];return e.forEach(e=>{e.filePathMap?[...new Set(Object.values(e.filePathMap))].forEach(n=>{let r=t.get(n);r?r.push(e):t.set(n,[e])}):n.push([e,Ty(e.collectionName)?._file?.fullPathRegEx])}),Fv.source=e,Fv.fileMap=t,Fv.regexFolders=n,Fv},Lv=e=>{let{fileMap:t,regexFolders:n}=Iv();return[...t.get(e)??[],...n.filter(([,t])=>t?.test(e)).map(([e])=>e)].sort((e,t)=>(t.folderPath??``).localeCompare(e.folderPath??``))},Rv=e=>!(`divider`in e)&&typeof e.file==`string`&&Array.isArray(e.fields),zv=e=>e.filter(e=>Rv(e)),Bv=(e,t)=>{let n=typeof e==`string`?Ty(e):e;if(!(!n||!(`_fileMap`in n)))return n._fileMap[t]},Vv=e=>e.label||e.name,Hv=(e,t)=>`_fileMap`in e?Object.values(e._fileMap).filter(({_file:e,_i18n:n})=>e.fullPath===t.locales[n.defaultLocale]?.path):[],Uv=(e,t)=>{let n=j(Mv).find(({collectionName:n,fileName:r})=>n===e&&r===t);if(!n?.filePathMap)return;let r=new Set(Object.values(n.filePathMap));return j(Nv).find(e=>Object.values(e.locales).some(({path:e})=>r.has(e)))},Wv=(e,t)=>{if(e&&t){let{collections:n,singletons:r}=j(fj);if(e===`_singletons`)return Array.isArray(r)?zv(r).findIndex(e=>e.name===t):-1;let i=yy({collections:n}).find(({name:t})=>t===e);if(i&&`files`in i)return i.files.findIndex(({name:e})=>e===t)}return-1},Gv={slug_length:!1,yaml_quote:!1,uuid_read_only:!1,save_all_locales:!1,automatic_deployments:!1,multiple_folders_i18n_root:!1,omit_default_locale_from_filename:!1},vee={slug_length:"The `slug_length` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `slug.maxlength` option instead. ",yaml_quote:"The `yaml_quote` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `output.yaml.quote` option instead. `yaml_quote: true` is equivalent to `quote: double`. https://sveltiacms.app/en/docs/data-output#controlling-data-output",uuid_read_only:"The `read_only` option for the UUID field type is deprecated and will be removed in Sveltia CMS 1.0. Use the `readonly` option instead.",save_all_locales:"The `save_all_locales` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `initial_locales` option instead. `save_all_locales: false` is equivalent to `initial_locales: all`. https://sveltiacms.app/en/docs/i18n#disabling-non-default-locale-content",automatic_deployments:"The `automatic_deployments` backend option is deprecated and will be removed in Sveltia CMS 1.0. Use the `skip_ci` option instead. `automatic_deployments: false` is equivalent to `skip_ci: true`, and `automatic_deployments: true` is equivalent to `skip_ci: false`. https://sveltiacms.app/en/docs/deployments#disabling-automatic-deployments",multiple_folders_i18n_root:"The `multiple_folders_i18n_root` i18n structure is deprecated and will be removed in Sveltia CMS 1.0. Use the `multiple_root_folders` structure instead. https://sveltiacms.app/en/docs/i18n#multiple-root-folders",omit_default_locale_from_filename:"The `omit_default_locale_from_filename` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `omit_default_locale_from_file_path` option instead. https://sveltiacms.app/en/docs/i18n#managing-content-structure"},Kv=(e,t)=>{Gv[e]||(console.warn(t??vee[e]),Gv[e]=!0)},yee=()=>{try{return j(Z)(`index_file`)}catch{return`Index File`}},qv=e=>{if(!hy(e))return;let{index_file:t}=e;if(!t)return;let n=t===!0?{}:t;return{name:n.name??`_index`,label:n.label??yee(),icon:n.icon??`home`,fields:n.fields,editor:n.editor}},Jv=(e,t)=>{let n=qv(e);return n?t.slug===n.name:!1},Yv=e=>{let t;if(e!==`_default`)try{[t]=Intl.getCanonicalLocales(e)}catch{}return t},Xv=new Map,Zv=(e,{displayLocale:t=Yv(j(Am)??`en`)}={})=>{let n=Yv(e);if(!n)return;let r;t?(r=Xv.get(t),r||(r=new Intl.DisplayNames(t,{type:`language`}),Xv.set(t,r))):r=new Intl.DisplayNames(void 0,{type:`language`});try{return r.of(n)}catch(e){console.error(e);return}},Qv=new Map,$v=(e,t={})=>{let n={style:`narrow`,type:`conjunction`,...t},r=`${e}|${n.style}|${n.type}`,i=Qv.get(r);return i||(i=new Intl.ListFormat(Yv(e),n),Qv.set(r,i)),i},ey=({_i18n:e,locale:t,path:n})=>{let{defaultLocale:r,omitDefaultLocaleFromFilePath:i}=e;return i&&t===r&&(n=n.replace(/{{locale}}[./]/,``)),n.replaceAll(`{{locale}}`,t)},ty=/\\\{\\\{.+?\\\}\\\}/g,ny=new Map,ry=({extension:e,format:t})=>(t?ny.get(t)?.extension:void 0)||e||(t===`raw`?`txt`:t===`yaml`||t===`yml`?`yml`:t===`toml`?`toml`:t===`json`?`json`:`md`),bee=({extension:e,format:t})=>t||(e===`yaml`||e===`yml`?`yaml`:e===`toml`?`toml`:e===`json`?`json`:[`md`,`mkd`,`mkdn`,`mdwn`,`mdown`,`markdown`].includes(e)?`frontmatter`:`yaml-frontmatter`),xee=(e,t)=>e?`(?<subPath>${yd(e).replace(ty,`[^/]+?`)}${t?`|${t}`:``})`:`(?<subPath>[^/]+?)`,See=({extension:e,format:t,basePath:n,subPath:r,indexFileName:i,_i18n:a})=>{let{allLocales:o,defaultLocale:s,omitDefaultLocaleFromFilePath:c,structureMap:{i18nMultiFile:l,i18nMultiFolder:u,i18nMultiRootFolder:d}}=a,f=`(?<locale>${o.join(`|`)})`,p=o.filter(e=>e!==s).join(`|`),m=c?`(?:(?<locale>${p})\\/)?`:`${f}\\/`,h=c?`(?:\\.(?<locale>${p}))?`:`\\.${f}`,g=[`^`,d?m:``,n?`${yd(n)}\\/`:``,u?m:``,xee(r,i),l?h:``,`\\.`,ry({format:t,extension:e}),`$`].join(``);return new RegExp(g)},iy=({format:e,delimiter:t})=>{if(typeof t==`string`&&t.trim())return[t,t];if(Array.isArray(t)&&t.length===2)return t;if(e===`json-frontmatter`)return[`{`,`}`];if(e===`toml-frontmatter`)return[`+++`,`+++`];if(e===`yaml-frontmatter`)return[`---`,`---`]},ay=({rawCollection:e,file:t,_i18n:n})=>{let{folder:r,path:i,extension:a,format:o,frontmatter_delimiter:s,yaml_quote:c}=e,l=hy(e),u=t?.file?xd(t.file):void 0,d=u?kd(u).extension:a,f=t?.format??o,p=ry({format:f,extension:d}),m=bee({format:f,extension:p}),h=t?.frontmatter_delimiter??s,g=l?xd(r):void 0,_=l?qv(e)?.name:void 0;return c!==void 0&&Kv(`yaml_quote`),{extension:p,format:m,basePath:g,subPath:l?i:void 0,fullPathRegEx:g===void 0?void 0:See({extension:p,format:m,basePath:g,subPath:i,indexFileName:_,_i18n:n}),fullPath:u?ey({_i18n:n,locale:n.defaultLocale,path:u}):void 0,fmDelimiters:iy({format:m,delimiter:h}),yamlQuote:!!c}},oy={SINGLE_FILE:`single_file`,MULTIPLE_FILES:`multiple_files`,MULTIPLE_FOLDERS:`multiple_folders`,MULTIPLE_FOLDERS_I18N_ROOT:`multiple_folders_i18n_root`,MULTIPLE_ROOT_FOLDERS:`multiple_root_folders`},sy=`_default`,cy={key:`translationKey`,value:`{{slug}}`},ly={i18nEnabled:!1,saveAllLocales:!0,allLocales:[sy],initialLocales:[sy],defaultLocale:sy,structure:oy.SINGLE_FILE,structureMap:{i18nSingleFile:!1,i18nMultiFile:!1,i18nMultiFolder:!1,i18nMultiRootFolder:!1},canonicalSlug:{...cy},omitDefaultLocaleFromFilePath:!1,omitDefaultLocaleFromPreviewPath:!1},Cee=(e,t)=>{let n=j(fj);if(!u(n.i18n))return;let r=structuredClone(n.i18n);if(e.i18n||_y(e)){if(u(e.i18n)&&Object.assign(r,e.i18n),t)if(t.i18n)u(t.i18n)&&Object.assign(r,t.i18n);else return}else return;return r},wee=(e,t)=>t?t.file.includes(`{{locale}}`)?oy.MULTIPLE_FILES:oy.SINGLE_FILE:e,Tee=(e,t)=>({i18nSingleFile:e&&t===oy.SINGLE_FILE,i18nMultiFile:e&&t===oy.MULTIPLE_FILES,i18nMultiFolder:e&&t===oy.MULTIPLE_FOLDERS,i18nMultiRootFolder:e&&(t===oy.MULTIPLE_FOLDERS_I18N_ROOT||t===oy.MULTIPLE_ROOT_FOLDERS)}),uy=(e,t,n)=>e?n&&t.includes(n)?n:t[0]:sy,dy=(e,t,n)=>e===`all`?t:e===`default`?[n]:t.filter(t=>t===n||(Array.isArray(e)?e.includes(t):!0)),fy=(e,t)=>{let n=Cee(e,t),{structure:r=oy.SINGLE_FILE,locales:i=[],default_locale:a,initial_locales:o,save_all_locales:s=!0,canonical_slug:c={key:void 0,value:void 0},omit_default_locale_from_filename:l,omit_default_locale_from_file_path:u=l??!1,omit_default_locale_from_preview_path:d=!1}=n??{};n?.save_all_locales!==void 0&&Kv(`save_all_locales`),l!==void 0&&Kv(`omit_default_locale_from_filename`);let{key:f=cy.key,value:p=cy.value}=c,m=i.length>0,h=m?i:[sy],g=uy(m,h,a),_=wee(r,t),v=Tee(m,_),y=m?s===!0&&o===void 0:!0,b=dy(o,h,g),x=u&&(t?/{{locale}}[./]/.test(t.file):v.i18nMultiFile);return _===`multiple_folders_i18n_root`&&Kv(`multiple_folders_i18n_root`),{i18nEnabled:m,saveAllLocales:y,allLocales:h,defaultLocale:g,initialLocales:b,structure:_,structureMap:v,canonicalSlug:{key:f,value:p},omitDefaultLocaleFromFilePath:x,omitDefaultLocaleFromPreviewPath:d}},py=Ft(),my=new Map,hy=e=>typeof e.folder==`string`&&!Array.isArray(e.files),gy=e=>e.folder===void 0&&Array.isArray(e.files),_y=e=>gy(e)&&e.name===`_singletons`,vy=(e,{visible:t=void 0,type:n=void 0}={})=>`divider`in e||t&&e.hide?!1:n===`entry`?hy(e):n===`file`?gy(e):n===`singleton`?_y(e):hy(e)||gy(e),yy=({collections:e=j(fj)?.collections??[],visible:t,type:n}={})=>e.filter(e=>vy(e,{visible:t,type:n})),by=()=>yy({visible:!0})[0],xy=e=>{if(!(`folder`in e))return[];let{fields:t,thumbnail:n=!0}=e;return n===!1?[]:typeof n==`string`?[n]:Array.isArray(n)?n:t?.length?t.filter(({widget:e=`string`})=>[`image`,`file`].includes(e)).map(({name:e})=>e):[]},Sy=(e,t)=>({...e,_i18n:t,_type:`entry`,_file:ay({rawCollection:e,_i18n:t}),_thumbnailFieldNames:xy(e)}),Cy=(e,t,n)=>({...e,_i18n:t,_type:_y(e)?`singleton`:`file`,_fileMap:Object.fromEntries(n.filter(Rv).map(t=>{let n=fy(e,t),r=ay({rawCollection:e,file:t,_i18n:n});return[t.name,{...t,_file:r,_i18n:n}]}))}),wy=()=>{let e=j(fj)?.singletons;if(!Array.isArray(e))return;let t=zv(e).map(e=>({...e,file:xd(e.file)}));if(!t.length)return;let n={name:`_singletons`,files:t};return Cy(n,fy(n),t)},Ty=e=>{let t=my.get(e);if(t)return t;if(e===`_singletons`){let t=wy();return my.set(e,t),t}let n=yy().find(t=>t.name===e);if(!n){my.set(e,void 0);return}let r=hy(n)?n:void 0,i=gy(n)?n:void 0;if(!r&&!i){my.set(e,void 0);return}r?r.folder=xd(r.folder):i?.files.forEach(e=>{e.file&&=xd(e.file)});let a=fy(n),o=r?Sy(r,a):Cy(i,a,i.files);return my.set(e,o),o},Ey=(e,{useSingular:t=!1}={})=>{let{_type:n,name:r,label:i,label_singular:a}=e;return n===`singleton`?j(Z)(`files`):t&&a?a:i||r},Dy=e=>e?e===`_singletons`?9999999:j(fj)?.collections?.findIndex(({name:t})=>t===e)??-1:-1,Oy=[],ky=e=>e.includes(`{{media_folder}}`)||e.includes(`{{public_folder}}`),Ay=(e,{globalMediaFolder:t,globalPublicFolder:n})=>e.trim().replace(`{{media_folder}}`,`/${t}`).replace(`{{public_folder}}`,`/${n}`).replace(`//`,`/`),jy=({collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r=!1,mediaFolder:i,publicFolder:a,baseFolder:o,globalFolders:s})=>{if(ky(i)){if(!s)return;i=Ay(i,s)}if(i=i.replace(/^\.(?:\/|$)/,``),a===void 0)a=i;else if(ky(a)){if(!s)return;a=Ay(a,s)}let c=!i.startsWith(`/`);return{collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r,internalPath:xd(c?o??``:i),internalSubPath:c?xd(i):void 0,publicPath:/^($|[.@])/.test(a)?a:`/${xd(a)}`,entryRelative:c,hasTemplateTags:/{{.+?}}/.test(i)}},My=e=>{if(e.mediaFolder===void 0)return;let t=jy(e);if(!t)return;let{globalMediaFolder:n,globalPublicFolder:r}=e.globalFolders??{};!t.entryRelative&&t.internalPath===n&&t.publicPath===r||Oy.push(t)},Ny=({collectionName:e,files:t,globalFolders:n})=>{zv(t).forEach(t=>{let{name:r,file:i,media_folder:a,public_folder:o}=t;My({collectionName:e,fileName:r,mediaFolder:a,publicFolder:o,baseFolder:kd(i).dirname,globalFolders:n})})},Py=({fieldMediaFolders:e,validCollections:t,globalFolders:n})=>{e.forEach(({fieldConfig:e,context:r})=>{let i=r.collection;(i.name===`_singletons`||t.some(e=>e.name===i.name))&&My({collectionName:i.name,fileName:r.collectionFile?.name,mediaFolder:e.media_folder,publicFolder:e.public_folder,baseFolder:`folder`in i?i.folder:void 0,typedKeyPath:r.typedKeyPath,isIndexFile:r.isIndexFile,globalFolders:n})})},Fy=(e,t=[])=>{Oy.length=0;let{media_folder:n,public_folder:r,collections:i,singletons:a}=e,o=n!==void 0,s=o?xd(n).replace(/^\.$/,``):``,c=o?r?`/${xd(r)}`.replace(/^\/@/,`@`):`/${s}`:``,l={collectionName:void 0,internalPath:void 0,internalSubPath:void 0,publicPath:void 0,entryRelative:!1,hasTemplateTags:!1},u=o?{...l,internalPath:s,publicPath:c}:void 0,d=o?{globalMediaFolder:s,globalPublicFolder:c}:void 0,f=yy({collections:i});f.forEach(e=>{let{name:t,files:n,folder:r,path:i,media_folder:a,public_folder:s}=e;My({collectionName:t,mediaFolder:o&&a===void 0&&i!==void 0?``:a,publicFolder:s,baseFolder:r,entryPath:i,globalFolders:d}),n?.length&&Ny({collectionName:t,files:n,globalFolders:d})}),a?.length&&Ny({collectionName:`_singletons`,files:a,globalFolders:d}),Py({fieldMediaFolders:t,validCollections:f,globalFolders:d}),Oy.sort((e,t)=>wd(e.internalPath,t.internalPath));let p=[];return u&&p.push(u),p.push(...Oy),p.length&&p.unshift(l),p},Iy=({collection:e,file:t})=>{let n=xd(t.file);if(!n.includes(`{{locale}}`))return{_default:n};let r=fy(e,t);return Object.fromEntries(r.allLocales.map(e=>[e,ey({_i18n:r,locale:e,path:n})]))},Ly=(e,t)=>{if(Rv(t))return{collectionName:e.name,fileName:t.name,filePathMap:Iy({collection:e,file:t})}},Ry=(e,t)=>wd(Object.values(e.filePathMap??{})[0],Object.values(t.filePathMap??{})[0]),zy=({collections:e})=>yy({collections:e,type:`entry`}).map(e=>{let{name:t,folder:n}=e,r=xd(n),{allLocales:i,structureMap:{i18nMultiRootFolder:a}}=fy(e);return{collectionName:t,folderPath:r,folderPathMap:Object.fromEntries(i.map(e=>[e,a?`${e}/${r}`:r]))}}).sort((e,t)=>wd(e.folderPath,t.folderPath)),By=({collections:e})=>yy({collections:e,type:`file`}).flatMap(e=>(e.files??[]).map(t=>Ly(e,t))).filter(e=>!!e).sort(Ry),Vy=({singletons:e})=>{let t=Array.isArray(e)?zv(e):[];if(!t.length)return[];let n={name:`_singletons`,files:t};return t.map(e=>Ly(n,e)).filter(e=>!!e).sort(Ry)},Hy=e=>[...zy(e),...By(e),...Vy(e)];
|
|
138
|
+
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=Cv(Sv(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=Cv(Sv(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function Ev(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new vv||null,prettyErrors:t}}function Dv(e,t={}){let{lineCounter:n,prettyErrors:r}=Ev(t),i=new Tv(n?.addNewLine),a=new iv(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new b_(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(S_(e,n)),o.warnings.forEach(S_(e,n))),o}function Ov(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Dv(e,n);if(!i)return null;if(i.warnings.forEach(e=>og(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function kv(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return rh(e)&&!r?e.toString(n):new __(e,r,n).toString(n)}var Av=Ft(!1),jv=Ft(),Mv=Ft([]),Nv=Ft([]),Pv=Ft([]),Fv={source:void 0,fileMap:new Map,regexFolders:[]},Iv=()=>{let e=j(Mv);if(e===Fv.source)return Fv;let t=new Map,n=[];return e.forEach(e=>{e.filePathMap?[...new Set(Object.values(e.filePathMap))].forEach(n=>{let r=t.get(n);r?r.push(e):t.set(n,[e])}):n.push([e,Ty(e.collectionName)?._file?.fullPathRegEx])}),Fv.source=e,Fv.fileMap=t,Fv.regexFolders=n,Fv},Lv=e=>{let{fileMap:t,regexFolders:n}=Iv();return[...t.get(e)??[],...n.filter(([,t])=>t?.test(e)).map(([e])=>e)].sort((e,t)=>(t.folderPath??``).localeCompare(e.folderPath??``))},Rv=e=>!(`divider`in e)&&typeof e.file==`string`&&Array.isArray(e.fields),zv=e=>e.filter(e=>Rv(e)),Bv=(e,t)=>{let n=typeof e==`string`?Ty(e):e;if(!(!n||!(`_fileMap`in n)))return n._fileMap[t]},Vv=e=>e.label||e.name,Hv=(e,t)=>`_fileMap`in e?Object.values(e._fileMap).filter(({_file:e,_i18n:n})=>e.fullPath===t.locales[n.defaultLocale]?.path):[],Uv=(e,t)=>{let n=j(Mv).find(({collectionName:n,fileName:r})=>n===e&&r===t);if(!n?.filePathMap)return;let r=new Set(Object.values(n.filePathMap));return j(Nv).find(e=>Object.values(e.locales).some(({path:e})=>r.has(e)))},Wv=(e,t)=>{if(e&&t){let{collections:n,singletons:r}=j(fj);if(e===`_singletons`)return Array.isArray(r)?zv(r).findIndex(e=>e.name===t):-1;let i=yy({collections:n}).find(({name:t})=>t===e);if(i&&`files`in i)return i.files.findIndex(({name:e})=>e===t)}return-1},Gv={slug_length:!1,yaml_quote:!1,uuid_read_only:!1,save_all_locales:!1,automatic_deployments:!1,multiple_folders_i18n_root:!1,omit_default_locale_from_filename:!1},vee={slug_length:"The `slug_length` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `slug.maxlength` option instead. ",yaml_quote:"The `yaml_quote` collection option is deprecated and will be removed in Sveltia CMS 1.0. Use the global `output.yaml.quote` option instead. `yaml_quote: true` is equivalent to `quote: double`. https://sveltiacms.app/en/docs/data-output#controlling-data-output",uuid_read_only:"The `read_only` option for the UUID field type is deprecated and will be removed in Sveltia CMS 1.0. Use the `readonly` option instead.",save_all_locales:"The `save_all_locales` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `initial_locales` option instead. `save_all_locales: false` is equivalent to `initial_locales: all`. https://sveltiacms.app/en/docs/i18n#disabling-non-default-locale-content",automatic_deployments:"The `automatic_deployments` backend option is deprecated and will be removed in Sveltia CMS 1.0. Use the `skip_ci` option instead. `automatic_deployments: false` is equivalent to `skip_ci: true`, and `automatic_deployments: true` is equivalent to `skip_ci: false`. https://sveltiacms.app/en/docs/deployments#disabling-automatic-deployments",multiple_folders_i18n_root:"The `multiple_folders_i18n_root` i18n structure is deprecated and will be removed in Sveltia CMS 1.0. Use the `multiple_root_folders` structure instead. https://sveltiacms.app/en/docs/i18n#multiple-root-folders",omit_default_locale_from_filename:"The `omit_default_locale_from_filename` i18n option is deprecated and will be removed in Sveltia CMS 1.0. Use the `omit_default_locale_from_file_path` option instead. https://sveltiacms.app/en/docs/i18n#managing-content-structure"},Kv=(e,t)=>{Gv[e]||(console.warn(t??vee[e]),Gv[e]=!0)},yee=()=>{try{return j(Z)(`index_file`)}catch{return`Index File`}},qv=e=>{if(!hy(e))return;let{index_file:t}=e;if(!t)return;let n=t===!0?{}:t;return{name:n.name??`_index`,label:n.label??yee(),icon:n.icon??`home`,fields:n.fields,editor:n.editor}},Jv=(e,t)=>{let n=qv(e);return n?t.slug===n.name:!1},Yv=e=>{let t;if(e!==`_default`)try{[t]=Intl.getCanonicalLocales(e)}catch{}return t},Xv=new Map,Zv=(e,{displayLocale:t=Yv(j(Am)??`en`)}={})=>{let n=Yv(e);if(!n)return;let r;t?(r=Xv.get(t),r||(r=new Intl.DisplayNames(t,{type:`language`}),Xv.set(t,r))):r=new Intl.DisplayNames(void 0,{type:`language`});try{return r.of(n)}catch(e){console.error(e);return}},Qv=new Map,$v=(e,t={})=>{let n={style:`narrow`,type:`conjunction`,...t},r=`${e}|${n.style}|${n.type}`,i=Qv.get(r);return i||(i=new Intl.ListFormat(Yv(e),n),Qv.set(r,i)),i},ey=({_i18n:e,locale:t,path:n})=>{let{defaultLocale:r,omitDefaultLocaleFromFilePath:i}=e;return i&&t===r&&(n=n.replace(/{{locale}}[./]/,``)),n.replaceAll(`{{locale}}`,t)},ty=/\\\{\\\{.+?\\\}\\\}/g,ny=new Map,ry=({extension:e,format:t})=>(t?ny.get(t)?.extension:void 0)||e||(t===`raw`?`txt`:t===`yaml`||t===`yml`?`yml`:t===`toml`?`toml`:t===`json`?`json`:`md`),bee=({extension:e,format:t})=>t||(e===`yaml`||e===`yml`?`yaml`:e===`toml`?`toml`:e===`json`?`json`:[`md`,`mkd`,`mkdn`,`mdwn`,`mdown`,`markdown`].includes(e)?`frontmatter`:`yaml-frontmatter`),xee=(e,t)=>e?`(?<subPath>${yd(e).replace(ty,`[^/]+?`)}${t?`|${t}`:``})`:`(?<subPath>[^/]+?)`,See=({extension:e,format:t,basePath:n,subPath:r,indexFileName:i,_i18n:a})=>{let{allLocales:o,defaultLocale:s,omitDefaultLocaleFromFilePath:c,structureMap:{i18nMultiFile:l,i18nMultiFolder:u,i18nMultiRootFolder:d}}=a,f=`(?<locale>${o.join(`|`)})`,p=o.filter(e=>e!==s).join(`|`),m=c?`(?:(?<locale>${p})\\/)?`:`${f}\\/`,h=c?`(?:\\.(?<locale>${p}))?`:`\\.${f}`,g=[`^`,d?m:``,n?`${yd(n)}\\/`:``,u?m:``,xee(r,i),l?h:``,`\\.`,ry({format:t,extension:e}),`$`].join(``);return new RegExp(g)},iy=({format:e,delimiter:t})=>{if(typeof t==`string`&&t.trim())return[t,t];if(Array.isArray(t)&&t.length===2)return t;if(e===`json-frontmatter`)return[`{`,`}`];if(e===`toml-frontmatter`)return[`+++`,`+++`];if(e===`yaml-frontmatter`)return[`---`,`---`]},ay=({rawCollection:e,file:t,_i18n:n})=>{let{folder:r,path:i,extension:a,format:o,frontmatter_delimiter:s,yaml_quote:c}=e,l=hy(e),u=t?.file?xd(t.file):void 0,d=u?kd(u).extension:a,f=t?.format??o,p=ry({format:f,extension:d}),m=bee({format:f,extension:p}),h=t?.frontmatter_delimiter??s,g=l?xd(r):void 0,_=l?qv(e)?.name:void 0;return c!==void 0&&Kv(`yaml_quote`),{extension:p,format:m,basePath:g,subPath:l?i:void 0,fullPathRegEx:g===void 0?void 0:See({extension:p,format:m,basePath:g,subPath:i,indexFileName:_,_i18n:n}),fullPath:u?ey({_i18n:n,locale:n.defaultLocale,path:u}):void 0,fmDelimiters:iy({format:m,delimiter:h}),yamlQuote:!!c}},oy={SINGLE_FILE:`single_file`,MULTIPLE_FILES:`multiple_files`,MULTIPLE_FOLDERS:`multiple_folders`,MULTIPLE_FOLDERS_I18N_ROOT:`multiple_folders_i18n_root`,MULTIPLE_ROOT_FOLDERS:`multiple_root_folders`},sy=`_default`,cy={key:`translationKey`,value:`{{slug}}`},ly={i18nEnabled:!1,saveAllLocales:!0,allLocales:[sy],initialLocales:[sy],defaultLocale:sy,structure:oy.SINGLE_FILE,structureMap:{i18nSingleFile:!1,i18nMultiFile:!1,i18nMultiFolder:!1,i18nMultiRootFolder:!1},canonicalSlug:{...cy},omitDefaultLocaleFromFilePath:!1,omitDefaultLocaleFromPreviewPath:!1},Cee=(e,t)=>{let n=j(fj);if(!u(n.i18n))return;let r=structuredClone(n.i18n);if(e.i18n||_y(e)){if(u(e.i18n)&&Object.assign(r,e.i18n),t)if(t.i18n)u(t.i18n)&&Object.assign(r,t.i18n);else return}else return;return r},wee=(e,t)=>t?t.file.includes(`{{locale}}`)?oy.MULTIPLE_FILES:oy.SINGLE_FILE:e,Tee=(e,t)=>({i18nSingleFile:e&&t===oy.SINGLE_FILE,i18nMultiFile:e&&t===oy.MULTIPLE_FILES,i18nMultiFolder:e&&t===oy.MULTIPLE_FOLDERS,i18nMultiRootFolder:e&&(t===oy.MULTIPLE_FOLDERS_I18N_ROOT||t===oy.MULTIPLE_ROOT_FOLDERS)}),uy=(e,t,n)=>e?n&&t.includes(n)?n:t[0]:sy,dy=(e,t,n)=>e===`all`?t:e===`default`?[n]:t.filter(t=>t===n||(Array.isArray(e)?e.includes(t):!0)),fy=(e,t)=>{let n=Cee(e,t),{structure:r=oy.SINGLE_FILE,locales:i=[],default_locale:a,initial_locales:o,save_all_locales:s=!0,canonical_slug:c={key:void 0,value:void 0},omit_default_locale_from_filename:l,omit_default_locale_from_file_path:u=l??!1,omit_default_locale_from_preview_path:d=!1}=n??{};n?.save_all_locales!==void 0&&Kv(`save_all_locales`),l!==void 0&&Kv(`omit_default_locale_from_filename`);let{key:f=cy.key,value:p=cy.value}=c,m=i.length>0,h=m?i:[sy],g=uy(m,h,a),_=wee(r,t),v=Tee(m,_),y=m?s===!0&&o===void 0:!0,b=dy(o,h,g),x=u&&(t?/{{locale}}[./]/.test(t.file):v.i18nMultiFile);return _===`multiple_folders_i18n_root`&&Kv(`multiple_folders_i18n_root`),{i18nEnabled:m,saveAllLocales:y,allLocales:h,defaultLocale:g,initialLocales:b,structure:_,structureMap:v,canonicalSlug:{key:f,value:p},omitDefaultLocaleFromFilePath:x,omitDefaultLocaleFromPreviewPath:d}},py=Ft(),my=new Map,hy=e=>typeof e.folder==`string`&&!Array.isArray(e.files),gy=e=>e.folder===void 0&&Array.isArray(e.files),_y=e=>gy(e)&&e.name===`_singletons`,vy=(e,{visible:t=void 0,type:n=void 0}={})=>`divider`in e||t&&e.hide?!1:n===`entry`?hy(e):n===`file`?gy(e):n===`singleton`?_y(e):hy(e)||gy(e),yy=({collections:e=j(fj)?.collections??[],visible:t,type:n}={})=>e.filter(e=>vy(e,{visible:t,type:n})),by=()=>yy({visible:!0})[0],xy=e=>{if(!(`folder`in e))return[];let{fields:t,thumbnail:n=!0}=e;return n===!1?[]:typeof n==`string`?[n]:Array.isArray(n)?n:t?.length?t.filter(({widget:e=`string`})=>[`image`,`file`].includes(e)).map(({name:e})=>e):[]},Sy=(e,t)=>({...e,_i18n:t,_type:`entry`,_file:ay({rawCollection:e,_i18n:t}),_thumbnailFieldNames:xy(e)}),Cy=(e,t,n)=>({...e,_i18n:t,_type:_y(e)?`singleton`:`file`,_fileMap:Object.fromEntries(n.filter(Rv).map(t=>{let n=fy(e,t),r=ay({rawCollection:e,file:t,_i18n:n});return[t.name,{...t,_file:r,_i18n:n}]}))}),wy=()=>{let e=j(fj)?.singletons;if(!Array.isArray(e))return;let t=zv(e).map(e=>({...e,file:xd(e.file)}));if(!t.length)return;let n={name:`_singletons`,files:t};return Cy(n,fy(n),t)},Ty=e=>{let t=my.get(e);if(t)return t;if(e===`_singletons`){let t=wy();return my.set(e,t),t}let n=yy().find(t=>t.name===e);if(!n){my.set(e,void 0);return}let r=hy(n)?n:void 0,i=gy(n)?n:void 0;if(!r&&!i){my.set(e,void 0);return}r?r.folder=xd(r.folder):i?.files.forEach(e=>{e.file&&=xd(e.file)});let a=fy(n),o=r?Sy(r,a):Cy(i,a,i.files);return my.set(e,o),o},Ey=(e,{useSingular:t=!1}={})=>{let{_type:n,name:r,label:i,label_singular:a}=e;return n===`singleton`?j(Z)(`files`):t&&a?a:i||r},Dy=e=>e?e===`_singletons`?9999999:j(fj)?.collections?.findIndex(({name:t})=>t===e)??-1:-1,Oy=[],ky=e=>e.includes(`{{media_folder}}`)||e.includes(`{{public_folder}}`),Ay=(e,{globalMediaFolder:t,globalPublicFolder:n})=>e.trim().replace(`{{media_folder}}`,`/${t}`).replace(`{{public_folder}}`,`/${n}`).replace(`//`,`/`),jy=({collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r=!1,mediaFolder:i,publicFolder:a,baseFolder:o,globalFolders:s})=>{if(ky(i)){if(!s)return;i=Ay(i,s)}if(a===void 0)a=i;else if(ky(a)){if(!s)return;a=Ay(a,s)}i=i.replace(/^\.(?:\/|$)/,``);let c=!i.startsWith(`/`);return{collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r,internalPath:xd(c?o??``:i),internalSubPath:c?xd(i):void 0,publicPath:/^($|[.@])/.test(a)?a:`/${xd(a)}`,entryRelative:c,hasTemplateTags:/{{.+?}}/.test(i)}},My=e=>{if(e.mediaFolder===void 0)return;let t=jy(e);if(!t)return;let{globalMediaFolder:n,globalPublicFolder:r}=e.globalFolders??{};!t.entryRelative&&t.internalPath===n&&t.publicPath===r||Oy.push(t)},Ny=({collectionName:e,files:t,globalFolders:n})=>{zv(t).forEach(t=>{let{name:r,file:i,media_folder:a,public_folder:o}=t;My({collectionName:e,fileName:r,mediaFolder:a,publicFolder:o,baseFolder:kd(i).dirname,globalFolders:n})})},Py=({fieldMediaFolders:e,validCollections:t,globalFolders:n})=>{e.forEach(({fieldConfig:e,context:r})=>{let i=r.collection;(i.name===`_singletons`||t.some(e=>e.name===i.name))&&My({collectionName:i.name,fileName:r.collectionFile?.name,mediaFolder:e.media_folder,publicFolder:e.public_folder,baseFolder:`folder`in i?i.folder:void 0,typedKeyPath:r.typedKeyPath,isIndexFile:r.isIndexFile,globalFolders:n})})},Fy=(e,t=[])=>{Oy.length=0;let{media_folder:n,public_folder:r,collections:i,singletons:a}=e,o=n!==void 0,s=o?xd(n).replace(/^\.$/,``):``,c=o?r?`/${xd(r)}`.replace(/^\/@/,`@`):`/${s}`:``,l={collectionName:void 0,internalPath:void 0,internalSubPath:void 0,publicPath:void 0,entryRelative:!1,hasTemplateTags:!1},u=o?{...l,internalPath:s,publicPath:c}:void 0,d=o?{globalMediaFolder:s,globalPublicFolder:c}:void 0,f=yy({collections:i});f.forEach(e=>{let{name:t,files:n,folder:r,path:i,media_folder:a,public_folder:s}=e;My({collectionName:t,mediaFolder:o&&a===void 0&&i!==void 0?``:a,publicFolder:s,baseFolder:r,entryPath:i,globalFolders:d}),n?.length&&Ny({collectionName:t,files:n,globalFolders:d})}),a?.length&&Ny({collectionName:`_singletons`,files:a,globalFolders:d}),Py({fieldMediaFolders:t,validCollections:f,globalFolders:d}),Oy.sort((e,t)=>wd(e.internalPath,t.internalPath));let p=[];return u&&p.push(u),p.push(...Oy),p.length&&p.unshift(l),p},Iy=({collection:e,file:t})=>{let n=xd(t.file);if(!n.includes(`{{locale}}`))return{_default:n};let r=fy(e,t);return Object.fromEntries(r.allLocales.map(e=>[e,ey({_i18n:r,locale:e,path:n})]))},Ly=(e,t)=>{if(Rv(t))return{collectionName:e.name,fileName:t.name,filePathMap:Iy({collection:e,file:t})}},Ry=(e,t)=>wd(Object.values(e.filePathMap??{})[0],Object.values(t.filePathMap??{})[0]),zy=({collections:e})=>yy({collections:e,type:`entry`}).map(e=>{let{name:t,folder:n}=e,r=xd(n),{allLocales:i,structureMap:{i18nMultiRootFolder:a}}=fy(e);return{collectionName:t,folderPath:r,folderPathMap:Object.fromEntries(i.map(e=>[e,a?`${e}/${r}`:r]))}}).sort((e,t)=>wd(e.folderPath,t.folderPath)),By=({collections:e})=>yy({collections:e,type:`file`}).flatMap(e=>(e.files??[]).map(t=>Ly(e,t))).filter(e=>!!e).sort(Ry),Vy=({singletons:e})=>{let t=Array.isArray(e)?zv(e):[];if(!t.length)return[];let n={name:`_singletons`,files:t};return t.map(e=>Ly(n,e)).filter(e=>!!e).sort(Ry)},Hy=e=>[...zy(e),...By(e),...Vy(e)];
|
|
139
139
|
/*!
|
|
140
140
|
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
141
141
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -362,7 +362,7 @@ var hb=/^[a-z0-9-_]+$/i;function gb(e){let t=typeof e;if(t===`object`){if(Array.
|
|
|
362
362
|
`).map(e=>e.startsWith(`*.`)&&e.includes(`filter=lfs`)?e.split(` `)[0].slice(2).toLowerCase():``).filter(Boolean)??[]);var sx=o(((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(){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 ee||!(!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 ee(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var ee=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(T.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 T},_.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 T.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=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.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 T.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=T.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[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.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 T.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=T.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 T.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 T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.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 T.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 T.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 T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.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=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.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:T.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 T.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=ee.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,ee,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}))})),cx=o(((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(){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;if(this.day=e.match(/\d+/)[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,``)===e&&(this.day=n)}],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)}}}))})),lx=o(((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(){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)}}}))})),ux=o(((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(){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)}}}))})),dx=l(sx(),1),fx=l(cx(),1),px=l(lx(),1),mx=l(ux(),1),hx=/^\d{4}-[01]\d-[0-3]\d$/,gx=/T00:00(?::00)?(?:\.000)?Z$/,_x={year:`numeric`,month:`short`,day:`numeric`},vx={hour:`numeric`,minute:`numeric`,hour12:!0},yx={..._x,...vx},bx=(e,t)=>e.toLocaleString(t??void 0,yx);dx.default.extend(fx.default),dx.default.extend(px.default),dx.default.extend(mx.default);var xx=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}},Sx=e=>e instanceof Date&&!Number.isNaN(e.getTime()),Cx=e=>e?dx.default.utc:dx.default,wx=(e,t)=>{let{format:n,timeOnly:r,utc:i}=xx(t);if(!e)return;let a;if(n){let t=Cx(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),Sx(a))return a;console.error(`Invalid Date`,e)},Tx=e=>{let{dateOnly:t,timeOnly:n,utc:r}=xx(e),{year:i,month:a,day:o,hour:s,minute:c}=qd({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}`},Ex=(e,t,n)=>{let{format:r,dateOnly:i,timeOnly:a,utc:o}=xx(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=Cx(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}`}},Dx=(e,t)=>{let{dateOnly:n,timeOnly:r,utc:i}=xx(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=wx(e,t);if(!o)return``;let{year:s,month:c,day:l,hour:u,minute:d}=qd({date:o,timeZone:i?`UTC`:void 0}),f=`${s}-${c}-${l}`,p=`${u}:${d}`;return n?f:r?p:`${f}T${p}`},Ox=({locale:e,fieldConfig:t,currentValue:n})=>{let{format:r,dateOnly:i,timeOnly:a,utc:o}=xx(t);if(typeof n!=`string`||!n.trim())return``;if(r){let e=Cx(o),t=e(n,r);return!t.isValid()&&(t=e(n),!t.isValid())?(console.error(`Invalid Date`,n),``):t.format(r)}let s=wx(n,t),c=Yv(e);return Sx(s)?a?s.toLocaleTimeString(c,vx):i?s.toLocaleDateString(c,{..._x,timeZone:o||hx.test(n)||gx.test(n)?`UTC`:void 0}):s.toLocaleString(c,{..._x,...vx,timeZone:o?`UTC`:void 0,timeZoneName:o?void 0:`short`}):``};dx.default.extend(fx.default),dx.default.extend(px.default),dx.default.extend(mx.default);var kx=/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,Ax=/^default\('(?<defaultValue>.+?)'\)$/,jx=/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,Mx=/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/,Nx=e=>String(e).toUpperCase(),Px=e=>String(e).toLowerCase(),Fx=(e,{format:t,timeZone:n},r)=>{let i=String(e),{dateOnly:a,utc:o}=xx(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$/)?dx.default.utc:dx.default)(i);return s.isValid()?s.format(t):``},Ix=(e,{defaultValue:t})=>e?String(e):t,Lx=(e,{truthyValue:t,falsyValue:n})=>e?t:n,Rx=(e,{max:t,ellipsis:n=`âŠ`})=>bd(String(e),Number(t),{ellipsis:n}),zx=({fieldConfig:e,value:t,transformation:n})=>{if(n===`upper`)return Nx(t);if(n===`lower`)return Px(t);if(n===`slugify`)return yj(String(t));let r=n.match(kx);if(r?.groups)return Fx(t,r.groups,e??{});let i=n.match(Ax);if(i?.groups)return Ix(t,i.groups);let a=n.match(jx);if(a?.groups)return Lx(t,a.groups);let o=n.match(Mx);return o?.groups?Rx(t,o.groups):String(t)},Bx=({fieldConfig:e,value:t,transformations:n})=>(n.forEach(n=>{t=zx({fieldConfig:e,value:t,transformation:n})}),t),Vx=[`file`,`image`],Hx=[...Vx,`relation`,`select`],Ux=[...Hx,`datetime`,`keyvalue`,`list`,`number`],Wx=(e=0)=>new Promise(t=>{globalThis.setTimeout(()=>{t(void 0)},e)}),Gx=`https://console.cloudinary.com`,Kx=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],qx=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],Jx=e=>{let t=j(fj);if(e??=t,e?.media_libraries?.cloudinary)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},Yx=new Map,Xx=e=>{let t=e?JSON.stringify(e):`global`,n=Yx.get(t);if(n)return n;let r=Jx()??{config:{}},i=Jx(e)??{config:{}},a={...r,...i,config:{...r.config,...i.config}};return Yx.set(t,a),a},Eee=()=>{let{cloud_name:e,api_key:t}=Jx()?.config??{};return{cloudName:e,apiKey:t}},Dee={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:()=>{let{cloudName:e,apiKey:t}=Eee();return!!(e&&t)}},Zx=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)},Qx=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(``)},Oee=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?1:0).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(`&`),m=Object.entries(n).map(([e,t])=>`${e.toLowerCase()}:${t.trim()}`).sort().join(`
|
|
363
363
|
`),h=Object.keys(n).map(e=>e.toLowerCase()).sort().join(`;`),g=[e,f,p,`${m}\n`,h,r].join(`
|
|
364
364
|
`),_=`AWS4-HMAC-SHA256`,v=`${d}/${o}/${s}/aws4_request`,y=[_,u,v,await Qx(g)].join(`
|
|
365
|
-
`),b=await Zx(await Zx(await Zx(await Zx(await Zx(`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(` `)},$x=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 Qx(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await Oee({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}})},kee=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)},Aee=({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}`,eS=(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=Aee({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:ix(t)}})},tS=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 $x({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=kee(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 Wx(50)}return eS(c?u.filter(e=>ix(e.Key)===c):u,e)},nS=async(e,t,n)=>{let r=await tS(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},rS=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 $x({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 Wx(50)}return eS(l,t)},iS=(e=j(fj))=>e?.media_libraries?.aws_s3??(e?.media_library?.name===`aws_s3`?e?.media_library:void 0),jee={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:()=>{let e=iS();return!!(e?.access_key_id&&e?.bucket&&e?.region)},list:async e=>{let{fieldConfig:t}=e,n=iS(t)??iS();return n?tS(n,e):Promise.reject(Error(`Amazon S3 configuration is not available`))},search:async(e,t)=>{let{fieldConfig:n}=t,r=iS(n)??iS();return r?nS(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},upload:async(e,t)=>{let{fieldConfig:n}=t,r=iS(n)??iS();return r?rS(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))}},aS=(e=j(fj))=>e?.media_libraries?.cloudflare_r2??(e?.media_library?.name===`cloudflare_r2`?e?.media_library:void 0),Mee={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:()=>{let e=aS();return!!(e?.access_key_id&&e?.bucket&&e?.account_id)},list:async e=>{let{fieldConfig:t}=e,n=aS(t)??aS();return n?tS({...n,region:`auto`,endpoint:`https://${n.account_id}.r2.cloudflarestorage.com`},e):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},search:async(e,t)=>{let{fieldConfig:n}=t,r=aS(n)??aS();return r?nS(e,{...r,region:`auto`,endpoint:`https://${r.account_id}.r2.cloudflarestorage.com`},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},upload:async(e,t)=>{let{fieldConfig:n}=t,r=aS(n)??aS();return r?rS(e,{...r,region:`auto`,endpoint:`https://${r.account_id}.r2.cloudflarestorage.com`},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))}},oS=(e=j(fj))=>e?.media_libraries?.digitalocean_spaces??(e?.media_library?.name===`digitalocean_spaces`?e?.media_library:void 0),Nee={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:()=>{let e=oS();return!!(e?.access_key_id&&e?.bucket&&e?.region)},list:async e=>{let{fieldConfig:t}=e,n=oS(t)??oS();return n?tS({...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`))},search:async(e,t)=>{let{fieldConfig:n}=t,r=oS(n)??oS();return r?nS(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`))},upload:async(e,t)=>{let{fieldConfig:n}=t,r=oS(n)??oS();return r?rS(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`))}},Pee=o(((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}})),Fee=o(((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}})),Iee=o(((e,t)=>{var n=Pee(),r=Fee();t.exports=n.bind(null,r)})),Lee=l(o(((e,t)=>{var n=Iee(),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,``)}}))(),1),sS=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),cS=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},Ree=e=>decodeURIComponent(e),lS=new Map,uS=e=>{let t=j(Am),n=lS.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),lS.set(t,n));let r=1e3,i=r*1e3,a=i*1e3,o=a*1e3;return e<r?j(Z)(`file_size_units.b`,{values:{size:n.format(e)}}):e<i?j(Z)(`file_size_units.kb`,{values:{size:n.format(e/r)}}):e<a?j(Z)(`file_size_units.mb`,{values:{size:n.format(e/i)}}):e<o?j(Z)(`file_size_units.gb`,{values:{size:n.format(e/a)}}):j(Z)(`file_size_units.tb`,{values:{size:n.format(e/o)}})},dS=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=kd(e),i=RegExp(`^${yd(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>wd(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},fS=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,Lee.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=kd(r);r=`${yj(e)}${t?`.${t}`:``}`}return dS(r,n)},pS=e=>e.filter(Boolean).join(`/`),mS=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}),pS(t)},hS=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,gS=async e=>{let t=await hS(e).arrayBuffer();return vd(new Blob([`blob ${t.byteLength}\0`,t]))},_S=(e=j(fj))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),vS=()=>_S()?.config?.publicKey,zee=()=>!!vS(),yS=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=_S(t)??_S()??{};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`}})},bS=async(e,{maxPages:t=10,filter:n}={})=>{let r=vS();if(!r)return Promise.reject(Error(`Uploadcare public key is not configured`));let{kind:i,fieldConfig:a,apiKey:o}=e,s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${r}:${o}`},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:r}=t;if(i===`image`&&(r=r.filter(e=>e.is_image)),n&&(r=r.filter(n)),l.push(...r),u=t.next,!u)break;await Wx(50)}return yS(l,{fieldConfig:a})},xS=async e=>bS(e),SS=async(e,t)=>{let n=e.toLowerCase();return bS(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},CS=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(``)},wS={aws_s3:jee,cloudflare_r2:Mee,cloudinary:Dee,digitalocean_spaces:Nee,uploadcare:{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:zee,list:xS,search:SS,upload:async(e,t)=>{if(e.length===0)return[];let n=vS();if(!n)return Promise.reject(Error(`Uploadcare public key is not configured`));let{fieldConfig:r,apiKey:i}=t;if(!i)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await CS(i,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,n),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append(fS(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 yS(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:r})}}},TS=Object.keys(wS),ES=`0.151.0`,DS={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.42.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/ui":`^0.35.6`,"@sveltia/utils":`^0.9.3`,"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.7.1`,leaflet:`^1.9.4`,lexical:`^0.42.0`,marked:`^17.0.5`,"marked-bidi":`^1.0.14`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^5.5.207`,qrcode:`^1.5.4`,react:`^19.2.4`,"react-dom":`^19.2.4`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.6.1`,"svelte-i18n":`^4.0.1`,svgo:`^4.0.1`,"terra-draw":`^1.26.0`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.2`,yaml:`^2.8.3`},OS=`modulepreload`,kS=function(e){return`/`+e},AS={},jS=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=kS(t,n),t in AS)return;AS[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:OS,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}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)})},MS=e=>{let t=`https://unpkg.com/${e}`,n=DS[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},NS=async(e,t)=>jS(()=>import(`${MS(e)}/${t}`),[]),PS=[`avif`,`gif`,`jpeg`,`png`,`webp`],FS=PS.map(e=>`image/${e}`),IS=/\b(?:avif|gif|jpe?g|png|webp)$/i,LS=[`svg`],RS=[`image/svg+xml`],zS=/\b(?:svg)$/i;[...PS,...LS];var BS=[...FS,...RS],VS=[`webp`],HS={},US=async e=>{if(e in HS)return HS[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return HS[e]=r,r},WS=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await US(t)&&VS.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await NS(`@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})},GS=({width:e,height:t},{width:n=e,height:r=t,fit:i=`scale-down`}={})=>{let a={scale:1,width:e,height:t};if(e===r&&t===r)return a;let o=e>t,s=e<r||t<r,c=1,l=0,u=0;if(i===`scale-down`){if(s)return a;i=`contain`}return i===`contain`&&(o?(n>r?(c=n/e,l=n):(c=r/e,l=r),u=t*c):(n>r?(c=r/t,u=r):(c=n/t,u=n),l=e*c)),{scale:c,width:l,height:u}},KS=(e,t,n)=>{let{scale:r,width:i,height:a}=GS(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}},qS=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})},JS=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)})},YS=async e=>e.type.startsWith(`video/`)?JS({blob:e}):qS({blob:e}),XS=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 YS(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return KS(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),WS(l,{format:t,quality:n})},ZS=async e=>{let t=await e.text();try{let{optimize:n}=await NS(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e},QS=MS(`pdfjs-dist`),$S=`${QS}/build/pdf.min.mjs`,eC=`${QS}/build/pdf.worker.min.mjs`,tC={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${QS}/cmaps/`,iccUrl:`${QS}/iccs/`,standardFontDataUrl:`${QS}/standard_fonts/`,wasmUrl:`${QS}/wasm/`},nC,rC=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!nC)try{nC=await jS(()=>import($S),[]),nC.GlobalWorkerOptions.workerSrc=eC}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 nC.getDocument({...tC,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=KS(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 WS(s,{format:t,quality:n})},iC=new Set,aC=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(iC.has(o)&&t<=25)return await Wx(200),aC(e,t+1);iC.add(o);let n=await j(CA)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:Yb.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),iC.delete(o),s},oC=async e=>(e.blobURL||await aC(e),e.blobURL),sC=void 0,cC=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(sC===void 0){let{databaseName:e}=j(CA)?.repository??{};sC=e?new Rb(e,`asset-thumbnails`):null}let r=await sC?.get(e.sha);if(!r){if(t)return;let i=await aC(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await rC(i,a):await XS(i,a),await sC?.set(e.sha,r)}return URL.createObjectURL(r)},lC=(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:Gd(e.path).find(({collectionName:e})=>e!==void 0)??j(zd);if(a){if(t){let t=kd(e.path).dirname,n=r?kd(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===pS([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=j(fj),l=o?e.path.replace(sS(e.folder.internalPath??``,e=>{let t=e.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return t?`(?<${t}>[^/]+)`:yd(e)}),i?.replaceAll(/{{(.+?)}}/g,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=cS(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},uC=e=>{if(wS.cloudinary?.isEnabled?.()){let t=Xx(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},dC=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(Yj(e)){let t=uC(i);if(t)return`${t}/${e}`}let s=Xj({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await cC(s):await oC(s))??lC(s)};dx.default.extend(fx.default),dx.default.extend(px.default),dx.default.extend(mx.default);var fC=/{{(?:year|month|day|hour|minute|second)}}/,pC=e=>Lv(Object.values(e.locales)[0].path).map(({collectionName:e})=>Ty(e)).filter(e=>!!e),mC=({dateFieldName:e,fields:t,content:n})=>{let r=e?t.find(({widget:t,name:n})=>t===`datetime`&&n===e):t.find(({widget:e})=>e===`datetime`),i=r?n[r.name]:void 0;if(!r||!i)return;let a=r,{picker_utc:o=!1}=a,s=wx(i,a);if(Sx(s))return qd({date:s,timeZone:o?`UTC`:void 0})},hC=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=j(fj)??{},{slug:o,path:s,content:c}=e.locales[t]??{},{preview_path:l,preview_path_date_field:u,fields:d=[],_i18n:{defaultLocale:f,omitDefaultLocaleFromPreviewPath:p}}=r??n;if(!i||!a||!s||!c||!l)return;let m=Jv(n,e),h=(m?qv(n):void 0)?.fields??d,g;if(fC.test(l)&&(g=mC({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=Mj(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},gC=(e,t)=>`${j(CA)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`,_C=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,vC=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(_C)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}},yC=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,bC=Ft([]),xC=e=>{let t=Ty(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=vC(i?.pattern),s=i?.value===void 0?[]:Array.isArray(i.value)?i.value:[i.value],c;if(n===`entry`){let n=t._file?.fullPathRegEx;c=n?e=>n.test(Object.values(e.locales)[0]?.path??``):t=>pC(t).some(({name:t})=>t===e)}else{let t=new Set(j(Mv).filter(({collectionName:t})=>t===e).flatMap(({filePathMap:e})=>e?Object.values(e):[]));c=e=>{let n=Object.values(e.locales)[0]?.path;return!!n&&t.has(n)}}return j(Nv).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=bD({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},SC=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=hD({collectionName:n,fileName:l,valueMap:i,keyPath:a,isIndexFile:s});if(!u)return!1;let d=e.startsWith(`blob:`),f={entry:r,collectionName:n,fileName:l},{widget:p=`string`}=u;if([`image`,`file`].includes(p)){let n=d?await dC({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(yC)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await dC({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},CC=async(e,{entries:t=j(Nv),newURL:n=``}={})=>{let r=j(fj)?._baseURL,i=r&&!e.startsWith(`blob:`)?e.replace(r,``):e,a=i.startsWith(`blob:`),o=!!n,s=await Promise.all(t.map(async e=>{let{locales:t}=e,r=pC(e),s=!1;for(let{content:c}of Object.values(t)){for(let[t,l]of Object.entries(c))if(!(typeof l!=`string`||!l)&&!(!a&&!l.includes(i))){for(let a of r){let r={assetURL:i,newURL:n,collectionName:a.name,entry:e,content:c,keyPath:t,value:l,isIndexFile:Jv(a,e)},u=Hv(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>SC({...r,collectionFile:e})))).includes(!0):await SC({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},wC=e=>{let t=qv(e);return t?!xC(e.name).some(({slug:e})=>e===t.name):!1},{entries:TC,setPrototypeOf:EC,isFrozen:DC,getPrototypeOf:OC,getOwnPropertyDescriptor:kC}=Object,{freeze:AC,seal:jC,create:MC}=Object,{apply:NC,construct:PC}=typeof Reflect<`u`&&Reflect;AC||=function(e){return e},jC||=function(e){return e},NC||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},PC||=function(e){return new e(...[...arguments].slice(1))};var FC=YC(Array.prototype.forEach),IC=YC(Array.prototype.lastIndexOf),LC=YC(Array.prototype.pop),RC=YC(Array.prototype.push),zC=YC(Array.prototype.splice),BC=YC(String.prototype.toLowerCase),VC=YC(String.prototype.toString),HC=YC(String.prototype.match),UC=YC(String.prototype.replace),WC=YC(String.prototype.indexOf),GC=YC(String.prototype.trim),KC=YC(Object.prototype.hasOwnProperty),qC=YC(RegExp.prototype.test),JC=XC(TypeError);function YC(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return NC(e,t,n)}}function XC(e){return function(){return PC(e,[...arguments])}}function ZC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:BC;EC&&EC(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(DC(t)||(t[r]=e),i=e)}e[i]=!0}return e}function QC(e){for(let t=0;t<e.length;t++)KC(e,t)||(e[t]=null);return e}function $C(e){let t=MC(null);for(let[n,r]of TC(e))KC(e,n)&&(Array.isArray(r)?t[n]=QC(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=$C(r):t[n]=r);return t}function ew(e,t){for(;e!==null;){let n=kC(e,t);if(n){if(n.get)return YC(n.get);if(typeof n.value==`function`)return YC(n.value)}e=OC(e)}function n(){return null}return n}var tw=AC(`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(`.`)),nw=AC(`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(`.`)),rw=AC([`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`]),iw=AC([`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`]),aw=AC(`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(`.`)),ow=AC([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),sw=AC([`#text`]),cw=AC(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.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.slot`.split(`.`)),lw=AC(`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(`.`)),uw=AC(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.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(`.`)),dw=AC([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),fw=jC(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pw=jC(/<%[\w\W]*|[\w\W]*%>/gm),mw=jC(/\$\{[\w\W]*/gm),hw=jC(/^data-[\-\w.\u00B7-\uFFFF]+$/),gw=jC(/^aria-[\-\w]+$/),_w=jC(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vw=jC(/^(?:\w+script|data):/i),yw=jC(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bw=jC(/^html$/i),xw=jC(/^[a-z][.\w]*(-[.\w]+)+$/i),Sw=Object.freeze({__proto__:null,ARIA_ATTR:gw,ATTR_WHITESPACE:yw,CUSTOM_ELEMENT:xw,DATA_ATTR:hw,DOCTYPE_NAME:bw,ERB_EXPR:pw,IS_ALLOWED_URI:_w,IS_SCRIPT_OR_DATA:vw,MUSTACHE_EXPR:fw,TMPLIT_EXPR:mw}),Cw={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ww=function(){return typeof window>`u`?null:window},Tw=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}},Ew=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Dw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ww(),t=e=>Dw(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Cw.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=ew(m,`cloneNode`),g=ew(m,`remove`),_=ew(m,`nextSibling`),v=ew(m,`childNodes`),y=ew(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:T}=n,{importNode:ee}=r,te=Ew();t.isSupported=typeof TC==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ne,ERB_EXPR:re,TMPLIT_EXPR:ie,DATA_ATTR:E,ARIA_ATTR:ae,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:se,CUSTOM_ELEMENT:D}=Sw,{IS_ALLOWED_URI:ce}=Sw,le=null,ue=ZC({},[...tw,...nw,...rw,...aw,...sw]),de=null,fe=ZC({},[...cw,...lw,...uw,...dw]),pe=Object.seal(MC(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}})),me=null,he=null,ge=Object.seal(MC(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),_e=!0,ve=!0,ye=!1,be=!0,xe=!1,Se=!0,Ce=!1,we=!1,Te=!1,Ee=!1,De=!1,Oe=!1,ke=!0,Ae=!1,je=!0,Me=!1,Ne={},Pe=null,Fe=ZC({},[`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`]),Ie=null,Le=ZC({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Re=null,ze=ZC({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Be=`http://www.w3.org/1998/Math/MathML`,Ve=`http://www.w3.org/2000/svg`,He=`http://www.w3.org/1999/xhtml`,Ue=He,We=!1,Ge=null,Ke=ZC({},[Be,Ve,He],VC),qe=ZC({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Je=ZC({},[`annotation-xml`]),Ye=ZC({},[`title`,`style`,`font`,`a`,`script`]),Xe=null,Ze=[`application/xhtml+xml`,`text/html`],Qe=null,$e=null,et=n.createElement(`form`),tt=function(e){return e instanceof RegExp||e instanceof Function},nt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($e&&$e===e)){if((!e||typeof e!=`object`)&&(e={}),e=$C(e),Xe=Ze.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Qe=Xe===`application/xhtml+xml`?VC:BC,le=KC(e,`ALLOWED_TAGS`)?ZC({},e.ALLOWED_TAGS,Qe):ue,de=KC(e,`ALLOWED_ATTR`)?ZC({},e.ALLOWED_ATTR,Qe):fe,Ge=KC(e,`ALLOWED_NAMESPACES`)?ZC({},e.ALLOWED_NAMESPACES,VC):Ke,Re=KC(e,`ADD_URI_SAFE_ATTR`)?ZC($C(ze),e.ADD_URI_SAFE_ATTR,Qe):ze,Ie=KC(e,`ADD_DATA_URI_TAGS`)?ZC($C(Le),e.ADD_DATA_URI_TAGS,Qe):Le,Pe=KC(e,`FORBID_CONTENTS`)?ZC({},e.FORBID_CONTENTS,Qe):Fe,me=KC(e,`FORBID_TAGS`)?ZC({},e.FORBID_TAGS,Qe):$C({}),he=KC(e,`FORBID_ATTR`)?ZC({},e.FORBID_ATTR,Qe):$C({}),Ne=KC(e,`USE_PROFILES`)?e.USE_PROFILES:!1,_e=e.ALLOW_ARIA_ATTR!==!1,ve=e.ALLOW_DATA_ATTR!==!1,ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,be=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xe=e.SAFE_FOR_TEMPLATES||!1,Se=e.SAFE_FOR_XML!==!1,Ce=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,ke=e.SANITIZE_DOM!==!1,Ae=e.SANITIZE_NAMED_PROPS||!1,je=e.KEEP_CONTENT!==!1,Me=e.IN_PLACE||!1,ce=e.ALLOWED_URI_REGEXP||_w,Ue=e.NAMESPACE||He,qe=e.MATHML_TEXT_INTEGRATION_POINTS||qe,Je=e.HTML_INTEGRATION_POINTS||Je,pe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(pe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(pe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(pe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(ve=!1),De&&(Ee=!0),Ne&&(le=ZC({},sw),de=MC(null),Ne.html===!0&&(ZC(le,tw),ZC(de,cw)),Ne.svg===!0&&(ZC(le,nw),ZC(de,lw),ZC(de,dw)),Ne.svgFilters===!0&&(ZC(le,rw),ZC(de,lw),ZC(de,dw)),Ne.mathMl===!0&&(ZC(le,aw),ZC(de,uw),ZC(de,dw))),KC(e,`ADD_TAGS`)||(ge.tagCheck=null),KC(e,`ADD_ATTR`)||(ge.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?ge.tagCheck=e.ADD_TAGS:(le===ue&&(le=$C(le)),ZC(le,e.ADD_TAGS,Qe))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?ge.attributeCheck=e.ADD_ATTR:(de===fe&&(de=$C(de)),ZC(de,e.ADD_ATTR,Qe))),e.ADD_URI_SAFE_ATTR&&ZC(Re,e.ADD_URI_SAFE_ATTR,Qe),e.FORBID_CONTENTS&&(Pe===Fe&&(Pe=$C(Pe)),ZC(Pe,e.FORBID_CONTENTS,Qe)),e.ADD_FORBID_CONTENTS&&(Pe===Fe&&(Pe=$C(Pe)),ZC(Pe,e.ADD_FORBID_CONTENTS,Qe)),je&&(le[`#text`]=!0),Ce&&ZC(le,[`html`,`head`,`body`]),le.table&&(ZC(le,[`tbody`]),delete me.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw JC(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw JC(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=Tw(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));AC&&AC(e),$e=e}},O=ZC({},[...nw,...rw,...iw]),rt=ZC({},[...aw,...ow]),it=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Ue,tagName:`template`});let n=BC(e.tagName),r=BC(t.tagName);return Ge[e.namespaceURI]?e.namespaceURI===Ve?t.namespaceURI===He?n===`svg`:t.namespaceURI===Be?n===`svg`&&(r===`annotation-xml`||qe[r]):!!O[n]:e.namespaceURI===Be?t.namespaceURI===He?n===`math`:t.namespaceURI===Ve?n===`math`&&Je[r]:!!rt[n]:e.namespaceURI===He?t.namespaceURI===Ve&&!Je[r]||t.namespaceURI===Be&&!qe[r]?!1:!rt[n]&&(Ye[n]||!O[n]):!!(Xe===`application/xhtml+xml`&&Ge[e.namespaceURI]):!1},at=function(e){RC(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},ot=function(e,n){try{RC(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{RC(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ee||De)try{at(n)}catch{}else try{n.setAttribute(e,``)}catch{}},st=function(e){let t=null,r=null;if(Te)e=`<remove></remove>`+e;else{let t=HC(e,/^[\r\n\t ]+/);r=t&&t[0]}Xe===`application/xhtml+xml`&&Ue===He&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(Ue===He)try{t=new f().parseFromString(i,Xe)}catch{}if(!t||!t.documentElement){t=S.createDocument(Ue,`template`,null);try{t.documentElement.innerHTML=We?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ue===He?T.call(t,Ce?`html`:`body`)[0]:Ce?t.documentElement:a},ct=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},lt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},ut=function(e){return typeof s==`function`&&e instanceof s};function dt(e,n,r){FC(e,e=>{e.call(t,n,r,$e)})}let ft=function(e){let n=null;if(dt(te.beforeSanitizeElements,e,null),lt(e))return at(e),!0;let r=Qe(e.nodeName);if(dt(te.uponSanitizeElement,e,{tagName:r,allowedTags:le}),Se&&e.hasChildNodes()&&!ut(e.firstElementChild)&&qC(/<[/\w!]/g,e.innerHTML)&&qC(/<[/\w!]/g,e.textContent)||e.nodeType===Cw.progressingInstruction||Se&&e.nodeType===Cw.comment&&qC(/<[/\w]/g,e.data))return at(e),!0;if(!(ge.tagCheck instanceof Function&&ge.tagCheck(r))&&(!le[r]||me[r])){if(!me[r]&&mt(r)&&(pe.tagNameCheck instanceof RegExp&&qC(pe.tagNameCheck,r)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(r)))return!1;if(je&&!Pe[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return at(e),!0}return e instanceof c&&!it(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&qC(/<\/no(script|embed|frames)/i,e.innerHTML)?(at(e),!0):(xe&&e.nodeType===Cw.text&&(n=e.textContent,FC([ne,re,ie],e=>{n=UC(n,e,` `)}),e.textContent!==n&&(RC(t.removed,{element:e.cloneNode()}),e.textContent=n)),dt(te.afterSanitizeElements,e,null),!1)},pt=function(e,t,r){if(he[t]||ke&&(t===`id`||t===`name`)&&(r in n||r in et))return!1;if(!(ve&&!he[t]&&qC(E,t))&&!(_e&&qC(ae,t))&&!(ge.attributeCheck instanceof Function&&ge.attributeCheck(t,e))){if(!de[t]||he[t]){if(!(mt(e)&&(pe.tagNameCheck instanceof RegExp&&qC(pe.tagNameCheck,e)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(e))&&(pe.attributeNameCheck instanceof RegExp&&qC(pe.attributeNameCheck,t)||pe.attributeNameCheck instanceof Function&&pe.attributeNameCheck(t,e))||t===`is`&&pe.allowCustomizedBuiltInElements&&(pe.tagNameCheck instanceof RegExp&&qC(pe.tagNameCheck,r)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(r))))return!1}else if(!Re[t]&&!qC(ce,UC(r,se,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&WC(r,`data:`)===0&&Ie[e])&&!(ye&&!qC(oe,UC(r,se,``)))&&r)return!1}return!0},mt=function(e){return e!==`annotation-xml`&&HC(e,D)},ht=function(e){dt(te.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||lt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:de,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=Qe(a),l=s,u=a===`value`?l:GC(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,dt(te.uponSanitizeAttribute,e,r),u=r.attrValue,Ae&&(c===`id`||c===`name`)&&(ot(a,e),u=`user-content-`+u),Se&&qC(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){ot(a,e);continue}if(c===`attributename`&&HC(u,`href`)){ot(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){ot(a,e);continue}if(!be&&qC(/\/>/i,u)){ot(a,e);continue}xe&&FC([ne,re,ie],e=>{u=UC(u,e,` `)});let d=Qe(e.nodeName);if(!pt(d,c,u)){ot(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),lt(e)?at(e):LC(t.removed)}catch{ot(a,e)}}dt(te.afterSanitizeAttributes,e,null)},gt=function e(t){let n=null,r=ct(t);for(dt(te.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)dt(te.uponSanitizeShadowNode,n,null),ft(n),ht(n),n.content instanceof a&&e(n.content);dt(te.afterSanitizeShadowDOM,t,null)};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(We=!e,We&&(e=`<!-->`),typeof e!=`string`&&!ut(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw JC(`dirty is not a string, aborting`)}else throw JC(`toString is not a function`);if(!t.isSupported)return e;if(we||nt(n),t.removed=[],typeof e==`string`&&(Me=!1),Me){if(e.nodeName){let t=Qe(e.nodeName);if(!le[t]||me[t])throw JC(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=st(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Cw.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!Ee&&!xe&&!Ce&&e.indexOf(`<`)===-1)return b&&Oe?b.createHTML(e):e;if(i=st(e),!i)return Ee?null:Oe?x:``}i&&Te&&at(i.firstChild);let u=ct(Me?e:i);for(;c=u.nextNode();)ft(c),ht(c),c.content instanceof a&>(c.content);if(Me)return e;if(Ee){if(De)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(de.shadowroot||de.shadowrootmode)&&(l=ee.call(r,l,!0)),l}let d=Ce?i.outerHTML:i.innerHTML;return Ce&&le[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&qC(bw,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
365
|
+
`),b=await Zx(await Zx(await Zx(await Zx(await Zx(`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(` `)},$x=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 Qx(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await Oee({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}})},kee=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)},Aee=({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}`,eS=(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=Aee({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:ix(t)}})},tS=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 $x({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=kee(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 Wx(50)}return eS(c?u.filter(e=>ix(e.Key)===c):u,e)},nS=async(e,t,n)=>{let r=await tS(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},rS=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 $x({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 Wx(50)}return eS(l,t)},iS=(e=j(fj))=>e?.media_libraries?.aws_s3??(e?.media_library?.name===`aws_s3`?e?.media_library:void 0),jee={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:()=>{let e=iS();return!!(e?.access_key_id&&e?.bucket&&e?.region)},list:async e=>{let{fieldConfig:t}=e,n=iS(t)??iS();return n?tS(n,e):Promise.reject(Error(`Amazon S3 configuration is not available`))},search:async(e,t)=>{let{fieldConfig:n}=t,r=iS(n)??iS();return r?nS(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},upload:async(e,t)=>{let{fieldConfig:n}=t,r=iS(n)??iS();return r?rS(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))}},aS=(e=j(fj))=>e?.media_libraries?.cloudflare_r2??(e?.media_library?.name===`cloudflare_r2`?e?.media_library:void 0),Mee={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:()=>{let e=aS();return!!(e?.access_key_id&&e?.bucket&&e?.account_id)},list:async e=>{let{fieldConfig:t}=e,n=aS(t)??aS();return n?tS({...n,region:`auto`,endpoint:`https://${n.account_id}.r2.cloudflarestorage.com`},e):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},search:async(e,t)=>{let{fieldConfig:n}=t,r=aS(n)??aS();return r?nS(e,{...r,region:`auto`,endpoint:`https://${r.account_id}.r2.cloudflarestorage.com`},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},upload:async(e,t)=>{let{fieldConfig:n}=t,r=aS(n)??aS();return r?rS(e,{...r,region:`auto`,endpoint:`https://${r.account_id}.r2.cloudflarestorage.com`},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))}},oS=(e=j(fj))=>e?.media_libraries?.digitalocean_spaces??(e?.media_library?.name===`digitalocean_spaces`?e?.media_library:void 0),Nee={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:()=>{let e=oS();return!!(e?.access_key_id&&e?.bucket&&e?.region)},list:async e=>{let{fieldConfig:t}=e,n=oS(t)??oS();return n?tS({...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`))},search:async(e,t)=>{let{fieldConfig:n}=t,r=oS(n)??oS();return r?nS(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`))},upload:async(e,t)=>{let{fieldConfig:n}=t,r=oS(n)??oS();return r?rS(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`))}},Pee=o(((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}})),Fee=o(((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}})),Iee=o(((e,t)=>{var n=Pee(),r=Fee();t.exports=n.bind(null,r)})),Lee=l(o(((e,t)=>{var n=Iee(),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,``)}}))(),1),sS=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),cS=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},Ree=e=>decodeURIComponent(e),lS=new Map,uS=e=>{let t=j(Am),n=lS.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),lS.set(t,n));let r=1e3,i=r*1e3,a=i*1e3,o=a*1e3;return e<r?j(Z)(`file_size_units.b`,{values:{size:n.format(e)}}):e<i?j(Z)(`file_size_units.kb`,{values:{size:n.format(e/r)}}):e<a?j(Z)(`file_size_units.mb`,{values:{size:n.format(e/i)}}):e<o?j(Z)(`file_size_units.gb`,{values:{size:n.format(e/a)}}):j(Z)(`file_size_units.tb`,{values:{size:n.format(e/o)}})},dS=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=kd(e),i=RegExp(`^${yd(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>wd(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},fS=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,Lee.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=kd(r);r=`${yj(e)}${t?`.${t}`:``}`}return dS(r,n)},pS=e=>e.filter(Boolean).join(`/`),mS=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}),pS(t)},hS=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,gS=async e=>{let t=await hS(e).arrayBuffer();return vd(new Blob([`blob ${t.byteLength}\0`,t]))},_S=(e=j(fj))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),vS=()=>_S()?.config?.publicKey,zee=()=>!!vS(),yS=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=_S(t)??_S()??{};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`}})},bS=async(e,{maxPages:t=10,filter:n}={})=>{let r=vS();if(!r)return Promise.reject(Error(`Uploadcare public key is not configured`));let{kind:i,fieldConfig:a,apiKey:o}=e,s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${r}:${o}`},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:r}=t;if(i===`image`&&(r=r.filter(e=>e.is_image)),n&&(r=r.filter(n)),l.push(...r),u=t.next,!u)break;await Wx(50)}return yS(l,{fieldConfig:a})},xS=async e=>bS(e),SS=async(e,t)=>{let n=e.toLowerCase();return bS(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},CS=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(``)},wS={aws_s3:jee,cloudflare_r2:Mee,cloudinary:Dee,digitalocean_spaces:Nee,uploadcare:{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:zee,list:xS,search:SS,upload:async(e,t)=>{if(e.length===0)return[];let n=vS();if(!n)return Promise.reject(Error(`Uploadcare public key is not configured`));let{fieldConfig:r,apiKey:i}=t;if(!i)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await CS(i,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,n),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append(fS(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 yS(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:r})}}},TS=Object.keys(wS),ES=`0.151.2`,DS={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.42.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/ui":`^0.35.6`,"@sveltia/utils":`^0.9.3`,"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.7.1`,leaflet:`^1.9.4`,lexical:`^0.42.0`,marked:`^17.0.5`,"marked-bidi":`^1.0.14`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^5.5.207`,qrcode:`^1.5.4`,react:`^19.2.4`,"react-dom":`^19.2.4`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.6.1`,"svelte-i18n":`^4.0.1`,svgo:`^4.0.1`,"terra-draw":`^1.26.0`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.2`,yaml:`^2.8.3`},OS=`modulepreload`,kS=function(e){return`/`+e},AS={},jS=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=kS(t,n),t in AS)return;AS[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:OS,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}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)})},MS=e=>{let t=`https://unpkg.com/${e}`,n=DS[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},NS=async(e,t)=>jS(()=>import(`${MS(e)}/${t}`),[]),PS=[`avif`,`gif`,`jpeg`,`png`,`webp`],FS=PS.map(e=>`image/${e}`),IS=/\b(?:avif|gif|jpe?g|png|webp)$/i,LS=[`svg`],RS=[`image/svg+xml`],zS=/\b(?:svg)$/i;[...PS,...LS];var BS=[...FS,...RS],VS=[`webp`],HS={},US=async e=>{if(e in HS)return HS[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return HS[e]=r,r},WS=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await US(t)&&VS.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await NS(`@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})},GS=({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}},KS=(e,t,n)=>{let{scale:r,width:i,height:a}=GS(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}},qS=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})},JS=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)})},YS=async e=>e.type.startsWith(`video/`)?JS({blob:e}):qS({blob:e}),XS=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 YS(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return KS(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),WS(l,{format:t,quality:n})},ZS=async e=>{let t=await e.text();try{let{optimize:n}=await NS(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e},QS=MS(`pdfjs-dist`),$S=`${QS}/build/pdf.min.mjs`,eC=`${QS}/build/pdf.worker.min.mjs`,tC={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${QS}/cmaps/`,iccUrl:`${QS}/iccs/`,standardFontDataUrl:`${QS}/standard_fonts/`,wasmUrl:`${QS}/wasm/`},nC,rC=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!nC)try{nC=await jS(()=>import($S),[]),nC.GlobalWorkerOptions.workerSrc=eC}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 nC.getDocument({...tC,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=KS(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 WS(s,{format:t,quality:n})},iC=new Set,aC=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(iC.has(o)&&t<=25)return await Wx(200),aC(e,t+1);iC.add(o);let n=await j(CA)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:Yb.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),iC.delete(o),s},oC=async e=>(e.blobURL||await aC(e),e.blobURL),sC=void 0,cC=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(sC===void 0){let{databaseName:e}=j(CA)?.repository??{};sC=e?new Rb(e,`asset-thumbnails`):null}let r=await sC?.get(e.sha);if(!r){if(t)return;let i=await aC(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await rC(i,a):await XS(i,a),await sC?.set(e.sha,r)}return URL.createObjectURL(r)},lC=(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:Gd(e.path).find(({collectionName:e})=>e!==void 0)??j(zd);if(a){if(t){let t=kd(e.path).dirname,n=r?kd(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===pS([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=j(fj),l=o?e.path.replace(sS(e.folder.internalPath??``,e=>{let t=e.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return t?`(?<${t}>[^/]+)`:yd(e)}),i?.replaceAll(/{{(.+?)}}/g,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=cS(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},uC=e=>{if(wS.cloudinary?.isEnabled?.()){let t=Xx(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},dC=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(Yj(e)){let t=uC(i);if(t)return`${t}/${e}`}let s=Xj({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await cC(s):await oC(s))??lC(s)};dx.default.extend(fx.default),dx.default.extend(px.default),dx.default.extend(mx.default);var fC=/{{(?:year|month|day|hour|minute|second)}}/,pC=e=>Lv(Object.values(e.locales)[0].path).map(({collectionName:e})=>Ty(e)).filter(e=>!!e),mC=({dateFieldName:e,fields:t,content:n})=>{let r=e?t.find(({widget:t,name:n})=>t===`datetime`&&n===e):t.find(({widget:e})=>e===`datetime`),i=r?n[r.name]:void 0;if(!r||!i)return;let a=r,{picker_utc:o=!1}=a,s=wx(i,a);if(Sx(s))return qd({date:s,timeZone:o?`UTC`:void 0})},hC=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=j(fj)??{},{slug:o,path:s,content:c}=e.locales[t]??{},{preview_path:l,preview_path_date_field:u,fields:d=[],_i18n:{defaultLocale:f,omitDefaultLocaleFromPreviewPath:p}}=r??n;if(!i||!a||!s||!c||!l)return;let m=Jv(n,e),h=(m?qv(n):void 0)?.fields??d,g;if(fC.test(l)&&(g=mC({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=Mj(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},gC=(e,t)=>`${j(CA)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`,_C=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,vC=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(_C)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}},yC=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,bC=Ft([]),xC=e=>{let t=Ty(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=vC(i?.pattern),s=i?.value===void 0?[]:Array.isArray(i.value)?i.value:[i.value],c;if(n===`entry`){let n=t._file?.fullPathRegEx;c=n?e=>n.test(Object.values(e.locales)[0]?.path??``):t=>pC(t).some(({name:t})=>t===e)}else{let t=new Set(j(Mv).filter(({collectionName:t})=>t===e).flatMap(({filePathMap:e})=>e?Object.values(e):[]));c=e=>{let n=Object.values(e.locales)[0]?.path;return!!n&&t.has(n)}}return j(Nv).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=bD({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},SC=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=hD({collectionName:n,fileName:l,valueMap:i,keyPath:a,isIndexFile:s});if(!u)return!1;let d=e.startsWith(`blob:`),f={entry:r,collectionName:n,fileName:l},{widget:p=`string`}=u;if([`image`,`file`].includes(p)){let n=d?await dC({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(yC)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await dC({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},CC=async(e,{entries:t=j(Nv),newURL:n=``}={})=>{let r=j(fj)?._baseURL,i=r&&!e.startsWith(`blob:`)?e.replace(r,``):e,a=i.startsWith(`blob:`),o=!!n,s=await Promise.all(t.map(async e=>{let{locales:t}=e,r=pC(e),s=!1;for(let{content:c}of Object.values(t)){for(let[t,l]of Object.entries(c))if(!(typeof l!=`string`||!l)&&!(!a&&!l.includes(i))){for(let a of r){let r={assetURL:i,newURL:n,collectionName:a.name,entry:e,content:c,keyPath:t,value:l,isIndexFile:Jv(a,e)},u=Hv(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>SC({...r,collectionFile:e})))).includes(!0):await SC({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},wC=e=>{let t=qv(e);return t?!xC(e.name).some(({slug:e})=>e===t.name):!1},{entries:TC,setPrototypeOf:EC,isFrozen:DC,getPrototypeOf:OC,getOwnPropertyDescriptor:kC}=Object,{freeze:AC,seal:jC,create:MC}=Object,{apply:NC,construct:PC}=typeof Reflect<`u`&&Reflect;AC||=function(e){return e},jC||=function(e){return e},NC||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},PC||=function(e){return new e(...[...arguments].slice(1))};var FC=YC(Array.prototype.forEach),IC=YC(Array.prototype.lastIndexOf),LC=YC(Array.prototype.pop),RC=YC(Array.prototype.push),zC=YC(Array.prototype.splice),BC=YC(String.prototype.toLowerCase),VC=YC(String.prototype.toString),HC=YC(String.prototype.match),UC=YC(String.prototype.replace),WC=YC(String.prototype.indexOf),GC=YC(String.prototype.trim),KC=YC(Object.prototype.hasOwnProperty),qC=YC(RegExp.prototype.test),JC=XC(TypeError);function YC(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return NC(e,t,n)}}function XC(e){return function(){return PC(e,[...arguments])}}function ZC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:BC;EC&&EC(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(DC(t)||(t[r]=e),i=e)}e[i]=!0}return e}function QC(e){for(let t=0;t<e.length;t++)KC(e,t)||(e[t]=null);return e}function $C(e){let t=MC(null);for(let[n,r]of TC(e))KC(e,n)&&(Array.isArray(r)?t[n]=QC(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=$C(r):t[n]=r);return t}function ew(e,t){for(;e!==null;){let n=kC(e,t);if(n){if(n.get)return YC(n.get);if(typeof n.value==`function`)return YC(n.value)}e=OC(e)}function n(){return null}return n}var tw=AC(`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(`.`)),nw=AC(`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(`.`)),rw=AC([`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`]),iw=AC([`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`]),aw=AC(`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(`.`)),ow=AC([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),sw=AC([`#text`]),cw=AC(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.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.slot`.split(`.`)),lw=AC(`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(`.`)),uw=AC(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.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(`.`)),dw=AC([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),fw=jC(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pw=jC(/<%[\w\W]*|[\w\W]*%>/gm),mw=jC(/\$\{[\w\W]*/gm),hw=jC(/^data-[\-\w.\u00B7-\uFFFF]+$/),gw=jC(/^aria-[\-\w]+$/),_w=jC(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vw=jC(/^(?:\w+script|data):/i),yw=jC(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bw=jC(/^html$/i),xw=jC(/^[a-z][.\w]*(-[.\w]+)+$/i),Sw=Object.freeze({__proto__:null,ARIA_ATTR:gw,ATTR_WHITESPACE:yw,CUSTOM_ELEMENT:xw,DATA_ATTR:hw,DOCTYPE_NAME:bw,ERB_EXPR:pw,IS_ALLOWED_URI:_w,IS_SCRIPT_OR_DATA:vw,MUSTACHE_EXPR:fw,TMPLIT_EXPR:mw}),Cw={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ww=function(){return typeof window>`u`?null:window},Tw=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}},Ew=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Dw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ww(),t=e=>Dw(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Cw.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=ew(m,`cloneNode`),g=ew(m,`remove`),_=ew(m,`nextSibling`),v=ew(m,`childNodes`),y=ew(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:T}=n,{importNode:ee}=r,te=Ew();t.isSupported=typeof TC==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ne,ERB_EXPR:re,TMPLIT_EXPR:ie,DATA_ATTR:E,ARIA_ATTR:ae,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:se,CUSTOM_ELEMENT:D}=Sw,{IS_ALLOWED_URI:ce}=Sw,le=null,ue=ZC({},[...tw,...nw,...rw,...aw,...sw]),de=null,fe=ZC({},[...cw,...lw,...uw,...dw]),pe=Object.seal(MC(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}})),me=null,he=null,ge=Object.seal(MC(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),_e=!0,ve=!0,ye=!1,be=!0,xe=!1,Se=!0,Ce=!1,we=!1,Te=!1,Ee=!1,De=!1,Oe=!1,ke=!0,Ae=!1,je=!0,Me=!1,Ne={},Pe=null,Fe=ZC({},[`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`]),Ie=null,Le=ZC({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Re=null,ze=ZC({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Be=`http://www.w3.org/1998/Math/MathML`,Ve=`http://www.w3.org/2000/svg`,He=`http://www.w3.org/1999/xhtml`,Ue=He,We=!1,Ge=null,Ke=ZC({},[Be,Ve,He],VC),qe=ZC({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Je=ZC({},[`annotation-xml`]),Ye=ZC({},[`title`,`style`,`font`,`a`,`script`]),Xe=null,Ze=[`application/xhtml+xml`,`text/html`],Qe=null,$e=null,et=n.createElement(`form`),tt=function(e){return e instanceof RegExp||e instanceof Function},nt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!($e&&$e===e)){if((!e||typeof e!=`object`)&&(e={}),e=$C(e),Xe=Ze.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Qe=Xe===`application/xhtml+xml`?VC:BC,le=KC(e,`ALLOWED_TAGS`)?ZC({},e.ALLOWED_TAGS,Qe):ue,de=KC(e,`ALLOWED_ATTR`)?ZC({},e.ALLOWED_ATTR,Qe):fe,Ge=KC(e,`ALLOWED_NAMESPACES`)?ZC({},e.ALLOWED_NAMESPACES,VC):Ke,Re=KC(e,`ADD_URI_SAFE_ATTR`)?ZC($C(ze),e.ADD_URI_SAFE_ATTR,Qe):ze,Ie=KC(e,`ADD_DATA_URI_TAGS`)?ZC($C(Le),e.ADD_DATA_URI_TAGS,Qe):Le,Pe=KC(e,`FORBID_CONTENTS`)?ZC({},e.FORBID_CONTENTS,Qe):Fe,me=KC(e,`FORBID_TAGS`)?ZC({},e.FORBID_TAGS,Qe):$C({}),he=KC(e,`FORBID_ATTR`)?ZC({},e.FORBID_ATTR,Qe):$C({}),Ne=KC(e,`USE_PROFILES`)?e.USE_PROFILES:!1,_e=e.ALLOW_ARIA_ATTR!==!1,ve=e.ALLOW_DATA_ATTR!==!1,ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,be=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xe=e.SAFE_FOR_TEMPLATES||!1,Se=e.SAFE_FOR_XML!==!1,Ce=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,Oe=e.RETURN_TRUSTED_TYPE||!1,Te=e.FORCE_BODY||!1,ke=e.SANITIZE_DOM!==!1,Ae=e.SANITIZE_NAMED_PROPS||!1,je=e.KEEP_CONTENT!==!1,Me=e.IN_PLACE||!1,ce=e.ALLOWED_URI_REGEXP||_w,Ue=e.NAMESPACE||He,qe=e.MATHML_TEXT_INTEGRATION_POINTS||qe,Je=e.HTML_INTEGRATION_POINTS||Je,pe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(pe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(pe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(pe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(ve=!1),De&&(Ee=!0),Ne&&(le=ZC({},sw),de=MC(null),Ne.html===!0&&(ZC(le,tw),ZC(de,cw)),Ne.svg===!0&&(ZC(le,nw),ZC(de,lw),ZC(de,dw)),Ne.svgFilters===!0&&(ZC(le,rw),ZC(de,lw),ZC(de,dw)),Ne.mathMl===!0&&(ZC(le,aw),ZC(de,uw),ZC(de,dw))),KC(e,`ADD_TAGS`)||(ge.tagCheck=null),KC(e,`ADD_ATTR`)||(ge.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?ge.tagCheck=e.ADD_TAGS:(le===ue&&(le=$C(le)),ZC(le,e.ADD_TAGS,Qe))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?ge.attributeCheck=e.ADD_ATTR:(de===fe&&(de=$C(de)),ZC(de,e.ADD_ATTR,Qe))),e.ADD_URI_SAFE_ATTR&&ZC(Re,e.ADD_URI_SAFE_ATTR,Qe),e.FORBID_CONTENTS&&(Pe===Fe&&(Pe=$C(Pe)),ZC(Pe,e.FORBID_CONTENTS,Qe)),e.ADD_FORBID_CONTENTS&&(Pe===Fe&&(Pe=$C(Pe)),ZC(Pe,e.ADD_FORBID_CONTENTS,Qe)),je&&(le[`#text`]=!0),Ce&&ZC(le,[`html`,`head`,`body`]),le.table&&(ZC(le,[`tbody`]),delete me.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw JC(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw JC(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=Tw(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));AC&&AC(e),$e=e}},O=ZC({},[...nw,...rw,...iw]),rt=ZC({},[...aw,...ow]),it=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Ue,tagName:`template`});let n=BC(e.tagName),r=BC(t.tagName);return Ge[e.namespaceURI]?e.namespaceURI===Ve?t.namespaceURI===He?n===`svg`:t.namespaceURI===Be?n===`svg`&&(r===`annotation-xml`||qe[r]):!!O[n]:e.namespaceURI===Be?t.namespaceURI===He?n===`math`:t.namespaceURI===Ve?n===`math`&&Je[r]:!!rt[n]:e.namespaceURI===He?t.namespaceURI===Ve&&!Je[r]||t.namespaceURI===Be&&!qe[r]?!1:!rt[n]&&(Ye[n]||!O[n]):!!(Xe===`application/xhtml+xml`&&Ge[e.namespaceURI]):!1},at=function(e){RC(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},ot=function(e,n){try{RC(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{RC(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ee||De)try{at(n)}catch{}else try{n.setAttribute(e,``)}catch{}},st=function(e){let t=null,r=null;if(Te)e=`<remove></remove>`+e;else{let t=HC(e,/^[\r\n\t ]+/);r=t&&t[0]}Xe===`application/xhtml+xml`&&Ue===He&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(Ue===He)try{t=new f().parseFromString(i,Xe)}catch{}if(!t||!t.documentElement){t=S.createDocument(Ue,`template`,null);try{t.documentElement.innerHTML=We?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ue===He?T.call(t,Ce?`html`:`body`)[0]:Ce?t.documentElement:a},ct=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},lt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},ut=function(e){return typeof s==`function`&&e instanceof s};function dt(e,n,r){FC(e,e=>{e.call(t,n,r,$e)})}let ft=function(e){let n=null;if(dt(te.beforeSanitizeElements,e,null),lt(e))return at(e),!0;let r=Qe(e.nodeName);if(dt(te.uponSanitizeElement,e,{tagName:r,allowedTags:le}),Se&&e.hasChildNodes()&&!ut(e.firstElementChild)&&qC(/<[/\w!]/g,e.innerHTML)&&qC(/<[/\w!]/g,e.textContent)||e.nodeType===Cw.progressingInstruction||Se&&e.nodeType===Cw.comment&&qC(/<[/\w]/g,e.data))return at(e),!0;if(!(ge.tagCheck instanceof Function&&ge.tagCheck(r))&&(!le[r]||me[r])){if(!me[r]&&mt(r)&&(pe.tagNameCheck instanceof RegExp&&qC(pe.tagNameCheck,r)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(r)))return!1;if(je&&!Pe[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return at(e),!0}return e instanceof c&&!it(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&qC(/<\/no(script|embed|frames)/i,e.innerHTML)?(at(e),!0):(xe&&e.nodeType===Cw.text&&(n=e.textContent,FC([ne,re,ie],e=>{n=UC(n,e,` `)}),e.textContent!==n&&(RC(t.removed,{element:e.cloneNode()}),e.textContent=n)),dt(te.afterSanitizeElements,e,null),!1)},pt=function(e,t,r){if(he[t]||ke&&(t===`id`||t===`name`)&&(r in n||r in et))return!1;if(!(ve&&!he[t]&&qC(E,t))&&!(_e&&qC(ae,t))&&!(ge.attributeCheck instanceof Function&&ge.attributeCheck(t,e))){if(!de[t]||he[t]){if(!(mt(e)&&(pe.tagNameCheck instanceof RegExp&&qC(pe.tagNameCheck,e)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(e))&&(pe.attributeNameCheck instanceof RegExp&&qC(pe.attributeNameCheck,t)||pe.attributeNameCheck instanceof Function&&pe.attributeNameCheck(t,e))||t===`is`&&pe.allowCustomizedBuiltInElements&&(pe.tagNameCheck instanceof RegExp&&qC(pe.tagNameCheck,r)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(r))))return!1}else if(!Re[t]&&!qC(ce,UC(r,se,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&WC(r,`data:`)===0&&Ie[e])&&!(ye&&!qC(oe,UC(r,se,``)))&&r)return!1}return!0},mt=function(e){return e!==`annotation-xml`&&HC(e,D)},ht=function(e){dt(te.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||lt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:de,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=Qe(a),l=s,u=a===`value`?l:GC(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,dt(te.uponSanitizeAttribute,e,r),u=r.attrValue,Ae&&(c===`id`||c===`name`)&&(ot(a,e),u=`user-content-`+u),Se&&qC(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){ot(a,e);continue}if(c===`attributename`&&HC(u,`href`)){ot(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){ot(a,e);continue}if(!be&&qC(/\/>/i,u)){ot(a,e);continue}xe&&FC([ne,re,ie],e=>{u=UC(u,e,` `)});let d=Qe(e.nodeName);if(!pt(d,c,u)){ot(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),lt(e)?at(e):LC(t.removed)}catch{ot(a,e)}}dt(te.afterSanitizeAttributes,e,null)},gt=function e(t){let n=null,r=ct(t);for(dt(te.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)dt(te.uponSanitizeShadowNode,n,null),ft(n),ht(n),n.content instanceof a&&e(n.content);dt(te.afterSanitizeShadowDOM,t,null)};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(We=!e,We&&(e=`<!-->`),typeof e!=`string`&&!ut(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw JC(`dirty is not a string, aborting`)}else throw JC(`toString is not a function`);if(!t.isSupported)return e;if(we||nt(n),t.removed=[],typeof e==`string`&&(Me=!1),Me){if(e.nodeName){let t=Qe(e.nodeName);if(!le[t]||me[t])throw JC(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=st(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Cw.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!Ee&&!xe&&!Ce&&e.indexOf(`<`)===-1)return b&&Oe?b.createHTML(e):e;if(i=st(e),!i)return Ee?null:Oe?x:``}i&&Te&&at(i.firstChild);let u=ct(Me?e:i);for(;c=u.nextNode();)ft(c),ht(c),c.content instanceof a&>(c.content);if(Me)return e;if(Ee){if(De)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(de.shadowroot||de.shadowrootmode)&&(l=ee.call(r,l,!0)),l}let d=Ce?i.outerHTML:i.innerHTML;return Ce&&le[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&qC(bw,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
366
366
|
`+d),xe&&FC([ne,re,ie],e=>{d=UC(d,e,` `)}),b&&Oe?b.createHTML(d):d},t.setConfig=function(){nt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),we=!0},t.clearConfig=function(){$e=null,we=!1},t.isValidAttribute=function(e,t,n){return $e||nt({}),pt(Qe(e),Qe(t),n)},t.addHook=function(e,t){typeof t==`function`&&RC(te[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=IC(te[e],t);return n===-1?void 0:zC(te[e],n,1)[0]}return LC(te[e])},t.removeHooks=function(e){te[e]=[]},t.removeAllHooks=function(){te=Ew()},t}var Ow=Dw(),kw=Ow.sanitize.bind(Ow);Ow.isSupported,Ow.addHook.bind(Ow),Ow.removeHook.bind(Ow),Ow.removeHooks.bind(Ow),Ow.removeAllHooks.bind(Ow),Ow.setConfig.bind(Ow),Ow.clearConfig.bind(Ow),Ow.isValidAttribute.bind(Ow),Ow.version,Ow.removed;function Aw(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var jw=Aw();function Mw(e){jw=e}var Nw={exec:()=>null};function Pw(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(Iw.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Fw=(()=>{try{return!0}catch{return!1}})(),Iw={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Lw=/^(?:[ \t]*(?:\n|$))+/,Rw=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,zw=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Bw=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Vw=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Hw=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Uw=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ww=Pw(Uw).replace(/bull/g,Hw).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Gw=Pw(Uw).replace(/bull/g,Hw).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Kw=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,qw=/^[^\n]+/,Jw=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Yw=Pw(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Jw).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Xw=Pw(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Hw).getRegex(),Zw=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Qw=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,$w=Pw(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Qw).replace(`tag`,Zw).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),eT=Pw(Kw).replace(`hr`,Bw).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Zw).getRegex(),tT={blockquote:Pw(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,eT).getRegex(),code:Rw,def:Yw,fences:zw,heading:Vw,hr:Bw,html:$w,lheading:Ww,list:Xw,newline:Lw,paragraph:eT,table:Nw,text:qw},nT=Pw(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Bw).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Zw).getRegex(),rT={...tT,lheading:Gw,table:nT,paragraph:Pw(Kw).replace(`hr`,Bw).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,nT).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,Zw).getRegex()},iT={...tT,html:Pw(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Qw).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Nw,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Pw(Kw).replace(`hr`,Bw).replace(`heading`,` *#{1,6} *[^
|
|
367
367
|
]`).replace(`lheading`,Ww).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},aT=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,oT=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,sT=/^( {2,}|\\)\n(?!\s*$)/,cT=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,lT=/[\p{P}\p{S}]/u,uT=/[\s\p{P}\p{S}]/u,dT=/[^\s\p{P}\p{S}]/u,fT=Pw(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,uT).getRegex(),pT=/(?!~)[\p{P}\p{S}]/u,mT=/(?!~)[\s\p{P}\p{S}]/u,hT=/(?:[^\s\p{P}\p{S}]|~)/u,gT=Pw(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Fw?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),_T=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,vT=Pw(_T,`u`).replace(/punct/g,lT).getRegex(),yT=Pw(_T,`u`).replace(/punct/g,pT).getRegex(),bT=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,xT=Pw(bT,`gu`).replace(/notPunctSpace/g,dT).replace(/punctSpace/g,uT).replace(/punct/g,lT).getRegex(),ST=Pw(bT,`gu`).replace(/notPunctSpace/g,hT).replace(/punctSpace/g,mT).replace(/punct/g,pT).getRegex(),CT=Pw(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,dT).replace(/punctSpace/g,uT).replace(/punct/g,lT).getRegex(),wT=Pw(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,lT).getRegex(),TT=Pw(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,dT).replace(/punctSpace/g,uT).replace(/punct/g,lT).getRegex(),ET=Pw(/\\(punct)/,`gu`).replace(/punct/g,lT).getRegex(),DT=Pw(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),OT=Pw(Qw).replace(`(?:-->|$)`,`-->`).getRegex(),kT=Pw(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,OT).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),AT=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,jT=Pw(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,AT).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),MT=Pw(/^!?\[(label)\]\[(ref)\]/).replace(`label`,AT).replace(`ref`,Jw).getRegex(),NT=Pw(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Jw).getRegex(),PT=Pw(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,MT).replace(`nolink`,NT).getRegex(),FT=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,IT={_backpedal:Nw,anyPunctuation:ET,autolink:DT,blockSkip:gT,br:sT,code:oT,del:Nw,delLDelim:Nw,delRDelim:Nw,emStrongLDelim:vT,emStrongRDelimAst:xT,emStrongRDelimUnd:CT,escape:aT,link:jT,nolink:NT,punctuation:fT,reflink:MT,reflinkSearch:PT,tag:kT,text:cT,url:Nw},LT={...IT,link:Pw(/^!?\[(label)\]\((.*?)\)/).replace(`label`,AT).getRegex(),reflink:Pw(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,AT).getRegex()},RT={...IT,emStrongRDelimAst:ST,emStrongLDelim:yT,delLDelim:wT,delRDelim:TT,url:Pw(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,FT).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Pw(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,FT).getRegex()},zT={...RT,br:Pw(sT).replace(`{2,}`,`*`).getRegex(),text:Pw(RT.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},BT={normal:tT,gfm:rT,pedantic:iT},VT={normal:IT,gfm:RT,breaks:zT,pedantic:LT},HT={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},UT=e=>HT[e];function WT(e,t){if(t){if(Iw.escapeTest.test(e))return e.replace(Iw.escapeReplace,UT)}else if(Iw.escapeTestNoEncode.test(e))return e.replace(Iw.escapeReplaceNoEncode,UT);return e}function GT(e){try{e=encodeURI(e).replace(Iw.percentDecode,`%`)}catch{return null}return e}function KT(e,t){let n=e.replace(Iw.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Iw.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(Iw.slashPipe,`|`);return n}function qT(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 JT(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 YT(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 XT(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 ZT(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
368
368
|
`).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(`
|
|
@@ -564,7 +564,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
`,dA=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=Qk,r=n?20:100,i=[...e],a=[];for(;;){let e=await gO(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]]))},fA=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)},pA=async e=>{jv.set(0);let t=window.setInterval(()=>{jv.update((e=0)=>e+1)},e.length/10),n=await dA(e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),uA);return window.clearInterval(t),jv.set(void 0),fA({fetchingFiles:e,blobs:n})},mA=async()=>{await eA(),await ek({repository:Qk,fetchDefaultBranchName:nA,fetchLastCommit:iA,fetchFileList:lA,fetchFileContents:pA})},hA=async e=>{let{owner:t,repo:n,branch:r=``}=Qk,{path:i}=e;return hO(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})},gA=`https://status.gitlab.com/`,_A=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,vA={github:Hk,gitlab:{isGit:!0,name:Uk,label:Wk,repository:Qk,statusDashboardURL:gA,checkStatus:async()=>{try{let{result:{status_overall:{status_code:e}}}=await dO(_A);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`},init:()=>{let{backend:e}=j(fj)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=Kk,auth_endpoint:i=qk,app_id:a=``,api_root:o=Gk,graphql_api_root:s=o.replace(/\/api\/.+$/,`/api/graphql`)}=e,{owner:c,repo:l}=t.match(/(?<owner>.+)\/(?<repo>[^/]+)$/)?.groups??{},u=`${c}/${l}`,d=`${xd(r)}/${xd(i)}`,f=PO(o,u);return Object.assign(Qk,{service:Uk,label:Wk,owner:c,repo:l,branch:n,repoURL:f,tokenPageURL:Yk(f),databaseName:`${Uk}:${u}`,isSelfHosted:o!==Gk},$k(f,n)),Object.assign(fO,{clientId:a,authScope:`api`,authURL:d,tokenURL:d.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:xd(o),graphqlBaseURL:xd(s)}),Object.assign(pO,{fullPath:u,branch:n}),j(ck).devModeEnabled&&console.info(`repositoryInfo`,Qk),Qk},signIn:Xk,signOut:Zk,fetchFiles:mA,fetchBlob:hA,commitChanges:aA,fetchFileCommits:sA},gitea:lk,local:QD,"test-repo":rO},yA={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},bA=Object.keys(vA).filter(e=>e!==`local`),xA=Object.fromEntries(Object.entries(vA).filter(([,e])=>e.isGit)),SA=Ft(),CA=It([SA],([e],t,n)=>{n(t=>{let n=e?vA[e]:void 0;return n&&n!==t&&n.init(),n})}),wA=Ft(!0),TA=({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=j(Z),f=[];o&&f.push(d(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&f.push(d(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&f.push(d(`config.error_locator.field`,{values:{field:c}}));let p=e===`error`?l:u,m=j(Am),h=f.length?`${$v(m).format(f)}: `:``,g=d(`config.${e}.${t}`,{values:n});p.add(`${h}${g}${r?` ${d(`config.${r}`)}`:``}`)},EA=({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)&&TA({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},DA=/^[^\s.*:<>]+$/,OA=e=>DA.test(e),kA=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return TA({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return OA(e)?n[e]===1?(TA({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(TA({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)},AA=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],jA=(e,t)=>{let{backend:n}=e,{errors:r}=t;if(!u(n)){r.add(j(Z)(`config.error.missing_backend`));return}let{name:i}=n;if(!i){r.add(j(Z)(`config.error.missing_backend_name`));return}if(!bA.includes(i)){let e=yA[i],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,a=j(Z)(`config.error.unsupported_${t}_backend`,{values:{name:n}});r.add(`${a} ${j(Z)(`config.error.unsupported_backend_suggestion`)}`);return}if(i in xA){let{repo:a,automatic_deployments:o,auth_type:s,app_id:c}=n;a===void 0&&r.add(j(Z)(`config.error.missing_repository`)),(typeof a!=`string`||!/(.+)\/([^/]+)$/.test(a))&&r.add(j(Z)(`config.error.invalid_repository`)),s===`implicit`&&r.add(j(Z)(`config.error.oauth_implicit_flow`)),i===`github`&&s===`pkce`&&r.add(j(Z)(`config.error.github_pkce_unsupported`)),(i===`gitea`||s===`pkce`)&&!c&&r.add(j(Z)(`config.error.oauth_no_app_id`)),o!==void 0&&Kv(`automatic_deployments`),EA({UNSUPPORTED_OPTIONS:AA,config:n,context:{cmsConfig:e},collectors:t})}},MA=[`code`,`markdown`,`richtext`,`text`],NA=[`md`,`markdown`,`mdx`],PA=[`astro`,`njk`],FA=[...NA,...PA],IA=(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`&&MA.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(NA.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return PA.includes(i)?!1:i!==e}if(a===`frontmatter`)return!FA.includes(i);let o=[`yaml`,`toml`,`json`];return o.includes(a)?o.includes(i)&&i!==a:!1},LA=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],RA=e=>{EA({...e,UNSUPPORTED_OPTIONS:LA})},zA=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],BA=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),EA({...e,UNSUPPORTED_OPTIONS:zA})},VA=(e,t,n)=>e===`object`?!0:(TA({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),HA=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){TA({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&ZA({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&QA(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};kA({...c,name:e,index:a,context:o})&&VA(t,o,r)&&i&&QA(i,o,r)})},UA=[{prop:`valueType`,newProp:`value_type`}],WA=e=>{EA({...e,UNSUPPORTED_OPTIONS:UA})},GA=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){TA({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){TA({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&QA(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};kA({...s,name:e,index:i,context:a})&&t&&QA(t,a,r)})},KA=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],qA=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||TA({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&TA({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else TA({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});EA({...e,UNSUPPORTED_OPTIONS:KA}),r.relationFields.add({fieldConfig:i,context:n})},JA=[{prop:`editorComponents`,newProp:`editor_components`}],YA=e=>{EA({...e,UNSUPPORTED_OPTIONS:JA})},XA={datetime:RA,file:BA,image:BA,list:HA,markdown:YA,number:WA,object:GA,relation:qA,richtext:YA},ZA=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}};XA[i]?.(o),i===`date`&&TA({...o,strKey:`date_field_type`})},QA=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;kA({...r,name:a,index:i})&&ZA({config:e,context:t,collectors:n})})},$A=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o}=r,{extension:s}=kd(i);IA(s,a,o)&&TA({strKey:`file_format_mismatch`,context:e,values:{extension:s,format:a},collectors:t}),o?.length||TA({strKey:`collection_file_no_fields`,context:e,collectors:t}),QA(o,e,t)},ej=(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};kA({...a,name:o,index:i,context:s})&&$A(s,t)})},tj=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],nj=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,slug:c,slug_length:l}=r;IA(i,a)&&TA({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&Kv(`slug_length`),EA({UNSUPPORTED_OPTIONS:tj,config:r,context:e,collectors:t}),o?.length||TA({strKey:`collection_no_fields`,context:e,collectors:t}),QA(o,e,t),s&&QA(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&TA({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},rj=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){TA({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){TA({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?ej({cmsConfig:e,collection:t},n):a&&nj({cmsConfig:e,collection:t},n)},ij=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t,a=j(Z);if(!Array.isArray(n)&&!Array.isArray(r)){i.add(a(`config.error.no_collection`));return}let o={nameCounts:{},strKeyBase:`collection_name`,collectors:t};n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,a={cmsConfig:e,collection:n};kA({...o,name:i,index:r,context:a})&&rj(a,t)}),Array.isArray(r)&&ej({cmsConfig:e,collection:{name:`_singletons`,label:a(`singletons`),label_singular:a(`singleton`),files:r}},t)},aj=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!TS.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>TS.includes(e))&&o.add(j(Z)(`config.error.missing_media_folder`)):typeof n!=`string`&&o.add(j(Z)(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&o.add(j(Z)(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&o.add(j(Z)(`config.error.public_folder_absolute_url`))):o.add(j(Z)(`config.error.invalid_public_folder`)))},oj=[{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`}],sj=(e,t)=>{jA(e,t),aj(e,t),ij(e,t),EA({UNSUPPORTED_OPTIONS:oj,config:e,context:{cmsConfig:e},collectors:t})},{DEV:cj,VITE_SITE_URL:lj}={DEV:!1},uj=cj?lj||`http://localhost:5174`:void 0,dj={},fj=Ft(),pj=Ft(),mj=Ft([]),hj=It([fj,mj],([e,t])=>!!e||!!t.length),gj={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},_j=async e=>{fj.set(void 0),mj.set([]),Object.assign(gj,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(j(Z)(`config.error.no_secure_context`));let t;if(e){if(!u(e))throw Error(j(Z)(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,Hp.default)(await Lb({manualInit:!0}),t))}else t=await Lb();if(Object.assign(dj,t),sj(t,gj),gj.errors.size)throw gj.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);gj.warnings.size&&gj.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(cj?uj:window.location.origin),n._baseURL=Cd(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),fj.set(n),pj.set(await vd(kv(n)))}catch(e){mj.set(gj.errors.size?[...gj.errors]:[e.name===`Error`?e.message:j(Z)(`config.error.unexpected`)]),console.error(e,e.cause)}};fj.subscribe(e=>{if(j(ck).devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,gj)),!e)return;let t=Hy(e),n=Fy(e,[...gj.mediaFields]);Mv.set(t),Rd.set(n),j(ck).devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))});var vj=new Map,yj=(e,{fallback:t=!0,maxLength:n=void 0}={})=>{let{slug:{encoding:r=`unicode`,clean_accents:i=!1,sanitize_replacement:a=`-`,maxlength:o=void 0,trim:s=!0,lowercase:c=!0}={}}=j(fj)??{},l=n??o,u=e;if(i&&(u=nf(u.normalize(`NFD`))),u=r===`ascii`?u.replaceAll(/[^\w-~]/g,` `):u.replaceAll(/[\p{Z}\p{C}!"#$&'()*+,/:;<=>?@[\]^`{|}]/gu,` `),u=u.trim().replaceAll(/\s+/g,a),a){let e=a.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),t=Tb(vj,e,()=>({consecutivePattern:RegExp(`${e}+`,`g`),trimPattern:RegExp(`^${e}+|${e}+$`,`g`)}));u=u.replace(t.consecutivePattern,a),s&&(u=u.replace(t.trimPattern,``))}return!u&&t&&(u=gd(`short`)),typeof l==`number`&&u.length>l&&(u=bd(u,l,{ellipsis:``})),c&&(u=u.toLocaleLowerCase()),u},bj=[`year`,`month`,`day`,`hour`,`minute`,`second`],xj=/{{(.+?)}}(?!'\))/g,Sj={uuid:()=>gd(),uuid_short:()=>gd(`short`),uuid_shorter:()=>gd(`shorter`)},Cj=(e,t)=>bj.includes(e)?t[e]:void 0,wj=e=>{let t=Sj[e];return t?t():void 0},Tj=(e,t,n,r)=>{if(!(e!==`slug`||!t))return n===`preview_path`&&r?``:t},Ej=(e,t,n)=>{if(!t)return``;switch(e){case`dirname`:{let e=t.replace(n??``,``),r=e.lastIndexOf(`/`);return r>0?e.substring(0,r):``}case`filename`:return t.split(`/`).pop().split(`.`).shift();case`extension`:return t.split(`/`).pop().split(`.`).pop();default:return}},Dj=(e,t,n)=>e.startsWith(`fields.`)?t[e.replace(/^fields\./,``)]:e===`slug`?SE(t,{identifierField:n}):t[e],Oj=(e,t)=>{let{type:n,content:r,currentSlug:i,entryFilePath:a,locale:o,dateTimeParts:s=qd({timeZone:`UTC`}),identifierField:c,basePath:l,isIndexFile:u=!1}=t,d=Cj(e,s);if(d!==void 0)return d;let f=Tj(e,i,n??``,u);if(f!==void 0)return f;let p=wj(e);if(p!==void 0)return p;if(n===`preview_path`&&e===`locale`)return o;if(n===`preview_path`||n===`media_folder`){let t=Ej(e,a,l);if(t!==void 0)return t}return Dj(e,r,c)},kj=(e,t)=>{let n=!1;return e.forEach((r,i)=>{let{defaultValue:a}=r.match(Ax)?.groups??{};if(a!==void 0){n=!0;let{innerTag:r}=a.match(/^{{(?<innerTag>.+?)}}$/)?.groups??{};r!==void 0&&(e[i]=`default('${Oj(r,t)??``}')`)}}),{transformations:e,hasDefaultTransformation:n}},Aj=(e,{replaceSubContext:t,getFieldArgs:n})=>{let[r,...i]=e.split(/\s*\|\s*/),a=Oj(r,t),{transformations:o,hasDefaultTransformation:s}=kj(i,t);return a===void 0&&!s?gd(`short`):(o.length&&(a=Bx({fieldConfig:hD({...n,keyPath:r}),value:a,transformations:o})),t.type?String(a):yj(String(a),{maxLength:1/0}))},jj=(e,t)=>xC(e).map(e=>t?e.locales[t]?.slug:e.slug).filter(Boolean),Mj=(e,t)=>{let{collection:n,content:r,currentSlug:i,locale:a,isIndexFile:o=!1}=t,{_type:s,name:c}=n,{identifier_field:l=`title`,slug_length:u=void 0,_file:{basePath:d}={}}=s===`entry`?n:{},f=u??j(fj)?.slug?.maxlength,p={replaceSubContext:{...t,identifierField:l,basePath:d},getFieldArgs:{collectionName:c,keyPath:``,valueMap:r,isIndexFile:o}},m=e.replace(xj,(e,t)=>Aj(t,p)).trim();return typeof f==`number`&&(m=bd(m,f,{ellipsis:``}).replace(/-$/,``)),i?m:dS(m,jj(c,a))},Nj=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=j(fj);if(t?.media_libraries?.[e])return t.media_libraries[e];if(t?.media_library){let r=n?.media_library?.name??`default`,i=t.media_library,a=i.name;if(r===e&&(a===e||a===void 0))return i}return n?.media_libraries?.[e]?n.media_libraries[e]:n?.media_library?.name===e?n.media_library:{}},Pj=({fieldConfig:e}={})=>{let t=Nj({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{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:u(a)?a:void 0}}},Fj=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(r in t?n=t[r]:`raster_image`in t&&PS.includes(r)&&(n=t.raster_image),n){let{format:t,quality:r,width:i,height:a}=n,o=t&&VS.includes(t)?t:`webp`,s=await XS(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}`?IS.test(e.name)?e.name.replace(IS,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 ZS(e)],e.name,{type:e.type}):e},Ij=Ft([]),Lj={source:void 0,map:new Map},Rj=()=>{let e=j(Ij);return e!==Lj.source&&(Lj.source=e,Lj.map=new Map(e.map(e=>[e.path,e]))),Lj.map},zj=Ft([]),Bj=Ft(),Vj=Ft(),Hj=Ft({folder:void 0,files:[]}),Uj=Ft(),Wj=Ft(),Gj=It([Hj],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,i=new WeakMap,{max_file_size:a,transformations:o}=Pj().config,s=[];(async()=>{r.length&&o?(n(e=>({...e,processing:!0})),s=await Promise.all(r.map(async e=>{let t=await Fj(e,o);return t!==e&&i.set(t,e),t}))):s=[...r],n(()=>({processing:!1,undersizedFiles:s.filter(({size:e})=>e<=a),oversizedFiles:s.filter(({size:e})=>e>a),transformedFileMap:i}))})()}),Kj=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?Hd({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=mS(pS([d,c,c&&e.startsWith(`${c}/`)?e.slice(c.length+1):e]));return Rj().get(f)},qj=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?Hd({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?Hd({collectionName:n,fileName:r}):void 0,n?Hd({collectionName:n}):void 0,j(zd)].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=Rj().get(pS([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??Rj().get(e)}return pC(t).flatMap(n=>{let r=Hv(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>Kj({...a,file:e})):Kj({...a})}).filter(Boolean)[0]??Rj().get(e)},Jj=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=Rj().get(xd(e));if(a)return a;let{dirname:o=``,basename:s}=kd(e),c;return[i?Hd({collectionName:n,fileName:r,typedKeyPath:i}):void 0,Hd({collectionName:n,fileName:r}),Hd({collectionName:n}),j(zd),j(Rd).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?Ty(r):t?pC(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=Mj(i,{type:`media_folder`,collection:e,content:go(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:Jv(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=pS([i,s]),l=Rj().get(a);return l&&(c=l),!!l}),c},Yj=e=>!/^[/@]/.test(e),Xj=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=Ree(e.split(`#`)[0]);return Yj(a)?qj({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):Jj({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},Zj=e=>j(Ij).filter(t=>(0,Ld.default)(t.folder,e)),Qj=e=>j(Ij).filter(t=>kd(t.path).dirname===e);Bd.subscribe(()=>{Bj.set(void 0)});var $j=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.flatMap(e=>{if(e.includes(`*`)){let t=RegExp(`^${yd(e).replace(`\\*`,`.+`)}$`);return Object.keys(o).filter(e=>t.test(e))}return e});for(let e of s){let r=o[e]?await dC({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},eM=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=Ty(t);if(!a)return[];let o=Jv(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||Yj(a))&&[`image`,`file`].includes(hD({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`)){let i=Xj({value:a,entry:e,collectionName:t,fileName:n});if(i&&Gd(i.path).some(e=>e.collectionName===t&&e.fileName===n&&(r?e.entryRelative:!0)))return i}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&Hd({collectionName:t,fileName:n})?.entryRelative){let t=kd(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));j(Ij).forEach(n=>{let r=kd(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c},tM=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],nM=[`preSave`,`prePublish`],rM=new Set,iM=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>sd({data:_o(e),i18n:Object.fromEntries(t.map(e=>[e,{data:_o(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:``}),aM=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=j(uO),{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:d}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==d),{content:h,path:g}=p[d],_=eM({entry:n,collectionName:c,fileName:l});for(let t of rM){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:iM({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(nM.includes(e)&&nl(n)){let e=n.toJS();u(e.data)&&u(e.i18n)?(p[d].content=go(e.data),m.forEach(t=>{u(e.i18n[t]?.data)&&(p[t].content=go(e.i18n[t].data))})):p[d].content=go(e)}}},oM=Ft(!1),sM=Ft(!1),cM=Ft({show:!1,multiple:!1}),lM=Ft({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),uM=Ft(null),dM=Ft(null),fM=Ft(),pM=new Set,mM=new Map;typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var hM=s({strings:()=>gM}),gM={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`}},_M=s({strings:()=>vM}),vM={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:`ãã¬ãŒã³ããã¹ã`}},yM=Ft(!1),bM=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.js":hM,"../locales/ja.js":_M})).forEach(([e,{strings:t}])=>{let[,n]=e.match(/([a-zA-Z-]+)\.js/);$p(n,{_sui:t})}),gm({fallbackLocale:e,initialLocale:t})},xM=[`ar`,`fa`,`he`,`ur`],SM=e=>e&&xM.includes(e.split(`-`)[0])?`rtl`:`ltr`;Am.subscribe(e=>{document.documentElement.dir=SM(e)}),new MutationObserver(()=>{yM.set(document.dir===`rtl`)}).observe(document.documentElement,{attributes:!0,attributeFilter:[`dir`]});var CM=U(`<span> </span>`),wM={hash:`svelte-bmiuxm`,code:`.icon.small-arrow.svelte-bmiuxm {overflow:hidden;width:12px;text-indent:-6px;}`};function TM(e,t){J(e,wM);let n=co(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`name`]);var r=CM();Qa(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-bmiuxm`);var i=L(r,!0);O(r),B(()=>K(i,t.name)),G(e,r)}var EM=U(`<div><!> <!></div>`),DM={hash:`svelte-1le06ca`,code:`.alert.svelte-1le06ca {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-1le06ca {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-1le06ca {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-1le06ca {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-1le06ca {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`};function OM(e,t){J(e,DM);let n=co(t,[`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]);var r=EM();Qa(r,()=>({...n,role:`alert`,class:`sui alert ${t.status??``}`}),void 0,void 0,void 0,`svelte-1le06ca`);var i=L(r),a=e=>{var n=W();la(R(n),()=>t.icon),G(e,n)},o=e=>{{let n=P(()=>t.status===`success`?`check_circle`:t.status);TM(e,{get name(){return V(n)}})}};q(i,e=>{t.icon?e(a):e(o,-1)}),la(z(i,2),()=>t.children??E),O(r),G(e,r)}var kM,AM=()=>(kM??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),kM),jM=[`Ctrl`,`Meta`,`Alt`,`Shift`],MM=/^(?:Digit|Key)(.)$/,NM=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,code:o}=e;if(!o)return!1;let s=o.replace(MM,`$1`);return t.replace(/\bAccel\b/g,AM()?`Meta`:`Ctrl`).split(/\s+/).some(e=>{let t=e.split(`+`);return t.includes(`Ctrl`)&&!n||t.includes(`Meta`)&&!r||t.includes(`Alt`)&&!i||t.includes(`Shift`)&&!a||!t.includes(`Ctrl`)&&n||!t.includes(`Meta`)&&r||!t.includes(`Alt`)&&i||!t.includes(`Shift`)&&a?!1:t.filter(e=>!jM.includes(e)).every(e=>e.toUpperCase()===s.toUpperCase())})},PM=(e,t=``)=>{let n,r=t=>{let{disabled:r,offsetParent:i}=e;if(!i||!n||!NM(t,n))return;let{top:a,left:o}=e.getBoundingClientRect();r&&e.style.setProperty(`pointer-events`,`auto`),document.elementsFromPoint(o+4,a+4).includes(e)&&(t.preventDefault(),r||(e.focus(),e.click())),r&&e.style.removeProperty(`pointer-events`)},i=()=>{globalThis.removeEventListener(`keydown`,r,{capture:!0}),e.removeAttribute(`aria-keyshortcuts`)},a=()=>{n=t?t.replace(/\bAccel\b/g,AM()?`Meta`:`Ctrl`):void 0,n&&(globalThis.addEventListener(`keydown`,r,{capture:!0}),e.setAttribute(`aria-keyshortcuts`,n))};return a(),{update(e){i(),a()},destroy(){i()}}},FM=U(`<span role="none" class="sui truncated-text svelte-12puwsx"><!></span>`),IM={hash:`svelte-12puwsx`,code:`.truncated-text.svelte-12puwsx {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`};function LM(e,t){J(e,IM);let n=X(t,`lines`,3,1),r=X(t,`children`,3,void 0);var i=FM();la(L(i),()=>r()??E),O(i),B(()=>La(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),G(e,i)}var RM=(e=`e`,t=7)=>[e,gd(t)].join(`-`),zM=e=>{if(e)return new Promise(t=>{let n=new IntersectionObserver(([e])=>{e.isIntersecting&&(n.disconnect(),t(void 0))});globalThis.requestAnimationFrame(()=>{n.observe(e)})})},BM=class{open=Ft(!1);style=Ft({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 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`},l=j(this.style);(c.inset!==l.inset||c.zIndex!==l.zIndex||c.minWidth!==l.minWidth||c.maxWidth!==l.maxWidth||c.height!==l.height)&&this.style.set(c)})});constructor(e,t,n,r){this.anchorElement=e,this.popupElement=t,this.position=n,this.positionBaseElement=r??e,this.id=RM(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),Di(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&this.open.set(!j(this.open))}),Di(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.set(!j(this.open)))}),Di(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),new IntersectionObserver(([e])=>{!e.isIntersecting&&j(this.open)&&this.hideImmediately()}).observe(this.anchorElement),Di(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;j(this.open)&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&this.open.set(!1)}),Di(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.set(!1))}),this.open.subscribe(e=>{e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&(this.anchorElement.focus(),this.anchorElement.removeAttribute(`aria-controls`)),this.anchorElement.setAttribute(`aria-expanded`,String(e))}),new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}).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.set(!1),await Wx(50),this.popupElement.hidden=!1}},VM=(...e)=>new BM(...e);function HM(e,t){var n=W();la(R(n),()=>t.children??E),G(e,n)}var UM=U(`<dialog><!> <!></dialog>`),WM={hash:`svelte-157dkx3`,code:`dialog.svelte-157dkx3 {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-157dkx3::backdrop {background:transparent;}dialog.backdrop.svelte-157dkx3 {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-157dkx3 {transition-duration:50ms;opacity:1;}dialog.svelte-157dkx3:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-157dkx3 {transition-duration:1ms !important;}dialog.svelte-157dkx3:not(.active) {pointer-events:none !important;}dialog.svelte-157dkx3:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`};function GM(e,t){k(t,!0),J(e,WM);let n=e=>{var n=UM(),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))};Qa(n,()=>({...u,inert:!V(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[Va]:{backdrop:o(),open:V(p),active:V(m)}}),void 0,void 0,void 0,`svelte-157dkx3`);var g=L(n);la(g,()=>t.extraContent??E);var _=z(g,2),v=e=>{var n=W();la(R(n),()=>t.children??E),G(e,n)};q(_,e=>{(V(h)||l())&&e(v)}),O(n),oo(n,e=>i(e),()=>i()),G(e,n)},r=X(t,`open`,15,!1),i=X(t,`dialog`,15),a=X(t,`role`,3,`dialog`),o=X(t,`showBackdrop`,3,!1),s=X(t,`lightDismiss`,3,!1),c=X(t,`escapeDismiss`,3,!0),l=X(t,`keepContent`,3,!1),u=co(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=F(!1),m=F(!1),h=F(!1),g=async()=>new Promise(e=>{let t=n=>{n.target===i()&&(i().removeEventListener(`transitionend`,t),e())};i()?.addEventListener(`transitionend`,t)}),_=async()=>{!i()||i()?.open||(t.onOpening?.(new CustomEvent(`Opening`)),I(h,!0),i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),await Wx(0),I(p,!0),await g(),I(m,!0))},v=async()=>{if(!i()||!i().open)return;let{returnValue:e}=i();t.onClosing?.(new CustomEvent(`Closing`)),document.body.inert=!0,i().close(),document.body.inert=!1,I(m,!1),I(p,!1),await g(),I(h,!1),e===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),e===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:e}})),i(i().returnValue=``,!0)};return pr(()=>{r()?_():v()}),fo(()=>{let e=zi(HM,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Ui(e)}}),A({focus:d,close:f})}var KM=U(`<div role="none"><!></div>`),qM={hash:`svelte-1dryhzm`,code:`.content.svelte-1dryhzm {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-1dryhzm {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-1dryhzm .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-1dryhzm {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-1dryhzm .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-1dryhzm {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-1dryhzm {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-1dryhzm {transform:scale(90%);}.content.touch.combobox.svelte-1dryhzm .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-1dryhzm {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-1dryhzm {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`};function JM(e,t){k(t,!0),J(e,qM);let n=()=>M(V(y),`$style`,r),[r,i]=N(),a=e=>{var r=KM();let i,a;la(L(r),()=>t.children??E),O(r),oo(r,e=>c(e),()=>c()),B(()=>{Y(r,`hidden`,!o()),i=Fa(r,1,`content ${t.class??``} ${V(v)??``}`,`svelte-1dryhzm`,i,{touch:V(C)}),a=La(r,``,a,{inset:n().inset,"z-index":n().zIndex,"min-width":n().minWidth,"max-width":n().maxWidth,"max-height":n().height,visibility:n().inset?void 0:`hidden`})}),Oi(`mouseenter`,r,()=>{s(!0),f()&&window.clearTimeout(x)}),Oi(`mouseleave`,r,()=>{s(!1),f()&&(x=window.setTimeout(()=>{o(!1)},200))}),G(e,r)},o=X(t,`open`,15,!1),s=X(t,`hovered`,15,!1),c=X(t,`content`,15,void 0),l=X(t,`showBackdrop`,3,void 0),u=X(t,`position`,3,`bottom-left`),d=X(t,`positionBaseElement`,3,void 0),f=X(t,`parentDialogElement`,3,void 0),p=X(t,`touchOptimized`,3,!1),m=co(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),h=F(!1),g=F(void 0),_=F(!1),v=F(void 0),y=F(Bn(Ft({inset:void 0,zIndex:void 0,width:void 0,height:void 0}))),b,x=0,S=()=>{b=VM(t.anchor,V(g),u(),d()),Bt(I(y,b.style,!0),`$style`,r),b.open.subscribe(e=>{o(e)}),I(v,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),I(h,!0)};pr(()=>{f()&&!V(g)&&c()&&(I(g,f()),V(g).append(c()))}),pr(()=>{t.anchor&&V(g)&&!V(h)&&S()}),pr(()=>{f()&&o()&&b?.checkPosition()});let C=P(()=>p()&&V(_));fo(()=>{I(_,globalThis.matchMedia(`(pointer: coarse)`).matches,!0)});var w=W(),T=R(w),ee=e=>{a(e)},te=e=>{{let n=P(()=>l()??V(C));GM(e,uo(()=>m,{role:`none`,class:`popup`,get showBackdrop(){return V(n)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await Wx(100),!c())return;let n=c().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(c(c().tabIndex=-1,!0),c().focus())},get dialog(){return V(g)},set dialog(e){I(g,e,!0)},get open(){return o()},set open(e){o(e)},children:(e,t)=>{a(e)},$$slots:{default:!0}}))}};q(T,e=>{f()?e(ee):e(te,-1)}),G(e,w),A(),i()}var YM=U(`<span role="none" class="label svelte-cws60c"><!></span>`),XM=U(`<span role="none" class="label svelte-cws60c"><!></span>`),ZM=U(`<span role="none" class="label svelte-cws60c"><!></span>`),QM=U(`<!> <!>`,1),$M=U(`<button><!> <!> <!></button> <!>`,1),eN={hash:`svelte-cws60c`,code:`button.svelte-cws60c {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-cws60c {display:none !important;}button.svelte-cws60c:not(:disabled):focus-visible {z-index:1;}button.svelte-cws60c:is(.primary:where(.svelte-cws60c), .secondary:where(.svelte-cws60c), .tertiary:where(.svelte-cws60c), .ghost:where(.svelte-cws60c)) {justify-content:center;border-width:1px;}button.svelte-cws60c:is(.primary:where(.svelte-cws60c), .secondary:where(.svelte-cws60c), .tertiary:where(.svelte-cws60c), .ghost:where(.svelte-cws60c)) .label:where(.svelte-cws60c):only-child {padding:0 4px;}button.primary.svelte-cws60c {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-cws60c:is(:where(.svelte-cws60c):hover, :where(.svelte-cws60c):focus-visible, [aria-expanded=true]:where(.svelte-cws60c)) {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-cws60c: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-cws60c {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-cws60c:is(:where(.svelte-cws60c):hover, :where(.svelte-cws60c):focus-visible, [aria-expanded=true]:where(.svelte-cws60c)) {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-cws60c: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-cws60c {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-cws60c {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-cws60c:is(:where(.svelte-cws60c):hover, :where(.svelte-cws60c):focus-visible, [aria-expanded=true]:where(.svelte-cws60c)) {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-cws60c: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-cws60c {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-cws60c {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-cws60c:is(:where(.svelte-cws60c):hover, :where(.svelte-cws60c):focus-visible, [aria-expanded=true]:where(.svelte-cws60c)) {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-cws60c: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-cws60c {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-cws60c {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-cws60c .label:where(.svelte-cws60c) {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-cws60c .label:where(.svelte-cws60c) {text-decoration:underline;}button.link.svelte-cws60c:is(:where(.svelte-cws60c):hover, :where(.svelte-cws60c):focus, :where(.svelte-cws60c):active) .label:where(.svelte-cws60c) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-cws60c {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-cws60c .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-cws60c {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-cws60c {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-cws60c {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-cws60c:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-cws60c {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-cws60c {background-color:var(--sui-error-background-color);}button.svelte-cws60c .label:where(.svelte-cws60c) {padding:0 4px;}button.svelte-cws60c > * {pointer-events:none;}button.svelte-cws60c :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`};function tN(e,t){k(t,!0),J(e,eN);let n=X(t,`element`,15),r=X(t,`class`,3,``),i=X(t,`type`,3,`button`),a=X(t,`role`,3,`button`),o=X(t,`name`,3,void 0),s=X(t,`value`,3,void 0),c=X(t,`valueType`,19,()=>typeof s()),l=X(t,`hidden`,3,!1),u=X(t,`disabled`,3,!1),d=X(t,`readonly`,3,!1),f=X(t,`pressed`,3,void 0),p=X(t,`keyShortcuts`,3,void 0),m=X(t,`label`,3,``),h=X(t,`lines`,3,1),g=X(t,`variant`,3,void 0),_=X(t,`size`,3,`medium`),v=X(t,`iconic`,3,!1),y=X(t,`pill`,3,!1),b=X(t,`flex`,3,!1),x=X(t,`popupPosition`,3,`bottom-left`),S=X(t,`showPopupBackdrop`,3,!1),C=co(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=$M(),T=R(w);Qa(T,()=>({...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(),[Va]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-cws60c`);var ee=L(T);la(ee,()=>t.startIcon??E);var te=z(ee,2),ne=e=>{var n=W(),r=R(n),i=e=>{var t=YM();LM(L(t),{get lines(){return h()},children:(e,t)=>{rt();var n=Li();B(()=>K(n,m())),G(e,n)},$$slots:{default:!0}}),O(t),G(e,t)},a=e=>{var n=XM();la(L(n),()=>t.children??E),O(n),G(e,n)};q(r,e=>{m()?e(i):e(a,-1)}),G(e,n)},re=e=>{var n=QM(),r=R(n),i=e=>{var t=ZM();LM(L(t),{get lines(){return h()},children:(e,t)=>{rt();var n=Li();B(()=>K(n,m())),G(e,n)},$$slots:{default:!0}}),O(t),G(e,t)};q(r,e=>{m()&&e(i)}),la(z(r,2),()=>t.children??E),G(e,n)};q(te,e=>{g()===`link`?e(ne):e(re,-1)}),la(z(te,2),()=>t.endIcon??E),O(T),oo(T,e=>n(e),()=>n()),Ta(T,(e,t)=>PM?.(e,t),p);var ie=z(T,2),ae=e=>{JM(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=W();la(R(r),()=>t.popup),G(e,r)},$$slots:{default:!0}})};q(ie,e=>{t.popup&&e(ae)}),G(e,w),A()}var nN=U(`<div role="none"><!></div>`),rN=U(`<div role="none"><div role="alert" class="message svelte-398t4x"><!> <!></div> <!></div>`),iN={hash:`svelte-398t4x`,code:`.infobar.svelte-398t4x {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-398t4x {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-398t4x {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-398t4x {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-398t4x {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-398t4x {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-398t4x button {font-size:inherit !important;}.message.svelte-398t4x .icon {font-size:16px; /* !hardcoded */}`};function aN(e,t){k(t,!0),J(e,iN);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`show`,15,!0),o=X(t,`dismissible`,3,!0),s=X(t,`status`,3,`info`),c=X(t,`children`,3,void 0),l=X(t,`icon`,3,void 0);var u=W(),d=R(u),f=e=>{var t=rN(),r=L(t),i=L(r),u=e=>{var t=W();la(R(t),l),G(e,t)},d=e=>{{let t=P(()=>s()===`success`?`check_circle`:s());TM(e,{get name(){return V(t)}})}};q(i,e=>{l()?e(u):e(d,-1)}),la(z(i,2),()=>c()??E),O(r);var f=z(r,2),p=e=>{var t=nN(),r=L(t);{let e=P(()=>n()(`_sui.dismiss`));tN(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return V(e)},onclick:()=>{a(!1)},children:(e,t)=>{TM(e,{name:`close`})},$$slots:{default:!0}})}O(t),G(e,t)};q(f,e=>{o()&&e(p)}),O(t),B(()=>Fa(t,1,`infobar ${s()??``}`,`svelte-398t4x`)),G(e,t)};q(d,e=>{a()&&e(f)}),G(e,u),A(),i()}var oN=U(`<div><!></div>`),sN={hash:`svelte-g5krvy`,code:`.bottom-navigation.svelte-g5krvy {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-g5krvy:is([inert]:where(.svelte-g5krvy), [hidden]:where(.svelte-g5krvy)) {display:none;}.bottom-navigation.svelte-g5krvy .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`};function cN(e,t){J(e,sN);let n=co(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=oN();Qa(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-g5krvy`),la(L(r),()=>t.children??E),O(r),G(e,r)}var lN=U(`<div><!></div>`),uN={hash:`svelte-1924fci`,code:`.button-group.svelte-1924fci {flex:none;display:inline-flex;align-items:center;}`};function dN(e,t){J(e,uN);let n=co(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=lN();Qa(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-1924fci`),la(L(r),()=>t.children??E),O(r),G(e,r)}var fN=U(`<div role="none" class="sui floating-action-button-wrapper svelte-11v42d8"><!></div>`),pN={hash:`svelte-11v42d8`,code:`.floating-action-button-wrapper.svelte-11v42d8 {display:contents;}
|
|
567
|
+
`,dA=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=Qk,r=n?20:100,i=[...e],a=[];for(;;){let e=await gO(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]]))},fA=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)},pA=async e=>{jv.set(0);let t=window.setInterval(()=>{jv.update((e=0)=>e+1)},e.length/10),n=await dA(e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),uA);return window.clearInterval(t),jv.set(void 0),fA({fetchingFiles:e,blobs:n})},mA=async()=>{await eA(),await ek({repository:Qk,fetchDefaultBranchName:nA,fetchLastCommit:iA,fetchFileList:lA,fetchFileContents:pA})},hA=async e=>{let{owner:t,repo:n,branch:r=``}=Qk,{path:i}=e;return hO(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})},gA=`https://status.gitlab.com/`,_A=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,vA={github:Hk,gitlab:{isGit:!0,name:Uk,label:Wk,repository:Qk,statusDashboardURL:gA,checkStatus:async()=>{try{let{result:{status_overall:{status_code:e}}}=await dO(_A);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`},init:()=>{let{backend:e}=j(fj)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=Kk,auth_endpoint:i=qk,app_id:a=``,api_root:o=Gk,graphql_api_root:s=o.replace(/\/api\/.+$/,`/api/graphql`)}=e,{owner:c,repo:l}=t.match(/(?<owner>.+)\/(?<repo>[^/]+)$/)?.groups??{},u=`${c}/${l}`,d=`${xd(r)}/${xd(i)}`,f=PO(o,u);return Object.assign(Qk,{service:Uk,label:Wk,owner:c,repo:l,branch:n,repoURL:f,tokenPageURL:Yk(f),databaseName:`${Uk}:${u}`,isSelfHosted:o!==Gk},$k(f,n)),Object.assign(fO,{clientId:a,authScope:`api`,authURL:d,tokenURL:d.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:xd(o),graphqlBaseURL:xd(s)}),Object.assign(pO,{fullPath:u,branch:n}),j(ck).devModeEnabled&&console.info(`repositoryInfo`,Qk),Qk},signIn:Xk,signOut:Zk,fetchFiles:mA,fetchBlob:hA,commitChanges:aA,fetchFileCommits:sA},gitea:lk,local:QD,"test-repo":rO},yA={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},bA=Object.keys(vA).filter(e=>e!==`local`),xA=Object.fromEntries(Object.entries(vA).filter(([,e])=>e.isGit)),SA=Ft(),CA=It([SA],([e],t,n)=>{n(t=>{let n=e?vA[e]:void 0;return n&&n!==t&&n.init(),n})}),wA=Ft(!0),TA=({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=j(Z),f=[];o&&f.push(d(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&f.push(d(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&f.push(d(`config.error_locator.field`,{values:{field:c}}));let p=e===`error`?l:u,m=j(Am),h=f.length?`${$v(m).format(f)}: `:``,g=d(`config.${e}.${t}`,{values:n});p.add(`${h}${g}${r?` ${d(`config.${r}`)}`:``}`)},EA=({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)&&TA({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},DA=/^[^\s.*:<>]+$/,OA=e=>DA.test(e),kA=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return TA({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return OA(e)?n[e]===1?(TA({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(TA({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)},AA=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],jA=(e,t)=>{let{backend:n}=e,{errors:r}=t;if(!u(n)){r.add(j(Z)(`config.error.missing_backend`));return}let{name:i}=n;if(!i){r.add(j(Z)(`config.error.missing_backend_name`));return}if(!bA.includes(i)){let e=yA[i],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,a=j(Z)(`config.error.unsupported_${t}_backend`,{values:{name:n}});r.add(`${a} ${j(Z)(`config.error.unsupported_backend_suggestion`)}`);return}if(i in xA){let{repo:a,automatic_deployments:o,auth_type:s,app_id:c}=n;a===void 0&&r.add(j(Z)(`config.error.missing_repository`)),(typeof a!=`string`||!/(.+)\/([^/]+)$/.test(a))&&r.add(j(Z)(`config.error.invalid_repository`)),s===`implicit`&&r.add(j(Z)(`config.error.oauth_implicit_flow`)),i===`github`&&s===`pkce`&&r.add(j(Z)(`config.error.github_pkce_unsupported`)),(i===`gitea`||s===`pkce`)&&!c&&r.add(j(Z)(`config.error.oauth_no_app_id`)),o!==void 0&&Kv(`automatic_deployments`),EA({UNSUPPORTED_OPTIONS:AA,config:n,context:{cmsConfig:e},collectors:t})}},MA=[`code`,`markdown`,`richtext`,`text`],NA=[`md`,`markdown`,`mdx`],PA=[`astro`,`njk`],FA=[...NA,...PA],IA=(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`&&MA.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(NA.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return PA.includes(i)?!1:i!==e}if(a===`frontmatter`)return!FA.includes(i);let o=[`yaml`,`toml`,`json`];return o.includes(a)?o.includes(i)&&i!==a:!1},LA=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],RA=e=>{EA({...e,UNSUPPORTED_OPTIONS:LA})},zA=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],BA=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),EA({...e,UNSUPPORTED_OPTIONS:zA})},VA=(e,t,n)=>e===`object`?!0:(TA({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),HA=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){TA({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&ZA({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&QA(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};kA({...c,name:e,index:a,context:o})&&VA(t,o,r)&&i&&QA(i,o,r)})},UA=[{prop:`valueType`,newProp:`value_type`}],WA=e=>{EA({...e,UNSUPPORTED_OPTIONS:UA})},GA=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){TA({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){TA({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&QA(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};kA({...s,name:e,index:i,context:a})&&t&&QA(t,a,r)})},KA=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],qA=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||TA({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&TA({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else TA({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});EA({...e,UNSUPPORTED_OPTIONS:KA}),r.relationFields.add({fieldConfig:i,context:n})},JA=[{prop:`editorComponents`,newProp:`editor_components`}],YA=e=>{EA({...e,UNSUPPORTED_OPTIONS:JA})},XA={datetime:RA,file:BA,image:BA,list:HA,markdown:YA,number:WA,object:GA,relation:qA,richtext:YA},ZA=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}};XA[i]?.(o),i===`date`&&TA({...o,strKey:`date_field_type`})},QA=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;kA({...r,name:a,index:i})&&ZA({config:e,context:t,collectors:n})})},$A=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o}=r,{extension:s}=kd(i);IA(s,a,o)&&TA({strKey:`file_format_mismatch`,context:e,values:{extension:s,format:a},collectors:t}),o?.length||TA({strKey:`collection_file_no_fields`,context:e,collectors:t}),QA(o,e,t)},ej=(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};kA({...a,name:o,index:i,context:s})&&$A(s,t)})},tj=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],nj=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,slug:c,slug_length:l}=r;IA(i,a)&&TA({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&Kv(`slug_length`),EA({UNSUPPORTED_OPTIONS:tj,config:r,context:e,collectors:t}),o?.length||TA({strKey:`collection_no_fields`,context:e,collectors:t}),QA(o,e,t),s&&QA(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&TA({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},rj=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){TA({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){TA({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?ej({cmsConfig:e,collection:t},n):a&&nj({cmsConfig:e,collection:t},n)},ij=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t,a=j(Z);if(!Array.isArray(n)&&!Array.isArray(r)){i.add(a(`config.error.no_collection`));return}let o={nameCounts:{},strKeyBase:`collection_name`,collectors:t};n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,a={cmsConfig:e,collection:n};kA({...o,name:i,index:r,context:a})&&rj(a,t)}),Array.isArray(r)&&ej({cmsConfig:e,collection:{name:`_singletons`,label:a(`singletons`),label_singular:a(`singleton`),files:r}},t)},aj=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!TS.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>TS.includes(e))&&o.add(j(Z)(`config.error.missing_media_folder`)):typeof n!=`string`&&o.add(j(Z)(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&o.add(j(Z)(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&o.add(j(Z)(`config.error.public_folder_absolute_url`))):o.add(j(Z)(`config.error.invalid_public_folder`)))},oj=[{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`}],sj=(e,t)=>{jA(e,t),aj(e,t),ij(e,t),EA({UNSUPPORTED_OPTIONS:oj,config:e,context:{cmsConfig:e},collectors:t})},{DEV:cj,VITE_SITE_URL:lj}={DEV:!1},uj=cj?lj||`http://localhost:5174`:void 0,dj={},fj=Ft(),pj=Ft(),mj=Ft([]),hj=It([fj,mj],([e,t])=>!!e||!!t.length),gj={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},_j=async e=>{fj.set(void 0),mj.set([]),Object.assign(gj,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(j(Z)(`config.error.no_secure_context`));let t;if(e){if(!u(e))throw Error(j(Z)(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,Hp.default)(await Lb({manualInit:!0}),t))}else t=await Lb();if(Object.assign(dj,t),sj(t,gj),gj.errors.size)throw gj.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);gj.warnings.size&&gj.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(cj?uj:window.location.origin),n._baseURL=Cd(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),fj.set(n),pj.set(await vd(kv(n)))}catch(e){mj.set(gj.errors.size?[...gj.errors]:[e.name===`Error`?e.message:j(Z)(`config.error.unexpected`)]),console.error(e,e.cause)}};fj.subscribe(e=>{if(j(ck).devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,gj)),!e)return;let t=Hy(e),n=Fy(e,[...gj.mediaFields]);Mv.set(t),Rd.set(n),j(ck).devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))});var vj=new Map,yj=(e,{fallback:t=!0,maxLength:n=void 0}={})=>{let{slug:{encoding:r=`unicode`,clean_accents:i=!1,sanitize_replacement:a=`-`,maxlength:o=void 0,trim:s=!0,lowercase:c=!0}={}}=j(fj)??{},l=n??o,u=e;if(i&&(u=nf(u.normalize(`NFD`))),u=r===`ascii`?u.replaceAll(/[^\w-~]/g,` `):u.replaceAll(/[\p{Z}\p{C}!"#$&'()*+,/:;<=>?@[\]^`{|}]/gu,` `),u=u.trim().replaceAll(/\s+/g,a),a){let e=a.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),t=Tb(vj,e,()=>({consecutivePattern:RegExp(`${e}+`,`g`),trimPattern:RegExp(`^${e}+|${e}+$`,`g`)}));u=u.replace(t.consecutivePattern,a),s&&(u=u.replace(t.trimPattern,``))}return!u&&t&&(u=gd(`short`)),typeof l==`number`&&u.length>l&&(u=bd(u,l,{ellipsis:``})),c&&(u=u.toLocaleLowerCase()),u},bj=[`year`,`month`,`day`,`hour`,`minute`,`second`],xj=/{{(.+?)}}(?!'\))/g,Sj={uuid:()=>gd(),uuid_short:()=>gd(`short`),uuid_shorter:()=>gd(`shorter`)},Cj=(e,t)=>bj.includes(e)?t[e]:void 0,wj=e=>{let t=Sj[e];return t?t():void 0},Tj=(e,t,n,r)=>{if(!(e!==`slug`||!t))return n===`preview_path`&&r?``:t},Ej=(e,t,n)=>{if(!t)return``;switch(e){case`dirname`:{let e=t.replace(n??``,``),r=e.lastIndexOf(`/`);return r>0?e.substring(0,r):``}case`filename`:return t.split(`/`).pop().split(`.`).shift();case`extension`:return t.split(`/`).pop().split(`.`).pop();default:return}},Dj=(e,t,n)=>e.startsWith(`fields.`)?t[e.replace(/^fields\./,``)]:e===`slug`?SE(t,{identifierField:n}):t[e],Oj=(e,t)=>{let{type:n,content:r,currentSlug:i,entryFilePath:a,locale:o,dateTimeParts:s=qd({timeZone:`UTC`}),identifierField:c,basePath:l,isIndexFile:u=!1}=t,d=Cj(e,s);if(d!==void 0)return d;let f=Tj(e,i,n??``,u);if(f!==void 0)return f;let p=wj(e);if(p!==void 0)return p;if(n===`preview_path`&&e===`locale`)return o;if(n===`preview_path`||n===`media_folder`){let t=Ej(e,a,l);if(t!==void 0)return t}return Dj(e,r,c)},kj=(e,t)=>{let n=!1;return e.forEach((r,i)=>{let{defaultValue:a}=r.match(Ax)?.groups??{};if(a!==void 0){n=!0;let{innerTag:r}=a.match(/^{{(?<innerTag>.+?)}}$/)?.groups??{};r!==void 0&&(e[i]=`default('${Oj(r,t)??``}')`)}}),{transformations:e,hasDefaultTransformation:n}},Aj=(e,{replaceSubContext:t,getFieldArgs:n})=>{let[r,...i]=e.split(/\s*\|\s*/),a=Oj(r,t),{transformations:o,hasDefaultTransformation:s}=kj(i,t);return a===void 0&&!s?gd(`short`):(o.length&&(a=Bx({fieldConfig:hD({...n,keyPath:r}),value:a,transformations:o})),t.type?String(a):yj(String(a),{maxLength:1/0}))},jj=(e,t)=>xC(e).map(e=>t?e.locales[t]?.slug:e.slug).filter(Boolean),Mj=(e,t)=>{let{collection:n,content:r,currentSlug:i,locale:a,isIndexFile:o=!1}=t,{_type:s,name:c}=n,{identifier_field:l=`title`,slug_length:u=void 0,_file:{basePath:d}={}}=s===`entry`?n:{},f=u??j(fj)?.slug?.maxlength,p={replaceSubContext:{...t,identifierField:l,basePath:d},getFieldArgs:{collectionName:c,keyPath:``,valueMap:r,isIndexFile:o}},m=e.replace(xj,(e,t)=>Aj(t,p)).trim();return typeof f==`number`&&(m=bd(m,f,{ellipsis:``}).replace(/-$/,``)),i?m:dS(m,jj(c,a))},Nj=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=j(fj);if(t?.media_libraries?.[e])return t.media_libraries[e];if(t?.media_library){let r=n?.media_library?.name??`default`,i=t.media_library,a=i.name;if(r===e&&(a===e||a===void 0))return i}return n?.media_libraries?.[e]?n.media_libraries[e]:n?.media_library?.name===e?n.media_library:{}},Pj=({fieldConfig:e}={})=>{let t=Nj({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{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:u(a)?a:void 0}}},Fj=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(r in t?n=t[r]:`raster_image`in t&&PS.includes(r)&&(n=t.raster_image),n){let{format:t,quality:r,width:i,height:a}=n,o=t&&VS.includes(t)?t:`webp`,s=await XS(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}`?IS.test(e.name)?e.name.replace(IS,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 ZS(e)],e.name,{type:e.type}):e},Ij=Ft([]),Lj={source:void 0,map:new Map},Rj=()=>{let e=j(Ij);return e!==Lj.source&&(Lj.source=e,Lj.map=new Map(e.map(e=>[e.path,e]))),Lj.map},zj=Ft([]),Bj=Ft(),Vj=Ft(),Hj=Ft({folder:void 0,files:[]}),Uj=Ft(),Wj=Ft(),Gj=It([Hj],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,i=new WeakMap,{max_file_size:a,transformations:o}=Pj().config,s=[];(async()=>{r.length&&o?(n(e=>({...e,processing:!0})),s=await Promise.all(r.map(async e=>{let t=await Fj(e,o);return t!==e&&i.set(t,e),t}))):s=[...r],n(()=>({processing:!1,undersizedFiles:s.filter(({size:e})=>e<=a),oversizedFiles:s.filter(({size:e})=>e>a),transformedFileMap:i}))})()}),Kj=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?Hd({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=mS(pS([d,c,c&&f.startsWith(`${c}/`)?f.slice(c.length+1):f]));return Rj().get(p)},qj=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?Hd({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?Hd({collectionName:n,fileName:r}):void 0,n?Hd({collectionName:n}):void 0,j(zd)].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=Rj().get(pS([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??Rj().get(e)}return pC(t).flatMap(n=>{let r=Hv(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>Kj({...a,file:e})):Kj({...a})}).filter(Boolean)[0]??Rj().get(e)},Jj=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=Rj().get(xd(e));if(a)return a;let{dirname:o=``,basename:s}=kd(e),c;return[i?Hd({collectionName:n,fileName:r,typedKeyPath:i}):void 0,Hd({collectionName:n,fileName:r}),Hd({collectionName:n}),j(zd),j(Rd).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?Ty(r):t?pC(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=Mj(i,{type:`media_folder`,collection:e,content:go(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:Jv(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=pS([i,s]),l=Rj().get(a);return l&&(c=l),!!l}),c},Yj=e=>!/^[/@]/.test(e),Xj=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=Ree(e.split(`#`)[0]);return Yj(a)?qj({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):Jj({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},Zj=e=>j(Ij).filter(t=>(0,Ld.default)(t.folder,e)),Qj=e=>j(Ij).filter(t=>kd(t.path).dirname===e);Bd.subscribe(()=>{Bj.set(void 0)});var $j=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.flatMap(e=>{if(e.includes(`*`)){let t=RegExp(`^${yd(e).replace(`\\*`,`.+`)}$`);return Object.keys(o).filter(e=>t.test(e))}return e});for(let e of s){let r=o[e]?await dC({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},eM=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=Ty(t);if(!a)return[];let o=Jv(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||Yj(a))&&[`image`,`file`].includes(hD({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`)){let i=Xj({value:a,entry:e,collectionName:t,fileName:n});if(i&&Gd(i.path).some(e=>e.collectionName===t&&e.fileName===n&&(r?e.entryRelative:!0)))return i}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&Hd({collectionName:t,fileName:n})?.entryRelative){let t=kd(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));j(Ij).forEach(n=>{let r=kd(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c},tM=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],nM=[`preSave`,`prePublish`],rM=new Set,iM=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>sd({data:_o(e),i18n:Object.fromEntries(t.map(e=>[e,{data:_o(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:``}),aM=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=j(uO),{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:d}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==d),{content:h,path:g}=p[d],_=eM({entry:n,collectionName:c,fileName:l});for(let t of rM){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:iM({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(nM.includes(e)&&nl(n)){let e=n.toJS();u(e.data)&&u(e.i18n)?(p[d].content=go(e.data),m.forEach(t=>{u(e.i18n[t]?.data)&&(p[t].content=go(e.i18n[t].data))})):p[d].content=go(e)}}},oM=Ft(!1),sM=Ft(!1),cM=Ft({show:!1,multiple:!1}),lM=Ft({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),uM=Ft(null),dM=Ft(null),fM=Ft(),pM=new Set,mM=new Map;typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var hM=s({strings:()=>gM}),gM={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`}},_M=s({strings:()=>vM}),vM={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:`ãã¬ãŒã³ããã¹ã`}},yM=Ft(!1),bM=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.js":hM,"../locales/ja.js":_M})).forEach(([e,{strings:t}])=>{let[,n]=e.match(/([a-zA-Z-]+)\.js/);$p(n,{_sui:t})}),gm({fallbackLocale:e,initialLocale:t})},xM=[`ar`,`fa`,`he`,`ur`],SM=e=>e&&xM.includes(e.split(`-`)[0])?`rtl`:`ltr`;Am.subscribe(e=>{document.documentElement.dir=SM(e)}),new MutationObserver(()=>{yM.set(document.dir===`rtl`)}).observe(document.documentElement,{attributes:!0,attributeFilter:[`dir`]});var CM=U(`<span> </span>`),wM={hash:`svelte-bmiuxm`,code:`.icon.small-arrow.svelte-bmiuxm {overflow:hidden;width:12px;text-indent:-6px;}`};function TM(e,t){J(e,wM);let n=co(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`name`]);var r=CM();Qa(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-bmiuxm`);var i=L(r,!0);O(r),B(()=>K(i,t.name)),G(e,r)}var EM=U(`<div><!> <!></div>`),DM={hash:`svelte-1le06ca`,code:`.alert.svelte-1le06ca {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-1le06ca {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-1le06ca {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-1le06ca {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-1le06ca {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`};function OM(e,t){J(e,DM);let n=co(t,[`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]);var r=EM();Qa(r,()=>({...n,role:`alert`,class:`sui alert ${t.status??``}`}),void 0,void 0,void 0,`svelte-1le06ca`);var i=L(r),a=e=>{var n=W();la(R(n),()=>t.icon),G(e,n)},o=e=>{{let n=P(()=>t.status===`success`?`check_circle`:t.status);TM(e,{get name(){return V(n)}})}};q(i,e=>{t.icon?e(a):e(o,-1)}),la(z(i,2),()=>t.children??E),O(r),G(e,r)}var kM,AM=()=>(kM??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),kM),jM=[`Ctrl`,`Meta`,`Alt`,`Shift`],MM=/^(?:Digit|Key)(.)$/,NM=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,code:o}=e;if(!o)return!1;let s=o.replace(MM,`$1`);return t.replace(/\bAccel\b/g,AM()?`Meta`:`Ctrl`).split(/\s+/).some(e=>{let t=e.split(`+`);return t.includes(`Ctrl`)&&!n||t.includes(`Meta`)&&!r||t.includes(`Alt`)&&!i||t.includes(`Shift`)&&!a||!t.includes(`Ctrl`)&&n||!t.includes(`Meta`)&&r||!t.includes(`Alt`)&&i||!t.includes(`Shift`)&&a?!1:t.filter(e=>!jM.includes(e)).every(e=>e.toUpperCase()===s.toUpperCase())})},PM=(e,t=``)=>{let n,r=t=>{let{disabled:r,offsetParent:i}=e;if(!i||!n||!NM(t,n))return;let{top:a,left:o}=e.getBoundingClientRect();r&&e.style.setProperty(`pointer-events`,`auto`),document.elementsFromPoint(o+4,a+4).includes(e)&&(t.preventDefault(),r||(e.focus(),e.click())),r&&e.style.removeProperty(`pointer-events`)},i=()=>{globalThis.removeEventListener(`keydown`,r,{capture:!0}),e.removeAttribute(`aria-keyshortcuts`)},a=()=>{n=t?t.replace(/\bAccel\b/g,AM()?`Meta`:`Ctrl`):void 0,n&&(globalThis.addEventListener(`keydown`,r,{capture:!0}),e.setAttribute(`aria-keyshortcuts`,n))};return a(),{update(e){i(),a()},destroy(){i()}}},FM=U(`<span role="none" class="sui truncated-text svelte-12puwsx"><!></span>`),IM={hash:`svelte-12puwsx`,code:`.truncated-text.svelte-12puwsx {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`};function LM(e,t){J(e,IM);let n=X(t,`lines`,3,1),r=X(t,`children`,3,void 0);var i=FM();la(L(i),()=>r()??E),O(i),B(()=>La(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),G(e,i)}var RM=(e=`e`,t=7)=>[e,gd(t)].join(`-`),zM=e=>{if(e)return new Promise(t=>{let n=new IntersectionObserver(([e])=>{e.isIntersecting&&(n.disconnect(),t(void 0))});globalThis.requestAnimationFrame(()=>{n.observe(e)})})},BM=class{open=Ft(!1);style=Ft({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 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`},l=j(this.style);(c.inset!==l.inset||c.zIndex!==l.zIndex||c.minWidth!==l.minWidth||c.maxWidth!==l.maxWidth||c.height!==l.height)&&this.style.set(c)})});constructor(e,t,n,r){this.anchorElement=e,this.popupElement=t,this.position=n,this.positionBaseElement=r??e,this.id=RM(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),Di(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&this.open.set(!j(this.open))}),Di(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.set(!j(this.open)))}),Di(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),new IntersectionObserver(([e])=>{!e.isIntersecting&&j(this.open)&&this.hideImmediately()}).observe(this.anchorElement),Di(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;j(this.open)&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&this.open.set(!1)}),Di(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.set(!1))}),this.open.subscribe(e=>{e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&(this.anchorElement.focus(),this.anchorElement.removeAttribute(`aria-controls`)),this.anchorElement.setAttribute(`aria-expanded`,String(e))}),new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}).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.set(!1),await Wx(50),this.popupElement.hidden=!1}},VM=(...e)=>new BM(...e);function HM(e,t){var n=W();la(R(n),()=>t.children??E),G(e,n)}var UM=U(`<dialog><!> <!></dialog>`),WM={hash:`svelte-157dkx3`,code:`dialog.svelte-157dkx3 {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-157dkx3::backdrop {background:transparent;}dialog.backdrop.svelte-157dkx3 {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-157dkx3 {transition-duration:50ms;opacity:1;}dialog.svelte-157dkx3:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-157dkx3 {transition-duration:1ms !important;}dialog.svelte-157dkx3:not(.active) {pointer-events:none !important;}dialog.svelte-157dkx3:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`};function GM(e,t){k(t,!0),J(e,WM);let n=e=>{var n=UM(),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))};Qa(n,()=>({...u,inert:!V(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[Va]:{backdrop:o(),open:V(p),active:V(m)}}),void 0,void 0,void 0,`svelte-157dkx3`);var g=L(n);la(g,()=>t.extraContent??E);var _=z(g,2),v=e=>{var n=W();la(R(n),()=>t.children??E),G(e,n)};q(_,e=>{(V(h)||l())&&e(v)}),O(n),oo(n,e=>i(e),()=>i()),G(e,n)},r=X(t,`open`,15,!1),i=X(t,`dialog`,15),a=X(t,`role`,3,`dialog`),o=X(t,`showBackdrop`,3,!1),s=X(t,`lightDismiss`,3,!1),c=X(t,`escapeDismiss`,3,!0),l=X(t,`keepContent`,3,!1),u=co(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=F(!1),m=F(!1),h=F(!1),g=async()=>new Promise(e=>{let t=n=>{n.target===i()&&(i().removeEventListener(`transitionend`,t),e())};i()?.addEventListener(`transitionend`,t)}),_=async()=>{!i()||i()?.open||(t.onOpening?.(new CustomEvent(`Opening`)),I(h,!0),i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),await Wx(0),I(p,!0),await g(),I(m,!0))},v=async()=>{if(!i()||!i().open)return;let{returnValue:e}=i();t.onClosing?.(new CustomEvent(`Closing`)),document.body.inert=!0,i().close(),document.body.inert=!1,I(m,!1),I(p,!1),await g(),I(h,!1),e===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),e===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:e}})),i(i().returnValue=``,!0)};return pr(()=>{r()?_():v()}),fo(()=>{let e=zi(HM,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Ui(e)}}),A({focus:d,close:f})}var KM=U(`<div role="none"><!></div>`),qM={hash:`svelte-1dryhzm`,code:`.content.svelte-1dryhzm {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-1dryhzm {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-1dryhzm .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-1dryhzm {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-1dryhzm .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-1dryhzm {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-1dryhzm {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-1dryhzm {transform:scale(90%);}.content.touch.combobox.svelte-1dryhzm .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-1dryhzm {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-1dryhzm {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`};function JM(e,t){k(t,!0),J(e,qM);let n=()=>M(V(y),`$style`,r),[r,i]=N(),a=e=>{var r=KM();let i,a;la(L(r),()=>t.children??E),O(r),oo(r,e=>c(e),()=>c()),B(()=>{Y(r,`hidden`,!o()),i=Fa(r,1,`content ${t.class??``} ${V(v)??``}`,`svelte-1dryhzm`,i,{touch:V(C)}),a=La(r,``,a,{inset:n().inset,"z-index":n().zIndex,"min-width":n().minWidth,"max-width":n().maxWidth,"max-height":n().height,visibility:n().inset?void 0:`hidden`})}),Oi(`mouseenter`,r,()=>{s(!0),f()&&window.clearTimeout(x)}),Oi(`mouseleave`,r,()=>{s(!1),f()&&(x=window.setTimeout(()=>{o(!1)},200))}),G(e,r)},o=X(t,`open`,15,!1),s=X(t,`hovered`,15,!1),c=X(t,`content`,15,void 0),l=X(t,`showBackdrop`,3,void 0),u=X(t,`position`,3,`bottom-left`),d=X(t,`positionBaseElement`,3,void 0),f=X(t,`parentDialogElement`,3,void 0),p=X(t,`touchOptimized`,3,!1),m=co(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),h=F(!1),g=F(void 0),_=F(!1),v=F(void 0),y=F(Bn(Ft({inset:void 0,zIndex:void 0,width:void 0,height:void 0}))),b,x=0,S=()=>{b=VM(t.anchor,V(g),u(),d()),Bt(I(y,b.style,!0),`$style`,r),b.open.subscribe(e=>{o(e)}),I(v,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),I(h,!0)};pr(()=>{f()&&!V(g)&&c()&&(I(g,f()),V(g).append(c()))}),pr(()=>{t.anchor&&V(g)&&!V(h)&&S()}),pr(()=>{f()&&o()&&b?.checkPosition()});let C=P(()=>p()&&V(_));fo(()=>{I(_,globalThis.matchMedia(`(pointer: coarse)`).matches,!0)});var w=W(),T=R(w),ee=e=>{a(e)},te=e=>{{let n=P(()=>l()??V(C));GM(e,uo(()=>m,{role:`none`,class:`popup`,get showBackdrop(){return V(n)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await Wx(100),!c())return;let n=c().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(c(c().tabIndex=-1,!0),c().focus())},get dialog(){return V(g)},set dialog(e){I(g,e,!0)},get open(){return o()},set open(e){o(e)},children:(e,t)=>{a(e)},$$slots:{default:!0}}))}};q(T,e=>{f()?e(ee):e(te,-1)}),G(e,w),A(),i()}var YM=U(`<span role="none" class="label svelte-cws60c"><!></span>`),XM=U(`<span role="none" class="label svelte-cws60c"><!></span>`),ZM=U(`<span role="none" class="label svelte-cws60c"><!></span>`),QM=U(`<!> <!>`,1),$M=U(`<button><!> <!> <!></button> <!>`,1),eN={hash:`svelte-cws60c`,code:`button.svelte-cws60c {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-cws60c {display:none !important;}button.svelte-cws60c:not(:disabled):focus-visible {z-index:1;}button.svelte-cws60c:is(.primary:where(.svelte-cws60c), .secondary:where(.svelte-cws60c), .tertiary:where(.svelte-cws60c), .ghost:where(.svelte-cws60c)) {justify-content:center;border-width:1px;}button.svelte-cws60c:is(.primary:where(.svelte-cws60c), .secondary:where(.svelte-cws60c), .tertiary:where(.svelte-cws60c), .ghost:where(.svelte-cws60c)) .label:where(.svelte-cws60c):only-child {padding:0 4px;}button.primary.svelte-cws60c {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-cws60c:is(:where(.svelte-cws60c):hover, :where(.svelte-cws60c):focus-visible, [aria-expanded=true]:where(.svelte-cws60c)) {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-cws60c: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-cws60c {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-cws60c:is(:where(.svelte-cws60c):hover, :where(.svelte-cws60c):focus-visible, [aria-expanded=true]:where(.svelte-cws60c)) {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-cws60c: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-cws60c {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-cws60c {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-cws60c:is(:where(.svelte-cws60c):hover, :where(.svelte-cws60c):focus-visible, [aria-expanded=true]:where(.svelte-cws60c)) {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-cws60c: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-cws60c {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-cws60c {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-cws60c:is(:where(.svelte-cws60c):hover, :where(.svelte-cws60c):focus-visible, [aria-expanded=true]:where(.svelte-cws60c)) {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-cws60c: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-cws60c {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-cws60c {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-cws60c .label:where(.svelte-cws60c) {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-cws60c .label:where(.svelte-cws60c) {text-decoration:underline;}button.link.svelte-cws60c:is(:where(.svelte-cws60c):hover, :where(.svelte-cws60c):focus, :where(.svelte-cws60c):active) .label:where(.svelte-cws60c) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-cws60c {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-cws60c .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-cws60c {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-cws60c {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-cws60c {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-cws60c:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-cws60c {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-cws60c {background-color:var(--sui-error-background-color);}button.svelte-cws60c .label:where(.svelte-cws60c) {padding:0 4px;}button.svelte-cws60c > * {pointer-events:none;}button.svelte-cws60c :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`};function tN(e,t){k(t,!0),J(e,eN);let n=X(t,`element`,15),r=X(t,`class`,3,``),i=X(t,`type`,3,`button`),a=X(t,`role`,3,`button`),o=X(t,`name`,3,void 0),s=X(t,`value`,3,void 0),c=X(t,`valueType`,19,()=>typeof s()),l=X(t,`hidden`,3,!1),u=X(t,`disabled`,3,!1),d=X(t,`readonly`,3,!1),f=X(t,`pressed`,3,void 0),p=X(t,`keyShortcuts`,3,void 0),m=X(t,`label`,3,``),h=X(t,`lines`,3,1),g=X(t,`variant`,3,void 0),_=X(t,`size`,3,`medium`),v=X(t,`iconic`,3,!1),y=X(t,`pill`,3,!1),b=X(t,`flex`,3,!1),x=X(t,`popupPosition`,3,`bottom-left`),S=X(t,`showPopupBackdrop`,3,!1),C=co(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=$M(),T=R(w);Qa(T,()=>({...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(),[Va]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-cws60c`);var ee=L(T);la(ee,()=>t.startIcon??E);var te=z(ee,2),ne=e=>{var n=W(),r=R(n),i=e=>{var t=YM();LM(L(t),{get lines(){return h()},children:(e,t)=>{rt();var n=Li();B(()=>K(n,m())),G(e,n)},$$slots:{default:!0}}),O(t),G(e,t)},a=e=>{var n=XM();la(L(n),()=>t.children??E),O(n),G(e,n)};q(r,e=>{m()?e(i):e(a,-1)}),G(e,n)},re=e=>{var n=QM(),r=R(n),i=e=>{var t=ZM();LM(L(t),{get lines(){return h()},children:(e,t)=>{rt();var n=Li();B(()=>K(n,m())),G(e,n)},$$slots:{default:!0}}),O(t),G(e,t)};q(r,e=>{m()&&e(i)}),la(z(r,2),()=>t.children??E),G(e,n)};q(te,e=>{g()===`link`?e(ne):e(re,-1)}),la(z(te,2),()=>t.endIcon??E),O(T),oo(T,e=>n(e),()=>n()),Ta(T,(e,t)=>PM?.(e,t),p);var ie=z(T,2),ae=e=>{JM(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=W();la(R(r),()=>t.popup),G(e,r)},$$slots:{default:!0}})};q(ie,e=>{t.popup&&e(ae)}),G(e,w),A()}var nN=U(`<div role="none"><!></div>`),rN=U(`<div role="none"><div role="alert" class="message svelte-398t4x"><!> <!></div> <!></div>`),iN={hash:`svelte-398t4x`,code:`.infobar.svelte-398t4x {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-398t4x {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-398t4x {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-398t4x {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-398t4x {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-398t4x {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-398t4x button {font-size:inherit !important;}.message.svelte-398t4x .icon {font-size:16px; /* !hardcoded */}`};function aN(e,t){k(t,!0),J(e,iN);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`show`,15,!0),o=X(t,`dismissible`,3,!0),s=X(t,`status`,3,`info`),c=X(t,`children`,3,void 0),l=X(t,`icon`,3,void 0);var u=W(),d=R(u),f=e=>{var t=rN(),r=L(t),i=L(r),u=e=>{var t=W();la(R(t),l),G(e,t)},d=e=>{{let t=P(()=>s()===`success`?`check_circle`:s());TM(e,{get name(){return V(t)}})}};q(i,e=>{l()?e(u):e(d,-1)}),la(z(i,2),()=>c()??E),O(r);var f=z(r,2),p=e=>{var t=nN(),r=L(t);{let e=P(()=>n()(`_sui.dismiss`));tN(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return V(e)},onclick:()=>{a(!1)},children:(e,t)=>{TM(e,{name:`close`})},$$slots:{default:!0}})}O(t),G(e,t)};q(f,e=>{o()&&e(p)}),O(t),B(()=>Fa(t,1,`infobar ${s()??``}`,`svelte-398t4x`)),G(e,t)};q(d,e=>{a()&&e(f)}),G(e,u),A(),i()}var oN=U(`<div><!></div>`),sN={hash:`svelte-g5krvy`,code:`.bottom-navigation.svelte-g5krvy {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-g5krvy:is([inert]:where(.svelte-g5krvy), [hidden]:where(.svelte-g5krvy)) {display:none;}.bottom-navigation.svelte-g5krvy .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`};function cN(e,t){J(e,sN);let n=co(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=oN();Qa(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-g5krvy`),la(L(r),()=>t.children??E),O(r),G(e,r)}var lN=U(`<div><!></div>`),uN={hash:`svelte-1924fci`,code:`.button-group.svelte-1924fci {flex:none;display:inline-flex;align-items:center;}`};function dN(e,t){J(e,uN);let n=co(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=lN();Qa(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-1924fci`),la(L(r),()=>t.children??E),O(r),G(e,r)}var fN=U(`<div role="none" class="sui floating-action-button-wrapper svelte-11v42d8"><!></div>`),pN={hash:`svelte-11v42d8`,code:`.floating-action-button-wrapper.svelte-11v42d8 {display:contents;}
|
|
568
568
|
@media (width < 768px) {.floating-action-button-wrapper.svelte-11v42d8 {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-11v42d8 button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-11v42d8 button .icon {font-size:32px;}
|
|
569
569
|
}`};function mN(e,t){J(e,pN);let n=X(t,`children`,3,void 0);var r=fN();la(L(r),()=>n()??E),O(r),G(e,r)}var hN=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}},gN=/\p{Diacritic}/gu,_N=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(gN,``).toLocaleLowerCase():``),vN={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}},yN=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=RM(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t;let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o}=vN[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 Wx(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`,e=>{this.onClick(e)}),e.addEventListener(`keydown`,e=>{this.onKeyDown(e)}),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:hN(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=j(yM);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=j(yM),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)}onUpdate({searchTerms:e}){let t=_N(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=_N(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}}))}},bN=(e,t)=>{let n=new yN(e,t);return{update(e){n.onUpdate(e)}}},xN=U(`<div><div role="none" class="inner svelte-1foei43"><!></div></div>`),SN={hash:`svelte-1foei43`,code:`.select-button-group.svelte-1foei43 {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-1foei43:focus-visible {outline-width:0 !important;}.select-button-group.svelte-1foei43 button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-1foei43 button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-1foei43 button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-1foei43 button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-1foei43 button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-1foei43 [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-1foei43 [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-1foei43 [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-1foei43 {display:contents;}`};function CN(e,t){J(e,SN);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`readonly`,3,!1),a=X(t,`required`,3,!1),o=X(t,`invalid`,3,!1),s=co(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]);var c=xN();Qa(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-1foei43`);var l=L(c);la(L(l),()=>t.children??E),O(l),O(c),Ta(c,e=>bN?.(e)),B(()=>l.inert=r()),G(e,c)}function wN(e,t){k(t,!0);let n=X(t,`selected`,15,!1),r=co(t,[`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`]);tN(e,uo(()=>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)}})),A()}var TN=U(`<!> <!>`,1);function EN(e,t){k(t,!0);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=X(t,`popupPosition`,3,`bottom-left`),a=X(t,`popupPositionBaseElement`,3,void 0),o=X(t,`showPopupBackdrop`,3,!1),s=X(t,`label`,3,``),c=X(t,`variant`,3,void 0),l=X(t,`size`,3,`medium`),u=X(t,`iconic`,3,!1),d=co(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),f=F(void 0);var p={focus:()=>{V(f)?.focus()}},m=TN(),h=R(m);{let e=e=>{var n=W();la(R(n),()=>t.startIcon??E),G(e,n)},i=e=>{var n=W();la(R(n),()=>t.children??E),G(e,n)},a=e=>{var n=W(),r=R(n),i=e=>{var n=W();la(R(n),()=>t.endIcon),G(e,n)},a=e=>{TM(e,{name:`more_vert`})},o=e=>{TM(e,{name:`arrow_drop_down`,class:`small-arrow`})};q(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),G(e,n)};tN(h,uo(()=>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 V(f)},set element(e){I(f,e,!0)},startIcon:e,children:i,endIcon:a,$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}return JM(z(h,2),{get anchor(){return V(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=W();la(R(r),()=>t.popup??E),G(e,r)},$$slots:{default:!0}}),G(e,m),A(p)}var DN=U(`<div role="group" class="sui split-button svelte-15xvms7"><!> <!></div>`),ON={hash:`svelte-15xvms7`,code:`.split-button.svelte-15xvms7 {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-15xvms7 button {margin:0;}.split-button.svelte-15xvms7 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-15xvms7 button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`};function kN(e,t){k(t,!0),J(e,ON);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`hidden`,3,!1),o=X(t,`disabled`,3,!1),s=X(t,`label`,3,``),c=X(t,`variant`,3,void 0),l=X(t,`size`,3,`medium`),u=X(t,`popupPosition`,3,`bottom-left`),d=X(t,`showPopupBackdrop`,3,!1),f=co(t,[`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),p=F(void 0);var m=DN(),h=L(m);tN(h,uo(()=>f,{get hidden(){return a()},get disabled(){return o()},get label(){return s()},get variant(){return c()},get size(){return l()}}));var g=z(h,2);{let e=e=>{var n=W(),r=R(n),i=e=>{var n=W();la(R(n),()=>t.chevronIcon),G(e,n)},a=e=>{TM(e,{name:`arrow_drop_down`,class:`small-arrow`})};q(r,e=>{t.chevronIcon?e(i):e(a,-1)}),G(e,n)},r=e=>{var n=W();la(R(n),()=>t.popup??E),G(e,n)},i=P(()=>n()(`_sui.split_button.more_options`));EN(g,{iconic:!0,get hidden(){return a()},get disabled(){return o()},get variant(){return c()},get size(){return l()},get"aria-label"(){return V(i)},get popupPosition(){return u()},get popupPositionBaseElement(){return V(p)},get showPopupBackdrop(){return d()},endIcon:e,popup:r,$$slots:{endIcon:!0,popup:!0}})}O(m),oo(m,e=>I(p,e),()=>V(p)),B(e=>{Y(m,`hidden`,a()),Y(m,`aria-hidden`,a()),Y(m,`aria-disabled`,o()),Y(m,`aria-label`,e)},[()=>n()(`_sui.split_button.x_options`,{values:{name:s()}})]),G(e,m),A(),i()}var AN=U(`<div></div>`),jN={hash:`svelte-k9nuhe`,code:`.divider.svelte-k9nuhe {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-k9nuhe {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-k9nuhe {margin:0 8px;width:1px;height:100%;}`};function MN(e,t){J(e,jN);let n=X(t,`hidden`,3,!1),r=X(t,`orientation`,3,`horizontal`),i=co(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`]);var a=AN();Qa(a,()=>({...i,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r()}),void 0,void 0,void 0,`svelte-k9nuhe`),G(e,a)}var NN=U(`<div></div>`),PN={hash:`svelte-1kkztz3`,code:`.spacer.flex.svelte-1kkztz3:not([hidden]) {display:block;flex:auto;}.spacer.svelte-1kkztz3:not(.flex) {width:8px;height:8px;}`};function FN(e,t){J(e,PN);let n=X(t,`flex`,3,!1),r=co(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]);var i=NN();Qa(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[Va]:{flex:n()}}),void 0,void 0,void 0,`svelte-1kkztz3`),G(e,i)}Ai([`click`]);var IN=U(`<div><div role="none" class="inner svelte-sg498o"><!></div></div>`),LN={hash:`svelte-sg498o`,code:`.checkbox-group.svelte-sg498o {display:inline-flex;}.checkbox-group.horizontal.svelte-sg498o {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-sg498o {gap:4px;flex-direction:column;}
|
|
570
570
|
@media (pointer: coarse) {.checkbox-group.vertical.svelte-sg498o {gap:8px;}
|
|
@@ -702,7 +702,7 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
|
|
|
702
702
|
::after {scroll-behavior:auto;transition-duration:1ms !important;}
|
|
703
703
|
}::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-jlevjw 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-jlevjw {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-jlevjw {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-jlevjw {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-jlevjw {display:flex;flex-direction:column;overflow:hidden;}`};function VX(e,t){k(t,!0),J(e,BX);let n=X(t,`orientation`,3,`horizontal`),r=co(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=F(void 0);fo(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.onchange=()=>{n()},globalThis.setTimeout(()=>{V(a)?.remove()},1e3)});var o=zX();wa(`jlevjw`,e=>{var t=RX(),n=R(t);na(z(n,8),17,()=>i,Qi,(e,t)=>{var n=LX(),r=R(n),i=z(r,2);B(()=>{Y(r,`href`,V(t)),Y(i,`href`,V(t))}),G(e,n)}),B(e=>Y(n,`content`,e),[()=>[`width=device-width`,`initial-scale=1`,`maximum-scale=1`,`interactive-widget=resizes-content`].join(`, `)]),G(e,t)});var s=R(o);La(s,``,{},{opacity:`0`}),oo(s,e=>I(a,e),()=>V(a));var c=z(s,2),l=e=>e.preventDefault(),u=e=>e.preventDefault(),d=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()};Qa(c,()=>({...r,role:`none`,class:`sui app-shell ${n()??``}`,ondragover:l,ondrop:u,oncontextmenu:d}),void 0,void 0,void 0,`svelte-jlevjw`),la(L(c),()=>t.children??E),O(c),G(e,o),A()}var HX=U(`<div role="none" class="sui empty-state svelte-avr5lf"><!></div>`),UX={hash:`svelte-avr5lf`,code:`.empty-state.svelte-avr5lf {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`};function WX(e,t){J(e,UX);let n=X(t,`children`,3,void 0);var r=HX();la(L(r),()=>n()??E),O(r),G(e,r)}var GX=U(`<div><div role="none" class="inner svelte-140ol1"><!></div></div>`),KX={hash:`svelte-140ol1`,code:`.inner.svelte-140ol1 {display:contents;}`};function qX(e,t){J(e,KX);let n=X(t,`hidden`,3,!1),r=X(t,`disabled`,3,!1),i=co(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`children`]);var a=GX();Qa(a,()=>({...i,role:`group`,class:`sui group ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r()}),void 0,void 0,void 0,`svelte-140ol1`);var o=L(a);la(L(o),()=>t.children??E),O(o),O(a),B(()=>o.inert=r()),G(e,a)}bM();var JX=(e,t,n,r)=>{let i=vC(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])=>wd(e,t))},YX=(e,t,n)=>n?n.test(String(e??``)):e===t,XX=(e,t,n,r)=>(e.sort((e,r)=>{let i=t(e),a=t(r);return n?wd(i,a):i-a}),r===`descending`&&e.reverse(),e),ZX=async(e,t,n)=>{let{databaseName:r}=e??{},i=r?new Rb(r,`ui-settings`):null;n.set(await i?.get(t)??{}),n.subscribe(e=>{(async()=>{try{(0,Ld.default)(e,await i?.get(t))||await i?.set(t,e)}catch{}})()})},QX=(e,{field:t,pattern:n}={field:``,pattern:``})=>{if(!t)return e;if(t===`fileType`)return e.filter(({path:e})=>ix(e)===n);let r=vC(n);return e.filter(e=>{let i=e[t];return YX(i,n,r)})},$X=(e,{field:t,pattern:n}={field:``,pattern:void 0})=>{if(!t)return e.length?{"*":e}:{};let r=j(Z)(`other`);return Object.fromEntries(JX(e,n,e=>e[t],r))},eZ=Ft(),tZ=async({repository:e})=>{await ZX(e,`assets-view`,eZ),Bd.subscribe(e=>{let t=j(eZ)?.[e?.internalPath??`*`]??structuredClone(cZ);(0,Ld.default)(t,j(lZ))||lZ.set(t)}),lZ.subscribe(e=>{let t=j(Bd)?.internalPath??`*`;(0,Ld.default)(e,j(eZ)?.[t]??{})||eZ.update(n=>({...n,[t]:e}))})},nZ=(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]??``},rZ=(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 XX(r,e=>{let n=nZ(e,t);return i===String?n??``:Number(n??0)},i===String,n),r},iZ=Ft(!1),aZ=Ft(!1),oZ=It([Hj],([e],t)=>{t(!!e.files.length)}),sZ=({collectionName:e,fileName:t,internalPath:n})=>{if(e===void 0)return j(Z)(n===void 0?`all_assets`:`global_assets`);let r=Ty(e),i=r?Ey(r):e;if(!t)return i;let a=r?Bv(r,t):void 0;return`${i} ⺠${a?Vv(a):t}`},cZ={type:`grid`,showInfo:!0,sort:{key:`name`,order:`ascending`}},lZ=Ft({type:`grid`,showInfo:!0}),uZ=It([Ij,Bd],([e,t],n)=>{e&&t&&t.internalPath!==void 0?n(e.filter(({folder:e})=>(0,Ld.default)(e,t))):n(e?[...e]:[])}),dZ=It([uZ,lZ],([e,t],n)=>{let r=[...e];r=rZ(r,t.sort),r=QX(r,t.filter);let i=$X(r,t.group);(0,Ld.default)(j(dZ),i)||n(i)});CA.subscribe(e=>{e&&!j(eZ)&&tZ(e)}),uZ.subscribe(e=>{zj.set([]),j(ck).devModeEnabled&&console.info(`listedAssets`,e)});var fZ=It([oM,iZ],([e,t])=>e||t),pZ=Ft(``),mZ=Ft(``),hZ=(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(i)}},gZ=null,_Z=(e,t)=>{if(!document.startViewTransition||gZ){t();return}let n={types:[e],update:async()=>{t(),await Wx(50),await new Promise(e=>{an(()=>{e(void 0)})})}};try{gZ=document.startViewTransition(n),gZ.finished.finally(()=>{gZ=null})}catch{t()}},vZ=(e,t,n)=>{let{isTrusted:r,oldURL:i,newURL:a}=e;if(!r){t();return}let o=hZ(i).path,s=hZ(a).path,c=n.test(o)&&n.test(s),l=o.split(`/`).length,u=s.split(`/`).length;_Z(c&&l>u?`backwards`:c&&l<u?`forwards`:`unknown`,()=>t())},yZ=async(e,{state:t={},replaceState:n=!1,notifyChange:r=!0,transitionType:i=`unknown`}={})=>{let{path:a}=hZ();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&&_Z(i,()=>{window.dispatchEvent(new HashChangeEvent(`hashchange`,{oldURL:l,newURL:u}))})},bZ=(e,t={})=>{let n=`backwards`;window.history.state?.from?_Z(n,()=>{window.history.back()}):yZ(e,{...t,transitionType:n})},xZ=()=>{let{display_url:e,_siteURL:t}=j(fj);window.open(e||t||`/`,`_blank`)},SZ=Ft({message:``,context:`authentication`}),CZ=Ft(!0),wZ=Ft(!1),TZ=async()=>{await zb.set(`sveltia-cms.user`,{}),uO.set(void 0),CZ.set(!0)},EZ=()=>{SZ.set({message:``,context:`authentication`})},DZ=(e,t=`authentication`)=>{let n=e.cause?.message||j(Z)(`unexpected_error`);e.name===`NotFoundError`&&(n=j(Z)(`sign_in_error.not_project_root`)),e.name===`AbortError`&&(n=j(Z)(j(SA)===`local`?`sign_in_error.picker_dismissed`:`sign_in_error.authentication_aborted`)),SZ.set({message:n,context:t}),console.error(e.name,e.message,e.cause)},OZ=()=>{let{path:e}=hZ(),{encodedData:t}=e.match(/^\/signin\/(?<encodedData>.+)/)?.groups??{};if(!t)return{_user:void 0,copiedPrefs:void 0};yZ(``,{replaceState:!0});let n,r;try{let e=JSON.parse(atob(t));u(e)&&typeof e.token==`string`&&(n={token:e.token},u(e.prefs)&&(r=e.prefs))}catch{}return{_user:n,copiedPrefs:r}},kZ=async()=>{let e=await zb.get(`sveltia-cms.user`)||await zb.get(`decap-cms-user`)||await zb.get(`netlify-cms-user`);if(u(e)&&typeof e.backendName==`string`)return e},AZ=e=>{let t=e?.backendName===`local`||e?.backendName===`proxy`?`local`:j(fj).backend.name;return SA.set(t),j(CA)},jZ=async()=>{EZ();let e,t;if({_user:e,copiedPrefs:t}=OZ(),e??=await kZ(),!e)return;let n=AZ(e);if(e&&n){uO.set(e);let{token:t,refreshToken:r}=e;wZ.set(!0);try{e=await n.signIn({token:t,refreshToken:r,auto:!0})}catch{e=void 0,uO.set(void 0)}}if(wZ.set(!1),CZ.set(!e),!(!e||!n)){uO.set(e),t&&ck.update(e=>({...e,...t}));try{await n.fetchFiles()}catch(e){[401,403,404].includes(e.cause?.status)?CZ.set(!0):DZ(e,`dataFetch`),await TZ()}}},MZ=async(e,t)=>{EZ(),SA.set(e);let n=j(CA);if(!n)return;let r;wZ.set(!0);try{r=await n.signIn({token:t,auto:!1})}catch(e){wZ.set(!1),CZ.set(!0),t&&e.cause?.status===401?DZ(Error(`Invalid token`,{cause:{message:j(Z)(`sign_in_error.invalid_token`)}})):DZ(e);return}if(wZ.set(!1),CZ.set(!r),r){uO.set(r);try{await n.fetchFiles()}catch(e){DZ(e,`dataFetch`),await TZ()}}},NZ=async()=>{await j(CA)?.signOut(),await TZ(),SA.set(void 0),Av.set(!1);let e=j(fj)?.logout_redirect_url;e&&(window.location.href=e)},PZ={ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]},FZ=(e,t)=>kw(e.replace(`<a>`,`<a href="${t}" target="_blank">`),PZ),IZ=U(`<div role="alert" class="message"> </div>`),LZ=U(`<div role="alert"><!></div>`),RZ=U(`<div role="none"><!></div>`),zZ=U(`<!> <!> <!>`,1),BZ=U(`<!> <!> <!>`,1),VZ=U(`<div role="alert" class="error iconic svelte-1ff54ya"><!> </div>`),HZ=U(` <!>`,1),UZ=U(`<div role="none" class="buttons svelte-1ff54ya"><!> <!></div> <!>`,1),WZ={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);}`};function GZ(e,t){k(t,!0),J(e,WZ);let n=()=>M(fj,`$cmsConfig`,l),r=()=>M(ED,`$isLocalHost`,l),i=()=>M(SZ,`$signInError`,l),a=()=>M(wZ,`$signingIn`,l),o=()=>M(Z,`$_`,l),s=()=>M(DD,`$isLocalBackendSupported`,l),c=()=>M(OD,`$isBrave`,l),[l,u]=N(),d=F(!1),f=F(``),p=P(()=>n()?.backend?.name),m=P(()=>V(p)?vA[V(p)]:null),h=P(()=>V(p)===`test-repo`),g=P(()=>V(h)?void 0:n()?.backend?.repo?.split(`/`).pop()),_=P(()=>r()&&!V(h));fo(()=>{i().message||jZ()});var v=UZ(),y=R(v),b=L(y),x=e=>{var t=IZ(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>o()(`signing_in`)]),G(e,t)},S=e=>{var t=BZ(),n=R(t),r=e=>{var t=zZ(),n=R(t);{let e=P(()=>o()(`work_with_local_repo`)),t=P(()=>!s());tN(n,{variant:`primary`,get label(){return V(e)},get disabled(){return V(t)},onclick:async()=>{await MZ(`local`)}})}var r=z(n,2),a=e=>{var t=LZ(),n=L(t),r=e=>{var t=W();ca(R(t),()=>FZ(o()(`local_workflow.disabled`),`https://sveltiacms.app/en/docs/workflows/local#enabling-file-system-access-api-in-brave`)),G(e,t)},i=e=>{var t=Li();B(e=>K(t,e),[()=>o()(`local_workflow.unsupported_browser`)]),G(e,t)};q(n,e=>{c()?e(r):e(i,-1)}),O(t),G(e,t)},l=e=>{var t=RZ(),n=L(t),r=e=>{var t=Li();B(e=>K(t,e),[()=>o()(`work_with_local_repo_description`,{values:{repo:V(g)}})]),G(e,t)},i=e=>{var t=Li();B(e=>K(t,e),[()=>o()(`work_with_local_repo_description_no_repo`)]),G(e,t)};q(n,e=>{V(g)?e(r):e(i,-1)}),O(t),G(e,t)};q(r,e=>{s()?i().message||e(l,1):e(a)}),FN(z(r,2),{}),G(e,t)};q(n,e=>{V(_)&&e(r)});var a=z(n,2);{let e=P(()=>V(_)?`secondary`:`primary`),t=P(()=>V(h)?o()(`work_with_test_repo`):o()(`sign_in_with_x`,{values:{service:V(m).label}}));tN(a,{get variant(){return V(e)},get label(){return V(t)},onclick:async()=>{await MZ(V(p))}})}var l=z(a,2),u=e=>{{let t=P(()=>o()(`sign_in_with_x_using_token`,{values:{service:V(m).label}}));tN(e,{variant:`secondary`,get label(){return V(t)},onclick:()=>{I(d,!0)}})}};q(l,e=>{V(h)||e(u)}),G(e,t)};q(b,e=>{a()?e(x):V(m)&&e(S,1)});var C=z(b,2),w=e=>{var t=VZ(),n=L(t);TM(n,{name:`error`});var r=z(n);O(t),B(()=>K(r,` ${i().message??``}`)),G(e,t)};q(C,e=>{i().message&&i().context===`authentication`&&e(w)}),O(y);var T=z(y,2);{let e=P(()=>o()(`sign_in_using_pat_title`)),t=P(()=>({spellcheck:!1,"aria-label":o()(`personal_access_token`)})),n=P(()=>o()(`sign_in`)),r=P(()=>!V(f).trim());iP(T,{get title(){return V(e)},get textboxAttrs(){return V(t)},get okLabel(){return V(n)},get okDisabled(){return V(r)},onOk:async()=>{await MZ(V(p),V(f).trim())},get open(){return V(d)},set open(e){I(d,e,!0)},get value(){return V(f)},set value(e){I(f,e,!0)},children:(e,t)=>{rt();var n=HZ(),r=R(n),i=z(r),a=e=>{var t=W();ca(R(t),()=>FZ(o()(`sign_in_using_pat_link`,{values:{service:V(m).label}}),V(m).repository.tokenPageURL)),G(e,t)};q(i,e=>{V(m)?.repository?.tokenPageURL&&e(a)}),B(e=>K(r,`${e??``} `),[()=>o()(`sign_in_using_pat_description`)]),G(e,n)},$$slots:{default:!0}})}G(e,v),A(),u()}var KZ=`<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>`,qZ=`Sveltia CMS`,JZ=`data:image/svg+xml;base64,${btoa(KZ)}`,YZ=It([fj],([e])=>e?.app_title||`Sveltia CMS`),XZ=It([fj],([e])=>e?.logo?.src||e?.logo_url||JZ),ZZ=It(XZ,e=>{let t=e.match(/^data:(image\/[a-zA-Z0-9.+-]+);base64,/);return t?t[1]:Yb.getType(e)??void 0}),QZ=(e,t=E)=>{var n=W();ca(R(n),()=>kw(aE.parseInline(t()),{ALLOWED_TAGS:[`a`,`code`],ALLOWED_ATTR:[`href`]})),G(e,n)},$Z=U(`<img alt="" class="logo svelte-7ua6x9"/> <h1 class="svelte-7ua6x9"> </h1>`,1),eQ=U(`<li><!></li>`),tQ=U(`<div role="alert" class="message"><div role="none"> </div> <ul class="error svelte-7ua6x9"></ul></div>`),nQ=U(`<div role="alert" class="message"> </div>`),rQ=U(`<div role="alert" class="message"> </div>`),iQ=U(`<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-7ua6x9"><!></div></div> <!>`,1),aQ=U(`<div role="alert" class="message"> </div>`),oQ=U(`<div role="alert" class="message"> </div> <!>`,1),sQ=U(`<div role="none" class="powered-by svelte-7ua6x9"> </div>`),cQ=U(`<div role="none" class="container svelte-7ua6x9"><div role="none" class="inner svelte-7ua6x9"><!> <!></div></div> <!>`,1),lQ={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;}
|
|
704
704
|
@media (width < 768px) {.container.svelte-7ua6x9 .logo:where(.svelte-7ua6x9) {height:120px;}
|
|
705
|
-
}.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 uQ(e,t){k(t,!0),J(e,lQ);let n=()=>M(hj,`$cmsConfigLoaded`,g),r=()=>M(Z,`$_`,g),i=()=>M(YZ,`$appTitle`,g),a=()=>M(XZ,`$appLogoURL`,g),o=()=>M(mj,`$cmsConfigErrors`,g),s=()=>M(sk,`$prefsError`,g),c=()=>M(fj,`$cmsConfig`,g),l=()=>M(ck,`$prefs`,g),u=()=>M(SZ,`$signInError`,g),d=()=>M(yO,`$inAuthPopup`,g),f=()=>M(uO,`$user`,g),p=()=>M(CZ,`$unauthenticated`,g),m=()=>M(Av,`$dataLoaded`,g),h=()=>M(jv,`$dataLoadedProgress`,g),[g,_]=N();pr(()=>{n()&&Vt(mZ,r()(`welcome_message`,{values:{name:i()}}))});var v=cQ(),y=R(v),b=L(y),x=L(b),S=e=>{var t=$Z(),n=R(t),r=z(n,2),o=L(r,!0);O(r),B(()=>{Y(n,`src`,a()),K(o,i())}),G(e,t)};q(x,e=>{n()&&e(S)});var C=z(x,2),w=e=>{var t=tQ(),n=L(t),i=L(n,!0);O(n);var a=z(n,2);na(a,5,o,e=>e,(e,t)=>{var n=eQ();QZ(L(n),()=>V(t)),O(n),G(e,n)}),O(a),O(t),B(e=>K(i,e),[()=>r()(o().length===1?`config.one_error`:`config.many_errors`)]),G(e,t)},T=e=>{var t=nQ(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`prefs.error.${s().type}`)]),G(e,t)},ee=e=>{var t=rQ(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`loading_cms_config`)]),G(e,t)},te=e=>{var t=iQ(),n=R(t),i=L(n),a=L(i,!0);O(i);var o=z(i,2);QZ(L(o),()=>u().message),O(o),O(n),GZ(z(n,2),{}),B(e=>K(a,e),[()=>r()(`loading_site_data_error`)]),G(e,t)},ne=e=>{var t=aQ(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`authorizing`)]),G(e,t)},re=e=>{GZ(e,{})},ie=e=>{var t=oQ(),n=R(t),i=L(n,!0);O(n);var a=z(n,2),o=e=>{HP(e,{get now(){return h()}})};q(a,e=>{h()!==void 0&&e(o)}),B(e=>K(i,e),[()=>r()(`loading_site_data`)]),G(e,t)};q(C,e=>{o().length?e(w):s()?e(T,1):!c()||!l()?e(ee,2):u().message&&u().context===`dataFetch`?e(te,3):d()?e(ne,4):!f()||p()?e(re,5):m()||e(ie,6)}),O(b),O(y);var E=z(y,2),ae=e=>{var t=sQ(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`powered_by`,{values:{name:qZ}})]),G(e,t)};q(E,e=>{n()&&i()!==`Sveltia CMS`&&e(ae)}),G(e,v),A(),_()}var dQ=U(` <!>`,1),fQ=U(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1);function pQ(e,t){k(t,!0);let n=()=>M(CA,`$backend`,a),r=()=>M(fj,`$cmsConfig`,a),i=()=>M(Z,`$_`,a),[a,o]=N(),s=0,c=F(!1),l=F(`none`),u=async()=>{n()?.checkStatus&&I(l,await n().checkStatus(),!0)},d=()=>{u(),s=window.setInterval(()=>{u()},3e5)},f=()=>{window.clearInterval(s),I(l,`none`)},p=()=>{V(c)&&(n()?.checkStatus&&!n().repository?.isSelfHosted?d():f())};fo(()=>(I(c,!0),()=>{f()})),pr(()=>{V(c),n(),r(),p()});var m=W(),h=R(m),g=e=>{var t=fQ(),r=R(t);{let e=P(()=>V(l)===`major`?`error`:`warning`);Zi(r,()=>({"--sui-infobar-message-justify-content":`center`})),aN(r.lastChild,{get status(){return V(e)},children:(e,t)=>{rt();var r=dQ(),a=R(r),o=z(a);{let e=P(()=>i()(`details`));tN(o,{variant:`link`,get label(){return V(e)},onclick:()=>{window.open(n()?.statusDashboardURL,`_blank`)}})}B(e=>K(a,`${e??``} `),[()=>i()(`backend_status.${V(l)}_incident`,{values:{service:n()?.label}})]),G(e,r)},$$slots:{default:!0}}),O(r)}G(e,t)},_=P(()=>[`minor`,`major`].includes(V(l)));q(h,e=>{V(_)&&e(g)}),G(e,m),A(),o()}var mQ=U(` <!>`,1),hQ=U(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1);function gQ(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=0,o=0,s=F(!1),c=async()=>{try{let e=await fetch(`https://unpkg.com/@sveltia/cms/package.json`);if(!e.ok)return;let{version:t}=await e.json();t&&t!==`0.151.
|
|
705
|
+
}.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 uQ(e,t){k(t,!0),J(e,lQ);let n=()=>M(hj,`$cmsConfigLoaded`,g),r=()=>M(Z,`$_`,g),i=()=>M(YZ,`$appTitle`,g),a=()=>M(XZ,`$appLogoURL`,g),o=()=>M(mj,`$cmsConfigErrors`,g),s=()=>M(sk,`$prefsError`,g),c=()=>M(fj,`$cmsConfig`,g),l=()=>M(ck,`$prefs`,g),u=()=>M(SZ,`$signInError`,g),d=()=>M(yO,`$inAuthPopup`,g),f=()=>M(uO,`$user`,g),p=()=>M(CZ,`$unauthenticated`,g),m=()=>M(Av,`$dataLoaded`,g),h=()=>M(jv,`$dataLoadedProgress`,g),[g,_]=N();pr(()=>{n()&&Vt(mZ,r()(`welcome_message`,{values:{name:i()}}))});var v=cQ(),y=R(v),b=L(y),x=L(b),S=e=>{var t=$Z(),n=R(t),r=z(n,2),o=L(r,!0);O(r),B(()=>{Y(n,`src`,a()),K(o,i())}),G(e,t)};q(x,e=>{n()&&e(S)});var C=z(x,2),w=e=>{var t=tQ(),n=L(t),i=L(n,!0);O(n);var a=z(n,2);na(a,5,o,e=>e,(e,t)=>{var n=eQ();QZ(L(n),()=>V(t)),O(n),G(e,n)}),O(a),O(t),B(e=>K(i,e),[()=>r()(o().length===1?`config.one_error`:`config.many_errors`)]),G(e,t)},T=e=>{var t=nQ(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`prefs.error.${s().type}`)]),G(e,t)},ee=e=>{var t=rQ(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`loading_cms_config`)]),G(e,t)},te=e=>{var t=iQ(),n=R(t),i=L(n),a=L(i,!0);O(i);var o=z(i,2);QZ(L(o),()=>u().message),O(o),O(n),GZ(z(n,2),{}),B(e=>K(a,e),[()=>r()(`loading_site_data_error`)]),G(e,t)},ne=e=>{var t=aQ(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`authorizing`)]),G(e,t)},re=e=>{GZ(e,{})},ie=e=>{var t=oQ(),n=R(t),i=L(n,!0);O(n);var a=z(n,2),o=e=>{HP(e,{get now(){return h()}})};q(a,e=>{h()!==void 0&&e(o)}),B(e=>K(i,e),[()=>r()(`loading_site_data`)]),G(e,t)};q(C,e=>{o().length?e(w):s()?e(T,1):!c()||!l()?e(ee,2):u().message&&u().context===`dataFetch`?e(te,3):d()?e(ne,4):!f()||p()?e(re,5):m()||e(ie,6)}),O(b),O(y);var E=z(y,2),ae=e=>{var t=sQ(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`powered_by`,{values:{name:qZ}})]),G(e,t)};q(E,e=>{n()&&i()!==`Sveltia CMS`&&e(ae)}),G(e,v),A(),_()}var dQ=U(` <!>`,1),fQ=U(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1);function pQ(e,t){k(t,!0);let n=()=>M(CA,`$backend`,a),r=()=>M(fj,`$cmsConfig`,a),i=()=>M(Z,`$_`,a),[a,o]=N(),s=0,c=F(!1),l=F(`none`),u=async()=>{n()?.checkStatus&&I(l,await n().checkStatus(),!0)},d=()=>{u(),s=window.setInterval(()=>{u()},3e5)},f=()=>{window.clearInterval(s),I(l,`none`)},p=()=>{V(c)&&(n()?.checkStatus&&!n().repository?.isSelfHosted?d():f())};fo(()=>(I(c,!0),()=>{f()})),pr(()=>{V(c),n(),r(),p()});var m=W(),h=R(m),g=e=>{var t=fQ(),r=R(t);{let e=P(()=>V(l)===`major`?`error`:`warning`);Zi(r,()=>({"--sui-infobar-message-justify-content":`center`})),aN(r.lastChild,{get status(){return V(e)},children:(e,t)=>{rt();var r=dQ(),a=R(r),o=z(a);{let e=P(()=>i()(`details`));tN(o,{variant:`link`,get label(){return V(e)},onclick:()=>{window.open(n()?.statusDashboardURL,`_blank`)}})}B(e=>K(a,`${e??``} `),[()=>i()(`backend_status.${V(l)}_incident`,{values:{service:n()?.label}})]),G(e,r)},$$slots:{default:!0}}),O(r)}G(e,t)},_=P(()=>[`minor`,`major`].includes(V(l)));q(h,e=>{V(_)&&e(g)}),G(e,m),A(),o()}var mQ=U(` <!>`,1),hQ=U(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1);function gQ(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=0,o=0,s=F(!1),c=async()=>{try{let e=await fetch(`https://unpkg.com/@sveltia/cms/package.json`);if(!e.ok)return;let{version:t}=await e.json();t&&t!==`0.151.2`&&(o=window.setTimeout(()=>{I(s,!0)},6e5))}catch{}};fo(()=>{if(document.querySelector(`script[src^="https://unpkg.com/@sveltia/cms"]`))return c(),a=window.setInterval(()=>{c()},36e5),()=>{window.clearInterval(a),window.clearTimeout(o)}});var l=W(),u=R(l),d=e=>{var t=hQ(),r=R(t);Zi(r,()=>({"--sui-infobar-message-justify-content":`center`})),aN(r.lastChild,{children:(e,t)=>{rt();var r=mQ(),i=R(r),a=z(i);{let e=P(()=>n()(`update_now`));tN(a,{variant:`link`,get label(){return V(e)},onclick:()=>{window.location.reload()}})}B(e=>K(i,`${e??``} `),[()=>n()(`update_available`)]),G(e,r)},$$slots:{default:!0}}),O(r),G(e,t)};q(u,e=>{V(s)&&e(d)}),G(e,l),A(),i()}var _Q=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n},vQ=async(e,t)=>{let n=t===`image`?await aC(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let{parse:r}=await NS(`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:_Q(i,7),longitude:_Q(a,7)}:void 0}},yQ=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})},bQ=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})},xQ=async(e,t)=>t===`image`?yQ(e):bQ(e,t),SQ=async(e,t,n)=>{let{dimensions:r,duration:i}=await xQ(t,n),{createdDate:a,coordinates:o}=await vQ(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}},CQ={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},wQ=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=j(CA)?.repository??{},i=await oC(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await SQ(e,i,t)),{...a,publicURL:lC(e),repoBlobURL:r?`${r}/${n}`:void 0}},TQ=async e=>{let t=lC(e,{allowSpecial:!0,pathOnly:!0})??await oC(e);return t?CC(t):[]},EQ=U(`<!> <!> <!>`,1),DQ=U(`<!> <!>`,1);function OQ(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=e=>{var t=EQ(),r=R(t);{let e=P(()=>V(d)?n()(`public_url`):n()(`public_urls`)),t=P(()=>!V(f).length);LP(r,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{v(h,n()(`asset_url_copied`),n()(`asset_urls_copied`))}})}var i=z(r,2);{let e=P(()=>V(d)?n()(`file_path`):n()(`file_paths`));LP(i,{get label(){return V(e)},onclick:()=>{v(g,n()(`asset_path_copied`),n()(`asset_paths_copied`))}})}var a=z(i,2);{let e=P(()=>n()(`file_data`)),t=P(()=>!V(l));LP(a,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{v(_,n()(`asset_data_copied`),n()(`asset_data_copied`))}})}G(e,t)},o=X(t,`assets`,19,()=>[]),s=X(t,`useButton`,3,!0),c=F(Bn([])),l=F(!1),u=Bn({show:!1,text:``,status:`success`}),d=P(()=>o().length===1),f=P(()=>V(c).filter(({publicURL:e})=>!!e).map(({publicURL:e})=>e)),p,m=async()=>{if(p=void 0,!V(d))return!1;let e=await aC(o()[0]),{type:t}=e;return p=e,Od(t)?!0:BS.includes(t)?typeof navigator.clipboard.write==`function`:!1},h=async()=>{await navigator.clipboard.writeText(V(f).join(`
|
|
706
706
|
`))},g=async()=>{await navigator.clipboard.writeText(o().map(({path:e})=>`/${e}`).join(`
|
|
707
707
|
`))},_=async()=>{let e=p,{type:t}=e;if(Od(t)){await navigator.clipboard.writeText(await e.text());return}if(!BS.includes(t))throw Error(`Unsupported type`);t!==`image/png`&&(e=await XS(e)),await navigator.clipboard.write([new ClipboardItem({"image/png":e})])},v=async(e,t,r)=>{try{await e(),u.status=`success`,u.text=V(d)?t:r}catch{u.status=`error`,u.text=n()(`clipboard_error`)}finally{u.show=!0}};pr(()=>{(async()=>{I(c,await Promise.all(o().map(wQ)),!0),I(l,await m(),!0)})()});var y=DQ(),b=R(y),x=e=>{{let t=e=>{{let t=P(()=>n()(`copy_options`));MP(e,{get"aria-label"(){return V(t)},children:(e,t)=>{a(e)},$$slots:{default:!0}})}},r=P(()=>!o().length),i=P(()=>n()(`copy`));EN(e,{variant:`ghost`,get disabled(){return V(r)},get label(){return V(i)},popupPosition:`bottom-right`,popup:t,$$slots:{popup:!0}})}},S=e=>{{let t=e=>{a(e)},r=P(()=>!o().length),i=P(()=>n()(`copy`));LP(e,{get disabled(){return V(r)},get label(){return V(i)},popupPosition:`left-top`,items:t,$$slots:{items:!0}})}};q(b,e=>{s()?e(x):e(S,-1)}),QF(z(b,2),{get show(){return u.show},set show(e){u.show=e},children:(e,t)=>{OM(e,{get status(){return u.status},children:(e,t)=>{rt();var n=Li();B(()=>K(n,u.text)),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),G(e,y),A(),i()}var kQ={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},AQ=Ft({...kQ}),jQ=Ft({...kQ}),MQ=()=>{let e=j(uO);if(!e)return;let{name:t,email:n,id:r,login:i}=e;if(!(!t||!n))return{name:t,email:n,id:r,login:i}},NQ=async({changes:e,commit:t})=>{let{databaseName:n}=j(CA)?.repository??{};if(!n)return;let r=new Rb(n,`file-cache`),{files:i,author:a,date:o}=t,s={commitAuthor:a,commitDate:o};await Promise.all(e.map(async e=>{let{action:t,slug:n,path:a,previousPath:o,data:c}=e;if(typeof c!=`string`||!n)return;if(t===`delete`){await r.delete(a);return}t===`move`&&await r.delete(o);let l={sha:i[a]?.sha,size:hS(c).size,text:c,meta:s};await r.set(a,l)}))},PQ=({changes:e,savedEntries:t,savedAssets:n})=>{let r=t.map(e=>e.id);Nv.update(e=>[...e.filter(e=>!r.includes(e.id)),...t]);let i=n.map(e=>e.path),a=e.filter(e=>e.action===`move`).map(e=>e.previousPath),o=e.filter(e=>e.action===`delete`).map(e=>e.path),s=[...i,...a,...o];Ij.update(e=>[...e.filter(e=>!s.includes(e.path)),...n])},FQ=async({changes:e,savingEntries:t=[],savingAssets:n=[],options:r})=>{let{commitChanges:i}=j(CA),a={...await i(e,r),author:MQ()};j(ck).devModeEnabled&&(console.debug(`Commit changes:`,e),console.debug(`Commit results:`,a));let{files:o,author:s,date:c}=a,l=t.map(e=>({...e,commitAuthor:s,commitDate:c})),u=n.map(e=>{let{sha:t,file:n}=o[e.path]??{},r=n?URL.createObjectURL(n):void 0;return{...e,sha:t,blobURL:r,commitAuthor:s,commitDate:c}});return await NQ({changes:e,commit:a}),PQ({changes:e,savedEntries:l,savedAssets:u}),{commit:a,savedEntries:l,savedAssets:u}},IQ=({assets:e})=>{Bj.update(t=>e.some(({path:e})=>t?.path===e)?void 0:t),jQ.set({...kQ,deleted:!0,count:e.length})},LQ=async e=>{await FQ({changes:e.map(({path:e,sha:t})=>({action:`delete`,path:e,previousSha:t})),options:{commitType:`deleteMedia`}}),IQ({assets:e})},RQ=U(`<!> <!>`,1);function zQ(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`assets`,19,()=>[]),o=X(t,`buttonDescription`,3,``),s=X(t,`dialogDescription`,3,``),c=X(t,`onDelete`,3,void 0),l=X(t,`useButton`,3,!0),u=F(!1),d=P(()=>l()?tN:LP);var f=RQ(),p=R(f);{let e=P(()=>!a().length),t=P(()=>n()(`delete`));ua(p,()=>V(d),(n,r)=>{r(n,{variant:`ghost`,get disabled(){return V(e)},get label(){return V(t)},get"aria-label"(){return o()},onclick:()=>{I(u,!0)}})})}var m=z(p,2);{let e=P(()=>a().length===1?n()(`delete_asset`):n()(`delete_assets`)),t=P(()=>n()(`delete`));ZN(m,{get title(){return V(e)},get okLabel(){return V(t)},onOk:()=>{LQ(a()),c()?.()},get open(){return V(u)},set open(e){I(u,e,!0)},children:(e,t)=>{rt();var n=Li();B(()=>K(n,s())),G(e,n)},$$slots:{default:!0}})}G(e,f),A(),i()}var BQ=U(`<!> <!>`,1);function VQ(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`assets`,19,()=>[]),o=X(t,`useButton`,3,!0),s=F(!1),c=P(()=>o()?tN:LP),l=async()=>{for(let e of a())Id(await aC(e),e.name),await Wx(300);I(s,!0)};var u=BQ(),d=R(u);{let e=P(()=>!a().length),t=P(()=>n()(`download`));ua(d,()=>V(c),(n,r)=>{r(n,{variant:`ghost`,get disabled(){return V(e)},get label(){return V(t)},onclick:()=>{l()}})})}QF(z(d,2),{get show(){return V(s)},set show(e){I(s,e,!0)},children:(e,t)=>{OM(e,{status:`success`,children:(e,t)=>{rt();var r=Li();B(e=>K(r,e),[()=>a().length===1?n()(`asset_downloaded`):n()(`assets_downloaded`)]),G(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),G(e,u),A(),i()}var HQ=U(`<!> <!> <!> <!> <!> <!> <!>`,1);function UQ(e,t){k(t,!0);let n=()=>M(Z,`$_`,a),r=()=>M(ck,`$prefs`,a),i=()=>M(CA,`$backend`,a),[a,o]=N(),s=X(t,`extraItems`,3,void 0),c=F(Bn({...CQ})),l=P(()=>V(c).publicURL),u=P(()=>V(c).repoBlobURL),d=async()=>{I(c,t.asset?await wQ(t.asset):{...CQ},!0)};pr(()=>{t.asset,d()});{let a=e=>{{let a=P(()=>n()(`edit_options`));MP(e,{get"aria-label"(){return V(a)},children:(e,a)=>{var o=HQ(),c=R(o);la(c,()=>s()??E);var d=z(c,2);{let e=P(()=>n()(`edit`)),r=P(()=>n()(`edit_asset`)),i=P(()=>!t.asset||!rx(t.asset));LP(d,{variant:`ghost`,get label(){return V(e)},get"aria-label"(){return V(r)},get disabled(){return V(i)},onclick:()=>{Vt(Uj,t.asset)}})}var f=z(d,2);{let e=P(()=>n()(`rename`)),r=P(()=>n()(`rename_asset`)),i=P(()=>!t.asset);LP(f,{variant:`ghost`,get label(){return V(e)},get"aria-label"(){return V(r)},get disabled(){return V(i)},onclick:()=>{Vt(Wj,t.asset)}})}var p=z(f,2);{let e=P(()=>n()(`replace`)),r=P(()=>n()(`replace_asset`)),i=P(()=>!t.asset);LP(p,{variant:`ghost`,get label(){return V(e)},get"aria-label"(){return V(r)},get disabled(){return V(i)},onclick:()=>{Vt(Hj,{folder:void 0,files:[],originalAsset:t.asset}),Vt(aZ,!0)}})}var m=z(p,2);MN(m,{});var h=z(m,2);{let e=P(()=>n()(`view_on_live_site`)),t=P(()=>!V(l));LP(h,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{window.open(V(l))}})}var g=z(h,2),_=e=>{{let t=P(()=>!i()?.repository||!V(u)),r=P(()=>n()(`view_on_x`,{values:{service:i()?.repository?.label},default:n()(`view_in_repository`)}));LP(e,{get disabled(){return V(t)},get label(){return V(r)},onclick:()=>{window.open(`${V(u)}?plain=1`)}})}};q(g,e=>{r().devModeEnabled&&e(_)}),G(e,o)},$$slots:{default:!0}})}},o=P(()=>n()(`show_edit_options`));EN(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return V(o)},popup:a,$$slots:{popup:!0}})}A(),o()}function WQ(e,t){k(t,!0);let n=()=>M(Z,`$_`,i),r=()=>M(yM,`$isRTL`,i),[i,a]=N(),o=X(t,`useShortcut`,3,!1),s=X(t,`onclick`,3,void 0);{let i=e=>{{let t=P(()=>r()?`arrow_forward`:`arrow_back`);TM(e,{get name(){return V(t)}})}},a=P(()=>t[`aria-label`]??n()(`back`)),c=P(()=>o()?`Escape`:void 0);tN(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return V(a)},get keyShortcuts(){return V(c)},class:`back`,get onclick(){return s()},startIcon:i,$$slots:{startIcon:!0}})}A(),a()}var GQ=U(`<!> <!> <!>`,1),KQ=U(`<!> <h2 role="none"><!></h2> <!> <!>`,1);function qQ(e,t){k(t,!0);let n=()=>M(Vj,`$overlaidAsset`,o),r=()=>M(AD,`$isSmallScreen`,o),i=()=>M(Z,`$_`,o),a=()=>M(Bd,`$selectedAssetFolder`,o),[o,s]=N(),c=e=>{var t=GQ(),n=R(t);OQ(n,{get assets(){return V(l)},get useButton(){return V(u)}});var r=z(n,2);VQ(r,{get assets(){return V(l)},get useButton(){return V(u)}});var o=z(r,2);{let e=P(()=>i()(`delete_asset`)),t=P(()=>i()(`confirm_deleting_this_asset`));zQ(o,{get assets(){return V(l)},get buttonDescription(){return V(e)},get dialogDescription(){return V(t)},onDelete:()=>{bZ(`/assets/${a()?.internalPath??`-/all`}`)},get useButton(){return V(u)}})}G(e,t)},l=P(()=>n()?[n()]:[]),u=P(()=>!r());{let t=P(()=>i()(`primary`));nX(e,{variant:`primary`,get"aria-label"(){return V(t)},children:(e,t)=>{var o=KQ(),s=R(o);{let e=P(()=>i()(`cancel_editing`));WQ(s,{get"aria-label"(){return V(e)},useShortcut:!0,onclick:()=>{bZ(`/assets/${a()?.internalPath??`-/all`}`)}})}var l=z(s,2);LM(L(l),{children:(e,t)=>{rt();var r=Li();B(()=>K(r,n()?.name)),G(e,r)},$$slots:{default:!0}}),O(l);var u=z(l,2),d=e=>{c(e)};q(u,e=>{r()||e(d)}),UQ(z(u,2),{get asset(){return n()},extraItems:e=>{var t=W(),n=R(t),i=e=>{c(e)};q(n,e=>{r()&&e(i)}),G(e,t)},$$slots:{extraItems:!0}}),G(e,o)},$$slots:{default:!0}})}A(),s()}var JQ=U(`<img/>`),YQ=U(`<video></video>`,2),XQ=U(`<audio></audio>`),ZQ=U(`<div role="none" class="blur svelte-1yaifwd"><div role="status" class="overlay svelte-1yaifwd"><!></div> <img role="none" loading="lazy" alt=""/></div>`),QQ=U(`<div role="none"><!> <!></div>`),$Q={hash:`svelte-1yaifwd`,code:`.preview.svelte-1yaifwd {display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}.preview.tile.svelte-1yaifwd {border-width:1px;border-style:solid;border-color:transparent;padding:var(--tile-padding, 12px);}.preview.tile.svelte-1yaifwd .sui.icon {font-size:48px;}.preview.icon.svelte-1yaifwd {border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size, 32px);height:var(--icon-size, 32px);}.preview.svelte-1yaifwd:is(.tile:where(.svelte-1yaifwd), .icon:where(.svelte-1yaifwd)) {overflow:hidden;aspect-ratio:1/1;}.preview.svelte-1yaifwd:is(.tile:where(.svelte-1yaifwd), .icon:where(.svelte-1yaifwd)) img:where(.svelte-1yaifwd) {pointer-events:none;}.preview.svelte-1yaifwd .blur:where(.svelte-1yaifwd) {display:contents;}.preview.svelte-1yaifwd .blur:where(.svelte-1yaifwd) > :where(.svelte-1yaifwd) {position:absolute;inset:0;pointer-events:none;}.preview.svelte-1yaifwd .blur:where(.svelte-1yaifwd) .overlay:where(.svelte-1yaifwd) {display:flex;justify-content:center;align-items:center;z-index:-1;backdrop-filter:blur(32px) brightness(0.8);}.preview.svelte-1yaifwd .blur:where(.svelte-1yaifwd) img:where(.svelte-1yaifwd) {width:100%;height:100%;z-index:-2;object-fit:cover;transform:scale(1.2);}.preview.svelte-1yaifwd .blur:where(.svelte-1yaifwd) img.loaded:where(.svelte-1yaifwd) {opacity:1;}.preview.cover.svelte-1yaifwd {padding:0;}.preview.cover.svelte-1yaifwd > :is(img, video) {flex:auto;}.preview.svelte-1yaifwd > :is(img, video) {flex:0;max-width:100%;max-height:100%;}.preview.dissolve.svelte-1yaifwd :is(img, video) {opacity:0;transition:opacity 250ms;}.preview.dissolve.loaded.svelte-1yaifwd :is(img, video) {opacity:1;}.checkerboard.svelte-1yaifwd img:where(.svelte-1yaifwd) {background-image:linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%), linear-gradient(45deg, #ccc 25%, #fff 25%, #fff 75%, #ccc 75%);background-size:8px 8px;background-position:0 0, 4px 4px;}.svelte-1yaifwd:not(.checkerboard) img:where(.svelte-1yaifwd) {background-color:#e5e5e5;}:is(img, video) {object-fit:contain;}.svelte-1yaifwd:is(img, video):not([src]) {visibility:hidden;}.cover.svelte-1yaifwd :is(img, video) {object-fit:cover;aspect-ratio:1/1;}`};function e$(e,t){k(t,!0),J(e,$Q);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`loading`,3,`lazy`),o=X(t,`asset`,3,void 0),s=X(t,`src`,15,void 0),c=X(t,`variant`,3,void 0),l=X(t,`blurBackground`,3,!1),u=X(t,`cover`,3,!1),d=X(t,`checkerboard`,3,!1),f=X(t,`dissolve`,3,!0),p=X(t,`alt`,3,``),m=X(t,`controls`,3,!1),h=co(t,[`$$slots`,`$$events`,`$$legacy`,`kind`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`dissolve`,`alt`,`controls`]),g=F(void 0),_=F(!1),v=F(!1),y=F(void 0),b=P(()=>!!o()&&!!c()&&!m()),x=P(()=>t.kind===`image`||o()?.name.endsWith(`.pdf`)||V(b)&&Zb.includes(t.kind)),S=!1,C=async()=>{if(!(!o()||!V(g)||S)){S=!0,I(_,!1),a()===`lazy`&&await zM(V(g));try{s(V(b)?await cC(o()):await oC(o()))}catch{I(_,!0)}l()&&!V(y)&&s()&&I(y,s(),!0),S=!1,an()}},w=async()=>{!V(g)||!s()||((V(x)?!V(g).complete:!V(g).readyState)&&await new Promise(e=>{V(g)?.addEventListener(V(x)?`load`:`loadedmetadata`,()=>{e(void 0)},{once:!0})}),f()&&await zM(V(g)),I(v,!0),o()&&V(b)&&s().startsWith(`blob:`)&&URL.revokeObjectURL(s()))};pr(()=>{o()&&!V(y)&&(async()=>{I(y,await cC(o(),{cacheOnly:!0}),!0)})()}),pr(()=>{V(g)&&o()&&C()}),pr(()=>{V(g)&&s()&&w()});var T=QQ();let ee;var te=L(T),ne=e=>{TM(e,{name:`draft`})},re=e=>{var t=JQ();Qa(t,()=>({loading:a(),src:s(),alt:p(),...h}),void 0,void 0,void 0,`svelte-1yaifwd`),oo(t,e=>I(g,e),()=>V(g)),Ti(t),G(e,t)},ie=e=>{var t=YQ();Qa(t,()=>({src:s(),controls:m()||void 0,playsinline:!0,...h}),void 0,void 0,void 0,`svelte-1yaifwd`),oo(t,e=>I(g,e),()=>V(g)),G(e,t)},E=e=>{var t=W(),n=R(t),r=e=>{var t=XQ();Qa(t,()=>({src:s(),controls:!0,playsinline:!0,...h}),void 0,void 0,void 0,`svelte-1yaifwd`),oo(t,e=>I(g,e),()=>V(g)),G(e,t)},i=e=>{TM(e,{name:`audio_file`})};q(n,e=>{m()?e(r):e(i,-1)}),G(e,t)},ae=e=>{TM(e,{name:`draft`})};q(te,e=>{V(_)?e(ne):V(x)?e(re,1):t.kind===`video`?e(ie,2):t.kind===`audio`?e(E,3):e(ae,-1)});var oe=z(te,2),se=e=>{var t=ZQ(),r=L(t),i=L(r),a=e=>{var t=Li();B(e=>K(t,e),[()=>n()(`loading`)]),G(e,t)};q(i,e=>{!V(b)&&!V(v)&&e(a)}),O(r);var o=z(r,2);let s;O(t),B(()=>{Y(o,`src`,V(y)),s=Fa(o,1,`svelte-1yaifwd`,null,s,{loaded:!!V(y)})}),G(e,t)};q(oe,e=>{l()&&e(se)}),O(T),B(()=>ee=Fa(T,1,`preview ${c()??``}`,`svelte-1yaifwd`,ee,{cover:u(),checkerboard:d(),dissolve:f(),loaded:V(v)})),G(e,T),A(),i()}var t$=U(`<div></div>`),n$={hash:`svelte-1c5gj1k`,code:`.leaflet-pane,
|
|
708
708
|
.leaflet-tile,
|
|
@@ -908,7 +908,7 @@ Error generating stack: `+e.message+`
|
|
|
908
908
|
.after-input.svelte-dkfcyc,
|
|
909
909
|
.prefix.svelte-dkfcyc,
|
|
910
910
|
.suffix.svelte-dkfcyc {color:var(--sui-secondary-foreground-color);white-space:nowrap;}.comment.svelte-dkfcyc,
|
|
911
|
-
.hint.svelte-dkfcyc {margin-inline:var(--sui-focus-ring-width) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);}.comment.svelte-dkfcyc {margin-block:var(--sui-focus-ring-width) !important;}.hint.svelte-dkfcyc {flex:auto;margin-block:var(--sui-focus-ring-width) 0 !important;color:var(--sui-tertiary-foreground-color);}.footer.svelte-dkfcyc {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}`};function J7(e,t){let n=Ri();k(t,!0),J(e,vre);let r=()=>M(r1,`$entryDraft`,o),i=()=>M(Z,`$_`,o),a=()=>M(f,`$extraHint`,o),[o,s]=N(),c=gt(`field-editor`)??{},l=X(t,`context`,19,()=>c.fieldContext??void 0),u=X(t,`valueStoreKey`,19,()=>c.valueStoreKey??`currentValues`),d=e=>kw(sE(e.replaceAll(`\\n`,`<br>`)),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`,`br`],ALLOWED_ATTR:[`href`]}),f=Ft();_t(`field-editor`,{fieldContext:l(),extraHint:f,valueStoreKey:u()});let p=P(()=>l()===`rich-text-editor-component`),m=P(()=>t.fieldConfig.name),h=P(()=>D(t.fieldConfig.widget,`string`)),g=P(()=>D(t.fieldConfig.i18n,!1)),_=P(()=>D(t.fieldConfig.label,``)),v=P(()=>D(t.fieldConfig.comment,``)),y=P(()=>D(t.fieldConfig.hint,``)),b=P(()=>D(t.fieldConfig.readonly,!1)),x=P(()=>gD({fieldConfig:t.fieldConfig,locale:t.locale})),S=P(()=>pD(t.fieldConfig)),C=P(()=>[`string`].includes(V(h))),w=P(()=>V(C)?t.fieldConfig.prefix:void 0),T=P(()=>V(C)?t.fieldConfig.suffix:void 0),ee=P(()=>[`boolean`,`number`,`string`].includes(V(h))),te=P(()=>V(ee)?t.fieldConfig.before_input:void 0),ne=P(()=>V(ee)?t.fieldConfig.after_input:void 0),re=P(()=>!!(V(w)||V(T)||V(te)||V(ne))),ie=P(()=>V(h)===`list`||V(S)),E=P(()=>r()?.collection),ae=P(()=>r()?.collectionFile),oe=P(()=>r()?.originalValues),se=P(()=>(V(ae)??V(E))?._i18n??ly),ce=P(()=>V(se).i18nEnabled),le=P(()=>V(se).allLocales),ue=P(()=>V(se).defaultLocale),de=P(()=>V(ce)?V(le).filter(e=>e!==t.locale):[]),fe=P(()=>V(ce)&&(V(g)===!0||V(g)===`translate`)),pe=P(()=>V(ce)&&V(g)===`duplicate`),me=P(()=>V(p)||t.locale===V(ue)||V(fe)||V(pe)),he=P(()=>!V(p)&&V(fe)&&V(de).length),ge=P(()=>!V(p)&&!(V(pe)&&t.locale!==V(ue))),_e=P(()=>RegExp(`^${yd(t.keyPath)}\\.\\d+$`)),ve=P(()=>{let e=ft(r()?.[u()][t.locale]??{}),n=e[t.keyPath];if(!V(ie))return n;let i=Object.entries(e).filter(([e])=>V(_e).test(e));return i.length?i.map(([,e])=>e).filter(e=>e!==void 0):V(S)&&n!==void 0&&typeof n!=`object`?[n]:[]}),ye=P(()=>{if(V(ie))return Object.entries(V(oe)?.[t.locale]??{}).filter(([e])=>V(_e).test(e)).map(([,e])=>e).filter(e=>e!==void 0);let e=G7(ft(r()?.[u()][t.locale]??{}),t.keyPath);return e?V(oe)?.[t.locale]?.[e.originalKeyPath]:V(oe)?.[t.locale]?.[t.keyPath]}),be=P(()=>{if(V(h)===`list`){let e=ft(r()?.[u()][t.locale]??{}),n=V(oe)?.[t.locale]??{},i=`${t.keyPath}.`;return(0,Ld.default)(Object.entries(e).filter(([e])=>e.startsWith(i)&&!n1.test(e)).sort(([e],[t])=>e.localeCompare(t)),Object.entries(n).filter(([e])=>e.startsWith(i)&&!n1.test(e)).sort(([e],[t])=>e.localeCompare(t)))}return(0,Ld.default)(V(ve),V(ye))}),xe=P(()=>r()?.validities[t.locale][t.keyPath]),Se=P(()=>V(_)||V(m)),Ce=P(()=>V(b)||V(g)===`duplicate`&&t.locale!==V(ue)||V(h)===`compute`||V(h)===`uuid`),we=P(()=>V(xe)?.valid===!1);pr(()=>{if(r()&&V(S)&&Array.isArray(V(ve))){let e=r()[u()][t.locale]?.[`${t.keyPath}.0`],[n]=V(ve);e===void 0&&n!==void 0&&(Ut(r1,H(r)[u()][t.locale][`${t.keyPath}.0`]=n,H(r)),delete r()[u()][t.locale][t.keyPath])}}),pr(()=>{if(r()&&!V(S)&&V(ve)===void 0){let e=r()[u()][t.locale]?.[`${t.keyPath}.0`];e!==void 0&&(Ut(r1,H(r)[u()][t.locale][t.keyPath]=e,H(r)),Object.keys(r()[u()][t.locale]).forEach(e=>{V(_e).test(e)&&delete r()[u()][t.locale][e]}))}});var Te=W(),Ee=R(Te),De=e=>{{let o=P(()=>i()(`x_field`,{values:{field:V(Se)}})),s=P(()=>V(h)===`compute`);K3(e,{get"aria-label"(){return V(o)},get"data-field-type"(){return V(h)},get"data-key-path"(){return t.keyPath},get"data-typed-key-path"(){return t.typedKeyPath},get hidden(){return V(s)},children:(e,o)=>{var s=_re(),c=R(s),l=L(c),f=L(l,!0);O(l);var p=z(l,2),m=e=>{var t=ore();B(e=>Y(t,`aria-label`,e),[()=>i()(`required`)]),G(e,t)};q(p,e=>{!V(Ce)&&V(x)&&e(m)});var g=z(p,2);FN(g,{flex:!0});var _=z(g,2),b=e=>{q3(e,{size:`small`,get locale(){return t.locale},get otherLocales(){return V(de)},get keyPath(){return t.keyPath}})},S=P(()=>V(he)&&[`richtext`,`markdown`,`string`,`text`,`list`,`object`].includes(V(h)));q(_,e=>{V(S)&&e(b)});var C=z(_,2),ee=e=>{{let n=e=>{{let n=P(()=>i()(`field_options`));MP(e,{get"aria-label"(){return V(n)},children:(e,n)=>{var r=sre(),a=R(r),o=e=>{U3(e,{get locale(){return t.locale},get otherLocales(){return V(de)},get keyPath(){return t.keyPath}})};q(a,e=>{V(he)&&e(o)});var s=z(a,2),c=e=>{{let n=P(()=>i()(`revert_changes`));LP(e,{get label(){return V(n)},get disabled(){return V(be)},onclick:()=>{q7({locale:t.locale,keyPath:t.keyPath})}})}};q(s,e=>{V(ge)&&e(c)}),G(e,r)},$$slots:{default:!0}})}},r=P(()=>i()(`show_field_options`));EN(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return V(r)},popup:n,$$slots:{popup:!0}})}};q(C,e=>{(V(he)||V(ge))&&e(ee)}),O(c);var E=z(c,2),ae=e=>{var t=cre(),n=L(t);ca(n,()=>d(V(v)),!0),O(n),O(t),G(e,t)};q(E,e=>{!V(Ce)&&V(v)&&e(ae)});var oe=z(E,2),se=e=>{X3(e,{get id(){return`${n}-error`},children:(e,n)=>{rt();var i=Li();B(e=>K(i,e),[()=>r()?.validationMessages[t.locale][t.keyPath]?.join(` `)]),G(e,i)},$$slots:{default:!0}})};q(oe,e=>{V(xe)?.valid===!1&&e(se)});var D=z(oe,2);let ce;var le=L(D),ue=e=>{var t=lre(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>i()(`unsupported_field_type_x`,{values:{name:V(h)}})]),G(e,t)},fe=e=>{let r=P(()=>U7[V(h)]);var i=W();ua(R(i),()=>V(r),(e,r)=>{r(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return n},get fieldLabel(){return V(Se)},get fieldConfig(){return t.fieldConfig},get currentValue(){return V(ve)},get readonly(){return V(Ce)},get required(){return V(x)},get invalid(){return V(we)}})}),G(e,i)},pe=e=>{let i=P(()=>U7[V(h)]);var a=mre(),o=R(a),s=e=>{var t=ure();ca(t,()=>d(V(te)),!0),O(t),G(e,t)};q(o,e=>{V(te)&&e(s)});var c=z(o,2),l=e=>{var t=dre(),n=L(t,!0);O(t),B(()=>K(n,V(w))),G(e,t)};q(c,e=>{V(w)&&e(l)});var f=z(c,2);ua(f,()=>V(i),(e,i)=>{i(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return n},get fieldLabel(){return V(Se)},get fieldConfig(){return t.fieldConfig},get readonly(){return V(Ce)},get required(){return V(x)},get invalid(){return V(we)},get currentValue(){return r()[u()][t.locale][t.keyPath]},set currentValue(e){Ut(r1,H(r)[u()][t.locale][t.keyPath]=e,H(r))}})});var p=z(f,2),m=e=>{var t=fre(),n=L(t,!0);O(t),B(()=>K(n,V(T))),G(e,t)};q(p,e=>{V(T)&&e(m)});var g=z(p,2),_=e=>{var t=pre();ca(t,()=>d(V(ne)),!0),O(t),G(e,t)};q(g,e=>{V(ne)&&e(_)}),G(e,a)};q(le,e=>{V(h)in U7?V(ie)?e(fe,1):e(pe,-1):e(ue)}),O(D);var me=z(D,2),_e=e=>{let n=P(a);var r=gre(),i=L(r),o=e=>{var t=hre();ca(t,()=>d(V(y)),!0),O(t),G(e,t)};q(i,e=>{V(y)&&e(o)}),ua(z(i,2),()=>V(n),(e,n)=>{n(e,{get fieldConfig(){return t.fieldConfig},get locale(){return t.locale},get currentValue(){return V(ve)}})}),O(r),G(e,r)};q(me,e=>{!V(Ce)&&(V(y)||a())&&e(_e)}),B(()=>{Y(l,`id`,`${n}-label`),K(f,V(Se)),ce=Fa(D,1,`field-wrapper svelte-dkfcyc`,null,ce,{"has-extra-labels":V(re)})}),G(e,s)},$$slots:{default:!0}})}};q(Ee,e=>{r()&&V(me)&&V(h)!==`hidden`&&e(De)}),G(e,Te),A(),s()}var yre=U(`<div class="required">*</div>`),bre=U(`<header role="none"><h4 role="none"> </h4> <!></header> <!> <div role="none" class="field-wrapper"><!></div>`,1);function xre(e,t){let n=Ri();k(t,!0);let r=()=>M(r1,`$entryDraft`,a),i=()=>M(Z,`$_`,a),[a,o]=N(),s=P(()=>r()?.collection),c=P(()=>r()?.collectionFile),l=P(()=>(V(c)??V(s))?._i18n??ly),u=P(()=>V(l).defaultLocale),d=P(()=>r()?.slugEditor[t.locale]),f=P(()=>V(d)===!0),p=P(()=>V(d)===`readonly`),m=P(()=>r()?.validities[t.locale]._slug),h=P(()=>!V(p)&&V(m)?.valid===!1),g=F(``);pr(()=>{V(g),H(()=>{r()&&Object.entries(r().slugEditor).forEach(([e,n])=>{(t.locale===e||t.locale===V(u)&&n===`readonly`)&&Ut(r1,H(r).currentSlugs[e]=V(g),H(r))})})})
|
|
911
|
+
.hint.svelte-dkfcyc {margin-inline:var(--sui-focus-ring-width) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);}.comment.svelte-dkfcyc {margin-block:var(--sui-focus-ring-width) !important;}.hint.svelte-dkfcyc {flex:auto;margin-block:var(--sui-focus-ring-width) 0 !important;color:var(--sui-tertiary-foreground-color);}.footer.svelte-dkfcyc {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}`};function J7(e,t){let n=Ri();k(t,!0),J(e,vre);let r=()=>M(r1,`$entryDraft`,o),i=()=>M(Z,`$_`,o),a=()=>M(f,`$extraHint`,o),[o,s]=N(),c=gt(`field-editor`)??{},l=X(t,`context`,19,()=>c.fieldContext??void 0),u=X(t,`valueStoreKey`,19,()=>c.valueStoreKey??`currentValues`),d=e=>kw(sE(e.replaceAll(`\\n`,`<br>`)),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`,`br`],ALLOWED_ATTR:[`href`]}),f=Ft();_t(`field-editor`,{fieldContext:l(),extraHint:f,valueStoreKey:u()});let p=P(()=>l()===`rich-text-editor-component`),m=P(()=>t.fieldConfig.name),h=P(()=>D(t.fieldConfig.widget,`string`)),g=P(()=>D(t.fieldConfig.i18n,!1)),_=P(()=>D(t.fieldConfig.label,``)),v=P(()=>D(t.fieldConfig.comment,``)),y=P(()=>D(t.fieldConfig.hint,``)),b=P(()=>D(t.fieldConfig.readonly,!1)),x=P(()=>gD({fieldConfig:t.fieldConfig,locale:t.locale})),S=P(()=>pD(t.fieldConfig)),C=P(()=>[`string`].includes(V(h))),w=P(()=>V(C)?t.fieldConfig.prefix:void 0),T=P(()=>V(C)?t.fieldConfig.suffix:void 0),ee=P(()=>[`boolean`,`number`,`string`].includes(V(h))),te=P(()=>V(ee)?t.fieldConfig.before_input:void 0),ne=P(()=>V(ee)?t.fieldConfig.after_input:void 0),re=P(()=>!!(V(w)||V(T)||V(te)||V(ne))),ie=P(()=>V(h)===`list`||V(S)),E=P(()=>r()?.collection),ae=P(()=>r()?.collectionFile),oe=P(()=>r()?.originalValues),se=P(()=>(V(ae)??V(E))?._i18n??ly),ce=P(()=>V(se).i18nEnabled),le=P(()=>V(se).allLocales),ue=P(()=>V(se).defaultLocale),de=P(()=>V(ce)?V(le).filter(e=>e!==t.locale):[]),fe=P(()=>V(ce)&&(V(g)===!0||V(g)===`translate`)),pe=P(()=>V(ce)&&V(g)===`duplicate`),me=P(()=>V(p)||t.locale===V(ue)||V(fe)||V(pe)),he=P(()=>!V(p)&&V(fe)&&V(de).length),ge=P(()=>!V(p)&&!(V(pe)&&t.locale!==V(ue))),_e=P(()=>RegExp(`^${yd(t.keyPath)}\\.\\d+$`)),ve=P(()=>{let e=ft(r()?.[u()][t.locale]??{}),n=e[t.keyPath];if(!V(ie))return n;let i=Object.entries(e).filter(([e])=>V(_e).test(e));return i.length?i.map(([,e])=>e).filter(e=>e!==void 0):V(S)&&n!==void 0&&typeof n!=`object`?[n]:[]}),ye=P(()=>{if(V(ie))return Object.entries(V(oe)?.[t.locale]??{}).filter(([e])=>V(_e).test(e)).map(([,e])=>e).filter(e=>e!==void 0);let e=G7(ft(r()?.[u()][t.locale]??{}),t.keyPath);return e?V(oe)?.[t.locale]?.[e.originalKeyPath]:V(oe)?.[t.locale]?.[t.keyPath]}),be=P(()=>{if(V(h)===`list`){let e=ft(r()?.[u()][t.locale]??{}),n=V(oe)?.[t.locale]??{},i=`${t.keyPath}.`;return(0,Ld.default)(Object.entries(e).filter(([e])=>e.startsWith(i)&&!n1.test(e)).sort(([e],[t])=>e.localeCompare(t)),Object.entries(n).filter(([e])=>e.startsWith(i)&&!n1.test(e)).sort(([e],[t])=>e.localeCompare(t)))}return(0,Ld.default)(V(ve),V(ye))}),xe=P(()=>r()?.validities[t.locale][t.keyPath]),Se=P(()=>V(_)||V(m)),Ce=P(()=>V(b)||V(g)===`duplicate`&&t.locale!==V(ue)||V(h)===`compute`||V(h)===`uuid`),we=P(()=>V(xe)?.valid===!1);pr(()=>{if(r()&&V(S)&&Array.isArray(V(ve))){let e=r()[u()][t.locale]?.[`${t.keyPath}.0`],[n]=V(ve);e===void 0&&n!==void 0&&(Ut(r1,H(r)[u()][t.locale][`${t.keyPath}.0`]=n,H(r)),delete r()[u()][t.locale][t.keyPath])}}),pr(()=>{if(r()&&!V(S)&&V(ve)===void 0){let e=r()[u()][t.locale]?.[`${t.keyPath}.0`];e!==void 0&&(Ut(r1,H(r)[u()][t.locale][t.keyPath]=e,H(r)),Object.keys(r()[u()][t.locale]).forEach(e=>{V(_e).test(e)&&delete r()[u()][t.locale][e]}))}});var Te=W(),Ee=R(Te),De=e=>{{let o=P(()=>i()(`x_field`,{values:{field:V(Se)}})),s=P(()=>V(h)===`compute`);K3(e,{get"aria-label"(){return V(o)},get"data-field-type"(){return V(h)},get"data-key-path"(){return t.keyPath},get"data-typed-key-path"(){return t.typedKeyPath},get hidden(){return V(s)},children:(e,o)=>{var s=_re(),c=R(s),l=L(c),f=L(l,!0);O(l);var p=z(l,2),m=e=>{var t=ore();B(e=>Y(t,`aria-label`,e),[()=>i()(`required`)]),G(e,t)};q(p,e=>{!V(Ce)&&V(x)&&e(m)});var g=z(p,2);FN(g,{flex:!0});var _=z(g,2),b=e=>{q3(e,{size:`small`,get locale(){return t.locale},get otherLocales(){return V(de)},get keyPath(){return t.keyPath}})},S=P(()=>V(he)&&[`richtext`,`markdown`,`string`,`text`,`list`,`object`].includes(V(h)));q(_,e=>{V(S)&&e(b)});var C=z(_,2),ee=e=>{{let n=e=>{{let n=P(()=>i()(`field_options`));MP(e,{get"aria-label"(){return V(n)},children:(e,n)=>{var r=sre(),a=R(r),o=e=>{U3(e,{get locale(){return t.locale},get otherLocales(){return V(de)},get keyPath(){return t.keyPath}})};q(a,e=>{V(he)&&e(o)});var s=z(a,2),c=e=>{{let n=P(()=>i()(`revert_changes`));LP(e,{get label(){return V(n)},get disabled(){return V(be)},onclick:()=>{q7({locale:t.locale,keyPath:t.keyPath})}})}};q(s,e=>{V(ge)&&e(c)}),G(e,r)},$$slots:{default:!0}})}},r=P(()=>i()(`show_field_options`));EN(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return V(r)},popup:n,$$slots:{popup:!0}})}};q(C,e=>{(V(he)||V(ge))&&e(ee)}),O(c);var E=z(c,2),ae=e=>{var t=cre(),n=L(t);ca(n,()=>d(V(v)),!0),O(n),O(t),G(e,t)};q(E,e=>{!V(Ce)&&V(v)&&e(ae)});var oe=z(E,2),se=e=>{X3(e,{get id(){return`${n}-error`},children:(e,n)=>{rt();var i=Li();B(e=>K(i,e),[()=>r()?.validationMessages[t.locale][t.keyPath]?.join(` `)]),G(e,i)},$$slots:{default:!0}})};q(oe,e=>{V(xe)?.valid===!1&&e(se)});var D=z(oe,2);let ce;var le=L(D),ue=e=>{var t=lre(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>i()(`unsupported_field_type_x`,{values:{name:V(h)}})]),G(e,t)},fe=e=>{let r=P(()=>U7[V(h)]);var i=W();ua(R(i),()=>V(r),(e,r)=>{r(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return n},get fieldLabel(){return V(Se)},get fieldConfig(){return t.fieldConfig},get currentValue(){return V(ve)},get readonly(){return V(Ce)},get required(){return V(x)},get invalid(){return V(we)}})}),G(e,i)},pe=e=>{let i=P(()=>U7[V(h)]);var a=mre(),o=R(a),s=e=>{var t=ure();ca(t,()=>d(V(te)),!0),O(t),G(e,t)};q(o,e=>{V(te)&&e(s)});var c=z(o,2),l=e=>{var t=dre(),n=L(t,!0);O(t),B(()=>K(n,V(w))),G(e,t)};q(c,e=>{V(w)&&e(l)});var f=z(c,2);ua(f,()=>V(i),(e,i)=>{i(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return n},get fieldLabel(){return V(Se)},get fieldConfig(){return t.fieldConfig},get readonly(){return V(Ce)},get required(){return V(x)},get invalid(){return V(we)},get currentValue(){return r()[u()][t.locale][t.keyPath]},set currentValue(e){Ut(r1,H(r)[u()][t.locale][t.keyPath]=e,H(r))}})});var p=z(f,2),m=e=>{var t=fre(),n=L(t,!0);O(t),B(()=>K(n,V(T))),G(e,t)};q(p,e=>{V(T)&&e(m)});var g=z(p,2),_=e=>{var t=pre();ca(t,()=>d(V(ne)),!0),O(t),G(e,t)};q(g,e=>{V(ne)&&e(_)}),G(e,a)};q(le,e=>{V(h)in U7?V(ie)?e(fe,1):e(pe,-1):e(ue)}),O(D);var me=z(D,2),_e=e=>{let n=P(a);var r=gre(),i=L(r),o=e=>{var t=hre();ca(t,()=>d(V(y)),!0),O(t),G(e,t)};q(i,e=>{V(y)&&e(o)}),ua(z(i,2),()=>V(n),(e,n)=>{n(e,{get fieldConfig(){return t.fieldConfig},get locale(){return t.locale},get currentValue(){return V(ve)}})}),O(r),G(e,r)};q(me,e=>{!V(Ce)&&(V(y)||a())&&e(_e)}),B(()=>{Y(l,`id`,`${n}-label`),K(f,V(Se)),ce=Fa(D,1,`field-wrapper svelte-dkfcyc`,null,ce,{"has-extra-labels":V(re)})}),G(e,s)},$$slots:{default:!0}})}};q(Ee,e=>{r()&&V(me)&&V(h)!==`hidden`&&e(De)}),G(e,Te),A(),s()}var yre=U(`<div class="required">*</div>`),bre=U(`<header role="none"><h4 role="none"> </h4> <!></header> <!> <div role="none" class="field-wrapper"><!></div>`,1);function xre(e,t){let n=Ri();k(t,!0);let r=()=>M(r1,`$entryDraft`,a),i=()=>M(Z,`$_`,a),[a,o]=N(),s=P(()=>r()?.collection),c=P(()=>r()?.collectionFile),l=P(()=>(V(c)??V(s))?._i18n??ly),u=P(()=>V(l).defaultLocale),d=P(()=>r()?.slugEditor[t.locale]),f=P(()=>V(d)===!0),p=P(()=>V(d)===`readonly`),m=P(()=>r()?.validities[t.locale]._slug),h=P(()=>!V(p)&&V(m)?.valid===!1),g=F(``);pr(()=>{V(p)&&I(g,r()?.currentSlugs[t.locale]??``,!0)}),pr(()=>{V(g),H(()=>{r()&&Object.entries(r().slugEditor).forEach(([e,n])=>{(t.locale===e||t.locale===V(u)&&n===`readonly`)&&Ut(r1,H(r).currentSlugs[e]=V(g),H(r))})})});var _=W(),v=R(_),y=e=>{K3(e,{children:(e,t)=>{var r=bre(),a=R(r),o=L(a),s=L(o,!0);O(o);var c=z(o,2),l=e=>{var t=yre();B(e=>Y(t,`aria-label`,e),[()=>i()(`required`)]),G(e,t)};q(c,e=>{V(f)&&e(l)}),O(a);var u=z(a,2),d=e=>{X3(e,{get id(){return`${n}-error`},children:(e,t)=>{var n=W(),r=R(n),a=e=>{var t=Li();B(e=>K(t,e),[()=>i()(`validation.value_missing`)]),G(e,t)};q(r,e=>{V(m)?.valueMissing&&e(a)}),G(e,n)},$$slots:{default:!0}})};q(u,e=>{V(h)&&e(d)});var _=z(u,2);tP(L(_),{flex:!0,get readonly(){return V(p)},get required(){return V(f)},get invalid(){return V(h)},get"aria-labelledby"(){return`${n}-label`},get"aria-errormessage"(){return`${n}-error`},get value(){return V(g)},set value(e){I(g,e,!0)}}),O(_),B(e=>{Y(o,`id`,`${n}-label`),K(s,e)},[()=>i()(`slug`)]),G(e,r)},$$slots:{default:!0}})};q(v,e=>{r()&&e(y)}),G(e,_),A(),o()}var Sre=U(`<!> <!>`,1);function Cre(e,t){k(t,!0);let n=()=>M(r1,`$entryDraft`,r),[r,i]=N(),a=P(()=>n()?.fields??[]);Z2(e,{children:(e,r)=>{var i=Sre(),o=R(i),s=e=>{xre(e,{get locale(){return t.locale}})};q(o,e=>{n()?.slugEditor[t.locale]&&e(s)}),na(z(o,2),17,()=>V(a),e=>e.name,(e,n)=>{Z2(e,{children:(e,r)=>{J7(e,{get keyPath(){return V(n).name},get typedKeyPath(){return V(n).name},get locale(){return t.locale},get fieldConfig(){return V(n)}})},$$slots:{default:!0}})}),G(e,i)},$$slots:{default:!0}}),A(),i()}function wre(e,t){let n=X(t,`children`,3,void 0);var r=W();la(R(r),()=>n()??E),G(e,r)}var Tre=U(`<iframe class="preview svelte-1k58u5t"></iframe>`),Ere={hash:`svelte-1k58u5t`,code:`iframe.svelte-1k58u5t {display:block;border:none;width:100%;height:100%;}`};function Dre(e,t){k(t,!0),J(e,Ere);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=F(void 0),o=()=>`
|
|
912
912
|
<!DOCTYPE html>
|
|
913
913
|
<html lang="${kw(t.locale)}">
|
|
914
914
|
<head>
|
|
@@ -925,24 +925,24 @@ Error generating stack: `+e.message+`
|
|
|
925
925
|
}.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 zre(e,t){k(t,!0),J(e,Rre);let n=()=>M(r1,`$entryDraft`,l),r=()=>M(AD,`$isSmallScreen`,l),i=()=>M(jD,`$isMediumScreen`,l),a=()=>M(d(),`$thatPane`,l),o=()=>M(Z,`$_`,l),s=()=>M(t.thisPane,`$thisPane`,l),c=()=>M(Y7,`$entryEditorSettings`,l),[l,u]=N(),d=X(t,`thatPane`,19,()=>Ft(null)),f=P(()=>n()?.collection),p=P(()=>n()?.collectionFile),m=P(()=>(V(p)??V(f))?._i18n??ly),h=P(()=>V(m).allLocales),g=P(()=>r()||i()?[...V(h)]:V(h).filter(e=>!(a()?.mode===`edit`&&a().locale===e))),_=P(()=>Object.entries(n()?.validities??{}).some(([e,t])=>V(g).includes(e)&&Object.values(t??{}).some(({valid:e})=>!e))),v=P(()=>n()?.canPreview??!0),y=P(()=>r()||i()||V(h).length>=5),b=P(()=>V(y)?xF:CN),x=P(()=>V(y)?kP:wN),S=P(()=>V(y)?void 0:`tertiary`),C=P(()=>V(y)?void 0:`small`);var w=Lre(),T=L(w);{let e=P(()=>V(_)&&V(y)?`error`:void 0),r=P(()=>o()(`switch_locale`)),i=P(()=>t.id.replace(`-header`,`-body`));ua(T,()=>V(b),(l,u)=>{u(l,{get class(){return V(e)},get"aria-label"(){return V(r)},get"aria-controls"(){return V(i)},children:(e,r)=>{var i=Ire(),l=L(i);na(l,16,()=>V(g),e=>e,(e,r)=>{let i=P(()=>Zv(r)??r),c=P(()=>!n()?.currentLocales[r]),l=P(()=>Object.values(n()?.validities[r]??{}).some(({valid:e})=>!e));var u=W(),f=R(u);{let e=e=>{var t=W(),n=R(t),r=e=>{TM(e,{name:`edit_off`})},i=e=>{TM(e,{name:`error`})};q(n,e=>{V(c)?e(r):V(l)&&e(i,1)}),G(e,t)},n=P(()=>V(i)),u=P(()=>V(c)?o()(`locale_content_disabled_short`):V(l)?o()(`locale_content_error_short`):``),p=P(()=>s()?.mode===`edit`&&s().locale===r),m=P(()=>V(l)?`error`:``);ua(f,()=>V(x),(o,s)=>{s(o,{get variant(){return V(S)},get size(){return V(C)},get label(){return V(i)},get"aria-label"(){return`${V(n)??``} ${V(u)??``}`},get selected(){return V(p)},get class(){return V(m)},"data-mode":`edit`,onSelect:()=>{Vt(t.thisPane,{mode:`edit`,locale:r}),a()?.mode===`preview`&&Vt(d(),{mode:`preview`,locale:r})},startIcon:e,$$slots:{startIcon:!0}})})}G(e,u)});var u=z(l,2),f=e=>{var n=W(),r=R(n);{let e=P(()=>o()(`preview`)),n=P(()=>s()?.mode===`preview`);ua(r,()=>V(x),(r,i)=>{i(r,{get variant(){return V(S)},get size(){return V(C)},get label(){return V(e)},get selected(){return V(n)},"data-mode":`preview`,onSelect:()=>{Vt(t.thisPane,{mode:`preview`,locale:a()?.locale??``})}})})}G(e,n)};q(u,e=>{a()?.mode===`edit`&&V(v)&&c()?.showPreview&&e(f)}),O(i),G(e,i)},$$slots:{default:!0}})})}O(w),G(e,w),A(),u()}function Q7(e,t){k(t,!0);let n=()=>M(Z,`$_`,i),r=()=>M(t.thisPane,`$thisPane`,i),[i,a]=N();{let i=e=>{TM(e,{name:`visibility`})},a=P(()=>n()(`preview`)),o=P(()=>r()?.mode===`preview`);tN(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return V(a)},get pressed(){return V(o)},onclick:()=>{Vt(t.thisPane,{mode:r()?.mode===`preview`?`edit`:`preview`,locale:r()?.locale??``})},startIcon:i,$$slots:{startIcon:!0}})}A(),a()}var Bre=U(`<!> <!>`,1),Vre=U(`<h3 role="none"> </h3>`),Hre=U(`<!> <!>`,1),Ure=U(`<!> <!> <!>`,1),Wre=U(`<!> <!> <!> <!>`,1),Gre=U(`<!> <!>`,1),Kre=U(`<!> <!> <!>`,1),qre=U(`<div role="none" class="header svelte-uj56is"><!></div>`),Jre={hash:`svelte-uj56is`,code:`.header.svelte-uj56is {flex:none !important;}.header.svelte-uj56is > .sui.toolbar {margin-inline:auto;max-width:800px;}
|
|
926
926
|
@media (width < 768px) {.header.svelte-uj56is > .sui.toolbar {padding:0;}
|
|
927
927
|
}.header.svelte-uj56is > .sui.toolbar h3 {margin:0 8px;font-size:var(--sui-font-size-default);}`};function $7(e,t){k(t,!0),J(e,Jre);let n=()=>M(r1,`$entryDraft`,l),r=()=>M(t.thisPane,`$thisPane`,l),i=()=>M(Z,`$_`,l),a=()=>M(AD,`$isSmallScreen`,l),o=()=>M(jD,`$isMediumScreen`,l),s=()=>M(ck,`$prefs`,l),c=()=>M(CA,`$backend`,l),[l,u]=N(),d=X(t,`thatPane`,19,()=>Ft(null)),f=P(()=>n()?.collection),p=P(()=>n()?.collectionFile),m=P(()=>n()?.originalEntry),h=P(()=>n()?.originalValues??{}),g=P(()=>(V(p)??V(f))?._i18n??ly),_=P(()=>V(g).i18nEnabled),v=P(()=>V(g).saveAllLocales),y=P(()=>V(g).allLocales),b=P(()=>V(g).defaultLocale),x=P(()=>n()?.currentLocales[r()?.locale??``]),S=P(()=>Object.values(n()?.currentLocales??{}).filter(e=>e).length===1),C=P(()=>V(_)?V(y).filter(e=>e!==r()?.locale):[]),w=P(()=>!!V(C).length),T=P(()=>r()?.locale&&!(0,Ld.default)(V(h)[r().locale],o1(ft(n()?.currentValues[r().locale])??{}))),ee=P(()=>n()?.canPreview??!0),te=P(()=>V(f)&&V(m)&&r()?.locale?hC(V(m),r().locale,V(f),V(p)):void 0);var ne=qre(),re=L(ne);{let e=P(()=>i()(`secondary`));nX(re,{variant:`secondary`,get"aria-label"(){return V(e)},children:(e,l)=>{var u=Kre(),f=R(u),p=e=>{var n=Bre(),r=R(n);zre(r,{get id(){return t.id},get thisPane(){return t.thisPane},get thatPane(){return d()}});var i=z(r,2),s=e=>{Q7(e,{get thisPane(){return t.thisPane}})};q(i,e=>{(a()||o())&&V(ee)&&e(s)}),G(e,n)},h=e=>{var t=Vre(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()?.mode===`preview`?i()(`preview`):i()(`edit`)]),G(e,t)},g=e=>{Q7(e,{get thisPane(){return t.thisPane}})};q(f,e=>{V(_)&&V(y).length>1?e(p):a()||o()?V(ee)&&e(g,2):e(h,1)});var ne=z(f,2);FN(ne,{flex:!0});var re=z(ne,2),ie=e=>{let t=P(()=>Zv(r().locale)??r().locale);var a=Gre(),o=R(a),l=e=>{q3(e,{get locale(){return r().locale},get otherLocales(){return V(C)}})};q(o,e=>{V(w)&&e(l)});var u=z(o,2);{let e=e=>{{let a=P(()=>i()(`content_options_x_locale`,{values:{locale:V(t)}}));MP(e,{get"aria-label"(){return V(a)},children:(e,a)=>{var o=Wre(),l=R(o),u=e=>{U3(e,{get locale(){return r().locale},get otherLocales(){return V(C)}})};q(l,e=>{V(w)&&r()?.locale&&e(u)});var d=z(l,2);{let e=P(()=>i()(`revert_changes`)),t=P(()=>!V(T));LP(d,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{q7({locale:r()?.locale})}})}var f=z(d,2),p=e=>{var a=Hre(),o=R(a);MN(o,{});var s=z(o,2);{let e=P(()=>i()(V(x)?`disable_x_locale`:ft(n()?.currentValues[r().locale])?`reenable_x_locale`:`enable_x_locale`,{values:{locale:V(t)}})),a=P(()=>r().locale===V(b)||V(x)&&V(S));LP(s,{get label(){return V(e)},get disabled(){return V(a)},onclick:()=>{A7(r()?.locale??``)}})}G(e,a)};q(f,e=>{!V(v)&&r()?.locale&&e(p)});var h=z(f,2),g=e=>{var t=Ure(),n=R(t);MN(n,{});var a=z(n,2),o=e=>{{let t=P(()=>i()(`view_on_live_site`));LP(e,{get label(){return V(t)},onclick:()=>{window.open(V(te))}})}};q(a,e=>{V(te)&&e(o)});var l=z(a,2),u=e=>{{let t=P(()=>!c()?.repository?.blobBaseURL),n=P(()=>i()(`view_on_x`,{values:{service:c()?.repository?.label},default:i()(`view_in_repository`)}));LP(e,{get disabled(){return V(t)},get label(){return V(n)},onclick:()=>{V(m)&&r()&&window.open(gC(V(m),r().locale))}})}};q(l,e=>{s().devModeEnabled&&e(u)}),G(e,t)};q(h,e=>{V(m)&&(V(te)||s().devModeEnabled)&&e(g)}),G(e,o)},$$slots:{default:!0}})}},a=P(()=>i()(`show_content_options_x_locale`,{values:{locale:V(t)}}));EN(u,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return V(a)},popup:e,$$slots:{popup:!0}})}G(e,a)};q(re,e=>{r()?.mode===`edit`&&e(ie)}),G(e,u)},$$slots:{default:!0}})}O(ne),B(()=>Y(ne,`id`,t.id)),G(e,ne),A(),u()}var Yre=U(`<section role="group" class="panel svelte-1bq1or9"><header class="svelte-1bq1or9"><h3 class="svelte-1bq1or9"> </h3></header> <div class="svelte-1bq1or9"><!></div></section>`),Xre={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;}`};function e9(e,t){let n=Ri();J(e,Xre);let r=X(t,`children`,3,void 0);var i=Yre(),a=L(i),o=L(a),s=L(o,!0);O(o),O(a);var c=z(a,2);la(L(c),()=>r()??E),O(c),O(i),B(()=>{Y(i,`aria-labelledby`,`panel-${n}-label`),Y(o,`id`,`panel-${n}-label`),K(s,t.title)}),G(e,i)}var t9=(e,t,n)=>{if(n)return Object.entries(e).filter(([e])=>RegExp(`^${yd(t)}\\.\\d+$`).test(e)).map(([,e])=>e);let r=e[t];return r==null?[]:[r]},Zre=(e,t,n)=>{let{collection:r,file:i}=e;if(!Ty(r))return new Set;let a=qE(n,e,i?j(Nv).filter(e=>Object.values(e.locales).some(({path:e})=>e.includes(i))):xC(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},Qre=(e,t,n,r)=>{if(t.includes(`*`)){let i=RegExp(`^${yd(t).replace(/\\\*/g,`\\d+`)}$`);return Object.keys(e).filter(e=>i.test(e)).some(t=>t9(e,t,n).some(e=>r.has(e)))}return t9(e,t,n).some(e=>r.has(e))},$re=({collectionName:e,fileName:t,entry:n})=>{let r=Ty(e);if(!r)return[];let{_i18n:{defaultLocale:i}}=r,a=[...gj.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,Zre(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=Ty(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;return(a===e?xC(a).filter(e=>e.slug!==n.slug):xC(a)).map(e=>{let n=e.locales[c]?.content??Object.values(e.locales)[0]?.content;if(!(!n||!Qre(n,f,!!t.multiple,l)))return{collectionName:a,collectionLabel:s.label??a,fieldLabel:t.label??d,entry:e,summary:TE(s,e)}}).filter(e=>!!e)})},eie=U(`<span class="summary"> </span>`),tie=U(`<section class="collection svelte-1lhuwki" role="group"><h4> </h4> <!></section>`),nie=U(`<div class="empty"> </div>`),rie={hash:`svelte-1lhuwki`,code:`.collection.svelte-1lhuwki {padding:4px;}.collection.svelte-1lhuwki:not(:first-child) {border-top:2px solid var(--sui-secondary-background-color);}`};function iie(e,t){k(t,!0),J(e,rie);let n=()=>M(r1,`$entryDraft`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o=P(()=>{let e=n();return e?.originalEntry?$re({collectionName:e.collectionName,fileName:e.fileName,entry:e.originalEntry}):[]}),s=P(()=>{let e=[];return V(o).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=P(()=>r()(`entry_sidebar.backlinks.title`));e9(e,{get title(){return V(t)},children:(e,t)=>{var n=W(),i=R(n),a=e=>{var t=W();na(R(t),17,()=>V(s),({collectionLabel:e,items:t})=>e,(e,t)=>{let n=()=>V(t).collectionLabel,r=()=>V(t).items;var i=tie(),a=L(i),o=L(a,!0);O(a),na(z(a,2),17,r,e=>e.entry.id,(e,t)=>{tN(e,{class:`ref`,variant:`ghost`,onclick:()=>{yZ(`/collections/${V(t).collectionName}/entries/${V(t).entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{var r=eie(),i=L(r,!0);O(r),B(()=>K(i,V(t).summary)),G(e,r)},$$slots:{default:!0}})}),O(i),B(()=>K(o,n())),G(e,i)}),G(e,t)},c=e=>{var t=nie(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`entry_sidebar.backlinks.no_entries`)]),G(e,t)};q(i,e=>{V(o).length>0?e(a):e(c,-1)}),G(e,n)},$$slots:{default:!0}})}A(),a()}var n9=new Map,aie=async e=>{let{id:t,locales:n}=e,r=n9.get(t);if(r)return r;let i=j(CA);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 n9.set(t,e),e}catch{let e={commits:[],loading:!1,error:!0};return n9.set(t,e),e}},oie=e=>{n9.delete(e)},sie=U(`<div class="empty"> </div>`),cie=U(`<div class="empty"> </div>`),lie=U(`<img class="avatar svelte-14rpg2i" alt="" width="24" height="24" loading="lazy"/>`),uie=U(`<span class="avatar placeholder svelte-14rpg2i" aria-hidden="true"></span>`),die=U(`<!> <span class="details svelte-14rpg2i"><span class="author svelte-14rpg2i"> </span> <span class="date svelte-14rpg2i"> </span></span>`,1),fie=U(`<div role="list" class="commits svelte-14rpg2i"></div>`),pie=U(`<div class="empty"> </div>`),mie={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 hie(e,t){k(t,!0),J(e,mie);let n=()=>M(r1,`$entryDraft`,o),r=()=>M(Z,`$_`,o),i=()=>M(CA,`$backend`,o),a=()=>M(Am,`$appLocale`,o),[o,s]=N(),c=F(Bn([])),l=F(!1),u=F(!1),d=async()=>{let e=n()?.originalEntry;e&&(I(l,!0),await(async e=>{I(c,e.commits,!0),I(u,e.error,!0)})(await aie(e)),I(l,!1))};fo(()=>{d()});{let t=P(()=>r()(`entry_sidebar.history.title`));e9(e,{get title(){return V(t)},children:(e,t)=>{var n=W(),o=R(n),s=e=>{var t=sie(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`loading`)]),G(e,t)},d=e=>{var t=cie(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`entry_sidebar.history.fetch_failed`)]),G(e,t)},f=e=>{var t=fie();na(t,21,()=>V(c),e=>e.sha,(e,t)=>{let n=P(()=>i()?.repository?.commitBaseURL?`${i().repository.commitBaseURL}/${V(t).sha}`:void 0);{let r=P(()=>!V(n));tN(e,{class:`ref`,variant:`ghost`,role:`link`,get disabled(){return V(r)},onclick:()=>{V(n)&&window.open(V(n),`_blank`,`noopener,noreferrer`)},children:(e,n)=>{var r=die(),i=R(r),o=e=>{var n=lie();B(()=>Y(n,`src`,V(t).authorAvatarURL)),G(e,n)},s=e=>{G(e,uie())};q(i,e=>{V(t).authorAvatarURL?e(o):e(s,-1)});var c=z(i,2),l=L(c),u=L(l,!0);O(l);var d=z(l,2),f=L(d,!0);O(d),O(c),B(e=>{K(u,V(t).authorName),K(f,e)},[()=>bx(V(t).date,a())]),G(e,r)},$$slots:{default:!0}})}}),O(t),G(e,t)},p=e=>{var t=pie(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`entry_sidebar.history.no_history`)]),G(e,t)};q(o,e=>{V(l)?e(s):V(u)?e(d,1):V(c).length>0?e(f,2):e(p,-1)}),G(e,n)},$$slots:{default:!0}})}A(),s()}var gie=U(`<h4 class="svelte-mwf2jd"> </h4>`),_ie=U(`<span class="summary svelte-mwf2jd"> </span> <!>`,1),vie=U(`<div class="empty svelte-mwf2jd"> </div>`),yie=U(`<section class="locale svelte-mwf2jd" role="group"><!> <!></section>`),bie=U(`<div class="empty"> </div>`),xie={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),
|
|
928
|
-
.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 Sie(e,t){k(t,!0),J(e,xie);let n=()=>M(r1,`$entryDraft`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o=P(()=>n()??{}),s=P(()=>V(o).validationMessages),c=P(()=>V(o).collectionName),l=P(()=>V(o).fileName),u=P(()=>V(o).currentValues),d=P(()=>V(o).isIndexFile),f=P(()=>V(o).validities),p=P(()=>Object.values(V(f)??{}).some(e=>!!Object.keys(e).length)),m=P(()=>({collectionName:V(c),fileName:V(l),currentValues:V(u),isIndexFile:V(d)})),h=({locale:e,keyPath:t})=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:e,keyPath:t}})};{let t=P(()=>r()(`entry_sidebar.validation.title`));e9(e,{get title(){return V(t)},children:(e,t)=>{var n=W(),i=R(n),a=e=>{var t=W();na(R(t),17,()=>Object.entries(V(s)),([e,t])=>e,(e,t)=>{var n=P(()=>ce(V(t),2));let i=()=>V(n)[0],a=()=>V(n)[1],o=P(()=>V(u)?.[i()]),s=P(()=>Zv(i()));var c=yie(),l=L(c),d=e=>{var t=gie(),n=L(t,!0);O(t),B(()=>K(n,V(s))),G(e,t)};q(l,e=>{V(s)&&e(d)});var p=z(l,2),g=e=>{var t=W();na(R(t),16,()=>Object.keys(V(o)),e=>e,(e,t)=>{let n=P(()=>hD({...V(m),valueMap:V(o),keyPath:t})),r=P(()=>a()[t]??[]);var s=W(),c=R(s),l=e=>{tN(e,{class:`ref`,variant:`ghost`,onclick:()=>{h({locale:i(),keyPath:t})},children:(e,t)=>{var i=_ie(),a=R(i),o=L(a,!0);O(a),na(z(a,2),17,()=>V(r),Qi,(e,t)=>{X3(e,{live:`off`,children:(e,n)=>{rt();var r=Li();B(()=>K(r,V(t))),G(e,r)},$$slots:{default:!0}})}),B(()=>K(o,V(n)?.label||V(n)?.name)),G(e,i)},$$slots:{default:!0}})};q(c,e=>{V(r).length&&e(l)}),G(e,s)}),G(e,t)},_=P(()=>Object.values(V(f)[i()]).some(e=>e.valid===!1)),v=e=>{var t=vie(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`entry_sidebar.validation.no_errors_found`)]),G(e,t)};q(p,e=>{V(_)?e(g):e(v,-1)}),O(c),G(e,c)}),G(e,t)},o=e=>{var t=bie(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`entry_sidebar.validation.placeholder`)]),G(e,t)};q(i,e=>{V(f)&&V(p)?e(a):e(o,-1)}),G(e,n)},$$slots:{default:!0}})}A(),a()}var Cie=U(`<div role="none" class="content svelte-19e8zut" id="entry-sidebar-content"><!></div>`),wie=U(`<div role="none" class="sidebar svelte-19e8zut"><!> <!></div>`),Tie={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 Eie(e,t){k(t,!0),J(e,Tie);let n=()=>M(r1,`$entryDraft`,o),r=()=>M(Z,`$_`,o),i=()=>M(CA,`$backend`,o),a=()=>M(Y7,`$entryEditorSettings`,o),[o,s]=N(),c=P(()=>{let e=n()?.collectionName,t=n()?.fileName;return e?[...gj.relationFields].some(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t)):!1}),l=P(()=>[{key:`validation`,label:r()(`entry_sidebar.validation.title`),icon:`task_alt`,disabled:!1,panel:Sie},{key:`history`,label:r()(`entry_sidebar.history.title`),icon:`history`,disabled:!i()?.isGit||!!n()?.isNew,panel:hie},{key:`backlinks`,label:r()(`entry_sidebar.backlinks.title`),icon:`article_shortcut`,disabled:!V(c),panel:iie}]),u=F(Bn(a()?.sidebarPanel??null)),d=P(()=>V(u)?V(l).find(e=>e.key===V(u))??V(l)[0]:null);pr(()=>{Y7.update((e={})=>({...e,sidebarPanel:V(u)}))});var f=wie(),p=L(f);{let e=P(()=>r()(`entry_sidebar.sidebar_panels`));CN(p,{class:`tabs`,get"aria-label"(){return V(e)},"aria-controls":`entry-sidebar-content`,children:(e,t)=>{var n=W();na(R(n),17,()=>V(l),({key:e,label:t,icon:n,disabled:r})=>e,(e,t)=>{let n=()=>V(t).key,r=()=>V(t).label,i=()=>V(t).icon,a=()=>V(t).disabled;{let t=P(()=>V(d)?.key===n());wN(e,{iconic:!0,get"aria-label"(){return r()},get selected(){return V(t)},get disabled(){return a()},onclick:()=>{I(u,V(u)===n()?null:n(),!0)},children:(e,t)=>{TM(e,{get name(){return i()}})},$$slots:{default:!0}})}}),G(e,n)},$$slots:{default:!0}})}var m=z(p,2),h=e=>{var t=Cie();ua(L(t),()=>V(d).panel,(e,t)=>{t(e,{})}),O(t),G(e,t)};q(m,e=>{V(d)&&e(h)}),O(f),G(e,f),A(),s()}var Die=U(`<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>`),Oie=U(`<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>`),kie=U(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>`,1),Aie={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);}`};function jie(e,t){let n=Ri();k(t,!0),J(e,Aie);let r=()=>M(r1,`$entryDraft`,a),i=()=>M(Z,`$_`,a),[a,o]=N(),s=X(t,`open`,15,!1),c=P(()=>r()?.collectionName??``),l=P(()=>r()?.currentSlugs??{}),u=F(Bn([])),d=Bn({}),f=Bn({}),p=()=>{let e=new Set(Object.values(V(l)));I(u,xC(V(c)).flatMap(e=>Object.values(e.locales).map(({slug:e})=>e)).filter(t=>!e.has(t)),!0),Object.assign(d,V(l)),Object.assign(f,Object.fromEntries(Object.keys(V(l)).map(e=>[e,!1])))};pr(()=>{s()&&p()});{let t=P(()=>i()(`edit_slug`)),a=P(()=>i()(`update`)),o=P(()=>(0,Ld.default)(V(l),d)||Object.values(f).some(e=>e!==!1));YN(e,{get title(){return V(t)},get okLabel(){return V(a)},get okDisabled(){return V(o)},onOk:()=>{Ut(r1,H(r).currentSlugs=d,H(r))},get open(){return s()},set open(e){s(e)},children:(e,t)=>{var r=kie(),a=R(r);Zi(a,()=>({"--font-size":`var(--sui-font-size-small)`})),OM(a.lastChild,{status:`warning`,children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>i()(`edit_slug_warning`)]),G(e,n)},$$slots:{default:!0}}),O(a);var o=z(a,2);na(o,20,()=>Object.keys(d),e=>e,(e,t)=>{var r=Oie(),a=L(r),o=e=>{var n=Die(),r=L(n),i=L(r,!0);O(r),O(n),B(e=>K(i,e),[()=>Zv(t)??t]),G(e,n)},s=P(()=>![`_`,`_default`].includes(t));q(a,e=>{V(s)&&e(o)});var c=z(a,2),l=L(c);{let e=P(()=>f[t]!==!1);tP(l,{flex:!0,oninput:()=>{f[t]=d[t].trim()?V(u).includes(d[t])?`duplicate`:!1:`empty`},get invalid(){return V(e)},get"aria-errormessage"(){return`${n}-${t??``}-error`},get value(){return d[t]},set value(e){d[t]=e}})}var p=z(l,2),m=L(p),h=e=>{var t=Li();B(e=>K(t,e),[()=>i()(`edit_slug_error.empty`)]),G(e,t)};q(m,e=>{f[t]===`empty`&&e(h)});var g=z(m,2),_=e=>{var t=Li();B(e=>K(t,e),[()=>i()(`edit_slug_error.duplicate`)]),G(e,t)};q(g,e=>{f[t]===`duplicate`&&e(_)}),O(p),O(c),O(r),B(()=>Y(p,`id`,`${n}-${t??``}-error`)),G(e,r)}),O(o),G(e,r)},$$slots:{default:!0}})}A(),o()}var Mie=({ids:e,assetPaths:t})=>{let n=j(Nv);Nv.set(n.filter(t=>!e.includes(t.id))),AQ.set({...kQ,deleted:!0,count:e.length}),t.length&&Ij.update(e=>e.filter(e=>!t.includes(e.path)))},r9=async(e,t=[])=>{let n=j(CA)?.repository?.databaseName,r=n?new Rb(n,`file-cache`):void 0,i=[],a=`delete`,o=await Promise.all(e.map(async({id:e,locales:t,slug:n})=>{let o=Vb(Object.values(t).map(e=>e.path));return await Promise.all(o.map(async e=>{let t=await x1({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));await FQ({changes:i,options:{commitType:`delete`,collection:j(py)}}),Mie({ids:o,assetPaths:s})},i9=(e,t)=>{if(Array.isArray(e))return{options:e};if(u(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:[]}},a9=e=>i9(e,`filters`),Nie=(e,t,n)=>{let{name:r,view_filters:i=[],_i18n:{defaultLocale:a}}=t,{options:o}=a9(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:vC(t)}));return e.filter(e=>s.every(({field:t,pattern:n,regex:i})=>{let o={entry:e,locale:a,collectionName:r,key:t},s=bD({...o,resolveRef:!1}),c=bD({...o});return s===void 0||c===void 0?!1:YX(s,n,i)||YX(c,n,i)}))},Pie=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=a9(e.view_filters);t(n),d9.update(e=>({...e,filters:e.filters??(r?[r]:void 0)}))},Fie=It([py],([e],t)=>{Pie(e,t)}),Iie=e=>i9(e,`groups`),Lie=(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=j(d9).sort,c=JX(e,i,e=>bD({entry:e,locale:o,collectionName:a,key:r}),j(Z)(`other`)).map(([e,t])=>({name:e,entries:t}));return s?.key===r&&s.order===`descending`&&c.reverse(),c},Rie=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=Iie(e.view_groups);t(n),d9.update(e=>({...e,group:e.group===void 0?r:e.group}))},zie=It([py],([e],t)=>{Rie(e,t)}),o9=Ft(),Bie=async({repository:e})=>{await ZX(e,`contents-view`,o9),d9.subscribe(e=>{let{name:t}=j(py)??{},n=j(o9)?.[t??``]??{};t&&!(0,Ld.default)(e,n)&&o9.update(n=>({...n,[t]:e}))})},s9=[`title`,`name`,`date`,`author`,`description`],c9={slug:String,commit_author:String,commit_date:Date,_summary:String},l9=Object.keys(c9),u9=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),Vie=e=>{if(u9(e))return{keys:e};if(u(e)){let{fields:t,default:n}=e;return u9(t)?u(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}},Hie=e=>e?{keys:[e,...s9.filter(t=>t!==e)],defaultKey:e}:{keys:[...s9]},Uie=({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?Vie(a):Hie(i);o&&s.unshift(`_summary`);let u=s.includes(`commit_author`),d=s.includes(`commit_date`);return 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=Vb(s).filter(e=>!!e&&(l9.includes(e)||!!hD({collectionName:r,keyPath:e}))),c=c&&s.includes(c)?c:s[0],l??=c?`ascending`:void 0,{keys:s,default:{key:c,order:l}}},Wie=({key:e,fieldConfig:t})=>{if(e in c9)return c9[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},Gie=({collection:e,key:t})=>[...l9,`name`].includes(t)?j(Z)(`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 hD({collectionName:e.name,keyPath:i})?.label||t}).filter(Boolean).join(` â `):e.fields?.find(({name:e})=>e===t)?.label||t,Kie=It([py,Nv,Am],([e,t],n)=>{if(!e||!(`folder`in e)){n([]);return}let r=j(o9)?.[e.name]??{type:`list`},{keys:i,default:a}=Uie({collection:e,isCommitAuthorAvailable:t.some(e=>!!e.commitAuthor),isCommitDateAvailable:t.some(e=>!!e.commitDate)});r.sort??=a,n(i.map(t=>({key:t,label:Gie({collection:e,key:t})}))),(0,Ld.default)(r,j(d9))||d9.set(r)}),qie=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},Jie=[`title`,`summary`,`description`],Yie=({key:e,type:t,collection:n,locale:r,collectionName:i,dateFieldConfig:a,isMarkdownField:o})=>e===`_summary`?e=>TE(n,e,{locale:r,useTemplate:!0}):a?t=>{let n=bD({entry:t,locale:r,collectionName:i,key:e});return n?Number(wx(n,a)??0):0}:t===String?t=>{let n=bD({entry:t,locale:r,collectionName:i,key:e}),a=n?String(n):``;return o?qie(a):a}:t=>{let n=bD({entry:t,locale:r,collectionName:i,key:e});return Number(n??0)},Xie=(e,t,{key:n,order:r}={})=>{let i=[...e];if(n===void 0)return i;let{name:a,_i18n:{defaultLocale:o}}=t,s=hD({collectionName:a,keyPath:n}),c=Wie({key:n,fieldConfig:s}),l=s?.widget===`datetime`?s:void 0,u=Yie({key:n,type:c,collection:t,locale:o,collectionName:a,dateFieldConfig:l,isMarkdownField:s?.widget===`richtext`||s?.widget===`markdown`||Jie.includes(n)}),d=Object.fromEntries(i.map(e=>[e.slug,u(e)]));XX(i,e=>d[e.slug],!l&&c===String,r);let f=qv(t)?.name;if(f){let e=i.findIndex(e=>e.slug===f);e>-1&&i.unshift(i.splice(e,1)[0])}return i},d9=Ft({type:`list`}),f9=It([Nv,py],([e,t],n)=>{n(e&&t?xC(t.name):[])}),Zie=5,p9=It([f9,py],([e,t])=>{if(t?._type===`entry`){let n=t.create??!0,r=t.delete??!0,i=t?.limit??1/0,a=i<1/0?i-e.length:1/0;return{isEntryCollection:!0,canCreate:n,canDelete:r,quota:i,remaining:a,nearingQuota:a>0&&a<=Zie,creationDisabled:!n||a<=0}}return{isEntryCollection:!1,canCreate:!1,canDelete:!1,quota:1/0,remaining:1/0,nearingQuota:!1,creationDisabled:!1}}),m9=void 0,h9=void 0,g9=It([f9,d9,Am],([e,t],n)=>{if(e===m9&&t===h9)return;m9=e,h9=t,n([]);let r=j(py),i=[...e];if(!i.length||Hv(r,i[0]).length)return;t.sort&&(i=Xie(i,r,t.sort)),t.filters&&(i=Nie(i,r,t.filters));let a=Lie(i,r,t.group);(0,Ld.default)(j(g9),a)||n(a)});CA.subscribe(e=>{e&&!j(o9)&&Bie(e)}),f9.subscribe(e=>{bC.set([]),j(ck).devModeEnabled&&console.info(`listedEntries`,e)}),py.subscribe(e=>{e&&j(ck).devModeEnabled&&console.info(`selectedCollection`,e)});var _9=({collection:e,collectionFile:t,originalEntry:n})=>{let{_type:r}=e,{identifier_field:i=`title`,slug:a=`{{${i}}}`}=r===`entry`?e:{},{id:o}=n,s=o===void 0,{_i18n:c}=t??e,{allLocales:l,defaultLocale:u}=c,d=r===`entry`&&s,f=d&&a.includes(`{{fields._slug | localize}}`),p=d&&(a.includes(`{{fields._slug}}`)||f);return Object.fromEntries(l.map(e=>[e,p?e===u||f?!0:`readonly`:!1]))},v9=({collection:e,collectionFile:t,originalEntry:n={},dynamicValues:r,extraValues:i,expanderStates:a,isIndexFile:o=Jv(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?qv(e):void 0,g=h?.fields??p,_=h?.editor?.preview??t?.editor?.preview??e.editor?.preview??j(fj)?.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},T=Object.fromEntries(S.map(e=>f?[e,Z5({fields:g,locale:e,defaultLocale:b,dynamicValues:r})]:[e,structuredClone(d?.[e]?.content)]));r1.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:T,currentValues:Object.fromEntries(S.map(e=>[e,N2({draft:{collectionName:s,fileName:c,isIndexFile:o},locale:e,target:structuredClone(T[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:_9({collection:e,collectionFile:t,originalEntry:n})}),U2({collectionName:s,fileName:c,slug:u})},Qie=()=>{let e=j(r1),{collectionName:t,fileName:n,collection:r,collectionFile:i,currentValues:a,validities:o,isIndexFile:s}=e,{defaultLocale:c,canonicalSlug:{key:l}}=(i??r)._i18n;Object.entries(a).forEach(([e,r])=>{delete r[l];let i={collectionName:t,fileName:n,valueMap:r,isIndexFile:s};Object.keys(r).forEach(t=>{let n=hD({...i,keyPath:t});if(n?.widget===`uuid`&&(e===c||[!0,`translate`].includes(n?.i18n??!1))&&(r[t]=H7(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,V5({fieldConfig:n,keyPath:t,locale:e,defaultLocale:c}))}})}),Object.keys(o).forEach(e=>{o[e]={}}),r1.set({...e,id:crypto.randomUUID(),createdAt:Date.now(),isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{},slugEditor:_9({collection:r,collectionFile:i,originalEntry:{}})}),sM.set(!0)},$ie=({fieldConfig:e,value:t})=>{let n=e,{type:r,min:i,max:a}=xx(n),o=typeof i==`string`&&!!i,s=typeof a==`string`&&!!a,c=!1,l=!1;if(t&&(o||s)){let e=Dx(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}}},eae=new Intl.DateTimeFormat(`en-GB`,{hour12:!0,timeZone:`UTC`,hour:`2-digit`,minute:`2-digit`}),y9=e=>eae.format(new Date(`1970-01-01T${e}Z`)).toUpperCase(),tae=(e,t)=>{if(e===`date`)return t;if(e===`time`)return y9(t);let[n,r]=t.split(`T`);return`${n}, ${y9(r)}`},b9=({direction:e,limitKey:t,limitValue:n,fieldType:r,type:i,canAddMultiValue:a})=>{let o=j(Z),s=n===1?`one`:`many`;return r===`datetime`&&typeof n==`string`?o(`validation.range_${e}.${i}`,{values:{[t]:tae(i,n)}}):o(r===`number`?`validation.range_${e}.number`:a?`validation.range_${e}.add_${s}`:`validation.range_${e}.select_${s}`,{values:{[t]:n}})},x9=({validity:e,fieldConfig:t})=>{let n=j(Z),r=[],{widget:i=`string`}=t,{pattern:a=[]}=t,o=i===`datetime`,s=o?xx(t):{},c=i===`string`?t.type??`text`:o?s.type:i===`number`?`number`:void 0,{min:l,max:u}=o?s:t,d=i===`list`||i===`keyvalue`||pD(t);if(e.valueMissing&&r.push(n(`validation.value_missing`)),e.tooShort){let{minlength:e}=t;r.push(n(e===1?`validation.too_short.one`:`validation.too_short.many`,{values:{min:e}}))}if(e.tooLong){let{maxlength:e}=t;r.push(n(e===1?`validation.too_long.one`:`validation.too_long.many`,{values:{max:e}}))}return e.rangeUnderflow&&r.push(b9({direction:`underflow`,limitKey:`min`,limitValue:l,fieldType:i,type:c,canAddMultiValue:d})),e.rangeOverflow&&r.push(b9({direction:`overflow`,limitKey:`max`,limitValue:u,fieldType:i,type:c,canAddMultiValue:d})),e.patternMismatch&&r.push(a[1]),e.typeMismatch&&r.push(n(`validation.type_mismatch.${c}`)),r},nae=({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}`]}},rae=({keyPath:e,getFieldArgs:t,validity:n,validities:r,locale:i,required:a,min:o,max:s})=>{let c=e.match(/(.+?)(?:\.[^.]*)?$/)?.[1],l=hD({...t,keyPath:c.replace(M7,``)});if(c in r[i]||l?.widget!==`keyvalue`)return{skip:!0,keyPath:e};let u=p5({entryDraft:r1,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}},iae=new Map,aae=({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=Tb(iae,e,()=>RegExp(`^${yd(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}},oae=({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`)&&gD({fieldConfig:e,locale:t})&&n===null}}},S9=/\.\d+$/,sae={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},cae={datetime:$ie,number:oae,string:B7,text:B7},C9={get:(e,t)=>t===`valid`?!Object.values(e).some(Boolean):e[t]},lae=({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=vC(n[0]);e&&!e.test(String(i))&&(r.patternMismatch=!0)}},uae=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(M7,``),isIndexFile:d},h=hD({...m});if(!h)return;let{widget:g=`string`,i18n:_=!1,pattern:v}=h,y=pD(h),{min:b=0,max:x=1/0}=Ux.includes(g)?h:{},{i18nEnabled:S,defaultLocale:C}=(l??o)._i18n;if(!i&&n!==C&&(!S||_===!1||_===`none`||_===`duplicate`))return;let w=Object.entries(r),T=gD({fieldConfig:h,locale:n}),ee={...sae};if(g===`list`||y){let{skip:e}=aae({keyPath:f,value:p,valueEntries:w,validity:ee,validities:a,locale:n,required:T,min:b,max:x});if(e)return}if(g===`object`&&T&&!p&&(ee.valueMissing=!0),g===`keyvalue`){let e=rae({keyPath:f,getFieldArgs:m,validity:ee,validities:a,locale:n,required:T,min:b,max:x});if(e.skip)return;f=e.keyPath}if(g===`code`){let e=nae({keyPath:f,value:p,valueMap:r,fieldConfig:h,validities:a,locale:n});if(e.skip)return;f=e.keyPath,p=e.value}Vx.includes(g)&&typeof p==`string`&&p.startsWith(`blob:`)&&(p=u[p]?.file?.name),[`object`,`list`,`hidden`,`compute`,`keyvalue`].includes(g)||y||lae({value:p,required:T,validation:v,validity:ee});let te=cae[g];return te&&Object.assign(ee,te({fieldConfig:h,locale:n,value:p}).validity),new Proxy(ee,C9)},w9=e=>{let{validities:t,locale:n,keyPath:r}=e,i=uae(e),a=!0;return i&&(t[n][r]=i,i.valid||(a=!1)),a},dae=({fieldConfig:e,validateArgs:t})=>{let{validities:n,locale:r,keyPath:i}=t,a=n[r][i]?.valid??w9(t),{widget:o=`string`}=e;return o===`list`&&!H4(e).hasSubFields||pD(e)?{valid:a,validateItems:!1}:{valid:a,validateItems:!0}},T9=e=>{let t=j(r1),{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(M7)??[],u=a?n[`${a}__sc_component_name`]:void 0,d=hD({...c,keyPath:t.replace(M7,``),valueMap:n,componentName:u});if(!d)return;if(S9.test(t)){let n=t.replace(S9,``),{valid:r,validateItems:a}=dae({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]=x9({validity:t,fieldConfig:d}))}if(!a)return}w9({...i,keyPath:t,value:r,componentName:u})||(l=!1);let f=o[e][t];f&&(s[e][t]=x9({validity:f,fieldConfig:d}))})}),{valid:l,validities:o,validationMessages:s}},fae=()=>{let{currentSlugs:e,slugEditor:t}=j(r1),n={},r=!0;return Object.entries(e).forEach(([e,i])=>{let a=!!t[e]&&!i?.trim();a&&(r=!1),n[e]={_slug:{valueMissing:a,valid:!a}}}),{valid:r,validities:n}},pae=()=>{let{valid:e,validities:t,validationMessages:n}=T9(`currentValues`),{valid:r,validities:i,validationMessages:a}=T9(`extraValues`),{valid:o,validities:s}=fae();return r1.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},mae=({skipCI:e})=>{let t=!!j(CA)?.isGit&&!(e??j(N$));AQ.set({...kQ,saved:!0,published:t,count:1}),wA.set(t)},hae=async({skipCI:e=void 0}={})=>{let t=j(r1),{isNew:n,collection:r,collectionName:i,fileName:a,currentValues:o,originalEntry:s}=t;if(!pae())throw o7({collectionName:i,fileName:a,currentValues:o}),Error(`validation_failed`);let c=K$({draft:t}),{defaultLocaleSlug:l}=c,{savingEntry:u,changes:d,savingAssets:f}=await w1({draft:t,slugs:c}),p;try{p=await FQ({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 aM({type:`postSave`,draft:t,savingEntry:u}),mae({skipCI:e}),z2(i,n?``:l),s&&oie(s.id),p.savedEntries[0]},gae=U(`<!> <!>`,1),_ae=U(`<!> <!> <!>`,1),vae=U(`<!> <!> <!> <!>`,1),yae=U(`<!> <h2 role="none"><!></h2> <!> <!> <!> <!>`,1),bae=U(`<div role="none" class="error svelte-zjrq31"> </div>`),xae=U(` <!>`,1),Sae=U(`<!> <!> <!> <!> <!> <!>`,1),Cae={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 wae(e,t){k(t,!0),J(e,Cae);let n=()=>M(r1,`$entryDraft`,m),r=()=>M(Am,`$appLocale`,m),i=()=>M(s1,`$entryDraftModified`,m),a=()=>M(ck,`$prefs`,m),o=()=>M(Z,`$_`,m),s=()=>M(AD,`$isSmallScreen`,m),c=()=>M(p9,`$collectionState`,m),l=()=>M(jD,`$isMediumScreen`,m),u=()=>M(Y7,`$entryEditorSettings`,m),d=()=>M(M$,`$skipCIConfigured`,m),f=()=>M(N$,`$skipCIEnabled`,m),p=()=>M(lM,`$copyFromLocaleToast`,m),[m,h]=N(),g=e=>{let t=P(()=>s()?LP:tN),n=P(()=>!V(te)&&V(re)?.duplicate!==!1&&!c().creationDisabled&&!V(re)?.path),r=P(()=>V(re)?.delete!==!1);var i=gae(),a=R(i),l=e=>{var n=W(),r=R(n);{let e=P(()=>o()(`duplicate`)),n=P(()=>o()(`duplicate_entry`));ua(r,()=>V(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return V(e)},get"aria-label"(){return V(n)},onclick:()=>{yZ(`/collections/${V(se)}/new`,{replaceState:!0,notifyChange:!1,transitionType:`forwards`}),Qie()}})})}G(e,n)};q(a,e=>{V(n)&&e(l)});var u=z(a,2),d=e=>{var n=W(),r=R(n);{let e=P(()=>o()(`delete`)),n=P(()=>o()(`delete_entry`));ua(r,()=>V(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return V(e)},get"aria-label"(){return V(n)},onclick:()=>{I(b,!0)}})})}G(e,n)};q(u,e=>{V(r)&&e(d)}),G(e,i)},_=X(t,`disabled`,3,!1),v=F(!1),y=F(!1),b=F(!1),x=F(!1),S=F(``),C=F(!1),w=F(void 0),T=P(()=>n()===void 0),ee=P(()=>n()?.isNew??!0),te=P(()=>n()?.isIndexFile??!1),ne=P(()=>n()?.collection),re=P(()=>V(ne)?._type===`entry`?V(ne):void 0),ie=P(()=>n()?.collectionFile),E=P(()=>n()?.originalEntry),ae=P(()=>(V(ie)??V(ne))?._i18n??ly),oe=P(()=>V(ae).defaultLocale),se=P(()=>V(ne)?.name),D=P(()=>V(ie)?.name),ce=P(()=>r()&&V(ne)?Ey(V(ne)):``),le=P(()=>r()&&V(ne)?Ey(V(ne),{useSingular:!0}):``),ue=P(()=>n()?.canPreview??!0),de=P(()=>V(ee)||i()),fe=P(()=>Object.values(n()?.validities??{}).flatMap(e=>Object.values(e).map(({valid:e})=>!e)).filter(Boolean).length),pe=P(()=>V(se)&&V(E)&&Hd({collectionName:V(se),fileName:V(D)})?.entryRelative?eM({entry:V(E),collectionName:V(se),fileName:V(D),relative:!0}):[]),me=P(()=>V(ne)&&V(E)?hC(V(E),V(oe),V(ne),V(ie)):void 0),he=()=>{bZ(V(se)===`_singletons`?`/collections`:`/collections/${V(se)}`)},ge=async({skipCI:e=void 0}={})=>{if(I(C,!0),V(ne))try{let t=await hae({skipCI:e});a()?.closeOnSave??!0?(he(),Vt(r1,null)):(V(ee)&&yZ(`/collections/${V(se)}/entries/${t.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:`backwards`}),v9({collection:V(ne),collectionFile:V(ie),originalEntry:t,extraValues:n()?.extraValues,expanderStates:n()?.expanderStates}))}catch(e){e.message===`validation_failed`?I(v,!0):e.message===`saving_failed`?(I(x,!0),I(S,e.cause?.message??e.message??o()(`unexpected_error`),!0)):(I(x,!0),I(S,``),console.error(e))}finally{I(C,!1)}};var _e=Sae(),ve=R(_e);{let e=P(()=>o()(`primary`));nX(ve,{variant:`primary`,get"aria-label"(){return V(e)},children:(e,t)=>{var i=yae(),c=R(i);{let e=P(()=>o()(`cancel_editing`));WQ(c,{get"aria-label"(){return V(e)},get useShortcut(){return a().closeWithEscape},onclick:()=>{he()}})}var p=z(c,2),m=L(p),h=e=>{LM(e,{children:(e,t)=>{var n=W(),i=R(n),a=e=>{var t=Li();B(e=>K(t,e),[()=>o()(`create_entry_title`,{values:{name:V(le)}})]),G(e,t)},c=e=>{let t=P(()=>V(ie)?Vv(V(ie)):V(ne)&&V(E)&&r()?TE(V(ne),V(E)):``);var n=W(),i=R(n),a=e=>{var n=Li();B(()=>K(n,V(t))),G(e,n)},c=e=>{var n=Li();B(e=>K(n,e),[()=>o()(`edit_entry_title`,{values:{collection:V(ce),entry:V(t)}})]),G(e,n)};q(i,e=>{s()?e(a):e(c,-1)}),G(e,n)};q(i,e=>{V(ee)?e(a):e(c,-1)}),G(e,n)},$$slots:{default:!0}})};q(m,e=>{V(T)||e(h)}),O(p);var v=z(p,2),b=e=>{{let t=P(()=>o()(`view_on_live_site`));tN(e,{variant:`tertiary`,get label(){return V(t)},onclick:()=>{window.open(V(me))}})}};q(v,e=>{!_()&&V(me)&&e(b)});var x=z(v,2),S=e=>{g(e)};q(x,e=>{!s()&&!_()&&!V(ie)&&!V(ee)&&e(S)});var ae=z(x,2);{let e=e=>{{let t=P(()=>o()(`editor_options`));MP(e,{get"aria-label"(){return V(t)},children:(e,t)=>{var r=vae(),i=R(r),a=e=>{g(e)};q(i,e=>{s()&&!_()&&!V(ie)&&!V(ee)&&e(a)});var c=z(i,2);{let e=P(()=>o()(`edit_slug`)),t=P(()=>!!V(ie)||V(ee)||V(te)||V(re)?.delete===!1);LP(c,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{I(y,!0)}})}var d=z(c,2);{let e=P(()=>o()(`revert_all_changes`)),t=P(()=>!V(de));LP(d,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{q7()}})}var f=z(d,2),p=e=>{var t=_ae(),r=R(t);MN(r,{});var i=z(r,2);{let e=P(()=>o()(`show_preview`)),t=P(()=>u()?.showPreview),n=P(()=>!V(ue));RP(i,{get label(){return V(e)},get checked(){return V(t)},get disabled(){return V(n)},onChange:()=>{Y7.update((e={})=>({...e,showPreview:!e.showPreview}))}})}var a=z(i,2);{let e=P(()=>o()(`sync_scrolling`)),t=P(()=>u()?.syncScrolling),r=P(()=>!V(ue)&&Object.keys(n()?.currentValues??{}).length===1);RP(a,{get label(){return V(e)},get checked(){return V(t)},get disabled(){return V(r)},onChange:()=>{Y7.update((e={})=>({...e,syncScrolling:!e.syncScrolling}))}})}G(e,t)};q(f,e=>{s()||l()||e(p)}),G(e,r)},$$slots:{default:!0}})}},t=P(()=>o()(`show_editor_options`));oo(EN(ae,{get disabled(){return _()},variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return V(t)},popup:e,$$slots:{popup:!0}}),e=>I(w,e,!0),()=>V(w))}var oe=z(ae,2),se=e=>{{let t=e=>{MP(e,{children:(e,t)=>{{let t=P(()=>o()(f()?`save_and_publish`:`save_without_publishing`));LP(e,{get label(){return V(t)},onclick:()=>{ge({skipCI:!f()})}})}},$$slots:{default:!0}})},n=P(()=>o()(V(C)?`saving`:`save`)),r=P(()=>_()||!V(de)||V(C));kN(e,{variant:`primary`,get label(){return V(n)},get disabled(){return V(r)},keyShortcuts:`Accel+S`,onclick:()=>{ge()},popup:t,$$slots:{popup:!0}})}},D=e=>{{let t=P(()=>o()(V(C)?`saving`:`save`)),n=P(()=>_()||!V(de)||V(C));tN(e,{variant:`primary`,get label(){return V(t)},get disabled(){return V(n)},keyShortcuts:`Accel+S`,onclick:()=>{ge()}})}};q(oe,e=>{d()?e(se):e(D,-1)}),G(e,i)},$$slots:{default:!0}})}var ye=z(ve,2);QF(ye,{get show(){return V(v)},set show(e){I(v,e,!0)},children:(e,t)=>{OM(e,{status:`error`,children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>o()(V(fe)===1?`entry_validation_error`:`entry_validation_errors`,{values:{count:V(fe)}})]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=z(ye,2);QF(be,{get id(){return p().id},get show(){return p().show},set show(e){Ut(lM,H(p).show=e,H(p))},children:(e,t)=>{let n=P(()=>{let{status:e,message:t,count:n,sourceLanguage:r}=p();return{status:e,message:t,count:n,sourceLanguage:r}});OM(e,{get status(){return V(n).status},children:(e,t)=>{rt();var r=Li();B(e=>K(r,e),[()=>o()(`editor.${V(n).message}`,{values:{count:V(n).count,source:V(n).sourceLanguage?Zv(V(n).sourceLanguage)??V(n).sourceLanguage:``}})]),G(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var xe=z(be,2);jie(xe,{get open(){return V(y)},set open(e){I(y,e,!0)}});var Se=z(xe,2);{let e=P(()=>o()(`delete_entry`)),t=P(()=>o()(`delete`));ZN(Se,{get title(){return V(e)},get okLabel(){return V(t)},onOk:async()=>{V(E)&&await r9([V(E)],V(pe)),he()},onClose:()=>{V(w)?.focus()},get open(){return V(b)},set open(e){I(b,e,!0)},children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>o()(V(pe).length?`confirm_deleting_this_entry_with_assets`:`confirm_deleting_this_entry`)]),G(e,n)},$$slots:{default:!0}})}var Ce=z(Se,2);{let e=P(()=>o()(`saving_entry.error.title`));XN(Ce,{get title(){return V(e)},onClose:()=>{V(w)?.focus()},get open(){return V(x)},set open(e){I(x,e,!0)},children:(e,t)=>{rt();var n=xae(),r=R(n),i=z(r),a=e=>{var t=bae(),n=L(t,!0);O(t),B(()=>K(n,V(S))),G(e,t)};q(i,e=>{V(S)&&e(a)}),B(e=>K(r,`${e??``} `),[()=>o()(`saving_entry.error.description`)]),G(e,n)},$$slots:{default:!0}})}G(e,_e),A(),h()}var Tae=U(`<!> <!>`,1),Eae=U(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),Dae=U(`<!> <!>`,1),Oae=U(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),kae=U(`<div role="none"><!></div> <div role="none"><!></div>`,1),Aae=U(`<!> <!> <!>`,1),jae=U(`<div role="none" class="content-area svelte-jrunrx"><!></div> <!>`,1),Mae=U(`<div role="none" class="body svelte-jrunrx"><!></div>`),Nae=U(`<!> <!>`,1),Pae=U(`<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>`,1),Fae={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);}`};function Iae(e,t){k(t,!0),J(e,Fae);let n=()=>M(r1,`$entryDraft`,p),r=()=>M(Y7,`$entryEditorSettings`,p),i=()=>M(p9,`$collectionState`,p),a=()=>M(uM,`$editorFirstPane`,p),o=()=>M(dM,`$editorSecondPane`,p),s=()=>M(AD,`$isSmallScreen`,p),c=()=>M(jD,`$isMediumScreen`,p),l=()=>M(a1,`$entryDraftInteracted`,p),u=()=>M(oM,`$showContentOverlay`,p),d=()=>M(Z,`$_`,p),f=()=>M(sM,`$showDuplicateToast`,p),[p,m]=N(),h=e=>{var t=W(),n=R(t),r=e=>{let t=P(()=>{let{locale:e,mode:t}=a();return{locale:e,mode:t}});var n=Eae(),r=L(n);{let e=P(()=>d()(V(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:Zv(V(t).locale)??V(t).locale}}));qX(r,{class:`pane`,get"aria-label"(){return V(e)},get"data-locale"(){return V(t).locale},get"data-mode"(){return V(t).mode},children:(e,t)=>{var n=Tae(),r=R(n);$7(r,{id:`first-pane-header`,get thisPane(){return uM},get thatPane(){return dM}}),Z7(z(r,2),{id:`first-pane-body`,get thisPane(){return uM},get thisPaneContentArea(){return V(S)},set thisPaneContentArea(e){I(S,e,!0)},get thatPaneContentArea(){return V(C)},set thatPaneContentArea(e){I(C,e,!0)}}),G(e,n)},$$slots:{default:!0}})}O(n),G(e,n)};q(n,e=>{a()&&e(r)}),G(e,t)},g=e=>{var t=W(),n=R(t),r=e=>{let t=P(()=>{let{locale:e,mode:t}=o();return{locale:e,mode:t}});var n=Oae(),r=L(n);{let e=P(()=>d()(V(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:Zv(V(t).locale)??V(t).locale}}));qX(r,{class:`pane`,get"aria-label"(){return V(e)},get"data-locale"(){return V(t).locale},get"data-mode"(){return V(t).mode},children:(e,t)=>{var n=Dae(),r=R(n);$7(r,{id:`second-pane-header`,get thisPane(){return dM},get thatPane(){return uM}}),Z7(z(r,2),{id:`second-pane-body`,get thisPane(){return dM},get thisPaneContentArea(){return V(C)},set thisPaneContentArea(e){I(C,e,!0)},get thatPaneContentArea(){return V(S)},set thatPaneContentArea(e){I(S,e,!0)}}),G(e,n)},$$slots:{default:!0}})}O(n),G(e,n)};q(n,e=>{o()&&e(r)}),G(e,t)},_=X(t,`editorLocale`,3,void 0),v=!1,y=!1,b=F(!0),x=F(void 0),S=F(void 0),C=F(void 0),w=P(()=>n()===void 0),T=P(()=>n()??{}),ee=P(()=>D(V(T).isNew,!0)),te=P(()=>D(V(T).canPreview,!0)),ne=P(()=>V(T).collection),re=P(()=>V(T).collectionName),ie=P(()=>V(T).collectionFile),E=P(()=>V(T).fileName),ae=P(()=>V(T).isIndexFile),oe=P(()=>V(T).currentValues),se=P(()=>r()??{}),le=P(()=>V(se).showPreview),ue=P(()=>(V(ie)??V(ne))?._i18n??ly),de=P(()=>V(ue).i18nEnabled),fe=P(()=>V(ue).allLocales),pe=P(()=>V(ue).defaultLocale),me=P(()=>V(ie)?.name?[V(ne)?.name,V(ie).name].join(`|`):V(ne)?.name),he=P(()=>i().canCreate),ge=P(()=>i().quota),_e=P(()=>i().creationDisabled),ve=P(()=>!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=P(()=>ce(V(ve),3)),be=P(()=>V(ye)[0]),xe=P(()=>V(ye)[1]),Se=P(()=>V(ye)[2]),Ce=async()=>{let[e,t]=r()?.paneStates?.[V(me)??``]??[];return _()&&(e={mode:`edit`,locale:_()},t={mode:`preview`,locale:_()}),v||!e||!t||e.locale&&!V(fe).includes(e.locale)||t.locale&&!V(fe).includes(t.locale)||(!V(le)||!V(te))&&(e.mode===`preview`||t.mode===`preview`)||V(fe).length===2&&e.locale!==V(pe)?!1:(v=!0,await si(),Vt(uM,e),Vt(dM,s()||c()?null:t),await si(),v=!1,!0)},we=async()=>{if(!(!n()||y)){if(y=!0,await Ce()){y=!1;return}if(Vt(uM,{mode:`edit`,locale:a()?.locale??V(pe)}),s()||c())Vt(dM,null);else if(!V(le)||!V(te)){let e=V(de)?V(fe).filter(e=>e!==a()?.locale):[];Vt(dM,e.length?{mode:`edit`,locale:e[0]}:null)}else Vt(dM,{mode:`preview`,locale:a().locale});y=!1}},Te=()=>{!V(ne)||v||!a()||!o()||!V(me)||Y7.update((e={})=>({...e,paneStates:{...e.paneStates,[V(me)]:[a(),o()]}}))},Ee=e=>{e.isTrusted&&!l()&&Vt(a1,!0)},De=async()=>{await si(),V(x)&&(V(x).tabIndex=0,V(x).focus())},Oe=async e=>{let t=a(),n=o();t?.mode===`edit`&&t.locale===e||n?.mode===`edit`&&n.locale===e||(n?.mode===`preview`?Vt(dM,{mode:`edit`,locale:e}):t?.mode===`preview`?Vt(uM,{mode:`edit`,locale:e}):Vt(n?dM:uM,{mode:`edit`,locale:e}),await Wx(100))},ke=async({locale:e,keyPath:t})=>{await Oe(e);let n=V(oe)?.[e]??{},r=a7({collectionName:V(re),fileName:V(E),valueMap:n,keyPath:t,isIndexFile:V(ae)});i7(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.data?.type===`highlight-editor-field`&&e.data.payload&&ke(e.data.payload)};fo(()=>(u()||Vt(r1,null),window.addEventListener(`message`,Ae),()=>{window.removeEventListener(`message`,Ae)})),pr(()=>{V(me)&&(Vt(uM,null),Vt(dM,null))}),pr(()=>{V(ne),V(le),V(te),s(),c(),H(()=>{we()})}),pr(()=>{a(),o(),Te()}),pr(()=>{V(x)&&(u()?V(b)&&(I(b,!1),we(),De(),G2()):W2())});var je=Pae(),Me=R(je);Xi(L(Me),()=>n()?.id,e=>{var t=Nae(),r=R(t);{let e=P(()=>V(ee)&&V(_e));wae(r,{get disabled(){return V(e)}})}var i=z(r,2),c=e=>{},l=e=>{WX(e,{children:(e,t)=>{var n=kae(),r=R(n),i=L(r),a=e=>{var t=Li();B(e=>K(t,e),[()=>d()(`entry_not_found`)]),G(e,t)},o=e=>{var t=Li();B(e=>K(t,e),[()=>d()(`creating_entries_disabled_by_admin`)]),G(e,t)},s=e=>{var t=Li();B(e=>K(t,e),[()=>d()(`creating_entries_disabled_by_quota`,{values:{quota:V(ge)}})]),G(e,t)};q(i,e=>{V(w)?e(a):V(he)?e(s,-1):e(o,1)}),O(r);var c=z(r,2);tN(L(c),{variant:`primary`,onclick:()=>{yZ(`/collection/${V(ne)?.name}`,{replaceState:!0,transitionType:`backwards`})},children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>d()(`back_to_collection`)]),G(e,n)},$$slots:{default:!0}}),O(c),G(e,n)},$$slots:{default:!0}})},u=e=>{var t=Mae();Xi(L(t),()=>V(ne),e=>{var t=jae(),n=R(t),r=L(n),i=e=>{var t=W(),n=R(t),r=e=>{nF(e,{onResize:({sizes:e})=>{a()&&o()&&(e=>{var t=ce(e,2);Ut(uM,H(a).width=t[0],H(a)),Ut(dM,H(o).width=t[1],H(o))})(e)},children:(e,t)=>{var n=Aae(),r=R(n);iF(r,{get defaultSize(){return V(be)},get minSize(){return V(Se)},children:(e,t)=>{h(e)},$$slots:{default:!0}});var i=z(r,2);$P(i,{}),iF(z(i,2),{get defaultSize(){return V(xe)},get minSize(){return V(Se)},children:(e,t)=>{g(e)},$$slots:{default:!0}}),G(e,n)},$$slots:{default:!0}})};q(n,e=>{V(be)&&V(xe)&&e(r)}),G(e,t)},c=e=>{h(e)},l=e=>{g(e)},u=e=>{FN(e,{flex:!0})};q(r,e=>{a()&&o()?e(i):a()?e(c,1):o()?e(l,2):e(u,-1)}),O(n);var d=z(n,2),f=e=>{Eie(e,{})};q(d,e=>{s()||e(f)}),G(e,t)}),O(t),ki(`pointerdown`,t,Ee),ki(`keydown`,t,Ee),G(e,t)};q(i,e=>{n()===null?e(c):V(w)||V(ee)&&V(_e)?e(l,1):e(u,-1)}),G(e,t)}),O(Me),oo(Me,e=>I(x,e),()=>V(x));var Ne=z(Me,2);J2(Ne,{}),QF(z(Ne,2),{get show(){return Wt(),f()},set show(e){Vt(sM,e)},children:(e,t)=>{OM(e,{status:`success`,children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>d()(`entry_duplicated`)]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),B(e=>Y(Me,`aria-label`,e),[()=>d()(`content_editor`)]),G(e,je),A(),m()}Ai([`pointerdown`,`keydown`]);var Lae=U(`<!> <!>`,1),Rae=U(`<div role="none" class="label svelte-cy8v6x"><!></div>`),zae=U(`<!> <!> <!>`,1),Bae={hash:`svelte-cy8v6x`,code:`.label.svelte-cy8v6x .icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}`};function Vae(e,t){k(t,!0),J(e,Bae);let n=()=>M(f9,`$listedEntries`,s),r=()=>M(AD,`$isSmallScreen`,s),i=()=>M(jD,`$isMediumScreen`,s),a=()=>M(bC,`$selectedEntries`,s),o=()=>M(Am,`$appLocale`,s),[s,c]=N(),l=e=>{bC.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 s=P(()=>n().indexOf(t.entry));gP(e,{get"aria-rowindex"(){return V(s)},onChange:e=>{l(e.detail.selected)},onclick:()=>{yZ(`/collections/${t.collection.name}/entries/${t.entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{var s=zae(),c=R(s),u=e=>{pP(e,{class:`checkbox`,children:(e,n)=>{{let n=P(()=>a().includes(t.entry));HN(e,{role:`none`,tabindex:`-1`,get checked(){return V(n)},onChange:({detail:{checked:e}})=>{l(e)}})}},$$slots:{default:!0}})};q(c,e=>{r()||i()||e(u)});var d=z(c,2),f=e=>{pP(e,{class:`image`,children:(e,n)=>{var r=W();Ji(R(r),()=>$j(t.collection,t.entry),null,(e,n)=>{var r=W(),i=R(r),a=e=>{{let r=P(()=>t.viewType===`list`?`icon`:`tile`);z1(e,{get src(){return V(n)},get variant(){return V(r)},cover:!0})}};q(i,e=>{V(n)&&e(a)}),G(e,r)}),G(e,r)},$$slots:{default:!0}})};q(d,e=>{t.collection._thumbnailFieldNames.length&&e(f)}),pP(z(d,2),{class:`title`,children:(e,n)=>{var r=Rae();LM(L(r),{lines:2,children:(e,n)=>{var r=Lae(),i=R(r);Xi(i,o,e=>{var n=W();ca(R(n),()=>TE(t.collection,t.entry,{useTemplate:!0,allowMarkdown:!0})),G(e,n)});var a=z(i,2),s=e=>{{let n=P(()=>qv(t.collection)?.icon);TM(e,{get name(){return V(n)},class:`home`})}},c=P(()=>Jv(t.collection,t.entry));q(a,e=>{V(c)&&e(s)}),G(e,r)},$$slots:{default:!0}}),O(r),G(e,r)},$$slots:{default:!0}}),G(e,s)},$$slots:{default:!0}})}A(),c()}var Hae=U(`<!> <!>`,1);function E9(e,t){k(t,!0);let n=()=>M(Nv,`$allEntries`,s),r=()=>M(py,`$selectedCollection`,s),i=()=>M(Am,`$appLocale`,s),a=()=>M(p9,`$collectionState`,s),o=()=>M(Z,`$_`,s),[s,c]=N(),l=X(t,`label`,3,void 0),u=X(t,`keyShortcuts`,3,void 0),d=P(()=>n()&&r()?wC(r()):!1),f=P(()=>i()&&r()?qv(r())?.label:``),p=P(()=>V(d)?kN:tN),m=(e=!1)=>{yZ(`/collections/${t.collectionName}/new`,{state:{index:e},transitionType:`forwards`})};var h=W(),g=R(h);{let e=e=>{TM(e,{name:`edit`})},t=e=>{var t=W(),n=R(t),r=e=>{MP(e,{children:(e,t)=>{var n=Hae(),r=R(n);{let e=P(()=>o()(`entry`));LP(r,{get label(){return V(e)},onclick:()=>m()})}LP(z(r,2),{get label(){return V(f)},onclick:()=>m(!0)}),G(e,n)},$$slots:{default:!0}})};q(n,e=>{V(d)&&e(r)}),G(e,t)},n=P(()=>!l()),r=P(()=>o()(`create_new_entry`));ua(g,()=>V(p),(i,o)=>{o(i,{variant:`primary`,get iconic(){return V(n)},get disabled(){return a().creationDisabled},get label(){return l()},get"aria-label"(){return V(r)},get keyShortcuts(){return u()},onclick:()=>m(),startIcon:e,popup:t,$$slots:{startIcon:!0,popup:!0}})})}G(e,h),A(),c()}var Uae=U(`<span role="none"> </span>`),Wae=U(`<span role="none"> </span> <!>`,1),Gae=U(`<span role="none"> </span>`);function Kae(e,t){k(t,!0);let n=()=>M(py,`$selectedCollection`,s),r=()=>M(d9,`$currentView`,s),i=()=>M(g9,`$entryGroups`,s),a=()=>M(Z,`$_`,s),o=()=>M(f9,`$listedEntries`,s),[s,c]=N(),l=P(n),u=P(()=>r().type),d=P(()=>i().flatMap(({entries:e})=>e));{let t=P(()=>a()(`entry_list`));t0(e,{get"aria-label"(){return V(t)},children:(e,t)=>{var n=W(),r=R(n),s=e=>{var t=W(),n=R(t),r=e=>{let t=P(()=>{let{defaultLocale:e}=V(l)._i18n;return{defaultLocale:e}});{let n=P(()=>a()(`entries`));i0(e,{get viewType(){return V(u)},id:`entry-list`,get"aria-label"(){return V(n)},get"aria-rowcount"(){return o().length},children:(e,n)=>{var r=W();na(R(r),1,i,({name:e,entries:t})=>e,(e,n)=>{let r=()=>V(n).name,i=()=>V(n).entries;var a=W();Ji(R(a),Wx,null,e=>{{let n=P(()=>r()===`*`?void 0:r());uP(e,{get label(){return V(n)},children:(e,n)=>{{let n=(e,t=E)=>{var n=W();Ji(R(n),Wx,null,e=>{Vae(e,{get collection(){return V(l)},get entry(){return t()},get viewType(){return V(u)}})}),G(e,n)},r=P(()=>i().filter(({locales:e})=>!!(e[V(t).defaultLocale]??Object.values(e)[0])?.content));cF(e,{get items(){return V(r)},itemKey:`id`,renderItem:n,$$slots:{renderItem:!0}})}},$$slots:{default:!0}})}}),G(e,a)}),G(e,r)},$$slots:{default:!0}})}},s=e=>{WX(e,{children:(e,t)=>{var n=Uae(),r=L(n,!0);O(n),B(e=>K(r,e),[()=>a()(`no_entries_found`)]),G(e,n)},$$slots:{default:!0}})},c=e=>{WX(e,{children:(e,t)=>{var n=Wae(),r=R(n),i=L(r,!0);O(r);var o=z(r,2);{let e=P(()=>a()(`create_new_entry`));E9(o,{get collectionName(){return V(l).name},get label(){return V(e)}})}B(e=>K(i,e),[()=>a()(`no_entries_created`)]),G(e,n)},$$slots:{default:!0}})};q(n,e=>{V(d).length?e(r):o().length?e(s,1):e(c,-1)}),G(e,t)},c=e=>{WX(e,{children:(e,t)=>{var n=Gae(),r=L(n,!0);O(n),B(e=>K(r,e),[()=>a()(`collection_not_found`)]),G(e,n)},$$slots:{default:!0}})};q(r,e=>{V(l)?e(s):e(c,-1)}),G(e,n)},$$slots:{default:!0}})}A(),c()}var qae=U(`<div role="none" class="label svelte-1nfjp1"><!> <!></div>`),Jae=U(`<span role="none"> </span>`),Yae={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 Xae(e,t){k(t,!0),J(e,Yae);let n=()=>M(py,`$selectedCollection`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o=P(()=>n()?.files.filter(Rv)??[]);{let t=P(()=>r()(`file_list`));t0(e,{get"aria-label"(){return V(t)},children:(e,t)=>{var i=W(),a=R(i),s=e=>{{let t=P(()=>r()(`files`));i0(e,{viewType:`list`,get"aria-label"(){return V(t)},get"aria-rowcount"(){return V(o).length},children:(e,t)=>{cF(e,{get items(){return V(o)},itemKey:`name`,renderItem:(e,t)=>{let r=()=>t?.().name,i=()=>t?.().label,a=()=>t?.().icon;var o=W();Ji(R(o),Wx,null,e=>{gP(e,{onclick:()=>{yZ(`/collections/${n()?.name}/entries/${r()}`,{transitionType:`forwards`})},children:(e,t)=>{pP(e,{class:`title`,children:(e,t)=>{var n=qae(),o=L(n),s=e=>{TM(e,{get name(){return a()}})};q(o,e=>{a()&&e(s)}),LM(z(o,2),{lines:2,children:(e,t)=>{rt();var n=Li();B(()=>K(n,i()||r())),G(e,n)},$$slots:{default:!0}}),O(n),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}),G(e,o)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},c=e=>{WX(e,{children:(e,t)=>{var n=Jae(),i=L(n,!0);O(n),B(e=>K(i,e),[()=>r()(`no_files_in_collection`)]),G(e,n)},$$slots:{default:!0}})};q(a,e=>{V(o)?.length?e(s):e(c,-1)}),G(e,i)},$$slots:{default:!0}})}A(),a()}var Zae=U(`<div class="wrapper svelte-w0jevb"><!></div>`),Qae={hash:`svelte-w0jevb`,code:`.wrapper.svelte-w0jevb {display:contents;}`};function $ae(e,t){k(t,!0),J(e,Qae);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=P(()=>t.file.name),o=P(()=>t.file.label),s=P(()=>t.file.icon),c=F(!1),l=F(void 0);var u=Zae(),d=L(u);{let e=e=>{{let t=P(()=>V(s)||`edit_document`);TM(e,{get name(){return V(t)}})}},t=P(()=>V(o)||V(a));kP(d,{get label(){return V(t)},onSelect:()=>{Vt(mZ,n()(`singleton_selected_announcement`,{values:{file:V(o)||V(a)}}))},onclick:()=>{yZ(`/collections/_singletons/entries/${V(a)}`,{transitionType:`forwards`}),I(c,!1),V(l)?.querySelector(`[role="option"]`)?.classList.remove(`focused`)},get selected(){return V(c)},set selected(e){I(c,e,!0)},startIcon:e,$$slots:{startIcon:!0}})}O(u),oo(u,e=>I(l,e),()=>V(l)),G(e,u),A(),i()}var eoe=U(`<!> <!>`,1);function D9(e,t){k(t,!0);let n=()=>M(ck,`$prefs`,c),r=()=>M(CA,`$backend`,c),i=()=>M(wA,`$isLastCommitPublished`,c),a=()=>M(M$,`$skipCIConfigured`,c),o=()=>M(AD,`$isSmallScreen`,c),s=()=>M(Z,`$_`,c),[c,l]=N(),u=P(()=>n().deployHookURL),d=P(()=>n().deployHookAuthHeader),f=P(()=>r()?.triggerDeployment),p=P(()=>(!!V(u)||typeof V(f)==`function`)&&!i()),m=F(`info`),h=F(!1),g=async()=>{I(m,`info`),I(h,!0);try{let{ok:e,status:t}=V(u)?await fetch(V(u),{method:`POST`,mode:V(d)?`cors`:`no-cors`,headers:V(d)?{Authorization:V(d)}:{}}):await V(f)?.()??{};if(!e&&(V(d)||t!==0))throw Error(`Webhook returned ${t} error`);Vt(wA,!0)}catch(e){I(m,`error`),I(h,!0),console.error(e)}};var _=W(),v=R(_),y=e=>{var t=eoe(),n=R(t);{let e=P(()=>o()?`small`:`medium`),t=P(()=>s()(`publish_changes`)),r=P(()=>!V(p));tN(n,{variant:`secondary`,get size(){return V(e)},get label(){return V(t)},get disabled(){return V(r)},onclick:()=>g()})}QF(z(n,2),{get show(){return V(h)},set show(e){I(h,e,!0)},children:(e,t)=>{OM(e,{get status(){return V(m)},children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>s()(V(m)===`error`?`publishing_changes_failed`:`publishing_changes`)]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),G(e,t)};q(v,e=>{a()&&e(y)}),G(e,_),A(),l()}var toe=U(`<header><h2> </h2> <!></header> <!>`,1),noe=U(`<span class="count"> </span>`),roe=U(`<span class="count"> </span>`),ioe=U(`<!> <!>`,1),aoe=U(`<div role="none" class="primary-sidebar"><!> <!></div>`);function ooe(e,t){k(t,!0);let n=()=>M(Am,`$appLocale`,c),r=()=>M(fj,`$cmsConfig`,c),i=()=>M(AD,`$isSmallScreen`,c),a=()=>M(Z,`$_`,c),o=()=>M(py,`$selectedCollection`,c),s=()=>M(Nv,`$allEntries`,c),[c,l]=N(),u=X(t,`isSearchPage`,3,!1),d=P(()=>Intl.NumberFormat(n()??void 0)),f=P(()=>r()?.collections?.filter(({hide:e})=>!e)??[]),p=P(()=>r()?.singletons??[]);var m=aoe(),h=L(m),g=e=>{var t=toe(),n=R(t),r=L(n),i=L(r,!0);O(r),D9(z(r,2),{}),O(n),f0(z(n,2),{onclick:e=>{e.preventDefault(),yZ(`/search`)}}),B(e=>K(i,e),[()=>a()(`contents`)]),G(e,t)};q(h,e=>{i()&&e(g)});var _=z(h,2);{let e=P(()=>a()(`collection_list`));SP(_,{get"aria-label"(){return V(e)},"aria-controls":`collection-container`,children:(e,t)=>{var n=ioe(),r=R(n),c=e=>{{let t=P(()=>a()(`collections`));TP(e,{get label(){return V(t)},children:(e,t)=>{var n=W();na(R(n),19,()=>V(f),(e,t)=>e.name??t,(e,t)=>{var n=W();Ji(R(n),Wx,null,e=>{var n=W(),r=R(n),c=e=>{let n=P(()=>{let{name:e,label:n,icon:r}=V(t);return{name:e,label:n,icon:r}});{let r=e=>{{let t=P(()=>V(n).icon||`bookmark_manager`);TM(e,{get name(){return V(t)}})}},c=e=>{var r=W();Xi(R(r),s,e=>{let r=P(()=>(`files`in V(t)?V(t).files:xC(V(n).name)).length);var i=noe(),o=L(i,!0);O(i),B((e,t)=>{Y(i,`aria-label`,`(${e??``})`),K(o,t)},[()=>a()(V(r)>1?`many_entries`:V(r)===1?`one_entry`:`no_entries`,{values:{count:V(r)}}),()=>V(d).format(V(r))]),G(e,i)}),G(e,r)},l=P(()=>V(n).label||V(n).name),f=P(()=>i()||u()?!1:o()?.name===V(n).name);kP(e,{get label(){return V(l)},get selected(){return V(f)},onSelect:()=>{yZ(`/collections/${V(n).name}`,{transitionType:`forwards`})},startIcon:r,endIcon:c,$$slots:{startIcon:!0,endIcon:!0}})}},l=e=>{MN(e,{})};q(r,e=>{`divider`in V(t)?V(t).divider&&e(l,1):e(c)}),G(e,n)}),G(e,n)}),G(e,n)},$$slots:{default:!0}})}};q(r,e=>{V(f).length&&e(c)});var l=z(r,2),m=e=>{var t=W(),n=R(t),r=e=>{{let t=P(()=>a()(`files`));TP(e,{get label(){return V(t)},children:(e,t)=>{var n=W();na(R(n),19,()=>V(p),(e,t)=>e.name??t,(e,t)=>{var n=W();Ji(R(n),Wx,null,e=>{var n=W(),r=R(n),i=e=>{$ae(e,{get file(){return V(t)}})},a=e=>{MN(e,{})};q(r,e=>{`divider`in V(t)?V(t).divider&&e(a,1):e(i)}),G(e,n)}),G(e,n)}),G(e,n)},$$slots:{default:!0}})}},s=e=>{let t=P(()=>V(p).length);{let n=P(()=>a()(`collections`));TP(e,{get label(){return V(n)},children:(e,n)=>{{let n=e=>{TM(e,{name:`bookmark_manager`})},r=e=>{var n=roe(),r=L(n,!0);O(n),B((e,t)=>{Y(n,`aria-label`,`(${e??``})`),K(r,t)},[()=>a()(V(t)>1?`many_entries`:V(t)===1?`one_entry`:`no_entries`,{values:{count:V(t)}}),()=>V(d).format(V(t))]),G(e,n)},i=P(()=>a()(`files`)),s=P(()=>o()?.name===`_singletons`);kP(e,{get label(){return V(i)},get selected(){return V(s)},onSelect:()=>{yZ(`/collections/_singletons`,{transitionType:`forwards`})},startIcon:n,endIcon:r,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};q(n,e=>{i()||V(f).length?e(r):e(s,-1)}),G(e,t)};q(l,e=>{V(p).length&&e(m)}),G(e,n)},$$slots:{default:!0}})}O(m),G(e,m),A(),l()}function soe(e,t){k(t,!0);let n=()=>M(py,`$selectedCollection`,o),r=()=>M(bC,`$selectedEntries`,o),i=()=>M(Z,`$_`,o),a=()=>M(f9,`$listedEntries`,o),[o,s]=N(),c=X(t,`open`,15,!1),l=P(()=>{let e=n()?.name;return r().length&&e&&Hd({collectionName:e})?.entryRelative?r().flatMap(t=>eM({entry:t,collectionName:e,relative:!0})):[]});{let t=P(()=>r().length===1?i()(`delete_entry`):i()(`delete_entries`)),n=P(()=>i()(`delete`));ZN(e,{get title(){return V(t)},get okLabel(){return V(n)},onOk:()=>{r9(r(),V(l))},get open(){return c()},set open(e){c(e)},children:(e,t)=>{var n=W(),o=R(n),s=e=>{var t=Li();B(e=>K(t,e),[()=>i()(V(l).length?`confirm_deleting_selected_entry_with_assets`:`confirm_deleting_selected_entry`)]),G(e,t)},c=e=>{var t=Li();B(e=>K(t,e),[()=>i()(V(l).length?`confirm_deleting_all_entries_with_assets`:`confirm_deleting_all_entries`)]),G(e,t)},u=e=>{var t=Li();B(e=>K(t,e),[()=>i()(V(l).length?`confirm_deleting_selected_entries_with_assets`:`confirm_deleting_selected_entries`,{values:{count:r().length}})]),G(e,t)};q(o,e=>{r().length===1?e(s):r().length===a().length?e(c,1):e(u,-1)}),G(e,n)},$$slots:{default:!0}})}A(),s()}var coe=U(`<div role="none" class="description svelte-83jnuc"><!></div>`),loe=U(`<!> <!>`,1),uoe=U(`<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>`,1),doe=U(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),foe=U(`<!> <!>`,1),poe=U(`<!> <!>`,1),moe={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 hoe(e,t){k(t,!0),J(e,moe);let n=()=>M(py,`$selectedCollection`,l),r=()=>M(Am,`$appLocale`,l),i=()=>M(p9,`$collectionState`,l),a=()=>M(Z,`$_`,l),o=()=>M(AD,`$isSmallScreen`,l),s=()=>M(bC,`$selectedEntries`,l),c=()=>M(f9,`$listedEntries`,l),[l,u]=N(),d=F(!1),f=e=>kw(aE.parseInline(e),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`],ALLOWED_ATTR:[`href`]}),p=P(()=>n()?.name??``),m=P(()=>n()?.description),h=P(()=>r()&&n()?Ey(n()):V(p)),g=P(()=>i().isEntryCollection),_=P(()=>i().canCreate),v=P(()=>i().canDelete),y=P(()=>i().quota),b=P(()=>i().remaining),x=P(()=>i().nearingQuota),S=P(()=>i().creationDisabled);var C=poe(),w=R(C),T=e=>{var t=foe(),n=R(t);{let e=P(()=>a()(`collection`));nX(n,{variant:`primary`,get"aria-label"(){return V(e)},children:(e,t)=>{var n=uoe(),r=R(n),i=e=>{{let t=P(()=>a()(`back_to_collection_list`));WQ(e,{get"aria-label"(){return V(t)},onclick:()=>{bZ(`/collections`)}})}};q(r,e=>{o()&&e(i)});var l=z(r,2),u=L(l,!0);O(l);var _=z(l,2),y=e=>{FN(e,{flex:!0})},b=e=>{var t=coe();LM(L(t),{children:(e,t)=>{var n=W();ca(R(n),()=>f(V(m)||``)),G(e,n)},$$slots:{default:!0}}),O(t),G(e,t)};q(_,e=>{o()?e(y):e(b,-1)});var x=z(_,2),C=e=>{var t=loe(),n=R(t),r=e=>{{let t=P(()=>a()(`delete`)),n=P(()=>s().length===1?a()(`delete_selected_entry`):a()(`delete_selected_entries`)),r=P(()=>!s().length||!V(v));tN(e,{variant:`ghost`,get label(){return V(t)},get"aria-label"(){return V(n)},get disabled(){return V(r)},onclick:()=>{I(d,!0)}})}};q(n,e=>{o()||e(r)}),mN(z(n,2),{children:(e,t)=>{var n=W(),r=R(n),i=e=>{{let t=P(()=>o()?void 0:a()(`create`));E9(e,{get collectionName(){return V(p)},get label(){return V(t)},keyShortcuts:`Accel+E`})}};q(r,e=>{(!o()||c().length&&!V(S))&&e(i)}),G(e,n)},$$slots:{default:!0}}),G(e,t)};q(x,e=>{V(g)&&e(C)}),B(()=>K(u,V(h))),G(e,n)},$$slots:{default:!0}})}var r=z(n,2),i=e=>{var t=doe(),n=R(t);Zi(n,()=>({"--sui-infobar-border-width":`1px 0`,"--sui-infobar-message-justify-content":`center`})),aN(n.lastChild,{dismissible:!1,children:(e,t)=>{var n=W(),r=R(n),i=e=>{var t=Li();B(e=>K(t,e),[()=>a()(`creating_entries_disabled_by_admin`)]),G(e,t)},o=e=>{var t=Li();B(e=>K(t,e),[()=>a()(`creating_entries_disabled_by_quota`,{values:{quota:V(y)}})]),G(e,t)},s=e=>{var t=Li();B(e=>K(t,e),[()=>a()(`creating_entries_nearing_quota_${V(b)===1?`singular`:`plural`}`,{values:{quota:V(y),remaining:V(b)}})]),G(e,t)};q(r,e=>{V(_)?V(S)?e(o,1):V(x)&&e(s,2):e(i)}),G(e,n)},$$slots:{default:!0}}),O(n),G(e,t)};q(r,e=>{V(g)&&(V(S)||V(x))&&e(i)}),G(e,t)};q(w,e=>{n()&&e(T)}),soe(z(w,2),{get open(){return V(d)},set open(e){I(d,e,!0)}}),G(e,C),A(),u()}function goe(e,t){k(t,!0);let n=()=>M(py,`$selectedCollection`,s),r=()=>M(MD,`$isLargeScreen`,s),i=()=>M(d9,`$currentView`,s),a=()=>M(Z,`$_`,s),o=()=>M(Ij,`$allAssets`,s),[s,c]=N(),l=P(()=>Hd({collectionName:n()?.name})),u=P(()=>V(l)??{internalPath:void 0,entryRelative:!1,hasTemplateTags:!1}),d=P(()=>V(u).internalPath),f=P(()=>V(u).entryRelative),p=P(()=>V(u).hasTemplateTags),m=P(()=>V(f)||V(p));var h=W(),g=R(h),_=e=>{{let t=P(()=>a()(`collection_assets`));qX(e,{id:`collection-assets`,class:`secondary-sidebar`,get"aria-label"(){return V(t)},children:(e,t)=>{Z1(e,{get disabled(){return V(m)},multiple:!0,onDrop:({files:e})=>{Vt(Hj,{folder:V(l),files:e})},children:(e,t)=>{{let t=P(()=>o().filter(e=>(0,Ld.default)(e.folder,V(l))));e8(e,{get assets(){return V(t)},onSelect:({asset:e})=>{yZ(`/assets/${e.path}`,{transitionType:`forwards`})}})}},$$slots:{default:!0}})},$$slots:{default:!0}})}};q(g,e=>{V(d)!==void 0&&r()&&i().showMedia&&e(_)}),G(e,h),A(),c()}var _oe=U(`<!> <!>`,1);function voe(e,t){k(t,!0);let n=()=>M(Z,`$_`,i),r=()=>M(t.currentView,`$currentView`,i),[i,a]=N(),o=X(t,`label`,3,``),s=X(t,`disabled`,3,!1),c=X(t,`noneLabel`,3,``),l=X(t,`groups`,19,()=>[]);{let i=e=>{{let i=P(()=>n()(`grouping_options`));MP(e,{get"aria-label"(){return V(i)},get"aria-controls"(){return t[`aria-controls`]},children:(e,i)=>{var a=_oe(),o=R(a);{let e=P(()=>c()||n()(`sort_keys.none`)),i=P(()=>!r().group);zP(o,{get label(){return V(e)},get checked(){return V(i)},onSelect:()=>{t.currentView.update(e=>({...e,group:null}))}})}na(z(o,2),17,l,e=>JSON.stringify(e),(e,n)=>{let i=P(()=>{let{label:e,field:t,pattern:r}=V(n);return{_label:e,field:t,pattern:r}});{let n=P(()=>r().group?.field===V(i).field&&String(r().group.pattern)===String(V(i).pattern));zP(e,{get label(){return V(i)._label},get checked(){return V(n)},onSelect:()=>{t.currentView.update(e=>({...e,group:{field:V(i).field,pattern:V(i).pattern}}))}})}}),G(e,a)},$$slots:{default:!0}})}},a=P(()=>o()||n()(`group`));EN(e,{variant:`ghost`,get label(){return V(a)},get disabled(){return s()},popupPosition:`bottom-right`,popup:i,$$slots:{popup:!0}})}A(),a()}var yoe=U(`<!> <!>`,1),boe=U(`<!> <!> <!> <!> <!> <!> <!>`,1);function xoe(e,t){k(t,!0);let n=()=>M(py,`$selectedCollection`,f),r=()=>M(f9,`$listedEntries`,f),i=()=>M(Z,`$_`,f),a=()=>M(AD,`$isSmallScreen`,f),o=()=>M(jD,`$isMediumScreen`,f),s=()=>M(g9,`$entryGroups`,f),c=()=>M(Kie,`$sortKeys`,f),l=()=>M(Fie,`$viewFilters`,f),u=()=>M(zie,`$viewGroups`,f),d=()=>M(d9,`$currentView`,f),[f,p]=N(),m=P(()=>n()?._type===`entry`?n():void 0),h=P(()=>V(m)?.name),g=P(()=>V(m)?._thumbnailFieldNames??[]),_=P(()=>!!r().length),v=P(()=>r().length>1);var y=W(),b=R(y),x=e=>{{let t=P(()=>i()(`entry_list`));nX(e,{variant:`secondary`,get"aria-label"(){return V(t)},children:(e,t)=>{var n=boe(),r=R(n),f=e=>{{let t=P(()=>s().flatMap(({entries:e})=>e));k0(e,{get allItems(){return V(t)},get selectedItems(){return bC}})}};q(r,e=>{a()||o()||e(f)});var p=z(r,2);FN(p,{flex:!0});var m=z(p,2);{let e=P(()=>!V(v)||!c().length);j0(m,{get disabled(){return V(e)},get currentView(){return d9},get sortKeys(){return c()},get collectionName(){return V(h)},"aria-controls":`entry-list`})}var y=z(m,2),b=e=>{{let t=P(()=>!V(v));T0(e,{get disabled(){return V(t)},get currentView(){return d9},get filters(){return l()},multiple:!0,"aria-controls":`entry-list`})}};q(y,e=>{l()?.length&&e(b)});var x=z(y,2),S=e=>{{let t=P(()=>!V(v));voe(e,{get disabled(){return V(t)},get currentView(){return d9},get groups(){return u()},"aria-controls":`entry-list`})}};q(x,e=>{u()?.length&&e(S)});var C=z(x,2),w=e=>{{let t=P(()=>!V(_));F0(e,{get disabled(){return V(t)},get currentView(){return d9},"aria-controls":`entry-list`})}};q(C,e=>{V(g).length&&e(w)});var T=z(C,2),ee=e=>{var t=yoe(),n=R(t);MN(n,{orientation:`vertical`});var r=z(n,2);{let e=e=>{TM(e,{name:`photo_library`})},t=P(()=>!V(_)||!Hd({collectionName:V(h)})),n=P(()=>!!d().showMedia),a=P(()=>i()(d().showMedia?`hide_assets`:`show_assets`));tN(r,{variant:`ghost`,iconic:!0,get disabled(){return V(t)},get pressed(){return V(n)},"aria-controls":`collection-assets`,get"aria-expanded"(){return d().showMedia},get"aria-label"(){return V(a)},onclick:()=>{d9.update(e=>({...e,showMedia:!d().showMedia}))},startIcon:e,$$slots:{startIcon:!0}})}G(e,t)};q(T,e=>{a()||o()||e(ee)}),G(e,n)},$$slots:{default:!0}})}};q(b,e=>{V(m)&&e(x)}),G(e,y),A(),p()}var Soe=U(`<!> <!> <!> <!>`,1);function O9(e,t){k(t,!0);let n=()=>M(py,`$selectedCollection`,l),r=()=>M(oM,`$showContentOverlay`,l),i=()=>M(AD,`$isSmallScreen`,l),a=()=>M(Z,`$_`,l),o=()=>M(f9,`$listedEntries`,l),s=()=>M(Am,`$appLocale`,l),c=()=>M(AQ,`$contentUpdatesToast`,l),[l,u]=N(),d=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/,f=F(!1),p=F(!1),m=F(void 0),h=P(()=>`files`in(n()??{})?Xae:Kae),g=()=>{let{path:e,params:t}=hZ(),r=e.match(d);if(I(f,!1),I(p,!1),I(m,t._locale,!0),delete t._locale,n()?.name===`_singletons`&&yy().length&&Vt(py,void 0),!r?.groups){Vt(oM,!1),I(p,y2(e),!0);return}let{_collectionName:c,routeType:l,subPath:u}=r.groups;if(!c){i()?(Vt(py,void 0),Vt(oM,!1),Vt(mZ,a()(`viewing_collection_list`)),I(f,!0)):yZ(`/collections/${(n()||by()||wy())?.name}`,{replaceState:!0});return}let h=Ty(c);if(!h||h.hide?Vt(py,void 0):n()?.name!==h.name&&Vt(py,h),!h||!n()){Vt(oM,!1),Vt(mZ,a()(`collection_not_found`));return}let{name:g}=n(),_=Ey(n()),v=`_fileMap`in n()?n()._fileMap:void 0;if(!l){let e=o().length;Vt(oM,!1),Vt(mZ,a()(e>1?`viewing_x_collection_many_entries`:e===1?`viewing_x_collection_one_entry`:`viewing_x_collection_no_entries`,{values:{collection:_,count:e}}));return}if(Vt(oM,!0),v){if(l===`entries`&&u){let e=Uv(g,u),t=v[u];v9(e?{collection:h,collectionFile:t,originalEntry:e}:{collection:h,collectionFile:t,originalEntry:{slug:t.name,locales:Object.fromEntries(t._i18n.initialLocales.map(e=>[e,{}]))}}),Vt(mZ,a()(`edit_${h._type}_announcement`,{values:{collection:_,file:Vv(t)}}))}}else if(l===`new`&&!u&&(v9({collection:h,dynamicValues:t,isIndexFile:!!window.history.state?.index}),Vt(mZ,a()(`create_entry_announcement`,{values:{collection:_}}))),l===`entries`&&u){let e=o().find(e=>e.subPath===u);e&&s()&&(v9({collection:h,originalEntry:e}),Vt(mZ,a()(`edit_entry_announcement`,{values:{collection:_,entry:TE(n(),e)}})))}};fo(()=>(g(),()=>{Vt(oM,!1)}));var _=Soe();Oi(`hashchange`,Un,e=>{vZ(e,g,d)});var v=R(_);{let e=e=>{var t=W(),n=R(t),r=e=>{ooe(e,{get isSearchPage(){return V(p)}})};q(n,e=>{(!i()||V(f))&&e(r)}),G(e,t)},t=e=>{var t=W(),r=R(t),c=e=>{_2(e,{})},l=e=>{{let t=e=>{hoe(e,{})},r=e=>{var t=W(),r=R(t),i=e=>{xoe(e,{})};q(r,e=>{n()?._type===`entry`&&o().length&&e(i)}),G(e,t)},i=e=>{var t=W();ua(R(t),()=>V(h),(e,t)=>{t(e,{})}),G(e,t)},c=e=>{goe(e,{})},l=P(()=>a()(`x_collection`,{values:{collection:s()&&n()?Ey(n()):``}})),u=P(()=>n()?.description);H0(e,{get"aria-label"(){return V(l)},get"aria-description"(){return V(u)},primaryToolbar:t,secondaryToolbar:r,mainContent:i,secondarySidebar:c,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};q(r,e=>{V(p)?e(c):(!i()||!V(f))&&e(l,1)}),G(e,t)},r=P(()=>a()(`content_library`));G0(v,{get"aria-label"(){return V(r)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var y=z(v,2),b=e=>{Iae(e,{get editorLocale(){return V(m)}})};q(y,e=>{r()&&e(b)});var x=z(y,2);QF(x,{get show(){return c().saved},set show(e){Ut(AQ,H(c).saved=e,H(c))},children:(e,t)=>{OM(e,{status:`success`,children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>a()(c().published?`entry_saved_and_published`:`entry_saved`)]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),QF(z(x,2),{get show(){return c().deleted},set show(e){Ut(AQ,H(c).deleted=e,H(c))},children:(e,t)=>{OM(e,{status:`success`,children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>a()(c().count===1?`entry_deleted`:`entries_deleted`,{values:{count:c().count}})]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),G(e,_),A(),u()}function k9(e,t){k(t,!0);let n=()=>M(Z,`$_`,i),r=()=>M(ck,`$prefs`,i),[i,a]=N();{let t=P(()=>n()(`prefs.i18n.translators.default.select_service`));xF(e,{get"aria-label"(){return V(t)},get value(){return r().defaultTranslationService},onChange:e=>{Vt(ck,{...r(),defaultTranslationService:e.detail.value})},children:(e,t)=>{var n=W();na(R(n),17,()=>Object.entries(F3),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=P(()=>ce(V(t),2));let i=()=>V(n)[0],a=()=>V(n)[1].serviceLabel;{let t=P(()=>i()===r().defaultTranslationService);kP(e,{get label(){return a()},get value(){return i()},get selected(){return V(t)}})}}),G(e,n)},$$slots:{default:!0}})}A(),a()}var Coe=U(`<!> <!> <!>`,1);function woe(e,t){k(t,!0);let n=()=>M(I3,`$translator`,s),r=()=>M(oM,`$showContentOverlay`,s),i=()=>M(cM,`$translatorApiKeyDialogState`,s),a=()=>M(Z,`$_`,s),o=()=>M(ck,`$prefs`,s),[s,c]=N(),l=P(()=>n().serviceId),u=P(()=>n().apiLabel),d=P(()=>n().developerURL),f=P(()=>n().apiKeyURL),p=P(()=>n().apiKeyPattern);pr(()=>{!r()&&i().show&&(Ut(cM,H(i).show=!1,H(i)),i().resolve?.())});{let t=P(()=>a()(i().multiple?`translate_fields`:`translate_field`)),n=P(()=>({spellcheck:!1,monospace:!0,"aria-label":a()(`api_key`)}));iP(e,{get title(){return V(t)},showOk:!1,get textboxAttrs(){return V(n)},oninput:e=>{let t=e.target.value.trim();V(p)?.test(t)&&(Ut(ck,H(o).apiKeys??={},H(o)),Ut(ck,H(o).apiKeys[V(l)]=t,H(o)),Ut(cM,H(i).show=!1,H(i)),i().resolve?.(t))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(e){Ut(cM,H(i).show=e,H(i))},children:(e,t)=>{var n=Coe(),r=R(n);k9(r,{});var i=z(r,2);FN(i,{}),ca(z(i,2),()=>kw(a()(`prefs.i18n.translators.description`,{values:{service:V(u),homeHref:`href="${V(d)}"`,apiKeyHref:`href="${V(f)}"`}}),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),G(e,n)},$$slots:{default:!0}})}A(),c()}function Toe(e,t){k(t,!0);let n=()=>M(Pv,`$entryParseErrors`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o=F(!!n().length);QF(e,{get show(){return V(o)},set show(e){I(o,e,!0)},children:(e,t)=>{OM(e,{status:`error`,children:(e,t)=>{rt();var i=Li();B(e=>K(i,e),[()=>r()(n().length===1?`entry_parse_error`:`entry_parse_errors`)]),G(e,i)},$$slots:{default:!0}})},$$slots:{default:!0}}),A(),a()}var A9=It([MD,ND,ED,CA,uO],([e,t,n,r,i])=>e&&t&&!n&&!!r?.isGit&&!!i?.token),j9=Ft(!1),Eoe=U(` <!> <!>`,1),Doe=U(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1);function Ooe(e,t){k(t,!0);let n=()=>M(CA,`$backend`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o,s=F(!1);pr(()=>{let{databaseName:e}=n()?.repository??{};e&&(o=new Rb(e,`ui-settings`),(async()=>{let e=await o.get(`onboarding`)??{};e.mobileCta||I(s,!0),await o.set(`onboarding`,{...e,mobileCta:!0})})())});var c=Doe(),l=R(c);Zi(l,()=>({"--sui-infobar-message-justify-content":`center`})),aN(l.lastChild,{get show(){return V(s)},dismissible:!1,children:(e,t)=>{rt();var n=Eoe(),i=R(n),a=z(i);{let e=P(()=>r()(`mobile_promo_button`));tN(a,{variant:`link`,get label(){return V(e)},onclick:()=>{I(s,!1),Vt(j9,!0)}})}var o=z(a,2);{let e=P(()=>r()(`later`));tN(o,{variant:`link`,get label(){return V(e)},onclick:()=>{I(s,!1)}})}B(e=>K(i,`${e??``} `),[()=>r()(`mobile_promo_title`)]),G(e,n)},$$slots:{default:!0}}),O(l),G(e,c),A(),a()}var koe=U(`<div role="none" class="wrapper svelte-t2r4ty"><!></div>`),Aoe={hash:`svelte-t2r4ty`,code:`.wrapper.svelte-t2r4ty {display:contents;}.wrapper.svelte-t2r4ty .sui.select-button-group {gap:4px;}
|
|
928
|
+
.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 Sie(e,t){k(t,!0),J(e,xie);let n=()=>M(r1,`$entryDraft`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o=P(()=>n()??{}),s=P(()=>V(o).validationMessages),c=P(()=>V(o).collectionName),l=P(()=>V(o).fileName),u=P(()=>V(o).currentValues),d=P(()=>V(o).isIndexFile),f=P(()=>V(o).validities),p=P(()=>Object.values(V(f)??{}).some(e=>!!Object.keys(e).length)),m=P(()=>({collectionName:V(c),fileName:V(l),currentValues:V(u),isIndexFile:V(d)})),h=({locale:e,keyPath:t})=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:e,keyPath:t}})};{let t=P(()=>r()(`entry_sidebar.validation.title`));e9(e,{get title(){return V(t)},children:(e,t)=>{var n=W(),i=R(n),a=e=>{var t=W();na(R(t),17,()=>Object.entries(V(s)),([e,t])=>e,(e,t)=>{var n=P(()=>ce(V(t),2));let i=()=>V(n)[0],a=()=>V(n)[1],o=P(()=>V(u)?.[i()]),s=P(()=>Zv(i()));var c=yie(),l=L(c),d=e=>{var t=gie(),n=L(t,!0);O(t),B(()=>K(n,V(s))),G(e,t)};q(l,e=>{V(s)&&e(d)});var p=z(l,2),g=e=>{var t=W();na(R(t),16,()=>Object.keys(V(o)),e=>e,(e,t)=>{let n=P(()=>hD({...V(m),valueMap:V(o),keyPath:t})),r=P(()=>a()[t]??[]);var s=W(),c=R(s),l=e=>{tN(e,{class:`ref`,variant:`ghost`,onclick:()=>{h({locale:i(),keyPath:t})},children:(e,t)=>{var i=_ie(),a=R(i),o=L(a,!0);O(a),na(z(a,2),17,()=>V(r),Qi,(e,t)=>{X3(e,{live:`off`,children:(e,n)=>{rt();var r=Li();B(()=>K(r,V(t))),G(e,r)},$$slots:{default:!0}})}),B(()=>K(o,V(n)?.label||V(n)?.name)),G(e,i)},$$slots:{default:!0}})};q(c,e=>{V(r).length&&e(l)}),G(e,s)}),G(e,t)},_=P(()=>Object.values(V(f)[i()]).some(e=>e.valid===!1)),v=e=>{var t=vie(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`entry_sidebar.validation.no_errors_found`)]),G(e,t)};q(p,e=>{V(_)?e(g):e(v,-1)}),O(c),G(e,c)}),G(e,t)},o=e=>{var t=bie(),n=L(t,!0);O(t),B(e=>K(n,e),[()=>r()(`entry_sidebar.validation.placeholder`)]),G(e,t)};q(i,e=>{V(f)&&V(p)?e(a):e(o,-1)}),G(e,n)},$$slots:{default:!0}})}A(),a()}var Cie=U(`<div role="none" class="content svelte-19e8zut" id="entry-sidebar-content"><!></div>`),wie=U(`<div role="none" class="sidebar svelte-19e8zut"><!> <!></div>`),Tie={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 Eie(e,t){k(t,!0),J(e,Tie);let n=()=>M(r1,`$entryDraft`,o),r=()=>M(Z,`$_`,o),i=()=>M(CA,`$backend`,o),a=()=>M(Y7,`$entryEditorSettings`,o),[o,s]=N(),c=P(()=>{let e=n()?.collectionName,t=n()?.fileName;return e?[...gj.relationFields].some(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t)):!1}),l=P(()=>[{key:`validation`,label:r()(`entry_sidebar.validation.title`),icon:`task_alt`,disabled:!1,panel:Sie},{key:`history`,label:r()(`entry_sidebar.history.title`),icon:`history`,disabled:!i()?.isGit||!!n()?.isNew,panel:hie},{key:`backlinks`,label:r()(`entry_sidebar.backlinks.title`),icon:`article_shortcut`,disabled:!V(c),panel:iie}]),u=F(Bn(a()?.sidebarPanel??null)),d=P(()=>V(u)?V(l).find(e=>e.key===V(u))??V(l)[0]:null);pr(()=>{Y7.update((e={})=>({...e,sidebarPanel:V(u)}))});var f=wie(),p=L(f);{let e=P(()=>r()(`entry_sidebar.sidebar_panels`));CN(p,{class:`tabs`,get"aria-label"(){return V(e)},"aria-controls":`entry-sidebar-content`,children:(e,t)=>{var n=W();na(R(n),17,()=>V(l),({key:e,label:t,icon:n,disabled:r})=>e,(e,t)=>{let n=()=>V(t).key,r=()=>V(t).label,i=()=>V(t).icon,a=()=>V(t).disabled;{let t=P(()=>V(d)?.key===n());wN(e,{iconic:!0,get"aria-label"(){return r()},get selected(){return V(t)},get disabled(){return a()},onclick:()=>{I(u,V(u)===n()?null:n(),!0)},children:(e,t)=>{TM(e,{get name(){return i()}})},$$slots:{default:!0}})}}),G(e,n)},$$slots:{default:!0}})}var m=z(p,2),h=e=>{var t=Cie();ua(L(t),()=>V(d).panel,(e,t)=>{t(e,{})}),O(t),G(e,t)};q(m,e=>{V(d)&&e(h)}),O(f),G(e,f),A(),s()}var Die=U(`<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>`),Oie=U(`<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>`),kie=U(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>`,1),Aie={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);}`};function jie(e,t){let n=Ri();k(t,!0),J(e,Aie);let r=()=>M(r1,`$entryDraft`,a),i=()=>M(Z,`$_`,a),[a,o]=N(),s=X(t,`open`,15,!1),c=P(()=>r()?.collectionName??``),l=P(()=>r()?.currentSlugs??{}),u=F(Bn([])),d=Bn({}),f=Bn({}),p=()=>{let e=new Set(Object.values(V(l)));I(u,xC(V(c)).flatMap(e=>Object.values(e.locales).map(({slug:e})=>e)).filter(t=>!e.has(t)),!0),Object.assign(d,V(l)),Object.assign(f,Object.fromEntries(Object.keys(V(l)).map(e=>[e,!1])))};pr(()=>{s()&&p()});{let t=P(()=>i()(`edit_slug`)),a=P(()=>i()(`update`)),o=P(()=>(0,Ld.default)(V(l),d)||Object.values(f).some(e=>e!==!1));YN(e,{get title(){return V(t)},get okLabel(){return V(a)},get okDisabled(){return V(o)},onOk:()=>{Ut(r1,H(r).currentSlugs=d,H(r))},get open(){return s()},set open(e){s(e)},children:(e,t)=>{var r=kie(),a=R(r);Zi(a,()=>({"--font-size":`var(--sui-font-size-small)`})),OM(a.lastChild,{status:`warning`,children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>i()(`edit_slug_warning`)]),G(e,n)},$$slots:{default:!0}}),O(a);var o=z(a,2);na(o,20,()=>Object.keys(d),e=>e,(e,t)=>{var r=Oie(),a=L(r),o=e=>{var n=Die(),r=L(n),i=L(r,!0);O(r),O(n),B(e=>K(i,e),[()=>Zv(t)??t]),G(e,n)},s=P(()=>![`_`,`_default`].includes(t));q(a,e=>{V(s)&&e(o)});var c=z(a,2),l=L(c);{let e=P(()=>f[t]!==!1);tP(l,{flex:!0,oninput:()=>{f[t]=d[t].trim()?V(u).includes(d[t])?`duplicate`:!1:`empty`},get invalid(){return V(e)},get"aria-errormessage"(){return`${n}-${t??``}-error`},get value(){return d[t]},set value(e){d[t]=e}})}var p=z(l,2),m=L(p),h=e=>{var t=Li();B(e=>K(t,e),[()=>i()(`edit_slug_error.empty`)]),G(e,t)};q(m,e=>{f[t]===`empty`&&e(h)});var g=z(m,2),_=e=>{var t=Li();B(e=>K(t,e),[()=>i()(`edit_slug_error.duplicate`)]),G(e,t)};q(g,e=>{f[t]===`duplicate`&&e(_)}),O(p),O(c),O(r),B(()=>Y(p,`id`,`${n}-${t??``}-error`)),G(e,r)}),O(o),G(e,r)},$$slots:{default:!0}})}A(),o()}var Mie=({ids:e,assetPaths:t})=>{let n=j(Nv);Nv.set(n.filter(t=>!e.includes(t.id))),AQ.set({...kQ,deleted:!0,count:e.length}),t.length&&Ij.update(e=>e.filter(e=>!t.includes(e.path)))},r9=async(e,t=[])=>{let n=j(CA)?.repository?.databaseName,r=n?new Rb(n,`file-cache`):void 0,i=[],a=`delete`,o=await Promise.all(e.map(async({id:e,locales:t,slug:n})=>{let o=Vb(Object.values(t).map(e=>e.path));return await Promise.all(o.map(async e=>{let t=await x1({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));await FQ({changes:i,options:{commitType:`delete`,collection:j(py)}}),Mie({ids:o,assetPaths:s})},i9=(e,t)=>{if(Array.isArray(e))return{options:e};if(u(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:[]}},a9=e=>i9(e,`filters`),Nie=(e,t,n)=>{let{name:r,view_filters:i=[],_i18n:{defaultLocale:a}}=t,{options:o}=a9(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:vC(t)}));return e.filter(e=>s.every(({field:t,pattern:n,regex:i})=>{let o={entry:e,locale:a,collectionName:r,key:t},s=bD({...o,resolveRef:!1}),c=bD({...o});return s===void 0||c===void 0?!1:YX(s,n,i)||YX(c,n,i)}))},Pie=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=a9(e.view_filters);t(n),d9.update(e=>({...e,filters:e.filters??(r?[r]:void 0)}))},Fie=It([py],([e],t)=>{Pie(e,t)}),Iie=e=>i9(e,`groups`),Lie=(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=j(d9).sort,c=JX(e,i,e=>bD({entry:e,locale:o,collectionName:a,key:r}),j(Z)(`other`)).map(([e,t])=>({name:e,entries:t}));return s?.key===r&&s.order===`descending`&&c.reverse(),c},Rie=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=Iie(e.view_groups);t(n),d9.update(e=>({...e,group:e.group===void 0?r:e.group}))},zie=It([py],([e],t)=>{Rie(e,t)}),o9=Ft(),Bie=async({repository:e})=>{await ZX(e,`contents-view`,o9),d9.subscribe(e=>{let{name:t}=j(py)??{},n=j(o9)?.[t??``]??{};t&&!(0,Ld.default)(e,n)&&o9.update(n=>({...n,[t]:e}))})},s9=[`title`,`name`,`date`,`author`,`description`],c9={slug:String,commit_author:String,commit_date:Date,_summary:String},l9=Object.keys(c9),u9=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),Vie=e=>{if(u9(e))return{keys:e};if(u(e)){let{fields:t,default:n}=e;return u9(t)?u(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}},Hie=e=>e?{keys:[e,...s9.filter(t=>t!==e)],defaultKey:e}:{keys:[...s9]},Uie=({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?Vie(a):Hie(i);o&&s.unshift(`_summary`);let u=s.includes(`commit_author`),d=s.includes(`commit_date`);return 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=Vb(s).filter(e=>!!e&&(l9.includes(e)||!!hD({collectionName:r,keyPath:e}))),c=c&&s.includes(c)?c:s[0],l??=c?`ascending`:void 0,{keys:s,default:{key:c,order:l}}},Wie=({key:e,fieldConfig:t})=>{if(e in c9)return c9[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},Gie=({collection:e,key:t})=>[...l9,`name`].includes(t)?j(Z)(`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 hD({collectionName:e.name,keyPath:i})?.label||t}).filter(Boolean).join(` â `):e.fields?.find(({name:e})=>e===t)?.label||t,Kie=It([py,Nv,Am],([e,t],n)=>{if(!e||!(`folder`in e)){n([]);return}let r=j(o9)?.[e.name]??{type:`list`},{keys:i,default:a}=Uie({collection:e,isCommitAuthorAvailable:t.some(e=>!!e.commitAuthor),isCommitDateAvailable:t.some(e=>!!e.commitDate)});r.sort??=a,n(i.map(t=>({key:t,label:Gie({collection:e,key:t})}))),(0,Ld.default)(r,j(d9))||d9.set(r)}),qie=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},Jie=[`title`,`summary`,`description`],Yie=({key:e,type:t,collection:n,locale:r,collectionName:i,dateFieldConfig:a,isMarkdownField:o})=>e===`_summary`?e=>TE(n,e,{locale:r,useTemplate:!0}):a?t=>{let n=bD({entry:t,locale:r,collectionName:i,key:e});return n?Number(wx(n,a)??0):0}:t===String?t=>{let n=bD({entry:t,locale:r,collectionName:i,key:e}),a=n?String(n):``;return o?qie(a):a}:t=>{let n=bD({entry:t,locale:r,collectionName:i,key:e});return Number(n??0)},Xie=(e,t,{key:n,order:r}={})=>{let i=[...e];if(n===void 0)return i;let{name:a,_i18n:{defaultLocale:o}}=t,s=hD({collectionName:a,keyPath:n}),c=Wie({key:n,fieldConfig:s}),l=s?.widget===`datetime`?s:void 0,u=Yie({key:n,type:c,collection:t,locale:o,collectionName:a,dateFieldConfig:l,isMarkdownField:s?.widget===`richtext`||s?.widget===`markdown`||Jie.includes(n)}),d=Object.fromEntries(i.map(e=>[e.slug,u(e)]));XX(i,e=>d[e.slug],!l&&c===String,r);let f=qv(t)?.name;if(f){let e=i.findIndex(e=>e.slug===f);e>-1&&i.unshift(i.splice(e,1)[0])}return i},d9=Ft({type:`list`}),f9=It([Nv,py],([e,t],n)=>{n(e&&t?xC(t.name):[])}),Zie=5,p9=It([f9,py],([e,t])=>{if(t?._type===`entry`){let n=t.create??!0,r=t.delete??!0,i=t?.limit??1/0,a=i<1/0?i-e.length:1/0;return{isEntryCollection:!0,canCreate:n,canDelete:r,quota:i,remaining:a,nearingQuota:a>0&&a<=Zie,creationDisabled:!n||a<=0}}return{isEntryCollection:!1,canCreate:!1,canDelete:!1,quota:1/0,remaining:1/0,nearingQuota:!1,creationDisabled:!1}}),m9=void 0,h9=void 0,g9=It([f9,d9,Am],([e,t],n)=>{if(e===m9&&t===h9)return;m9=e,h9=t,n([]);let r=j(py),i=[...e];if(!i.length||Hv(r,i[0]).length)return;t.sort&&(i=Xie(i,r,t.sort)),t.filters&&(i=Nie(i,r,t.filters));let a=Lie(i,r,t.group);(0,Ld.default)(j(g9),a)||n(a)});CA.subscribe(e=>{e&&!j(o9)&&Bie(e)}),f9.subscribe(e=>{bC.set([]),j(ck).devModeEnabled&&console.info(`listedEntries`,e)}),py.subscribe(e=>{e&&j(ck).devModeEnabled&&console.info(`selectedCollection`,e)});var Qie=`{{fields._slug | localize}}`,_9=({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(Qie),l=s.includes(`{{fields._slug}}`)||c;return Object.fromEntries(i.map(e=>[e,l?(e===a||c)&&!n[e]?!0:`readonly`:!1]))},v9=({collection:e,collectionFile:t,originalEntry:n={},dynamicValues:r,extraValues:i,expanderStates:a,isIndexFile:o=Jv(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?qv(e):void 0,g=h?.fields??p,_=h?.editor?.preview??t?.editor?.preview??e.editor?.preview??j(fj)?.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},T=Object.fromEntries(S.map(e=>f?[e,Z5({fields:g,locale:e,defaultLocale:b,dynamicValues:r})]:[e,structuredClone(d?.[e]?.content)]));r1.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:T,currentValues:Object.fromEntries(S.map(e=>[e,N2({draft:{collectionName:s,fileName:c,isIndexFile:o},locale:e,target:structuredClone(T[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:_9({collection:e,collectionFile:t,originalSlugs:w})}),U2({collectionName:s,fileName:c,slug:u})},$ie=()=>{let e=j(r1),{collectionName:t,fileName:n,collection:r,collectionFile:i,currentValues:a,validities:o,isIndexFile:s}=e,{defaultLocale:c,canonicalSlug:{key:l}}=(i??r)._i18n;Object.entries(a).forEach(([e,r])=>{delete r[l];let i={collectionName:t,fileName:n,valueMap:r,isIndexFile:s};Object.keys(r).forEach(t=>{let n=hD({...i,keyPath:t});if(n?.widget===`uuid`&&(e===c||[!0,`translate`].includes(n?.i18n??!1))&&(r[t]=H7(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,V5({fieldConfig:n,keyPath:t,locale:e,defaultLocale:c}))}})}),Object.keys(o).forEach(e=>{o[e]={}}),r1.set({...e,id:crypto.randomUUID(),createdAt:Date.now(),isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{},slugEditor:_9({collection:r,collectionFile:i,originalSlugs:{}})}),sM.set(!0)},eae=({fieldConfig:e,value:t})=>{let n=e,{type:r,min:i,max:a}=xx(n),o=typeof i==`string`&&!!i,s=typeof a==`string`&&!!a,c=!1,l=!1;if(t&&(o||s)){let e=Dx(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}}},tae=new Intl.DateTimeFormat(`en-GB`,{hour12:!0,timeZone:`UTC`,hour:`2-digit`,minute:`2-digit`}),y9=e=>tae.format(new Date(`1970-01-01T${e}Z`)).toUpperCase(),nae=(e,t)=>{if(e===`date`)return t;if(e===`time`)return y9(t);let[n,r]=t.split(`T`);return`${n}, ${y9(r)}`},b9=({direction:e,limitKey:t,limitValue:n,fieldType:r,type:i,canAddMultiValue:a})=>{let o=j(Z),s=n===1?`one`:`many`;return r===`datetime`&&typeof n==`string`?o(`validation.range_${e}.${i}`,{values:{[t]:nae(i,n)}}):o(r===`number`?`validation.range_${e}.number`:a?`validation.range_${e}.add_${s}`:`validation.range_${e}.select_${s}`,{values:{[t]:n}})},x9=({validity:e,fieldConfig:t})=>{let n=j(Z),r=[],{widget:i=`string`}=t,{pattern:a=[]}=t,o=i===`datetime`,s=o?xx(t):{},c=i===`string`?t.type??`text`:o?s.type:i===`number`?`number`:void 0,{min:l,max:u}=o?s:t,d=i===`list`||i===`keyvalue`||pD(t);if(e.valueMissing&&r.push(n(`validation.value_missing`)),e.tooShort){let{minlength:e}=t;r.push(n(e===1?`validation.too_short.one`:`validation.too_short.many`,{values:{min:e}}))}if(e.tooLong){let{maxlength:e}=t;r.push(n(e===1?`validation.too_long.one`:`validation.too_long.many`,{values:{max:e}}))}return e.rangeUnderflow&&r.push(b9({direction:`underflow`,limitKey:`min`,limitValue:l,fieldType:i,type:c,canAddMultiValue:d})),e.rangeOverflow&&r.push(b9({direction:`overflow`,limitKey:`max`,limitValue:u,fieldType:i,type:c,canAddMultiValue:d})),e.patternMismatch&&r.push(a[1]),e.typeMismatch&&r.push(n(`validation.type_mismatch.${c}`)),r},rae=({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}`]}},iae=({keyPath:e,getFieldArgs:t,validity:n,validities:r,locale:i,required:a,min:o,max:s})=>{let c=e.match(/(.+?)(?:\.[^.]*)?$/)?.[1],l=hD({...t,keyPath:c.replace(M7,``)});if(c in r[i]||l?.widget!==`keyvalue`)return{skip:!0,keyPath:e};let u=p5({entryDraft:r1,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}},aae=new Map,oae=({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=Tb(aae,e,()=>RegExp(`^${yd(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}},sae=({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`)&&gD({fieldConfig:e,locale:t})&&n===null}}},S9=/\.\d+$/,cae={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},C9={datetime:eae,number:sae,string:B7,text:B7},lae={get:(e,t)=>t===`valid`?!Object.values(e).some(Boolean):e[t]},uae=({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=vC(n[0]);e&&!e.test(String(i))&&(r.patternMismatch=!0)}},dae=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(M7,``),isIndexFile:d},h=hD({...m});if(!h)return;let{widget:g=`string`,i18n:_=!1,pattern:v}=h,y=pD(h),{min:b=0,max:x=1/0}=Ux.includes(g)?h:{},{i18nEnabled:S,defaultLocale:C}=(l??o)._i18n;if(!i&&n!==C&&(!S||_===!1||_===`none`||_===`duplicate`))return;let w=Object.entries(r),T=gD({fieldConfig:h,locale:n}),ee={...cae};if(g===`list`||y){let{skip:e}=oae({keyPath:f,value:p,valueEntries:w,validity:ee,validities:a,locale:n,required:T,min:b,max:x});if(e)return}if(g===`object`&&T&&!p&&(ee.valueMissing=!0),g===`keyvalue`){let e=iae({keyPath:f,getFieldArgs:m,validity:ee,validities:a,locale:n,required:T,min:b,max:x});if(e.skip)return;f=e.keyPath}if(g===`code`){let e=rae({keyPath:f,value:p,valueMap:r,fieldConfig:h,validities:a,locale:n});if(e.skip)return;f=e.keyPath,p=e.value}Vx.includes(g)&&typeof p==`string`&&p.startsWith(`blob:`)&&(p=u[p]?.file?.name),[`object`,`list`,`hidden`,`compute`,`keyvalue`].includes(g)||y||uae({value:p,required:T,validation:v,validity:ee});let te=C9[g];return te&&Object.assign(ee,te({fieldConfig:h,locale:n,value:p}).validity),new Proxy(ee,lae)},w9=e=>{let{validities:t,locale:n,keyPath:r}=e,i=dae(e),a=!0;return i&&(t[n][r]=i,i.valid||(a=!1)),a},fae=({fieldConfig:e,validateArgs:t})=>{let{validities:n,locale:r,keyPath:i}=t,a=n[r][i]?.valid??w9(t),{widget:o=`string`}=e;return o===`list`&&!H4(e).hasSubFields||pD(e)?{valid:a,validateItems:!1}:{valid:a,validateItems:!0}},T9=e=>{let t=j(r1),{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(M7)??[],u=a?n[`${a}__sc_component_name`]:void 0,d=hD({...c,keyPath:t.replace(M7,``),valueMap:n,componentName:u});if(!d)return;if(S9.test(t)){let n=t.replace(S9,``),{valid:r,validateItems:a}=fae({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]=x9({validity:t,fieldConfig:d}))}if(!a)return}w9({...i,keyPath:t,value:r,componentName:u})||(l=!1);let f=o[e][t];f&&(s[e][t]=x9({validity:f,fieldConfig:d}))})}),{valid:l,validities:o,validationMessages:s}},pae=()=>{let{currentSlugs:e,slugEditor:t}=j(r1),n={},r=!0;return Object.entries(e).forEach(([e,i])=>{let a=!!t[e]&&!i?.trim();a&&(r=!1),n[e]={_slug:{valueMissing:a,valid:!a}}}),{valid:r,validities:n}},mae=()=>{let{valid:e,validities:t,validationMessages:n}=T9(`currentValues`),{valid:r,validities:i,validationMessages:a}=T9(`extraValues`),{valid:o,validities:s}=pae();return r1.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},hae=({skipCI:e})=>{let t=!!j(CA)?.isGit&&!(e??j(N$));AQ.set({...kQ,saved:!0,published:t,count:1}),wA.set(t)},gae=async({skipCI:e=void 0}={})=>{let t=j(r1),{isNew:n,collection:r,collectionName:i,fileName:a,currentValues:o,originalEntry:s}=t;if(!mae())throw o7({collectionName:i,fileName:a,currentValues:o}),Error(`validation_failed`);let c=K$({draft:t}),{defaultLocaleSlug:l}=c,{savingEntry:u,changes:d,savingAssets:f}=await w1({draft:t,slugs:c}),p;try{p=await FQ({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 aM({type:`postSave`,draft:t,savingEntry:u}),hae({skipCI:e}),z2(i,n?``:l),s&&oie(s.id),p.savedEntries[0]},_ae=U(`<!> <!>`,1),vae=U(`<!> <!> <!>`,1),yae=U(`<!> <!> <!> <!>`,1),bae=U(`<!> <h2 role="none"><!></h2> <!> <!> <!> <!>`,1),xae=U(`<div role="none" class="error svelte-zjrq31"> </div>`),Sae=U(` <!>`,1),Cae=U(`<!> <!> <!> <!> <!> <!>`,1),wae={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 Tae(e,t){k(t,!0),J(e,wae);let n=()=>M(r1,`$entryDraft`,m),r=()=>M(Am,`$appLocale`,m),i=()=>M(s1,`$entryDraftModified`,m),a=()=>M(ck,`$prefs`,m),o=()=>M(Z,`$_`,m),s=()=>M(AD,`$isSmallScreen`,m),c=()=>M(p9,`$collectionState`,m),l=()=>M(jD,`$isMediumScreen`,m),u=()=>M(Y7,`$entryEditorSettings`,m),d=()=>M(M$,`$skipCIConfigured`,m),f=()=>M(N$,`$skipCIEnabled`,m),p=()=>M(lM,`$copyFromLocaleToast`,m),[m,h]=N(),g=e=>{let t=P(()=>s()?LP:tN),n=P(()=>!V(te)&&V(re)?.duplicate!==!1&&!c().creationDisabled&&!V(re)?.path),r=P(()=>V(re)?.delete!==!1);var i=_ae(),a=R(i),l=e=>{var n=W(),r=R(n);{let e=P(()=>o()(`duplicate`)),n=P(()=>o()(`duplicate_entry`));ua(r,()=>V(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return V(e)},get"aria-label"(){return V(n)},onclick:()=>{yZ(`/collections/${V(se)}/new`,{replaceState:!0,notifyChange:!1,transitionType:`forwards`}),$ie()}})})}G(e,n)};q(a,e=>{V(n)&&e(l)});var u=z(a,2),d=e=>{var n=W(),r=R(n);{let e=P(()=>o()(`delete`)),n=P(()=>o()(`delete_entry`));ua(r,()=>V(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return V(e)},get"aria-label"(){return V(n)},onclick:()=>{I(b,!0)}})})}G(e,n)};q(u,e=>{V(r)&&e(d)}),G(e,i)},_=X(t,`disabled`,3,!1),v=F(!1),y=F(!1),b=F(!1),x=F(!1),S=F(``),C=F(!1),w=F(void 0),T=P(()=>n()===void 0),ee=P(()=>n()?.isNew??!0),te=P(()=>n()?.isIndexFile??!1),ne=P(()=>n()?.collection),re=P(()=>V(ne)?._type===`entry`?V(ne):void 0),ie=P(()=>n()?.collectionFile),E=P(()=>n()?.originalEntry),ae=P(()=>(V(ie)??V(ne))?._i18n??ly),oe=P(()=>V(ae).defaultLocale),se=P(()=>V(ne)?.name),D=P(()=>V(ie)?.name),ce=P(()=>r()&&V(ne)?Ey(V(ne)):``),le=P(()=>r()&&V(ne)?Ey(V(ne),{useSingular:!0}):``),ue=P(()=>n()?.canPreview??!0),de=P(()=>V(ee)||i()),fe=P(()=>Object.values(n()?.validities??{}).flatMap(e=>Object.values(e).map(({valid:e})=>!e)).filter(Boolean).length),pe=P(()=>V(se)&&V(E)&&Hd({collectionName:V(se),fileName:V(D)})?.entryRelative?eM({entry:V(E),collectionName:V(se),fileName:V(D),relative:!0}):[]),me=P(()=>V(ne)&&V(E)?hC(V(E),V(oe),V(ne),V(ie)):void 0),he=()=>{bZ(V(se)===`_singletons`?`/collections`:`/collections/${V(se)}`)},ge=async({skipCI:e=void 0}={})=>{if(I(C,!0),V(ne))try{let t=await gae({skipCI:e});a()?.closeOnSave??!0?(he(),Vt(r1,null)):(V(ee)&&yZ(`/collections/${V(se)}/entries/${t.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:`backwards`}),v9({collection:V(ne),collectionFile:V(ie),originalEntry:t,extraValues:n()?.extraValues,expanderStates:n()?.expanderStates}))}catch(e){e.message===`validation_failed`?I(v,!0):e.message===`saving_failed`?(I(x,!0),I(S,e.cause?.message??e.message??o()(`unexpected_error`),!0)):(I(x,!0),I(S,``),console.error(e))}finally{I(C,!1)}};var _e=Cae(),ve=R(_e);{let e=P(()=>o()(`primary`));nX(ve,{variant:`primary`,get"aria-label"(){return V(e)},children:(e,t)=>{var i=bae(),c=R(i);{let e=P(()=>o()(`cancel_editing`));WQ(c,{get"aria-label"(){return V(e)},get useShortcut(){return a().closeWithEscape},onclick:()=>{he()}})}var p=z(c,2),m=L(p),h=e=>{LM(e,{children:(e,t)=>{var n=W(),i=R(n),a=e=>{var t=Li();B(e=>K(t,e),[()=>o()(`create_entry_title`,{values:{name:V(le)}})]),G(e,t)},c=e=>{let t=P(()=>V(ie)?Vv(V(ie)):V(ne)&&V(E)&&r()?TE(V(ne),V(E)):``);var n=W(),i=R(n),a=e=>{var n=Li();B(()=>K(n,V(t))),G(e,n)},c=e=>{var n=Li();B(e=>K(n,e),[()=>o()(`edit_entry_title`,{values:{collection:V(ce),entry:V(t)}})]),G(e,n)};q(i,e=>{s()?e(a):e(c,-1)}),G(e,n)};q(i,e=>{V(ee)?e(a):e(c,-1)}),G(e,n)},$$slots:{default:!0}})};q(m,e=>{V(T)||e(h)}),O(p);var v=z(p,2),b=e=>{{let t=P(()=>o()(`view_on_live_site`));tN(e,{variant:`tertiary`,get label(){return V(t)},onclick:()=>{window.open(V(me))}})}};q(v,e=>{!_()&&V(me)&&e(b)});var x=z(v,2),S=e=>{g(e)};q(x,e=>{!s()&&!_()&&!V(ie)&&!V(ee)&&e(S)});var ae=z(x,2);{let e=e=>{{let t=P(()=>o()(`editor_options`));MP(e,{get"aria-label"(){return V(t)},children:(e,t)=>{var r=yae(),i=R(r),a=e=>{g(e)};q(i,e=>{s()&&!_()&&!V(ie)&&!V(ee)&&e(a)});var c=z(i,2);{let e=P(()=>o()(`edit_slug`)),t=P(()=>!!V(ie)||V(ee)||V(te)||V(re)?.delete===!1);LP(c,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{I(y,!0)}})}var d=z(c,2);{let e=P(()=>o()(`revert_all_changes`)),t=P(()=>!V(de));LP(d,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{q7()}})}var f=z(d,2),p=e=>{var t=vae(),r=R(t);MN(r,{});var i=z(r,2);{let e=P(()=>o()(`show_preview`)),t=P(()=>u()?.showPreview),n=P(()=>!V(ue));RP(i,{get label(){return V(e)},get checked(){return V(t)},get disabled(){return V(n)},onChange:()=>{Y7.update((e={})=>({...e,showPreview:!e.showPreview}))}})}var a=z(i,2);{let e=P(()=>o()(`sync_scrolling`)),t=P(()=>u()?.syncScrolling),r=P(()=>!V(ue)&&Object.keys(n()?.currentValues??{}).length===1);RP(a,{get label(){return V(e)},get checked(){return V(t)},get disabled(){return V(r)},onChange:()=>{Y7.update((e={})=>({...e,syncScrolling:!e.syncScrolling}))}})}G(e,t)};q(f,e=>{s()||l()||e(p)}),G(e,r)},$$slots:{default:!0}})}},t=P(()=>o()(`show_editor_options`));oo(EN(ae,{get disabled(){return _()},variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return V(t)},popup:e,$$slots:{popup:!0}}),e=>I(w,e,!0),()=>V(w))}var oe=z(ae,2),se=e=>{{let t=e=>{MP(e,{children:(e,t)=>{{let t=P(()=>o()(f()?`save_and_publish`:`save_without_publishing`));LP(e,{get label(){return V(t)},onclick:()=>{ge({skipCI:!f()})}})}},$$slots:{default:!0}})},n=P(()=>o()(V(C)?`saving`:`save`)),r=P(()=>_()||!V(de)||V(C));kN(e,{variant:`primary`,get label(){return V(n)},get disabled(){return V(r)},keyShortcuts:`Accel+S`,onclick:()=>{ge()},popup:t,$$slots:{popup:!0}})}},D=e=>{{let t=P(()=>o()(V(C)?`saving`:`save`)),n=P(()=>_()||!V(de)||V(C));tN(e,{variant:`primary`,get label(){return V(t)},get disabled(){return V(n)},keyShortcuts:`Accel+S`,onclick:()=>{ge()}})}};q(oe,e=>{d()?e(se):e(D,-1)}),G(e,i)},$$slots:{default:!0}})}var ye=z(ve,2);QF(ye,{get show(){return V(v)},set show(e){I(v,e,!0)},children:(e,t)=>{OM(e,{status:`error`,children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>o()(V(fe)===1?`entry_validation_error`:`entry_validation_errors`,{values:{count:V(fe)}})]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=z(ye,2);QF(be,{get id(){return p().id},get show(){return p().show},set show(e){Ut(lM,H(p).show=e,H(p))},children:(e,t)=>{let n=P(()=>{let{status:e,message:t,count:n,sourceLanguage:r}=p();return{status:e,message:t,count:n,sourceLanguage:r}});OM(e,{get status(){return V(n).status},children:(e,t)=>{rt();var r=Li();B(e=>K(r,e),[()=>o()(`editor.${V(n).message}`,{values:{count:V(n).count,source:V(n).sourceLanguage?Zv(V(n).sourceLanguage)??V(n).sourceLanguage:``}})]),G(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var xe=z(be,2);jie(xe,{get open(){return V(y)},set open(e){I(y,e,!0)}});var Se=z(xe,2);{let e=P(()=>o()(`delete_entry`)),t=P(()=>o()(`delete`));ZN(Se,{get title(){return V(e)},get okLabel(){return V(t)},onOk:async()=>{V(E)&&await r9([V(E)],V(pe)),he()},onClose:()=>{V(w)?.focus()},get open(){return V(b)},set open(e){I(b,e,!0)},children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>o()(V(pe).length?`confirm_deleting_this_entry_with_assets`:`confirm_deleting_this_entry`)]),G(e,n)},$$slots:{default:!0}})}var Ce=z(Se,2);{let e=P(()=>o()(`saving_entry.error.title`));XN(Ce,{get title(){return V(e)},onClose:()=>{V(w)?.focus()},get open(){return V(x)},set open(e){I(x,e,!0)},children:(e,t)=>{rt();var n=Sae(),r=R(n),i=z(r),a=e=>{var t=xae(),n=L(t,!0);O(t),B(()=>K(n,V(S))),G(e,t)};q(i,e=>{V(S)&&e(a)}),B(e=>K(r,`${e??``} `),[()=>o()(`saving_entry.error.description`)]),G(e,n)},$$slots:{default:!0}})}G(e,_e),A(),h()}var Eae=U(`<!> <!>`,1),Dae=U(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),Oae=U(`<!> <!>`,1),kae=U(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),Aae=U(`<div role="none"><!></div> <div role="none"><!></div>`,1),jae=U(`<!> <!> <!>`,1),Mae=U(`<div role="none" class="content-area svelte-jrunrx"><!></div> <!>`,1),Nae=U(`<div role="none" class="body svelte-jrunrx"><!></div>`),Pae=U(`<!> <!>`,1),Fae=U(`<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>`,1),Iae={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);}`};function Lae(e,t){k(t,!0),J(e,Iae);let n=()=>M(r1,`$entryDraft`,p),r=()=>M(Y7,`$entryEditorSettings`,p),i=()=>M(p9,`$collectionState`,p),a=()=>M(uM,`$editorFirstPane`,p),o=()=>M(dM,`$editorSecondPane`,p),s=()=>M(AD,`$isSmallScreen`,p),c=()=>M(jD,`$isMediumScreen`,p),l=()=>M(a1,`$entryDraftInteracted`,p),u=()=>M(oM,`$showContentOverlay`,p),d=()=>M(Z,`$_`,p),f=()=>M(sM,`$showDuplicateToast`,p),[p,m]=N(),h=e=>{var t=W(),n=R(t),r=e=>{let t=P(()=>{let{locale:e,mode:t}=a();return{locale:e,mode:t}});var n=Dae(),r=L(n);{let e=P(()=>d()(V(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:Zv(V(t).locale)??V(t).locale}}));qX(r,{class:`pane`,get"aria-label"(){return V(e)},get"data-locale"(){return V(t).locale},get"data-mode"(){return V(t).mode},children:(e,t)=>{var n=Eae(),r=R(n);$7(r,{id:`first-pane-header`,get thisPane(){return uM},get thatPane(){return dM}}),Z7(z(r,2),{id:`first-pane-body`,get thisPane(){return uM},get thisPaneContentArea(){return V(S)},set thisPaneContentArea(e){I(S,e,!0)},get thatPaneContentArea(){return V(C)},set thatPaneContentArea(e){I(C,e,!0)}}),G(e,n)},$$slots:{default:!0}})}O(n),G(e,n)};q(n,e=>{a()&&e(r)}),G(e,t)},g=e=>{var t=W(),n=R(t),r=e=>{let t=P(()=>{let{locale:e,mode:t}=o();return{locale:e,mode:t}});var n=kae(),r=L(n);{let e=P(()=>d()(V(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:Zv(V(t).locale)??V(t).locale}}));qX(r,{class:`pane`,get"aria-label"(){return V(e)},get"data-locale"(){return V(t).locale},get"data-mode"(){return V(t).mode},children:(e,t)=>{var n=Oae(),r=R(n);$7(r,{id:`second-pane-header`,get thisPane(){return dM},get thatPane(){return uM}}),Z7(z(r,2),{id:`second-pane-body`,get thisPane(){return dM},get thisPaneContentArea(){return V(C)},set thisPaneContentArea(e){I(C,e,!0)},get thatPaneContentArea(){return V(S)},set thatPaneContentArea(e){I(S,e,!0)}}),G(e,n)},$$slots:{default:!0}})}O(n),G(e,n)};q(n,e=>{o()&&e(r)}),G(e,t)},_=X(t,`editorLocale`,3,void 0),v=!1,y=!1,b=F(!0),x=F(void 0),S=F(void 0),C=F(void 0),w=P(()=>n()===void 0),T=P(()=>n()??{}),ee=P(()=>D(V(T).isNew,!0)),te=P(()=>D(V(T).canPreview,!0)),ne=P(()=>V(T).collection),re=P(()=>V(T).collectionName),ie=P(()=>V(T).collectionFile),E=P(()=>V(T).fileName),ae=P(()=>V(T).isIndexFile),oe=P(()=>V(T).currentValues),se=P(()=>r()??{}),le=P(()=>V(se).showPreview),ue=P(()=>(V(ie)??V(ne))?._i18n??ly),de=P(()=>V(ue).i18nEnabled),fe=P(()=>V(ue).allLocales),pe=P(()=>V(ue).defaultLocale),me=P(()=>V(ie)?.name?[V(ne)?.name,V(ie).name].join(`|`):V(ne)?.name),he=P(()=>i().canCreate),ge=P(()=>i().quota),_e=P(()=>i().creationDisabled),ve=P(()=>!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=P(()=>ce(V(ve),3)),be=P(()=>V(ye)[0]),xe=P(()=>V(ye)[1]),Se=P(()=>V(ye)[2]),Ce=async()=>{let[e,t]=r()?.paneStates?.[V(me)??``]??[];return _()&&(e={mode:`edit`,locale:_()},t={mode:`preview`,locale:_()}),v||!e||!t||e.locale&&!V(fe).includes(e.locale)||t.locale&&!V(fe).includes(t.locale)||(!V(le)||!V(te))&&(e.mode===`preview`||t.mode===`preview`)||V(fe).length===2&&e.locale!==V(pe)?!1:(v=!0,await si(),Vt(uM,e),Vt(dM,s()||c()?null:t),await si(),v=!1,!0)},we=async()=>{if(!(!n()||y)){if(y=!0,await Ce()){y=!1;return}if(Vt(uM,{mode:`edit`,locale:a()?.locale??V(pe)}),s()||c())Vt(dM,null);else if(!V(le)||!V(te)){let e=V(de)?V(fe).filter(e=>e!==a()?.locale):[];Vt(dM,e.length?{mode:`edit`,locale:e[0]}:null)}else Vt(dM,{mode:`preview`,locale:a().locale});y=!1}},Te=()=>{!V(ne)||v||!a()||!o()||!V(me)||Y7.update((e={})=>({...e,paneStates:{...e.paneStates,[V(me)]:[a(),o()]}}))},Ee=e=>{e.isTrusted&&!l()&&Vt(a1,!0)},De=async()=>{await si(),V(x)&&(V(x).tabIndex=0,V(x).focus())},Oe=async e=>{let t=a(),n=o();t?.mode===`edit`&&t.locale===e||n?.mode===`edit`&&n.locale===e||(n?.mode===`preview`?Vt(dM,{mode:`edit`,locale:e}):t?.mode===`preview`?Vt(uM,{mode:`edit`,locale:e}):Vt(n?dM:uM,{mode:`edit`,locale:e}),await Wx(100))},ke=async({locale:e,keyPath:t})=>{await Oe(e);let n=V(oe)?.[e]??{},r=a7({collectionName:V(re),fileName:V(E),valueMap:n,keyPath:t,isIndexFile:V(ae)});i7(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.data?.type===`highlight-editor-field`&&e.data.payload&&ke(e.data.payload)};fo(()=>(u()||Vt(r1,null),window.addEventListener(`message`,Ae),()=>{window.removeEventListener(`message`,Ae)})),pr(()=>{V(me)&&(Vt(uM,null),Vt(dM,null))}),pr(()=>{V(ne),V(le),V(te),s(),c(),H(()=>{we()})}),pr(()=>{a(),o(),Te()}),pr(()=>{V(x)&&(u()?V(b)&&(I(b,!1),we(),De(),G2()):W2())});var je=Fae(),Me=R(je);Xi(L(Me),()=>n()?.id,e=>{var t=Pae(),r=R(t);{let e=P(()=>V(ee)&&V(_e));Tae(r,{get disabled(){return V(e)}})}var i=z(r,2),c=e=>{},l=e=>{WX(e,{children:(e,t)=>{var n=Aae(),r=R(n),i=L(r),a=e=>{var t=Li();B(e=>K(t,e),[()=>d()(`entry_not_found`)]),G(e,t)},o=e=>{var t=Li();B(e=>K(t,e),[()=>d()(`creating_entries_disabled_by_admin`)]),G(e,t)},s=e=>{var t=Li();B(e=>K(t,e),[()=>d()(`creating_entries_disabled_by_quota`,{values:{quota:V(ge)}})]),G(e,t)};q(i,e=>{V(w)?e(a):V(he)?e(s,-1):e(o,1)}),O(r);var c=z(r,2);tN(L(c),{variant:`primary`,onclick:()=>{yZ(`/collection/${V(ne)?.name}`,{replaceState:!0,transitionType:`backwards`})},children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>d()(`back_to_collection`)]),G(e,n)},$$slots:{default:!0}}),O(c),G(e,n)},$$slots:{default:!0}})},u=e=>{var t=Nae();Xi(L(t),()=>V(ne),e=>{var t=Mae(),n=R(t),r=L(n),i=e=>{var t=W(),n=R(t),r=e=>{nF(e,{onResize:({sizes:e})=>{a()&&o()&&(e=>{var t=ce(e,2);Ut(uM,H(a).width=t[0],H(a)),Ut(dM,H(o).width=t[1],H(o))})(e)},children:(e,t)=>{var n=jae(),r=R(n);iF(r,{get defaultSize(){return V(be)},get minSize(){return V(Se)},children:(e,t)=>{h(e)},$$slots:{default:!0}});var i=z(r,2);$P(i,{}),iF(z(i,2),{get defaultSize(){return V(xe)},get minSize(){return V(Se)},children:(e,t)=>{g(e)},$$slots:{default:!0}}),G(e,n)},$$slots:{default:!0}})};q(n,e=>{V(be)&&V(xe)&&e(r)}),G(e,t)},c=e=>{h(e)},l=e=>{g(e)},u=e=>{FN(e,{flex:!0})};q(r,e=>{a()&&o()?e(i):a()?e(c,1):o()?e(l,2):e(u,-1)}),O(n);var d=z(n,2),f=e=>{Eie(e,{})};q(d,e=>{s()||e(f)}),G(e,t)}),O(t),ki(`pointerdown`,t,Ee),ki(`keydown`,t,Ee),G(e,t)};q(i,e=>{n()===null?e(c):V(w)||V(ee)&&V(_e)?e(l,1):e(u,-1)}),G(e,t)}),O(Me),oo(Me,e=>I(x,e),()=>V(x));var Ne=z(Me,2);J2(Ne,{}),QF(z(Ne,2),{get show(){return Wt(),f()},set show(e){Vt(sM,e)},children:(e,t)=>{OM(e,{status:`success`,children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>d()(`entry_duplicated`)]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),B(e=>Y(Me,`aria-label`,e),[()=>d()(`content_editor`)]),G(e,je),A(),m()}Ai([`pointerdown`,`keydown`]);var Rae=U(`<!> <!>`,1),zae=U(`<div role="none" class="label svelte-cy8v6x"><!></div>`),Bae=U(`<!> <!> <!>`,1),Vae={hash:`svelte-cy8v6x`,code:`.label.svelte-cy8v6x .icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}`};function Hae(e,t){k(t,!0),J(e,Vae);let n=()=>M(f9,`$listedEntries`,s),r=()=>M(AD,`$isSmallScreen`,s),i=()=>M(jD,`$isMediumScreen`,s),a=()=>M(bC,`$selectedEntries`,s),o=()=>M(Am,`$appLocale`,s),[s,c]=N(),l=e=>{bC.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 s=P(()=>n().indexOf(t.entry));gP(e,{get"aria-rowindex"(){return V(s)},onChange:e=>{l(e.detail.selected)},onclick:()=>{yZ(`/collections/${t.collection.name}/entries/${t.entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{var s=Bae(),c=R(s),u=e=>{pP(e,{class:`checkbox`,children:(e,n)=>{{let n=P(()=>a().includes(t.entry));HN(e,{role:`none`,tabindex:`-1`,get checked(){return V(n)},onChange:({detail:{checked:e}})=>{l(e)}})}},$$slots:{default:!0}})};q(c,e=>{r()||i()||e(u)});var d=z(c,2),f=e=>{pP(e,{class:`image`,children:(e,n)=>{var r=W();Ji(R(r),()=>$j(t.collection,t.entry),null,(e,n)=>{var r=W(),i=R(r),a=e=>{{let r=P(()=>t.viewType===`list`?`icon`:`tile`);z1(e,{get src(){return V(n)},get variant(){return V(r)},cover:!0})}};q(i,e=>{V(n)&&e(a)}),G(e,r)}),G(e,r)},$$slots:{default:!0}})};q(d,e=>{t.collection._thumbnailFieldNames.length&&e(f)}),pP(z(d,2),{class:`title`,children:(e,n)=>{var r=zae();LM(L(r),{lines:2,children:(e,n)=>{var r=Rae(),i=R(r);Xi(i,o,e=>{var n=W();ca(R(n),()=>TE(t.collection,t.entry,{useTemplate:!0,allowMarkdown:!0})),G(e,n)});var a=z(i,2),s=e=>{{let n=P(()=>qv(t.collection)?.icon);TM(e,{get name(){return V(n)},class:`home`})}},c=P(()=>Jv(t.collection,t.entry));q(a,e=>{V(c)&&e(s)}),G(e,r)},$$slots:{default:!0}}),O(r),G(e,r)},$$slots:{default:!0}}),G(e,s)},$$slots:{default:!0}})}A(),c()}var Uae=U(`<!> <!>`,1);function E9(e,t){k(t,!0);let n=()=>M(Nv,`$allEntries`,s),r=()=>M(py,`$selectedCollection`,s),i=()=>M(Am,`$appLocale`,s),a=()=>M(p9,`$collectionState`,s),o=()=>M(Z,`$_`,s),[s,c]=N(),l=X(t,`label`,3,void 0),u=X(t,`keyShortcuts`,3,void 0),d=P(()=>n()&&r()?wC(r()):!1),f=P(()=>i()&&r()?qv(r())?.label:``),p=P(()=>V(d)?kN:tN),m=(e=!1)=>{yZ(`/collections/${t.collectionName}/new`,{state:{index:e},transitionType:`forwards`})};var h=W(),g=R(h);{let e=e=>{TM(e,{name:`edit`})},t=e=>{var t=W(),n=R(t),r=e=>{MP(e,{children:(e,t)=>{var n=Uae(),r=R(n);{let e=P(()=>o()(`entry`));LP(r,{get label(){return V(e)},onclick:()=>m()})}LP(z(r,2),{get label(){return V(f)},onclick:()=>m(!0)}),G(e,n)},$$slots:{default:!0}})};q(n,e=>{V(d)&&e(r)}),G(e,t)},n=P(()=>!l()),r=P(()=>o()(`create_new_entry`));ua(g,()=>V(p),(i,o)=>{o(i,{variant:`primary`,get iconic(){return V(n)},get disabled(){return a().creationDisabled},get label(){return l()},get"aria-label"(){return V(r)},get keyShortcuts(){return u()},onclick:()=>m(),startIcon:e,popup:t,$$slots:{startIcon:!0,popup:!0}})})}G(e,h),A(),c()}var Wae=U(`<span role="none"> </span>`),Gae=U(`<span role="none"> </span> <!>`,1),Kae=U(`<span role="none"> </span>`);function qae(e,t){k(t,!0);let n=()=>M(py,`$selectedCollection`,s),r=()=>M(d9,`$currentView`,s),i=()=>M(g9,`$entryGroups`,s),a=()=>M(Z,`$_`,s),o=()=>M(f9,`$listedEntries`,s),[s,c]=N(),l=P(n),u=P(()=>r().type),d=P(()=>i().flatMap(({entries:e})=>e));{let t=P(()=>a()(`entry_list`));t0(e,{get"aria-label"(){return V(t)},children:(e,t)=>{var n=W(),r=R(n),s=e=>{var t=W(),n=R(t),r=e=>{let t=P(()=>{let{defaultLocale:e}=V(l)._i18n;return{defaultLocale:e}});{let n=P(()=>a()(`entries`));i0(e,{get viewType(){return V(u)},id:`entry-list`,get"aria-label"(){return V(n)},get"aria-rowcount"(){return o().length},children:(e,n)=>{var r=W();na(R(r),1,i,({name:e,entries:t})=>e,(e,n)=>{let r=()=>V(n).name,i=()=>V(n).entries;var a=W();Ji(R(a),Wx,null,e=>{{let n=P(()=>r()===`*`?void 0:r());uP(e,{get label(){return V(n)},children:(e,n)=>{{let n=(e,t=E)=>{var n=W();Ji(R(n),Wx,null,e=>{Hae(e,{get collection(){return V(l)},get entry(){return t()},get viewType(){return V(u)}})}),G(e,n)},r=P(()=>i().filter(({locales:e})=>!!(e[V(t).defaultLocale]??Object.values(e)[0])?.content));cF(e,{get items(){return V(r)},itemKey:`id`,renderItem:n,$$slots:{renderItem:!0}})}},$$slots:{default:!0}})}}),G(e,a)}),G(e,r)},$$slots:{default:!0}})}},s=e=>{WX(e,{children:(e,t)=>{var n=Wae(),r=L(n,!0);O(n),B(e=>K(r,e),[()=>a()(`no_entries_found`)]),G(e,n)},$$slots:{default:!0}})},c=e=>{WX(e,{children:(e,t)=>{var n=Gae(),r=R(n),i=L(r,!0);O(r);var o=z(r,2);{let e=P(()=>a()(`create_new_entry`));E9(o,{get collectionName(){return V(l).name},get label(){return V(e)}})}B(e=>K(i,e),[()=>a()(`no_entries_created`)]),G(e,n)},$$slots:{default:!0}})};q(n,e=>{V(d).length?e(r):o().length?e(s,1):e(c,-1)}),G(e,t)},c=e=>{WX(e,{children:(e,t)=>{var n=Kae(),r=L(n,!0);O(n),B(e=>K(r,e),[()=>a()(`collection_not_found`)]),G(e,n)},$$slots:{default:!0}})};q(r,e=>{V(l)?e(s):e(c,-1)}),G(e,n)},$$slots:{default:!0}})}A(),c()}var Jae=U(`<div role="none" class="label svelte-1nfjp1"><!> <!></div>`),Yae=U(`<span role="none"> </span>`),Xae={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 Zae(e,t){k(t,!0),J(e,Xae);let n=()=>M(py,`$selectedCollection`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o=P(()=>n()?.files.filter(Rv)??[]);{let t=P(()=>r()(`file_list`));t0(e,{get"aria-label"(){return V(t)},children:(e,t)=>{var i=W(),a=R(i),s=e=>{{let t=P(()=>r()(`files`));i0(e,{viewType:`list`,get"aria-label"(){return V(t)},get"aria-rowcount"(){return V(o).length},children:(e,t)=>{cF(e,{get items(){return V(o)},itemKey:`name`,renderItem:(e,t)=>{let r=()=>t?.().name,i=()=>t?.().label,a=()=>t?.().icon;var o=W();Ji(R(o),Wx,null,e=>{gP(e,{onclick:()=>{yZ(`/collections/${n()?.name}/entries/${r()}`,{transitionType:`forwards`})},children:(e,t)=>{pP(e,{class:`title`,children:(e,t)=>{var n=Jae(),o=L(n),s=e=>{TM(e,{get name(){return a()}})};q(o,e=>{a()&&e(s)}),LM(z(o,2),{lines:2,children:(e,t)=>{rt();var n=Li();B(()=>K(n,i()||r())),G(e,n)},$$slots:{default:!0}}),O(n),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}),G(e,o)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},c=e=>{WX(e,{children:(e,t)=>{var n=Yae(),i=L(n,!0);O(n),B(e=>K(i,e),[()=>r()(`no_files_in_collection`)]),G(e,n)},$$slots:{default:!0}})};q(a,e=>{V(o)?.length?e(s):e(c,-1)}),G(e,i)},$$slots:{default:!0}})}A(),a()}var Qae=U(`<div class="wrapper svelte-w0jevb"><!></div>`),$ae={hash:`svelte-w0jevb`,code:`.wrapper.svelte-w0jevb {display:contents;}`};function eoe(e,t){k(t,!0),J(e,$ae);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=P(()=>t.file.name),o=P(()=>t.file.label),s=P(()=>t.file.icon),c=F(!1),l=F(void 0);var u=Qae(),d=L(u);{let e=e=>{{let t=P(()=>V(s)||`edit_document`);TM(e,{get name(){return V(t)}})}},t=P(()=>V(o)||V(a));kP(d,{get label(){return V(t)},onSelect:()=>{Vt(mZ,n()(`singleton_selected_announcement`,{values:{file:V(o)||V(a)}}))},onclick:()=>{yZ(`/collections/_singletons/entries/${V(a)}`,{transitionType:`forwards`}),I(c,!1),V(l)?.querySelector(`[role="option"]`)?.classList.remove(`focused`)},get selected(){return V(c)},set selected(e){I(c,e,!0)},startIcon:e,$$slots:{startIcon:!0}})}O(u),oo(u,e=>I(l,e),()=>V(l)),G(e,u),A(),i()}var toe=U(`<!> <!>`,1);function D9(e,t){k(t,!0);let n=()=>M(ck,`$prefs`,c),r=()=>M(CA,`$backend`,c),i=()=>M(wA,`$isLastCommitPublished`,c),a=()=>M(M$,`$skipCIConfigured`,c),o=()=>M(AD,`$isSmallScreen`,c),s=()=>M(Z,`$_`,c),[c,l]=N(),u=P(()=>n().deployHookURL),d=P(()=>n().deployHookAuthHeader),f=P(()=>r()?.triggerDeployment),p=P(()=>(!!V(u)||typeof V(f)==`function`)&&!i()),m=F(`info`),h=F(!1),g=async()=>{I(m,`info`),I(h,!0);try{let{ok:e,status:t}=V(u)?await fetch(V(u),{method:`POST`,mode:V(d)?`cors`:`no-cors`,headers:V(d)?{Authorization:V(d)}:{}}):await V(f)?.()??{};if(!e&&(V(d)||t!==0))throw Error(`Webhook returned ${t} error`);Vt(wA,!0)}catch(e){I(m,`error`),I(h,!0),console.error(e)}};var _=W(),v=R(_),y=e=>{var t=toe(),n=R(t);{let e=P(()=>o()?`small`:`medium`),t=P(()=>s()(`publish_changes`)),r=P(()=>!V(p));tN(n,{variant:`secondary`,get size(){return V(e)},get label(){return V(t)},get disabled(){return V(r)},onclick:()=>g()})}QF(z(n,2),{get show(){return V(h)},set show(e){I(h,e,!0)},children:(e,t)=>{OM(e,{get status(){return V(m)},children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>s()(V(m)===`error`?`publishing_changes_failed`:`publishing_changes`)]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),G(e,t)};q(v,e=>{a()&&e(y)}),G(e,_),A(),l()}var noe=U(`<header><h2> </h2> <!></header> <!>`,1),roe=U(`<span class="count"> </span>`),ioe=U(`<span class="count"> </span>`),aoe=U(`<!> <!>`,1),ooe=U(`<div role="none" class="primary-sidebar"><!> <!></div>`);function soe(e,t){k(t,!0);let n=()=>M(Am,`$appLocale`,c),r=()=>M(fj,`$cmsConfig`,c),i=()=>M(AD,`$isSmallScreen`,c),a=()=>M(Z,`$_`,c),o=()=>M(py,`$selectedCollection`,c),s=()=>M(Nv,`$allEntries`,c),[c,l]=N(),u=X(t,`isSearchPage`,3,!1),d=P(()=>Intl.NumberFormat(n()??void 0)),f=P(()=>r()?.collections?.filter(({hide:e})=>!e)??[]),p=P(()=>r()?.singletons??[]);var m=ooe(),h=L(m),g=e=>{var t=noe(),n=R(t),r=L(n),i=L(r,!0);O(r),D9(z(r,2),{}),O(n),f0(z(n,2),{onclick:e=>{e.preventDefault(),yZ(`/search`)}}),B(e=>K(i,e),[()=>a()(`contents`)]),G(e,t)};q(h,e=>{i()&&e(g)});var _=z(h,2);{let e=P(()=>a()(`collection_list`));SP(_,{get"aria-label"(){return V(e)},"aria-controls":`collection-container`,children:(e,t)=>{var n=aoe(),r=R(n),c=e=>{{let t=P(()=>a()(`collections`));TP(e,{get label(){return V(t)},children:(e,t)=>{var n=W();na(R(n),19,()=>V(f),(e,t)=>e.name??t,(e,t)=>{var n=W();Ji(R(n),Wx,null,e=>{var n=W(),r=R(n),c=e=>{let n=P(()=>{let{name:e,label:n,icon:r}=V(t);return{name:e,label:n,icon:r}});{let r=e=>{{let t=P(()=>V(n).icon||`bookmark_manager`);TM(e,{get name(){return V(t)}})}},c=e=>{var r=W();Xi(R(r),s,e=>{let r=P(()=>(`files`in V(t)?V(t).files:xC(V(n).name)).length);var i=roe(),o=L(i,!0);O(i),B((e,t)=>{Y(i,`aria-label`,`(${e??``})`),K(o,t)},[()=>a()(V(r)>1?`many_entries`:V(r)===1?`one_entry`:`no_entries`,{values:{count:V(r)}}),()=>V(d).format(V(r))]),G(e,i)}),G(e,r)},l=P(()=>V(n).label||V(n).name),f=P(()=>i()||u()?!1:o()?.name===V(n).name);kP(e,{get label(){return V(l)},get selected(){return V(f)},onSelect:()=>{yZ(`/collections/${V(n).name}`,{transitionType:`forwards`})},startIcon:r,endIcon:c,$$slots:{startIcon:!0,endIcon:!0}})}},l=e=>{MN(e,{})};q(r,e=>{`divider`in V(t)?V(t).divider&&e(l,1):e(c)}),G(e,n)}),G(e,n)}),G(e,n)},$$slots:{default:!0}})}};q(r,e=>{V(f).length&&e(c)});var l=z(r,2),m=e=>{var t=W(),n=R(t),r=e=>{{let t=P(()=>a()(`files`));TP(e,{get label(){return V(t)},children:(e,t)=>{var n=W();na(R(n),19,()=>V(p),(e,t)=>e.name??t,(e,t)=>{var n=W();Ji(R(n),Wx,null,e=>{var n=W(),r=R(n),i=e=>{eoe(e,{get file(){return V(t)}})},a=e=>{MN(e,{})};q(r,e=>{`divider`in V(t)?V(t).divider&&e(a,1):e(i)}),G(e,n)}),G(e,n)}),G(e,n)},$$slots:{default:!0}})}},s=e=>{let t=P(()=>V(p).length);{let n=P(()=>a()(`collections`));TP(e,{get label(){return V(n)},children:(e,n)=>{{let n=e=>{TM(e,{name:`bookmark_manager`})},r=e=>{var n=ioe(),r=L(n,!0);O(n),B((e,t)=>{Y(n,`aria-label`,`(${e??``})`),K(r,t)},[()=>a()(V(t)>1?`many_entries`:V(t)===1?`one_entry`:`no_entries`,{values:{count:V(t)}}),()=>V(d).format(V(t))]),G(e,n)},i=P(()=>a()(`files`)),s=P(()=>o()?.name===`_singletons`);kP(e,{get label(){return V(i)},get selected(){return V(s)},onSelect:()=>{yZ(`/collections/_singletons`,{transitionType:`forwards`})},startIcon:n,endIcon:r,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};q(n,e=>{i()||V(f).length?e(r):e(s,-1)}),G(e,t)};q(l,e=>{V(p).length&&e(m)}),G(e,n)},$$slots:{default:!0}})}O(m),G(e,m),A(),l()}function coe(e,t){k(t,!0);let n=()=>M(py,`$selectedCollection`,o),r=()=>M(bC,`$selectedEntries`,o),i=()=>M(Z,`$_`,o),a=()=>M(f9,`$listedEntries`,o),[o,s]=N(),c=X(t,`open`,15,!1),l=P(()=>{let e=n()?.name;return r().length&&e&&Hd({collectionName:e})?.entryRelative?r().flatMap(t=>eM({entry:t,collectionName:e,relative:!0})):[]});{let t=P(()=>r().length===1?i()(`delete_entry`):i()(`delete_entries`)),n=P(()=>i()(`delete`));ZN(e,{get title(){return V(t)},get okLabel(){return V(n)},onOk:()=>{r9(r(),V(l))},get open(){return c()},set open(e){c(e)},children:(e,t)=>{var n=W(),o=R(n),s=e=>{var t=Li();B(e=>K(t,e),[()=>i()(V(l).length?`confirm_deleting_selected_entry_with_assets`:`confirm_deleting_selected_entry`)]),G(e,t)},c=e=>{var t=Li();B(e=>K(t,e),[()=>i()(V(l).length?`confirm_deleting_all_entries_with_assets`:`confirm_deleting_all_entries`)]),G(e,t)},u=e=>{var t=Li();B(e=>K(t,e),[()=>i()(V(l).length?`confirm_deleting_selected_entries_with_assets`:`confirm_deleting_selected_entries`,{values:{count:r().length}})]),G(e,t)};q(o,e=>{r().length===1?e(s):r().length===a().length?e(c,1):e(u,-1)}),G(e,n)},$$slots:{default:!0}})}A(),s()}var loe=U(`<div role="none" class="description svelte-83jnuc"><!></div>`),uoe=U(`<!> <!>`,1),doe=U(`<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>`,1),foe=U(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),poe=U(`<!> <!>`,1),moe=U(`<!> <!>`,1),hoe={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 goe(e,t){k(t,!0),J(e,hoe);let n=()=>M(py,`$selectedCollection`,l),r=()=>M(Am,`$appLocale`,l),i=()=>M(p9,`$collectionState`,l),a=()=>M(Z,`$_`,l),o=()=>M(AD,`$isSmallScreen`,l),s=()=>M(bC,`$selectedEntries`,l),c=()=>M(f9,`$listedEntries`,l),[l,u]=N(),d=F(!1),f=e=>kw(aE.parseInline(e),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`],ALLOWED_ATTR:[`href`]}),p=P(()=>n()?.name??``),m=P(()=>n()?.description),h=P(()=>r()&&n()?Ey(n()):V(p)),g=P(()=>i().isEntryCollection),_=P(()=>i().canCreate),v=P(()=>i().canDelete),y=P(()=>i().quota),b=P(()=>i().remaining),x=P(()=>i().nearingQuota),S=P(()=>i().creationDisabled);var C=moe(),w=R(C),T=e=>{var t=poe(),n=R(t);{let e=P(()=>a()(`collection`));nX(n,{variant:`primary`,get"aria-label"(){return V(e)},children:(e,t)=>{var n=doe(),r=R(n),i=e=>{{let t=P(()=>a()(`back_to_collection_list`));WQ(e,{get"aria-label"(){return V(t)},onclick:()=>{bZ(`/collections`)}})}};q(r,e=>{o()&&e(i)});var l=z(r,2),u=L(l,!0);O(l);var _=z(l,2),y=e=>{FN(e,{flex:!0})},b=e=>{var t=loe();LM(L(t),{children:(e,t)=>{var n=W();ca(R(n),()=>f(V(m)||``)),G(e,n)},$$slots:{default:!0}}),O(t),G(e,t)};q(_,e=>{o()?e(y):e(b,-1)});var x=z(_,2),C=e=>{var t=uoe(),n=R(t),r=e=>{{let t=P(()=>a()(`delete`)),n=P(()=>s().length===1?a()(`delete_selected_entry`):a()(`delete_selected_entries`)),r=P(()=>!s().length||!V(v));tN(e,{variant:`ghost`,get label(){return V(t)},get"aria-label"(){return V(n)},get disabled(){return V(r)},onclick:()=>{I(d,!0)}})}};q(n,e=>{o()||e(r)}),mN(z(n,2),{children:(e,t)=>{var n=W(),r=R(n),i=e=>{{let t=P(()=>o()?void 0:a()(`create`));E9(e,{get collectionName(){return V(p)},get label(){return V(t)},keyShortcuts:`Accel+E`})}};q(r,e=>{(!o()||c().length&&!V(S))&&e(i)}),G(e,n)},$$slots:{default:!0}}),G(e,t)};q(x,e=>{V(g)&&e(C)}),B(()=>K(u,V(h))),G(e,n)},$$slots:{default:!0}})}var r=z(n,2),i=e=>{var t=foe(),n=R(t);Zi(n,()=>({"--sui-infobar-border-width":`1px 0`,"--sui-infobar-message-justify-content":`center`})),aN(n.lastChild,{dismissible:!1,children:(e,t)=>{var n=W(),r=R(n),i=e=>{var t=Li();B(e=>K(t,e),[()=>a()(`creating_entries_disabled_by_admin`)]),G(e,t)},o=e=>{var t=Li();B(e=>K(t,e),[()=>a()(`creating_entries_disabled_by_quota`,{values:{quota:V(y)}})]),G(e,t)},s=e=>{var t=Li();B(e=>K(t,e),[()=>a()(`creating_entries_nearing_quota_${V(b)===1?`singular`:`plural`}`,{values:{quota:V(y),remaining:V(b)}})]),G(e,t)};q(r,e=>{V(_)?V(S)?e(o,1):V(x)&&e(s,2):e(i)}),G(e,n)},$$slots:{default:!0}}),O(n),G(e,t)};q(r,e=>{V(g)&&(V(S)||V(x))&&e(i)}),G(e,t)};q(w,e=>{n()&&e(T)}),coe(z(w,2),{get open(){return V(d)},set open(e){I(d,e,!0)}}),G(e,C),A(),u()}function _oe(e,t){k(t,!0);let n=()=>M(py,`$selectedCollection`,s),r=()=>M(MD,`$isLargeScreen`,s),i=()=>M(d9,`$currentView`,s),a=()=>M(Z,`$_`,s),o=()=>M(Ij,`$allAssets`,s),[s,c]=N(),l=P(()=>Hd({collectionName:n()?.name})),u=P(()=>V(l)??{internalPath:void 0,entryRelative:!1,hasTemplateTags:!1}),d=P(()=>V(u).internalPath),f=P(()=>V(u).entryRelative),p=P(()=>V(u).hasTemplateTags),m=P(()=>V(f)||V(p));var h=W(),g=R(h),_=e=>{{let t=P(()=>a()(`collection_assets`));qX(e,{id:`collection-assets`,class:`secondary-sidebar`,get"aria-label"(){return V(t)},children:(e,t)=>{Z1(e,{get disabled(){return V(m)},multiple:!0,onDrop:({files:e})=>{Vt(Hj,{folder:V(l),files:e})},children:(e,t)=>{{let t=P(()=>o().filter(e=>(0,Ld.default)(e.folder,V(l))));e8(e,{get assets(){return V(t)},onSelect:({asset:e})=>{yZ(`/assets/${e.path}`,{transitionType:`forwards`})}})}},$$slots:{default:!0}})},$$slots:{default:!0}})}};q(g,e=>{V(d)!==void 0&&r()&&i().showMedia&&e(_)}),G(e,h),A(),c()}var voe=U(`<!> <!>`,1);function yoe(e,t){k(t,!0);let n=()=>M(Z,`$_`,i),r=()=>M(t.currentView,`$currentView`,i),[i,a]=N(),o=X(t,`label`,3,``),s=X(t,`disabled`,3,!1),c=X(t,`noneLabel`,3,``),l=X(t,`groups`,19,()=>[]);{let i=e=>{{let i=P(()=>n()(`grouping_options`));MP(e,{get"aria-label"(){return V(i)},get"aria-controls"(){return t[`aria-controls`]},children:(e,i)=>{var a=voe(),o=R(a);{let e=P(()=>c()||n()(`sort_keys.none`)),i=P(()=>!r().group);zP(o,{get label(){return V(e)},get checked(){return V(i)},onSelect:()=>{t.currentView.update(e=>({...e,group:null}))}})}na(z(o,2),17,l,e=>JSON.stringify(e),(e,n)=>{let i=P(()=>{let{label:e,field:t,pattern:r}=V(n);return{_label:e,field:t,pattern:r}});{let n=P(()=>r().group?.field===V(i).field&&String(r().group.pattern)===String(V(i).pattern));zP(e,{get label(){return V(i)._label},get checked(){return V(n)},onSelect:()=>{t.currentView.update(e=>({...e,group:{field:V(i).field,pattern:V(i).pattern}}))}})}}),G(e,a)},$$slots:{default:!0}})}},a=P(()=>o()||n()(`group`));EN(e,{variant:`ghost`,get label(){return V(a)},get disabled(){return s()},popupPosition:`bottom-right`,popup:i,$$slots:{popup:!0}})}A(),a()}var boe=U(`<!> <!>`,1),xoe=U(`<!> <!> <!> <!> <!> <!> <!>`,1);function Soe(e,t){k(t,!0);let n=()=>M(py,`$selectedCollection`,f),r=()=>M(f9,`$listedEntries`,f),i=()=>M(Z,`$_`,f),a=()=>M(AD,`$isSmallScreen`,f),o=()=>M(jD,`$isMediumScreen`,f),s=()=>M(g9,`$entryGroups`,f),c=()=>M(Kie,`$sortKeys`,f),l=()=>M(Fie,`$viewFilters`,f),u=()=>M(zie,`$viewGroups`,f),d=()=>M(d9,`$currentView`,f),[f,p]=N(),m=P(()=>n()?._type===`entry`?n():void 0),h=P(()=>V(m)?.name),g=P(()=>V(m)?._thumbnailFieldNames??[]),_=P(()=>!!r().length),v=P(()=>r().length>1);var y=W(),b=R(y),x=e=>{{let t=P(()=>i()(`entry_list`));nX(e,{variant:`secondary`,get"aria-label"(){return V(t)},children:(e,t)=>{var n=xoe(),r=R(n),f=e=>{{let t=P(()=>s().flatMap(({entries:e})=>e));k0(e,{get allItems(){return V(t)},get selectedItems(){return bC}})}};q(r,e=>{a()||o()||e(f)});var p=z(r,2);FN(p,{flex:!0});var m=z(p,2);{let e=P(()=>!V(v)||!c().length);j0(m,{get disabled(){return V(e)},get currentView(){return d9},get sortKeys(){return c()},get collectionName(){return V(h)},"aria-controls":`entry-list`})}var y=z(m,2),b=e=>{{let t=P(()=>!V(v));T0(e,{get disabled(){return V(t)},get currentView(){return d9},get filters(){return l()},multiple:!0,"aria-controls":`entry-list`})}};q(y,e=>{l()?.length&&e(b)});var x=z(y,2),S=e=>{{let t=P(()=>!V(v));yoe(e,{get disabled(){return V(t)},get currentView(){return d9},get groups(){return u()},"aria-controls":`entry-list`})}};q(x,e=>{u()?.length&&e(S)});var C=z(x,2),w=e=>{{let t=P(()=>!V(_));F0(e,{get disabled(){return V(t)},get currentView(){return d9},"aria-controls":`entry-list`})}};q(C,e=>{V(g).length&&e(w)});var T=z(C,2),ee=e=>{var t=boe(),n=R(t);MN(n,{orientation:`vertical`});var r=z(n,2);{let e=e=>{TM(e,{name:`photo_library`})},t=P(()=>!V(_)||!Hd({collectionName:V(h)})),n=P(()=>!!d().showMedia),a=P(()=>i()(d().showMedia?`hide_assets`:`show_assets`));tN(r,{variant:`ghost`,iconic:!0,get disabled(){return V(t)},get pressed(){return V(n)},"aria-controls":`collection-assets`,get"aria-expanded"(){return d().showMedia},get"aria-label"(){return V(a)},onclick:()=>{d9.update(e=>({...e,showMedia:!d().showMedia}))},startIcon:e,$$slots:{startIcon:!0}})}G(e,t)};q(T,e=>{a()||o()||e(ee)}),G(e,n)},$$slots:{default:!0}})}};q(b,e=>{V(m)&&e(x)}),G(e,y),A(),p()}var Coe=U(`<!> <!> <!> <!>`,1);function O9(e,t){k(t,!0);let n=()=>M(py,`$selectedCollection`,l),r=()=>M(oM,`$showContentOverlay`,l),i=()=>M(AD,`$isSmallScreen`,l),a=()=>M(Z,`$_`,l),o=()=>M(f9,`$listedEntries`,l),s=()=>M(Am,`$appLocale`,l),c=()=>M(AQ,`$contentUpdatesToast`,l),[l,u]=N(),d=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/,f=F(!1),p=F(!1),m=F(void 0),h=P(()=>`files`in(n()??{})?Zae:qae),g=()=>{let{path:e,params:t}=hZ(),r=e.match(d);if(I(f,!1),I(p,!1),I(m,t._locale,!0),delete t._locale,n()?.name===`_singletons`&&yy().length&&Vt(py,void 0),!r?.groups){Vt(oM,!1),I(p,y2(e),!0);return}let{_collectionName:c,routeType:l,subPath:u}=r.groups;if(!c){i()?(Vt(py,void 0),Vt(oM,!1),Vt(mZ,a()(`viewing_collection_list`)),I(f,!0)):yZ(`/collections/${(n()||by()||wy())?.name}`,{replaceState:!0});return}let h=Ty(c);if(!h||h.hide?Vt(py,void 0):n()?.name!==h.name&&Vt(py,h),!h||!n()){Vt(oM,!1),Vt(mZ,a()(`collection_not_found`));return}let{name:g}=n(),_=Ey(n()),v=`_fileMap`in n()?n()._fileMap:void 0;if(!l){let e=o().length;Vt(oM,!1),Vt(mZ,a()(e>1?`viewing_x_collection_many_entries`:e===1?`viewing_x_collection_one_entry`:`viewing_x_collection_no_entries`,{values:{collection:_,count:e}}));return}if(Vt(oM,!0),v){if(l===`entries`&&u){let e=Uv(g,u),t=v[u];v9(e?{collection:h,collectionFile:t,originalEntry:e}:{collection:h,collectionFile:t,originalEntry:{slug:t.name,locales:Object.fromEntries(t._i18n.initialLocales.map(e=>[e,{}]))}}),Vt(mZ,a()(`edit_${h._type}_announcement`,{values:{collection:_,file:Vv(t)}}))}}else if(l===`new`&&!u&&(v9({collection:h,dynamicValues:t,isIndexFile:!!window.history.state?.index}),Vt(mZ,a()(`create_entry_announcement`,{values:{collection:_}}))),l===`entries`&&u){let e=o().find(e=>e.subPath===u);e&&s()&&(v9({collection:h,originalEntry:e}),Vt(mZ,a()(`edit_entry_announcement`,{values:{collection:_,entry:TE(n(),e)}})))}};fo(()=>(g(),()=>{Vt(oM,!1)}));var _=Coe();Oi(`hashchange`,Un,e=>{vZ(e,g,d)});var v=R(_);{let e=e=>{var t=W(),n=R(t),r=e=>{soe(e,{get isSearchPage(){return V(p)}})};q(n,e=>{(!i()||V(f))&&e(r)}),G(e,t)},t=e=>{var t=W(),r=R(t),c=e=>{_2(e,{})},l=e=>{{let t=e=>{goe(e,{})},r=e=>{var t=W(),r=R(t),i=e=>{Soe(e,{})};q(r,e=>{n()?._type===`entry`&&o().length&&e(i)}),G(e,t)},i=e=>{var t=W();ua(R(t),()=>V(h),(e,t)=>{t(e,{})}),G(e,t)},c=e=>{_oe(e,{})},l=P(()=>a()(`x_collection`,{values:{collection:s()&&n()?Ey(n()):``}})),u=P(()=>n()?.description);H0(e,{get"aria-label"(){return V(l)},get"aria-description"(){return V(u)},primaryToolbar:t,secondaryToolbar:r,mainContent:i,secondarySidebar:c,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};q(r,e=>{V(p)?e(c):(!i()||!V(f))&&e(l,1)}),G(e,t)},r=P(()=>a()(`content_library`));G0(v,{get"aria-label"(){return V(r)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var y=z(v,2),b=e=>{Lae(e,{get editorLocale(){return V(m)}})};q(y,e=>{r()&&e(b)});var x=z(y,2);QF(x,{get show(){return c().saved},set show(e){Ut(AQ,H(c).saved=e,H(c))},children:(e,t)=>{OM(e,{status:`success`,children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>a()(c().published?`entry_saved_and_published`:`entry_saved`)]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),QF(z(x,2),{get show(){return c().deleted},set show(e){Ut(AQ,H(c).deleted=e,H(c))},children:(e,t)=>{OM(e,{status:`success`,children:(e,t)=>{rt();var n=Li();B(e=>K(n,e),[()=>a()(c().count===1?`entry_deleted`:`entries_deleted`,{values:{count:c().count}})]),G(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),G(e,_),A(),u()}function k9(e,t){k(t,!0);let n=()=>M(Z,`$_`,i),r=()=>M(ck,`$prefs`,i),[i,a]=N();{let t=P(()=>n()(`prefs.i18n.translators.default.select_service`));xF(e,{get"aria-label"(){return V(t)},get value(){return r().defaultTranslationService},onChange:e=>{Vt(ck,{...r(),defaultTranslationService:e.detail.value})},children:(e,t)=>{var n=W();na(R(n),17,()=>Object.entries(F3),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=P(()=>ce(V(t),2));let i=()=>V(n)[0],a=()=>V(n)[1].serviceLabel;{let t=P(()=>i()===r().defaultTranslationService);kP(e,{get label(){return a()},get value(){return i()},get selected(){return V(t)}})}}),G(e,n)},$$slots:{default:!0}})}A(),a()}var woe=U(`<!> <!> <!>`,1);function Toe(e,t){k(t,!0);let n=()=>M(I3,`$translator`,s),r=()=>M(oM,`$showContentOverlay`,s),i=()=>M(cM,`$translatorApiKeyDialogState`,s),a=()=>M(Z,`$_`,s),o=()=>M(ck,`$prefs`,s),[s,c]=N(),l=P(()=>n().serviceId),u=P(()=>n().apiLabel),d=P(()=>n().developerURL),f=P(()=>n().apiKeyURL),p=P(()=>n().apiKeyPattern);pr(()=>{!r()&&i().show&&(Ut(cM,H(i).show=!1,H(i)),i().resolve?.())});{let t=P(()=>a()(i().multiple?`translate_fields`:`translate_field`)),n=P(()=>({spellcheck:!1,monospace:!0,"aria-label":a()(`api_key`)}));iP(e,{get title(){return V(t)},showOk:!1,get textboxAttrs(){return V(n)},oninput:e=>{let t=e.target.value.trim();V(p)?.test(t)&&(Ut(ck,H(o).apiKeys??={},H(o)),Ut(ck,H(o).apiKeys[V(l)]=t,H(o)),Ut(cM,H(i).show=!1,H(i)),i().resolve?.(t))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(e){Ut(cM,H(i).show=e,H(i))},children:(e,t)=>{var n=woe(),r=R(n);k9(r,{});var i=z(r,2);FN(i,{}),ca(z(i,2),()=>kw(a()(`prefs.i18n.translators.description`,{values:{service:V(u),homeHref:`href="${V(d)}"`,apiKeyHref:`href="${V(f)}"`}}),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),G(e,n)},$$slots:{default:!0}})}A(),c()}function Eoe(e,t){k(t,!0);let n=()=>M(Pv,`$entryParseErrors`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o=F(!!n().length);QF(e,{get show(){return V(o)},set show(e){I(o,e,!0)},children:(e,t)=>{OM(e,{status:`error`,children:(e,t)=>{rt();var i=Li();B(e=>K(i,e),[()=>r()(n().length===1?`entry_parse_error`:`entry_parse_errors`)]),G(e,i)},$$slots:{default:!0}})},$$slots:{default:!0}}),A(),a()}var A9=It([MD,ND,ED,CA,uO],([e,t,n,r,i])=>e&&t&&!n&&!!r?.isGit&&!!i?.token),j9=Ft(!1),Doe=U(` <!> <!>`,1),Ooe=U(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1);function koe(e,t){k(t,!0);let n=()=>M(CA,`$backend`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o,s=F(!1);pr(()=>{let{databaseName:e}=n()?.repository??{};e&&(o=new Rb(e,`ui-settings`),(async()=>{let e=await o.get(`onboarding`)??{};e.mobileCta||I(s,!0),await o.set(`onboarding`,{...e,mobileCta:!0})})())});var c=Ooe(),l=R(c);Zi(l,()=>({"--sui-infobar-message-justify-content":`center`})),aN(l.lastChild,{get show(){return V(s)},dismissible:!1,children:(e,t)=>{rt();var n=Doe(),i=R(n),a=z(i);{let e=P(()=>r()(`mobile_promo_button`));tN(a,{variant:`link`,get label(){return V(e)},onclick:()=>{I(s,!1),Vt(j9,!0)}})}var o=z(a,2);{let e=P(()=>r()(`later`));tN(o,{variant:`link`,get label(){return V(e)},onclick:()=>{I(s,!1)}})}B(e=>K(i,`${e??``} `),[()=>r()(`mobile_promo_title`)]),G(e,n)},$$slots:{default:!0}}),O(l),G(e,c),A(),a()}var Aoe=U(`<div role="none" class="wrapper svelte-t2r4ty"><!></div>`),joe={hash:`svelte-t2r4ty`,code:`.wrapper.svelte-t2r4ty {display:contents;}.wrapper.svelte-t2r4ty .sui.select-button-group {gap:4px;}
|
|
929
929
|
@media (width < 768px) {.wrapper.svelte-t2r4ty .sui.select-button-group {justify-content:space-evenly;width:100%;}
|
|
930
|
-
}.wrapper.svelte-t2r4ty .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}`};function M9(e,t){k(t,!0),J(e,Aoe);let n=()=>M(Z,`$_`,u),r=()=>M(Rd,`$allAssetFolders`,u),i=()=>M(AD,`$isSmallScreen`,u),a=()=>M(Bd,`$selectedAssetFolder`,u),o=()=>M(fj,`$cmsConfig`,u),s=()=>M(SA,`$backendName`,u),c=()=>M(pZ,`$selectedPageName`,u),l=()=>M(s0,`$searchMode`,u),[u,d]=N(),f=P(()=>{let e=[{key:`collections`,label:n()(`contents`),icon:`article`,link:`/collections`,searchMode:`contents`}];return r().length&&e.push({key:`assets`,label:n()(`assets`),icon:`photo`,link:i()?`/assets`:`/assets/${a()?.internalPath??`-/all`}`,searchMode:`assets`}),o()?.publish_mode,s(),i()&&e.push({key:`menu`,label:n()(`menu`),icon:`menu`,link:`/menu`,searchMode:void 0}),e});var p=koe(),m=L(p);{let e=P(()=>n()(`switch_page`));CN(m,{get"aria-label"(){return V(e)},"aria-controls":`page-container`,children:(e,t)=>{var n=W();na(R(n),19,()=>V(f),({key:e,label:t,icon:n,link:r,searchMode:i})=>e,(e,t,n)=>{let r=()=>V(t).key,i=()=>V(t).label,a=()=>V(t).icon,o=()=>V(t).link,s=()=>V(t).searchMode;{let t=e=>{TM(e,{get name(){return a()}})},u=P(()=>c()===r()||l()===s()),d=P(()=>V(n)+1);wN(e,{variant:`ghost`,iconic:!0,get selected(){return V(u)},get"aria-label"(){return i()},get keyShortcuts(){return`Alt+${V(d)??``}`},onclick:()=>{yZ(o())},startIcon:t,$$slots:{startIcon:!0}})}}),G(e,n)},$$slots:{default:!0}})}O(p),G(e,p),A(),d()}var joe=U(`<div role="none" class="buttons"><!></div>`);function Moe(e,t){k(t,!0);let n=()=>M(fZ,`$hasOverlay`,i),r=()=>M(Z,`$_`,i),[i,a]=N();cN(e,{get inert(){return n()},children:(e,t)=>{{let t=P(()=>r()(`global`));nX(e,{variant:`primary`,get"aria-label"(){return V(t)},children:(e,t)=>{var n=joe();M9(L(n),{}),O(n),G(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}}),A(),a()}var Noe=U(`<kbd class="svelte-13q15u"> </kbd>`),Poe=U(`<!> <!>`,1),Foe=U(`<div role="none" class="wrapper svelte-13q15u"><!></div>`),Ioe={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 N9(e,t){k(t,!0),J(e,Ioe);let n=()=>M(Z,`$_`,i),r=()=>M(kD,`$isMacOS`,i),[i,a]=N(),o=X(t,`open`,15,!1),s=X(t,`onClose`,3,void 0),c=[{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=P(()=>n()(`keyboard_shortcuts`));YN(e,{get title(){return V(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,onClose:()=>{s()?.()},get open(){return o()},set open(e){o(e)},children:(e,t)=>{var i=Foe(),a=L(i);{let e=P(()=>n()(`keyboard_shortcuts`));HF(a,{get"aria-label"(){return V(e)},children:(e,t)=>{var i=W();na(R(i),17,()=>c,({feature:e,keys:t})=>t,(e,t)=>{let i=()=>V(t).feature,a=()=>V(t).keys;zF(e,{children:(e,t)=>{var o=Poe(),s=R(o);IF(s,{class:`feature`,children:(e,t)=>{rt();var r=Li();B(e=>K(r,e),[()=>n()(`keyboard_shortcuts_.${i()}`)]),G(e,r)},$$slots:{default:!0}}),IF(z(s,2),{class:`keys`,children:(e,t)=>{var n=W();na(R(n),16,()=>a().split(`+`),e=>e,(e,t)=>{var n=Noe(),i=L(n,!0);O(n),B(e=>K(i,e),[()=>t.replace(`Accel`,r()?`â`:`Ctrl`)]),G(e,n)}),G(e,n)},$$slots:{default:!0}}),G(e,o)},$$slots:{default:!0}})}),G(e,i)},$$slots:{default:!0}})}O(i),G(e,i)},$$slots:{default:!0}})}A(),a()}var Loe=U(`<!> <!>`,1);function P9(e,t){k(t,!0);let n=()=>M(ND,`$hasMouse`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o=F(!1);var s=Loe(),c=R(s),l=e=>{{let t=P(()=>r()(`keyboard_shortcuts`));LP(e,{get label(){return V(t)},onclick:()=>{I(o,!0)}})}};q(c,e=>{n()&&e(l)}),N9(z(c,2),{onClose:()=>{t.menuButton?.focus()},get open(){return V(o)},set open(e){I(o,e,!0)}}),G(e,s),A(),a()}function F9(e,t){k(t,!0);let n=()=>M(ck,`$prefs`,r),[r,i]=N(),a=X(t,`defaultValue`,3,!0),o=F(!0);pr(()=>{I(o,!!(n()[t.key]??a()),!0)}),pr(()=>{n()[t.key]!==V(o)&&Ut(ck,H(n)[t.key]=V(o),H(n))}),NF(e,{get label(){return t.label},get checked(){return V(o)},set checked(e){I(o,e,!0)}}),A(),i()}var Roe=U(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section>`);function zoe(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N();X(t,`onChange`,3,void 0);var a=Roe(),o=L(a),s=L(o,!0);O(o);var c=z(o,2),l=L(c,!0);O(c);var u=z(c,2),d=L(u);{let e=P(()=>n()(`prefs.accessibility.underline_links.switch_label`));F9(d,{key:`underlineLinks`,get label(){return V(e)}})}O(u),O(a),B((e,t)=>{K(s,e),K(l,t)},[()=>n()(`prefs.accessibility.underline_links.title`),()=>n()(`prefs.accessibility.underline_links.description`)]),G(e,a),A(),i()}var Boe=U(`<section><h3> </h3> <p> </p> <div role="none"><!></div> <div role="none"><!></div></section>`),Voe=U(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section> <section><h3> </h3> <p> </p> <div role="none"><!></div></section> <!>`,1);function Hoe(e,t){k(t,!0);let n=()=>M(Z,`$_`,a),r=()=>M(M$,`$skipCIConfigured`,a),i=()=>M(ck,`$prefs`,a),[a,o]=N(),s=X(t,`onChange`,3,void 0);var c=Voe(),l=R(c),u=L(l),d=L(u,!0);O(u);var f=z(u,2),p=L(f,!0);O(f);var m=z(f,2),h=L(m);{let e=P(()=>n()(`prefs.advanced.beta.switch_label`));F9(h,{key:`beta`,get label(){return V(e)},defaultValue:!1})}O(m),O(l);var g=z(l,2),_=L(g),v=L(_,!0);O(_);var y=z(_,2),b=L(y,!0);O(y);var x=z(y,2),S=L(x);{let e=P(()=>n()(`prefs.advanced.developer_mode.switch_label`));F9(S,{key:`devModeEnabled`,get label(){return V(e)},defaultValue:!1})}O(x),O(g);var C=z(g,2),w=e=>{var t=Boe(),r=L(t),a=L(r,!0);O(r);var o=z(r,2),c=L(o,!0);O(o);var l=z(o,2),u=L(l);{let e=P(()=>n()(`prefs.advanced.deploy_hook.url.field_label`));tP(u,{flex:!0,get"aria-label"(){return V(e)},showInlineLabel:!0,onchange:()=>{s()?.({message:n()(i().deployHookURL?`prefs.advanced.deploy_hook.url.saved`:`prefs.advanced.deploy_hook.url.removed`)})},get value(){return i().deployHookURL},set value(e){Ut(ck,H(i).deployHookURL=e,H(i))}})}O(l);var d=z(l,2),f=L(d);{let e=P(()=>n()(`prefs.advanced.deploy_hook.auth.field_label`));tP(f,{flex:!0,get"aria-label"(){return V(e)},showInlineLabel:!0,onchange:()=>{s()?.({message:n()(i().deployHookAuthHeader?`prefs.advanced.deploy_hook.auth.saved`:`prefs.advanced.deploy_hook.auth.removed`)})},get value(){return i().deployHookAuthHeader},set value(e){Ut(ck,H(i).deployHookAuthHeader=e,H(i))}})}O(d),O(t),B((e,t)=>{K(a,e),K(c,t)},[()=>n()(`prefs.advanced.deploy_hook.title`),()=>n()(`prefs.advanced.deploy_hook.description`)]),G(e,t)};q(C,e=>{r()&&e(w)}),B((e,t,n,r)=>{K(d,e),K(p,t),K(v,n),K(b,r)},[()=>n()(`prefs.advanced.beta.title`),()=>n()(`prefs.advanced.beta.description`),()=>n()(`prefs.advanced.developer_mode.title`),()=>n()(`prefs.advanced.developer_mode.description`)]),G(e,c),A(),o()}var Uoe=U(`<section><h3> </h3> <div role="none"><!></div></section>`);function Woe(e,t){k(t,!0);let n=()=>M(Z,`$_`,i),r=()=>M(ck,`$prefs`,i),[i,a]=N();X(t,`onChange`,3,void 0);var o=Uoe(),s=L(o),c=L(s,!0);O(s);var l=z(s,2),u=L(l);{let e=P(()=>n()(`prefs.appearance.select_theme`));CN(u,{get"aria-label"(){return V(e)},onChange:e=>{Vt(ck,{...r(),theme:e.detail.value})},children:(e,t)=>{var i=W();na(R(i),16,()=>[`auto`,`dark`,`light`],e=>e,(e,t)=>{{let i=P(()=>n()(`prefs.theme.${t}`)),a=P(()=>!r().theme&&t===`auto`||r().theme===t);wN(e,{variant:`tertiary`,get label(){return V(i)},get value(){return t},get selected(){return V(a)}})}}),G(e,i)},$$slots:{default:!0}})}O(l),O(o),B(e=>K(c,e),[()=>n()(`prefs.appearance.theme`)]),G(e,o),A(),a()}var Goe=U(`<section><h3> </h3> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>`);function Koe(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N();X(t,`onChange`,3,void 0);var a=Goe(),o=L(a),s=L(o,!0);O(o);var c=z(o,2),l=L(c);{let e=P(()=>n()(`prefs.contents.editor.use_draft_backup.switch_label`));F9(l,{key:`useDraftBackup`,get label(){return V(e)}})}O(c);var u=z(c,2),d=L(u);{let e=P(()=>n()(`prefs.contents.editor.close_on_save.switch_label`));F9(d,{key:`closeOnSave`,get label(){return V(e)}})}O(u);var f=z(u,2),p=L(f);{let e=P(()=>n()(`prefs.contents.editor.close_with_escape.switch_label`));F9(p,{key:`closeWithEscape`,get label(){return V(e)}})}O(f),O(a),B(e=>K(s,e),[()=>n()(`prefs.contents.editor.title`)]),G(e,a),A(),i()}function I9(e,t){k(t,!0);let n=()=>M(ck,`$prefs`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o=X(t,`onChange`,3,void 0),s=P(()=>t.service.apiKeyPattern),c=F(``),l=()=>{let e=V(c).trim(),i=!!e&&!!V(s)&&!V(s).test(e);Ut(ck,H(n).apiKeys??={},H(n)),Ut(ck,H(n).apiKeys[t.serviceId]=i?``:e,H(n)),o()?.({message:i?r()(`prefs.changes.api_key_invalid`):e?r()(`prefs.changes.api_key_saved`):r()(`prefs.changes.api_key_removed`),status:i?`error`:`success`})};fo(()=>{I(c,n().apiKeys?.[t.serviceId]??``,!0)}),IX(e,{flex:!0,autocomplete:`off`,spellcheck:`false`,get"aria-label"(){return t.ariaLabel},onchange:l,get value(){return V(c)},set value(e){I(c,e,!0)}}),A(),a()}var qoe=U(`<section><h4> </h4> <div role="none"><!></div></section>`),Joe=U(`<section><h3> </h3> <div role="none"><!></div></section> <section><h3> </h3> <p></p> <!></section>`,1);function Yoe(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`onChange`,3,void 0);var o=Joe(),s=R(o),c=L(s),l=L(c,!0);O(c);var u=z(c,2);k9(L(u),{}),O(u),O(s);var d=z(s,2),f=L(d),p=L(f,!0);O(f);var m=z(f,2);ca(m,()=>FZ(n()(`prefs.i18n.translators.api_keys.description`),`https://sveltiacms.app/en/docs/integrations/translations`),!0),O(m),na(z(m,2),17,()=>Object.entries(F3),([e,t])=>e,(e,t)=>{var r=P(()=>ce(V(t),2));let i=()=>V(r)[0],o=()=>V(r)[1],s=P(()=>o().serviceLabel);var c=qoe(),l=L(c),u=L(l,!0);O(l);var d=z(l,2),f=L(d);{let e=P(()=>n()(`prefs.i18n.translators.field_label`,{values:{service:V(s)}}));I9(f,{get serviceId(){return i()},get service(){return o()},get ariaLabel(){return V(e)},get onChange(){return a()}})}O(d),O(c),B(()=>K(u,V(s))),G(e,c)}),O(d),B((e,t)=>{K(l,e),K(p,t)},[()=>n()(`prefs.i18n.translators.default.title`),()=>n()(`prefs.i18n.translators.api_keys.title`)]),G(e,o),A(),i()}var Xoe=U(`<section><h3> </h3> <div role="none"><!></div></section>`);function Zoe(e,t){k(t,!0);let n=()=>M(Z,`$_`,o),r=()=>M(Am,`$appLocale`,o),i=()=>M(ck,`$prefs`,o),a=()=>M(em,`$appLocales`,o),[o,s]=N();X(t,`onChange`,3,void 0);var c=Xoe(),l=L(c),u=L(l,!0);O(l);var d=z(l,2);Xi(L(d),r,e=>{{let t=P(()=>n()(`prefs.language.ui_language.select_language`)),o=P(()=>r()??void 0);xF(e,{get"aria-label"(){return V(t)},get value(){return V(o)},onChange:e=>{Vt(ck,{...i(),locale:e.detail.value})},children:(e,t)=>{var n=W();na(R(n),1,a,e=>e,(e,t)=>{{let n=P(()=>Zv(V(t),{displayLocale:V(t)})??V(t)),i=P(()=>V(t)===r());kP(e,{get label(){return V(n)},get value(){return V(t)},get selected(){return V(i)},dir:`auto`})}}),G(e,n)},$$slots:{default:!0}})}}),O(d),O(c),B(e=>K(u,e),[()=>n()(`prefs.language.ui_language.title`)]),G(e,c),A(),s()}var Qoe=U(`<section><h4> </h4> <div role="none"><!></div></section>`),$oe=U(`<section><h4> </h4> <div role="none"><!></div></section>`),ese=U(`<section><h3> </h3> <p></p> <!></section> <section><h3> </h3> <p></p> <!></section>`,1);function tse(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`onChange`,3,void 0),o=P(()=>{let{providers:e=[]}=j8();return Object.entries(A8).filter(([t,{authType:n}])=>e.includes(t)&&n!==`none`)}),s=P(()=>Object.entries(wS).filter(([,{isEnabled:e,authType:t}])=>(e?.()??!0)&&t!==`widget`));var c=ese(),l=R(c),u=L(l),d=L(u,!0);O(u);var f=z(u,2);ca(f,()=>FZ(V(s).length?n()(`prefs.media.cloud_storage.api_keys.description`):n()(`prefs.media.cloud_storage.no_services`),`https://sveltiacms.app/en/docs/media`),!0),O(f),na(z(f,2),17,()=>V(s),([e,t])=>e,(e,t)=>{var r=P(()=>ce(V(t),2));let i=()=>V(r)[0],o=()=>V(r)[1],s=P(()=>o().serviceLabel);var c=Qoe(),l=L(c),u=L(l,!0);O(l);var d=z(l,2),f=L(d);{let e=P(()=>n()(`prefs.media.cloud_storage.field_label`,{values:{service:V(s)}}));I9(f,{get serviceId(){return i()},get service(){return o()},get ariaLabel(){return V(e)},get onChange(){return a()}})}O(d),O(c),B(()=>K(u,V(s))),G(e,c)}),O(l);var p=z(l,2),m=L(p),h=L(m,!0);O(m);var g=z(m,2);ca(g,()=>FZ(V(o).length?n()(`prefs.media.stock_photos.api_keys.description`):n()(`prefs.media.stock_photos.no_services`),`https://sveltiacms.app/en/docs/integrations/stock-photos`),!0),O(g),na(z(g,2),17,()=>V(o),([e,t])=>e,(e,t)=>{var r=P(()=>ce(V(t),2));let i=()=>V(r)[0],o=()=>V(r)[1],s=P(()=>o().serviceLabel);var c=$oe(),l=L(c),u=L(l,!0);O(l);var d=z(l,2),f=L(d);{let e=P(()=>n()(`prefs.media.stock_photos.field_label`,{values:{service:V(s)}}));I9(f,{get serviceId(){return i()},get service(){return o()},get ariaLabel(){return V(e)},get onChange(){return a()}})}O(d),O(c),B(()=>K(u,V(s))),G(e,c)}),O(p),B((e,t)=>{K(d,e),K(h,t)},[()=>n()(`prefs.media.cloud_storage.api_keys.title`),()=>n()(`prefs.media.stock_photos.api_keys.title`)]),G(e,c),A(),i()}var L9=It([fj],([e])=>[{key:`appearance`,icon:`palette`,component:Woe},{key:`language`,icon:`language`,component:Zoe},{key:`contents`,icon:`library_books`,component:Koe},{key:`i18n`,icon:`translate`,component:Yoe,enabled:(e?.i18n?.locales?.length??0)>1},{key:`media`,icon:`photo_library`,component:tse},{key:`accessibility`,icon:`accessibility_new`,component:zoe},{key:`advanced`,icon:`build`,component:Hoe}]),nse=U(`<div class="container svelte-1attlke" role="none"><!></div> <!>`,1),rse={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 R9(e,t){J(e,rse);let n=F(``),r=F(`success`),i=F(!1);var a=nse(),o=R(a);ua(L(o),()=>t.Panel,(e,t)=>{t(e,{onChange:({message:e,status:t})=>{I(n,e,!0),I(r,t??`success`,!0),I(i,!0)}})}),O(o),QF(z(o,2),{get show(){return V(i)},set show(e){I(i,e,!0)},children:(e,t)=>{OM(e,{get status(){return V(r)},children:(e,t)=>{rt();var r=Li();B(()=>K(r,V(n))),G(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),G(e,a)}var ise=U(`<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>`),ase={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 ose(e,t){k(t,!0),J(e,ase);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`open`,15,!1),o=X(t,`onClose`,3,void 0),s=F(`appearance`);{let t=P(()=>n()(`settings`));YN(e,{get title(){return V(t)},size:`large`,showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{o()?.()},get open(){return a()},set open(e){a(e)},children:(e,t)=>{var r=ise(),i=L(r);{let e=P(()=>n()(`categories`));GF(i,{orientation:`vertical`,get"aria-label"(){return V(e)},children:(e,t)=>{var r=W();na(R(r),17,()=>j(L9),({key:e,icon:t,enabled:n=!0})=>e,(e,t)=>{let r=()=>V(t).key,i=()=>V(t).icon,a=wn(()=>D(V(t).enabled,!0));var o=W(),c=R(o),l=e=>{{let t=e=>{TM(e,{get name(){return i()}})},a=P(()=>n()(`prefs.${r()}.title`)),o=P(()=>r()===V(s));YF(e,{get label(){return V(a)},get selected(){return V(o)},get"aria-controls"(){return`prefs-tab-${r()??``}`},onSelect:()=>{I(s,r(),!0)},startIcon:t,$$slots:{startIcon:!0}})}};q(c,e=>{V(a)&&e(l)}),G(e,o)}),G(e,r)},$$slots:{default:!0}})}na(z(i,2),17,()=>j(L9),({key:e,component:t})=>e,(e,t)=>{let n=()=>V(t).key,r=()=>V(t).component;JF(e,{get id(){return`prefs-tab-${n()??``}`},children:(e,t)=>{R9(e,{get Panel(){return r()}})},$$slots:{default:!0}})}),O(r),G(e,r)},$$slots:{default:!0}})}A(),i()}var sse=U(`<!> <!>`,1),cse=U(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),lse=U(`<!> <!>`,1);function z9(e,t){k(t,!0);let n=()=>M(SA,`$backendName`,l),r=()=>M(Z,`$_`,l),i=()=>M(uO,`$user`,l),a=()=>M(ck,`$prefs`,l),o=()=>M(CA,`$backend`,l),s=()=>M(AD,`$isSmallScreen`,l),c=()=>M(A9,`$canShowMobileSignInDialog`,l),[l,u]=N(),d=F(!1),f=P(()=>n()===`local`),p=P(()=>n()===`test-repo`);var m=lse(),h=R(m);{let e=P(()=>r()(`account`));MP(h,{get"aria-label"(){return V(e)},children:(e,n)=>{var l=cse(),u=R(l);{let e=P(()=>V(f)?r()(`working_with_local_repo`):V(p)?r()(`working_with_test_repo`):r()(`signed_in_as_x`,{values:{name:i()?.login}})),t=P(()=>V(f)||V(p));LP(u,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{window.open(i()?.profileURL,`_blank`)}})}var m=z(u,2);MN(m,{});var h=z(m,2);{let e=P(()=>r()(`live_site`));LP(h,{get label(){return V(e)},onclick:()=>{xZ()}})}var g=z(h,2),_=e=>{var t=sse(),n=R(t);{let e=P(()=>r()(`git_repository`)),t=P(()=>!o()?.repository?.treeBaseURL);LP(n,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{window.open(o()?.repository?.treeBaseURL)}})}var i=z(n,2);{let e=P(()=>r()(`cms_config`));LP(i,{get label(){return V(e)},onclick:()=>{yZ(`/config`,{transitionType:`forwards`})}})}G(e,t)};q(g,e=>{a().devModeEnabled&&e(_)});var v=z(g,2);MN(v,{});var y=z(v,2);{let e=P(()=>r()(`settings`));LP(y,{get label(){return V(e)},onclick:()=>{s()?yZ(`/settings`,{transitionType:`forwards`}):I(d,!0)}})}var b=z(y,2),x=e=>{P9(e,{get menuButton(){return t.menuButton}})};q(b,e=>{a().devModeEnabled||e(x)});var S=z(b,2),C=e=>{{let t=P(()=>r()(`sign_in_with_mobile`));LP(e,{get label(){return V(t)},onclick:()=>{Vt(j9,!0)}})}};q(S,e=>{c()&&e(C)});var w=z(S,2);MN(w,{});var T=z(w,2);{let e=P(()=>r()(`sign_out`));LP(T,{get label(){return V(e)},onclick:async()=>{window.requestAnimationFrame(()=>{NZ()})}})}G(e,l)},$$slots:{default:!0}})}ose(z(h,2),{onClose:()=>{t.menuButton?.focus()},get open(){return V(d)},set open(e){I(d,e,!0)}}),G(e,m),A(),u()}var use=U(`<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>`),dse=U(`<div role="none" class="wrapper svelte-q0ng4j"><!></div>`),fse={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 pse(e,t){k(t,!0),J(e,fse);let n=()=>M(SA,`$backendName`,a),r=()=>M(uO,`$user`,a),i=()=>M(Z,`$_`,a),[a,o]=N(),s=F(void 0),c=P(()=>n()===`local`),l=P(()=>!!r()?.avatarURL);var u=dse(),d=L(u);{let e=e=>{var t=W(),n=R(t),i=e=>{TM(e,{name:`arrow_drop_down`,class:`small-arrow`})},a=e=>{var t=use();B(()=>Y(t,`src`,r()?.avatarURL)),G(e,t)},o=e=>{TM(e,{name:`account_circle`})};q(n,e=>{V(c)?e(i):V(l)?e(a,1):e(o,-1)}),G(e,t)},t=e=>{z9(e,{get menuButton(){return V(s)}})},n=P(()=>!V(c)),a=P(()=>V(c)?i()(`local_workflow.indicator`):void 0),o=P(()=>V(l)?`avatar`:``),u=P(()=>i()(`show_account_menu`));oo(EN(d,{variant:`ghost`,get iconic(){return V(n)},get label(){return V(a)},get class(){return V(o)},popupPosition:`bottom-right`,get"aria-label"(){return V(u)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>I(s,e,!0),()=>V(s))}O(u),G(e,u),A(),o()}var mse=U(`<!> <!>`,1),hse=U(`<!> <!>`,1);function gse(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=P(()=>yy({visible:!0,type:`entry`}));{let t=e=>{TM(e,{name:`add`})},r=e=>{{let t=P(()=>n()(`create_entry_or_assets`));MP(e,{get"aria-label"(){return V(t)},children:(e,t)=>{var r=hse(),i=R(r),o=e=>{var t=mse(),n=R(t);na(n,17,()=>V(a),e=>e.name,(e,t)=>{let n=P(()=>{let{name:e,label:n,label_singular:r,create:i=!0,limit:a=1/0}=V(t);return{name:e,label:n,labelSingular:r,create:i,limit:a}});{let t=P(()=>V(n).labelSingular||V(n).label||V(n).name),r=P(()=>!V(n).create||xC(V(n).name).length>=V(n).limit);LP(e,{get label(){return V(t)},get disabled(){return V(r)},onclick:()=>{yZ(`/collections/${V(n).name}/new`,{transitionType:`forwards`})}})}}),MN(z(n,2),{}),G(e,t)};q(i,e=>{V(a).length&&e(o)});var s=z(i,2);{let e=P(()=>n()(`assets`));LP(s,{get label(){return V(e)},onclick:async()=>{yZ(`/assets`,{transitionType:`forwards`}),await Wx(100),Vt(aZ,!0)}})}G(e,r)},$$slots:{default:!0}})}},i=P(()=>n()(`create_entry_or_assets`));EN(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return V(i)},endIcon:t,popup:r,$$slots:{endIcon:!0,popup:!0}})}A(),i()}var _se=U(`<span class="version svelte-wmw2gz"> </span>`),vse={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 yse(e,t){k(t,!0),J(e,vse);let n=()=>M(Z,`$_`,i),r=()=>M(ck,`$prefs`,i),[i,a]=N();{let t=e=>{var t=W(),i=R(t),a=e=>{var t=_se(),r=L(t);O(t),B(e=>{Y(t,`aria-label`,`(${e??``})`),K(r,`v0.151.0`)},[()=>n()(`version_x`,{values:{version:ES}})]),G(e,t)};q(i,e=>{r().devModeEnabled&&e(a)}),G(e,t)},i=P(()=>n()(`release_notes`));LP(e,{get label(){return V(i)},onclick:()=>{window.open(`https://github.com/sveltia/sveltia-cms/releases`,`_blank`)},endIcon:t,$$slots:{endIcon:!0}})}A(),a()}var bse=U(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),xse=U(`<!> <!>`,1);function B9(e,t){k(t,!0);let n=()=>M(Z,`$_`,i),r=()=>M(ck,`$prefs`,i),[i,a]=N(),o=(e,t=E,r=E)=>{{let i=P(()=>n()(t()));LP(e,{get label(){return V(i)},onclick:()=>{window.open(r(),`_blank`)}})}};{let i=P(()=>n()(`help`));MP(e,{get"aria-label"(){return V(i)},children:(e,n)=>{var i=xse(),a=R(i);P9(a,{get menuButton(){return t.menuButton}});var s=z(a,2),c=e=>{var t=bse(),n=R(t);o(n,()=>`documentation`,()=>`https://sveltiacms.app/en/docs`);var r=z(n,2);yse(r,{});var i=z(r,2);o(i,()=>`announcements`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/announcements`);var a=z(i,2);MN(a,{});var s=z(a,2);o(s,()=>`report_issue`,()=>`https://github.com/sveltia/sveltia-cms/issues`);var c=z(s,2);o(c,()=>`share_feedback`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/ideas`);var l=z(c,2);o(l,()=>`get_help`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/q-a`);var u=z(l,2);MN(u,{});var d=z(u,2);o(d,()=>`bluesky`,()=>`https://bsky.app/profile/sveltiacms.app`),o(z(d,2),()=>`join_discord`,()=>`https://discord.com/invite/5hwCGqup5b`),G(e,t)};q(s,e=>{r().devModeEnabled&&e(c)}),G(e,i)},$$slots:{default:!0}})}A(),a()}var Sse=U(`<div role="none" class="wrapper svelte-bzzge3"><!></div> <!>`,1),Cse={hash:`svelte-bzzge3`,code:`.wrapper.svelte-bzzge3 {display:contents;}`};function wse(e,t){k(t,!0),J(e,Cse);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=F(void 0),o=F(!1);var s=Sse(),c=R(s),l=L(c);{let e=e=>{TM(e,{name:`help`})},t=e=>{B9(e,{get menuButton(){return V(a)}})},r=P(()=>n()(`show_help_menu`));oo(EN(l,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return V(r)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>I(a,e,!0),()=>V(a))}O(c),N9(z(c,2),{onClose:()=>{V(a)?.focus()},get open(){return V(o)},set open(e){I(o,e,!0)}}),G(e,s),A(),i()}function Tse(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N();{let t=e=>{TM(e,{name:`notifications`})},r=P(()=>n()(`show_notifications`));tN(e,{variant:`ghost`,iconic:!0,hidden:!0,get"aria-label"(){return V(r)},onclick:()=>{},startIcon:t,$$slots:{startIcon:!0}})}A(),i()}var Ese=U(`<img alt="" class="logo svelte-15c9hhi"/>`),Dse={hash:`svelte-15c9hhi`,code:`img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}`};function Ose(e,t){k(t,!0),J(e,Dse);let n=()=>M(XZ,`$appLogoURL`,a),r=()=>M(fj,`$cmsConfig`,a),i=()=>M(Z,`$_`,a),[a,o]=N();var s=W(),c=R(s),l=e=>{{let t=P(()=>i()(`visit_live_site`));tN(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return V(t)},onclick:()=>{xZ()},children:(e,t)=>{var r=Ese();B(()=>Y(r,`src`,n())),G(e,r)},$$slots:{default:!0}})}};q(c,e=>{n()!==JZ&&(r()?.logo?.show_in_header??!0)&&e(l)}),G(e,s),A(),o()}var kse=U(`<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>`,1),Ase=U(`<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>`),jse={hash:`svelte-1kz79fh`,code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;}.toolbar-wrapper[inert].svelte-1kz79fh .sui.search-bar {display:none !important;}
|
|
930
|
+
}.wrapper.svelte-t2r4ty .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}`};function M9(e,t){k(t,!0),J(e,joe);let n=()=>M(Z,`$_`,u),r=()=>M(Rd,`$allAssetFolders`,u),i=()=>M(AD,`$isSmallScreen`,u),a=()=>M(Bd,`$selectedAssetFolder`,u),o=()=>M(fj,`$cmsConfig`,u),s=()=>M(SA,`$backendName`,u),c=()=>M(pZ,`$selectedPageName`,u),l=()=>M(s0,`$searchMode`,u),[u,d]=N(),f=P(()=>{let e=[{key:`collections`,label:n()(`contents`),icon:`article`,link:`/collections`,searchMode:`contents`}];return r().length&&e.push({key:`assets`,label:n()(`assets`),icon:`photo`,link:i()?`/assets`:`/assets/${a()?.internalPath??`-/all`}`,searchMode:`assets`}),o()?.publish_mode,s(),i()&&e.push({key:`menu`,label:n()(`menu`),icon:`menu`,link:`/menu`,searchMode:void 0}),e});var p=Aoe(),m=L(p);{let e=P(()=>n()(`switch_page`));CN(m,{get"aria-label"(){return V(e)},"aria-controls":`page-container`,children:(e,t)=>{var n=W();na(R(n),19,()=>V(f),({key:e,label:t,icon:n,link:r,searchMode:i})=>e,(e,t,n)=>{let r=()=>V(t).key,i=()=>V(t).label,a=()=>V(t).icon,o=()=>V(t).link,s=()=>V(t).searchMode;{let t=e=>{TM(e,{get name(){return a()}})},u=P(()=>c()===r()||l()===s()),d=P(()=>V(n)+1);wN(e,{variant:`ghost`,iconic:!0,get selected(){return V(u)},get"aria-label"(){return i()},get keyShortcuts(){return`Alt+${V(d)??``}`},onclick:()=>{yZ(o())},startIcon:t,$$slots:{startIcon:!0}})}}),G(e,n)},$$slots:{default:!0}})}O(p),G(e,p),A(),d()}var Moe=U(`<div role="none" class="buttons"><!></div>`);function Noe(e,t){k(t,!0);let n=()=>M(fZ,`$hasOverlay`,i),r=()=>M(Z,`$_`,i),[i,a]=N();cN(e,{get inert(){return n()},children:(e,t)=>{{let t=P(()=>r()(`global`));nX(e,{variant:`primary`,get"aria-label"(){return V(t)},children:(e,t)=>{var n=Moe();M9(L(n),{}),O(n),G(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}}),A(),a()}var Poe=U(`<kbd class="svelte-13q15u"> </kbd>`),Foe=U(`<!> <!>`,1),Ioe=U(`<div role="none" class="wrapper svelte-13q15u"><!></div>`),Loe={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 N9(e,t){k(t,!0),J(e,Loe);let n=()=>M(Z,`$_`,i),r=()=>M(kD,`$isMacOS`,i),[i,a]=N(),o=X(t,`open`,15,!1),s=X(t,`onClose`,3,void 0),c=[{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=P(()=>n()(`keyboard_shortcuts`));YN(e,{get title(){return V(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,onClose:()=>{s()?.()},get open(){return o()},set open(e){o(e)},children:(e,t)=>{var i=Ioe(),a=L(i);{let e=P(()=>n()(`keyboard_shortcuts`));HF(a,{get"aria-label"(){return V(e)},children:(e,t)=>{var i=W();na(R(i),17,()=>c,({feature:e,keys:t})=>t,(e,t)=>{let i=()=>V(t).feature,a=()=>V(t).keys;zF(e,{children:(e,t)=>{var o=Foe(),s=R(o);IF(s,{class:`feature`,children:(e,t)=>{rt();var r=Li();B(e=>K(r,e),[()=>n()(`keyboard_shortcuts_.${i()}`)]),G(e,r)},$$slots:{default:!0}}),IF(z(s,2),{class:`keys`,children:(e,t)=>{var n=W();na(R(n),16,()=>a().split(`+`),e=>e,(e,t)=>{var n=Poe(),i=L(n,!0);O(n),B(e=>K(i,e),[()=>t.replace(`Accel`,r()?`â`:`Ctrl`)]),G(e,n)}),G(e,n)},$$slots:{default:!0}}),G(e,o)},$$slots:{default:!0}})}),G(e,i)},$$slots:{default:!0}})}O(i),G(e,i)},$$slots:{default:!0}})}A(),a()}var Roe=U(`<!> <!>`,1);function P9(e,t){k(t,!0);let n=()=>M(ND,`$hasMouse`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o=F(!1);var s=Roe(),c=R(s),l=e=>{{let t=P(()=>r()(`keyboard_shortcuts`));LP(e,{get label(){return V(t)},onclick:()=>{I(o,!0)}})}};q(c,e=>{n()&&e(l)}),N9(z(c,2),{onClose:()=>{t.menuButton?.focus()},get open(){return V(o)},set open(e){I(o,e,!0)}}),G(e,s),A(),a()}function F9(e,t){k(t,!0);let n=()=>M(ck,`$prefs`,r),[r,i]=N(),a=X(t,`defaultValue`,3,!0),o=F(!0);pr(()=>{I(o,!!(n()[t.key]??a()),!0)}),pr(()=>{n()[t.key]!==V(o)&&Ut(ck,H(n)[t.key]=V(o),H(n))}),NF(e,{get label(){return t.label},get checked(){return V(o)},set checked(e){I(o,e,!0)}}),A(),i()}var zoe=U(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section>`);function Boe(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N();X(t,`onChange`,3,void 0);var a=zoe(),o=L(a),s=L(o,!0);O(o);var c=z(o,2),l=L(c,!0);O(c);var u=z(c,2),d=L(u);{let e=P(()=>n()(`prefs.accessibility.underline_links.switch_label`));F9(d,{key:`underlineLinks`,get label(){return V(e)}})}O(u),O(a),B((e,t)=>{K(s,e),K(l,t)},[()=>n()(`prefs.accessibility.underline_links.title`),()=>n()(`prefs.accessibility.underline_links.description`)]),G(e,a),A(),i()}var Voe=U(`<section><h3> </h3> <p> </p> <div role="none"><!></div> <div role="none"><!></div></section>`),Hoe=U(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section> <section><h3> </h3> <p> </p> <div role="none"><!></div></section> <!>`,1);function Uoe(e,t){k(t,!0);let n=()=>M(Z,`$_`,a),r=()=>M(M$,`$skipCIConfigured`,a),i=()=>M(ck,`$prefs`,a),[a,o]=N(),s=X(t,`onChange`,3,void 0);var c=Hoe(),l=R(c),u=L(l),d=L(u,!0);O(u);var f=z(u,2),p=L(f,!0);O(f);var m=z(f,2),h=L(m);{let e=P(()=>n()(`prefs.advanced.beta.switch_label`));F9(h,{key:`beta`,get label(){return V(e)},defaultValue:!1})}O(m),O(l);var g=z(l,2),_=L(g),v=L(_,!0);O(_);var y=z(_,2),b=L(y,!0);O(y);var x=z(y,2),S=L(x);{let e=P(()=>n()(`prefs.advanced.developer_mode.switch_label`));F9(S,{key:`devModeEnabled`,get label(){return V(e)},defaultValue:!1})}O(x),O(g);var C=z(g,2),w=e=>{var t=Voe(),r=L(t),a=L(r,!0);O(r);var o=z(r,2),c=L(o,!0);O(o);var l=z(o,2),u=L(l);{let e=P(()=>n()(`prefs.advanced.deploy_hook.url.field_label`));tP(u,{flex:!0,get"aria-label"(){return V(e)},showInlineLabel:!0,onchange:()=>{s()?.({message:n()(i().deployHookURL?`prefs.advanced.deploy_hook.url.saved`:`prefs.advanced.deploy_hook.url.removed`)})},get value(){return i().deployHookURL},set value(e){Ut(ck,H(i).deployHookURL=e,H(i))}})}O(l);var d=z(l,2),f=L(d);{let e=P(()=>n()(`prefs.advanced.deploy_hook.auth.field_label`));tP(f,{flex:!0,get"aria-label"(){return V(e)},showInlineLabel:!0,onchange:()=>{s()?.({message:n()(i().deployHookAuthHeader?`prefs.advanced.deploy_hook.auth.saved`:`prefs.advanced.deploy_hook.auth.removed`)})},get value(){return i().deployHookAuthHeader},set value(e){Ut(ck,H(i).deployHookAuthHeader=e,H(i))}})}O(d),O(t),B((e,t)=>{K(a,e),K(c,t)},[()=>n()(`prefs.advanced.deploy_hook.title`),()=>n()(`prefs.advanced.deploy_hook.description`)]),G(e,t)};q(C,e=>{r()&&e(w)}),B((e,t,n,r)=>{K(d,e),K(p,t),K(v,n),K(b,r)},[()=>n()(`prefs.advanced.beta.title`),()=>n()(`prefs.advanced.beta.description`),()=>n()(`prefs.advanced.developer_mode.title`),()=>n()(`prefs.advanced.developer_mode.description`)]),G(e,c),A(),o()}var Woe=U(`<section><h3> </h3> <div role="none"><!></div></section>`);function Goe(e,t){k(t,!0);let n=()=>M(Z,`$_`,i),r=()=>M(ck,`$prefs`,i),[i,a]=N();X(t,`onChange`,3,void 0);var o=Woe(),s=L(o),c=L(s,!0);O(s);var l=z(s,2),u=L(l);{let e=P(()=>n()(`prefs.appearance.select_theme`));CN(u,{get"aria-label"(){return V(e)},onChange:e=>{Vt(ck,{...r(),theme:e.detail.value})},children:(e,t)=>{var i=W();na(R(i),16,()=>[`auto`,`dark`,`light`],e=>e,(e,t)=>{{let i=P(()=>n()(`prefs.theme.${t}`)),a=P(()=>!r().theme&&t===`auto`||r().theme===t);wN(e,{variant:`tertiary`,get label(){return V(i)},get value(){return t},get selected(){return V(a)}})}}),G(e,i)},$$slots:{default:!0}})}O(l),O(o),B(e=>K(c,e),[()=>n()(`prefs.appearance.theme`)]),G(e,o),A(),a()}var Koe=U(`<section><h3> </h3> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>`);function qoe(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N();X(t,`onChange`,3,void 0);var a=Koe(),o=L(a),s=L(o,!0);O(o);var c=z(o,2),l=L(c);{let e=P(()=>n()(`prefs.contents.editor.use_draft_backup.switch_label`));F9(l,{key:`useDraftBackup`,get label(){return V(e)}})}O(c);var u=z(c,2),d=L(u);{let e=P(()=>n()(`prefs.contents.editor.close_on_save.switch_label`));F9(d,{key:`closeOnSave`,get label(){return V(e)}})}O(u);var f=z(u,2),p=L(f);{let e=P(()=>n()(`prefs.contents.editor.close_with_escape.switch_label`));F9(p,{key:`closeWithEscape`,get label(){return V(e)}})}O(f),O(a),B(e=>K(s,e),[()=>n()(`prefs.contents.editor.title`)]),G(e,a),A(),i()}function I9(e,t){k(t,!0);let n=()=>M(ck,`$prefs`,i),r=()=>M(Z,`$_`,i),[i,a]=N(),o=X(t,`onChange`,3,void 0),s=P(()=>t.service.apiKeyPattern),c=F(``),l=()=>{let e=V(c).trim(),i=!!e&&!!V(s)&&!V(s).test(e);Ut(ck,H(n).apiKeys??={},H(n)),Ut(ck,H(n).apiKeys[t.serviceId]=i?``:e,H(n)),o()?.({message:i?r()(`prefs.changes.api_key_invalid`):e?r()(`prefs.changes.api_key_saved`):r()(`prefs.changes.api_key_removed`),status:i?`error`:`success`})};fo(()=>{I(c,n().apiKeys?.[t.serviceId]??``,!0)}),IX(e,{flex:!0,autocomplete:`off`,spellcheck:`false`,get"aria-label"(){return t.ariaLabel},onchange:l,get value(){return V(c)},set value(e){I(c,e,!0)}}),A(),a()}var Joe=U(`<section><h4> </h4> <div role="none"><!></div></section>`),Yoe=U(`<section><h3> </h3> <div role="none"><!></div></section> <section><h3> </h3> <p></p> <!></section>`,1);function Xoe(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`onChange`,3,void 0);var o=Yoe(),s=R(o),c=L(s),l=L(c,!0);O(c);var u=z(c,2);k9(L(u),{}),O(u),O(s);var d=z(s,2),f=L(d),p=L(f,!0);O(f);var m=z(f,2);ca(m,()=>FZ(n()(`prefs.i18n.translators.api_keys.description`),`https://sveltiacms.app/en/docs/integrations/translations`),!0),O(m),na(z(m,2),17,()=>Object.entries(F3),([e,t])=>e,(e,t)=>{var r=P(()=>ce(V(t),2));let i=()=>V(r)[0],o=()=>V(r)[1],s=P(()=>o().serviceLabel);var c=Joe(),l=L(c),u=L(l,!0);O(l);var d=z(l,2),f=L(d);{let e=P(()=>n()(`prefs.i18n.translators.field_label`,{values:{service:V(s)}}));I9(f,{get serviceId(){return i()},get service(){return o()},get ariaLabel(){return V(e)},get onChange(){return a()}})}O(d),O(c),B(()=>K(u,V(s))),G(e,c)}),O(d),B((e,t)=>{K(l,e),K(p,t)},[()=>n()(`prefs.i18n.translators.default.title`),()=>n()(`prefs.i18n.translators.api_keys.title`)]),G(e,o),A(),i()}var Zoe=U(`<section><h3> </h3> <div role="none"><!></div></section>`);function Qoe(e,t){k(t,!0);let n=()=>M(Z,`$_`,o),r=()=>M(Am,`$appLocale`,o),i=()=>M(ck,`$prefs`,o),a=()=>M(em,`$appLocales`,o),[o,s]=N();X(t,`onChange`,3,void 0);var c=Zoe(),l=L(c),u=L(l,!0);O(l);var d=z(l,2);Xi(L(d),r,e=>{{let t=P(()=>n()(`prefs.language.ui_language.select_language`)),o=P(()=>r()??void 0);xF(e,{get"aria-label"(){return V(t)},get value(){return V(o)},onChange:e=>{Vt(ck,{...i(),locale:e.detail.value})},children:(e,t)=>{var n=W();na(R(n),1,a,e=>e,(e,t)=>{{let n=P(()=>Zv(V(t),{displayLocale:V(t)})??V(t)),i=P(()=>V(t)===r());kP(e,{get label(){return V(n)},get value(){return V(t)},get selected(){return V(i)},dir:`auto`})}}),G(e,n)},$$slots:{default:!0}})}}),O(d),O(c),B(e=>K(u,e),[()=>n()(`prefs.language.ui_language.title`)]),G(e,c),A(),s()}var $oe=U(`<section><h4> </h4> <div role="none"><!></div></section>`),ese=U(`<section><h4> </h4> <div role="none"><!></div></section>`),tse=U(`<section><h3> </h3> <p></p> <!></section> <section><h3> </h3> <p></p> <!></section>`,1);function nse(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`onChange`,3,void 0),o=P(()=>{let{providers:e=[]}=j8();return Object.entries(A8).filter(([t,{authType:n}])=>e.includes(t)&&n!==`none`)}),s=P(()=>Object.entries(wS).filter(([,{isEnabled:e,authType:t}])=>(e?.()??!0)&&t!==`widget`));var c=tse(),l=R(c),u=L(l),d=L(u,!0);O(u);var f=z(u,2);ca(f,()=>FZ(V(s).length?n()(`prefs.media.cloud_storage.api_keys.description`):n()(`prefs.media.cloud_storage.no_services`),`https://sveltiacms.app/en/docs/media`),!0),O(f),na(z(f,2),17,()=>V(s),([e,t])=>e,(e,t)=>{var r=P(()=>ce(V(t),2));let i=()=>V(r)[0],o=()=>V(r)[1],s=P(()=>o().serviceLabel);var c=$oe(),l=L(c),u=L(l,!0);O(l);var d=z(l,2),f=L(d);{let e=P(()=>n()(`prefs.media.cloud_storage.field_label`,{values:{service:V(s)}}));I9(f,{get serviceId(){return i()},get service(){return o()},get ariaLabel(){return V(e)},get onChange(){return a()}})}O(d),O(c),B(()=>K(u,V(s))),G(e,c)}),O(l);var p=z(l,2),m=L(p),h=L(m,!0);O(m);var g=z(m,2);ca(g,()=>FZ(V(o).length?n()(`prefs.media.stock_photos.api_keys.description`):n()(`prefs.media.stock_photos.no_services`),`https://sveltiacms.app/en/docs/integrations/stock-photos`),!0),O(g),na(z(g,2),17,()=>V(o),([e,t])=>e,(e,t)=>{var r=P(()=>ce(V(t),2));let i=()=>V(r)[0],o=()=>V(r)[1],s=P(()=>o().serviceLabel);var c=ese(),l=L(c),u=L(l,!0);O(l);var d=z(l,2),f=L(d);{let e=P(()=>n()(`prefs.media.stock_photos.field_label`,{values:{service:V(s)}}));I9(f,{get serviceId(){return i()},get service(){return o()},get ariaLabel(){return V(e)},get onChange(){return a()}})}O(d),O(c),B(()=>K(u,V(s))),G(e,c)}),O(p),B((e,t)=>{K(d,e),K(h,t)},[()=>n()(`prefs.media.cloud_storage.api_keys.title`),()=>n()(`prefs.media.stock_photos.api_keys.title`)]),G(e,c),A(),i()}var L9=It([fj],([e])=>[{key:`appearance`,icon:`palette`,component:Goe},{key:`language`,icon:`language`,component:Qoe},{key:`contents`,icon:`library_books`,component:qoe},{key:`i18n`,icon:`translate`,component:Xoe,enabled:(e?.i18n?.locales?.length??0)>1},{key:`media`,icon:`photo_library`,component:nse},{key:`accessibility`,icon:`accessibility_new`,component:Boe},{key:`advanced`,icon:`build`,component:Uoe}]),rse=U(`<div class="container svelte-1attlke" role="none"><!></div> <!>`,1),ise={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 R9(e,t){J(e,ise);let n=F(``),r=F(`success`),i=F(!1);var a=rse(),o=R(a);ua(L(o),()=>t.Panel,(e,t)=>{t(e,{onChange:({message:e,status:t})=>{I(n,e,!0),I(r,t??`success`,!0),I(i,!0)}})}),O(o),QF(z(o,2),{get show(){return V(i)},set show(e){I(i,e,!0)},children:(e,t)=>{OM(e,{get status(){return V(r)},children:(e,t)=>{rt();var r=Li();B(()=>K(r,V(n))),G(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),G(e,a)}var ase=U(`<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>`),ose={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 sse(e,t){k(t,!0),J(e,ose);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=X(t,`open`,15,!1),o=X(t,`onClose`,3,void 0),s=F(`appearance`);{let t=P(()=>n()(`settings`));YN(e,{get title(){return V(t)},size:`large`,showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{o()?.()},get open(){return a()},set open(e){a(e)},children:(e,t)=>{var r=ase(),i=L(r);{let e=P(()=>n()(`categories`));GF(i,{orientation:`vertical`,get"aria-label"(){return V(e)},children:(e,t)=>{var r=W();na(R(r),17,()=>j(L9),({key:e,icon:t,enabled:n=!0})=>e,(e,t)=>{let r=()=>V(t).key,i=()=>V(t).icon,a=wn(()=>D(V(t).enabled,!0));var o=W(),c=R(o),l=e=>{{let t=e=>{TM(e,{get name(){return i()}})},a=P(()=>n()(`prefs.${r()}.title`)),o=P(()=>r()===V(s));YF(e,{get label(){return V(a)},get selected(){return V(o)},get"aria-controls"(){return`prefs-tab-${r()??``}`},onSelect:()=>{I(s,r(),!0)},startIcon:t,$$slots:{startIcon:!0}})}};q(c,e=>{V(a)&&e(l)}),G(e,o)}),G(e,r)},$$slots:{default:!0}})}na(z(i,2),17,()=>j(L9),({key:e,component:t})=>e,(e,t)=>{let n=()=>V(t).key,r=()=>V(t).component;JF(e,{get id(){return`prefs-tab-${n()??``}`},children:(e,t)=>{R9(e,{get Panel(){return r()}})},$$slots:{default:!0}})}),O(r),G(e,r)},$$slots:{default:!0}})}A(),i()}var cse=U(`<!> <!>`,1),lse=U(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),use=U(`<!> <!>`,1);function z9(e,t){k(t,!0);let n=()=>M(SA,`$backendName`,l),r=()=>M(Z,`$_`,l),i=()=>M(uO,`$user`,l),a=()=>M(ck,`$prefs`,l),o=()=>M(CA,`$backend`,l),s=()=>M(AD,`$isSmallScreen`,l),c=()=>M(A9,`$canShowMobileSignInDialog`,l),[l,u]=N(),d=F(!1),f=P(()=>n()===`local`),p=P(()=>n()===`test-repo`);var m=use(),h=R(m);{let e=P(()=>r()(`account`));MP(h,{get"aria-label"(){return V(e)},children:(e,n)=>{var l=lse(),u=R(l);{let e=P(()=>V(f)?r()(`working_with_local_repo`):V(p)?r()(`working_with_test_repo`):r()(`signed_in_as_x`,{values:{name:i()?.login}})),t=P(()=>V(f)||V(p));LP(u,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{window.open(i()?.profileURL,`_blank`)}})}var m=z(u,2);MN(m,{});var h=z(m,2);{let e=P(()=>r()(`live_site`));LP(h,{get label(){return V(e)},onclick:()=>{xZ()}})}var g=z(h,2),_=e=>{var t=cse(),n=R(t);{let e=P(()=>r()(`git_repository`)),t=P(()=>!o()?.repository?.treeBaseURL);LP(n,{get label(){return V(e)},get disabled(){return V(t)},onclick:()=>{window.open(o()?.repository?.treeBaseURL)}})}var i=z(n,2);{let e=P(()=>r()(`cms_config`));LP(i,{get label(){return V(e)},onclick:()=>{yZ(`/config`,{transitionType:`forwards`})}})}G(e,t)};q(g,e=>{a().devModeEnabled&&e(_)});var v=z(g,2);MN(v,{});var y=z(v,2);{let e=P(()=>r()(`settings`));LP(y,{get label(){return V(e)},onclick:()=>{s()?yZ(`/settings`,{transitionType:`forwards`}):I(d,!0)}})}var b=z(y,2),x=e=>{P9(e,{get menuButton(){return t.menuButton}})};q(b,e=>{a().devModeEnabled||e(x)});var S=z(b,2),C=e=>{{let t=P(()=>r()(`sign_in_with_mobile`));LP(e,{get label(){return V(t)},onclick:()=>{Vt(j9,!0)}})}};q(S,e=>{c()&&e(C)});var w=z(S,2);MN(w,{});var T=z(w,2);{let e=P(()=>r()(`sign_out`));LP(T,{get label(){return V(e)},onclick:async()=>{window.requestAnimationFrame(()=>{NZ()})}})}G(e,l)},$$slots:{default:!0}})}sse(z(h,2),{onClose:()=>{t.menuButton?.focus()},get open(){return V(d)},set open(e){I(d,e,!0)}}),G(e,m),A(),u()}var dse=U(`<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>`),fse=U(`<div role="none" class="wrapper svelte-q0ng4j"><!></div>`),pse={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 mse(e,t){k(t,!0),J(e,pse);let n=()=>M(SA,`$backendName`,a),r=()=>M(uO,`$user`,a),i=()=>M(Z,`$_`,a),[a,o]=N(),s=F(void 0),c=P(()=>n()===`local`),l=P(()=>!!r()?.avatarURL);var u=fse(),d=L(u);{let e=e=>{var t=W(),n=R(t),i=e=>{TM(e,{name:`arrow_drop_down`,class:`small-arrow`})},a=e=>{var t=dse();B(()=>Y(t,`src`,r()?.avatarURL)),G(e,t)},o=e=>{TM(e,{name:`account_circle`})};q(n,e=>{V(c)?e(i):V(l)?e(a,1):e(o,-1)}),G(e,t)},t=e=>{z9(e,{get menuButton(){return V(s)}})},n=P(()=>!V(c)),a=P(()=>V(c)?i()(`local_workflow.indicator`):void 0),o=P(()=>V(l)?`avatar`:``),u=P(()=>i()(`show_account_menu`));oo(EN(d,{variant:`ghost`,get iconic(){return V(n)},get label(){return V(a)},get class(){return V(o)},popupPosition:`bottom-right`,get"aria-label"(){return V(u)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>I(s,e,!0),()=>V(s))}O(u),G(e,u),A(),o()}var hse=U(`<!> <!>`,1),gse=U(`<!> <!>`,1);function _se(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=P(()=>yy({visible:!0,type:`entry`}));{let t=e=>{TM(e,{name:`add`})},r=e=>{{let t=P(()=>n()(`create_entry_or_assets`));MP(e,{get"aria-label"(){return V(t)},children:(e,t)=>{var r=gse(),i=R(r),o=e=>{var t=hse(),n=R(t);na(n,17,()=>V(a),e=>e.name,(e,t)=>{let n=P(()=>{let{name:e,label:n,label_singular:r,create:i=!0,limit:a=1/0}=V(t);return{name:e,label:n,labelSingular:r,create:i,limit:a}});{let t=P(()=>V(n).labelSingular||V(n).label||V(n).name),r=P(()=>!V(n).create||xC(V(n).name).length>=V(n).limit);LP(e,{get label(){return V(t)},get disabled(){return V(r)},onclick:()=>{yZ(`/collections/${V(n).name}/new`,{transitionType:`forwards`})}})}}),MN(z(n,2),{}),G(e,t)};q(i,e=>{V(a).length&&e(o)});var s=z(i,2);{let e=P(()=>n()(`assets`));LP(s,{get label(){return V(e)},onclick:async()=>{yZ(`/assets`,{transitionType:`forwards`}),await Wx(100),Vt(aZ,!0)}})}G(e,r)},$$slots:{default:!0}})}},i=P(()=>n()(`create_entry_or_assets`));EN(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return V(i)},endIcon:t,popup:r,$$slots:{endIcon:!0,popup:!0}})}A(),i()}var vse=U(`<span class="version svelte-wmw2gz"> </span>`),yse={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 bse(e,t){k(t,!0),J(e,yse);let n=()=>M(Z,`$_`,i),r=()=>M(ck,`$prefs`,i),[i,a]=N();{let t=e=>{var t=W(),i=R(t),a=e=>{var t=vse(),r=L(t);O(t),B(e=>{Y(t,`aria-label`,`(${e??``})`),K(r,`v0.151.2`)},[()=>n()(`version_x`,{values:{version:ES}})]),G(e,t)};q(i,e=>{r().devModeEnabled&&e(a)}),G(e,t)},i=P(()=>n()(`release_notes`));LP(e,{get label(){return V(i)},onclick:()=>{window.open(`https://github.com/sveltia/sveltia-cms/releases`,`_blank`)},endIcon:t,$$slots:{endIcon:!0}})}A(),a()}var xse=U(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),Sse=U(`<!> <!>`,1);function B9(e,t){k(t,!0);let n=()=>M(Z,`$_`,i),r=()=>M(ck,`$prefs`,i),[i,a]=N(),o=(e,t=E,r=E)=>{{let i=P(()=>n()(t()));LP(e,{get label(){return V(i)},onclick:()=>{window.open(r(),`_blank`)}})}};{let i=P(()=>n()(`help`));MP(e,{get"aria-label"(){return V(i)},children:(e,n)=>{var i=Sse(),a=R(i);P9(a,{get menuButton(){return t.menuButton}});var s=z(a,2),c=e=>{var t=xse(),n=R(t);o(n,()=>`documentation`,()=>`https://sveltiacms.app/en/docs`);var r=z(n,2);bse(r,{});var i=z(r,2);o(i,()=>`announcements`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/announcements`);var a=z(i,2);MN(a,{});var s=z(a,2);o(s,()=>`report_issue`,()=>`https://github.com/sveltia/sveltia-cms/issues`);var c=z(s,2);o(c,()=>`share_feedback`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/ideas`);var l=z(c,2);o(l,()=>`get_help`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/q-a`);var u=z(l,2);MN(u,{});var d=z(u,2);o(d,()=>`bluesky`,()=>`https://bsky.app/profile/sveltiacms.app`),o(z(d,2),()=>`join_discord`,()=>`https://discord.com/invite/5hwCGqup5b`),G(e,t)};q(s,e=>{r().devModeEnabled&&e(c)}),G(e,i)},$$slots:{default:!0}})}A(),a()}var Cse=U(`<div role="none" class="wrapper svelte-bzzge3"><!></div> <!>`,1),wse={hash:`svelte-bzzge3`,code:`.wrapper.svelte-bzzge3 {display:contents;}`};function Tse(e,t){k(t,!0),J(e,wse);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=F(void 0),o=F(!1);var s=Cse(),c=R(s),l=L(c);{let e=e=>{TM(e,{name:`help`})},t=e=>{B9(e,{get menuButton(){return V(a)}})},r=P(()=>n()(`show_help_menu`));oo(EN(l,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return V(r)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>I(a,e,!0),()=>V(a))}O(c),N9(z(c,2),{onClose:()=>{V(a)?.focus()},get open(){return V(o)},set open(e){I(o,e,!0)}}),G(e,s),A(),i()}function Ese(e,t){k(t,!0);let n=()=>M(Z,`$_`,r),[r,i]=N();{let t=e=>{TM(e,{name:`notifications`})},r=P(()=>n()(`show_notifications`));tN(e,{variant:`ghost`,iconic:!0,hidden:!0,get"aria-label"(){return V(r)},onclick:()=>{},startIcon:t,$$slots:{startIcon:!0}})}A(),i()}var Dse=U(`<img alt="" class="logo svelte-15c9hhi"/>`),Ose={hash:`svelte-15c9hhi`,code:`img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}`};function kse(e,t){k(t,!0),J(e,Ose);let n=()=>M(XZ,`$appLogoURL`,a),r=()=>M(fj,`$cmsConfig`,a),i=()=>M(Z,`$_`,a),[a,o]=N();var s=W(),c=R(s),l=e=>{{let t=P(()=>i()(`visit_live_site`));tN(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return V(t)},onclick:()=>{xZ()},children:(e,t)=>{var r=Dse();B(()=>Y(r,`src`,n())),G(e,r)},$$slots:{default:!0}})}};q(c,e=>{n()!==JZ&&(r()?.logo?.show_in_header??!0)&&e(l)}),G(e,s),A(),o()}var Ase=U(`<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>`,1),jse=U(`<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>`),Mse={hash:`svelte-1kz79fh`,code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;}.toolbar-wrapper[inert].svelte-1kz79fh .sui.search-bar {display:none !important;}
|
|
931
931
|
@media (width < 768px) {.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar {padding:0 4px;}
|
|
932
932
|
}.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%;}
|
|
933
933
|
@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;}
|
|
934
|
-
}`};function
|
|
935
|
-
]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^`+t+`$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),K9=o((e=>{var t=W9(),n=G9();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),
|
|
936
|
-
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i}))
|
|
937
|
-
Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),
|
|
934
|
+
}`};function Nse(e,t){k(t,!0),J(e,Mse);let n=()=>M(fZ,`$hasOverlay`,a),r=()=>M(Z,`$_`,a),i=()=>M(ck,`$prefs`,a),[a,o]=N();var s=jse(),c=L(s);{let e=P(()=>r()(`global`));nX(c,{variant:`primary`,get"aria-label"(){return V(e)},children:(e,t)=>{var n=Ase(),r=R(n),a=L(r);kse(a,{}),M9(z(a,2),{}),O(r);var o=z(r,2);f0(o,{});var s=z(o,2),c=L(s);D9(c,{});var l=z(c,2);_se(l,{});var u=z(l,2);Ese(u,{});var d=z(u,2),f=e=>{Tse(e,{})};q(d,e=>{i().devModeEnabled&&e(f)}),mse(z(d,2),{}),O(s),G(e,n)},$$slots:{default:!0}})}O(s),B(()=>s.inert=n()),G(e,s),A(),o()}var Pse=U(`<h2 role="none"> </h2> <!>`,1),Fse=U(`<section><h3 class="svelte-16cq5v7"> </h3> <!></section>`),Ise=U(`<div role="none" class="wrapper svelte-16cq5v7"><section><h3 class="svelte-16cq5v7"> </h3> <!></section> <!></div>`),Lse={hash:`svelte-16cq5v7`,code:`.wrapper.svelte-16cq5v7 {overflow-y:auto;height:100%;--sui-menu-border-width: 0;--sui-menu-border-radius: 0;--sui-menu-padding: 8px 0;}h3.svelte-16cq5v7 {padding:8px 16px;background-color:var(--sui-tertiary-background-color);color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-normal);}`};function Rse(e,t){k(t,!0),J(e,Lse);let n=()=>M(Z,`$_`,i),r=()=>M(ck,`$prefs`,i),[i,a]=N();{let t=e=>{H0(e,{primaryToolbar:e=>{nX(e,{variant:`primary`,children:(e,t)=>{var r=Pse(),i=R(r),a=L(i,!0);O(i),FN(z(i,2),{flex:!0}),B(e=>K(a,e),[()=>n()(`menu`)]),G(e,r)},$$slots:{default:!0}})},mainContent:e=>{var t=Ise(),i=L(t),a=L(i),o=L(a,!0);O(a),z9(z(a,2),{}),O(i);var s=z(i,2),c=e=>{var t=Fse(),r=L(t),i=L(r,!0);O(r),B9(z(r,2),{}),O(t),B(e=>K(i,e),[()=>n()(`help`)]),G(e,t)};q(s,e=>{r().devModeEnabled&&e(c)}),O(t),B(e=>K(o,e),[()=>n()(`account`)]),G(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},i=P(()=>n()(`menu`));G0(e,{get"aria-label"(){return V(i)},main:t,$$slots:{main:!0}})}A(),a()}var zse=o(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),V9=o((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),H9=o((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),Bse=o(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),Vse=o(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),Hse=o((e=>{var t=V9().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),Use=o((e=>{var t=V9().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Wse=o((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),U9=o((e=>{var t=H9(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),Gse=o((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),Kse=o((e=>{var t=Gse();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),qse=o(((e,t)=>{var n=Kse();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),W9=o((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),G9=o((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
|
|
935
|
+
]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^`+t+`$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),K9=o((e=>{var t=W9(),n=G9();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),Jse=o((e=>{var t=V9(),n=U9(),r=H9(),i=K9(),a=W9(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),Yse=o((e=>{var t=V9(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),Xse=o(((e,t)=>{var n=K9();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),Zse=o(((e,t)=>{var n=K9(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),Qse=o(((e,t)=>{var n=K9();function r(e){this.mode=n.BYTE,typeof e==`string`?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),$se=o(((e,t)=>{var n=K9(),r=V9();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
|
|
936
|
+
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),ece=o(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),tce=o((e=>{var t=K9(),n=Xse(),r=Zse(),i=Qse(),a=$se(),o=G9(),s=V9(),c=ece();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
|
|
937
|
+
Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),nce=o((e=>{var t=V9(),n=H9(),r=Bse(),i=Vse(),a=Hse(),o=Use(),s=Wse(),c=U9(),l=qse(),u=Jse(),d=Yse(),f=K9(),p=tce();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function b(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return x(a,e,n)}function x(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,y=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=y.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let b=new Uint8Array(i),x=0,S,C;for(S=0;S<v;S++)for(C=0;C<o;C++)S<g[C].length&&(b[x++]=g[C][S]);for(S=0;S<p;S++)for(C=0;C<o;C++)b[x++]=_[C][S];return b}function S(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
|
|
938
938
|
The chosen QR Code version cannot contain this amount of data.
|
|
939
939
|
Minimum version required to store current data is: `+c+`.
|
|
940
|
-
`);let l=b(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),y(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),S(e,a,i,o)}})),q9=o((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||={};let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[a[t*i+r]?1:0]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),
|
|
941
|
-
`;return typeof a==`function`&&a(null,p),p}})),
|
|
940
|
+
`);let l=b(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),y(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),S(e,a,i,o)}})),q9=o((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||={};let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[a[t*i+r]?1:0]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),rce=o((e=>{var t=q9();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o===void 0&&(!i||!i.getContext)&&(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i===void 0&&(!n||!n.getContext)&&(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),ice=o((e=>{var t=q9();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
|
|
941
|
+
`;return typeof a==`function`&&a(null,p),p}})),ace=o((e=>{var t=zse(),n=nce(),r=rce(),i=ice();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}))(),oce=U(`<div> </div> <canvas class="svelte-1eeac91"></canvas>`,1),sce={hash:`svelte-1eeac91`,code:`canvas.svelte-1eeac91 {display:block;margin:32px auto 16px;width:200px !important;height:200px !important;}`};function cce(e,t){k(t,!0),J(e,sce);let n=()=>M(j9,`$showMobileSignInDialog`,o),r=()=>M(uO,`$user`,o),i=()=>M(ck,`$prefs`,o),a=()=>M(Z,`$_`,o),[o,s]=N(),c=F(void 0);pr(()=>{if(V(c)&&n()){let{origin:e,pathname:t}=window.location,n=`${e}${t}#/signin/${btoa(JSON.stringify({token:r()?.token,prefs:i()}))}`;(0,ace.toCanvas)(V(c),n),i().devModeEnabled&&console.info(`Mobile sign-in URL:`,n)}});{let t=P(()=>a()(`sign_in_with_mobile`));YN(e,{get title(){return V(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,get open(){return Wt(),n()},set open(e){Vt(j9,e)},children:(e,t)=>{var n=oce(),r=R(n),i=L(r,!0);O(r),oo(z(r,2),e=>I(c,e),()=>V(c)),B(e=>K(i,e),[()=>a()(`sign_in_with_mobile_instruction`)]),G(e,n)},$$slots:{default:!0}})}A(),s()}function J9(e,t){k(t,!0);let n=()=>M(c0,`$searchTerms`,a),r=()=>M(s0,`$searchMode`,a),i=()=>M(Z,`$_`,a),[a,o]=N(),s=/^\/search\/(?<terms>.+)$/,c=()=>{let{path:e}=hZ(),{terms:t}=e.match(s)?.groups??{};t&&t!==n()&&Vt(c0,t),Vt(s0,r()??`contents`)};fo(()=>{c(),document.querySelector(`.sui.search-bar input`)?.focus()}),Oi(`hashchange`,Un,()=>{c()});{let t=e=>{_2(e,{})},r=P(()=>i()(`search_results_for_x`,{values:{terms:n()}}));G0(e,{get"aria-label"(){return V(r)},main:t,$$slots:{main:!0}})}A(),o()}var lce=U(`<!> <h2 role="none"> </h2>`,1),uce=U(`<!> <h2 role="none"> </h2>`,1),dce=U(`<!> <!>`,1),fce=U(`<div role="none" class="wrapper svelte-116bna3"><!></div>`),pce={hash:`svelte-116bna3`,code:`.wrapper.svelte-116bna3 {overflow-y:auto;height:100%;--sui-menu-border-width: 0;--sui-menu-border-radius: 0;--sui-menu-padding: 8px 0;}.wrapper.svelte-116bna3 > .container {display:block;padding:16px;}`};function mce(e,t){k(t,!0),J(e,pce);let n=()=>M(Z,`$_`,r),[r,i]=N(),a=/^\/settings(?:\/(?<panelKey>.+))?$/,o=F(void 0),s=()=>{let{path:e}=hZ(),t=e.match(a);if(!t?.groups)return;let{panelKey:n}=t.groups;I(o,n?j(L9).find(e=>e.key===n):void 0,!0)};fo(()=>{s()}),Oi(`hashchange`,Un,e=>{vZ(e,s,a)});{let t=e=>{H0(e,{primaryToolbar:e=>{nX(e,{variant:`primary`,children:(e,t)=>{var r=dce(),i=R(r),a=e=>{var t=lce(),r=R(t);WQ(r,{onclick:()=>bZ(`/settings`)});var i=z(r,2),a=L(i,!0);O(i),B(e=>K(a,e),[()=>n()(`prefs.${V(o).key}.title`)]),G(e,t)},s=e=>{var t=uce(),r=R(t);WQ(r,{onclick:()=>bZ(`/menu`)});var i=z(r,2),a=L(i,!0);O(i),B(e=>K(a,e),[()=>n()(`settings`)]),G(e,t)};q(i,e=>{V(o)?e(a):e(s,-1)}),FN(z(i,2),{flex:!0}),G(e,r)},$$slots:{default:!0}})},mainContent:e=>{var t=fce(),r=L(t),i=e=>{R9(e,{get Panel(){return V(o).component}})},a=e=>{{let t=P(()=>n()(`settings`));MP(e,{get"aria-label"(){return V(t)},children:(e,t)=>{var r=W();na(R(r),17,()=>j(L9),({key:e,icon:t})=>e,(e,t)=>{let r=()=>V(t).key,i=()=>V(t).icon;{let t=e=>{TM(e,{get name(){return i()}})},a=P(()=>n()(`prefs.${r()}.title`));LP(e,{get label(){return V(a)},onclick:()=>yZ(`/settings/${r()}`,{transitionType:`forwards`}),startIcon:t,$$slots:{startIcon:!0}})}}),G(e,r)},$$slots:{default:!0}})}};q(r,e=>{V(o)?e(i):e(a,-1)}),O(t),G(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},r=P(()=>n()(`settings`));G0(e,{get"aria-label"(){return V(r)},main:t,$$slots:{main:!0}})}A(),i()}var hce=U(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="draft-column-title" class="svelte-ljqw9n"> </h3></header>`),gce=U(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="review-column-title" class="svelte-ljqw9n"> </h3></header>`),_ce=U(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="ready-column-title" class="svelte-ljqw9n"> </h3></header>`),vce=U(`<div role="none" class="columns svelte-ljqw9n"><!> <!> <!></div>`),yce={hash:`svelte-ljqw9n`,code:`.columns.svelte-ljqw9n {flex:auto;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}
|
|
942
942
|
@media (width < 768px) {.columns.svelte-ljqw9n {flex-direction:column;gap:0;}
|
|
943
943
|
}.columns.svelte-ljqw9n .column {flex:auto;width:33.3333333333%;background-color:var(--sui-primary-background-color);}
|
|
944
944
|
@media (width < 768px) {.columns.svelte-ljqw9n .column {width:100%;height:33.3333333333%;}
|
|
945
|
-
}.columns.svelte-ljqw9n header:where(.svelte-ljqw9n) {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}.columns.svelte-ljqw9n header:where(.svelte-ljqw9n) h3:where(.svelte-ljqw9n) {font-size:var(--sui-font-size-x-large);}`};function yce(e,t){k(t,!0),J(e,vce);let n=()=>M(Z,`$_`,r),[r,i]=N();{let t=e=>{var t=_ce(),r=L(t);qX(r,{class:`column`,"aria-labelledby":`draft-column-title`,children:(e,t)=>{var r=mce(),i=L(r),a=L(i,!0);O(i),O(r),B(e=>K(a,e),[()=>n()(`status.drafts`)]),G(e,r)},$$slots:{default:!0}});var i=z(r,2);qX(i,{class:`column`,"aria-labelledby":`review-column-title`,children:(e,t)=>{var r=hce(),i=L(r),a=L(i,!0);O(i),O(r),B(e=>K(a,e),[()=>n()(`status.in_review`)]),G(e,r)},$$slots:{default:!0}}),qX(z(i,2),{class:`column`,"aria-labelledby":`ready-column-title`,children:(e,t)=>{var r=gce(),i=L(r),a=L(i,!0);O(i),O(r),B(e=>K(a,e),[()=>n()(`status.ready`)]),G(e,r)},$$slots:{default:!0}}),O(t),G(e,t)},r=P(()=>n()(`editorial_workflow`));G0(e,{get"aria-label"(){return V(r)},main:t,$$slots:{main:!0}})}A(),i()}var bce=U(`<!> <!>`,1),xce=U(`<!> <!> <div role="none" class="page-root svelte-1a6c577"><!></div> <!> <!> <!> <!> <!>`,1),Sce={hash:`svelte-1a6c577`,code:`.page-root.svelte-1a6c577 {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;view-transition-name:page-root;}`};function Cce(e,t){k(t,!0),J(e,Sce);let n=()=>M(AD,`$isSmallScreen`,o),r=()=>M(s0,`$searchMode`,o),i=()=>M(pZ,`$selectedPageName`,o),a=()=>M(A9,`$canShowMobileSignInDialog`,o),[o,s]=N(),c=P(()=>({collections:O9,assets:x2,search:n()?J9:r()?{contents:O9,assets:x2}[r()]:J9,workflow:yce,config:j2,menu:Lse,settings:pce})),l=P(()=>V(c)[i()]),u=()=>{let{path:e}=hZ(),{pageName:t}=e.match(`^\\/(?<pageName>${Object.keys(V(c)).join(`|`)})\\b`)?.groups??{};t?i()!==t&&Vt(pZ,t):window.location.replace(`#/collections`),t===`collections`?Vt(s0,`contents`):t===`assets`?Vt(s0,`assets`):t!==`search`&&Vt(s0,null)};fo(()=>{u()});var d={selectPage:u},f=xce();Oi(`hashchange`,Un,()=>{u()});var p=R(f),m=e=>{var t=bce(),n=R(t);Ooe(n,{}),sce(z(n,2),{}),G(e,t)};q(p,e=>{a()&&e(m)});var h=z(p,2),g=e=>{Mse(e,{})};q(h,e=>{n()||e(g)});var _=z(h,2);ua(L(_),()=>V(l),(e,t)=>{t(e,{})}),O(_);var v=z(_,2),y=e=>{Moe(e,{})};q(v,e=>{n()&&e(y)});var b=z(v,2);O2(b,{});var x=z(b,2);D2(x,{});var S=z(x,2);woe(S,{}),Toe(z(S,2),{}),G(e,f);var C=A(d);return s(),C}var wce=s({strings:()=>Tce}),Tce={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`,save:`Save`,saving:`SavingâŠ`,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_with_x_using_token:`Sign In with {service} Using Token`,sign_in_using_pat_title:`Sign In Using Personal Access Token`,sign_in_using_pat_description:`Enter your token below. It must have read/write access to the repository content.`,sign_in_using_pat_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_error:`There was an error while parsing an entry file. Check the browser console for details.`,entry_parse_errors:`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_many_entries:`Youâre now viewing the â{collection}â collection, which has {count} entries.`,viewing_x_collection_one_entry:`Youâre now viewing the â{collection}â collection, which has one entry.`,viewing_x_collection_no_entries:`Youâre now viewing the â{collection}â collection, which has no entries yet.`,viewing_x_asset_folder_many_assets:`Youâre now viewing the â{folder}â asset folder, which has {count} assets.`,viewing_x_asset_folder_one_asset:`Youâre now viewing the â{folder}â asset folder, which has one asset.`,viewing_x_asset_folder_no_assets:`Youâre now viewing the â{folder}â asset folder, which has no assets yet.`,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`},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_singular:`This collection is nearing its limit of {quota} entries. You can only create {remaining} more entry.`,creating_entries_nearing_quota_plural:`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:`Youâre now viewing search results for â{terms}â. Weâve found {entries}.`,viewing_asset_search_results:`Youâre now viewing search results for â{terms}â. Weâve found {assets}.`,many_entries:`{count} entries`,one_entry:`one entry`,no_entries:`no entries`,many_assets:`{count} assets`,one_asset:`one asset`,no_assets:`no 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:`Enter a new name below.`,enter_new_name_for_asset_with_one_entry:`Enter a new name below. An entry using the asset will also be updated.`,enter_new_name_for_asset_with_many_entries:`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_file_or:`Drop a file here or`,drop_files_or:`Drop files here or`,drop_image_file_or:`Drop an image file here or`,drop_image_files_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_file_here:`Drop a file here`,drop_files_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_file:`Choose File`,choose_files:`Choose Files`,delete_asset:`Delete Asset`,delete_assets:`Delete Assets`,delete_selected_asset:`Delete Selected Asset`,delete_selected_assets:`Delete Selected Assets`,confirm_deleting_this_asset:`Are you sure you want to delete this asset?`,confirm_deleting_selected_asset:`Are you sure you want to delete the selected asset?`,confirm_deleting_selected_assets:`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_entry:`Delete Entry`,delete_entries:`Delete Entries`,delete_selected_entry:`Delete Selected Entry`,delete_selected_entries:`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_entry:`Are you sure you want to delete the selected entry?`,confirm_deleting_selected_entry_with_assets:`Are you sure you want to delete the selected entry and associated assets?`,confirm_deleting_selected_entries:`Are you sure you want to delete the selected {count} entries?`,confirm_deleting_selected_entries_with_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?`,processing_file:`Processing a file. This may take a while.`,processing_files:`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_file:`Are you sure you want to save the following file to the â{folder}â folder?`,confirm_uploading_files:`Are you sure you want to save the following {count} files to the â{folder}â folder?`,oversized_files:`Oversized Files`,warning_oversized_file:`This file cannot be uploaded because it exceeds the maximum size of {size}. Please reduce the size or select a different file.`,warning_oversized_files:`These files cannot be uploaded because they exceed the maximum size of {size}. Please reduce the sizes or select different files.`,uploading_files_progress:`Uploading filesâŠ`,uploading_file_progress:`Uploading fileâŠ`,uploading_files_failed:`Files could not be uploaded`,uploading_file_failed:`File 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_error:`One field has an error. Please correct it to save the entry.`,entry_validation_errors:`{count} fields have an error. Please correct them to save the entry.`,entry_saved:`Entry has been saved.`,entry_saved_and_published:`Entry has been saved and published.`,entry_deleted:`Entry has been deleted.`,entries_deleted:`{count} entries have been deleted.`,asset_saved:`Asset has been saved.`,asset_saved_and_published:`Asset has been saved and published.`,assets_saved:`{count} assets have been saved.`,assets_saved_and_published:`{count} assets have been saved and published.`,asset_url_copied:`Asset URL has been copied to clipboard.`,asset_urls_copied:`Asset URLs have been copied to clipboard.`,asset_path_copied:`Asset file path has been copied to clipboard.`,asset_paths_copied:`Asset file paths have been copied to clipboard.`,asset_data_copied:`Asset file has been copied to clipboard.`,asset_downloaded:`Asset file has been downloaded.`,assets_downloaded:`Asset files have been downloaded.`,asset_moved:`Asset has been moved.`,assets_moved:`{count} assets have been moved.`,asset_renamed:`Asset has been renamed.`,assets_renamed:`{count} assets have been renamed.`,asset_deleted:`Asset has been deleted.`,assets_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`,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_field:`Translate Field`,translate_fields:`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:{one:`Translated the field from {source}.`,many:`Translated {count} fields from {source}.`}},copy:{none:`Nothing has been copied.`,complete:{one:`Copied the field from {source}.`,many:`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_many:`You have to select at least {min} items.`,select_one:`You have to select at least {min} item.`,add_many:`You have to add at least {min} items.`,add_one:`You have to add at least {min} item.`},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_many:`You cannot select more than {max} items.`,select_one:`You cannot select more than {max} item.`,add_many:`You cannot add more than {max} items.`,add_one:`You cannot add more than {max} item.`},too_short:{one:`You must enter at least {min} character.`,many:`You must enter at least {min} characters.`},too_long:{one:`You cannot enter more than {max} character.`,many:`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_url:`Public URL`,public_urls:`Public URLs`,file_path:`File Path`,file_paths:`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}`,select_file:`Select File`,select_image:`Select Image`,replace_file:`Replace File`,replace_image:`Replace Image`,remove_file:`Remove File`,remove_image:`Remove Image`,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:{one:`{count} character entered. Minimum: {min}. Maximum: {max}.`,many:`{count} characters entered. Minimum: {min}. Maximum: {max}.`},min:{one:`{count} character entered. Minimum: {min}.`,many:`{count} characters entered. Minimum: {min}.`},max:{one:`{count} character entered. Maximum: {max}.`,many:`{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:{one_error:`There is an error in the CMS configuration. Please solve the issue and try again.`,many_errors:`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:`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 PKCE authorization instead.`,github_pkce_unsupported:`PKCE authorization is not yet supported due to GitHubâs limitations. Use other [authentication methods](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:{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`}},Ece=s({strings:()=>Dce}),Dce={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:`åé€`,save:`ä¿å`,saving:`ä¿åäžâŠ`,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_with_x_using_token:`{service} ã§ããŒã¯ã³ã䜿çšããŠãã°ã€ã³`,sign_in_using_pat_title:`å人çšã¢ã¯ã»ã¹ããŒã¯ã³ã§ãã°ã€ã³`,sign_in_using_pat_description:`以äžã«ããŒã¯ã³ãå
¥åããŠãã ãããã¬ããžããªã³ã³ãã³ããžã®èªã¿åãã»æžã蟌ã¿ã¢ã¯ã»ã¹ãå¿
èŠã§ãã`,sign_in_using_pat_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_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_many_entries:`ã{collection}ãã³ã¬ã¯ã·ã§ã³ã衚瀺ããŠããŸããããã«ã¯ {count} åã®ãšã³ããªãŒããããŸãã`,viewing_x_collection_one_entry:`ã{collection}ãã³ã¬ã¯ã·ã§ã³ã衚瀺ããŠããŸããããã«ã¯ã²ãšã€ã®ãšã³ããªãŒããããŸãã`,viewing_x_collection_no_entries:`ã{collection}ãã³ã¬ã¯ã·ã§ã³ã衚瀺ããŠããŸããããã«ã¯ãŸã ãšã³ããªãŒããããŸããã`,viewing_x_asset_folder_many_assets:`ã{folder}ãã¢ã»ãããã©ã«ããŒã衚瀺ããŠããŸããããã«ã¯ {count} åã®ã¢ã»ããããããŸãã`,viewing_x_asset_folder_one_asset:`ã{folder}ãã¢ã»ãããã©ã«ããŒã衚瀺ããŠããŸããããã«ã¯ã²ãšã€ã®ã¢ã»ããããããŸãã`,viewing_x_asset_folder_no_assets:`ã{folder}ãã¢ã»ãããã©ã«ããŒã衚瀺ããŠããŸããããã«ã¯ãŸã ã¢ã»ããããããŸããã`,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:`ãµããªãŒ`},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_singular:`ãã®ã³ã¬ã¯ã·ã§ã³ã¯ {quota} ãšã³ããªãŒã®äžéã«è¿ã¥ããŠããŸããããš {remaining} ä»¶ã®ãšã³ããªãŒããäœæã§ããŸããã`,creating_entries_nearing_quota_plural:`ãã®ã³ã¬ã¯ã·ã§ã³ã¯ {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:`ã{terms}ãã®æ€çŽ¢çµæã衚瀺ããŠããŸãã{entries} ãèŠã€ãããŸããã`,viewing_asset_search_results:`ã{terms}ãã®æ€çŽ¢çµæã衚瀺ããŠããŸãã{assets} ãèŠã€ãããŸããã`,many_entries:`{count} åã®ãšã³ããªãŒ`,one_entry:`1 åã®ãšã³ããªãŒ`,no_entries:`0 åã®ãšã³ããªãŒ`,many_assets:`{count} åã®ã¢ã»ãã`,one_asset:`1 åã®ã¢ã»ãã`,no_assets:`0 åã®ã¢ã»ãã`,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:`æ°ããååã以äžã«å
¥åããŠãã ããã`,enter_new_name_for_asset_with_one_entry:`æ°ããååã以äžã«å
¥åããŠãã ããããã®ã¢ã»ããã䜿çšããŠãã 1 åã®ãšã³ããªãŒãæŽæ°ãããŸãã`,enter_new_name_for_asset_with_many_entries:`æ°ããååã以äžã«å
¥åããŠãã ããããã®ã¢ã»ããã䜿çšããŠãã {count} åã®ãšã³ããªãŒãæŽæ°ãããŸãã`,enter_new_name_for_asset_error:{empty:`ãã¡ã€ã«åã空çœã«ããããšã¯ã§ããŸããã`,character:`ãã¡ã€ã«åã«ç¹å¥ãªæåãå«ããããšã¯ã§ããŸããã`,duplicate:`ãã®ãã¡ã€ã«åã¯ä»ã®ã¢ã»ããã«äœ¿ãããŠããŸãã`},replace_asset:`ã¢ã»ãããå·®ãæ¿ã`,replace_x:`{name} ãå·®ãæ¿ã`,click_to_browse:`ã¯ãªãã¯ããŠåç
§âŠ`,tap_to_browse:`ã¿ããããŠåç
§âŠ`,drop_file_or:`ããã«ãã¡ã€ã«ãããããããã`,drop_files_or:`ããã«ãã¡ã€ã«ãããããããã`,drop_image_file_or:`ããã«ç»åãã¡ã€ã«ãããããããã`,drop_image_files_or:`ããã«ç»åãã¡ã€ã«ãããããããã`,browse:`åç
§`,paste:`貌ãä»ã`,paste_image:`ç»åã貌ãä»ã`,no_image_in_clipboard:`ã¯ãªããããŒãã«ç»åãèŠã€ãããŸããã`,clipboard_access_denied:`ã¯ãªããããŒããžã®ã¢ã¯ã»ã¹ãæåŠãããŸããã`,drop_file_here:`ããã«ãã¡ã€ã«ããããã`,drop_files_here:`ããã«ãã¡ã€ã«ããããã`,unsupported_file_type:`é察å¿ãã¡ã€ã«åœ¢åŒ`,dropped_file_type_mismatch:`ããããããããã¡ã€ã«ã¯ {type} 圢åŒã§ã¯ãããŸãããå床ã詊ããã ããã`,dropped_image_type_mismatch:`ããããããããã¡ã€ã«ã¯ãµããŒããããŠããŸãããAVIFãGIFãJPEGãPNGãWebP ãŸã㯠SVG 圢åŒã®ç»åã®ã¿ãåãå
¥ããããŸããå床ã詊ããã ããã`,choose_file:`ãã¡ã€ã«ãéžæ`,choose_files:`ãã¡ã€ã«ãéžæ`,delete_asset:`ã¢ã»ãããåé€`,delete_assets:`ã¢ã»ãããåé€`,delete_selected_asset:`éžæãããã¢ã»ãããåé€`,delete_selected_assets:`éžæãããã¢ã»ãããåé€`,confirm_deleting_this_asset:`ãã®ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_asset:`éžæããããã¡ã€ã«ãåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_assets:`éžæããã {count} åã®ãã¡ã€ã«ãåé€ããŠãããããã§ããïŒ`,confirm_deleting_all_assets:`ãã¹ãŠã®ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,delete_entry:`ãšã³ããªãŒãåé€`,delete_entries:`ãšã³ããªãŒãåé€`,delete_selected_entry:`éžæããããšã³ããªãŒãåé€`,delete_selected_entries:`éžæããããšã³ããªãŒãåé€`,confirm_deleting_this_entry:`ãã®ãšã³ããªãŒãåé€ããŠãããããã§ããïŒ`,confirm_deleting_this_entry_with_assets:`ãã®ãšã³ããªãŒãšé¢é£ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_entry:`éžæããããšã³ããªãŒãåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_entry_with_assets:`éžæããããšã³ããªãŒãšé¢é£ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_entries:`éžæããã {count} åã®ãšã³ããªãŒãåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_entries_with_assets:`éžæããã {count} åã®ãšã³ããªãŒãšé¢é£ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,confirm_deleting_all_entries:`ãã¹ãŠã®ãšã³ããªãŒãåé€ããŠãããããã§ããïŒ`,confirm_deleting_all_entries_with_assets:`ãã¹ãŠã®ãšã³ããªãŒãšé¢é£ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,processing_file:`ãã¡ã€ã«ãåŠçããŠããŸããããã«ã¯æéããããå ŽåããããŸãã`,processing_files:`ãã¡ã€ã«ãåŠçããŠããŸããããã«ã¯æéããããå ŽåããããŸãã`,uploading_files:`ã¢ããããŒã察象ãã¡ã€ã«`,confirm_replacing_file:`ã{name}ãã以äžã®ãã¡ã€ã«ãšå·®ãæ¿ããŠãããããã§ããïŒ`,confirm_uploading_file:`以äžã®ãã¡ã€ã«ãã{folder}ããã©ã«ããŒã«ä¿åããŠãããããã§ããïŒ`,confirm_uploading_files:`以äžã® {count} åã®ãã¡ã€ã«ãã{folder}ããã©ã«ããŒã«ä¿åããŠãããããã§ããïŒ`,oversized_files:`ãµã€ãºè¶
éãã¡ã€ã«`,warning_oversized_file:`ãã®ãã¡ã€ã«ã¯æå€§ãµã€ãº {size} ãè¶
ããŠãããããã¢ããããŒãã§ããŸããããµã€ãºãçž®å°ããããä»ã®ãã¡ã€ã«ãéžãã§ãã ããã`,warning_oversized_files:`ãããã®ãã¡ã€ã«ã¯æå€§ãµã€ãº {size} ãè¶
ããŠãããããã¢ããããŒãã§ããŸããããµã€ãºãçž®å°ããããä»ã®ãã¡ã€ã«ãéžãã§ãã ãã`,uploading_files_progress:`ãã¡ã€ã«ãã¢ããããŒãäžâŠ`,uploading_file_progress:`ãã¡ã€ã«ãã¢ããããŒãäžâŠ`,uploading_files_failed:`ãã¡ã€ã«ãã¢ããããŒãã§ããŸããã§ãã`,uploading_file_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_error:`ã²ãšã€ã®ãã£ãŒã«ãã«ãšã©ãŒããããŸãããšã³ããªãŒãä¿åããã«ã¯åé¡ãä¿®æ£ããŠãã ããã`,entry_validation_errors:`{count} åã®ãã£ãŒã«ãã«ãšã©ãŒããããŸãããšã³ããªãŒãä¿åããã«ã¯åé¡ãä¿®æ£ããŠãã ããã`,entry_saved:`ãšã³ããªãŒãä¿åãããŸããã`,entry_saved_and_published:`ãšã³ããªãŒãä¿åãå
¬éãããŸããã`,entry_deleted:`ãšã³ããªãŒãåé€ãããŸããã`,entries_deleted:`{count} åã®ãšã³ããªãŒãåé€ãããŸããã`,asset_saved:`ã¢ã»ãããä¿åãããŸããã`,asset_saved_and_published:`ã¢ã»ãããä¿åãå
¬éãããŸããã`,assets_saved:`{count} åã®ã¢ã»ãããä¿åãããŸããã`,assets_saved_and_published:`{count} åã®ã¢ã»ãããä¿åãå
¬éãããŸããã`,asset_url_copied:`ã¢ã»ãã URL ãã¯ãªããããŒãã«ã³ããŒãããŸããã`,asset_urls_copied:`ã¢ã»ãã URL ãã¯ãªããããŒãã«ã³ããŒãããŸããã`,asset_path_copied:`ã¢ã»ãããã¡ã€ã«ãã¹ãã¯ãªããããŒãã«ã³ããŒãããŸããã`,asset_paths_copied:`ã¢ã»ãããã¡ã€ã«ãã¹ãã¯ãªããããŒãã«ã³ããŒãããŸããã`,asset_data_copied:`ã¢ã»ãããã¡ã€ã«ãã¯ãªããããŒãã«ã³ããŒãããŸããã`,asset_downloaded:`ã¢ã»ãããã¡ã€ã«ãããŠã³ããŒããããŸããã`,assets_downloaded:`ã¢ã»ãããã¡ã€ã«ãããŠã³ããŒããããŸããã`,asset_moved:`ã¢ã»ãããç§»åãããŸããã`,assets_moved:`{count} åã®ã¢ã»ãããç§»åãããŸããã`,asset_renamed:`ã¢ã»ããã®ååã倿ŽãããŸããã`,assets_renamed:`{count} åã®ã¢ã»ããã®ååã倿ŽãããŸããã`,asset_deleted:`ã¢ã»ãããåé€ãããŸããã`,assets_deleted:`{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:`ãã¬ãã¥ãŒ`,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_field:`ãã£ãŒã«ãã翻蚳`,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:{one:`{source} ãããã£ãŒã«ãã翻蚳ããŸããã`,many:`{source} ãã {count} åã®ãã£ãŒã«ãã翻蚳ããŸããã`}},copy:{none:`ã³ããŒããããã£ãŒã«ãã¯ãããŸããã`,complete:{one:`{source} ãããã£ãŒã«ããã³ããŒããŸããã`,many:`{source} ãã {count} åã®ãã£ãŒã«ããã³ããŒããŸããã`}}},validation:{value_missing:`ãã®é
ç®ã¯å¿
é ã§ãã`,range_underflow:{"datetime-local":`æ¥æã¯ {min} ããã以éã§ãªããã°ãªããŸããã`,date:`æ¥ä»ã¯ {min} ããã以éã§ãªããã°ãªããŸããã`,time:`æå»ã¯ {min} ããã以éã§ãªããã°ãªããŸããã`,number:`å€ã¯ {min} 以äžã§ãªããã°ãªããŸããã`,select_many:`å°ãªããšã {min} åã®é
ç®ãéžæããŠãã ããã`,select_one:`å°ãªããšã {min} åã®é
ç®ãéžæããŠãã ããã`,add_many:`å°ãªããšã {min} åã®é
ç®ã远å ããŠãã ããã`,add_one:`å°ãªããšã {min} åã®é
ç®ã远å ããŠãã ããã`},range_overflow:{"datetime-local":`æ¥æã¯ {max} ããã以åã§ãªããã°ãªããŸããã`,date:`æ¥ä»ã¯ {max} ããã以åã§ãªããã°ãªããŸããã`,time:`æå»ã¯ {max} ããã以åã§ãªããã°ãªããŸããã`,number:`å€ã¯ {max} 以äžã§ãªããã°ãªããŸããã`,select_many:`éžæã§ããã®ã¯æå€§ã§ {max} é
ç®ã§ãã`,select_one:`éžæã§ããã®ã¯æå€§ã§ {max} é
ç®ã§ãã`,add_many:`远å ã§ããã®ã¯æå€§ã§ {max} é
ç®ã§ãã`,add_one:`远å ã§ããã®ã¯æå€§ã§ {max} é
ç®ã§ãã`},too_short:{one:`å°ãªããšã {min} æåã¯å
¥åããŠãã ããã`,many:`å°ãªããšã {min} æåã¯å
¥åããŠãã ããã`},too_long:{one:`{max} æåãè¶
ããå
¥åã¯ã§ããŸããã`,many:`{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_url:`å
¬é URL`,public_urls:`å
¬é URL`,file_path:`ãã¡ã€ã«ãã¹`,file_paths:`ãã¡ã€ã«ãã¹`,file_data:`ãã¡ã€ã«ããŒã¿`,kind:`çš®é¡`,size:`ãµã€ãº`,dimensions:`倧ãã`,duration:`åçæé`,used_in:`䜿ãããŠãããšã³ããªãŒ`,created_date:`äœææ¥æ`,location:`å Žæ`,map_lat_lng:`緯床 {latitude}ãçµåºŠ {longitude} ã®å°å³`,select_file:`ãã¡ã€ã«ãéžæ`,select_image:`ç»åãéžæ`,replace_file:`ãã¡ã€ã«ãå·®ãæ¿ã`,replace_image:`ç»åãå·®ãæ¿ã`,remove_file:`ãã¡ã€ã«ãåé€`,remove_image:`ç»åãåé€`,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:{one:`{count} æåå
¥åãããŠããŸããæå°: {min}ãæå€§ {max}ã`,many:`{count} æåå
¥åãããŠããŸããæå°: {min}ãæå€§ {max}ã`},min:{one:`{count} æåå
¥åãããŠããŸããæå°: {min}ã`,many:`{count} æåå
¥åãããŠããŸããæå°: {min}ã`},max:{one:`{count} æåå
¥åãããŠããŸããæå€§: {max}ã`,many:`{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:{one_error:`CMS èšå®ã«åé¡ãèŠã€ãããŸãããåé¡ã解決ããŠããå床ã詊ããã ããã`,many_errors:`CMS èšå®ã«åé¡ãèŠã€ãããŸãããåé¡ã解決ããŠããå床ã詊ããã ããã`,error_locator:{collection:`{collection} ã³ã¬ã¯ã·ã§ã³`,file:`{file} ãã¡ã€ã«`,field:"`{field}` ãã£ãŒã«ã"},error:{no_secure_context:`Sveltia CMS 㯠HTTPS ãŸãã¯ããŒã«ã«ãã¹ã URL ã§ã®ã¿åäœããŸãã`,insecure_url:`èšå®ãã¡ã€ã«ã® URL 㯠HTTPS ãããã³ã«ãŸãã¯ããŒã«ã«ãã¹ãã¢ãã¬ã¹ã䜿çšããå¿
èŠããããŸãã`,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 ã§ã¯é察å¿ã§ãã代ããã« PKCE èªèšŒã䜿çšããŠãã ããã`,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:{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`}},Oce=()=>{Object.entries(Object.assign({"/src/lib/locales/en.js":wce,"/src/lib/locales/ja.js":Ece})).forEach(([e,{strings:t}])=>{let n=kd(e).filename;$p(n,t)}),bM({fallbackLocale:`en`,initialLocale:j(ck).locale||(jm()??``).split(`-`)[0]||`en`})},kce=U(`<link rel="icon"/>`),Ace=U(`<link type="application/yaml" rel="cms-config-url"/>`),jce=U(`<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>`,1),Mce=U(`<div role="none" class="outer svelte-7y4msj"><!> <!> <div role="none" class="main svelte-7y4msj"><!></div></div>`),Nce=U(`<!> <div role="status" class="svelte-7y4msj"> </div>`,1),Pce={hash:`svelte-7y4msj`,code:`@view-transition {navigation:auto;
|
|
945
|
+
}.columns.svelte-ljqw9n header:where(.svelte-ljqw9n) {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}.columns.svelte-ljqw9n header:where(.svelte-ljqw9n) h3:where(.svelte-ljqw9n) {font-size:var(--sui-font-size-x-large);}`};function bce(e,t){k(t,!0),J(e,yce);let n=()=>M(Z,`$_`,r),[r,i]=N();{let t=e=>{var t=vce(),r=L(t);qX(r,{class:`column`,"aria-labelledby":`draft-column-title`,children:(e,t)=>{var r=hce(),i=L(r),a=L(i,!0);O(i),O(r),B(e=>K(a,e),[()=>n()(`status.drafts`)]),G(e,r)},$$slots:{default:!0}});var i=z(r,2);qX(i,{class:`column`,"aria-labelledby":`review-column-title`,children:(e,t)=>{var r=gce(),i=L(r),a=L(i,!0);O(i),O(r),B(e=>K(a,e),[()=>n()(`status.in_review`)]),G(e,r)},$$slots:{default:!0}}),qX(z(i,2),{class:`column`,"aria-labelledby":`ready-column-title`,children:(e,t)=>{var r=_ce(),i=L(r),a=L(i,!0);O(i),O(r),B(e=>K(a,e),[()=>n()(`status.ready`)]),G(e,r)},$$slots:{default:!0}}),O(t),G(e,t)},r=P(()=>n()(`editorial_workflow`));G0(e,{get"aria-label"(){return V(r)},main:t,$$slots:{main:!0}})}A(),i()}var xce=U(`<!> <!>`,1),Sce=U(`<!> <!> <div role="none" class="page-root svelte-1a6c577"><!></div> <!> <!> <!> <!> <!>`,1),Cce={hash:`svelte-1a6c577`,code:`.page-root.svelte-1a6c577 {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;view-transition-name:page-root;}`};function wce(e,t){k(t,!0),J(e,Cce);let n=()=>M(AD,`$isSmallScreen`,o),r=()=>M(s0,`$searchMode`,o),i=()=>M(pZ,`$selectedPageName`,o),a=()=>M(A9,`$canShowMobileSignInDialog`,o),[o,s]=N(),c=P(()=>({collections:O9,assets:x2,search:n()?J9:r()?{contents:O9,assets:x2}[r()]:J9,workflow:bce,config:j2,menu:Rse,settings:mce})),l=P(()=>V(c)[i()]),u=()=>{let{path:e}=hZ(),{pageName:t}=e.match(`^\\/(?<pageName>${Object.keys(V(c)).join(`|`)})\\b`)?.groups??{};t?i()!==t&&Vt(pZ,t):window.location.replace(`#/collections`),t===`collections`?Vt(s0,`contents`):t===`assets`?Vt(s0,`assets`):t!==`search`&&Vt(s0,null)};fo(()=>{u()});var d={selectPage:u},f=Sce();Oi(`hashchange`,Un,()=>{u()});var p=R(f),m=e=>{var t=xce(),n=R(t);koe(n,{}),cce(z(n,2),{}),G(e,t)};q(p,e=>{a()&&e(m)});var h=z(p,2),g=e=>{Nse(e,{})};q(h,e=>{n()||e(g)});var _=z(h,2);ua(L(_),()=>V(l),(e,t)=>{t(e,{})}),O(_);var v=z(_,2),y=e=>{Noe(e,{})};q(v,e=>{n()&&e(y)});var b=z(v,2);O2(b,{});var x=z(b,2);D2(x,{});var S=z(x,2);Toe(S,{}),Eoe(z(S,2),{}),G(e,f);var C=A(d);return s(),C}var Tce=s({strings:()=>Ece}),Ece={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`,save:`Save`,saving:`SavingâŠ`,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_with_x_using_token:`Sign In with {service} Using Token`,sign_in_using_pat_title:`Sign In Using Personal Access Token`,sign_in_using_pat_description:`Enter your token below. It must have read/write access to the repository content.`,sign_in_using_pat_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_error:`There was an error while parsing an entry file. Check the browser console for details.`,entry_parse_errors:`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_many_entries:`Youâre now viewing the â{collection}â collection, which has {count} entries.`,viewing_x_collection_one_entry:`Youâre now viewing the â{collection}â collection, which has one entry.`,viewing_x_collection_no_entries:`Youâre now viewing the â{collection}â collection, which has no entries yet.`,viewing_x_asset_folder_many_assets:`Youâre now viewing the â{folder}â asset folder, which has {count} assets.`,viewing_x_asset_folder_one_asset:`Youâre now viewing the â{folder}â asset folder, which has one asset.`,viewing_x_asset_folder_no_assets:`Youâre now viewing the â{folder}â asset folder, which has no assets yet.`,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`},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_singular:`This collection is nearing its limit of {quota} entries. You can only create {remaining} more entry.`,creating_entries_nearing_quota_plural:`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:`Youâre now viewing search results for â{terms}â. Weâve found {entries}.`,viewing_asset_search_results:`Youâre now viewing search results for â{terms}â. Weâve found {assets}.`,many_entries:`{count} entries`,one_entry:`one entry`,no_entries:`no entries`,many_assets:`{count} assets`,one_asset:`one asset`,no_assets:`no 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:`Enter a new name below.`,enter_new_name_for_asset_with_one_entry:`Enter a new name below. An entry using the asset will also be updated.`,enter_new_name_for_asset_with_many_entries:`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_file_or:`Drop a file here or`,drop_files_or:`Drop files here or`,drop_image_file_or:`Drop an image file here or`,drop_image_files_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_file_here:`Drop a file here`,drop_files_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_file:`Choose File`,choose_files:`Choose Files`,delete_asset:`Delete Asset`,delete_assets:`Delete Assets`,delete_selected_asset:`Delete Selected Asset`,delete_selected_assets:`Delete Selected Assets`,confirm_deleting_this_asset:`Are you sure you want to delete this asset?`,confirm_deleting_selected_asset:`Are you sure you want to delete the selected asset?`,confirm_deleting_selected_assets:`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_entry:`Delete Entry`,delete_entries:`Delete Entries`,delete_selected_entry:`Delete Selected Entry`,delete_selected_entries:`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_entry:`Are you sure you want to delete the selected entry?`,confirm_deleting_selected_entry_with_assets:`Are you sure you want to delete the selected entry and associated assets?`,confirm_deleting_selected_entries:`Are you sure you want to delete the selected {count} entries?`,confirm_deleting_selected_entries_with_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?`,processing_file:`Processing a file. This may take a while.`,processing_files:`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_file:`Are you sure you want to save the following file to the â{folder}â folder?`,confirm_uploading_files:`Are you sure you want to save the following {count} files to the â{folder}â folder?`,oversized_files:`Oversized Files`,warning_oversized_file:`This file cannot be uploaded because it exceeds the maximum size of {size}. Please reduce the size or select a different file.`,warning_oversized_files:`These files cannot be uploaded because they exceed the maximum size of {size}. Please reduce the sizes or select different files.`,uploading_files_progress:`Uploading filesâŠ`,uploading_file_progress:`Uploading fileâŠ`,uploading_files_failed:`Files could not be uploaded`,uploading_file_failed:`File 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_error:`One field has an error. Please correct it to save the entry.`,entry_validation_errors:`{count} fields have an error. Please correct them to save the entry.`,entry_saved:`Entry has been saved.`,entry_saved_and_published:`Entry has been saved and published.`,entry_deleted:`Entry has been deleted.`,entries_deleted:`{count} entries have been deleted.`,asset_saved:`Asset has been saved.`,asset_saved_and_published:`Asset has been saved and published.`,assets_saved:`{count} assets have been saved.`,assets_saved_and_published:`{count} assets have been saved and published.`,asset_url_copied:`Asset URL has been copied to clipboard.`,asset_urls_copied:`Asset URLs have been copied to clipboard.`,asset_path_copied:`Asset file path has been copied to clipboard.`,asset_paths_copied:`Asset file paths have been copied to clipboard.`,asset_data_copied:`Asset file has been copied to clipboard.`,asset_downloaded:`Asset file has been downloaded.`,assets_downloaded:`Asset files have been downloaded.`,asset_moved:`Asset has been moved.`,assets_moved:`{count} assets have been moved.`,asset_renamed:`Asset has been renamed.`,assets_renamed:`{count} assets have been renamed.`,asset_deleted:`Asset has been deleted.`,assets_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`,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_field:`Translate Field`,translate_fields:`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:{one:`Translated the field from {source}.`,many:`Translated {count} fields from {source}.`}},copy:{none:`Nothing has been copied.`,complete:{one:`Copied the field from {source}.`,many:`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_many:`You have to select at least {min} items.`,select_one:`You have to select at least {min} item.`,add_many:`You have to add at least {min} items.`,add_one:`You have to add at least {min} item.`},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_many:`You cannot select more than {max} items.`,select_one:`You cannot select more than {max} item.`,add_many:`You cannot add more than {max} items.`,add_one:`You cannot add more than {max} item.`},too_short:{one:`You must enter at least {min} character.`,many:`You must enter at least {min} characters.`},too_long:{one:`You cannot enter more than {max} character.`,many:`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_url:`Public URL`,public_urls:`Public URLs`,file_path:`File Path`,file_paths:`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}`,select_file:`Select File`,select_image:`Select Image`,replace_file:`Replace File`,replace_image:`Replace Image`,remove_file:`Remove File`,remove_image:`Remove Image`,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:{one:`{count} character entered. Minimum: {min}. Maximum: {max}.`,many:`{count} characters entered. Minimum: {min}. Maximum: {max}.`},min:{one:`{count} character entered. Minimum: {min}.`,many:`{count} characters entered. Minimum: {min}.`},max:{one:`{count} character entered. Maximum: {max}.`,many:`{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:{one_error:`There is an error in the CMS configuration. Please solve the issue and try again.`,many_errors:`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:`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 PKCE authorization instead.`,github_pkce_unsupported:`PKCE authorization is not yet supported due to GitHubâs limitations. Use other [authentication methods](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:{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`}},Dce=s({strings:()=>Oce}),Oce={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:`åé€`,save:`ä¿å`,saving:`ä¿åäžâŠ`,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_with_x_using_token:`{service} ã§ããŒã¯ã³ã䜿çšããŠãã°ã€ã³`,sign_in_using_pat_title:`å人çšã¢ã¯ã»ã¹ããŒã¯ã³ã§ãã°ã€ã³`,sign_in_using_pat_description:`以äžã«ããŒã¯ã³ãå
¥åããŠãã ãããã¬ããžããªã³ã³ãã³ããžã®èªã¿åãã»æžã蟌ã¿ã¢ã¯ã»ã¹ãå¿
èŠã§ãã`,sign_in_using_pat_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_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_many_entries:`ã{collection}ãã³ã¬ã¯ã·ã§ã³ã衚瀺ããŠããŸããããã«ã¯ {count} åã®ãšã³ããªãŒããããŸãã`,viewing_x_collection_one_entry:`ã{collection}ãã³ã¬ã¯ã·ã§ã³ã衚瀺ããŠããŸããããã«ã¯ã²ãšã€ã®ãšã³ããªãŒããããŸãã`,viewing_x_collection_no_entries:`ã{collection}ãã³ã¬ã¯ã·ã§ã³ã衚瀺ããŠããŸããããã«ã¯ãŸã ãšã³ããªãŒããããŸããã`,viewing_x_asset_folder_many_assets:`ã{folder}ãã¢ã»ãããã©ã«ããŒã衚瀺ããŠããŸããããã«ã¯ {count} åã®ã¢ã»ããããããŸãã`,viewing_x_asset_folder_one_asset:`ã{folder}ãã¢ã»ãããã©ã«ããŒã衚瀺ããŠããŸããããã«ã¯ã²ãšã€ã®ã¢ã»ããããããŸãã`,viewing_x_asset_folder_no_assets:`ã{folder}ãã¢ã»ãããã©ã«ããŒã衚瀺ããŠããŸããããã«ã¯ãŸã ã¢ã»ããããããŸããã`,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:`ãµããªãŒ`},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_singular:`ãã®ã³ã¬ã¯ã·ã§ã³ã¯ {quota} ãšã³ããªãŒã®äžéã«è¿ã¥ããŠããŸããããš {remaining} ä»¶ã®ãšã³ããªãŒããäœæã§ããŸããã`,creating_entries_nearing_quota_plural:`ãã®ã³ã¬ã¯ã·ã§ã³ã¯ {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:`ã{terms}ãã®æ€çŽ¢çµæã衚瀺ããŠããŸãã{entries} ãèŠã€ãããŸããã`,viewing_asset_search_results:`ã{terms}ãã®æ€çŽ¢çµæã衚瀺ããŠããŸãã{assets} ãèŠã€ãããŸããã`,many_entries:`{count} åã®ãšã³ããªãŒ`,one_entry:`1 åã®ãšã³ããªãŒ`,no_entries:`0 åã®ãšã³ããªãŒ`,many_assets:`{count} åã®ã¢ã»ãã`,one_asset:`1 åã®ã¢ã»ãã`,no_assets:`0 åã®ã¢ã»ãã`,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:`æ°ããååã以äžã«å
¥åããŠãã ããã`,enter_new_name_for_asset_with_one_entry:`æ°ããååã以äžã«å
¥åããŠãã ããããã®ã¢ã»ããã䜿çšããŠãã 1 åã®ãšã³ããªãŒãæŽæ°ãããŸãã`,enter_new_name_for_asset_with_many_entries:`æ°ããååã以äžã«å
¥åããŠãã ããããã®ã¢ã»ããã䜿çšããŠãã {count} åã®ãšã³ããªãŒãæŽæ°ãããŸãã`,enter_new_name_for_asset_error:{empty:`ãã¡ã€ã«åã空çœã«ããããšã¯ã§ããŸããã`,character:`ãã¡ã€ã«åã«ç¹å¥ãªæåãå«ããããšã¯ã§ããŸããã`,duplicate:`ãã®ãã¡ã€ã«åã¯ä»ã®ã¢ã»ããã«äœ¿ãããŠããŸãã`},replace_asset:`ã¢ã»ãããå·®ãæ¿ã`,replace_x:`{name} ãå·®ãæ¿ã`,click_to_browse:`ã¯ãªãã¯ããŠåç
§âŠ`,tap_to_browse:`ã¿ããããŠåç
§âŠ`,drop_file_or:`ããã«ãã¡ã€ã«ãããããããã`,drop_files_or:`ããã«ãã¡ã€ã«ãããããããã`,drop_image_file_or:`ããã«ç»åãã¡ã€ã«ãããããããã`,drop_image_files_or:`ããã«ç»åãã¡ã€ã«ãããããããã`,browse:`åç
§`,paste:`貌ãä»ã`,paste_image:`ç»åã貌ãä»ã`,no_image_in_clipboard:`ã¯ãªããããŒãã«ç»åãèŠã€ãããŸããã`,clipboard_access_denied:`ã¯ãªããããŒããžã®ã¢ã¯ã»ã¹ãæåŠãããŸããã`,drop_file_here:`ããã«ãã¡ã€ã«ããããã`,drop_files_here:`ããã«ãã¡ã€ã«ããããã`,unsupported_file_type:`é察å¿ãã¡ã€ã«åœ¢åŒ`,dropped_file_type_mismatch:`ããããããããã¡ã€ã«ã¯ {type} 圢åŒã§ã¯ãããŸãããå床ã詊ããã ããã`,dropped_image_type_mismatch:`ããããããããã¡ã€ã«ã¯ãµããŒããããŠããŸãããAVIFãGIFãJPEGãPNGãWebP ãŸã㯠SVG 圢åŒã®ç»åã®ã¿ãåãå
¥ããããŸããå床ã詊ããã ããã`,choose_file:`ãã¡ã€ã«ãéžæ`,choose_files:`ãã¡ã€ã«ãéžæ`,delete_asset:`ã¢ã»ãããåé€`,delete_assets:`ã¢ã»ãããåé€`,delete_selected_asset:`éžæãããã¢ã»ãããåé€`,delete_selected_assets:`éžæãããã¢ã»ãããåé€`,confirm_deleting_this_asset:`ãã®ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_asset:`éžæããããã¡ã€ã«ãåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_assets:`éžæããã {count} åã®ãã¡ã€ã«ãåé€ããŠãããããã§ããïŒ`,confirm_deleting_all_assets:`ãã¹ãŠã®ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,delete_entry:`ãšã³ããªãŒãåé€`,delete_entries:`ãšã³ããªãŒãåé€`,delete_selected_entry:`éžæããããšã³ããªãŒãåé€`,delete_selected_entries:`éžæããããšã³ããªãŒãåé€`,confirm_deleting_this_entry:`ãã®ãšã³ããªãŒãåé€ããŠãããããã§ããïŒ`,confirm_deleting_this_entry_with_assets:`ãã®ãšã³ããªãŒãšé¢é£ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_entry:`éžæããããšã³ããªãŒãåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_entry_with_assets:`éžæããããšã³ããªãŒãšé¢é£ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_entries:`éžæããã {count} åã®ãšã³ããªãŒãåé€ããŠãããããã§ããïŒ`,confirm_deleting_selected_entries_with_assets:`éžæããã {count} åã®ãšã³ããªãŒãšé¢é£ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,confirm_deleting_all_entries:`ãã¹ãŠã®ãšã³ããªãŒãåé€ããŠãããããã§ããïŒ`,confirm_deleting_all_entries_with_assets:`ãã¹ãŠã®ãšã³ããªãŒãšé¢é£ã¢ã»ãããåé€ããŠãããããã§ããïŒ`,processing_file:`ãã¡ã€ã«ãåŠçããŠããŸããããã«ã¯æéããããå ŽåããããŸãã`,processing_files:`ãã¡ã€ã«ãåŠçããŠããŸããããã«ã¯æéããããå ŽåããããŸãã`,uploading_files:`ã¢ããããŒã察象ãã¡ã€ã«`,confirm_replacing_file:`ã{name}ãã以äžã®ãã¡ã€ã«ãšå·®ãæ¿ããŠãããããã§ããïŒ`,confirm_uploading_file:`以äžã®ãã¡ã€ã«ãã{folder}ããã©ã«ããŒã«ä¿åããŠãããããã§ããïŒ`,confirm_uploading_files:`以äžã® {count} åã®ãã¡ã€ã«ãã{folder}ããã©ã«ããŒã«ä¿åããŠãããããã§ããïŒ`,oversized_files:`ãµã€ãºè¶
éãã¡ã€ã«`,warning_oversized_file:`ãã®ãã¡ã€ã«ã¯æå€§ãµã€ãº {size} ãè¶
ããŠãããããã¢ããããŒãã§ããŸããããµã€ãºãçž®å°ããããä»ã®ãã¡ã€ã«ãéžãã§ãã ããã`,warning_oversized_files:`ãããã®ãã¡ã€ã«ã¯æå€§ãµã€ãº {size} ãè¶
ããŠãããããã¢ããããŒãã§ããŸããããµã€ãºãçž®å°ããããä»ã®ãã¡ã€ã«ãéžãã§ãã ãã`,uploading_files_progress:`ãã¡ã€ã«ãã¢ããããŒãäžâŠ`,uploading_file_progress:`ãã¡ã€ã«ãã¢ããããŒãäžâŠ`,uploading_files_failed:`ãã¡ã€ã«ãã¢ããããŒãã§ããŸããã§ãã`,uploading_file_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_error:`ã²ãšã€ã®ãã£ãŒã«ãã«ãšã©ãŒããããŸãããšã³ããªãŒãä¿åããã«ã¯åé¡ãä¿®æ£ããŠãã ããã`,entry_validation_errors:`{count} åã®ãã£ãŒã«ãã«ãšã©ãŒããããŸãããšã³ããªãŒãä¿åããã«ã¯åé¡ãä¿®æ£ããŠãã ããã`,entry_saved:`ãšã³ããªãŒãä¿åãããŸããã`,entry_saved_and_published:`ãšã³ããªãŒãä¿åãå
¬éãããŸããã`,entry_deleted:`ãšã³ããªãŒãåé€ãããŸããã`,entries_deleted:`{count} åã®ãšã³ããªãŒãåé€ãããŸããã`,asset_saved:`ã¢ã»ãããä¿åãããŸããã`,asset_saved_and_published:`ã¢ã»ãããä¿åãå
¬éãããŸããã`,assets_saved:`{count} åã®ã¢ã»ãããä¿åãããŸããã`,assets_saved_and_published:`{count} åã®ã¢ã»ãããä¿åãå
¬éãããŸããã`,asset_url_copied:`ã¢ã»ãã URL ãã¯ãªããããŒãã«ã³ããŒãããŸããã`,asset_urls_copied:`ã¢ã»ãã URL ãã¯ãªããããŒãã«ã³ããŒãããŸããã`,asset_path_copied:`ã¢ã»ãããã¡ã€ã«ãã¹ãã¯ãªããããŒãã«ã³ããŒãããŸããã`,asset_paths_copied:`ã¢ã»ãããã¡ã€ã«ãã¹ãã¯ãªããããŒãã«ã³ããŒãããŸããã`,asset_data_copied:`ã¢ã»ãããã¡ã€ã«ãã¯ãªããããŒãã«ã³ããŒãããŸããã`,asset_downloaded:`ã¢ã»ãããã¡ã€ã«ãããŠã³ããŒããããŸããã`,assets_downloaded:`ã¢ã»ãããã¡ã€ã«ãããŠã³ããŒããããŸããã`,asset_moved:`ã¢ã»ãããç§»åãããŸããã`,assets_moved:`{count} åã®ã¢ã»ãããç§»åãããŸããã`,asset_renamed:`ã¢ã»ããã®ååã倿ŽãããŸããã`,assets_renamed:`{count} åã®ã¢ã»ããã®ååã倿ŽãããŸããã`,asset_deleted:`ã¢ã»ãããåé€ãããŸããã`,assets_deleted:`{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:`ãã¬ãã¥ãŒ`,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_field:`ãã£ãŒã«ãã翻蚳`,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:{one:`{source} ãããã£ãŒã«ãã翻蚳ããŸããã`,many:`{source} ãã {count} åã®ãã£ãŒã«ãã翻蚳ããŸããã`}},copy:{none:`ã³ããŒããããã£ãŒã«ãã¯ãããŸããã`,complete:{one:`{source} ãããã£ãŒã«ããã³ããŒããŸããã`,many:`{source} ãã {count} åã®ãã£ãŒã«ããã³ããŒããŸããã`}}},validation:{value_missing:`ãã®é
ç®ã¯å¿
é ã§ãã`,range_underflow:{"datetime-local":`æ¥æã¯ {min} ããã以éã§ãªããã°ãªããŸããã`,date:`æ¥ä»ã¯ {min} ããã以éã§ãªããã°ãªããŸããã`,time:`æå»ã¯ {min} ããã以éã§ãªããã°ãªããŸããã`,number:`å€ã¯ {min} 以äžã§ãªããã°ãªããŸããã`,select_many:`å°ãªããšã {min} åã®é
ç®ãéžæããŠãã ããã`,select_one:`å°ãªããšã {min} åã®é
ç®ãéžæããŠãã ããã`,add_many:`å°ãªããšã {min} åã®é
ç®ã远å ããŠãã ããã`,add_one:`å°ãªããšã {min} åã®é
ç®ã远å ããŠãã ããã`},range_overflow:{"datetime-local":`æ¥æã¯ {max} ããã以åã§ãªããã°ãªããŸããã`,date:`æ¥ä»ã¯ {max} ããã以åã§ãªããã°ãªããŸããã`,time:`æå»ã¯ {max} ããã以åã§ãªããã°ãªããŸããã`,number:`å€ã¯ {max} 以äžã§ãªããã°ãªããŸããã`,select_many:`éžæã§ããã®ã¯æå€§ã§ {max} é
ç®ã§ãã`,select_one:`éžæã§ããã®ã¯æå€§ã§ {max} é
ç®ã§ãã`,add_many:`远å ã§ããã®ã¯æå€§ã§ {max} é
ç®ã§ãã`,add_one:`远å ã§ããã®ã¯æå€§ã§ {max} é
ç®ã§ãã`},too_short:{one:`å°ãªããšã {min} æåã¯å
¥åããŠãã ããã`,many:`å°ãªããšã {min} æåã¯å
¥åããŠãã ããã`},too_long:{one:`{max} æåãè¶
ããå
¥åã¯ã§ããŸããã`,many:`{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_url:`å
¬é URL`,public_urls:`å
¬é URL`,file_path:`ãã¡ã€ã«ãã¹`,file_paths:`ãã¡ã€ã«ãã¹`,file_data:`ãã¡ã€ã«ããŒã¿`,kind:`çš®é¡`,size:`ãµã€ãº`,dimensions:`倧ãã`,duration:`åçæé`,used_in:`䜿ãããŠãããšã³ããªãŒ`,created_date:`äœææ¥æ`,location:`å Žæ`,map_lat_lng:`緯床 {latitude}ãçµåºŠ {longitude} ã®å°å³`,select_file:`ãã¡ã€ã«ãéžæ`,select_image:`ç»åãéžæ`,replace_file:`ãã¡ã€ã«ãå·®ãæ¿ã`,replace_image:`ç»åãå·®ãæ¿ã`,remove_file:`ãã¡ã€ã«ãåé€`,remove_image:`ç»åãåé€`,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:{one:`{count} æåå
¥åãããŠããŸããæå°: {min}ãæå€§ {max}ã`,many:`{count} æåå
¥åãããŠããŸããæå°: {min}ãæå€§ {max}ã`},min:{one:`{count} æåå
¥åãããŠããŸããæå°: {min}ã`,many:`{count} æåå
¥åãããŠããŸããæå°: {min}ã`},max:{one:`{count} æåå
¥åãããŠããŸããæå€§: {max}ã`,many:`{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:{one_error:`CMS èšå®ã«åé¡ãèŠã€ãããŸãããåé¡ã解決ããŠããå床ã詊ããã ããã`,many_errors:`CMS èšå®ã«åé¡ãèŠã€ãããŸãããåé¡ã解決ããŠããå床ã詊ããã ããã`,error_locator:{collection:`{collection} ã³ã¬ã¯ã·ã§ã³`,file:`{file} ãã¡ã€ã«`,field:"`{field}` ãã£ãŒã«ã"},error:{no_secure_context:`Sveltia CMS 㯠HTTPS ãŸãã¯ããŒã«ã«ãã¹ã URL ã§ã®ã¿åäœããŸãã`,insecure_url:`èšå®ãã¡ã€ã«ã® URL 㯠HTTPS ãããã³ã«ãŸãã¯ããŒã«ã«ãã¹ãã¢ãã¬ã¹ã䜿çšããå¿
èŠããããŸãã`,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 ã§ã¯é察å¿ã§ãã代ããã« PKCE èªèšŒã䜿çšããŠãã ããã`,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:{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`}},kce=()=>{Object.entries(Object.assign({"/src/lib/locales/en.js":Tce,"/src/lib/locales/ja.js":Dce})).forEach(([e,{strings:t}])=>{let n=kd(e).filename;$p(n,t)}),bM({fallbackLocale:`en`,initialLocale:j(ck).locale||(jm()??``).split(`-`)[0]||`en`})},Ace=U(`<link rel="icon"/>`),jce=U(`<link type="application/yaml" rel="cms-config-url"/>`),Mce=U(`<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>`,1),Nce=U(`<div role="none" class="outer svelte-7y4msj"><!> <!> <div role="none" class="main svelte-7y4msj"><!></div></div>`),Pce=U(`<!> <div role="status" class="svelte-7y4msj"> </div>`,1),Fce={hash:`svelte-7y4msj`,code:`@view-transition {navigation:auto;
|
|
946
946
|
}
|
|
947
947
|
@keyframes svelte-7y4msj-slide-out-to-left {
|
|
948
948
|
from {
|
|
@@ -1079,5 +1079,5 @@ Minimum version required to store current data is: `+c+`.
|
|
|
1079
1079
|
animation: 100ms ease-in both svelte-7y4msj-fade-in;}
|
|
1080
1080
|
@media (prefers-reduced-motion) {html:active-view-transition-type(unknown)::view-transition-new(page-main) {
|
|
1081
1081
|
animation: none;}
|
|
1082
|
-
}body:not(:has(#nc-root)) {overflow:hidden;}#nc-root > .sui.app-shell {position:absolute;}.outer.svelte-7y4msj {display:flex;flex-direction:column;position:absolute;inset:0;overflow:hidden;}.main.svelte-7y4msj {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-secondary-background-color);}[role=status].svelte-7y4msj {position:absolute;z-index:-1;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none;}`};function
|
|
1082
|
+
}body:not(:has(#nc-root)) {overflow:hidden;}#nc-root > .sui.app-shell {position:absolute;}.outer.svelte-7y4msj {display:flex;flex-direction:column;position:absolute;inset:0;overflow:hidden;}.main.svelte-7y4msj {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-secondary-background-color);}[role=status].svelte-7y4msj {position:absolute;z-index:-1;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none;}`};function Ice(e,t){k(t,!0),J(e,Fce);let n=()=>M(Av,`$dataLoaded`,d),r=()=>M(uO,`$user`,d),i=()=>M(hj,`$cmsConfigLoaded`,d),a=()=>M(YZ,`$appTitle`,d),o=()=>M(XZ,`$appLogoURL`,d),s=()=>M(ZZ,`$appLogoType`,d),c=()=>M(_m,`$isLoading`,d),l=()=>M(CA,`$backend`,d),u=()=>M(mZ,`$announcedPageStatus`,d),[d,f]=N();fo(()=>{kce()}),fo(()=>{_j(t.config)}),fo(()=>{Zee()}),fo(()=>{let e=document.querySelector(`#nc-root`);e&&window.getComputedStyle(e).position===`static`&&window.requestAnimationFrame(()=>{let{top:t,height:n}=e.getBoundingClientRect();n?e.style.position=`relative`:(e.style.position=`fixed`,e.style.inset=`${t}px 0 0 0`)})});let p=F(!1);pr(()=>{n()&&r()?_Z(`forwards`,()=>{I(p,!0)}):_Z(`backwards`,()=>{I(p,!1)})}),wa(`7y4msj`,e=>{var t=Mce(),n=z(R(t),4),r=e=>{var t=Ace();B(()=>{Y(t,`href`,o()),Y(t,`type`,s())}),br(()=>{Wn.title=a()??``}),G(e,t)};q(n,e=>{i()&&e(r)});var c=z(n,2),l=e=>{var t=jce();B(()=>Y(t,`href`,`${uj??``}/admin/config.yml`)),G(e,t)};q(c,e=>{uj&&e(l)}),G(e,t)}),Oi(`mousedown`,Wn.body,e=>{if(e.target?.matches(`a`)){let t=e.target,{origin:n,pathname:r}=t;(n!==window.location.origin||r!==window.location.pathname)&&(t.target=`_blank`)}}),VX(e,{children:(e,t)=>{var i=Pce(),a=R(i),o=e=>{var t=Nce(),i=L(t);gQ(i,{});var a=z(i,2),o=e=>{pQ(e,{})};q(a,e=>{l()&&e(o)});var s=z(a,2),c=L(s),u=e=>{wce(e,{})},d=e=>{uQ(e,{})};q(c,e=>{r()&&n()&&V(p)?e(u):e(d,-1)}),O(s),O(t),G(e,t)};q(a,e=>{c()||e(o)});var s=z(a,2),d=L(s,!0);O(s),B(()=>K(d,u())),G(e,i)},$$slots:{default:!0}}),A(),f()}var Lce=[`getBackend`,`getCustomFormats`,`getCustomFormatsExtensions`,`getCustomFormatsFormatters`,`getEditorComponents`,`getEventListeners`,`getLocale`,`getMediaLibrary`,`getPreviewStyles`,`getPreviewTemplate`,`getRemarkPlugins`,`getWidget`,`getWidgetValueSerializer`,`getWidgets`,`invokeEvent`,`moment`,`registerBackend`,`registerMediaLibrary`,`registerWidgetValueSerializer`,`removeEventListener`,`resolveWidget`,`registerLocale`,`registerRemarkPlugin`],Rce=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,Y9=!1,X9=async({config:e}={})=>{if(e!==void 0&&!u(e))throw TypeError("The `config` option for `CMS.init()` must be an object");Y9||(Y9=!0,document.readyState===`loading`&&!document.querySelector(`#nc-root`)&&await new Promise(e=>{window.addEventListener(`DOMContentLoaded`,()=>e(void 0),{once:!0})}),zi(Ice,{target:document.querySelector(`#nc-root`)??document.body,props:{config:e}}))},zce=(e,t,{fromFile:n,toFile:r}={})=>{if(typeof e!=`string`)throw TypeError("The `name` option for `CMS.registerCustomFormat()` must be a string");if(typeof t!=`string`)throw TypeError("The `extension` option for `CMS.registerCustomFormat()` must be a string");if(typeof n!=`function`&&typeof r!=`function`)throw Error("At least one of `fromFile` or `toFile` must be provided to `CMS.registerCustomFormat()`");if(n!==void 0&&typeof n!=`function`)throw TypeError("The `fromFile` option for `CMS.registerCustomFormat()` must be a function");if(r!==void 0&&typeof r!=`function`)throw TypeError("The `toFile` option for `CMS.registerCustomFormat()` must be a function");ny.set(e,{extension:t,parser:n,formatter:r})},Bce=e=>{if(!e||typeof e!=`object`)throw TypeError("The `definition` option for `CMS.registerEditorComponent()` must be an object");if(typeof e.id!=`string`)throw TypeError("The `definition.id` must be a string");if(typeof e.label!=`string`)throw TypeError("The `definition.label` must be a string");if(typeof e.pattern!=`object`||!(e.pattern instanceof RegExp))throw TypeError("The `definition.pattern` must be a RegExp");if(typeof e.toBlock!=`function`)throw TypeError("The `definition.toBlock` must be a function");if(typeof e.toPreview!=`function`)throw TypeError("The `definition.toPreview` must be a function");if(!Array.isArray(e.fields))throw TypeError("The `definition.fields` must be an array");nD.set(e.id,e)},Vce=e=>{if(!u(e))throw TypeError(`The event listener must be an object`);let{name:t,handler:n}=e;if(typeof t!=`string`||typeof n!=`function`)throw TypeError("The event listener must have a string `name` property and a function `handler` property");if(!tM.includes(t))throw RangeError(`Unsupported event listener name "${t}". Supported names are: ${tM.join(`, `)}`);rM.add(e)},Hce=(e,{raw:t=!1}={})=>{if(typeof e!=`string`)throw TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a string");if(typeof t!=`boolean`)throw TypeError("The `raw` option for `CMS.registerPreviewStyle()` must be a boolean");let n=t?URL.createObjectURL(new Blob([e],{type:`text/css`})):e;pM.add(n)},Uce=(e,t)=>{if(console.warn(`Custom preview templates are not yet supported in Sveltia CMS.`),typeof e!=`string`)throw TypeError("The `name` option for `CMS.registerPreviewTemplate()` must be a string");if(typeof t!=`function`)throw TypeError("The `component` option for `CMS.registerPreviewTemplate()` must be a function");mM.set(e,t)},Z9=(e,t,n,r)=>{console.warn(`Custom field types (widgets) are not yet supported in Sveltia CMS.`)},Q9=new Proxy({init:X9,registerCustomFormat:zce,registerEditorComponent:Bce,registerEventListener:Vce,registerFieldType:Z9,registerPreviewStyle:Hce,registerPreviewTemplate:Uce,registerWidget:Z9},{get:(e,t)=>{if(t in e)return e[t];let n=``;if(Lce.includes(t)&&(n=`CMS.%s() is not supported in Sveltia CMS, and we donât have any plans to implement it.`),n)return console.warn(`${n} See %s for compatibility information.`,t,Rce),()=>void 0}});window.CMS=Q9,window.initCMS=X9,window.createClass=v.default,window.createElement=_.createElement,window.h=_.createElement,document.querySelector(`link[rel="stylesheet"][href$="/sveltia-cms.css"]`)&&console.warn("Sveltia CMS does not require a stylesheet. Remove the invalid `<link>` tag referencing `sveltia-cms.css` to avoid unnecessary network requests.");var $9=document.querySelector(`script[src$="/sveltia-cms.js"]`);$9?.type===`module`&&console.warn('The Sveltia CMS script is not an ES module. Remove the "type="module" attribute from the `<script>` tag to avoid unexpected behavior when using the JavaScript API.'),document.querySelector(`script[src="https://identity.netlify.com/v1/netlify-identity-widget.js"]`)&&console.warn(`Netlify Identity has been deprecated. The widget is not supported in Sveltia CMS.`),!window.CMS_MANUAL_INIT&&(document.currentScript||$9)&&X9();export{Q9 as default,X9 as init};
|
|
1083
1083
|
//# sourceMappingURL=sveltia-cms.mjs.map
|