@sveltia/cms 0.107.0 → 0.107.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -134,7 +134,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
134
134
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
135
135
  `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent,i=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(i&&n.sep&&!n.value){const s=[];for(let a=0;a<n.sep.length;++a){const c=n.sep[a];switch(c.type){case"newline":s.push(a);break;case"space":break;case"comment":c.indent>e.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(o=n.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(o.push(this.sourceToken),e.items.push({start:o}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(o.push(this.sourceToken),e.items.push({start:o,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(n.explicitKey)if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Ns(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(E1(n.key)&&!Ns(n.sep,"newline")){const s=Zl(n.start),a=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(Ns(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=Zl(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?e.items.push({start:o,key:null,sep:[this.sourceToken]}):Ns(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);i||n.value?(e.items.push({start:o,key:s,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(s):(Object.assign(n,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(e);if(s){if(s.type==="block-seq"){if(!n.explicitKey&&n.sep&&!Ns(n.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 r&&e.items.push({start:o});this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||Ns(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){const r=this.startBlockValue(e);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const n=e.items[e.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?e.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?e.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===e.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=eh(r),o=Zl(i);$1(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:o,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let n=this.source.indexOf(`
136
136
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
137
- `,n)+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;const n=eh(e),r=Zl(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=eh(e),r=Zl(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(r=>r.type==="newline"||r.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;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function FR(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new DR||null,prettyErrors:e}}function zR(t,e={}){const{lineCounter:n,prettyErrors:r}=FR(e),i=new MR(n?.addNewLine),o=new LR(e);let s=null;for(const a of o.compose(i.parse(t),!0,t.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new Lu(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(h1(t,n)),s.warnings.forEach(h1(t,n))),s}function T1(t,e,n){let r;typeof e=="function"?r=e:n===void 0&&e&&typeof e=="object"&&(n=e);const i=zR(t,n);if(!i)return null;if(i.warnings.forEach(o=>q0(i.options.logLevel,o)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function Gm(t,e,n){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(t===void 0){const{keepUndefined:i}=n??e??{};if(!i)return}return xu(t)&&!r?t.toString(n):new Pu(t,r,n).toString(n)}const Is=nt([]),ka=Qt([Is],([t],e)=>{e(t.find(({collectionName:n,internalPath:r})=>n===void 0&&r!==void 0))}),Gi=nt(),th=Qt([Gi,ka],([t,e])=>t?.internalPath!==void 0?t:e),Wi=({collectionName:t,fileName:e,keyPath:n})=>se(Is).find(r=>r.collectionName===t&&r.fileName===e&&r.keyPath===n),nh=(t,{matchSubFolders:e=!0}={})=>{const{filename:n}=dn(t);return n.startsWith("+")?[]:se(Is).filter(({internalPath:r,entryRelative:i})=>r===void 0?!1:i?t.startsWith(`${r}/`):new RegExp(`^${r.replace(/{{.+?}}/g,".+?")}${r&&e?"\\b":"$"}`).test(dn(t).dirname??"")).sort((r,i)=>(i.internalPath??"").localeCompare(r.internalPath??"")??0)},Wm=t=>!!t&&!t.entryRelative&&!t.hasTemplateTags;class mo{#t;#n="";#r="";#a={};#l=[];constructor(e,n,{keyPath:r,autoIncrement:i,indexes:o=[]}={}){this.#t=void 0,this.#n=e,this.#r=n,this.#a={keyPath:r,autoIncrement:i},this.#l=o}async#o(e){return new Promise(n=>{const r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{const i=r.result,o=this.#r,s=i.objectStoreNames.contains(o)?i.transaction(o,"readwrite").objectStore(o):i.createObjectStore(o,this.#a);this.#l.forEach(({name:a,keyPath:c,options:u})=>{s.indexNames.contains(a)||s.createIndex(a,c,u)})},r.onsuccess=()=>{n(r.result)}})}async#s(){let e=!1,n=await this.#o();const{version:r,objectStoreNames:i}=n,o=this.#r;if(i.contains(o)){const s=n.transaction(o).objectStore(o);e=this.#l.some(({name:a})=>!s.indexNames.contains(a))}else e=!0;return e&&(n.close(),n=await this.#o(r+1)),n.onversionchange=()=>{n.close(),this.#t=void 0},n}async#e(e){this.#t??=await this.#s();const n=this.#t,r=this.#r,i=n.transaction(r,"readwrite"),o=e(i.objectStore(r));return o?new Promise(s=>{o.onsuccess=()=>{s(o.result)}}):new Promise(s=>{i.oncomplete=()=>{s(void 0)}})}async set(e,n){return this.#e(r=>r.put(n,e))}async put(e){return this.#e(n=>n.put(e))}async saveEntries(e){return this.#e(n=>{e.forEach(([r,i])=>{n.put(i,r)})})}async get(e){return this.#e(n=>n.get(e))}async keys(){return this.#e(e=>e.getAllKeys())}async values(){return this.#e(e=>e.getAll())}async entries(){const[e,n]=await Promise.all([this.keys(),this.values()]);return e.map((r,i)=>[r,n[i]])}async#i({callback:e=void 0,index:n=void 0,query:r=void 0,direction:i="next",multiple:o=!1}){return new Promise(s=>{this.#e(a=>{const c=(n?a.index(n):a).openCursor(r,i),u=[];c.onsuccess=()=>{const d=c.result;if(d){const{value:f}=d;typeof e!="function"||e(f)?o?(u.push(f),d.continue()):s(f):d.continue()}else s(o?u:void 0)}})})}async find(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r})}async findLast(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r,direction:"prev"})}async filter(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r,multiple:!0})}async delete(e){await this.#e(n=>n.delete(e))}async deleteEntries(e){await this.#e(n=>{e.forEach(r=>{n.delete(r)})})}async clear(){await this.#e(e=>e.clear())}}class ni{static async set(e,n){globalThis.localStorage.setItem(e,JSON.stringify(n))}static async get(e){const n=globalThis.localStorage.getItem(e);return n?JSON.parse(n):null}static async delete(e){globalThis.localStorage.removeItem(e)}static async clear(){globalThis.localStorage.clear()}static async keys(){return Object.keys(globalThis.localStorage)}static async values(){return Object.values(globalThis.localStorage).map(e=>JSON.parse(e))}static async entries(){return Object.entries(globalThis.localStorage).map(([e,n])=>[e,JSON.parse(n)])}}const C1=t=>Array.isArray(t)&&t.every(e=>Gt(e)),Ru=t=>[...new Set(t)];var Ym,A1;function jR(){return A1||(A1=1,Ym=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var s=o[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}),Ym}var BR=jR();const an=Bo(BR);function P1(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function L1(t){return t}function Yi(t,e){e=e||{};const n=e.delimiter||".",r=e.maxDepth,i=e.transformKey||L1,o={};function s(a,c,u){u=u||1,Object.keys(a).forEach(function(d){const f=a[d],h=e.safe&&Array.isArray(f),p=Object.prototype.toString.call(f),g=P1(f),m=p==="[object Object]"||p==="[object Array]",v=c?c+n+i(d):i(d);if(!h&&!g&&m&&Object.keys(f).length&&(!e.maxDepth||u<r))return s(f,v,u+1);o[v]=f})}return s(t),o}function Yo(t,e){e=e||{};const n=e.delimiter||".",r=e.overwrite||!1,i=e.transformKey||L1,o={};if(P1(t)||Object.prototype.toString.call(t)!=="[object Object]")return t;function a(d){const f=Number(d);return isNaN(f)||d.indexOf(".")!==-1||e.object?d:f}function c(d,f,h){return Object.keys(h).reduce(function(p,g){return p[d+n+g]=h[g],p},f)}function u(d){const f=Object.prototype.toString.call(d),h=f==="[object Array]",p=f==="[object Object]";if(d){if(h)return!d.length;if(p)return!Object.keys(d).length}else return!0}return t=Object.keys(t).reduce(function(d,f){const h=Object.prototype.toString.call(t[f]);return!(h==="[object Object]"||h==="[object Array]")||u(t[f])?(d[f]=t[f],d):c(f,d,Yi(t[f],e))},{}),Object.keys(t).forEach(function(d){const f=d.split(n).map(i);let h=a(f.shift()),p=a(f[0]),g=o;for(;p!==void 0;){if(h==="__proto__")return;const m=Object.prototype.toString.call(g[h]),v=m==="[object Object]"||m==="[object Array]";if(!r&&!v&&typeof g[h]<"u")return;(r&&!v||!r&&g[h]==null)&&(g[h]=typeof p=="number"&&!e.object?[]:{}),g=g[h],f.length>0&&(h=a(f.shift()),p=a(f[0]))}g[h]=Yo(t[d],e)}),o}const Sa=({date:t=new Date,timeZone:e=void 0}={})=>{const n={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"longOffset"};return Object.fromEntries(new Intl.DateTimeFormat("en-US",{...n,hour12:!1,timeZone:e}).formatToParts(t).filter(({type:r})=>r in n).map(({type:r,value:i})=>[r,r==="hour"&&i==="24"?"00":i]))},UR=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ə","A"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ō","O"],["Ő","O"],["Ø","O"],["Œ","OE"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ə","a"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ō","o"],["ő","o"],["ø","o"],["œ","oe"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["à","a"],["À","A"],["á","a"],["Á","A"],["â","a"],["Â","A"],["ã","a"],["Ã","A"],["è","e"],["È","E"],["é","e"],["É","E"],["ê","e"],["Ê","E"],["ì","i"],["Ì","I"],["í","i"],["Í","I"],["ò","o"],["Ò","O"],["ó","o"],["Ó","O"],["ô","o"],["Ô","O"],["õ","o"],["Õ","O"],["ù","u"],["Ù","U"],["ú","u"],["Ú","U"],["ý","y"],["Ý","Y"],["ă","a"],["Ă","A"],["Đ","D"],["đ","d"],["ĩ","i"],["Ĩ","I"],["ũ","u"],["Ũ","U"],["ơ","o"],["Ơ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["ậ","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["ề","e"],["Ề","E"],["ể","e"],["Ể","E"],["ễ","e"],["Ễ","E"],["ệ","e"],["Ệ","E"],["ỉ","i"],["Ỉ","I"],["ị","i"],["Ị","I"],["ọ","o"],["Ọ","O"],["ỏ","o"],["Ỏ","O"],["ố","o"],["Ố","O"],["ồ","o"],["Ồ","O"],["ổ","o"],["Ổ","O"],["ỗ","o"],["Ỗ","O"],["ộ","o"],["Ộ","O"],["ớ","o"],["Ớ","O"],["ờ","o"],["Ờ","O"],["ở","o"],["Ở","O"],["ỡ","o"],["Ỡ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["ủ","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["ử","u"],["Ử","U"],["ữ","u"],["Ữ","U"],["ự","u"],["Ự","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["Ỵ","Y"],["ỷ","y"],["Ỷ","Y"],["ỹ","y"],["Ỹ","Y"],["ء","e"],["آ","a"],["أ","a"],["ؤ","w"],["إ","a"],["ئ","y"],["ا","a"],["ب","b"],["ة","t"],["ت","t"],["ث","th"],["ج","j"],["ح","h"],["خ","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","z"],["ع","e"],["غ","gh"],["ـ","_"],["ف","f"],["ق","q"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","w"],["ى","a"],["ي","y"],["َ‎","a"],["ُ","u"],["ِ‎","i"],["٠","0"],["١","1"],["٢","2"],["٣","3"],["٤","4"],["٥","5"],["٦","6"],["٧","7"],["٨","8"],["٩","9"],["چ","ch"],["ک","k"],["گ","g"],["پ","p"],["ژ","zh"],["ی","y"],["۰","0"],["۱","1"],["۲","2"],["۳","3"],["۴","4"],["۵","5"],["۶","6"],["۷","7"],["۸","8"],["۹","9"],["ټ","p"],["ځ","z"],["څ","c"],["ډ","d"],["ﺫ","d"],["ﺭ","r"],["ړ","r"],["ﺯ","z"],["ږ","g"],["ښ","x"],["ګ","g"],["ڼ","n"],["ۀ","e"],["ې","e"],["ۍ","ai"],["ٹ","t"],["ڈ","d"],["ڑ","r"],["ں","n"],["ہ","h"],["ھ","h"],["ے","e"],["А","A"],["а","a"],["Б","B"],["б","b"],["В","V"],["в","v"],["Г","G"],["г","g"],["Д","D"],["д","d"],["ъе","ye"],["Ъе","Ye"],["ъЕ","yE"],["ЪЕ","YE"],["Е","E"],["е","e"],["Ё","Yo"],["ё","yo"],["Ж","Zh"],["ж","zh"],["З","Z"],["з","z"],["И","I"],["и","i"],["ый","iy"],["Ый","Iy"],["ЫЙ","IY"],["ыЙ","iY"],["Й","Y"],["й","y"],["К","K"],["к","k"],["Л","L"],["л","l"],["М","M"],["м","m"],["Н","N"],["н","n"],["О","O"],["о","o"],["П","P"],["п","p"],["Р","R"],["р","r"],["С","S"],["с","s"],["Т","T"],["т","t"],["У","U"],["у","u"],["Ф","F"],["ф","f"],["Х","Kh"],["х","kh"],["Ц","Ts"],["ц","ts"],["Ч","Ch"],["ч","ch"],["Ш","Sh"],["ш","sh"],["Щ","Sch"],["щ","sch"],["Ъ",""],["ъ",""],["Ы","Y"],["ы","y"],["Ь",""],["ь",""],["Э","E"],["э","e"],["Ю","Yu"],["ю","yu"],["Я","Ya"],["я","ya"],["ă","a"],["Ă","A"],["ș","s"],["Ș","S"],["ț","t"],["Ț","T"],["ţ","t"],["Ţ","T"],["ş","s"],["Ş","S"],["ç","c"],["Ç","C"],["ğ","g"],["Ğ","G"],["ı","i"],["İ","I"],["ա","a"],["Ա","A"],["բ","b"],["Բ","B"],["գ","g"],["Գ","G"],["դ","d"],["Դ","D"],["ե","ye"],["Ե","Ye"],["զ","z"],["Զ","Z"],["է","e"],["Է","E"],["ը","y"],["Ը","Y"],["թ","t"],["Թ","T"],["ժ","zh"],["Ժ","Zh"],["ի","i"],["Ի","I"],["լ","l"],["Լ","L"],["խ","kh"],["Խ","Kh"],["ծ","ts"],["Ծ","Ts"],["կ","k"],["Կ","K"],["հ","h"],["Հ","H"],["ձ","dz"],["Ձ","Dz"],["ղ","gh"],["Ղ","Gh"],["ճ","tch"],["Ճ","Tch"],["մ","m"],["Մ","M"],["յ","y"],["Յ","Y"],["ն","n"],["Ն","N"],["շ","sh"],["Շ","Sh"],["ու","u"],["ՈՒ","U"],["Ու","U"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["փ","p"],["Փ","P"],["ք","q"],["Ք","Q"],["օ","o"],["Օ","O"],["ֆ","f"],["Ֆ","F"],["և","yev"],["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","zh"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","ph"],["ქ","q"],["ღ","gh"],["ყ","k"],["შ","sh"],["ჩ","ch"],["ც","ts"],["ძ","dz"],["წ","ts"],["ჭ","tch"],["ხ","kh"],["ჯ","j"],["ჰ","h"],["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"],["ހ","h"],["ށ","sh"],["ނ","n"],["ރ","r"],["ބ","b"],["ޅ","lh"],["ކ","k"],["އ","a"],["ވ","v"],["މ","m"],["ފ","f"],["ދ","dh"],["ތ","th"],["ލ","l"],["ގ","g"],["ޏ","gn"],["ސ","s"],["ޑ","d"],["ޒ","z"],["ޓ","t"],["ޔ","y"],["ޕ","p"],["ޖ","j"],["ޗ","ch"],["ޘ","tt"],["ޙ","hh"],["ޚ","kh"],["ޛ","th"],["ޜ","z"],["ޝ","sh"],["ޞ","s"],["ޟ","d"],["ޠ","t"],["ޡ","z"],["ޢ","a"],["ޣ","gh"],["ޤ","q"],["ޥ","w"],["ަ","a"],["ާ","aa"],["ި","i"],["ީ","ee"],["ު","u"],["ޫ","oo"],["ެ","e"],["ޭ","ey"],["ޮ","o"],["ޯ","oa"],["ް",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","o"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","i"],["ώ","o"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","I"],["Θ","TH"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","KS"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","I"],["Ώ","O"],["Ϊ","I"],["Ϋ","Y"],["ā","a"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["ū","u"],["Ā","A"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Ū","U"],["č","c"],["š","s"],["ž","z"],["Č","C"],["Š","S"],["Ž","Z"],["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ќ","Kj"],["ќ","kj"],["Љ","Lj"],["љ","lj"],["Њ","Nj"],["њ","nj"],["Тс","Ts"],["тс","ts"],["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ś","S"],["Ź","Z"],["Ż","Z"],["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["¥","Y"],["߿","b"],["৳","t"],["૱","Bo"],["฿","B"],["₠","CE"],["₡","C"],["₢","Cr"],["₣","F"],["₥","m"],["₦","N"],["₧","Pt"],["₨","Rs"],["₩","W"],["₫","s"],["€","E"],["₭","K"],["₮","T"],["₯","Dp"],["₰","S"],["₱","P"],["₲","G"],["₳","A"],["₴","S"],["₵","C"],["₶","tt"],["₷","S"],["₸","T"],["₹","R"],["₺","L"],["₽","P"],["₿","B"],["﹩","$"],["¢","c"],["¥","Y"],["₩","W"],["𝐀","A"],["𝐁","B"],["𝐂","C"],["𝐃","D"],["𝐄","E"],["𝐅","F"],["𝐆","G"],["𝐇","H"],["𝐈","I"],["𝐉","J"],["𝐊","K"],["𝐋","L"],["𝐌","M"],["𝐍","N"],["𝐎","O"],["𝐏","P"],["𝐐","Q"],["𝐑","R"],["𝐒","S"],["𝐓","T"],["𝐔","U"],["𝐕","V"],["𝐖","W"],["𝐗","X"],["𝐘","Y"],["𝐙","Z"],["𝐚","a"],["𝐛","b"],["𝐜","c"],["𝐝","d"],["𝐞","e"],["𝐟","f"],["𝐠","g"],["𝐡","h"],["𝐢","i"],["𝐣","j"],["𝐤","k"],["𝐥","l"],["𝐦","m"],["𝐧","n"],["𝐨","o"],["𝐩","p"],["𝐪","q"],["𝐫","r"],["𝐬","s"],["𝐭","t"],["𝐮","u"],["𝐯","v"],["𝐰","w"],["𝐱","x"],["𝐲","y"],["𝐳","z"],["𝐴","A"],["𝐵","B"],["𝐶","C"],["𝐷","D"],["𝐸","E"],["𝐹","F"],["𝐺","G"],["𝐻","H"],["𝐼","I"],["𝐽","J"],["𝐾","K"],["𝐿","L"],["𝑀","M"],["𝑁","N"],["𝑂","O"],["𝑃","P"],["𝑄","Q"],["𝑅","R"],["𝑆","S"],["𝑇","T"],["𝑈","U"],["𝑉","V"],["𝑊","W"],["𝑋","X"],["𝑌","Y"],["𝑍","Z"],["𝑎","a"],["𝑏","b"],["𝑐","c"],["𝑑","d"],["𝑒","e"],["𝑓","f"],["𝑔","g"],["𝑖","i"],["𝑗","j"],["𝑘","k"],["𝑙","l"],["𝑚","m"],["𝑛","n"],["𝑜","o"],["𝑝","p"],["𝑞","q"],["𝑟","r"],["𝑠","s"],["𝑡","t"],["𝑢","u"],["𝑣","v"],["𝑤","w"],["𝑥","x"],["𝑦","y"],["𝑧","z"],["𝑨","A"],["𝑩","B"],["𝑪","C"],["𝑫","D"],["𝑬","E"],["𝑭","F"],["𝑮","G"],["𝑯","H"],["𝑰","I"],["𝑱","J"],["𝑲","K"],["𝑳","L"],["𝑴","M"],["𝑵","N"],["𝑶","O"],["𝑷","P"],["𝑸","Q"],["𝑹","R"],["𝑺","S"],["𝑻","T"],["𝑼","U"],["𝑽","V"],["𝑾","W"],["𝑿","X"],["𝒀","Y"],["𝒁","Z"],["𝒂","a"],["𝒃","b"],["𝒄","c"],["𝒅","d"],["𝒆","e"],["𝒇","f"],["𝒈","g"],["𝒉","h"],["𝒊","i"],["𝒋","j"],["𝒌","k"],["𝒍","l"],["𝒎","m"],["𝒏","n"],["𝒐","o"],["𝒑","p"],["𝒒","q"],["𝒓","r"],["𝒔","s"],["𝒕","t"],["𝒖","u"],["𝒗","v"],["𝒘","w"],["𝒙","x"],["𝒚","y"],["𝒛","z"],["𝒜","A"],["𝒞","C"],["𝒟","D"],["𝒢","g"],["𝒥","J"],["𝒦","K"],["𝒩","N"],["𝒪","O"],["𝒫","P"],["𝒬","Q"],["𝒮","S"],["𝒯","T"],["𝒰","U"],["𝒱","V"],["𝒲","W"],["𝒳","X"],["𝒴","Y"],["𝒵","Z"],["𝒶","a"],["𝒷","b"],["𝒸","c"],["𝒹","d"],["𝒻","f"],["𝒽","h"],["𝒾","i"],["𝒿","j"],["𝓀","k"],["𝓁","l"],["𝓂","m"],["𝓃","n"],["𝓅","p"],["𝓆","q"],["𝓇","r"],["𝓈","s"],["𝓉","t"],["𝓊","u"],["𝓋","v"],["𝓌","w"],["𝓍","x"],["𝓎","y"],["𝓏","z"],["𝓐","A"],["𝓑","B"],["𝓒","C"],["𝓓","D"],["𝓔","E"],["𝓕","F"],["𝓖","G"],["𝓗","H"],["𝓘","I"],["𝓙","J"],["𝓚","K"],["𝓛","L"],["𝓜","M"],["𝓝","N"],["𝓞","O"],["𝓟","P"],["𝓠","Q"],["𝓡","R"],["𝓢","S"],["𝓣","T"],["𝓤","U"],["𝓥","V"],["𝓦","W"],["𝓧","X"],["𝓨","Y"],["𝓩","Z"],["𝓪","a"],["𝓫","b"],["𝓬","c"],["𝓭","d"],["𝓮","e"],["𝓯","f"],["𝓰","g"],["𝓱","h"],["𝓲","i"],["𝓳","j"],["𝓴","k"],["𝓵","l"],["𝓶","m"],["𝓷","n"],["𝓸","o"],["𝓹","p"],["𝓺","q"],["𝓻","r"],["𝓼","s"],["𝓽","t"],["𝓾","u"],["𝓿","v"],["𝔀","w"],["𝔁","x"],["𝔂","y"],["𝔃","z"],["𝔄","A"],["𝔅","B"],["𝔇","D"],["𝔈","E"],["𝔉","F"],["𝔊","G"],["𝔍","J"],["𝔎","K"],["𝔏","L"],["𝔐","M"],["𝔑","N"],["𝔒","O"],["𝔓","P"],["𝔔","Q"],["𝔖","S"],["𝔗","T"],["𝔘","U"],["𝔙","V"],["𝔚","W"],["𝔛","X"],["𝔜","Y"],["𝔞","a"],["𝔟","b"],["𝔠","c"],["𝔡","d"],["𝔢","e"],["𝔣","f"],["𝔤","g"],["𝔥","h"],["𝔦","i"],["𝔧","j"],["𝔨","k"],["𝔩","l"],["𝔪","m"],["𝔫","n"],["𝔬","o"],["𝔭","p"],["𝔮","q"],["𝔯","r"],["𝔰","s"],["𝔱","t"],["𝔲","u"],["𝔳","v"],["𝔴","w"],["𝔵","x"],["𝔶","y"],["𝔷","z"],["𝔸","A"],["𝔹","B"],["𝔻","D"],["𝔼","E"],["𝔽","F"],["𝔾","G"],["𝕀","I"],["𝕁","J"],["𝕂","K"],["𝕃","L"],["𝕄","M"],["𝕆","O"],["𝕊","S"],["𝕋","T"],["𝕌","U"],["𝕍","V"],["𝕎","W"],["𝕏","X"],["𝕐","Y"],["𝕒","a"],["𝕓","b"],["𝕔","c"],["𝕕","d"],["𝕖","e"],["𝕗","f"],["𝕘","g"],["𝕙","h"],["𝕚","i"],["𝕛","j"],["𝕜","k"],["𝕝","l"],["𝕞","m"],["𝕟","n"],["𝕠","o"],["𝕡","p"],["𝕢","q"],["𝕣","r"],["𝕤","s"],["𝕥","t"],["𝕦","u"],["𝕧","v"],["𝕨","w"],["𝕩","x"],["𝕪","y"],["𝕫","z"],["𝕬","A"],["𝕭","B"],["𝕮","C"],["𝕯","D"],["𝕰","E"],["𝕱","F"],["𝕲","G"],["𝕳","H"],["𝕴","I"],["𝕵","J"],["𝕶","K"],["𝕷","L"],["𝕸","M"],["𝕹","N"],["𝕺","O"],["𝕻","P"],["𝕼","Q"],["𝕽","R"],["𝕾","S"],["𝕿","T"],["𝖀","U"],["𝖁","V"],["𝖂","W"],["𝖃","X"],["𝖄","Y"],["𝖅","Z"],["𝖆","a"],["𝖇","b"],["𝖈","c"],["𝖉","d"],["𝖊","e"],["𝖋","f"],["𝖌","g"],["𝖍","h"],["𝖎","i"],["𝖏","j"],["𝖐","k"],["𝖑","l"],["𝖒","m"],["𝖓","n"],["𝖔","o"],["𝖕","p"],["𝖖","q"],["𝖗","r"],["𝖘","s"],["𝖙","t"],["𝖚","u"],["𝖛","v"],["𝖜","w"],["𝖝","x"],["𝖞","y"],["𝖟","z"],["𝖠","A"],["𝖡","B"],["𝖢","C"],["𝖣","D"],["𝖤","E"],["𝖥","F"],["𝖦","G"],["𝖧","H"],["𝖨","I"],["𝖩","J"],["𝖪","K"],["𝖫","L"],["𝖬","M"],["𝖭","N"],["𝖮","O"],["𝖯","P"],["𝖰","Q"],["𝖱","R"],["𝖲","S"],["𝖳","T"],["𝖴","U"],["𝖵","V"],["𝖶","W"],["𝖷","X"],["𝖸","Y"],["𝖹","Z"],["𝖺","a"],["𝖻","b"],["𝖼","c"],["𝖽","d"],["𝖾","e"],["𝖿","f"],["𝗀","g"],["𝗁","h"],["𝗂","i"],["𝗃","j"],["𝗄","k"],["𝗅","l"],["𝗆","m"],["𝗇","n"],["𝗈","o"],["𝗉","p"],["𝗊","q"],["𝗋","r"],["𝗌","s"],["𝗍","t"],["𝗎","u"],["𝗏","v"],["𝗐","w"],["𝗑","x"],["𝗒","y"],["𝗓","z"],["𝗔","A"],["𝗕","B"],["𝗖","C"],["𝗗","D"],["𝗘","E"],["𝗙","F"],["𝗚","G"],["𝗛","H"],["𝗜","I"],["𝗝","J"],["𝗞","K"],["𝗟","L"],["𝗠","M"],["𝗡","N"],["𝗢","O"],["𝗣","P"],["𝗤","Q"],["𝗥","R"],["𝗦","S"],["𝗧","T"],["𝗨","U"],["𝗩","V"],["𝗪","W"],["𝗫","X"],["𝗬","Y"],["𝗭","Z"],["𝗮","a"],["𝗯","b"],["𝗰","c"],["𝗱","d"],["𝗲","e"],["𝗳","f"],["𝗴","g"],["𝗵","h"],["𝗶","i"],["𝗷","j"],["𝗸","k"],["𝗹","l"],["𝗺","m"],["𝗻","n"],["𝗼","o"],["𝗽","p"],["𝗾","q"],["𝗿","r"],["𝘀","s"],["𝘁","t"],["𝘂","u"],["𝘃","v"],["𝘄","w"],["𝘅","x"],["𝘆","y"],["𝘇","z"],["𝘈","A"],["𝘉","B"],["𝘊","C"],["𝘋","D"],["𝘌","E"],["𝘍","F"],["𝘎","G"],["𝘏","H"],["𝘐","I"],["𝘑","J"],["𝘒","K"],["𝘓","L"],["𝘔","M"],["𝘕","N"],["𝘖","O"],["𝘗","P"],["𝘘","Q"],["𝘙","R"],["𝘚","S"],["𝘛","T"],["𝘜","U"],["𝘝","V"],["𝘞","W"],["𝘟","X"],["𝘠","Y"],["𝘡","Z"],["𝘢","a"],["𝘣","b"],["𝘤","c"],["𝘥","d"],["𝘦","e"],["𝘧","f"],["𝘨","g"],["𝘩","h"],["𝘪","i"],["𝘫","j"],["𝘬","k"],["𝘭","l"],["𝘮","m"],["𝘯","n"],["𝘰","o"],["𝘱","p"],["𝘲","q"],["𝘳","r"],["𝘴","s"],["𝘵","t"],["𝘶","u"],["𝘷","v"],["𝘸","w"],["𝘹","x"],["𝘺","y"],["𝘻","z"],["𝘼","A"],["𝘽","B"],["𝘾","C"],["𝘿","D"],["𝙀","E"],["𝙁","F"],["𝙂","G"],["𝙃","H"],["𝙄","I"],["𝙅","J"],["𝙆","K"],["𝙇","L"],["𝙈","M"],["𝙉","N"],["𝙊","O"],["𝙋","P"],["𝙌","Q"],["𝙍","R"],["𝙎","S"],["𝙏","T"],["𝙐","U"],["𝙑","V"],["𝙒","W"],["𝙓","X"],["𝙔","Y"],["𝙕","Z"],["𝙖","a"],["𝙗","b"],["𝙘","c"],["𝙙","d"],["𝙚","e"],["𝙛","f"],["𝙜","g"],["𝙝","h"],["𝙞","i"],["𝙟","j"],["𝙠","k"],["𝙡","l"],["𝙢","m"],["𝙣","n"],["𝙤","o"],["𝙥","p"],["𝙦","q"],["𝙧","r"],["𝙨","s"],["𝙩","t"],["𝙪","u"],["𝙫","v"],["𝙬","w"],["𝙭","x"],["𝙮","y"],["𝙯","z"],["𝙰","A"],["𝙱","B"],["𝙲","C"],["𝙳","D"],["𝙴","E"],["𝙵","F"],["𝙶","G"],["𝙷","H"],["𝙸","I"],["𝙹","J"],["𝙺","K"],["𝙻","L"],["𝙼","M"],["𝙽","N"],["𝙾","O"],["𝙿","P"],["𝚀","Q"],["𝚁","R"],["𝚂","S"],["𝚃","T"],["𝚄","U"],["𝚅","V"],["𝚆","W"],["𝚇","X"],["𝚈","Y"],["𝚉","Z"],["𝚊","a"],["𝚋","b"],["𝚌","c"],["𝚍","d"],["𝚎","e"],["𝚏","f"],["𝚐","g"],["𝚑","h"],["𝚒","i"],["𝚓","j"],["𝚔","k"],["𝚕","l"],["𝚖","m"],["𝚗","n"],["𝚘","o"],["𝚙","p"],["𝚚","q"],["𝚛","r"],["𝚜","s"],["𝚝","t"],["𝚞","u"],["𝚟","v"],["𝚠","w"],["𝚡","x"],["𝚢","y"],["𝚣","z"],["𝚤","l"],["𝚥","j"],["𝛢","A"],["𝛣","B"],["𝛤","G"],["𝛥","D"],["𝛦","E"],["𝛧","Z"],["𝛨","I"],["𝛩","TH"],["𝛪","I"],["𝛫","K"],["𝛬","L"],["𝛭","M"],["𝛮","N"],["𝛯","KS"],["𝛰","O"],["𝛱","P"],["𝛲","R"],["𝛳","TH"],["𝛴","S"],["𝛵","T"],["𝛶","Y"],["𝛷","F"],["𝛸","x"],["𝛹","PS"],["𝛺","O"],["𝛻","D"],["𝛼","a"],["𝛽","b"],["𝛾","g"],["𝛿","d"],["𝜀","e"],["𝜁","z"],["𝜂","i"],["𝜃","th"],["𝜄","i"],["𝜅","k"],["𝜆","l"],["𝜇","m"],["𝜈","n"],["𝜉","ks"],["𝜊","o"],["𝜋","p"],["𝜌","r"],["𝜍","s"],["𝜎","s"],["𝜏","t"],["𝜐","y"],["𝜑","f"],["𝜒","x"],["𝜓","ps"],["𝜔","o"],["𝜕","d"],["𝜖","E"],["𝜗","TH"],["𝜘","K"],["𝜙","f"],["𝜚","r"],["𝜛","p"],["𝜜","A"],["𝜝","V"],["𝜞","G"],["𝜟","D"],["𝜠","E"],["𝜡","Z"],["𝜢","I"],["𝜣","TH"],["𝜤","I"],["𝜥","K"],["𝜦","L"],["𝜧","M"],["𝜨","N"],["𝜩","KS"],["𝜪","O"],["𝜫","P"],["𝜬","S"],["𝜭","TH"],["𝜮","S"],["𝜯","T"],["𝜰","Y"],["𝜱","F"],["𝜲","X"],["𝜳","PS"],["𝜴","O"],["𝜵","D"],["𝜶","a"],["𝜷","v"],["𝜸","g"],["𝜹","d"],["𝜺","e"],["𝜻","z"],["𝜼","i"],["𝜽","th"],["𝜾","i"],["𝜿","k"],["𝝀","l"],["𝝁","m"],["𝝂","n"],["𝝃","ks"],["𝝄","o"],["𝝅","p"],["𝝆","r"],["𝝇","s"],["𝝈","s"],["𝝉","t"],["𝝊","y"],["𝝋","f"],["𝝌","x"],["𝝍","ps"],["𝝎","o"],["𝝏","a"],["𝝐","e"],["𝝑","i"],["𝝒","k"],["𝝓","f"],["𝝔","r"],["𝝕","p"],["𝝖","A"],["𝝗","B"],["𝝘","G"],["𝝙","D"],["𝝚","E"],["𝝛","Z"],["𝝜","I"],["𝝝","TH"],["𝝞","I"],["𝝟","K"],["𝝠","L"],["𝝡","M"],["𝝢","N"],["𝝣","KS"],["𝝤","O"],["𝝥","P"],["𝝦","R"],["𝝧","TH"],["𝝨","S"],["𝝩","T"],["𝝪","Y"],["𝝫","F"],["𝝬","X"],["𝝭","PS"],["𝝮","O"],["𝝯","D"],["𝝰","a"],["𝝱","v"],["𝝲","g"],["𝝳","d"],["𝝴","e"],["𝝵","z"],["𝝶","i"],["𝝷","th"],["𝝸","i"],["𝝹","k"],["𝝺","l"],["𝝻","m"],["𝝼","n"],["𝝽","ks"],["𝝾","o"],["𝝿","p"],["𝞀","r"],["𝞁","s"],["𝞂","s"],["𝞃","t"],["𝞄","y"],["𝞅","f"],["𝞆","x"],["𝞇","ps"],["𝞈","o"],["𝞉","a"],["𝞊","e"],["𝞋","i"],["𝞌","k"],["𝞍","f"],["𝞎","r"],["𝞏","p"],["𝞐","A"],["𝞑","V"],["𝞒","G"],["𝞓","D"],["𝞔","E"],["𝞕","Z"],["𝞖","I"],["𝞗","TH"],["𝞘","I"],["𝞙","K"],["𝞚","L"],["𝞛","M"],["𝞜","N"],["𝞝","KS"],["𝞞","O"],["𝞟","P"],["𝞠","S"],["𝞡","TH"],["𝞢","S"],["𝞣","T"],["𝞤","Y"],["𝞥","F"],["𝞦","X"],["𝞧","PS"],["𝞨","O"],["𝞩","D"],["𝞪","av"],["𝞫","g"],["𝞬","d"],["𝞭","e"],["𝞮","z"],["𝞯","i"],["𝞰","i"],["𝞱","th"],["𝞲","i"],["𝞳","k"],["𝞴","l"],["𝞵","m"],["𝞶","n"],["𝞷","ks"],["𝞸","o"],["𝞹","p"],["𝞺","r"],["𝞻","s"],["𝞼","s"],["𝞽","t"],["𝞾","y"],["𝞿","f"],["𝟀","x"],["𝟁","ps"],["𝟂","o"],["𝟃","a"],["𝟄","e"],["𝟅","i"],["𝟆","k"],["𝟇","f"],["𝟈","r"],["𝟉","p"],["𝟊","F"],["𝟋","f"],["⒜","(a)"],["⒝","(b)"],["⒞","(c)"],["⒟","(d)"],["⒠","(e)"],["⒡","(f)"],["⒢","(g)"],["⒣","(h)"],["⒤","(i)"],["⒥","(j)"],["⒦","(k)"],["⒧","(l)"],["⒨","(m)"],["⒩","(n)"],["⒪","(o)"],["⒫","(p)"],["⒬","(q)"],["⒭","(r)"],["⒮","(s)"],["⒯","(t)"],["⒰","(u)"],["⒱","(v)"],["⒲","(w)"],["⒳","(x)"],["⒴","(y)"],["⒵","(z)"],["Ⓐ","(A)"],["Ⓑ","(B)"],["Ⓒ","(C)"],["Ⓓ","(D)"],["Ⓔ","(E)"],["Ⓕ","(F)"],["Ⓖ","(G)"],["Ⓗ","(H)"],["Ⓘ","(I)"],["Ⓙ","(J)"],["Ⓚ","(K)"],["Ⓛ","(L)"],["Ⓝ","(N)"],["Ⓞ","(O)"],["Ⓟ","(P)"],["Ⓠ","(Q)"],["Ⓡ","(R)"],["Ⓢ","(S)"],["Ⓣ","(T)"],["Ⓤ","(U)"],["Ⓥ","(V)"],["Ⓦ","(W)"],["Ⓧ","(X)"],["Ⓨ","(Y)"],["Ⓩ","(Z)"],["ⓐ","(a)"],["ⓑ","(b)"],["ⓒ","(c)"],["ⓓ","(d)"],["ⓔ","(e)"],["ⓕ","(f)"],["ⓖ","(g)"],["ⓗ","(h)"],["ⓘ","(i)"],["ⓙ","(j)"],["ⓚ","(k)"],["ⓛ","(l)"],["ⓜ","(m)"],["ⓝ","(n)"],["ⓞ","(o)"],["ⓟ","(p)"],["ⓠ","(q)"],["ⓡ","(r)"],["ⓢ","(s)"],["ⓣ","(t)"],["ⓤ","(u)"],["ⓥ","(v)"],["ⓦ","(w)"],["ⓧ","(x)"],["ⓨ","(y)"],["ⓩ","(z)"],["Ċ","C"],["ċ","c"],["Ġ","G"],["ġ","g"],["Ħ","H"],["ħ","h"],["Ż","Z"],["ż","z"],["𝟎","0"],["𝟏","1"],["𝟐","2"],["𝟑","3"],["𝟒","4"],["𝟓","5"],["𝟔","6"],["𝟕","7"],["𝟖","8"],["𝟗","9"],["𝟘","0"],["𝟙","1"],["𝟚","2"],["𝟛","3"],["𝟜","4"],["𝟝","5"],["𝟞","6"],["𝟟","7"],["𝟠","8"],["𝟡","9"],["𝟢","0"],["𝟣","1"],["𝟤","2"],["𝟥","3"],["𝟦","4"],["𝟧","5"],["𝟨","6"],["𝟩","7"],["𝟪","8"],["𝟫","9"],["𝟬","0"],["𝟭","1"],["𝟮","2"],["𝟯","3"],["𝟰","4"],["𝟱","5"],["𝟲","6"],["𝟳","7"],["𝟴","8"],["𝟵","9"],["𝟶","0"],["𝟷","1"],["𝟸","2"],["𝟹","3"],["𝟺","4"],["𝟻","5"],["𝟼","6"],["𝟽","7"],["𝟾","8"],["𝟿","9"],["①","1"],["②","2"],["③","3"],["④","4"],["⑤","5"],["⑥","6"],["⑦","7"],["⑧","8"],["⑨","9"],["⑩","10"],["⑪","11"],["⑫","12"],["⑬","13"],["⑭","14"],["⑮","15"],["⑯","16"],["⑰","17"],["⑱","18"],["⑲","19"],["⑳","20"],["⑴","1"],["⑵","2"],["⑶","3"],["⑷","4"],["⑸","5"],["⑹","6"],["⑺","7"],["⑻","8"],["⑼","9"],["⑽","10"],["⑾","11"],["⑿","12"],["⒀","13"],["⒁","14"],["⒂","15"],["⒃","16"],["⒄","17"],["⒅","18"],["⒆","19"],["⒇","20"],["⒈","1."],["⒉","2."],["⒊","3."],["⒋","4."],["⒌","5."],["⒍","6."],["⒎","7."],["⒏","8."],["⒐","9."],["⒑","10."],["⒒","11."],["⒓","12."],["⒔","13."],["⒕","14."],["⒖","15."],["⒗","16."],["⒘","17."],["⒙","18."],["⒚","19."],["⒛","20."],["⓪","0"],["⓫","11"],["⓬","12"],["⓭","13"],["⓮","14"],["⓯","15"],["⓰","16"],["⓱","17"],["⓲","18"],["⓳","19"],["⓴","20"],["⓵","1"],["⓶","2"],["⓷","3"],["⓸","4"],["⓹","5"],["⓺","6"],["⓻","7"],["⓼","8"],["⓽","9"],["⓾","10"],["⓿","0"],["🙰","&"],["🙱","&"],["🙲","&"],["🙳","&"],["🙴","&"],["🙵","&"],["🙶",'"'],["🙷",'"'],["🙸",'"'],["‽","?!"],["🙹","?!"],["🙺","?!"],["🙻","?!"],["🙼","/"],["🙽","\\"],["🜇","AR"],["🜈","V"],["🜉","V"],["🜆","VR"],["🜅","VF"],["🜩","2"],["🜪","5"],["🝡","f"],["🝢","W"],["🝣","U"],["🝧","V"],["🝨","T"],["🝪","V"],["🝫","MB"],["🝬","VB"],["🝲","3B"],["🝳","3B"],["💯","100"],["🔙","BACK"],["🔚","END"],["🔛","ON!"],["🔜","SOON"],["🔝","TOP"],["🔞","18"],["🔤","abc"],["🔠","ABCD"],["🔡","abcd"],["🔢","1234"],["🔣","T&@%"],["#️⃣","#"],["*️⃣","*"],["0️⃣","0"],["1️⃣","1"],["2️⃣","2"],["3️⃣","3"],["4️⃣","4"],["5️⃣","5"],["6️⃣","6"],["7️⃣","7"],["8️⃣","8"],["9️⃣","9"],["🔟","10"],["🅰️","A"],["🅱️","B"],["🆎","AB"],["🆑","CL"],["🅾️","O"],["🅿","P"],["🆘","SOS"],["🅲","C"],["🅳","D"],["🅴","E"],["🅵","F"],["🅶","G"],["🅷","H"],["🅸","I"],["🅹","J"],["🅺","K"],["🅻","L"],["🅼","M"],["🅽","N"],["🆀","Q"],["🆁","R"],["🆂","S"],["🆃","T"],["🆄","U"],["🆅","V"],["🆆","W"],["🆇","X"],["🆈","Y"],["🆉","Z"],["−","-"],["⁓","-"]],N1=[["æ","ae"],["Æ","Ae"],["ø","oe"],["Ø","Oe"],["å","aa"],["Å","Aa"]],I1={sv:[["ä","a"],["Ä","A"],["ö","o"],["Ö","O"],["å","a"],["Å","A"]],da:N1,nb:N1,de:[["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["ß","ss"],["ẞ","Ss"]],tr:[["â","a"],["Â","A"],["ö","o"],["Ö","O"],["ü","u"],["Ü","U"]],hu:[["ű","u"],["Ű","U"],["ö","o"],["Ö","O"],["ü","u"],["Ü","U"],["á","a"],["Á","A"],["é","e"],["É","E"],["í","i"],["Í","I"],["ó","o"],["Ó","O"],["ú","u"],["Ú","U"]],sr:[["ђ","dj"],["Ђ","Dj"],["џ","dz"],["Џ","Dz"],["љ","lj"],["Љ","Lj"],["њ","nj"],["Њ","Nj"],["ћ","c"],["Ћ","C"],["ч","ch"],["Ч","Ch"],["ш","sh"],["Ш","Sh"],["ж","zh"],["Ж","Zh"]]},qR=(t,e)=>{for(const[n,r]of e)t=t.replaceAll(n,r);return t},VR=t=>{if(!t)return[];const e=t.toLowerCase().replace(/^no(-|$)/,"nb$1");return I1[e]||I1[e.split("-")[0]]||[]};function HR(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={customReplacements:[],...e};const n=VR(e.locale),r=new Map([...UR,...n,...e.customReplacements]);return t=t.normalize(),t=qR(t,r),t=t.normalize("NFD").replaceAll(/\p{Diacritic}/gu,"").normalize(),t=t.replaceAll(/\p{Dash_Punctuation}/gu,"-"),t}const O1=(t,{fallback:e=!0}={})=>{const{slug:{encoding:n="unicode",clean_accents:r=!1,sanitize_replacement:i="-",trim:o=!0}={}}=se(Et)??{};let s=t;if(r&&(s=HR(s).normalize("NFD").replace(/\p{Diacritic}/gu,"")),n==="ascii"?s=s.replaceAll(/[^\w-~]/g," "):s=s.replaceAll(/[\p{Z}\p{C}!"#$&'()*+,/:;<=>?@[\]^`{|}]/gu," "),s=s.toLocaleLowerCase().trim().replaceAll(/\s+/g,i),i){const a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=new RegExp(`${a}+`,"g");s=s.replace(c,i),o&&(s=s.replace(new RegExp(`^${a}+|${a}+$`,"g"),""))}return!s&&e?ti("short"):s};var rh={exports:{}},KR=rh.exports,R1;function GR(){return R1||(R1=1,(function(t,e){(function(n,r){t.exports=r()})(KR,(function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",c="hour",u="day",d="week",f="month",h="quarter",p="year",g="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,y={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(N){var D=["th","st","nd","rd"],B=N%100;return"["+N+(D[(B-20)%10]||D[B]||D[0])+"]"}},w=function(N,D,B){var H=String(N);return!H||H.length>=D?N:""+Array(D+1-H.length).join(B)+N},E={s:w,z:function(N){var D=-N.utcOffset(),B=Math.abs(D),H=Math.floor(B/60),W=B%60;return(D<=0?"+":"-")+w(H,2,"0")+":"+w(W,2,"0")},m:function N(D,B){if(D.date()<B.date())return-N(B,D);var H=12*(B.year()-D.year())+(B.month()-D.month()),W=D.clone().add(H,f),Y=B-W<0,O=D.clone().add(H+(Y?-1:1),f);return+(-(H+(B-W)/(Y?W-O:O-W))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:p,w:d,d:u,D:g,h:c,m:a,s,ms:o,Q:h}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},k="en",S={};S[k]=y;var C="$isDayjsObject",x=function(N){return N instanceof L||!(!N||!N[C])},T=function N(D,B,H){var W;if(!D)return k;if(typeof D=="string"){var Y=D.toLowerCase();S[Y]&&(W=Y),B&&(S[Y]=B,W=Y);var O=D.split("-");if(!W&&O.length>1)return N(O[0])}else{var F=D.name;S[F]=D,W=F}return!H&&W&&(k=W),W||!H&&k},A=function(N,D){if(x(N))return N.clone();var B=typeof D=="object"?D:{};return B.date=N,B.args=arguments,new L(B)},P=E;P.l=T,P.i=x,P.w=function(N,D){return A(N,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var L=(function(){function N(B){this.$L=T(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[C]=!0}var D=N.prototype;return D.parse=function(B){this.$d=(function(H){var W=H.date,Y=H.utc;if(W===null)return new Date(NaN);if(P.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var O=W.match(v);if(O){var F=O[2]-1||0,K=(O[7]||"0").substring(0,3);return Y?new Date(Date.UTC(O[1],F,O[3]||1,O[4]||0,O[5]||0,O[6]||0,K)):new Date(O[1],F,O[3]||1,O[4]||0,O[5]||0,O[6]||0,K)}}return new Date(W)})(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return P},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(B,H){var W=A(B);return this.startOf(H)<=W&&W<=this.endOf(H)},D.isAfter=function(B,H){return A(B)<this.startOf(H)},D.isBefore=function(B,H){return this.endOf(H)<A(B)},D.$g=function(B,H,W){return P.u(B)?this[H]:this.set(W,B)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(B,H){var W=this,Y=!!P.u(H)||H,O=P.p(B),F=function(ae,fe){var be=P.w(W.$u?Date.UTC(W.$y,fe,ae):new Date(W.$y,fe,ae),W);return Y?be:be.endOf(u)},K=function(ae,fe){return P.w(W.toDate()[ae].apply(W.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(fe)),W)},J=this.$W,Q=this.$M,oe=this.$D,re="set"+(this.$u?"UTC":"");switch(O){case p:return Y?F(1,0):F(31,11);case f:return Y?F(1,Q):F(0,Q+1);case d:var ee=this.$locale().weekStart||0,ne=(J<ee?J+7:J)-ee;return F(Y?oe-ne:oe+(6-ne),Q);case u:case g:return K(re+"Hours",0);case c:return K(re+"Minutes",1);case a:return K(re+"Seconds",2);case s:return K(re+"Milliseconds",3);default:return this.clone()}},D.endOf=function(B){return this.startOf(B,!1)},D.$set=function(B,H){var W,Y=P.p(B),O="set"+(this.$u?"UTC":""),F=(W={},W[u]=O+"Date",W[g]=O+"Date",W[f]=O+"Month",W[p]=O+"FullYear",W[c]=O+"Hours",W[a]=O+"Minutes",W[s]=O+"Seconds",W[o]=O+"Milliseconds",W)[Y],K=Y===u?this.$D+(H-this.$W):H;if(Y===f||Y===p){var J=this.clone().set(g,1);J.$d[F](K),J.init(),this.$d=J.set(g,Math.min(this.$D,J.daysInMonth())).$d}else F&&this.$d[F](K);return this.init(),this},D.set=function(B,H){return this.clone().$set(B,H)},D.get=function(B){return this[P.p(B)]()},D.add=function(B,H){var W,Y=this;B=Number(B);var O=P.p(H),F=function(Q){var oe=A(Y);return P.w(oe.date(oe.date()+Math.round(Q*B)),Y)};if(O===f)return this.set(f,this.$M+B);if(O===p)return this.set(p,this.$y+B);if(O===u)return F(1);if(O===d)return F(7);var K=(W={},W[a]=r,W[c]=i,W[s]=n,W)[O]||1,J=this.$d.getTime()+B*K;return P.w(J,this)},D.subtract=function(B,H){return this.add(-1*B,H)},D.format=function(B){var H=this,W=this.$locale();if(!this.isValid())return W.invalidDate||m;var Y=B||"YYYY-MM-DDTHH:mm:ssZ",O=P.z(this),F=this.$H,K=this.$m,J=this.$M,Q=W.weekdays,oe=W.months,re=W.meridiem,ee=function(fe,be,pe,he){return fe&&(fe[be]||fe(H,Y))||pe[be].slice(0,he)},ne=function(fe){return P.s(F%12||12,fe,"0")},ae=re||function(fe,be,pe){var he=fe<12?"AM":"PM";return pe?he.toLowerCase():he};return Y.replace(b,(function(fe,be){return be||(function(pe){switch(pe){case"YY":return String(H.$y).slice(-2);case"YYYY":return P.s(H.$y,4,"0");case"M":return J+1;case"MM":return P.s(J+1,2,"0");case"MMM":return ee(W.monthsShort,J,oe,3);case"MMMM":return ee(oe,J);case"D":return H.$D;case"DD":return P.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return ee(W.weekdaysMin,H.$W,Q,2);case"ddd":return ee(W.weekdaysShort,H.$W,Q,3);case"dddd":return Q[H.$W];case"H":return String(F);case"HH":return P.s(F,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ae(F,K,!0);case"A":return ae(F,K,!1);case"m":return String(K);case"mm":return P.s(K,2,"0");case"s":return String(H.$s);case"ss":return P.s(H.$s,2,"0");case"SSS":return P.s(H.$ms,3,"0");case"Z":return O}return null})(fe)||O.replace(":","")}))},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(B,H,W){var Y,O=this,F=P.p(H),K=A(B),J=(K.utcOffset()-this.utcOffset())*r,Q=this-K,oe=function(){return P.m(O,K)};switch(F){case p:Y=oe()/12;break;case f:Y=oe();break;case h:Y=oe()/3;break;case d:Y=(Q-J)/6048e5;break;case u:Y=(Q-J)/864e5;break;case c:Y=Q/i;break;case a:Y=Q/r;break;case s:Y=Q/n;break;default:Y=Q}return W?Y:P.a(Y)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return S[this.$L]},D.locale=function(B,H){if(!B)return this.$L;var W=this.clone(),Y=T(B,H,!0);return Y&&(W.$L=Y),W},D.clone=function(){return P.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},N})(),I=L.prototype;return A.prototype=I,[["$ms",o],["$s",s],["$m",a],["$H",c],["$W",u],["$M",f],["$y",p],["$D",g]].forEach((function(N){I[N[1]]=function(D){return this.$g(D,N[0],N[1])}})),A.extend=function(N,D){return N.$i||(N(D,L,A),N.$i=!0),A},A.locale=T,A.isDayjs=x,A.unix=function(N){return A(1e3*N)},A.en=S[k],A.Ls=S,A.p={},A}))})(rh)),rh.exports}var WR=GR();const rr=Bo(WR);var ih={exports:{}},YR=ih.exports,D1;function JR(){return D1||(D1=1,(function(t,e){(function(n,r){t.exports=r()})(YR,(function(){var n={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},u=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(b){this[v]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),w=60*y[1]+(+y[2]||0);return w===0?0:y[0]==="+"?-w:w})(v)}],h=function(v){var b=c[v];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(v,b){var y,w=c.meridiem;if(w){for(var E=1;E<=24;E+=1)if(v.indexOf(w(E,0,b))>-1){y=E>12;break}}else y=v===(b?"pm":"PM");return y},g={A:[a,function(v){this.afternoon=p(v,!1)}],a:[a,function(v){this.afternoon=p(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[o,d("day")],Do:[a,function(v){var b=c.ordinal,y=v.match(/\d+/);if(this.day=y[0],b)for(var w=1;w<=31;w+=1)b(w).replace(/\[|\]/g,"")===v&&(this.day=w)}],w:[s,d("week")],ww:[o,d("week")],M:[s,d("month")],MM:[o,d("month")],MMM:[a,function(v){var b=h("months"),y=(h("monthsShort")||b.map((function(w){return w.slice(0,3)}))).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[a,function(v){var b=h("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(v){this.year=u(v)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function m(v){var b,y;b=v,y=c&&c.formats;for(var w=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(A,P,L){var I=L&&L.toUpperCase();return P||y[L]||n[L]||y[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,D,B){return D||B.slice(1)}))}))).match(r),E=w.length,k=0;k<E;k+=1){var S=w[k],C=g[S],x=C&&C[0],T=C&&C[1];w[k]=T?{regex:x,parser:T}:S.replace(/^\[|\]$/g,"")}return function(A){for(var P={},L=0,I=0;L<E;L+=1){var N=w[L];if(typeof N=="string")I+=N.length;else{var D=N.regex,B=N.parser,H=A.slice(I),W=D.exec(H)[0];B.call(P,W),A=A.replace(W,"")}}return(function(Y){var O=Y.afternoon;if(O!==void 0){var F=Y.hours;O?F<12&&(Y.hours+=12):F===12&&(Y.hours=0),delete Y.afternoon}})(P),P}}return function(v,b,y){y.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var w=b.prototype,E=w.parse;w.parse=function(k){var S=k.date,C=k.utc,x=k.args;this.$u=C;var T=x[1];if(typeof T=="string"){var A=x[2]===!0,P=x[3]===!0,L=A||P,I=x[2];P&&(I=x[2]),c=this.$locale(),!A&&I&&(c=y.Ls[I]),this.$d=(function(H,W,Y,O){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*H);var F=m(W)(H),K=F.year,J=F.month,Q=F.day,oe=F.hours,re=F.minutes,ee=F.seconds,ne=F.milliseconds,ae=F.zone,fe=F.week,be=new Date,pe=Q||(K||J?1:be.getDate()),he=K||be.getFullYear(),ge=0;K&&!J||(ge=J>0?J-1:be.getMonth());var ve,_e=oe||0,$e=re||0,Ce=ee||0,Re=ne||0;return ae?new Date(Date.UTC(he,ge,pe,_e,$e,Ce,Re+60*ae.offset*1e3)):Y?new Date(Date.UTC(he,ge,pe,_e,$e,Ce,Re)):(ve=new Date(he,ge,pe,_e,$e,Ce,Re),fe&&(ve=O(ve).week(fe).toDate()),ve)}catch{return new Date("")}})(S,T,C,y),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),L&&S!=this.format(T)&&(this.$d=new Date("")),c={}}else if(T instanceof Array)for(var N=T.length,D=1;D<=N;D+=1){x[1]=T[D-1];var B=y.apply(this,x);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}D===N&&(this.$d=new Date(""))}else E.call(this,k)}}}))})(ih)),ih.exports}var XR=JR();const Jm=Bo(XR);var oh={exports:{}},ZR=oh.exports,M1;function QR(){return M1||(M1=1,(function(t,e){(function(n,r){t.exports=r()})(ZR,(function(){var n={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(r,i,o){var s=i.prototype,a=s.format;o.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(p,g,m){var v=m&&m.toUpperCase();return g||h[m]||n[m]||h[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,y,w){return y||w.slice(1)}))}))})(c,u===void 0?{}:u);return a.call(this,d)}}}))})(oh)),oh.exports}var eD=QR();const Xm=Bo(eD);var sh={exports:{}},tD=sh.exports,F1;function nD(){return F1||(F1=1,(function(t,e){(function(n,r){t.exports=r()})(tD,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,s,a){var c=s.prototype;a.utc=function(m){var v={date:m,utc:!0,args:arguments};return new s(v)},c.utc=function(m){var v=a(this.toDate(),{locale:this.$L,utc:!0});return m?v.add(this.utcOffset(),n):v},c.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),u.call(this,m)};var d=c.init;c.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else d.call(this)};var f=c.utcOffset;c.utcOffset=function(m,v){var b=this.$utils().u;if(b(m))return this.$u?0:b(this.$offset)?f.call(this):this.$offset;if(typeof m=="string"&&(m=(function(k){k===void 0&&(k="");var S=k.match(r);if(!S)return null;var C=(""+S[0]).match(i)||["-",0,0],x=C[0],T=60*+C[1]+ +C[2];return T===0?0:x==="+"?T:-T})(m),m===null))return this;var y=Math.abs(m)<=16?60*m:m;if(y===0)return this.utc(v);var w=this.clone();if(v)return w.$offset=y,w.$u=!1,w;var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(w=this.local().add(y+E,n)).$offset=y,w.$x.$localOffset=E,w};var h=c.format;c.format=function(m){var v=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,v)},c.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var p=c.toDate;c.toDate=function(m){return m==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var g=c.diff;c.diff=function(m,v,b){if(m&&this.$u===m.$u)return g.call(this,m,v,b);var y=this.local(),w=a(m).local();return g.call(y,w,v,b)}}}))})(sh)),sh.exports}var rD=nD();const Zm=Bo(rD),wr=t=>{let e;if(t!=="_default")try{[e]=Intl.getCanonicalLocales(t)}catch{}return e},Oi=(t,{native:e=!1}={})=>{const n=wr(t);if(!n)return t;const r=e?n:wr(se(zt)??"en"),i=new Intl.DisplayNames(r,{type:"language"});try{return i.of(n)??t}catch(o){return console.error(o),t}},Ql=(t,e={})=>new Intl.ListFormat(wr(t),{style:"narrow",type:"conjunction",...e}),Qm=({_i18n:t,locale:e,path:n})=>{const{defaultLocale:r,omitDefaultLocaleFromFileName:i}=t;return i&&e===r&&(n=n.replace(/\.{{locale}}\.(\w+)$/,".$1")),n.replaceAll("{{locale}}",e)},iD=/^(?:\d{4}-[01]\d-[0-3]\d)?(?:T?[0-2]\d:[0-5]\d)?(?::[0-5]\d)?(?:\.\d+)?(?:[+-][0-2]\d:[0-5]\d|Z)?$/,oD=/^\d{4}-[01]\d-[0-3]\d$/,sD=/T00:00(?::00)?(?:\.000)?Z$/,ev={year:"numeric",month:"short",day:"numeric"},tv={hour:"numeric",minute:"numeric",hour12:!0},aD={...ev,...tv};rr.extend(Jm),rr.extend(Xm),rr.extend(Zm);const Os=t=>{const{format:e,date_format:n=void 0,time_format:r=void 0,picker_utc:i=!1}=t;return{format:e||[typeof n=="string"?n:"",typeof r=="string"?r:""].join(" ").trim()||void 0,dateOnly:r===!1,timeOnly:n===!1,utc:i}},ec=(t,e)=>{const{format:n,timeOnly:r,utc:i}=Os(e);if(t)try{return n?(i?rr.utc:rr)(t,n).toDate():r?new Date(`${new Date().toJSON().split("T")[0]}T${t}`):new Date(t)}catch(o){console.error(o);return}},z1=t=>{const{dateOnly:e,timeOnly:n,utc:r}=Os(t),{year:i,month:o,day:s,hour:a,minute:c}=Sa({timeZone:r?"UTC":void 0}),u=`${i}-${o}-${s}`,d=`${a}:${c}`;return e?u:n?d:r?`${u}T${d}:00.000Z`:`${u}T${d}`},j1=(t,e,n)=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=Os(n),a=i?"YYYY-MM-DD":o?"HH:mm":"YYYY-MM-DDTHH:mm",c=`:00${e?.endsWith(".000")?".000":""}`;if(t==="")return"";if(t)try{if(r){const u=(s?rr.utc:rr)(t,a).format(r);return r.includes("Z")&&u.endsWith("+00:00")?u.replace("+00:00","Z"):u}return i?t:s?`${t}:00.000Z`:`${t}${c}`}catch(u){console.error(u);return}},lD=(t,e)=>{const{dateOnly:n,timeOnly:r,utc:i}=Os(e);if(!t)return"";const o=n?t?.match(/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/)?.groups?.date:r?t?.match(/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/)?.groups?.time:void 0;if(o)return o;try{const s=t?ec(t,e):new Date;if(t&&!s||t&&s&&Number.isNaN(s.getTime()))return"";const{year:a,month:c,day:u,hour:d,minute:f}=Sa({date:s,timeZone:i?"UTC":void 0}),h=`${a}-${c}-${u}`,p=`${d}:${f}`;return n?h:r?p:`${h}T${p}`}catch(s){return console.error(s),""}},B1=({locale:t,fieldConfig:e,currentValue:n})=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=Os(e);if(typeof n!="string"||!n.trim())return"";if(r)try{return(s?rr.utc:rr)(n,r).format(r)}catch{}const a=ec(n,e),c=wr(t);return!a||Number.isNaN(a.getTime())?"":o?a.toLocaleTimeString(c,tv):i?a.toLocaleDateString(c,{...ev,timeZone:s||oD.test(n)||sD.test(n)?"UTC":void 0}):a.toLocaleString(c,{...ev,...tv,timeZone:s?"UTC":void 0,timeZoneName:s?void 0:"short"})};rr.extend(Jm),rr.extend(Xm),rr.extend(Zm);const nv=/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,U1=/^default\('(?<defaultValue>.+?)'\)$/,q1=/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,cD=/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/,uD=t=>String(t).toUpperCase(),dD=t=>String(t).toLowerCase(),fD=(t,{format:e,timeZone:n},r)=>{const i=String(t),{dateOnly:o,utc:s}=Os(r),c=(n==="utc"||s||o&&!!i.match(/^\d{4}-[01]\d-[0-3]\d$/)||o&&!!i.match(/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/)?rr.utc:rr)(i);return c.isValid()?c.format(e):""},hD=(t,{defaultValue:e})=>t?String(t):e,pD=(t,{truthyValue:e,falsyValue:n})=>t?e:n,gD=(t,{max:e,ellipsis:n="…"})=>Kx(String(t),Number(e),{ellipsis:n}),mD=({fieldConfig:t,value:e,transformation:n})=>{if(n==="upper")return uD(e);if(n==="lower")return dD(e);const r=n.match(nv);if(r?.groups)return fD(e,r.groups,t??{});const i=n.match(U1);if(i?.groups)return hD(e,i.groups);const o=n.match(q1);if(o?.groups)return pD(e,o.groups);const s=n.match(cD);return s?.groups?gD(e,s.groups):String(e)},rv=({fieldConfig:t,value:e,transformations:n})=>(n.forEach(r=>{e=mD({fieldConfig:t,value:e,transformation:r})}),e),Lt=(t=0)=>new Promise(e=>{globalThis.setTimeout(()=>{e(void 0)},t)}),V1={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.blockfact.facti":["facti"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(V1);const H1={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(H1);var Ri=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},tc,Du,Ea;class vD{constructor(...e){tc.set(this,new Map),Du.set(this,new Map),Ea.set(this,new Map);for(const n of e)this.define(n)}define(e,n=!1){for(let[r,i]of Object.entries(e)){r=r.toLowerCase(),i=i.map(a=>a.toLowerCase()),Ri(this,Ea,"f").has(r)||Ri(this,Ea,"f").set(r,new Set);const o=Ri(this,Ea,"f").get(r);let s=!0;for(let a of i){const c=a.startsWith("*");if(a=c?a.slice(1):a,o?.add(a),s&&Ri(this,Du,"f").set(r,a),s=!1,c)continue;const u=Ri(this,tc,"f").get(a);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${u} -> ${a}". Pass \`force=true\` to override this definition.`);Ri(this,tc,"f").set(a,r)}}return this}getType(e){if(typeof e!="string")return null;const n=e.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),i=n.length<e.length;return!(r.length<n.length-1)&&i?null:Ri(this,tc,"f").get(r)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&Ri(this,Du,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:Ri(this,Ea,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const e of Ri(this,Ea,"f").values())Object.freeze(e);return this}_getTestState(){return{types:Ri(this,tc,"f"),extensions:Ri(this,Du,"f")}}}tc=new WeakMap,Du=new WeakMap,Ea=new WeakMap;const Jo=new vD(H1,V1)._freeze();var iv,K1;function bD(){if(K1)return iv;K1=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return iv=function(r,i,o){if(typeof i!="string")throw new Error("Input must be string");for(var s=i.length,a=0,c,u,d=0;d<s;d+=1){if(c=i.charCodeAt(d),u=i[d],t(c)&&e(i.charCodeAt(d+1))&&(d+=1,u+=i[d]),a+=r(u),a===o)return i.slice(0,d+1);if(a>o)return i.slice(0,d-u.length+1)}return i},iv}var ov,G1;function _D(){if(G1)return ov;G1=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return ov=function(r){if(typeof r!="string")throw new Error("Input must be string");for(var i=r.length,o=0,s=null,a=null,c=0;c<i;c++)s=r.charCodeAt(c),e(s)?a!=null&&t(a)?o+=1:o+=3:s<=127?o+=1:s>=128&&s<=2047?o+=2:s>=2048&&s<=65535&&(o+=3),a=s;return o},ov}var sv,W1;function yD(){if(W1)return sv;W1=1;var t=bD(),e=_D();return sv=t.bind(null,e),sv}var av,Y1;function wD(){if(Y1)return av;Y1=1;var t=yD(),e=/[\/\?<>\\:\*\|"]/g,n=/[\x00-\x1f\x80-\x9f]/g,r=/^\.+$/,i=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,o=/[\. ]+$/;function s(a,c){if(typeof a!="string")throw new Error("Input must be string");var u=a.replace(e,c).replace(n,c).replace(r,c).replace(i,c).replace(o,c);return t(u,255)}return av=function(a,c){var u=c&&c.replacement||"",d=s(a,u);return u===""?d:s(d,"")},av}var xD=wD();const kD=Bo(xD),J1=(t,e)=>new RegExp(`^${t.split("/").map(e).join("\\/")}\\b`),X1=t=>{const e=t.startsWith("@");return e&&(t=t.slice(1)),t=t.split("/").map(n=>encodeURIComponent(n).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)).join("/"),e?`@${t}`:t},SD=t=>decodeURIComponent(t),ah=t=>{const e=new Intl.NumberFormat(se(zt),{maximumFractionDigits:1}),n=1e3,r=n*1e3,i=r*1e3,o=i*1e3;return t<n?se(ue)("file_size_units.b",{values:{size:e.format(t)}}):t<r?se(ue)("file_size_units.kb",{values:{size:e.format(t/n)}}):t<i?se(ue)("file_size_units.mb",{values:{size:e.format(t/r)}}):t<o?se(ue)("file_size_units.gb",{values:{size:e.format(t/i)}}):se(ue)("file_size_units.tb",{values:{size:e.format(t/o)}})},Z1=(t,e)=>{if(!e.length)return t;const{filename:n,extension:r}=dn(t),i=new RegExp(`^${qt(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:""}$`),o=e.sort((a,c)=>vi(a.split(".")[0],c.split(".")[0])).findLast(a=>i.test(a));if(!o)return t;const s=Number(o.match(i)?.groups?.num??0)+1;return`${n}-${s}${r?`.${r}`:""}`},Q1=(t,{slugificationEnabled:e=!1,assetNamesInSameFolder:n=[]}={})=>{let r=kD(t.normalize());if(e){const{filename:i,extension:o}=dn(r);r=`${O1(i)}${o?`.${o}`:""}`}return Z1(r,n)},nc=t=>t.filter(Boolean).join("/"),lv=t=>{const e=t.split("/");let n=!1;return e.forEach((r,i)=>{if(r==="."||r===".."){if(n&&(e[i]=null,r==="..")){const o=e.findLastIndex((s,a)=>!!s&&a<i);o>-1&&(e[o]=null)}}else n=!0}),nc(e)},cv=t=>typeof t=="string"?new Blob([t],{type:"text/plain"}):t,$a=async t=>{const n=await cv(t).arrayBuffer();return va(new Blob([`blob ${n.byteLength}\0`,n]))},Bee="modulepreload",Uee=function(t){return"/"+t},qee={},ek=function(e,n,r){let i=Promise.resolve();function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})},uv="0.107.0",ED={"@jsquash/webp":"^1.5.0","@lexical/markdown":"^0.35.0","@sindresorhus/transliterate":"^2.0.0","@sveltia/ui":"^0.28.3","@sveltia/utils":"^0.8.5","create-react-class":"^15.7.0",dayjs:"^1.11.18",deepmerge:"^4.3.1",exifr:"^7.1.3","fast-deep-equal":"^3.1.3",flat:"^6.0.1","isomorphic-dompurify":"^2.28.0",leaflet:"^1.9.4",lexical:"^0.35.0",marked:"^16.3.0","marked-bidi":"^1.0.13",mime:"^4.1.0","parse-entities":"^4.0.2","pdfjs-dist":"^5.4.149",qrcode:"^1.5.4",react:"^19.1.1","react-dom":"^19.1.1","sanitize-filename":"^1.6.3","smol-toml":"^1.4.2","svelte-i18n":"^4.0.1",svgo:"^4.0.0","terra-draw":"^1.15.0","terra-draw-leaflet-adapter":"^1.0.3",turndown:"^7.2.1",yaml:"^2.8.1"},dv=t=>{const e=`https://unpkg.com/${t}`,n=ED[t]?.replace(/^\D/,"");return n?`${e}@${n}`:e},Ta=async(t,e)=>ek(()=>import(`${dv(t)}/${e}`),void 0),Ca=(t,e)=>{if(typeof t!="number")return NaN;if(!Number.isFinite(t))return t;const n=10**e;return Math.round(t*n)/n},$D=async(t,e)=>{if(!(e==="image")||!t.file)return{createdDate:void 0,coordinates:void 0};const{parse:r}=await Ta("exifr","dist/lite.esm.mjs"),{latitude:i,longitude:o,DateTimeOriginal:s,CreateDate:a=s}=await r(t.file).catch(()=>{})??{};return{createdDate:a instanceof Date?a:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(o)?{latitude:Ca(i,7),longitude:Ca(o,7)}:void 0}},TD=t=>{const e=new Image;return new Promise(n=>{const r=()=>{n({dimensions:{width:e.naturalWidth,height:e.naturalHeight}})};e.addEventListener("load",r,{once:!0}),e.src=t})},CD=async(t,e)=>{const n=document.createElement(e);return new Promise(r=>{const i=()=>{const{duration:o}=n;e==="audio"&&r({duration:o});const{videoWidth:s,videoHeight:a}=n;r({dimensions:{width:s,height:a},duration:o})};n.addEventListener("loadedmetadata",i,{once:!0}),n.src=t})},AD=async(t,e)=>e==="image"?TD(t):CD(t,e),PD=async(t,e,n)=>{const{dimensions:r,duration:i}=await AD(e,n),{createdDate:o,coordinates:s}=await $D(t,n);return{dimensions:r,duration:i,createdDate:o,coordinates:s}},tk=["avif","gif","jpeg","png","webp"],LD=tk.map(t=>`image/${t}`),fv=/\b(?:avif|gif|jpe?g|png|webp)$/i,ND=["image/svg+xml"],ID=/\b(?:svg)$/i,vo=[...LD,...ND],nk=["webp"],hv={},OD=async t=>{if(t in hv)return hv[t];const e=`image/${t}`,n=new OffscreenCanvas(1,1);n.getContext("2d");const i=(await n.convertToBlob({type:e})).type===e;return hv[t]=i,i},rk=async(t,{format:e="webp",quality:n=85}={})=>{const r=`image/${e}`;if(!await OD(e)&&nk.includes(e)){const o=t.getContext("2d").getImageData(0,0,t.width,t.height);try{const s=(await Ta(`@jsquash/${e}`,"encode.js?module")).default,a=await s(o,{quality:n});return new Blob([a],{type:r})}catch{}}return t.convertToBlob({type:r,quality:n/100})},RD=({width:t,height:e},{width:n=t,height:r=e,fit:i="scale-down"}={})=>{const o={scale:1,width:t,height:e};if(t===r&&e===r)return o;const s=t>e,a=t<r||e<r;let c=1,u=0,d=0;if(i==="scale-down"){if(a)return o;i="contain"}return i==="contain"&&(s?(n>r?(c=n/t,u=n):(c=r/t,u=r),d=e*c):(n>r?(c=r/e,d=r):(c=n/e,d=n),u=t*c)),{scale:c,width:u,height:d}},ik=(t,e,n)=>{const{scale:r,width:i,height:o}=RD(e,n);return t.width=i,t.height=o,{scale:r,width:i,height:o}},DD=async({blob:t})=>{const e=URL.createObjectURL(t),n=new Image;return new Promise(r=>{n.addEventListener("load",()=>{r({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(e)},{once:!0}),n.src=e})},MD=async({blob:t})=>{const e=URL.createObjectURL(t),n=document.createElement("video");return new Promise(r=>{n.addEventListener("canplay",()=>{n.pause(),r({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(e)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=e,n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n)})},FD=async t=>t.type.startsWith("video/")?MD({blob:t}):DD({blob:t}),pv=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{let s,a=0,c=0;try{s=await createImageBitmap(t),{width:a,height:c}=s}catch{({source:s,naturalWidth:a,naturalHeight:c}=await FD(t))}r??=a,i??=c;const u=new OffscreenCanvas(512,512),d=u.getContext("2d");return ik(u,{width:a,height:c},{fit:o,width:r,height:i}),d.drawImage(s,0,0,u.width,u.height),s instanceof HTMLVideoElement&&document.body.removeChild(s),rk(u,{format:e,quality:n})},zD=async t=>{const e=await t.text();try{const{optimize:n}=await Ta("svgo","dist/svgo.browser.js"),{data:r}=n(e);return new Blob([r],{type:t.type})}catch{}return t},rc=dv("pdfjs-dist"),jD=`${rc}/build/pdf.min.mjs`,BD=`${rc}/build/pdf.worker.min.mjs`,UD={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${rc}/cmaps/`,iccUrl:`${rc}/iccs/`,standardFontDataUrl:`${rc}/standard_fonts/`,wasmUrl:`${rc}/wasm/`};let lh;const qD=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{if(!lh)try{lh=await import(jD),lh.GlobalWorkerOptions.workerSrc=BD}catch{throw new Error("Failed to load PDF.js library")}const s=URL.createObjectURL(t),a=new OffscreenCanvas(512,512),c=a.getContext("2d");try{const d=await(await lh.getDocument({...UD,url:s}).promise).getPage(1),f=d.getViewport({scale:1}),{scale:h}=ik(a,{width:f.width,height:f.height},{width:r,height:i,fit:o});await d.render({canvasContext:c,viewport:h===1?f:d.getViewport({scale:h})}).promise,URL.revokeObjectURL(s)}catch{throw new Error("Failed to render PDF")}return rk(a,{format:e,quality:n})},gv=new Set,Rs=async(t,e=0)=>{const{file:n,blobURL:r,name:i,path:o}=t;if(r)return fetch(r).then(a=>a.blob());let s;if(n)s=n;else{if(gv.has(o)&&e<=25)return await Lt(200),Rs(t,e+1);gv.add(o);const a=await se(bn)?.fetchBlob?.(t);if(!a)throw new Error("Failed to retrieve blob");s=new Blob([a],{type:Jo.getType(i)??a.type})}return t.blobURL=URL.createObjectURL(s),gv.delete(o),s},mv=async t=>(t.blobURL||await Rs(t),t.blobURL);let ch;const vv=async(t,{cacheOnly:e=!1}={})=>{const n=t.name.endsWith(".pdf");if(!(["image","video"].includes(t.kind)||n))return;if(ch===void 0){const{databaseName:i}=se(bn)?.repository??{};ch=i?new mo(i,"asset-thumbnails"):null}let r=await ch?.get(t.sha);if(!r){if(e)return;const i=await Rs(t),o={format:"webp",quality:85,width:512,height:512,fit:"contain"};r=n?await qD(i,o):await pv(i,o),await ch?.set(t.sha,r)}return URL.createObjectURL(r)},Mu=(t,{pathOnly:e=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{const{publicPath:i,entryRelative:o,hasTemplateTags:s}=t.folder.collectionName===void 0?t.folder:nh(t.path).find(({collectionName:d})=>d!==void 0)??se(ka);if(o)return e&&r&&dn(t.path).dirname===dn(Object.values(r.locales)[0].path).dirname?t.name:void 0;const{_baseURL:a="",output:{encode_file_path:c=!1}={}}=se(Et);let u=s?t.path.replace(J1(t.folder.internalPath??"",d=>{const f=d.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return f?`(?<${f}>[^/]+)`:qt(d)}),i?.replaceAll(/{{(.+?)}}/g,"$<$1>")??""):t.path.replace(t.folder.internalPath??"",i==="/"?"":i??"");if(c&&(u=X1(u)),!(!u.startsWith("/")&&!n))return e?u:`${a}${u}`},ic=async({value:t,entry:e,collectionName:n,fileName:r,thumbnail:i=!1})=>{if(!t)return;if(/^(?:https?|data|blob):/.test(t))return t;const o=Vv({value:t,entry:e,collectionName:n,fileName:r});if(o)return(i?await vv(o):await mv(o))??Mu(o)},uh={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},dh=async t=>{const{kind:e,path:n}=t,{blobBaseURL:r}=se(bn)?.repository??{},i=await mv(t),o=Mu(t,{allowSpecial:!0,pathOnly:!0})??i;let s={};return["image","video","audio"].includes(e)&&i&&(s=await PD(t,i,e)),{...s,publicURL:Mu(t),repoBlobURL:r?`${r}/${n}`:void 0,usedEntries:o?await Uv(o):[]}},oc=nt(!1),bo=nt(),bv=nt([]),ri=nt([]),_v=nt([]),ok=t=>se(bv).filter(({collectionName:e,filePathMap:n})=>n?Object.values(n).includes(t):Kr(e)?._file?.fullPathRegEx?.test(t)).sort((e,n)=>n.folderPath?.localeCompare(e.folderPath??"")??0),VD=()=>{try{return se(ue)("index_file")}catch{return"Index File"}},ii=t=>{if(!rd(t))return;const{index_file:e}=t;if(!e)return;const n=e===!0?{}:e;return{name:n.name??"_index",label:n.label??VD(),icon:n.icon??"home",fields:n.fields,editor:n.editor}},_o=(t,e)=>{const n=ii(t);return n?e.slug===n.name:!1},HD=t=>{const e=ii(t);return e?!wo(t.name).some(({slug:n})=>n===e.name):!1};rr.extend(Jm),rr.extend(Xm),rr.extend(Zm);const KD=/{{(?:year|month|day|hour|minute|second)}}/,Xo=t=>ok(Object.values(t.locales)[0].path).map(({collectionName:e})=>Kr(e)).filter(e=>!!e),GD=({dateFieldName:t,fields:e,content:n})=>{const r=t?e.find(({widget:a,name:c})=>a==="datetime"&&c===t):e.find(({widget:a})=>a==="datetime"),i=r?n[r.name]:void 0;if(!r||!i)return;const{format:o,picker_utc:s=!1}=r;return Sa({date:(s?rr.utc:rr)(i,o).toDate(),timeZone:s?"UTC":void 0})},sk=(t,e,n,r)=>{const{show_preview_links:i=!0,_baseURL:o}=se(Et)??{},{slug:s,path:a,content:c}=t.locales[e]??{},{preview_path:u,preview_path_date_field:d,fields:f=[]}=r??n;if(!i||!o||!a||!c||!u)return;const h=_o(n,t),g=(h?ii(n):void 0)?.fields??f;let m;if(!(KD.test(u)&&(m=GD({dateFieldName:d,fields:g,content:c}),!m)))try{const v=xo(u,{type:"preview_path",collection:n,content:c,locale:e,currentSlug:s,entryFilePath:a,dateTimeParts:m,isIndexFile:h});return`${o.replace(/\/$/,"")}/${v.replace(/^\//,"")}`}catch{return}},WD=(t,e)=>`${se(bn)?.repository?.blobBaseURL}/${t.locales[e]?.path}?plain=1`,fh=t=>!("divider"in t)&&typeof t.file=="string"&&Array.isArray(t.fields),hh=t=>t.filter(e=>fh(e)),sc=(t,e)=>{const n=typeof t=="string"?Kr(t):t;if(!(!n||!("_fileMap"in n)))return n._fileMap[e]},Fu=t=>t.label||t.name,Ds=(t,e)=>"_fileMap"in t?Object.values(t._fileMap).filter(({_file:n,_i18n:r})=>n.fullPath===e.locales[r.defaultLocale]?.path):[],yv=(t,e)=>se(ri).find(n=>Xo(n).some(r=>r.name===t&&Ds(r,n).some(i=>i.name===e))),ak=(t,e)=>{if(t&&e){const{collections:n,singletons:r}=se(Et);if(t==="_singletons")return Array.isArray(r)?hh(r).findIndex(o=>o.name===e):-1;const i=zs({collections:n}).find(({name:o})=>o===t);if(i&&"files"in i)return i.files.findIndex(({name:o})=>o===e)??-1}return-1},wv=["file","image"],ph=[...wv,"relation","select"],lk=[...ph,"list","number"],ck=({multiline:t,dotAll:e,source:n})=>t||e||n.includes("[\\s\\S]")||n.includes("[\\S\\s]"),uk=t=>Yo(Object.fromEntries(Object.entries(Yi(t)).filter(([e])=>!e.split(".").pop()?.startsWith("__sc_")))),dk=t=>t.replace(/"/g,"'"),Aa=t=>t.replace(/"/g,"&quot;"),xv=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,YD=new RegExp(xv,"g"),JD=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,XD=new RegExp(`${xv.source}|${JD.source}`),gh=new Map,fk={id:"image",label:"Image",fields:[{name:"src",label:"Source",widget:"image"},{name:"alt",label:"Alt Text",required:!1},{name:"title",label:"Title",required:!1}],pattern:xv,toBlock:t=>{const{src:e="",alt:n="",title:r=""}=t;return e?`![${n}](${e}${r?` "${dk(r)}"`:""})`:""},toPreview:t=>{const{src:e="",alt:n="",title:r=""}=t;return`<img src="${Aa(e)}" alt="${Aa(n)}" title="${Aa(r)}">`}},ZD={id:"linked-image",label:"Image",fields:[...fk.fields,{name:"link",label:"Link",required:!1}],pattern:XD,fromBlock:t=>{const{src:e,alt:n,title:r,src2:i,alt2:o,title2:s,link:a}=t.groups??{};return{src:(e||i||"").trim(),alt:(n||o||"").trim(),title:(r||s||"").trim(),link:(a||"").trim()}},toBlock:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=e?`![${n}](${e}${r?` "${dk(r)}"`:""})`:"";return o&&i?`[${o}](${i})`:o},toPreview:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=`<img src="${Aa(e)}" alt="${Aa(n)}" title="${Aa(r)}">`;return i?`<a href="${Aa(i)}">${o}</a>`:o}},hk=t=>{if(gh.has(t))return gh.get(t);const e={icon:"image",label:se(ue)("editor_components.image"),fields:[{name:"src",label:se(ue)("editor_components.src"),widget:"image"},{name:"alt",label:se(ue)("editor_components.alt"),required:!1},{name:"title",label:se(ue)("editor_components.title"),required:!1}]};return{image:{...fk,...e},"linked-image":{...ZD,...e,fields:[...e.fields,{name:"link",label:se(ue)("editor_components.link"),required:!1}]}}[t]};var kv,pk;function gk(){if(pk)return kv;pk=1;const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:c,construct:u}=typeof Reflect<"u"&&Reflect;o||(o=function(Te){return Te}),s||(s=function(Te){return Te}),c||(c=function(Te,ze){for(var Oe=arguments.length,Ae=new Array(Oe>2?Oe-2:0),we=2;we<Oe;we++)Ae[we-2]=arguments[we];return Te.apply(ze,Ae)}),u||(u=function(Te){for(var ze=arguments.length,Oe=new Array(ze>1?ze-1:0),Ae=1;Ae<ze;Ae++)Oe[Ae-1]=arguments[Ae];return new Te(...Oe)});const d=x(Array.prototype.forEach),f=x(Array.prototype.lastIndexOf),h=x(Array.prototype.pop),p=x(Array.prototype.push),g=x(Array.prototype.splice),m=x(String.prototype.toLowerCase),v=x(String.prototype.toString),b=x(String.prototype.match),y=x(String.prototype.replace),w=x(String.prototype.indexOf),E=x(String.prototype.trim),k=x(Object.prototype.hasOwnProperty),S=x(RegExp.prototype.test),C=T(TypeError);function x(Ue){return function(Te){Te instanceof RegExp&&(Te.lastIndex=0);for(var ze=arguments.length,Oe=new Array(ze>1?ze-1:0),Ae=1;Ae<ze;Ae++)Oe[Ae-1]=arguments[Ae];return c(Ue,Te,Oe)}}function T(Ue){return function(){for(var Te=arguments.length,ze=new Array(Te),Oe=0;Oe<Te;Oe++)ze[Oe]=arguments[Oe];return u(Ue,ze)}}function A(Ue,Te){let ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;e&&e(Ue,null);let Oe=Te.length;for(;Oe--;){let Ae=Te[Oe];if(typeof Ae=="string"){const we=ze(Ae);we!==Ae&&(n(Te)||(Te[Oe]=we),Ae=we)}Ue[Ae]=!0}return Ue}function P(Ue){for(let Te=0;Te<Ue.length;Te++)k(Ue,Te)||(Ue[Te]=null);return Ue}function L(Ue){const Te=a(null);for(const[ze,Oe]of t(Ue))k(Ue,ze)&&(Array.isArray(Oe)?Te[ze]=P(Oe):Oe&&typeof Oe=="object"&&Oe.constructor===Object?Te[ze]=L(Oe):Te[ze]=Oe);return Te}function I(Ue,Te){for(;Ue!==null;){const Oe=i(Ue,Te);if(Oe){if(Oe.get)return x(Oe.get);if(typeof Oe.value=="function")return x(Oe.value)}Ue=r(Ue)}function ze(){return null}return ze}const N=o(["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"]),D=o(["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","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=o(["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"]),H=o(["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"]),W=o(["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"]),Y=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=o(["#text"]),F=o(["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"]),K=o(["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","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"]),J=o(["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"]),Q=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),oe=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),re=s(/<%[\w\W]*|[\w\W]*%>/gm),ee=s(/\$\{[\w\W]*/gm),ne=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),ae=s(/^aria-[\-\w]+$/),fe=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),be=s(/^(?:\w+script|data):/i),pe=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),he=s(/^html$/i),ge=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var ve=Object.freeze({__proto__:null,ARIA_ATTR:ae,ATTR_WHITESPACE:pe,CUSTOM_ELEMENT:ge,DATA_ATTR:ne,DOCTYPE_NAME:he,ERB_EXPR:re,IS_ALLOWED_URI:fe,IS_SCRIPT_OR_DATA:be,MUSTACHE_EXPR:oe,TMPLIT_EXPR:ee});const _e={element:1,text:3,progressingInstruction:7,comment:8,document:9},$e=function(){return typeof window>"u"?null:window},Ce=function(Te,ze){if(typeof Te!="object"||typeof Te.createPolicy!="function")return null;let Oe=null;const Ae="data-tt-policy-suffix";ze&&ze.hasAttribute(Ae)&&(Oe=ze.getAttribute(Ae));const we="dompurify"+(Oe?"#"+Oe:"");try{return Te.createPolicy(we,{createHTML(Pe){return Pe},createScriptURL(Pe){return Pe}})}catch{return console.warn("TrustedTypes policy "+we+" could not be created."),null}},Re=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function He(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$e();const Te=ct=>He(ct);if(Te.version="3.2.7",Te.removed=[],!Ue||!Ue.document||Ue.document.nodeType!==_e.document||!Ue.Element)return Te.isSupported=!1,Te;let{document:ze}=Ue;const Oe=ze,Ae=Oe.currentScript,{DocumentFragment:we,HTMLTemplateElement:Pe,Node:ye,Element:ot,NodeFilter:Qe,NamedNodeMap:Ne=Ue.NamedNodeMap||Ue.MozNamedAttrMap,HTMLFormElement:je,DOMParser:Xe,trustedTypes:st}=Ue,lt=ot.prototype,xt=I(lt,"cloneNode"),Yt=I(lt,"remove"),wn=I(lt,"nextSibling"),rn=I(lt,"childNodes"),on=I(lt,"parentNode");if(typeof Pe=="function"){const ct=ze.createElement("template");ct.content&&ct.content.ownerDocument&&(ze=ct.content.ownerDocument)}let pt,Mt="";const{implementation:cn,createNodeIterator:En,createDocumentFragment:mn,getElementsByTagName:Kt}=ze,{importNode:It}=Oe;let kt=Re();Te.isSupported=typeof t=="function"&&typeof on=="function"&&cn&&cn.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:hn,ERB_EXPR:Cr,TMPLIT_EXPR:ui,DATA_ATTR:ht,ARIA_ATTR:sn,IS_SCRIPT_OR_DATA:Ln,ATTR_WHITESPACE:$n,CUSTOM_ELEMENT:Dr}=ve;let{IS_ALLOWED_URI:Wn}=ve,At=null;const Yn=A({},[...N,...D,...B,...W,...O]);let Bt=null;const ji=A({},[...F,...K,...J,...Q]);let Ut=Object.seal(a(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}})),Ei=null,vn=null,Qr=!0,Mr=!0,Fo=!1,di=!0,Jt=!1,ut=!0,bt=!1,Nn=!1,In=!1,pr=!1,fi=!1,zn=!1,gr=!0,zo=!1;const rf="user-content-";let yl=!0,ar=!1,mr={},hi=null;const OP=A({},["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"]);let RP=null;const DP=A({},["audio","video","img","source","image","track"]);let yw=null;const MP=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cg="http://www.w3.org/1998/Math/MathML",ug="http://www.w3.org/2000/svg",ms="http://www.w3.org/1999/xhtml";let tu=ms,ww=!1,xw=null;const Iee=A({},[cg,ug,ms],v);let dg=A({},["mi","mo","mn","ms","mtext"]),fg=A({},["annotation-xml"]);const Oee=A({},["title","style","font","a","script"]);let of=null;const Ree=["application/xhtml+xml","text/html"],Dee="text/html";let vr=null,nu=null;const Mee=ze.createElement("form"),FP=function(de){return de instanceof RegExp||de instanceof Function},kw=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(nu&&nu===de)){if((!de||typeof de!="object")&&(de={}),de=L(de),of=Ree.indexOf(de.PARSER_MEDIA_TYPE)===-1?Dee:de.PARSER_MEDIA_TYPE,vr=of==="application/xhtml+xml"?v:m,At=k(de,"ALLOWED_TAGS")?A({},de.ALLOWED_TAGS,vr):Yn,Bt=k(de,"ALLOWED_ATTR")?A({},de.ALLOWED_ATTR,vr):ji,xw=k(de,"ALLOWED_NAMESPACES")?A({},de.ALLOWED_NAMESPACES,v):Iee,yw=k(de,"ADD_URI_SAFE_ATTR")?A(L(MP),de.ADD_URI_SAFE_ATTR,vr):MP,RP=k(de,"ADD_DATA_URI_TAGS")?A(L(DP),de.ADD_DATA_URI_TAGS,vr):DP,hi=k(de,"FORBID_CONTENTS")?A({},de.FORBID_CONTENTS,vr):OP,Ei=k(de,"FORBID_TAGS")?A({},de.FORBID_TAGS,vr):L({}),vn=k(de,"FORBID_ATTR")?A({},de.FORBID_ATTR,vr):L({}),mr=k(de,"USE_PROFILES")?de.USE_PROFILES:!1,Qr=de.ALLOW_ARIA_ATTR!==!1,Mr=de.ALLOW_DATA_ATTR!==!1,Fo=de.ALLOW_UNKNOWN_PROTOCOLS||!1,di=de.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Jt=de.SAFE_FOR_TEMPLATES||!1,ut=de.SAFE_FOR_XML!==!1,bt=de.WHOLE_DOCUMENT||!1,pr=de.RETURN_DOM||!1,fi=de.RETURN_DOM_FRAGMENT||!1,zn=de.RETURN_TRUSTED_TYPE||!1,In=de.FORCE_BODY||!1,gr=de.SANITIZE_DOM!==!1,zo=de.SANITIZE_NAMED_PROPS||!1,yl=de.KEEP_CONTENT!==!1,ar=de.IN_PLACE||!1,Wn=de.ALLOWED_URI_REGEXP||fe,tu=de.NAMESPACE||ms,dg=de.MATHML_TEXT_INTEGRATION_POINTS||dg,fg=de.HTML_INTEGRATION_POINTS||fg,Ut=de.CUSTOM_ELEMENT_HANDLING||{},de.CUSTOM_ELEMENT_HANDLING&&FP(de.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ut.tagNameCheck=de.CUSTOM_ELEMENT_HANDLING.tagNameCheck),de.CUSTOM_ELEMENT_HANDLING&&FP(de.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ut.attributeNameCheck=de.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),de.CUSTOM_ELEMENT_HANDLING&&typeof de.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ut.allowCustomizedBuiltInElements=de.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Jt&&(Mr=!1),fi&&(pr=!0),mr&&(At=A({},O),Bt=[],mr.html===!0&&(A(At,N),A(Bt,F)),mr.svg===!0&&(A(At,D),A(Bt,K),A(Bt,Q)),mr.svgFilters===!0&&(A(At,B),A(Bt,K),A(Bt,Q)),mr.mathMl===!0&&(A(At,W),A(Bt,J),A(Bt,Q))),de.ADD_TAGS&&(At===Yn&&(At=L(At)),A(At,de.ADD_TAGS,vr)),de.ADD_ATTR&&(Bt===ji&&(Bt=L(Bt)),A(Bt,de.ADD_ATTR,vr)),de.ADD_URI_SAFE_ATTR&&A(yw,de.ADD_URI_SAFE_ATTR,vr),de.FORBID_CONTENTS&&(hi===OP&&(hi=L(hi)),A(hi,de.FORBID_CONTENTS,vr)),yl&&(At["#text"]=!0),bt&&A(At,["html","head","body"]),At.table&&(A(At,["tbody"]),delete Ei.tbody),de.TRUSTED_TYPES_POLICY){if(typeof de.TRUSTED_TYPES_POLICY.createHTML!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof de.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');pt=de.TRUSTED_TYPES_POLICY,Mt=pt.createHTML("")}else pt===void 0&&(pt=Ce(st,Ae)),pt!==null&&typeof Mt=="string"&&(Mt=pt.createHTML(""));o&&o(de),nu=de}},zP=A({},[...D,...B,...H]),jP=A({},[...W,...Y]),Fee=function(de){let qe=on(de);(!qe||!qe.tagName)&&(qe={namespaceURI:tu,tagName:"template"});const at=m(de.tagName),Tn=m(qe.tagName);return xw[de.namespaceURI]?de.namespaceURI===ug?qe.namespaceURI===ms?at==="svg":qe.namespaceURI===cg?at==="svg"&&(Tn==="annotation-xml"||dg[Tn]):!!zP[at]:de.namespaceURI===cg?qe.namespaceURI===ms?at==="math":qe.namespaceURI===ug?at==="math"&&fg[Tn]:!!jP[at]:de.namespaceURI===ms?qe.namespaceURI===ug&&!fg[Tn]||qe.namespaceURI===cg&&!dg[Tn]?!1:!jP[at]&&(Oee[at]||!zP[at]):!!(of==="application/xhtml+xml"&&xw[de.namespaceURI]):!1},jo=function(de){p(Te.removed,{element:de});try{on(de).removeChild(de)}catch{Yt(de)}},wl=function(de,qe){try{p(Te.removed,{attribute:qe.getAttributeNode(de),from:qe})}catch{p(Te.removed,{attribute:null,from:qe})}if(qe.removeAttribute(de),de==="is")if(pr||fi)try{jo(qe)}catch{}else try{qe.setAttribute(de,"")}catch{}},BP=function(de){let qe=null,at=null;if(In)de="<remove></remove>"+de;else{const tr=b(de,/^[\r\n\t ]+/);at=tr&&tr[0]}of==="application/xhtml+xml"&&tu===ms&&(de='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+de+"</body></html>");const Tn=pt?pt.createHTML(de):de;if(tu===ms)try{qe=new Xe().parseFromString(Tn,of)}catch{}if(!qe||!qe.documentElement){qe=cn.createDocument(tu,"template",null);try{qe.documentElement.innerHTML=ww?Mt:Tn}catch{}}const Fr=qe.body||qe.documentElement;return de&&at&&Fr.insertBefore(ze.createTextNode(at),Fr.childNodes[0]||null),tu===ms?Kt.call(qe,bt?"html":"body")[0]:bt?qe.documentElement:Fr},UP=function(de){return En.call(de.ownerDocument||de,de,Qe.SHOW_ELEMENT|Qe.SHOW_COMMENT|Qe.SHOW_TEXT|Qe.SHOW_PROCESSING_INSTRUCTION|Qe.SHOW_CDATA_SECTION,null)},Sw=function(de){return de instanceof je&&(typeof de.nodeName!="string"||typeof de.textContent!="string"||typeof de.removeChild!="function"||!(de.attributes instanceof Ne)||typeof de.removeAttribute!="function"||typeof de.setAttribute!="function"||typeof de.namespaceURI!="string"||typeof de.insertBefore!="function"||typeof de.hasChildNodes!="function")},qP=function(de){return typeof ye=="function"&&de instanceof ye};function vs(ct,de,qe){d(ct,at=>{at.call(Te,de,qe,nu)})}const VP=function(de){let qe=null;if(vs(kt.beforeSanitizeElements,de,null),Sw(de))return jo(de),!0;const at=vr(de.nodeName);if(vs(kt.uponSanitizeElement,de,{tagName:at,allowedTags:At}),ut&&de.hasChildNodes()&&!qP(de.firstElementChild)&&S(/<[/\w!]/g,de.innerHTML)&&S(/<[/\w!]/g,de.textContent)||de.nodeType===_e.progressingInstruction||ut&&de.nodeType===_e.comment&&S(/<[/\w]/g,de.data))return jo(de),!0;if(!At[at]||Ei[at]){if(!Ei[at]&&KP(at)&&(Ut.tagNameCheck instanceof RegExp&&S(Ut.tagNameCheck,at)||Ut.tagNameCheck instanceof Function&&Ut.tagNameCheck(at)))return!1;if(yl&&!hi[at]){const Tn=on(de)||de.parentNode,Fr=rn(de)||de.childNodes;if(Fr&&Tn){const tr=Fr.length;for(let pi=tr-1;pi>=0;--pi){const bs=xt(Fr[pi],!0);bs.__removalCount=(de.__removalCount||0)+1,Tn.insertBefore(bs,wn(de))}}}return jo(de),!0}return de instanceof ot&&!Fee(de)||(at==="noscript"||at==="noembed"||at==="noframes")&&S(/<\/no(script|embed|frames)/i,de.innerHTML)?(jo(de),!0):(Jt&&de.nodeType===_e.text&&(qe=de.textContent,d([hn,Cr,ui],Tn=>{qe=y(qe,Tn," ")}),de.textContent!==qe&&(p(Te.removed,{element:de.cloneNode()}),de.textContent=qe)),vs(kt.afterSanitizeElements,de,null),!1)},HP=function(de,qe,at){if(gr&&(qe==="id"||qe==="name")&&(at in ze||at in Mee))return!1;if(!(Mr&&!vn[qe]&&S(ht,qe))){if(!(Qr&&S(sn,qe))){if(!Bt[qe]||vn[qe]){if(!(KP(de)&&(Ut.tagNameCheck instanceof RegExp&&S(Ut.tagNameCheck,de)||Ut.tagNameCheck instanceof Function&&Ut.tagNameCheck(de))&&(Ut.attributeNameCheck instanceof RegExp&&S(Ut.attributeNameCheck,qe)||Ut.attributeNameCheck instanceof Function&&Ut.attributeNameCheck(qe,de))||qe==="is"&&Ut.allowCustomizedBuiltInElements&&(Ut.tagNameCheck instanceof RegExp&&S(Ut.tagNameCheck,at)||Ut.tagNameCheck instanceof Function&&Ut.tagNameCheck(at))))return!1}else if(!yw[qe]){if(!S(Wn,y(at,$n,""))){if(!((qe==="src"||qe==="xlink:href"||qe==="href")&&de!=="script"&&w(at,"data:")===0&&RP[de])){if(!(Fo&&!S(Ln,y(at,$n,"")))){if(at)return!1}}}}}}return!0},KP=function(de){return de!=="annotation-xml"&&b(de,Dr)},GP=function(de){vs(kt.beforeSanitizeAttributes,de,null);const{attributes:qe}=de;if(!qe||Sw(de))return;const at={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Bt,forceKeepAttr:void 0};let Tn=qe.length;for(;Tn--;){const Fr=qe[Tn],{name:tr,namespaceURI:pi,value:bs}=Fr,ru=vr(tr),Ew=bs;let Ar=tr==="value"?Ew:E(Ew);if(at.attrName=ru,at.attrValue=Ar,at.keepAttr=!0,at.forceKeepAttr=void 0,vs(kt.uponSanitizeAttribute,de,at),Ar=at.attrValue,zo&&(ru==="id"||ru==="name")&&(wl(tr,de),Ar=rf+Ar),ut&&S(/((--!?|])>)|<\/(style|title|textarea)/i,Ar)){wl(tr,de);continue}if(ru==="attributename"&&b(Ar,"href")){wl(tr,de);continue}if(at.forceKeepAttr)continue;if(!at.keepAttr){wl(tr,de);continue}if(!di&&S(/\/>/i,Ar)){wl(tr,de);continue}Jt&&d([hn,Cr,ui],YP=>{Ar=y(Ar,YP," ")});const WP=vr(de.nodeName);if(!HP(WP,ru,Ar)){wl(tr,de);continue}if(pt&&typeof st=="object"&&typeof st.getAttributeType=="function"&&!pi)switch(st.getAttributeType(WP,ru)){case"TrustedHTML":{Ar=pt.createHTML(Ar);break}case"TrustedScriptURL":{Ar=pt.createScriptURL(Ar);break}}if(Ar!==Ew)try{pi?de.setAttributeNS(pi,tr,Ar):de.setAttribute(tr,Ar),Sw(de)?jo(de):h(Te.removed)}catch{wl(tr,de)}}vs(kt.afterSanitizeAttributes,de,null)},zee=function ct(de){let qe=null;const at=UP(de);for(vs(kt.beforeSanitizeShadowDOM,de,null);qe=at.nextNode();)vs(kt.uponSanitizeShadowNode,qe,null),VP(qe),GP(qe),qe.content instanceof we&&ct(qe.content);vs(kt.afterSanitizeShadowDOM,de,null)};return Te.sanitize=function(ct){let de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=null,at=null,Tn=null,Fr=null;if(ww=!ct,ww&&(ct="<!-->"),typeof ct!="string"&&!qP(ct))if(typeof ct.toString=="function"){if(ct=ct.toString(),typeof ct!="string")throw C("dirty is not a string, aborting")}else throw C("toString is not a function");if(!Te.isSupported)return ct;if(Nn||kw(de),Te.removed=[],typeof ct=="string"&&(ar=!1),ar){if(ct.nodeName){const bs=vr(ct.nodeName);if(!At[bs]||Ei[bs])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(ct instanceof ye)qe=BP("<!---->"),at=qe.ownerDocument.importNode(ct,!0),at.nodeType===_e.element&&at.nodeName==="BODY"||at.nodeName==="HTML"?qe=at:qe.appendChild(at);else{if(!pr&&!Jt&&!bt&&ct.indexOf("<")===-1)return pt&&zn?pt.createHTML(ct):ct;if(qe=BP(ct),!qe)return pr?null:zn?Mt:""}qe&&In&&jo(qe.firstChild);const tr=UP(ar?ct:qe);for(;Tn=tr.nextNode();)VP(Tn),GP(Tn),Tn.content instanceof we&&zee(Tn.content);if(ar)return ct;if(pr){if(fi)for(Fr=mn.call(qe.ownerDocument);qe.firstChild;)Fr.appendChild(qe.firstChild);else Fr=qe;return(Bt.shadowroot||Bt.shadowrootmode)&&(Fr=It.call(Oe,Fr,!0)),Fr}let pi=bt?qe.outerHTML:qe.innerHTML;return bt&&At["!doctype"]&&qe.ownerDocument&&qe.ownerDocument.doctype&&qe.ownerDocument.doctype.name&&S(he,qe.ownerDocument.doctype.name)&&(pi="<!DOCTYPE "+qe.ownerDocument.doctype.name+`>
137
+ `,n)+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;const n=eh(e),r=Zl(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=eh(e),r=Zl(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(r=>r.type==="newline"||r.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;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function FR(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new DR||null,prettyErrors:e}}function zR(t,e={}){const{lineCounter:n,prettyErrors:r}=FR(e),i=new MR(n?.addNewLine),o=new LR(e);let s=null;for(const a of o.compose(i.parse(t),!0,t.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new Lu(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(h1(t,n)),s.warnings.forEach(h1(t,n))),s}function T1(t,e,n){let r;typeof e=="function"?r=e:n===void 0&&e&&typeof e=="object"&&(n=e);const i=zR(t,n);if(!i)return null;if(i.warnings.forEach(o=>q0(i.options.logLevel,o)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function Gm(t,e,n){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(t===void 0){const{keepUndefined:i}=n??e??{};if(!i)return}return xu(t)&&!r?t.toString(n):new Pu(t,r,n).toString(n)}const Is=nt([]),ka=Qt([Is],([t],e)=>{e(t.find(({collectionName:n,internalPath:r})=>n===void 0&&r!==void 0))}),Gi=nt(),th=Qt([Gi,ka],([t,e])=>t?.internalPath!==void 0?t:e),Wi=({collectionName:t,fileName:e,keyPath:n})=>se(Is).find(r=>r.collectionName===t&&r.fileName===e&&r.keyPath===n),nh=(t,{matchSubFolders:e=!0}={})=>{const{filename:n}=dn(t);return n.startsWith("+")?[]:se(Is).filter(({internalPath:r,entryRelative:i})=>r===void 0?!1:i?t.startsWith(`${r}/`):new RegExp(`^${r.replace(/{{.+?}}/g,".+?")}${r&&e?"\\b":"$"}`).test(dn(t).dirname??"")).sort((r,i)=>(i.internalPath??"").localeCompare(r.internalPath??"")??0)},Wm=t=>!!t&&!t.entryRelative&&!t.hasTemplateTags;class mo{#t;#n="";#r="";#a={};#l=[];constructor(e,n,{keyPath:r,autoIncrement:i,indexes:o=[]}={}){this.#t=void 0,this.#n=e,this.#r=n,this.#a={keyPath:r,autoIncrement:i},this.#l=o}async#o(e){return new Promise(n=>{const r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{const i=r.result,o=this.#r,s=i.objectStoreNames.contains(o)?i.transaction(o,"readwrite").objectStore(o):i.createObjectStore(o,this.#a);this.#l.forEach(({name:a,keyPath:c,options:u})=>{s.indexNames.contains(a)||s.createIndex(a,c,u)})},r.onsuccess=()=>{n(r.result)}})}async#s(){let e=!1,n=await this.#o();const{version:r,objectStoreNames:i}=n,o=this.#r;if(i.contains(o)){const s=n.transaction(o).objectStore(o);e=this.#l.some(({name:a})=>!s.indexNames.contains(a))}else e=!0;return e&&(n.close(),n=await this.#o(r+1)),n.onversionchange=()=>{n.close(),this.#t=void 0},n}async#e(e){this.#t??=await this.#s();const n=this.#t,r=this.#r,i=n.transaction(r,"readwrite"),o=e(i.objectStore(r));return o?new Promise(s=>{o.onsuccess=()=>{s(o.result)}}):new Promise(s=>{i.oncomplete=()=>{s(void 0)}})}async set(e,n){return this.#e(r=>r.put(n,e))}async put(e){return this.#e(n=>n.put(e))}async saveEntries(e){return this.#e(n=>{e.forEach(([r,i])=>{n.put(i,r)})})}async get(e){return this.#e(n=>n.get(e))}async keys(){return this.#e(e=>e.getAllKeys())}async values(){return this.#e(e=>e.getAll())}async entries(){const[e,n]=await Promise.all([this.keys(),this.values()]);return e.map((r,i)=>[r,n[i]])}async#i({callback:e=void 0,index:n=void 0,query:r=void 0,direction:i="next",multiple:o=!1}){return new Promise(s=>{this.#e(a=>{const c=(n?a.index(n):a).openCursor(r,i),u=[];c.onsuccess=()=>{const d=c.result;if(d){const{value:f}=d;typeof e!="function"||e(f)?o?(u.push(f),d.continue()):s(f):d.continue()}else s(o?u:void 0)}})})}async find(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r})}async findLast(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r,direction:"prev"})}async filter(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r,multiple:!0})}async delete(e){await this.#e(n=>n.delete(e))}async deleteEntries(e){await this.#e(n=>{e.forEach(r=>{n.delete(r)})})}async clear(){await this.#e(e=>e.clear())}}class ni{static async set(e,n){globalThis.localStorage.setItem(e,JSON.stringify(n))}static async get(e){const n=globalThis.localStorage.getItem(e);return n?JSON.parse(n):null}static async delete(e){globalThis.localStorage.removeItem(e)}static async clear(){globalThis.localStorage.clear()}static async keys(){return Object.keys(globalThis.localStorage)}static async values(){return Object.values(globalThis.localStorage).map(e=>JSON.parse(e))}static async entries(){return Object.entries(globalThis.localStorage).map(([e,n])=>[e,JSON.parse(n)])}}const C1=t=>Array.isArray(t)&&t.every(e=>Gt(e)),Ru=t=>[...new Set(t)];var Ym,A1;function jR(){return A1||(A1=1,Ym=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var s=o[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}),Ym}var BR=jR();const an=Bo(BR);function P1(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function L1(t){return t}function Yi(t,e){e=e||{};const n=e.delimiter||".",r=e.maxDepth,i=e.transformKey||L1,o={};function s(a,c,u){u=u||1,Object.keys(a).forEach(function(d){const f=a[d],h=e.safe&&Array.isArray(f),p=Object.prototype.toString.call(f),g=P1(f),m=p==="[object Object]"||p==="[object Array]",v=c?c+n+i(d):i(d);if(!h&&!g&&m&&Object.keys(f).length&&(!e.maxDepth||u<r))return s(f,v,u+1);o[v]=f})}return s(t),o}function Yo(t,e){e=e||{};const n=e.delimiter||".",r=e.overwrite||!1,i=e.transformKey||L1,o={};if(P1(t)||Object.prototype.toString.call(t)!=="[object Object]")return t;function a(d){const f=Number(d);return isNaN(f)||d.indexOf(".")!==-1||e.object?d:f}function c(d,f,h){return Object.keys(h).reduce(function(p,g){return p[d+n+g]=h[g],p},f)}function u(d){const f=Object.prototype.toString.call(d),h=f==="[object Array]",p=f==="[object Object]";if(d){if(h)return!d.length;if(p)return!Object.keys(d).length}else return!0}return t=Object.keys(t).reduce(function(d,f){const h=Object.prototype.toString.call(t[f]);return!(h==="[object Object]"||h==="[object Array]")||u(t[f])?(d[f]=t[f],d):c(f,d,Yi(t[f],e))},{}),Object.keys(t).forEach(function(d){const f=d.split(n).map(i);let h=a(f.shift()),p=a(f[0]),g=o;for(;p!==void 0;){if(h==="__proto__")return;const m=Object.prototype.toString.call(g[h]),v=m==="[object Object]"||m==="[object Array]";if(!r&&!v&&typeof g[h]<"u")return;(r&&!v||!r&&g[h]==null)&&(g[h]=typeof p=="number"&&!e.object?[]:{}),g=g[h],f.length>0&&(h=a(f.shift()),p=a(f[0]))}g[h]=Yo(t[d],e)}),o}const Sa=({date:t=new Date,timeZone:e=void 0}={})=>{const n={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"longOffset"};return Object.fromEntries(new Intl.DateTimeFormat("en-US",{...n,hour12:!1,timeZone:e}).formatToParts(t).filter(({type:r})=>r in n).map(({type:r,value:i})=>[r,r==="hour"&&i==="24"?"00":i]))},UR=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ə","A"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ō","O"],["Ő","O"],["Ø","O"],["Œ","OE"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ə","a"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ō","o"],["ő","o"],["ø","o"],["œ","oe"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["à","a"],["À","A"],["á","a"],["Á","A"],["â","a"],["Â","A"],["ã","a"],["Ã","A"],["è","e"],["È","E"],["é","e"],["É","E"],["ê","e"],["Ê","E"],["ì","i"],["Ì","I"],["í","i"],["Í","I"],["ò","o"],["Ò","O"],["ó","o"],["Ó","O"],["ô","o"],["Ô","O"],["õ","o"],["Õ","O"],["ù","u"],["Ù","U"],["ú","u"],["Ú","U"],["ý","y"],["Ý","Y"],["ă","a"],["Ă","A"],["Đ","D"],["đ","d"],["ĩ","i"],["Ĩ","I"],["ũ","u"],["Ũ","U"],["ơ","o"],["Ơ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["ậ","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["ề","e"],["Ề","E"],["ể","e"],["Ể","E"],["ễ","e"],["Ễ","E"],["ệ","e"],["Ệ","E"],["ỉ","i"],["Ỉ","I"],["ị","i"],["Ị","I"],["ọ","o"],["Ọ","O"],["ỏ","o"],["Ỏ","O"],["ố","o"],["Ố","O"],["ồ","o"],["Ồ","O"],["ổ","o"],["Ổ","O"],["ỗ","o"],["Ỗ","O"],["ộ","o"],["Ộ","O"],["ớ","o"],["Ớ","O"],["ờ","o"],["Ờ","O"],["ở","o"],["Ở","O"],["ỡ","o"],["Ỡ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["ủ","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["ử","u"],["Ử","U"],["ữ","u"],["Ữ","U"],["ự","u"],["Ự","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["Ỵ","Y"],["ỷ","y"],["Ỷ","Y"],["ỹ","y"],["Ỹ","Y"],["ء","e"],["آ","a"],["أ","a"],["ؤ","w"],["إ","a"],["ئ","y"],["ا","a"],["ب","b"],["ة","t"],["ت","t"],["ث","th"],["ج","j"],["ح","h"],["خ","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","z"],["ع","e"],["غ","gh"],["ـ","_"],["ف","f"],["ق","q"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","w"],["ى","a"],["ي","y"],["َ‎","a"],["ُ","u"],["ِ‎","i"],["٠","0"],["١","1"],["٢","2"],["٣","3"],["٤","4"],["٥","5"],["٦","6"],["٧","7"],["٨","8"],["٩","9"],["چ","ch"],["ک","k"],["گ","g"],["پ","p"],["ژ","zh"],["ی","y"],["۰","0"],["۱","1"],["۲","2"],["۳","3"],["۴","4"],["۵","5"],["۶","6"],["۷","7"],["۸","8"],["۹","9"],["ټ","p"],["ځ","z"],["څ","c"],["ډ","d"],["ﺫ","d"],["ﺭ","r"],["ړ","r"],["ﺯ","z"],["ږ","g"],["ښ","x"],["ګ","g"],["ڼ","n"],["ۀ","e"],["ې","e"],["ۍ","ai"],["ٹ","t"],["ڈ","d"],["ڑ","r"],["ں","n"],["ہ","h"],["ھ","h"],["ے","e"],["А","A"],["а","a"],["Б","B"],["б","b"],["В","V"],["в","v"],["Г","G"],["г","g"],["Д","D"],["д","d"],["ъе","ye"],["Ъе","Ye"],["ъЕ","yE"],["ЪЕ","YE"],["Е","E"],["е","e"],["Ё","Yo"],["ё","yo"],["Ж","Zh"],["ж","zh"],["З","Z"],["з","z"],["И","I"],["и","i"],["ый","iy"],["Ый","Iy"],["ЫЙ","IY"],["ыЙ","iY"],["Й","Y"],["й","y"],["К","K"],["к","k"],["Л","L"],["л","l"],["М","M"],["м","m"],["Н","N"],["н","n"],["О","O"],["о","o"],["П","P"],["п","p"],["Р","R"],["р","r"],["С","S"],["с","s"],["Т","T"],["т","t"],["У","U"],["у","u"],["Ф","F"],["ф","f"],["Х","Kh"],["х","kh"],["Ц","Ts"],["ц","ts"],["Ч","Ch"],["ч","ch"],["Ш","Sh"],["ш","sh"],["Щ","Sch"],["щ","sch"],["Ъ",""],["ъ",""],["Ы","Y"],["ы","y"],["Ь",""],["ь",""],["Э","E"],["э","e"],["Ю","Yu"],["ю","yu"],["Я","Ya"],["я","ya"],["ă","a"],["Ă","A"],["ș","s"],["Ș","S"],["ț","t"],["Ț","T"],["ţ","t"],["Ţ","T"],["ş","s"],["Ş","S"],["ç","c"],["Ç","C"],["ğ","g"],["Ğ","G"],["ı","i"],["İ","I"],["ա","a"],["Ա","A"],["բ","b"],["Բ","B"],["գ","g"],["Գ","G"],["դ","d"],["Դ","D"],["ե","ye"],["Ե","Ye"],["զ","z"],["Զ","Z"],["է","e"],["Է","E"],["ը","y"],["Ը","Y"],["թ","t"],["Թ","T"],["ժ","zh"],["Ժ","Zh"],["ի","i"],["Ի","I"],["լ","l"],["Լ","L"],["խ","kh"],["Խ","Kh"],["ծ","ts"],["Ծ","Ts"],["կ","k"],["Կ","K"],["հ","h"],["Հ","H"],["ձ","dz"],["Ձ","Dz"],["ղ","gh"],["Ղ","Gh"],["ճ","tch"],["Ճ","Tch"],["մ","m"],["Մ","M"],["յ","y"],["Յ","Y"],["ն","n"],["Ն","N"],["շ","sh"],["Շ","Sh"],["ու","u"],["ՈՒ","U"],["Ու","U"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["փ","p"],["Փ","P"],["ք","q"],["Ք","Q"],["օ","o"],["Օ","O"],["ֆ","f"],["Ֆ","F"],["և","yev"],["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","zh"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","ph"],["ქ","q"],["ღ","gh"],["ყ","k"],["შ","sh"],["ჩ","ch"],["ც","ts"],["ძ","dz"],["წ","ts"],["ჭ","tch"],["ხ","kh"],["ჯ","j"],["ჰ","h"],["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"],["ހ","h"],["ށ","sh"],["ނ","n"],["ރ","r"],["ބ","b"],["ޅ","lh"],["ކ","k"],["އ","a"],["ވ","v"],["މ","m"],["ފ","f"],["ދ","dh"],["ތ","th"],["ލ","l"],["ގ","g"],["ޏ","gn"],["ސ","s"],["ޑ","d"],["ޒ","z"],["ޓ","t"],["ޔ","y"],["ޕ","p"],["ޖ","j"],["ޗ","ch"],["ޘ","tt"],["ޙ","hh"],["ޚ","kh"],["ޛ","th"],["ޜ","z"],["ޝ","sh"],["ޞ","s"],["ޟ","d"],["ޠ","t"],["ޡ","z"],["ޢ","a"],["ޣ","gh"],["ޤ","q"],["ޥ","w"],["ަ","a"],["ާ","aa"],["ި","i"],["ީ","ee"],["ު","u"],["ޫ","oo"],["ެ","e"],["ޭ","ey"],["ޮ","o"],["ޯ","oa"],["ް",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","o"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","i"],["ώ","o"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","I"],["Θ","TH"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","KS"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","I"],["Ώ","O"],["Ϊ","I"],["Ϋ","Y"],["ā","a"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["ū","u"],["Ā","A"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Ū","U"],["č","c"],["š","s"],["ž","z"],["Č","C"],["Š","S"],["Ž","Z"],["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ќ","Kj"],["ќ","kj"],["Љ","Lj"],["љ","lj"],["Њ","Nj"],["њ","nj"],["Тс","Ts"],["тс","ts"],["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ś","S"],["Ź","Z"],["Ż","Z"],["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["¥","Y"],["߿","b"],["৳","t"],["૱","Bo"],["฿","B"],["₠","CE"],["₡","C"],["₢","Cr"],["₣","F"],["₥","m"],["₦","N"],["₧","Pt"],["₨","Rs"],["₩","W"],["₫","s"],["€","E"],["₭","K"],["₮","T"],["₯","Dp"],["₰","S"],["₱","P"],["₲","G"],["₳","A"],["₴","S"],["₵","C"],["₶","tt"],["₷","S"],["₸","T"],["₹","R"],["₺","L"],["₽","P"],["₿","B"],["﹩","$"],["¢","c"],["¥","Y"],["₩","W"],["𝐀","A"],["𝐁","B"],["𝐂","C"],["𝐃","D"],["𝐄","E"],["𝐅","F"],["𝐆","G"],["𝐇","H"],["𝐈","I"],["𝐉","J"],["𝐊","K"],["𝐋","L"],["𝐌","M"],["𝐍","N"],["𝐎","O"],["𝐏","P"],["𝐐","Q"],["𝐑","R"],["𝐒","S"],["𝐓","T"],["𝐔","U"],["𝐕","V"],["𝐖","W"],["𝐗","X"],["𝐘","Y"],["𝐙","Z"],["𝐚","a"],["𝐛","b"],["𝐜","c"],["𝐝","d"],["𝐞","e"],["𝐟","f"],["𝐠","g"],["𝐡","h"],["𝐢","i"],["𝐣","j"],["𝐤","k"],["𝐥","l"],["𝐦","m"],["𝐧","n"],["𝐨","o"],["𝐩","p"],["𝐪","q"],["𝐫","r"],["𝐬","s"],["𝐭","t"],["𝐮","u"],["𝐯","v"],["𝐰","w"],["𝐱","x"],["𝐲","y"],["𝐳","z"],["𝐴","A"],["𝐵","B"],["𝐶","C"],["𝐷","D"],["𝐸","E"],["𝐹","F"],["𝐺","G"],["𝐻","H"],["𝐼","I"],["𝐽","J"],["𝐾","K"],["𝐿","L"],["𝑀","M"],["𝑁","N"],["𝑂","O"],["𝑃","P"],["𝑄","Q"],["𝑅","R"],["𝑆","S"],["𝑇","T"],["𝑈","U"],["𝑉","V"],["𝑊","W"],["𝑋","X"],["𝑌","Y"],["𝑍","Z"],["𝑎","a"],["𝑏","b"],["𝑐","c"],["𝑑","d"],["𝑒","e"],["𝑓","f"],["𝑔","g"],["𝑖","i"],["𝑗","j"],["𝑘","k"],["𝑙","l"],["𝑚","m"],["𝑛","n"],["𝑜","o"],["𝑝","p"],["𝑞","q"],["𝑟","r"],["𝑠","s"],["𝑡","t"],["𝑢","u"],["𝑣","v"],["𝑤","w"],["𝑥","x"],["𝑦","y"],["𝑧","z"],["𝑨","A"],["𝑩","B"],["𝑪","C"],["𝑫","D"],["𝑬","E"],["𝑭","F"],["𝑮","G"],["𝑯","H"],["𝑰","I"],["𝑱","J"],["𝑲","K"],["𝑳","L"],["𝑴","M"],["𝑵","N"],["𝑶","O"],["𝑷","P"],["𝑸","Q"],["𝑹","R"],["𝑺","S"],["𝑻","T"],["𝑼","U"],["𝑽","V"],["𝑾","W"],["𝑿","X"],["𝒀","Y"],["𝒁","Z"],["𝒂","a"],["𝒃","b"],["𝒄","c"],["𝒅","d"],["𝒆","e"],["𝒇","f"],["𝒈","g"],["𝒉","h"],["𝒊","i"],["𝒋","j"],["𝒌","k"],["𝒍","l"],["𝒎","m"],["𝒏","n"],["𝒐","o"],["𝒑","p"],["𝒒","q"],["𝒓","r"],["𝒔","s"],["𝒕","t"],["𝒖","u"],["𝒗","v"],["𝒘","w"],["𝒙","x"],["𝒚","y"],["𝒛","z"],["𝒜","A"],["𝒞","C"],["𝒟","D"],["𝒢","g"],["𝒥","J"],["𝒦","K"],["𝒩","N"],["𝒪","O"],["𝒫","P"],["𝒬","Q"],["𝒮","S"],["𝒯","T"],["𝒰","U"],["𝒱","V"],["𝒲","W"],["𝒳","X"],["𝒴","Y"],["𝒵","Z"],["𝒶","a"],["𝒷","b"],["𝒸","c"],["𝒹","d"],["𝒻","f"],["𝒽","h"],["𝒾","i"],["𝒿","j"],["𝓀","k"],["𝓁","l"],["𝓂","m"],["𝓃","n"],["𝓅","p"],["𝓆","q"],["𝓇","r"],["𝓈","s"],["𝓉","t"],["𝓊","u"],["𝓋","v"],["𝓌","w"],["𝓍","x"],["𝓎","y"],["𝓏","z"],["𝓐","A"],["𝓑","B"],["𝓒","C"],["𝓓","D"],["𝓔","E"],["𝓕","F"],["𝓖","G"],["𝓗","H"],["𝓘","I"],["𝓙","J"],["𝓚","K"],["𝓛","L"],["𝓜","M"],["𝓝","N"],["𝓞","O"],["𝓟","P"],["𝓠","Q"],["𝓡","R"],["𝓢","S"],["𝓣","T"],["𝓤","U"],["𝓥","V"],["𝓦","W"],["𝓧","X"],["𝓨","Y"],["𝓩","Z"],["𝓪","a"],["𝓫","b"],["𝓬","c"],["𝓭","d"],["𝓮","e"],["𝓯","f"],["𝓰","g"],["𝓱","h"],["𝓲","i"],["𝓳","j"],["𝓴","k"],["𝓵","l"],["𝓶","m"],["𝓷","n"],["𝓸","o"],["𝓹","p"],["𝓺","q"],["𝓻","r"],["𝓼","s"],["𝓽","t"],["𝓾","u"],["𝓿","v"],["𝔀","w"],["𝔁","x"],["𝔂","y"],["𝔃","z"],["𝔄","A"],["𝔅","B"],["𝔇","D"],["𝔈","E"],["𝔉","F"],["𝔊","G"],["𝔍","J"],["𝔎","K"],["𝔏","L"],["𝔐","M"],["𝔑","N"],["𝔒","O"],["𝔓","P"],["𝔔","Q"],["𝔖","S"],["𝔗","T"],["𝔘","U"],["𝔙","V"],["𝔚","W"],["𝔛","X"],["𝔜","Y"],["𝔞","a"],["𝔟","b"],["𝔠","c"],["𝔡","d"],["𝔢","e"],["𝔣","f"],["𝔤","g"],["𝔥","h"],["𝔦","i"],["𝔧","j"],["𝔨","k"],["𝔩","l"],["𝔪","m"],["𝔫","n"],["𝔬","o"],["𝔭","p"],["𝔮","q"],["𝔯","r"],["𝔰","s"],["𝔱","t"],["𝔲","u"],["𝔳","v"],["𝔴","w"],["𝔵","x"],["𝔶","y"],["𝔷","z"],["𝔸","A"],["𝔹","B"],["𝔻","D"],["𝔼","E"],["𝔽","F"],["𝔾","G"],["𝕀","I"],["𝕁","J"],["𝕂","K"],["𝕃","L"],["𝕄","M"],["𝕆","O"],["𝕊","S"],["𝕋","T"],["𝕌","U"],["𝕍","V"],["𝕎","W"],["𝕏","X"],["𝕐","Y"],["𝕒","a"],["𝕓","b"],["𝕔","c"],["𝕕","d"],["𝕖","e"],["𝕗","f"],["𝕘","g"],["𝕙","h"],["𝕚","i"],["𝕛","j"],["𝕜","k"],["𝕝","l"],["𝕞","m"],["𝕟","n"],["𝕠","o"],["𝕡","p"],["𝕢","q"],["𝕣","r"],["𝕤","s"],["𝕥","t"],["𝕦","u"],["𝕧","v"],["𝕨","w"],["𝕩","x"],["𝕪","y"],["𝕫","z"],["𝕬","A"],["𝕭","B"],["𝕮","C"],["𝕯","D"],["𝕰","E"],["𝕱","F"],["𝕲","G"],["𝕳","H"],["𝕴","I"],["𝕵","J"],["𝕶","K"],["𝕷","L"],["𝕸","M"],["𝕹","N"],["𝕺","O"],["𝕻","P"],["𝕼","Q"],["𝕽","R"],["𝕾","S"],["𝕿","T"],["𝖀","U"],["𝖁","V"],["𝖂","W"],["𝖃","X"],["𝖄","Y"],["𝖅","Z"],["𝖆","a"],["𝖇","b"],["𝖈","c"],["𝖉","d"],["𝖊","e"],["𝖋","f"],["𝖌","g"],["𝖍","h"],["𝖎","i"],["𝖏","j"],["𝖐","k"],["𝖑","l"],["𝖒","m"],["𝖓","n"],["𝖔","o"],["𝖕","p"],["𝖖","q"],["𝖗","r"],["𝖘","s"],["𝖙","t"],["𝖚","u"],["𝖛","v"],["𝖜","w"],["𝖝","x"],["𝖞","y"],["𝖟","z"],["𝖠","A"],["𝖡","B"],["𝖢","C"],["𝖣","D"],["𝖤","E"],["𝖥","F"],["𝖦","G"],["𝖧","H"],["𝖨","I"],["𝖩","J"],["𝖪","K"],["𝖫","L"],["𝖬","M"],["𝖭","N"],["𝖮","O"],["𝖯","P"],["𝖰","Q"],["𝖱","R"],["𝖲","S"],["𝖳","T"],["𝖴","U"],["𝖵","V"],["𝖶","W"],["𝖷","X"],["𝖸","Y"],["𝖹","Z"],["𝖺","a"],["𝖻","b"],["𝖼","c"],["𝖽","d"],["𝖾","e"],["𝖿","f"],["𝗀","g"],["𝗁","h"],["𝗂","i"],["𝗃","j"],["𝗄","k"],["𝗅","l"],["𝗆","m"],["𝗇","n"],["𝗈","o"],["𝗉","p"],["𝗊","q"],["𝗋","r"],["𝗌","s"],["𝗍","t"],["𝗎","u"],["𝗏","v"],["𝗐","w"],["𝗑","x"],["𝗒","y"],["𝗓","z"],["𝗔","A"],["𝗕","B"],["𝗖","C"],["𝗗","D"],["𝗘","E"],["𝗙","F"],["𝗚","G"],["𝗛","H"],["𝗜","I"],["𝗝","J"],["𝗞","K"],["𝗟","L"],["𝗠","M"],["𝗡","N"],["𝗢","O"],["𝗣","P"],["𝗤","Q"],["𝗥","R"],["𝗦","S"],["𝗧","T"],["𝗨","U"],["𝗩","V"],["𝗪","W"],["𝗫","X"],["𝗬","Y"],["𝗭","Z"],["𝗮","a"],["𝗯","b"],["𝗰","c"],["𝗱","d"],["𝗲","e"],["𝗳","f"],["𝗴","g"],["𝗵","h"],["𝗶","i"],["𝗷","j"],["𝗸","k"],["𝗹","l"],["𝗺","m"],["𝗻","n"],["𝗼","o"],["𝗽","p"],["𝗾","q"],["𝗿","r"],["𝘀","s"],["𝘁","t"],["𝘂","u"],["𝘃","v"],["𝘄","w"],["𝘅","x"],["𝘆","y"],["𝘇","z"],["𝘈","A"],["𝘉","B"],["𝘊","C"],["𝘋","D"],["𝘌","E"],["𝘍","F"],["𝘎","G"],["𝘏","H"],["𝘐","I"],["𝘑","J"],["𝘒","K"],["𝘓","L"],["𝘔","M"],["𝘕","N"],["𝘖","O"],["𝘗","P"],["𝘘","Q"],["𝘙","R"],["𝘚","S"],["𝘛","T"],["𝘜","U"],["𝘝","V"],["𝘞","W"],["𝘟","X"],["𝘠","Y"],["𝘡","Z"],["𝘢","a"],["𝘣","b"],["𝘤","c"],["𝘥","d"],["𝘦","e"],["𝘧","f"],["𝘨","g"],["𝘩","h"],["𝘪","i"],["𝘫","j"],["𝘬","k"],["𝘭","l"],["𝘮","m"],["𝘯","n"],["𝘰","o"],["𝘱","p"],["𝘲","q"],["𝘳","r"],["𝘴","s"],["𝘵","t"],["𝘶","u"],["𝘷","v"],["𝘸","w"],["𝘹","x"],["𝘺","y"],["𝘻","z"],["𝘼","A"],["𝘽","B"],["𝘾","C"],["𝘿","D"],["𝙀","E"],["𝙁","F"],["𝙂","G"],["𝙃","H"],["𝙄","I"],["𝙅","J"],["𝙆","K"],["𝙇","L"],["𝙈","M"],["𝙉","N"],["𝙊","O"],["𝙋","P"],["𝙌","Q"],["𝙍","R"],["𝙎","S"],["𝙏","T"],["𝙐","U"],["𝙑","V"],["𝙒","W"],["𝙓","X"],["𝙔","Y"],["𝙕","Z"],["𝙖","a"],["𝙗","b"],["𝙘","c"],["𝙙","d"],["𝙚","e"],["𝙛","f"],["𝙜","g"],["𝙝","h"],["𝙞","i"],["𝙟","j"],["𝙠","k"],["𝙡","l"],["𝙢","m"],["𝙣","n"],["𝙤","o"],["𝙥","p"],["𝙦","q"],["𝙧","r"],["𝙨","s"],["𝙩","t"],["𝙪","u"],["𝙫","v"],["𝙬","w"],["𝙭","x"],["𝙮","y"],["𝙯","z"],["𝙰","A"],["𝙱","B"],["𝙲","C"],["𝙳","D"],["𝙴","E"],["𝙵","F"],["𝙶","G"],["𝙷","H"],["𝙸","I"],["𝙹","J"],["𝙺","K"],["𝙻","L"],["𝙼","M"],["𝙽","N"],["𝙾","O"],["𝙿","P"],["𝚀","Q"],["𝚁","R"],["𝚂","S"],["𝚃","T"],["𝚄","U"],["𝚅","V"],["𝚆","W"],["𝚇","X"],["𝚈","Y"],["𝚉","Z"],["𝚊","a"],["𝚋","b"],["𝚌","c"],["𝚍","d"],["𝚎","e"],["𝚏","f"],["𝚐","g"],["𝚑","h"],["𝚒","i"],["𝚓","j"],["𝚔","k"],["𝚕","l"],["𝚖","m"],["𝚗","n"],["𝚘","o"],["𝚙","p"],["𝚚","q"],["𝚛","r"],["𝚜","s"],["𝚝","t"],["𝚞","u"],["𝚟","v"],["𝚠","w"],["𝚡","x"],["𝚢","y"],["𝚣","z"],["𝚤","l"],["𝚥","j"],["𝛢","A"],["𝛣","B"],["𝛤","G"],["𝛥","D"],["𝛦","E"],["𝛧","Z"],["𝛨","I"],["𝛩","TH"],["𝛪","I"],["𝛫","K"],["𝛬","L"],["𝛭","M"],["𝛮","N"],["𝛯","KS"],["𝛰","O"],["𝛱","P"],["𝛲","R"],["𝛳","TH"],["𝛴","S"],["𝛵","T"],["𝛶","Y"],["𝛷","F"],["𝛸","x"],["𝛹","PS"],["𝛺","O"],["𝛻","D"],["𝛼","a"],["𝛽","b"],["𝛾","g"],["𝛿","d"],["𝜀","e"],["𝜁","z"],["𝜂","i"],["𝜃","th"],["𝜄","i"],["𝜅","k"],["𝜆","l"],["𝜇","m"],["𝜈","n"],["𝜉","ks"],["𝜊","o"],["𝜋","p"],["𝜌","r"],["𝜍","s"],["𝜎","s"],["𝜏","t"],["𝜐","y"],["𝜑","f"],["𝜒","x"],["𝜓","ps"],["𝜔","o"],["𝜕","d"],["𝜖","E"],["𝜗","TH"],["𝜘","K"],["𝜙","f"],["𝜚","r"],["𝜛","p"],["𝜜","A"],["𝜝","V"],["𝜞","G"],["𝜟","D"],["𝜠","E"],["𝜡","Z"],["𝜢","I"],["𝜣","TH"],["𝜤","I"],["𝜥","K"],["𝜦","L"],["𝜧","M"],["𝜨","N"],["𝜩","KS"],["𝜪","O"],["𝜫","P"],["𝜬","S"],["𝜭","TH"],["𝜮","S"],["𝜯","T"],["𝜰","Y"],["𝜱","F"],["𝜲","X"],["𝜳","PS"],["𝜴","O"],["𝜵","D"],["𝜶","a"],["𝜷","v"],["𝜸","g"],["𝜹","d"],["𝜺","e"],["𝜻","z"],["𝜼","i"],["𝜽","th"],["𝜾","i"],["𝜿","k"],["𝝀","l"],["𝝁","m"],["𝝂","n"],["𝝃","ks"],["𝝄","o"],["𝝅","p"],["𝝆","r"],["𝝇","s"],["𝝈","s"],["𝝉","t"],["𝝊","y"],["𝝋","f"],["𝝌","x"],["𝝍","ps"],["𝝎","o"],["𝝏","a"],["𝝐","e"],["𝝑","i"],["𝝒","k"],["𝝓","f"],["𝝔","r"],["𝝕","p"],["𝝖","A"],["𝝗","B"],["𝝘","G"],["𝝙","D"],["𝝚","E"],["𝝛","Z"],["𝝜","I"],["𝝝","TH"],["𝝞","I"],["𝝟","K"],["𝝠","L"],["𝝡","M"],["𝝢","N"],["𝝣","KS"],["𝝤","O"],["𝝥","P"],["𝝦","R"],["𝝧","TH"],["𝝨","S"],["𝝩","T"],["𝝪","Y"],["𝝫","F"],["𝝬","X"],["𝝭","PS"],["𝝮","O"],["𝝯","D"],["𝝰","a"],["𝝱","v"],["𝝲","g"],["𝝳","d"],["𝝴","e"],["𝝵","z"],["𝝶","i"],["𝝷","th"],["𝝸","i"],["𝝹","k"],["𝝺","l"],["𝝻","m"],["𝝼","n"],["𝝽","ks"],["𝝾","o"],["𝝿","p"],["𝞀","r"],["𝞁","s"],["𝞂","s"],["𝞃","t"],["𝞄","y"],["𝞅","f"],["𝞆","x"],["𝞇","ps"],["𝞈","o"],["𝞉","a"],["𝞊","e"],["𝞋","i"],["𝞌","k"],["𝞍","f"],["𝞎","r"],["𝞏","p"],["𝞐","A"],["𝞑","V"],["𝞒","G"],["𝞓","D"],["𝞔","E"],["𝞕","Z"],["𝞖","I"],["𝞗","TH"],["𝞘","I"],["𝞙","K"],["𝞚","L"],["𝞛","M"],["𝞜","N"],["𝞝","KS"],["𝞞","O"],["𝞟","P"],["𝞠","S"],["𝞡","TH"],["𝞢","S"],["𝞣","T"],["𝞤","Y"],["𝞥","F"],["𝞦","X"],["𝞧","PS"],["𝞨","O"],["𝞩","D"],["𝞪","av"],["𝞫","g"],["𝞬","d"],["𝞭","e"],["𝞮","z"],["𝞯","i"],["𝞰","i"],["𝞱","th"],["𝞲","i"],["𝞳","k"],["𝞴","l"],["𝞵","m"],["𝞶","n"],["𝞷","ks"],["𝞸","o"],["𝞹","p"],["𝞺","r"],["𝞻","s"],["𝞼","s"],["𝞽","t"],["𝞾","y"],["𝞿","f"],["𝟀","x"],["𝟁","ps"],["𝟂","o"],["𝟃","a"],["𝟄","e"],["𝟅","i"],["𝟆","k"],["𝟇","f"],["𝟈","r"],["𝟉","p"],["𝟊","F"],["𝟋","f"],["⒜","(a)"],["⒝","(b)"],["⒞","(c)"],["⒟","(d)"],["⒠","(e)"],["⒡","(f)"],["⒢","(g)"],["⒣","(h)"],["⒤","(i)"],["⒥","(j)"],["⒦","(k)"],["⒧","(l)"],["⒨","(m)"],["⒩","(n)"],["⒪","(o)"],["⒫","(p)"],["⒬","(q)"],["⒭","(r)"],["⒮","(s)"],["⒯","(t)"],["⒰","(u)"],["⒱","(v)"],["⒲","(w)"],["⒳","(x)"],["⒴","(y)"],["⒵","(z)"],["Ⓐ","(A)"],["Ⓑ","(B)"],["Ⓒ","(C)"],["Ⓓ","(D)"],["Ⓔ","(E)"],["Ⓕ","(F)"],["Ⓖ","(G)"],["Ⓗ","(H)"],["Ⓘ","(I)"],["Ⓙ","(J)"],["Ⓚ","(K)"],["Ⓛ","(L)"],["Ⓝ","(N)"],["Ⓞ","(O)"],["Ⓟ","(P)"],["Ⓠ","(Q)"],["Ⓡ","(R)"],["Ⓢ","(S)"],["Ⓣ","(T)"],["Ⓤ","(U)"],["Ⓥ","(V)"],["Ⓦ","(W)"],["Ⓧ","(X)"],["Ⓨ","(Y)"],["Ⓩ","(Z)"],["ⓐ","(a)"],["ⓑ","(b)"],["ⓒ","(c)"],["ⓓ","(d)"],["ⓔ","(e)"],["ⓕ","(f)"],["ⓖ","(g)"],["ⓗ","(h)"],["ⓘ","(i)"],["ⓙ","(j)"],["ⓚ","(k)"],["ⓛ","(l)"],["ⓜ","(m)"],["ⓝ","(n)"],["ⓞ","(o)"],["ⓟ","(p)"],["ⓠ","(q)"],["ⓡ","(r)"],["ⓢ","(s)"],["ⓣ","(t)"],["ⓤ","(u)"],["ⓥ","(v)"],["ⓦ","(w)"],["ⓧ","(x)"],["ⓨ","(y)"],["ⓩ","(z)"],["Ċ","C"],["ċ","c"],["Ġ","G"],["ġ","g"],["Ħ","H"],["ħ","h"],["Ż","Z"],["ż","z"],["𝟎","0"],["𝟏","1"],["𝟐","2"],["𝟑","3"],["𝟒","4"],["𝟓","5"],["𝟔","6"],["𝟕","7"],["𝟖","8"],["𝟗","9"],["𝟘","0"],["𝟙","1"],["𝟚","2"],["𝟛","3"],["𝟜","4"],["𝟝","5"],["𝟞","6"],["𝟟","7"],["𝟠","8"],["𝟡","9"],["𝟢","0"],["𝟣","1"],["𝟤","2"],["𝟥","3"],["𝟦","4"],["𝟧","5"],["𝟨","6"],["𝟩","7"],["𝟪","8"],["𝟫","9"],["𝟬","0"],["𝟭","1"],["𝟮","2"],["𝟯","3"],["𝟰","4"],["𝟱","5"],["𝟲","6"],["𝟳","7"],["𝟴","8"],["𝟵","9"],["𝟶","0"],["𝟷","1"],["𝟸","2"],["𝟹","3"],["𝟺","4"],["𝟻","5"],["𝟼","6"],["𝟽","7"],["𝟾","8"],["𝟿","9"],["①","1"],["②","2"],["③","3"],["④","4"],["⑤","5"],["⑥","6"],["⑦","7"],["⑧","8"],["⑨","9"],["⑩","10"],["⑪","11"],["⑫","12"],["⑬","13"],["⑭","14"],["⑮","15"],["⑯","16"],["⑰","17"],["⑱","18"],["⑲","19"],["⑳","20"],["⑴","1"],["⑵","2"],["⑶","3"],["⑷","4"],["⑸","5"],["⑹","6"],["⑺","7"],["⑻","8"],["⑼","9"],["⑽","10"],["⑾","11"],["⑿","12"],["⒀","13"],["⒁","14"],["⒂","15"],["⒃","16"],["⒄","17"],["⒅","18"],["⒆","19"],["⒇","20"],["⒈","1."],["⒉","2."],["⒊","3."],["⒋","4."],["⒌","5."],["⒍","6."],["⒎","7."],["⒏","8."],["⒐","9."],["⒑","10."],["⒒","11."],["⒓","12."],["⒔","13."],["⒕","14."],["⒖","15."],["⒗","16."],["⒘","17."],["⒙","18."],["⒚","19."],["⒛","20."],["⓪","0"],["⓫","11"],["⓬","12"],["⓭","13"],["⓮","14"],["⓯","15"],["⓰","16"],["⓱","17"],["⓲","18"],["⓳","19"],["⓴","20"],["⓵","1"],["⓶","2"],["⓷","3"],["⓸","4"],["⓹","5"],["⓺","6"],["⓻","7"],["⓼","8"],["⓽","9"],["⓾","10"],["⓿","0"],["🙰","&"],["🙱","&"],["🙲","&"],["🙳","&"],["🙴","&"],["🙵","&"],["🙶",'"'],["🙷",'"'],["🙸",'"'],["‽","?!"],["🙹","?!"],["🙺","?!"],["🙻","?!"],["🙼","/"],["🙽","\\"],["🜇","AR"],["🜈","V"],["🜉","V"],["🜆","VR"],["🜅","VF"],["🜩","2"],["🜪","5"],["🝡","f"],["🝢","W"],["🝣","U"],["🝧","V"],["🝨","T"],["🝪","V"],["🝫","MB"],["🝬","VB"],["🝲","3B"],["🝳","3B"],["💯","100"],["🔙","BACK"],["🔚","END"],["🔛","ON!"],["🔜","SOON"],["🔝","TOP"],["🔞","18"],["🔤","abc"],["🔠","ABCD"],["🔡","abcd"],["🔢","1234"],["🔣","T&@%"],["#️⃣","#"],["*️⃣","*"],["0️⃣","0"],["1️⃣","1"],["2️⃣","2"],["3️⃣","3"],["4️⃣","4"],["5️⃣","5"],["6️⃣","6"],["7️⃣","7"],["8️⃣","8"],["9️⃣","9"],["🔟","10"],["🅰️","A"],["🅱️","B"],["🆎","AB"],["🆑","CL"],["🅾️","O"],["🅿","P"],["🆘","SOS"],["🅲","C"],["🅳","D"],["🅴","E"],["🅵","F"],["🅶","G"],["🅷","H"],["🅸","I"],["🅹","J"],["🅺","K"],["🅻","L"],["🅼","M"],["🅽","N"],["🆀","Q"],["🆁","R"],["🆂","S"],["🆃","T"],["🆄","U"],["🆅","V"],["🆆","W"],["🆇","X"],["🆈","Y"],["🆉","Z"],["−","-"],["⁓","-"]],N1=[["æ","ae"],["Æ","Ae"],["ø","oe"],["Ø","Oe"],["å","aa"],["Å","Aa"]],I1={sv:[["ä","a"],["Ä","A"],["ö","o"],["Ö","O"],["å","a"],["Å","A"]],da:N1,nb:N1,de:[["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["ß","ss"],["ẞ","Ss"]],tr:[["â","a"],["Â","A"],["ö","o"],["Ö","O"],["ü","u"],["Ü","U"]],hu:[["ű","u"],["Ű","U"],["ö","o"],["Ö","O"],["ü","u"],["Ü","U"],["á","a"],["Á","A"],["é","e"],["É","E"],["í","i"],["Í","I"],["ó","o"],["Ó","O"],["ú","u"],["Ú","U"]],sr:[["ђ","dj"],["Ђ","Dj"],["џ","dz"],["Џ","Dz"],["љ","lj"],["Љ","Lj"],["њ","nj"],["Њ","Nj"],["ћ","c"],["Ћ","C"],["ч","ch"],["Ч","Ch"],["ш","sh"],["Ш","Sh"],["ж","zh"],["Ж","Zh"]]},qR=(t,e)=>{for(const[n,r]of e)t=t.replaceAll(n,r);return t},VR=t=>{if(!t)return[];const e=t.toLowerCase().replace(/^no(-|$)/,"nb$1");return I1[e]||I1[e.split("-")[0]]||[]};function HR(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={customReplacements:[],...e};const n=VR(e.locale),r=new Map([...UR,...n,...e.customReplacements]);return t=t.normalize(),t=qR(t,r),t=t.normalize("NFD").replaceAll(/\p{Diacritic}/gu,"").normalize(),t=t.replaceAll(/\p{Dash_Punctuation}/gu,"-"),t}const O1=(t,{fallback:e=!0}={})=>{const{slug:{encoding:n="unicode",clean_accents:r=!1,sanitize_replacement:i="-",trim:o=!0}={}}=se(Et)??{};let s=t;if(r&&(s=HR(s).normalize("NFD").replace(/\p{Diacritic}/gu,"")),n==="ascii"?s=s.replaceAll(/[^\w-~]/g," "):s=s.replaceAll(/[\p{Z}\p{C}!"#$&'()*+,/:;<=>?@[\]^`{|}]/gu," "),s=s.toLocaleLowerCase().trim().replaceAll(/\s+/g,i),i){const a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=new RegExp(`${a}+`,"g");s=s.replace(c,i),o&&(s=s.replace(new RegExp(`^${a}+|${a}+$`,"g"),""))}return!s&&e?ti("short"):s};var rh={exports:{}},KR=rh.exports,R1;function GR(){return R1||(R1=1,(function(t,e){(function(n,r){t.exports=r()})(KR,(function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",c="hour",u="day",d="week",f="month",h="quarter",p="year",g="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,y={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(N){var D=["th","st","nd","rd"],B=N%100;return"["+N+(D[(B-20)%10]||D[B]||D[0])+"]"}},w=function(N,D,B){var H=String(N);return!H||H.length>=D?N:""+Array(D+1-H.length).join(B)+N},E={s:w,z:function(N){var D=-N.utcOffset(),B=Math.abs(D),H=Math.floor(B/60),W=B%60;return(D<=0?"+":"-")+w(H,2,"0")+":"+w(W,2,"0")},m:function N(D,B){if(D.date()<B.date())return-N(B,D);var H=12*(B.year()-D.year())+(B.month()-D.month()),W=D.clone().add(H,f),Y=B-W<0,O=D.clone().add(H+(Y?-1:1),f);return+(-(H+(B-W)/(Y?W-O:O-W))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:p,w:d,d:u,D:g,h:c,m:a,s,ms:o,Q:h}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},k="en",S={};S[k]=y;var C="$isDayjsObject",x=function(N){return N instanceof L||!(!N||!N[C])},T=function N(D,B,H){var W;if(!D)return k;if(typeof D=="string"){var Y=D.toLowerCase();S[Y]&&(W=Y),B&&(S[Y]=B,W=Y);var O=D.split("-");if(!W&&O.length>1)return N(O[0])}else{var F=D.name;S[F]=D,W=F}return!H&&W&&(k=W),W||!H&&k},A=function(N,D){if(x(N))return N.clone();var B=typeof D=="object"?D:{};return B.date=N,B.args=arguments,new L(B)},P=E;P.l=T,P.i=x,P.w=function(N,D){return A(N,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var L=(function(){function N(B){this.$L=T(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[C]=!0}var D=N.prototype;return D.parse=function(B){this.$d=(function(H){var W=H.date,Y=H.utc;if(W===null)return new Date(NaN);if(P.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var O=W.match(v);if(O){var F=O[2]-1||0,K=(O[7]||"0").substring(0,3);return Y?new Date(Date.UTC(O[1],F,O[3]||1,O[4]||0,O[5]||0,O[6]||0,K)):new Date(O[1],F,O[3]||1,O[4]||0,O[5]||0,O[6]||0,K)}}return new Date(W)})(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return P},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(B,H){var W=A(B);return this.startOf(H)<=W&&W<=this.endOf(H)},D.isAfter=function(B,H){return A(B)<this.startOf(H)},D.isBefore=function(B,H){return this.endOf(H)<A(B)},D.$g=function(B,H,W){return P.u(B)?this[H]:this.set(W,B)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(B,H){var W=this,Y=!!P.u(H)||H,O=P.p(B),F=function(ae,fe){var be=P.w(W.$u?Date.UTC(W.$y,fe,ae):new Date(W.$y,fe,ae),W);return Y?be:be.endOf(u)},K=function(ae,fe){return P.w(W.toDate()[ae].apply(W.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(fe)),W)},J=this.$W,Q=this.$M,oe=this.$D,re="set"+(this.$u?"UTC":"");switch(O){case p:return Y?F(1,0):F(31,11);case f:return Y?F(1,Q):F(0,Q+1);case d:var ee=this.$locale().weekStart||0,ne=(J<ee?J+7:J)-ee;return F(Y?oe-ne:oe+(6-ne),Q);case u:case g:return K(re+"Hours",0);case c:return K(re+"Minutes",1);case a:return K(re+"Seconds",2);case s:return K(re+"Milliseconds",3);default:return this.clone()}},D.endOf=function(B){return this.startOf(B,!1)},D.$set=function(B,H){var W,Y=P.p(B),O="set"+(this.$u?"UTC":""),F=(W={},W[u]=O+"Date",W[g]=O+"Date",W[f]=O+"Month",W[p]=O+"FullYear",W[c]=O+"Hours",W[a]=O+"Minutes",W[s]=O+"Seconds",W[o]=O+"Milliseconds",W)[Y],K=Y===u?this.$D+(H-this.$W):H;if(Y===f||Y===p){var J=this.clone().set(g,1);J.$d[F](K),J.init(),this.$d=J.set(g,Math.min(this.$D,J.daysInMonth())).$d}else F&&this.$d[F](K);return this.init(),this},D.set=function(B,H){return this.clone().$set(B,H)},D.get=function(B){return this[P.p(B)]()},D.add=function(B,H){var W,Y=this;B=Number(B);var O=P.p(H),F=function(Q){var oe=A(Y);return P.w(oe.date(oe.date()+Math.round(Q*B)),Y)};if(O===f)return this.set(f,this.$M+B);if(O===p)return this.set(p,this.$y+B);if(O===u)return F(1);if(O===d)return F(7);var K=(W={},W[a]=r,W[c]=i,W[s]=n,W)[O]||1,J=this.$d.getTime()+B*K;return P.w(J,this)},D.subtract=function(B,H){return this.add(-1*B,H)},D.format=function(B){var H=this,W=this.$locale();if(!this.isValid())return W.invalidDate||m;var Y=B||"YYYY-MM-DDTHH:mm:ssZ",O=P.z(this),F=this.$H,K=this.$m,J=this.$M,Q=W.weekdays,oe=W.months,re=W.meridiem,ee=function(fe,be,pe,he){return fe&&(fe[be]||fe(H,Y))||pe[be].slice(0,he)},ne=function(fe){return P.s(F%12||12,fe,"0")},ae=re||function(fe,be,pe){var he=fe<12?"AM":"PM";return pe?he.toLowerCase():he};return Y.replace(b,(function(fe,be){return be||(function(pe){switch(pe){case"YY":return String(H.$y).slice(-2);case"YYYY":return P.s(H.$y,4,"0");case"M":return J+1;case"MM":return P.s(J+1,2,"0");case"MMM":return ee(W.monthsShort,J,oe,3);case"MMMM":return ee(oe,J);case"D":return H.$D;case"DD":return P.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return ee(W.weekdaysMin,H.$W,Q,2);case"ddd":return ee(W.weekdaysShort,H.$W,Q,3);case"dddd":return Q[H.$W];case"H":return String(F);case"HH":return P.s(F,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ae(F,K,!0);case"A":return ae(F,K,!1);case"m":return String(K);case"mm":return P.s(K,2,"0");case"s":return String(H.$s);case"ss":return P.s(H.$s,2,"0");case"SSS":return P.s(H.$ms,3,"0");case"Z":return O}return null})(fe)||O.replace(":","")}))},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(B,H,W){var Y,O=this,F=P.p(H),K=A(B),J=(K.utcOffset()-this.utcOffset())*r,Q=this-K,oe=function(){return P.m(O,K)};switch(F){case p:Y=oe()/12;break;case f:Y=oe();break;case h:Y=oe()/3;break;case d:Y=(Q-J)/6048e5;break;case u:Y=(Q-J)/864e5;break;case c:Y=Q/i;break;case a:Y=Q/r;break;case s:Y=Q/n;break;default:Y=Q}return W?Y:P.a(Y)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return S[this.$L]},D.locale=function(B,H){if(!B)return this.$L;var W=this.clone(),Y=T(B,H,!0);return Y&&(W.$L=Y),W},D.clone=function(){return P.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},N})(),I=L.prototype;return A.prototype=I,[["$ms",o],["$s",s],["$m",a],["$H",c],["$W",u],["$M",f],["$y",p],["$D",g]].forEach((function(N){I[N[1]]=function(D){return this.$g(D,N[0],N[1])}})),A.extend=function(N,D){return N.$i||(N(D,L,A),N.$i=!0),A},A.locale=T,A.isDayjs=x,A.unix=function(N){return A(1e3*N)},A.en=S[k],A.Ls=S,A.p={},A}))})(rh)),rh.exports}var WR=GR();const rr=Bo(WR);var ih={exports:{}},YR=ih.exports,D1;function JR(){return D1||(D1=1,(function(t,e){(function(n,r){t.exports=r()})(YR,(function(){var n={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},u=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(b){this[v]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),w=60*y[1]+(+y[2]||0);return w===0?0:y[0]==="+"?-w:w})(v)}],h=function(v){var b=c[v];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(v,b){var y,w=c.meridiem;if(w){for(var E=1;E<=24;E+=1)if(v.indexOf(w(E,0,b))>-1){y=E>12;break}}else y=v===(b?"pm":"PM");return y},g={A:[a,function(v){this.afternoon=p(v,!1)}],a:[a,function(v){this.afternoon=p(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[o,d("day")],Do:[a,function(v){var b=c.ordinal,y=v.match(/\d+/);if(this.day=y[0],b)for(var w=1;w<=31;w+=1)b(w).replace(/\[|\]/g,"")===v&&(this.day=w)}],w:[s,d("week")],ww:[o,d("week")],M:[s,d("month")],MM:[o,d("month")],MMM:[a,function(v){var b=h("months"),y=(h("monthsShort")||b.map((function(w){return w.slice(0,3)}))).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[a,function(v){var b=h("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(v){this.year=u(v)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function m(v){var b,y;b=v,y=c&&c.formats;for(var w=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(A,P,L){var I=L&&L.toUpperCase();return P||y[L]||n[L]||y[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,D,B){return D||B.slice(1)}))}))).match(r),E=w.length,k=0;k<E;k+=1){var S=w[k],C=g[S],x=C&&C[0],T=C&&C[1];w[k]=T?{regex:x,parser:T}:S.replace(/^\[|\]$/g,"")}return function(A){for(var P={},L=0,I=0;L<E;L+=1){var N=w[L];if(typeof N=="string")I+=N.length;else{var D=N.regex,B=N.parser,H=A.slice(I),W=D.exec(H)[0];B.call(P,W),A=A.replace(W,"")}}return(function(Y){var O=Y.afternoon;if(O!==void 0){var F=Y.hours;O?F<12&&(Y.hours+=12):F===12&&(Y.hours=0),delete Y.afternoon}})(P),P}}return function(v,b,y){y.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var w=b.prototype,E=w.parse;w.parse=function(k){var S=k.date,C=k.utc,x=k.args;this.$u=C;var T=x[1];if(typeof T=="string"){var A=x[2]===!0,P=x[3]===!0,L=A||P,I=x[2];P&&(I=x[2]),c=this.$locale(),!A&&I&&(c=y.Ls[I]),this.$d=(function(H,W,Y,O){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*H);var F=m(W)(H),K=F.year,J=F.month,Q=F.day,oe=F.hours,re=F.minutes,ee=F.seconds,ne=F.milliseconds,ae=F.zone,fe=F.week,be=new Date,pe=Q||(K||J?1:be.getDate()),he=K||be.getFullYear(),ge=0;K&&!J||(ge=J>0?J-1:be.getMonth());var ve,_e=oe||0,$e=re||0,Ce=ee||0,Re=ne||0;return ae?new Date(Date.UTC(he,ge,pe,_e,$e,Ce,Re+60*ae.offset*1e3)):Y?new Date(Date.UTC(he,ge,pe,_e,$e,Ce,Re)):(ve=new Date(he,ge,pe,_e,$e,Ce,Re),fe&&(ve=O(ve).week(fe).toDate()),ve)}catch{return new Date("")}})(S,T,C,y),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),L&&S!=this.format(T)&&(this.$d=new Date("")),c={}}else if(T instanceof Array)for(var N=T.length,D=1;D<=N;D+=1){x[1]=T[D-1];var B=y.apply(this,x);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}D===N&&(this.$d=new Date(""))}else E.call(this,k)}}}))})(ih)),ih.exports}var XR=JR();const Jm=Bo(XR);var oh={exports:{}},ZR=oh.exports,M1;function QR(){return M1||(M1=1,(function(t,e){(function(n,r){t.exports=r()})(ZR,(function(){var n={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(r,i,o){var s=i.prototype,a=s.format;o.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(p,g,m){var v=m&&m.toUpperCase();return g||h[m]||n[m]||h[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,y,w){return y||w.slice(1)}))}))})(c,u===void 0?{}:u);return a.call(this,d)}}}))})(oh)),oh.exports}var eD=QR();const Xm=Bo(eD);var sh={exports:{}},tD=sh.exports,F1;function nD(){return F1||(F1=1,(function(t,e){(function(n,r){t.exports=r()})(tD,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,s,a){var c=s.prototype;a.utc=function(m){var v={date:m,utc:!0,args:arguments};return new s(v)},c.utc=function(m){var v=a(this.toDate(),{locale:this.$L,utc:!0});return m?v.add(this.utcOffset(),n):v},c.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),u.call(this,m)};var d=c.init;c.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else d.call(this)};var f=c.utcOffset;c.utcOffset=function(m,v){var b=this.$utils().u;if(b(m))return this.$u?0:b(this.$offset)?f.call(this):this.$offset;if(typeof m=="string"&&(m=(function(k){k===void 0&&(k="");var S=k.match(r);if(!S)return null;var C=(""+S[0]).match(i)||["-",0,0],x=C[0],T=60*+C[1]+ +C[2];return T===0?0:x==="+"?T:-T})(m),m===null))return this;var y=Math.abs(m)<=16?60*m:m;if(y===0)return this.utc(v);var w=this.clone();if(v)return w.$offset=y,w.$u=!1,w;var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(w=this.local().add(y+E,n)).$offset=y,w.$x.$localOffset=E,w};var h=c.format;c.format=function(m){var v=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,v)},c.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var p=c.toDate;c.toDate=function(m){return m==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var g=c.diff;c.diff=function(m,v,b){if(m&&this.$u===m.$u)return g.call(this,m,v,b);var y=this.local(),w=a(m).local();return g.call(y,w,v,b)}}}))})(sh)),sh.exports}var rD=nD();const Zm=Bo(rD),wr=t=>{let e;if(t!=="_default")try{[e]=Intl.getCanonicalLocales(t)}catch{}return e},Oi=(t,{native:e=!1}={})=>{const n=wr(t);if(!n)return t;const r=e?n:wr(se(zt)??"en"),i=new Intl.DisplayNames(r,{type:"language"});try{return i.of(n)??t}catch(o){return console.error(o),t}},Ql=(t,e={})=>new Intl.ListFormat(wr(t),{style:"narrow",type:"conjunction",...e}),Qm=({_i18n:t,locale:e,path:n})=>{const{defaultLocale:r,omitDefaultLocaleFromFileName:i}=t;return i&&e===r&&(n=n.replace(/\.{{locale}}\.(\w+)$/,".$1")),n.replaceAll("{{locale}}",e)},iD=/^(?:\d{4}-[01]\d-[0-3]\d)?(?:T?[0-2]\d:[0-5]\d)?(?::[0-5]\d)?(?:\.\d+)?(?:[+-][0-2]\d:[0-5]\d|Z)?$/,oD=/^\d{4}-[01]\d-[0-3]\d$/,sD=/T00:00(?::00)?(?:\.000)?Z$/,ev={year:"numeric",month:"short",day:"numeric"},tv={hour:"numeric",minute:"numeric",hour12:!0},aD={...ev,...tv};rr.extend(Jm),rr.extend(Xm),rr.extend(Zm);const Os=t=>{const{format:e,date_format:n=void 0,time_format:r=void 0,picker_utc:i=!1}=t;return{format:e||[typeof n=="string"?n:"",typeof r=="string"?r:""].join(" ").trim()||void 0,dateOnly:r===!1,timeOnly:n===!1,utc:i}},ec=(t,e)=>{const{format:n,timeOnly:r,utc:i}=Os(e);if(t)try{return n?(i?rr.utc:rr)(t,n).toDate():r?new Date(`${new Date().toJSON().split("T")[0]}T${t}`):new Date(t)}catch(o){console.error(o);return}},z1=t=>{const{dateOnly:e,timeOnly:n,utc:r}=Os(t),{year:i,month:o,day:s,hour:a,minute:c}=Sa({timeZone:r?"UTC":void 0}),u=`${i}-${o}-${s}`,d=`${a}:${c}`;return e?u:n?d:r?`${u}T${d}:00.000Z`:`${u}T${d}`},j1=(t,e,n)=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=Os(n),a=i?"YYYY-MM-DD":o?"HH:mm":"YYYY-MM-DDTHH:mm",c=`:00${e?.endsWith(".000")?".000":""}`;if(t==="")return"";if(t)try{if(r){const u=(s?rr.utc:rr)(t,a).format(r);return r.includes("Z")&&u.endsWith("+00:00")?u.replace("+00:00","Z"):u}return i?t:s?`${t}:00.000Z`:`${t}${c}`}catch(u){console.error(u);return}},lD=(t,e)=>{const{dateOnly:n,timeOnly:r,utc:i}=Os(e);if(!t)return"";const o=n?t?.match(/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/)?.groups?.date:r?t?.match(/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/)?.groups?.time:void 0;if(o)return o;try{const s=t?ec(t,e):new Date;if(t&&!s||t&&s&&Number.isNaN(s.getTime()))return"";const{year:a,month:c,day:u,hour:d,minute:f}=Sa({date:s,timeZone:i?"UTC":void 0}),h=`${a}-${c}-${u}`,p=`${d}:${f}`;return n?h:r?p:`${h}T${p}`}catch(s){return console.error(s),""}},B1=({locale:t,fieldConfig:e,currentValue:n})=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=Os(e);if(typeof n!="string"||!n.trim())return"";if(r)try{return(s?rr.utc:rr)(n,r).format(r)}catch{}const a=ec(n,e),c=wr(t);return!a||Number.isNaN(a.getTime())?"":o?a.toLocaleTimeString(c,tv):i?a.toLocaleDateString(c,{...ev,timeZone:s||oD.test(n)||sD.test(n)?"UTC":void 0}):a.toLocaleString(c,{...ev,...tv,timeZone:s?"UTC":void 0,timeZoneName:s?void 0:"short"})};rr.extend(Jm),rr.extend(Xm),rr.extend(Zm);const nv=/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,U1=/^default\('(?<defaultValue>.+?)'\)$/,q1=/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,cD=/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/,uD=t=>String(t).toUpperCase(),dD=t=>String(t).toLowerCase(),fD=(t,{format:e,timeZone:n},r)=>{const i=String(t),{dateOnly:o,utc:s}=Os(r),c=(n==="utc"||s||o&&!!i.match(/^\d{4}-[01]\d-[0-3]\d$/)||o&&!!i.match(/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/)?rr.utc:rr)(i);return c.isValid()?c.format(e):""},hD=(t,{defaultValue:e})=>t?String(t):e,pD=(t,{truthyValue:e,falsyValue:n})=>t?e:n,gD=(t,{max:e,ellipsis:n="…"})=>Kx(String(t),Number(e),{ellipsis:n}),mD=({fieldConfig:t,value:e,transformation:n})=>{if(n==="upper")return uD(e);if(n==="lower")return dD(e);const r=n.match(nv);if(r?.groups)return fD(e,r.groups,t??{});const i=n.match(U1);if(i?.groups)return hD(e,i.groups);const o=n.match(q1);if(o?.groups)return pD(e,o.groups);const s=n.match(cD);return s?.groups?gD(e,s.groups):String(e)},rv=({fieldConfig:t,value:e,transformations:n})=>(n.forEach(r=>{e=mD({fieldConfig:t,value:e,transformation:r})}),e),Lt=(t=0)=>new Promise(e=>{globalThis.setTimeout(()=>{e(void 0)},t)}),V1={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.blockfact.facti":["facti"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(V1);const H1={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(H1);var Ri=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},tc,Du,Ea;class vD{constructor(...e){tc.set(this,new Map),Du.set(this,new Map),Ea.set(this,new Map);for(const n of e)this.define(n)}define(e,n=!1){for(let[r,i]of Object.entries(e)){r=r.toLowerCase(),i=i.map(a=>a.toLowerCase()),Ri(this,Ea,"f").has(r)||Ri(this,Ea,"f").set(r,new Set);const o=Ri(this,Ea,"f").get(r);let s=!0;for(let a of i){const c=a.startsWith("*");if(a=c?a.slice(1):a,o?.add(a),s&&Ri(this,Du,"f").set(r,a),s=!1,c)continue;const u=Ri(this,tc,"f").get(a);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${u} -> ${a}". Pass \`force=true\` to override this definition.`);Ri(this,tc,"f").set(a,r)}}return this}getType(e){if(typeof e!="string")return null;const n=e.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),i=n.length<e.length;return!(r.length<n.length-1)&&i?null:Ri(this,tc,"f").get(r)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&Ri(this,Du,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:Ri(this,Ea,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const e of Ri(this,Ea,"f").values())Object.freeze(e);return this}_getTestState(){return{types:Ri(this,tc,"f"),extensions:Ri(this,Du,"f")}}}tc=new WeakMap,Du=new WeakMap,Ea=new WeakMap;const Jo=new vD(H1,V1)._freeze();var iv,K1;function bD(){if(K1)return iv;K1=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return iv=function(r,i,o){if(typeof i!="string")throw new Error("Input must be string");for(var s=i.length,a=0,c,u,d=0;d<s;d+=1){if(c=i.charCodeAt(d),u=i[d],t(c)&&e(i.charCodeAt(d+1))&&(d+=1,u+=i[d]),a+=r(u),a===o)return i.slice(0,d+1);if(a>o)return i.slice(0,d-u.length+1)}return i},iv}var ov,G1;function _D(){if(G1)return ov;G1=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return ov=function(r){if(typeof r!="string")throw new Error("Input must be string");for(var i=r.length,o=0,s=null,a=null,c=0;c<i;c++)s=r.charCodeAt(c),e(s)?a!=null&&t(a)?o+=1:o+=3:s<=127?o+=1:s>=128&&s<=2047?o+=2:s>=2048&&s<=65535&&(o+=3),a=s;return o},ov}var sv,W1;function yD(){if(W1)return sv;W1=1;var t=bD(),e=_D();return sv=t.bind(null,e),sv}var av,Y1;function wD(){if(Y1)return av;Y1=1;var t=yD(),e=/[\/\?<>\\:\*\|"]/g,n=/[\x00-\x1f\x80-\x9f]/g,r=/^\.+$/,i=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,o=/[\. ]+$/;function s(a,c){if(typeof a!="string")throw new Error("Input must be string");var u=a.replace(e,c).replace(n,c).replace(r,c).replace(i,c).replace(o,c);return t(u,255)}return av=function(a,c){var u=c&&c.replacement||"",d=s(a,u);return u===""?d:s(d,"")},av}var xD=wD();const kD=Bo(xD),J1=(t,e)=>new RegExp(`^${t.split("/").map(e).join("\\/")}\\b`),X1=t=>{const e=t.startsWith("@");return e&&(t=t.slice(1)),t=t.split("/").map(n=>encodeURIComponent(n).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)).join("/"),e?`@${t}`:t},SD=t=>decodeURIComponent(t),ah=t=>{const e=new Intl.NumberFormat(se(zt),{maximumFractionDigits:1}),n=1e3,r=n*1e3,i=r*1e3,o=i*1e3;return t<n?se(ue)("file_size_units.b",{values:{size:e.format(t)}}):t<r?se(ue)("file_size_units.kb",{values:{size:e.format(t/n)}}):t<i?se(ue)("file_size_units.mb",{values:{size:e.format(t/r)}}):t<o?se(ue)("file_size_units.gb",{values:{size:e.format(t/i)}}):se(ue)("file_size_units.tb",{values:{size:e.format(t/o)}})},Z1=(t,e)=>{if(!e.length)return t;const{filename:n,extension:r}=dn(t),i=new RegExp(`^${qt(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:""}$`),o=e.sort((a,c)=>vi(a.split(".")[0],c.split(".")[0])).findLast(a=>i.test(a));if(!o)return t;const s=Number(o.match(i)?.groups?.num??0)+1;return`${n}-${s}${r?`.${r}`:""}`},Q1=(t,{slugificationEnabled:e=!1,assetNamesInSameFolder:n=[]}={})=>{let r=kD(t.normalize());if(e){const{filename:i,extension:o}=dn(r);r=`${O1(i)}${o?`.${o}`:""}`}return Z1(r,n)},nc=t=>t.filter(Boolean).join("/"),lv=t=>{const e=t.split("/");let n=!1;return e.forEach((r,i)=>{if(r==="."||r===".."){if(n&&(e[i]=null,r==="..")){const o=e.findLastIndex((s,a)=>!!s&&a<i);o>-1&&(e[o]=null)}}else n=!0}),nc(e)},cv=t=>typeof t=="string"?new Blob([t],{type:"text/plain"}):t,$a=async t=>{const n=await cv(t).arrayBuffer();return va(new Blob([`blob ${n.byteLength}\0`,n]))},Uee="modulepreload",qee=function(t){return"/"+t},Vee={},ek=function(e,n,r){let i=Promise.resolve();function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})},uv="0.107.1",ED={"@jsquash/webp":"^1.5.0","@lexical/markdown":"^0.35.0","@sindresorhus/transliterate":"^2.0.0","@sveltia/ui":"^0.28.3","@sveltia/utils":"^0.8.5","create-react-class":"^15.7.0",dayjs:"^1.11.18",deepmerge:"^4.3.1",exifr:"^7.1.3","fast-deep-equal":"^3.1.3",flat:"^6.0.1","isomorphic-dompurify":"^2.28.0",leaflet:"^1.9.4",lexical:"^0.35.0",marked:"^16.3.0","marked-bidi":"^1.0.13",mime:"^4.1.0","parse-entities":"^4.0.2","pdfjs-dist":"^5.4.149",qrcode:"^1.5.4",react:"^19.1.1","react-dom":"^19.1.1","sanitize-filename":"^1.6.3","smol-toml":"^1.4.2","svelte-i18n":"^4.0.1",svgo:"^4.0.0","terra-draw":"^1.15.0","terra-draw-leaflet-adapter":"^1.0.3",turndown:"^7.2.1",yaml:"^2.8.1"},dv=t=>{const e=`https://unpkg.com/${t}`,n=ED[t]?.replace(/^\D/,"");return n?`${e}@${n}`:e},Ta=async(t,e)=>ek(()=>import(`${dv(t)}/${e}`),void 0),Ca=(t,e)=>{if(typeof t!="number")return NaN;if(!Number.isFinite(t))return t;const n=10**e;return Math.round(t*n)/n},$D=async(t,e)=>{if(!(e==="image")||!t.file)return{createdDate:void 0,coordinates:void 0};const{parse:r}=await Ta("exifr","dist/lite.esm.mjs"),{latitude:i,longitude:o,DateTimeOriginal:s,CreateDate:a=s}=await r(t.file).catch(()=>{})??{};return{createdDate:a instanceof Date?a:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(o)?{latitude:Ca(i,7),longitude:Ca(o,7)}:void 0}},TD=t=>{const e=new Image;return new Promise(n=>{const r=()=>{n({dimensions:{width:e.naturalWidth,height:e.naturalHeight}})};e.addEventListener("load",r,{once:!0}),e.src=t})},CD=async(t,e)=>{const n=document.createElement(e);return new Promise(r=>{const i=()=>{const{duration:o}=n;e==="audio"&&r({duration:o});const{videoWidth:s,videoHeight:a}=n;r({dimensions:{width:s,height:a},duration:o})};n.addEventListener("loadedmetadata",i,{once:!0}),n.src=t})},AD=async(t,e)=>e==="image"?TD(t):CD(t,e),PD=async(t,e,n)=>{const{dimensions:r,duration:i}=await AD(e,n),{createdDate:o,coordinates:s}=await $D(t,n);return{dimensions:r,duration:i,createdDate:o,coordinates:s}},tk=["avif","gif","jpeg","png","webp"],LD=tk.map(t=>`image/${t}`),fv=/\b(?:avif|gif|jpe?g|png|webp)$/i,ND=["image/svg+xml"],ID=/\b(?:svg)$/i,vo=[...LD,...ND],nk=["webp"],hv={},OD=async t=>{if(t in hv)return hv[t];const e=`image/${t}`,n=new OffscreenCanvas(1,1);n.getContext("2d");const i=(await n.convertToBlob({type:e})).type===e;return hv[t]=i,i},rk=async(t,{format:e="webp",quality:n=85}={})=>{const r=`image/${e}`;if(!await OD(e)&&nk.includes(e)){const o=t.getContext("2d").getImageData(0,0,t.width,t.height);try{const s=(await Ta(`@jsquash/${e}`,"encode.js?module")).default,a=await s(o,{quality:n});return new Blob([a],{type:r})}catch{}}return t.convertToBlob({type:r,quality:n/100})},RD=({width:t,height:e},{width:n=t,height:r=e,fit:i="scale-down"}={})=>{const o={scale:1,width:t,height:e};if(t===r&&e===r)return o;const s=t>e,a=t<r||e<r;let c=1,u=0,d=0;if(i==="scale-down"){if(a)return o;i="contain"}return i==="contain"&&(s?(n>r?(c=n/t,u=n):(c=r/t,u=r),d=e*c):(n>r?(c=r/e,d=r):(c=n/e,d=n),u=t*c)),{scale:c,width:u,height:d}},ik=(t,e,n)=>{const{scale:r,width:i,height:o}=RD(e,n);return t.width=i,t.height=o,{scale:r,width:i,height:o}},DD=async({blob:t})=>{const e=URL.createObjectURL(t),n=new Image;return new Promise(r=>{n.addEventListener("load",()=>{r({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(e)},{once:!0}),n.src=e})},MD=async({blob:t})=>{const e=URL.createObjectURL(t),n=document.createElement("video");return new Promise(r=>{n.addEventListener("canplay",()=>{n.pause(),r({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(e)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=e,n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n)})},FD=async t=>t.type.startsWith("video/")?MD({blob:t}):DD({blob:t}),pv=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{let s,a=0,c=0;try{s=await createImageBitmap(t),{width:a,height:c}=s}catch{({source:s,naturalWidth:a,naturalHeight:c}=await FD(t))}r??=a,i??=c;const u=new OffscreenCanvas(512,512),d=u.getContext("2d");return ik(u,{width:a,height:c},{fit:o,width:r,height:i}),d.drawImage(s,0,0,u.width,u.height),s instanceof HTMLVideoElement&&document.body.removeChild(s),rk(u,{format:e,quality:n})},zD=async t=>{const e=await t.text();try{const{optimize:n}=await Ta("svgo","dist/svgo.browser.js"),{data:r}=n(e);return new Blob([r],{type:t.type})}catch{}return t},rc=dv("pdfjs-dist"),jD=`${rc}/build/pdf.min.mjs`,BD=`${rc}/build/pdf.worker.min.mjs`,UD={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${rc}/cmaps/`,iccUrl:`${rc}/iccs/`,standardFontDataUrl:`${rc}/standard_fonts/`,wasmUrl:`${rc}/wasm/`};let lh;const qD=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{if(!lh)try{lh=await import(jD),lh.GlobalWorkerOptions.workerSrc=BD}catch{throw new Error("Failed to load PDF.js library")}const s=URL.createObjectURL(t),a=new OffscreenCanvas(512,512),c=a.getContext("2d");try{const d=await(await lh.getDocument({...UD,url:s}).promise).getPage(1),f=d.getViewport({scale:1}),{scale:h}=ik(a,{width:f.width,height:f.height},{width:r,height:i,fit:o});await d.render({canvasContext:c,viewport:h===1?f:d.getViewport({scale:h})}).promise,URL.revokeObjectURL(s)}catch{throw new Error("Failed to render PDF")}return rk(a,{format:e,quality:n})},gv=new Set,Rs=async(t,e=0)=>{const{file:n,blobURL:r,name:i,path:o}=t;if(r)return fetch(r).then(a=>a.blob());let s;if(n)s=n;else{if(gv.has(o)&&e<=25)return await Lt(200),Rs(t,e+1);gv.add(o);const a=await se(bn)?.fetchBlob?.(t);if(!a)throw new Error("Failed to retrieve blob");s=new Blob([a],{type:Jo.getType(i)??a.type})}return t.blobURL=URL.createObjectURL(s),gv.delete(o),s},mv=async t=>(t.blobURL||await Rs(t),t.blobURL);let ch;const vv=async(t,{cacheOnly:e=!1}={})=>{const n=t.name.endsWith(".pdf");if(!(["image","video"].includes(t.kind)||n))return;if(ch===void 0){const{databaseName:i}=se(bn)?.repository??{};ch=i?new mo(i,"asset-thumbnails"):null}let r=await ch?.get(t.sha);if(!r){if(e)return;const i=await Rs(t),o={format:"webp",quality:85,width:512,height:512,fit:"contain"};r=n?await qD(i,o):await pv(i,o),await ch?.set(t.sha,r)}return URL.createObjectURL(r)},Mu=(t,{pathOnly:e=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{const{publicPath:i,entryRelative:o,hasTemplateTags:s}=t.folder.collectionName===void 0?t.folder:nh(t.path).find(({collectionName:d})=>d!==void 0)??se(ka);if(o)return e&&r&&dn(t.path).dirname===dn(Object.values(r.locales)[0].path).dirname?t.name:void 0;const{_baseURL:a="",output:{encode_file_path:c=!1}={}}=se(Et);let u=s?t.path.replace(J1(t.folder.internalPath??"",d=>{const f=d.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return f?`(?<${f}>[^/]+)`:qt(d)}),i?.replaceAll(/{{(.+?)}}/g,"$<$1>")??""):t.path.replace(t.folder.internalPath??"",i==="/"?"":i??"");if(c&&(u=X1(u)),!(!u.startsWith("/")&&!n))return e?u:`${a}${u}`},ic=async({value:t,entry:e,collectionName:n,fileName:r,thumbnail:i=!1})=>{if(!t)return;if(/^(?:https?|data|blob):/.test(t))return t;const o=Vv({value:t,entry:e,collectionName:n,fileName:r});if(o)return(i?await vv(o):await mv(o))??Mu(o)},uh={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},dh=async t=>{const{kind:e,path:n}=t,{blobBaseURL:r}=se(bn)?.repository??{},i=await mv(t),o=Mu(t,{allowSpecial:!0,pathOnly:!0})??i;let s={};return["image","video","audio"].includes(e)&&i&&(s=await PD(t,i,e)),{...s,publicURL:Mu(t),repoBlobURL:r?`${r}/${n}`:void 0,usedEntries:o?await Uv(o):[]}},oc=nt(!1),bo=nt(),bv=nt([]),ri=nt([]),_v=nt([]),ok=t=>se(bv).filter(({collectionName:e,filePathMap:n})=>n?Object.values(n).includes(t):Kr(e)?._file?.fullPathRegEx?.test(t)).sort((e,n)=>n.folderPath?.localeCompare(e.folderPath??"")??0),VD=()=>{try{return se(ue)("index_file")}catch{return"Index File"}},ii=t=>{if(!rd(t))return;const{index_file:e}=t;if(!e)return;const n=e===!0?{}:e;return{name:n.name??"_index",label:n.label??VD(),icon:n.icon??"home",fields:n.fields,editor:n.editor}},_o=(t,e)=>{const n=ii(t);return n?e.slug===n.name:!1},HD=t=>{const e=ii(t);return e?!wo(t.name).some(({slug:n})=>n===e.name):!1};rr.extend(Jm),rr.extend(Xm),rr.extend(Zm);const KD=/{{(?:year|month|day|hour|minute|second)}}/,Xo=t=>ok(Object.values(t.locales)[0].path).map(({collectionName:e})=>Kr(e)).filter(e=>!!e),GD=({dateFieldName:t,fields:e,content:n})=>{const r=t?e.find(({widget:a,name:c})=>a==="datetime"&&c===t):e.find(({widget:a})=>a==="datetime"),i=r?n[r.name]:void 0;if(!r||!i)return;const{format:o,picker_utc:s=!1}=r;return Sa({date:(s?rr.utc:rr)(i,o).toDate(),timeZone:s?"UTC":void 0})},sk=(t,e,n,r)=>{const{show_preview_links:i=!0,_baseURL:o}=se(Et)??{},{slug:s,path:a,content:c}=t.locales[e]??{},{preview_path:u,preview_path_date_field:d,fields:f=[]}=r??n;if(!i||!o||!a||!c||!u)return;const h=_o(n,t),g=(h?ii(n):void 0)?.fields??f;let m;if(!(KD.test(u)&&(m=GD({dateFieldName:d,fields:g,content:c}),!m)))try{const v=xo(u,{type:"preview_path",collection:n,content:c,locale:e,currentSlug:s,entryFilePath:a,dateTimeParts:m,isIndexFile:h});return`${o.replace(/\/$/,"")}/${v.replace(/^\//,"")}`}catch{return}},WD=(t,e)=>`${se(bn)?.repository?.blobBaseURL}/${t.locales[e]?.path}?plain=1`,fh=t=>!("divider"in t)&&typeof t.file=="string"&&Array.isArray(t.fields),hh=t=>t.filter(e=>fh(e)),sc=(t,e)=>{const n=typeof t=="string"?Kr(t):t;if(!(!n||!("_fileMap"in n)))return n._fileMap[e]},Fu=t=>t.label||t.name,Ds=(t,e)=>"_fileMap"in t?Object.values(t._fileMap).filter(({_file:n,_i18n:r})=>n.fullPath===e.locales[r.defaultLocale]?.path):[],yv=(t,e)=>se(ri).find(n=>Xo(n).some(r=>r.name===t&&Ds(r,n).some(i=>i.name===e))),ak=(t,e)=>{if(t&&e){const{collections:n,singletons:r}=se(Et);if(t==="_singletons")return Array.isArray(r)?hh(r).findIndex(o=>o.name===e):-1;const i=zs({collections:n}).find(({name:o})=>o===t);if(i&&"files"in i)return i.files.findIndex(({name:o})=>o===e)??-1}return-1},wv=["file","image"],ph=[...wv,"relation","select"],lk=[...ph,"list","number"],ck=({multiline:t,dotAll:e,source:n})=>t||e||n.includes("[\\s\\S]")||n.includes("[\\S\\s]"),uk=t=>Yo(Object.fromEntries(Object.entries(Yi(t)).filter(([e])=>!e.split(".").pop()?.startsWith("__sc_")))),dk=t=>t.replace(/"/g,"'"),Aa=t=>t.replace(/"/g,"&quot;"),xv=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,YD=new RegExp(xv,"g"),JD=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,XD=new RegExp(`${xv.source}|${JD.source}`),gh=new Map,fk={id:"image",label:"Image",fields:[{name:"src",label:"Source",widget:"image"},{name:"alt",label:"Alt Text",required:!1},{name:"title",label:"Title",required:!1}],pattern:xv,toBlock:t=>{const{src:e="",alt:n="",title:r=""}=t;return e?`![${n}](${e}${r?` "${dk(r)}"`:""})`:""},toPreview:t=>{const{src:e="",alt:n="",title:r=""}=t;return`<img src="${Aa(e)}" alt="${Aa(n)}" title="${Aa(r)}">`}},ZD={id:"linked-image",label:"Image",fields:[...fk.fields,{name:"link",label:"Link",required:!1}],pattern:XD,fromBlock:t=>{const{src:e,alt:n,title:r,src2:i,alt2:o,title2:s,link:a}=t.groups??{};return{src:(e||i||"").trim(),alt:(n||o||"").trim(),title:(r||s||"").trim(),link:(a||"").trim()}},toBlock:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=e?`![${n}](${e}${r?` "${dk(r)}"`:""})`:"";return o&&i?`[${o}](${i})`:o},toPreview:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=`<img src="${Aa(e)}" alt="${Aa(n)}" title="${Aa(r)}">`;return i?`<a href="${Aa(i)}">${o}</a>`:o}},hk=t=>{if(gh.has(t))return gh.get(t);const e={icon:"image",label:se(ue)("editor_components.image"),fields:[{name:"src",label:se(ue)("editor_components.src"),widget:"image"},{name:"alt",label:se(ue)("editor_components.alt"),required:!1},{name:"title",label:se(ue)("editor_components.title"),required:!1}]};return{image:{...fk,...e},"linked-image":{...ZD,...e,fields:[...e.fields,{name:"link",label:se(ue)("editor_components.link"),required:!1}]}}[t]};var kv,pk;function gk(){if(pk)return kv;pk=1;const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:c,construct:u}=typeof Reflect<"u"&&Reflect;o||(o=function(Te){return Te}),s||(s=function(Te){return Te}),c||(c=function(Te,ze){for(var Oe=arguments.length,Ae=new Array(Oe>2?Oe-2:0),we=2;we<Oe;we++)Ae[we-2]=arguments[we];return Te.apply(ze,Ae)}),u||(u=function(Te){for(var ze=arguments.length,Oe=new Array(ze>1?ze-1:0),Ae=1;Ae<ze;Ae++)Oe[Ae-1]=arguments[Ae];return new Te(...Oe)});const d=x(Array.prototype.forEach),f=x(Array.prototype.lastIndexOf),h=x(Array.prototype.pop),p=x(Array.prototype.push),g=x(Array.prototype.splice),m=x(String.prototype.toLowerCase),v=x(String.prototype.toString),b=x(String.prototype.match),y=x(String.prototype.replace),w=x(String.prototype.indexOf),E=x(String.prototype.trim),k=x(Object.prototype.hasOwnProperty),S=x(RegExp.prototype.test),C=T(TypeError);function x(Ue){return function(Te){Te instanceof RegExp&&(Te.lastIndex=0);for(var ze=arguments.length,Oe=new Array(ze>1?ze-1:0),Ae=1;Ae<ze;Ae++)Oe[Ae-1]=arguments[Ae];return c(Ue,Te,Oe)}}function T(Ue){return function(){for(var Te=arguments.length,ze=new Array(Te),Oe=0;Oe<Te;Oe++)ze[Oe]=arguments[Oe];return u(Ue,ze)}}function A(Ue,Te){let ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;e&&e(Ue,null);let Oe=Te.length;for(;Oe--;){let Ae=Te[Oe];if(typeof Ae=="string"){const we=ze(Ae);we!==Ae&&(n(Te)||(Te[Oe]=we),Ae=we)}Ue[Ae]=!0}return Ue}function P(Ue){for(let Te=0;Te<Ue.length;Te++)k(Ue,Te)||(Ue[Te]=null);return Ue}function L(Ue){const Te=a(null);for(const[ze,Oe]of t(Ue))k(Ue,ze)&&(Array.isArray(Oe)?Te[ze]=P(Oe):Oe&&typeof Oe=="object"&&Oe.constructor===Object?Te[ze]=L(Oe):Te[ze]=Oe);return Te}function I(Ue,Te){for(;Ue!==null;){const Oe=i(Ue,Te);if(Oe){if(Oe.get)return x(Oe.get);if(typeof Oe.value=="function")return x(Oe.value)}Ue=r(Ue)}function ze(){return null}return ze}const N=o(["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"]),D=o(["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","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=o(["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"]),H=o(["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"]),W=o(["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"]),Y=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=o(["#text"]),F=o(["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"]),K=o(["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","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"]),J=o(["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"]),Q=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),oe=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),re=s(/<%[\w\W]*|[\w\W]*%>/gm),ee=s(/\$\{[\w\W]*/gm),ne=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),ae=s(/^aria-[\-\w]+$/),fe=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),be=s(/^(?:\w+script|data):/i),pe=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),he=s(/^html$/i),ge=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var ve=Object.freeze({__proto__:null,ARIA_ATTR:ae,ATTR_WHITESPACE:pe,CUSTOM_ELEMENT:ge,DATA_ATTR:ne,DOCTYPE_NAME:he,ERB_EXPR:re,IS_ALLOWED_URI:fe,IS_SCRIPT_OR_DATA:be,MUSTACHE_EXPR:oe,TMPLIT_EXPR:ee});const _e={element:1,text:3,progressingInstruction:7,comment:8,document:9},$e=function(){return typeof window>"u"?null:window},Ce=function(Te,ze){if(typeof Te!="object"||typeof Te.createPolicy!="function")return null;let Oe=null;const Ae="data-tt-policy-suffix";ze&&ze.hasAttribute(Ae)&&(Oe=ze.getAttribute(Ae));const we="dompurify"+(Oe?"#"+Oe:"");try{return Te.createPolicy(we,{createHTML(Pe){return Pe},createScriptURL(Pe){return Pe}})}catch{return console.warn("TrustedTypes policy "+we+" could not be created."),null}},Re=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function He(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$e();const Te=ct=>He(ct);if(Te.version="3.2.7",Te.removed=[],!Ue||!Ue.document||Ue.document.nodeType!==_e.document||!Ue.Element)return Te.isSupported=!1,Te;let{document:ze}=Ue;const Oe=ze,Ae=Oe.currentScript,{DocumentFragment:we,HTMLTemplateElement:Pe,Node:ye,Element:ot,NodeFilter:Qe,NamedNodeMap:Ne=Ue.NamedNodeMap||Ue.MozNamedAttrMap,HTMLFormElement:je,DOMParser:Xe,trustedTypes:st}=Ue,lt=ot.prototype,xt=I(lt,"cloneNode"),Yt=I(lt,"remove"),wn=I(lt,"nextSibling"),rn=I(lt,"childNodes"),on=I(lt,"parentNode");if(typeof Pe=="function"){const ct=ze.createElement("template");ct.content&&ct.content.ownerDocument&&(ze=ct.content.ownerDocument)}let pt,Mt="";const{implementation:cn,createNodeIterator:En,createDocumentFragment:mn,getElementsByTagName:Kt}=ze,{importNode:It}=Oe;let kt=Re();Te.isSupported=typeof t=="function"&&typeof on=="function"&&cn&&cn.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:hn,ERB_EXPR:Cr,TMPLIT_EXPR:ui,DATA_ATTR:ht,ARIA_ATTR:sn,IS_SCRIPT_OR_DATA:Ln,ATTR_WHITESPACE:$n,CUSTOM_ELEMENT:Dr}=ve;let{IS_ALLOWED_URI:Wn}=ve,At=null;const Yn=A({},[...N,...D,...B,...W,...O]);let Bt=null;const ji=A({},[...F,...K,...J,...Q]);let Ut=Object.seal(a(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}})),Ei=null,vn=null,Qr=!0,Mr=!0,Fo=!1,di=!0,Jt=!1,ut=!0,bt=!1,Nn=!1,In=!1,pr=!1,fi=!1,zn=!1,gr=!0,zo=!1;const rf="user-content-";let yl=!0,ar=!1,mr={},hi=null;const OP=A({},["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"]);let RP=null;const DP=A({},["audio","video","img","source","image","track"]);let yw=null;const MP=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),cg="http://www.w3.org/1998/Math/MathML",ug="http://www.w3.org/2000/svg",ms="http://www.w3.org/1999/xhtml";let tu=ms,ww=!1,xw=null;const Oee=A({},[cg,ug,ms],v);let dg=A({},["mi","mo","mn","ms","mtext"]),fg=A({},["annotation-xml"]);const Ree=A({},["title","style","font","a","script"]);let of=null;const Dee=["application/xhtml+xml","text/html"],Mee="text/html";let vr=null,nu=null;const Fee=ze.createElement("form"),FP=function(de){return de instanceof RegExp||de instanceof Function},kw=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(nu&&nu===de)){if((!de||typeof de!="object")&&(de={}),de=L(de),of=Dee.indexOf(de.PARSER_MEDIA_TYPE)===-1?Mee:de.PARSER_MEDIA_TYPE,vr=of==="application/xhtml+xml"?v:m,At=k(de,"ALLOWED_TAGS")?A({},de.ALLOWED_TAGS,vr):Yn,Bt=k(de,"ALLOWED_ATTR")?A({},de.ALLOWED_ATTR,vr):ji,xw=k(de,"ALLOWED_NAMESPACES")?A({},de.ALLOWED_NAMESPACES,v):Oee,yw=k(de,"ADD_URI_SAFE_ATTR")?A(L(MP),de.ADD_URI_SAFE_ATTR,vr):MP,RP=k(de,"ADD_DATA_URI_TAGS")?A(L(DP),de.ADD_DATA_URI_TAGS,vr):DP,hi=k(de,"FORBID_CONTENTS")?A({},de.FORBID_CONTENTS,vr):OP,Ei=k(de,"FORBID_TAGS")?A({},de.FORBID_TAGS,vr):L({}),vn=k(de,"FORBID_ATTR")?A({},de.FORBID_ATTR,vr):L({}),mr=k(de,"USE_PROFILES")?de.USE_PROFILES:!1,Qr=de.ALLOW_ARIA_ATTR!==!1,Mr=de.ALLOW_DATA_ATTR!==!1,Fo=de.ALLOW_UNKNOWN_PROTOCOLS||!1,di=de.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Jt=de.SAFE_FOR_TEMPLATES||!1,ut=de.SAFE_FOR_XML!==!1,bt=de.WHOLE_DOCUMENT||!1,pr=de.RETURN_DOM||!1,fi=de.RETURN_DOM_FRAGMENT||!1,zn=de.RETURN_TRUSTED_TYPE||!1,In=de.FORCE_BODY||!1,gr=de.SANITIZE_DOM!==!1,zo=de.SANITIZE_NAMED_PROPS||!1,yl=de.KEEP_CONTENT!==!1,ar=de.IN_PLACE||!1,Wn=de.ALLOWED_URI_REGEXP||fe,tu=de.NAMESPACE||ms,dg=de.MATHML_TEXT_INTEGRATION_POINTS||dg,fg=de.HTML_INTEGRATION_POINTS||fg,Ut=de.CUSTOM_ELEMENT_HANDLING||{},de.CUSTOM_ELEMENT_HANDLING&&FP(de.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ut.tagNameCheck=de.CUSTOM_ELEMENT_HANDLING.tagNameCheck),de.CUSTOM_ELEMENT_HANDLING&&FP(de.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ut.attributeNameCheck=de.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),de.CUSTOM_ELEMENT_HANDLING&&typeof de.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ut.allowCustomizedBuiltInElements=de.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Jt&&(Mr=!1),fi&&(pr=!0),mr&&(At=A({},O),Bt=[],mr.html===!0&&(A(At,N),A(Bt,F)),mr.svg===!0&&(A(At,D),A(Bt,K),A(Bt,Q)),mr.svgFilters===!0&&(A(At,B),A(Bt,K),A(Bt,Q)),mr.mathMl===!0&&(A(At,W),A(Bt,J),A(Bt,Q))),de.ADD_TAGS&&(At===Yn&&(At=L(At)),A(At,de.ADD_TAGS,vr)),de.ADD_ATTR&&(Bt===ji&&(Bt=L(Bt)),A(Bt,de.ADD_ATTR,vr)),de.ADD_URI_SAFE_ATTR&&A(yw,de.ADD_URI_SAFE_ATTR,vr),de.FORBID_CONTENTS&&(hi===OP&&(hi=L(hi)),A(hi,de.FORBID_CONTENTS,vr)),yl&&(At["#text"]=!0),bt&&A(At,["html","head","body"]),At.table&&(A(At,["tbody"]),delete Ei.tbody),de.TRUSTED_TYPES_POLICY){if(typeof de.TRUSTED_TYPES_POLICY.createHTML!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof de.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');pt=de.TRUSTED_TYPES_POLICY,Mt=pt.createHTML("")}else pt===void 0&&(pt=Ce(st,Ae)),pt!==null&&typeof Mt=="string"&&(Mt=pt.createHTML(""));o&&o(de),nu=de}},zP=A({},[...D,...B,...H]),jP=A({},[...W,...Y]),zee=function(de){let qe=on(de);(!qe||!qe.tagName)&&(qe={namespaceURI:tu,tagName:"template"});const at=m(de.tagName),Tn=m(qe.tagName);return xw[de.namespaceURI]?de.namespaceURI===ug?qe.namespaceURI===ms?at==="svg":qe.namespaceURI===cg?at==="svg"&&(Tn==="annotation-xml"||dg[Tn]):!!zP[at]:de.namespaceURI===cg?qe.namespaceURI===ms?at==="math":qe.namespaceURI===ug?at==="math"&&fg[Tn]:!!jP[at]:de.namespaceURI===ms?qe.namespaceURI===ug&&!fg[Tn]||qe.namespaceURI===cg&&!dg[Tn]?!1:!jP[at]&&(Ree[at]||!zP[at]):!!(of==="application/xhtml+xml"&&xw[de.namespaceURI]):!1},jo=function(de){p(Te.removed,{element:de});try{on(de).removeChild(de)}catch{Yt(de)}},wl=function(de,qe){try{p(Te.removed,{attribute:qe.getAttributeNode(de),from:qe})}catch{p(Te.removed,{attribute:null,from:qe})}if(qe.removeAttribute(de),de==="is")if(pr||fi)try{jo(qe)}catch{}else try{qe.setAttribute(de,"")}catch{}},BP=function(de){let qe=null,at=null;if(In)de="<remove></remove>"+de;else{const tr=b(de,/^[\r\n\t ]+/);at=tr&&tr[0]}of==="application/xhtml+xml"&&tu===ms&&(de='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+de+"</body></html>");const Tn=pt?pt.createHTML(de):de;if(tu===ms)try{qe=new Xe().parseFromString(Tn,of)}catch{}if(!qe||!qe.documentElement){qe=cn.createDocument(tu,"template",null);try{qe.documentElement.innerHTML=ww?Mt:Tn}catch{}}const Fr=qe.body||qe.documentElement;return de&&at&&Fr.insertBefore(ze.createTextNode(at),Fr.childNodes[0]||null),tu===ms?Kt.call(qe,bt?"html":"body")[0]:bt?qe.documentElement:Fr},UP=function(de){return En.call(de.ownerDocument||de,de,Qe.SHOW_ELEMENT|Qe.SHOW_COMMENT|Qe.SHOW_TEXT|Qe.SHOW_PROCESSING_INSTRUCTION|Qe.SHOW_CDATA_SECTION,null)},Sw=function(de){return de instanceof je&&(typeof de.nodeName!="string"||typeof de.textContent!="string"||typeof de.removeChild!="function"||!(de.attributes instanceof Ne)||typeof de.removeAttribute!="function"||typeof de.setAttribute!="function"||typeof de.namespaceURI!="string"||typeof de.insertBefore!="function"||typeof de.hasChildNodes!="function")},qP=function(de){return typeof ye=="function"&&de instanceof ye};function vs(ct,de,qe){d(ct,at=>{at.call(Te,de,qe,nu)})}const VP=function(de){let qe=null;if(vs(kt.beforeSanitizeElements,de,null),Sw(de))return jo(de),!0;const at=vr(de.nodeName);if(vs(kt.uponSanitizeElement,de,{tagName:at,allowedTags:At}),ut&&de.hasChildNodes()&&!qP(de.firstElementChild)&&S(/<[/\w!]/g,de.innerHTML)&&S(/<[/\w!]/g,de.textContent)||de.nodeType===_e.progressingInstruction||ut&&de.nodeType===_e.comment&&S(/<[/\w]/g,de.data))return jo(de),!0;if(!At[at]||Ei[at]){if(!Ei[at]&&KP(at)&&(Ut.tagNameCheck instanceof RegExp&&S(Ut.tagNameCheck,at)||Ut.tagNameCheck instanceof Function&&Ut.tagNameCheck(at)))return!1;if(yl&&!hi[at]){const Tn=on(de)||de.parentNode,Fr=rn(de)||de.childNodes;if(Fr&&Tn){const tr=Fr.length;for(let pi=tr-1;pi>=0;--pi){const bs=xt(Fr[pi],!0);bs.__removalCount=(de.__removalCount||0)+1,Tn.insertBefore(bs,wn(de))}}}return jo(de),!0}return de instanceof ot&&!zee(de)||(at==="noscript"||at==="noembed"||at==="noframes")&&S(/<\/no(script|embed|frames)/i,de.innerHTML)?(jo(de),!0):(Jt&&de.nodeType===_e.text&&(qe=de.textContent,d([hn,Cr,ui],Tn=>{qe=y(qe,Tn," ")}),de.textContent!==qe&&(p(Te.removed,{element:de.cloneNode()}),de.textContent=qe)),vs(kt.afterSanitizeElements,de,null),!1)},HP=function(de,qe,at){if(gr&&(qe==="id"||qe==="name")&&(at in ze||at in Fee))return!1;if(!(Mr&&!vn[qe]&&S(ht,qe))){if(!(Qr&&S(sn,qe))){if(!Bt[qe]||vn[qe]){if(!(KP(de)&&(Ut.tagNameCheck instanceof RegExp&&S(Ut.tagNameCheck,de)||Ut.tagNameCheck instanceof Function&&Ut.tagNameCheck(de))&&(Ut.attributeNameCheck instanceof RegExp&&S(Ut.attributeNameCheck,qe)||Ut.attributeNameCheck instanceof Function&&Ut.attributeNameCheck(qe,de))||qe==="is"&&Ut.allowCustomizedBuiltInElements&&(Ut.tagNameCheck instanceof RegExp&&S(Ut.tagNameCheck,at)||Ut.tagNameCheck instanceof Function&&Ut.tagNameCheck(at))))return!1}else if(!yw[qe]){if(!S(Wn,y(at,$n,""))){if(!((qe==="src"||qe==="xlink:href"||qe==="href")&&de!=="script"&&w(at,"data:")===0&&RP[de])){if(!(Fo&&!S(Ln,y(at,$n,"")))){if(at)return!1}}}}}}return!0},KP=function(de){return de!=="annotation-xml"&&b(de,Dr)},GP=function(de){vs(kt.beforeSanitizeAttributes,de,null);const{attributes:qe}=de;if(!qe||Sw(de))return;const at={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Bt,forceKeepAttr:void 0};let Tn=qe.length;for(;Tn--;){const Fr=qe[Tn],{name:tr,namespaceURI:pi,value:bs}=Fr,ru=vr(tr),Ew=bs;let Ar=tr==="value"?Ew:E(Ew);if(at.attrName=ru,at.attrValue=Ar,at.keepAttr=!0,at.forceKeepAttr=void 0,vs(kt.uponSanitizeAttribute,de,at),Ar=at.attrValue,zo&&(ru==="id"||ru==="name")&&(wl(tr,de),Ar=rf+Ar),ut&&S(/((--!?|])>)|<\/(style|title|textarea)/i,Ar)){wl(tr,de);continue}if(ru==="attributename"&&b(Ar,"href")){wl(tr,de);continue}if(at.forceKeepAttr)continue;if(!at.keepAttr){wl(tr,de);continue}if(!di&&S(/\/>/i,Ar)){wl(tr,de);continue}Jt&&d([hn,Cr,ui],YP=>{Ar=y(Ar,YP," ")});const WP=vr(de.nodeName);if(!HP(WP,ru,Ar)){wl(tr,de);continue}if(pt&&typeof st=="object"&&typeof st.getAttributeType=="function"&&!pi)switch(st.getAttributeType(WP,ru)){case"TrustedHTML":{Ar=pt.createHTML(Ar);break}case"TrustedScriptURL":{Ar=pt.createScriptURL(Ar);break}}if(Ar!==Ew)try{pi?de.setAttributeNS(pi,tr,Ar):de.setAttribute(tr,Ar),Sw(de)?jo(de):h(Te.removed)}catch{wl(tr,de)}}vs(kt.afterSanitizeAttributes,de,null)},jee=function ct(de){let qe=null;const at=UP(de);for(vs(kt.beforeSanitizeShadowDOM,de,null);qe=at.nextNode();)vs(kt.uponSanitizeShadowNode,qe,null),VP(qe),GP(qe),qe.content instanceof we&&ct(qe.content);vs(kt.afterSanitizeShadowDOM,de,null)};return Te.sanitize=function(ct){let de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=null,at=null,Tn=null,Fr=null;if(ww=!ct,ww&&(ct="<!-->"),typeof ct!="string"&&!qP(ct))if(typeof ct.toString=="function"){if(ct=ct.toString(),typeof ct!="string")throw C("dirty is not a string, aborting")}else throw C("toString is not a function");if(!Te.isSupported)return ct;if(Nn||kw(de),Te.removed=[],typeof ct=="string"&&(ar=!1),ar){if(ct.nodeName){const bs=vr(ct.nodeName);if(!At[bs]||Ei[bs])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(ct instanceof ye)qe=BP("<!---->"),at=qe.ownerDocument.importNode(ct,!0),at.nodeType===_e.element&&at.nodeName==="BODY"||at.nodeName==="HTML"?qe=at:qe.appendChild(at);else{if(!pr&&!Jt&&!bt&&ct.indexOf("<")===-1)return pt&&zn?pt.createHTML(ct):ct;if(qe=BP(ct),!qe)return pr?null:zn?Mt:""}qe&&In&&jo(qe.firstChild);const tr=UP(ar?ct:qe);for(;Tn=tr.nextNode();)VP(Tn),GP(Tn),Tn.content instanceof we&&jee(Tn.content);if(ar)return ct;if(pr){if(fi)for(Fr=mn.call(qe.ownerDocument);qe.firstChild;)Fr.appendChild(qe.firstChild);else Fr=qe;return(Bt.shadowroot||Bt.shadowrootmode)&&(Fr=It.call(Oe,Fr,!0)),Fr}let pi=bt?qe.outerHTML:qe.innerHTML;return bt&&At["!doctype"]&&qe.ownerDocument&&qe.ownerDocument.doctype&&qe.ownerDocument.doctype.name&&S(he,qe.ownerDocument.doctype.name)&&(pi="<!DOCTYPE "+qe.ownerDocument.doctype.name+`>
138
138
  `+pi),Jt&&d([hn,Cr,ui],bs=>{pi=y(pi,bs," ")}),pt&&zn?pt.createHTML(pi):pi},Te.setConfig=function(){let ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kw(ct),Nn=!0},Te.clearConfig=function(){nu=null,Nn=!1},Te.isValidAttribute=function(ct,de,qe){nu||kw({});const at=vr(ct),Tn=vr(de);return HP(at,Tn,qe)},Te.addHook=function(ct,de){typeof de=="function"&&p(kt[ct],de)},Te.removeHook=function(ct,de){if(de!==void 0){const qe=f(kt[ct],de);return qe===-1?void 0:g(kt[ct],qe,1)[0]}return h(kt[ct])},Te.removeHooks=function(ct){kt[ct]=[]},Te.removeAllHooks=function(){kt=Re()},Te}var Ye=He();return kv=Ye,kv}var Sv,mk;function QD(){return mk||(mk=1,Sv=window.DOMPurify||(window.DOMPurify=gk().default||gk())),Sv}var Nr=QD();function Ev(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Pa=Ev();function vk(t){Pa=t}var zu={exec:()=>null};function Wt(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(Vr.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,e)};return r}var Vr={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,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ 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,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},eM=/^(?:[ \t]*(?:\n|$))+/,tM=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,nM=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ju=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,rM=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,$v=/(?:[*+-]|\d{1,9}[.)])/,bk=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_k=Wt(bk).replace(/bull/g,$v).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(),iM=Wt(bk).replace(/bull/g,$v).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(),Tv=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,oM=/^[^\n]+/,Cv=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sM=Wt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Cv).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),aM=Wt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,$v).getRegex(),mh="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",Av=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,lM=Wt("^ {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",Av).replace("tag",mh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),yk=Wt(Tv).replace("hr",ju).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mh).getRegex(),cM=Wt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",yk).getRegex(),Pv={blockquote:cM,code:tM,def:sM,fences:nM,heading:rM,hr:ju,html:lM,lheading:_k,list:aM,newline:eM,paragraph:yk,table:zu,text:oM},wk=Wt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ju).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mh).getRegex(),uM={...Pv,lheading:iM,table:wk,paragraph:Wt(Tv).replace("hr",ju).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",wk).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mh).getRegex()},dM={...Pv,html:Wt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Av).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:zu,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Wt(Tv).replace("hr",ju).replace("heading",` *#{1,6} *[^
139
139
  ]`).replace("lheading",_k).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},fM=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,hM=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,xk=/^( {2,}|\\)\n(?!\s*$)/,pM=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,vh=/[\p{P}\p{S}]/u,Lv=/[\s\p{P}\p{S}]/u,kk=/[^\s\p{P}\p{S}]/u,gM=Wt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Lv).getRegex(),Sk=/(?!~)[\p{P}\p{S}]/u,mM=/(?!~)[\s\p{P}\p{S}]/u,vM=/(?:[^\s\p{P}\p{S}]|~)/u,bM=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,Ek=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_M=Wt(Ek,"u").replace(/punct/g,vh).getRegex(),yM=Wt(Ek,"u").replace(/punct/g,Sk).getRegex(),$k="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",wM=Wt($k,"gu").replace(/notPunctSpace/g,kk).replace(/punctSpace/g,Lv).replace(/punct/g,vh).getRegex(),xM=Wt($k,"gu").replace(/notPunctSpace/g,vM).replace(/punctSpace/g,mM).replace(/punct/g,Sk).getRegex(),kM=Wt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,kk).replace(/punctSpace/g,Lv).replace(/punct/g,vh).getRegex(),SM=Wt(/\\(punct)/,"gu").replace(/punct/g,vh).getRegex(),EM=Wt(/^<(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(),$M=Wt(Av).replace("(?:-->|$)","-->").getRegex(),TM=Wt("^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",$M).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bh=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,CM=Wt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",bh).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Tk=Wt(/^!?\[(label)\]\[(ref)\]/).replace("label",bh).replace("ref",Cv).getRegex(),Ck=Wt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Cv).getRegex(),AM=Wt("reflink|nolink(?!\\()","g").replace("reflink",Tk).replace("nolink",Ck).getRegex(),Nv={_backpedal:zu,anyPunctuation:SM,autolink:EM,blockSkip:bM,br:xk,code:hM,del:zu,emStrongLDelim:_M,emStrongRDelimAst:wM,emStrongRDelimUnd:kM,escape:fM,link:CM,nolink:Ck,punctuation:gM,reflink:Tk,reflinkSearch:AM,tag:TM,text:pM,url:zu},PM={...Nv,link:Wt(/^!?\[(label)\]\((.*?)\)/).replace("label",bh).getRegex(),reflink:Wt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bh).getRegex()},Iv={...Nv,emStrongRDelimAst:xM,emStrongLDelim:yM,url:Wt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},LM={...Iv,br:Wt(xk).replace("{2,}","*").getRegex(),text:Wt(Iv.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},_h={normal:Pv,gfm:uM,pedantic:dM},Bu={normal:Nv,gfm:Iv,breaks:LM,pedantic:PM},NM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ak=t=>NM[t];function yo(t,e){if(e){if(Vr.escapeTest.test(t))return t.replace(Vr.escapeReplace,Ak)}else if(Vr.escapeTestNoEncode.test(t))return t.replace(Vr.escapeReplaceNoEncode,Ak);return t}function Pk(t){try{t=encodeURI(t).replace(Vr.percentDecode,"%")}catch{return null}return t}function Lk(t,e){let n=t.replace(Vr.findPipe,(o,s,a)=>{let c=!1,u=s;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Vr.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Vr.slashPipe,"|");return r}function Uu(t,e,n){let r=t.length;if(r===0)return"";let i=0;for(;i<r&&t.charAt(r-i-1)===e;)i++;return t.slice(0,r-i)}function IM(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function Nk(t,e,n,r,i){let o=e.href,s=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:s,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,c}function OM(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let i=r[1];return e.split(`
140
140
  `).map(o=>{let s=o.match(n.other.beginningSpace);if(s===null)return o;let[a]=s;return a.length>=i.length?o.slice(i.length):o}).join(`
@@ -394,7 +394,7 @@ ${o}`.trim()}function jF(t,{maxDepth:e=1e3,numbersAsFloat:n=!1}={}){if(Wu(t)!=="
394
394
 
395
395
  `,QU=za?" ":Kh,Ba={bold:1,capitalize:1024,code:16,highlight:yb,italic:2,lowercase:256,strikethrough:Vh,subscript:32,superscript:64,underline:Hh,uppercase:512},e4={directionless:1,unmergeable:2},hE={center:xb,end:$b,justify:Sb,left:wb,right:kb,start:Eb},t4={[xb]:"center",[$b]:"end",[Sb]:"justify",[wb]:"left",[kb]:"right",[Eb]:"start"},n4={normal:0,segmented:2,token:1},r4={[YU]:"normal",[XU]:"segmented",[JU]:"token"},pE="$config";function gE(t,e,n,r,i,o){let s=t.getFirstChild();for(;s!==null;){const a=s.__key;s.__parent===e&&(xe(s)&&gE(s,a,n,r,i,o),n.has(a)||o.delete(a),i.push(a)),s=s.getNextSibling()}}const i4=100;let Tb=!1,Cb=0;function o4(t){Cb=t.timeStamp}function Ab(t,e,n){const r=t.nodeName==="BR",i=e.__lexicalLineBreak;return i&&(t===i||r&&t.previousSibling===i)||r&&xp(t,n)!==void 0}function s4(t,e,n){const r=no(Mi(n));let i=null,o=null;r!==null&&r.anchorNode===t&&(i=r.anchorOffset,o=r.focusOffset);const s=t.nodeValue;s!==null&&w_(e,s,i,o,!1)}function a4(t,e,n){if(Le(t)){const r=t.anchor.getNode();if(r.is(n)&&t.format!==r.getFormat())return!1}return us(e)&&n.isAttached()}function l4(t,e,n,r){for(let i=t;i&&!sq(i);i=Cd(i)){const o=xp(i,e);if(o!==void 0){const s=Pn(o,n);if(s)return jt(s)||!yn(i)?void 0:[i,s]}else if(i===r)return[r,j$(n)]}}function mE(t,e,n){Tb=!0;const r=performance.now()-Cb>i4;try{wi(t,(()=>{const i=Ve()||(function(h){return h.getEditorState().read((()=>{const p=Ve();return p!==null?p.clone():null}))})(t),o=new Map,s=t.getRootElement(),a=t._editorState,c=t._blockCursorElement;let u=!1,d="";for(let h=0;h<e.length;h++){const p=e[h],g=p.type,m=p.target,v=l4(m,t,a,s);if(!v)continue;const[b,y]=v;if(g==="characterData")r&&Ke(y)&&us(m)&&a4(i,m,y)&&s4(m,y,t);else if(g==="childList"){u=!0;const w=p.addedNodes;for(let S=0;S<w.length;S++){const C=w[S],x=M$(C),T=C.parentNode;if(T!=null&&C!==c&&x===null&&!Ab(C,T,t)){if(za){const A=(yn(C)?C.innerText:null)||C.nodeValue;A&&(d+=A)}T.removeChild(C)}}const E=p.removedNodes,k=E.length;if(k>0){let S=0;for(let C=0;C<k;C++){const x=E[C];(Ab(x,m,t)||c===x)&&(m.appendChild(x),S++)}k!==S&&o.set(b,y)}}}if(o.size>0)for(const[h,p]of o)p.reconcileObservedMutation(h,t);const f=n.takeRecords();if(f.length>0){for(let h=0;h<f.length;h++){const p=f[h],g=p.addedNodes,m=p.target;for(let v=0;v<g.length;v++){const b=g[v],y=b.parentNode;y==null||b.nodeName!=="BR"||Ab(b,m,t)||y.removeChild(b)}}n.takeRecords()}i!==null&&(u&&$r(i),za&&Y$(t)&&i.insertRawText(d))}))}finally{Tb=!1}}function vE(t){const e=t._observer;e!==null&&mE(t,e.takeRecords(),e)}function bE(t){(function(e){Cb===0&&Mi(e).addEventListener("textInput",o4,!0)})(t),t._observer=new MutationObserver(((e,n)=>{mE(t,e,n)}))}function c4(t){const e=new Map,n=new Set;for(let r=typeof t=="function"?t:t.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){const{ownNodeConfig:i}=O_(r);if(i&&i.stateConfigs)for(const o of i.stateConfigs){let s;"stateConfig"in o?(s=o.stateConfig,o.flat&&n.add(s.key)):s=o,e.set(s.key,s)}}return{flatKeys:n,sharedConfigMap:e}}let u4=class JP{constructor(e,n,r=void 0,i=new Map,o=void 0){this.node=e,this.sharedNodeState=n,this.unknownState=r,this.knownState=i;const{sharedConfigMap:s}=this.sharedNodeState,a=o!==void 0?o:(function(c,u,d){let f=d.size;if(u)for(const h in u){const p=c.get(h);p&&d.has(p)||f++}return f})(s,r,i);this.size=a}getValue(e){const n=this.knownState.get(e);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const i=this.unknownState[e.key];i!==void 0&&(r=e.parse(i)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[r,i]of this.knownState)r.isEqual(i,r.defaultValue)?delete e[r.key]:e[r.key]=r.unparse(i);for(const r of this.sharedNodeState.flatKeys)r in e&&(n[r]=e[r],delete e[r]);return yE(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new JP(e,n,(function(o,s,a){let c;if(a)for(const[u,d]of Object.entries(a)){const f=o.get(u);f?s.has(f)||s.set(f,f.parse(d)):(c=c||{},c[u]=d)}return c})(n.sharedConfigMap,i,r),i,this.size)}updateFromKnown(e,n){const r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);const{knownState:i,unknownState:o}=this;i.has(e)||o&&r in o||(o&&(delete o[r],this.unknownState=yE(o)),this.size++),i.set(e,n)}updateFromUnknown(e,n){const r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(n)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=n)}updateFromJSON(e){const{knownState:n}=this;for(const r of n.keys())n.set(r,r.defaultValue);if(this.size=n.size,this.unknownState=void 0,e)for(const[r,i]of Object.entries(e))this.updateFromUnknown(r,i)}};function d4(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new u4(e,_E(e));return e.__state=n,n}function _E(t){return t.__state?t.__state.sharedNodeState:R$(Ad(),t.getType()).sharedNodeState}function yE(t){if(t)for(const e in t)return t}function wE(t,e,n){for(const[r,i]of e.knownState){if(t.has(r.key))continue;t.add(r.key);const o=n?n.getValue(r):r.defaultValue;if(o!==i&&!r.isEqual(o,i))return!0}return!1}function xE(t,e,n){const{unknownState:r}=e,i=n?n.unknownState:void 0;if(r){for(const[o,s]of Object.entries(r))if(!t.has(o)&&(t.add(o),s!==(i?i[o]:void 0)))return!0}return!1}function kE(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function SE(t,e){const n=t.__mode,r=t.__format,i=t.__style,o=e.__mode,s=e.__format,a=e.__style,c=t.__state,u=e.__state;return(n===null||n===o)&&(r===null||r===s)&&(i===null||i===a)&&(t.__state===null||c===u||(function(d,f){if(d===f)return!0;if(d&&f&&d.size!==f.size)return!1;const h=new Set;return!(d&&wE(h,d,f)||f&&wE(h,f,d)||d&&xE(h,d,f)||f&&xE(h,f,d))})(c,u))}function EE(t,e){const n=t.mergeWithSibling(e),r=An()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function $E(t){let e,n,r=t;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&Ke(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(SE(e,r)){r=EE(e,r);break}break}e.remove()}for(;(n=r.getNextSibling())!==null&&Ke(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(SE(r,n)){r=EE(r,n);break}break}n.remove()}}else r.remove()}function xc(t){return TE(t.anchor),TE(t.focus),t}function TE(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let r,i;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),i=!0):(r=e.getChildAtIndex(n),i=!1),Ke(r)){t.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!xe(r))break;t.set(r.__key,i?r.getChildrenSize():0,"element",!0)}}let Ua,Or,cd,Gh,Pb,Lb,qa,eo,Nb,ud,or="",Eo=null,$o="",is="",kc=!1,Wh=!1;function Yh(t,e){const n=qa.get(t);if(e!==null){const r=Mb(t);r.parentNode===e&&e.removeChild(r)}if(eo.has(t)||Or._keyToDOMMap.delete(t),xe(n)){const r=Xh(n,qa);Ib(r,0,r.length-1,null)}n!==void 0&&x_(ud,cd,Gh,n,"destroyed")}function Ib(t,e,n,r){let i=e;for(;i<=n;++i){const o=t[i];o!==void 0&&Yh(o,r)}}function Va(t,e){t.setProperty("text-align",e)}const f4="40px";function CE(t,e){const n=Ua.theme.indent;if(typeof n=="string"){const i=t.classList.contains(n);e>0&&!i?t.classList.add(n):e<1&&i&&t.classList.remove(n)}const r=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||f4;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function AE(t,e){const n=t.style;e===0?Va(n,""):e===wb?Va(n,"left"):e===xb?Va(n,"center"):e===kb?Va(n,"right"):e===Sb?Va(n,"justify"):e===Eb?Va(n,"start"):e===$b&&Va(n,"end")}function Ob(t,e){const n=(function(r){const i=r.__dir;if(i!==null)return i;if(sr(r))return null;const o=r.getParentOrThrow();return sr(o)&&o.__dir===null?"auto":null})(e);n!==null?t.dir=n:t.removeAttribute("dir")}function Jh(t,e){const n=eo.get(t);n===void 0&&Fe(60);const r=n.createDOM(Ua,Or);if((function(i,o,s){const a=s._keyToDOMMap;(function(c,u,d){const f=`__lexicalKey_${u._key}`;c[f]=d})(o,s,i),a.set(i,o)})(t,r,Or),Ke(n)?r.setAttribute("data-lexical-text","true"):jt(n)&&r.setAttribute("data-lexical-decorator","true"),xe(n)){const i=n.__indent,o=n.__size;if(Ob(r,n),i!==0&&CE(r,i),o!==0){const a=o-1;Rb(Xh(n,eo),n,0,a,n.getDOMSlot(r))}const s=n.__format;s!==0&&AE(r,s),n.isInline()||LE(null,n,r),Sp(n)&&(or+=rs,is+=rs)}else{const i=n.getTextContent();if(jt(n)){const o=n.decorate(Or,Ua);o!==null&&NE(t,o),r.contentEditable="false"}or+=i,is+=i}return e!==null&&e.insertChild(r),x_(ud,cd,Gh,n,"created"),r}function Rb(t,e,n,r,i){const o=or;or="";let s=n;for(;s<=r;++s){Jh(t[s],i);const a=eo.get(t[s]);a!==null&&Ke(a)&&(Eo===null&&(Eo=a.getFormat()),$o===""&&($o=a.getStyle()))}Sp(e)&&(or+=rs),i.element.__lexicalTextContent=or,or=o+or}function PE(t,e){if(t){const n=t.__last;if(n){const r=e.get(n);if(r)return kn(r)?"line-break":jt(r)&&r.isInline()?"decorator":null}return"empty"}return null}function LE(t,e,n){const r=PE(t,qa),i=PE(e,eo);r!==i&&e.getDOMSlot(n).setManagedLineBreak(i)}function h4(t,e,n){var r;Eo=null,$o="",(function(i,o,s){const a=or,c=i.__size,u=o.__size;or="";const d=s.element;if(c===1&&u===1){const f=i.__first,h=o.__first;if(f===h)dd(f,d);else{const g=Mb(f),m=Jh(h,null);try{d.replaceChild(m,g)}catch(v){if(typeof v=="object"&&v!=null){const b=`${v.toString()} Parent: ${d.tagName}, new child: {tag: ${m.tagName} key: ${h}}, old child: {tag: ${g.tagName}, key: ${f}}.`;throw new Error(b)}throw v}Yh(f,null)}const p=eo.get(h);Ke(p)&&(Eo===null&&(Eo=p.getFormat()),$o===""&&($o=p.getStyle()))}else{const f=Xh(i,qa),h=Xh(o,eo);if(f.length!==c&&Fe(227),h.length!==u&&Fe(228),c===0)u!==0&&Rb(h,o,0,u-1,s);else if(u===0){if(c!==0){const p=s.after==null&&s.before==null&&s.element.__lexicalLineBreak==null;Ib(f,0,c-1,p?null:d),p&&(d.textContent="")}}else(function(p,g,m,v,b,y){const w=v-1,E=b-1;let k,S,C=y.getFirstChild(),x=0,T=0;for(;x<=w&&T<=E;){const L=g[x],I=m[T];if(L===I)C=Db(dd(I,y.element)),x++,T++;else{k===void 0&&(k=new Set(g)),S===void 0&&(S=new Set(m));const D=S.has(L),B=k.has(I);if(D)if(B){const H=Za(Or,I);H===C?C=Db(dd(I,y.element)):(y.withBefore(C).insertChild(H),dd(I,y.element)),x++,T++}else Jh(I,y.withBefore(C)),T++;else C=Db(Mb(L)),Yh(L,y.element),x++}const N=eo.get(I);N!==null&&Ke(N)&&(Eo===null&&(Eo=N.getFormat()),$o===""&&($o=N.getStyle()))}const A=x>w,P=T>E;if(A&&!P){const L=m[E+1],I=L===void 0?null:Or.getElementByKey(L);Rb(m,p,T,E,y.withBefore(I))}else P&&!A&&Ib(g,x,w,y.element)})(o,f,h,c,u,s)}Sp(o)&&(or+=rs),d.__lexicalTextContent=or,or=a+or})(t,e,e.getDOMSlot(n)),r=e,Eo==null||Eo===r.__textFormat||Wh||r.setTextFormat(Eo),(function(i){$o===""||$o===i.__textStyle||Wh||i.setTextStyle($o)})(e)}function Xh(t,e){const n=[];let r=t.__first;for(;r!==null;){const i=e.get(r);i===void 0&&Fe(101),n.push(r),r=i.__next}return n}function dd(t,e){const n=qa.get(t);let r=eo.get(t);n!==void 0&&r!==void 0||Fe(61);const i=kc||Lb.has(t)||Pb.has(t),o=Za(Or,t);if(n===r&&!i){if(xe(n)){const s=o.__lexicalTextContent;s!==void 0&&(or+=s,is+=s)}else{const s=n.getTextContent();is+=s,or+=s}return o}if(n!==r&&i&&x_(ud,cd,Gh,r,"updated"),r.updateDOM(n,o,Ua)){const s=Jh(t,null);return e===null&&Fe(62),e.replaceChild(s,o),Yh(t,null),s}if(xe(n)&&xe(r)){const s=r.__indent;(kc||s!==n.__indent)&&CE(o,s);const a=r.__format;if((kc||a!==n.__format)&&AE(o,a),i&&(h4(n,r,o),sr(r)||r.isInline()||LE(n,r,o)),Sp(r)&&(or+=rs,is+=rs),(kc||r.__dir!==n.__dir)&&(Ob(o,r),sr(r)&&!kc))for(const c of r.getChildren())xe(c)&&Ob(Za(Or,c.getKey()),c)}else{const s=r.getTextContent();if(jt(r)){const a=r.decorate(Or,Ua);a!==null&&NE(t,a)}or+=s,is+=s}if(!Wh&&sr(r)&&r.__cachedText!==is){const s=r.getWritable();s.__cachedText=is,r=s}return o}function NE(t,e){let n=Or._pendingDecorators;const r=Or._decorators;if(n===null){if(r[t]===e)return;n=F$(Or)}n[t]=e}function Db(t){let e=t.nextSibling;return e!==null&&e===Or._blockCursorElement&&(e=e.nextSibling),e}function p4(t,e,n,r,i,o){or="",is="",kc=r===wc,Or=n,Ua=n._config,cd=n._nodes,Gh=Or._listeners.mutation,Pb=i,Lb=o,qa=t._nodeMap,eo=e._nodeMap,Wh=e._readOnly,Nb=new Map(n._keyToDOMMap);const s=new Map;return ud=s,dd("root",null),Or=void 0,cd=void 0,Pb=void 0,Lb=void 0,qa=void 0,eo=void 0,Ua=void 0,Nb=void 0,ud=void 0,s}function Mb(t){const e=Nb.get(t);return e===void 0&&Fe(75,t),e}function ft(t){return{type:t}}const IE=ft("SELECTION_CHANGE_COMMAND"),g4=ft("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),OE=ft("CLICK_COMMAND"),Ha=ft("DELETE_CHARACTER_COMMAND"),Sc=ft("INSERT_LINE_BREAK_COMMAND"),fd=ft("INSERT_PARAGRAPH_COMMAND"),Ec=ft("CONTROLLED_TEXT_INSERTION_COMMAND"),Fb=ft("PASTE_COMMAND"),zb=ft("REMOVE_TEXT_COMMAND"),hd=ft("DELETE_WORD_COMMAND"),pd=ft("DELETE_LINE_COMMAND"),os=ft("FORMAT_TEXT_COMMAND"),jb=ft("UNDO_COMMAND"),Bb=ft("REDO_COMMAND"),RE=ft("KEYDOWN_COMMAND"),DE=ft("KEY_ARROW_RIGHT_COMMAND"),Ub=ft("MOVE_TO_END"),ME=ft("KEY_ARROW_LEFT_COMMAND"),Zh=ft("MOVE_TO_START"),$c=ft("KEY_ARROW_UP_COMMAND"),Qh=ft("KEY_ARROW_DOWN_COMMAND"),ep=ft("KEY_ENTER_COMMAND"),FE=ft("KEY_SPACE_COMMAND"),zE=ft("KEY_BACKSPACE_COMMAND"),jE=ft("KEY_ESCAPE_COMMAND"),BE=ft("KEY_DELETE_COMMAND"),qb=ft("KEY_TAB_COMMAND"),Vb=ft("INSERT_TAB_COMMAND"),js=ft("INDENT_CONTENT_COMMAND"),Ka=ft("OUTDENT_CONTENT_COMMAND"),UE=ft("DROP_COMMAND"),m4=ft("FORMAT_ELEMENT_COMMAND"),qE=ft("DRAGSTART_COMMAND"),VE=ft("DRAGOVER_COMMAND"),v4=ft("DRAGEND_COMMAND"),tp=ft("COPY_COMMAND"),Hb=ft("CUT_COMMAND"),Kb=ft("SELECT_ALL_COMMAND"),b4=ft("CLEAR_EDITOR_COMMAND"),_4=ft("CLEAR_HISTORY_COMMAND"),np=ft("CAN_REDO_COMMAND"),rp=ft("CAN_UNDO_COMMAND"),y4=ft("FOCUS_COMMAND"),w4=ft("BLUR_COMMAND"),x4=ft("KEY_MODIFIER_COMMAND"),ss=Object.freeze({}),Gb=30,Wb=[["keydown",function(t,e){if(gd=t.timeStamp,HE=t.key,!e.isComposing()&&!et(e,RE,t)&&t.key!=null){if(Xb&&K$(t))return wi(e,(()=>{sp(e,Zb)})),Xb=!1,void(Zb="");if((function(n){return nn(n,"ArrowRight",{shiftKey:"any"})})(t))et(e,DE,t);else if((function(n){return nn(n,"ArrowRight",ds)})(t))et(e,Ub,t);else if((function(n){return nn(n,"ArrowLeft",{shiftKey:"any"})})(t))et(e,ME,t);else if((function(n){return nn(n,"ArrowLeft",ds)})(t))et(e,Zh,t);else if((function(n){return nn(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(t))et(e,$c,t);else if((function(n){return nn(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(t))et(e,Qh,t);else if((function(n){return nn(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(t))md=!0,et(e,ep,t);else if((function(n){return n.key===" "})(t))et(e,FE,t);else if((function(n){return So&&nn(n,"o",{ctrlKey:!0})})(t))t.preventDefault(),md=!0,et(e,Sc,!0);else if((function(n){return nn(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(t))md=!1,et(e,ep,t);else if((function(n){return nn(n,"Backspace",{shiftKey:"any"})||So&&nn(n,"h",{ctrlKey:!0})})(t))K$(t)?et(e,zE,t):(t.preventDefault(),et(e,Ha,!0));else if((function(n){return n.key==="Escape"})(t))et(e,jE,t);else if((function(n){return nn(n,"Delete",{})||So&&nn(n,"d",{ctrlKey:!0})})(t))(function(n){return n.key==="Delete"})(t)?et(e,BE,t):(t.preventDefault(),et(e,Ha,!1));else if((function(n){return nn(n,"Backspace",H$)})(t))t.preventDefault(),et(e,hd,!0);else if((function(n){return nn(n,"Delete",H$)})(t))t.preventDefault(),et(e,hd,!1);else if((function(n){return So&&nn(n,"Backspace",{metaKey:!0})})(t))t.preventDefault(),et(e,pd,!0);else if((function(n){return So&&(nn(n,"Delete",{metaKey:!0})||nn(n,"k",{ctrlKey:!0}))})(t))t.preventDefault(),et(e,pd,!1);else if((function(n){return nn(n,"b",ds)})(t))t.preventDefault(),et(e,os,"bold");else if((function(n){return nn(n,"u",ds)})(t))t.preventDefault(),et(e,os,"underline");else if((function(n){return nn(n,"i",ds)})(t))t.preventDefault(),et(e,os,"italic");else if((function(n){return nn(n,"Tab",{shiftKey:"any"})})(t))et(e,qb,t);else if((function(n){return nn(n,"z",ds)})(t))t.preventDefault(),et(e,jb,void 0);else if((function(n){return So?nn(n,"z",{metaKey:!0,shiftKey:!0}):nn(n,"y",{ctrlKey:!0})||nn(n,"z",{ctrlKey:!0,shiftKey:!0})})(t))t.preventDefault(),et(e,Bb,void 0);else{const n=e._editorState._selection;n===null||Le(n)?G$(t)&&(t.preventDefault(),et(e,Kb,t)):(function(r){return nn(r,"c",ds)})(t)?(t.preventDefault(),et(e,tp,t)):(function(r){return nn(r,"x",ds)})(t)?(t.preventDefault(),et(e,Hb,t)):G$(t)&&(t.preventDefault(),et(e,Kb,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&et(e,x4,t)}}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;Oc(n)&&r!=="touch"&&r!=="pen"&&t.button===0&&wi(e,(()=>{D$(n)||(Jb=!0)}))}],["compositionstart",function(t,e){wi(e,(()=>{const n=Ve();if(Le(n)&&!e.isComposing()){const r=n.anchor,i=n.anchor.getNode();Er(r.key),(t.timeStamp<gd+Gb||r.type==="element"||!n.isCollapsed()||i.getFormat()!==n.format||Ke(i)&&i.getStyle()!==n.style)&&et(e,Ec,QU)}}))}],["compositionend",function(t,e){za?vd=!0:yc||!ld&&!qh?wi(e,(()=>{sp(e,t.data)})):(Xb=!0,Zb=t.data)}],["input",function(t,e){t.stopPropagation(),wi(e,(()=>{if(yn(t.target)&&D$(t.target))return;const n=Ve(),r=t.data,i=ZE(t);if(r!=null&&Le(n)&&WE(n,i,r,t.timeStamp,!1)){vd&&(sp(e,r),vd=!1);const o=n.anchor.getNode(),s=no(Mi(e));if(s===null)return;const a=n.isBackward(),c=a?n.anchor.offset:n.focus.offset,u=a?n.focus.offset:n.anchor.offset;Uh&&!n.isCollapsed()&&Ke(o)&&s.anchorNode!==null&&o.getTextContent().slice(0,c)+r+o.getTextContent().slice(c+u)===q$(s.anchorNode)||et(e,Ec,r);const d=r.length;za&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),ld||yc||qh||!e.isComposing()||(gd=0,Er(null))}else y_(!1,e,r!==null?r:void 0),vd&&(sp(e,r||void 0),vd=!1);(function(){Sr();const o=An();vE(o)})()}),{event:t}),Tc=null}],["click",function(t,e){wi(e,(()=>{const n=Ve(),r=no(Mi(e)),i=Ya();if(r){if(Le(n)){const o=n.anchor,s=o.getNode();if(o.type==="element"&&o.offset===0&&n.isCollapsed()&&!sr(s)&&Fn().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&s!==n.focus.getNode()){const a=(function(c,u){let d=c;for(;d!==Fn()&&d!=null;){if(u(d))return d;d=d.getParent()}return null})(s,(c=>xe(c)&&!c.isInline()));xe(a)&&a.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const o=r.anchorNode;(yn(o)||us(o))&&$r(s_(i,r,e,t))}}et(e,OE,t)}))}],["cut",ss],["copy",ss],["dragstart",ss],["dragover",ss],["dragend",ss],["paste",ss],["focus",ss],["blur",ss],["drop",ss]];Uh&&Wb.push(["beforeinput",(t,e)=>(function(n,r){const i=n.inputType,o=ZE(n);i==="deleteCompositionText"||za&&Y$(r)||i!=="insertCompositionText"&&wi(r,(()=>{const s=Ve();if(i==="deleteContentBackward"){if(s===null){const p=Ya();if(!Le(p))return;$r(p.clone())}if(Le(s)){const p=s.anchor.key===s.focus.key;if(a=n.timeStamp,HE==="MediaLast"&&a<gd+Gb&&r.isComposing()&&p){if(Er(null),gd=0,setTimeout((()=>{wi(r,(()=>{Er(null)}))}),Gb),Le(s)){const g=s.anchor.getNode();g.markDirty(),Ke(g)||Fe(142),XE(s,g)}}else{Er(null),n.preventDefault();const g=s.anchor.getNode(),m=g.getTextContent(),v=g.canInsertTextAfter(),b=s.anchor.offset===0&&s.focus.offset===m.length;let y=uE&&p&&!b&&v;if(y&&s.isCollapsed()&&(y=!jt(k_(s.anchor,!0))),!y){et(r,Ha,!0);const w=Ve();uE&&Le(w)&&w.isCollapsed()&&(Ga=w,setTimeout((()=>Ga=null)))}}return}}var a;if(!Le(s))return;const c=n.data;Tc!==null&&y_(!1,r,Tc),s.dirty&&Tc===null||!s.isCollapsed()||sr(s.anchor.getNode())||o===null||s.applyDOMRange(o),Tc=null;const u=s.anchor,d=s.focus,f=u.getNode(),h=d.getNode();if(i!=="insertText"&&i!=="insertTranspose")switch(n.preventDefault(),i){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":et(r,Ec,n);break;case"insertFromComposition":Er(null),et(r,Ec,n);break;case"insertLineBreak":Er(null),et(r,Sc,!1);break;case"insertParagraph":Er(null),md&&!yc?(md=!1,et(r,Sc,!1)):et(r,fd,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":et(r,Fb,n);break;case"deleteByComposition":(function(p,g){return p!==g||xe(p)||xe(g)||!Ja(p)||!Ja(g)})(f,h)&&et(r,zb,n);break;case"deleteByDrag":case"deleteByCut":et(r,zb,n);break;case"deleteContent":et(r,Ha,!1);break;case"deleteWordBackward":et(r,hd,!0);break;case"deleteWordForward":et(r,hd,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":et(r,pd,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":et(r,pd,!1);break;case"formatStrikeThrough":et(r,os,"strikethrough");break;case"formatBold":et(r,os,"bold");break;case"formatItalic":et(r,os,"italic");break;case"formatUnderline":et(r,os,"underline");break;case"historyUndo":et(r,jb,void 0);break;case"historyRedo":et(r,Bb,void 0)}else{if(c===`
396
396
  `)n.preventDefault(),et(r,Sc,!1);else if(c===rs)n.preventDefault(),et(r,fd,void 0);else if(c==null&&n.dataTransfer){const p=n.dataTransfer.getData("text/plain");n.preventDefault(),s.insertRawText(p)}else c!=null&&WE(s,o,c,n.timeStamp,!0)?(n.preventDefault(),et(r,Ec,c)):Tc=c;KE=n.timeStamp}}))})(t,e)]);let gd=0,HE=null,KE=0,Tc=null;const ip=new WeakMap;let Yb=!1,Jb=!1,md=!1,vd=!1,Xb=!1,Zb="",Ga=null,GE=[0,"",0,"root",0];function WE(t,e,n,r,i){const o=t.anchor,s=t.focus,a=o.getNode(),c=An(),u=no(Mi(c)),d=u!==null?u.anchorNode:null,f=o.key,h=c.getElementByKey(f),p=n.length;return f!==s.key||!Ke(a)||(!i&&(!Uh||KE<r+50)||a.isDirty()&&p<2||B$(n))&&o.offset!==s.offset&&!a.isComposing()||cs(a)||a.isDirty()&&p>1||(i||!Uh)&&h!==null&&!a.isComposing()&&d!==Lc(h)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||a.getFormat()!==t.format||a.getStyle()!==t.style||(function(g,m){if(m.isSegmented())return!0;if(!g.isCollapsed())return!1;const v=g.anchor.offset,b=m.getParentOrThrow(),y=Ja(m);return v===0?!m.canInsertTextBefore()||!b.canInsertTextBefore()&&!m.isComposing()||y||(function(w){const E=w.getPreviousSibling();return(Ke(E)||xe(E)&&E.isInline())&&!E.canInsertTextAfter()})(m):v===m.getTextContentSize()&&(!m.canInsertTextAfter()||!b.canInsertTextAfter()&&!m.isComposing()||y)})(t,a)}function YE(t,e){return us(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function JE(t,e,n){const{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:s}=t;Yb&&(Yb=!1,YE(r,i)&&YE(o,s)&&!Ga)||wi(e,(()=>{if(!n)return void $r(null);if(!Td(e,r,o))return;let a=Ve();if(Ga&&Le(a)&&a.isCollapsed()){const c=a.anchor,u=Ga.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(a=Ga.clone(),$r(a))}if(Ga=null,Le(a)){const c=a.anchor,u=c.getNode();if(a.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(a.dirty=!0);const d=Mi(e).event,f=d?d.timeStamp:performance.now(),[h,p,g,m,v]=GE,b=Fn(),y=e.isComposing()===!1&&b.getTextContent()==="";if(f<v+200&&c.offset===g&&c.key===m)op(a,h,p);else if(c.type==="text")Ke(u)||Fe(141),XE(a,u);else if(c.type==="element"&&!y){xe(u)||Fe(259);const w=c.getNode();w.isEmpty()?(function(E,k){const S=k.getTextFormat(),C=k.getTextStyle();op(E,S,C)})(a,w):op(a,0,"")}}else{const d=c.key,f=a.focus.key,h=a.getNodes(),p=h.length,g=a.isBackward(),m=g?s:i,v=g?i:s,b=g?f:d,y=g?d:f;let w=ZU,E=!1;for(let k=0;k<p;k++){const S=h[k],C=S.getTextContentSize();if(Ke(S)&&C!==0&&!(k===0&&S.__key===b&&m===C||k===p-1&&S.__key===y&&v===0)&&(E=!0,w&=S.getFormat(),w===0))break}a.format=E?w:0}}et(e,IE,void 0)}))}function op(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function XE(t,e){op(t,e.getFormat(),e.getStyle())}function ZE(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function sp(t,e){const n=t._compositionKey;if(Er(null),n!==null&&e!=null){if(e===""){const r=Pn(n),i=Lc(t.getElementByKey(n));return void(i!==null&&i.nodeValue!==null&&Ke(r)&&w_(r,i.nodeValue,null,null,!0))}if(e[e.length-1]===`
397
- `){const r=Ve();if(Le(r)){const i=r.focus;return r.anchor.set(i.key,i.offset,i.type),void et(t,ep,null)}}}y_(!0,t,e)}function QE(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Cc=new Map;function e$(t){const e=rq(t.target);if(e===null)return;const n=bp(e.anchorNode);if(n===null)return;Jb&&(Jb=!1,wi(n,(()=>{const c=Ya(),u=e.anchorNode;(yn(u)||us(u))&&$r(s_(c,e,n,t))})));const r=__(n),i=r[r.length-1],o=i._key,s=Cc.get(o),a=s||i;a!==n&&JE(e,a,!1),JE(e,n,!0),n!==i?Cc.set(o,n):s&&Cc.delete(o)}function t$(t){t._lexicalHandled=!0}function n$(t){return t._lexicalHandled===!0}function k4(t){const e=t.ownerDocument,n=ip.get(e);if(n===void 0)return;const r=n-1;r>=0||Fe(164),ip.set(e,r),r===0&&e.removeEventListener("selectionchange",e$);const i=_p(t);b_(i)?((function(s){if(s._parentEditor!==null){const a=__(s),c=a[a.length-1]._key;Cc.get(c)===s&&Cc.delete(c)}else Cc.delete(s._key)})(i),t.__lexicalEditor=null):i&&Fe(198);const o=QE(t);for(let s=0;s<o.length;s++)o[s]();t.__lexicalEventHandles=[]}function Qb(t,e,n){Sr();const r=t.__key,i=t.getParent();if(i===null)return;const o=(function(a){const c=Ve();if(!Le(c)||!xe(a))return c;const{anchor:u,focus:d}=c,f=u.getNode(),h=d.getNode();return S_(f,a)&&u.set(a.__key,0,"element"),S_(h,a)&&d.set(a.__key,0,"element"),c})(t);let s=!1;if(Le(o)&&e){const a=o.anchor,c=o.focus;a.key===r&&(fp(a,t,i,t.getPreviousSibling(),t.getNextSibling()),s=!0),c.key===r&&(fp(c,t,i,t.getPreviousSibling(),t.getNextSibling()),s=!0)}else Jr(o)&&e&&t.isSelected()&&t.selectPrevious();if(Le(o)&&e&&!s){const a=t.getIndexWithinParent();Xa(t),dp(o,i,a,-1)}else Xa(t);n||xi(i)||i.canBeEmpty()||!i.isEmpty()||Qb(i,e),e&&o&&sr(i)&&i.isEmpty()&&i.selectEnd()}function cte(t){return t}class Ac{static getType(){const{ownNodeType:e}=O_(this);return e===void 0&&Fe(64,this.name),e}static clone(e){Fe(65,this.name)}$config(){return{}}config(e,n){const r=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:r,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),Y4(this,e)}getType(){return this.__type}isInline(){Fe(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=Pn(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||Ve();if(n==null)return!1;const r=n.getNodes().some((i=>i.__key===this.__key));if(Ke(this))return r;if(Le(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const i=this.getParent();if(jt(this)&&this.isInline()&&i){const o=n.isBackward()?n.focus:n.anchor;if(i.is(o.getNode())&&o.offset===i.getChildrenSize()&&this.is(i.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),r=0;for(;n!==null;){if(this.is(n))return r;r++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:Pn(e)}getParentOrThrow(){const e=this.getParent();return e===null&&Fe(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(xi(n))return xe(e)||e===this&&jt(e)||Fe(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&Fe(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:Pn(e)}getPreviousSiblings(){const e=[],n=this.getParent();if(n===null)return e;let r=n.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:Pn(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=xe(this)?this:this.getParent(),r=xe(e)?e:e.getParent(),i=n&&r?Tp(n,r):null;return i?i.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Tp(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?nT(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&Fe(279),!1)))}isParentOf(e){const n=Tp(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),r=[],i=new Set;let o=this;for(;o!==null;){const s=o.__key;if(i.has(s)||(i.add(s),r.push(o)),o===e)break;const a=xe(o)?n?o.getFirstChild():o.getLastChild():null;if(a!==null){o=a;continue}const c=n?o.getNextSibling():o.getPreviousSibling();if(c!==null){o=c;continue}const u=o.getParentOrThrow();if(i.has(u.__key)||r.push(u),u===e)break;let d=null,f=u;do{if(f===null&&Fe(68),d=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||i.has(f.__key)||r.push(f)}while(d===null);o=d}return n||r.reverse(),r}isDirty(){const e=An()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){const e=Pn(this.__key);return e===null&&Fe(113),e}getWritable(){Sr();const e=Us(),n=An(),r=e._nodeMap,i=this.__key,o=this.getLatest(),s=n._cloneNotNeeded,a=Ve();if(a!==null&&a.setCachedNodes(null),s.has(i))return wp(o),o;const c=N_(o);return s.add(i),wp(c),r.set(i,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){Fe(70)}updateDOM(e,n,r){Fe(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){Fe(18,this.name)}updateFromJSON(e){return(function(n,r){const i=n.getWritable(),o=r.$;let s=o;for(const a of _E(i).flatKeys)a in r&&(s!==void 0&&s!==o||(s={...o}),s[a]=r[a]);return(i.__state||s)&&d4(n).updateFromJSON(s),i})(this,e)}static transform(){return null}remove(e){Qb(this,!0,e)}replace(e,n){Sr();let r=Ve();r!==null&&(r=r.clone()),$_(this,e);const i=this.getLatest(),o=this.__key,s=e.__key,a=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;Xa(a);const d=i.getPreviousSibling(),f=i.getNextSibling(),h=i.__prev,p=i.__next,g=i.__parent;if(Qb(i,!1,!0),d===null?c.__first=s:d.getWritable().__next=s,a.__prev=h,f===null?c.__last=s:f.getWritable().__prev=s,a.__next=p,a.__parent=g,c.__size=u,n&&(xe(this)&&xe(a)||Fe(139),this.getChildren().forEach((m=>{a.append(m)}))),Le(r)){$r(r);const m=r.anchor,v=r.focus;m.key===o&&l$(m,a),v.key===o&&l$(v,a)}return Vs()===o&&Er(s),a}insertAfter(e,n=!0){Sr(),$_(this,e);const r=this.getWritable(),i=e.getWritable(),o=i.getParent(),s=Ve();let a=!1,c=!1;if(o!==null){const p=e.getIndexWithinParent();if(Xa(i),Le(s)){const g=o.__key,m=s.anchor,v=s.focus;a=m.type==="element"&&m.key===g&&m.offset===p+1,c=v.type==="element"&&v.key===g&&v.offset===p+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),f=i.__key,h=r.__next;if(u===null?d.__last=f:u.getWritable().__prev=f,d.__size++,r.__next=f,i.__next=h,i.__prev=r.__key,i.__parent=r.__parent,n&&Le(s)){const p=this.getIndexWithinParent();dp(s,d,p+1);const g=d.__key;a&&s.anchor.set(g,p+2,"element"),c&&s.focus.set(g,p+2,"element")}return e}insertBefore(e,n=!0){Sr(),$_(this,e);const r=this.getWritable(),i=e.getWritable(),o=i.__key;Xa(i);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),c=r.__prev,u=this.getIndexWithinParent();s===null?a.__first=o:s.getWritable().__next=o,a.__size++,r.__prev=o,i.__prev=c,i.__next=r.__key,i.__parent=r.__parent;const d=Ve();return n&&Le(d)&&dp(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return _n()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){Sr();const r=this.getPreviousSibling(),i=this.getParentOrThrow();if(r===null)return i.select(0,0);if(xe(r))return r.select();if(!Ke(r)){const o=r.getIndexWithinParent()+1;return i.select(o,o)}return r.select(e,n)}selectNext(e,n){Sr();const r=this.getNextSibling(),i=this.getParentOrThrow();if(r===null)return i.select();if(xe(r))return r.select(0,0);if(!Ke(r)){const o=r.getIndexWithinParent();return i.select(o,o)}return r.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}class bd extends Ac{static getType(){return"linebreak"}static clone(e){return new bd(e.__key)}constructor(e){super(e)}getTextContent(){return`
397
+ `){const r=Ve();if(Le(r)){const i=r.focus;return r.anchor.set(i.key,i.offset,i.type),void et(t,ep,null)}}}y_(!0,t,e)}function QE(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Cc=new Map;function e$(t){const e=rq(t.target);if(e===null)return;const n=bp(e.anchorNode);if(n===null)return;Jb&&(Jb=!1,wi(n,(()=>{const c=Ya(),u=e.anchorNode;(yn(u)||us(u))&&$r(s_(c,e,n,t))})));const r=__(n),i=r[r.length-1],o=i._key,s=Cc.get(o),a=s||i;a!==n&&JE(e,a,!1),JE(e,n,!0),n!==i?Cc.set(o,n):s&&Cc.delete(o)}function t$(t){t._lexicalHandled=!0}function n$(t){return t._lexicalHandled===!0}function k4(t){const e=t.ownerDocument,n=ip.get(e);if(n===void 0)return;const r=n-1;r>=0||Fe(164),ip.set(e,r),r===0&&e.removeEventListener("selectionchange",e$);const i=_p(t);b_(i)?((function(s){if(s._parentEditor!==null){const a=__(s),c=a[a.length-1]._key;Cc.get(c)===s&&Cc.delete(c)}else Cc.delete(s._key)})(i),t.__lexicalEditor=null):i&&Fe(198);const o=QE(t);for(let s=0;s<o.length;s++)o[s]();t.__lexicalEventHandles=[]}function Qb(t,e,n){Sr();const r=t.__key,i=t.getParent();if(i===null)return;const o=(function(a){const c=Ve();if(!Le(c)||!xe(a))return c;const{anchor:u,focus:d}=c,f=u.getNode(),h=d.getNode();return S_(f,a)&&u.set(a.__key,0,"element"),S_(h,a)&&d.set(a.__key,0,"element"),c})(t);let s=!1;if(Le(o)&&e){const a=o.anchor,c=o.focus;a.key===r&&(fp(a,t,i,t.getPreviousSibling(),t.getNextSibling()),s=!0),c.key===r&&(fp(c,t,i,t.getPreviousSibling(),t.getNextSibling()),s=!0)}else Jr(o)&&e&&t.isSelected()&&t.selectPrevious();if(Le(o)&&e&&!s){const a=t.getIndexWithinParent();Xa(t),dp(o,i,a,-1)}else Xa(t);n||xi(i)||i.canBeEmpty()||!i.isEmpty()||Qb(i,e),e&&o&&sr(i)&&i.isEmpty()&&i.selectEnd()}function ute(t){return t}class Ac{static getType(){const{ownNodeType:e}=O_(this);return e===void 0&&Fe(64,this.name),e}static clone(e){Fe(65,this.name)}$config(){return{}}config(e,n){const r=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:r,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),Y4(this,e)}getType(){return this.__type}isInline(){Fe(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=Pn(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||Ve();if(n==null)return!1;const r=n.getNodes().some((i=>i.__key===this.__key));if(Ke(this))return r;if(Le(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const i=this.getParent();if(jt(this)&&this.isInline()&&i){const o=n.isBackward()?n.focus:n.anchor;if(i.is(o.getNode())&&o.offset===i.getChildrenSize()&&this.is(i.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),r=0;for(;n!==null;){if(this.is(n))return r;r++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:Pn(e)}getParentOrThrow(){const e=this.getParent();return e===null&&Fe(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(xi(n))return xe(e)||e===this&&jt(e)||Fe(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&Fe(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:Pn(e)}getPreviousSiblings(){const e=[],n=this.getParent();if(n===null)return e;let r=n.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:Pn(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=xe(this)?this:this.getParent(),r=xe(e)?e:e.getParent(),i=n&&r?Tp(n,r):null;return i?i.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Tp(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?nT(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&Fe(279),!1)))}isParentOf(e){const n=Tp(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),r=[],i=new Set;let o=this;for(;o!==null;){const s=o.__key;if(i.has(s)||(i.add(s),r.push(o)),o===e)break;const a=xe(o)?n?o.getFirstChild():o.getLastChild():null;if(a!==null){o=a;continue}const c=n?o.getNextSibling():o.getPreviousSibling();if(c!==null){o=c;continue}const u=o.getParentOrThrow();if(i.has(u.__key)||r.push(u),u===e)break;let d=null,f=u;do{if(f===null&&Fe(68),d=n?f.getNextSibling():f.getPreviousSibling(),f=f.getParent(),f===null)break;d!==null||i.has(f.__key)||r.push(f)}while(d===null);o=d}return n||r.reverse(),r}isDirty(){const e=An()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){const e=Pn(this.__key);return e===null&&Fe(113),e}getWritable(){Sr();const e=Us(),n=An(),r=e._nodeMap,i=this.__key,o=this.getLatest(),s=n._cloneNotNeeded,a=Ve();if(a!==null&&a.setCachedNodes(null),s.has(i))return wp(o),o;const c=N_(o);return s.add(i),wp(c),r.set(i,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){Fe(70)}updateDOM(e,n,r){Fe(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){Fe(18,this.name)}updateFromJSON(e){return(function(n,r){const i=n.getWritable(),o=r.$;let s=o;for(const a of _E(i).flatKeys)a in r&&(s!==void 0&&s!==o||(s={...o}),s[a]=r[a]);return(i.__state||s)&&d4(n).updateFromJSON(s),i})(this,e)}static transform(){return null}remove(e){Qb(this,!0,e)}replace(e,n){Sr();let r=Ve();r!==null&&(r=r.clone()),$_(this,e);const i=this.getLatest(),o=this.__key,s=e.__key,a=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;Xa(a);const d=i.getPreviousSibling(),f=i.getNextSibling(),h=i.__prev,p=i.__next,g=i.__parent;if(Qb(i,!1,!0),d===null?c.__first=s:d.getWritable().__next=s,a.__prev=h,f===null?c.__last=s:f.getWritable().__prev=s,a.__next=p,a.__parent=g,c.__size=u,n&&(xe(this)&&xe(a)||Fe(139),this.getChildren().forEach((m=>{a.append(m)}))),Le(r)){$r(r);const m=r.anchor,v=r.focus;m.key===o&&l$(m,a),v.key===o&&l$(v,a)}return Vs()===o&&Er(s),a}insertAfter(e,n=!0){Sr(),$_(this,e);const r=this.getWritable(),i=e.getWritable(),o=i.getParent(),s=Ve();let a=!1,c=!1;if(o!==null){const p=e.getIndexWithinParent();if(Xa(i),Le(s)){const g=o.__key,m=s.anchor,v=s.focus;a=m.type==="element"&&m.key===g&&m.offset===p+1,c=v.type==="element"&&v.key===g&&v.offset===p+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),f=i.__key,h=r.__next;if(u===null?d.__last=f:u.getWritable().__prev=f,d.__size++,r.__next=f,i.__next=h,i.__prev=r.__key,i.__parent=r.__parent,n&&Le(s)){const p=this.getIndexWithinParent();dp(s,d,p+1);const g=d.__key;a&&s.anchor.set(g,p+2,"element"),c&&s.focus.set(g,p+2,"element")}return e}insertBefore(e,n=!0){Sr(),$_(this,e);const r=this.getWritable(),i=e.getWritable(),o=i.__key;Xa(i);const s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),c=r.__prev,u=this.getIndexWithinParent();s===null?a.__first=o:s.getWritable().__next=o,a.__size++,r.__prev=o,i.__prev=c,i.__next=r.__key,i.__parent=r.__parent;const d=Ve();return n&&Le(d)&&dp(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return _n()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){Sr();const r=this.getPreviousSibling(),i=this.getParentOrThrow();if(r===null)return i.select(0,0);if(xe(r))return r.select();if(!Ke(r)){const o=r.getIndexWithinParent()+1;return i.select(o,o)}return r.select(e,n)}selectNext(e,n){Sr();const r=this.getNextSibling(),i=this.getParentOrThrow();if(r===null)return i.select();if(xe(r))return r.select(0,0);if(!Ke(r)){const o=r.getIndexWithinParent();return i.select(o,o)}return r.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}class bd extends Ac{static getType(){return"linebreak"}static clone(e){return new bd(e.__key)}constructor(e){super(e)}getTextContent(){return`
398
398
  `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>(function(n){const r=n.parentElement;if(r!==null&&Ep(r)){const i=r.firstChild;if(i===n||i.nextSibling===n&&ap(i)){const o=r.lastChild;if(o===n||o.previousSibling===n&&ap(o))return!0}}return!1})(e)||(function(n){const r=n.parentElement;if(r!==null&&Ep(r)){const i=r.firstChild;if(i===n||i.nextSibling===n&&ap(i))return!1;const o=r.lastChild;if(o===n||o.previousSibling===n&&ap(o))return!0}return!1})(e)?null:{conversion:S4,priority:0}}}static importJSON(e){return yi().updateFromJSON(e)}}function S4(t){return{node:yi()}}function yi(){return ai(new bd)}function kn(t){return t instanceof bd}function ap(t){return us(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function e_(t,e){return 16&e?"code":e&yb?"mark":32&e?"sub":64&e?"sup":null}function t_(t,e){return 1&e?"strong":2&e?"em":"span"}function r$(t,e,n,r,i){const o=r.classList;let s=Ic(i,"base");s!==void 0&&o.add(...s),s=Ic(i,"underlineStrikethrough");let a=!1;const c=e&Hh&&e&Vh;s!==void 0&&(n&Hh&&n&Vh?(a=!0,c||o.add(...s)):c&&o.remove(...s));for(const u in Ba){const d=Ba[u];if(s=Ic(i,u),s!==void 0)if(n&d){if(a&&(u==="underline"||u==="strikethrough")){e&d&&o.remove(...s);continue}e&d&&(!c||u!=="underline")&&u!=="strikethrough"||o.add(...s)}else e&d&&o.remove(...s)}}function i$(t,e,n){const r=e.firstChild,i=n.isComposing(),o=t+(i?Kh:"");if(r==null)e.textContent=o;else{const s=r.nodeValue;if(s!==o)if(i||za){const[a,c,u]=(function(d,f){const h=d.length,p=f.length;let g=0,m=0;for(;g<h&&g<p&&d[g]===f[g];)g++;for(;m+g<h&&m+g<p&&d[h-m-1]===f[p-m-1];)m++;return[g,h-g-m,f.slice(g,p-m)]})(s,o);c!==0&&r.deleteData(a,c),r.insertData(a,u)}else r.nodeValue=o}}function o$(t,e,n,r,i,o){i$(i,t,e);const s=o.theme.text;s!==void 0&&r$(0,0,r,t,s)}function lp(t,e){const n=document.createElement(e);return n.appendChild(t),n}class Bs extends Ac{static getType(){return"text"}static clone(e){return new Bs(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",n){super(n),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return r4[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Vs()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const n=Ba[e];return!!(this.getFormat()&n)}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,n){return yp(this.getLatest().__format,e,n)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,n){const r=this.__format,i=e_(0,r),o=t_(0,r),s=i===null?o:i,a=document.createElement(s);let c=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),i!==null&&(c=document.createElement(o),a.appendChild(c)),o$(c,this,0,r,this.__text,e);const u=this.__style;return u!==""&&(a.style.cssText=u),a}updateDOM(e,n,r){const i=this.__text,o=e.__format,s=this.__format,a=e_(0,o),c=e_(0,s),u=t_(0,o),d=t_(0,s);if((a===null?u:a)!==(c===null?d:c))return!0;if(a===c&&u!==d){const m=n.firstChild;m==null&&Fe(48);const v=document.createElement(d);return o$(v,this,0,s,i,r),n.replaceChild(v,m),!1}let f=n;c!==null&&a!==null&&(f=n.firstChild,f==null&&Fe(49)),i$(i,f,this);const h=r.theme.text;h!==void 0&&o!==s&&r$(0,o,s,f,h);const p=e.__style,g=this.__style;return p!==g&&(n.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:C4,priority:0}),b:()=>({conversion:$4,priority:0}),code:()=>({conversion:as,priority:0}),em:()=>({conversion:as,priority:0}),i:()=>({conversion:as,priority:0}),mark:()=>({conversion:as,priority:0}),s:()=>({conversion:as,priority:0}),span:()=>({conversion:E4,priority:0}),strong:()=>({conversion:as,priority:0}),sub:()=>({conversion:as,priority:0}),sup:()=>({conversion:as,priority:0}),u:()=>({conversion:as,priority:0})}}static importJSON(e){return Sn().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:n}=super.exportDOM(e);return yn(n)||Fe(132),n.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?n.style.textTransform="lowercase":this.hasFormat("uppercase")?n.style.textTransform="uppercase":this.hasFormat("capitalize")&&(n.style.textTransform="capitalize"),this.hasFormat("bold")&&(n=lp(n,"b")),this.hasFormat("italic")&&(n=lp(n,"i")),this.hasFormat("strikethrough")&&(n=lp(n,"s")),this.hasFormat("underline")&&(n=lp(n,"u")),{element:n}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,n){}setFormat(e){const n=this.getWritable();return n.__format=typeof e=="string"?Ba[e]:e,n}setDetail(e){const n=this.getWritable();return n.__detail=typeof e=="string"?e4[e]:e,n}setStyle(e){const n=this.getWritable();return n.__style=e,n}toggleFormat(e){const n=yp(this.getFormat(),e,null);return this.setFormat(n)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const n=n4[e];if(this.__mode===n)return this;const r=this.getWritable();return r.__mode=n,r}setTextContent(e){if(this.__text===e)return this;const n=this.getWritable();return n.__text=e,n}select(e,n){Sr();let r=e,i=n;const o=Ve(),s=this.getTextContent(),a=this.__key;if(typeof s=="string"){const c=s.length;r===void 0&&(r=c),i===void 0&&(i=c)}else r=0,i=0;if(!Le(o))return m$(a,r,a,i,"text","text");{const c=Vs();c!==o.anchor.key&&c!==o.focus.key||Er(a),o.setTextNodeRange(this,r,this,i)}return o}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,n,r,i){const o=this.getWritable(),s=o.__text,a=r.length;let c=e;c<0&&(c=a+c,c<0&&(c=0));const u=Ve();if(i&&Le(u)){const f=e+a;u.setTextNodeRange(o,f,o,f)}const d=s.slice(0,c)+r+s.slice(c+n);return o.__text=d,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Sr();const n=this.getLatest(),r=n.getTextContent();if(r==="")return[];const i=n.__key,o=Vs(),s=r.length;e.sort(((x,T)=>x-T)),e.push(s);const a=[],c=e.length;for(let x=0,T=0;x<s&&T<=c;T++){const A=e[T];A>x&&(a.push(r.slice(x,A)),x=A)}const u=a.length;if(u===1)return[n];const d=a[0],f=n.getParent();let h;const p=n.getFormat(),g=n.getStyle(),m=n.__detail;let v=!1,b=null,y=null;const w=Ve();if(Le(w)){const[x,T]=w.isBackward()?[w.focus,w.anchor]:[w.anchor,w.focus];x.type==="text"&&x.key===i&&(b=x),T.type==="text"&&T.key===i&&(y=T)}n.isSegmented()?(h=Sn(d),h.__format=p,h.__style=g,h.__detail=m,h.__state=kE(n,h),v=!0):h=n.setTextContent(d);const E=[h];for(let x=1;x<u;x++){const T=Sn(a[x]);T.__format=p,T.__style=g,T.__detail=m,T.__state=kE(n,T);const A=T.__key;o===i&&Er(A),E.push(T)}const k=b?b.offset:null,S=y?y.offset:null;let C=0;for(const x of E){if(!b&&!y)break;const T=C+x.getTextContentSize();if(b!==null&&k!==null&&k<=T&&k>=C&&(b.set(x.getKey(),k-C,"text"),k<T&&(b=null)),y!==null&&S!==null&&S<=T&&S>=C){y.set(x.getKey(),S-C,"text");break}C=T}if(f!==null){(function(A){const P=A.getPreviousSibling(),L=A.getNextSibling();P!==null&&wp(P),L!==null&&wp(L)})(this);const x=f.getWritable(),T=this.getIndexWithinParent();v?(x.splice(T,0,E),this.remove()):x.splice(T,1,E),Le(w)&&dp(w,f,T,u-1)}return E}mergeWithSibling(e){const n=e===this.getPreviousSibling();n||e===this.getNextSibling()||Fe(50);const r=this.__key,i=e.__key,o=this.__text,s=o.length;Vs()===i&&Er(r);const a=Ve();if(Le(a)){const f=a.anchor,h=a.focus;f!==null&&f.key===i&&_$(f,n,r,e,s),h!==null&&h.key===i&&_$(h,n,r,e,s)}const c=e.__text,u=n?c+o:o+c;this.setTextContent(u);const d=this.getWritable();return e.remove(),d}isTextEntity(){return!1}}function E4(t){return{forChild:n_(t.style),node:null}}function $4(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:n_(e.style,n?void 0:"bold"),node:null}}const s$=new WeakMap;function T4(t){if(!yn(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function C4(t){const e=t;t.parentElement===null&&Fe(129);let n=e.textContent||"";if((function(r){let i,o=r.parentNode;const s=[r];for(;o!==null&&(i=s$.get(o))===void 0&&!T4(o);)s.push(o),o=o.parentNode;const a=i===void 0?o:i;for(let c=0;c<s.length;c++)s$.set(s[c],a);return a})(e)!==null){const r=n.split(/(\r?\n|\t)/),i=[],o=r.length;for(let s=0;s<o;s++){const a=r[s];a===`
399
399
  `||a===`\r
400
400
  `?i.push(yi()):a===" "?i.push(to()):a!==""&&i.push(Sn(a))}return{node:i}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let r=e,i=!0;for(;r!==null&&(r=a$(r,!1))!==null;){const o=r.textContent||"";if(o.length>0){/[ \t\n]$/.test(o)&&(n=n.slice(1)),i=!1;break}}i&&(n=n.slice(1))}if(n[n.length-1]===" "){let r=e,i=!0;for(;r!==null&&(r=a$(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){i=!1;break}i&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Sn(n)}}function a$(t,e){let n=t;for(;;){let r;for(;(r=e?n.nextSibling:n.previousSibling)===null;){const o=n.parentElement;if(o===null)return null;n=o}if(n=r,yn(n)){const o=n.style.display;if(o===""&&!P_(n)||o!==""&&!o.startsWith("inline"))return null}let i=n;for(;(i=e?n.firstChild:n.lastChild)!==null;)n=i;if(us(n))return n;if(n.nodeName==="BR")return null}}const A4={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function as(t){const e=A4[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:n_(t.style,e),node:null}}function Sn(t=""){return ai(new Bs(t))}function Ke(t){return t instanceof Bs}function n_(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i=n==="700"||n==="bold",o=r.includes("line-through"),s=t.fontStyle==="italic",a=r.includes("underline"),c=t.verticalAlign;return u=>(Ke(u)&&(i&&!u.hasFormat("bold")&&u.toggleFormat("bold"),o&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),s&&!u.hasFormat("italic")&&u.toggleFormat("italic"),a&&!u.hasFormat("underline")&&u.toggleFormat("underline"),c!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),c!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),e&&!u.hasFormat(e)&&u.toggleFormat(e)),u)}class _d extends Bs{static getType(){return"tab"}static clone(e){return new _d(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),r=Ic(e.theme,"tab");return r!==void 0&&n.classList.add(...r),n}static importJSON(e){return to().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&Fe(126),super.setTextContent(" ")}spliceText(e,n,r,i){return r===""&&n===0||r===" "&&n===1||Fe(286),this}setDetail(e){return e!==2&&Fe(127),this}setMode(e){return e!=="normal"&&Fe(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function to(){return ai(new _d)}function Yr(t){return t instanceof _d}class P4{constructor(e,n,r){this._selection=null,this.key=e,this.offset=n,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:tT(ro(hs(this,"next")),ro(hs(e,"next")))<0}getNode(){const e=Pn(this.key);return e===null&&Fe(20),e}set(e,n,r,i){const o=this._selection,s=this.key;i&&this.key===e&&this.offset===n&&this.type===r||(this.key=e,this.offset=n,this.type=r,yd()||(Vs()===s&&Er(e),o!==null&&(o.setCachedNodes(null),o.dirty=!0)))}}function oi(t,e,n){return new P4(t,e,n)}function r_(t,e){let n=e.__key,r=t.offset,i="element";if(Ke(e)){i="text";const o=e.getTextContentSize();r>o&&(r=o)}else if(!xe(e)){const o=e.getNextSibling();if(Ke(o))n=o.__key,r=0,i="text";else{const s=e.getParent();s&&(n=s.__key,r=e.getIndexWithinParent()+1)}}t.set(n,r,i)}function l$(t,e){if(xe(e)){const n=e.getLastDescendant();xe(n)||Ke(n)?r_(t,n):r_(t,e)}else r_(t,e)}class cp{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Jr(e))return!1;const n=this._nodes,r=e._nodes;return n.size===r.size&&Array.from(n).every((i=>r.has(i)))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new cp(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),r=n.length,i=n[r-1];let o;if(Ke(i))o=i.select();else{const s=i.getIndexWithinParent()+1;o=i.getParentOrThrow().select(s,s)}o.insertNodes(e);for(let s=0;s<r;s++)n[s].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,r=[];for(const i of n){const o=Pn(i);o!==null&&r.push(o)}return yd()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}deleteNodes(){const e=this.getNodes();if((Ve()||Ya())===this&&e[0]){const n=fr(e[0],"next");iT(fs(n,n))}for(const n of e)n.remove()}}function Le(t){return t instanceof Wa}class Wa{constructor(e,n,r,i){this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=r,this.style=i,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Le(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=(function(r){const i=[],[o,s]=r.getTextSlices();o&&i.push(o.caret.origin);const a=new Set,c=new Set;for(const u of r)if(To(u)){const{origin:d}=u;i.length===0?a.add(d):(c.add(d),i.push(d))}else{const{origin:d}=u;xe(d)&&c.has(d)||i.push(d)}if(s&&i.push(s.caret.origin),tl(r.focus)&&xe(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let u=Co(r.focus.origin,"previous");To(u)&&a.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(i[i.length-1]);u=M_(u))a.delete(u.origin),i.pop();for(;i.length>1;){const u=i[i.length-1];if(!xe(u)||c.has(u)||u.isEmpty()||a.has(u))break;i.pop()}if(i.length===0&&r.isCollapsed()){const u=ro(r.anchor),d=ro(r.anchor.getFlipped()),f=p=>Ks(p)?p.origin:p.getNodeAtCaret(),h=f(u)||f(d)||(r.anchor.getNodeAtCaret()?u.origin:d.origin);i.push(h)}return i})(q_(oT(this),"next"));return yd()||(this._cachedNodes=n),n}setTextNodeRange(e,n,r,i){this.anchor.set(e.__key,n,"text"),this.focus.set(r.__key,i,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],r=e[e.length-1],i=this.anchor,o=this.focus,s=i.isBefore(o),[a,c]=i_(this);let u="",d=!0;for(let f=0;f<e.length;f++){const h=e[f];if(xe(h)&&!h.isInline())d||(u+=`
@@ -499,7 +499,7 @@ ${m}`;v.inputValue=x}))}),De(()=>{v.initialized&&(v.inputValue,Se(()=>{const{lan
499
499
  }.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) {flex:auto;overflow:hidden;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) iframe:where(.svelte-9guikv),
500
500
  .wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) pre:where(.svelte-9guikv),
501
501
  .wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) .markdown:where(.svelte-9guikv) {display:block;width:100%;height:100%;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) pre:where(.svelte-9guikv),
502
- .wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) .markdown:where(.svelte-9guikv) {margin:0;padding:16px;overflow:auto;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) pre:where(.svelte-9guikv) {white-space:pre-wrap;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .detail {background-color:var(--sui-primary-background-color);}`};function M7(t,e){le(e,!0),ke(t,D7);const n=()=>V(Ms,"$overlaidAsset",o),r=()=>V(Js,"$showAssetOverlay",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=ie(void 0),c=ie(!0),u=ie(void 0);const d=_(()=>n()?.kind),f=_(()=>n()?.blobURL),h=_(()=>n()?.name),p=async()=>{await ha(),l(a)&&(l(a).tabIndex=0,l(a).focus())};De(()=>{n()&&(async()=>G(u,await Rs(n()),!0))()}),De(()=>{l(a)?.addEventListener("transitionend",()=>{r()||G(c,!0)})}),De(()=>{l(a)&&r()&&(G(c,!1),p())});var g=R7(),m=z(g);Xn(m,()=>n()?.sha,v=>{var b=O7(),y=M(b);i7(y,{});var w=j(y,2),E=z(w),k=z(E);{var S=A=>{{let P=_(()=>["image","video"].includes(l(d))),L=_(()=>l(d)==="image"),I=_(()=>l(d)==="image"?l(h):void 0),N=_(()=>["audio","video"].includes(l(d)));Ro(A,{get kind(){return l(d)},get asset(){return n()},get blurBackground(){return l(P)},get checkerboard(){return l(L)},get alt(){return l(I)},get controls(){return l(N)}})}},C=A=>{var P=X(),L=M(P);{var I=D=>{var B=A7();Z(()=>{Ee(B,"src",l(f)),Ee(B,"title",l(h))}),$(D,B)},N=D=>{var B=X(),H=M(B);{var W=O=>{var F=X(),K=M(F);Xt(K,()=>n()?.text??l(u).text(),null,(J,Q)=>{var oe=X(),re=M(oe);{var ee=ae=>{var fe=X(),be=M(fe);Xt(be,()=>Rv(l(Q),{breaks:!0,async:!0}),null,(pe,he)=>{var ge=P7(),ve=z(ge);cr(ve,()=>Nr.sanitize(l(he))),$(pe,ge)},pe=>{var he=L7(),ge=z(he);Z(()=>te(ge,l(Q))),$(pe,he)}),$(ae,fe)},ne=ae=>{var fe=N7(),be=z(fe);Z(()=>te(be,l(Q))),$(ae,fe)};q(re,ae=>{l(h)?.endsWith(".md")?ae(ee):ae(ne,!1)})}$(J,oe)}),$(O,F)},Y=O=>{hr(O,{children:(F,K)=>{var J=I7(),Q=z(J);Z(oe=>te(Q,oe),[()=>i()("preview_unavailable")]),$(F,J)},$$slots:{default:!0}})};q(H,O=>{l(u)?.type&&mu(l(u).type)?O(W):O(Y,!1)},!0)}$(D,B)};q(L,D=>{l(u)?.type==="application/pdf"?D(I):D(N,!1)},!0)}$(A,P)};q(k,A=>{l(d)&&$h(l(d))?A(S):A(C,!1)})}var x=j(E,2);{var T=A=>{aA(A,{get asset(){return n()}})};q(x,A=>{n()&&A(T)})}$(v,b)}),vt(g,v=>G(a,v),()=>l(a)),Z(v=>{Ee(g,"hidden",l(c)),g.inert=!r(),Ee(g,"aria-label",v)},[()=>i()("asset_editor")]),$(t,g),ce(),s()}const Sy=Qt([Et,bn],([t,e])=>{if(!t||!e?.isGit)return!1;const{skip_ci:n,automatic_deployments:r}=t.backend;return typeof n=="boolean"||typeof r=="boolean"}),Ey=Qt([Et,bn],([t,e])=>{if(!t||!e?.isGit)return!1;const{skip_ci:n,automatic_deployments:r}=t.backend;return n===!0||r===!1}),F7=t=>{const{files:e,folder:n,originalAsset:r}=t,{slugify_filename:i=!1}=Hu().config,o=n?.internalPath!==void 0?Hv(n.internalPath).map(s=>s.name.normalize()):[];return e.map(s=>{const a=r?.name??Q1(s.name,{slugificationEnabled:i,assetNamesInSameFolder:o});return o.includes(a)||o.push(a),{action:r?"update":"create",name:a,path:r?.path??[n?.internalPath,a].join("/"),file:s}})},z7=({count:t})=>{const e=se(ko),n=se(Ms);e&&ko.set(se(Dn).find(r=>r.path===e.path)),n&&Ms.set(se(Dn).find(r=>r.path===n.path)),ea.set({...hl,saved:!0,published:!!se(bn)?.isGit&&!se(Ey),count:t})},lA=async(t,e)=>{const{files:n,folder:r}=t,i=F7(t),o=i.map(({name:s,path:a,file:c})=>({name:s,path:a,size:c.size,kind:Gu(s),folder:r}));await Kd({changes:i.map(({action:s,path:a,file:c})=>({action:s,path:a,data:c})),savingAssets:o,options:e}),z7({count:n.length})};var j7=U('<div role="none"><!></div>');const B7={hash:"svelte-1lnkfih",code:".wrapper.svelte-1lnkfih {display:contents;}.wrapper.svelte-1lnkfih textarea {min-height:40dvh;max-height:80dvh;font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);text-wrap:nowrap;resize:vertical;}.wrapper.svelte-1lnkfih .wrap textarea {text-wrap:wrap;}"};function U7(t,e){le(e,!0),ke(t,B7);const n=()=>V(qv,"$editingAsset",o),r=()=>V(Js,"$showAssetOverlay",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=_(n);let c=ie(!1),u=ie(void 0),d=ie(void 0),f=ie(void 0),h=ie(!1);const p=async()=>{G(u,await Rs(l(a)),!0),G(d,await l(u).text(),!0),G(f,l(d),!0),G(c,!0)},g=()=>{Ge(qv,void 0),G(u,void 0),G(d,void 0),G(f,void 0)},m=async()=>{l(a)&&l(u)&&typeof l(f)=="string"&&await lA({folder:l(a).folder,files:[new File([l(f)],l(a).name,{type:l(u).type})],originalAsset:l(a)},{commitType:"uploadMedia"})};De(()=>{l(a)&&l(u)===void 0&&p()}),De(()=>{r()||G(c,!1)});{const v=E=>{{let k=_(()=>i()("wrap_long_lines"));_b(E,{get label(){return l(k)},get checked(){return l(h)},set checked(S){G(h,S,!0)}})}};let b=_(()=>i()("edit_x",{values:{name:l(a)?.name}})),y=_(()=>i()("save")),w=_(()=>l(f)===l(d));Di(t,{size:"x-large",get title(){return l(b)},get okLabel(){return l(y)},get okDisabled(){return l(w)},okShortcuts:"Accel+S",onOk:()=>{m()},onClose:()=>{g()},get open(){return l(c)},set open(E){G(c,E,!0)},footerExtra:v,children:(E,k)=>{var S=j7();let C;var x=z(S);qd(x,{flex:!0,get value(){return l(f)},set value(T){G(f,T,!0)}}),Z(T=>C=Zt(S,1,"wrapper svelte-1lnkfih",null,C,T),[()=>({wrap:l(h)})]),$(E,S)},$$slots:{footerExtra:!0,default:!0}})}ce(),s()}const cA=({draft:t,locale:e,slug:n})=>{const{collection:r,collectionFile:i,originalEntry:o,currentValues:s,isIndexFile:a}=t,{_i18n:{defaultLocale:c,structure:u,omitDefaultLocaleFromFileName:d}}=i??r;if(i){const{_i18n:b,file:y}=i;return Qm({_i18n:b,locale:e,path:tn(y)})}if(o?.locales[e]?.slug===n)return o.locales[e].path;const f=r,{_file:{basePath:h,subPath:p,extension:g}}=f,m=a?ii(f)?.name:p?xo(p,{collection:f,locale:e,content:s[c],currentSlug:n}):n,v={multiple_folders:`${h}/${e}/${m}.${g}`,multiple_folders_i18n_root:`${e}/${h}/${m}.${g}`,multiple_files:d&&e===c?`${h}/${m}.${g}`:`${h}/${m}.${e}.${g}`,single_file:`${h}/${m}.${g}`};return v[u]??v.single_file},uA=({draft:t})=>{const{collection:e,collectionFile:n,currentSlugs:r,currentValues:i,isIndexFile:o}=t,{_i18n:{defaultLocale:s}}=n??e;return{collection:e,content:{...i[s],_slug:r?.[s]??r?._},isIndexFile:o}},q7=({draft:t,locale:e,localizingKeyPaths:n})=>{const{isNew:r,collection:i,collectionFile:o,currentSlugs:s,currentValues:a,isIndexFile:c}=t,{_type:u}=i,{identifier_field:d="title",slug:f=`{{${d}}}`}=u==="entry"?i:{},{_i18n:{defaultLocale:h}}=o??i,p=s?.[e]??s?._;return r?xo(f,{collection:i,locale:e,content:{...a[h],...Object.fromEntries(n.map(g=>[g,a[e]?.[g]])),_slug:p},isIndexFile:c}):p},V7=({draft:t,defaultLocaleSlug:e})=>{const{collection:n,collectionFile:r,currentLocales:i}=t,{_type:o}=n,{identifier_field:s="title",slug:a=`{{${s}}}`}=o==="entry"?n:{},{_i18n:{defaultLocale:c,structureMap:{i18nSingleFile:u}}}=r??n,d=[...a.matchAll(/{{((?:fields\.)?.+?)( \| localize)?}}/g)].filter(([,,f])=>!!f).map(([,f])=>f);if(!(u||!d.length))return Object.fromEntries(Object.entries(i).map(([f])=>{const h=f===c?e:q7({draft:t,locale:f,localizingKeyPaths:d});return[f,h]}))},H7=({draft:t,defaultLocaleSlug:e,localizedSlugs:n,fillSlugOptions:r})=>{if(!n)return;const{collection:i,collectionFile:o}=t,{_i18n:{canonicalSlug:{value:s}}}=o??i;return s==="{{slug}}"?e:xo(s,{...r,currentSlug:e})},dA=({draft:t})=>{const{isNew:e,collection:n,collectionFile:r,fileName:i,currentSlugs:o,isIndexFile:s}=t,{_type:a}=n,{identifier_field:c="title",slug:u=`{{${c}}}`}=a==="entry"?n:{};if(s)return{defaultLocaleSlug:ii(n)?.name,localizedSlugs:void 0,canonicalSlug:void 0};const{_i18n:{defaultLocale:d}}=r??n,f=uA({draft:t}),h=i??(e?xo(u,f):o?.[d]??o?._),p=V7({draft:t,defaultLocaleSlug:h}),g=H7({draft:t,defaultLocaleSlug:h,localizedSlugs:p,fillSlugOptions:f});return{defaultLocaleSlug:h,localizedSlugs:p,canonicalSlug:g}},K7=({folder:t,fillSlugOptions:e})=>{const{entryRelative:n,internalPath:r,publicPath:i}=t;if(r===void 0||i===void 0)return{resolvedInternalPath:"",resolvedPublicPath:""};if(!n)return{resolvedInternalPath:xo(r,e),resolvedPublicPath:xo(i,e)};const{collection:o}=e,s=["multiple_folders","multiple_folders_i18n_root"].includes(o._i18n.structure),a=o._type==="entry"?o._file.subPath:void 0,c=a?.match(/(?<path>.+?)(?:\/[^/]+)?$/)?.groups?.path??"",u=lv(xo(nc([r,s||a?.includes("/")?c:void 0,o.media_folder]),e)),d=!s&&/^\.?$/.test(i)?i:lv(xo(s?nc([...Array((a?.match(/\//g)??[]).length+1).fill(".."),i,c]):i,e));return{resolvedInternalPath:u,resolvedPublicPath:d}},G7=({draft:t,defaultLocaleSlug:e,folder:n})=>{const{collection:r,collectionName:i,collectionFile:o,isIndexFile:s}=t,{_i18n:{defaultLocale:a}}=o??r,c=K7({folder:n,fillSlugOptions:{...uA({draft:t}),type:"media_folder",currentSlug:e,entryFilePath:cA({draft:t,locale:a,slug:e}),isIndexFile:s}}),{resolvedInternalPath:u}=c;return{assetFolderPaths:c,assetNamesInSameFolder:Hv(u).map(d=>d.name.normalize()),savingAssetProps:{collectionName:i,folder:n}}},W7=async({file:t,folder:e,blobURL:n,draft:r,defaultLocaleSlug:i,keyPath:o,content:s,changes:a,savingAssets:c,slugificationEnabled:u,encodingEnabled:d})=>{const f=await $a(t),h=c.find(w=>w.sha===f),{savingAssetProps:p,assetNamesInSameFolder:g,assetFolderPaths:{resolvedInternalPath:m,resolvedPublicPath:v}}=G7({draft:r,defaultLocaleSlug:i,folder:e});let b="";if(h)b=h.name;else{b=Q1(t.name,{slugificationEnabled:u,assetNamesInSameFolder:g});const w=m?`${m}/${b}`:b;g.push(b),a.push({action:"create",path:w,data:t}),c.push({...p,blobURL:n,name:b,path:w,sha:f,size:t.size,kind:Gu(b)})}let y=v?`${v==="/"?"":v}/${b}`:b;d&&(y=X1(y)),s[o]=s[o].replaceAll(n,y)},Kp=({field:t,keyPath:e,keyPathList:n})=>{const{widget:r}=t,i=r==="list";if(n.push(e),i||r==="object"){const{fields:o,types:s,typeKey:a="type"}=t;if(o)o.forEach(c=>{Kp({field:c,keyPath:i?`${e}.*.${c.name}`:`${e}.${c.name}`,keyPathList:n})});else if(s)n.push(i?`${e}.*.${a}`:`${e}.${a}`),s.forEach(c=>{c.fields?.forEach(u=>{Kp({field:u,keyPath:i?`${e}.*.${u.name}`:`${e}.${u.name}`,keyPathList:n})})});else if(i){const{field:c}=t;c?Kp({field:c,keyPath:`${e}.*`,keyPathList:n}):n.push(`${e}.*`)}}r&&ph.includes(r)&&n.push(cc(t)?`${e}.*`:e)},Y7=t=>{const e=[];return t.forEach(n=>{Kp({field:n,keyPath:n.name,keyPathList:e})}),e},Gd=({key:t,field:e,locale:n,unsortedMap:r,sortedMap:i,isTomlOutput:o,omitEmptyOptionalFields:s})=>{if(t.endsWith(".__sc_item_id")){delete r[t];return}let a=r[t];if(o&&typeof a=="string"&&iD.test(a)&&e?.widget==="datetime"&&!Os(e).format)try{a=new Na(a)}catch{}s&&e&&!uc({fieldConfig:e,locale:n})&&!Object.keys(r).some(c=>c.startsWith(`${t}.`))&&(!a||Array.isArray(a)&&!a.length||Gt(a)&&!Object.keys(a).length)||(i[t]=a),delete r[t]},J7=({collectionName:t,fileName:e,fields:n,locale:r,valueMap:i,canonicalSlugKey:o,isIndexFile:s=!1,isTomlOutput:a=!1})=>{const c=Ps(i),u={},{omit_empty_optional_fields:d=!1}=se(Et)?.output??{},f={collectionName:t,fileName:e,valueMap:i,isIndexFile:s},h={locale:r,unsortedMap:c,sortedMap:u,isTomlOutput:a,omitEmptyOptionalFields:d};return o&&o in c&&Gd({...h,key:o}),Y7(n).forEach(p=>{const g=fn({...f,keyPath:p});if(p in c)Gd({...h,key:p,field:g});else if(g?.widget==="keyvalue")u[p]={},Object.entries(c).filter(([m])=>m.startsWith(`${p}.`)).forEach(([m])=>{Gd({...h,key:m,field:g})});else{const m=new RegExp(`^${qt(p.replaceAll("*","\\d+")).replaceAll("\\\\d\\+","\\d+")}$`);Object.keys(c).filter(v=>m.test(v)).sort(([v,b])=>vi(v,b)).forEach(v=>{Gd({...h,key:v,field:g})})}}),Object.keys(c).sort(([p,g])=>vi(p,g)).forEach(p=>{Gd({...h,key:p})}),Yo(u)},$y=({draft:t,locale:e,valueMap:n})=>{const{collection:r,collectionName:i,collectionFile:o,fields:s,isIndexFile:a}=t,{_file:c,_i18n:{canonicalSlug:{key:u}}}=o??r,d=J7({collectionName:i,fileName:o?.name,fields:s,locale:e,valueMap:n,canonicalSlugKey:u,isIndexFile:a,isTomlOutput:["toml","toml-frontmatter"].includes(c.format)});return cS(s)?d[s[0].name]??[]:d},fA=(t,e=se(Et)?.output?.json??{})=>{const{indent_style:n="space",indent_size:r=n==="tab"?1:2}=e;return JSON.stringify(t,null,n==="tab"?" ".repeat(r):r).trim()},hA=t=>jF(t).trim(),pA=(t,e=se(Et)?.output?.yaml??{},n={})=>{const{indent_size:r=2,quote:i="none"}=e,{quote:o=!1}=n;return Gm(t,null,{indent:r,lineWidth:0,defaultKeyType:"PLAIN",defaultStringType:o||i==="double"?"QUOTE_DOUBLE":i==="single"?"QUOTE_SINGLE":"PLAIN",singleQuote:!(o||i==="double")}).trim()},X7=({content:t,_file:e})=>{const{format:n,fmDelimiters:r,yamlQuote:i=!1}=e,[o,s]=r??["---","---"],a=typeof t.body=="string"?t.body:"";if(delete t.body,!Object.keys(t).length)return`${a}
502
+ .wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) .markdown:where(.svelte-9guikv) {margin:0;padding:16px;overflow:auto;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) pre:where(.svelte-9guikv) {white-space:pre-wrap;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .detail {background-color:var(--sui-primary-background-color);}`};function M7(t,e){le(e,!0),ke(t,D7);const n=()=>V(Ms,"$overlaidAsset",o),r=()=>V(Js,"$showAssetOverlay",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=ie(void 0),c=ie(!0),u=ie(void 0);const d=_(()=>n()?.kind),f=_(()=>n()?.blobURL),h=_(()=>n()?.name),p=async()=>{await ha(),l(a)&&(l(a).tabIndex=0,l(a).focus())};De(()=>{n()&&(async()=>G(u,await Rs(n()),!0))()}),De(()=>{l(a)?.addEventListener("transitionend",()=>{r()||G(c,!0)})}),De(()=>{l(a)&&r()&&(G(c,!1),p())});var g=R7(),m=z(g);Xn(m,()=>n()?.sha,v=>{var b=O7(),y=M(b);i7(y,{});var w=j(y,2),E=z(w),k=z(E);{var S=A=>{{let P=_(()=>["image","video"].includes(l(d))),L=_(()=>l(d)==="image"),I=_(()=>l(d)==="image"?l(h):void 0),N=_(()=>["audio","video"].includes(l(d)));Ro(A,{get kind(){return l(d)},get asset(){return n()},get blurBackground(){return l(P)},get checkerboard(){return l(L)},get alt(){return l(I)},get controls(){return l(N)}})}},C=A=>{var P=X(),L=M(P);{var I=D=>{var B=A7();Z(()=>{Ee(B,"src",l(f)),Ee(B,"title",l(h))}),$(D,B)},N=D=>{var B=X(),H=M(B);{var W=O=>{var F=X(),K=M(F);Xt(K,()=>n()?.text??l(u).text(),null,(J,Q)=>{var oe=X(),re=M(oe);{var ee=ae=>{var fe=X(),be=M(fe);Xt(be,()=>Rv(l(Q),{breaks:!0,async:!0}),null,(pe,he)=>{var ge=P7(),ve=z(ge);cr(ve,()=>Nr.sanitize(l(he))),$(pe,ge)},pe=>{var he=L7(),ge=z(he);Z(()=>te(ge,l(Q))),$(pe,he)}),$(ae,fe)},ne=ae=>{var fe=N7(),be=z(fe);Z(()=>te(be,l(Q))),$(ae,fe)};q(re,ae=>{l(h)?.endsWith(".md")?ae(ee):ae(ne,!1)})}$(J,oe)}),$(O,F)},Y=O=>{hr(O,{children:(F,K)=>{var J=I7(),Q=z(J);Z(oe=>te(Q,oe),[()=>i()("preview_unavailable")]),$(F,J)},$$slots:{default:!0}})};q(H,O=>{l(u)?.type&&mu(l(u).type)?O(W):O(Y,!1)},!0)}$(D,B)};q(L,D=>{l(u)?.type==="application/pdf"?D(I):D(N,!1)},!0)}$(A,P)};q(k,A=>{l(d)&&$h(l(d))?A(S):A(C,!1)})}var x=j(E,2);{var T=A=>{aA(A,{get asset(){return n()}})};q(x,A=>{n()&&A(T)})}$(v,b)}),vt(g,v=>G(a,v),()=>l(a)),Z(v=>{Ee(g,"hidden",l(c)),g.inert=!r(),Ee(g,"aria-label",v)},[()=>i()("asset_editor")]),$(t,g),ce(),s()}const Sy=Qt([Et,bn],([t,e])=>{if(!t||!e?.isGit)return!1;const{skip_ci:n,automatic_deployments:r}=t.backend;return typeof n=="boolean"||typeof r=="boolean"}),Ey=Qt([Et,bn],([t,e])=>{if(!t||!e?.isGit)return!1;const{skip_ci:n,automatic_deployments:r}=t.backend;return n===!0||r===!1}),F7=t=>{const{files:e,folder:n,originalAsset:r}=t,{slugify_filename:i=!1}=Hu().config,o=n?.internalPath!==void 0?Hv(n.internalPath).map(s=>s.name.normalize()):[];return e.map(s=>{const a=r?.name??Q1(s.name,{slugificationEnabled:i,assetNamesInSameFolder:o});return o.includes(a)||o.push(a),{action:r?"update":"create",name:a,path:r?.path??[n?.internalPath,a].join("/"),file:s}})},z7=({count:t})=>{const e=se(ko),n=se(Ms);e&&ko.set(se(Dn).find(r=>r.path===e.path)),n&&Ms.set(se(Dn).find(r=>r.path===n.path)),ea.set({...hl,saved:!0,published:!!se(bn)?.isGit&&!se(Ey),count:t})},lA=async(t,e)=>{const{files:n,folder:r}=t,i=F7(t),o=i.map(({name:s,path:a,file:c})=>({name:s,path:a,size:c.size,kind:Gu(s),folder:r}));await Kd({changes:i.map(({action:s,path:a,file:c})=>({action:s,path:a,data:c})),savingAssets:o,options:e}),z7({count:n.length})};var j7=U('<div role="none"><!></div>');const B7={hash:"svelte-1lnkfih",code:".wrapper.svelte-1lnkfih {display:contents;}.wrapper.svelte-1lnkfih textarea {min-height:40dvh;max-height:80dvh;font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);text-wrap:nowrap;resize:vertical;}.wrapper.svelte-1lnkfih .wrap textarea {text-wrap:wrap;}"};function U7(t,e){le(e,!0),ke(t,B7);const n=()=>V(qv,"$editingAsset",o),r=()=>V(Js,"$showAssetOverlay",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=_(n);let c=ie(!1),u=ie(void 0),d=ie(void 0),f=ie(void 0),h=ie(!1);const p=async()=>{G(u,await Rs(l(a)),!0),G(d,await l(u).text(),!0),G(f,l(d),!0),G(c,!0)},g=()=>{Ge(qv,void 0),G(u,void 0),G(d,void 0),G(f,void 0)},m=async()=>{l(a)&&l(u)&&typeof l(f)=="string"&&await lA({folder:l(a).folder,files:[new File([l(f)],l(a).name,{type:l(u).type})],originalAsset:l(a)},{commitType:"uploadMedia"})};De(()=>{l(a)&&l(u)===void 0&&p()}),De(()=>{r()||G(c,!1)});{const v=E=>{{let k=_(()=>i()("wrap_long_lines"));_b(E,{get label(){return l(k)},get checked(){return l(h)},set checked(S){G(h,S,!0)}})}};let b=_(()=>i()("edit_x",{values:{name:l(a)?.name}})),y=_(()=>i()("save")),w=_(()=>l(f)===l(d));Di(t,{size:"x-large",get title(){return l(b)},get okLabel(){return l(y)},get okDisabled(){return l(w)},okShortcuts:"Accel+S",onOk:()=>{m()},onClose:()=>{g()},get open(){return l(c)},set open(E){G(c,E,!0)},footerExtra:v,children:(E,k)=>{var S=j7();let C;var x=z(S);qd(x,{flex:!0,get value(){return l(f)},set value(T){G(f,T,!0)}}),Z(T=>C=Zt(S,1,"wrapper svelte-1lnkfih",null,C,T),[()=>({wrap:l(h)})]),$(E,S)},$$slots:{footerExtra:!0,default:!0}})}ce(),s()}const cA=({draft:t,locale:e,slug:n})=>{const{collection:r,collectionFile:i,originalEntry:o,currentValues:s,isIndexFile:a}=t,{_i18n:{defaultLocale:c,structure:u,omitDefaultLocaleFromFileName:d}}=i??r;if(i){const{_i18n:b,file:y}=i;return Qm({_i18n:b,locale:e,path:tn(y)})}if(o?.locales[e]?.slug===n)return o.locales[e].path;const f=r,{_file:{basePath:h,subPath:p,extension:g}}=f,m=a?ii(f)?.name:p?xo(p,{collection:f,locale:e,content:s[c],currentSlug:n}):n,v={multiple_folders:`${h}/${e}/${m}.${g}`,multiple_folders_i18n_root:`${e}/${h}/${m}.${g}`,multiple_files:d&&e===c?`${h}/${m}.${g}`:`${h}/${m}.${e}.${g}`,single_file:`${h}/${m}.${g}`};return v[u]??v.single_file},uA=({draft:t})=>{const{collection:e,collectionFile:n,currentSlugs:r,currentValues:i,isIndexFile:o}=t,{_i18n:{defaultLocale:s}}=n??e;return{collection:e,content:{...i[s],_slug:r?.[s]??r?._},isIndexFile:o}},q7=({draft:t,locale:e,localizingKeyPaths:n})=>{const{isNew:r,collection:i,collectionFile:o,currentSlugs:s,currentValues:a,isIndexFile:c}=t,{_type:u}=i,{identifier_field:d="title",slug:f=`{{${d}}}`}=u==="entry"?i:{},{_i18n:{defaultLocale:h}}=o??i,p=s?.[e]??s?._;return r?xo(f,{collection:i,locale:e,content:{...a[h],...Object.fromEntries(n.map(g=>[g,a[e]?.[g]])),_slug:p},isIndexFile:c}):p},V7=({draft:t,defaultLocaleSlug:e})=>{const{collection:n,collectionFile:r,currentLocales:i}=t,{_type:o}=n,{identifier_field:s="title",slug:a=`{{${s}}}`}=o==="entry"?n:{},{_i18n:{defaultLocale:c,structureMap:{i18nSingleFile:u}}}=r??n,d=[...a.matchAll(/{{((?:fields\.)?.+?)( \| localize)?}}/g)].filter(([,,f])=>!!f).map(([,f])=>f);if(!(u||!d.length))return Object.fromEntries(Object.entries(i).map(([f])=>{const h=f===c?e:q7({draft:t,locale:f,localizingKeyPaths:d});return[f,h]}))},H7=({draft:t,defaultLocaleSlug:e,localizedSlugs:n,fillSlugOptions:r})=>{if(!n)return;const{collection:i,collectionFile:o}=t,{_i18n:{canonicalSlug:{value:s}}}=o??i;return s==="{{slug}}"?e:xo(s,{...r,currentSlug:e})},dA=({draft:t})=>{const{isNew:e,collection:n,collectionFile:r,fileName:i,currentSlugs:o,isIndexFile:s}=t,{_type:a}=n,{identifier_field:c="title",slug:u=`{{${c}}}`}=a==="entry"?n:{};if(s)return{defaultLocaleSlug:ii(n)?.name,localizedSlugs:void 0,canonicalSlug:void 0};const{_i18n:{defaultLocale:d}}=r??n,f=uA({draft:t}),h=i??(e?xo(u,f):o?.[d]??o?._),p=V7({draft:t,defaultLocaleSlug:h}),g=H7({draft:t,defaultLocaleSlug:h,localizedSlugs:p,fillSlugOptions:f});return{defaultLocaleSlug:h,localizedSlugs:p,canonicalSlug:g}},K7=({folder:t,fillSlugOptions:e})=>{const{entryRelative:n,internalPath:r,publicPath:i}=t;if(r===void 0||i===void 0)return{resolvedInternalPath:"",resolvedPublicPath:""};if(!n)return{resolvedInternalPath:xo(r,e),resolvedPublicPath:xo(i,e)};const{collection:o}=e,s=["multiple_folders","multiple_folders_i18n_root"].includes(o._i18n.structure),a=o._type==="entry"?o._file.subPath:void 0,c=a?.match(/(?<path>.+?)(?:\/[^/]+)?$/)?.groups?.path??"",u=lv(xo(nc([r,s||a?.includes("/")?c:void 0,o.media_folder]),e)),d=!s&&/^\.?$/.test(i)?i:lv(xo(s?nc([...Array((a?.match(/\//g)??[]).length+1).fill(".."),i,c]):i,e));return{resolvedInternalPath:u,resolvedPublicPath:d}},G7=({draft:t,defaultLocaleSlug:e,folder:n})=>{const{collection:r,collectionName:i,collectionFile:o,isIndexFile:s}=t,{_i18n:{defaultLocale:a}}=o??r,c=K7({folder:n,fillSlugOptions:{...uA({draft:t}),type:"media_folder",currentSlug:e,entryFilePath:cA({draft:t,locale:a,slug:e}),isIndexFile:s}}),{resolvedInternalPath:u}=c;return{assetFolderPaths:c,assetNamesInSameFolder:Hv(u).map(d=>d.name.normalize()),savingAssetProps:{collectionName:i,folder:n}}},W7=async({file:t,folder:e,blobURL:n,draft:r,defaultLocaleSlug:i,keyPath:o,content:s,changes:a,savingAssets:c,slugificationEnabled:u,encodingEnabled:d})=>{const f=await $a(t),h=c.find(w=>w.sha===f),{savingAssetProps:p,assetNamesInSameFolder:g,assetFolderPaths:{resolvedInternalPath:m,resolvedPublicPath:v}}=G7({draft:r,defaultLocaleSlug:i,folder:e});let b="";if(h)b=h.name;else{b=Q1(t.name,{slugificationEnabled:u,assetNamesInSameFolder:g});const w=m?`${m}/${b}`:b;g.push(b),a.push({action:"create",path:w,data:t}),c.push({...p,blobURL:n,name:b,path:w,sha:f,size:t.size,kind:Gu(b)})}let y=v?`${v==="/"?"":v}/${b}`:b;d&&(y=X1(y)),s[o]=s[o].replaceAll(n,y)},Kp=({field:t,keyPath:e,keyPathList:n})=>{const{widget:r}=t,i=r==="list";if(n.push(e),i||r==="object"){const{fields:o,types:s,typeKey:a="type"}=t;if(o)o.forEach(c=>{Kp({field:c,keyPath:i?`${e}.*.${c.name}`:`${e}.${c.name}`,keyPathList:n})});else if(s)n.push(i?`${e}.*.${a}`:`${e}.${a}`),s.forEach(c=>{c.fields?.forEach(u=>{Kp({field:u,keyPath:i?`${e}.*.${u.name}`:`${e}.${u.name}`,keyPathList:n})})});else if(i){const{field:c}=t;c?Kp({field:c,keyPath:`${e}.*`,keyPathList:n}):n.push(`${e}.*`)}}r&&ph.includes(r)&&n.push(cc(t)?`${e}.*`:e)},Y7=t=>{const e=[];return t.forEach(n=>{Kp({field:n,keyPath:n.name,keyPathList:e})}),e},J7=t=>t==null||t===""||Array.isArray(t)&&!t.length||Gt(t)&&!Object.keys(t).length,Gd=({key:t,field:e,locale:n,unsortedMap:r,sortedMap:i,isTomlOutput:o,omitEmptyOptionalFields:s})=>{if(t.endsWith(".__sc_item_id")){delete r[t];return}let a=r[t];if(o&&typeof a=="string"&&iD.test(a)&&e?.widget==="datetime"&&!Os(e).format)try{a=new Na(a)}catch{}s&&e&&!uc({fieldConfig:e,locale:n})&&!Object.keys(r).some(c=>c.startsWith(`${t}.`))&&J7(a)||(i[t]=a),delete r[t]},X7=({collectionName:t,fileName:e,fields:n,locale:r,valueMap:i,canonicalSlugKey:o,isIndexFile:s=!1,isTomlOutput:a=!1})=>{const c=Ps(i),u={},{omit_empty_optional_fields:d=!1}=se(Et)?.output??{},f={collectionName:t,fileName:e,valueMap:i,isIndexFile:s},h={locale:r,unsortedMap:c,sortedMap:u,isTomlOutput:a,omitEmptyOptionalFields:d};return o&&o in c&&Gd({...h,key:o}),Y7(n).forEach(p=>{const g=fn({...f,keyPath:p});if(p in c)Gd({...h,key:p,field:g});else if(g?.widget==="keyvalue")u[p]={},Object.entries(c).filter(([m])=>m.startsWith(`${p}.`)).forEach(([m])=>{Gd({...h,key:m,field:g})});else{const m=new RegExp(`^${qt(p.replaceAll("*","\\d+")).replaceAll("\\\\d\\+","\\d+")}$`);Object.keys(c).filter(v=>m.test(v)).sort(([v,b])=>vi(v,b)).forEach(v=>{Gd({...h,key:v,field:g})})}}),Object.keys(c).sort(([p,g])=>vi(p,g)).forEach(p=>{Gd({...h,key:p})}),Yo(u)},$y=({draft:t,locale:e,valueMap:n})=>{const{collection:r,collectionName:i,collectionFile:o,fields:s,isIndexFile:a}=t,{_file:c,_i18n:{canonicalSlug:{key:u}}}=o??r,d=X7({collectionName:i,fileName:o?.name,fields:s,locale:e,valueMap:n,canonicalSlugKey:u,isIndexFile:a,isTomlOutput:["toml","toml-frontmatter"].includes(c.format)});return cS(s)?d[s[0].name]??[]:d},fA=(t,e=se(Et)?.output?.json??{})=>{const{indent_style:n="space",indent_size:r=n==="tab"?1:2}=e;return JSON.stringify(t,null,n==="tab"?" ".repeat(r):r).trim()},hA=t=>jF(t).trim(),pA=(t,e=se(Et)?.output?.yaml??{},n={})=>{const{indent_size:r=2,quote:i="none"}=e,{quote:o=!1}=n;return Gm(t,null,{indent:r,lineWidth:0,defaultKeyType:"PLAIN",defaultStringType:o||i==="double"?"QUOTE_DOUBLE":i==="single"?"QUOTE_SINGLE":"PLAIN",singleQuote:!(o||i==="double")}).trim()},Z7=({content:t,_file:e})=>{const{format:n,fmDelimiters:r,yamlQuote:i=!1}=e,[o,s]=r??["---","---"],a=typeof t.body=="string"?t.body:"";if(delete t.body,!Object.keys(t).length)return`${a}
503
503
  `;try{if(n==="frontmatter"||n==="yaml-frontmatter")return`${o}
504
504
  ${pA(t,void 0,{quote:i})}
505
505
  ${s}
@@ -516,7 +516,7 @@ ${a}
516
516
  `;try{if(/^ya?ml$/.test(n))return`${pA(t,void 0,{quote:r})}
517
517
  `;if(n==="toml")return`${hA(t)}
518
518
  `;if(n==="json")return`${fA(t)}
519
- `}catch(o){return console.error(o),""}return/^(?:(?:yaml|toml|json)-)?frontmatter$/.test(n)?X7({content:t,_file:e}):""},Z7=async({draft:t,slugs:{defaultLocaleSlug:e,canonicalSlug:n,localizedSlugs:r}})=>{const i=se(ka),{collection:o,collectionName:s,collectionFile:a,fileName:c,isIndexFile:u,currentLocales:d,currentValues:f,files:h}=t,{_i18n:{canonicalSlug:{key:p}}}=a??o,g=[],m=[],{slugify_filename:v=!1}=Hu().config,{encode_file_path:b=!1}=se(Et)?.output??{},y={collectionName:s,fileName:c,keyPath:"",valueMap:{},isIndexFile:u},w={draft:t,defaultLocaleSlug:e,changes:g,savingAssets:m,slugificationEnabled:v};return{localizedEntryMap:Object.fromEntries(await Promise.all(Object.entries(f).map(async([k,S])=>{const x=r?.[k]??e,T=cA({draft:t,locale:k,slug:x});return d[k]?(S[p]=n,await Promise.all(Object.entries(S).map(async([A,P])=>{if(P===void 0){delete S[A];return}if(typeof P!="string")return;S[A]=P.trim();const L=[...P.matchAll(Gx("g"))];if(!L.length)return;const I=fn({...y,valueMap:S,keyPath:A}),N={...w,keyPath:A,content:S,encodingEnabled:I?.widget==="markdown"?!0:b};await Promise.all(L.map(async([D])=>{const{file:B,folder:H=i}=h[D]??{};B&&await W7({...N,file:B,folder:H,blobURL:D})}))})),[k,{slug:x,path:T,content:Ps(S)}]):[k,{path:T}]}))),changes:g,savingAssets:m}},mA=async({previousPath:t,cacheDB:e})=>t?(await e?.get(t))?.sha:void 0,Q7=async({draft:t,savingEntry:e,cacheDB:n})=>{const{collection:r,isNew:i,originalSlugs:o,originalEntry:s,collectionFile:a}=t,{_file:c,_i18n:{i18nEnabled:u,defaultLocale:d}}=a??r,{slug:f,path:h,content:p}=e.locales[d],g=!i&&(o?.[d]??o?._)!==f,m=s?.locales[d]?.path;return{action:i?"create":g?"move":"update",slug:f,path:h,previousPath:g?m:void 0,previousSha:await mA({cacheDB:n,previousPath:m}),data:await gA({content:u?Object.fromEntries(Object.entries(e.locales).filter(([,v])=>!!v.content).map(([v,b])=>[v,$y({draft:t,locale:v,valueMap:b.content})])):$y({draft:t,locale:"_default",valueMap:p}),_file:c})}},eV=async({draft:t,savingEntry:e,cacheDB:n,locale:r})=>{const{collection:i,isNew:o,originalLocales:s,currentLocales:a,originalSlugs:c,originalEntry:u,collectionFile:d}=t,{_file:f}=d??i,{slug:h,path:p,content:g}=e.locales[r]??{},m=u?.locales[r]?.path,v=await mA({cacheDB:n,previousPath:m});if(a[r]){const b=!o&&s[r]&&(c?.[r]??c?._)!==h;return{action:o||!s[r]?"create":b?"move":"update",slug:h,path:p,previousPath:b?m:void 0,previousSha:v,data:await gA({content:$y({draft:t,locale:r,valueMap:g}),_file:f})}}if(!o&&s[r])return{action:"delete",slug:h,path:p,previousSha:v}},vA=async({draft:t,slugs:e})=>{const{collection:n,originalEntry:r,collectionFile:i}=t,{defaultLocaleSlug:o}=e,{_file:s,_i18n:{i18nEnabled:a,allLocales:c,defaultLocale:u,structureMap:{i18nSingleFile:d}}}=i??n,{localizedEntryMap:f,changes:h,savingAssets:p}=await Z7({draft:t,slugs:e}),g={id:r?.id??ti(),slug:o,subPath:s.fullPathRegEx?f[u].path.match(s.fullPathRegEx)?.groups?.subPath??o:o,locales:Object.fromEntries(Object.entries(f))},m=se(bn)?.repository?.databaseName,v=m?new mo(m,"file-cache"):void 0,b={draft:t,savingEntry:g,cacheDB:v};return!a||d?h.push(await Q7({...b})):await Promise.all(c.map(async y=>{const w=await eV({...b,locale:y});w&&h.push(w)})),{savingEntry:g,savingAssets:p,changes:h}},tV=({entry:t})=>{const{locales:e}=t,n=Object.fromEntries(Object.entries(e).map(([o])=>[o,!0])),r=Object.fromEntries(Object.entries(e).map(([o,{slug:s}])=>[o,s])),i=Object.fromEntries(Object.entries(e).map(([o,{content:s}])=>[o,s]));return{createdAt:Date.now(),isNew:!1,canPreview:!0,originalEntry:t,originalLocales:n,currentLocales:structuredClone(n),originalSlugs:r,currentSlugs:structuredClone(r),originalValues:i,currentValues:structuredClone(i),files:{},validities:{},expanderStates:{}}},bA=async({draftProps:t,indexFile:e,savingEntries:n,changes:r})=>{const{collection:i,collectionFile:o}=t,{fields:s=[]}=o??i,a={...t,fields:e?.fields??s},{savingEntry:c,changes:u}=await vA({draft:a,slugs:dA({draft:a})});n.push(c),r.push(...u)},nV=async({entry:t,savingEntries:e,changes:n})=>{const r=tV({entry:t});await Promise.all(Xo(t).map(async i=>{const o=i.name,s=_o(i,t),a=s?ii(i):void 0,c=Ds(i,t),u={indexFile:a,savingEntries:e,changes:n},d={...r,collection:i,collectionName:o,isIndexFile:s};c.length?await Promise.all(c.map(f=>bA({...u,draftProps:{...d,collectionFile:f,fileName:f.name}}))):await bA({...u,draftProps:d})}))},rV=async({_globalAssetFolder:t,newPath:e,asset:n,savingEntries:r,changes:i})=>{const o=Mu(n)??n.blobURL,s=o?await Uv(o):[];if(!o||!s.length)return;const{publicPath:a}=nh(n.path).find(({collectionName:u})=>u!==void 0)??t,c=await Uv(o,{entries:structuredClone(s),newURL:e.replace(n.folder.internalPath??"",a??"")});c.length&&await Promise.all(c.map(async u=>nV({entry:u,savingEntries:r,changes:i})))},iV=({action:t,movedAssets:e})=>{const n=se(Dn),r=se(ko)?.path,i=e.find(a=>a.asset.path===r),o=se(Ms)?.path,s=e.find(a=>a.asset.path===o);i&&ko.set(n.find(a=>a.path===i.path)),s&&Ms.set(n.find(a=>a.path===s.path)),ea.set({...hl,moved:t==="move",renamed:t==="rename",count:e.length})},oV=async(t,e)=>{const n=se(ka),r=[],i=[],o=[];await Promise.all(e.map(async({asset:s,path:a})=>{const c=a,u=dn(c).basename;o.push({...s,path:c,name:u}),r.push({action:"move",path:c,previousPath:s.path,previousSha:s.sha,data:new File([s.file??await Rs(s)],u)}),await rV({_globalAssetFolder:n,newPath:c,asset:s,savingEntries:i,changes:r})})),await Kd({changes:r,savingEntries:i,savingAssets:o,options:{commitType:"uploadMedia"}}),iV({action:t,movedAssets:e})};var sV=U('<span role="none"> </span>'),aV=U('<p class="svelte-22gadf"> </p> <div role="none" class="svelte-22gadf"><!> <!></div> <div role="none" class="error svelte-22gadf"><!></div>',1);const lV={hash:"svelte-22gadf",code:"p.svelte-22gadf {margin:0 0 8px;}div.svelte-22gadf {display:flex;align-items:center;gap:4px;}.error.svelte-22gadf {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}"};function cV(t,e){const n=Rn();le(e,!0),ke(t,lV);const r=()=>V(Eh,"$renamingAsset",s),i=()=>V(Js,"$showAssetOverlay",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=ie(!1),u=ie(St({filename:""})),d=ie(""),f=ie(St([])),h=ie(St([]));const p=_(r),g=_(()=>l(u).dirname),m=_(()=>l(u).filename),v=_(()=>l(u).extension),b=_(()=>{if(!l(d).trim())return"empty";if(l(d).includes("/"))return"character";if(l(f).includes(`${l(d)}${l(v)?`.${l(v)}`:""}`))return"duplicate"}),y=_(()=>!!l(b)),w=async()=>{l(p)&&(G(u,dn(l(p).path),!0),G(d,l(m),!0),G(f,Hv(l(g)).map(k=>k.name).filter(k=>k!==l(p).name),!0),await(async k=>{G(h,k.usedEntries,!0)})(await dh(l(p))),G(c,!0))},E=async()=>{if(!l(p))return;const k=l(p).path,S=`${l(g)}/${l(d)}${l(v)?`.${l(v)}`:""}`;await oV("rename",[{asset:l(p),path:S}]),Oo().path===`/assets/${k}`&&await Ht(`/assets/${S}`,{replaceState:!0,notifyChange:!1})};De(()=>{l(p)&&w()}),De(()=>{i()||(G(c,!1),Ge(Eh,void 0))});{let k=_(()=>o()("rename_x",{values:{name:l(p)?.name}})),S=_(()=>o()("rename")),C=_(()=>l(d)===l(m)||l(y));Di(t,{get title(){return l(k)},get okLabel(){return l(S)},get okDisabled(){return l(C)},onOk:()=>{E()},onClose:()=>{Ge(Eh,void 0)},get open(){return l(c)},set open(x){G(c,x,!0)},children:(x,T)=>{var A=aV(),P=M(A),L=z(P),I=j(P,2),N=z(I);Cn(N,{flex:!0,get invalid(){return l(y)},get"aria-errormessage"(){return`${n}-error`},get value(){return l(d)},set value(O){G(d,O,!0)}});var D=j(N,2);{var B=O=>{var F=sV(),K=z(F);Z(()=>te(K,`.${l(v)??""}`)),$(O,F)};q(D,O=>{l(v)&&O(B)})}var H=j(I,2),W=z(H);{var Y=O=>{var F=Ie();Z(K=>te(F,K),[()=>o()(`enter_new_name_for_asset_error.${l(b)}`)]),$(O,F)};q(W,O=>{l(y)&&O(Y)})}Z(O=>{te(L,O),Ee(H,"id",`${n}-error`)},[()=>o()(l(h).length===0?"enter_new_name_for_asset":l(h).length===1?"enter_new_name_for_asset_with_one_entry":"enter_new_name_for_asset_with_many_entries",{values:{count:l(h).length}})]),$(x,A)},$$slots:{default:!0}})}ce(),a()}var uV=U('<div role="none" class="label svelte-17zk54k"><!></div>'),dV=U("<!> <!> <!>",1);const fV={hash:"svelte-17zk54k",code:".label.svelte-17zk54k {word-break:break-all;}"};function hV(t,e){le(e,!0),ke(t,fV);const n=()=>V(fl,"$listedAssets",a),r=()=>V(ko,"$focusedAsset",a),i=()=>V(ln,"$isSmallScreen",a),o=()=>V(Io,"$isMediumScreen",a),s=()=>V(Ku,"$selectedAssets",a),[a,c]=me(),u=_(()=>e.asset.name),d=_(()=>e.asset.kind),f=h=>{Ku.update(p=>{const g=p.indexOf(e.asset);return h&&g===-1&&p.push(e.asset),!h&&g>-1&&p.splice(g,1),p})};{let h=_(()=>n().indexOf(e.asset));sd(t,{get"aria-rowindex"(){return l(h)},onChange:p=>{f(p.detail.selected)},onfocus:()=>{Ge(ko,e.asset)},onclick:()=>{(i()||o())&&r()&&Kv(r())&&Ht(`/assets/${r().path}`,{transitionType:"forwards"})},ondblclick:()=>{r()&&Kv(r())&&Ht(`/assets/${r().path}`,{transitionType:"forwards"})},children:(p,g)=>{var m=dV(),v=M(m);{var b=k=>{_i(k,{class:"checkbox",children:(S,C)=>{{let x=_(()=>s().includes(e.asset));od(S,{role:"none",tabindex:"-1",get checked(){return l(x)},onChange:({detail:{checked:T}})=>{f(T)}})}},$$slots:{default:!0}})};q(v,k=>{i()||o()||k(b)})}var y=j(v,2);_i(y,{class:"image",children:(k,S)=>{{let C=_(()=>e.viewType==="list"?"icon":"tile"),x=_(()=>l(d)==="image");Ro(k,{get kind(){return l(d)},get asset(){return e.asset},get variant(){return l(C)},get cover(){return i()},get checkerboard(){return l(x)}})}},$$slots:{default:!0}});var w=j(y,2);{var E=k=>{_i(k,{class:"title",children:(S,C)=>{var x=uV(),T=z(x);xr(T,{lines:2,children:(A,P)=>{var L=Ie();Z(()=>te(L,l(u))),$(A,L)},$$slots:{default:!0}}),$(S,x)},$$slots:{default:!0}})};q(w,k=>{(!i()||e.viewType==="list")&&k(E)})}$(p,m)},$$slots:{default:!0}})}ce(),c()}function Ty(t,e){let n=R(e,"loading",3,"lazy"),r=R(e,"asset",3,void 0),i=R(e,"src",3,void 0),o=R(e,"variant",3,void 0),s=R(e,"blurBackground",3,!1),a=R(e,"cover",3,!1),c=R(e,"checkerboard",3,!1),u=R(e,"alt",3,""),d=rt(e,["$$slots","$$events","$$legacy","loading","asset","src","variant","blurBackground","cover","checkerboard","alt"]);Ro(t,en({kind:"image",get loading(){return n()},get asset(){return r()},get src(){return i()},get variant(){return o()},get blurBackground(){return s()},get cover(){return a()},get checkerboard(){return c()},get alt(){return u()}},()=>d))}var pV=U('<span role="none" class="image svelte-lbhi1w"><!></span>'),gV=U('<div role="listitem" class="file svelte-lbhi1w"><!> <div role="none" class="info svelte-lbhi1w"><div role="none" class="name"><!></div> <div role="none" class="meta svelte-lbhi1w"><!> <!></div></div> <!></div>'),mV=U('<div role="list" class="files svelte-lbhi1w"></div>');const vV={hash:"svelte-lbhi1w",code:".files.svelte-lbhi1w {display:flex;flex-direction:column;gap:16px;margin:0 8px;}.file.svelte-lbhi1w {display:flex;align-items:center;gap:16px;overflow:hidden;}.file.svelte-lbhi1w .preview {flex:none;}.file.svelte-lbhi1w .image:where(.svelte-lbhi1w) {flex:none;display:flex;justify-content:center;align-items:center;width:40px;height:40px;aspect-ratio:1/1;object-fit:cover;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-tertiary-background-color);}.file.svelte-lbhi1w .info:where(.svelte-lbhi1w) {flex:auto;display:flex;flex-direction:column;gap:4px;overflow:hidden;text-align:start;}.file.svelte-lbhi1w .info:where(.svelte-lbhi1w) .meta:where(.svelte-lbhi1w) {font-size:var(--sui-font-size-small);color:var(--sui-secondary-foreground-color);}"};function Cy(t,e){le(e,!0),ke(t,vV);const n=()=>V(zt,"$appLocale",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"files",27,()=>St([])),a=R(e,"transformedFileMap",3,void 0),c=R(e,"removable",3,!0);var u=mV();it(u,21,s,lr,(d,f,h)=>{var p=X(),g=M(p);Xt(g,Lt,null,m=>{const v=_(()=>{const{name:N,type:D,size:B}=l(f);return{name:N,type:D,size:B}}),b=_(()=>a()?.get(l(f)));var y=gV(),w=z(y);{var E=N=>{{let D=_(()=>URL.createObjectURL(l(f)));Ty(N,{get src(){return l(D)},variant:"icon",checkerboard:!0})}},k=N=>{var D=pV(),B=z(D);Je(B,{name:"draft"}),$(N,D)};q(w,N=>{vo.includes(l(v).type)?N(E):N(k,!1)})}var S=j(w,2),C=z(S),x=z(C);xr(x,{children:(N,D)=>{var B=Ie();Z(H=>te(B,H),[()=>l(v).name.normalize()]),$(N,B)},$$slots:{default:!0}});var T=j(C,2),A=z(T);Xn(A,n,N=>{var D=Ie();Z(B=>te(D,B),[()=>r()("file_meta",{values:{type:r()(`file_type_labels.${l(f).type.split("/")[1]}`,{default:dn(l(v).name).extension?.toUpperCase()}),size:ah(l(v).size)}})]),$(N,D)});var P=j(A,2);{var L=N=>{var D=Ie();Z(B=>te(D,B),[()=>r()("file_meta_converted_from_x",{values:{type:r()(`file_type_labels.${l(b).type.split("/")[1]}`,{default:dn(l(b).name).extension?.toUpperCase()})}})]),$(N,D)};q(P,N=>{l(b)&&l(b).type!==l(f).type&&N(L)})}var I=j(S,2);{let N=_(()=>r()("remove")),D=_(()=>!c()||s().length===1);Ze(I,{variant:"ghost",iconic:!0,get"aria-label"(){return l(N)},get hidden(){return l(D)},onclick:B=>{B.stopPropagation(),s().splice(h,1)},children:(B,H)=>{Je(B,{name:"close"})},$$slots:{default:!0}})}$(m,y)}),$(d,p)}),$(t,u),ce(),o()}var bV=U('<div role="alert"><!></div>'),_V=U('<div role="none"><!></div> <div role="none"><!></div> <!>',1),yV=U('<div role="none" class="content svelte-1hhq62q"><!> <!></div>'),wV=U('<div role="none" class="drop-indicator svelte-1hhq62q"><div role="none" class="svelte-1hhq62q"><!> <span role="none"> </span></div></div>'),xV=U('<div role="none" class="drop-target svelte-1hhq62q"><!> <!></div> <!> <!>',1);const kV={hash:"svelte-1hhq62q",code:".drop-target.svelte-1hhq62q {display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;pointer-events:auto;}.drop-target.svelte-1hhq62q > .group {overflow-y:auto;padding:16px;width:100%;height:100%;}.drop-target.svelte-1hhq62q button:not(:disabled) {pointer-events:auto;}.drop-indicator.svelte-1hhq62q {position:absolute;inset:0;z-index:10;border-radius:var(--sui-control-large-border-radius);background-color:hsl(var(--sui-background-color-4-hsl)/80%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;pointer-events:none;}.drop-indicator.svelte-1hhq62q div:where(.svelte-1hhq62q) {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:4px dashed var(--sui-primary-accent-color);border-radius:var(--sui-control-large-border-radius);font-size:var(--sui-font-size-x-large);}.drop-indicator.svelte-1hhq62q div:where(.svelte-1hhq62q) .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.content.svelte-1hhq62q {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow:auto;height:100%;min-height:320px;text-align:center;}"};function Wd(t,e){le(e,!0),ke(t,kV);const n=()=>V(ue,"$_",o),r=()=>V(zt,"$appLocale",o),i=()=>V(Wc,"$hasMouse",o),[o,s]=me(),a=F=>{var K=X(),J=M(K);{var Q=re=>{var ee=Ie();Z(ne=>te(ee,ne),[()=>n()("dropped_image_type_mismatch")]),$(re,ee)},oe=re=>{var ee=Ie();Z(ne=>te(ee,ne),[()=>n()("dropped_file_type_mismatch",{values:{type:Ql(r(),{type:"disjunction"}).format(c().split(/,\s*/))}})]),$(re,ee)};q(J,re=>{c()===vo.join(",")?re(Q):re(oe,!1)})}$(F,K)};let c=R(e,"accept",3,void 0),u=R(e,"disabled",3,!1),d=R(e,"multiple",3,!1),f=R(e,"showUploadButton",3,!1),h=R(e,"showFilePreview",3,!1),p=R(e,"onDrop",3,void 0),g=R(e,"children",3,void 0),m=ie(void 0),v=ie(!1),b=ie(!1),y=ie(!1),w=ie(void 0),E=ie(St([]));const k=_(()=>f()||h()&&l(E).length),S=()=>{l(w)?.open()},C=()=>{l(E).length&&(G(E,[],!0),p()?.({files:l(E)}))},x=F=>{G(E,d()?F:F.slice(0,1),!0),p()?.({files:l(E)})};Ft(()=>{l(m)?.addEventListener("Select",F=>{p()?.({files:F.detail.files})})}),De(()=>{!l(k)&&l(b)&&G(y,!0)});var T={openFilePicker:S,reset:C},A=xV(),P=M(A),L=z(P);{var I=F=>{var K=yV(),J=z(K);{var Q=ee=>{var ne=_V(),ae=M(ne),fe=z(ae);{var be=$e=>{var Ce=Ie();Z(Re=>te(Ce,Re),[()=>n()(d()?"drop_files_or_click_to_browse":"drop_file_or_click_to_browse")]),$($e,Ce)},pe=$e=>{var Ce=Ie();Z(Re=>te(Ce,Re),[()=>n()("tap_to_browse")]),$($e,Ce)};q(fe,$e=>{i()?$e(be):$e(pe,!1)})}var he=j(ae,2),ge=z(he);{const $e=Re=>{Je(Re,{name:"cloud_upload"})};let Ce=_(()=>n()(d()?"choose_files":"choose_file"));Ze(ge,{variant:"primary",get label(){return l(Ce)},get disabled(){return u()},onclick:()=>{S()},startIcon:$e,$$slots:{startIcon:!0}})}var ve=j(he,2);{var _e=$e=>{var Ce=bV(),Re=z(Ce);a(Re),$($e,Ce)};q(ve,$e=>{l(b)&&$e(_e)})}$(ee,ne)};q(J,ee=>{f()&&ee(Q)})}var oe=j(J,2);{var re=ee=>{Cy(ee,{get files(){return l(E)},set files(ne){G(E,ne,!0)}})};q(oe,ee=>{h()&&l(E).length&&ee(re)})}$(F,K)},N=F=>{var K=X(),J=M(K);Me(J,()=>g()??Be),$(F,K)};q(L,F=>{l(k)?F(I):F(N,!1)})}var D=j(L,2);{var B=F=>{var K=wV(),J=z(K),Q=z(J);Je(Q,{name:"download"});var oe=j(Q,2),re=z(oe);Z(ee=>te(re,ee),[()=>n()(d()?"drop_files_here":"drop_file_here")]),$(F,K)};q(D,F=>{l(v)&&F(B)})}vt(P,F=>G(m,F),()=>l(m));var H=j(P,2);vt(bb(H,{get accept(){return c()},get multiple(){return d()},onSelect:({files:F})=>{x(F)}}),F=>G(w,F,!0),()=>l(w));var W=j(H,2);{var Y=F=>{{let K=_(()=>n()("unsupported_file_type"));zh(F,{get title(){return l(K)},get open(){return l(y)},set open(J){G(y,J,!0)},children:(J,Q)=>{a(J)},$$slots:{default:!0}})}};q(W,F=>{l(k)||F(Y)})}jr("dragover",P,F=>{F.preventDefault(),!(u()||!F.dataTransfer)&&(F.dataTransfer.dropEffect="copy",G(v,!0),G(b,!1))}),jr("dragleave",P,F=>{F.preventDefault(),!u()&&G(v,!1)}),jr("dragend",P,F=>{F.preventDefault(),!u()&&G(v,!1)}),jr("drop",P,async F=>{if(F.preventDefault(),u()||!F.dataTransfer)return;G(v,!1);const K=await JN(F.dataTransfer,{accept:c()});K.length?x(K):G(b,!0)}),$(t,A);var O=ce(T);return s(),O}function _A(t,e){le(e,!0);const n=()=>V(th,"$targetAssetFolder",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"label",3,void 0);const a=_(()=>!Wm(n()));{const c=f=>{Je(f,{name:"cloud_upload"})};let u=_(()=>!s()),d=_(()=>r()("upload_assets"));Ze(t,{variant:"primary",get iconic(){return l(u)},get disabled(){return l(a)},get label(){return s()},get"aria-label"(){return l(d)},onclick:()=>{Ge(Xs,!0)},startIcon:c,$$slots:{startIcon:!0}})}ce(),o()}var SV=U("<div><!></div>");const EV={hash:"svelte-1sdsl2g",code:".list-container.svelte-1sdsl2g {--icon-size: 36px;flex:auto;position:relative;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;}"};function Ay(t,e){ke(t,EV);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","children"]);var i=SV();gt(i,()=>({role:"group",class:"list-container",...r}),void 0,void 0,"svelte-1sdsl2g");var o=z(i);Me(o,()=>n()??Be),$(t,i)}var $V=U('<div role="none"><!></div>');const TV={hash:"svelte-1sfbolp",code:`:is(.grid-view.svelte-1sfbolp, .list-view.svelte-1sfbolp) {display:block;padding:0 16px 16px;height:100%;overflow-y:auto;}
519
+ `}catch(o){return console.error(o),""}return/^(?:(?:yaml|toml|json)-)?frontmatter$/.test(n)?Z7({content:t,_file:e}):""},Q7=async({draft:t,slugs:{defaultLocaleSlug:e,canonicalSlug:n,localizedSlugs:r}})=>{const i=se(ka),{collection:o,collectionName:s,collectionFile:a,fileName:c,isIndexFile:u,currentLocales:d,currentValues:f,files:h}=t,{_i18n:{canonicalSlug:{key:p}}}=a??o,g=[],m=[],{slugify_filename:v=!1}=Hu().config,{encode_file_path:b=!1}=se(Et)?.output??{},y={collectionName:s,fileName:c,keyPath:"",valueMap:{},isIndexFile:u},w={draft:t,defaultLocaleSlug:e,changes:g,savingAssets:m,slugificationEnabled:v};return{localizedEntryMap:Object.fromEntries(await Promise.all(Object.entries(f).map(async([k,S])=>{const x=r?.[k]??e,T=cA({draft:t,locale:k,slug:x});return d[k]?(S[p]=n,await Promise.all(Object.entries(S).map(async([A,P])=>{if(P===void 0){delete S[A];return}if(typeof P!="string")return;S[A]=P.trim();const L=[...P.matchAll(Gx("g"))];if(!L.length)return;const I=fn({...y,valueMap:S,keyPath:A}),N={...w,keyPath:A,content:S,encodingEnabled:I?.widget==="markdown"?!0:b};await Promise.all(L.map(async([D])=>{const{file:B,folder:H=i}=h[D]??{};B&&await W7({...N,file:B,folder:H,blobURL:D})}))})),[k,{slug:x,path:T,content:Ps(S)}]):[k,{path:T}]}))),changes:g,savingAssets:m}},mA=async({previousPath:t,cacheDB:e})=>t?(await e?.get(t))?.sha:void 0,eV=async({draft:t,savingEntry:e,cacheDB:n})=>{const{collection:r,isNew:i,originalSlugs:o,originalEntry:s,collectionFile:a}=t,{_file:c,_i18n:{i18nEnabled:u,defaultLocale:d}}=a??r,{slug:f,path:h,content:p}=e.locales[d],g=!i&&(o?.[d]??o?._)!==f,m=s?.locales[d]?.path;return{action:i?"create":g?"move":"update",slug:f,path:h,previousPath:g?m:void 0,previousSha:await mA({cacheDB:n,previousPath:m}),data:await gA({content:u?Object.fromEntries(Object.entries(e.locales).filter(([,v])=>!!v.content).map(([v,b])=>[v,$y({draft:t,locale:v,valueMap:b.content})])):$y({draft:t,locale:"_default",valueMap:p}),_file:c})}},tV=async({draft:t,savingEntry:e,cacheDB:n,locale:r})=>{const{collection:i,isNew:o,originalLocales:s,currentLocales:a,originalSlugs:c,originalEntry:u,collectionFile:d}=t,{_file:f}=d??i,{slug:h,path:p,content:g}=e.locales[r]??{},m=u?.locales[r]?.path,v=await mA({cacheDB:n,previousPath:m});if(a[r]){const b=!o&&s[r]&&(c?.[r]??c?._)!==h;return{action:o||!s[r]?"create":b?"move":"update",slug:h,path:p,previousPath:b?m:void 0,previousSha:v,data:await gA({content:$y({draft:t,locale:r,valueMap:g}),_file:f})}}if(!o&&s[r])return{action:"delete",slug:h,path:p,previousSha:v}},vA=async({draft:t,slugs:e})=>{const{collection:n,originalEntry:r,collectionFile:i}=t,{defaultLocaleSlug:o}=e,{_file:s,_i18n:{i18nEnabled:a,allLocales:c,defaultLocale:u,structureMap:{i18nSingleFile:d}}}=i??n,{localizedEntryMap:f,changes:h,savingAssets:p}=await Q7({draft:t,slugs:e}),g={id:r?.id??ti(),slug:o,subPath:s.fullPathRegEx?f[u].path.match(s.fullPathRegEx)?.groups?.subPath??o:o,locales:Object.fromEntries(Object.entries(f))},m=se(bn)?.repository?.databaseName,v=m?new mo(m,"file-cache"):void 0,b={draft:t,savingEntry:g,cacheDB:v};return!a||d?h.push(await eV({...b})):await Promise.all(c.map(async y=>{const w=await tV({...b,locale:y});w&&h.push(w)})),{savingEntry:g,savingAssets:p,changes:h}},nV=({entry:t})=>{const{locales:e}=t,n=Object.fromEntries(Object.entries(e).map(([o])=>[o,!0])),r=Object.fromEntries(Object.entries(e).map(([o,{slug:s}])=>[o,s])),i=Object.fromEntries(Object.entries(e).map(([o,{content:s}])=>[o,s]));return{createdAt:Date.now(),isNew:!1,canPreview:!0,originalEntry:t,originalLocales:n,currentLocales:structuredClone(n),originalSlugs:r,currentSlugs:structuredClone(r),originalValues:i,currentValues:structuredClone(i),files:{},validities:{},expanderStates:{}}},bA=async({draftProps:t,indexFile:e,savingEntries:n,changes:r})=>{const{collection:i,collectionFile:o}=t,{fields:s=[]}=o??i,a={...t,fields:e?.fields??s},{savingEntry:c,changes:u}=await vA({draft:a,slugs:dA({draft:a})});n.push(c),r.push(...u)},rV=async({entry:t,savingEntries:e,changes:n})=>{const r=nV({entry:t});await Promise.all(Xo(t).map(async i=>{const o=i.name,s=_o(i,t),a=s?ii(i):void 0,c=Ds(i,t),u={indexFile:a,savingEntries:e,changes:n},d={...r,collection:i,collectionName:o,isIndexFile:s};c.length?await Promise.all(c.map(f=>bA({...u,draftProps:{...d,collectionFile:f,fileName:f.name}}))):await bA({...u,draftProps:d})}))},iV=async({_globalAssetFolder:t,newPath:e,asset:n,savingEntries:r,changes:i})=>{const o=Mu(n)??n.blobURL,s=o?await Uv(o):[];if(!o||!s.length)return;const{publicPath:a}=nh(n.path).find(({collectionName:u})=>u!==void 0)??t,c=await Uv(o,{entries:structuredClone(s),newURL:e.replace(n.folder.internalPath??"",a??"")});c.length&&await Promise.all(c.map(async u=>rV({entry:u,savingEntries:r,changes:i})))},oV=({action:t,movedAssets:e})=>{const n=se(Dn),r=se(ko)?.path,i=e.find(a=>a.asset.path===r),o=se(Ms)?.path,s=e.find(a=>a.asset.path===o);i&&ko.set(n.find(a=>a.path===i.path)),s&&Ms.set(n.find(a=>a.path===s.path)),ea.set({...hl,moved:t==="move",renamed:t==="rename",count:e.length})},sV=async(t,e)=>{const n=se(ka),r=[],i=[],o=[];await Promise.all(e.map(async({asset:s,path:a})=>{const c=a,u=dn(c).basename;o.push({...s,path:c,name:u}),r.push({action:"move",path:c,previousPath:s.path,previousSha:s.sha,data:new File([s.file??await Rs(s)],u)}),await iV({_globalAssetFolder:n,newPath:c,asset:s,savingEntries:i,changes:r})})),await Kd({changes:r,savingEntries:i,savingAssets:o,options:{commitType:"uploadMedia"}}),oV({action:t,movedAssets:e})};var aV=U('<span role="none"> </span>'),lV=U('<p class="svelte-22gadf"> </p> <div role="none" class="svelte-22gadf"><!> <!></div> <div role="none" class="error svelte-22gadf"><!></div>',1);const cV={hash:"svelte-22gadf",code:"p.svelte-22gadf {margin:0 0 8px;}div.svelte-22gadf {display:flex;align-items:center;gap:4px;}.error.svelte-22gadf {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}"};function uV(t,e){const n=Rn();le(e,!0),ke(t,cV);const r=()=>V(Eh,"$renamingAsset",s),i=()=>V(Js,"$showAssetOverlay",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=ie(!1),u=ie(St({filename:""})),d=ie(""),f=ie(St([])),h=ie(St([]));const p=_(r),g=_(()=>l(u).dirname),m=_(()=>l(u).filename),v=_(()=>l(u).extension),b=_(()=>{if(!l(d).trim())return"empty";if(l(d).includes("/"))return"character";if(l(f).includes(`${l(d)}${l(v)?`.${l(v)}`:""}`))return"duplicate"}),y=_(()=>!!l(b)),w=async()=>{l(p)&&(G(u,dn(l(p).path),!0),G(d,l(m),!0),G(f,Hv(l(g)).map(k=>k.name).filter(k=>k!==l(p).name),!0),await(async k=>{G(h,k.usedEntries,!0)})(await dh(l(p))),G(c,!0))},E=async()=>{if(!l(p))return;const k=l(p).path,S=`${l(g)}/${l(d)}${l(v)?`.${l(v)}`:""}`;await sV("rename",[{asset:l(p),path:S}]),Oo().path===`/assets/${k}`&&await Ht(`/assets/${S}`,{replaceState:!0,notifyChange:!1})};De(()=>{l(p)&&w()}),De(()=>{i()||(G(c,!1),Ge(Eh,void 0))});{let k=_(()=>o()("rename_x",{values:{name:l(p)?.name}})),S=_(()=>o()("rename")),C=_(()=>l(d)===l(m)||l(y));Di(t,{get title(){return l(k)},get okLabel(){return l(S)},get okDisabled(){return l(C)},onOk:()=>{E()},onClose:()=>{Ge(Eh,void 0)},get open(){return l(c)},set open(x){G(c,x,!0)},children:(x,T)=>{var A=lV(),P=M(A),L=z(P),I=j(P,2),N=z(I);Cn(N,{flex:!0,get invalid(){return l(y)},get"aria-errormessage"(){return`${n}-error`},get value(){return l(d)},set value(O){G(d,O,!0)}});var D=j(N,2);{var B=O=>{var F=aV(),K=z(F);Z(()=>te(K,`.${l(v)??""}`)),$(O,F)};q(D,O=>{l(v)&&O(B)})}var H=j(I,2),W=z(H);{var Y=O=>{var F=Ie();Z(K=>te(F,K),[()=>o()(`enter_new_name_for_asset_error.${l(b)}`)]),$(O,F)};q(W,O=>{l(y)&&O(Y)})}Z(O=>{te(L,O),Ee(H,"id",`${n}-error`)},[()=>o()(l(h).length===0?"enter_new_name_for_asset":l(h).length===1?"enter_new_name_for_asset_with_one_entry":"enter_new_name_for_asset_with_many_entries",{values:{count:l(h).length}})]),$(x,A)},$$slots:{default:!0}})}ce(),a()}var dV=U('<div role="none" class="label svelte-17zk54k"><!></div>'),fV=U("<!> <!> <!>",1);const hV={hash:"svelte-17zk54k",code:".label.svelte-17zk54k {word-break:break-all;}"};function pV(t,e){le(e,!0),ke(t,hV);const n=()=>V(fl,"$listedAssets",a),r=()=>V(ko,"$focusedAsset",a),i=()=>V(ln,"$isSmallScreen",a),o=()=>V(Io,"$isMediumScreen",a),s=()=>V(Ku,"$selectedAssets",a),[a,c]=me(),u=_(()=>e.asset.name),d=_(()=>e.asset.kind),f=h=>{Ku.update(p=>{const g=p.indexOf(e.asset);return h&&g===-1&&p.push(e.asset),!h&&g>-1&&p.splice(g,1),p})};{let h=_(()=>n().indexOf(e.asset));sd(t,{get"aria-rowindex"(){return l(h)},onChange:p=>{f(p.detail.selected)},onfocus:()=>{Ge(ko,e.asset)},onclick:()=>{(i()||o())&&r()&&Kv(r())&&Ht(`/assets/${r().path}`,{transitionType:"forwards"})},ondblclick:()=>{r()&&Kv(r())&&Ht(`/assets/${r().path}`,{transitionType:"forwards"})},children:(p,g)=>{var m=fV(),v=M(m);{var b=k=>{_i(k,{class:"checkbox",children:(S,C)=>{{let x=_(()=>s().includes(e.asset));od(S,{role:"none",tabindex:"-1",get checked(){return l(x)},onChange:({detail:{checked:T}})=>{f(T)}})}},$$slots:{default:!0}})};q(v,k=>{i()||o()||k(b)})}var y=j(v,2);_i(y,{class:"image",children:(k,S)=>{{let C=_(()=>e.viewType==="list"?"icon":"tile"),x=_(()=>l(d)==="image");Ro(k,{get kind(){return l(d)},get asset(){return e.asset},get variant(){return l(C)},get cover(){return i()},get checkerboard(){return l(x)}})}},$$slots:{default:!0}});var w=j(y,2);{var E=k=>{_i(k,{class:"title",children:(S,C)=>{var x=dV(),T=z(x);xr(T,{lines:2,children:(A,P)=>{var L=Ie();Z(()=>te(L,l(u))),$(A,L)},$$slots:{default:!0}}),$(S,x)},$$slots:{default:!0}})};q(w,k=>{(!i()||e.viewType==="list")&&k(E)})}$(p,m)},$$slots:{default:!0}})}ce(),c()}function Ty(t,e){let n=R(e,"loading",3,"lazy"),r=R(e,"asset",3,void 0),i=R(e,"src",3,void 0),o=R(e,"variant",3,void 0),s=R(e,"blurBackground",3,!1),a=R(e,"cover",3,!1),c=R(e,"checkerboard",3,!1),u=R(e,"alt",3,""),d=rt(e,["$$slots","$$events","$$legacy","loading","asset","src","variant","blurBackground","cover","checkerboard","alt"]);Ro(t,en({kind:"image",get loading(){return n()},get asset(){return r()},get src(){return i()},get variant(){return o()},get blurBackground(){return s()},get cover(){return a()},get checkerboard(){return c()},get alt(){return u()}},()=>d))}var gV=U('<span role="none" class="image svelte-lbhi1w"><!></span>'),mV=U('<div role="listitem" class="file svelte-lbhi1w"><!> <div role="none" class="info svelte-lbhi1w"><div role="none" class="name"><!></div> <div role="none" class="meta svelte-lbhi1w"><!> <!></div></div> <!></div>'),vV=U('<div role="list" class="files svelte-lbhi1w"></div>');const bV={hash:"svelte-lbhi1w",code:".files.svelte-lbhi1w {display:flex;flex-direction:column;gap:16px;margin:0 8px;}.file.svelte-lbhi1w {display:flex;align-items:center;gap:16px;overflow:hidden;}.file.svelte-lbhi1w .preview {flex:none;}.file.svelte-lbhi1w .image:where(.svelte-lbhi1w) {flex:none;display:flex;justify-content:center;align-items:center;width:40px;height:40px;aspect-ratio:1/1;object-fit:cover;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-tertiary-background-color);}.file.svelte-lbhi1w .info:where(.svelte-lbhi1w) {flex:auto;display:flex;flex-direction:column;gap:4px;overflow:hidden;text-align:start;}.file.svelte-lbhi1w .info:where(.svelte-lbhi1w) .meta:where(.svelte-lbhi1w) {font-size:var(--sui-font-size-small);color:var(--sui-secondary-foreground-color);}"};function Cy(t,e){le(e,!0),ke(t,bV);const n=()=>V(zt,"$appLocale",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"files",27,()=>St([])),a=R(e,"transformedFileMap",3,void 0),c=R(e,"removable",3,!0);var u=vV();it(u,21,s,lr,(d,f,h)=>{var p=X(),g=M(p);Xt(g,Lt,null,m=>{const v=_(()=>{const{name:N,type:D,size:B}=l(f);return{name:N,type:D,size:B}}),b=_(()=>a()?.get(l(f)));var y=mV(),w=z(y);{var E=N=>{{let D=_(()=>URL.createObjectURL(l(f)));Ty(N,{get src(){return l(D)},variant:"icon",checkerboard:!0})}},k=N=>{var D=gV(),B=z(D);Je(B,{name:"draft"}),$(N,D)};q(w,N=>{vo.includes(l(v).type)?N(E):N(k,!1)})}var S=j(w,2),C=z(S),x=z(C);xr(x,{children:(N,D)=>{var B=Ie();Z(H=>te(B,H),[()=>l(v).name.normalize()]),$(N,B)},$$slots:{default:!0}});var T=j(C,2),A=z(T);Xn(A,n,N=>{var D=Ie();Z(B=>te(D,B),[()=>r()("file_meta",{values:{type:r()(`file_type_labels.${l(f).type.split("/")[1]}`,{default:dn(l(v).name).extension?.toUpperCase()}),size:ah(l(v).size)}})]),$(N,D)});var P=j(A,2);{var L=N=>{var D=Ie();Z(B=>te(D,B),[()=>r()("file_meta_converted_from_x",{values:{type:r()(`file_type_labels.${l(b).type.split("/")[1]}`,{default:dn(l(b).name).extension?.toUpperCase()})}})]),$(N,D)};q(P,N=>{l(b)&&l(b).type!==l(f).type&&N(L)})}var I=j(S,2);{let N=_(()=>r()("remove")),D=_(()=>!c()||s().length===1);Ze(I,{variant:"ghost",iconic:!0,get"aria-label"(){return l(N)},get hidden(){return l(D)},onclick:B=>{B.stopPropagation(),s().splice(h,1)},children:(B,H)=>{Je(B,{name:"close"})},$$slots:{default:!0}})}$(m,y)}),$(d,p)}),$(t,u),ce(),o()}var _V=U('<div role="alert"><!></div>'),yV=U('<div role="none"><!></div> <div role="none"><!></div> <!>',1),wV=U('<div role="none" class="content svelte-1hhq62q"><!> <!></div>'),xV=U('<div role="none" class="drop-indicator svelte-1hhq62q"><div role="none" class="svelte-1hhq62q"><!> <span role="none"> </span></div></div>'),kV=U('<div role="none" class="drop-target svelte-1hhq62q"><!> <!></div> <!> <!>',1);const SV={hash:"svelte-1hhq62q",code:".drop-target.svelte-1hhq62q {display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;pointer-events:auto;}.drop-target.svelte-1hhq62q > .group {overflow-y:auto;padding:16px;width:100%;height:100%;}.drop-target.svelte-1hhq62q button:not(:disabled) {pointer-events:auto;}.drop-indicator.svelte-1hhq62q {position:absolute;inset:0;z-index:10;border-radius:var(--sui-control-large-border-radius);background-color:hsl(var(--sui-background-color-4-hsl)/80%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;pointer-events:none;}.drop-indicator.svelte-1hhq62q div:where(.svelte-1hhq62q) {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:4px dashed var(--sui-primary-accent-color);border-radius:var(--sui-control-large-border-radius);font-size:var(--sui-font-size-x-large);}.drop-indicator.svelte-1hhq62q div:where(.svelte-1hhq62q) .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.content.svelte-1hhq62q {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow:auto;height:100%;min-height:320px;text-align:center;}"};function Wd(t,e){le(e,!0),ke(t,SV);const n=()=>V(ue,"$_",o),r=()=>V(zt,"$appLocale",o),i=()=>V(Wc,"$hasMouse",o),[o,s]=me(),a=F=>{var K=X(),J=M(K);{var Q=re=>{var ee=Ie();Z(ne=>te(ee,ne),[()=>n()("dropped_image_type_mismatch")]),$(re,ee)},oe=re=>{var ee=Ie();Z(ne=>te(ee,ne),[()=>n()("dropped_file_type_mismatch",{values:{type:Ql(r(),{type:"disjunction"}).format(c().split(/,\s*/))}})]),$(re,ee)};q(J,re=>{c()===vo.join(",")?re(Q):re(oe,!1)})}$(F,K)};let c=R(e,"accept",3,void 0),u=R(e,"disabled",3,!1),d=R(e,"multiple",3,!1),f=R(e,"showUploadButton",3,!1),h=R(e,"showFilePreview",3,!1),p=R(e,"onDrop",3,void 0),g=R(e,"children",3,void 0),m=ie(void 0),v=ie(!1),b=ie(!1),y=ie(!1),w=ie(void 0),E=ie(St([]));const k=_(()=>f()||h()&&l(E).length),S=()=>{l(w)?.open()},C=()=>{l(E).length&&(G(E,[],!0),p()?.({files:l(E)}))},x=F=>{G(E,d()?F:F.slice(0,1),!0),p()?.({files:l(E)})};Ft(()=>{l(m)?.addEventListener("Select",F=>{p()?.({files:F.detail.files})})}),De(()=>{!l(k)&&l(b)&&G(y,!0)});var T={openFilePicker:S,reset:C},A=kV(),P=M(A),L=z(P);{var I=F=>{var K=wV(),J=z(K);{var Q=ee=>{var ne=yV(),ae=M(ne),fe=z(ae);{var be=$e=>{var Ce=Ie();Z(Re=>te(Ce,Re),[()=>n()(d()?"drop_files_or_click_to_browse":"drop_file_or_click_to_browse")]),$($e,Ce)},pe=$e=>{var Ce=Ie();Z(Re=>te(Ce,Re),[()=>n()("tap_to_browse")]),$($e,Ce)};q(fe,$e=>{i()?$e(be):$e(pe,!1)})}var he=j(ae,2),ge=z(he);{const $e=Re=>{Je(Re,{name:"cloud_upload"})};let Ce=_(()=>n()(d()?"choose_files":"choose_file"));Ze(ge,{variant:"primary",get label(){return l(Ce)},get disabled(){return u()},onclick:()=>{S()},startIcon:$e,$$slots:{startIcon:!0}})}var ve=j(he,2);{var _e=$e=>{var Ce=_V(),Re=z(Ce);a(Re),$($e,Ce)};q(ve,$e=>{l(b)&&$e(_e)})}$(ee,ne)};q(J,ee=>{f()&&ee(Q)})}var oe=j(J,2);{var re=ee=>{Cy(ee,{get files(){return l(E)},set files(ne){G(E,ne,!0)}})};q(oe,ee=>{h()&&l(E).length&&ee(re)})}$(F,K)},N=F=>{var K=X(),J=M(K);Me(J,()=>g()??Be),$(F,K)};q(L,F=>{l(k)?F(I):F(N,!1)})}var D=j(L,2);{var B=F=>{var K=xV(),J=z(K),Q=z(J);Je(Q,{name:"download"});var oe=j(Q,2),re=z(oe);Z(ee=>te(re,ee),[()=>n()(d()?"drop_files_here":"drop_file_here")]),$(F,K)};q(D,F=>{l(v)&&F(B)})}vt(P,F=>G(m,F),()=>l(m));var H=j(P,2);vt(bb(H,{get accept(){return c()},get multiple(){return d()},onSelect:({files:F})=>{x(F)}}),F=>G(w,F,!0),()=>l(w));var W=j(H,2);{var Y=F=>{{let K=_(()=>n()("unsupported_file_type"));zh(F,{get title(){return l(K)},get open(){return l(y)},set open(J){G(y,J,!0)},children:(J,Q)=>{a(J)},$$slots:{default:!0}})}};q(W,F=>{l(k)||F(Y)})}jr("dragover",P,F=>{F.preventDefault(),!(u()||!F.dataTransfer)&&(F.dataTransfer.dropEffect="copy",G(v,!0),G(b,!1))}),jr("dragleave",P,F=>{F.preventDefault(),!u()&&G(v,!1)}),jr("dragend",P,F=>{F.preventDefault(),!u()&&G(v,!1)}),jr("drop",P,async F=>{if(F.preventDefault(),u()||!F.dataTransfer)return;G(v,!1);const K=await JN(F.dataTransfer,{accept:c()});K.length?x(K):G(b,!0)}),$(t,A);var O=ce(T);return s(),O}function _A(t,e){le(e,!0);const n=()=>V(th,"$targetAssetFolder",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"label",3,void 0);const a=_(()=>!Wm(n()));{const c=f=>{Je(f,{name:"cloud_upload"})};let u=_(()=>!s()),d=_(()=>r()("upload_assets"));Ze(t,{variant:"primary",get iconic(){return l(u)},get disabled(){return l(a)},get label(){return s()},get"aria-label"(){return l(d)},onclick:()=>{Ge(Xs,!0)},startIcon:c,$$slots:{startIcon:!0}})}ce(),o()}var EV=U("<div><!></div>");const $V={hash:"svelte-1sdsl2g",code:".list-container.svelte-1sdsl2g {--icon-size: 36px;flex:auto;position:relative;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;}"};function Ay(t,e){ke(t,$V);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","children"]);var i=EV();gt(i,()=>({role:"group",class:"list-container",...r}),void 0,void 0,"svelte-1sdsl2g");var o=z(i);Me(o,()=>n()??Be),$(t,i)}var TV=U('<div role="none"><!></div>');const CV={hash:"svelte-1sfbolp",code:`:is(.grid-view.svelte-1sfbolp, .list-view.svelte-1sfbolp) {display:block;padding:0 16px 16px;height:100%;overflow-y:auto;}
520
520
 
521
521
  @media (width < 768px) {.grid-view.svelte-1sfbolp {padding:4px;}
522
522
  }.grid-view.svelte-1sfbolp .row-group-caption {display:block;grid-column:1/-1;}.grid-view.svelte-1sfbolp .row-group-caption th {display:block;}.grid-view.svelte-1sfbolp .row-group:not(:first-child) .row-group-caption {margin-top:16px;}.grid-view.svelte-1sfbolp .grid-body {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 200px), 1fr));gap:16px;border-width:0;}
@@ -530,14 +530,14 @@ ${a}
530
530
  @media (width < 768px) {.list-view.svelte-1sfbolp [role=grid] .grid-cell {border-width:0 !important;height:64px;}
531
531
  }.list-view.svelte-1sfbolp [role=grid] .grid-cell.checkbox {padding-inline-start:8px !important;width:44px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell.title {width:100%; /* flex: auto */color:var(--sui-primary-foreground-color);}.list-view.svelte-1sfbolp [role=grid] .grid-cell:first-child {padding-inline-start:16px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell .label {overflow:hidden;}
532
532
  @media (width < 768px) {.list-view.svelte-1sfbolp [role=grid] .grid-cell .label {white-space:normal;line-height:var(--sui-line-height-compact);}
533
- }.list-view.svelte-1sfbolp [role=grid] .grid-cell.image {width:48px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell.image:empty::before {display:block;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);content:"";}`};function Yd(t,e){le(e,!0),ke(t,TV);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","viewType","children"]);var i=$V(),o=z(i);Xt(o,Lt,null,s=>{AB(s,en({multiple:!0,clickToSelect:!1},()=>r,{children:(a,c)=>{var u=X(),d=M(u);Me(d,()=>n()??Be),$(a,u)},$$slots:{default:!0}}))}),Z(()=>Zt(i,1,`${e.viewType??""}-view`,"svelte-1sfbolp")),$(t,i),ce()}var CV=U('<span role="none"> </span> <!>',1);function AV(t,e){le(e,!0);const n=()=>V(Zs,"$currentView",a),r=()=>V(th,"$targetAssetFolder",a),i=()=>V(ue,"$_",a),o=()=>V(by,"$assetGroups",a),s=()=>V(fl,"$listedAssets",a),[a,c]=me(),u=_(()=>n().type),d=_(r),f=_(()=>!Wm(l(d)));{let h=_(()=>i()("asset_list"));Ay(t,{get"aria-label"(){return l(h)},children:(p,g)=>{Wd(p,{get disabled(){return l(f)},multiple:!0,onDrop:({files:m})=>{Ge(Ji,{folder:l(d),files:m})},children:(m,v)=>{var b=X(),y=M(b);{var w=k=>{{let S=_(()=>i()("assets"));Yd(k,{id:"asset-list",get viewType(){return l(u)},get"aria-label"(){return l(S)},get"aria-rowcount"(){return s().length},children:(C,x)=>{var T=X(),A=M(T);it(A,1,()=>Object.entries(o()),([P,L])=>P,(P,L)=>{var I=_(()=>lo(l(L),2));let N=()=>l(I)[0],D=()=>l(I)[1];var B=X(),H=M(B);Xt(H,Lt,null,W=>{{let Y=_(()=>N()!=="*"?N():void 0);aE(W,{get label(){return l(Y)},children:(O,F)=>{Ma(O,{get items(){return D()},itemKey:"path",renderItem:(J,Q=Be)=>{var oe=X(),re=M(oe);Xn(re,()=>Q().sha,ee=>{var ne=X(),ae=M(ne);Xt(ae,Lt,null,fe=>{hV(fe,{get asset(){return Q()},get viewType(){return l(u)}})}),$(ee,ne)}),$(J,oe)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}}),$(P,B)}),$(C,T)},$$slots:{default:!0}})}},E=k=>{hr(k,{children:(S,C)=>{var x=CV(),T=M(x),A=z(T),P=j(T,2);{var L=I=>{{let N=_(()=>i()("upload_assets"));_A(I,{get label(){return l(N)}})}};q(P,I=>{l(f)||I(L)})}Z(I=>te(A,I),[()=>i()("no_files_found")]),$(S,x)},$$slots:{default:!0}})};q(y,k=>{Object.values(o()).flat(1).length?k(w):k(E,!1)})}$(m,b)},$$slots:{default:!0}})},$$slots:{default:!0}})}ce(),c()}const gl=nt(null),gs=nt("");var PV=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1),LV=U('<div role="none" class="wrapper svelte-lav5fn"><!></div>');const NV={hash:"svelte-lav5fn",code:".wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}"};function Gp(t,e){le(e,!0),ke(t,NV);const n=()=>V(gs,"$searchTerms",o),r=()=>V(gl,"$searchMode",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"onclick",3,void 0);const c=p=>{const g=!!n(),{path:m}=Oo(),v=m.startsWith("/search/");Ge(gs,p),p?Ht(`/search/${p}`,{replaceState:v}):g&&v&&Qs("/collections")};let u=ie(void 0);De(()=>{l(u)&&n()!==l(u)?.value&&(l(u).value=n())});var d=LV(),f=z(d);{var h=p=>{var g=PV(),m=M(g);{let v=_(()=>i()(`search_placeholder_${r()}`));Il(m,()=>({"--sui-textbox-placeholder-text-align":"center"})),vt(Bh(m.lastChild,{keyShortcuts:"Accel+F",get placeholder(){return l(v)},get onclick(){return a()},oninput:({target:b})=>{c(b.value.trim())}}),b=>G(u,b,!0),()=>l(u))}$(p,g)};q(f,p=>{r()&&p(h)})}$(t,d),ce(),s()}var IV=U("<header><h2> </h2></header> <!>",1),OV=U('<span class="count"> </span>'),RV=U('<div role="none" class="primary-sidebar"><!> <!></div>');function DV(t,e){le(e,!0);const n=()=>V(zt,"$appLocale",c),r=()=>V(Is,"$allAssetFolders",c),i=()=>V(ln,"$isSmallScreen",c),o=()=>V(ue,"$_",c),s=()=>V(Gi,"$selectedAssetFolder",c),a=()=>V(Dn,"$allAssets",c),[c,u]=me(),d=_(()=>Intl.NumberFormat(n()??void 0)),f=_(()=>[...r().sort((v,b)=>ak(v.collectionName,v.fileName)-ak(b.collectionName,b.fileName)).sort((v,b)=>WS(v.collectionName)-WS(b.collectionName))]);var h=RV(),p=z(h);{var g=v=>{var b=IV(),y=M(b),w=z(y),E=z(w),k=j(y,2);Gp(k,{onclick:S=>{S.preventDefault(),Ht("/search")}}),Z(S=>te(E,S),[()=>o()("assets")]),$(v,b)};q(p,v=>{i()&&v(g)})}var m=j(p,2);{let v=_(()=>o()("asset_folder_list"));_c(m,{get"aria-label"(){return l(v)},"aria-controls":"assets-container",children:(b,y)=>{{let w=_(()=>o()("asset_location.repository"));Da(b,{get label(){return l(w)},children:(E,k)=>{var S=X(),C=M(S);it(C,17,()=>l(f),x=>[x.collectionName,x.fileName,x.internalPath].join(":"),(x,T)=>{var A=X(),P=M(A);Xt(P,Lt,null,L=>{const I=_(()=>{const{collectionName:W,fileName:Y,internalPath:O,entryRelative:F,hasTemplateTags:K}=l(T);return{collectionName:W,fileName:Y,internalPath:O,entryRelative:F,hasTemplateTags:K}}),N=_(()=>l(I).collectionName?Kr(l(I).collectionName):void 0),D=_(()=>l(N)&&l(I).fileName?sc(l(N),l(I).fileName):void 0),B=_(()=>l(I).entryRelative||l(I).hasTemplateTags),H=_(()=>an(s(),l(T)));{const W=K=>{{let J=_(()=>l(D)?.icon||l(N)?.icon||"folder");Je(K,{get name(){return l(J)}})}},Y=K=>{var J=X(),Q=M(J);Xn(Q,a,oe=>{var re=X(),ee=M(re);Xt(ee,Lt,null,ne=>{const ae=_(()=>(l(I).internalPath!==void 0?bF(l(T)):a()).length);var fe=OV(),be=z(fe);Z((pe,he)=>{Ee(fe,"aria-label",`(${pe??""})`),te(be,he)},[()=>o()(l(ae)>1?"many_assets":l(ae)===1?"one_asset":"no_assets",{values:{count:l(ae)}}),()=>l(d).format(l(ae))]),$(ne,fe)}),$(oe,re)}),$(K,J)};let O=_(()=>i()?!1:l(H)),F=_(()=>n()?qp(l(T)):"");kr(L,{get selected(){return l(O)},get label(){return l(F)},onSelect:()=>{Ht(`/assets/${l(I).internalPath??"-/all"}`,{transitionType:"forwards",state:{folder:l(T)}})},ondragover:K=>{K.preventDefault(),!l(B)&&(l(I).internalPath===void 0||l(H)?K.dataTransfer.dropEffect="none":(K.dataTransfer.dropEffect="move",K.target.classList.add("dragover")))},ondragleave:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},ondragend:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},ondrop:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},startIcon:W,endIcon:Y,$$slots:{startIcon:!0,endIcon:!0}})}}),$(x,A)}),$(E,S)},$$slots:{default:!0}})}},$$slots:{default:!0}})}$(t,h),ce(),u()}function MV(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();{let o=_(()=>!e.asset||!Kv(e.asset)),s=_(()=>n()("preview")),a=_(()=>n()("show_preview"));Ze(t,{variant:"ghost",get disabled(){return l(o)},get label(){return l(s)},get"aria-label"(){return l(a)},onclick:()=>{Ht(`/assets/${e.asset?.path}`,{transitionType:"forwards"})}})}ce(),i()}var FV=U('<span role="none"> </span>'),zV=U("<!> <!> <!> <!> <!>",1),jV=U('<!> <h2 role="none"><!> <!></h2> <!> <!>',1);function BV(t,e){le(e,!0);const n=()=>V(Ku,"$selectedAssets",f),r=()=>V(ko,"$focusedAsset",f),i=()=>V(th,"$targetAssetFolder",f),o=()=>V(ue,"$_",f),s=()=>V(ln,"$isSmallScreen",f),a=()=>V(zt,"$appLocale",f),c=()=>V(Gi,"$selectedAssetFolder",f),u=()=>V(Io,"$isMediumScreen",f),d=()=>V(fl,"$listedAssets",f),[f,h]=me(),p=_(()=>n().length?n():r()?[r()]:[]),g=_(()=>!Wm(i()));{let m=_(()=>o()("folder"));Si(t,{variant:"primary",get"aria-label"(){return l(m)},children:(v,b)=>{var y=jV(),w=M(y);{var E=L=>{{let I=_(()=>o()("back_to_asset_folder_list"));pl(L,{get"aria-label"(){return l(I)},onclick:()=>{Qs("/assets")}})}};q(w,L=>{s()&&L(E)})}var k=j(w,2),S=z(k);Xn(S,a,L=>{var I=Ie();Z(N=>te(I,N),[()=>c()?qp(c()):""]),$(L,I)});var C=j(S,2);{var x=L=>{var I=FV(),N=z(I);Z(()=>te(N,`/${c().internalPath??""}`)),$(L,I)};q(C,L=>{!s()&&c()?.internalPath!==void 0&&L(x)})}var T=j(k,2);{var A=L=>{var I=zV(),N=M(I);MV(N,{get asset(){return r()}});var D=j(N,2);{let Y=_(()=>r()?[r()]:[]);nA(D,{get assets(){return l(Y)}})}var B=j(D,2);iA(B,{get assets(){return l(p)}});var H=j(B,2);{let Y=_(()=>o()(l(p).length===1?"delete_selected_asset":"delete_selected_assets")),O=_(()=>o()(l(p).length===1?"confirm_deleting_selected_asset":l(p).length===d().length?"confirm_deleting_all_assets":"confirm_deleting_selected_assets",{values:{count:l(p).length}}));rA(H,{get assets(){return l(p)},get buttonDescription(){return l(Y)},get dialogDescription(){return l(O)}})}var W=j(H,2);oA(W,{get asset(){return r()}}),$(L,I)};q(T,L=>{s()||u()||L(A)})}var P=j(T,2);nE(P,{children:(L,I)=>{var N=X(),D=M(N);{var B=H=>{{let W=_(()=>s()?void 0:o()("upload"));_A(H,{get label(){return l(W)}})}};q(D,H=>{(!s()||d().length&&!l(g))&&H(B)})}$(L,N)},$$slots:{default:!0}}),$(v,y)},$$slots:{default:!0}})}ce(),h()}var UV=U('<span role="none"> </span>');function qV(t,e){le(e,!0);const n=()=>V(Vd,"$isLargeScreen",s),r=()=>V(Zs,"$currentView",s),i=()=>V(ue,"$_",s),o=()=>V(ko,"$focusedAsset",s),[s,a]=me();var c=X(),u=M(c);{var d=f=>{{let h=_(()=>i()("asset_info"));No(f,{id:"asset-info",class:"secondary-sidebar",get"aria-label"(){return l(h)},children:(p,g)=>{var m=X(),v=M(m);{var b=w=>{aA(w,{get asset(){return o()},showPreview:!0})},y=w=>{hr(w,{children:(E,k)=>{var S=UV(),C=z(S);Z(x=>te(C,x),[()=>i()("select_asset_show_info")]),$(E,S)},$$slots:{default:!0}})};q(v,w=>{o()?w(b):w(y,!1)})}$(p,m)},$$slots:{default:!0}})}};q(u,f=>{n()&&r().showInfo&&f(d)})}$(t,c),ce(),a()}var VV=U("<!> <!>",1);function yA(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"multiple",3,!1),u=R(e,"noneLabel",3,""),d=R(e,"filters",19,()=>[]);{const f=p=>{{let g=_(()=>n()("filtering_options"));ir(p,{get"aria-label"(){return l(g)},get"aria-controls"(){return e["aria-controls"]},children:(m,v)=>{var b=X(),y=M(b);{var w=k=>{var S=X(),C=M(S);it(C,17,d,lr,(x,T)=>{let A=()=>l(T).label,P=()=>l(T).field,L=()=>l(T).pattern;const I=_(()=>(r().filters||[]).findIndex(N=>N.field===P()&&String(N.pattern)===String(L())));{let N=_(()=>l(I)>-1);jh(x,{get label(){return A()},get checked(){return l(N)},onChange:()=>{e.currentView.update(D=>{const B=D.filters?[...D.filters]:[];return l(I)>-1?B.splice(l(I),1):B.push({field:P(),pattern:L()}),{...D,filters:B}})}})}}),$(k,S)},E=k=>{var S=VV(),C=M(S);{let T=_(()=>u()||n()("sort_keys.none")),A=_(()=>!r().filter);ad(C,{get label(){return l(T)},get checked(){return l(A)},onSelect:()=>{e.currentView.update(P=>({...P,filter:void 0}))}})}var x=j(C,2);it(x,17,d,lr,(T,A)=>{let P=()=>l(A).label,L=()=>l(A).field,I=()=>l(A).pattern;{let N=_(()=>r().filter?.field===L()&&String(r().filter.pattern)===String(I()));ad(T,{get label(){return P()},get checked(){return l(N)},onSelect:()=>{e.currentView.update(D=>({...D,filter:{field:L(),pattern:I()}}))}})}}),$(k,S)};q(y,k=>{c()?k(w):k(E,!1)})}$(m,b)},$$slots:{default:!0}})}};let h=_(()=>s()||n()("filter"));Ir(t,{variant:"ghost",get label(){return l(h)},get disabled(){return a()},popupPosition:"bottom-right",popup:f,$$slots:{popup:!0}})}ce(),o()}var HV=U('<span role="none" class="svelte-1sd2xgz"> </span>'),KV=U('<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>');const GV={hash:"svelte-1sd2xgz",code:".wrapper.svelte-1sd2xgz {display:flex;align-items:center;gap:4px;margin-inline:20px;}span.svelte-1sd2xgz {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function wA(t,e){le(e,!0),ke(t,GV);const n=()=>V(e.selectedItems,"$selectedItems",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=_(()=>e.allItems.length),a=_(()=>n().length),c=_(()=>!!l(a)),u=_(()=>l(c)&&l(a)===l(s));var d=KV(),f=z(d);{let g=_(()=>!l(s)),m=_(()=>r()("select_all")),v=_(()=>l(c)&&!l(u)?"mixed":l(c));od(f,{get disabled(){return l(g)},get"aria-label"(){return l(m)},get checked(){return l(v)},onChange:()=>{e.selectedItems.set(l(u)?[]:[...e.allItems])}})}var h=j(f,2);{var p=g=>{var m=HV(),v=z(m);Z(b=>te(v,b),[()=>r()("x_of_x_selected",{values:{total:l(s),selected:l(a)}})]),$(g,m)};q(h,g=>{l(c)&&g(p)})}$(t,d),ce(),o()}function xA(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"sortKeys",19,()=>[]),u=R(e,"collectionName",3,void 0);const d=["ascending","descending"],f=["date","commit_date"];{const h=g=>{{let m=_(()=>n()("sorting_options"));ir(g,{get"aria-label"(){return l(m)},get"aria-controls"(){return e["aria-controls"]},children:(v,b)=>{var y=X(),w=M(y);it(w,17,c,({key:E,label:k})=>E,(E,k)=>{let S=()=>l(k).key,C=()=>l(k).label;var x=X(),T=M(x);it(T,16,()=>d,A=>A,(A,P)=>{{let L=_(()=>n()(f.includes(S())||u()&&fn({collectionName:u(),keyPath:S()})?.widget==="datetime"?`${P}_date`:P,{values:{label:C()}})),I=_(()=>r().sort?.key===S()&&r().sort.order===P);ad(A,{get label(){return l(L)},get checked(){return l(I)},onSelect:()=>{e.currentView.update(N=>({...N,sort:{key:S(),order:P}}))}})}}),$(E,x)}),$(v,y)},$$slots:{default:!0}})}};let p=_(()=>s()||n()("sort"));Ir(t,{variant:"ghost",get label(){return l(p)},get disabled(){return a()},popupPosition:"bottom-right",popup:h,$$slots:{popup:!0}})}ce(),o()}var WV=U("<!> <!>",1),YV=U('<div role="none" class="wrapper svelte-8v3idr"><!></div>');const JV={hash:"svelte-8v3idr",code:".wrapper.svelte-8v3idr {display:contents;}.wrapper.svelte-8v3idr .select-button-group button {border-radius:var(--sui-button-medium-border-radius) !important;}"};function Py(t,e){le(e,!0),ke(t,JV);const n=()=>V(e.currentView,"$currentView",o),r=()=>V(Vd,"$isLargeScreen",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"disabled",3,!1),c=rt(e,["$$slots","$$events","$$legacy","disabled","currentView"]);const u=_(()=>n().type==="grid");var d=YV(),f=z(d);{var h=g=>{{let m=_(()=>i()("switch_view"));Fh(g,en({get disabled(){return a()},get"aria-label"(){return l(m)}},()=>c,{children:(v,b)=>{var y=WV(),w=M(y);{const k=x=>{Je(x,{name:"format_list_bulleted"})};let S=_(()=>!l(u)),C=_(()=>i()("list_view"));id(w,{get disabled(){return a()},get selected(){return l(S)},variant:"ghost",iconic:!0,get"aria-label"(){return l(C)},onSelect:()=>{e.currentView.update(x=>({...x,type:"list"}))},startIcon:k,$$slots:{startIcon:!0}})}var E=j(w,2);{const k=C=>{Je(C,{name:"grid_view"})};let S=_(()=>i()("grid_view"));id(E,{get disabled(){return a()},get selected(){return l(u)},variant:"ghost",iconic:!0,get"aria-label"(){return l(S)},onSelect:()=>{e.currentView.update(C=>({...C,type:"grid"}))},startIcon:k,$$slots:{startIcon:!0}})}$(v,y)},$$slots:{default:!0}}))}},p=g=>{{const m=b=>{{let y=_(()=>l(u)?"format_list_bulleted":"grid_view");Je(b,{get name(){return l(y)}})}};let v=_(()=>i()(l(u)?"switch_to_list_view":"switch_to_grid_view"));Ze(g,{get disabled(){return a()},variant:"ghost",iconic:!0,get"aria-label"(){return l(v)},onclick:()=>{e.currentView.update(b=>({...b,type:l(u)?"list":"grid"}))},startIcon:m,$$slots:{startIcon:!0}})}};q(f,g=>{r()?g(h):g(p,!1)})}$(t,d),ce(),s()}const XV=Qt([Dn,zt],([t],e)=>{const n=["name"];t.every(r=>!!r.commitAuthor)&&n.push("commit_author"),t.every(r=>!!r.commitDate)&&n.push("commit_date"),e(n.map(r=>({key:r,label:se(ue)(`sort_keys.${r}`)})))});var ZV=U("<!> <!>",1),QV=U("<!> <!> <!> <!> <!> <!>",1);function eH(t,e){le(e,!0);const n=()=>V(fl,"$listedAssets",u),r=()=>V(ue,"$_",u),i=()=>V(ln,"$isSmallScreen",u),o=()=>V(Io,"$isMediumScreen",u),s=()=>V(by,"$assetGroups",u),a=()=>V(XV,"$sortKeys",u),c=()=>V(Zs,"$currentView",u),[u,d]=me(),f=_(()=>!!n().length),h=_(()=>n().length>1);{let p=_(()=>r()("asset_list"));Si(t,{variant:"secondary",get"aria-label"(){return l(p)},children:(g,m)=>{var v=QV(),b=M(v);{var y=T=>{{let A=_(()=>Object.values(s()).flat(1));wA(T,{get allItems(){return l(A)},get selectedItems(){return Ku}})}};q(b,T=>{i()||o()||T(y)})}var w=j(b,2);Wr(w,{flex:!0});var E=j(w,2);{let T=_(()=>!l(h));xA(E,{get disabled(){return l(T)},get currentView(){return Zs},get sortKeys(){return a()},"aria-controls":"asset-list"})}var k=j(E,2);{let T=_(()=>r()("type")),A=_(()=>!l(h)),P=_(()=>r()("all")),L=_(()=>_F.map(I=>({label:r()(I),field:"fileType",pattern:I})));yA(k,{get label(){return l(T)},get disabled(){return l(A)},get currentView(){return Zs},get noneLabel(){return l(P)},get filters(){return l(L)},"aria-controls":"asset-list"})}var S=j(k,2);{let T=_(()=>!l(f));Py(S,{get disabled(){return l(T)},get currentView(){return Zs},"aria-controls":"asset-list"})}var C=j(S,2);{var x=T=>{var A=ZV(),P=M(A);Gr(P,{orientation:"vertical"});var L=j(P,2);{const I=W=>{Je(W,{name:"info"})};let N=_(()=>!l(f)),D=_(()=>!!c().showInfo),B=_(()=>!!c().showInfo),H=_(()=>r()(c().showInfo?"hide_info":"show_info"));Ze(L,{variant:"ghost",iconic:!0,get disabled(){return l(N)},get pressed(){return l(D)},"aria-controls":"asset-info",get"aria-expanded"(){return l(B)},get"aria-label"(){return l(H)},onclick:()=>{Zs.update(W=>({...W,showInfo:!c().showInfo}))},startIcon:I,$$slots:{startIcon:!0}})}$(T,A)};q(C,T=>{i()||o()||T(x)})}$(g,v)},$$slots:{default:!0}})}ce(),d()}var tH=U('<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>');const nH={hash:"svelte-1x2ldab",code:`.wrapper.svelte-1x2ldab {flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-primary-background-color);}.wrapper.svelte-1x2ldab:not(:first-child) {border-start-start-radius:16px;}.wrapper.svelte-1x2ldab .sui.toolbar.primary {justify-content:center;}
533
+ }.list-view.svelte-1sfbolp [role=grid] .grid-cell.image {width:48px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell.image:empty::before {display:block;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);content:"";}`};function Yd(t,e){le(e,!0),ke(t,CV);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","viewType","children"]);var i=TV(),o=z(i);Xt(o,Lt,null,s=>{AB(s,en({multiple:!0,clickToSelect:!1},()=>r,{children:(a,c)=>{var u=X(),d=M(u);Me(d,()=>n()??Be),$(a,u)},$$slots:{default:!0}}))}),Z(()=>Zt(i,1,`${e.viewType??""}-view`,"svelte-1sfbolp")),$(t,i),ce()}var AV=U('<span role="none"> </span> <!>',1);function PV(t,e){le(e,!0);const n=()=>V(Zs,"$currentView",a),r=()=>V(th,"$targetAssetFolder",a),i=()=>V(ue,"$_",a),o=()=>V(by,"$assetGroups",a),s=()=>V(fl,"$listedAssets",a),[a,c]=me(),u=_(()=>n().type),d=_(r),f=_(()=>!Wm(l(d)));{let h=_(()=>i()("asset_list"));Ay(t,{get"aria-label"(){return l(h)},children:(p,g)=>{Wd(p,{get disabled(){return l(f)},multiple:!0,onDrop:({files:m})=>{Ge(Ji,{folder:l(d),files:m})},children:(m,v)=>{var b=X(),y=M(b);{var w=k=>{{let S=_(()=>i()("assets"));Yd(k,{id:"asset-list",get viewType(){return l(u)},get"aria-label"(){return l(S)},get"aria-rowcount"(){return s().length},children:(C,x)=>{var T=X(),A=M(T);it(A,1,()=>Object.entries(o()),([P,L])=>P,(P,L)=>{var I=_(()=>lo(l(L),2));let N=()=>l(I)[0],D=()=>l(I)[1];var B=X(),H=M(B);Xt(H,Lt,null,W=>{{let Y=_(()=>N()!=="*"?N():void 0);aE(W,{get label(){return l(Y)},children:(O,F)=>{Ma(O,{get items(){return D()},itemKey:"path",renderItem:(J,Q=Be)=>{var oe=X(),re=M(oe);Xn(re,()=>Q().sha,ee=>{var ne=X(),ae=M(ne);Xt(ae,Lt,null,fe=>{pV(fe,{get asset(){return Q()},get viewType(){return l(u)}})}),$(ee,ne)}),$(J,oe)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}}),$(P,B)}),$(C,T)},$$slots:{default:!0}})}},E=k=>{hr(k,{children:(S,C)=>{var x=AV(),T=M(x),A=z(T),P=j(T,2);{var L=I=>{{let N=_(()=>i()("upload_assets"));_A(I,{get label(){return l(N)}})}};q(P,I=>{l(f)||I(L)})}Z(I=>te(A,I),[()=>i()("no_files_found")]),$(S,x)},$$slots:{default:!0}})};q(y,k=>{Object.values(o()).flat(1).length?k(w):k(E,!1)})}$(m,b)},$$slots:{default:!0}})},$$slots:{default:!0}})}ce(),c()}const gl=nt(null),gs=nt("");var LV=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1),NV=U('<div role="none" class="wrapper svelte-lav5fn"><!></div>');const IV={hash:"svelte-lav5fn",code:".wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}"};function Gp(t,e){le(e,!0),ke(t,IV);const n=()=>V(gs,"$searchTerms",o),r=()=>V(gl,"$searchMode",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"onclick",3,void 0);const c=p=>{const g=!!n(),{path:m}=Oo(),v=m.startsWith("/search/");Ge(gs,p),p?Ht(`/search/${p}`,{replaceState:v}):g&&v&&Qs("/collections")};let u=ie(void 0);De(()=>{l(u)&&n()!==l(u)?.value&&(l(u).value=n())});var d=NV(),f=z(d);{var h=p=>{var g=LV(),m=M(g);{let v=_(()=>i()(`search_placeholder_${r()}`));Il(m,()=>({"--sui-textbox-placeholder-text-align":"center"})),vt(Bh(m.lastChild,{keyShortcuts:"Accel+F",get placeholder(){return l(v)},get onclick(){return a()},oninput:({target:b})=>{c(b.value.trim())}}),b=>G(u,b,!0),()=>l(u))}$(p,g)};q(f,p=>{r()&&p(h)})}$(t,d),ce(),s()}var OV=U("<header><h2> </h2></header> <!>",1),RV=U('<span class="count"> </span>'),DV=U('<div role="none" class="primary-sidebar"><!> <!></div>');function MV(t,e){le(e,!0);const n=()=>V(zt,"$appLocale",c),r=()=>V(Is,"$allAssetFolders",c),i=()=>V(ln,"$isSmallScreen",c),o=()=>V(ue,"$_",c),s=()=>V(Gi,"$selectedAssetFolder",c),a=()=>V(Dn,"$allAssets",c),[c,u]=me(),d=_(()=>Intl.NumberFormat(n()??void 0)),f=_(()=>[...r().sort((v,b)=>ak(v.collectionName,v.fileName)-ak(b.collectionName,b.fileName)).sort((v,b)=>WS(v.collectionName)-WS(b.collectionName))]);var h=DV(),p=z(h);{var g=v=>{var b=OV(),y=M(b),w=z(y),E=z(w),k=j(y,2);Gp(k,{onclick:S=>{S.preventDefault(),Ht("/search")}}),Z(S=>te(E,S),[()=>o()("assets")]),$(v,b)};q(p,v=>{i()&&v(g)})}var m=j(p,2);{let v=_(()=>o()("asset_folder_list"));_c(m,{get"aria-label"(){return l(v)},"aria-controls":"assets-container",children:(b,y)=>{{let w=_(()=>o()("asset_location.repository"));Da(b,{get label(){return l(w)},children:(E,k)=>{var S=X(),C=M(S);it(C,17,()=>l(f),x=>[x.collectionName,x.fileName,x.internalPath].join(":"),(x,T)=>{var A=X(),P=M(A);Xt(P,Lt,null,L=>{const I=_(()=>{const{collectionName:W,fileName:Y,internalPath:O,entryRelative:F,hasTemplateTags:K}=l(T);return{collectionName:W,fileName:Y,internalPath:O,entryRelative:F,hasTemplateTags:K}}),N=_(()=>l(I).collectionName?Kr(l(I).collectionName):void 0),D=_(()=>l(N)&&l(I).fileName?sc(l(N),l(I).fileName):void 0),B=_(()=>l(I).entryRelative||l(I).hasTemplateTags),H=_(()=>an(s(),l(T)));{const W=K=>{{let J=_(()=>l(D)?.icon||l(N)?.icon||"folder");Je(K,{get name(){return l(J)}})}},Y=K=>{var J=X(),Q=M(J);Xn(Q,a,oe=>{var re=X(),ee=M(re);Xt(ee,Lt,null,ne=>{const ae=_(()=>(l(I).internalPath!==void 0?bF(l(T)):a()).length);var fe=RV(),be=z(fe);Z((pe,he)=>{Ee(fe,"aria-label",`(${pe??""})`),te(be,he)},[()=>o()(l(ae)>1?"many_assets":l(ae)===1?"one_asset":"no_assets",{values:{count:l(ae)}}),()=>l(d).format(l(ae))]),$(ne,fe)}),$(oe,re)}),$(K,J)};let O=_(()=>i()?!1:l(H)),F=_(()=>n()?qp(l(T)):"");kr(L,{get selected(){return l(O)},get label(){return l(F)},onSelect:()=>{Ht(`/assets/${l(I).internalPath??"-/all"}`,{transitionType:"forwards",state:{folder:l(T)}})},ondragover:K=>{K.preventDefault(),!l(B)&&(l(I).internalPath===void 0||l(H)?K.dataTransfer.dropEffect="none":(K.dataTransfer.dropEffect="move",K.target.classList.add("dragover")))},ondragleave:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},ondragend:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},ondrop:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},startIcon:W,endIcon:Y,$$slots:{startIcon:!0,endIcon:!0}})}}),$(x,A)}),$(E,S)},$$slots:{default:!0}})}},$$slots:{default:!0}})}$(t,h),ce(),u()}function FV(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();{let o=_(()=>!e.asset||!Kv(e.asset)),s=_(()=>n()("preview")),a=_(()=>n()("show_preview"));Ze(t,{variant:"ghost",get disabled(){return l(o)},get label(){return l(s)},get"aria-label"(){return l(a)},onclick:()=>{Ht(`/assets/${e.asset?.path}`,{transitionType:"forwards"})}})}ce(),i()}var zV=U('<span role="none"> </span>'),jV=U("<!> <!> <!> <!> <!>",1),BV=U('<!> <h2 role="none"><!> <!></h2> <!> <!>',1);function UV(t,e){le(e,!0);const n=()=>V(Ku,"$selectedAssets",f),r=()=>V(ko,"$focusedAsset",f),i=()=>V(th,"$targetAssetFolder",f),o=()=>V(ue,"$_",f),s=()=>V(ln,"$isSmallScreen",f),a=()=>V(zt,"$appLocale",f),c=()=>V(Gi,"$selectedAssetFolder",f),u=()=>V(Io,"$isMediumScreen",f),d=()=>V(fl,"$listedAssets",f),[f,h]=me(),p=_(()=>n().length?n():r()?[r()]:[]),g=_(()=>!Wm(i()));{let m=_(()=>o()("folder"));Si(t,{variant:"primary",get"aria-label"(){return l(m)},children:(v,b)=>{var y=BV(),w=M(y);{var E=L=>{{let I=_(()=>o()("back_to_asset_folder_list"));pl(L,{get"aria-label"(){return l(I)},onclick:()=>{Qs("/assets")}})}};q(w,L=>{s()&&L(E)})}var k=j(w,2),S=z(k);Xn(S,a,L=>{var I=Ie();Z(N=>te(I,N),[()=>c()?qp(c()):""]),$(L,I)});var C=j(S,2);{var x=L=>{var I=zV(),N=z(I);Z(()=>te(N,`/${c().internalPath??""}`)),$(L,I)};q(C,L=>{!s()&&c()?.internalPath!==void 0&&L(x)})}var T=j(k,2);{var A=L=>{var I=jV(),N=M(I);FV(N,{get asset(){return r()}});var D=j(N,2);{let Y=_(()=>r()?[r()]:[]);nA(D,{get assets(){return l(Y)}})}var B=j(D,2);iA(B,{get assets(){return l(p)}});var H=j(B,2);{let Y=_(()=>o()(l(p).length===1?"delete_selected_asset":"delete_selected_assets")),O=_(()=>o()(l(p).length===1?"confirm_deleting_selected_asset":l(p).length===d().length?"confirm_deleting_all_assets":"confirm_deleting_selected_assets",{values:{count:l(p).length}}));rA(H,{get assets(){return l(p)},get buttonDescription(){return l(Y)},get dialogDescription(){return l(O)}})}var W=j(H,2);oA(W,{get asset(){return r()}}),$(L,I)};q(T,L=>{s()||u()||L(A)})}var P=j(T,2);nE(P,{children:(L,I)=>{var N=X(),D=M(N);{var B=H=>{{let W=_(()=>s()?void 0:o()("upload"));_A(H,{get label(){return l(W)}})}};q(D,H=>{(!s()||d().length&&!l(g))&&H(B)})}$(L,N)},$$slots:{default:!0}}),$(v,y)},$$slots:{default:!0}})}ce(),h()}var qV=U('<span role="none"> </span>');function VV(t,e){le(e,!0);const n=()=>V(Vd,"$isLargeScreen",s),r=()=>V(Zs,"$currentView",s),i=()=>V(ue,"$_",s),o=()=>V(ko,"$focusedAsset",s),[s,a]=me();var c=X(),u=M(c);{var d=f=>{{let h=_(()=>i()("asset_info"));No(f,{id:"asset-info",class:"secondary-sidebar",get"aria-label"(){return l(h)},children:(p,g)=>{var m=X(),v=M(m);{var b=w=>{aA(w,{get asset(){return o()},showPreview:!0})},y=w=>{hr(w,{children:(E,k)=>{var S=qV(),C=z(S);Z(x=>te(C,x),[()=>i()("select_asset_show_info")]),$(E,S)},$$slots:{default:!0}})};q(v,w=>{o()?w(b):w(y,!1)})}$(p,m)},$$slots:{default:!0}})}};q(u,f=>{n()&&r().showInfo&&f(d)})}$(t,c),ce(),a()}var HV=U("<!> <!>",1);function yA(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"multiple",3,!1),u=R(e,"noneLabel",3,""),d=R(e,"filters",19,()=>[]);{const f=p=>{{let g=_(()=>n()("filtering_options"));ir(p,{get"aria-label"(){return l(g)},get"aria-controls"(){return e["aria-controls"]},children:(m,v)=>{var b=X(),y=M(b);{var w=k=>{var S=X(),C=M(S);it(C,17,d,lr,(x,T)=>{let A=()=>l(T).label,P=()=>l(T).field,L=()=>l(T).pattern;const I=_(()=>(r().filters||[]).findIndex(N=>N.field===P()&&String(N.pattern)===String(L())));{let N=_(()=>l(I)>-1);jh(x,{get label(){return A()},get checked(){return l(N)},onChange:()=>{e.currentView.update(D=>{const B=D.filters?[...D.filters]:[];return l(I)>-1?B.splice(l(I),1):B.push({field:P(),pattern:L()}),{...D,filters:B}})}})}}),$(k,S)},E=k=>{var S=HV(),C=M(S);{let T=_(()=>u()||n()("sort_keys.none")),A=_(()=>!r().filter);ad(C,{get label(){return l(T)},get checked(){return l(A)},onSelect:()=>{e.currentView.update(P=>({...P,filter:void 0}))}})}var x=j(C,2);it(x,17,d,lr,(T,A)=>{let P=()=>l(A).label,L=()=>l(A).field,I=()=>l(A).pattern;{let N=_(()=>r().filter?.field===L()&&String(r().filter.pattern)===String(I()));ad(T,{get label(){return P()},get checked(){return l(N)},onSelect:()=>{e.currentView.update(D=>({...D,filter:{field:L(),pattern:I()}}))}})}}),$(k,S)};q(y,k=>{c()?k(w):k(E,!1)})}$(m,b)},$$slots:{default:!0}})}};let h=_(()=>s()||n()("filter"));Ir(t,{variant:"ghost",get label(){return l(h)},get disabled(){return a()},popupPosition:"bottom-right",popup:f,$$slots:{popup:!0}})}ce(),o()}var KV=U('<span role="none" class="svelte-1sd2xgz"> </span>'),GV=U('<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>');const WV={hash:"svelte-1sd2xgz",code:".wrapper.svelte-1sd2xgz {display:flex;align-items:center;gap:4px;margin-inline:20px;}span.svelte-1sd2xgz {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function wA(t,e){le(e,!0),ke(t,WV);const n=()=>V(e.selectedItems,"$selectedItems",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=_(()=>e.allItems.length),a=_(()=>n().length),c=_(()=>!!l(a)),u=_(()=>l(c)&&l(a)===l(s));var d=GV(),f=z(d);{let g=_(()=>!l(s)),m=_(()=>r()("select_all")),v=_(()=>l(c)&&!l(u)?"mixed":l(c));od(f,{get disabled(){return l(g)},get"aria-label"(){return l(m)},get checked(){return l(v)},onChange:()=>{e.selectedItems.set(l(u)?[]:[...e.allItems])}})}var h=j(f,2);{var p=g=>{var m=KV(),v=z(m);Z(b=>te(v,b),[()=>r()("x_of_x_selected",{values:{total:l(s),selected:l(a)}})]),$(g,m)};q(h,g=>{l(c)&&g(p)})}$(t,d),ce(),o()}function xA(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"sortKeys",19,()=>[]),u=R(e,"collectionName",3,void 0);const d=["ascending","descending"],f=["date","commit_date"];{const h=g=>{{let m=_(()=>n()("sorting_options"));ir(g,{get"aria-label"(){return l(m)},get"aria-controls"(){return e["aria-controls"]},children:(v,b)=>{var y=X(),w=M(y);it(w,17,c,({key:E,label:k})=>E,(E,k)=>{let S=()=>l(k).key,C=()=>l(k).label;var x=X(),T=M(x);it(T,16,()=>d,A=>A,(A,P)=>{{let L=_(()=>n()(f.includes(S())||u()&&fn({collectionName:u(),keyPath:S()})?.widget==="datetime"?`${P}_date`:P,{values:{label:C()}})),I=_(()=>r().sort?.key===S()&&r().sort.order===P);ad(A,{get label(){return l(L)},get checked(){return l(I)},onSelect:()=>{e.currentView.update(N=>({...N,sort:{key:S(),order:P}}))}})}}),$(E,x)}),$(v,y)},$$slots:{default:!0}})}};let p=_(()=>s()||n()("sort"));Ir(t,{variant:"ghost",get label(){return l(p)},get disabled(){return a()},popupPosition:"bottom-right",popup:h,$$slots:{popup:!0}})}ce(),o()}var YV=U("<!> <!>",1),JV=U('<div role="none" class="wrapper svelte-8v3idr"><!></div>');const XV={hash:"svelte-8v3idr",code:".wrapper.svelte-8v3idr {display:contents;}.wrapper.svelte-8v3idr .select-button-group button {border-radius:var(--sui-button-medium-border-radius) !important;}"};function Py(t,e){le(e,!0),ke(t,XV);const n=()=>V(e.currentView,"$currentView",o),r=()=>V(Vd,"$isLargeScreen",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"disabled",3,!1),c=rt(e,["$$slots","$$events","$$legacy","disabled","currentView"]);const u=_(()=>n().type==="grid");var d=JV(),f=z(d);{var h=g=>{{let m=_(()=>i()("switch_view"));Fh(g,en({get disabled(){return a()},get"aria-label"(){return l(m)}},()=>c,{children:(v,b)=>{var y=YV(),w=M(y);{const k=x=>{Je(x,{name:"format_list_bulleted"})};let S=_(()=>!l(u)),C=_(()=>i()("list_view"));id(w,{get disabled(){return a()},get selected(){return l(S)},variant:"ghost",iconic:!0,get"aria-label"(){return l(C)},onSelect:()=>{e.currentView.update(x=>({...x,type:"list"}))},startIcon:k,$$slots:{startIcon:!0}})}var E=j(w,2);{const k=C=>{Je(C,{name:"grid_view"})};let S=_(()=>i()("grid_view"));id(E,{get disabled(){return a()},get selected(){return l(u)},variant:"ghost",iconic:!0,get"aria-label"(){return l(S)},onSelect:()=>{e.currentView.update(C=>({...C,type:"grid"}))},startIcon:k,$$slots:{startIcon:!0}})}$(v,y)},$$slots:{default:!0}}))}},p=g=>{{const m=b=>{{let y=_(()=>l(u)?"format_list_bulleted":"grid_view");Je(b,{get name(){return l(y)}})}};let v=_(()=>i()(l(u)?"switch_to_list_view":"switch_to_grid_view"));Ze(g,{get disabled(){return a()},variant:"ghost",iconic:!0,get"aria-label"(){return l(v)},onclick:()=>{e.currentView.update(b=>({...b,type:l(u)?"list":"grid"}))},startIcon:m,$$slots:{startIcon:!0}})}};q(f,g=>{r()?g(h):g(p,!1)})}$(t,d),ce(),s()}const ZV=Qt([Dn,zt],([t],e)=>{const n=["name"];t.every(r=>!!r.commitAuthor)&&n.push("commit_author"),t.every(r=>!!r.commitDate)&&n.push("commit_date"),e(n.map(r=>({key:r,label:se(ue)(`sort_keys.${r}`)})))});var QV=U("<!> <!>",1),eH=U("<!> <!> <!> <!> <!> <!>",1);function tH(t,e){le(e,!0);const n=()=>V(fl,"$listedAssets",u),r=()=>V(ue,"$_",u),i=()=>V(ln,"$isSmallScreen",u),o=()=>V(Io,"$isMediumScreen",u),s=()=>V(by,"$assetGroups",u),a=()=>V(ZV,"$sortKeys",u),c=()=>V(Zs,"$currentView",u),[u,d]=me(),f=_(()=>!!n().length),h=_(()=>n().length>1);{let p=_(()=>r()("asset_list"));Si(t,{variant:"secondary",get"aria-label"(){return l(p)},children:(g,m)=>{var v=eH(),b=M(v);{var y=T=>{{let A=_(()=>Object.values(s()).flat(1));wA(T,{get allItems(){return l(A)},get selectedItems(){return Ku}})}};q(b,T=>{i()||o()||T(y)})}var w=j(b,2);Wr(w,{flex:!0});var E=j(w,2);{let T=_(()=>!l(h));xA(E,{get disabled(){return l(T)},get currentView(){return Zs},get sortKeys(){return a()},"aria-controls":"asset-list"})}var k=j(E,2);{let T=_(()=>r()("type")),A=_(()=>!l(h)),P=_(()=>r()("all")),L=_(()=>_F.map(I=>({label:r()(I),field:"fileType",pattern:I})));yA(k,{get label(){return l(T)},get disabled(){return l(A)},get currentView(){return Zs},get noneLabel(){return l(P)},get filters(){return l(L)},"aria-controls":"asset-list"})}var S=j(k,2);{let T=_(()=>!l(f));Py(S,{get disabled(){return l(T)},get currentView(){return Zs},"aria-controls":"asset-list"})}var C=j(S,2);{var x=T=>{var A=QV(),P=M(A);Gr(P,{orientation:"vertical"});var L=j(P,2);{const I=W=>{Je(W,{name:"info"})};let N=_(()=>!l(f)),D=_(()=>!!c().showInfo),B=_(()=>!!c().showInfo),H=_(()=>r()(c().showInfo?"hide_info":"show_info"));Ze(L,{variant:"ghost",iconic:!0,get disabled(){return l(N)},get pressed(){return l(D)},"aria-controls":"asset-info",get"aria-expanded"(){return l(B)},get"aria-label"(){return l(H)},onclick:()=>{Zs.update(W=>({...W,showInfo:!c().showInfo}))},startIcon:I,$$slots:{startIcon:!0}})}$(T,A)};q(C,T=>{i()||o()||T(x)})}$(g,v)},$$slots:{default:!0}})}ce(),d()}var nH=U('<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>');const rH={hash:"svelte-1x2ldab",code:`.wrapper.svelte-1x2ldab {flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-primary-background-color);}.wrapper.svelte-1x2ldab:not(:first-child) {border-start-start-radius:16px;}.wrapper.svelte-1x2ldab .sui.toolbar.primary {justify-content:center;}
534
534
  @media (width < 768px) {.wrapper.svelte-1x2ldab .sui.toolbar.primary {background-color:var(--sui-secondary-background-color);}
535
535
  }.main-inner.svelte-1x2ldab {flex:auto;display:flex;overflow:hidden;}.main-inner.svelte-1x2ldab .main-inner-main:where(.svelte-1x2ldab) {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.main-inner.svelte-1x2ldab .secondary-sidebar {flex:none;overflow:auto;box-sizing:content-box;width:320px;background-color:var(--sui-secondary-background-color);}
536
536
  @media (768px <= width) {.main-inner.svelte-1x2ldab .secondary-sidebar {border-start-start-radius:16px;}
537
- }.main-inner.svelte-1x2ldab .secondary-sidebar [role=listbox] {padding:12px;}`};function Jd(t,e){ke(t,nH);let n=R(e,"primaryToolbar",3,void 0),r=R(e,"secondaryToolbar",3,void 0),i=R(e,"mainContent",3,void 0),o=R(e,"secondarySidebar",3,void 0),s=rt(e,["$$slots","$$events","$$legacy","primaryToolbar","secondaryToolbar","mainContent","secondarySidebar"]);var a=tH();gt(a,()=>({role:"group",class:"wrapper",...s}),void 0,void 0,"svelte-1x2ldab");var c=z(a);Me(c,()=>n()??Be);var u=j(c,2),d=z(u),f=z(d);Me(f,()=>r()??Be);var h=j(f,2);Me(h,()=>i()??Be);var p=j(d,2);Me(p,()=>o()??Be),$(t,a)}var rH=U("<div><!> <!></div>");const iH={hash:"svelte-1kkfo1f",code:`.outer.svelte-1kkfo1f {flex:auto;display:flex;overflow:hidden;}.outer[inert].svelte-1kkfo1f {display:none;}.outer.svelte-1kkfo1f .primary-sidebar {display:flex;flex-direction:column;flex:none;width:240px;overflow-y:auto;}
537
+ }.main-inner.svelte-1x2ldab .secondary-sidebar [role=listbox] {padding:12px;}`};function Jd(t,e){ke(t,rH);let n=R(e,"primaryToolbar",3,void 0),r=R(e,"secondaryToolbar",3,void 0),i=R(e,"mainContent",3,void 0),o=R(e,"secondarySidebar",3,void 0),s=rt(e,["$$slots","$$events","$$legacy","primaryToolbar","secondaryToolbar","mainContent","secondarySidebar"]);var a=nH();gt(a,()=>({role:"group",class:"wrapper",...s}),void 0,void 0,"svelte-1x2ldab");var c=z(a);Me(c,()=>n()??Be);var u=j(c,2),d=z(u),f=z(d);Me(f,()=>r()??Be);var h=j(f,2);Me(h,()=>i()??Be);var p=j(d,2);Me(p,()=>o()??Be),$(t,a)}var iH=U("<div><!> <!></div>");const oH={hash:"svelte-1kkfo1f",code:`.outer.svelte-1kkfo1f {flex:auto;display:flex;overflow:hidden;}.outer[inert].svelte-1kkfo1f {display:none;}.outer.svelte-1kkfo1f .primary-sidebar {display:flex;flex-direction:column;flex:none;width:240px;overflow-y:auto;}
538
538
  @media (width < 768px) {.outer.svelte-1kkfo1f .primary-sidebar {flex:auto;width:auto;background-color:var(--sui-primary-background-color);}
539
- }.outer.svelte-1kkfo1f .primary-sidebar header {display:flex;align-items:center;justify-content:space-between;padding:0 10px;height:var(--sui-primary-toolbar-size);}.outer.svelte-1kkfo1f .primary-sidebar header h2 {padding:0 10px;font-size:var(--sui-font-size-x-large);}.outer.svelte-1kkfo1f .primary-sidebar .sui.search-bar {margin-inline:12px;--sui-textbox-background-color: var(--sui-tertiary-background-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=radiogroup] {width:100%;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] {margin:8px;border-width:0;background-color:transparent;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button {display:flex;justify-content:flex-start;border-radius:var(--sui-control-medium-border-radius);width:100%;text-align:start;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button:not(:first-child) {margin-top:4px;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button:not(:focus) {border-color:transparent;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button span {flex:none;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .label {flex:auto;overflow:hidden;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .icon {transition:color 200ms;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .icon.check {display:none;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .count {padding:2px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);transition:color 200ms;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option][aria-selected=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option][aria-selected=true] .count {color:var(--sui-highlighted-foreground-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option].dragover {color:var(--sui-primary-accent-color-inverted) !important;background-color:var(--sui-primary-accent-color) !important;}.outer.svelte-1kkfo1f .primary-sidebar .sui.divider {margin:8px 0;}`};function ml(t,e){ke(t,iH);const n=()=>V(_y,"$hasOverlay",r),[r,i]=me();let o=R(e,"class",3,""),s=R(e,"primarySidebar",3,void 0),a=R(e,"main",3,void 0),c=rt(e,["$$slots","$$events","$$legacy","class","primarySidebar","main"]);var u=rH();gt(u,()=>({role:"group",id:"page-container",class:`outer ${o()??""}`,inert:n(),...c}),void 0,void 0,"svelte-1kkfo1f");var d=z(u);Me(d,()=>s()??Be);var f=j(d,2);Me(f,()=>a()??Be),$(t,u),i()}var oH=U("<!> <!> <!> <!> <!> <!> <!> <!>",1);function sH(t,e){le(e,!0);const n=()=>V(zt,"$appLocale",f),r=()=>V(Gi,"$selectedAssetFolder",f),i=()=>V(ln,"$isSmallScreen",f),o=()=>V(ue,"$_",f),s=()=>V(Is,"$allAssetFolders",f),a=()=>V(fl,"$listedAssets",f),c=()=>V(Ms,"$overlaidAsset",f),u=()=>V(Dn,"$allAssets",f),d=()=>V(ea,"$assetUpdatesToast",f),[f,h]=me(),p=/^\/assets(?:\/(?<folderPath>.+?)(?:\/(?<fileName>[^/]+\.[A-Za-z0-9]+))?)?$/;let g=ie(!1);const m=_(()=>n()&&r()?qp(r()):""),v=async()=>{const{path:A}=Oo(),P=A.match(p);if(G(g,!1),!P?.groups)return;const{folderPath:L,fileName:I}=P.groups;if(!L){i()?(Ge(Gi,void 0),Ge(ci,o()("viewing_asset_folder_list")),G(g,!0)):Ht("/assets/-/all");return}const N=window.history.state?.folder??s().find(({internalPath:D,collectionName:B})=>L==="-/all"?D===void 0&&B===void 0:D===L);if(N?an(r(),N)||Ge(Gi,N):Ge(Gi,void 0),!I){const D=a().length;await Lt(100),Ge(ci,o()(D>1?"viewing_x_asset_folder_many_assets":D===1?"viewing_x_asset_folder_one_asset":"viewing_x_asset_folder_no_assets",{values:{folder:l(m),count:D}}));return}Ge(Ms,I?u().find(D=>D.path===`${L}/${I}`):void 0),Ge(ci,c()?o()("viewing_x_asset_details",{values:{name:c().name}}):o()("file_not_found")),Ge(Js,!0)};Ft(()=>{v()});var b=oH();jr("hashchange",ua,A=>{xy(A,v,p)});var y=M(b);{const A=I=>{var N=X(),D=M(N);{var B=H=>{DV(H,{})};q(D,H=>{(!i()||l(g))&&H(B)})}$(I,N)},P=I=>{var N=X(),D=M(N);{var B=H=>{{const W=J=>{BV(J,{})},Y=J=>{var Q=X(),oe=M(Q);{var re=ee=>{eH(ee,{})};q(oe,ee=>{a().length&&ee(re)})}$(J,Q)},O=J=>{AV(J,{})},F=J=>{qV(J,{})};let K=_(()=>o()("x_asset_folder",{values:{folder:l(m)}}));Jd(H,{id:"assets-container",get"aria-label"(){return l(K)},primaryToolbar:W,secondaryToolbar:Y,mainContent:O,secondarySidebar:F,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};q(D,H=>{(!i()||!l(g))&&H(B)})}$(I,N)};let L=_(()=>o()("asset_library"));ml(y,{get"aria-label"(){return l(L)},primarySidebar:A,main:P,$$slots:{primarySidebar:!0,main:!0}})}var w=j(y,2);M7(w,{});var E=j(w,2);U7(E,{});var k=j(E,2);cV(k,{});var S=j(k,2);Qn(S,{get show(){return d().saved},set show(A){_t(ea,Se(d).saved=A,Se(d))},children:(A,P)=>{Mn(A,{status:"success",children:(L,I)=>{var N=Ie();Z(D=>te(N,D),[()=>o()(d().published?d().count===1?"asset_saved_and_published":"assets_saved_and_published":d().count===1?"asset_saved":"assets_saved",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var C=j(S,2);Qn(C,{get show(){return d().moved},set show(A){_t(ea,Se(d).moved=A,Se(d))},children:(A,P)=>{Mn(A,{status:"success",children:(L,I)=>{var N=Ie();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_moved":"assets_moved",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var x=j(C,2);Qn(x,{get show(){return d().renamed},set show(A){_t(ea,Se(d).renamed=A,Se(d))},children:(A,P)=>{Mn(A,{status:"success",children:(L,I)=>{var N=Ie();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_renamed":"assets_renamed",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var T=j(x,2);Qn(T,{get show(){return d().deleted},set show(A){_t(ea,Se(d).deleted=A,Se(d))},children:(A,P)=>{Mn(A,{status:"success",children:(L,I)=>{var N=Ie();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_deleted":"assets_deleted",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,b),ce(),h()}var aH=U('<div role="status"> </div>'),lH=U('<div role="group" class="section uploading svelte-96nj3d"><div role="none"><!></div> <!></div>'),cH=U('<div role="group" class="section oversized svelte-96nj3d"><!> <!></div>'),uH=U("<!> <!> <!>",1);const dH={hash:"svelte-96nj3d",code:".section.svelte-96nj3d {display:flex;flex-direction:column;gap:16px;}.section.svelte-96nj3d:not(:first-child) {margin-top:16px;}.section.svelte-96nj3d > * {flex:none;}.section.oversized.svelte-96nj3d .files {opacity:0.5;}"};function fH(t,e){le(e,!0),ke(t,dH);const n=()=>V(Ji,"$uploadingAssets",a),r=()=>V(gF,"$processedAssets",a),i=()=>V(Js,"$showAssetOverlay",a),o=()=>V(g6,"$showUploadAssetsConfirmDialog",a),s=()=>V(ue,"$_",a),[a,c]=me();let u=ie(St([]));const d=_(()=>n().files),f=_(()=>n().folder),h=_(()=>n().originalAsset),p=_(()=>r().processing),g=_(()=>r().undersizedFiles),m=_(()=>r().oversizedFiles),v=_(()=>r().transformedFileMap),b=_(()=>Hu().config),y=_(()=>l(b).max_file_size);De(()=>{G(u,[...l(g)],!0)}),De(()=>{i()||Ge(Ji,{folder:void 0,files:[]})});{let w=_(()=>s()(l(h)?"replace_asset":"upload_assets")),E=_(()=>s()(l(h)?"replace":"upload")),k=_(()=>!l(u).length);bc(t,{get open(){return o()},get title(){return l(w)},get okLabel(){return l(E)},get okDisabled(){return l(k)},onOk:async()=>{await lA({files:l(u),folder:l(f),originalAsset:l(h)},{commitType:"uploadMedia"}),Ge(Ji,{folder:void 0,files:[]})},onCancel:()=>{Ge(Ji,{folder:void 0,files:[]})},children:(S,C)=>{var x=uH(),T=M(x);{var A=D=>{var B=aH(),H=z(B);Z(W=>te(H,W),[()=>s()(l(d).length===1?"processing_file":"processing_files")]),$(D,B)};q(T,D=>{l(p)&&D(A)})}var P=j(T,2);{var L=D=>{var B=lH(),H=z(B),W=z(H);{var Y=K=>{var J=Ie();Z(Q=>te(J,Q),[()=>s()("confirm_replacing_file",{values:{name:l(h).name}})]),$(K,J)},O=K=>{var J=Ie();Z(Q=>te(J,Q),[()=>s()(l(u).length===1?"confirm_uploading_file":"confirm_uploading_files",{values:{count:l(u).length,folder:`/${l(f)?.internalPath}`}})]),$(K,J)};q(W,K=>{l(h)?K(Y):K(O,!1)})}var F=j(H,2);Cy(F,{get transformedFileMap(){return l(v)},get files(){return l(u)},set files(K){G(u,K,!0)}}),Z(K=>Ee(B,"aria-label",K),[()=>s()("uploading_files")]),$(D,B)};q(P,D=>{l(u).length&&D(L)})}var I=j(P,2);{var N=D=>{var B=cH(),H=z(B);Mn(H,{status:"warning",children:(Y,O)=>{var F=Ie();Z(K=>te(F,K),[()=>s()(l(m).length===1?"warning_oversized_file":"warning_oversized_files",{values:{size:ah(l(y))}})]),$(Y,F)},$$slots:{default:!0}});var W=j(H,2);Cy(W,{get files(){return l(m)},get transformedFileMap(){return l(v)},removable:!1}),Z(Y=>Ee(B,"aria-label",Y),[()=>s()("oversized_files")]),$(D,B)};q(I,D=>{l(m).length&&D(N)})}$(S,x)},$$slots:{default:!0}})}ce(),c()}function hH(t,e){le(e,!0);const n=()=>V(Ji,"$uploadingAssets",c),r=()=>V(th,"$targetAssetFolder",c),i=()=>V(Xs,"$showUploadAssetsDialog",c),o=()=>V(Wc,"$hasMouse",c),s=()=>V(Js,"$showAssetOverlay",c),a=()=>V(ue,"$_",c),[c,u]=me();let d=ie(void 0);const f=_(()=>n().originalAsset),h=_(()=>!l(f)),p=_(()=>l(f)?Jo.getType(l(f).name)??void 0:void 0),g=w=>{w.length&&(Ge(Ji,{folder:l(f)?l(f).folder:r(),files:w,originalAsset:l(f)}),Ge(Xs,!1))};De(()=>{!o()&&i()&&l(d)?.open()}),De(()=>{s()||Ge(Xs,!1)});var m=X(),v=M(m);{var b=w=>{{let E=_(()=>l(f)?a()("replace_x",{values:{name:l(f).name}}):a()("upload_assets"));Di(w,{get title(){return l(E)},showOk:!1,get open(){return Jg(),i()},set open(k){Ge(Xs,k)},children:(k,S)=>{Wd(k,{showUploadButton:!0,get accept(){return l(p)},get multiple(){return l(h)},onDrop:({files:C})=>{g(C)}})},$$slots:{default:!0}})}},y=w=>{vt(bb(w,{get accept(){return l(p)},get multiple(){return l(h)},onSelect:({files:E})=>{g(E)},onCancel:()=>{Ge(Xs,!1)}}),E=>G(d,E,!0),()=>l(d))};q(v,w=>{o()?w(b):w(y,!1)})}$(t,m),ce(),u()}var pH=U('<div role="blockquote" class="svelte-2picl5"><pre class="svelte-2picl5"> </pre></div>');const gH={hash:"svelte-2picl5",code:"div.svelte-2picl5 {flex:auto;overflow:auto;}pre.svelte-2picl5 {margin:0;padding:16px;width:100%;min-width:fit-content;background-color:var(--sui-primary-background-color);}"};function mH(t,e){le(e,!0),ke(t,gH);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{var c=pH(),u=z(c),d=z(u);Z((f,h)=>{Ee(c,"aria-label",f),te(d,h)},[()=>n()("site_config"),()=>Gm(HS)]),$(a,c)};let s=_(()=>n()("site_configuration_editor"));ml(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}const We=nt(),so=nt(!0),kA=Qt([We],([t])=>{if(!t)return!1;const{originalLocales:e,currentLocales:n,originalSlugs:r,currentSlugs:i,originalValues:o,currentValues:s}=t;return!an(e,n)||!an(r,i)||!an(o,s)});We.subscribe(t=>{se(dt).devModeEnabled&&console.info("entryDraft",t)});const vH=({getFieldArgs:t,fieldConfig:e,sourceLanguage:n,value:r})=>{const{keyPath:i}=t;Object.entries(se(We).currentValues).forEach(([o,s])=>{if(i.includes(".")){const{path:a}=i.match(/(?<path>.+?)\.[^.]*$/)?.groups??{};if(!Object.keys(s).some(c=>c.startsWith(`${a}.`))&&!fn({...t,keyPath:a}))return}if(e.widget==="relation"){const{value_field:a="{{slug}}"}=e;a.startsWith("{{locale}}/")&&(r=r.replace(new RegExp(`^${n}/`),`${o}/`))}o!==n&&s[i]!==r&&(s[i]=r)})},Ly=({draft:{collectionName:t,fileName:e,isIndexFile:n},locale:r,target:i={},getValueMap:o=void 0})=>{const s=Kr(t),a=s&&e?sc(s,e):void 0;if(!s||e&&!a)return;const{defaultLocale:c,canonicalSlug:{key:u}}=(a??s)._i18n,d=h=>se(so)&&h.i18n==="duplicate"&&r===c,f=(h,p)=>{const g=typeof o=="function"?o():h,m={collectionName:t,fileName:e,keyPath:p,valueMap:g,isIndexFile:n},v=fn({...m});return{valueMap:g,getFieldArgs:m,fieldConfig:v}};return new Proxy(i,{set:(h,p,g)=>{if(h[p]!==g&&(h[p]=g),[u].includes(p))return!0;const{fieldConfig:m,getFieldArgs:v}=f(h,p);if(!m)return!0;const b=se(We)?.validities?.[r]?.[p];return b&&typeof g=="string"&&uc({fieldConfig:m,locale:r})&&(b.valueMissing=!g),d(m)&&vH({getFieldArgs:v,fieldConfig:m,sourceLanguage:r,value:g}),!0},deleteProperty:(h,p)=>{delete h[p];const{fieldConfig:g}=f(h,p);return g&&d(g)&&Object.entries(se(We).currentValues).forEach(([m,v])=>{m!==r&&p in v&&delete v[p]}),!0}})};let SA=0,vl;const EA={saved:!1,restored:!1,deleted:!1},Wp=nt({show:!1}),ta=nt({...EA}),Yp=async(t,e="")=>{await vl?.delete([t,e])},Ny=async(t,e="")=>{const n=await vl?.get([t,e]);return n?n.siteConfigVersion===se(hb)?n:(await Yp(t,e),null):null},bH=async t=>{if(!(se(dt).useDraftBackup??!0))return;const{collectionName:e,fileName:n,originalEntry:r,currentLocales:i={},currentSlugs:o={},currentValues:s={},files:a}=t,c=n??r?.slug??"";if(se(kA)){const u={timestamp:new Date,siteConfigVersion:se(hb),collectionName:e,slug:c,currentLocales:i,currentSlugs:Ps(o),currentValues:Ps(s),files:a};await vl?.put(u)}else await Ny(e,c)&&await Yp(e,c)},_H=({backup:t,collectionName:e,fileName:n})=>{const{currentLocales:r,currentSlugs:i,currentValues:o,files:s}=t,a=new Map;so.set(!1),We.update(c=>(c&&(c.currentLocales=r,c.currentSlugs=i,Object.entries(o).forEach(([u,d])=>{Object.entries(d).forEach(([f,h])=>{typeof h=="string"&&([...h.matchAll(Gx("g"))].forEach(([p])=>{let g=s[p];if(g instanceof File&&(g={file:g,folder:void 0}),!g)return;const{file:m}=g;let v="";a.has(m)?v=a.get(m):(v=URL.createObjectURL(m),c.files[v]=g,a.set(m,v)),h=h.replaceAll(p,v)}),d[f]=h)}),c.currentValues[u]?Object.assign(c.currentValues[u],d):c.currentValues[u]=Ly({draft:{collectionName:e,fileName:n},locale:u,target:structuredClone(d)}),c.originalValues[u]||(c.originalValues[u]={})})),c)),so.set(!0)},yH=async({collectionName:t,fileName:e,slug:n=""})=>{if(!(se(dt).useDraftBackup??!0))return;const r=await Ny(t,n);if(!r)return;const{timestamp:i}=r,o=await new Promise(s=>{Wp.set({show:!0,timestamp:i,resolve:s})});o!==void 0&&(o?_H({backup:r,collectionName:t,fileName:e}):await Yp(t,n),ta.set({restored:o,deleted:!o,saved:!1}))},wH=async()=>{if(!(se(dt).useDraftBackup??!0))return;const t=se(We);if(!t||se(ta).saved)return;const{collectionName:e,originalEntry:n}=t;await Ny(e,n?.slug)&&ta.set({restored:!1,deleted:!1,saved:!0})},xH=()=>{ta.set({...EA})};bn.subscribe(t=>{if(t&&!vl){const{databaseName:e}=t.repository??{};if(e){vl=new mo(e,"draft-backups",{keyPath:["collectionName","slug"]});return}}vl=null}),We.subscribe(t=>{globalThis.clearTimeout(SA),t&&vl&&(SA=globalThis.setTimeout(()=>{bH(t)},500))});var kH=U("<!> <!> <!> <!>",1);function SH(t,e){le(e,!0);const n=()=>V(Wp,"$restoreDialogState",a),r=()=>V(zt,"$appLocale",a),i=()=>V(ga,"$showContentOverlay",a),o=()=>V(ue,"$_",a),s=()=>V(ta,"$backupToastState",a),[a,c]=me(),u=_(()=>new Date),d=_(()=>n().resolve),f=_(()=>n().timestamp),h=_(()=>l(u).getUTCFullYear()===l(f)?.getUTCFullYear()),p=_(()=>l(h)&&l(u).getUTCMonth()===l(f)?.getUTCMonth()),g=_(()=>l(p)&&l(u).getUTCDate()===l(f)?.getUTCDate()),m=_(()=>l(f)?.toLocaleString(r()??void 0,{year:l(h)?void 0:"numeric",month:l(g)?void 0:"short",day:l(g)?void 0:"numeric",hour:"numeric",minute:"numeric"}));De(()=>{!i()&&n().show&&(_t(Wp,Se(n).show=!1,Se(n)),l(d)?.())});var v=kH(),b=M(v);{let k=_(()=>o()("restore_backup_title")),S=_(()=>o()("restore")),C=_(()=>o()("discard"));bc(b,{get title(){return l(k)},get okLabel(){return l(S)},get cancelLabel(){return l(C)},onOk:()=>{l(d)?.(!0)},onCancel:()=>{l(d)?.(!1)},get open(){return n().show},set open(x){_t(Wp,Se(n).show=x,Se(n))},children:(x,T)=>{var A=Ie();Z(P=>te(A,P),[()=>o()("restore_backup_description",{values:{datetime:l(m)}})]),$(x,A)},$$slots:{default:!0}})}var y=j(b,2);Qn(y,{get show(){return s().saved},set show(k){_t(ta,Se(s).saved=k,Se(s))},children:(k,S)=>{Mn(k,{status:"info",children:(C,x)=>{var T=Ie();Z(A=>te(T,A),[()=>o()("draft_backup_saved")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}});var w=j(y,2);Qn(w,{get show(){return s().restored},set show(k){_t(ta,Se(s).restored=k,Se(s))},children:(k,S)=>{Mn(k,{status:"success",children:(C,x)=>{var T=Ie();Z(A=>te(T,A),[()=>o()("draft_backup_restored")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}});var E=j(w,2);Qn(E,{get show(){return s().deleted},set show(k){_t(ta,Se(s).deleted=k,Se(s))},children:(k,S)=>{Mn(k,{status:"info",children:(C,x)=>{var T=Ie();Z(A=>te(T,A),[()=>o()("draft_backup_deleted")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,v),ce(),c()}var EH=U('<div class="placeholder svelte-ow4el9"></div>');const $H={hash:"svelte-ow4el9",code:".placeholder.svelte-ow4el9 {height:64px;}"};function ao(t,e){le(e,!0),ke(t,$H);let n=ie(null),r=ie(!1);De(()=>{l(n)&&(async()=>(await mc(l(n)),G(r,!0)))()});var i=X(),o=M(i);{var s=c=>{var u=X(),d=M(u);Me(d,()=>e.children),$(c,u)},a=c=>{var u=EH();vt(u,d=>G(n,d),()=>l(n)),$(c,u)};q(o,c=>{l(r)?c(s):c(a,!1)})}$(t,i),ce()}function TH(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t}function Iy(t,e){return Array(e+1).join(t)}function CH(t){return t.replace(/^\n*/,"")}function AH(t){for(var e=t.length;e>0&&t[e-1]===`
540
- `;)e--;return t.substring(0,e)}var PH=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function Oy(t){return Ry(t,PH)}var $A=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function TA(t){return Ry(t,$A)}function LH(t){return AA(t,$A)}var CA=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function NH(t){return Ry(t,CA)}function IH(t){return AA(t,CA)}function Ry(t,e){return e.indexOf(t.nodeName)>=0}function AA(t,e){return t.getElementsByTagName&&e.some(function(n){return t.getElementsByTagName(n).length})}var Rr={};Rr.paragraph={filter:"p",replacement:function(t){return`
539
+ }.outer.svelte-1kkfo1f .primary-sidebar header {display:flex;align-items:center;justify-content:space-between;padding:0 10px;height:var(--sui-primary-toolbar-size);}.outer.svelte-1kkfo1f .primary-sidebar header h2 {padding:0 10px;font-size:var(--sui-font-size-x-large);}.outer.svelte-1kkfo1f .primary-sidebar .sui.search-bar {margin-inline:12px;--sui-textbox-background-color: var(--sui-tertiary-background-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=radiogroup] {width:100%;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] {margin:8px;border-width:0;background-color:transparent;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button {display:flex;justify-content:flex-start;border-radius:var(--sui-control-medium-border-radius);width:100%;text-align:start;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button:not(:first-child) {margin-top:4px;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button:not(:focus) {border-color:transparent;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button span {flex:none;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .label {flex:auto;overflow:hidden;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .icon {transition:color 200ms;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .icon.check {display:none;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .count {padding:2px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);transition:color 200ms;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option][aria-selected=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option][aria-selected=true] .count {color:var(--sui-highlighted-foreground-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option].dragover {color:var(--sui-primary-accent-color-inverted) !important;background-color:var(--sui-primary-accent-color) !important;}.outer.svelte-1kkfo1f .primary-sidebar .sui.divider {margin:8px 0;}`};function ml(t,e){ke(t,oH);const n=()=>V(_y,"$hasOverlay",r),[r,i]=me();let o=R(e,"class",3,""),s=R(e,"primarySidebar",3,void 0),a=R(e,"main",3,void 0),c=rt(e,["$$slots","$$events","$$legacy","class","primarySidebar","main"]);var u=iH();gt(u,()=>({role:"group",id:"page-container",class:`outer ${o()??""}`,inert:n(),...c}),void 0,void 0,"svelte-1kkfo1f");var d=z(u);Me(d,()=>s()??Be);var f=j(d,2);Me(f,()=>a()??Be),$(t,u),i()}var sH=U("<!> <!> <!> <!> <!> <!> <!> <!>",1);function aH(t,e){le(e,!0);const n=()=>V(zt,"$appLocale",f),r=()=>V(Gi,"$selectedAssetFolder",f),i=()=>V(ln,"$isSmallScreen",f),o=()=>V(ue,"$_",f),s=()=>V(Is,"$allAssetFolders",f),a=()=>V(fl,"$listedAssets",f),c=()=>V(Ms,"$overlaidAsset",f),u=()=>V(Dn,"$allAssets",f),d=()=>V(ea,"$assetUpdatesToast",f),[f,h]=me(),p=/^\/assets(?:\/(?<folderPath>.+?)(?:\/(?<fileName>[^/]+\.[A-Za-z0-9]+))?)?$/;let g=ie(!1);const m=_(()=>n()&&r()?qp(r()):""),v=async()=>{const{path:A}=Oo(),P=A.match(p);if(G(g,!1),!P?.groups)return;const{folderPath:L,fileName:I}=P.groups;if(!L){i()?(Ge(Gi,void 0),Ge(ci,o()("viewing_asset_folder_list")),G(g,!0)):Ht("/assets/-/all");return}const N=window.history.state?.folder??s().find(({internalPath:D,collectionName:B})=>L==="-/all"?D===void 0&&B===void 0:D===L);if(N?an(r(),N)||Ge(Gi,N):Ge(Gi,void 0),!I){const D=a().length;await Lt(100),Ge(ci,o()(D>1?"viewing_x_asset_folder_many_assets":D===1?"viewing_x_asset_folder_one_asset":"viewing_x_asset_folder_no_assets",{values:{folder:l(m),count:D}}));return}Ge(Ms,I?u().find(D=>D.path===`${L}/${I}`):void 0),Ge(ci,c()?o()("viewing_x_asset_details",{values:{name:c().name}}):o()("file_not_found")),Ge(Js,!0)};Ft(()=>{v()});var b=sH();jr("hashchange",ua,A=>{xy(A,v,p)});var y=M(b);{const A=I=>{var N=X(),D=M(N);{var B=H=>{MV(H,{})};q(D,H=>{(!i()||l(g))&&H(B)})}$(I,N)},P=I=>{var N=X(),D=M(N);{var B=H=>{{const W=J=>{UV(J,{})},Y=J=>{var Q=X(),oe=M(Q);{var re=ee=>{tH(ee,{})};q(oe,ee=>{a().length&&ee(re)})}$(J,Q)},O=J=>{PV(J,{})},F=J=>{VV(J,{})};let K=_(()=>o()("x_asset_folder",{values:{folder:l(m)}}));Jd(H,{id:"assets-container",get"aria-label"(){return l(K)},primaryToolbar:W,secondaryToolbar:Y,mainContent:O,secondarySidebar:F,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};q(D,H=>{(!i()||!l(g))&&H(B)})}$(I,N)};let L=_(()=>o()("asset_library"));ml(y,{get"aria-label"(){return l(L)},primarySidebar:A,main:P,$$slots:{primarySidebar:!0,main:!0}})}var w=j(y,2);M7(w,{});var E=j(w,2);U7(E,{});var k=j(E,2);uV(k,{});var S=j(k,2);Qn(S,{get show(){return d().saved},set show(A){_t(ea,Se(d).saved=A,Se(d))},children:(A,P)=>{Mn(A,{status:"success",children:(L,I)=>{var N=Ie();Z(D=>te(N,D),[()=>o()(d().published?d().count===1?"asset_saved_and_published":"assets_saved_and_published":d().count===1?"asset_saved":"assets_saved",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var C=j(S,2);Qn(C,{get show(){return d().moved},set show(A){_t(ea,Se(d).moved=A,Se(d))},children:(A,P)=>{Mn(A,{status:"success",children:(L,I)=>{var N=Ie();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_moved":"assets_moved",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var x=j(C,2);Qn(x,{get show(){return d().renamed},set show(A){_t(ea,Se(d).renamed=A,Se(d))},children:(A,P)=>{Mn(A,{status:"success",children:(L,I)=>{var N=Ie();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_renamed":"assets_renamed",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var T=j(x,2);Qn(T,{get show(){return d().deleted},set show(A){_t(ea,Se(d).deleted=A,Se(d))},children:(A,P)=>{Mn(A,{status:"success",children:(L,I)=>{var N=Ie();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_deleted":"assets_deleted",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,b),ce(),h()}var lH=U('<div role="status"> </div>'),cH=U('<div role="group" class="section uploading svelte-96nj3d"><div role="none"><!></div> <!></div>'),uH=U('<div role="group" class="section oversized svelte-96nj3d"><!> <!></div>'),dH=U("<!> <!> <!>",1);const fH={hash:"svelte-96nj3d",code:".section.svelte-96nj3d {display:flex;flex-direction:column;gap:16px;}.section.svelte-96nj3d:not(:first-child) {margin-top:16px;}.section.svelte-96nj3d > * {flex:none;}.section.oversized.svelte-96nj3d .files {opacity:0.5;}"};function hH(t,e){le(e,!0),ke(t,fH);const n=()=>V(Ji,"$uploadingAssets",a),r=()=>V(gF,"$processedAssets",a),i=()=>V(Js,"$showAssetOverlay",a),o=()=>V(g6,"$showUploadAssetsConfirmDialog",a),s=()=>V(ue,"$_",a),[a,c]=me();let u=ie(St([]));const d=_(()=>n().files),f=_(()=>n().folder),h=_(()=>n().originalAsset),p=_(()=>r().processing),g=_(()=>r().undersizedFiles),m=_(()=>r().oversizedFiles),v=_(()=>r().transformedFileMap),b=_(()=>Hu().config),y=_(()=>l(b).max_file_size);De(()=>{G(u,[...l(g)],!0)}),De(()=>{i()||Ge(Ji,{folder:void 0,files:[]})});{let w=_(()=>s()(l(h)?"replace_asset":"upload_assets")),E=_(()=>s()(l(h)?"replace":"upload")),k=_(()=>!l(u).length);bc(t,{get open(){return o()},get title(){return l(w)},get okLabel(){return l(E)},get okDisabled(){return l(k)},onOk:async()=>{await lA({files:l(u),folder:l(f),originalAsset:l(h)},{commitType:"uploadMedia"}),Ge(Ji,{folder:void 0,files:[]})},onCancel:()=>{Ge(Ji,{folder:void 0,files:[]})},children:(S,C)=>{var x=dH(),T=M(x);{var A=D=>{var B=lH(),H=z(B);Z(W=>te(H,W),[()=>s()(l(d).length===1?"processing_file":"processing_files")]),$(D,B)};q(T,D=>{l(p)&&D(A)})}var P=j(T,2);{var L=D=>{var B=cH(),H=z(B),W=z(H);{var Y=K=>{var J=Ie();Z(Q=>te(J,Q),[()=>s()("confirm_replacing_file",{values:{name:l(h).name}})]),$(K,J)},O=K=>{var J=Ie();Z(Q=>te(J,Q),[()=>s()(l(u).length===1?"confirm_uploading_file":"confirm_uploading_files",{values:{count:l(u).length,folder:`/${l(f)?.internalPath}`}})]),$(K,J)};q(W,K=>{l(h)?K(Y):K(O,!1)})}var F=j(H,2);Cy(F,{get transformedFileMap(){return l(v)},get files(){return l(u)},set files(K){G(u,K,!0)}}),Z(K=>Ee(B,"aria-label",K),[()=>s()("uploading_files")]),$(D,B)};q(P,D=>{l(u).length&&D(L)})}var I=j(P,2);{var N=D=>{var B=uH(),H=z(B);Mn(H,{status:"warning",children:(Y,O)=>{var F=Ie();Z(K=>te(F,K),[()=>s()(l(m).length===1?"warning_oversized_file":"warning_oversized_files",{values:{size:ah(l(y))}})]),$(Y,F)},$$slots:{default:!0}});var W=j(H,2);Cy(W,{get files(){return l(m)},get transformedFileMap(){return l(v)},removable:!1}),Z(Y=>Ee(B,"aria-label",Y),[()=>s()("oversized_files")]),$(D,B)};q(I,D=>{l(m).length&&D(N)})}$(S,x)},$$slots:{default:!0}})}ce(),c()}function pH(t,e){le(e,!0);const n=()=>V(Ji,"$uploadingAssets",c),r=()=>V(th,"$targetAssetFolder",c),i=()=>V(Xs,"$showUploadAssetsDialog",c),o=()=>V(Wc,"$hasMouse",c),s=()=>V(Js,"$showAssetOverlay",c),a=()=>V(ue,"$_",c),[c,u]=me();let d=ie(void 0);const f=_(()=>n().originalAsset),h=_(()=>!l(f)),p=_(()=>l(f)?Jo.getType(l(f).name)??void 0:void 0),g=w=>{w.length&&(Ge(Ji,{folder:l(f)?l(f).folder:r(),files:w,originalAsset:l(f)}),Ge(Xs,!1))};De(()=>{!o()&&i()&&l(d)?.open()}),De(()=>{s()||Ge(Xs,!1)});var m=X(),v=M(m);{var b=w=>{{let E=_(()=>l(f)?a()("replace_x",{values:{name:l(f).name}}):a()("upload_assets"));Di(w,{get title(){return l(E)},showOk:!1,get open(){return Jg(),i()},set open(k){Ge(Xs,k)},children:(k,S)=>{Wd(k,{showUploadButton:!0,get accept(){return l(p)},get multiple(){return l(h)},onDrop:({files:C})=>{g(C)}})},$$slots:{default:!0}})}},y=w=>{vt(bb(w,{get accept(){return l(p)},get multiple(){return l(h)},onSelect:({files:E})=>{g(E)},onCancel:()=>{Ge(Xs,!1)}}),E=>G(d,E,!0),()=>l(d))};q(v,w=>{o()?w(b):w(y,!1)})}$(t,m),ce(),u()}var gH=U('<div role="blockquote" class="svelte-2picl5"><pre class="svelte-2picl5"> </pre></div>');const mH={hash:"svelte-2picl5",code:"div.svelte-2picl5 {flex:auto;overflow:auto;}pre.svelte-2picl5 {margin:0;padding:16px;width:100%;min-width:fit-content;background-color:var(--sui-primary-background-color);}"};function vH(t,e){le(e,!0),ke(t,mH);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{var c=gH(),u=z(c),d=z(u);Z((f,h)=>{Ee(c,"aria-label",f),te(d,h)},[()=>n()("site_config"),()=>Gm(HS)]),$(a,c)};let s=_(()=>n()("site_configuration_editor"));ml(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}const We=nt(),so=nt(!0),kA=Qt([We],([t])=>{if(!t)return!1;const{originalLocales:e,currentLocales:n,originalSlugs:r,currentSlugs:i,originalValues:o,currentValues:s}=t;return!an(e,n)||!an(r,i)||!an(o,s)});We.subscribe(t=>{se(dt).devModeEnabled&&console.info("entryDraft",t)});const bH=({getFieldArgs:t,fieldConfig:e,sourceLanguage:n,value:r})=>{const{keyPath:i}=t;Object.entries(se(We).currentValues).forEach(([o,s])=>{if(i.includes(".")){const{path:a}=i.match(/(?<path>.+?)\.[^.]*$/)?.groups??{};if(!Object.keys(s).some(c=>c.startsWith(`${a}.`))&&!fn({...t,keyPath:a}))return}if(e.widget==="relation"){const{value_field:a="{{slug}}"}=e;a.startsWith("{{locale}}/")&&(r=r.replace(new RegExp(`^${n}/`),`${o}/`))}o!==n&&s[i]!==r&&(s[i]=r)})},Ly=({draft:{collectionName:t,fileName:e,isIndexFile:n},locale:r,target:i={},getValueMap:o=void 0})=>{const s=Kr(t),a=s&&e?sc(s,e):void 0;if(!s||e&&!a)return;const{defaultLocale:c,canonicalSlug:{key:u}}=(a??s)._i18n,d=h=>se(so)&&h.i18n==="duplicate"&&r===c,f=(h,p)=>{const g=typeof o=="function"?o():h,m={collectionName:t,fileName:e,keyPath:p,valueMap:g,isIndexFile:n},v=fn({...m});return{valueMap:g,getFieldArgs:m,fieldConfig:v}};return new Proxy(i,{set:(h,p,g)=>{if(h[p]!==g&&(h[p]=g),[u].includes(p))return!0;const{fieldConfig:m,getFieldArgs:v}=f(h,p);if(!m)return!0;const b=se(We)?.validities?.[r]?.[p];return b&&typeof g=="string"&&uc({fieldConfig:m,locale:r})&&(b.valueMissing=!g),d(m)&&bH({getFieldArgs:v,fieldConfig:m,sourceLanguage:r,value:g}),!0},deleteProperty:(h,p)=>{delete h[p];const{fieldConfig:g}=f(h,p);return g&&d(g)&&Object.entries(se(We).currentValues).forEach(([m,v])=>{m!==r&&p in v&&delete v[p]}),!0}})};let SA=0,vl;const EA={saved:!1,restored:!1,deleted:!1},Wp=nt({show:!1}),ta=nt({...EA}),Yp=async(t,e="")=>{await vl?.delete([t,e])},Ny=async(t,e="")=>{const n=await vl?.get([t,e]);return n?n.siteConfigVersion===se(hb)?n:(await Yp(t,e),null):null},_H=async t=>{if(!(se(dt).useDraftBackup??!0))return;const{collectionName:e,fileName:n,originalEntry:r,currentLocales:i={},currentSlugs:o={},currentValues:s={},files:a}=t,c=n??r?.slug??"";if(se(kA)){const u={timestamp:new Date,siteConfigVersion:se(hb),collectionName:e,slug:c,currentLocales:i,currentSlugs:Ps(o),currentValues:Ps(s),files:a};await vl?.put(u)}else await Ny(e,c)&&await Yp(e,c)},yH=({backup:t,collectionName:e,fileName:n})=>{const{currentLocales:r,currentSlugs:i,currentValues:o,files:s}=t,a=new Map;so.set(!1),We.update(c=>(c&&(c.currentLocales=r,c.currentSlugs=i,Object.entries(o).forEach(([u,d])=>{Object.entries(d).forEach(([f,h])=>{typeof h=="string"&&([...h.matchAll(Gx("g"))].forEach(([p])=>{let g=s[p];if(g instanceof File&&(g={file:g,folder:void 0}),!g)return;const{file:m}=g;let v="";a.has(m)?v=a.get(m):(v=URL.createObjectURL(m),c.files[v]=g,a.set(m,v)),h=h.replaceAll(p,v)}),d[f]=h)}),c.currentValues[u]?Object.assign(c.currentValues[u],d):c.currentValues[u]=Ly({draft:{collectionName:e,fileName:n},locale:u,target:structuredClone(d)}),c.originalValues[u]||(c.originalValues[u]={})})),c)),so.set(!0)},wH=async({collectionName:t,fileName:e,slug:n=""})=>{if(!(se(dt).useDraftBackup??!0))return;const r=await Ny(t,n);if(!r)return;const{timestamp:i}=r,o=await new Promise(s=>{Wp.set({show:!0,timestamp:i,resolve:s})});o!==void 0&&(o?yH({backup:r,collectionName:t,fileName:e}):await Yp(t,n),ta.set({restored:o,deleted:!o,saved:!1}))},xH=async()=>{if(!(se(dt).useDraftBackup??!0))return;const t=se(We);if(!t||se(ta).saved)return;const{collectionName:e,originalEntry:n}=t;await Ny(e,n?.slug)&&ta.set({restored:!1,deleted:!1,saved:!0})},kH=()=>{ta.set({...EA})};bn.subscribe(t=>{if(t&&!vl){const{databaseName:e}=t.repository??{};if(e){vl=new mo(e,"draft-backups",{keyPath:["collectionName","slug"]});return}}vl=null}),We.subscribe(t=>{globalThis.clearTimeout(SA),t&&vl&&(SA=globalThis.setTimeout(()=>{_H(t)},500))});var SH=U("<!> <!> <!> <!>",1);function EH(t,e){le(e,!0);const n=()=>V(Wp,"$restoreDialogState",a),r=()=>V(zt,"$appLocale",a),i=()=>V(ga,"$showContentOverlay",a),o=()=>V(ue,"$_",a),s=()=>V(ta,"$backupToastState",a),[a,c]=me(),u=_(()=>new Date),d=_(()=>n().resolve),f=_(()=>n().timestamp),h=_(()=>l(u).getUTCFullYear()===l(f)?.getUTCFullYear()),p=_(()=>l(h)&&l(u).getUTCMonth()===l(f)?.getUTCMonth()),g=_(()=>l(p)&&l(u).getUTCDate()===l(f)?.getUTCDate()),m=_(()=>l(f)?.toLocaleString(r()??void 0,{year:l(h)?void 0:"numeric",month:l(g)?void 0:"short",day:l(g)?void 0:"numeric",hour:"numeric",minute:"numeric"}));De(()=>{!i()&&n().show&&(_t(Wp,Se(n).show=!1,Se(n)),l(d)?.())});var v=SH(),b=M(v);{let k=_(()=>o()("restore_backup_title")),S=_(()=>o()("restore")),C=_(()=>o()("discard"));bc(b,{get title(){return l(k)},get okLabel(){return l(S)},get cancelLabel(){return l(C)},onOk:()=>{l(d)?.(!0)},onCancel:()=>{l(d)?.(!1)},get open(){return n().show},set open(x){_t(Wp,Se(n).show=x,Se(n))},children:(x,T)=>{var A=Ie();Z(P=>te(A,P),[()=>o()("restore_backup_description",{values:{datetime:l(m)}})]),$(x,A)},$$slots:{default:!0}})}var y=j(b,2);Qn(y,{get show(){return s().saved},set show(k){_t(ta,Se(s).saved=k,Se(s))},children:(k,S)=>{Mn(k,{status:"info",children:(C,x)=>{var T=Ie();Z(A=>te(T,A),[()=>o()("draft_backup_saved")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}});var w=j(y,2);Qn(w,{get show(){return s().restored},set show(k){_t(ta,Se(s).restored=k,Se(s))},children:(k,S)=>{Mn(k,{status:"success",children:(C,x)=>{var T=Ie();Z(A=>te(T,A),[()=>o()("draft_backup_restored")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}});var E=j(w,2);Qn(E,{get show(){return s().deleted},set show(k){_t(ta,Se(s).deleted=k,Se(s))},children:(k,S)=>{Mn(k,{status:"info",children:(C,x)=>{var T=Ie();Z(A=>te(T,A),[()=>o()("draft_backup_deleted")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,v),ce(),c()}var $H=U('<div class="placeholder svelte-ow4el9"></div>');const TH={hash:"svelte-ow4el9",code:".placeholder.svelte-ow4el9 {height:64px;}"};function ao(t,e){le(e,!0),ke(t,TH);let n=ie(null),r=ie(!1);De(()=>{l(n)&&(async()=>(await mc(l(n)),G(r,!0)))()});var i=X(),o=M(i);{var s=c=>{var u=X(),d=M(u);Me(d,()=>e.children),$(c,u)},a=c=>{var u=$H();vt(u,d=>G(n,d),()=>l(n)),$(c,u)};q(o,c=>{l(r)?c(s):c(a,!1)})}$(t,i),ce()}function CH(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t}function Iy(t,e){return Array(e+1).join(t)}function AH(t){return t.replace(/^\n*/,"")}function PH(t){for(var e=t.length;e>0&&t[e-1]===`
540
+ `;)e--;return t.substring(0,e)}var LH=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function Oy(t){return Ry(t,LH)}var $A=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function TA(t){return Ry(t,$A)}function NH(t){return AA(t,$A)}var CA=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function IH(t){return Ry(t,CA)}function OH(t){return AA(t,CA)}function Ry(t,e){return e.indexOf(t.nodeName)>=0}function AA(t,e){return t.getElementsByTagName&&e.some(function(n){return t.getElementsByTagName(n).length})}var Rr={};Rr.paragraph={filter:"p",replacement:function(t){return`
541
541
 
542
542
  `+t+`
543
543
 
@@ -584,7 +584,7 @@ ${a}
584
584
  `)+`
585
585
 
586
586
  `,this.references=[]),e}},Rr.emphasis={filter:["em","i"],replacement:function(t,e,n){return t.trim()?n.emDelimiter+t+n.emDelimiter:""}},Rr.strong={filter:["strong","b"],replacement:function(t,e,n){return t.trim()?n.strongDelimiter+t+n.strongDelimiter:""}},Rr.code={filter:function(t){var e=t.previousSibling||t.nextSibling,n=t.parentNode.nodeName==="PRE"&&!e;return t.nodeName==="CODE"&&!n},replacement:function(t){if(!t)return"";t=t.replace(/\r?\n|\r/g," ");for(var e=/^`|^ .*?[^ ].* $|`$/.test(t)?" ":"",n="`",r=t.match(/`+/gm)||[];r.indexOf(n)!==-1;)n=n+"`";return n+e+t+e+n}},Rr.image={filter:"img",replacement:function(t,e){var n=Jp(e.getAttribute("alt")),r=e.getAttribute("src")||"",i=Jp(e.getAttribute("title")),o=i?' "'+i+'"':"";return r?"!["+n+"]("+r+o+")":""}};function Jp(t){return t?t.replace(/(\n+\s*)+/g,`
587
- `):""}function PA(t){this.options=t,this._keep=[],this._remove=[],this.blankRule={replacement:t.blankReplacement},this.keepReplacement=t.keepReplacement,this.defaultRule={replacement:t.defaultReplacement},this.array=[];for(var e in t.rules)this.array.push(t.rules[e])}PA.prototype={add:function(t,e){this.array.unshift(e)},keep:function(t){this._keep.unshift({filter:t,replacement:this.keepReplacement})},remove:function(t){this._remove.unshift({filter:t,replacement:function(){return""}})},forNode:function(t){if(t.isBlank)return this.blankRule;var e;return(e=Dy(this.array,t,this.options))||(e=Dy(this._keep,t,this.options))||(e=Dy(this._remove,t,this.options))?e:this.defaultRule},forEach:function(t){for(var e=0;e<this.array.length;e++)t(this.array[e],e)}};function Dy(t,e,n){for(var r=0;r<t.length;r++){var i=t[r];if(OH(i,e,n))return i}}function OH(t,e,n){var r=t.filter;if(typeof r=="string"){if(r===e.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(e.nodeName.toLowerCase())>-1)return!0}else if(typeof r=="function"){if(r.call(t,e,n))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function RH(t){var e=t.element,n=t.isBlock,r=t.isVoid,i=t.isPre||function(f){return f.nodeName==="PRE"};if(!(!e.firstChild||i(e))){for(var o=null,s=!1,a=null,c=LA(a,e,i);c!==e;){if(c.nodeType===3||c.nodeType===4){var u=c.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){c=My(c);continue}c.data=u,o=c}else if(c.nodeType===1)n(c)||c.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,s=!1):r(c)||i(c)?(o=null,s=!0):o&&(s=!1);else{c=My(c);continue}var d=LA(a,c,i);a=c,c=d}o&&(o.data=o.data.replace(/ $/,""),o.data||My(o))}}function My(t){var e=t.nextSibling||t.parentNode;return t.parentNode.removeChild(t),e}function LA(t,e,n){return t&&t.parentNode===e||n(e)?e.nextSibling||e.parentNode:e.firstChild||e.nextSibling||e.parentNode}var Fy=typeof window<"u"?window:{};function DH(){var t=Fy.DOMParser,e=!1;try{new t().parseFromString("","text/html")&&(e=!0)}catch{}return e}function MH(){var t=function(){};return FH()?t.prototype.parseFromString=function(e){var n=new window.ActiveXObject("htmlfile");return n.designMode="on",n.open(),n.write(e),n.close(),n}:t.prototype.parseFromString=function(e){var n=document.implementation.createHTMLDocument("");return n.open(),n.write(e),n.close(),n},t}function FH(){var t=!1;try{document.implementation.createHTMLDocument("").open()}catch{Fy.ActiveXObject&&(t=!0)}return t}var zH=DH()?Fy.DOMParser:MH();function jH(t,e){var n;if(typeof t=="string"){var r=BH().parseFromString('<x-turndown id="turndown-root">'+t+"</x-turndown>","text/html");n=r.getElementById("turndown-root")}else n=t.cloneNode(!0);return RH({element:n,isBlock:Oy,isVoid:TA,isPre:e.preformattedCode?UH:null}),n}var zy;function BH(){return zy=zy||new zH,zy}function UH(t){return t.nodeName==="PRE"||t.nodeName==="CODE"}function qH(t,e){return t.isBlock=Oy(t),t.isCode=t.nodeName==="CODE"||t.parentNode.isCode,t.isBlank=VH(t),t.flankingWhitespace=HH(t,e),t}function VH(t){return!TA(t)&&!NH(t)&&/^\s*$/i.test(t.textContent)&&!LH(t)&&!IH(t)}function HH(t,e){if(t.isBlock||e.preformattedCode&&t.isCode)return{leading:"",trailing:""};var n=KH(t.textContent);return n.leadingAscii&&NA("left",t,e)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&NA("right",t,e)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function KH(t){var e=t.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:e[1],leadingAscii:e[2],leadingNonAscii:e[3],trailing:e[4],trailingNonAscii:e[5],trailingAscii:e[6]}}function NA(t,e,n){var r,i,o;return t==="left"?(r=e.previousSibling,i=/ $/):(r=e.nextSibling,i=/^ /),r&&(r.nodeType===3?o=i.test(r.nodeValue):n.preformattedCode&&r.nodeName==="CODE"?o=!1:r.nodeType===1&&!Oy(r)&&(o=i.test(r.textContent))),o}var GH=Array.prototype.reduce,WH=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Xp(t){if(!(this instanceof Xp))return new Xp(t);var e={rules:Rr,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(n,r){return r.isBlock?`
587
+ `):""}function PA(t){this.options=t,this._keep=[],this._remove=[],this.blankRule={replacement:t.blankReplacement},this.keepReplacement=t.keepReplacement,this.defaultRule={replacement:t.defaultReplacement},this.array=[];for(var e in t.rules)this.array.push(t.rules[e])}PA.prototype={add:function(t,e){this.array.unshift(e)},keep:function(t){this._keep.unshift({filter:t,replacement:this.keepReplacement})},remove:function(t){this._remove.unshift({filter:t,replacement:function(){return""}})},forNode:function(t){if(t.isBlank)return this.blankRule;var e;return(e=Dy(this.array,t,this.options))||(e=Dy(this._keep,t,this.options))||(e=Dy(this._remove,t,this.options))?e:this.defaultRule},forEach:function(t){for(var e=0;e<this.array.length;e++)t(this.array[e],e)}};function Dy(t,e,n){for(var r=0;r<t.length;r++){var i=t[r];if(RH(i,e,n))return i}}function RH(t,e,n){var r=t.filter;if(typeof r=="string"){if(r===e.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(e.nodeName.toLowerCase())>-1)return!0}else if(typeof r=="function"){if(r.call(t,e,n))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function DH(t){var e=t.element,n=t.isBlock,r=t.isVoid,i=t.isPre||function(f){return f.nodeName==="PRE"};if(!(!e.firstChild||i(e))){for(var o=null,s=!1,a=null,c=LA(a,e,i);c!==e;){if(c.nodeType===3||c.nodeType===4){var u=c.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){c=My(c);continue}c.data=u,o=c}else if(c.nodeType===1)n(c)||c.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,s=!1):r(c)||i(c)?(o=null,s=!0):o&&(s=!1);else{c=My(c);continue}var d=LA(a,c,i);a=c,c=d}o&&(o.data=o.data.replace(/ $/,""),o.data||My(o))}}function My(t){var e=t.nextSibling||t.parentNode;return t.parentNode.removeChild(t),e}function LA(t,e,n){return t&&t.parentNode===e||n(e)?e.nextSibling||e.parentNode:e.firstChild||e.nextSibling||e.parentNode}var Fy=typeof window<"u"?window:{};function MH(){var t=Fy.DOMParser,e=!1;try{new t().parseFromString("","text/html")&&(e=!0)}catch{}return e}function FH(){var t=function(){};return zH()?t.prototype.parseFromString=function(e){var n=new window.ActiveXObject("htmlfile");return n.designMode="on",n.open(),n.write(e),n.close(),n}:t.prototype.parseFromString=function(e){var n=document.implementation.createHTMLDocument("");return n.open(),n.write(e),n.close(),n},t}function zH(){var t=!1;try{document.implementation.createHTMLDocument("").open()}catch{Fy.ActiveXObject&&(t=!0)}return t}var jH=MH()?Fy.DOMParser:FH();function BH(t,e){var n;if(typeof t=="string"){var r=UH().parseFromString('<x-turndown id="turndown-root">'+t+"</x-turndown>","text/html");n=r.getElementById("turndown-root")}else n=t.cloneNode(!0);return DH({element:n,isBlock:Oy,isVoid:TA,isPre:e.preformattedCode?qH:null}),n}var zy;function UH(){return zy=zy||new jH,zy}function qH(t){return t.nodeName==="PRE"||t.nodeName==="CODE"}function VH(t,e){return t.isBlock=Oy(t),t.isCode=t.nodeName==="CODE"||t.parentNode.isCode,t.isBlank=HH(t),t.flankingWhitespace=KH(t,e),t}function HH(t){return!TA(t)&&!IH(t)&&/^\s*$/i.test(t.textContent)&&!NH(t)&&!OH(t)}function KH(t,e){if(t.isBlock||e.preformattedCode&&t.isCode)return{leading:"",trailing:""};var n=GH(t.textContent);return n.leadingAscii&&NA("left",t,e)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&NA("right",t,e)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function GH(t){var e=t.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:e[1],leadingAscii:e[2],leadingNonAscii:e[3],trailing:e[4],trailingNonAscii:e[5],trailingAscii:e[6]}}function NA(t,e,n){var r,i,o;return t==="left"?(r=e.previousSibling,i=/ $/):(r=e.nextSibling,i=/^ /),r&&(r.nodeType===3?o=i.test(r.nodeValue):n.preformattedCode&&r.nodeName==="CODE"?o=!1:r.nodeType===1&&!Oy(r)&&(o=i.test(r.textContent))),o}var WH=Array.prototype.reduce,YH=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Xp(t){if(!(this instanceof Xp))return new Xp(t);var e={rules:Rr,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(n,r){return r.isBlock?`
588
588
 
589
589
  `:""},keepReplacement:function(n,r){return r.isBlock?`
590
590
 
@@ -594,9 +594,9 @@ ${a}
594
594
 
595
595
  `+n+`
596
596
 
597
- `:n}};this.options=TH({},e,t),this.rules=new PA(this.options)}Xp.prototype={turndown:function(t){if(!XH(t))throw new TypeError(t+" is not a string, or an element/document/fragment node.");if(t==="")return"";var e=IA.call(this,new jH(t,this.options));return YH.call(this,e)},use:function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.use(t[e]);else if(typeof t=="function")t(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(t,e){return this.rules.add(t,e),this},keep:function(t){return this.rules.keep(t),this},remove:function(t){return this.rules.remove(t),this},escape:function(t){return WH.reduce(function(e,n){return e.replace(n[0],n[1])},t)}};function IA(t){var e=this;return GH.call(t.childNodes,function(n,r){r=new qH(r,e.options);var i="";return r.nodeType===3?i=r.isCode?r.nodeValue:e.escape(r.nodeValue):r.nodeType===1&&(i=JH.call(e,r)),OA(n,i)},"")}function YH(t){var e=this;return this.rules.forEach(function(n){typeof n.append=="function"&&(t=OA(t,n.append(e.options)))}),t.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function JH(t){var e=this.rules.forNode(t),n=IA.call(this,t),r=t.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+e.replacement(n,t,this.options)+r.trailing}function OA(t,e){var n=AH(t),r=CH(e),i=Math.max(t.length-n.length,e.length-r.length),o=`
597
+ `:n}};this.options=CH({},e,t),this.rules=new PA(this.options)}Xp.prototype={turndown:function(t){if(!ZH(t))throw new TypeError(t+" is not a string, or an element/document/fragment node.");if(t==="")return"";var e=IA.call(this,new BH(t,this.options));return JH.call(this,e)},use:function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.use(t[e]);else if(typeof t=="function")t(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(t,e){return this.rules.add(t,e),this},keep:function(t){return this.rules.keep(t),this},remove:function(t){return this.rules.remove(t),this},escape:function(t){return YH.reduce(function(e,n){return e.replace(n[0],n[1])},t)}};function IA(t){var e=this;return WH.call(t.childNodes,function(n,r){r=new VH(r,e.options);var i="";return r.nodeType===3?i=r.isCode?r.nodeValue:e.escape(r.nodeValue):r.nodeType===1&&(i=XH.call(e,r)),OA(n,i)},"")}function JH(t){var e=this;return this.rules.forEach(function(n){typeof n.append=="function"&&(t=OA(t,n.append(e.options)))}),t.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function XH(t){var e=this.rules.forNode(t),n=IA.call(this,t),r=t.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+e.replacement(n,t,this.options)+r.trailing}function OA(t,e){var n=PH(t),r=AH(e),i=Math.max(t.length-n.length,e.length-r.length),o=`
598
598
 
599
- `.substring(0,i);return n+o+r}function XH(t){return t!=null&&(typeof t=="string"||t.nodeType&&(t.nodeType===1||t.nodeType===9||t.nodeType===11))}const RA=(t,e)=>{const n=Oi(t),r=Oi(e),i=['- CRITICAL: Leave content EXACTLY unchanged within HTML elements that have translate="no"','- CRITICAL: Leave content EXACTLY unchanged within HTML elements that have class="notranslate"','- CRITICAL: Leave content EXACTLY unchanged between "notranslate" and "/notranslate" comments',"- Preserve all markdown formatting (headers, links, bold, italic, code blocks, lists, etc.)","- Preserve all HTML tags and attributes exactly as they are","- Maintain the original structure and formatting","- Do not translate code content within code blocks or inline code","- Do not translate URLs, email addresses, or technical identifiers",'- If you see translate="no", class="notranslate", or notranslate comments, copy that content verbatim without any changes'],o=["- Do not split translations into separate paragraphs or add extra line breaks","- Keep each translation as a single continuous text string in the array"],s=['- Return your response as a valid JSON object with a "translations" array','- The "translations" array should contain the translated texts in the same order as provided','- VALIDATION: Before responding, double-check that any translate="no", class="notranslate", or notranslate comment content remains EXACTLY the same'],a=[...i,...o,...s];return`You are a professional translator. Translate the given texts from ${n} to ${r}.
599
+ `.substring(0,i);return n+o+r}function ZH(t){return t!=null&&(typeof t=="string"||t.nodeType&&(t.nodeType===1||t.nodeType===9||t.nodeType===11))}const RA=(t,e)=>{const n=Oi(t),r=Oi(e),i=['- CRITICAL: Leave content EXACTLY unchanged within HTML elements that have translate="no"','- CRITICAL: Leave content EXACTLY unchanged within HTML elements that have class="notranslate"','- CRITICAL: Leave content EXACTLY unchanged between "notranslate" and "/notranslate" comments',"- Preserve all markdown formatting (headers, links, bold, italic, code blocks, lists, etc.)","- Preserve all HTML tags and attributes exactly as they are","- Maintain the original structure and formatting","- Do not translate code content within code blocks or inline code","- Do not translate URLs, email addresses, or technical identifiers",'- If you see translate="no", class="notranslate", or notranslate comments, copy that content verbatim without any changes'],o=["- Do not split translations into separate paragraphs or add extra line breaks","- Keep each translation as a single continuous text string in the array"],s=['- Return your response as a valid JSON object with a "translations" array','- The "translations" array should contain the translated texts in the same order as provided','- VALIDATION: Before responding, double-check that any translate="no", class="notranslate", or notranslate comment content remains EXACTLY the same'],a=[...i,...o,...s];return`You are a professional translator. Translate the given texts from ${n} to ${r}.
600
600
 
601
601
  IMPORTANT INSTRUCTIONS:
602
602
  ${a.join(`
@@ -607,29 +607,29 @@ Return a JSON object with this exact structure:
607
607
  {
608
608
  "translations": ["translated text 1", "translated text 2", ...]
609
609
  }`},DA=t=>`Translate these texts:
610
- ${JSON.stringify(t)}`,ZH="anthropic",QH="Anthropic Claude",e9="Anthropic API",t9="https://docs.anthropic.com/en/api/overview",n9="https://console.anthropic.com/settings/keys",r9=/sk-ant-api03-[a-zA-Z0-9-_]{80,}/,i9=["af,ar,be,bg,bn,bs,ca,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,ga,gl,gu,he,hi,hr,hu,hy,id,is,it,ja","ka,kk,km,kn,ko,ky,la,lt,lv,mk,ml,mn,mr,ms,mt,my,ne,nl,no,pl,pt,ro,ru,si,sk,sl,sq,sr,sv,sw,ta,te","th,tl,tr,uk,ur,uz,vi,zh"].join(",").split(","),Zp=t=>{const[e]=t.toLowerCase().split(/[-_]/);if(i9.includes(e))return e},o9={serviceId:ZH,serviceLabel:QH,apiLabel:e9,developerURL:t9,apiKeyURL:n9,apiKeyPattern:r9,markdownSupported:!0,availability:async({sourceLanguage:t,targetLanguage:e})=>!!Zp(t)&&!!Zp(e),translate:async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=Zp(e)??"",n=Zp(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://api.anthropic.com/v1/messages",o=RA(e,n),s=DA(t),a={model:"claude-3-5-haiku-latest",max_tokens:4e3,temperature:.3,system:o,messages:[{role:"user",content:s}]};try{const c=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":r,"anthropic-version":"2023-06-01","anthropic-dangerous-direct-browser-access":"true"},body:JSON.stringify(a)});if(!c.ok){const p=await c.json().catch(()=>({}));throw new Error(`Anthropic API error: ${c.status} ${c.statusText}${p.error?.message?` - ${p.error.message}`:""}`)}const u=await c.json();if(!u.content||!Array.isArray(u.content)||!u.content[0])throw new Error("Invalid response format from Anthropic API.");const d=u.content[0].text.trim();let f;try{f=JSON.parse(d)}catch{throw new Error("Failed to parse JSON response from Anthropic API.")}if(!f||!Array.isArray(f.translations))throw new Error("Invalid JSON structure in Anthropic API response.");const{translations:h}=f;if(h.length!==t.length){const p=t.length,g=h.length;throw new Error(`Translation count mismatch: expected ${p}, got ${g}`)}return h}catch(c){throw c instanceof Error?c:new Error("Failed to translate text with Anthropic API.")}}},s9="google",a9="Google Cloud Translation",l9="Cloud Translation API",c9="https://console.cloud.google.com/apis/library/translate.googleapis.com",u9="https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials",d9=/AIza[0-9A-Za-z-_]{35}/,MA=["ab,ace,ach,af,ak,alz,am,ar,as,awa,ay,az","ba,ban,bbc,be,bem,bew,bg,bho,bik,bm,bn,br,bs,bts,btx,bua","ca,ceb,cgg,chm,ckb,cnh,co,crh,crs,cs,cv,cy","da,de,din,doi,dov,dv,dz","ee,el,en,eo,es,et,eu","fa,ff,fi,fil,fj,fr,fr-CA,fr-FR,fy","ga,gaa,gd,gl,gn,gom,gu","ha,haw,he,hi,hil,hmn,hr,hrx,ht,hu,hy","id,ig,ilo,is,it,iw","ja,jv,jw","ka,kk,km,kn,ko,kri,ktu,ku,ky","la,lb,lg,li,lij,lmo,ln,lo,lt,ltg,luo,lus,lv","mai,mak,mg,mi,min,mk,ml,mn,mni-Mtei,mr,ms,ms-Arab,mt,my","ne,new,nl,no,nr,nso,nus,ny","oc,om,or","pa,pa-Arab,pag,pam,pap,pl,ps,pt,pt-BR,pt-PT","qu","rn,ro,rom,ru,rw","sa,scn,sd,sg,shn,si,sk,sl,sm,sn,so,sq,sr,ss,st,su,sv,sw,szl","ta,te,tet,tg,th,ti,tk,tl,tn,tr,ts,tt","ug,uk,ur,uz","vi","xh","yi,yo,yua,yue","zh,zh-CN,zh-TW,zu"].join(",").split(","),Qp=t=>{const e=t.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(r,i,o)=>`${i.toLowerCase()}-${o.toUpperCase()}`);if(MA.includes(e))return e;const[n]=e.split("-");if(MA.includes(n))return n},FA={serviceId:s9,serviceLabel:a9,apiLabel:l9,developerURL:c9,apiKeyURL:u9,apiKeyPattern:d9,markdownSupported:!1,availability:async({sourceLanguage:t,targetLanguage:e})=>!!Qp(t)&&!!Qp(e),translate:async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=Qp(e)??"",n=Qp(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://translation.googleapis.com/language/translate/v2",o={q:t,source:e,target:n,format:"html"};try{const s=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json","X-goog-api-key":r},body:JSON.stringify(o)});if(!s.ok){const c=await s.json().catch(()=>({}));throw new Error(`Google Translate API error: ${s.status} ${s.statusText}${c.error?.message?` - ${c.error.message}`:""}`)}const{data:a}=await s.json();return a.translations.map(c=>c.translatedText)}catch(s){throw s instanceof Error?s:new Error("Failed to translate text with Google Translate API.")}}},f9="openai",h9="OpenAI GPT",p9="OpenAI API",g9="https://platform.openai.com/docs/overview",m9="https://platform.openai.com/api-keys",v9=/sk-[a-zA-Z0-9-_]{40,}/,b9=["af,ar,be,bg,bn,bs,ca,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,ga,gl,gu,he,hi,hr,hu,hy,id,is,it,ja","ka,kk,km,kn,ko,ky,la,lt,lv,mk,ml,mn,mr,ms,mt,my,ne,nl,no,pl,pt,ro,ru,si,sk,sl,sq,sr,sv,sw,ta,te","th,tl,tr,uk,ur,uz,vi,zh"].join(",").split(","),eg=t=>{const[e]=t.toLowerCase().split(/[-_]/);if(b9.includes(e))return e},jy={google:FA,anthropic:o9,openai:{serviceId:f9,serviceLabel:h9,apiLabel:p9,developerURL:g9,apiKeyURL:m9,apiKeyPattern:v9,markdownSupported:!0,availability:async({sourceLanguage:t,targetLanguage:e})=>!!eg(t)&&!!eg(e),translate:async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=eg(e)??"",n=eg(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://api.openai.com/v1/chat/completions",o=RA(e,n),s=DA(t),a={model:"gpt-4o-mini",messages:[{role:"system",content:o},{role:"user",content:s}],temperature:.3,max_tokens:4e3,response_format:{type:"json_object"}};try{const c=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify(a)});if(!c.ok){const p=await c.json().catch(()=>({}));throw new Error(`OpenAI API error: ${c.status} ${c.statusText}${p.error?.message?` - ${p.error.message}`:""}`)}const u=await c.json();if(!u.choices||!u.choices[0]||!u.choices[0].message)throw new Error("Invalid response format from OpenAI API.");const d=u.choices[0].message.content.trim();let f;try{f=JSON.parse(d)}catch{throw new Error("Failed to parse JSON response from OpenAI API.")}if(!f||!Array.isArray(f.translations))throw new Error("Invalid JSON structure in OpenAI API response.");const{translations:h}=f;if(h.length!==t.length){const p=t.length,g=h.length;throw new Error(`Translation count mismatch: expected ${p}, got ${g}`)}return h}catch(c){throw c instanceof Error?c:new Error("Failed to translate text with OpenAI API.")}}}},tg=Qt([dt],([t])=>{const{defaultTranslationService:e="google"}=t;return jy[e]??FA}),zA=new Xp({headingStyle:"atx",bulletListMarker:"-",codeBlockStyle:"fenced"});zA.keep(["span","div"]);const _9=({draft:t,options:e})=>{const{collectionName:n,fileName:r,currentValues:i,isIndexFile:o}=t,{sourceLanguage:s,targetLanguage:a,keyPath:c="",translate:u=!1}=e,d=i[s],f={collectionName:n,fileName:r,valueMap:d,isIndexFile:o};return Object.fromEntries(Object.entries(d).map(([h,p])=>{const g=i[a][h],m=fn({...f,keyPath:h}),v=m?.widget??"string";return c&&!h.startsWith(c)||typeof p!="string"||!p||!["markdown","text","string","list"].includes(v)||v==="list"&&(m.field??m.fields)||!u&&p===g||!c&&u&&g?null:[h,{value:p,isMarkdown:v==="markdown"}]}).filter(h=>!!h))},Xd=(t,e,{count:n,sourceLanguage:r})=>{Zg.set({id:Date.now(),show:!0,status:t,message:e,count:n,sourceLanguage:r})},y9=async({currentValues:t,options:e,copingFieldMap:n})=>{const{serviceId:r,markdownSupported:i,translate:o}=se(tg),{sourceLanguage:s,targetLanguage:a}=e,c=Object.keys(n).length,u=c===1?"one":"many",d=se(dt).apiKeys?.[r]||await new Promise(f=>{gu.set({show:!0,multiple:c>1,resolve:f})});if(d){Xd("info","translation.started",{count:c,sourceLanguage:s});try{const f=await o(Object.entries(n).map(([,{value:h,isMarkdown:p}])=>p&&!i?Rv(h):h),{apiKey:d,sourceLanguage:s,targetLanguage:a});Object.entries(n).forEach(([h,{isMarkdown:p}],g)=>{const m=f[g];t[a][h]=p&&!i?zA.turndown(m):m}),Xd("success",`translation.complete.${u}`,{count:c,sourceLanguage:s})}catch(f){Xd("error","translation.error",{count:c,sourceLanguage:s}),console.error(f)}}},w9=({currentValues:t,options:e,copingFieldMap:n})=>{const{sourceLanguage:r,targetLanguage:i}=e,o=Object.keys(n).length,s=o===1?"one":"many";Object.entries(n).forEach(([a,{value:c}])=>{t[i][a]=c}),Xd("success",`copy.complete.${s}`,{count:o,sourceLanguage:r})},jA=async t=>{const{sourceLanguage:e,translate:n=!1}=t,r=se(We),{currentValues:i}=r,o=_9({draft:r,options:t}),s=Object.keys(o).length;if(!s){Xd("info",`${n?"translation":"copy"}.none`,{count:s,sourceLanguage:e});return}n?await y9({currentValues:i,options:t,copingFieldMap:o}):w9({currentValues:i,options:t,copingFieldMap:o}),We.update(a=>({...a,currentValues:i}))};function By(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",o),r=()=>V(tg,"$translator",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"keyPath",3,""),c=R(e,"translate",3,!1);const u=async({sourceLanguage:h,targetLanguage:p})=>!n()?.currentLocales[p]||!n().currentLocales[h]||!!a()&&!On(n().currentValues[h])[a()]||!c()&&!!a()&&On(n().currentValues[h])[a()]===On(n().currentValues[p])[a()]||c()&&!await r()?.availability({sourceLanguage:h,targetLanguage:p});var d=X(),f=M(d);it(f,17,()=>e.otherLocales,lr,(h,p)=>{const g=_(()=>({sourceLanguage:l(p),targetLanguage:e.locale}));var m=X(),v=M(m);Xt(v,()=>u(l(g)),null,(b,y)=>{{let w=_(()=>i()(c()?"translate_from_x":"copy_from_x",{values:{locale:Oi(l(p))}}));mt(b,{get label(){return l(w)},get disabled(){return l(y)},onclick:()=>{jA({...l(g),keyPath:a(),translate:c()})}})}}),$(h,m)}),$(t,d),ce(),s()}var x9=U("<section><!></section>");const k9={hash:"svelte-wzztxu",code:"section.svelte-wzztxu {padding:var(--field-editor-padding);}section.svelte-wzztxu:not(:last-child) {border-width:0 0 1px;border-color:var(--sui-secondary-border-color);}section.svelte-wzztxu > * {margin-inline:auto !important;max-width:768px;}section.svelte-wzztxu > header {display:flex;align-items:center;margin:0 -8px 8px;height:var(--sui-button-small-height);}section.svelte-wzztxu > header h4 {margin-inline:8px 0;font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}section.svelte-wzztxu > header .required {margin-block:2px 0;margin-inline:2px 0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-large);}"};function BA(t,e){ke(t,k9);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","children"]);var i=x9();gt(i,()=>({role:"group",class:"field",...r}),void 0,void 0,"svelte-wzztxu");var o=z(i);Me(o,()=>n()??Be),$(t,i)}function UA(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",o),r=()=>V(tg,"$translator",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"size",3,"medium"),c=R(e,"keyPath",3,"");const u=_(()=>!n()?.currentLocales[e.locale]),d=async({sourceLanguage:m,targetLanguage:v})=>l(u)||!n()?.currentLocales[m]||!await r()?.availability({sourceLanguage:m,targetLanguage:v});var f=X(),h=M(f);{var p=m=>{const v=_(()=>{const[k]=e.otherLocales;return{otherLocale:k}}),b=_(()=>i()("translate_from_x",{values:{locale:Oi(l(v).otherLocale)}})),y=_(()=>({sourceLanguage:l(v).otherLocale,targetLanguage:e.locale}));var w=X(),E=M(w);Xt(E,()=>d(l(y)),null,(k,S)=>{Ze(k,{variant:"ghost",get size(){return a()},iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(b)},get title(){return l(b)},get disabled(){return l(S)},onclick:()=>{jA({...l(y),keyPath:c(),translate:!0})},startIcon:x=>{Je(x,{name:"translate"})},$$slots:{startIcon:!0}})}),$(m,w)},g=m=>{{const v=w=>{Je(w,{name:"translate"})},b=w=>{{let E=_(()=>i()("translation_options"));ir(w,{get"aria-label"(){return l(E)},children:(k,S)=>{By(k,{get locale(){return e.locale},get otherLocales(){return e.otherLocales},get keyPath(){return c()},translate:!0})},$$slots:{default:!0}})}};let y=_(()=>i()("translate"));Ir(m,{variant:"ghost",get size(){return a()},iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(y)},get disabled(){return l(u)},endIcon:v,popup:b,$$slots:{endIcon:!0,popup:!0}})}};q(h,m=>{e.otherLocales.length===1?m(p):m(g,!1)})}$(t,f),ce(),s()}var S9=U('<div role="alert" class="validation svelte-6wra4i" aria-live="polite"><div role="none" class="svelte-6wra4i"><!> <!></div></div>');const E9={hash:"svelte-6wra4i",code:".validation.svelte-6wra4i {color:var(--sui-error-foreground-color) !important;font-size:var(--sui-font-size-small);}.validation.svelte-6wra4i div:where(.svelte-6wra4i) {display:flex;align-items:center;gap:4px;margin:4px 0;}.validation.svelte-6wra4i div:where(.svelte-6wra4i) .icon {flex:none;font-size:16px; /* !hardcoded */}"};function Uy(t,e){ke(t,E9);var n=S9(),r=z(n),i=z(r);Je(i,{name:"error"});var o=j(i,2);Me(o,()=>e.children),Z(()=>Ee(n,"id",e.id)),$(t,n)}function $9(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1);_b(t,{get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get checked(){return n()},set checked(s){n(s)}}),ce()}var T9=U("<p> </p>");function C9(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",3,!1);var s=X(),a=M(s);{var c=u=>{var d=T9(),f=z(d);Z(h=>te(f,h),[()=>n()(`boolean.${o()}`)]),$(u,d)};q(a,u=>{typeof o()=="boolean"&&u(c)})}$(t,s),ce(),i()}function A9(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=Jn("field-editor")??{};let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1),d=ie(""),f=ie("");const h=_(()=>tt(e.fieldConfig.default_language,"")),p=_(()=>tt(e.fieldConfig.allow_language_selection,!0)),g=_(()=>tt(e.fieldConfig.output_code_only,!1)),m=_(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),v=_(()=>On(n()?.[o][e.locale])??{}),b=_(()=>`${e.keyPath}.${l(m).code}`),y=_(()=>`${e.keyPath}.${l(m).lang}`),w=()=>{if(l(g))typeof s()!="string"?G(d,""):l(d)!==s()&&G(d,s(),!0);else{const C=l(v)[l(b)],x=l(v)[l(y)]||l(h);typeof C!="string"?G(d,""):l(d)!==C&&G(d,C,!0),typeof x!="string"?G(f,""):l(f)!==x&&G(f,x,!0)}},E=()=>{l(g)?s()!==l(d)&&s(l(d)):n()&&(s({}),l(v)[l(b)]!==l(d)&&_t(We,Se(n)[o][e.locale][l(b)]=l(d),Se(n)),l(v)[l(y)]!==l(f)&&_t(We,Se(n)[o][e.locale][l(y)]=l(f),Se(n)))};De(()=>{l(v),Se(()=>{w()})}),De(()=>{l(d),l(f),Se(()=>{E()})});var k=X(),S=M(k);Xt(S,Lt,null,C=>{var x=X(),T=M(x);Xn(T,()=>JSON.stringify(e.fieldConfig),A=>{P8(A,{get showLanguageSwitcher(){return l(p)},flex:!0,get readonly(){return c()},get required(){return a()},get invalid(){return u()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get code(){return l(d)},set code(P){G(d,P,!0)},get lang(){return l(f)},set lang(P){G(f,P,!0)}})}),$(C,x)}),$(t,k),ce(),i()}var P9=U("<pre> </pre>");function L9(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>tt(e.fieldConfig.default_language,"")),s=_(()=>tt(e.fieldConfig.output_code_only,!1)),a=_(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),c=_(()=>On(n()?.currentValues[e.locale])??{}),u=_(()=>`${e.keyPath}.${l(a).code}`),d=_(()=>`${e.keyPath}.${l(a).lang}`),f=_(()=>l(s)?e.currentValue:l(c)[l(u)]),h=_(()=>l(s)?l(o):l(c)[l(d)]);var p=X(),g=M(p);{var m=v=>{var b=P9(),y=z(b);Z(()=>{Zt(b,1,Dx(l(h)?`language-${l(h)}`:void 0)),te(y,l(f))}),$(v,b)};q(g,v=>{l(f)&&v(m)})}$(t,p),ce(),i()}var N9=U(" <!>",1),I9=U('<span role="none" class="value svelte-1usff15"><!> <!></span>'),O9=U('<div role="none" class="svelte-1usff15"><input type="color" class="svelte-1usff15"/> <!> <!></div>');const R9={hash:"svelte-1usff15",code:"div.svelte-1usff15 {display:flex;align-items:center;gap:8px;}div.svelte-1usff15 .value:where(.svelte-1usff15) {display:flex;align-items:center;gap:8px;}div.svelte-1usff15 .value:where(.svelte-1usff15) .sui.text-input {width:80px;min-width:0;}div.svelte-1usff15 .value:where(.svelte-1usff15) .sui.slider {padding:8px;--sui-slider-base-width: 80px;}input.svelte-1usff15 {font-family:var(--sui-textbox-font-family);}"};function D9(t,e){const n=Rn();le(e,!0),ke(t,R9);const r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1),d=ie(""),f=ie(255);const h=_(()=>tt(e.fieldConfig.allowInput,!1)),p=_(()=>tt(e.fieldConfig.enableAlpha,!1)),g=/^#[0-9a-f]{6}$/,m=/^(?<rgb>#[0-9a-f]{6})(?<a>[0-9a-f]{2})?$/,v=()=>{if(typeof s()!="string")return;const{rgb:x,a:T="ff"}=s().match(m)?.groups??{};if(x&&l(d)!==x&&G(d,x,!0),x&&l(p)){const A=Number.parseInt(`0x${T}`,16);l(f)!==A&&G(f,A,!0)}},b=()=>{let x=g.test(l(d))?l(d):"";x&&l(p)&&(x+=l(f).toString(16).padStart(2,"0")),s()!==x&&s(x)};De(()=>{s(),Se(()=>{v()})}),De(()=>{l(d),l(f),Se(()=>{b()})});var y=O9(),w=z(y),E=j(w,2);{var k=x=>{var T=I9(),A=z(T);{var P=N=>{Cn(N,{get id(){return`${n}-input`},get invalid(){return u()},get readonly(){return c()},get required(){return a()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(d)},set value(D){G(d,D,!0)}})};q(A,N=>{l(h)&&N(P)})}var L=j(A,2);{var I=N=>{var D=N9(),B=M(D),H=j(B);{let W=_(()=>!l(d)),Y=_(()=>r()("opacity"));kU(H,{min:0,max:255,get disabled(){return l(W)},get"aria-label"(){return l(Y)},get value(){return l(f)},set value(O){G(f,O,!0)}})}Z(W=>te(B,`${W??""} `),[()=>r()("opacity")]),$(N,D)};q(L,N=>{l(p)&&N(I)})}$(x,T)};q(E,x=>{(l(h)||l(p))&&x(k)})}var S=j(E,2);{var C=x=>{{let T=_(()=>r()("clear")),A=_(()=>!l(d)),P=_(()=>`${n}-picker ${l(h)?`${n}-input`:""}`);Ze(x,{variant:"tertiary",get label(){return l(T)},get disabled(){return l(A)},get"aria-controls"(){return l(P)},onclick:()=>{G(d,""),G(f,255)}})}};q(S,x=>{!c()&&!a()&&x(C)})}Z(()=>{Ee(w,"id",`${n}-picker`),w.readOnly=c(),Ee(w,"aria-invalid",u()),Ee(w,"aria-readonly",c()),Ee(w,"aria-required",a()),Ee(w,"aria-labelledby",`${e.fieldId??""}-label`),Ee(w,"aria-errormessage",`${e.fieldId??""}-error`)}),Sf(w,()=>l(d),x=>G(d,x)),$(t,y),ce(),o()}var M9=U('<p><span role="none" class="preview svelte-1pgn31g"><span role="none" class="color svelte-1pgn31g"></span> <span role="none" class="value"> </span> <span role="none" class="value"> </span></span></p>');const F9={hash:"svelte-1pgn31g",code:".preview.svelte-1pgn31g {display:inline-flex;align-items:center;gap:8px;}.preview.svelte-1pgn31g .color:where(.svelte-1pgn31g) {display:block;width:24px;height:24px;border-radius:24px;}"};function z9(t,e){le(e,!0),ke(t,F9);const n=_(()=>tt(e.fieldConfig.enableAlpha,!1)),r=u=>Number.parseInt(`0x${u}`,16),i=/^#(?<r>[0-9a-f]{2})(?<g>[0-9a-f]{2})(?<b>[0-9a-f]{2})(?<a>[0-9a-f]{2})?$/,o=_(()=>{const{r:u,g:d,b:f,a:h}=e.currentValue?.match(i)?.groups??{};return u?`rgb(${r(u)} ${r(d)} ${r(f)}${l(n)&&h?` / ${Math.round(r(h)/255*100)}%`:""})`:""});var s=X(),a=M(s);{var c=u=>{var d=M9(),f=z(d),h=z(f);let p;var g=j(h,2),m=z(g),v=j(g,2),b=z(v);Z(y=>{p=Vi(h,"",p,y),te(m,e.currentValue),te(b,l(o))},[()=>({"background-color":e.currentValue})]),$(u,d)};q(a,u=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&u(c)})}$(t,s),ce()}function j9(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=Jn("field-editor")??{};let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1);const d=_(()=>tt(e.fieldConfig.value,"")),f=_(()=>n()?.isIndexFile??!1),h=_(()=>n()?.collectionName??""),p=_(()=>n()?.fileName),g=_(()=>On(n()?.[o][e.locale])??{}),m=_(()=>Ql(e.locale)),v=()=>{const[y]=e.keyPath.split(".").splice(-2,1);return y?.match(/^\d+$/)?Number(y):void 0},b=()=>{if(!Object.keys(l(g)).includes(e.keyPath))return;const y=l(d)==="{{index}}"?v()??"":l(d).replaceAll(/{{(.+?)}}/g,(w,E)=>{if(E==="index")return String(v()??"");if(!E.startsWith("fields."))return"";const k=dc({collectionName:l(h),fileName:l(p),valueMap:l(g),keyPath:E.replace(/^fields\./,""),locale:e.locale,isIndexFile:l(f)});return Array.isArray(k)?l(m).format(k):String(k)});s()!==y&&s(y)};De(()=>{l(g),Se(()=>{b()})});{let y=_(()=>String(s()));Cn(t,{get value(){return l(y)},flex:!0,get readonly(){return c()},get required(){return a()},get invalid(){return u()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`}})}ce(),i()}var B9=U('<p dir="auto"> </p>');function U9(t,e){le(e,!0);var n=B9(),r=z(n);Z(i=>{Ee(n,"lang",i),te(r,e.currentValue),n.dir=n.dir},[()=>wr(e.locale)]),$(t,n),ce()}var q9=U('<span role="none" class="utc svelte-boo8ot">UTC</span>'),V9=U('<div role="none" class="svelte-boo8ot"><input/> <!> <!> <!></div>');const H9={hash:"svelte-boo8ot",code:"div.svelte-boo8ot {display:flex;align-items:center;}.utc.svelte-boo8ot {margin:0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function K9(t,e){le(e,!0),ke(t,H9);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=ie("");const d=_(()=>Os(e.fieldConfig)),f=_(()=>l(d).dateOnly),h=_(()=>l(d).timeOnly),p=_(()=>l(d).utc),g=()=>{const x=lD(o(),e.fieldConfig);x!==void 0&&x!==l(u)&&G(u,x,!0)},m=()=>{const x=j1(l(u),o(),e.fieldConfig);x!==void 0&&x!==o()&&Number(ec(x,e.fieldConfig))!==Number(ec(o(),e.fieldConfig))&&o(x)};De(()=>{o(),Se(()=>{g()})}),De(()=>{l(u),Se(()=>{m()})});var v=V9(),b=z(v),y=j(b,2);{var w=x=>{var T=q9();$(x,T)};q(y,x=>{l(p)&&x(w)})}var E=j(y,2);{var k=x=>{{let T=_(()=>n()(l(f)?"today":"now"));Ze(x,{variant:"tertiary",get label(){return l(T)},onclick:()=>{const A=z1(e.fieldConfig);G(u,l(p)?A.replace(/:00\.000Z$/,""):A,!0)}})}};q(E,x=>{a()||x(k)})}var S=j(E,2);{var C=x=>{{let T=_(()=>n()("clear")),A=_(()=>!o());Ze(x,{variant:"tertiary",get label(){return l(T)},get disabled(){return l(A)},onclick:()=>{o("")}})}};q(S,x=>{!a()&&!s()&&x(C)})}Z(()=>{Ee(b,"type",l(f)?"date":l(h)?"time":"datetime-local"),b.readOnly=a(),Ee(b,"aria-readonly",a()),Ee(b,"aria-required",s()),Ee(b,"aria-invalid",c()),Ee(b,"aria-labelledby",`${e.fieldId??""}-label`),Ee(b,"aria-errormessage",`${e.fieldId??""}-error`)}),Sf(b,()=>l(u),x=>G(u,x)),$(t,v),ce(),i()}var G9=U('<p dir="auto"> <!></p>');function W9(t,e){le(e,!0);const n=_(()=>B1({locale:e.locale,fieldConfig:e.fieldConfig,currentValue:e.currentValue}));var r=X(),i=M(r);{var o=s=>{var a=G9(),c=z(a),u=j(c);{var d=f=>{var h=Ie("UTC");$(f,h)};q(u,f=>{e.fieldConfig.picker_utc&&f(d)})}Z(f=>{Ee(a,"lang",f),te(c,`${l(n)??""} `),a.dir=a.dir},[()=>wr(e.locale)]),$(s,a)};q(i,s=>{l(n)&&s(o)})}$(t,r),ce()}var Y9=U('<span role="none" class="icon check-background"><!></span>'),J9=U('<div role="none"><!></div>');const X9={hash:"svelte-1fitgoo",code:".wrapper.svelte-1fitgoo {display:contents;}.wrapper.svelte-1fitgoo [role=option] {position:relative;}.wrapper.svelte-1fitgoo [role=option] > .icon.check {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background {border-color:var(--sui-checkbox-border-color);background-color:var(--sui-checkbox-background-color);}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background .icon {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=true] .check-background {border-color:var(--sui-primary-accent-color);color:var(--sui-primary-accent-color-inverted);background-color:var(--sui-primary-accent-color);}.wrapper.svelte-1fitgoo [role=option] .check-background {display:flex;justify-content:center;align-items:center;border-width:1px;border-radius:var(--sui-checkbox-border-radius);width:20px;height:20px;pointer-events:none;}.wrapper.svelte-1fitgoo [role=option] .check-background .icon {color:inherit !important;font-size:20px;}.wrapper.grid.svelte-1fitgoo .check-background {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.wrapper.list.svelte-1fitgoo .check-background {margin-inline-start:16px;}"};function qA(t,e){ke(t,X9);let n=R(e,"viewType",3,"grid");var r=J9(),i=z(r);kr(i,{label:"",get value(){return e.value},get selected(){return e.selected},get onChange(){return e.onChange},startIcon:s=>{var a=X(),c=M(a);{var u=d=>{var f=Y9(),h=z(f);Je(h,{name:"check",class:"icon check"}),$(d,f)};q(c,d=>{e.multiple&&d(u)})}$(s,a)},children:(s,a)=>{var c=X(),u=M(c);Me(u,()=>e.children??Be),$(s,c)},$$slots:{startIcon:!0,default:!0}}),Z(()=>Zt(r,1,`wrapper ${n()??""}`,"svelte-1fitgoo")),$(t,r)}var Z9=U('<div role="none"><!></div>');const Q9={hash:"svelte-umbokg",code:".wrapper.svelte-umbokg {display:contents;}.wrapper.svelte-umbokg .listbox {gap:4px;overflow-x:hidden;overflow-y:auto;border-width:0;max-height:calc(100% - var(--sui-focus-ring-width) * 2);}.wrapper.svelte-umbokg .listbox .option button {border-radius:var(--sui-control-medium-border-radius);padding:4px;width:100%;height:auto;transition:none;}.wrapper.svelte-umbokg .listbox .option button:focus-visible {outline-color:transparent;}.wrapper.svelte-umbokg .listbox .option button .preview {flex:none;border-radius:var(--sui-control-medium-border-radius);aspect-ratio:1/1;object-fit:contain;}.wrapper.svelte-umbokg .listbox .name {min-height:calc(var(--sui-font-size-default) * 2);white-space:normal;line-height:var(--sui-line-height-compact);}.wrapper.svelte-umbokg .listbox.grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));height:auto;max-height:none;}.wrapper.svelte-umbokg .listbox.grid .option button {flex-direction:column;justify-content:flex-start;}.wrapper.svelte-umbokg .listbox.grid .option button .preview {width:100%;height:auto;}.wrapper.svelte-umbokg .listbox.grid .option button .name {flex:none;margin:4px 0 12px;padding:0 8px;width:100%;min-height:calc(var(--sui-font-size-default) * 3);}.wrapper.svelte-umbokg .listbox.grid button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}.wrapper.svelte-umbokg :not(.wrapper.show-title) .listbox.grid .option .name {position:absolute;left:-99999px;}.wrapper.svelte-umbokg .listbox.list .option button {gap:16px;}.wrapper.svelte-umbokg .listbox.list .option button .preview {width:64px;}.wrapper.svelte-umbokg .listbox.list .option button .name {flex:auto;padding-inline:0 8px;}.wrapper.svelte-umbokg .listbox.list .option button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}"};function VA(t,e){le(e,!0),ke(t,Q9);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"viewType",3,"grid"),s=R(e,"gridId",3,void 0),a=R(e,"multiple",3,!1),c=R(e,"showTitle",3,!1),u=R(e,"onChange",3,void 0),d=R(e,"children",3,void 0);var f=Z9();let h;var p=z(f);{let g=_(()=>n()("assets_dialog.available_images"));_c(p,{get id(){return s()},get class(){return o()},get multiple(){return a()},get"aria-label"(){return l(g)},onChange:m=>{u()?.(m.detail)},children:(m,v)=>{var b=X(),y=M(b);Me(y,()=>d()??Be),$(m,b)},$$slots:{default:!0}})}Z(g=>h=Zt(f,1,"wrapper svelte-umbokg",null,h,g),[()=>({"show-title":c()})]),$(t,f),ce(),i()}var eK=U('<span role="alert"> </span>'),tK=U('<span role="alert"> </span>'),nK=U('<span role="alert"> </span>'),rK=U('<span role="none" class="name"> </span>'),iK=U("<!> <!>",1),oK=U('<div role="none" class="input-outer svelte-mqll9n"><!></div>'),sK=U('<div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div>',1),aK=U('<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>',1),lK=U('<span role="alert"> </span>');const cK={hash:"svelte-mqll9n",code:"p.svelte-mqll9n {margin:0 0 8px;}.input-outer.svelte-mqll9n {width:400px;max-width:100%;text-align:center;}"};function uK(t,e){le(e,!0),ke(t,cK);const n=()=>V(Rl,"$selectAssetsView",s),r=()=>V(dt,"$prefs",s),i=()=>V(ue,"$_",s),o=()=>V(ln,"$isSmallScreen",s),[s,a]=me();let c=R(e,"kind",3,"image"),u=R(e,"multiple",3,!1),d=R(e,"searchTerms",3,""),f=R(e,"gridId",3,void 0),h=R(e,"selectedResources",31,()=>St([]));const p=_(()=>tt(e.serviceProps.serviceType,"stock_assets")),g=_(()=>tt(e.serviceProps.serviceId,"")),m=_(()=>tt(e.serviceProps.serviceLabel,"")),v=_(()=>tt(e.serviceProps.hotlinking,!1)),b=_(()=>tt(e.serviceProps.authType,"api_key")),y=_(()=>tt(e.serviceProps.developerURL,"")),w=_(()=>tt(e.serviceProps.apiKeyURL,"")),E=_(()=>e.serviceProps.apiKeyPattern),k=_(()=>e.serviceProps.init),S=_(()=>e.serviceProps.signIn),C=_(()=>e.serviceProps.list),x=_(()=>e.serviceProps.search),T=_(()=>n()?.type),A=St({userName:"",password:""});let P=ie(!0),L=ie(!1),I=ie(""),N=ie(""),D=ie(""),B=ie("initial"),H=ie(null),W=ie(void 0),Y=0;const O=async(ne="")=>{G(H,null),ne=ne.trim();const ae={kind:c(),apiKey:l(I),userName:l(N),password:l(D)};try{G(H,await(ne?l(x)(ne,ae):l(C)(ae)),!0)}catch(fe){G(W,"search_fetch_failed"),console.error(fe)}},F=async ne=>{const{downloadURL:ae,fileName:fe,credit:be}=ne;if(l(v))return{url:ae,credit:be};try{const pe=await fetch(ae),{ok:he,status:ge}=pe;if(!he)throw new Error(`The response returned with HTTP status ${ge}.`);const ve=await pe.blob(),_e=new File([ve],fe,{type:ve.type});return{url:ae,credit:be,file:_e}}catch(pe){G(W,"image_fetch_failed"),console.error(pe)}},K=ne=>h().some(ae=>ae.url===ne.downloadURL),J=async(ne,ae)=>{const fe=h().filter(be=>be.url!==ne.downloadURL);if(ae){const be=await F(ne);be&&h([...fe,be])}else h(fe)};Ft(()=>{(async()=>(typeof l(k)=="function"&&(G(P,!1),G(P,await l(k)(),!0)),l(P)&&(G(I,r().apiKeys?.[l(g)]??"",!0),(ne=>{var ae=lo(ne,2);G(N,ae[0],!0),G(D,ae[1],!0)})((r().logins?.[l(g)]??"").split(" ")),G(L,!!l(I)||!!l(D),!0),G(H,null),l(L)&&O())))()}),De(()=>{d(),window.clearTimeout(Y),Y=window.setTimeout(()=>{l(L)&&O(d())},1e3)});var Q=X(),oe=M(Q);{var re=ne=>{var ae=X(),fe=M(ae);{var be=he=>{hr(he,{children:(ge,ve)=>{var _e=eK(),$e=z(_e);Z(Ce=>te($e,Ce),[()=>i()(`assets_dialog.error.${l(W)}`)]),$(ge,_e)},$$slots:{default:!0}})},pe=he=>{var ge=X(),ve=M(ge);{var _e=Ce=>{hr(Ce,{children:(Re,He)=>{var Ye=tK(),Ue=z(Ye);Z(Te=>te(Ue,Te),[()=>i()("searching")]),$(Re,Ye)},$$slots:{default:!0}})},$e=Ce=>{var Re=X(),He=M(Re);{var Ye=Te=>{hr(Te,{children:(ze,Oe)=>{var Ae=nK(),we=z(Ae);Z(Pe=>te(we,Pe),[()=>i()("no_files_found")]),$(ze,Ae)},$$slots:{default:!0}})},Ue=Te=>{VA(Te,{get viewType(){return l(T)},get gridId(){return f()},get multiple(){return u()},children:(ze,Oe)=>{Ma(ze,{get items(){return l(H)},itemKey:"id",renderItem:(we,Pe=Be)=>{var ye=X(),ot=M(ye);Xt(ot,Lt,null,Qe=>{const Ne=_(()=>{const{id:je,previewURL:Xe,description:st,kind:lt}=Pe();return{id:je,previewURL:Xe,description:st,_kind:lt}});{let je=_(()=>K(Pe()));qA(Qe,{get value(){return l(Ne).id},get viewType(){return l(T)},get multiple(){return u()},get selected(){return l(je)},onChange:({detail:{selected:Xe}})=>{J(Pe(),Xe)},children:(Xe,st)=>{var lt=iK(),xt=M(lt);Ro(xt,{get kind(){return l(Ne)._kind},get src(){return l(Ne).previewURL},variant:"tile",crossorigin:"anonymous"});var Yt=j(xt,2);{var wn=rn=>{var on=rK(),pt=z(on);Z(()=>te(pt,l(Ne).description)),$(rn,on)};q(Yt,rn=>{(!o()||l(T)==="list")&&rn(wn)})}$(Xe,lt)},$$slots:{default:!0}})}}),$(we,ye)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})};q(He,Te=>{l(H).length?Te(Ue,!1):Te(Ye)},!0)}$(Ce,Re)};q(ve,Ce=>{l(H)?Ce($e,!1):Ce(_e)},!0)}$(he,ge)};q(fe,he=>{l(W)?he(be):he(pe,!1)})}$(ne,ae)},ee=ne=>{var ae=X(),fe=M(ae);{var be=he=>{hr(he,{children:(ge,ve)=>{var _e=aK(),$e=M(_e),Ce=z($e);{var Re=Ae=>{var we=X(),Pe=M(we);cr(Pe,()=>Nr.sanitize(i()("prefs.media.stock_photos.description",{values:{service:l(m),homeHref:`href="${l(y)}"`,apiKeyHref:`href="${l(w)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(Ae,we)};q(Ce,Ae=>{l(p)==="stock_assets"&&Ae(Re)})}var He=j(Ce,2);{var Ye=Ae=>{var we=X(),Pe=M(we);cr(Pe,()=>Nr.sanitize(i()(`cloud_storage.auth.${l(B)}`,{values:{service:l(m)}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(Ae,we)};q(He,Ae=>{l(p)==="cloud_storage"&&Ae(Ye)})}var Ue=j($e,2);{var Te=Ae=>{var we=oK(),Pe=z(we);{let ye=_(()=>i()("prefs.media.stock_photos.field_label",{values:{service:l(m)}}));Cn(Pe,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(ye)},oninput:ot=>{const Qe=ot.target.value.trim();l(E)?.test(Qe)&&(G(I,Qe,!0),G(L,!0),_t(dt,Se(r).apiKeys??={},Se(r)),_t(dt,Se(r).apiKeys[l(g)]=l(I),Se(r)),O())}})}$(Ae,we)};q(Ue,Ae=>{l(b)==="api_key"&&Ae(Te)})}var ze=j(Ue,2);{var Oe=Ae=>{var we=sK(),Pe=M(we),ye=z(Pe);{let Xe=_(()=>i()("user_name")),st=_(()=>l(B)==="requested");Cn(ye,{flex:!0,spellcheck:"false",get"aria-label"(){return l(Xe)},get disabled(){return l(st)},get value(){return A.userName},set value(lt){A.userName=lt}})}var ot=j(Pe,2),Qe=z(ot);{let Xe=_(()=>i()("password")),st=_(()=>l(B)==="requested");n6(Qe,{get"aria-label"(){return l(Xe)},get disabled(){return l(st)},get value(){return A.password},set value(lt){A.password=lt}})}var Ne=j(ot,2),je=z(Ne);{let Xe=_(()=>i()("sign_in")),st=_(()=>!A.userName||!A.password||l(B)==="requested");Ze(je,{variant:"secondary",get label(){return l(Xe)},get disabled(){return l(st)},onclick:async()=>{G(B,"requested"),A.userName=A.userName.trim(),A.password=A.password.trim(),await l(S)?.(A.userName,A.password)?(G(B,"success"),G(N,A.userName,!0),G(D,A.password,!0),G(L,!0),_t(dt,Se(r).logins??={},Se(r)),_t(dt,Se(r).logins[l(g)]=[l(N),l(D)].join(" "),Se(r)),O()):G(B,"error")}})}$(Ae,we)};q(ze,Ae=>{l(b)==="password"&&Ae(Oe)})}$(ge,_e)},$$slots:{default:!0}})},pe=he=>{hr(he,{children:(ge,ve)=>{var _e=lK(),$e=z(_e);Z(Ce=>te($e,Ce),[()=>i()("cloud_storage.invalid")]),$(ge,_e)},$$slots:{default:!0}})};q(fe,he=>{l(P)?he(be):he(pe,!1)},!0)}$(ne,ae)};q(oe,ne=>{l(L)?ne(re):ne(ee,!1)})}$(t,Q),ce(),a()}const Zd=t=>(t=t.trim(),t?t.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase():""),Xc=({value:t,terms:e})=>Zd(t).includes(e),HA=(t,e=Be)=>{var n=X(),r=M(n);cr(r,()=>Nr.sanitize(e().replace(/([-_.])/g,"$1<wbr>"),{ALLOWED_TAGS:["wbr"]})),$(t,n)};var dK=U('<div role="none" class="unsaved svelte-1ong0f1"> </div>'),fK=U('<strong class="svelte-1ong0f1"><!></strong>'),hK=U("<!>/",1),pK=U('<div role="none" class="unsaved svelte-1ong0f1"> </div>'),gK=U('<span role="none" class="name svelte-1ong0f1"><!> <!></span>'),mK=U("<!> <!> <!>",1),vK=U('<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>'),bK=U('<span role="none"> </span>');const _K={hash:"svelte-1ong0f1",code:".grid-wrapper.svelte-1ong0f1 {overflow-y:auto;height:100%;}.grid-wrapper.svelte-1ong0f1 [role=listbox] {background-color:transparent;}.grid-wrapper.svelte-1ong0f1 [role=listbox].grid .unsaved {position:absolute;inset-block-start:8px;inset-inline-end:8px;z-index:1;}.grid-wrapper.svelte-1ong0f1 [role=listbox].list .name {display:flex;gap:8px;align-items:center;justify-content:space-between;}.unsaved.svelte-1ong0f1 {display:flex;justify-content:center;align-items:center;border-color:var(--sui-info-border-color);border-radius:4px;padding:2px 6px;color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);font-size:var(--sui-font-size-small);}.name.svelte-1ong0f1 {color:var(--sui-tertiary-foreground-color);}.name.svelte-1ong0f1 strong:where(.svelte-1ong0f1) {color:var(--sui-primary-foreground-color);font-weight:var(--sui-font-weight-normal);}"};function KA(t,e){le(e,!0),ke(t,_K);const n=()=>V(ue,"$_",i),r=()=>V(ln,"$isSmallScreen",i),[i,o]=me();let s=R(e,"multiple",3,!1),a=R(e,"assets",19,()=>[]),c=R(e,"viewType",3,"grid"),u=R(e,"searchTerms",3,""),d=R(e,"basePath",3,void 0),f=R(e,"gridId",3,void 0),h=R(e,"checkerboard",3,!1),p=R(e,"selectedResources",31,()=>St([])),g=R(e,"onSelect",3,void 0);const m=_(()=>u()?a().filter(({name:S})=>Zd(S).includes(u())):a()),v=S=>p().some(C=>an(C.asset,S)),b=(S,C)=>{const x=p().filter(T=>!an(T.asset,S));C?(p([...x,{asset:S}]),g()?.({asset:S})):p(x)};var y=X(),w=M(y);{var E=S=>{var C=vK(),x=z(C);VA(x,{get multiple(){return s()},get gridId(){return f()},get viewType(){return c()},showTitle:!0,children:(T,A)=>{Ma(T,{get items(){return l(m)},itemKey:"path",renderItem:(L,I=Be)=>{var N=X(),D=M(N);Xt(D,Lt,null,B=>{const H=_(()=>{const{kind:O,name:F,path:K,unsaved:J,folder:Q}=I();return{kind:O,name:F,path:K,unsaved:J,folder:Q}}),W=_(()=>d()&&!l(H).folder.entryRelative?tn(l(H).path.replace(d(),"")):l(H).name),Y=_(()=>l(W).split("/"));{let O=_(()=>v(I()));qA(B,{get value(){return l(H).path},get viewType(){return c()},get multiple(){return s()},get selected(){return l(O)},onChange:({detail:{selected:F}})=>{b(I(),F)},children:(F,K)=>{var J=mK(),Q=M(J);{var oe=ae=>{var fe=dK(),be=z(fe);Z(pe=>te(be,pe),[()=>n()("assets_dialog.unsaved")]),$(ae,fe)};q(Q,ae=>{c()==="grid"&&l(H).unsaved&&ae(oe)})}var re=j(Q,2);Ro(re,{get kind(){return l(H).kind},get asset(){return I()},variant:"tile",get checkerboard(){return h()}});var ee=j(re,2);{var ne=ae=>{var fe=gK(),be=z(fe);xr(be,{lines:2,children:(ge,ve)=>{var _e=X(),$e=M(_e);it($e,17,()=>l(Y),lr,(Ce,Re,He)=>{var Ye=X(),Ue=M(Ye);{var Te=Oe=>{var Ae=fK(),we=z(Ae);HA(we,()=>l(Re)),$(Oe,Ae)},ze=Oe=>{var Ae=hK(),we=M(Ae);HA(we,()=>l(Re)),$(Oe,Ae)};q(Ue,Oe=>{He===l(Y).length-1?Oe(Te):Oe(ze,!1)})}$(Ce,Ye)}),$(ge,_e)},$$slots:{default:!0}});var pe=j(be,2);{var he=ge=>{var ve=pK(),_e=z(ve);Z($e=>te(_e,$e),[()=>n()("assets_dialog.unsaved")]),$(ge,ve)};q(pe,ge=>{c()==="list"&&l(H).unsaved&&ge(he)})}$(ae,fe)};q(ee,ae=>{(!r()||c()==="list")&&ae(ne)})}$(F,J)},$$slots:{default:!0}})}}),$(L,N)},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),$(S,C)},k=S=>{hr(S,{children:(C,x)=>{var T=bK(),A=z(T);Z(P=>te(A,P),[()=>n()("no_files_found")]),$(C,T)},$$slots:{default:!0}})};q(w,S=>{l(m).length?S(E):S(k,!1)})}$(t,y),ce(),o()}function yK(t,e){le(e,!0);const n=()=>V(Rl,"$selectAssetsView",r),[r,i]=me();let o=R(e,"multiple",3,!1),s=R(e,"accept",3,void 0),a=R(e,"assets",19,()=>[]),c=R(e,"searchTerms",3,""),u=R(e,"basePath",3,void 0),d=R(e,"selectedResources",31,()=>St([])),f=ie(void 0);De(()=>{d().length||Se(()=>{l(f)?.reset()})}),vt(Wd(t,{get multiple(){return o()},get accept(){return s()},get onDrop(){return e.onDrop},children:(h,p)=>{{let g=_(()=>n()?.type);KA(h,{get multiple(){return o()},get assets(){return a()},get viewType(){return l(g)},get searchTerms(){return c()},get basePath(){return u()},gridId:"select-assets-grid",checkerboard:!0,get selectedResources(){return d()},set selectedResources(m){d(m)}})}},$$slots:{default:!0}}),h=>G(f,h,!0),()=>l(f)),ce(),i()}const ng={},GA=["en-US,pt-BR,es-ES,ca-ES,de-DE,it-IT,fr-FR,sv-SE,id-ID,pl-PL,ja-JP,zh-TW,zh-CN,ko-KR,th-TH,nl-NL","hu-HU,vi-VN,cs-CZ,da-DK,fi-FI,uk-UA,el-GR,ro-RO,nb-NO,sk-SK,tr-TR,ru-RU"].join(",").split(","),WA="https://api.pexels.com/v1",YA={per_page:80},wK=()=>{const t=se(zt).toLowerCase(),[e]=t.split("-");return GA.find(n=>n.toLowerCase()===t)??GA.find(n=>n.split("-")[0]===e)??"en-US"},JA=t=>t.map(({id:e,url:n,alt:r,src:{large2x:i,medium:o},photographer:s})=>({id:String(e),description:n.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g," ")??r,previewURL:o,downloadURL:i,fileName:`pexels-${s.split(/\s+/).join("-").toLowerCase()}-${e}.jpg`,kind:"image",credit:`<a href="${n}">Photo by ${s} on Pexels</a>`})),xK={serviceType:"stock_assets",serviceId:"pexels",serviceLabel:"Pexels",serviceURL:"https://www.pexels.com/",showServiceLink:!0,hotlinking:!1,authType:"api_key",developerURL:"https://www.pexels.com/api/",apiKeyURL:"https://www.pexels.com/api/new/",apiKeyPattern:/^[a-zA-Z\d]{56}$/,list:async({apiKey:t})=>{const e={Authorization:t},n=new URLSearchParams(YA),r=await fetch(`${WA}/curated?${n}`,{headers:e});if(!r.ok)return Promise.reject();const i=(await r.json()).photos;return JA(i)},search:async(t,{apiKey:e})=>{const n={Authorization:e},r=new URLSearchParams({...YA,query:t,locale:wK()}),i=[];for(let o=1;o<=2;o+=1){r.set("page",String(o));const s=await fetch(`${WA}/search?${r}`,{headers:n});if(!s.ok)return Promise.reject();const{photos:a,next_page:c}=await s.json();if(i.push(...a),!c)break;await Lt(50)}return JA(i)}},kK="cs,da,de,en,es,fr,id,it,hu,nl,no,pl,pt,ro,sk,fi,sv,tr,vi,th,bg,ru,el,ja,ko,zh".split(","),XA="https://pixabay.com/api",ZA={image_type:"photo",min_width:1280,safesearch:!0,per_page:150},QA=t=>t.map(({id:e,webformatURL:n,previewURL:r,largeImageURL:i,imageWidth:o,imageHeight:s,pageURL:a,tags:c,user:u})=>({id:String(e),description:c,previewURL:n.replace("_640.",o>s?"_180.":"_340."),downloadURL:i,fileName:r.split("/").pop().replace("_150.","_1280."),kind:"image",credit:`<a href="${a}">Photo by ${u} on Pixabay`})),e2=()=>{const[t]=se(zt).toLowerCase().split("-");return kK.includes(t)?t:"en"},SK={serviceType:"stock_assets",serviceId:"pixabay",serviceLabel:"Pixabay",serviceURL:"https://pixabay.com/",showServiceLink:!0,hotlinking:!1,authType:"api_key",developerURL:"https://pixabay.com/service/about/api/",apiKeyURL:"https://pixabay.com/api/docs/#api_key",apiKeyPattern:/^\d+-[a-f\d]{25}$/,list:async({apiKey:t})=>{const e=new URLSearchParams({...ZA,key:t,lang:e2(),editors_choice:String(!0)}),n=await fetch(`${XA}/?${e}`);if(!n.ok)return Promise.reject();const r=(await n.json()).hits;return QA(r)},search:async(t,{apiKey:e})=>{const n=new URLSearchParams({...ZA,key:e,lang:e2(),q:t}),r=await fetch(`${XA}/?${n}`);if(!r.ok)return Promise.reject();const i=(await r.json()).hits;return QA(i)}},t2=["af,sq,am,ar,hy,as,az,bn,ba,eu,bs,bg,yue,ca,lzh,zh-Hans,zh-Hant,hr,cs,da,prs,dv,nl,en,et,fo,fj","fil,fi,fr,fr-ca,gl,ka,de,el,gu,ht,he,hi,mww,hu,is,id,ikt,iu,iu-Latn,ga,it,ja,kn,kk,km,ko,ku,kmr","ky,lo,lv,lt,mk,mg,ms,ml,mt,mi,mr,mn-Cyrl,mn-Mong,my,ne,nb,or,ps,fa,pl,pt,pt-pt,pa,otq,ro,ru,sm","sr-Cyrl,sr-Latn,sk,sl,so,es,sw,sv,ty,ta,tt,te,th,bo,ti,to,tr,tk,uk,hsb,ur,ug,uz,vi,cy,yua,zu"].join(",").split(","),n2="https://api.unsplash.com",r2="utm_source=sveltia-cms&utm_medium=referral",i2={per_page:30},EK=()=>{const t=se(zt).toLowerCase(),[e]=t.split("-");return t2.find(n=>n.toLowerCase()===t)??t2.find(n=>n.split("-")[0]===e)??"en"},o2=t=>t.map(({id:e,description:n,alt_description:r,urls:{regular:i,thumb:o},user:{username:s,name:a}})=>({id:String(e),description:[n,r].filter(Boolean).join(" — "),previewURL:o,downloadURL:i,fileName:`${a.split(/\s+/).join("-").toLowerCase()}-${e}-unsplash.jpg`,kind:"image",credit:`Photo by <a href="https://unsplash.com/@${s}?${r2}">${a}</a> on <a href="https://unsplash.com/?${r2}">Unsplash</a>`})),rg={pexels:xK,pixabay:SK,unsplash:{serviceType:"stock_assets",serviceId:"unsplash",serviceLabel:"Unsplash",serviceURL:"https://unsplash.com/",showServiceLink:!0,hotlinking:!0,authType:"api_key",developerURL:"https://unsplash.com/developers",apiKeyURL:"https://unsplash.com/oauth/applications",apiKeyPattern:/^[a-zA-Z\d-]{40,}$/,list:async({apiKey:t})=>{const e={Authorization:`Client-ID ${t}`},n=new URLSearchParams(i2),r=await fetch(`${n2}/photos?${n}`,{headers:e});if(!r.ok)return Promise.reject();const i=await r.json();return o2(i)},search:async(t,{apiKey:e})=>{const n={Authorization:`Client-ID ${e}`},r=new URLSearchParams({...i2,query:t,lang:EK()}),i=[];for(let o=1;o<=5;o+=1){r.set("page",String(o));const s=await fetch(`${n2}/search/photos?${r}`,{headers:n});if(!s.ok)return Promise.reject();const{results:a,total_pages:c}=await s.json();if(i.push(...a),c===o)break;await Lt(50)}return o2(i)}}},s2=({fieldConfig:t}={})=>{const e=Gk({libraryName:"stock_assets",fieldConfig:t}),n=Object.keys(rg),{providers:r}=e;return{providers:Array.isArray(r)?r:n}};var $K=U("<!> <!>",1),TK=U("<!> <!>",1),CK=U("<a> </a>"),AK=U("<!> <!>",1),PK=U("<!> <!> <!>",1),LK=U('<div role="none" class="filter-tools svelte-5b1zbe"><!></div>'),NK=U('<div role="none"> </div> <!>',1),IK=U('<div role="none" class="wrapper svelte-5b1zbe"><div role="none" class="nav svelte-5b1zbe"><!> <!></div> <div role="none" class="content-pane svelte-5b1zbe"><!> <!> <!></div></div>'),OK=U("<!> <!>",1);const RK={hash:"svelte-5b1zbe",code:`.wrapper.svelte-5b1zbe {display:flex;gap:16px;height:60dvh;}
610
+ ${JSON.stringify(t)}`,QH="anthropic",e9="Anthropic Claude",t9="Anthropic API",n9="https://docs.anthropic.com/en/api/overview",r9="https://console.anthropic.com/settings/keys",i9=/sk-ant-api03-[a-zA-Z0-9-_]{80,}/,o9=["af,ar,be,bg,bn,bs,ca,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,ga,gl,gu,he,hi,hr,hu,hy,id,is,it,ja","ka,kk,km,kn,ko,ky,la,lt,lv,mk,ml,mn,mr,ms,mt,my,ne,nl,no,pl,pt,ro,ru,si,sk,sl,sq,sr,sv,sw,ta,te","th,tl,tr,uk,ur,uz,vi,zh"].join(",").split(","),Zp=t=>{const[e]=t.toLowerCase().split(/[-_]/);if(o9.includes(e))return e},s9={serviceId:QH,serviceLabel:e9,apiLabel:t9,developerURL:n9,apiKeyURL:r9,apiKeyPattern:i9,markdownSupported:!0,availability:async({sourceLanguage:t,targetLanguage:e})=>!!Zp(t)&&!!Zp(e),translate:async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=Zp(e)??"",n=Zp(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://api.anthropic.com/v1/messages",o=RA(e,n),s=DA(t),a={model:"claude-3-5-haiku-latest",max_tokens:4e3,temperature:.3,system:o,messages:[{role:"user",content:s}]};try{const c=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":r,"anthropic-version":"2023-06-01","anthropic-dangerous-direct-browser-access":"true"},body:JSON.stringify(a)});if(!c.ok){const p=await c.json().catch(()=>({}));throw new Error(`Anthropic API error: ${c.status} ${c.statusText}${p.error?.message?` - ${p.error.message}`:""}`)}const u=await c.json();if(!u.content||!Array.isArray(u.content)||!u.content[0])throw new Error("Invalid response format from Anthropic API.");const d=u.content[0].text.trim();let f;try{f=JSON.parse(d)}catch{throw new Error("Failed to parse JSON response from Anthropic API.")}if(!f||!Array.isArray(f.translations))throw new Error("Invalid JSON structure in Anthropic API response.");const{translations:h}=f;if(h.length!==t.length){const p=t.length,g=h.length;throw new Error(`Translation count mismatch: expected ${p}, got ${g}`)}return h}catch(c){throw c instanceof Error?c:new Error("Failed to translate text with Anthropic API.")}}},a9="google",l9="Google Cloud Translation",c9="Cloud Translation API",u9="https://console.cloud.google.com/apis/library/translate.googleapis.com",d9="https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials",f9=/AIza[0-9A-Za-z-_]{35}/,MA=["ab,ace,ach,af,ak,alz,am,ar,as,awa,ay,az","ba,ban,bbc,be,bem,bew,bg,bho,bik,bm,bn,br,bs,bts,btx,bua","ca,ceb,cgg,chm,ckb,cnh,co,crh,crs,cs,cv,cy","da,de,din,doi,dov,dv,dz","ee,el,en,eo,es,et,eu","fa,ff,fi,fil,fj,fr,fr-CA,fr-FR,fy","ga,gaa,gd,gl,gn,gom,gu","ha,haw,he,hi,hil,hmn,hr,hrx,ht,hu,hy","id,ig,ilo,is,it,iw","ja,jv,jw","ka,kk,km,kn,ko,kri,ktu,ku,ky","la,lb,lg,li,lij,lmo,ln,lo,lt,ltg,luo,lus,lv","mai,mak,mg,mi,min,mk,ml,mn,mni-Mtei,mr,ms,ms-Arab,mt,my","ne,new,nl,no,nr,nso,nus,ny","oc,om,or","pa,pa-Arab,pag,pam,pap,pl,ps,pt,pt-BR,pt-PT","qu","rn,ro,rom,ru,rw","sa,scn,sd,sg,shn,si,sk,sl,sm,sn,so,sq,sr,ss,st,su,sv,sw,szl","ta,te,tet,tg,th,ti,tk,tl,tn,tr,ts,tt","ug,uk,ur,uz","vi","xh","yi,yo,yua,yue","zh,zh-CN,zh-TW,zu"].join(",").split(","),Qp=t=>{const e=t.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(r,i,o)=>`${i.toLowerCase()}-${o.toUpperCase()}`);if(MA.includes(e))return e;const[n]=e.split("-");if(MA.includes(n))return n},FA={serviceId:a9,serviceLabel:l9,apiLabel:c9,developerURL:u9,apiKeyURL:d9,apiKeyPattern:f9,markdownSupported:!1,availability:async({sourceLanguage:t,targetLanguage:e})=>!!Qp(t)&&!!Qp(e),translate:async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=Qp(e)??"",n=Qp(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://translation.googleapis.com/language/translate/v2",o={q:t,source:e,target:n,format:"html"};try{const s=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json","X-goog-api-key":r},body:JSON.stringify(o)});if(!s.ok){const c=await s.json().catch(()=>({}));throw new Error(`Google Translate API error: ${s.status} ${s.statusText}${c.error?.message?` - ${c.error.message}`:""}`)}const{data:a}=await s.json();return a.translations.map(c=>c.translatedText)}catch(s){throw s instanceof Error?s:new Error("Failed to translate text with Google Translate API.")}}},h9="openai",p9="OpenAI GPT",g9="OpenAI API",m9="https://platform.openai.com/docs/overview",v9="https://platform.openai.com/api-keys",b9=/sk-[a-zA-Z0-9-_]{40,}/,_9=["af,ar,be,bg,bn,bs,ca,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,ga,gl,gu,he,hi,hr,hu,hy,id,is,it,ja","ka,kk,km,kn,ko,ky,la,lt,lv,mk,ml,mn,mr,ms,mt,my,ne,nl,no,pl,pt,ro,ru,si,sk,sl,sq,sr,sv,sw,ta,te","th,tl,tr,uk,ur,uz,vi,zh"].join(",").split(","),eg=t=>{const[e]=t.toLowerCase().split(/[-_]/);if(_9.includes(e))return e},jy={google:FA,anthropic:s9,openai:{serviceId:h9,serviceLabel:p9,apiLabel:g9,developerURL:m9,apiKeyURL:v9,apiKeyPattern:b9,markdownSupported:!0,availability:async({sourceLanguage:t,targetLanguage:e})=>!!eg(t)&&!!eg(e),translate:async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=eg(e)??"",n=eg(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://api.openai.com/v1/chat/completions",o=RA(e,n),s=DA(t),a={model:"gpt-4o-mini",messages:[{role:"system",content:o},{role:"user",content:s}],temperature:.3,max_tokens:4e3,response_format:{type:"json_object"}};try{const c=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify(a)});if(!c.ok){const p=await c.json().catch(()=>({}));throw new Error(`OpenAI API error: ${c.status} ${c.statusText}${p.error?.message?` - ${p.error.message}`:""}`)}const u=await c.json();if(!u.choices||!u.choices[0]||!u.choices[0].message)throw new Error("Invalid response format from OpenAI API.");const d=u.choices[0].message.content.trim();let f;try{f=JSON.parse(d)}catch{throw new Error("Failed to parse JSON response from OpenAI API.")}if(!f||!Array.isArray(f.translations))throw new Error("Invalid JSON structure in OpenAI API response.");const{translations:h}=f;if(h.length!==t.length){const p=t.length,g=h.length;throw new Error(`Translation count mismatch: expected ${p}, got ${g}`)}return h}catch(c){throw c instanceof Error?c:new Error("Failed to translate text with OpenAI API.")}}}},tg=Qt([dt],([t])=>{const{defaultTranslationService:e="google"}=t;return jy[e]??FA}),zA=new Xp({headingStyle:"atx",bulletListMarker:"-",codeBlockStyle:"fenced"});zA.keep(["span","div"]);const y9=({draft:t,options:e})=>{const{collectionName:n,fileName:r,currentValues:i,isIndexFile:o}=t,{sourceLanguage:s,targetLanguage:a,keyPath:c="",translate:u=!1}=e,d=i[s],f={collectionName:n,fileName:r,valueMap:d,isIndexFile:o};return Object.fromEntries(Object.entries(d).map(([h,p])=>{const g=i[a][h],m=fn({...f,keyPath:h}),v=m?.widget??"string";return c&&!h.startsWith(c)||typeof p!="string"||!p||!["markdown","text","string","list"].includes(v)||v==="list"&&(m.field??m.fields)||!u&&p===g||!c&&u&&g?null:[h,{value:p,isMarkdown:v==="markdown"}]}).filter(h=>!!h))},Xd=(t,e,{count:n,sourceLanguage:r})=>{Zg.set({id:Date.now(),show:!0,status:t,message:e,count:n,sourceLanguage:r})},w9=async({currentValues:t,options:e,copingFieldMap:n})=>{const{serviceId:r,markdownSupported:i,translate:o}=se(tg),{sourceLanguage:s,targetLanguage:a}=e,c=Object.keys(n).length,u=c===1?"one":"many",d=se(dt).apiKeys?.[r]||await new Promise(f=>{gu.set({show:!0,multiple:c>1,resolve:f})});if(d){Xd("info","translation.started",{count:c,sourceLanguage:s});try{const f=await o(Object.entries(n).map(([,{value:h,isMarkdown:p}])=>p&&!i?Rv(h):h),{apiKey:d,sourceLanguage:s,targetLanguage:a});Object.entries(n).forEach(([h,{isMarkdown:p}],g)=>{const m=f[g];t[a][h]=p&&!i?zA.turndown(m):m}),Xd("success",`translation.complete.${u}`,{count:c,sourceLanguage:s})}catch(f){Xd("error","translation.error",{count:c,sourceLanguage:s}),console.error(f)}}},x9=({currentValues:t,options:e,copingFieldMap:n})=>{const{sourceLanguage:r,targetLanguage:i}=e,o=Object.keys(n).length,s=o===1?"one":"many";Object.entries(n).forEach(([a,{value:c}])=>{t[i][a]=c}),Xd("success",`copy.complete.${s}`,{count:o,sourceLanguage:r})},jA=async t=>{const{sourceLanguage:e,translate:n=!1}=t,r=se(We),{currentValues:i}=r,o=y9({draft:r,options:t}),s=Object.keys(o).length;if(!s){Xd("info",`${n?"translation":"copy"}.none`,{count:s,sourceLanguage:e});return}n?await w9({currentValues:i,options:t,copingFieldMap:o}):x9({currentValues:i,options:t,copingFieldMap:o}),We.update(a=>({...a,currentValues:i}))};function By(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",o),r=()=>V(tg,"$translator",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"keyPath",3,""),c=R(e,"translate",3,!1);const u=async({sourceLanguage:h,targetLanguage:p})=>!n()?.currentLocales[p]||!n().currentLocales[h]||!!a()&&!On(n().currentValues[h])[a()]||!c()&&!!a()&&On(n().currentValues[h])[a()]===On(n().currentValues[p])[a()]||c()&&!await r()?.availability({sourceLanguage:h,targetLanguage:p});var d=X(),f=M(d);it(f,17,()=>e.otherLocales,lr,(h,p)=>{const g=_(()=>({sourceLanguage:l(p),targetLanguage:e.locale}));var m=X(),v=M(m);Xt(v,()=>u(l(g)),null,(b,y)=>{{let w=_(()=>i()(c()?"translate_from_x":"copy_from_x",{values:{locale:Oi(l(p))}}));mt(b,{get label(){return l(w)},get disabled(){return l(y)},onclick:()=>{jA({...l(g),keyPath:a(),translate:c()})}})}}),$(h,m)}),$(t,d),ce(),s()}var k9=U("<section><!></section>");const S9={hash:"svelte-wzztxu",code:"section.svelte-wzztxu {padding:var(--field-editor-padding);}section.svelte-wzztxu:not(:last-child) {border-width:0 0 1px;border-color:var(--sui-secondary-border-color);}section.svelte-wzztxu > * {margin-inline:auto !important;max-width:768px;}section.svelte-wzztxu > header {display:flex;align-items:center;margin:0 -8px 8px;height:var(--sui-button-small-height);}section.svelte-wzztxu > header h4 {margin-inline:8px 0;font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}section.svelte-wzztxu > header .required {margin-block:2px 0;margin-inline:2px 0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-large);}"};function BA(t,e){ke(t,S9);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","children"]);var i=k9();gt(i,()=>({role:"group",class:"field",...r}),void 0,void 0,"svelte-wzztxu");var o=z(i);Me(o,()=>n()??Be),$(t,i)}function UA(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",o),r=()=>V(tg,"$translator",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"size",3,"medium"),c=R(e,"keyPath",3,"");const u=_(()=>!n()?.currentLocales[e.locale]),d=async({sourceLanguage:m,targetLanguage:v})=>l(u)||!n()?.currentLocales[m]||!await r()?.availability({sourceLanguage:m,targetLanguage:v});var f=X(),h=M(f);{var p=m=>{const v=_(()=>{const[k]=e.otherLocales;return{otherLocale:k}}),b=_(()=>i()("translate_from_x",{values:{locale:Oi(l(v).otherLocale)}})),y=_(()=>({sourceLanguage:l(v).otherLocale,targetLanguage:e.locale}));var w=X(),E=M(w);Xt(E,()=>d(l(y)),null,(k,S)=>{Ze(k,{variant:"ghost",get size(){return a()},iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(b)},get title(){return l(b)},get disabled(){return l(S)},onclick:()=>{jA({...l(y),keyPath:c(),translate:!0})},startIcon:x=>{Je(x,{name:"translate"})},$$slots:{startIcon:!0}})}),$(m,w)},g=m=>{{const v=w=>{Je(w,{name:"translate"})},b=w=>{{let E=_(()=>i()("translation_options"));ir(w,{get"aria-label"(){return l(E)},children:(k,S)=>{By(k,{get locale(){return e.locale},get otherLocales(){return e.otherLocales},get keyPath(){return c()},translate:!0})},$$slots:{default:!0}})}};let y=_(()=>i()("translate"));Ir(m,{variant:"ghost",get size(){return a()},iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(y)},get disabled(){return l(u)},endIcon:v,popup:b,$$slots:{endIcon:!0,popup:!0}})}};q(h,m=>{e.otherLocales.length===1?m(p):m(g,!1)})}$(t,f),ce(),s()}var E9=U('<div role="alert" class="validation svelte-6wra4i" aria-live="polite"><div role="none" class="svelte-6wra4i"><!> <!></div></div>');const $9={hash:"svelte-6wra4i",code:".validation.svelte-6wra4i {color:var(--sui-error-foreground-color) !important;font-size:var(--sui-font-size-small);}.validation.svelte-6wra4i div:where(.svelte-6wra4i) {display:flex;align-items:center;gap:4px;margin:4px 0;}.validation.svelte-6wra4i div:where(.svelte-6wra4i) .icon {flex:none;font-size:16px; /* !hardcoded */}"};function Uy(t,e){ke(t,$9);var n=E9(),r=z(n),i=z(r);Je(i,{name:"error"});var o=j(i,2);Me(o,()=>e.children),Z(()=>Ee(n,"id",e.id)),$(t,n)}function T9(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1);_b(t,{get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get checked(){return n()},set checked(s){n(s)}}),ce()}var C9=U("<p> </p>");function A9(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",3,!1);var s=X(),a=M(s);{var c=u=>{var d=C9(),f=z(d);Z(h=>te(f,h),[()=>n()(`boolean.${o()}`)]),$(u,d)};q(a,u=>{typeof o()=="boolean"&&u(c)})}$(t,s),ce(),i()}function P9(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=Jn("field-editor")??{};let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1),d=ie(""),f=ie("");const h=_(()=>tt(e.fieldConfig.default_language,"")),p=_(()=>tt(e.fieldConfig.allow_language_selection,!0)),g=_(()=>tt(e.fieldConfig.output_code_only,!1)),m=_(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),v=_(()=>On(n()?.[o][e.locale])??{}),b=_(()=>`${e.keyPath}.${l(m).code}`),y=_(()=>`${e.keyPath}.${l(m).lang}`),w=()=>{if(l(g))typeof s()!="string"?G(d,""):l(d)!==s()&&G(d,s(),!0);else{const C=l(v)[l(b)],x=l(v)[l(y)]||l(h);typeof C!="string"?G(d,""):l(d)!==C&&G(d,C,!0),typeof x!="string"?G(f,""):l(f)!==x&&G(f,x,!0)}},E=()=>{l(g)?s()!==l(d)&&s(l(d)):n()&&(s({}),l(v)[l(b)]!==l(d)&&_t(We,Se(n)[o][e.locale][l(b)]=l(d),Se(n)),l(v)[l(y)]!==l(f)&&_t(We,Se(n)[o][e.locale][l(y)]=l(f),Se(n)))};De(()=>{l(v),Se(()=>{w()})}),De(()=>{l(d),l(f),Se(()=>{E()})});var k=X(),S=M(k);Xt(S,Lt,null,C=>{var x=X(),T=M(x);Xn(T,()=>JSON.stringify(e.fieldConfig),A=>{P8(A,{get showLanguageSwitcher(){return l(p)},flex:!0,get readonly(){return c()},get required(){return a()},get invalid(){return u()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get code(){return l(d)},set code(P){G(d,P,!0)},get lang(){return l(f)},set lang(P){G(f,P,!0)}})}),$(C,x)}),$(t,k),ce(),i()}var L9=U("<pre> </pre>");function N9(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>tt(e.fieldConfig.default_language,"")),s=_(()=>tt(e.fieldConfig.output_code_only,!1)),a=_(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),c=_(()=>On(n()?.currentValues[e.locale])??{}),u=_(()=>`${e.keyPath}.${l(a).code}`),d=_(()=>`${e.keyPath}.${l(a).lang}`),f=_(()=>l(s)?e.currentValue:l(c)[l(u)]),h=_(()=>l(s)?l(o):l(c)[l(d)]);var p=X(),g=M(p);{var m=v=>{var b=L9(),y=z(b);Z(()=>{Zt(b,1,Dx(l(h)?`language-${l(h)}`:void 0)),te(y,l(f))}),$(v,b)};q(g,v=>{l(f)&&v(m)})}$(t,p),ce(),i()}var I9=U(" <!>",1),O9=U('<span role="none" class="value svelte-1usff15"><!> <!></span>'),R9=U('<div role="none" class="svelte-1usff15"><input type="color" class="svelte-1usff15"/> <!> <!></div>');const D9={hash:"svelte-1usff15",code:"div.svelte-1usff15 {display:flex;align-items:center;gap:8px;}div.svelte-1usff15 .value:where(.svelte-1usff15) {display:flex;align-items:center;gap:8px;}div.svelte-1usff15 .value:where(.svelte-1usff15) .sui.text-input {width:80px;min-width:0;}div.svelte-1usff15 .value:where(.svelte-1usff15) .sui.slider {padding:8px;--sui-slider-base-width: 80px;}input.svelte-1usff15 {font-family:var(--sui-textbox-font-family);}"};function M9(t,e){const n=Rn();le(e,!0),ke(t,D9);const r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1),d=ie(""),f=ie(255);const h=_(()=>tt(e.fieldConfig.allowInput,!1)),p=_(()=>tt(e.fieldConfig.enableAlpha,!1)),g=/^#[0-9a-f]{6}$/,m=/^(?<rgb>#[0-9a-f]{6})(?<a>[0-9a-f]{2})?$/,v=()=>{if(typeof s()!="string")return;const{rgb:x,a:T="ff"}=s().match(m)?.groups??{};if(x&&l(d)!==x&&G(d,x,!0),x&&l(p)){const A=Number.parseInt(`0x${T}`,16);l(f)!==A&&G(f,A,!0)}},b=()=>{let x=g.test(l(d))?l(d):"";x&&l(p)&&(x+=l(f).toString(16).padStart(2,"0")),s()!==x&&s(x)};De(()=>{s(),Se(()=>{v()})}),De(()=>{l(d),l(f),Se(()=>{b()})});var y=R9(),w=z(y),E=j(w,2);{var k=x=>{var T=O9(),A=z(T);{var P=N=>{Cn(N,{get id(){return`${n}-input`},get invalid(){return u()},get readonly(){return c()},get required(){return a()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(d)},set value(D){G(d,D,!0)}})};q(A,N=>{l(h)&&N(P)})}var L=j(A,2);{var I=N=>{var D=I9(),B=M(D),H=j(B);{let W=_(()=>!l(d)),Y=_(()=>r()("opacity"));kU(H,{min:0,max:255,get disabled(){return l(W)},get"aria-label"(){return l(Y)},get value(){return l(f)},set value(O){G(f,O,!0)}})}Z(W=>te(B,`${W??""} `),[()=>r()("opacity")]),$(N,D)};q(L,N=>{l(p)&&N(I)})}$(x,T)};q(E,x=>{(l(h)||l(p))&&x(k)})}var S=j(E,2);{var C=x=>{{let T=_(()=>r()("clear")),A=_(()=>!l(d)),P=_(()=>`${n}-picker ${l(h)?`${n}-input`:""}`);Ze(x,{variant:"tertiary",get label(){return l(T)},get disabled(){return l(A)},get"aria-controls"(){return l(P)},onclick:()=>{G(d,""),G(f,255)}})}};q(S,x=>{!c()&&!a()&&x(C)})}Z(()=>{Ee(w,"id",`${n}-picker`),w.readOnly=c(),Ee(w,"aria-invalid",u()),Ee(w,"aria-readonly",c()),Ee(w,"aria-required",a()),Ee(w,"aria-labelledby",`${e.fieldId??""}-label`),Ee(w,"aria-errormessage",`${e.fieldId??""}-error`)}),Sf(w,()=>l(d),x=>G(d,x)),$(t,y),ce(),o()}var F9=U('<p><span role="none" class="preview svelte-1pgn31g"><span role="none" class="color svelte-1pgn31g"></span> <span role="none" class="value"> </span> <span role="none" class="value"> </span></span></p>');const z9={hash:"svelte-1pgn31g",code:".preview.svelte-1pgn31g {display:inline-flex;align-items:center;gap:8px;}.preview.svelte-1pgn31g .color:where(.svelte-1pgn31g) {display:block;width:24px;height:24px;border-radius:24px;}"};function j9(t,e){le(e,!0),ke(t,z9);const n=_(()=>tt(e.fieldConfig.enableAlpha,!1)),r=u=>Number.parseInt(`0x${u}`,16),i=/^#(?<r>[0-9a-f]{2})(?<g>[0-9a-f]{2})(?<b>[0-9a-f]{2})(?<a>[0-9a-f]{2})?$/,o=_(()=>{const{r:u,g:d,b:f,a:h}=e.currentValue?.match(i)?.groups??{};return u?`rgb(${r(u)} ${r(d)} ${r(f)}${l(n)&&h?` / ${Math.round(r(h)/255*100)}%`:""})`:""});var s=X(),a=M(s);{var c=u=>{var d=F9(),f=z(d),h=z(f);let p;var g=j(h,2),m=z(g),v=j(g,2),b=z(v);Z(y=>{p=Vi(h,"",p,y),te(m,e.currentValue),te(b,l(o))},[()=>({"background-color":e.currentValue})]),$(u,d)};q(a,u=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&u(c)})}$(t,s),ce()}function B9(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=Jn("field-editor")??{};let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1);const d=_(()=>tt(e.fieldConfig.value,"")),f=_(()=>n()?.isIndexFile??!1),h=_(()=>n()?.collectionName??""),p=_(()=>n()?.fileName),g=_(()=>On(n()?.[o][e.locale])??{}),m=_(()=>Ql(e.locale)),v=()=>{const[y]=e.keyPath.split(".").splice(-2,1);return y?.match(/^\d+$/)?Number(y):void 0},b=()=>{if(!Object.keys(l(g)).includes(e.keyPath))return;const y=l(d)==="{{index}}"?v()??"":l(d).replaceAll(/{{(.+?)}}/g,(w,E)=>{if(E==="index")return String(v()??"");if(!E.startsWith("fields."))return"";const k=dc({collectionName:l(h),fileName:l(p),valueMap:l(g),keyPath:E.replace(/^fields\./,""),locale:e.locale,isIndexFile:l(f)});return Array.isArray(k)?l(m).format(k):String(k)});s()!==y&&s(y)};De(()=>{l(g),Se(()=>{b()})});{let y=_(()=>String(s()));Cn(t,{get value(){return l(y)},flex:!0,get readonly(){return c()},get required(){return a()},get invalid(){return u()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`}})}ce(),i()}var U9=U('<p dir="auto"> </p>');function q9(t,e){le(e,!0);var n=U9(),r=z(n);Z(i=>{Ee(n,"lang",i),te(r,e.currentValue),n.dir=n.dir},[()=>wr(e.locale)]),$(t,n),ce()}var V9=U('<span role="none" class="utc svelte-boo8ot">UTC</span>'),H9=U('<div role="none" class="svelte-boo8ot"><input/> <!> <!> <!></div>');const K9={hash:"svelte-boo8ot",code:"div.svelte-boo8ot {display:flex;align-items:center;}.utc.svelte-boo8ot {margin:0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function G9(t,e){le(e,!0),ke(t,K9);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=ie("");const d=_(()=>Os(e.fieldConfig)),f=_(()=>l(d).dateOnly),h=_(()=>l(d).timeOnly),p=_(()=>l(d).utc),g=()=>{const x=lD(o(),e.fieldConfig);x!==void 0&&x!==l(u)&&G(u,x,!0)},m=()=>{const x=j1(l(u),o(),e.fieldConfig);x!==void 0&&x!==o()&&Number(ec(x,e.fieldConfig))!==Number(ec(o(),e.fieldConfig))&&o(x)};De(()=>{o(),Se(()=>{g()})}),De(()=>{l(u),Se(()=>{m()})});var v=H9(),b=z(v),y=j(b,2);{var w=x=>{var T=V9();$(x,T)};q(y,x=>{l(p)&&x(w)})}var E=j(y,2);{var k=x=>{{let T=_(()=>n()(l(f)?"today":"now"));Ze(x,{variant:"tertiary",get label(){return l(T)},onclick:()=>{const A=z1(e.fieldConfig);G(u,l(p)?A.replace(/:00\.000Z$/,""):A,!0)}})}};q(E,x=>{a()||x(k)})}var S=j(E,2);{var C=x=>{{let T=_(()=>n()("clear")),A=_(()=>!o());Ze(x,{variant:"tertiary",get label(){return l(T)},get disabled(){return l(A)},onclick:()=>{o("")}})}};q(S,x=>{!a()&&!s()&&x(C)})}Z(()=>{Ee(b,"type",l(f)?"date":l(h)?"time":"datetime-local"),b.readOnly=a(),Ee(b,"aria-readonly",a()),Ee(b,"aria-required",s()),Ee(b,"aria-invalid",c()),Ee(b,"aria-labelledby",`${e.fieldId??""}-label`),Ee(b,"aria-errormessage",`${e.fieldId??""}-error`)}),Sf(b,()=>l(u),x=>G(u,x)),$(t,v),ce(),i()}var W9=U('<p dir="auto"> <!></p>');function Y9(t,e){le(e,!0);const n=_(()=>B1({locale:e.locale,fieldConfig:e.fieldConfig,currentValue:e.currentValue}));var r=X(),i=M(r);{var o=s=>{var a=W9(),c=z(a),u=j(c);{var d=f=>{var h=Ie("UTC");$(f,h)};q(u,f=>{e.fieldConfig.picker_utc&&f(d)})}Z(f=>{Ee(a,"lang",f),te(c,`${l(n)??""} `),a.dir=a.dir},[()=>wr(e.locale)]),$(s,a)};q(i,s=>{l(n)&&s(o)})}$(t,r),ce()}var J9=U('<span role="none" class="icon check-background"><!></span>'),X9=U('<div role="none"><!></div>');const Z9={hash:"svelte-1fitgoo",code:".wrapper.svelte-1fitgoo {display:contents;}.wrapper.svelte-1fitgoo [role=option] {position:relative;}.wrapper.svelte-1fitgoo [role=option] > .icon.check {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background {border-color:var(--sui-checkbox-border-color);background-color:var(--sui-checkbox-background-color);}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background .icon {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=true] .check-background {border-color:var(--sui-primary-accent-color);color:var(--sui-primary-accent-color-inverted);background-color:var(--sui-primary-accent-color);}.wrapper.svelte-1fitgoo [role=option] .check-background {display:flex;justify-content:center;align-items:center;border-width:1px;border-radius:var(--sui-checkbox-border-radius);width:20px;height:20px;pointer-events:none;}.wrapper.svelte-1fitgoo [role=option] .check-background .icon {color:inherit !important;font-size:20px;}.wrapper.grid.svelte-1fitgoo .check-background {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.wrapper.list.svelte-1fitgoo .check-background {margin-inline-start:16px;}"};function qA(t,e){ke(t,Z9);let n=R(e,"viewType",3,"grid");var r=X9(),i=z(r);kr(i,{label:"",get value(){return e.value},get selected(){return e.selected},get onChange(){return e.onChange},startIcon:s=>{var a=X(),c=M(a);{var u=d=>{var f=J9(),h=z(f);Je(h,{name:"check",class:"icon check"}),$(d,f)};q(c,d=>{e.multiple&&d(u)})}$(s,a)},children:(s,a)=>{var c=X(),u=M(c);Me(u,()=>e.children??Be),$(s,c)},$$slots:{startIcon:!0,default:!0}}),Z(()=>Zt(r,1,`wrapper ${n()??""}`,"svelte-1fitgoo")),$(t,r)}var Q9=U('<div role="none"><!></div>');const eK={hash:"svelte-umbokg",code:".wrapper.svelte-umbokg {display:contents;}.wrapper.svelte-umbokg .listbox {gap:4px;overflow-x:hidden;overflow-y:auto;border-width:0;max-height:calc(100% - var(--sui-focus-ring-width) * 2);}.wrapper.svelte-umbokg .listbox .option button {border-radius:var(--sui-control-medium-border-radius);padding:4px;width:100%;height:auto;transition:none;}.wrapper.svelte-umbokg .listbox .option button:focus-visible {outline-color:transparent;}.wrapper.svelte-umbokg .listbox .option button .preview {flex:none;border-radius:var(--sui-control-medium-border-radius);aspect-ratio:1/1;object-fit:contain;}.wrapper.svelte-umbokg .listbox .name {min-height:calc(var(--sui-font-size-default) * 2);white-space:normal;line-height:var(--sui-line-height-compact);}.wrapper.svelte-umbokg .listbox.grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));height:auto;max-height:none;}.wrapper.svelte-umbokg .listbox.grid .option button {flex-direction:column;justify-content:flex-start;}.wrapper.svelte-umbokg .listbox.grid .option button .preview {width:100%;height:auto;}.wrapper.svelte-umbokg .listbox.grid .option button .name {flex:none;margin:4px 0 12px;padding:0 8px;width:100%;min-height:calc(var(--sui-font-size-default) * 3);}.wrapper.svelte-umbokg .listbox.grid button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}.wrapper.svelte-umbokg :not(.wrapper.show-title) .listbox.grid .option .name {position:absolute;left:-99999px;}.wrapper.svelte-umbokg .listbox.list .option button {gap:16px;}.wrapper.svelte-umbokg .listbox.list .option button .preview {width:64px;}.wrapper.svelte-umbokg .listbox.list .option button .name {flex:auto;padding-inline:0 8px;}.wrapper.svelte-umbokg .listbox.list .option button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}"};function VA(t,e){le(e,!0),ke(t,eK);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"viewType",3,"grid"),s=R(e,"gridId",3,void 0),a=R(e,"multiple",3,!1),c=R(e,"showTitle",3,!1),u=R(e,"onChange",3,void 0),d=R(e,"children",3,void 0);var f=Q9();let h;var p=z(f);{let g=_(()=>n()("assets_dialog.available_images"));_c(p,{get id(){return s()},get class(){return o()},get multiple(){return a()},get"aria-label"(){return l(g)},onChange:m=>{u()?.(m.detail)},children:(m,v)=>{var b=X(),y=M(b);Me(y,()=>d()??Be),$(m,b)},$$slots:{default:!0}})}Z(g=>h=Zt(f,1,"wrapper svelte-umbokg",null,h,g),[()=>({"show-title":c()})]),$(t,f),ce(),i()}var tK=U('<span role="alert"> </span>'),nK=U('<span role="alert"> </span>'),rK=U('<span role="alert"> </span>'),iK=U('<span role="none" class="name"> </span>'),oK=U("<!> <!>",1),sK=U('<div role="none" class="input-outer svelte-mqll9n"><!></div>'),aK=U('<div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div>',1),lK=U('<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>',1),cK=U('<span role="alert"> </span>');const uK={hash:"svelte-mqll9n",code:"p.svelte-mqll9n {margin:0 0 8px;}.input-outer.svelte-mqll9n {width:400px;max-width:100%;text-align:center;}"};function dK(t,e){le(e,!0),ke(t,uK);const n=()=>V(Rl,"$selectAssetsView",s),r=()=>V(dt,"$prefs",s),i=()=>V(ue,"$_",s),o=()=>V(ln,"$isSmallScreen",s),[s,a]=me();let c=R(e,"kind",3,"image"),u=R(e,"multiple",3,!1),d=R(e,"searchTerms",3,""),f=R(e,"gridId",3,void 0),h=R(e,"selectedResources",31,()=>St([]));const p=_(()=>tt(e.serviceProps.serviceType,"stock_assets")),g=_(()=>tt(e.serviceProps.serviceId,"")),m=_(()=>tt(e.serviceProps.serviceLabel,"")),v=_(()=>tt(e.serviceProps.hotlinking,!1)),b=_(()=>tt(e.serviceProps.authType,"api_key")),y=_(()=>tt(e.serviceProps.developerURL,"")),w=_(()=>tt(e.serviceProps.apiKeyURL,"")),E=_(()=>e.serviceProps.apiKeyPattern),k=_(()=>e.serviceProps.init),S=_(()=>e.serviceProps.signIn),C=_(()=>e.serviceProps.list),x=_(()=>e.serviceProps.search),T=_(()=>n()?.type),A=St({userName:"",password:""});let P=ie(!0),L=ie(!1),I=ie(""),N=ie(""),D=ie(""),B=ie("initial"),H=ie(null),W=ie(void 0),Y=0;const O=async(ne="")=>{G(H,null),ne=ne.trim();const ae={kind:c(),apiKey:l(I),userName:l(N),password:l(D)};try{G(H,await(ne?l(x)(ne,ae):l(C)(ae)),!0)}catch(fe){G(W,"search_fetch_failed"),console.error(fe)}},F=async ne=>{const{downloadURL:ae,fileName:fe,credit:be}=ne;if(l(v))return{url:ae,credit:be};try{const pe=await fetch(ae),{ok:he,status:ge}=pe;if(!he)throw new Error(`The response returned with HTTP status ${ge}.`);const ve=await pe.blob(),_e=new File([ve],fe,{type:ve.type});return{url:ae,credit:be,file:_e}}catch(pe){G(W,"image_fetch_failed"),console.error(pe)}},K=ne=>h().some(ae=>ae.url===ne.downloadURL),J=async(ne,ae)=>{const fe=h().filter(be=>be.url!==ne.downloadURL);if(ae){const be=await F(ne);be&&h([...fe,be])}else h(fe)};Ft(()=>{(async()=>(typeof l(k)=="function"&&(G(P,!1),G(P,await l(k)(),!0)),l(P)&&(G(I,r().apiKeys?.[l(g)]??"",!0),(ne=>{var ae=lo(ne,2);G(N,ae[0],!0),G(D,ae[1],!0)})((r().logins?.[l(g)]??"").split(" ")),G(L,!!l(I)||!!l(D),!0),G(H,null),l(L)&&O())))()}),De(()=>{d(),window.clearTimeout(Y),Y=window.setTimeout(()=>{l(L)&&O(d())},1e3)});var Q=X(),oe=M(Q);{var re=ne=>{var ae=X(),fe=M(ae);{var be=he=>{hr(he,{children:(ge,ve)=>{var _e=tK(),$e=z(_e);Z(Ce=>te($e,Ce),[()=>i()(`assets_dialog.error.${l(W)}`)]),$(ge,_e)},$$slots:{default:!0}})},pe=he=>{var ge=X(),ve=M(ge);{var _e=Ce=>{hr(Ce,{children:(Re,He)=>{var Ye=nK(),Ue=z(Ye);Z(Te=>te(Ue,Te),[()=>i()("searching")]),$(Re,Ye)},$$slots:{default:!0}})},$e=Ce=>{var Re=X(),He=M(Re);{var Ye=Te=>{hr(Te,{children:(ze,Oe)=>{var Ae=rK(),we=z(Ae);Z(Pe=>te(we,Pe),[()=>i()("no_files_found")]),$(ze,Ae)},$$slots:{default:!0}})},Ue=Te=>{VA(Te,{get viewType(){return l(T)},get gridId(){return f()},get multiple(){return u()},children:(ze,Oe)=>{Ma(ze,{get items(){return l(H)},itemKey:"id",renderItem:(we,Pe=Be)=>{var ye=X(),ot=M(ye);Xt(ot,Lt,null,Qe=>{const Ne=_(()=>{const{id:je,previewURL:Xe,description:st,kind:lt}=Pe();return{id:je,previewURL:Xe,description:st,_kind:lt}});{let je=_(()=>K(Pe()));qA(Qe,{get value(){return l(Ne).id},get viewType(){return l(T)},get multiple(){return u()},get selected(){return l(je)},onChange:({detail:{selected:Xe}})=>{J(Pe(),Xe)},children:(Xe,st)=>{var lt=oK(),xt=M(lt);Ro(xt,{get kind(){return l(Ne)._kind},get src(){return l(Ne).previewURL},variant:"tile",crossorigin:"anonymous"});var Yt=j(xt,2);{var wn=rn=>{var on=iK(),pt=z(on);Z(()=>te(pt,l(Ne).description)),$(rn,on)};q(Yt,rn=>{(!o()||l(T)==="list")&&rn(wn)})}$(Xe,lt)},$$slots:{default:!0}})}}),$(we,ye)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})};q(He,Te=>{l(H).length?Te(Ue,!1):Te(Ye)},!0)}$(Ce,Re)};q(ve,Ce=>{l(H)?Ce($e,!1):Ce(_e)},!0)}$(he,ge)};q(fe,he=>{l(W)?he(be):he(pe,!1)})}$(ne,ae)},ee=ne=>{var ae=X(),fe=M(ae);{var be=he=>{hr(he,{children:(ge,ve)=>{var _e=lK(),$e=M(_e),Ce=z($e);{var Re=Ae=>{var we=X(),Pe=M(we);cr(Pe,()=>Nr.sanitize(i()("prefs.media.stock_photos.description",{values:{service:l(m),homeHref:`href="${l(y)}"`,apiKeyHref:`href="${l(w)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(Ae,we)};q(Ce,Ae=>{l(p)==="stock_assets"&&Ae(Re)})}var He=j(Ce,2);{var Ye=Ae=>{var we=X(),Pe=M(we);cr(Pe,()=>Nr.sanitize(i()(`cloud_storage.auth.${l(B)}`,{values:{service:l(m)}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(Ae,we)};q(He,Ae=>{l(p)==="cloud_storage"&&Ae(Ye)})}var Ue=j($e,2);{var Te=Ae=>{var we=sK(),Pe=z(we);{let ye=_(()=>i()("prefs.media.stock_photos.field_label",{values:{service:l(m)}}));Cn(Pe,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(ye)},oninput:ot=>{const Qe=ot.target.value.trim();l(E)?.test(Qe)&&(G(I,Qe,!0),G(L,!0),_t(dt,Se(r).apiKeys??={},Se(r)),_t(dt,Se(r).apiKeys[l(g)]=l(I),Se(r)),O())}})}$(Ae,we)};q(Ue,Ae=>{l(b)==="api_key"&&Ae(Te)})}var ze=j(Ue,2);{var Oe=Ae=>{var we=aK(),Pe=M(we),ye=z(Pe);{let Xe=_(()=>i()("user_name")),st=_(()=>l(B)==="requested");Cn(ye,{flex:!0,spellcheck:"false",get"aria-label"(){return l(Xe)},get disabled(){return l(st)},get value(){return A.userName},set value(lt){A.userName=lt}})}var ot=j(Pe,2),Qe=z(ot);{let Xe=_(()=>i()("password")),st=_(()=>l(B)==="requested");n6(Qe,{get"aria-label"(){return l(Xe)},get disabled(){return l(st)},get value(){return A.password},set value(lt){A.password=lt}})}var Ne=j(ot,2),je=z(Ne);{let Xe=_(()=>i()("sign_in")),st=_(()=>!A.userName||!A.password||l(B)==="requested");Ze(je,{variant:"secondary",get label(){return l(Xe)},get disabled(){return l(st)},onclick:async()=>{G(B,"requested"),A.userName=A.userName.trim(),A.password=A.password.trim(),await l(S)?.(A.userName,A.password)?(G(B,"success"),G(N,A.userName,!0),G(D,A.password,!0),G(L,!0),_t(dt,Se(r).logins??={},Se(r)),_t(dt,Se(r).logins[l(g)]=[l(N),l(D)].join(" "),Se(r)),O()):G(B,"error")}})}$(Ae,we)};q(ze,Ae=>{l(b)==="password"&&Ae(Oe)})}$(ge,_e)},$$slots:{default:!0}})},pe=he=>{hr(he,{children:(ge,ve)=>{var _e=cK(),$e=z(_e);Z(Ce=>te($e,Ce),[()=>i()("cloud_storage.invalid")]),$(ge,_e)},$$slots:{default:!0}})};q(fe,he=>{l(P)?he(be):he(pe,!1)},!0)}$(ne,ae)};q(oe,ne=>{l(L)?ne(re):ne(ee,!1)})}$(t,Q),ce(),a()}const Zd=t=>(t=t.trim(),t?t.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase():""),Xc=({value:t,terms:e})=>Zd(t).includes(e),HA=(t,e=Be)=>{var n=X(),r=M(n);cr(r,()=>Nr.sanitize(e().replace(/([-_.])/g,"$1<wbr>"),{ALLOWED_TAGS:["wbr"]})),$(t,n)};var fK=U('<div role="none" class="unsaved svelte-1ong0f1"> </div>'),hK=U('<strong class="svelte-1ong0f1"><!></strong>'),pK=U("<!>/",1),gK=U('<div role="none" class="unsaved svelte-1ong0f1"> </div>'),mK=U('<span role="none" class="name svelte-1ong0f1"><!> <!></span>'),vK=U("<!> <!> <!>",1),bK=U('<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>'),_K=U('<span role="none"> </span>');const yK={hash:"svelte-1ong0f1",code:".grid-wrapper.svelte-1ong0f1 {overflow-y:auto;height:100%;}.grid-wrapper.svelte-1ong0f1 [role=listbox] {background-color:transparent;}.grid-wrapper.svelte-1ong0f1 [role=listbox].grid .unsaved {position:absolute;inset-block-start:8px;inset-inline-end:8px;z-index:1;}.grid-wrapper.svelte-1ong0f1 [role=listbox].list .name {display:flex;gap:8px;align-items:center;justify-content:space-between;}.unsaved.svelte-1ong0f1 {display:flex;justify-content:center;align-items:center;border-color:var(--sui-info-border-color);border-radius:4px;padding:2px 6px;color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);font-size:var(--sui-font-size-small);}.name.svelte-1ong0f1 {color:var(--sui-tertiary-foreground-color);}.name.svelte-1ong0f1 strong:where(.svelte-1ong0f1) {color:var(--sui-primary-foreground-color);font-weight:var(--sui-font-weight-normal);}"};function KA(t,e){le(e,!0),ke(t,yK);const n=()=>V(ue,"$_",i),r=()=>V(ln,"$isSmallScreen",i),[i,o]=me();let s=R(e,"multiple",3,!1),a=R(e,"assets",19,()=>[]),c=R(e,"viewType",3,"grid"),u=R(e,"searchTerms",3,""),d=R(e,"basePath",3,void 0),f=R(e,"gridId",3,void 0),h=R(e,"checkerboard",3,!1),p=R(e,"selectedResources",31,()=>St([])),g=R(e,"onSelect",3,void 0);const m=_(()=>u()?a().filter(({name:S})=>Zd(S).includes(u())):a()),v=S=>p().some(C=>an(C.asset,S)),b=(S,C)=>{const x=p().filter(T=>!an(T.asset,S));C?(p([...x,{asset:S}]),g()?.({asset:S})):p(x)};var y=X(),w=M(y);{var E=S=>{var C=bK(),x=z(C);VA(x,{get multiple(){return s()},get gridId(){return f()},get viewType(){return c()},showTitle:!0,children:(T,A)=>{Ma(T,{get items(){return l(m)},itemKey:"path",renderItem:(L,I=Be)=>{var N=X(),D=M(N);Xt(D,Lt,null,B=>{const H=_(()=>{const{kind:O,name:F,path:K,unsaved:J,folder:Q}=I();return{kind:O,name:F,path:K,unsaved:J,folder:Q}}),W=_(()=>d()&&!l(H).folder.entryRelative?tn(l(H).path.replace(d(),"")):l(H).name),Y=_(()=>l(W).split("/"));{let O=_(()=>v(I()));qA(B,{get value(){return l(H).path},get viewType(){return c()},get multiple(){return s()},get selected(){return l(O)},onChange:({detail:{selected:F}})=>{b(I(),F)},children:(F,K)=>{var J=vK(),Q=M(J);{var oe=ae=>{var fe=fK(),be=z(fe);Z(pe=>te(be,pe),[()=>n()("assets_dialog.unsaved")]),$(ae,fe)};q(Q,ae=>{c()==="grid"&&l(H).unsaved&&ae(oe)})}var re=j(Q,2);Ro(re,{get kind(){return l(H).kind},get asset(){return I()},variant:"tile",get checkerboard(){return h()}});var ee=j(re,2);{var ne=ae=>{var fe=mK(),be=z(fe);xr(be,{lines:2,children:(ge,ve)=>{var _e=X(),$e=M(_e);it($e,17,()=>l(Y),lr,(Ce,Re,He)=>{var Ye=X(),Ue=M(Ye);{var Te=Oe=>{var Ae=hK(),we=z(Ae);HA(we,()=>l(Re)),$(Oe,Ae)},ze=Oe=>{var Ae=pK(),we=M(Ae);HA(we,()=>l(Re)),$(Oe,Ae)};q(Ue,Oe=>{He===l(Y).length-1?Oe(Te):Oe(ze,!1)})}$(Ce,Ye)}),$(ge,_e)},$$slots:{default:!0}});var pe=j(be,2);{var he=ge=>{var ve=gK(),_e=z(ve);Z($e=>te(_e,$e),[()=>n()("assets_dialog.unsaved")]),$(ge,ve)};q(pe,ge=>{c()==="list"&&l(H).unsaved&&ge(he)})}$(ae,fe)};q(ee,ae=>{(!r()||c()==="list")&&ae(ne)})}$(F,J)},$$slots:{default:!0}})}}),$(L,N)},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),$(S,C)},k=S=>{hr(S,{children:(C,x)=>{var T=_K(),A=z(T);Z(P=>te(A,P),[()=>n()("no_files_found")]),$(C,T)},$$slots:{default:!0}})};q(w,S=>{l(m).length?S(E):S(k,!1)})}$(t,y),ce(),o()}function wK(t,e){le(e,!0);const n=()=>V(Rl,"$selectAssetsView",r),[r,i]=me();let o=R(e,"multiple",3,!1),s=R(e,"accept",3,void 0),a=R(e,"assets",19,()=>[]),c=R(e,"searchTerms",3,""),u=R(e,"basePath",3,void 0),d=R(e,"selectedResources",31,()=>St([])),f=ie(void 0);De(()=>{d().length||Se(()=>{l(f)?.reset()})}),vt(Wd(t,{get multiple(){return o()},get accept(){return s()},get onDrop(){return e.onDrop},children:(h,p)=>{{let g=_(()=>n()?.type);KA(h,{get multiple(){return o()},get assets(){return a()},get viewType(){return l(g)},get searchTerms(){return c()},get basePath(){return u()},gridId:"select-assets-grid",checkerboard:!0,get selectedResources(){return d()},set selectedResources(m){d(m)}})}},$$slots:{default:!0}}),h=>G(f,h,!0),()=>l(f)),ce(),i()}const ng={},GA=["en-US,pt-BR,es-ES,ca-ES,de-DE,it-IT,fr-FR,sv-SE,id-ID,pl-PL,ja-JP,zh-TW,zh-CN,ko-KR,th-TH,nl-NL","hu-HU,vi-VN,cs-CZ,da-DK,fi-FI,uk-UA,el-GR,ro-RO,nb-NO,sk-SK,tr-TR,ru-RU"].join(",").split(","),WA="https://api.pexels.com/v1",YA={per_page:80},xK=()=>{const t=se(zt).toLowerCase(),[e]=t.split("-");return GA.find(n=>n.toLowerCase()===t)??GA.find(n=>n.split("-")[0]===e)??"en-US"},JA=t=>t.map(({id:e,url:n,alt:r,src:{large2x:i,medium:o},photographer:s})=>({id:String(e),description:n.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g," ")??r,previewURL:o,downloadURL:i,fileName:`pexels-${s.split(/\s+/).join("-").toLowerCase()}-${e}.jpg`,kind:"image",credit:`<a href="${n}">Photo by ${s} on Pexels</a>`})),kK={serviceType:"stock_assets",serviceId:"pexels",serviceLabel:"Pexels",serviceURL:"https://www.pexels.com/",showServiceLink:!0,hotlinking:!1,authType:"api_key",developerURL:"https://www.pexels.com/api/",apiKeyURL:"https://www.pexels.com/api/new/",apiKeyPattern:/^[a-zA-Z\d]{56}$/,list:async({apiKey:t})=>{const e={Authorization:t},n=new URLSearchParams(YA),r=await fetch(`${WA}/curated?${n}`,{headers:e});if(!r.ok)return Promise.reject();const i=(await r.json()).photos;return JA(i)},search:async(t,{apiKey:e})=>{const n={Authorization:e},r=new URLSearchParams({...YA,query:t,locale:xK()}),i=[];for(let o=1;o<=2;o+=1){r.set("page",String(o));const s=await fetch(`${WA}/search?${r}`,{headers:n});if(!s.ok)return Promise.reject();const{photos:a,next_page:c}=await s.json();if(i.push(...a),!c)break;await Lt(50)}return JA(i)}},SK="cs,da,de,en,es,fr,id,it,hu,nl,no,pl,pt,ro,sk,fi,sv,tr,vi,th,bg,ru,el,ja,ko,zh".split(","),XA="https://pixabay.com/api",ZA={image_type:"photo",min_width:1280,safesearch:!0,per_page:150},QA=t=>t.map(({id:e,webformatURL:n,previewURL:r,largeImageURL:i,imageWidth:o,imageHeight:s,pageURL:a,tags:c,user:u})=>({id:String(e),description:c,previewURL:n.replace("_640.",o>s?"_180.":"_340."),downloadURL:i,fileName:r.split("/").pop().replace("_150.","_1280."),kind:"image",credit:`<a href="${a}">Photo by ${u} on Pixabay`})),e2=()=>{const[t]=se(zt).toLowerCase().split("-");return SK.includes(t)?t:"en"},EK={serviceType:"stock_assets",serviceId:"pixabay",serviceLabel:"Pixabay",serviceURL:"https://pixabay.com/",showServiceLink:!0,hotlinking:!1,authType:"api_key",developerURL:"https://pixabay.com/service/about/api/",apiKeyURL:"https://pixabay.com/api/docs/#api_key",apiKeyPattern:/^\d+-[a-f\d]{25}$/,list:async({apiKey:t})=>{const e=new URLSearchParams({...ZA,key:t,lang:e2(),editors_choice:String(!0)}),n=await fetch(`${XA}/?${e}`);if(!n.ok)return Promise.reject();const r=(await n.json()).hits;return QA(r)},search:async(t,{apiKey:e})=>{const n=new URLSearchParams({...ZA,key:e,lang:e2(),q:t}),r=await fetch(`${XA}/?${n}`);if(!r.ok)return Promise.reject();const i=(await r.json()).hits;return QA(i)}},t2=["af,sq,am,ar,hy,as,az,bn,ba,eu,bs,bg,yue,ca,lzh,zh-Hans,zh-Hant,hr,cs,da,prs,dv,nl,en,et,fo,fj","fil,fi,fr,fr-ca,gl,ka,de,el,gu,ht,he,hi,mww,hu,is,id,ikt,iu,iu-Latn,ga,it,ja,kn,kk,km,ko,ku,kmr","ky,lo,lv,lt,mk,mg,ms,ml,mt,mi,mr,mn-Cyrl,mn-Mong,my,ne,nb,or,ps,fa,pl,pt,pt-pt,pa,otq,ro,ru,sm","sr-Cyrl,sr-Latn,sk,sl,so,es,sw,sv,ty,ta,tt,te,th,bo,ti,to,tr,tk,uk,hsb,ur,ug,uz,vi,cy,yua,zu"].join(",").split(","),n2="https://api.unsplash.com",r2="utm_source=sveltia-cms&utm_medium=referral",i2={per_page:30},$K=()=>{const t=se(zt).toLowerCase(),[e]=t.split("-");return t2.find(n=>n.toLowerCase()===t)??t2.find(n=>n.split("-")[0]===e)??"en"},o2=t=>t.map(({id:e,description:n,alt_description:r,urls:{regular:i,thumb:o},user:{username:s,name:a}})=>({id:String(e),description:[n,r].filter(Boolean).join(" — "),previewURL:o,downloadURL:i,fileName:`${a.split(/\s+/).join("-").toLowerCase()}-${e}-unsplash.jpg`,kind:"image",credit:`Photo by <a href="https://unsplash.com/@${s}?${r2}">${a}</a> on <a href="https://unsplash.com/?${r2}">Unsplash</a>`})),rg={pexels:kK,pixabay:EK,unsplash:{serviceType:"stock_assets",serviceId:"unsplash",serviceLabel:"Unsplash",serviceURL:"https://unsplash.com/",showServiceLink:!0,hotlinking:!0,authType:"api_key",developerURL:"https://unsplash.com/developers",apiKeyURL:"https://unsplash.com/oauth/applications",apiKeyPattern:/^[a-zA-Z\d-]{40,}$/,list:async({apiKey:t})=>{const e={Authorization:`Client-ID ${t}`},n=new URLSearchParams(i2),r=await fetch(`${n2}/photos?${n}`,{headers:e});if(!r.ok)return Promise.reject();const i=await r.json();return o2(i)},search:async(t,{apiKey:e})=>{const n={Authorization:`Client-ID ${e}`},r=new URLSearchParams({...i2,query:t,lang:$K()}),i=[];for(let o=1;o<=5;o+=1){r.set("page",String(o));const s=await fetch(`${n2}/search/photos?${r}`,{headers:n});if(!s.ok)return Promise.reject();const{results:a,total_pages:c}=await s.json();if(i.push(...a),c===o)break;await Lt(50)}return o2(i)}}},s2=({fieldConfig:t}={})=>{const e=Gk({libraryName:"stock_assets",fieldConfig:t}),n=Object.keys(rg),{providers:r}=e;return{providers:Array.isArray(r)?r:n}};var TK=U("<!> <!>",1),CK=U("<!> <!>",1),AK=U("<a> </a>"),PK=U("<!> <!>",1),LK=U("<!> <!> <!>",1),NK=U('<div role="none" class="filter-tools svelte-5b1zbe"><!></div>'),IK=U('<div role="none"> </div> <!>',1),OK=U('<div role="none" class="wrapper svelte-5b1zbe"><div role="none" class="nav svelte-5b1zbe"><!> <!></div> <div role="none" class="content-pane svelte-5b1zbe"><!> <!> <!></div></div>'),RK=U("<!> <!>",1);const DK={hash:"svelte-5b1zbe",code:`.wrapper.svelte-5b1zbe {display:flex;gap:16px;height:60dvh;}
611
611
  @media (width < 768px) {.wrapper.svelte-5b1zbe {flex-direction:column;overflow:hidden;height:72dvh;}
612
612
  }.wrapper.svelte-5b1zbe .nav:where(.svelte-5b1zbe) {display:flex;gap:4px;}
613
613
  @media (width < 768px) {.wrapper.svelte-5b1zbe .nav:where(.svelte-5b1zbe) {flex-direction:column;}
614
- }.wrapper.svelte-5b1zbe .listbox {flex:none;background-color:transparent;}.wrapper.svelte-5b1zbe .content-pane:where(.svelte-5b1zbe) {overflow:auto;flex:auto;}.filter-tools.svelte-5b1zbe {display:flex;gap:8px;}`};function DK(t,e){const n=Rn();le(e,!0),ke(t,RK);const r=()=>V(ue,"$_",f),i=()=>V(e.entryDraft,"$entryDraft",f),o=()=>V(ka,"$globalAssetFolder",f),s=()=>V(Dn,"$allAssets",f),a=()=>V(dt,"$prefs",f),c=()=>V(ln,"$isSmallScreen",f),u=()=>V(ga,"$showContentOverlay",f),d=()=>V(Rl,"$selectAssetsView",f),[f,h]=me(),p=pe=>{var he=TK(),ge=M(he);{var ve=Ce=>{var Re=$K(),He=M(Re);{var Ye=Te=>{{let ze=_(()=>Rl);Py(Te,{get currentView(){return l(ze)},"aria-controls":"select-assets-grid"})}};q(He,Te=>{d()&&Te(Ye)})}var Ue=j(He,2);{let Te=_(()=>l(T).some(Oe=>Oe.file)),ze=_(()=>r()(`assets_dialog.search_for_${e.kind??"file"}`));Bh(Ue,{get flex(){return c()},get disabled(){return l(Te)},get"aria-label"(){return l(ze)},get value(){return l(E)},set value(Oe){G(E,Oe,!0)}})}$(Ce,Re)};q(ge,Ce=>{(l(I)||l(Y))&&Ce(ve)})}var _e=j(ge,2);{var $e=Ce=>{{const Re=Ye=>{Je(Ye,{name:"cloud_upload"})};let He=_(()=>r()("upload"));Ze(Ce,{variant:"primary",get label(){return l(He)},onclick:()=>{l(x)?.open()},startIcon:Re,$$slots:{startIcon:!0}})}};q(_e,Ce=>{l(I)&&Ce($e)})}$(pe,he)};let g=R(e,"open",15,!1),m=R(e,"multiple",3,!1),v=R(e,"accept",19,()=>e.kind==="image"?vo.join(","):void 0),b=R(e,"canEnterURL",3,!0),y=R(e,"onSelect",3,void 0),w=ie(""),E=ie(""),k=ie("default-global"),S=ie(St([])),C=ie(St([])),x=ie(void 0),T=ie(St([]));const A=_(()=>e.kind==="image"?r()("assets_dialog.title.image"):r()("assets_dialog.title.file")),P=_(()=>Zd(l(E))),L=_(()=>{const pe=i()?.collectionName??"",he=i()?.fileName,ge=he?Wi({collectionName:pe,fileName:he}):void 0,ve=Wi({collectionName:pe}),_e=ge??ve;return{entry:{folder:_e,enabled:!!_e&&(_e.entryRelative||_e.hasTemplateTags)},file:{folder:ge,enabled:!!ge&&!ge.entryRelative&&!ge.hasTemplateTags},collection:{folder:ve,enabled:!!ve&&!ve.entryRelative&&!ve.hasTemplateTags},global:{folder:o(),enabled:!0}}}),I=_(()=>l(k).startsWith("default-")),N=_(()=>l(I)?l(L)[l(k).replace("default-","")].folder:void 0),D=_(()=>i()?.originalEntry),B=_(()=>l(N)?.entryRelative&&l(D)?dn(Object.values(l(D).locales)[0].path).dirname:l(N)?.internalPath),H=_(()=>[...s(),...l(C)].filter(pe=>!e.kind||e.kind===pe.kind).sort((pe,he)=>pe.name.localeCompare(he.name)).sort((pe,he)=>+!!he.unsaved-+!!pe.unsaved)),W=_(()=>{const{providers:pe=[]}=s2({fieldConfig:e.fieldConfig});return Object.entries(rg).filter(([he])=>pe.includes(he))}),Y=_(()=>l(W).map(([pe])=>pe).includes(l(k))&&a()?.apiKeys?.[l(k)]||Object.keys(ng).includes(l(k))&&a()?.logins?.[l(k)]),O=_(()=>Object.entries(ng)),F=_(()=>[...l(W),...l(O)]),K=_(()=>c()?Fa:_c),J=async({file:pe,blobURL:he,folder:ge})=>{const{name:ve,size:_e}=pe;return{unsaved:!0,file:pe,blobURL:he??URL.createObjectURL(pe),name:ve,path:`${l(B)}/${ve}`,sha:await $a(pe),size:_e,kind:Gu(ve),folder:ge}},Q=async()=>Promise.all([...Object.entries(i()?.files??{}).map(async([pe,{file:he,folder:ge}])=>J({file:he,blobURL:pe,folder:ge})),...Object.values(l(S))]),oe=async({hash:pe,folder:he})=>(await Promise.all(l(C).map(async ve=>!!ve.file&&an(ve.folder,he)&&await va(ve.file)===pe))).includes(!0),re=async pe=>{const he=await va(pe),ge=l(N);if(await oe({hash:he,folder:ge}))return;const ve=await J({file:pe,folder:ge});return l(S).push(ve),{asset:ve}},ee=async pe=>{G(T,(await Promise.all(pe.map(re))).filter(he=>!!he),!0)},ne=()=>{G(w,""),G(E,""),G(S,[],!0),G(C,[],!0),G(T,[],!0)};cN(()=>{const pe=Object.entries(l(L)).find(([,{enabled:he}])=>he)?.[0];G(k,`default-${pe}`)}),De(()=>{i()?.files,l(S),(async()=>G(C,await Q(),!0))()}),De(()=>{u()||g(!1)});var ae=OK(),fe=M(ae);{const pe=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{p(He)};q(Ce,He=>{c()||He(Re)})}$(_e,$e)},he=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{const Ye=_(()=>{const{showServiceLink:Oe,serviceLabel:Ae,serviceURL:we}=rg[l(k)]??{};return{showServiceLink:Oe,serviceLabel:Ae,serviceURL:we}});var Ue=X(),Te=M(Ue);{var ze=Oe=>{var Ae=CK(),we=z(Ae);Z(Pe=>{Ee(Ae,"href",l(Ye).serviceURL),te(we,Pe)},[()=>r()("prefs.media.stock_photos.credit",{values:{service:l(Ye).serviceLabel}})]),$(Oe,Ae)};q(Te,Oe=>{l(Ye).showServiceLink&&Oe(ze)})}$(He,Ue)};q(Ce,He=>{l(Y)&&He(Re)})}$(_e,$e)};let ge=_(()=>r()("insert")),ve=_(()=>!l(T).length);Di(fe,{get title(){return l(A)},size:"x-large",get okLabel(){return l(ge)},get okDisabled(){return l(ve)},focusInput:!1,onOk:()=>{if(!l(T).length)return;const _e=On(l(T)).map($e=>{const{unsaved:Ce,file:Re,folder:He}=$e.asset??{};return Ce?{file:Re,folder:He}:$e});y()?.(_e)},onClose:()=>{ne()},get open(){return g()},set open(_e){g(_e)},headerExtra:pe,footerExtra:he,children:(_e,$e)=>{var Ce=IK(),Re=z(Ce),He=z(Re);{let ye=_(()=>r()("assets_dialog.locations"));Bn(He,()=>l(K),(ot,Qe)=>{Qe(ot,{class:"tabs",get"aria-label"(){return l(ye)},get"aria-controls"(){return`${n}-content-pane`},filterThreshold:-1,onChange:Ne=>{G(k,Ne.detail.name,!0),G(T,[],!0)},children:(Ne,je)=>{var Xe=PK(),st=M(Xe);{let rn=_(()=>r()("asset_location.repository"));Da(st,{get label(){return l(rn)},children:(on,pt)=>{var Mt=X(),cn=M(Mt);it(cn,17,()=>Object.entries(l(L)),([En,{enabled:mn}])=>En,(En,mn)=>{var Kt=_(()=>lo(l(mn),2));let It=()=>l(Kt)[0],kt=()=>l(Kt)[1].enabled;var hn=X(),Cr=M(hn);{var ui=ht=>{const sn=_(()=>`default-${It()}`);{let Ln=_(()=>r()(`assets_dialog.folder.${It()}`)),$n=_(()=>l(k)===l(sn));kr(ht,{get name(){return l(sn)},get label(){return l(Ln)},get selected(){return l($n)}})}};q(Cr,ht=>{kt()&&ht(ui)})}$(En,hn)}),$(on,Mt)},$$slots:{default:!0}})}var lt=j(st,2);{var xt=rn=>{{let on=_(()=>r()("asset_location.external"));Da(rn,{get label(){return l(on)},children:(pt,Mt)=>{var cn=AK(),En=M(cn);{var mn=It=>{{let kt=_(()=>r()("assets_dialog.enter_url"));kr(It,{name:"enter-url",get label(){return l(kt)}})}};q(En,It=>{b()&&It(mn)})}var Kt=j(En,2);it(Kt,17,()=>Object.values(ng),It=>It.serviceId,(It,kt)=>{const hn=_(()=>{const{serviceId:Cr,serviceLabel:ui}=l(kt);return{serviceId:Cr,serviceLabel:ui}});kr(It,{get name(){return l(hn).serviceId},get label(){return l(hn).serviceLabel}})}),$(pt,cn)},$$slots:{default:!0}})}};q(lt,rn=>{(b()||Object.keys(ng).length)&&rn(xt)})}var Yt=j(lt,2);{var wn=rn=>{{let on=_(()=>r()("asset_location.stock_photos"));Da(rn,{get label(){return l(on)},children:(pt,Mt)=>{var cn=X(),En=M(cn);it(En,17,()=>l(W),([mn,{serviceLabel:Kt}])=>mn,(mn,Kt)=>{var It=_(()=>lo(l(Kt),2));let kt=()=>l(It)[0],hn=()=>l(It)[1].serviceLabel;kr(mn,{get name(){return kt()},get label(){return hn()}})}),$(pt,cn)},$$slots:{default:!0}})}};q(Yt,rn=>{l(W).length&&rn(wn)})}$(Ne,Xe)},$$slots:{default:!0}})})}var Ye=j(He,2);{var Ue=ye=>{var ot=LK(),Qe=z(ot);p(Qe),$(ye,ot)};q(Ye,ye=>{c()&&ye(Ue)})}var Te=j(Re,2),ze=z(Te);{var Oe=ye=>{{let ot=_(()=>l(H).filter(Qe=>an(Qe.folder,l(N))&&(l(N).entryRelative?dn(Qe.path).dirname===l(B):!0)));yK(ye,{get accept(){return v()},get multiple(){return m()},get assets(){return l(ot)},get searchTerms(){return l(P)},get basePath(){return l(N).internalPath},onDrop:({files:Qe})=>{ee(Qe)},get selectedResources(){return l(T)},set selectedResources(Qe){G(T,Qe,!0)}})}};q(ze,ye=>{l(I)&&l(N)&&ye(Oe)})}var Ae=j(ze,2);{var we=ye=>{hr(ye,{children:(ot,Qe)=>{var Ne=NK(),je=M(Ne),Xe=z(je),st=j(je,2);Cn(st,{flex:!0,oninput:()=>{const lt=l(w).trim();G(T,lt?[{url:lt}]:[],!0)},get value(){return l(w)},set value(lt){G(w,lt,!0)}}),Z(lt=>te(Xe,lt),[()=>e.kind==="image"?r()("assets_dialog.enter_image_url"):r()("assets_dialog.enter_file_url")]),$(ot,Ne)},$$slots:{default:!0}})};q(Ae,ye=>{b()&&l(k)==="enter-url"&&ye(we)})}var Pe=j(Ae,2);it(Pe,17,()=>l(F),([ye,ot])=>ye,(ye,ot)=>{var Qe=_(()=>lo(l(ot),2));let Ne=()=>l(Qe)[0],je=()=>l(Qe)[1];var Xe=X(),st=M(Xe);{var lt=xt=>{uK(xt,{get kind(){return e.kind},get multiple(){return m()},get searchTerms(){return l(P)},get serviceProps(){return je()},gridId:"select-assets-grid",get selectedResources(){return l(T)},set selectedResources(Yt){G(T,Yt,!0)}})};q(st,xt=>{l(k)===Ne()&&xt(lt)})}$(ye,Xe)}),Z(()=>Ee(Te,"id",`${n}-content-pane`)),$(_e,Ce)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}var be=j(fe,2);vt(bb(be,{get accept(){return v()},onSelect:({files:pe})=>{ee(pe)}}),pe=>G(x,pe,!0),()=>l(x)),$(t,ae),ce(),h()}var MK=U('<div role="status"> </div>'),FK=U('<!> <div role="none"><!></div>',1),zK=U('<div role="none"><!></div>');const jK={hash:"svelte-qqvxpl",code:".empty.svelte-qqvxpl button {flex-direction:column;justify-content:center;height:120px;font-size:var(--sui-font-size-small);}.empty.svelte-qqvxpl button .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.empty.svelte-qqvxpl button:disabled {pointer-events:none !important;}.empty.svelte-qqvxpl button:disabled * {opacity:0.5;}.empty.invalid.svelte-qqvxpl button {border-color:var(--sui-error-border-color);}"};function BK(t,e){le(e,!0),ke(t,jK);const n=()=>V(ue,"$_",i),r=()=>V(Wc,"$hasMouse",i),[i,o]=me();let s=R(e,"showSelectAssetsDialog",15,!1),a=R(e,"replaceMode",15,!1);var c=zK();let u;var d=z(c);{let f=_(()=>e.readonly||e.processing);Ze(d,{flex:!0,role:"button",variant:"tertiary",get disabled(){return l(f)},tabindex:"0",onclick:()=>{e.readonly||(a(!1),s(!0))},children:(h,p)=>{var g=FK(),m=M(g);Je(m,{name:"cloud_upload"});var v=j(m,2),b=z(v);{var y=E=>{var k=MK(),S=z(k);Z(C=>te(S,C),[()=>n()("processing_file")]),$(E,k)},w=E=>{var k=X(),S=M(k);{var C=T=>{var A=X(),P=M(A);{var L=N=>{var D=Ie();Z(B=>te(D,B),[()=>n()(`drop_image_${e.multiple?"files":"file"}_or_click_to_browse`)]),$(N,D)},I=N=>{var D=Ie();Z(B=>te(D,B),[()=>n()(`drop_${e.multiple?"files":"file"}_or_click_to_browse`)]),$(N,D)};q(P,N=>{e.isImageWidget?N(L):N(I,!1)})}$(T,A)},x=T=>{var A=Ie();Z(P=>te(A,P),[()=>n()("tap_to_browse")]),$(T,A)};q(S,T=>{r()?T(C):T(x,!1)},!0)}$(E,k)};q(b,E=>{e.processing?E(y):E(w,!1)})}$(h,g)},$$slots:{default:!0}})}Z(f=>u=Zt(c,1,"empty svelte-qqvxpl",null,u,f),[()=>({invalid:e.invalid,processing:e.processing})]),$(t,c),ce(),o()}var UK=U('<div role="toolbar" class="reorder-controls svelte-1ncvwuf"><!> <!></div>'),qK=U('<span role="none" class="preview no-thumbnail"><!></span>'),VK=U('<div role="textbox" tabindex="0" class="filename svelte-1ncvwuf"> </div>'),HK=U('<div role="none" class="filled svelte-1ncvwuf"><!> <!> <div role="none" class="svelte-1ncvwuf"><!> <div role="none"><!> <!></div></div></div>');const KK={hash:"svelte-1ncvwuf",code:".filled.svelte-1ncvwuf {display:flex !important;align-items:center;gap:12px;margin:var(--sui-focus-ring-width);}.filled.svelte-1ncvwuf .preview {flex:none;width:120px !important;height:120px !important;border-color:var(--sui-control-border-color) !important;border-radius:var(--sui-control-medium-border-radius);padding:8px !important;}.filled.svelte-1ncvwuf .preview.no-thumbnail {display:flex;align-items:center;justify-content:center;background-color:var(--sui-secondary-background-color);}.filled.svelte-1ncvwuf .preview.no-thumbnail .icon {font-size:64px;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) {flex:auto;overflow:hidden;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) .filename:where(.svelte-1ncvwuf) {margin:var(--sui-focus-ring-width);padding:4px;word-break:break-all;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) .filename:where(.svelte-1ncvwuf):empty {margin:0;padding:0;}.reorder-controls.svelte-1ncvwuf {flex:none !important;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:4px;border:1px solid var(--sui-control-border-color);border-radius:var(--sui-control-medium-border-radius);height:-moz-available;height:-webkit-fill-available;height:stretch;background-color:var(--sui-secondary-border-color);}.reorder-controls.svelte-1ncvwuf button {padding:0;height:16px;}"};function a2(t,e){le(e,!0),ke(t,KK);const n=()=>V(We,"$entryDraft",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=R(e,"readonly",3,!1),a=R(e,"invalid",3,!1),c=R(e,"required",3,!1),u=R(e,"collectionName",3,""),d=R(e,"fileName",3,void 0),f=R(e,"entry",3,void 0);let h=ie(void 0),p=ie(void 0),g=ie(void 0),m=ie(void 0);const v=_(()=>e.widgetName==="image"),b=_(()=>{if(!e.value)return"";if(l(p)){const{publicPath:H,entryRelative:W,hasTemplateTags:Y}=n()?.files[e.value].folder??{};return nc([W||Y?"":H||"",decodeURI(l(p).name.normalize())])}if(!e.value.startsWith("blob:")){const H=decodeURI(e.value);if(Ef(H)){const W=new URL(H);if(W.search)return W.search="",`${W}…`}return H}return""}),y=async()=>{if(e.value?.startsWith("blob:")&&n()&&G(p,n().files[e.value]?.file,!0),e.value){const H={value:e.value,entry:f(),collectionName:u(),fileName:d()};e.value.startsWith("blob:")?(G(h,void 0),G(g,e.value?await Xk(e.value):void 0,!0),G(m,e.value&&l(g)?await ic({...H,thumbnail:!0}):void 0,!0)):l(v)&&/^https?:/.test(e.value)?(G(h,void 0),G(g,"image"),G(m,e.value,!0)):(G(h,Vv({...H}),!0),G(g,void 0),G(m,void 0))}else G(h,void 0),G(p,void 0),G(g,void 0),G(m,void 0)};De(()=>{e.value,Se(()=>{y()})});var w=HK(),E=z(w);{var k=H=>{var W=UK(),Y=z(W);{const F=Q=>{Je(Q,{name:"arrow_upward"})};let K=_(()=>!e.onMoveUp),J=_(()=>r()("move_up"));Ze(Y,{size:"small",iconic:!0,get disabled(){return l(K)},get"aria-label"(){return l(J)},onclick:()=>{e.onMoveUp?.()},startIcon:F,$$slots:{startIcon:!0}})}var O=j(Y,2);{const F=Q=>{Je(Q,{name:"arrow_downward"})};let K=_(()=>!e.onMoveDown),J=_(()=>r()("move_down"));Ze(O,{size:"small",iconic:!0,get disabled(){return l(K)},get"aria-label"(){return l(J)},onclick:()=>{e.onMoveDown?.()},startIcon:F,$$slots:{startIcon:!0}})}$(H,W)};q(E,H=>{(e.onMoveUp||e.onMoveDown)&&!s()&&H(k)})}var S=j(E,2);{var C=H=>{Ro(H,{get kind(){return l(g)},get src(){return l(m)},variant:"tile",checkerboard:!0})},x=H=>{var W=X(),Y=M(W);{var O=K=>{Ro(K,{get kind(){return l(h).kind},get asset(){return l(h)},variant:"tile",checkerboard:!0})},F=K=>{var J=qK(),Q=z(J);Je(Q,{name:"draft"}),$(K,J)};q(Y,K=>{l(h)?K(O):K(F,!1)},!0)}$(H,W)};q(S,H=>{l(g)&&l(m)?H(C):H(x,!1)})}var T=j(S,2),A=z(T);{var P=H=>{var W=VK(),Y=z(W);Z(()=>{Ee(W,"id",`${e.fieldId??""}-value`),Ee(W,"aria-readonly",s()),Ee(W,"aria-invalid",a()),Ee(W,"aria-required",c()),Ee(W,"aria-labelledby",`${e.fieldId??""}-label`),Ee(W,"aria-errormessage",`${e.fieldId??""}-error`),te(Y,l(b))}),$(H,W)};q(A,H=>{typeof e.value=="string"&&H(P)})}var L=j(A,2),I=z(L);{var N=H=>{{let W=_(()=>r()("replace")),Y=_(()=>r()(`replace_${e.widgetName}`));Ze(H,{get disabled(){return s()},variant:"tertiary",size:"small",get label(){return l(W)},get"aria-label"(){return l(Y)},get"aria-controls"(){return`${e.fieldId??""}-value`},onclick:()=>{e.onReplace()}})}};q(I,H=>{e.onReplace&&H(N)})}var D=j(I,2);{var B=H=>{{let W=_(()=>r()("remove")),Y=_(()=>r()(`remove_${e.widgetName}`));Ze(H,{get disabled(){return s()},variant:"tertiary",size:"small",get label(){return l(W)},get"aria-label"(){return l(Y)},get"aria-controls"(){return`${e.fieldId??""}-value`},onclick:()=>{e.onRemove()}})}};q(D,H=>{e.onRemove&&H(B)})}$(t,w),ce(),o()}const l2=async({draft:t,file:e})=>{const n=await va(e);let r;return await Promise.all(Object.entries(t.files??{}).map(async([i,o])=>{!r&&await va(o.file)===n&&(r=i)})),r},GK=async({draft:t,resource:e,libraryConfig:n})=>{const{transformations:r,max_file_size:i}=n??{},{url:o,credit:s}=e;let{asset:a,file:c}=e,u="",d;if(c){const f=await l2({draft:t,file:c});if(f)u=f;else{r&&(c=await Wk(c,r));const h=await $a(c),{folder:p}=e,g=se(Dn).find(m=>m.sha===h&&an(m.folder,p));g?(a=g,c=void 0):c.size>i?(d=c.name,c=void 0):(u=URL.createObjectURL(c),t.files[u]={file:c,folder:p})}}return a&&(a.unsaved?a.file&&(u=await l2({draft:t,file:a.file})):u=Mu(a,{pathOnly:!0,allowSpecial:!0,entry:t.originalEntry})),o&&!c&&!a&&(u=o),{value:u,credit:s?Nr.sanitize(s,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]}):"",oversizedFileName:d}};var WK=U('<div role="none" class="item-list svelte-1libnfj"></div> <!>',1),YK=U('<div role="none"> </div> <div role="none"><!></div>',1),JK=U("<!> <!> <!> <!>",1);const XK={hash:"svelte-1libnfj",code:".item-list.svelte-1libnfj {display:flex;flex-direction:column;gap:4px;}"};function c2(t,e){le(e,!0),ke(t,XK);const n=()=>V(We,"$entryDraft",o),r=()=>V(ka,"$globalAssetFolder",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=ne=>{BK(ne,{get invalid(){return h()},get readonly(){return f()},get processing(){return l(E)},get isImageWidget(){return l(L)},get multiple(){return l(N)},get showSelectAssetsDialog(){return l(p)},set showSelectAssetsDialog(ae){G(p,ae,!0)},get replaceMode(){return l(g)},set replaceMode(ae){G(g,ae,!0)}})},{widgetContext:c=void 0}=Jn("field-editor")??{};let u=R(e,"currentValue",15),d=R(e,"required",3,!0),f=R(e,"readonly",3,!1),h=R(e,"invalid",3,!1),p=ie(!1),g=ie(!1),m=ie(-1),v=ie(!1),b=ie(!1),y=ie(""),w=ie(void 0),E=ie(!1);const k=_(()=>e.fieldConfig.widget),S=_(()=>tt(e.fieldConfig.max,1/0)),C=_(()=>e.fieldConfig.accept),x=_(()=>tt(e.fieldConfig.choose_url,!0)),T=_(()=>n()?.originalEntry),A=_(()=>n()?.collectionName??""),P=_(()=>n()?.fileName),L=_(()=>l(k)==="image"),I=_(()=>Hu({fieldConfig:e.fieldConfig}).config),N=_(()=>xh(e.fieldConfig)),D=_(()=>l(I).max_file_size),B=_(()=>!d()&&(!c||!["markdown-editor-component","single-field-list-widget"].includes(c))),H=_(()=>({widgetName:l(k),readonly:f(),invalid:h(),required:d(),showRemoveButton:l(B),collectionName:l(A),fileName:l(P),entry:l(T)})),W=()=>{l(w)?.reset(),l(N)||(u(""),El())},Y=async ne=>{if(!n())return;W(),G(E,!0);const ae=await Promise.all(ne.map(he=>GK({draft:n(),resource:he,libraryConfig:l(I)}))),fe=[],be=[],pe=l(N)?Object.keys(n().currentValues[e.locale]).filter(he=>he.startsWith(`${e.keyPath}.`)).map(he=>Number(he.replace(`${e.keyPath}.`,""))).pop()??-1:-1;ae.forEach(({value:he,credit:ge,oversizedFileName:ve},_e)=>{if(he)if(l(N)){const $e=l(g)?l(m):pe+1+_e;_t(We,Se(n).currentValues[e.locale][`${e.keyPath}.${$e}`]=he,Se(n))}else u(he);ge&&fe.push(ge),ve&&be.push(ve)}),fe.length?(G(y,fe.join(`
615
- `),!0),G(b,!0)):G(y,""),be.length&&G(v,!0),G(E,!1)},O=({files:ne})=>{if(!ne.length)return;const ae=Wi({collectionName:l(A),fileName:l(P)})??Wi({collectionName:l(A)})??r();Y(ne.map(fe=>({file:fe,folder:ae})))},F=ne=>{if(!n())return;const ae=On(n().currentValues[e.locale]),fe=[];for(let be=0;;be+=1){const pe=`${e.keyPath}.${be}`,he=`${e.keyPath}.${be+1}`;if(be<ne)fe.push(ae[pe]);else if(he in ae)fe.push(ae[he]),_t(We,Se(n).currentValues[e.locale][pe]=ae[he],Se(n));else{_t(We,Se(n).currentValues[e.locale][pe]=null,Se(n)),delete n().currentValues[e.locale][pe];break}}u(Object.values(fe))},K=ne=>{n()&&(ae=>{var fe=lo(ae,2);_t(We,Se(n).currentValues[e.locale][`${e.keyPath}.${ne}`]=fe[0],Se(n)),_t(We,Se(n).currentValues[e.locale][`${e.keyPath}.${ne+1}`]=fe[1],Se(n))})([n().currentValues[e.locale][`${e.keyPath}.${ne+1}`],n().currentValues[e.locale][`${e.keyPath}.${ne}`]])};var J=JK(),Q=M(J);{let ne=_(()=>l(C)??(l(L)?vo.join(","):void 0));vt(Wd(Q,{get multiple(){return l(N)},get disabled(){return f()},get accept(){return l(ne)},onDrop:O,children:(ae,fe)=>{var be=X(),pe=M(be);{var he=ve=>{var _e=X(),$e=M(_e);{var Ce=He=>{var Ye=X(),Ue=M(Ye);{var Te=ze=>{var Oe=WK(),Ae=M(Oe);it(Ae,23,u,(ye,ot)=>`${ye}|${ot}`,(ye,ot,Qe)=>{{let Ne=_(()=>l(Qe)>0?()=>K(l(Qe)-1):void 0),je=_(()=>l(Qe)<u().length-1?()=>K(l(Qe)):void 0);a2(ye,en(()=>l(H),{get value(){return l(ot)},get fieldId(){return`${e.fieldId??""}-${l(Qe)??""}`},onReplace:()=>{G(g,!0),G(m,l(Qe),!0),G(p,!0)},onRemove:()=>F(l(Qe)),get onMoveUp(){return l(Ne)},get onMoveDown(){return l(je)}}))}});var we=j(Ae,2);{var Pe=ye=>{a(ye)};q(we,ye=>{u().length<l(S)&&ye(Pe)})}$(ze,Oe)};q(Ue,ze=>{Array.isArray(u())&&ze(Te)})}$(He,Ye)},Re=He=>{var Ye=X(),Ue=M(Ye);{var Te=ze=>{a2(ze,en(()=>l(H),{get value(){return u()},get fieldId(){return e.fieldId},onReplace:()=>{G(g,!0),G(p,!0)},onRemove:W}))};q(Ue,ze=>{typeof u()=="string"&&u()&&ze(Te)},!0)}$(He,Ye)};q($e,He=>{l(N)?He(Ce):He(Re,!1)})}$(ve,_e)},ge=ve=>{a(ve)};q(pe,ve=>{u()?.length&&!l(E)?ve(he):ve(ge,!1)})}$(ae,be)},$$slots:{default:!0}}),ae=>G(w,ae,!0),()=>l(w))}var oe=j(Q,2);{let ne=_(()=>l(L)?"image":void 0),ae=_(()=>l(g)?!1:l(N));DK(oe,{get kind(){return l(ne)},get multiple(){return l(ae)},get accept(){return l(C)},get canEnterURL(){return l(x)},get entryDraft(){return We},get fieldConfig(){return e.fieldConfig},onSelect:Y,get open(){return l(p)},set open(fe){G(p,fe,!0)}})}var re=j(oe,2);{let ne=_(()=>i()("assets_dialog.large_file.title"));zh(re,{get title(){return l(ne)},get open(){return l(v)},set open(ae){G(v,ae,!0)},children:(ae,fe)=>{var be=Ie();Z(pe=>te(be,pe),[()=>i()("warning_oversized_file",{values:{size:ah(l(D))}})]),$(ae,be)},$$slots:{default:!0}})}var ee=j(re,2);{let ne=_(()=>i()("assets_dialog.photo_credit.title")),ae=_(()=>i()("copy"));bc(ee,{get title(){return l(ne)},get okLabel(){return l(ae)},onOk:()=>{navigator.clipboard.writeText(l(y))},get open(){return l(b)},set open(fe){G(b,fe,!0)},children:(fe,be)=>{var pe=YK(),he=M(pe),ge=z(he),ve=j(he,2),_e=z(ve);qd(_e,{flex:!0,readonly:!0,get value(){return l(y)},onclick:$e=>{$e.target.focus(),$e.target.select()}}),Z($e=>te(ge,$e),[()=>i()("assets_dialog.photo_credit.description")]),$(fe,pe)},$$slots:{default:!0}})}$(t,J),ce(),s()}var ZK=U("<p><!></p>"),QK=U("<p> </p>");function u2(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me();let o=ie(void 0),s=ie(void 0);const a=_(()=>n()?.originalEntry),c=_(()=>n()?.collectionName??""),u=_(()=>n()?.fileName);De(()=>{e.value,Se(async()=>{G(o,e.value?await Xk(e.value):void 0,!0),G(s,l(o)?await ic({value:e.value,entry:l(a),collectionName:l(c),fileName:l(u)}):void 0,!0)})});var d=X(),f=M(d);{var h=g=>{var m=ZK(),v=z(m);{let b=_(()=>["audio","video"].includes(l(o)));Ro(v,{get kind(){return l(o)},get src(){return l(s)},get controls(){return l(b)}})}$(g,m)},p=g=>{var m=X(),v=M(m);{var b=y=>{var w=QK(),E=z(w);Z(()=>te(E,e.value)),$(y,w)};q(v,y=>{e.value.trim()&&!e.value.startsWith("blob:")&&y(b)},!0)}$(g,m)};q(f,g=>{l(o)&&l(s)?g(h):g(p,!1)})}$(t,d),ce(),i()}function d2(t,e){le(e,!0);var n=X(),r=M(n);{var i=s=>{var a=X(),c=M(a);{var u=d=>{var f=X(),h=M(f);it(h,17,()=>e.currentValue,lr,(p,g)=>{u2(p,{get value(){return l(g)}})}),$(d,f)};q(c,d=>{Array.isArray(e.currentValue)&&d(u)})}$(s,a)},o=s=>{var a=X(),c=M(a);{var u=d=>{u2(d,{get value(){return e.currentValue}})};q(c,d=>{typeof e.currentValue=="string"&&e.currentValue&&d(u)},!0)}$(s,a)};q(r,s=>{xh(e.fieldConfig)?s(i):s(o,!1)})}$(t,n),ce()}const qy=({entryDraft:t,valueStoreKey:e="currentValues",keyPath:n,locale:r})=>Object.entries(se(t)[e][r]??{}).filter(([i])=>i.startsWith(`${n}.`)).map(([i,o])=>[i.replace(`${n}.`,""),o]),eG=({pairs:t,edited:e})=>t.map(([n],r,i)=>{if(!n.trim()&&e[r])return"empty";if(n.trim()&&i.findIndex(o=>o[0]===n)!==r)return"duplicate"}),tG=({entryDraft:t,keyPath:e,locale:n,fieldConfig:r,pairs:i})=>{const{i18n:o}=r;so.set(!1),t.update(s=>(s&&Object.entries(s.currentValues).forEach(([a,c])=>{(a===n||o==="duplicate")&&(Object.entries(c).forEach(([u])=>{u.startsWith(`${e}.`)&&delete c[u]}),i.forEach(([u,d])=>{c[`${e}.${u}`]=d}))}),s)),so.set(!0)};var nG=U('<th scope="col" class="action svelte-18v8t2h"></th>'),rG=U('<td class="action svelte-18v8t2h"><!></td>'),iG=U('<tr><td class="key svelte-18v8t2h"><!></td><td class="value svelte-18v8t2h"><!></td><!></tr>'),oG=U('<table class="svelte-18v8t2h"><thead><tr><th scope="col" class="key svelte-18v8t2h"> </th><th scope="col" class="value svelte-18v8t2h"> </th><!></tr></thead><tbody></tbody></table>'),sG=U("<!> <!>",1),aG=U('<!> <!> <div role="none"><!></div>',1);const lG={hash:"svelte-18v8t2h",code:`table.svelte-18v8t2h {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-18v8t2h,
616
- td.svelte-18v8t2h {border-width:0;}th.svelte-18v8t2h {padding-block:4px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;}th.key.svelte-18v8t2h, th.value.svelte-18v8t2h {width:50%;}td.svelte-18v8t2h {padding:0;vertical-align:middle;}`};function cG(t,e){le(e,!0),ke(t,lG);const n=()=>V(ue,"$_",i),r=()=>V(We,"$entryDraft",i),[i,o]=me(),{valueStoreKey:s="currentValues"}=Jn("field-editor")??{};let a=R(e,"readonly",3,!1);const c=_(()=>tt(e.fieldConfig.i18n,!1)),u=_(()=>e.fieldConfig.key_label),d=_(()=>e.fieldConfig.value_label),f=_(()=>tt(e.fieldConfig.max,1/0)),h=_(()=>l(u)||n()("key_value.key")),p=_(()=>l(d)||n()("key_value.value"));let g=ie(St([]));const m=St([]);let v=ie(St([])),b=ie(St([]));const y=()=>{if(!r())return;const N=qy({entryDraft:We,valueStoreKey:s,keyPath:e.keyPath,locale:e.locale});an(l(g),N)||(G(g,[...N],!0),G(v,N.map(()=>!1),!0)),!l(g).length&&r()[s][e.locale][e.keyPath]!==null&&_t(We,Se(r)[s][e.locale][e.keyPath]=null,Se(r))},w=()=>{r()&&(Object.entries(r()[s]).forEach(([I,N])=>{(I===e.locale||l(c)==="duplicate")&&delete N[e.keyPath]}),l(g).push(["",""]),l(v).push(!1),window.requestAnimationFrame(()=>{m[l(g).length-1].querySelector("input").focus()}))},E=I=>{l(g).splice(I,1),l(v).splice(I,1)},k=()=>{if(G(b,eG({pairs:l(g),edited:l(v)}),!0),!r()||l(b).some(Boolean)||l(g).some(([N])=>!N.trim()))return;tG({entryDraft:We,fieldConfig:e.fieldConfig,keyPath:e.keyPath,locale:e.locale,pairs:l(g)})};De(()=>{On(r()?.[s][e.locale]),Se(()=>{y()})}),De(()=>{On(l(g)),Se(()=>{k()})});var S=aG(),C=M(S);{var x=I=>{var N=oG(),D=z(N),B=z(D),H=z(B),W=z(H),Y=j(H),O=z(Y),F=j(Y);{var K=Q=>{var oe=nG();Z(re=>Ee(oe,"aria-label",re),[()=>n()("key_value.action")]),$(Q,oe)};q(F,Q=>{a()||Q(K)})}var J=j(D);it(J,21,()=>l(g),lr,(Q,oe,re)=>{var ee=iG(),ne=z(ee),ae=z(ne);{let ge=_(()=>!!l(b)[re]),ve=_(()=>l(b)[re]?`${e.fieldId}-kv-error`:void 0);Cn(ae,{get readonly(){return a()},flex:!0,get invalid(){return l(ge)},get"aria-label"(){return l(h)},get"aria-errormessage"(){return l(ve)},oninput:()=>{l(v)[re]=!0},onkeydown:_e=>{_e.key==="Enter"&&!_e.isComposing&&m[re].querySelector("td.value input").focus()},get value(){return l(oe)[0]},set value(_e){l(oe)[0]=_e}})}var fe=j(ne),be=z(fe);Cn(be,{get readonly(){return a()},flex:!0,get"aria-label"(){return l(p)},onkeydown:ge=>{ge.key==="Enter"&&!ge.isComposing&&(re<l(g).length-1?m[re+1].querySelector("input").focus():l(g).length<l(f)&&w())},get value(){return l(oe)[1]},set value(ge){l(oe)[1]=ge}});var pe=j(fe);{var he=ge=>{var ve=rG(),_e=z(ve);{const $e=Re=>{Je(Re,{name:"close"})};let Ce=_(()=>n()("remove"));Ze(_e,{variant:"ghost",size:"small",iconic:!0,get"aria-label"(){return l(Ce)},onclick:()=>{E(re)},startIcon:$e,$$slots:{startIcon:!0}})}$(ge,ve)};q(pe,ge=>{a()||ge(he)})}vt(ee,(ge,ve)=>m[ve]=ge,ge=>m?.[ge],()=>[re]),$(Q,ee)}),Z(()=>{te(W,l(h)),te(O,l(p))}),$(I,N)};q(C,I=>{l(g).length&&I(x)})}var T=j(C,2);{var A=I=>{Uy(I,{get id(){return`${e.fieldId??""}-kv-error`},children:(N,D)=>{var B=sG(),H=M(B);{var W=F=>{var K=Ie();Z(J=>te(K,J),[()=>n()("key_value.empty_key")]),$(F,K)};q(H,F=>{l(b).includes("empty")&&F(W)})}var Y=j(H,2);{var O=F=>{var K=Ie();Z(J=>te(K,J),[()=>n()("key_value.duplicate_key")]),$(F,K)};q(Y,F=>{l(b).includes("duplicate")&&F(O)})}$(N,B)}})};q(T,I=>{l(b).some(Boolean)&&I(A)})}var P=j(T,2),L=z(P);{let I=_(()=>n()("add")),N=_(()=>a()||l(g).length>=l(f));Ze(L,{get label(){return l(I)},variant:"tertiary",get disabled(){return l(N)},onclick:()=>{w()}})}$(t,S),ce(),o()}var uG=U('<tr><td class="svelte-dq8vuc"> </td><td class="svelte-dq8vuc"> </td></tr>'),dG=U('<table class="svelte-dq8vuc"><thead><tr><th scope="col" class="svelte-dq8vuc"> </th><th scope="col" class="svelte-dq8vuc"> </th></tr></thead><tbody></tbody></table>');const fG={hash:"svelte-dq8vuc",code:'@charset "UTF-8";table.svelte-dq8vuc {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-dq8vuc {padding-block:4px;width:50%;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;}td.svelte-dq8vuc:empty::after {content:" ";}'};function hG(t,e){le(e,!0),ke(t,fG);const n=()=>V(ue,"$_",i),r=()=>V(We,"$entryDraft",i),[i,o]=me(),s=_(()=>e.fieldConfig.key_label),a=_(()=>e.fieldConfig.value_label),c=_(()=>l(s)||n()("key_value.key")),u=_(()=>l(a)||n()("key_value.value"));let d=ie(St([]));const f=()=>{const v=qy({entryDraft:We,keyPath:e.keyPath,locale:e.locale});an(l(d),v)||G(d,v,!0)};De(()=>{r()&&(On(r().currentValues[e.locale]),Se(()=>{f()}))});var h=X(),p=M(h);{var g=m=>{var v=dG(),b=z(v),y=z(b),w=z(y),E=z(w),k=j(w),S=z(k),C=j(b);it(C,21,()=>l(d),lr,(x,T)=>{var A=_(()=>lo(l(T),2));let P=()=>l(A)[0],L=()=>l(A)[1];var I=uG(),N=z(I),D=z(N),B=j(N),H=z(B);Z(()=>{te(D,P()),te(H,L())}),$(x,I)}),Z(()=>{te(E,l(c)),te(S,l(u))}),$(m,v)};q(p,m=>{l(d).length&&m(g)})}$(t,h),ce(),o()}function Vy(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"disabled",3,!1),s=R(e,"items",19,()=>[]),a=R(e,"addItem",3,()=>{});const c=_(()=>e.fieldConfig.widget),u=_(()=>e.fieldConfig.name),d=_(()=>e.fieldConfig.label),f=_(()=>e.fieldConfig.types),h=_(()=>l(c)==="list"?e.fieldConfig:void 0),p=_(()=>l(h)?.label_singular??""),g=_(()=>l(h)?.max??void 0),m=_(()=>n()("add_x",{values:{name:l(p)||l(d)||l(u)}})),v=_(()=>o()||typeof l(g)=="number"&&s().length===l(g));var b=X(),y=M(b);{var w=k=>{Ir(k,{variant:"tertiary",get label(){return l(m)},get disabled(){return l(v)},startIcon:T=>{Je(T,{name:"add"})},endIcon:T=>{},popup:T=>{{let A=_(()=>n()("select_list_type"));ir(T,{get"aria-label"(){return l(A)},children:(P,L)=>{var I=X(),N=M(I);it(N,17,()=>l(f),({name:D,label:B})=>D,(D,B)=>{let H=()=>l(B).name,W=()=>l(B).label;{let Y=_(()=>W()||H());mt(D,{get label(){return l(Y)},onclick:()=>a()({type:H()})})}}),$(P,I)},$$slots:{default:!0}})}},$$slots:{startIcon:!0,endIcon:!0,popup:!0}})},E=k=>{Ze(k,{variant:"tertiary",get label(){return l(m)},get disabled(){return l(v)},onclick:()=>a()(),startIcon:C=>{Je(C,{name:"add"})},$$slots:{startIcon:!0}})};q(y,k=>{Array.isArray(l(f))?k(w):k(E,!1)})}$(t,b),ce(),i()}var pG=U('<span role="none" class="type svelte-12y2c75"> </span>'),gG=U('<div role="none" class="header svelte-12y2c75"><div role="none" class="svelte-12y2c75"><!></div> <div role="none" class="svelte-12y2c75"><!></div> <div role="none" class="svelte-12y2c75"><!></div></div>');const mG={hash:"svelte-12y2c75",code:".header.svelte-12y2c75 {display:flex;align-items:center;gap:8px;background-color:var(--sui-secondary-border-color);}.header.svelte-12y2c75 > div:where(.svelte-12y2c75) {display:flex;align-items:center;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):first-child {justify-content:flex-start;width:40%;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):nth-child(2) {width:20%;justify-content:center;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):last-child {width:40%;justify-content:flex-end;}.header.svelte-12y2c75 button {padding:0;height:16px;}.header.svelte-12y2c75 .type:where(.svelte-12y2c75) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}"};function f2(t,e){le(e,!0),ke(t,mG);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"label",3,""),s=R(e,"centerContent",3,void 0),a=R(e,"endContent",3,void 0);var c=gG(),u=z(c),d=z(u);{const m=y=>{{let w=_(()=>e.expanded?"expand_more":"chevron_right");Je(y,{get name(){return l(w)}})}};let v=_(()=>!e.toggleExpanded),b=_(()=>e.expanded?n()("collapse"):n()("expand"));Ze(d,{size:"small",get disabled(){return l(v)},get"aria-label"(){return l(b)},get"aria-expanded"(){return e.expanded},get"aria-controls"(){return e.controlId},onclick:()=>{e.toggleExpanded?.()},startIcon:m,children:(y,w)=>{var E=X(),k=M(E);{var S=C=>{var x=pG(),T=z(x);Z(()=>te(T,o())),$(C,x)};q(k,C=>{o()&&C(S)})}$(y,E)},$$slots:{startIcon:!0,default:!0}})}var f=j(u,2),h=z(f);Me(h,()=>s()??Be);var p=j(f,2),g=z(p);Me(g,()=>a()??Be),$(t,c),ce(),i()}const vG=({fieldConfig:t,dynamicValue:e})=>{if(e!==void 0)return e==="true";const{default:n}=t;return typeof n=="boolean"?n:!1},bG=t=>({[t.keyPath]:vG(t)}),_G=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,output_code_only:i=!1,keys:o={code:"code",lang:"lang"}}=t,s=n!==void 0?n:r;if(i)return{[e]:typeof s=="string"?s:""};const a=Gt(s)?s:void 0,c=a?.[o.code]??s,u=a?.[o.lang]??"";return{[e]:{},[`${e}.${o.code}`]:typeof c=="string"?c:"",[`${e}.${o.lang}`]:typeof u=="string"?u:""}},yG=({fieldConfig:t,dynamicValue:e})=>{const n=t,r=n.default,i=e??r;return typeof i!="string"?"":i==="{{now}}"?j1(z1(n),"",n):i},wG=t=>({[t.keyPath]:yG(t)}),h2=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const r=t,i=r.default,o=xh(r);let s="";n!==void 0?s=o?n.split(/,\s*/):n:o?s=Array.isArray(i)?i:[]:s=typeof i=="string"?i:"";const a={};return o&&Array.isArray(s)&&(s=s.map(c=>c.trim()).filter(c=>c!==""),s.length&&(a[e]=[],s.forEach((c,u)=>{a[`${e}.${u}`]=c}))),!o&&typeof s=="string"&&(s=s.trim(),s&&(a[e]=s)),a},xG=({fieldConfig:t,locale:e,dynamicValue:n})=>{const{default:r}=t,i=n??r;return typeof i!="string"?i:i.replaceAll(/{{(.+?)}}/g,(o,s)=>s==="locale"?e:s==="datetime"?new Date().toJSON().replace(/\d+\.\d+Z$/,"00.000Z"):s==="uuid"?ti():s==="uuid_short"?ti("short"):s==="uuid_shorter"?ti("shorter"):"")},p2=t=>({[t.keyPath]:xG(t)}),kG=({fieldConfig:t,locale:e})=>{const{default:n}=t,r=uc({fieldConfig:t,locale:e});return Gt(n)?n:r?{"":""}:{}},SG=t=>{const{keyPath:e,dynamicValue:n}=t;let r;if(n!==void 0)try{const i=JSON.parse(n);Gt(i)&&(r=i)}catch{}return r??=kG(t),Object.fromEntries(Object.entries(r).filter(([,i])=>typeof i=="string").map(([i,o])=>[`${e}.${i}`,o]))},EG=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,fields:i,types:o}=t;let s;if(n!==void 0?s=n.split(/,\s*/).map(u=>u.trim()).filter(u=>u!==""):s=Array.isArray(r)?r:[],!(Array.isArray(s)&&!!s.length))return{[e]:[]};const c={[e]:s};return i||o?s.forEach((u,d)=>{Gt(u)?Object.entries(Yi(u)).forEach(([f,h])=>{c[`${e}.${d}.${f}`]=h}):c[`${e}.${d}`]=u}):s.forEach((u,d)=>{Gt(u)||(c[`${e}.${d}`]=u)}),c},$G=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r}=t;let i;if(n!==void 0)try{i=KN(n)}catch{i=n.replace(/<[^>]*>/g,"")}else i=r||"";return{[e]:i}},TG=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,value_type:i="int"}=t,o=n??r,s=typeof o=="string";if(o===void 0)return i==="int"||i==="float"?{[e]:null}:{[e]:""};if(i==="int"){const a=s?Number.parseInt(o,10):o;return Number.isInteger(a)?{[e]:a}:{}}if(i==="float"){const a=s?Number.parseFloat(o):o;return Number.isFinite(a)?{[e]:a}:{}}return s?{[e]:o}:{}},CG=({fieldConfig:t,keyPath:e,locale:n})=>{const{default:r,fields:i,types:o}=t,s=uc({fieldConfig:t,locale:n}),a={};return Gt(r)?(Object.entries(Yi(r)).forEach(([c,u])=>{a[`${e}.${c}`]=u}),a):!s||Array.isArray(o)?(a[e]=null,a):(i&&i.length>0&&i.forEach(c=>{v2({content:a,keyPath:[e,c.name].join("."),fieldConfig:c,locale:n,dynamicValues:{}})}),a)},g2=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const r=t,{default:i,multiple:o=!1}=r,s=n!==void 0?n.split(/,\s*/).map(c=>c.trim()):i,a=Array.isArray(s)&&!!s.length;if(!o){if(n!==void 0){const c=n.split(/,\s*/).map(u=>u.trim());return{[e]:c[0]||""}}return{[e]:s!==void 0?s:""}}return a?Object.fromEntries(s.map((c,u)=>[`${e}.${u}`,c])):{[e]:[]}},m2={boolean:bG,code:_G,datetime:wG,file:h2,hidden:p2,image:h2,keyvalue:SG,list:EG,markdown:$G,number:TG,object:CG,relation:g2,select:g2},v2=({content:t,keyPath:e,fieldConfig:n,locale:r,dynamicValues:i})=>{const{widget:o="string",default:s}=n;if(o==="compute"){t[e]="";return}const a=e in i&&!/\.\d+(?:\.|$)/.test(e)&&i[e].trim()||void 0;if(o in m2){Object.assign(t,m2[o]({fieldConfig:n,keyPath:e,locale:r,dynamicValue:a}));return}t[e]=a||s||""},Qd=(t,e,n={})=>{const r={};return t.forEach(i=>{v2({content:r,keyPath:i.name,fieldConfig:i,locale:e,dynamicValues:n})}),r},b2=(t,e)=>{Object.entries(e).forEach(([n,r])=>{t[n]!==r&&(t[n]=r)}),Object.keys(t).forEach(n=>{n in e||delete t[n]})},_2=(t,e)=>{const n=new RegExp(`^${qt(e)}\\b(?!#)`),r=Object.entries(t).filter(([i])=>n.test(i)).map(([i,o])=>[i.replace(n,"_"),o]).sort();return[Yo(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(t).filter(([i])=>!n.test(i)))]},y2=({locale:t,valueStoreKey:e="currentValues",keyPath:n,manipulate:r})=>{const i=se(We),{collection:o,collectionFile:s}=i,{defaultLocale:a}=(s??o)._i18n,[c,u]=_2(i[e][t],n),[d,f]=t===a?_2(i.expanderStates._,n):[[],[]];r({valueList:c,expanderStateList:d}),so.set(!1),We.update(h=>(b2(h[e][t],{...Yi({[n]:c}),...u}),t===a&&b2(h.expanderStates._,{...Yi({[n]:d}),...f}),h)),so.set(!0)},w2=({key:t,locale:e,collapsed:n=!1})=>{const r=se(We),i=r?.expanderStates?._[t];if(i!==void 0)return i;if(n==="auto"){const o=r?.currentValues?.[e]??{},s=new RegExp(`^${qt(t.replace(/#$/,""))}\\.[^\\.]+$`);return!Object.entries(o).some(([a,c])=>s.test(a)&&!!c)}return!n},Do=t=>{We.update(e=>(e&&Object.entries(t).forEach(([n,r])=>{e.expanderStates._[n]!==r&&(e.expanderStates._[n]=r)}),e))},x2=({collectionName:t,fileName:e,valueMap:n,keyPath:r,isIndexFile:i=!1})=>{const o=new Set,s={collectionName:t,fileName:e,valueMap:n,isIndexFile:i};return r.split(".").forEach((a,c,u)=>{const d=u.slice(0,c+1).join("."),f=fn({...s,keyPath:d}),h=/\.\d+$/.test(d);if(f?.widget==="object")h&&o.add(d),o.add(`${d}#`);else if(f?.widget==="list")o.add(h?d:`${d}#`);else if(c>0){const p=u.slice(0,c).join("."),g=fn({...s,keyPath:p});g?.widget==="object"&&g.fields&&o.add(`${p}.${g.name}#`),g?.widget==="list"&&g.field&&o.add(d)}}),[...o]},AG=({collectionName:t,fileName:e,currentValues:n})=>{const{validities:r,isIndexFile:i}=se(We),o={};Object.entries(r??{}).forEach(([s,a])=>{Object.entries(a).forEach(([c,{valid:u}])=>{u||x2({collectionName:t,fileName:e,valueMap:n[s],keyPath:c,isIndexFile:i}).forEach(d=>{o[d]=!0})})}),Do(o)};var PG=U("<!> <!>",1),LG=U('<div role="none" class="toolbar top add svelte-1eiee9e"><!></div>'),NG=U("<!> <!> <!>",1),IG=U("<!> <!>",1),OG=U("<!> <!>",1),RG=U("<!> <!>",1),DG=U("<!> <!>",1),MG=U('<div role="none" class="summary svelte-1eiee9e"><!></div>'),FG=U('<div role="none" class="item svelte-1eiee9e"><!> <div role="none" class="item-body"><!></div></div>'),zG=U('<div role="none" class="toolbar bottom add svelte-1eiee9e"><!> <!></div>'),jG=U('<div role="none" class="toolbar top svelte-1eiee9e"><!> <div role="none" class="summary"> </div> <!> <!></div> <!> <div role="none"></div> <!>',1);const BG={hash:"svelte-1eiee9e",code:".toolbar.svelte-1eiee9e {display:flex;align-items:center;}.toolbar.top.add.svelte-1eiee9e {margin-block:8px 16px !important;}.toolbar.bottom.add.svelte-1eiee9e {margin-block:16px 0 !important;}.item-list.collapsed.svelte-1eiee9e {display:none;}.item.svelte-1eiee9e {margin:16px 0;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.item.svelte-1eiee9e .summary:where(.svelte-1eiee9e) {padding:8px;}.item.svelte-1eiee9e .summary:where(.svelte-1eiee9e):empty {display:none;}"};function UG(t,e){const n=Rn();le(e,!0),ke(t,BG);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(ln,"$isSmallScreen",s),[s,a]=me(),{valueStoreKey:c="currentValues"}=Jn("field-editor")??{},u=_(()=>e.fieldConfig.name),d=_(()=>e.fieldConfig.label),f=_(()=>e.fieldConfig.i18n),h=_(()=>tt(e.fieldConfig.allow_add,!0)),p=_(()=>tt(e.fieldConfig.allow_remove,!0)),g=_(()=>tt(e.fieldConfig.allow_reorder,!0)),m=_(()=>e.fieldConfig.collapsed),v=_(()=>e.fieldConfig.summary),b=_(()=>tt(e.fieldConfig.minimize_collapsed,!1)),y=_(()=>e.fieldConfig.label_singular),w=_(()=>e.fieldConfig.field),E=_(()=>e.fieldConfig.fields),k=_(()=>tt(e.fieldConfig.max,1/0)),S=_(()=>tt(e.fieldConfig.add_to_top,!1)),C=_(()=>e.fieldConfig.types),x=_(()=>tt(e.fieldConfig.typeKey,"type")),T=_(()=>Yu(e.fieldConfig)),A=_(()=>l(T).hasSingleSubField),P=_(()=>l(T).hasVariableTypes),L=_(()=>new RegExp(`^${qt(e.keyPath)}\\.(\\d+)(.*)?`)),I=_(()=>r()?.isIndexFile??!1),N=_(()=>r()?.collection),D=_(()=>r()?.collectionName??""),B=_(()=>r()?.collectionFile),H=_(()=>r()?.fileName),W=_(()=>(l(B)??l(N))?._i18n??Zi),Y=_(()=>l(W).defaultLocale),O=_(()=>e.locale!==l(Y)&&l(f)==="duplicate"),F=_(()=>On(r()?.[c][e.locale])??{}),K=_(()=>`${e.keyPath}#`),J=_(()=>r()?.expanderStates?._[l(K)]??!0),Q=_(()=>Yo(Object.fromEntries(Object.entries(l(F)).filter(([we])=>l(L).test(we)).map(([we,Pe])=>[we.replace(new RegExp(`^${qt(e.keyPath)}`),l(u)),Pe])))[l(u)]??[]),oe=_(()=>l(Q).map((we,Pe)=>{const ye=`${e.keyPath}.${Pe}`;return[ye,r()?.expanderStates?._[ye]??!0]})),re=_(()=>l(Q).length>=l(k)),ee=()=>{Do({[l(K)]:l(b)==="auto"?!l(Q).length:!l(b),...Object.fromEntries(l(Q).map((we,Pe)=>{const ye=`${e.keyPath}.${Pe}`;return[ye,w2({key:ye,locale:e.locale,collapsed:l(m)})]}))})},ne=we=>{Object.keys(r()?.[c]??{}).forEach(Pe=>{l(f)!=="duplicate"&&Pe!==e.locale||y2({locale:Pe,valueStoreKey:c,keyPath:e.keyPath,manipulate:we})})},ae=({index:we=l(S)?0:l(Q).length,dupIndex:Pe,type:ye}={})=>{ne(({valueList:ot,expanderStateList:Qe})=>{const Ne=ye?l(C)?.find(({name:Xe})=>Xe===ye)?.fields??[]:l(E)??(l(w)?[l(w)]:[]),je=(()=>{if(typeof Pe=="number")return structuredClone(ot[Pe]);const Xe=Yo(Qd(Ne,e.locale));return l(A)&&l(w)?Xe[l(w).name]:Xe})();ye&&(je[l(x)]=ye),l(A)||(je.__sc_item_id=crypto.randomUUID()),ot.splice(we,0,je),Qe.splice(we,0,!0)}),Do({[l(K)]:!0})},fe=we=>{ne(({valueList:Pe,expanderStateList:ye})=>{Pe.splice(we,1),ye.splice(we,1)})},be=we=>{ne(({valueList:Pe,expanderStateList:ye})=>{l(A)||(Pe[we].__sc_item_id??=crypto.randomUUID(),Pe[we+1].__sc_item_id??=crypto.randomUUID()),[Pe[we],Pe[we+1]]=[Pe[we+1],Pe[we]],[ye[we],ye[we+1]]=[ye[we+1],ye[we]]})},pe=(we,Pe)=>VF({collectionName:l(D),fileName:l(H),keyPath:e.keyPath,valueMap:l(F),locale:e.locale,summaryTemplate:Pe,hasSingleSubField:l(A),index:we,isIndexFile:l(I)});Ft(()=>{ee()});var he=jG(),ge=M(he),ve=z(ge);{const we=ot=>{{let Qe=_(()=>l(J)?"expand_more":"chevron_right");Je(ot,{get name(){return l(Qe)}})}};let Pe=_(()=>!l(Q).length),ye=_(()=>l(J)?i()("collapse"):i()("expand"));Ze(ve,{iconic:!0,get disabled(){return l(Pe)},get"aria-label"(){return l(ye)},get"aria-expanded"(){return l(J)},get"aria-controls"(){return`list-${n}-item-list`},onclick:()=>{Do({[l(K)]:!l(J)})},startIcon:we,$$slots:{startIcon:!0}})}var _e=j(ve,2),$e=z(_e),Ce=j(_e,2);Wr(Ce,{flex:!0});var Re=j(Ce,2);{var He=we=>{var Pe=PG(),ye=M(Pe);{let Qe=_(()=>i()("expand_all")),Ne=_(()=>l(oe).every(([,je])=>je));Ze(ye,{variant:"tertiary",size:"small",get label(){return l(Qe)},get disabled(){return l(Ne)},onclick:()=>{Do(Object.fromEntries(l(oe).map(([je])=>[je,!0])))}})}var ot=j(ye,2);{let Qe=_(()=>i()("collapse_all")),Ne=_(()=>l(oe).every(([,je])=>!je));Ze(ot,{variant:"tertiary",size:"small",get label(){return l(Qe)},get disabled(){return l(Ne)},onclick:()=>{Do(Object.fromEntries(l(oe).map(([je])=>[je,!1])))}})}$(we,Pe)};q(Re,we=>{l(J)&&l(Q).length>1&&we(He)})}var Ye=j(ge,2);{var Ue=we=>{var Pe=LG(),ye=z(Pe);Vy(ye,{get disabled(){return l(O)},get fieldConfig(){return e.fieldConfig},get items(){return l(Q)},addItem:ae}),$(we,Pe)};q(Ye,we=>{l(h)&&(l(S)||!l(Q).length)&&we(Ue)})}var Te=j(Ye,2);let ze;it(Te,23,()=>l(Q),(we,Pe)=>we.__sc_item_id??Pe,(we,Pe,ye)=>{ao(we,{children:(ot,Qe)=>{const Ne=_(()=>`${e.keyPath}.${l(ye)}`),je=_(()=>r()?.expanderStates?._[l(Ne)]??!0),Xe=_(()=>l(P)?l(C)?.find(({name:Mt})=>Mt===l(Pe)[l(x)]):void 0),st=_(()=>l(P)?l(Xe)?.fields??[]:l(E)??(l(w)?[l(w)]:[])),lt=_(()=>l(P)&&l(Xe)?.summary||l(v));var xt=FG(),Yt=z(xt);{const Mt=Kt=>{var It=X(),kt=M(It);{var hn=Cr=>{var ui=NG(),ht=M(ui);{const $n=At=>{Je(At,{name:"arrow_upward"})};let Dr=_(()=>l(O)||l(ye)===0),Wn=_(()=>i()("move_up"));Ze(ht,{size:"small",iconic:!0,get disabled(){return l(Dr)},get"aria-label"(){return l(Wn)},onclick:()=>be(l(ye)-1),startIcon:$n,$$slots:{startIcon:!0}})}var sn=j(ht,2);Wr(sn,{});var Ln=j(sn,2);{const $n=At=>{Je(At,{name:"arrow_downward"})};let Dr=_(()=>l(O)||l(ye)===l(Q).length-1),Wn=_(()=>i()("move_down"));Ze(Ln,{iconic:!0,size:"small",get disabled(){return l(Dr)},get"aria-label"(){return l(Wn)},onclick:()=>be(l(ye)),startIcon:$n,$$slots:{startIcon:!0}})}$(Cr,ui)};q(kt,Cr=>{l(g)&&Cr(hn)})}$(Kt,It)},cn=Kt=>{var It=DG(),kt=M(It);{var hn=ht=>{{const sn=$n=>{{let Dr=_(()=>i()("translation_options"));ir($n,{get"aria-label"(){return l(Dr)},children:(Wn,At)=>{var Yn=RG(),Bt=M(Yn);{let vn=_(()=>i()("duplicate"));mt(Bt,{get label(){return l(vn)},get disabled(){return l(re)},onclick:()=>ae({index:l(ye)+1,dupIndex:l(ye)})})}var ji=j(Bt,2);{var Ut=vn=>{var Qr=IG(),Mr=M(Qr);{const di=ut=>{var bt=X(),Nn=M(bt);it(Nn,17,()=>l(C)??[],({name:In,label:pr})=>In,(In,pr)=>{let fi=()=>l(pr).name,zn=()=>l(pr).label;{let gr=_(()=>zn()||fi());mt(In,{get label(){return l(gr)},onclick:()=>ae({index:l(ye),type:fi()})})}}),$(ut,bt)};let Jt=_(()=>i()("add_item_above"));mt(Mr,{get label(){return l(Jt)},get disabled(){return l(re)},items:di,$$slots:{items:!0}})}var Fo=j(Mr,2);{const di=ut=>{var bt=X(),Nn=M(bt);it(Nn,17,()=>l(C)??[],({name:In,label:pr})=>In,(In,pr)=>{let fi=()=>l(pr).name,zn=()=>l(pr).label;{let gr=_(()=>zn()||fi());mt(In,{get label(){return l(gr)},onclick:()=>ae({index:l(ye)+1,type:fi()})})}}),$(ut,bt)};let Jt=_(()=>i()("add_item_below"));mt(Fo,{get label(){return l(Jt)},get disabled(){return l(re)},items:di,$$slots:{items:!0}})}$(vn,Qr)},Ei=vn=>{var Qr=OG(),Mr=M(Qr);{let di=_(()=>i()("add_item_above"));mt(Mr,{get label(){return l(di)},get disabled(){return l(re)},onclick:()=>ae({index:l(ye)})})}var Fo=j(Mr,2);{let di=_(()=>i()("add_item_below"));mt(Fo,{get label(){return l(di)},get disabled(){return l(re)},onclick:()=>ae({index:l(ye)+1})})}$(vn,Qr)};q(ji,vn=>{l(P)?vn(Ut):vn(Ei,!1)})}$(Wn,Yn)},$$slots:{default:!0}})}};let Ln=_(()=>i()("list_item_options"));Ir(ht,{variant:"ghost",size:"small",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(Ln)},get disabled(){return l(O)},popup:sn,$$slots:{popup:!0}})}};q(kt,ht=>{l(h)&&ht(hn)})}var Cr=j(kt,2);{var ui=ht=>{{const sn=$n=>{Je($n,{name:"close"})};let Ln=_(()=>i()("remove"));Ze(ht,{variant:"ghost",size:"small",iconic:!0,get"aria-label"(){return l(Ln)},onclick:()=>fe(l(ye)),startIcon:sn,$$slots:{startIcon:!0}})}};q(Cr,ht=>{l(p)&&ht(ui)})}$(Kt,It)};let En=_(()=>l(P)?l(Xe)?.label||l(Xe)?.name:""),mn=_(()=>l(st).length?()=>Do({[l(Ne)]:!l(je)}):void 0);f2(Yt,{get label(){return l(En)},get controlId(){return`list-${n}-item-${l(ye)??""}-body`},get expanded(){return l(je)},get toggleExpanded(){return l(mn)},centerContent:Mt,endContent:cn,$$slots:{centerContent:!0,endContent:!0}})}var wn=j(Yt,2),rn=z(wn);{var on=Mt=>{var cn=X(),En=M(cn);it(En,17,()=>l(st),mn=>mn.name,(mn,Kt)=>{ao(mn,{children:(It,kt)=>{{let hn=_(()=>l(A)?`${e.keyPath}.${l(ye)}`:`${e.keyPath}.${l(ye)}.${l(Kt).name}`),Cr=_(()=>l(A)?"single-field-list-widget":void 0);ig(It,{get keyPath(){return l(hn)},get locale(){return e.locale},get fieldConfig(){return l(Kt)},get context(){return l(Cr)}})}},$$slots:{default:!0}})}),$(Mt,cn)},pt=Mt=>{var cn=MG(),En=z(cn);{let mn=_(()=>o()?2:1);xr(En,{get lines(){return l(mn)},children:(Kt,It)=>{var kt=Ie();Z(hn=>te(kt,hn),[()=>pe(l(ye),l(lt))]),$(Kt,kt)},$$slots:{default:!0}})}$(Mt,cn)};q(rn,Mt=>{l(je)?Mt(on):Mt(pt,!1)})}Z(()=>Ee(wn,"id",`list-${n}-item-${l(ye)??""}-body`)),$(ot,xt)},$$slots:{default:!0}})});var Oe=j(Te,2);{var Ae=we=>{var Pe=zG(),ye=z(Pe);Vy(ye,{get disabled(){return l(O)},get fieldConfig(){return e.fieldConfig},get items(){return l(Q)},addItem:ae});var ot=j(ye,2);Wr(ot,{flex:!0}),$(we,Pe)};q(Oe,we=>{l(h)&&!l(S)&&l(Q).length&&we(Ae)})}Z(we=>{Ee(_e,"id",`object-${n}-summary`),te($e,`${l(Q).length??""}
617
- ${((l(Q).length===1?l(y):void 0)||l(d)||l(u))??""}`),Ee(Te,"id",`list-${n}-item-list`),ze=Zt(Te,1,"item-list svelte-1eiee9e",null,ze,we)},[()=>({collapsed:!l(J)})]),$(t,he),ce(),a()}function qG(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=Jn("field-editor")??{};let s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=ie(!1),d=ie("");const f=_(()=>e.fieldConfig.i18n),h=()=>{G(d,e.currentValue?.join(`
618
- `)??"",!0)},p=()=>{const g=l(d).split(/\n/g);Object.keys(n()?.[o]??{}).forEach(m=>{l(f)!=="duplicate"&&m!==e.locale||(Object.keys(n()?.[o][m]??{}).forEach(v=>{v.match(`^${qt(e.keyPath)}\\.\\d+$`)&&delete n()?.[o][m][v]}),g.forEach((v,b)=>{_t(We,Se(n)[o][m][`${e.keyPath}.${b}`]=v,Se(n))}))})};Ft(()=>{G(u,!0)}),De(()=>{l(u)&&(e.currentValue,Se(()=>{h()}))}),qd(t,{autoResize:!0,flex:!0,get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-errormessage"(){return`${e.fieldId??""}-error`},oninput:()=>{p()},get value(){return l(d)},set value(g){G(d,g,!0)}}),ce(),i()}function VG(t,e){const n=Rn();le(e,!0);let r=rt(e,["$$slots","$$events","$$legacy"]);const i=_(()=>Yu(e.fieldConfig)),o=_(()=>l(i).hasSubFields),s=_(()=>l(o)?UG:qG);No(t,{get"aria-labelledby"(){return`list-${n}-summary`},children:(a,c)=>{var u=X(),d=M(u);Bn(d,()=>l(s),(f,h)=>{h(f,en(()=>r))}),$(a,u)},$$slots:{default:!0}}),ce()}var HG=(t,e)=>{t.key==="Enter"&&(t.stopPropagation(),e())},KG=(t,e)=>{t.stopPropagation(),e()},GG=U('<section role="group" tabindex="0" class="svelte-s650n2"><h4 class="svelte-s650n2"> </h4> <!></section>');const WG={hash:"svelte-s650n2",code:'[role="document"] section.svelte-s650n2 {overflow:hidden;margin:8px 0;padding:8px 0;}[role="document"] section.svelte-s650n2 h4:where(.svelte-s650n2) {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}[role="document"] section.svelte-s650n2 h4:where(.svelte-s650n2):not(:last-child) {margin-bottom:8px;}[role="document"] section.svelte-s650n2 > * {margin-inline:auto;max-width:768px;}[role="document"] section.svelte-s650n2 p {margin:8px auto 0;-webkit-user-select:text;user-select:text;}[role="document"] section.svelte-s650n2 img {max-height:800px !important;}'};function Hy(t,e){le(e,!0),ke(t,WG);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.name),s=_(()=>tt(e.fieldConfig.label,"")),a=_(()=>tt(e.fieldConfig.widget,"string")),c=_(()=>tt(e.fieldConfig.preview,!0)),u=_(()=>tt(e.fieldConfig.i18n,!1)),d=_(()=>cc(e.fieldConfig)),f=_(()=>l(a)==="list"||l(d)),h=_(()=>n()?.isIndexFile??!1),p=_(()=>n()?.collection),g=_(()=>n()?.collectionName??""),m=_(()=>n()?.collectionFile),v=_(()=>n()?.fileName),b=_(()=>On(n()?.currentValues[e.locale]??{})),y=_(()=>x2({collectionName:l(g),fileName:l(v),valueMap:l(b),keyPath:e.keyPath,isIndexFile:l(h)})),w=_(()=>(l(m)??l(p))?._i18n??Zi),E=_(()=>l(w).i18nEnabled),k=_(()=>l(w).defaultLocale),S=_(()=>l(E)&&(l(u)===!0||l(u)==="translate")),C=_(()=>l(E)&&l(u)==="duplicate"),x=_(()=>new RegExp(`^${qt(e.keyPath)}\\.\\d+$`)),T=_(()=>l(f)?Object.entries(l(b)).filter(([N])=>l(x).test(N)).map(([,N])=>N).filter(N=>N!==void 0):l(b)[e.keyPath]),A=()=>{Do(Object.fromEntries(l(y).map(N=>[N,!0]))),window.requestAnimationFrame(()=>{const N=document.querySelector(`.content-editor .pane[data-mode="edit"] .field[data-key-path="${CSS.escape(e.keyPath)}"]`);if(N){typeof N.scrollIntoViewIfNeeded=="function"?N.scrollIntoViewIfNeeded():N.scrollIntoView();const D=N.querySelector(".widget-wrapper");(D?.querySelector('[contenteditable="true"], [tabindex="0"]')??D?.querySelector("input, textarea, button"))?.focus()}})};var P=X(),L=M(P);{var I=N=>{var D=GG();D.__keydown=[HG,A],D.__click=[KG,A];var B=z(D),H=z(B),W=j(B,2);{var Y=O=>{const F=_(()=>L2[l(a)]);var K=X(),J=M(K);Bn(J,()=>l(F),(Q,oe)=>{oe(Q,{get keyPath(){return e.keyPath},get locale(){return e.locale},get fieldConfig(){return e.fieldConfig},get currentValue(){return l(T)}})}),$(O,K)};q(W,O=>{l(a)in L2&&O(Y)})}Z(()=>{Ee(D,"data-widget",l(a)),Ee(D,"data-key-path",e.keyPath),te(H,l(s)||l(o))}),$(N,D)};q(L,N=>{l(a)!=="hidden"&&l(c)&&(e.locale===l(k)||l(S)||l(C))&&N(I)})}$(t,P),ce(),i()}pa(["keydown","click"]);var YG=U('<div role="none" class="header svelte-1fo9sk9"> </div>'),JG=U('<div role="group" class="subsection svelte-1fo9sk9"><!> <div role="none" class="items svelte-1fo9sk9"><!></div></div>');const XG={hash:"svelte-1fo9sk9",code:".subsection.svelte-1fo9sk9 {margin:16px auto;border:2px solid var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.subsection.svelte-1fo9sk9 .title {font-size:inherit;font-weight:var(--sui-font-weight-normal);}.header.svelte-1fo9sk9 {display:flex;align-items:center;height:24px;padding-inline:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-border-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);}.items.svelte-1fo9sk9 {padding:8px 16px;}.items.svelte-1fo9sk9:empty {display:none;}"};function k2(t,e){const n=Rn();le(e,!0),ke(t,XG);const r=`${n}-header`;let i=ie(void 0);var o=JG(),s=z(o);{var a=d=>{var f=YG(),h=z(f);Z(()=>{Ee(f,"id",r),te(h,e.label)}),$(d,f)};q(s,d=>{e.label&&d(a)})}var c=j(s,2),u=z(c);Xt(u,()=>mc(l(i)),null,d=>{var f=X(),h=M(f);Me(h,()=>e.children??Be),$(d,f)}),vt(o,d=>G(i,d),()=>l(i)),Z(()=>Ee(o,"aria-labelledby",e.label?r:void 0)),$(t,o),ce()}function ZG(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.name),s=_(()=>e.fieldConfig.field),a=_(()=>e.fieldConfig.fields),c=_(()=>e.fieldConfig.types),u=_(()=>tt(e.fieldConfig.typeKey,"type")),d=_(()=>new RegExp(`^${qt(e.keyPath)}\\.\\d+`)),f=_(()=>Yo(Object.fromEntries(Object.entries(On(n()?.currentValues[e.locale])??{}).filter(([g])=>l(d).test(g)).map(([g,m])=>[g.replace(new RegExp(`^${qt(e.keyPath)}`),l(o)),m])))[l(o)]??[]);var h=X(),p=M(h);it(p,19,()=>l(f),(g,m)=>g.__sc_item_id??m,(g,m,v)=>{ao(g,{children:(b,y)=>{const w=_(()=>Array.isArray(l(c))?n()?.currentValues[e.locale][`${e.keyPath}.${l(v)}.${l(u)}`]:void 0),E=_(()=>l(c)?.find(({name:C})=>C===l(w))),k=_(()=>l(E)?l(E).label||l(E).name:void 0),S=_(()=>l(w)?l(E)?.fields??[]:l(a)??(l(s)?[l(s)]:[]));k2(b,{get label(){return l(k)},children:(C,x)=>{var T=X(),A=M(T);it(A,17,()=>l(S),P=>P.name,(P,L)=>{ao(P,{children:(I,N)=>{{let D=_(()=>l(s)?`${e.keyPath}.${l(v)}`:`${e.keyPath}.${l(v)}.${l(L).name}`);Hy(I,{get keyPath(){return l(D)},get locale(){return e.locale},get fieldConfig(){return l(L)}})}},$$slots:{default:!0}})}),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}})}),$(t,h),ce(),i()}var QG=U("<li> </li>"),eW=U('<ul dir="auto"></ul>');function tW(t,e){le(e,!0);var n=X(),r=M(n);{var i=o=>{var s=eW();it(s,21,()=>e.currentValue,lr,(a,c)=>{var u=QG(),d=z(u);Z(()=>te(d,l(c))),$(a,u)}),Z(a=>{Ee(s,"lang",a),s.dir=s.dir},[()=>wr(e.locale)]),$(o,s)};q(r,o=>{Array.isArray(e.currentValue)&&e.currentValue.length&&o(i)})}$(t,n),ce()}function nW(t,e){le(e,!0);let n=rt(e,["$$slots","$$events","$$legacy"]);const r=_(()=>Yu(e.fieldConfig)),i=_(()=>l(r).hasSubFields),o=_(()=>l(i)?ZG:tW);var s=X(),a=M(s);Bn(a,()=>l(o),(c,u)=>{u(c,en(()=>n))}),$(t,s),ce()}var rW=U('<div role="alert" class="search-result searching svelte-s9eab1"> </div>'),iW=U('<div role="alert" class="search-result no-result svelte-s9eab1"> </div>'),oW=U('<div role="none" class="toolbar svelte-s9eab1"><!> <!> <!></div> <!> <div role="application"></div>',1),sW=U("<!> <!>",1);const aW={hash:"svelte-s9eab1",code:`@import 'node_modules/leaflet/dist/leaflet.css';.toolbar.svelte-s9eab1 {display:flex;align-items:center;margin-bottom:var(--sui-spacing-2x);}.search-result.svelte-s9eab1 {padding:12px;color:var(--sui-secondary-foreground-color);}.map.svelte-s9eab1 {margin:var(--sui-focus-ring-width);border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);overflow:hidden;height:400px;background-clip:text;}.map.invalid.svelte-s9eab1 {border-color:var(--sui-error-border-color);}.leaflet-container {font-family:inherit !important;font-size:var(--sui-font-size-small) !important;}.leaflet-container a {color:var(--sui-primary-accent-color-text) !important;text-decoration:none !important;}.leaflet-bar a {border-color:var(--sui-button-border-color) !important;color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-button-background-color) !important;}.leaflet-control {color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-secondary-background-color-translucent) !important;}.leaflet-control-attribution {padding:4px 8px;}:root[data-theme="dark"] .leaflet-layer {filter:invert(100%) hue-rotate(180deg);}`};function lW(t,e){le(e,!0),ke(t,aW);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"readonly",3,!1),a=R(e,"invalid",3,!1);const c=_(()=>tt(e.fieldConfig.required,!0)),u=_(()=>tt(e.fieldConfig.decimals,7)),d=_(()=>tt(e.fieldConfig.type,"Point")),f=_(()=>l(d).toLowerCase());let h=ie(void 0),p=ie(void 0),g=ie(""),m=ie(""),v=ie(void 0),b=ie(!1),y=ie(!1),w=ie(""),E=0,k;const S=async()=>{if(!l(h))return;const O=await Ta("leaflet","dist/leaflet-src.esm.js"),{TerraDraw:F,TerraDrawLineStringMode:K,TerraDrawPointMode:J,TerraDrawPolygonMode:Q}=await Ta("terra-draw","dist/terra-draw.module.js"),{TerraDrawLeafletAdapter:oe}=await Ta("terra-draw-leaflet-adapter","dist/terra-draw-leaflet-adapter.module.js?module");k=O.map(l(h),{center:[0,0],zoom:2}),O.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(k),l(h).querySelectorAll('a[href^="https:"]').forEach(ee=>{ee.setAttribute("target","_blank"),ee.setAttribute("rel","noopener noreferrer")}),new ResizeObserver(()=>{k?.invalidateSize()}).observe(l(h));const re=new F({adapter:new oe({lib:O,map:k}),modes:[new J,new K,new Q]});re.start(),re.setMode(l(f)),re.on("change",(ee,ne)=>{C(ne)}),G(p,re,!0)},C=O=>{if(l(p)&&O==="create"){const F=l(p).getSnapshot(),K=F.findLast(oe=>oe.geometry.type===l(d));if(!K)return;const{type:J,coordinates:Q}=K.geometry;G(g,JSON.stringify({type:J,coordinates:Q.map(oe=>Array.isArray(oe)?oe.map(re=>Array.isArray(re)?re.map(ee=>Ca(ee,l(u))):Ca(re,l(u))):Ca(oe,l(u)))}),!0),l(d)==="Point"&&l(p).removeFeatures(F.filter(oe=>oe.id!==K.id).map(oe=>oe.id))}},x=()=>{if(!l(p))return;let O=o()??"",F;try{if(O!==void 0&&(F=JSON.parse(O),!Gt(F)||F.type!==l(d)||!Array.isArray(F.coordinates)))throw new Error("Invalid object")}catch{O="",F=void 0}if(l(g)!==O&&(G(g,O,!0),l(p).clear(),F&&(l(p).addFeatures([{type:"Feature",geometry:F,properties:{mode:l(f)}}]),F.coordinates.every(K=>typeof K=="number")))){const[K,J]=F.coordinates;k?.setView([J,K],15)}},T=()=>{if(!l(p))return;const O=l(g);o()!==O&&o(O)},A=()=>{window.clearTimeout(E),E=window.setTimeout(async()=>{const O=l(m).trim();if(!O)return;G(b,!0);const K=`https://nominatim.openstreetmap.org/search?${new URLSearchParams({q:O,format:"jsonv2"})}`;try{G(v,await Xu(K),!0)}catch{G(v,[],!0)}G(b,!1)},500)},P=({latitude:O,longitude:F})=>{if(!l(p))return;O=Ca(O,l(u)),F=Ca(F,l(u));const K={type:"Point",coordinates:[F,O]};l(p).clear(),l(p).addFeatures([{type:"Feature",geometry:K,properties:{mode:"point"}}]),k?.setView([O,F],15),G(g,JSON.stringify(K),!0)},L=({lat:O,lon:F})=>{P({latitude:parseFloat(O),longitude:parseFloat(F)})},I=()=>{if(!navigator.geolocation){G(y,!0),G(w,n()("geolocation_unsupported"),!0);return}navigator.geolocation.getCurrentPosition(({coords:{latitude:O,longitude:F}})=>{P({latitude:O,longitude:F})},O=>{G(y,!0),G(w,n()("geolocation_error_body"),!0),console.error("Error getting current location:",O)})},N=()=>{o("")};Ft(()=>{S()}),De(()=>{l(p),o(),Se(()=>{x()})}),De(()=>{l(g),Se(()=>{T()})}),De(()=>{l(m),Se(()=>{A()})});var D=sW(),B=M(D);{var H=O=>{var F=oW(),K=M(F),J=z(K);{let pe=_(()=>n()("find_place"));Bh(J,{get readonly(){return s()},flex:!0,get placeholder(){return l(pe)},get value(){return l(m)},set value(he){G(m,he,!0)}})}var Q=j(J,2);{const pe=ve=>{Je(ve,{name:"near_me"})};let he=_(()=>n()("use_your_location")),ge=_(()=>n()("use_your_location"));Ze(Q,{variant:"tertiary",iconic:!0,get title(){return l(he)},get"aria-label"(){return l(ge)},get disabled(){return s()},onclick:()=>{I()},startIcon:pe,$$slots:{startIcon:!0}})}var oe=j(Q,2);{var re=pe=>{{let he=_(()=>n()("clear")),ge=_(()=>s()||!o());Ze(pe,{variant:"tertiary",get label(){return l(he)},get disabled(){return l(ge)},onclick:()=>{N()}})}};q(oe,pe=>{l(c)||pe(re)})}var ee=j(K,2);{var ne=pe=>{var he=rW(),ge=z(he);Z(ve=>te(ge,ve),[()=>n()("searching")]),$(pe,he)},ae=pe=>{var he=X(),ge=M(he);{var ve=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{var Ye=X(),Ue=M(Ye);{var Te=Oe=>{{let Ae=_(()=>n()("search_results"));_c(Oe,{get"aria-label"(){return l(Ae)},children:(we,Pe)=>{var ye=X(),ot=M(ye);it(ot,17,()=>l(v),Qe=>Qe.place_id,(Qe,Ne)=>{kr(Qe,{get label(){return l(Ne).display_name},onSelect:()=>{L(l(Ne))}})}),$(we,ye)},$$slots:{default:!0}})}},ze=Oe=>{var Ae=iW(),we=z(Ae);Z(Pe=>te(we,Pe),[()=>n()("no_results")]),$(Oe,Ae)};q(Ue,Oe=>{l(v).length?Oe(Te):Oe(ze,!1)})}$(He,Ye)};q(Ce,He=>{l(v)&&He(Re)})}$(_e,$e)};q(ge,_e=>{l(m)&&_e(ve)},!0)}$(pe,he)};q(ee,pe=>{l(b)?pe(ne):pe(ae,!1)})}var fe=j(ee,2);let be;vt(fe,pe=>G(h,pe),()=>l(h)),Z(pe=>{be=Zt(fe,1,"map svelte-s9eab1",null,be,pe),fe.inert=s()},[()=>({invalid:a()})]),$(O,F)},W=O=>{var F=Ie();Z(()=>te(F,`The ${l(d)??""} type is not yet supported.`)),$(O,F)};q(B,O=>{l(d)==="Point"?O(H):O(W,!1)})}var Y=j(B,2);{let O=_(()=>n()("geolocation_error_title"));zh(Y,{get title(){return l(O)},get open(){return l(y)},set open(F){G(y,F,!0)},children:(F,K)=>{var J=Ie();Z(()=>te(J,l(w))),$(F,J)},$$slots:{default:!0}})}$(t,D),ce(),i()}var cW=U('<pre class="svelte-ise554"> </pre>');const uW={hash:"svelte-ise554",code:"pre.svelte-ise554 {white-space:pre-wrap;}"};function dW(t,e){ke(t,uW);var n=X(),r=M(n);{var i=o=>{var s=cW(),a=z(s);Z(()=>te(a,e.currentValue)),$(o,s)};q(r,o=>{e.currentValue&&o(i)})}$(t,n)}const ef=/^.+?:\w+:/,fW=["rich_text","raw"],hW={rich_text:"rich-text",raw:"plain-text"},pW=["bold","italic","code","link","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","bulleted-list","numbered-list","quote"],gW={bold:"bold",italic:"italic",code:"code",link:"link","heading-one":"heading-1","heading-two":"heading-2","heading-three":"heading-3","heading-four":"heading-4","heading-five":"heading-5","heading-six":"heading-6","bulleted-list":"bulleted-list","numbered-list":"numbered-list",quote:"blockquote","code-block":"code-block"},mW=["code-block","image"];var vW=(t,e,n)=>{!t.target.matches("button, input, textarea")&&t.key!=="Tab"&&t.preventDefault(),t.target===l(e)&&t.key==="Backspace"&&n()(new CustomEvent("remove"))},bW=U('<div role="group" class="wrapper svelte-ykjmq3" contenteditable="false" tabindex="0"><header role="none" class="svelte-ykjmq3"><h3 role="none" class="svelte-ykjmq3"> </h3> <!></header> <!></div>');const _W={hash:"svelte-ykjmq3",code:`.wrapper.svelte-ykjmq3 {display:inline-block;border:1px solid var(--sui-secondary-border-color);border-radius:4px;width:100%;color:var(--sui-secondary-foreground-color);background-color:var(--sui-primary-background-color);white-space:normal;-webkit-user-select:none;user-select:none;}.wrapper.svelte-ykjmq3:focus {outline-color:var(--sui-primary-accent-color-translucent);}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) {display:flex;align-items:center;justify-content:space-between;color:var(--sui-secondary-foreground-color);background-color:var(--sui-selected-background-color);}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) h3:where(.svelte-ykjmq3) {padding:0 8px;font-size:var(--sui-font-size-small);font-weight:600;}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) button {padding:0;height:16px;}
614
+ }.wrapper.svelte-5b1zbe .listbox {flex:none;background-color:transparent;}.wrapper.svelte-5b1zbe .content-pane:where(.svelte-5b1zbe) {overflow:auto;flex:auto;}.filter-tools.svelte-5b1zbe {display:flex;gap:8px;}`};function MK(t,e){const n=Rn();le(e,!0),ke(t,DK);const r=()=>V(ue,"$_",f),i=()=>V(e.entryDraft,"$entryDraft",f),o=()=>V(ka,"$globalAssetFolder",f),s=()=>V(Dn,"$allAssets",f),a=()=>V(dt,"$prefs",f),c=()=>V(ln,"$isSmallScreen",f),u=()=>V(ga,"$showContentOverlay",f),d=()=>V(Rl,"$selectAssetsView",f),[f,h]=me(),p=pe=>{var he=CK(),ge=M(he);{var ve=Ce=>{var Re=TK(),He=M(Re);{var Ye=Te=>{{let ze=_(()=>Rl);Py(Te,{get currentView(){return l(ze)},"aria-controls":"select-assets-grid"})}};q(He,Te=>{d()&&Te(Ye)})}var Ue=j(He,2);{let Te=_(()=>l(T).some(Oe=>Oe.file)),ze=_(()=>r()(`assets_dialog.search_for_${e.kind??"file"}`));Bh(Ue,{get flex(){return c()},get disabled(){return l(Te)},get"aria-label"(){return l(ze)},get value(){return l(E)},set value(Oe){G(E,Oe,!0)}})}$(Ce,Re)};q(ge,Ce=>{(l(I)||l(Y))&&Ce(ve)})}var _e=j(ge,2);{var $e=Ce=>{{const Re=Ye=>{Je(Ye,{name:"cloud_upload"})};let He=_(()=>r()("upload"));Ze(Ce,{variant:"primary",get label(){return l(He)},onclick:()=>{l(x)?.open()},startIcon:Re,$$slots:{startIcon:!0}})}};q(_e,Ce=>{l(I)&&Ce($e)})}$(pe,he)};let g=R(e,"open",15,!1),m=R(e,"multiple",3,!1),v=R(e,"accept",19,()=>e.kind==="image"?vo.join(","):void 0),b=R(e,"canEnterURL",3,!0),y=R(e,"onSelect",3,void 0),w=ie(""),E=ie(""),k=ie("default-global"),S=ie(St([])),C=ie(St([])),x=ie(void 0),T=ie(St([]));const A=_(()=>e.kind==="image"?r()("assets_dialog.title.image"):r()("assets_dialog.title.file")),P=_(()=>Zd(l(E))),L=_(()=>{const pe=i()?.collectionName??"",he=i()?.fileName,ge=he?Wi({collectionName:pe,fileName:he}):void 0,ve=Wi({collectionName:pe}),_e=ge??ve;return{entry:{folder:_e,enabled:!!_e&&(_e.entryRelative||_e.hasTemplateTags)},file:{folder:ge,enabled:!!ge&&!ge.entryRelative&&!ge.hasTemplateTags},collection:{folder:ve,enabled:!!ve&&!ve.entryRelative&&!ve.hasTemplateTags},global:{folder:o(),enabled:!0}}}),I=_(()=>l(k).startsWith("default-")),N=_(()=>l(I)?l(L)[l(k).replace("default-","")].folder:void 0),D=_(()=>i()?.originalEntry),B=_(()=>l(N)?.entryRelative&&l(D)?dn(Object.values(l(D).locales)[0].path).dirname:l(N)?.internalPath),H=_(()=>[...s(),...l(C)].filter(pe=>!e.kind||e.kind===pe.kind).sort((pe,he)=>pe.name.localeCompare(he.name)).sort((pe,he)=>+!!he.unsaved-+!!pe.unsaved)),W=_(()=>{const{providers:pe=[]}=s2({fieldConfig:e.fieldConfig});return Object.entries(rg).filter(([he])=>pe.includes(he))}),Y=_(()=>l(W).map(([pe])=>pe).includes(l(k))&&a()?.apiKeys?.[l(k)]||Object.keys(ng).includes(l(k))&&a()?.logins?.[l(k)]),O=_(()=>Object.entries(ng)),F=_(()=>[...l(W),...l(O)]),K=_(()=>c()?Fa:_c),J=async({file:pe,blobURL:he,folder:ge})=>{const{name:ve,size:_e}=pe;return{unsaved:!0,file:pe,blobURL:he??URL.createObjectURL(pe),name:ve,path:`${l(B)}/${ve}`,sha:await $a(pe),size:_e,kind:Gu(ve),folder:ge}},Q=async()=>Promise.all([...Object.entries(i()?.files??{}).map(async([pe,{file:he,folder:ge}])=>J({file:he,blobURL:pe,folder:ge})),...Object.values(l(S))]),oe=async({hash:pe,folder:he})=>(await Promise.all(l(C).map(async ve=>!!ve.file&&an(ve.folder,he)&&await va(ve.file)===pe))).includes(!0),re=async pe=>{const he=await va(pe),ge=l(N);if(await oe({hash:he,folder:ge}))return;const ve=await J({file:pe,folder:ge});return l(S).push(ve),{asset:ve}},ee=async pe=>{G(T,(await Promise.all(pe.map(re))).filter(he=>!!he),!0)},ne=()=>{G(w,""),G(E,""),G(S,[],!0),G(C,[],!0),G(T,[],!0)};cN(()=>{const pe=Object.entries(l(L)).find(([,{enabled:he}])=>he)?.[0];G(k,`default-${pe}`)}),De(()=>{i()?.files,l(S),(async()=>G(C,await Q(),!0))()}),De(()=>{u()||g(!1)});var ae=RK(),fe=M(ae);{const pe=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{p(He)};q(Ce,He=>{c()||He(Re)})}$(_e,$e)},he=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{const Ye=_(()=>{const{showServiceLink:Oe,serviceLabel:Ae,serviceURL:we}=rg[l(k)]??{};return{showServiceLink:Oe,serviceLabel:Ae,serviceURL:we}});var Ue=X(),Te=M(Ue);{var ze=Oe=>{var Ae=AK(),we=z(Ae);Z(Pe=>{Ee(Ae,"href",l(Ye).serviceURL),te(we,Pe)},[()=>r()("prefs.media.stock_photos.credit",{values:{service:l(Ye).serviceLabel}})]),$(Oe,Ae)};q(Te,Oe=>{l(Ye).showServiceLink&&Oe(ze)})}$(He,Ue)};q(Ce,He=>{l(Y)&&He(Re)})}$(_e,$e)};let ge=_(()=>r()("insert")),ve=_(()=>!l(T).length);Di(fe,{get title(){return l(A)},size:"x-large",get okLabel(){return l(ge)},get okDisabled(){return l(ve)},focusInput:!1,onOk:()=>{if(!l(T).length)return;const _e=On(l(T)).map($e=>{const{unsaved:Ce,file:Re,folder:He}=$e.asset??{};return Ce?{file:Re,folder:He}:$e});y()?.(_e)},onClose:()=>{ne()},get open(){return g()},set open(_e){g(_e)},headerExtra:pe,footerExtra:he,children:(_e,$e)=>{var Ce=OK(),Re=z(Ce),He=z(Re);{let ye=_(()=>r()("assets_dialog.locations"));Bn(He,()=>l(K),(ot,Qe)=>{Qe(ot,{class:"tabs",get"aria-label"(){return l(ye)},get"aria-controls"(){return`${n}-content-pane`},filterThreshold:-1,onChange:Ne=>{G(k,Ne.detail.name,!0),G(T,[],!0)},children:(Ne,je)=>{var Xe=LK(),st=M(Xe);{let rn=_(()=>r()("asset_location.repository"));Da(st,{get label(){return l(rn)},children:(on,pt)=>{var Mt=X(),cn=M(Mt);it(cn,17,()=>Object.entries(l(L)),([En,{enabled:mn}])=>En,(En,mn)=>{var Kt=_(()=>lo(l(mn),2));let It=()=>l(Kt)[0],kt=()=>l(Kt)[1].enabled;var hn=X(),Cr=M(hn);{var ui=ht=>{const sn=_(()=>`default-${It()}`);{let Ln=_(()=>r()(`assets_dialog.folder.${It()}`)),$n=_(()=>l(k)===l(sn));kr(ht,{get name(){return l(sn)},get label(){return l(Ln)},get selected(){return l($n)}})}};q(Cr,ht=>{kt()&&ht(ui)})}$(En,hn)}),$(on,Mt)},$$slots:{default:!0}})}var lt=j(st,2);{var xt=rn=>{{let on=_(()=>r()("asset_location.external"));Da(rn,{get label(){return l(on)},children:(pt,Mt)=>{var cn=PK(),En=M(cn);{var mn=It=>{{let kt=_(()=>r()("assets_dialog.enter_url"));kr(It,{name:"enter-url",get label(){return l(kt)}})}};q(En,It=>{b()&&It(mn)})}var Kt=j(En,2);it(Kt,17,()=>Object.values(ng),It=>It.serviceId,(It,kt)=>{const hn=_(()=>{const{serviceId:Cr,serviceLabel:ui}=l(kt);return{serviceId:Cr,serviceLabel:ui}});kr(It,{get name(){return l(hn).serviceId},get label(){return l(hn).serviceLabel}})}),$(pt,cn)},$$slots:{default:!0}})}};q(lt,rn=>{(b()||Object.keys(ng).length)&&rn(xt)})}var Yt=j(lt,2);{var wn=rn=>{{let on=_(()=>r()("asset_location.stock_photos"));Da(rn,{get label(){return l(on)},children:(pt,Mt)=>{var cn=X(),En=M(cn);it(En,17,()=>l(W),([mn,{serviceLabel:Kt}])=>mn,(mn,Kt)=>{var It=_(()=>lo(l(Kt),2));let kt=()=>l(It)[0],hn=()=>l(It)[1].serviceLabel;kr(mn,{get name(){return kt()},get label(){return hn()}})}),$(pt,cn)},$$slots:{default:!0}})}};q(Yt,rn=>{l(W).length&&rn(wn)})}$(Ne,Xe)},$$slots:{default:!0}})})}var Ye=j(He,2);{var Ue=ye=>{var ot=NK(),Qe=z(ot);p(Qe),$(ye,ot)};q(Ye,ye=>{c()&&ye(Ue)})}var Te=j(Re,2),ze=z(Te);{var Oe=ye=>{{let ot=_(()=>l(H).filter(Qe=>an(Qe.folder,l(N))&&(l(N).entryRelative?dn(Qe.path).dirname===l(B):!0)));wK(ye,{get accept(){return v()},get multiple(){return m()},get assets(){return l(ot)},get searchTerms(){return l(P)},get basePath(){return l(N).internalPath},onDrop:({files:Qe})=>{ee(Qe)},get selectedResources(){return l(T)},set selectedResources(Qe){G(T,Qe,!0)}})}};q(ze,ye=>{l(I)&&l(N)&&ye(Oe)})}var Ae=j(ze,2);{var we=ye=>{hr(ye,{children:(ot,Qe)=>{var Ne=IK(),je=M(Ne),Xe=z(je),st=j(je,2);Cn(st,{flex:!0,oninput:()=>{const lt=l(w).trim();G(T,lt?[{url:lt}]:[],!0)},get value(){return l(w)},set value(lt){G(w,lt,!0)}}),Z(lt=>te(Xe,lt),[()=>e.kind==="image"?r()("assets_dialog.enter_image_url"):r()("assets_dialog.enter_file_url")]),$(ot,Ne)},$$slots:{default:!0}})};q(Ae,ye=>{b()&&l(k)==="enter-url"&&ye(we)})}var Pe=j(Ae,2);it(Pe,17,()=>l(F),([ye,ot])=>ye,(ye,ot)=>{var Qe=_(()=>lo(l(ot),2));let Ne=()=>l(Qe)[0],je=()=>l(Qe)[1];var Xe=X(),st=M(Xe);{var lt=xt=>{dK(xt,{get kind(){return e.kind},get multiple(){return m()},get searchTerms(){return l(P)},get serviceProps(){return je()},gridId:"select-assets-grid",get selectedResources(){return l(T)},set selectedResources(Yt){G(T,Yt,!0)}})};q(st,xt=>{l(k)===Ne()&&xt(lt)})}$(ye,Xe)}),Z(()=>Ee(Te,"id",`${n}-content-pane`)),$(_e,Ce)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}var be=j(fe,2);vt(bb(be,{get accept(){return v()},onSelect:({files:pe})=>{ee(pe)}}),pe=>G(x,pe,!0),()=>l(x)),$(t,ae),ce(),h()}var FK=U('<div role="status"> </div>'),zK=U('<!> <div role="none"><!></div>',1),jK=U('<div role="none"><!></div>');const BK={hash:"svelte-qqvxpl",code:".empty.svelte-qqvxpl button {flex-direction:column;justify-content:center;height:120px;font-size:var(--sui-font-size-small);}.empty.svelte-qqvxpl button .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.empty.svelte-qqvxpl button:disabled {pointer-events:none !important;}.empty.svelte-qqvxpl button:disabled * {opacity:0.5;}.empty.invalid.svelte-qqvxpl button {border-color:var(--sui-error-border-color);}"};function UK(t,e){le(e,!0),ke(t,BK);const n=()=>V(ue,"$_",i),r=()=>V(Wc,"$hasMouse",i),[i,o]=me();let s=R(e,"showSelectAssetsDialog",15,!1),a=R(e,"replaceMode",15,!1);var c=jK();let u;var d=z(c);{let f=_(()=>e.readonly||e.processing);Ze(d,{flex:!0,role:"button",variant:"tertiary",get disabled(){return l(f)},tabindex:"0",onclick:()=>{e.readonly||(a(!1),s(!0))},children:(h,p)=>{var g=zK(),m=M(g);Je(m,{name:"cloud_upload"});var v=j(m,2),b=z(v);{var y=E=>{var k=FK(),S=z(k);Z(C=>te(S,C),[()=>n()("processing_file")]),$(E,k)},w=E=>{var k=X(),S=M(k);{var C=T=>{var A=X(),P=M(A);{var L=N=>{var D=Ie();Z(B=>te(D,B),[()=>n()(`drop_image_${e.multiple?"files":"file"}_or_click_to_browse`)]),$(N,D)},I=N=>{var D=Ie();Z(B=>te(D,B),[()=>n()(`drop_${e.multiple?"files":"file"}_or_click_to_browse`)]),$(N,D)};q(P,N=>{e.isImageWidget?N(L):N(I,!1)})}$(T,A)},x=T=>{var A=Ie();Z(P=>te(A,P),[()=>n()("tap_to_browse")]),$(T,A)};q(S,T=>{r()?T(C):T(x,!1)},!0)}$(E,k)};q(b,E=>{e.processing?E(y):E(w,!1)})}$(h,g)},$$slots:{default:!0}})}Z(f=>u=Zt(c,1,"empty svelte-qqvxpl",null,u,f),[()=>({invalid:e.invalid,processing:e.processing})]),$(t,c),ce(),o()}var qK=U('<div role="toolbar" class="reorder-controls svelte-1ncvwuf"><!> <!></div>'),VK=U('<span role="none" class="preview no-thumbnail"><!></span>'),HK=U('<div role="textbox" tabindex="0" class="filename svelte-1ncvwuf"> </div>'),KK=U('<div role="none" class="filled svelte-1ncvwuf"><!> <!> <div role="none" class="svelte-1ncvwuf"><!> <div role="none"><!> <!></div></div></div>');const GK={hash:"svelte-1ncvwuf",code:".filled.svelte-1ncvwuf {display:flex !important;align-items:center;gap:12px;margin:var(--sui-focus-ring-width);}.filled.svelte-1ncvwuf .preview {flex:none;width:120px !important;height:120px !important;border-color:var(--sui-control-border-color) !important;border-radius:var(--sui-control-medium-border-radius);padding:8px !important;}.filled.svelte-1ncvwuf .preview.no-thumbnail {display:flex;align-items:center;justify-content:center;background-color:var(--sui-secondary-background-color);}.filled.svelte-1ncvwuf .preview.no-thumbnail .icon {font-size:64px;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) {flex:auto;overflow:hidden;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) .filename:where(.svelte-1ncvwuf) {margin:var(--sui-focus-ring-width);padding:4px;word-break:break-all;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) .filename:where(.svelte-1ncvwuf):empty {margin:0;padding:0;}.reorder-controls.svelte-1ncvwuf {flex:none !important;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:4px;border:1px solid var(--sui-control-border-color);border-radius:var(--sui-control-medium-border-radius);height:-moz-available;height:-webkit-fill-available;height:stretch;background-color:var(--sui-secondary-border-color);}.reorder-controls.svelte-1ncvwuf button {padding:0;height:16px;}"};function a2(t,e){le(e,!0),ke(t,GK);const n=()=>V(We,"$entryDraft",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=R(e,"readonly",3,!1),a=R(e,"invalid",3,!1),c=R(e,"required",3,!1),u=R(e,"collectionName",3,""),d=R(e,"fileName",3,void 0),f=R(e,"entry",3,void 0);let h=ie(void 0),p=ie(void 0),g=ie(void 0),m=ie(void 0);const v=_(()=>e.widgetName==="image"),b=_(()=>{if(!e.value)return"";if(l(p)){const{publicPath:H,entryRelative:W,hasTemplateTags:Y}=n()?.files[e.value].folder??{};return nc([W||Y?"":H||"",decodeURI(l(p).name.normalize())])}if(!e.value.startsWith("blob:")){const H=decodeURI(e.value);if(Ef(H)){const W=new URL(H);if(W.search)return W.search="",`${W}…`}return H}return""}),y=async()=>{if(e.value?.startsWith("blob:")&&n()&&G(p,n().files[e.value]?.file,!0),e.value){const H={value:e.value,entry:f(),collectionName:u(),fileName:d()};e.value.startsWith("blob:")?(G(h,void 0),G(g,e.value?await Xk(e.value):void 0,!0),G(m,e.value&&l(g)?await ic({...H,thumbnail:!0}):void 0,!0)):l(v)&&/^https?:/.test(e.value)?(G(h,void 0),G(g,"image"),G(m,e.value,!0)):(G(h,Vv({...H}),!0),G(g,void 0),G(m,void 0))}else G(h,void 0),G(p,void 0),G(g,void 0),G(m,void 0)};De(()=>{e.value,Se(()=>{y()})});var w=KK(),E=z(w);{var k=H=>{var W=qK(),Y=z(W);{const F=Q=>{Je(Q,{name:"arrow_upward"})};let K=_(()=>!e.onMoveUp),J=_(()=>r()("move_up"));Ze(Y,{size:"small",iconic:!0,get disabled(){return l(K)},get"aria-label"(){return l(J)},onclick:()=>{e.onMoveUp?.()},startIcon:F,$$slots:{startIcon:!0}})}var O=j(Y,2);{const F=Q=>{Je(Q,{name:"arrow_downward"})};let K=_(()=>!e.onMoveDown),J=_(()=>r()("move_down"));Ze(O,{size:"small",iconic:!0,get disabled(){return l(K)},get"aria-label"(){return l(J)},onclick:()=>{e.onMoveDown?.()},startIcon:F,$$slots:{startIcon:!0}})}$(H,W)};q(E,H=>{(e.onMoveUp||e.onMoveDown)&&!s()&&H(k)})}var S=j(E,2);{var C=H=>{Ro(H,{get kind(){return l(g)},get src(){return l(m)},variant:"tile",checkerboard:!0})},x=H=>{var W=X(),Y=M(W);{var O=K=>{Ro(K,{get kind(){return l(h).kind},get asset(){return l(h)},variant:"tile",checkerboard:!0})},F=K=>{var J=VK(),Q=z(J);Je(Q,{name:"draft"}),$(K,J)};q(Y,K=>{l(h)?K(O):K(F,!1)},!0)}$(H,W)};q(S,H=>{l(g)&&l(m)?H(C):H(x,!1)})}var T=j(S,2),A=z(T);{var P=H=>{var W=HK(),Y=z(W);Z(()=>{Ee(W,"id",`${e.fieldId??""}-value`),Ee(W,"aria-readonly",s()),Ee(W,"aria-invalid",a()),Ee(W,"aria-required",c()),Ee(W,"aria-labelledby",`${e.fieldId??""}-label`),Ee(W,"aria-errormessage",`${e.fieldId??""}-error`),te(Y,l(b))}),$(H,W)};q(A,H=>{typeof e.value=="string"&&H(P)})}var L=j(A,2),I=z(L);{var N=H=>{{let W=_(()=>r()("replace")),Y=_(()=>r()(`replace_${e.widgetName}`));Ze(H,{get disabled(){return s()},variant:"tertiary",size:"small",get label(){return l(W)},get"aria-label"(){return l(Y)},get"aria-controls"(){return`${e.fieldId??""}-value`},onclick:()=>{e.onReplace()}})}};q(I,H=>{e.onReplace&&H(N)})}var D=j(I,2);{var B=H=>{{let W=_(()=>r()("remove")),Y=_(()=>r()(`remove_${e.widgetName}`));Ze(H,{get disabled(){return s()},variant:"tertiary",size:"small",get label(){return l(W)},get"aria-label"(){return l(Y)},get"aria-controls"(){return`${e.fieldId??""}-value`},onclick:()=>{e.onRemove()}})}};q(D,H=>{e.onRemove&&H(B)})}$(t,w),ce(),o()}const l2=async({draft:t,file:e})=>{const n=await va(e);let r;return await Promise.all(Object.entries(t.files??{}).map(async([i,o])=>{!r&&await va(o.file)===n&&(r=i)})),r},WK=async({draft:t,resource:e,libraryConfig:n})=>{const{transformations:r,max_file_size:i}=n??{},{url:o,credit:s}=e;let{asset:a,file:c}=e,u="",d;if(c){const f=await l2({draft:t,file:c});if(f)u=f;else{r&&(c=await Wk(c,r));const h=await $a(c),{folder:p}=e,g=se(Dn).find(m=>m.sha===h&&an(m.folder,p));g?(a=g,c=void 0):c.size>i?(d=c.name,c=void 0):(u=URL.createObjectURL(c),t.files[u]={file:c,folder:p})}}return a&&(a.unsaved?a.file&&(u=await l2({draft:t,file:a.file})):u=Mu(a,{pathOnly:!0,allowSpecial:!0,entry:t.originalEntry})),o&&!c&&!a&&(u=o),{value:u,credit:s?Nr.sanitize(s,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]}):"",oversizedFileName:d}};var YK=U('<div role="none" class="item-list svelte-1libnfj"></div> <!>',1),JK=U('<div role="none"> </div> <div role="none"><!></div>',1),XK=U("<!> <!> <!> <!>",1);const ZK={hash:"svelte-1libnfj",code:".item-list.svelte-1libnfj {display:flex;flex-direction:column;gap:4px;}"};function c2(t,e){le(e,!0),ke(t,ZK);const n=()=>V(We,"$entryDraft",o),r=()=>V(ka,"$globalAssetFolder",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=ne=>{UK(ne,{get invalid(){return h()},get readonly(){return f()},get processing(){return l(E)},get isImageWidget(){return l(L)},get multiple(){return l(N)},get showSelectAssetsDialog(){return l(p)},set showSelectAssetsDialog(ae){G(p,ae,!0)},get replaceMode(){return l(g)},set replaceMode(ae){G(g,ae,!0)}})},{widgetContext:c=void 0}=Jn("field-editor")??{};let u=R(e,"currentValue",15),d=R(e,"required",3,!0),f=R(e,"readonly",3,!1),h=R(e,"invalid",3,!1),p=ie(!1),g=ie(!1),m=ie(-1),v=ie(!1),b=ie(!1),y=ie(""),w=ie(void 0),E=ie(!1);const k=_(()=>e.fieldConfig.widget),S=_(()=>tt(e.fieldConfig.max,1/0)),C=_(()=>e.fieldConfig.accept),x=_(()=>tt(e.fieldConfig.choose_url,!0)),T=_(()=>n()?.originalEntry),A=_(()=>n()?.collectionName??""),P=_(()=>n()?.fileName),L=_(()=>l(k)==="image"),I=_(()=>Hu({fieldConfig:e.fieldConfig}).config),N=_(()=>xh(e.fieldConfig)),D=_(()=>l(I).max_file_size),B=_(()=>!d()&&(!c||!["markdown-editor-component","single-field-list-widget"].includes(c))),H=_(()=>({widgetName:l(k),readonly:f(),invalid:h(),required:d(),showRemoveButton:l(B),collectionName:l(A),fileName:l(P),entry:l(T)})),W=()=>{l(w)?.reset(),l(N)||(u(""),El())},Y=async ne=>{if(!n())return;W(),G(E,!0);const ae=await Promise.all(ne.map(he=>WK({draft:n(),resource:he,libraryConfig:l(I)}))),fe=[],be=[],pe=l(N)?Object.keys(n().currentValues[e.locale]).filter(he=>he.startsWith(`${e.keyPath}.`)).map(he=>Number(he.replace(`${e.keyPath}.`,""))).pop()??-1:-1;ae.forEach(({value:he,credit:ge,oversizedFileName:ve},_e)=>{if(he)if(l(N)){const $e=l(g)?l(m):pe+1+_e;_t(We,Se(n).currentValues[e.locale][`${e.keyPath}.${$e}`]=he,Se(n))}else u(he);ge&&fe.push(ge),ve&&be.push(ve)}),fe.length?(G(y,fe.join(`
615
+ `),!0),G(b,!0)):G(y,""),be.length&&G(v,!0),G(E,!1)},O=({files:ne})=>{if(!ne.length)return;const ae=Wi({collectionName:l(A),fileName:l(P)})??Wi({collectionName:l(A)})??r();Y(ne.map(fe=>({file:fe,folder:ae})))},F=ne=>{if(!n())return;const ae=On(n().currentValues[e.locale]),fe=[];for(let be=0;;be+=1){const pe=`${e.keyPath}.${be}`,he=`${e.keyPath}.${be+1}`;if(be<ne)fe.push(ae[pe]);else if(he in ae)fe.push(ae[he]),_t(We,Se(n).currentValues[e.locale][pe]=ae[he],Se(n));else{_t(We,Se(n).currentValues[e.locale][pe]=null,Se(n)),delete n().currentValues[e.locale][pe];break}}u(Object.values(fe))},K=ne=>{n()&&(ae=>{var fe=lo(ae,2);_t(We,Se(n).currentValues[e.locale][`${e.keyPath}.${ne}`]=fe[0],Se(n)),_t(We,Se(n).currentValues[e.locale][`${e.keyPath}.${ne+1}`]=fe[1],Se(n))})([n().currentValues[e.locale][`${e.keyPath}.${ne+1}`],n().currentValues[e.locale][`${e.keyPath}.${ne}`]])};var J=XK(),Q=M(J);{let ne=_(()=>l(C)??(l(L)?vo.join(","):void 0));vt(Wd(Q,{get multiple(){return l(N)},get disabled(){return f()},get accept(){return l(ne)},onDrop:O,children:(ae,fe)=>{var be=X(),pe=M(be);{var he=ve=>{var _e=X(),$e=M(_e);{var Ce=He=>{var Ye=X(),Ue=M(Ye);{var Te=ze=>{var Oe=YK(),Ae=M(Oe);it(Ae,23,u,(ye,ot)=>`${ye}|${ot}`,(ye,ot,Qe)=>{{let Ne=_(()=>l(Qe)>0?()=>K(l(Qe)-1):void 0),je=_(()=>l(Qe)<u().length-1?()=>K(l(Qe)):void 0);a2(ye,en(()=>l(H),{get value(){return l(ot)},get fieldId(){return`${e.fieldId??""}-${l(Qe)??""}`},onReplace:()=>{G(g,!0),G(m,l(Qe),!0),G(p,!0)},onRemove:()=>F(l(Qe)),get onMoveUp(){return l(Ne)},get onMoveDown(){return l(je)}}))}});var we=j(Ae,2);{var Pe=ye=>{a(ye)};q(we,ye=>{u().length<l(S)&&ye(Pe)})}$(ze,Oe)};q(Ue,ze=>{Array.isArray(u())&&ze(Te)})}$(He,Ye)},Re=He=>{var Ye=X(),Ue=M(Ye);{var Te=ze=>{a2(ze,en(()=>l(H),{get value(){return u()},get fieldId(){return e.fieldId},onReplace:()=>{G(g,!0),G(p,!0)},onRemove:W}))};q(Ue,ze=>{typeof u()=="string"&&u()&&ze(Te)},!0)}$(He,Ye)};q($e,He=>{l(N)?He(Ce):He(Re,!1)})}$(ve,_e)},ge=ve=>{a(ve)};q(pe,ve=>{u()?.length&&!l(E)?ve(he):ve(ge,!1)})}$(ae,be)},$$slots:{default:!0}}),ae=>G(w,ae,!0),()=>l(w))}var oe=j(Q,2);{let ne=_(()=>l(L)?"image":void 0),ae=_(()=>l(g)?!1:l(N));MK(oe,{get kind(){return l(ne)},get multiple(){return l(ae)},get accept(){return l(C)},get canEnterURL(){return l(x)},get entryDraft(){return We},get fieldConfig(){return e.fieldConfig},onSelect:Y,get open(){return l(p)},set open(fe){G(p,fe,!0)}})}var re=j(oe,2);{let ne=_(()=>i()("assets_dialog.large_file.title"));zh(re,{get title(){return l(ne)},get open(){return l(v)},set open(ae){G(v,ae,!0)},children:(ae,fe)=>{var be=Ie();Z(pe=>te(be,pe),[()=>i()("warning_oversized_file",{values:{size:ah(l(D))}})]),$(ae,be)},$$slots:{default:!0}})}var ee=j(re,2);{let ne=_(()=>i()("assets_dialog.photo_credit.title")),ae=_(()=>i()("copy"));bc(ee,{get title(){return l(ne)},get okLabel(){return l(ae)},onOk:()=>{navigator.clipboard.writeText(l(y))},get open(){return l(b)},set open(fe){G(b,fe,!0)},children:(fe,be)=>{var pe=JK(),he=M(pe),ge=z(he),ve=j(he,2),_e=z(ve);qd(_e,{flex:!0,readonly:!0,get value(){return l(y)},onclick:$e=>{$e.target.focus(),$e.target.select()}}),Z($e=>te(ge,$e),[()=>i()("assets_dialog.photo_credit.description")]),$(fe,pe)},$$slots:{default:!0}})}$(t,J),ce(),s()}var QK=U("<p><!></p>"),eG=U("<p> </p>");function u2(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me();let o=ie(void 0),s=ie(void 0);const a=_(()=>n()?.originalEntry),c=_(()=>n()?.collectionName??""),u=_(()=>n()?.fileName);De(()=>{e.value,Se(async()=>{G(o,e.value?await Xk(e.value):void 0,!0),G(s,l(o)?await ic({value:e.value,entry:l(a),collectionName:l(c),fileName:l(u)}):void 0,!0)})});var d=X(),f=M(d);{var h=g=>{var m=QK(),v=z(m);{let b=_(()=>["audio","video"].includes(l(o)));Ro(v,{get kind(){return l(o)},get src(){return l(s)},get controls(){return l(b)}})}$(g,m)},p=g=>{var m=X(),v=M(m);{var b=y=>{var w=eG(),E=z(w);Z(()=>te(E,e.value)),$(y,w)};q(v,y=>{e.value.trim()&&!e.value.startsWith("blob:")&&y(b)},!0)}$(g,m)};q(f,g=>{l(o)&&l(s)?g(h):g(p,!1)})}$(t,d),ce(),i()}function d2(t,e){le(e,!0);var n=X(),r=M(n);{var i=s=>{var a=X(),c=M(a);{var u=d=>{var f=X(),h=M(f);it(h,17,()=>e.currentValue,lr,(p,g)=>{u2(p,{get value(){return l(g)}})}),$(d,f)};q(c,d=>{Array.isArray(e.currentValue)&&d(u)})}$(s,a)},o=s=>{var a=X(),c=M(a);{var u=d=>{u2(d,{get value(){return e.currentValue}})};q(c,d=>{typeof e.currentValue=="string"&&e.currentValue&&d(u)},!0)}$(s,a)};q(r,s=>{xh(e.fieldConfig)?s(i):s(o,!1)})}$(t,n),ce()}const qy=({entryDraft:t,valueStoreKey:e="currentValues",keyPath:n,locale:r})=>Object.entries(se(t)[e][r]??{}).filter(([i])=>i.startsWith(`${n}.`)).map(([i,o])=>[i.replace(`${n}.`,""),o]),tG=({pairs:t,edited:e})=>t.map(([n],r,i)=>{if(!n.trim()&&e[r])return"empty";if(n.trim()&&i.findIndex(o=>o[0]===n)!==r)return"duplicate"}),nG=({entryDraft:t,keyPath:e,locale:n,fieldConfig:r,pairs:i})=>{const{i18n:o}=r;so.set(!1),t.update(s=>(s&&Object.entries(s.currentValues).forEach(([a,c])=>{(a===n||o==="duplicate")&&(Object.entries(c).forEach(([u])=>{u.startsWith(`${e}.`)&&delete c[u]}),i.forEach(([u,d])=>{c[`${e}.${u}`]=d}))}),s)),so.set(!0)};var rG=U('<th scope="col" class="action svelte-18v8t2h"></th>'),iG=U('<td class="action svelte-18v8t2h"><!></td>'),oG=U('<tr><td class="key svelte-18v8t2h"><!></td><td class="value svelte-18v8t2h"><!></td><!></tr>'),sG=U('<table class="svelte-18v8t2h"><thead><tr><th scope="col" class="key svelte-18v8t2h"> </th><th scope="col" class="value svelte-18v8t2h"> </th><!></tr></thead><tbody></tbody></table>'),aG=U("<!> <!>",1),lG=U('<!> <!> <div role="none"><!></div>',1);const cG={hash:"svelte-18v8t2h",code:`table.svelte-18v8t2h {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-18v8t2h,
616
+ td.svelte-18v8t2h {border-width:0;}th.svelte-18v8t2h {padding-block:4px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;}th.key.svelte-18v8t2h, th.value.svelte-18v8t2h {width:50%;}td.svelte-18v8t2h {padding:0;vertical-align:middle;}`};function uG(t,e){le(e,!0),ke(t,cG);const n=()=>V(ue,"$_",i),r=()=>V(We,"$entryDraft",i),[i,o]=me(),{valueStoreKey:s="currentValues"}=Jn("field-editor")??{};let a=R(e,"readonly",3,!1);const c=_(()=>tt(e.fieldConfig.i18n,!1)),u=_(()=>e.fieldConfig.key_label),d=_(()=>e.fieldConfig.value_label),f=_(()=>tt(e.fieldConfig.max,1/0)),h=_(()=>l(u)||n()("key_value.key")),p=_(()=>l(d)||n()("key_value.value"));let g=ie(St([]));const m=St([]);let v=ie(St([])),b=ie(St([]));const y=()=>{if(!r())return;const N=qy({entryDraft:We,valueStoreKey:s,keyPath:e.keyPath,locale:e.locale});an(l(g),N)||(G(g,[...N],!0),G(v,N.map(()=>!1),!0)),!l(g).length&&r()[s][e.locale][e.keyPath]!==null&&_t(We,Se(r)[s][e.locale][e.keyPath]=null,Se(r))},w=()=>{r()&&(Object.entries(r()[s]).forEach(([I,N])=>{(I===e.locale||l(c)==="duplicate")&&delete N[e.keyPath]}),l(g).push(["",""]),l(v).push(!1),window.requestAnimationFrame(()=>{m[l(g).length-1].querySelector("input").focus()}))},E=I=>{l(g).splice(I,1),l(v).splice(I,1)},k=()=>{if(G(b,tG({pairs:l(g),edited:l(v)}),!0),!r()||l(b).some(Boolean)||l(g).some(([N])=>!N.trim()))return;nG({entryDraft:We,fieldConfig:e.fieldConfig,keyPath:e.keyPath,locale:e.locale,pairs:l(g)})};De(()=>{On(r()?.[s][e.locale]),Se(()=>{y()})}),De(()=>{On(l(g)),Se(()=>{k()})});var S=lG(),C=M(S);{var x=I=>{var N=sG(),D=z(N),B=z(D),H=z(B),W=z(H),Y=j(H),O=z(Y),F=j(Y);{var K=Q=>{var oe=rG();Z(re=>Ee(oe,"aria-label",re),[()=>n()("key_value.action")]),$(Q,oe)};q(F,Q=>{a()||Q(K)})}var J=j(D);it(J,21,()=>l(g),lr,(Q,oe,re)=>{var ee=oG(),ne=z(ee),ae=z(ne);{let ge=_(()=>!!l(b)[re]),ve=_(()=>l(b)[re]?`${e.fieldId}-kv-error`:void 0);Cn(ae,{get readonly(){return a()},flex:!0,get invalid(){return l(ge)},get"aria-label"(){return l(h)},get"aria-errormessage"(){return l(ve)},oninput:()=>{l(v)[re]=!0},onkeydown:_e=>{_e.key==="Enter"&&!_e.isComposing&&m[re].querySelector("td.value input").focus()},get value(){return l(oe)[0]},set value(_e){l(oe)[0]=_e}})}var fe=j(ne),be=z(fe);Cn(be,{get readonly(){return a()},flex:!0,get"aria-label"(){return l(p)},onkeydown:ge=>{ge.key==="Enter"&&!ge.isComposing&&(re<l(g).length-1?m[re+1].querySelector("input").focus():l(g).length<l(f)&&w())},get value(){return l(oe)[1]},set value(ge){l(oe)[1]=ge}});var pe=j(fe);{var he=ge=>{var ve=iG(),_e=z(ve);{const $e=Re=>{Je(Re,{name:"close"})};let Ce=_(()=>n()("remove"));Ze(_e,{variant:"ghost",size:"small",iconic:!0,get"aria-label"(){return l(Ce)},onclick:()=>{E(re)},startIcon:$e,$$slots:{startIcon:!0}})}$(ge,ve)};q(pe,ge=>{a()||ge(he)})}vt(ee,(ge,ve)=>m[ve]=ge,ge=>m?.[ge],()=>[re]),$(Q,ee)}),Z(()=>{te(W,l(h)),te(O,l(p))}),$(I,N)};q(C,I=>{l(g).length&&I(x)})}var T=j(C,2);{var A=I=>{Uy(I,{get id(){return`${e.fieldId??""}-kv-error`},children:(N,D)=>{var B=aG(),H=M(B);{var W=F=>{var K=Ie();Z(J=>te(K,J),[()=>n()("key_value.empty_key")]),$(F,K)};q(H,F=>{l(b).includes("empty")&&F(W)})}var Y=j(H,2);{var O=F=>{var K=Ie();Z(J=>te(K,J),[()=>n()("key_value.duplicate_key")]),$(F,K)};q(Y,F=>{l(b).includes("duplicate")&&F(O)})}$(N,B)}})};q(T,I=>{l(b).some(Boolean)&&I(A)})}var P=j(T,2),L=z(P);{let I=_(()=>n()("add")),N=_(()=>a()||l(g).length>=l(f));Ze(L,{get label(){return l(I)},variant:"tertiary",get disabled(){return l(N)},onclick:()=>{w()}})}$(t,S),ce(),o()}var dG=U('<tr><td class="svelte-dq8vuc"> </td><td class="svelte-dq8vuc"> </td></tr>'),fG=U('<table class="svelte-dq8vuc"><thead><tr><th scope="col" class="svelte-dq8vuc"> </th><th scope="col" class="svelte-dq8vuc"> </th></tr></thead><tbody></tbody></table>');const hG={hash:"svelte-dq8vuc",code:'@charset "UTF-8";table.svelte-dq8vuc {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-dq8vuc {padding-block:4px;width:50%;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;}td.svelte-dq8vuc:empty::after {content:" ";}'};function pG(t,e){le(e,!0),ke(t,hG);const n=()=>V(ue,"$_",i),r=()=>V(We,"$entryDraft",i),[i,o]=me(),s=_(()=>e.fieldConfig.key_label),a=_(()=>e.fieldConfig.value_label),c=_(()=>l(s)||n()("key_value.key")),u=_(()=>l(a)||n()("key_value.value"));let d=ie(St([]));const f=()=>{const v=qy({entryDraft:We,keyPath:e.keyPath,locale:e.locale});an(l(d),v)||G(d,v,!0)};De(()=>{r()&&(On(r().currentValues[e.locale]),Se(()=>{f()}))});var h=X(),p=M(h);{var g=m=>{var v=fG(),b=z(v),y=z(b),w=z(y),E=z(w),k=j(w),S=z(k),C=j(b);it(C,21,()=>l(d),lr,(x,T)=>{var A=_(()=>lo(l(T),2));let P=()=>l(A)[0],L=()=>l(A)[1];var I=dG(),N=z(I),D=z(N),B=j(N),H=z(B);Z(()=>{te(D,P()),te(H,L())}),$(x,I)}),Z(()=>{te(E,l(c)),te(S,l(u))}),$(m,v)};q(p,m=>{l(d).length&&m(g)})}$(t,h),ce(),o()}function Vy(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"disabled",3,!1),s=R(e,"items",19,()=>[]),a=R(e,"addItem",3,()=>{});const c=_(()=>e.fieldConfig.widget),u=_(()=>e.fieldConfig.name),d=_(()=>e.fieldConfig.label),f=_(()=>e.fieldConfig.types),h=_(()=>l(c)==="list"?e.fieldConfig:void 0),p=_(()=>l(h)?.label_singular??""),g=_(()=>l(h)?.max??void 0),m=_(()=>n()("add_x",{values:{name:l(p)||l(d)||l(u)}})),v=_(()=>o()||typeof l(g)=="number"&&s().length===l(g));var b=X(),y=M(b);{var w=k=>{Ir(k,{variant:"tertiary",get label(){return l(m)},get disabled(){return l(v)},startIcon:T=>{Je(T,{name:"add"})},endIcon:T=>{},popup:T=>{{let A=_(()=>n()("select_list_type"));ir(T,{get"aria-label"(){return l(A)},children:(P,L)=>{var I=X(),N=M(I);it(N,17,()=>l(f),({name:D,label:B})=>D,(D,B)=>{let H=()=>l(B).name,W=()=>l(B).label;{let Y=_(()=>W()||H());mt(D,{get label(){return l(Y)},onclick:()=>a()({type:H()})})}}),$(P,I)},$$slots:{default:!0}})}},$$slots:{startIcon:!0,endIcon:!0,popup:!0}})},E=k=>{Ze(k,{variant:"tertiary",get label(){return l(m)},get disabled(){return l(v)},onclick:()=>a()(),startIcon:C=>{Je(C,{name:"add"})},$$slots:{startIcon:!0}})};q(y,k=>{Array.isArray(l(f))?k(w):k(E,!1)})}$(t,b),ce(),i()}var gG=U('<span role="none" class="type svelte-12y2c75"> </span>'),mG=U('<div role="none" class="header svelte-12y2c75"><div role="none" class="svelte-12y2c75"><!></div> <div role="none" class="svelte-12y2c75"><!></div> <div role="none" class="svelte-12y2c75"><!></div></div>');const vG={hash:"svelte-12y2c75",code:".header.svelte-12y2c75 {display:flex;align-items:center;gap:8px;background-color:var(--sui-secondary-border-color);}.header.svelte-12y2c75 > div:where(.svelte-12y2c75) {display:flex;align-items:center;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):first-child {justify-content:flex-start;width:40%;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):nth-child(2) {width:20%;justify-content:center;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):last-child {width:40%;justify-content:flex-end;}.header.svelte-12y2c75 button {padding:0;height:16px;}.header.svelte-12y2c75 .type:where(.svelte-12y2c75) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}"};function f2(t,e){le(e,!0),ke(t,vG);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"label",3,""),s=R(e,"centerContent",3,void 0),a=R(e,"endContent",3,void 0);var c=mG(),u=z(c),d=z(u);{const m=y=>{{let w=_(()=>e.expanded?"expand_more":"chevron_right");Je(y,{get name(){return l(w)}})}};let v=_(()=>!e.toggleExpanded),b=_(()=>e.expanded?n()("collapse"):n()("expand"));Ze(d,{size:"small",get disabled(){return l(v)},get"aria-label"(){return l(b)},get"aria-expanded"(){return e.expanded},get"aria-controls"(){return e.controlId},onclick:()=>{e.toggleExpanded?.()},startIcon:m,children:(y,w)=>{var E=X(),k=M(E);{var S=C=>{var x=gG(),T=z(x);Z(()=>te(T,o())),$(C,x)};q(k,C=>{o()&&C(S)})}$(y,E)},$$slots:{startIcon:!0,default:!0}})}var f=j(u,2),h=z(f);Me(h,()=>s()??Be);var p=j(f,2),g=z(p);Me(g,()=>a()??Be),$(t,c),ce(),i()}const bG=({fieldConfig:t,dynamicValue:e})=>{if(e!==void 0)return e==="true";const{default:n}=t;return typeof n=="boolean"?n:!1},_G=t=>({[t.keyPath]:bG(t)}),yG=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,output_code_only:i=!1,keys:o={code:"code",lang:"lang"}}=t,s=n!==void 0?n:r;if(i)return{[e]:typeof s=="string"?s:""};const a=Gt(s)?s:void 0,c=a?.[o.code]??s,u=a?.[o.lang]??"";return{[e]:{},[`${e}.${o.code}`]:typeof c=="string"?c:"",[`${e}.${o.lang}`]:typeof u=="string"?u:""}},wG=({fieldConfig:t,dynamicValue:e})=>{const n=t,r=n.default,i=e??r;return typeof i!="string"?"":i==="{{now}}"?j1(z1(n),"",n):i},xG=t=>({[t.keyPath]:wG(t)}),h2=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const r=t,i=r.default,o=xh(r);let s="";n!==void 0?s=o?n.split(/,\s*/):n:o?s=Array.isArray(i)?i:[]:s=typeof i=="string"?i:"";const a={};return o&&Array.isArray(s)&&(s=s.map(c=>c.trim()).filter(c=>c!==""),s.length&&(a[e]=[],s.forEach((c,u)=>{a[`${e}.${u}`]=c}))),!o&&typeof s=="string"&&(s=s.trim(),s&&(a[e]=s)),a},kG=({fieldConfig:t,locale:e,dynamicValue:n})=>{const{default:r}=t,i=n??r;return typeof i!="string"?i:i.replaceAll(/{{(.+?)}}/g,(o,s)=>s==="locale"?e:s==="datetime"?new Date().toJSON().replace(/\d+\.\d+Z$/,"00.000Z"):s==="uuid"?ti():s==="uuid_short"?ti("short"):s==="uuid_shorter"?ti("shorter"):"")},p2=t=>({[t.keyPath]:kG(t)}),SG=({fieldConfig:t,locale:e})=>{const{default:n}=t,r=uc({fieldConfig:t,locale:e});return Gt(n)?n:r?{"":""}:{}},EG=t=>{const{keyPath:e,dynamicValue:n}=t;let r;if(n!==void 0)try{const i=JSON.parse(n);Gt(i)&&(r=i)}catch{}return r??=SG(t),Object.fromEntries(Object.entries(r).filter(([,i])=>typeof i=="string").map(([i,o])=>[`${e}.${i}`,o]))},$G=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,fields:i,types:o}=t;let s;if(n!==void 0?s=n.split(/,\s*/).map(u=>u.trim()).filter(u=>u!==""):s=Array.isArray(r)?r:[],!(Array.isArray(s)&&!!s.length))return{[e]:[]};const c={[e]:s};return i||o?s.forEach((u,d)=>{Gt(u)?Object.entries(Yi(u)).forEach(([f,h])=>{c[`${e}.${d}.${f}`]=h}):c[`${e}.${d}`]=u}):s.forEach((u,d)=>{Gt(u)||(c[`${e}.${d}`]=u)}),c},TG=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r}=t;let i;if(n!==void 0)try{i=KN(n)}catch{i=n.replace(/<[^>]*>/g,"")}else i=r||"";return{[e]:i}},CG=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,value_type:i="int"}=t,o=n??r,s=typeof o=="string";if(o===void 0)return i==="int"||i==="float"?{[e]:null}:{[e]:""};if(i==="int"){const a=s?Number.parseInt(o,10):o;return Number.isInteger(a)?{[e]:a}:{}}if(i==="float"){const a=s?Number.parseFloat(o):o;return Number.isFinite(a)?{[e]:a}:{}}return s?{[e]:o}:{}},AG=({fieldConfig:t,keyPath:e,locale:n})=>{const{default:r,fields:i,types:o}=t,s=uc({fieldConfig:t,locale:n}),a={};return Gt(r)?(Object.entries(Yi(r)).forEach(([c,u])=>{a[`${e}.${c}`]=u}),a):!s||Array.isArray(o)?(a[e]=null,a):(i&&i.length>0&&i.forEach(c=>{v2({content:a,keyPath:[e,c.name].join("."),fieldConfig:c,locale:n,dynamicValues:{}})}),a)},g2=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const r=t,{default:i,multiple:o=!1}=r,s=n!==void 0?n.split(/,\s*/).map(c=>c.trim()):i,a=Array.isArray(s)&&!!s.length;if(!o){if(n!==void 0){const c=n.split(/,\s*/).map(u=>u.trim());return{[e]:c[0]||""}}return{[e]:s!==void 0?s:""}}return a?Object.fromEntries(s.map((c,u)=>[`${e}.${u}`,c])):{[e]:[]}},m2={boolean:_G,code:yG,datetime:xG,file:h2,hidden:p2,image:h2,keyvalue:EG,list:$G,markdown:TG,number:CG,object:AG,relation:g2,select:g2},v2=({content:t,keyPath:e,fieldConfig:n,locale:r,dynamicValues:i})=>{const{widget:o="string",default:s}=n;if(o==="compute"){t[e]="";return}const a=e in i&&!/\.\d+(?:\.|$)/.test(e)&&i[e].trim()||void 0;if(o in m2){Object.assign(t,m2[o]({fieldConfig:n,keyPath:e,locale:r,dynamicValue:a}));return}t[e]=a||s||""},Qd=(t,e,n={})=>{const r={};return t.forEach(i=>{v2({content:r,keyPath:i.name,fieldConfig:i,locale:e,dynamicValues:n})}),r},b2=(t,e)=>{Object.entries(e).forEach(([n,r])=>{t[n]!==r&&(t[n]=r)}),Object.keys(t).forEach(n=>{n in e||delete t[n]})},_2=(t,e)=>{const n=new RegExp(`^${qt(e)}\\b(?!#)`),r=Object.entries(t).filter(([i])=>n.test(i)).map(([i,o])=>[i.replace(n,"_"),o]).sort();return[Yo(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(t).filter(([i])=>!n.test(i)))]},y2=({locale:t,valueStoreKey:e="currentValues",keyPath:n,manipulate:r})=>{const i=se(We),{collection:o,collectionFile:s}=i,{defaultLocale:a}=(s??o)._i18n,[c,u]=_2(i[e][t],n),[d,f]=t===a?_2(i.expanderStates._,n):[[],[]];r({valueList:c,expanderStateList:d}),so.set(!1),We.update(h=>(b2(h[e][t],{...Yi({[n]:c}),...u}),t===a&&b2(h.expanderStates._,{...Yi({[n]:d}),...f}),h)),so.set(!0)},w2=({key:t,locale:e,collapsed:n=!1})=>{const r=se(We),i=r?.expanderStates?._[t];if(i!==void 0)return i;if(n==="auto"){const o=r?.currentValues?.[e]??{},s=new RegExp(`^${qt(t.replace(/#$/,""))}\\.[^\\.]+$`);return!Object.entries(o).some(([a,c])=>s.test(a)&&!!c)}return!n},Do=t=>{We.update(e=>(e&&Object.entries(t).forEach(([n,r])=>{e.expanderStates._[n]!==r&&(e.expanderStates._[n]=r)}),e))},x2=({collectionName:t,fileName:e,valueMap:n,keyPath:r,isIndexFile:i=!1})=>{const o=new Set,s={collectionName:t,fileName:e,valueMap:n,isIndexFile:i};return r.split(".").forEach((a,c,u)=>{const d=u.slice(0,c+1).join("."),f=fn({...s,keyPath:d}),h=/\.\d+$/.test(d);if(f?.widget==="object")h&&o.add(d),o.add(`${d}#`);else if(f?.widget==="list")o.add(h?d:`${d}#`);else if(c>0){const p=u.slice(0,c).join("."),g=fn({...s,keyPath:p});g?.widget==="object"&&g.fields&&o.add(`${p}.${g.name}#`),g?.widget==="list"&&g.field&&o.add(d)}}),[...o]},PG=({collectionName:t,fileName:e,currentValues:n})=>{const{validities:r,isIndexFile:i}=se(We),o={};Object.entries(r??{}).forEach(([s,a])=>{Object.entries(a).forEach(([c,{valid:u}])=>{u||x2({collectionName:t,fileName:e,valueMap:n[s],keyPath:c,isIndexFile:i}).forEach(d=>{o[d]=!0})})}),Do(o)};var LG=U("<!> <!>",1),NG=U('<div role="none" class="toolbar top add svelte-1eiee9e"><!></div>'),IG=U("<!> <!> <!>",1),OG=U("<!> <!>",1),RG=U("<!> <!>",1),DG=U("<!> <!>",1),MG=U("<!> <!>",1),FG=U('<div role="none" class="summary svelte-1eiee9e"><!></div>'),zG=U('<div role="none" class="item svelte-1eiee9e"><!> <div role="none" class="item-body"><!></div></div>'),jG=U('<div role="none" class="toolbar bottom add svelte-1eiee9e"><!> <!></div>'),BG=U('<div role="none" class="toolbar top svelte-1eiee9e"><!> <div role="none" class="summary"> </div> <!> <!></div> <!> <div role="none"></div> <!>',1);const UG={hash:"svelte-1eiee9e",code:".toolbar.svelte-1eiee9e {display:flex;align-items:center;}.toolbar.top.add.svelte-1eiee9e {margin-block:8px 16px !important;}.toolbar.bottom.add.svelte-1eiee9e {margin-block:16px 0 !important;}.item-list.collapsed.svelte-1eiee9e {display:none;}.item.svelte-1eiee9e {margin:16px 0;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.item.svelte-1eiee9e .summary:where(.svelte-1eiee9e) {padding:8px;}.item.svelte-1eiee9e .summary:where(.svelte-1eiee9e):empty {display:none;}"};function qG(t,e){const n=Rn();le(e,!0),ke(t,UG);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(ln,"$isSmallScreen",s),[s,a]=me(),{valueStoreKey:c="currentValues"}=Jn("field-editor")??{},u=_(()=>e.fieldConfig.name),d=_(()=>e.fieldConfig.label),f=_(()=>e.fieldConfig.i18n),h=_(()=>tt(e.fieldConfig.allow_add,!0)),p=_(()=>tt(e.fieldConfig.allow_remove,!0)),g=_(()=>tt(e.fieldConfig.allow_reorder,!0)),m=_(()=>e.fieldConfig.collapsed),v=_(()=>e.fieldConfig.summary),b=_(()=>tt(e.fieldConfig.minimize_collapsed,!1)),y=_(()=>e.fieldConfig.label_singular),w=_(()=>e.fieldConfig.field),E=_(()=>e.fieldConfig.fields),k=_(()=>tt(e.fieldConfig.max,1/0)),S=_(()=>tt(e.fieldConfig.add_to_top,!1)),C=_(()=>e.fieldConfig.types),x=_(()=>tt(e.fieldConfig.typeKey,"type")),T=_(()=>Yu(e.fieldConfig)),A=_(()=>l(T).hasSingleSubField),P=_(()=>l(T).hasVariableTypes),L=_(()=>new RegExp(`^${qt(e.keyPath)}\\.(\\d+)(.*)?`)),I=_(()=>r()?.isIndexFile??!1),N=_(()=>r()?.collection),D=_(()=>r()?.collectionName??""),B=_(()=>r()?.collectionFile),H=_(()=>r()?.fileName),W=_(()=>(l(B)??l(N))?._i18n??Zi),Y=_(()=>l(W).defaultLocale),O=_(()=>e.locale!==l(Y)&&l(f)==="duplicate"),F=_(()=>On(r()?.[c][e.locale])??{}),K=_(()=>`${e.keyPath}#`),J=_(()=>r()?.expanderStates?._[l(K)]??!0),Q=_(()=>Yo(Object.fromEntries(Object.entries(l(F)).filter(([we])=>l(L).test(we)).map(([we,Pe])=>[we.replace(new RegExp(`^${qt(e.keyPath)}`),l(u)),Pe])))[l(u)]??[]),oe=_(()=>l(Q).map((we,Pe)=>{const ye=`${e.keyPath}.${Pe}`;return[ye,r()?.expanderStates?._[ye]??!0]})),re=_(()=>l(Q).length>=l(k)),ee=()=>{Do({[l(K)]:l(b)==="auto"?!l(Q).length:!l(b),...Object.fromEntries(l(Q).map((we,Pe)=>{const ye=`${e.keyPath}.${Pe}`;return[ye,w2({key:ye,locale:e.locale,collapsed:l(m)})]}))})},ne=we=>{Object.keys(r()?.[c]??{}).forEach(Pe=>{l(f)!=="duplicate"&&Pe!==e.locale||y2({locale:Pe,valueStoreKey:c,keyPath:e.keyPath,manipulate:we})})},ae=({index:we=l(S)?0:l(Q).length,dupIndex:Pe,type:ye}={})=>{ne(({valueList:ot,expanderStateList:Qe})=>{const Ne=ye?l(C)?.find(({name:Xe})=>Xe===ye)?.fields??[]:l(E)??(l(w)?[l(w)]:[]),je=(()=>{if(typeof Pe=="number")return structuredClone(ot[Pe]);const Xe=Yo(Qd(Ne,e.locale));return l(A)&&l(w)?Xe[l(w).name]:Xe})();ye&&(je[l(x)]=ye),l(A)||(je.__sc_item_id=crypto.randomUUID()),ot.splice(we,0,je),Qe.splice(we,0,!0)}),Do({[l(K)]:!0})},fe=we=>{ne(({valueList:Pe,expanderStateList:ye})=>{Pe.splice(we,1),ye.splice(we,1)})},be=we=>{ne(({valueList:Pe,expanderStateList:ye})=>{l(A)||(Pe[we].__sc_item_id??=crypto.randomUUID(),Pe[we+1].__sc_item_id??=crypto.randomUUID()),[Pe[we],Pe[we+1]]=[Pe[we+1],Pe[we]],[ye[we],ye[we+1]]=[ye[we+1],ye[we]]})},pe=(we,Pe)=>VF({collectionName:l(D),fileName:l(H),keyPath:e.keyPath,valueMap:l(F),locale:e.locale,summaryTemplate:Pe,hasSingleSubField:l(A),index:we,isIndexFile:l(I)});Ft(()=>{ee()});var he=BG(),ge=M(he),ve=z(ge);{const we=ot=>{{let Qe=_(()=>l(J)?"expand_more":"chevron_right");Je(ot,{get name(){return l(Qe)}})}};let Pe=_(()=>!l(Q).length),ye=_(()=>l(J)?i()("collapse"):i()("expand"));Ze(ve,{iconic:!0,get disabled(){return l(Pe)},get"aria-label"(){return l(ye)},get"aria-expanded"(){return l(J)},get"aria-controls"(){return`list-${n}-item-list`},onclick:()=>{Do({[l(K)]:!l(J)})},startIcon:we,$$slots:{startIcon:!0}})}var _e=j(ve,2),$e=z(_e),Ce=j(_e,2);Wr(Ce,{flex:!0});var Re=j(Ce,2);{var He=we=>{var Pe=LG(),ye=M(Pe);{let Qe=_(()=>i()("expand_all")),Ne=_(()=>l(oe).every(([,je])=>je));Ze(ye,{variant:"tertiary",size:"small",get label(){return l(Qe)},get disabled(){return l(Ne)},onclick:()=>{Do(Object.fromEntries(l(oe).map(([je])=>[je,!0])))}})}var ot=j(ye,2);{let Qe=_(()=>i()("collapse_all")),Ne=_(()=>l(oe).every(([,je])=>!je));Ze(ot,{variant:"tertiary",size:"small",get label(){return l(Qe)},get disabled(){return l(Ne)},onclick:()=>{Do(Object.fromEntries(l(oe).map(([je])=>[je,!1])))}})}$(we,Pe)};q(Re,we=>{l(J)&&l(Q).length>1&&we(He)})}var Ye=j(ge,2);{var Ue=we=>{var Pe=NG(),ye=z(Pe);Vy(ye,{get disabled(){return l(O)},get fieldConfig(){return e.fieldConfig},get items(){return l(Q)},addItem:ae}),$(we,Pe)};q(Ye,we=>{l(h)&&(l(S)||!l(Q).length)&&we(Ue)})}var Te=j(Ye,2);let ze;it(Te,23,()=>l(Q),(we,Pe)=>we.__sc_item_id??Pe,(we,Pe,ye)=>{ao(we,{children:(ot,Qe)=>{const Ne=_(()=>`${e.keyPath}.${l(ye)}`),je=_(()=>r()?.expanderStates?._[l(Ne)]??!0),Xe=_(()=>l(P)?l(C)?.find(({name:Mt})=>Mt===l(Pe)[l(x)]):void 0),st=_(()=>l(P)?l(Xe)?.fields??[]:l(E)??(l(w)?[l(w)]:[])),lt=_(()=>l(P)&&l(Xe)?.summary||l(v));var xt=zG(),Yt=z(xt);{const Mt=Kt=>{var It=X(),kt=M(It);{var hn=Cr=>{var ui=IG(),ht=M(ui);{const $n=At=>{Je(At,{name:"arrow_upward"})};let Dr=_(()=>l(O)||l(ye)===0),Wn=_(()=>i()("move_up"));Ze(ht,{size:"small",iconic:!0,get disabled(){return l(Dr)},get"aria-label"(){return l(Wn)},onclick:()=>be(l(ye)-1),startIcon:$n,$$slots:{startIcon:!0}})}var sn=j(ht,2);Wr(sn,{});var Ln=j(sn,2);{const $n=At=>{Je(At,{name:"arrow_downward"})};let Dr=_(()=>l(O)||l(ye)===l(Q).length-1),Wn=_(()=>i()("move_down"));Ze(Ln,{iconic:!0,size:"small",get disabled(){return l(Dr)},get"aria-label"(){return l(Wn)},onclick:()=>be(l(ye)),startIcon:$n,$$slots:{startIcon:!0}})}$(Cr,ui)};q(kt,Cr=>{l(g)&&Cr(hn)})}$(Kt,It)},cn=Kt=>{var It=MG(),kt=M(It);{var hn=ht=>{{const sn=$n=>{{let Dr=_(()=>i()("translation_options"));ir($n,{get"aria-label"(){return l(Dr)},children:(Wn,At)=>{var Yn=DG(),Bt=M(Yn);{let vn=_(()=>i()("duplicate"));mt(Bt,{get label(){return l(vn)},get disabled(){return l(re)},onclick:()=>ae({index:l(ye)+1,dupIndex:l(ye)})})}var ji=j(Bt,2);{var Ut=vn=>{var Qr=OG(),Mr=M(Qr);{const di=ut=>{var bt=X(),Nn=M(bt);it(Nn,17,()=>l(C)??[],({name:In,label:pr})=>In,(In,pr)=>{let fi=()=>l(pr).name,zn=()=>l(pr).label;{let gr=_(()=>zn()||fi());mt(In,{get label(){return l(gr)},onclick:()=>ae({index:l(ye),type:fi()})})}}),$(ut,bt)};let Jt=_(()=>i()("add_item_above"));mt(Mr,{get label(){return l(Jt)},get disabled(){return l(re)},items:di,$$slots:{items:!0}})}var Fo=j(Mr,2);{const di=ut=>{var bt=X(),Nn=M(bt);it(Nn,17,()=>l(C)??[],({name:In,label:pr})=>In,(In,pr)=>{let fi=()=>l(pr).name,zn=()=>l(pr).label;{let gr=_(()=>zn()||fi());mt(In,{get label(){return l(gr)},onclick:()=>ae({index:l(ye)+1,type:fi()})})}}),$(ut,bt)};let Jt=_(()=>i()("add_item_below"));mt(Fo,{get label(){return l(Jt)},get disabled(){return l(re)},items:di,$$slots:{items:!0}})}$(vn,Qr)},Ei=vn=>{var Qr=RG(),Mr=M(Qr);{let di=_(()=>i()("add_item_above"));mt(Mr,{get label(){return l(di)},get disabled(){return l(re)},onclick:()=>ae({index:l(ye)})})}var Fo=j(Mr,2);{let di=_(()=>i()("add_item_below"));mt(Fo,{get label(){return l(di)},get disabled(){return l(re)},onclick:()=>ae({index:l(ye)+1})})}$(vn,Qr)};q(ji,vn=>{l(P)?vn(Ut):vn(Ei,!1)})}$(Wn,Yn)},$$slots:{default:!0}})}};let Ln=_(()=>i()("list_item_options"));Ir(ht,{variant:"ghost",size:"small",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(Ln)},get disabled(){return l(O)},popup:sn,$$slots:{popup:!0}})}};q(kt,ht=>{l(h)&&ht(hn)})}var Cr=j(kt,2);{var ui=ht=>{{const sn=$n=>{Je($n,{name:"close"})};let Ln=_(()=>i()("remove"));Ze(ht,{variant:"ghost",size:"small",iconic:!0,get"aria-label"(){return l(Ln)},onclick:()=>fe(l(ye)),startIcon:sn,$$slots:{startIcon:!0}})}};q(Cr,ht=>{l(p)&&ht(ui)})}$(Kt,It)};let En=_(()=>l(P)?l(Xe)?.label||l(Xe)?.name:""),mn=_(()=>l(st).length?()=>Do({[l(Ne)]:!l(je)}):void 0);f2(Yt,{get label(){return l(En)},get controlId(){return`list-${n}-item-${l(ye)??""}-body`},get expanded(){return l(je)},get toggleExpanded(){return l(mn)},centerContent:Mt,endContent:cn,$$slots:{centerContent:!0,endContent:!0}})}var wn=j(Yt,2),rn=z(wn);{var on=Mt=>{var cn=X(),En=M(cn);it(En,17,()=>l(st),mn=>mn.name,(mn,Kt)=>{ao(mn,{children:(It,kt)=>{{let hn=_(()=>l(A)?`${e.keyPath}.${l(ye)}`:`${e.keyPath}.${l(ye)}.${l(Kt).name}`),Cr=_(()=>l(A)?"single-field-list-widget":void 0);ig(It,{get keyPath(){return l(hn)},get locale(){return e.locale},get fieldConfig(){return l(Kt)},get context(){return l(Cr)}})}},$$slots:{default:!0}})}),$(Mt,cn)},pt=Mt=>{var cn=FG(),En=z(cn);{let mn=_(()=>o()?2:1);xr(En,{get lines(){return l(mn)},children:(Kt,It)=>{var kt=Ie();Z(hn=>te(kt,hn),[()=>pe(l(ye),l(lt))]),$(Kt,kt)},$$slots:{default:!0}})}$(Mt,cn)};q(rn,Mt=>{l(je)?Mt(on):Mt(pt,!1)})}Z(()=>Ee(wn,"id",`list-${n}-item-${l(ye)??""}-body`)),$(ot,xt)},$$slots:{default:!0}})});var Oe=j(Te,2);{var Ae=we=>{var Pe=jG(),ye=z(Pe);Vy(ye,{get disabled(){return l(O)},get fieldConfig(){return e.fieldConfig},get items(){return l(Q)},addItem:ae});var ot=j(ye,2);Wr(ot,{flex:!0}),$(we,Pe)};q(Oe,we=>{l(h)&&!l(S)&&l(Q).length&&we(Ae)})}Z(we=>{Ee(_e,"id",`object-${n}-summary`),te($e,`${l(Q).length??""}
617
+ ${((l(Q).length===1?l(y):void 0)||l(d)||l(u))??""}`),Ee(Te,"id",`list-${n}-item-list`),ze=Zt(Te,1,"item-list svelte-1eiee9e",null,ze,we)},[()=>({collapsed:!l(J)})]),$(t,he),ce(),a()}function VG(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=Jn("field-editor")??{};let s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=ie(!1),d=ie("");const f=_(()=>e.fieldConfig.i18n),h=()=>{G(d,e.currentValue?.join(`
618
+ `)??"",!0)},p=()=>{const g=l(d).split(/\n/g);Object.keys(n()?.[o]??{}).forEach(m=>{l(f)!=="duplicate"&&m!==e.locale||(Object.keys(n()?.[o][m]??{}).forEach(v=>{v.match(`^${qt(e.keyPath)}\\.\\d+$`)&&delete n()?.[o][m][v]}),g.forEach((v,b)=>{_t(We,Se(n)[o][m][`${e.keyPath}.${b}`]=v,Se(n))}))})};Ft(()=>{G(u,!0)}),De(()=>{l(u)&&(e.currentValue,Se(()=>{h()}))}),qd(t,{autoResize:!0,flex:!0,get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-errormessage"(){return`${e.fieldId??""}-error`},oninput:()=>{p()},get value(){return l(d)},set value(g){G(d,g,!0)}}),ce(),i()}function HG(t,e){const n=Rn();le(e,!0);let r=rt(e,["$$slots","$$events","$$legacy"]);const i=_(()=>Yu(e.fieldConfig)),o=_(()=>l(i).hasSubFields),s=_(()=>l(o)?qG:VG);No(t,{get"aria-labelledby"(){return`list-${n}-summary`},children:(a,c)=>{var u=X(),d=M(u);Bn(d,()=>l(s),(f,h)=>{h(f,en(()=>r))}),$(a,u)},$$slots:{default:!0}}),ce()}var KG=(t,e)=>{t.key==="Enter"&&(t.stopPropagation(),e())},GG=(t,e)=>{t.stopPropagation(),e()},WG=U('<section role="group" tabindex="0" class="svelte-s650n2"><h4 class="svelte-s650n2"> </h4> <!></section>');const YG={hash:"svelte-s650n2",code:'[role="document"] section.svelte-s650n2 {overflow:hidden;margin:8px 0;padding:8px 0;}[role="document"] section.svelte-s650n2 h4:where(.svelte-s650n2) {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}[role="document"] section.svelte-s650n2 h4:where(.svelte-s650n2):not(:last-child) {margin-bottom:8px;}[role="document"] section.svelte-s650n2 > * {margin-inline:auto;max-width:768px;}[role="document"] section.svelte-s650n2 p {margin:8px auto 0;-webkit-user-select:text;user-select:text;}[role="document"] section.svelte-s650n2 img {max-height:800px !important;}'};function Hy(t,e){le(e,!0),ke(t,YG);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.name),s=_(()=>tt(e.fieldConfig.label,"")),a=_(()=>tt(e.fieldConfig.widget,"string")),c=_(()=>tt(e.fieldConfig.preview,!0)),u=_(()=>tt(e.fieldConfig.i18n,!1)),d=_(()=>cc(e.fieldConfig)),f=_(()=>l(a)==="list"||l(d)),h=_(()=>n()?.isIndexFile??!1),p=_(()=>n()?.collection),g=_(()=>n()?.collectionName??""),m=_(()=>n()?.collectionFile),v=_(()=>n()?.fileName),b=_(()=>On(n()?.currentValues[e.locale]??{})),y=_(()=>x2({collectionName:l(g),fileName:l(v),valueMap:l(b),keyPath:e.keyPath,isIndexFile:l(h)})),w=_(()=>(l(m)??l(p))?._i18n??Zi),E=_(()=>l(w).i18nEnabled),k=_(()=>l(w).defaultLocale),S=_(()=>l(E)&&(l(u)===!0||l(u)==="translate")),C=_(()=>l(E)&&l(u)==="duplicate"),x=_(()=>new RegExp(`^${qt(e.keyPath)}\\.\\d+$`)),T=_(()=>l(f)?Object.entries(l(b)).filter(([N])=>l(x).test(N)).map(([,N])=>N).filter(N=>N!==void 0):l(b)[e.keyPath]),A=()=>{Do(Object.fromEntries(l(y).map(N=>[N,!0]))),window.requestAnimationFrame(()=>{const N=document.querySelector(`.content-editor .pane[data-mode="edit"] .field[data-key-path="${CSS.escape(e.keyPath)}"]`);if(N){typeof N.scrollIntoViewIfNeeded=="function"?N.scrollIntoViewIfNeeded():N.scrollIntoView();const D=N.querySelector(".widget-wrapper");(D?.querySelector('[contenteditable="true"], [tabindex="0"]')??D?.querySelector("input, textarea, button"))?.focus()}})};var P=X(),L=M(P);{var I=N=>{var D=WG();D.__keydown=[KG,A],D.__click=[GG,A];var B=z(D),H=z(B),W=j(B,2);{var Y=O=>{const F=_(()=>L2[l(a)]);var K=X(),J=M(K);Bn(J,()=>l(F),(Q,oe)=>{oe(Q,{get keyPath(){return e.keyPath},get locale(){return e.locale},get fieldConfig(){return e.fieldConfig},get currentValue(){return l(T)}})}),$(O,K)};q(W,O=>{l(a)in L2&&O(Y)})}Z(()=>{Ee(D,"data-widget",l(a)),Ee(D,"data-key-path",e.keyPath),te(H,l(s)||l(o))}),$(N,D)};q(L,N=>{l(a)!=="hidden"&&l(c)&&(e.locale===l(k)||l(S)||l(C))&&N(I)})}$(t,P),ce(),i()}pa(["keydown","click"]);var JG=U('<div role="none" class="header svelte-1fo9sk9"> </div>'),XG=U('<div role="group" class="subsection svelte-1fo9sk9"><!> <div role="none" class="items svelte-1fo9sk9"><!></div></div>');const ZG={hash:"svelte-1fo9sk9",code:".subsection.svelte-1fo9sk9 {margin:16px auto;border:2px solid var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.subsection.svelte-1fo9sk9 .title {font-size:inherit;font-weight:var(--sui-font-weight-normal);}.header.svelte-1fo9sk9 {display:flex;align-items:center;height:24px;padding-inline:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-border-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);}.items.svelte-1fo9sk9 {padding:8px 16px;}.items.svelte-1fo9sk9:empty {display:none;}"};function k2(t,e){const n=Rn();le(e,!0),ke(t,ZG);const r=`${n}-header`;let i=ie(void 0);var o=XG(),s=z(o);{var a=d=>{var f=JG(),h=z(f);Z(()=>{Ee(f,"id",r),te(h,e.label)}),$(d,f)};q(s,d=>{e.label&&d(a)})}var c=j(s,2),u=z(c);Xt(u,()=>mc(l(i)),null,d=>{var f=X(),h=M(f);Me(h,()=>e.children??Be),$(d,f)}),vt(o,d=>G(i,d),()=>l(i)),Z(()=>Ee(o,"aria-labelledby",e.label?r:void 0)),$(t,o),ce()}function QG(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.name),s=_(()=>e.fieldConfig.field),a=_(()=>e.fieldConfig.fields),c=_(()=>e.fieldConfig.types),u=_(()=>tt(e.fieldConfig.typeKey,"type")),d=_(()=>new RegExp(`^${qt(e.keyPath)}\\.\\d+`)),f=_(()=>Yo(Object.fromEntries(Object.entries(On(n()?.currentValues[e.locale])??{}).filter(([g])=>l(d).test(g)).map(([g,m])=>[g.replace(new RegExp(`^${qt(e.keyPath)}`),l(o)),m])))[l(o)]??[]);var h=X(),p=M(h);it(p,19,()=>l(f),(g,m)=>g.__sc_item_id??m,(g,m,v)=>{ao(g,{children:(b,y)=>{const w=_(()=>Array.isArray(l(c))?n()?.currentValues[e.locale][`${e.keyPath}.${l(v)}.${l(u)}`]:void 0),E=_(()=>l(c)?.find(({name:C})=>C===l(w))),k=_(()=>l(E)?l(E).label||l(E).name:void 0),S=_(()=>l(w)?l(E)?.fields??[]:l(a)??(l(s)?[l(s)]:[]));k2(b,{get label(){return l(k)},children:(C,x)=>{var T=X(),A=M(T);it(A,17,()=>l(S),P=>P.name,(P,L)=>{ao(P,{children:(I,N)=>{{let D=_(()=>l(s)?`${e.keyPath}.${l(v)}`:`${e.keyPath}.${l(v)}.${l(L).name}`);Hy(I,{get keyPath(){return l(D)},get locale(){return e.locale},get fieldConfig(){return l(L)}})}},$$slots:{default:!0}})}),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}})}),$(t,h),ce(),i()}var eW=U("<li> </li>"),tW=U('<ul dir="auto"></ul>');function nW(t,e){le(e,!0);var n=X(),r=M(n);{var i=o=>{var s=tW();it(s,21,()=>e.currentValue,lr,(a,c)=>{var u=eW(),d=z(u);Z(()=>te(d,l(c))),$(a,u)}),Z(a=>{Ee(s,"lang",a),s.dir=s.dir},[()=>wr(e.locale)]),$(o,s)};q(r,o=>{Array.isArray(e.currentValue)&&e.currentValue.length&&o(i)})}$(t,n),ce()}function rW(t,e){le(e,!0);let n=rt(e,["$$slots","$$events","$$legacy"]);const r=_(()=>Yu(e.fieldConfig)),i=_(()=>l(r).hasSubFields),o=_(()=>l(i)?QG:nW);var s=X(),a=M(s);Bn(a,()=>l(o),(c,u)=>{u(c,en(()=>n))}),$(t,s),ce()}var iW=U('<div role="alert" class="search-result searching svelte-s9eab1"> </div>'),oW=U('<div role="alert" class="search-result no-result svelte-s9eab1"> </div>'),sW=U('<div role="none" class="toolbar svelte-s9eab1"><!> <!> <!></div> <!> <div role="application"></div>',1),aW=U("<!> <!>",1);const lW={hash:"svelte-s9eab1",code:`@import 'node_modules/leaflet/dist/leaflet.css';.toolbar.svelte-s9eab1 {display:flex;align-items:center;margin-bottom:var(--sui-spacing-2x);}.search-result.svelte-s9eab1 {padding:12px;color:var(--sui-secondary-foreground-color);}.map.svelte-s9eab1 {margin:var(--sui-focus-ring-width);border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);overflow:hidden;height:400px;background-clip:text;}.map.invalid.svelte-s9eab1 {border-color:var(--sui-error-border-color);}.leaflet-container {font-family:inherit !important;font-size:var(--sui-font-size-small) !important;}.leaflet-container a {color:var(--sui-primary-accent-color-text) !important;text-decoration:none !important;}.leaflet-bar a {border-color:var(--sui-button-border-color) !important;color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-button-background-color) !important;}.leaflet-control {color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-secondary-background-color-translucent) !important;}.leaflet-control-attribution {padding:4px 8px;}:root[data-theme="dark"] .leaflet-layer {filter:invert(100%) hue-rotate(180deg);}`};function cW(t,e){le(e,!0),ke(t,lW);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"readonly",3,!1),a=R(e,"invalid",3,!1);const c=_(()=>tt(e.fieldConfig.required,!0)),u=_(()=>tt(e.fieldConfig.decimals,7)),d=_(()=>tt(e.fieldConfig.type,"Point")),f=_(()=>l(d).toLowerCase());let h=ie(void 0),p=ie(void 0),g=ie(""),m=ie(""),v=ie(void 0),b=ie(!1),y=ie(!1),w=ie(""),E=0,k;const S=async()=>{if(!l(h))return;const O=await Ta("leaflet","dist/leaflet-src.esm.js"),{TerraDraw:F,TerraDrawLineStringMode:K,TerraDrawPointMode:J,TerraDrawPolygonMode:Q}=await Ta("terra-draw","dist/terra-draw.module.js"),{TerraDrawLeafletAdapter:oe}=await Ta("terra-draw-leaflet-adapter","dist/terra-draw-leaflet-adapter.module.js?module");k=O.map(l(h),{center:[0,0],zoom:2}),O.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(k),l(h).querySelectorAll('a[href^="https:"]').forEach(ee=>{ee.setAttribute("target","_blank"),ee.setAttribute("rel","noopener noreferrer")}),new ResizeObserver(()=>{k?.invalidateSize()}).observe(l(h));const re=new F({adapter:new oe({lib:O,map:k}),modes:[new J,new K,new Q]});re.start(),re.setMode(l(f)),re.on("change",(ee,ne)=>{C(ne)}),G(p,re,!0)},C=O=>{if(l(p)&&O==="create"){const F=l(p).getSnapshot(),K=F.findLast(oe=>oe.geometry.type===l(d));if(!K)return;const{type:J,coordinates:Q}=K.geometry;G(g,JSON.stringify({type:J,coordinates:Q.map(oe=>Array.isArray(oe)?oe.map(re=>Array.isArray(re)?re.map(ee=>Ca(ee,l(u))):Ca(re,l(u))):Ca(oe,l(u)))}),!0),l(d)==="Point"&&l(p).removeFeatures(F.filter(oe=>oe.id!==K.id).map(oe=>oe.id))}},x=()=>{if(!l(p))return;let O=o()??"",F;try{if(O!==void 0&&(F=JSON.parse(O),!Gt(F)||F.type!==l(d)||!Array.isArray(F.coordinates)))throw new Error("Invalid object")}catch{O="",F=void 0}if(l(g)!==O&&(G(g,O,!0),l(p).clear(),F&&(l(p).addFeatures([{type:"Feature",geometry:F,properties:{mode:l(f)}}]),F.coordinates.every(K=>typeof K=="number")))){const[K,J]=F.coordinates;k?.setView([J,K],15)}},T=()=>{if(!l(p))return;const O=l(g);o()!==O&&o(O)},A=()=>{window.clearTimeout(E),E=window.setTimeout(async()=>{const O=l(m).trim();if(!O)return;G(b,!0);const K=`https://nominatim.openstreetmap.org/search?${new URLSearchParams({q:O,format:"jsonv2"})}`;try{G(v,await Xu(K),!0)}catch{G(v,[],!0)}G(b,!1)},500)},P=({latitude:O,longitude:F})=>{if(!l(p))return;O=Ca(O,l(u)),F=Ca(F,l(u));const K={type:"Point",coordinates:[F,O]};l(p).clear(),l(p).addFeatures([{type:"Feature",geometry:K,properties:{mode:"point"}}]),k?.setView([O,F],15),G(g,JSON.stringify(K),!0)},L=({lat:O,lon:F})=>{P({latitude:parseFloat(O),longitude:parseFloat(F)})},I=()=>{if(!navigator.geolocation){G(y,!0),G(w,n()("geolocation_unsupported"),!0);return}navigator.geolocation.getCurrentPosition(({coords:{latitude:O,longitude:F}})=>{P({latitude:O,longitude:F})},O=>{G(y,!0),G(w,n()("geolocation_error_body"),!0),console.error("Error getting current location:",O)})},N=()=>{o("")};Ft(()=>{S()}),De(()=>{l(p),o(),Se(()=>{x()})}),De(()=>{l(g),Se(()=>{T()})}),De(()=>{l(m),Se(()=>{A()})});var D=aW(),B=M(D);{var H=O=>{var F=sW(),K=M(F),J=z(K);{let pe=_(()=>n()("find_place"));Bh(J,{get readonly(){return s()},flex:!0,get placeholder(){return l(pe)},get value(){return l(m)},set value(he){G(m,he,!0)}})}var Q=j(J,2);{const pe=ve=>{Je(ve,{name:"near_me"})};let he=_(()=>n()("use_your_location")),ge=_(()=>n()("use_your_location"));Ze(Q,{variant:"tertiary",iconic:!0,get title(){return l(he)},get"aria-label"(){return l(ge)},get disabled(){return s()},onclick:()=>{I()},startIcon:pe,$$slots:{startIcon:!0}})}var oe=j(Q,2);{var re=pe=>{{let he=_(()=>n()("clear")),ge=_(()=>s()||!o());Ze(pe,{variant:"tertiary",get label(){return l(he)},get disabled(){return l(ge)},onclick:()=>{N()}})}};q(oe,pe=>{l(c)||pe(re)})}var ee=j(K,2);{var ne=pe=>{var he=iW(),ge=z(he);Z(ve=>te(ge,ve),[()=>n()("searching")]),$(pe,he)},ae=pe=>{var he=X(),ge=M(he);{var ve=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{var Ye=X(),Ue=M(Ye);{var Te=Oe=>{{let Ae=_(()=>n()("search_results"));_c(Oe,{get"aria-label"(){return l(Ae)},children:(we,Pe)=>{var ye=X(),ot=M(ye);it(ot,17,()=>l(v),Qe=>Qe.place_id,(Qe,Ne)=>{kr(Qe,{get label(){return l(Ne).display_name},onSelect:()=>{L(l(Ne))}})}),$(we,ye)},$$slots:{default:!0}})}},ze=Oe=>{var Ae=oW(),we=z(Ae);Z(Pe=>te(we,Pe),[()=>n()("no_results")]),$(Oe,Ae)};q(Ue,Oe=>{l(v).length?Oe(Te):Oe(ze,!1)})}$(He,Ye)};q(Ce,He=>{l(v)&&He(Re)})}$(_e,$e)};q(ge,_e=>{l(m)&&_e(ve)},!0)}$(pe,he)};q(ee,pe=>{l(b)?pe(ne):pe(ae,!1)})}var fe=j(ee,2);let be;vt(fe,pe=>G(h,pe),()=>l(h)),Z(pe=>{be=Zt(fe,1,"map svelte-s9eab1",null,be,pe),fe.inert=s()},[()=>({invalid:a()})]),$(O,F)},W=O=>{var F=Ie();Z(()=>te(F,`The ${l(d)??""} type is not yet supported.`)),$(O,F)};q(B,O=>{l(d)==="Point"?O(H):O(W,!1)})}var Y=j(B,2);{let O=_(()=>n()("geolocation_error_title"));zh(Y,{get title(){return l(O)},get open(){return l(y)},set open(F){G(y,F,!0)},children:(F,K)=>{var J=Ie();Z(()=>te(J,l(w))),$(F,J)},$$slots:{default:!0}})}$(t,D),ce(),i()}var uW=U('<pre class="svelte-ise554"> </pre>');const dW={hash:"svelte-ise554",code:"pre.svelte-ise554 {white-space:pre-wrap;}"};function fW(t,e){ke(t,dW);var n=X(),r=M(n);{var i=o=>{var s=uW(),a=z(s);Z(()=>te(a,e.currentValue)),$(o,s)};q(r,o=>{e.currentValue&&o(i)})}$(t,n)}const ef=/^.+?:\w+:/,hW=["rich_text","raw"],pW={rich_text:"rich-text",raw:"plain-text"},gW=["bold","italic","code","link","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","bulleted-list","numbered-list","quote"],mW={bold:"bold",italic:"italic",code:"code",link:"link","heading-one":"heading-1","heading-two":"heading-2","heading-three":"heading-3","heading-four":"heading-4","heading-five":"heading-5","heading-six":"heading-6","bulleted-list":"bulleted-list","numbered-list":"numbered-list",quote:"blockquote","code-block":"code-block"},vW=["code-block","image"];var bW=(t,e,n)=>{!t.target.matches("button, input, textarea")&&t.key!=="Tab"&&t.preventDefault(),t.target===l(e)&&t.key==="Backspace"&&n()(new CustomEvent("remove"))},_W=U('<div role="group" class="wrapper svelte-ykjmq3" contenteditable="false" tabindex="0"><header role="none" class="svelte-ykjmq3"><h3 role="none" class="svelte-ykjmq3"> </h3> <!></header> <!></div>');const yW={hash:"svelte-ykjmq3",code:`.wrapper.svelte-ykjmq3 {display:inline-block;border:1px solid var(--sui-secondary-border-color);border-radius:4px;width:100%;color:var(--sui-secondary-foreground-color);background-color:var(--sui-primary-background-color);white-space:normal;-webkit-user-select:none;user-select:none;}.wrapper.svelte-ykjmq3:focus {outline-color:var(--sui-primary-accent-color-translucent);}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) {display:flex;align-items:center;justify-content:space-between;color:var(--sui-secondary-foreground-color);background-color:var(--sui-selected-background-color);}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) h3:where(.svelte-ykjmq3) {padding:0 8px;font-size:var(--sui-font-size-small);font-weight:600;}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) button {padding:0;height:16px;}
619
619
  @media (768px <= width) {.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) [data-widget] {border-width:0;}.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) [data-widget=string] {display:flex;align-items:center;gap:8px;padding-block:0 16px;}.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) [data-widget=string] h4 {margin-bottom:0 !important;}.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) [data-widget=string] .widget-wrapper {flex:auto;}
620
- }.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) button {margin:var(--sui-focus-ring-width);}.wrapper.svelte-ykjmq3 + .wrapper {margin-top:16px;}`};function yW(t,e){const n=Rn();le(e,!0),ke(t,_W);const r=()=>V(We,"$entryDraft",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"values",7),c=R(e,"onChange",3,()=>{}),u=ie(void 0),d=ie(""),f=ie("");const h=_(()=>l(f)?`${l(f)}:${n}:`:""),p=()=>l(u),g="extraValues";let m;const v=_(()=>{if(r()&&l(d)&&l(f))return Yo(Object.fromEntries(Object.entries(On(r()[g][l(d)]??{})).filter(([A])=>A.startsWith(l(h))).map(([A,P])=>[A.replace(l(h),""),P])))});Ft(()=>(window.requestAnimationFrame(()=>{G(d,l(u)?.closest("[data-locale]")?.dataset.locale,!0),G(f,l(u)?.closest("[data-key-path]")?.dataset.keyPath,!0)}),()=>{r()&&g==="extraValues"&&Object.keys(r()[g][l(d)]??{}).forEach(A=>{A.startsWith(l(h))&&delete r()[g][l(d)][A]})})),De(()=>{a(),l(d),l(f),Se(()=>{r()&&l(d)&&l(f)&&(a(a()??Yo(Qd(e.fields,l(d)))??{}),a().__sc_component_name=e.componentName,an(a(),l(v))||Object.assign(r()[g][l(d)],Object.fromEntries(Object.entries(Yi(a())).map(([A,P])=>[`${l(h)}${A}`,P]))))})}),De(()=>{l(v),Se(()=>{an(m,l(v))||(c()(new CustomEvent("update",{detail:l(v)})),m=l(v))})});var b={getElement:p},y=bW();y.__keydown=[vW,u,c];var w=z(y),E=z(w),k=z(E),S=j(E,2);{const A=L=>{Je(L,{name:"close"})};let P=_(()=>i()("remove"));Ze(S,{size:"small",iconic:!0,get"aria-label"(){return l(P)},onclick:()=>{c()(new CustomEvent("remove"))},startIcon:A,$$slots:{startIcon:!0}})}var C=j(w,2);{var x=A=>{var P=X(),L=M(P);it(L,17,()=>e.fields,I=>I.name,(I,N)=>{ao(I,{children:(D,B)=>{ig(D,{get locale(){return l(d)},get keyPath(){return`${l(h)??""}${l(N).name??""}`},get fieldConfig(){return l(N)},context:"markdown-editor-component",valueStoreKey:g})},$$slots:{default:!0}})}),$(A,P)};q(C,A=>{l(d)&&l(f)&&A(x)})}vt(y,A=>G(u,A),()=>l(u)),Z(()=>{Ee(y,"aria-label",e.label),Ee(y,"data-key-path-prefix",l(h)),Ee(y,"data-component-name",e.componentName),te(k,e.label)}),jr("keydown",y,A=>{A.stopPropagation()},!0),$(t,y);var T=ce(b);return s(),T}pa(["keydown"]);const wW=t=>{const{id:e,label:n,fields:r,pattern:i,toBlock:o,toPreview:s}=t,a=ck(i),c=s({}),u=o({}),d=typeof c=="string"?c.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName??(typeof u=="string"?u.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName:void 0):void 0;class f extends u_{__props;constructor(p,g){super(g),this.__props=p}static getType(){return e}isInline(){return!a}static clone(p){return new f(p.__props,p.__key)}static importJSON(p){return new f().updateFromJSON(p)}exportJSON(){return{...uk(this.__props??{}),type:e,version:1}}createDOM(){let p,g=null,m;const v=async({type:b,detail:y})=>{await ha(),g??=bp(p),g?.update(()=>{if(b==="update")try{this.getWritable().__props=y}catch{}b==="remove"&&(Nx(m),this.remove())})};return m=xf(yW,{target:document.createElement("div"),props:{componentName:e,label:n,fields:r,values:this.__props,onChange:v}}),El(),p=m.getElement(),window.requestAnimationFrame(()=>{p.focus()}),p}exportDOM(){return{element:this.createDOM()}}static importDOM(){const p={};return d&&(p[d]=()=>({conversion:g=>({node:new f(Object.fromEntries(r.map(({name:m})=>[m,g[m]??""])))}),priority:3})),e==="linked-image"&&Object.assign(p,{a:g=>{if(g.firstChild?.nodeName.toLowerCase()==="img"){const{href:m}=g,{src:v,alt:b,title:y}=g.firstChild;return{conversion:()=>({node:new f({src:v,alt:b,title:y,link:m}),after:()=>[]}),priority:4}}return null}}),p}updateDOM(){return!1}decorate(){return null}}return f},xW=({componentDef:t,CustomNode:e})=>{const{id:n,pattern:r,fromBlock:i,toBlock:o}=t,s=new RegExp(r.source,r.flags.replace("g","")),a=d=>i?.(d)??d.groups??{},c=d=>d instanceof e&&d.getType()===n,u=d=>c(d)?o(uk(d.__props??{})):null;return ck(r)?{type:"multiline-element",dependencies:[e],regExpStart:/^./,regExpEnd:{optional:!0,regExp:/.$/},handleImportAfterStartMatch:({lines:d,rootNode:f,startLineIndex:h})=>{const p=d.slice(h).join(`
620
+ }.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) button {margin:var(--sui-focus-ring-width);}.wrapper.svelte-ykjmq3 + .wrapper {margin-top:16px;}`};function wW(t,e){const n=Rn();le(e,!0),ke(t,yW);const r=()=>V(We,"$entryDraft",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"values",7),c=R(e,"onChange",3,()=>{}),u=ie(void 0),d=ie(""),f=ie("");const h=_(()=>l(f)?`${l(f)}:${n}:`:""),p=()=>l(u),g="extraValues";let m;const v=_(()=>{if(r()&&l(d)&&l(f))return Yo(Object.fromEntries(Object.entries(On(r()[g][l(d)]??{})).filter(([A])=>A.startsWith(l(h))).map(([A,P])=>[A.replace(l(h),""),P])))});Ft(()=>(window.requestAnimationFrame(()=>{G(d,l(u)?.closest("[data-locale]")?.dataset.locale,!0),G(f,l(u)?.closest("[data-key-path]")?.dataset.keyPath,!0)}),()=>{r()&&g==="extraValues"&&Object.keys(r()[g][l(d)]??{}).forEach(A=>{A.startsWith(l(h))&&delete r()[g][l(d)][A]})})),De(()=>{a(),l(d),l(f),Se(()=>{r()&&l(d)&&l(f)&&(a(a()??Yo(Qd(e.fields,l(d)))??{}),a().__sc_component_name=e.componentName,an(a(),l(v))||Object.assign(r()[g][l(d)],Object.fromEntries(Object.entries(Yi(a())).map(([A,P])=>[`${l(h)}${A}`,P]))))})}),De(()=>{l(v),Se(()=>{an(m,l(v))||(c()(new CustomEvent("update",{detail:l(v)})),m=l(v))})});var b={getElement:p},y=_W();y.__keydown=[bW,u,c];var w=z(y),E=z(w),k=z(E),S=j(E,2);{const A=L=>{Je(L,{name:"close"})};let P=_(()=>i()("remove"));Ze(S,{size:"small",iconic:!0,get"aria-label"(){return l(P)},onclick:()=>{c()(new CustomEvent("remove"))},startIcon:A,$$slots:{startIcon:!0}})}var C=j(w,2);{var x=A=>{var P=X(),L=M(P);it(L,17,()=>e.fields,I=>I.name,(I,N)=>{ao(I,{children:(D,B)=>{ig(D,{get locale(){return l(d)},get keyPath(){return`${l(h)??""}${l(N).name??""}`},get fieldConfig(){return l(N)},context:"markdown-editor-component",valueStoreKey:g})},$$slots:{default:!0}})}),$(A,P)};q(C,A=>{l(d)&&l(f)&&A(x)})}vt(y,A=>G(u,A),()=>l(u)),Z(()=>{Ee(y,"aria-label",e.label),Ee(y,"data-key-path-prefix",l(h)),Ee(y,"data-component-name",e.componentName),te(k,e.label)}),jr("keydown",y,A=>{A.stopPropagation()},!0),$(t,y);var T=ce(b);return s(),T}pa(["keydown"]);const xW=t=>{const{id:e,label:n,fields:r,pattern:i,toBlock:o,toPreview:s}=t,a=ck(i),c=s({}),u=o({}),d=typeof c=="string"?c.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName??(typeof u=="string"?u.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName:void 0):void 0;class f extends u_{__props;constructor(p,g){super(g),this.__props=p}static getType(){return e}isInline(){return!a}static clone(p){return new f(p.__props,p.__key)}static importJSON(p){return new f().updateFromJSON(p)}exportJSON(){return{...uk(this.__props??{}),type:e,version:1}}createDOM(){let p,g=null,m;const v=async({type:b,detail:y})=>{await ha(),g??=bp(p),g?.update(()=>{if(b==="update")try{this.getWritable().__props=y}catch{}b==="remove"&&(Nx(m),this.remove())})};return m=xf(wW,{target:document.createElement("div"),props:{componentName:e,label:n,fields:r,values:this.__props,onChange:v}}),El(),p=m.getElement(),window.requestAnimationFrame(()=>{p.focus()}),p}exportDOM(){return{element:this.createDOM()}}static importDOM(){const p={};return d&&(p[d]=()=>({conversion:g=>({node:new f(Object.fromEntries(r.map(({name:m})=>[m,g[m]??""])))}),priority:3})),e==="linked-image"&&Object.assign(p,{a:g=>{if(g.firstChild?.nodeName.toLowerCase()==="img"){const{href:m}=g,{src:v,alt:b,title:y}=g.firstChild;return{conversion:()=>({node:new f({src:v,alt:b,title:y,link:m}),after:()=>[]}),priority:4}}return null}}),p}updateDOM(){return!1}decorate(){return null}}return f},kW=({componentDef:t,CustomNode:e})=>{const{id:n,pattern:r,fromBlock:i,toBlock:o}=t,s=new RegExp(r.source,r.flags.replace("g","")),a=d=>i?.(d)??d.groups??{},c=d=>d instanceof e&&d.getType()===n,u=d=>c(d)?o(uk(d.__props??{})):null;return ck(r)?{type:"multiline-element",dependencies:[e],regExpStart:/^./,regExpEnd:{optional:!0,regExp:/.$/},handleImportAfterStartMatch:({lines:d,rootNode:f,startLineIndex:h})=>{const p=d.slice(h).join(`
621
621
  `),[g]=p.match(s)??[];if(!g||!p.startsWith(g))return null;const m=g.match(s),v=h+g.split(`
622
- `).length-1;return m?(f.append(new e(a(m))),[!0,v]):[!1,v]},replace:()=>{},export:u}:{type:"text-match",dependencies:[e],importRegExp:s,regExp:s,replace:(d,f)=>{d.replace(new e(a(f)))},export:u}},S2=new Map,kW=t=>{const e=wW(t);return{node:e,createNode:n=>new e(n),transformer:xW({componentDef:t,CustomNode:e})}};class SW{constructor(e){const{id:n}=e,r=S2.get(n),i=r??kW(e);r||S2.set(n,i),Object.assign(this,{...e,...i})}}var EW=U('<div role="none"><!></div>');const $W={hash:"svelte-eev3hl",code:`.wrapper.svelte-eev3hl {display:contents;}.wrapper.minimal.svelte-eev3hl :is([role=textbox], textarea) {overflow:auto;max-height:240px;}
622
+ `).length-1;return m?(f.append(new e(a(m))),[!0,v]):[!1,v]},replace:()=>{},export:u}:{type:"text-match",dependencies:[e],importRegExp:s,regExp:s,replace:(d,f)=>{d.replace(new e(a(f)))},export:u}},S2=new Map,SW=t=>{const e=xW(t);return{node:e,createNode:n=>new e(n),transformer:kW({componentDef:t,CustomNode:e})}};class EW{constructor(e){const{id:n}=e,r=S2.get(n),i=r??SW(e);r||S2.set(n,i),Object.assign(this,{...e,...i})}}var $W=U('<div role="none"><!></div>');const TW={hash:"svelte-eev3hl",code:`.wrapper.svelte-eev3hl {display:contents;}.wrapper.minimal.svelte-eev3hl :is([role=textbox], textarea) {overflow:auto;max-height:240px;}
623
623
  @media (width < 768px) {.wrapper.svelte-eev3hl .sui.text-editor {margin:0 calc(var(--field-editor-padding) * -1) calc(var(--field-editor-padding) * -1);width:100dvw;}.wrapper.svelte-eev3hl :is(.sui.toolbar, .lexical-root, textarea) {border:0;border-radius:0;}
624
- }`};function TW(t,e){le(e,!0),ke(t,$W);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{widgetContext:o=void 0}=Jn("field-editor")??{},s=o==="markdown-editor-component";let a=R(e,"currentValue",15),c=R(e,"required",3,!0),u=R(e,"readonly",3,!1),d=R(e,"invalid",3,!1),f=ie(void 0),h=ie(""),p=0;const g=_(()=>tt(e.fieldConfig.modes,()=>[...fW],!0)),m=_(()=>tt(e.fieldConfig.buttons,()=>[...pW],!0)),v=_(()=>tt(e.fieldConfig.editor_components,()=>[...mW,...gh.keys()],!0)),b=_(()=>tt(e.fieldConfig.linked_images,!0)),y=_(()=>tt(e.fieldConfig.minimal,!1)),w=_(()=>l(g).map(D=>hW[D]).filter(Boolean)),E=_(()=>[...l(m),...l(v).includes("code-block")?["code-block"]:[]].map(D=>gW[D]).filter(Boolean)),k=_(()=>s?[]:l(v).map(D=>hk(D==="image"&&l(b)?"linked-image":D)).filter(D=>!!D).map(D=>new SW(D))),S=_(()=>l(k).find(({id:D})=>D==="image"||D==="linked-image")),C=({target:D,images:B})=>{const H=D?.closest("div"),W=bp(H);!l(S)||!H?.matches(".lexical-root")||!W||B.forEach(({file:Y,src:O,alt:F=""})=>{Y&&(O=URL.createObjectURL(Y)),W.update(()=>{Pc([l(S).createNode({src:O,alt:F}),_n()])},{onUpdate:async()=>{if(!Y)return;await Lt(250),H.querySelector(`img[src="${O}"]`)?.closest(".drop-target")?.dispatchEvent(new CustomEvent("Select",{detail:{files:[Y]}}))}})})},x=async D=>{const{target:B,clipboardData:H}=D,W=H?.items;if(!W)return;let Y=[];const O=[...W].findIndex(({kind:K,type:J})=>K==="file"&&vo.includes(J)),F=[...W].findIndex(({kind:K,type:J})=>K==="string"&&J==="text/html");if(O>-1&&F>-1){const K=O>-1?W[O].getAsFile():void 0;if(!K)return;W.clear(),D.stopPropagation();let J="",Q=K.name;const oe=await new Promise(re=>{W[F].getAsString(ee=>{re(new DOMParser().parseFromString(ee,"text/html").querySelector("img"))})});if(oe&&(J=oe.alt,/^https?:/.test(oe.src))){const re=new URL(oe.src).pathname.split("/").pop()??"";(fv.test(re)||ID.test(re))&&(Q=re)}Y=[{file:new File([K],Q,{type:K.type}),alt:J}]}else Y=[...H.files].filter(({type:K})=>vo.includes(K)).map(K=>({file:K}));Y.length&&(Y=Y.map(({file:K,alt:J},Q)=>{if(K?.name==="image.png"){const{year:oe,month:re,day:ee,hour:ne,minute:ae,second:fe}=Sa(),be=Y.length>1?`-${Q+1}`:"",pe=`${oe}${re}${ee}-${ne}${ae}${fe}${be}.png`;K=new File([K],pe,{type:K.type})}return{file:K,alt:J}}),C({target:B,images:Y}))},T=async D=>{const{target:B,dataTransfer:H}=D,W=H?.files;let Y=[];if(W?.length)Y=[...W].filter(({type:O})=>vo.includes(O)).map(O=>({file:O}));else{const O=D.dataTransfer?.getData("text/html");if(O){const F=new DOMParser().parseFromString(O,"text/html").querySelector("img");if(F){const{src:K,alt:J}=F,Q=K.match(/^data:(?<type>image\/.+?);base64,.+/);let oe;if(Q){const re=Q.groups?.type??"";if(vo.includes(re))try{const ee=await(await fetch(K)).blob(),{year:ne,month:ae,day:fe,hour:be,minute:pe,second:he}=Sa(),ge=re.split("/")[1],ve=`${ne}${ae}${fe}-${be}${pe}${he}.${ge}`;oe=new File([ee],ve,{type:re})}catch{return}}Y=[{file:oe,src:K,alt:J}]}}}Y.length&&C({target:B,images:Y})},A=()=>{const D=typeof a()=="string"?a():"";l(h)!==D&&G(h,D,!0),!(!n()||s)&&(window.clearTimeout(p),p=window.setTimeout(()=>{Object.keys(n()?.extraValues[e.locale]??{}).forEach(B=>{const[H]=B.match(ef)??[];H?.startsWith(`${e.keyPath}:`)&&!l(f)?.querySelector(`[data-key-path-prefix="${H}"]`)&&delete n().extraValues[e.locale][B]})},500))},P=()=>{const D=l(h);a()!==D&&a(D)};De(()=>{a(),Se(()=>{A()})}),De(()=>{l(h),Se(()=>{P()})});var L=EW();let I;var N=z(L);Xt(N,Lt,null,D=>{var B=X(),H=M(B);Xn(H,()=>JSON.stringify(e.fieldConfig),W=>{{let Y=_(()=>wr(e.locale));J8(W,{get lang(){return l(Y)},get modes(){return l(w)},get buttons(){return l(E)},get components(){return l(k)},flex:!0,get readonly(){return u()},get required(){return c()},get invalid(){return d()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,onpastecapture:O=>{x(O)},ondrop:O=>{T(O)},get value(){return l(h)},set value(O){G(h,O,!0)}})}}),$(D,B)}),vt(L,D=>G(f,D),()=>l(f)),Z(D=>I=Zt(L,1,"wrapper svelte-eev3hl",null,I,D),[()=>({minimal:l(y)})]),$(t,L),ce(),i()}function CW(){return{useNewRenderer:!0,renderer:{heading(...t){return Rt.Renderer.prototype.heading.call(this,...t).replace(/^<(h\d)/,'<$1 dir="auto"')},list(...t){return Rt.Renderer.prototype.list.call(this,...t).replace(/^<(ol|ul)/,'<$1 dir="auto"')},paragraph(...t){return Rt.Renderer.prototype.paragraph.call(this,...t).replace(/^<p/,'<p dir="auto"')}}}}const AW=(...t)=>{const{alt:e,src:n,title:r}=t.at(-1),i=n.replaceAll(" ","%20");return r?`![${e}](${i} "${r}")`:`![${e}](${i})`};var PW=U('<div role="none" class="svelte-lijj98"><!></div>');const LW={hash:"svelte-lijj98",code:'[role="document"] div.svelte-lijj98 :is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}[role="document"] div.svelte-lijj98 :is(video, img) {max-width:100%;max-height:100%;}[role="document"] div.svelte-lijj98 :is(a:has(img)) {display:inline-block;}[role="document"] div.svelte-lijj98 :is(a:has(img)) img {pointer-events:none;}'};function NW(t,e){le(e,!0),ke(t,LW);const n=()=>V(We,"$entryDraft",r),[r,i]=me();let o=ie("");const s=_(()=>n()?.originalEntry),a=_(()=>n()?.collectionName??""),c=_(()=>n()?.fileName),u=_(()=>tt(e.fieldConfig.sanitize_preview,!0)),d=_(()=>(e.currentValue??"").replace(YD,AW)),f={breaks:!0,async:!0,walkTokens:async v=>{if(v.type==="image"){const b=await ic({value:v.href,entry:l(s),collectionName:l(a),fileName:l(c)});b&&(v.href=b)}}},h={ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?|mailto|tel|blob):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i};DM(CW()),De(()=>{(async()=>G(o,await Rv(l(d),f),!0))()});var p=PW(),g=z(p);{var m=v=>{var b=X(),y=M(b);cr(y,()=>l(u)?Nr.sanitize(l(o),h):l(o)),$(v,b)};q(g,v=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&v(m)})}$(t,p),ce(),i()}function IW(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1),s=ie(void 0),a=ie("");const c=_(()=>tt(e.fieldConfig.value_type,"int")),u=_(()=>e.fieldConfig.min),d=_(()=>e.fieldConfig.max),f=_(()=>tt(e.fieldConfig.step,1)),h=_(()=>l(c)==="int"||l(c)==="float"),p=()=>{if(n()!==void 0){if(l(h)&&l(s)!==n())if(typeof n()=="number")G(s,n(),!0);else if(typeof n()=="string"){const w=n().trim()?Number(n()):NaN;G(s,Number.isNaN(w)?void 0:w,!0)}else G(s,void 0);!l(h)&&l(a)!==n()&&G(a,String(n()),!0)}},g=()=>{let w;l(h)?l(s)===void 0?w=NaN:l(c)==="int"?w=Number.parseInt(l(h)?String(l(s)):l(a),10):w=Number.parseFloat(l(h)?String(l(s)):l(a)):w=l(a),l(h)&&Number.isNaN(w)&&(w=null),n()!==w&&n(w)};De(()=>{n(),Se(()=>{p()})}),De(()=>{l(a),Se(()=>{g()})}),De(()=>{l(s),Se(()=>{g()})});var m=X(),v=M(m);{var b=w=>{Q8(w,{get min(){return l(u)},get max(){return l(d)},get step(){return l(f)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(s)},set value(E){G(s,E,!0)}})},y=w=>{Cn(w,{get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(a)},set value(E){G(a,E,!0)}})};q(v,w=>{l(h)?w(b):w(y,!1)})}$(t,m),ce()}var OW=U('<p dir="auto"><!></p>');function RW(t,e){le(e,!0);const n=_(()=>tt(e.fieldConfig.value_type,"int")),r=_(()=>wr(e.locale)),i=_(()=>Intl.NumberFormat(l(r)));var o=X(),s=M(o);{var a=c=>{var u=OW(),d=z(u);{var f=p=>{var g=Ie();Z(m=>te(g,m),[()=>l(i).format(Number(e.currentValue))]),$(p,g)},h=p=>{var g=Ie();Z(()=>te(g,e.currentValue)),$(p,g)};q(d,p=>{l(n)==="int"||l(n)==="float"?p(f):p(h,!1)})}Z(()=>{Ee(u,"lang",l(r)),u.dir=u.dir}),$(c,u)};q(s,c=>{e.currentValue!==void 0&&e.currentValue!==null&&e.currentValue!==""&&c(a)})}$(t,o),ce()}const E2=t=>{const{collectionName:e,fileName:n,collection:r,collectionFile:i,currentValues:o,isIndexFile:s}=se(We),{defaultLocale:a}=(i??r)._i18n,c={...Ps(t),...Ps(o[a])},u={collectionName:e,fileName:n,valueMap:c,isIndexFile:s},d=[];return Object.keys(c).forEach(f=>{const h=fn({...u,keyPath:f});if(!h)return;const{widget:p="text",i18n:g=!1}=h;["text","string","markdown"].includes(p)&&[!0,"translate"].includes(g)&&(c[f]=t[f]??""),([!1,"none"].includes(g)||d.some(m=>new RegExp(`^${qt(m)}\\b`).test(f)))&&(delete c[f],d.push(f))}),c},$2=t=>{We.update(e=>{const{fields:n,currentLocales:r,currentValues:i,validities:o}=e,s=!r[t];if(s&&!i[t]){const{collectionName:a,fileName:c,originalValues:u}=e,d=Qd(n,t);return{...e,currentLocales:{...r,[t]:s},originalValues:{...u,[t]:d},currentValues:{...i,[t]:Ly({draft:{collectionName:a,fileName:c},locale:t,target:E2(d)})}}}return{...e,currentLocales:{...r,[t]:s},validities:{...o,[t]:{}}}})},DW=({collectionName:t,fileName:e,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:o,summaryTemplate:s})=>{const a={collectionName:t,fileName:e,keyPath:"",valueMap:r,isIndexFile:i};return s?s.replaceAll(/{{(.+?)}}/g,(c,u)=>{const[d,...f]=u.split(/\s*\|\s*/);return dc({...a,keyPath:`${n}.${d.replace(/^fields\./,"")}`,locale:o,transformations:f})}):Vk({valueMap:r,locale:o,keyPath:n,keyPathRegex:new RegExp(`^${qt(n)}\\.`),getFieldArgs:a})};var MW=U('<div role="none" class="summary svelte-ztn6n1"><!></div>'),FW=U('<div role="group" class="wrapper svelte-ztn6n1"><!> <div role="none" class="item-list"><!></div></div>'),zW=U("<!> <!> <!>",1);const jW={hash:"svelte-ztn6n1",code:".wrapper.svelte-ztn6n1 {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.sui.checkbox + .wrapper.svelte-ztn6n1 > .group {margin-top:8px;}.summary.svelte-ztn6n1 {padding:8px;}"};function BW(t,e){const n=Rn();le(e,!0),ke(t,jW);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(ln,"$isSmallScreen",s),[s,a]=me(),{widgetContext:c,valueStoreKey:u="currentValues"}=Jn("field-editor")??{};let d=R(e,"required",3,!0),f=ie(void 0);const h=_(()=>e.fieldConfig.name),p=_(()=>tt(e.fieldConfig.i18n,!1)),g=_(()=>e.fieldConfig.collapsed),m=_(()=>e.fieldConfig.summary),v=_(()=>e.fieldConfig.fields),b=_(()=>e.fieldConfig.types),y=_(()=>tt(e.fieldConfig.typeKey,"type")),w=_(()=>r()?.isIndexFile??!1),E=_(()=>r()?.collection),k=_(()=>r()?.collectionName??""),S=_(()=>r()?.collectionFile),C=_(()=>r()?.fileName),x=_(()=>(l(S)??l(E))?._i18n??Zi),T=_(()=>l(x).defaultLocale),A=_(()=>On(r()?.[u][e.locale])??{}),P=_(()=>({collectionName:l(k),fileName:l(C),valueMap:l(A),isIndexFile:l(w)})),L=_(()=>Object.entries(l(A)).some(([he,ge])=>!!he.startsWith(`${e.keyPath}.`)&&(ge!==null||fn({...l(P),keyPath:he})?.widget==="object"))),I=_(()=>c==="markdown-editor-component"||e.locale===l(T)||l(p)!==!1),N=_(()=>`${e.keyPath}#`),D=_(()=>r()?.expanderStates?._[l(N)]??!0),B=_(()=>Array.isArray(l(b))),H=_(()=>`${e.keyPath}.${l(y)}`),W=_(()=>l(B)?l(b)?.find(({name:he})=>he===l(A)[l(H)]):void 0),Y=_(()=>(l(B)?l(W)?.fields:l(v))??[]),O=_(()=>l(B)&&l(W)?.summary||l(m)),F=_(()=>e.locale!==l(T)&&l(p)==="duplicate"),K=()=>{const he=l(N);Do({[he]:w2({key:he,locale:e.locale,collapsed:l(g)})})},J=async({type:he}={})=>{Ge(so,!1),he&&(Object.keys(r()?.[u]??{}).forEach(_e=>{(_e===e.locale||l(p)==="duplicate")&&_t(We,Se(r)[u][_e][l(H)]=he,Se(r))}),await ha());const ge=Object.fromEntries(Object.entries(Qd(l(Y),e.locale)).map(([_e,$e])=>[`${e.keyPath}.${_e}`,$e])),ve=e.locale===l(T)?ge:E2(ge);Object.entries(r()?.[u]??{}).forEach(([_e,$e])=>{(_e===e.locale||l(p)==="duplicate")&&(_t(We,Se(r)[u][_e]=Object.assign($e,Ps({...ve,...$e})),Se(r)),delete r()[u][_e][e.keyPath])}),Ge(so,!0)},Q=()=>{Ge(so,!1),Object.entries(r()?.[u]??{}).forEach(([he,ge])=>{(he===e.locale||l(p)==="duplicate")&&(Object.keys(ge).forEach(ve=>{ve.startsWith(`${e.keyPath}.`)&&(_t(We,Se(r)[u][he][ve]=null,Se(r)),delete r()?.[u][he][ve])}),_t(We,Se(r)[u][he][e.keyPath]=null,Se(r)))}),Ge(so,!0)},oe=()=>DW({...l(P),keyPath:e.keyPath,locale:e.locale,summaryTemplate:l(O)});Ft(()=>{K()});var re=zW(),ee=M(re);{var ne=he=>{{let ge=_(()=>i()("add_x",{values:{name:e.fieldLabel||l(h)}}));od(he,{get label(){return l(ge)},get checked(){return l(L)},get disabled(){return l(F)},onChange:({detail:{checked:ve}})=>{ve?J():Q()}})}};q(ee,he=>{!l(B)&&!d()&&he(ne)})}var ae=j(ee,2);{var fe=he=>{Vy(he,{get disabled(){return l(F)},get fieldConfig(){return e.fieldConfig},addItem:J})};q(ae,he=>{l(B)&&!l(L)&&he(fe)})}var be=j(ae,2);{var pe=he=>{var ge=FW(),ve=z(ge);{const Ce=Ye=>{var Ue=X(),Te=M(Ue);{var ze=Oe=>{{const Ae=Pe=>{Je(Pe,{name:"close"})};let we=_(()=>i()("remove"));Ze(Oe,{size:"small",iconic:!0,get disabled(){return l(F)},get"aria-label"(){return l(we)},onclick:()=>{Q()},startIcon:Ae,$$slots:{startIcon:!0}})}};q(Te,Oe=>{l(B)&&Oe(ze)})}$(Ye,Ue)};let Re=_(()=>l(B)?l(W)?.label||l(W)?.name:""),He=_(()=>l(Y).length?()=>Do({[l(N)]:!l(D)}):void 0);f2(ve,{get label(){return l(Re)},get controlId(){return`object-${n}-item-list`},get expanded(){return l(D)},get toggleExpanded(){return l(He)},endContent:Ce,$$slots:{endContent:!0}})}var _e=j(ve,2),$e=z(_e);Xt($e,()=>mc(l(f)),null,Ce=>{var Re=X(),He=M(Re);{var Ye=Te=>{var ze=X(),Oe=M(ze);it(Oe,17,()=>l(Y),Ae=>Ae.name,(Ae,we)=>{ao(Ae,{children:(Pe,ye)=>{{let ot=_(()=>[e.keyPath,l(we).name].join("."));ig(Pe,{get keyPath(){return l(ot)},get locale(){return e.locale},get fieldConfig(){return l(we)}})}},$$slots:{default:!0}})}),$(Te,ze)},Ue=Te=>{const ze=_(oe);var Oe=X(),Ae=M(Oe);{var we=Pe=>{var ye=MW(),ot=z(ye);{let Qe=_(()=>o()?2:1);xr(ot,{get lines(){return l(Qe)},children:(Ne,je)=>{var Xe=Ie();Z(()=>te(Xe,l(ze))),$(Ne,Xe)},$$slots:{default:!0}})}Z(()=>Ee(ye,"id",`object-${n}-summary`)),$(Pe,ye)};q(Ae,Pe=>{l(ze)&&Pe(we)})}$(Te,Oe)};q(He,Te=>{l(D)?Te(Ye):Te(Ue,!1)})}$(Ce,Re)}),vt(_e,Ce=>G(f,Ce),()=>l(f)),Z(()=>{Ee(ge,"aria-labelledby",l(D)?void 0:`object-${n}-summary`),Ee(_e,"id",`object-${n}-item-list`)}),$(he,ge)};q(be,he=>{(!(!d()||l(B))||l(L))&&l(I)&&he(pe)})}$(t,re),ce(),a()}function UW(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.fields),s=_(()=>e.fieldConfig.types),a=_(()=>tt(e.fieldConfig.typeKey,"type")),c=_(()=>On(n()?.currentValues[e.locale])??{}),u=_(()=>Object.entries(l(c)).some(([y,w])=>!!y.startsWith(`${e.keyPath}.`)&&!!w)),d=_(()=>Array.isArray(l(s))),f=_(()=>`${e.keyPath}.${l(a)}`),h=_(()=>l(d)?l(s)?.find(({name:y})=>y===l(c)[l(f)]):void 0),p=_(()=>l(h)?l(h).label||l(h).name:void 0),g=_(()=>(l(d)?l(h)?.fields:l(o))??[]);var m=X(),v=M(m);{var b=y=>{k2(y,{get label(){return l(p)},children:(w,E)=>{var k=X(),S=M(k);it(S,17,()=>l(g),C=>C.name,(C,x)=>{ao(C,{children:(T,A)=>{{let P=_(()=>[e.keyPath,l(x).name].join("."));Hy(T,{get keyPath(){return l(P)},get locale(){return e.locale},get fieldConfig(){return l(x)}})}},$$slots:{default:!0}})}),$(w,k)},$$slots:{default:!0}})};q(v,y=>{l(u)&&y(b)})}$(t,m),ce(),i()}function qW(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=Jn("field-editor")??{};let s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1);const u=_(()=>e.fieldConfig.i18n),d=_(()=>e.fieldConfig.max),f=_(()=>tt(e.fieldConfig.dropdown_threshold,5)),h=w=>{n()&&Object.keys(On(n()[o])??{}).forEach(E=>{l(u)!=="duplicate"&&E!==e.locale||y2({locale:E,valueStoreKey:o,keyPath:e.keyPath,manipulate:w})})},p=w=>{h(({valueList:E})=>{E.push(w)})},g=w=>{h(({valueList:E})=>{E.splice(E.indexOf(w),1)})};var m=X(),v=M(m);{var b=w=>{hU(w,{get disabled(){return a()},get readonly(){return a()},get required(){return s()},get invalid(){return c()},get options(){return e.options},get values(){return e.currentValue},get max(){return l(d)},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onAddValue:({detail:{value:E}})=>{p(E)},onRemoveValue:({detail:{value:E}})=>{g(E)}})},y=w=>{nB(w,{get"aria-labelledby"(){return`${e.fieldId??""}-label`},children:(E,k)=>{var S=X(),C=M(S);it(C,17,()=>e.options,({label:x,value:T})=>T,(x,T)=>{let A=()=>l(T).label,P=()=>l(T).value;{let L=_(()=>e.currentValue.includes(P()));od(x,{get label(){return A()},get value(){return P()},get readonly(){return a()},get required(){return s()},get invalid(){return c()},get checked(){return l(L)},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{checked:I}})=>{I?p(P()):g(P())}})}}),$(E,S)},$$slots:{default:!0}})};q(v,w=>{e.options.length>l(f)?w(b):w(y,!1)})}$(t,m),ce(),i()}function VW(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=R(e,"options",7);const d=_(()=>tt(e.fieldConfig.dropdown_threshold,5));let f=ie(void 0);De(()=>{l(f)||G(f,u()[0]?.value!==void 0?typeof u()[0]?.value:"string",!0)}),De(()=>{!s()&&!u().some(({value:v})=>!v)&&u([{label:n()("unselected_option"),value:l(f)==="number"?null:"",searchValue:""},...u()])});var h=X(),p=M(h);{var g=v=>{Fa(v,{get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return o()},set value(b){o(b)},children:(b,y)=>{var w=X(),E=M(w);it(E,17,u,({label:k,value:S,searchValue:C})=>S,(k,S)=>{let C=()=>l(S).label,x=()=>l(S).value,T=()=>l(S).searchValue;{let A=_(()=>x()===o());kr(k,{get label(){return C()},get value(){return x()},get valueType(){return l(f)},get searchValue(){return T()},get selected(){return l(A)},wrap:!0})}}),$(b,w)},$$slots:{default:!0}})},m=v=>{WB(v,{get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{value:b}})=>{o(b)},children:(b,y)=>{var w=X(),E=M(w);it(E,17,u,({label:k,value:S})=>S,(k,S)=>{let C=()=>l(S).label,x=()=>l(S).value;{let T=_(()=>x()===o());ZB(k,{get label(){return C()},get value(){return x()},get valueType(){return l(f)},get checked(){return l(T)}})}}),$(b,w)},$$slots:{default:!0}})};q(p,v=>{u().length>l(d)?v(g):v(m,!1)})}$(t,h),ce(),i()}function T2(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1),s=R(e,"sortOptions",3,!1);const a=_(()=>e.fieldConfig.options),c=_(()=>e.fieldConfig.multiple),u=_(()=>l(c)?qW:VW),d=_(()=>{const p=l(a).map(g=>Gt(g)?g:{label:g,value:g});return s()&&p.sort((g,m)=>vi(g.label,m.label)),p});var f=X(),h=M(f);Xn(h,()=>JSON.stringify(l(d)),p=>{var g=X(),m=M(g);Bn(m,()=>l(u),(v,b)=>{b(v,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldConfig(){return e.fieldConfig},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get options(){return l(d)},get currentValue(){return n()},set currentValue(y){n(y)}})}),$(p,g)}),$(t,f),ce()}var HW=U('<div role="none" class="wrapper"><!></div>');function KW(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1);const s=_(()=>e.fieldConfig.collection),a=_(()=>e.fieldConfig.file),c=_(()=>l(a)?[yv(l(s),l(a))].filter(h=>!!h):wo(l(s))),u=_(()=>({...e.fieldConfig,widget:"select",options:jv(e.locale,e.fieldConfig,l(c))}));var d=HW(),f=z(d);T2(f,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldLabel(){return e.fieldLabel},get fieldConfig(){return l(u)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},sortOptions:!0,get currentValue(){return n()},set currentValue(h){n(h)}}),$(t,d),ce()}var GW=U('<p dir="auto"> </p>');function WW(t,e){le(e,!0);const n=_(()=>e.fieldConfig.collection),r=_(()=>e.fieldConfig.file),i=_(()=>tt(e.fieldConfig.multiple,!1)),o=_(()=>tt(e.fieldConfig.value_field,"{{slug}}")),s=_(()=>Ql(e.locale)),a=_(()=>l(r)?[yv(l(n),l(r))].filter(p=>!!p):wo(l(n))),c=_(()=>jv(e.locale,e.fieldConfig,l(a))),u=_(()=>(l(i)?e.currentValue:[e.currentValue]).filter(p=>p!==void 0).map(p=>{const g=l(c).find(m=>m.value===p)?.label;return g&&g!==p?["slug","{{slug}}","{{fields.slug}}"].includes(l(o))?g:`${g} (${p})`:p}));var d=X(),f=M(d);{var h=p=>{var g=GW(),m=z(g);Z((v,b)=>{Ee(g,"lang",v),te(m,b),g.dir=g.dir},[()=>wr(e.locale),()=>l(s).format(l(u))]),$(p,g)};q(f,p=>{l(u).length&&p(h)})}$(t,d),ce()}var YW=U('<p dir="auto"> </p>'),JW=U('<p dir="auto"> </p>');function XW(t,e){le(e,!0);const n=_(()=>e.fieldConfig.options),r=_(()=>e.fieldConfig.multiple),i=_(()=>C1(l(n))),o=_(()=>Ql(e.locale)),s=f=>l(i)&&l(n).find(h=>h.value===f)?.label||String(f);var a=X(),c=M(a);{var u=f=>{var h=YW(),p=z(h);Z((g,m)=>{Ee(h,"lang",g),te(p,m),h.dir=h.dir},[()=>wr(e.locale),()=>l(o).format(e.currentValue.map(s).sort())]),$(f,h)},d=f=>{var h=X(),p=M(h);{var g=m=>{var v=JW(),b=z(v);Z((y,w)=>{Ee(v,"lang",y),te(b,w),v.dir=v.dir},[()=>wr(e.locale),()=>s(e.currentValue)]),$(m,v)};q(p,m=>{e.currentValue!==void 0&&m(g)},!0)}$(f,h)};q(c,f=>{l(r)&&Array.isArray(e.currentValue)&&e.currentValue.length?f(u):f(d,!1)})}$(t,a),ce()}const C2=({fieldConfig:t,value:e})=>{const{minlength:n,maxlength:r}=t,i=Number.isInteger(n)&&n<=(r??1/0),o=Number.isInteger(r)&&(n??0)<=r,s=e?[...e.trim()].length:0,a=i&&s<n,c=o&&s>r;return{count:s,hasMin:i,hasMax:o,tooShort:a,tooLong:c,invalid:a||c}};var ZW=U('<div class="wrapper svelte-18cyzaa"><!> <span role="none"> </span> <!></div>');const QW={hash:"svelte-18cyzaa",code:".wrapper.svelte-18cyzaa {flex:none;color:var(--sui-tertiary-foreground-color) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);text-align:end;}.count.invalid.svelte-18cyzaa {color:var(--sui-error-foreground-color);}.count.svelte-18cyzaa:not(.invalid) {color:var(--sui-success-foreground-color);}"};function A2(t,e){le(e,!0),ke(t,QW);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>e.fieldConfig.minlength),s=_(()=>e.fieldConfig.maxlength),a=_(()=>C2({fieldConfig:e.fieldConfig,value:e.currentValue})),c=_(()=>l(a).count),u=_(()=>l(a).hasMin),d=_(()=>l(a).hasMax),f=_(()=>l(a).invalid);var h=X(),p=M(h);{var g=m=>{var v=ZW(),b=z(v);{var y=x=>{var T=Ie();Z(()=>te(T,`${l(o)??""}
624
+ }`};function CW(t,e){le(e,!0),ke(t,TW);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{widgetContext:o=void 0}=Jn("field-editor")??{},s=o==="markdown-editor-component";let a=R(e,"currentValue",15),c=R(e,"required",3,!0),u=R(e,"readonly",3,!1),d=R(e,"invalid",3,!1),f=ie(void 0),h=ie(""),p=0;const g=_(()=>tt(e.fieldConfig.modes,()=>[...hW],!0)),m=_(()=>tt(e.fieldConfig.buttons,()=>[...gW],!0)),v=_(()=>tt(e.fieldConfig.editor_components,()=>[...vW,...gh.keys()],!0)),b=_(()=>tt(e.fieldConfig.linked_images,!0)),y=_(()=>tt(e.fieldConfig.minimal,!1)),w=_(()=>l(g).map(D=>pW[D]).filter(Boolean)),E=_(()=>[...l(m),...l(v).includes("code-block")?["code-block"]:[]].map(D=>mW[D]).filter(Boolean)),k=_(()=>s?[]:l(v).map(D=>hk(D==="image"&&l(b)?"linked-image":D)).filter(D=>!!D).map(D=>new EW(D))),S=_(()=>l(k).find(({id:D})=>D==="image"||D==="linked-image")),C=({target:D,images:B})=>{const H=D?.closest("div"),W=bp(H);!l(S)||!H?.matches(".lexical-root")||!W||B.forEach(({file:Y,src:O,alt:F=""})=>{Y&&(O=URL.createObjectURL(Y)),W.update(()=>{Pc([l(S).createNode({src:O,alt:F}),_n()])},{onUpdate:async()=>{if(!Y)return;await Lt(250),H.querySelector(`img[src="${O}"]`)?.closest(".drop-target")?.dispatchEvent(new CustomEvent("Select",{detail:{files:[Y]}}))}})})},x=async D=>{const{target:B,clipboardData:H}=D,W=H?.items;if(!W)return;let Y=[];const O=[...W].findIndex(({kind:K,type:J})=>K==="file"&&vo.includes(J)),F=[...W].findIndex(({kind:K,type:J})=>K==="string"&&J==="text/html");if(O>-1&&F>-1){const K=O>-1?W[O].getAsFile():void 0;if(!K)return;W.clear(),D.stopPropagation();let J="",Q=K.name;const oe=await new Promise(re=>{W[F].getAsString(ee=>{re(new DOMParser().parseFromString(ee,"text/html").querySelector("img"))})});if(oe&&(J=oe.alt,/^https?:/.test(oe.src))){const re=new URL(oe.src).pathname.split("/").pop()??"";(fv.test(re)||ID.test(re))&&(Q=re)}Y=[{file:new File([K],Q,{type:K.type}),alt:J}]}else Y=[...H.files].filter(({type:K})=>vo.includes(K)).map(K=>({file:K}));Y.length&&(Y=Y.map(({file:K,alt:J},Q)=>{if(K?.name==="image.png"){const{year:oe,month:re,day:ee,hour:ne,minute:ae,second:fe}=Sa(),be=Y.length>1?`-${Q+1}`:"",pe=`${oe}${re}${ee}-${ne}${ae}${fe}${be}.png`;K=new File([K],pe,{type:K.type})}return{file:K,alt:J}}),C({target:B,images:Y}))},T=async D=>{const{target:B,dataTransfer:H}=D,W=H?.files;let Y=[];if(W?.length)Y=[...W].filter(({type:O})=>vo.includes(O)).map(O=>({file:O}));else{const O=D.dataTransfer?.getData("text/html");if(O){const F=new DOMParser().parseFromString(O,"text/html").querySelector("img");if(F){const{src:K,alt:J}=F,Q=K.match(/^data:(?<type>image\/.+?);base64,.+/);let oe;if(Q){const re=Q.groups?.type??"";if(vo.includes(re))try{const ee=await(await fetch(K)).blob(),{year:ne,month:ae,day:fe,hour:be,minute:pe,second:he}=Sa(),ge=re.split("/")[1],ve=`${ne}${ae}${fe}-${be}${pe}${he}.${ge}`;oe=new File([ee],ve,{type:re})}catch{return}}Y=[{file:oe,src:K,alt:J}]}}}Y.length&&C({target:B,images:Y})},A=()=>{const D=typeof a()=="string"?a():"";l(h)!==D&&G(h,D,!0),!(!n()||s)&&(window.clearTimeout(p),p=window.setTimeout(()=>{Object.keys(n()?.extraValues[e.locale]??{}).forEach(B=>{const[H]=B.match(ef)??[];H?.startsWith(`${e.keyPath}:`)&&!l(f)?.querySelector(`[data-key-path-prefix="${H}"]`)&&delete n().extraValues[e.locale][B]})},500))},P=()=>{const D=l(h);a()!==D&&a(D)};De(()=>{a(),Se(()=>{A()})}),De(()=>{l(h),Se(()=>{P()})});var L=$W();let I;var N=z(L);Xt(N,Lt,null,D=>{var B=X(),H=M(B);Xn(H,()=>JSON.stringify(e.fieldConfig),W=>{{let Y=_(()=>wr(e.locale));J8(W,{get lang(){return l(Y)},get modes(){return l(w)},get buttons(){return l(E)},get components(){return l(k)},flex:!0,get readonly(){return u()},get required(){return c()},get invalid(){return d()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,onpastecapture:O=>{x(O)},ondrop:O=>{T(O)},get value(){return l(h)},set value(O){G(h,O,!0)}})}}),$(D,B)}),vt(L,D=>G(f,D),()=>l(f)),Z(D=>I=Zt(L,1,"wrapper svelte-eev3hl",null,I,D),[()=>({minimal:l(y)})]),$(t,L),ce(),i()}function AW(){return{useNewRenderer:!0,renderer:{heading(...t){return Rt.Renderer.prototype.heading.call(this,...t).replace(/^<(h\d)/,'<$1 dir="auto"')},list(...t){return Rt.Renderer.prototype.list.call(this,...t).replace(/^<(ol|ul)/,'<$1 dir="auto"')},paragraph(...t){return Rt.Renderer.prototype.paragraph.call(this,...t).replace(/^<p/,'<p dir="auto"')}}}}const PW=(...t)=>{const{alt:e,src:n,title:r}=t.at(-1),i=n.replaceAll(" ","%20");return r?`![${e}](${i} "${r}")`:`![${e}](${i})`};var LW=U('<div role="none" class="svelte-lijj98"><!></div>');const NW={hash:"svelte-lijj98",code:'[role="document"] div.svelte-lijj98 :is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}[role="document"] div.svelte-lijj98 :is(video, img) {max-width:100%;max-height:100%;}[role="document"] div.svelte-lijj98 :is(a:has(img)) {display:inline-block;}[role="document"] div.svelte-lijj98 :is(a:has(img)) img {pointer-events:none;}'};function IW(t,e){le(e,!0),ke(t,NW);const n=()=>V(We,"$entryDraft",r),[r,i]=me();let o=ie("");const s=_(()=>n()?.originalEntry),a=_(()=>n()?.collectionName??""),c=_(()=>n()?.fileName),u=_(()=>tt(e.fieldConfig.sanitize_preview,!0)),d=_(()=>(e.currentValue??"").replace(YD,PW)),f={breaks:!0,async:!0,walkTokens:async v=>{if(v.type==="image"){const b=await ic({value:v.href,entry:l(s),collectionName:l(a),fileName:l(c)});b&&(v.href=b)}}},h={ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?|mailto|tel|blob):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i};DM(AW()),De(()=>{(async()=>G(o,await Rv(l(d),f),!0))()});var p=LW(),g=z(p);{var m=v=>{var b=X(),y=M(b);cr(y,()=>l(u)?Nr.sanitize(l(o),h):l(o)),$(v,b)};q(g,v=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&v(m)})}$(t,p),ce(),i()}function OW(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1),s=ie(void 0),a=ie("");const c=_(()=>tt(e.fieldConfig.value_type,"int")),u=_(()=>e.fieldConfig.min),d=_(()=>e.fieldConfig.max),f=_(()=>tt(e.fieldConfig.step,1)),h=_(()=>l(c)==="int"||l(c)==="float"),p=()=>{if(n()!==void 0){if(l(h)&&l(s)!==n())if(typeof n()=="number")G(s,n(),!0);else if(typeof n()=="string"){const w=n().trim()?Number(n()):NaN;G(s,Number.isNaN(w)?void 0:w,!0)}else G(s,void 0);!l(h)&&l(a)!==n()&&G(a,String(n()),!0)}},g=()=>{let w;l(h)?l(s)===void 0?w=NaN:l(c)==="int"?w=Number.parseInt(l(h)?String(l(s)):l(a),10):w=Number.parseFloat(l(h)?String(l(s)):l(a)):w=l(a),l(h)&&Number.isNaN(w)&&(w=null),n()!==w&&n(w)};De(()=>{n(),Se(()=>{p()})}),De(()=>{l(a),Se(()=>{g()})}),De(()=>{l(s),Se(()=>{g()})});var m=X(),v=M(m);{var b=w=>{Q8(w,{get min(){return l(u)},get max(){return l(d)},get step(){return l(f)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(s)},set value(E){G(s,E,!0)}})},y=w=>{Cn(w,{get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(a)},set value(E){G(a,E,!0)}})};q(v,w=>{l(h)?w(b):w(y,!1)})}$(t,m),ce()}var RW=U('<p dir="auto"><!></p>');function DW(t,e){le(e,!0);const n=_(()=>tt(e.fieldConfig.value_type,"int")),r=_(()=>wr(e.locale)),i=_(()=>Intl.NumberFormat(l(r)));var o=X(),s=M(o);{var a=c=>{var u=RW(),d=z(u);{var f=p=>{var g=Ie();Z(m=>te(g,m),[()=>l(i).format(Number(e.currentValue))]),$(p,g)},h=p=>{var g=Ie();Z(()=>te(g,e.currentValue)),$(p,g)};q(d,p=>{l(n)==="int"||l(n)==="float"?p(f):p(h,!1)})}Z(()=>{Ee(u,"lang",l(r)),u.dir=u.dir}),$(c,u)};q(s,c=>{e.currentValue!==void 0&&e.currentValue!==null&&e.currentValue!==""&&c(a)})}$(t,o),ce()}const E2=t=>{const{collectionName:e,fileName:n,collection:r,collectionFile:i,currentValues:o,isIndexFile:s}=se(We),{defaultLocale:a}=(i??r)._i18n,c={...Ps(t),...Ps(o[a])},u={collectionName:e,fileName:n,valueMap:c,isIndexFile:s},d=[];return Object.keys(c).forEach(f=>{const h=fn({...u,keyPath:f});if(!h)return;const{widget:p="text",i18n:g=!1}=h;["text","string","markdown"].includes(p)&&[!0,"translate"].includes(g)&&(c[f]=t[f]??""),([!1,"none"].includes(g)||d.some(m=>new RegExp(`^${qt(m)}\\b`).test(f)))&&(delete c[f],d.push(f))}),c},$2=t=>{We.update(e=>{const{fields:n,currentLocales:r,currentValues:i,validities:o}=e,s=!r[t];if(s&&!i[t]){const{collectionName:a,fileName:c,originalValues:u}=e,d=Qd(n,t);return{...e,currentLocales:{...r,[t]:s},originalValues:{...u,[t]:d},currentValues:{...i,[t]:Ly({draft:{collectionName:a,fileName:c},locale:t,target:E2(d)})}}}return{...e,currentLocales:{...r,[t]:s},validities:{...o,[t]:{}}}})},MW=({collectionName:t,fileName:e,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:o,summaryTemplate:s})=>{const a={collectionName:t,fileName:e,keyPath:"",valueMap:r,isIndexFile:i};return s?s.replaceAll(/{{(.+?)}}/g,(c,u)=>{const[d,...f]=u.split(/\s*\|\s*/);return dc({...a,keyPath:`${n}.${d.replace(/^fields\./,"")}`,locale:o,transformations:f})}):Vk({valueMap:r,locale:o,keyPath:n,keyPathRegex:new RegExp(`^${qt(n)}\\.`),getFieldArgs:a})};var FW=U('<div role="none" class="summary svelte-ztn6n1"><!></div>'),zW=U('<div role="group" class="wrapper svelte-ztn6n1"><!> <div role="none" class="item-list"><!></div></div>'),jW=U("<!> <!> <!>",1);const BW={hash:"svelte-ztn6n1",code:".wrapper.svelte-ztn6n1 {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.sui.checkbox + .wrapper.svelte-ztn6n1 > .group {margin-top:8px;}.summary.svelte-ztn6n1 {padding:8px;}"};function UW(t,e){const n=Rn();le(e,!0),ke(t,BW);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(ln,"$isSmallScreen",s),[s,a]=me(),{widgetContext:c,valueStoreKey:u="currentValues"}=Jn("field-editor")??{};let d=R(e,"required",3,!0),f=ie(void 0);const h=_(()=>e.fieldConfig.name),p=_(()=>tt(e.fieldConfig.i18n,!1)),g=_(()=>e.fieldConfig.collapsed),m=_(()=>e.fieldConfig.summary),v=_(()=>e.fieldConfig.fields),b=_(()=>e.fieldConfig.types),y=_(()=>tt(e.fieldConfig.typeKey,"type")),w=_(()=>r()?.isIndexFile??!1),E=_(()=>r()?.collection),k=_(()=>r()?.collectionName??""),S=_(()=>r()?.collectionFile),C=_(()=>r()?.fileName),x=_(()=>(l(S)??l(E))?._i18n??Zi),T=_(()=>l(x).defaultLocale),A=_(()=>On(r()?.[u][e.locale])??{}),P=_(()=>({collectionName:l(k),fileName:l(C),valueMap:l(A),isIndexFile:l(w)})),L=_(()=>Object.entries(l(A)).some(([he,ge])=>!!he.startsWith(`${e.keyPath}.`)&&(ge!==null||fn({...l(P),keyPath:he})?.widget==="object"))),I=_(()=>c==="markdown-editor-component"||e.locale===l(T)||l(p)!==!1),N=_(()=>`${e.keyPath}#`),D=_(()=>r()?.expanderStates?._[l(N)]??!0),B=_(()=>Array.isArray(l(b))),H=_(()=>`${e.keyPath}.${l(y)}`),W=_(()=>l(B)?l(b)?.find(({name:he})=>he===l(A)[l(H)]):void 0),Y=_(()=>(l(B)?l(W)?.fields:l(v))??[]),O=_(()=>l(B)&&l(W)?.summary||l(m)),F=_(()=>e.locale!==l(T)&&l(p)==="duplicate"),K=()=>{const he=l(N);Do({[he]:w2({key:he,locale:e.locale,collapsed:l(g)})})},J=async({type:he}={})=>{Ge(so,!1),he&&(Object.keys(r()?.[u]??{}).forEach(_e=>{(_e===e.locale||l(p)==="duplicate")&&_t(We,Se(r)[u][_e][l(H)]=he,Se(r))}),await ha());const ge=Object.fromEntries(Object.entries(Qd(l(Y),e.locale)).map(([_e,$e])=>[`${e.keyPath}.${_e}`,$e])),ve=e.locale===l(T)?ge:E2(ge);Object.entries(r()?.[u]??{}).forEach(([_e,$e])=>{(_e===e.locale||l(p)==="duplicate")&&(_t(We,Se(r)[u][_e]=Object.assign($e,Ps({...ve,...$e})),Se(r)),delete r()[u][_e][e.keyPath])}),Ge(so,!0)},Q=()=>{Ge(so,!1),Object.entries(r()?.[u]??{}).forEach(([he,ge])=>{(he===e.locale||l(p)==="duplicate")&&(Object.keys(ge).forEach(ve=>{ve.startsWith(`${e.keyPath}.`)&&(_t(We,Se(r)[u][he][ve]=null,Se(r)),delete r()?.[u][he][ve])}),_t(We,Se(r)[u][he][e.keyPath]=null,Se(r)))}),Ge(so,!0)},oe=()=>MW({...l(P),keyPath:e.keyPath,locale:e.locale,summaryTemplate:l(O)});Ft(()=>{K()});var re=jW(),ee=M(re);{var ne=he=>{{let ge=_(()=>i()("add_x",{values:{name:e.fieldLabel||l(h)}}));od(he,{get label(){return l(ge)},get checked(){return l(L)},get disabled(){return l(F)},onChange:({detail:{checked:ve}})=>{ve?J():Q()}})}};q(ee,he=>{!l(B)&&!d()&&he(ne)})}var ae=j(ee,2);{var fe=he=>{Vy(he,{get disabled(){return l(F)},get fieldConfig(){return e.fieldConfig},addItem:J})};q(ae,he=>{l(B)&&!l(L)&&he(fe)})}var be=j(ae,2);{var pe=he=>{var ge=zW(),ve=z(ge);{const Ce=Ye=>{var Ue=X(),Te=M(Ue);{var ze=Oe=>{{const Ae=Pe=>{Je(Pe,{name:"close"})};let we=_(()=>i()("remove"));Ze(Oe,{size:"small",iconic:!0,get disabled(){return l(F)},get"aria-label"(){return l(we)},onclick:()=>{Q()},startIcon:Ae,$$slots:{startIcon:!0}})}};q(Te,Oe=>{l(B)&&Oe(ze)})}$(Ye,Ue)};let Re=_(()=>l(B)?l(W)?.label||l(W)?.name:""),He=_(()=>l(Y).length?()=>Do({[l(N)]:!l(D)}):void 0);f2(ve,{get label(){return l(Re)},get controlId(){return`object-${n}-item-list`},get expanded(){return l(D)},get toggleExpanded(){return l(He)},endContent:Ce,$$slots:{endContent:!0}})}var _e=j(ve,2),$e=z(_e);Xt($e,()=>mc(l(f)),null,Ce=>{var Re=X(),He=M(Re);{var Ye=Te=>{var ze=X(),Oe=M(ze);it(Oe,17,()=>l(Y),Ae=>Ae.name,(Ae,we)=>{ao(Ae,{children:(Pe,ye)=>{{let ot=_(()=>[e.keyPath,l(we).name].join("."));ig(Pe,{get keyPath(){return l(ot)},get locale(){return e.locale},get fieldConfig(){return l(we)}})}},$$slots:{default:!0}})}),$(Te,ze)},Ue=Te=>{const ze=_(oe);var Oe=X(),Ae=M(Oe);{var we=Pe=>{var ye=FW(),ot=z(ye);{let Qe=_(()=>o()?2:1);xr(ot,{get lines(){return l(Qe)},children:(Ne,je)=>{var Xe=Ie();Z(()=>te(Xe,l(ze))),$(Ne,Xe)},$$slots:{default:!0}})}Z(()=>Ee(ye,"id",`object-${n}-summary`)),$(Pe,ye)};q(Ae,Pe=>{l(ze)&&Pe(we)})}$(Te,Oe)};q(He,Te=>{l(D)?Te(Ye):Te(Ue,!1)})}$(Ce,Re)}),vt(_e,Ce=>G(f,Ce),()=>l(f)),Z(()=>{Ee(ge,"aria-labelledby",l(D)?void 0:`object-${n}-summary`),Ee(_e,"id",`object-${n}-item-list`)}),$(he,ge)};q(be,he=>{(!(!d()||l(B))||l(L))&&l(I)&&he(pe)})}$(t,re),ce(),a()}function qW(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.fields),s=_(()=>e.fieldConfig.types),a=_(()=>tt(e.fieldConfig.typeKey,"type")),c=_(()=>On(n()?.currentValues[e.locale])??{}),u=_(()=>Object.entries(l(c)).some(([y,w])=>!!y.startsWith(`${e.keyPath}.`)&&!!w)),d=_(()=>Array.isArray(l(s))),f=_(()=>`${e.keyPath}.${l(a)}`),h=_(()=>l(d)?l(s)?.find(({name:y})=>y===l(c)[l(f)]):void 0),p=_(()=>l(h)?l(h).label||l(h).name:void 0),g=_(()=>(l(d)?l(h)?.fields:l(o))??[]);var m=X(),v=M(m);{var b=y=>{k2(y,{get label(){return l(p)},children:(w,E)=>{var k=X(),S=M(k);it(S,17,()=>l(g),C=>C.name,(C,x)=>{ao(C,{children:(T,A)=>{{let P=_(()=>[e.keyPath,l(x).name].join("."));Hy(T,{get keyPath(){return l(P)},get locale(){return e.locale},get fieldConfig(){return l(x)}})}},$$slots:{default:!0}})}),$(w,k)},$$slots:{default:!0}})};q(v,y=>{l(u)&&y(b)})}$(t,m),ce(),i()}function VW(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=Jn("field-editor")??{};let s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1);const u=_(()=>e.fieldConfig.i18n),d=_(()=>e.fieldConfig.max),f=_(()=>tt(e.fieldConfig.dropdown_threshold,5)),h=w=>{n()&&Object.keys(On(n()[o])??{}).forEach(E=>{l(u)!=="duplicate"&&E!==e.locale||y2({locale:E,valueStoreKey:o,keyPath:e.keyPath,manipulate:w})})},p=w=>{h(({valueList:E})=>{E.push(w)})},g=w=>{h(({valueList:E})=>{E.splice(E.indexOf(w),1)})};var m=X(),v=M(m);{var b=w=>{hU(w,{get disabled(){return a()},get readonly(){return a()},get required(){return s()},get invalid(){return c()},get options(){return e.options},get values(){return e.currentValue},get max(){return l(d)},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onAddValue:({detail:{value:E}})=>{p(E)},onRemoveValue:({detail:{value:E}})=>{g(E)}})},y=w=>{nB(w,{get"aria-labelledby"(){return`${e.fieldId??""}-label`},children:(E,k)=>{var S=X(),C=M(S);it(C,17,()=>e.options,({label:x,value:T})=>T,(x,T)=>{let A=()=>l(T).label,P=()=>l(T).value;{let L=_(()=>e.currentValue.includes(P()));od(x,{get label(){return A()},get value(){return P()},get readonly(){return a()},get required(){return s()},get invalid(){return c()},get checked(){return l(L)},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{checked:I}})=>{I?p(P()):g(P())}})}}),$(E,S)},$$slots:{default:!0}})};q(v,w=>{e.options.length>l(f)?w(b):w(y,!1)})}$(t,m),ce(),i()}function HW(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=R(e,"options",7);const d=_(()=>tt(e.fieldConfig.dropdown_threshold,5));let f=ie(void 0);De(()=>{l(f)||G(f,u()[0]?.value!==void 0?typeof u()[0]?.value:"string",!0)}),De(()=>{!s()&&!u().some(({value:v})=>!v)&&u([{label:n()("unselected_option"),value:l(f)==="number"?null:"",searchValue:""},...u()])});var h=X(),p=M(h);{var g=v=>{Fa(v,{get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return o()},set value(b){o(b)},children:(b,y)=>{var w=X(),E=M(w);it(E,17,u,({label:k,value:S,searchValue:C})=>S,(k,S)=>{let C=()=>l(S).label,x=()=>l(S).value,T=()=>l(S).searchValue;{let A=_(()=>x()===o());kr(k,{get label(){return C()},get value(){return x()},get valueType(){return l(f)},get searchValue(){return T()},get selected(){return l(A)},wrap:!0})}}),$(b,w)},$$slots:{default:!0}})},m=v=>{WB(v,{get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{value:b}})=>{o(b)},children:(b,y)=>{var w=X(),E=M(w);it(E,17,u,({label:k,value:S})=>S,(k,S)=>{let C=()=>l(S).label,x=()=>l(S).value;{let T=_(()=>x()===o());ZB(k,{get label(){return C()},get value(){return x()},get valueType(){return l(f)},get checked(){return l(T)}})}}),$(b,w)},$$slots:{default:!0}})};q(p,v=>{u().length>l(d)?v(g):v(m,!1)})}$(t,h),ce(),i()}function T2(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1),s=R(e,"sortOptions",3,!1);const a=_(()=>e.fieldConfig.options),c=_(()=>e.fieldConfig.multiple),u=_(()=>l(c)?VW:HW),d=_(()=>{const p=l(a).map(g=>Gt(g)?g:{label:g,value:g});return s()&&p.sort((g,m)=>vi(g.label,m.label)),p});var f=X(),h=M(f);Xn(h,()=>JSON.stringify(l(d)),p=>{var g=X(),m=M(g);Bn(m,()=>l(u),(v,b)=>{b(v,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldConfig(){return e.fieldConfig},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get options(){return l(d)},get currentValue(){return n()},set currentValue(y){n(y)}})}),$(p,g)}),$(t,f),ce()}var KW=U('<div role="none" class="wrapper"><!></div>');function GW(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1);const s=_(()=>e.fieldConfig.collection),a=_(()=>e.fieldConfig.file),c=_(()=>l(a)?[yv(l(s),l(a))].filter(h=>!!h):wo(l(s))),u=_(()=>({...e.fieldConfig,widget:"select",options:jv(e.locale,e.fieldConfig,l(c))}));var d=KW(),f=z(d);T2(f,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldLabel(){return e.fieldLabel},get fieldConfig(){return l(u)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},sortOptions:!0,get currentValue(){return n()},set currentValue(h){n(h)}}),$(t,d),ce()}var WW=U('<p dir="auto"> </p>');function YW(t,e){le(e,!0);const n=_(()=>e.fieldConfig.collection),r=_(()=>e.fieldConfig.file),i=_(()=>tt(e.fieldConfig.multiple,!1)),o=_(()=>tt(e.fieldConfig.value_field,"{{slug}}")),s=_(()=>Ql(e.locale)),a=_(()=>l(r)?[yv(l(n),l(r))].filter(p=>!!p):wo(l(n))),c=_(()=>jv(e.locale,e.fieldConfig,l(a))),u=_(()=>(l(i)?e.currentValue:[e.currentValue]).filter(p=>p!==void 0).map(p=>{const g=l(c).find(m=>m.value===p)?.label;return g&&g!==p?["slug","{{slug}}","{{fields.slug}}"].includes(l(o))?g:`${g} (${p})`:p}));var d=X(),f=M(d);{var h=p=>{var g=WW(),m=z(g);Z((v,b)=>{Ee(g,"lang",v),te(m,b),g.dir=g.dir},[()=>wr(e.locale),()=>l(s).format(l(u))]),$(p,g)};q(f,p=>{l(u).length&&p(h)})}$(t,d),ce()}var JW=U('<p dir="auto"> </p>'),XW=U('<p dir="auto"> </p>');function ZW(t,e){le(e,!0);const n=_(()=>e.fieldConfig.options),r=_(()=>e.fieldConfig.multiple),i=_(()=>C1(l(n))),o=_(()=>Ql(e.locale)),s=f=>l(i)&&l(n).find(h=>h.value===f)?.label||String(f);var a=X(),c=M(a);{var u=f=>{var h=JW(),p=z(h);Z((g,m)=>{Ee(h,"lang",g),te(p,m),h.dir=h.dir},[()=>wr(e.locale),()=>l(o).format(e.currentValue.map(s).sort())]),$(f,h)},d=f=>{var h=X(),p=M(h);{var g=m=>{var v=XW(),b=z(v);Z((y,w)=>{Ee(v,"lang",y),te(b,w),v.dir=v.dir},[()=>wr(e.locale),()=>s(e.currentValue)]),$(m,v)};q(p,m=>{e.currentValue!==void 0&&m(g)},!0)}$(f,h)};q(c,f=>{l(r)&&Array.isArray(e.currentValue)&&e.currentValue.length?f(u):f(d,!1)})}$(t,a),ce()}const C2=({fieldConfig:t,value:e})=>{const{minlength:n,maxlength:r}=t,i=Number.isInteger(n)&&n<=(r??1/0),o=Number.isInteger(r)&&(n??0)<=r,s=e?[...e.trim()].length:0,a=i&&s<n,c=o&&s>r;return{count:s,hasMin:i,hasMax:o,tooShort:a,tooLong:c,invalid:a||c}};var QW=U('<div class="wrapper svelte-18cyzaa"><!> <span role="none"> </span> <!></div>');const eY={hash:"svelte-18cyzaa",code:".wrapper.svelte-18cyzaa {flex:none;color:var(--sui-tertiary-foreground-color) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);text-align:end;}.count.invalid.svelte-18cyzaa {color:var(--sui-error-foreground-color);}.count.svelte-18cyzaa:not(.invalid) {color:var(--sui-success-foreground-color);}"};function A2(t,e){le(e,!0),ke(t,eY);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>e.fieldConfig.minlength),s=_(()=>e.fieldConfig.maxlength),a=_(()=>C2({fieldConfig:e.fieldConfig,value:e.currentValue})),c=_(()=>l(a).count),u=_(()=>l(a).hasMin),d=_(()=>l(a).hasMax),f=_(()=>l(a).invalid);var h=X(),p=M(h);{var g=m=>{var v=QW(),b=z(v);{var y=x=>{var T=Ie();Z(()=>te(T,`${l(o)??""}
625
625
  / `)),$(x,T)};q(b,x=>{l(u)&&x(y)})}var w=j(b,2);let E;var k=z(w),S=j(w,2);{var C=x=>{var T=Ie();Z(()=>te(T,` /
626
- ${l(s)??""}`)),$(x,T)};q(S,x=>{l(d)&&x(C)})}Z((x,T)=>{Ee(v,"aria-label",x),E=Zt(w,1,"count svelte-18cyzaa",null,E,T),te(k,l(c))},[()=>n()(l(u)&&l(d)?l(c)===1?"character_counter.min_max.one":"character_counter.min_max.many":l(u)?l(c)===1?"character_counter.min.one":"character_counter.min.many":l(c)===1?"character_counter.max.one":"character_counter.max.many",{values:{count:l(c),min:l(o),max:l(s)}}),()=>({invalid:l(f)})]),$(m,v)};q(p,m=>{(l(u)||l(d))&&m(g)})}$(t,h),ce(),i()}function eY(t,e){le(e,!0);const[n,r]=me();let i=R(e,"currentValue",15),o=R(e,"required",3,!0),s=R(e,"readonly",3,!1),a=R(e,"invalid",3,!1);const{extraHint:c}=Jn("field-editor")??{};let u=ie("");const d=_(()=>tt(e.fieldConfig.type,"text")),f=_(()=>tt(e.fieldConfig.prefix,"")),h=_(()=>tt(e.fieldConfig.suffix,"")),p=()=>{let m=typeof i()=="string"?i():"";l(f)&&m.startsWith(l(f))&&(m=m.slice(l(f).length)),l(h)&&m.endsWith(l(h))&&(m=m.slice(0,-l(h).length)),l(u)!==m&&G(u,m,!0)},g=()=>{let m=l(u);m.trim()&&(l(f)||l(h))&&(m=`${l(f)}${m}${l(h)}`),i()!==m&&i(m)};De(()=>{i(),Se(()=>{p()})}),De(()=>{l(u),Se(()=>{g()})}),De(()=>{c&&Ge(c,A2)});{let m=_(()=>wr(e.locale));Cn(t,{get lang(){return l(m)},get type(){return l(d)},get inputmode(){return l(d)},flex:!0,get readonly(){return s()},get required(){return o()},get invalid(){return a()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(u)},set value(v){G(u,v,!0)}})}ce(),r()}const tY=t=>{if(!Ef(t))return!1;const{origin:e,pathname:n,searchParams:r}=new URL(t);return!!((e==="https://www.youtube.com"||e==="https://www.youtube-nocookie.com")&&(n==="/watch"&&r.has("v")||n==="/playlist"&&r.has("list")||n.startsWith("/embed/"))||e==="https://youtu.be"&&n)},nY=t=>{const e="https://www.youtube-nocookie.com",{pathname:n,search:r,searchParams:i}=new URL(t);if(n==="/watch"){const o=new URLSearchParams(i);let s=`${e}/embed/${o.get("v")}`;return o.get("list")&&(o.delete("v"),o.set("listType","playlist"),s+=`?${o}`),s}return n==="/playlist"?`${e}/embed/videoseries${r}`:n.startsWith("/embed/")?`${e}${n}${r}`:`${e}/embed${n}${r}`};var rY=U('<iframe frameborder="0" allow="autoplay; encrypted-media; picture-in-picture" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1l0g75t"></iframe>'),iY=U("<a> </a>"),oY=U('<div role="none"><!></div>');const sY={hash:"svelte-1l0g75t",code:"iframe.svelte-1l0g75t {display:block;margin:0 auto;width:100%;height:auto;aspect-ratio:16/9;}"};function aY(t,e){le(e,!0),ke(t,sY);const n=()=>V(ue,"$_",r),[r,i]=me();let o=ie(void 0),s=ie(!0);const a=_(()=>nY(e.url));Ft(()=>{window.addEventListener("securitypolicyviolation",({blockedURI:h,violatedDirective:p})=>{h===new URL(l(a)).origin&&p==="frame-src"&&G(s,!1)})});var c=oY(),u=z(c);{var d=h=>{var p=X(),g=M(p);Xt(g,()=>mc(l(o)),null,m=>{var v=rY();Z((b,y)=>{Ee(v,"src",b),Ee(v,"title",y)},[()=>encodeURI(l(a)),()=>n()("youtube_video_player")]),$(m,v)}),$(h,p)},f=h=>{var p=iY(),g=z(p);Z(m=>{Ee(p,"href",m),te(g,e.url)},[()=>encodeURI(e.url)]),$(h,p)};q(u,h=>{l(s)?h(d):h(f,!1)})}vt(c,h=>G(o,h),()=>l(o)),$(t,c),ce(),i()}var lY=U("<a> </a>"),cY=U("<a> </a>"),uY=U('<p dir="auto"><!></p>');const dY={hash:"svelte-uv5j28",code:".title.svelte-uv5j28 {font-size:var(--sui-font-size-xxx-large);font-weight:var(--sui-font-weight-bold);}"};function fY(t,e){le(e,!0),ke(t,dY);const n=_(()=>e.fieldConfig.name),r=_(()=>tt(e.fieldConfig.type,"text"));var i=X(),o=M(i);{var s=a=>{var c=uY();let u;var d=z(c);{var f=p=>{var g=X(),m=M(g);{var v=y=>{aY(y,{get url(){return e.currentValue}})},b=y=>{var w=lY(),E=z(w);Z(k=>{Ee(w,"href",k),te(E,e.currentValue)},[()=>encodeURI(e.currentValue)]),$(y,w)};q(m,y=>{tY(e.currentValue)?y(v):y(b,!1)})}$(p,g)},h=p=>{var g=X(),m=M(g);{var v=y=>{var w=cY(),E=z(w);Z(k=>{Ee(w,"href",`mailto:${k??""}`),te(E,e.currentValue)},[()=>encodeURI(e.currentValue)]),$(y,w)},b=y=>{var w=Ie();Z(()=>te(w,e.currentValue)),$(y,w)};q(m,y=>{l(r)==="email"?y(v):y(b,!1)},!0)}$(p,g)};q(d,p=>{l(r)==="url"||Ef(e.currentValue)?p(f):p(h,!1)})}Z((p,g)=>{Ee(c,"lang",p),u=Zt(c,1,"svelte-uv5j28",null,u,g),c.dir=c.dir},[()=>wr(e.locale),()=>({title:l(n)==="title"})]),$(a,c)};q(o,a=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&a(s)})}$(t,i),ce()}function hY(t,e){le(e,!0);const[n,r]=me(),{extraHint:i}=Jn("field-editor")??{};let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=ie("");const d=()=>{const h=typeof o()=="string"?o():"";l(u)!==h&&G(u,h,!0)},f=()=>{const h=l(u);o()!==h&&o(h)};De(()=>{o(),Se(()=>{d()})}),De(()=>{l(u),Se(()=>{f()})}),De(()=>{i&&Ge(i,A2)});{let h=_(()=>wr(e.locale));qd(t,{get lang(){return l(h)},flex:!0,get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,get value(){return l(u)},set value(p){G(u,p,!0)}})}ce(),r()}var pY=U('<p dir="auto" class="svelte-4kf06s"> </p>');const gY={hash:"svelte-4kf06s",code:"p.svelte-4kf06s {white-space:pre-wrap;}"};function mY(t,e){le(e,!0),ke(t,gY);var n=X(),r=M(n);{var i=o=>{var s=pY(),a=z(s);Z(c=>{Ee(s,"lang",c),te(a,e.currentValue),s.dir=s.dir},[()=>wr(e.locale)]),$(o,s)};q(r,o=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&o(i)})}$(t,n),ce()}const P2=t=>{const{prefix:e,use_b32_encoding:n}=t,r=n?em():ti();return e?`${e}${r}`:r};function vY(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!0),c=R(e,"invalid",3,!1);const u=_(()=>n()?.collection),d=_(()=>n()?.collectionFile),f=_(()=>(l(d)??l(u))?._i18n??Zi),h=_(()=>l(f).defaultLocale);Ft(()=>{o()||(e.locale===l(h)||[!0,"translate"].includes(e.fieldConfig?.i18n??!1))&&o(P2(e.fieldConfig)),"read_only"in e.fieldConfig&&$f("uuid_read_only")});{let p=_(()=>a()&&e.fieldConfig.read_only!==!1);Cn(t,{flex:!0,get readonly(){return l(p)},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return o()},set value(g){o(g)}})}ce(),i()}var bY=U('<p class="svelte-12jrvw4"> </p>');const _Y={hash:"svelte-12jrvw4",code:"p.svelte-12jrvw4 {font-family:var(--sui-font-family-monospace);}"};function yY(t,e){le(e,!0),ke(t,_Y);var n=X(),r=M(n);{var i=o=>{var s=bY(),a=z(s);Z(()=>te(a,e.currentValue)),$(o,s)};q(r,o=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&o(i)})}$(t,n),ce()}const Ky={boolean:$9,code:A9,color:D9,compute:j9,datetime:K9,file:c2,image:c2,keyvalue:cG,list:VG,map:lW,markdown:TW,number:IW,object:BW,relation:KW,select:T2,string:eY,text:hY,uuid:vY},L2={boolean:C9,code:L9,color:z9,compute:U9,datetime:W9,file:d2,image:d2,keyvalue:hG,list:nW,map:dW,markdown:NW,number:RW,object:UW,relation:WW,select:XW,string:fY,text:mY,uuid:yY},N2=({locale:t,isDefaultLocale:e,keyPath:n,getFieldArgs:r,currentValues:i,reset:o=!1})=>{const{valueMap:s={}}=r;Object.entries(s).forEach(([a,c])=>{if(!n||a.startsWith(n)){const u=fn({...r,keyPath:a});(e||[!0,"translate"].includes(u?.i18n??!1))&&(o?delete i[t][a]:i[t][a]=c)}})},wY=({draft:t,keyPath:e,locale:n})=>{const{collection:r,collectionName:i,collectionFile:o,fileName:s,currentValues:a,originalValues:c,isIndexFile:u}=t,{defaultLocale:d}=(o??r)._i18n,h={keyPath:e,locale:n,isDefaultLocale:n===d,currentValues:a},p={collectionName:i,fileName:s,keyPath:"",isIndexFile:u};N2({...h,getFieldArgs:{...p,valueMap:a[n]},reset:!0}),N2({...h,getFieldArgs:{...p,valueMap:c[n]}})},Gy=({locale:t="",keyPath:e=""}={})=>{const n=se(We),{collection:r,collectionFile:i,currentValues:o}=n,{allLocales:s}=(i??r)._i18n;(t?[t]:s).forEach(c=>{wY({draft:n,keyPath:e,locale:c})}),We.update(()=>({...n,currentValues:o}))};var xY=U('<div class="required">*</div>'),kY=U("<!> <!>",1),SY=U('<p class="comment svelte-dkfcyc"><!></p>'),EY=U("<!> <!> <!> <!> <!> <!> <!>",1),$Y=U('<div role="none"> </div>'),TY=U('<div role="none" class="before-input svelte-dkfcyc"><!></div>'),CY=U('<div role="none" class="prefix svelte-dkfcyc"> </div>'),AY=U('<div role="none" class="suffix svelte-dkfcyc"> </div>'),PY=U('<div role="none" class="after-input svelte-dkfcyc"><!></div>'),LY=U("<!> <!> <!> <!> <!>",1),NY=U('<p class="hint svelte-dkfcyc"><!></p>'),IY=U('<div role="none" class="footer svelte-dkfcyc"><!> <!></div>'),OY=U('<header role="none"><h4 role="none"> </h4> <!> <!> <!> <!></header> <!> <!> <div role="none"><!></div> <!>',1);const RY={hash:"svelte-dkfcyc",code:`.widget-wrapper.has-extra-labels.svelte-dkfcyc {display:flex;align-items:center;justify-content:flex-start;gap:4px;}.widget-wrapper.svelte-dkfcyc :is(input[type=text], textarea) {width:100%;}.widget-wrapper.svelte-dkfcyc input:is([type=color], [type=number]) {outline:0;border-width:1px;border-color:var(--sui-primary-border-color);border-radius:var(--sui-control-medium-border-radius);height:var(--sui-button-medium-height);color:inherit;background-color:var(--sui-textbox-background-color);}.widget-wrapper.svelte-dkfcyc input:is([type=file], [type=checkbox]) {color:inherit;}.widget-wrapper.svelte-dkfcyc > div {color:inherit;}.widget-wrapper.svelte-dkfcyc input:is([type=date], [type=datetime-local], [type=time]) {outline:0;margin:var(--sui-focus-ring-width);border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-primary-border-color);border-radius:var(--sui-control-medium-border-radius);padding:var(--sui-textbox-singleline-padding);width:auto;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);text-transform:uppercase;}.widget-wrapper.svelte-dkfcyc input:is([type=date], [type=datetime-local], [type=time]):disabled {opacity:0.4;}.widget-wrapper.svelte-dkfcyc input[aria-invalid=true]:is([type=color],
626
+ ${l(s)??""}`)),$(x,T)};q(S,x=>{l(d)&&x(C)})}Z((x,T)=>{Ee(v,"aria-label",x),E=Zt(w,1,"count svelte-18cyzaa",null,E,T),te(k,l(c))},[()=>n()(l(u)&&l(d)?l(c)===1?"character_counter.min_max.one":"character_counter.min_max.many":l(u)?l(c)===1?"character_counter.min.one":"character_counter.min.many":l(c)===1?"character_counter.max.one":"character_counter.max.many",{values:{count:l(c),min:l(o),max:l(s)}}),()=>({invalid:l(f)})]),$(m,v)};q(p,m=>{(l(u)||l(d))&&m(g)})}$(t,h),ce(),i()}function tY(t,e){le(e,!0);const[n,r]=me();let i=R(e,"currentValue",15),o=R(e,"required",3,!0),s=R(e,"readonly",3,!1),a=R(e,"invalid",3,!1);const{extraHint:c}=Jn("field-editor")??{};let u=ie("");const d=_(()=>tt(e.fieldConfig.type,"text")),f=_(()=>tt(e.fieldConfig.prefix,"")),h=_(()=>tt(e.fieldConfig.suffix,"")),p=()=>{let m=typeof i()=="string"?i():"";l(f)&&m.startsWith(l(f))&&(m=m.slice(l(f).length)),l(h)&&m.endsWith(l(h))&&(m=m.slice(0,-l(h).length)),l(u)!==m&&G(u,m,!0)},g=()=>{let m=l(u);m.trim()&&(l(f)||l(h))&&(m=`${l(f)}${m}${l(h)}`),i()!==m&&i(m)};De(()=>{i(),Se(()=>{p()})}),De(()=>{l(u),Se(()=>{g()})}),De(()=>{c&&Ge(c,A2)});{let m=_(()=>wr(e.locale));Cn(t,{get lang(){return l(m)},get type(){return l(d)},get inputmode(){return l(d)},flex:!0,get readonly(){return s()},get required(){return o()},get invalid(){return a()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(u)},set value(v){G(u,v,!0)}})}ce(),r()}const nY=t=>{if(!Ef(t))return!1;const{origin:e,pathname:n,searchParams:r}=new URL(t);return!!((e==="https://www.youtube.com"||e==="https://www.youtube-nocookie.com")&&(n==="/watch"&&r.has("v")||n==="/playlist"&&r.has("list")||n.startsWith("/embed/"))||e==="https://youtu.be"&&n)},rY=t=>{const e="https://www.youtube-nocookie.com",{pathname:n,search:r,searchParams:i}=new URL(t);if(n==="/watch"){const o=new URLSearchParams(i);let s=`${e}/embed/${o.get("v")}`;return o.get("list")&&(o.delete("v"),o.set("listType","playlist"),s+=`?${o}`),s}return n==="/playlist"?`${e}/embed/videoseries${r}`:n.startsWith("/embed/")?`${e}${n}${r}`:`${e}/embed${n}${r}`};var iY=U('<iframe frameborder="0" allow="autoplay; encrypted-media; picture-in-picture" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1l0g75t"></iframe>'),oY=U("<a> </a>"),sY=U('<div role="none"><!></div>');const aY={hash:"svelte-1l0g75t",code:"iframe.svelte-1l0g75t {display:block;margin:0 auto;width:100%;height:auto;aspect-ratio:16/9;}"};function lY(t,e){le(e,!0),ke(t,aY);const n=()=>V(ue,"$_",r),[r,i]=me();let o=ie(void 0),s=ie(!0);const a=_(()=>rY(e.url));Ft(()=>{window.addEventListener("securitypolicyviolation",({blockedURI:h,violatedDirective:p})=>{h===new URL(l(a)).origin&&p==="frame-src"&&G(s,!1)})});var c=sY(),u=z(c);{var d=h=>{var p=X(),g=M(p);Xt(g,()=>mc(l(o)),null,m=>{var v=iY();Z((b,y)=>{Ee(v,"src",b),Ee(v,"title",y)},[()=>encodeURI(l(a)),()=>n()("youtube_video_player")]),$(m,v)}),$(h,p)},f=h=>{var p=oY(),g=z(p);Z(m=>{Ee(p,"href",m),te(g,e.url)},[()=>encodeURI(e.url)]),$(h,p)};q(u,h=>{l(s)?h(d):h(f,!1)})}vt(c,h=>G(o,h),()=>l(o)),$(t,c),ce(),i()}var cY=U("<a> </a>"),uY=U("<a> </a>"),dY=U('<p dir="auto"><!></p>');const fY={hash:"svelte-uv5j28",code:".title.svelte-uv5j28 {font-size:var(--sui-font-size-xxx-large);font-weight:var(--sui-font-weight-bold);}"};function hY(t,e){le(e,!0),ke(t,fY);const n=_(()=>e.fieldConfig.name),r=_(()=>tt(e.fieldConfig.type,"text"));var i=X(),o=M(i);{var s=a=>{var c=dY();let u;var d=z(c);{var f=p=>{var g=X(),m=M(g);{var v=y=>{lY(y,{get url(){return e.currentValue}})},b=y=>{var w=cY(),E=z(w);Z(k=>{Ee(w,"href",k),te(E,e.currentValue)},[()=>encodeURI(e.currentValue)]),$(y,w)};q(m,y=>{nY(e.currentValue)?y(v):y(b,!1)})}$(p,g)},h=p=>{var g=X(),m=M(g);{var v=y=>{var w=uY(),E=z(w);Z(k=>{Ee(w,"href",`mailto:${k??""}`),te(E,e.currentValue)},[()=>encodeURI(e.currentValue)]),$(y,w)},b=y=>{var w=Ie();Z(()=>te(w,e.currentValue)),$(y,w)};q(m,y=>{l(r)==="email"?y(v):y(b,!1)},!0)}$(p,g)};q(d,p=>{l(r)==="url"||Ef(e.currentValue)?p(f):p(h,!1)})}Z((p,g)=>{Ee(c,"lang",p),u=Zt(c,1,"svelte-uv5j28",null,u,g),c.dir=c.dir},[()=>wr(e.locale),()=>({title:l(n)==="title"})]),$(a,c)};q(o,a=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&a(s)})}$(t,i),ce()}function pY(t,e){le(e,!0);const[n,r]=me(),{extraHint:i}=Jn("field-editor")??{};let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=ie("");const d=()=>{const h=typeof o()=="string"?o():"";l(u)!==h&&G(u,h,!0)},f=()=>{const h=l(u);o()!==h&&o(h)};De(()=>{o(),Se(()=>{d()})}),De(()=>{l(u),Se(()=>{f()})}),De(()=>{i&&Ge(i,A2)});{let h=_(()=>wr(e.locale));qd(t,{get lang(){return l(h)},flex:!0,get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,get value(){return l(u)},set value(p){G(u,p,!0)}})}ce(),r()}var gY=U('<p dir="auto" class="svelte-4kf06s"> </p>');const mY={hash:"svelte-4kf06s",code:"p.svelte-4kf06s {white-space:pre-wrap;}"};function vY(t,e){le(e,!0),ke(t,mY);var n=X(),r=M(n);{var i=o=>{var s=gY(),a=z(s);Z(c=>{Ee(s,"lang",c),te(a,e.currentValue),s.dir=s.dir},[()=>wr(e.locale)]),$(o,s)};q(r,o=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&o(i)})}$(t,n),ce()}const P2=t=>{const{prefix:e,use_b32_encoding:n}=t,r=n?em():ti();return e?`${e}${r}`:r};function bY(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!0),c=R(e,"invalid",3,!1);const u=_(()=>n()?.collection),d=_(()=>n()?.collectionFile),f=_(()=>(l(d)??l(u))?._i18n??Zi),h=_(()=>l(f).defaultLocale);Ft(()=>{o()||(e.locale===l(h)||[!0,"translate"].includes(e.fieldConfig?.i18n??!1))&&o(P2(e.fieldConfig)),"read_only"in e.fieldConfig&&$f("uuid_read_only")});{let p=_(()=>a()&&e.fieldConfig.read_only!==!1);Cn(t,{flex:!0,get readonly(){return l(p)},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return o()},set value(g){o(g)}})}ce(),i()}var _Y=U('<p class="svelte-12jrvw4"> </p>');const yY={hash:"svelte-12jrvw4",code:"p.svelte-12jrvw4 {font-family:var(--sui-font-family-monospace);}"};function wY(t,e){le(e,!0),ke(t,yY);var n=X(),r=M(n);{var i=o=>{var s=_Y(),a=z(s);Z(()=>te(a,e.currentValue)),$(o,s)};q(r,o=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&o(i)})}$(t,n),ce()}const Ky={boolean:T9,code:P9,color:M9,compute:B9,datetime:G9,file:c2,image:c2,keyvalue:uG,list:HG,map:cW,markdown:CW,number:OW,object:UW,relation:GW,select:T2,string:tY,text:pY,uuid:bY},L2={boolean:A9,code:N9,color:j9,compute:q9,datetime:Y9,file:d2,image:d2,keyvalue:pG,list:rW,map:fW,markdown:IW,number:DW,object:qW,relation:YW,select:ZW,string:hY,text:vY,uuid:wY},N2=({locale:t,isDefaultLocale:e,keyPath:n,getFieldArgs:r,currentValues:i,reset:o=!1})=>{const{valueMap:s={}}=r;Object.entries(s).forEach(([a,c])=>{if(!n||a.startsWith(n)){const u=fn({...r,keyPath:a});(e||[!0,"translate"].includes(u?.i18n??!1))&&(o?delete i[t][a]:i[t][a]=c)}})},xY=({draft:t,keyPath:e,locale:n})=>{const{collection:r,collectionName:i,collectionFile:o,fileName:s,currentValues:a,originalValues:c,isIndexFile:u}=t,{defaultLocale:d}=(o??r)._i18n,h={keyPath:e,locale:n,isDefaultLocale:n===d,currentValues:a},p={collectionName:i,fileName:s,keyPath:"",isIndexFile:u};N2({...h,getFieldArgs:{...p,valueMap:a[n]},reset:!0}),N2({...h,getFieldArgs:{...p,valueMap:c[n]}})},Gy=({locale:t="",keyPath:e=""}={})=>{const n=se(We),{collection:r,collectionFile:i,currentValues:o}=n,{allLocales:s}=(i??r)._i18n;(t?[t]:s).forEach(c=>{xY({draft:n,keyPath:e,locale:c})}),We.update(()=>({...n,currentValues:o}))};var kY=U('<div class="required">*</div>'),SY=U("<!> <!>",1),EY=U('<p class="comment svelte-dkfcyc"><!></p>'),$Y=U("<!> <!> <!> <!> <!> <!> <!>",1),TY=U('<div role="none"> </div>'),CY=U('<div role="none" class="before-input svelte-dkfcyc"><!></div>'),AY=U('<div role="none" class="prefix svelte-dkfcyc"> </div>'),PY=U('<div role="none" class="suffix svelte-dkfcyc"> </div>'),LY=U('<div role="none" class="after-input svelte-dkfcyc"><!></div>'),NY=U("<!> <!> <!> <!> <!>",1),IY=U('<p class="hint svelte-dkfcyc"><!></p>'),OY=U('<div role="none" class="footer svelte-dkfcyc"><!> <!></div>'),RY=U('<header role="none"><h4 role="none"> </h4> <!> <!> <!> <!></header> <!> <!> <div role="none"><!></div> <!>',1);const DY={hash:"svelte-dkfcyc",code:`.widget-wrapper.has-extra-labels.svelte-dkfcyc {display:flex;align-items:center;justify-content:flex-start;gap:4px;}.widget-wrapper.svelte-dkfcyc :is(input[type=text], textarea) {width:100%;}.widget-wrapper.svelte-dkfcyc input:is([type=color], [type=number]) {outline:0;border-width:1px;border-color:var(--sui-primary-border-color);border-radius:var(--sui-control-medium-border-radius);height:var(--sui-button-medium-height);color:inherit;background-color:var(--sui-textbox-background-color);}.widget-wrapper.svelte-dkfcyc input:is([type=file], [type=checkbox]) {color:inherit;}.widget-wrapper.svelte-dkfcyc > div {color:inherit;}.widget-wrapper.svelte-dkfcyc input:is([type=date], [type=datetime-local], [type=time]) {outline:0;margin:var(--sui-focus-ring-width);border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-primary-border-color);border-radius:var(--sui-control-medium-border-radius);padding:var(--sui-textbox-singleline-padding);width:auto;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);text-transform:uppercase;}.widget-wrapper.svelte-dkfcyc input:is([type=date], [type=datetime-local], [type=time]):disabled {opacity:0.4;}.widget-wrapper.svelte-dkfcyc input[aria-invalid=true]:is([type=color],
627
627
  [type=date],
628
628
  [type=datetime-local],
629
629
  [type=time]) {border-color:var(--sui-error-border-color);}.widget-wrapper.svelte-dkfcyc input:read-only {-webkit-user-select:text;user-select:text;pointer-events:auto;}.before-input.svelte-dkfcyc,
630
630
  .after-input.svelte-dkfcyc,
631
631
  .prefix.svelte-dkfcyc,
632
- .suffix.svelte-dkfcyc {color:var(--sui-secondary-foreground-color);white-space:nowrap;}.comment.svelte-dkfcyc {margin-block:4px;line-height:var(--sui-line-height-compact);}.footer.svelte-dkfcyc {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}.hint.svelte-dkfcyc {flex:auto;margin:0;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);opacity:0.75;}`};function ig(t,e){const n=Rn();le(e,!0),ke(t,RY);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(h,"$extraHint",s),[s,a]=me(),c=Jn("field-editor")??{};let u=R(e,"context",19,()=>c.widgetContext??void 0),d=R(e,"valueStoreKey",19,()=>c.valueStoreKey??"currentValues");const f=Ae=>Nr.sanitize(Ik(Ae.replaceAll("\\n","<br>")),{ALLOWED_TAGS:["strong","em","del","code","a","br"],ALLOWED_ATTR:["href"]}),h=nt();$g("field-editor",{widgetContext:u(),extraHint:h,valueStoreKey:d()});const p=_(()=>u()==="markdown-editor-component"),g=_(()=>e.fieldConfig.name),m=_(()=>tt(e.fieldConfig.label,"")),v=_(()=>tt(e.fieldConfig.comment,"")),b=_(()=>tt(e.fieldConfig.hint,"")),y=_(()=>tt(e.fieldConfig.widget,"string")),w=_(()=>tt(e.fieldConfig.i18n,!1)),E=_(()=>tt(e.fieldConfig.pattern,()=>[],!0)),k=_(()=>tt(e.fieldConfig.readonly,!1)),S=_(()=>uc({fieldConfig:e.fieldConfig,locale:e.locale})),C=_(()=>l(y)==="list"?Yu(e.fieldConfig):{hasSubFields:!1}),x=_(()=>l(C).hasSubFields),T=_(()=>cc(e.fieldConfig)),A=_(()=>lk.includes(l(y))?e.fieldConfig:{}),P=_(()=>tt(l(A).min,0)),L=_(()=>tt(l(A).max,1/0)),I=_(()=>l(y)==="string"?e.fieldConfig.type??"text":l(y)==="number"?"number":void 0),N=_(()=>["string"].includes(l(y))),D=_(()=>l(N)?e.fieldConfig.prefix:void 0),B=_(()=>l(N)?e.fieldConfig.suffix:void 0),H=_(()=>["boolean","number","string"].includes(l(y))),W=_(()=>l(H)?e.fieldConfig.before_input:void 0),Y=_(()=>l(H)?e.fieldConfig.after_input:void 0),O=_(()=>!!(l(D)||l(B)||l(W)||l(Y))),F=_(()=>l(y)==="list"&&l(x)||l(T)||l(y)==="keyvalue"),K=_(()=>l(y)==="list"||l(T)),J=_(()=>r()?.collection),Q=_(()=>r()?.collectionFile),oe=_(()=>r()?.originalValues),re=_(()=>(l(Q)??l(J))?._i18n??Zi),ee=_(()=>l(re).i18nEnabled),ne=_(()=>l(re).allLocales),ae=_(()=>l(re).defaultLocale),fe=_(()=>l(ee)?l(ne).filter(Ae=>Ae!==e.locale):[]),be=_(()=>l(ee)&&(l(w)===!0||l(w)==="translate")),pe=_(()=>l(ee)&&l(w)==="duplicate"),he=_(()=>l(p)||e.locale===l(ae)||l(be)||l(pe)),ge=_(()=>!l(p)&&l(be)&&l(fe).length),ve=_(()=>!l(p)&&!(l(pe)&&e.locale!==l(ae))),_e=_(()=>new RegExp(`^${qt(e.keyPath)}\\.\\d+$`)),$e=_(()=>{const Ae=On(r()?.[d()][e.locale]??{}),we=Ae[e.keyPath];if(!l(K))return we;const Pe=Object.entries(Ae).filter(([ye])=>l(_e).test(ye));return Pe.length?Pe.map(([,ye])=>ye).filter(ye=>ye!==void 0):l(T)&&we!==void 0&&typeof we!="object"?[we]:[]}),Ce=_(()=>l(K)?Object.entries(l(oe)?.[e.locale]??{}).filter(([Ae])=>l(_e).test(Ae)).map(([,Ae])=>Ae).filter(Ae=>Ae!==void 0):l(oe)?.[e.locale]?.[e.keyPath]),Re=_(()=>r()?.validities[e.locale][e.keyPath]),He=_(()=>l(m)||l(g)),Ye=_(()=>l(k)||l(w)==="duplicate"&&e.locale!==l(ae)||l(y)==="compute"||l(y)==="uuid"),Ue=_(()=>l(Re)?.valid===!1);De(()=>{if(r()&&l(T)&&Array.isArray(l($e))){const Ae=r()[d()][e.locale]?.[`${e.keyPath}.0`],[we]=l($e);Ae===void 0&&we!==void 0&&(_t(We,Se(r)[d()][e.locale][`${e.keyPath}.0`]=we,Se(r)),delete r()[d()][e.locale][e.keyPath])}}),De(()=>{if(r()&&!l(T)&&l($e)===void 0){const Ae=r()[d()][e.locale]?.[`${e.keyPath}.0`];Ae!==void 0&&(_t(We,Se(r)[d()][e.locale][e.keyPath]=Ae,Se(r)),Object.keys(r()[d()][e.locale]).forEach(we=>{l(_e).test(we)&&delete r()[d()][e.locale][we]}))}});var Te=X(),ze=M(Te);{var Oe=Ae=>{{let we=_(()=>i()("x_field",{values:{field:l(He)}})),Pe=_(()=>l(y)==="compute");BA(Ae,{get"aria-label"(){return l(we)},get"data-widget"(){return l(y)},get"data-key-path"(){return e.keyPath},get hidden(){return l(Pe)},children:(ye,ot)=>{var Qe=OY(),Ne=M(Qe),je=z(Ne),Xe=z(je),st=j(je,2);{var lt=ht=>{var sn=xY();Z(Ln=>Ee(sn,"aria-label",Ln),[()=>i()("required")]),$(ht,sn)};q(st,ht=>{!l(Ye)&&l(S)&&ht(lt)})}var xt=j(st,2);Wr(xt,{flex:!0});var Yt=j(xt,2);{var wn=ht=>{UA(ht,{size:"small",get locale(){return e.locale},get otherLocales(){return l(fe)},get keyPath(){return e.keyPath}})};q(Yt,ht=>{l(ge)&&["markdown","string","text","list","object"].includes(l(y))&&ht(wn)})}var rn=j(Yt,2);{var on=ht=>{{const sn=$n=>{{let Dr=_(()=>i()("field_options"));ir($n,{get"aria-label"(){return l(Dr)},children:(Wn,At)=>{var Yn=kY(),Bt=M(Yn);{var ji=vn=>{By(vn,{get locale(){return e.locale},get otherLocales(){return l(fe)},get keyPath(){return e.keyPath}})};q(Bt,vn=>{l(ge)&&vn(ji)})}var Ut=j(Bt,2);{var Ei=vn=>{{let Qr=_(()=>i()("revert_changes")),Mr=_(()=>an(l($e),l(Ce))||/\.\d+\./.test(e.keyPath));mt(vn,{get label(){return l(Qr)},get disabled(){return l(Mr)},onclick:()=>{Gy({locale:e.locale,keyPath:e.keyPath})}})}};q(Ut,vn=>{l(ve)&&vn(Ei)})}$(Wn,Yn)},$$slots:{default:!0}})}};let Ln=_(()=>i()("show_field_options"));Ir(ht,{variant:"ghost",size:"small",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(Ln)},popup:sn,$$slots:{popup:!0}})}};q(rn,ht=>{(l(ge)||l(ve))&&ht(on)})}var pt=j(Ne,2);{var Mt=ht=>{var sn=SY(),Ln=z(sn);cr(Ln,()=>f(l(v))),$(ht,sn)};q(pt,ht=>{!l(Ye)&&l(v)&&ht(Mt)})}var cn=j(pt,2);{var En=ht=>{Uy(ht,{get id(){return`${n}-error`},children:(sn,Ln)=>{var $n=EY(),Dr=M($n);{var Wn=ut=>{var bt=Ie();Z(Nn=>te(bt,Nn),[()=>i()("validation.value_missing")]),$(ut,bt)};q(Dr,ut=>{l(Re).valueMissing&&ut(Wn)})}var At=j(Dr,2);{var Yn=ut=>{const bt=_(()=>{const{minlength:In}=e.fieldConfig;return{minlength:In}});var Nn=Ie();Z(In=>te(Nn,In),[()=>i()(l(bt).minlength===1?"validation.too_short.one":"validation.too_short.many",{values:{min:l(bt).minlength}})]),$(ut,Nn)};q(At,ut=>{l(Re).tooShort&&ut(Yn)})}var Bt=j(At,2);{var ji=ut=>{const bt=_(()=>{const{maxlength:In}=e.fieldConfig;return{maxlength:In}});var Nn=Ie();Z(In=>te(Nn,In),[()=>i()(l(bt).maxlength===1?"validation.too_long.one":"validation.too_long.many",{values:{max:l(bt).maxlength}})]),$(ut,Nn)};q(Bt,ut=>{l(Re).tooLong&&ut(ji)})}var Ut=j(Bt,2);{var Ei=ut=>{const bt=_(()=>l(P)===1?"one":"many");var Nn=X(),In=M(Nn);{var pr=zn=>{var gr=Ie();Z(zo=>te(gr,zo),[()=>i()("validation.range_underflow.number",{values:{min:l(P)}})]),$(zn,gr)},fi=zn=>{var gr=X(),zo=M(gr);{var rf=ar=>{var mr=Ie();Z(hi=>te(mr,hi),[()=>i()(`validation.range_underflow.add_${l(bt)}`,{values:{min:l(P)}})]),$(ar,mr)},yl=ar=>{var mr=Ie();Z(hi=>te(mr,hi),[()=>i()(`validation.range_underflow.select_${l(bt)}`,{values:{min:l(P)}})]),$(ar,mr)};q(zo,ar=>{l(F)?ar(rf):ar(yl,!1)},!0)}$(zn,gr)};q(In,zn=>{l(y)==="number"?zn(pr):zn(fi,!1)})}$(ut,Nn)};q(Ut,ut=>{l(Re).rangeUnderflow&&ut(Ei)})}var vn=j(Ut,2);{var Qr=ut=>{const bt=_(()=>l(L)===1?"one":"many");var Nn=X(),In=M(Nn);{var pr=zn=>{var gr=Ie();Z(zo=>te(gr,zo),[()=>i()("validation.range_overflow.number",{values:{max:l(L)}})]),$(zn,gr)},fi=zn=>{var gr=X(),zo=M(gr);{var rf=ar=>{var mr=Ie();Z(hi=>te(mr,hi),[()=>i()(`validation.range_overflow.add_${l(bt)}`,{values:{max:l(L)}})]),$(ar,mr)},yl=ar=>{var mr=Ie();Z(hi=>te(mr,hi),[()=>i()(`validation.range_overflow.select_${l(bt)}`,{values:{max:l(L)}})]),$(ar,mr)};q(zo,ar=>{l(F)?ar(rf):ar(yl,!1)},!0)}$(zn,gr)};q(In,zn=>{l(y)==="number"?zn(pr):zn(fi,!1)})}$(ut,Nn)};q(vn,ut=>{l(Re).rangeOverflow&&ut(Qr)})}var Mr=j(vn,2);{var Fo=ut=>{var bt=Ie();Z(()=>te(bt,l(E)[1])),$(ut,bt)};q(Mr,ut=>{l(Re).patternMismatch&&ut(Fo)})}var di=j(Mr,2);{var Jt=ut=>{var bt=Ie();Z(Nn=>te(bt,Nn),[()=>i()(`validation.type_mismatch.${l(I)}`)]),$(ut,bt)};q(di,ut=>{l(Re).typeMismatch&&ut(Jt)})}$(sn,$n)}})};q(cn,ht=>{l(Re)?.valid===!1&&ht(En)})}var mn=j(cn,2);let Kt;var It=z(mn);{var kt=ht=>{var sn=$Y(),Ln=z(sn);Z($n=>te(Ln,$n),[()=>i()("unsupported_widget_x",{values:{name:l(y)}})]),$(ht,sn)},hn=ht=>{var sn=X(),Ln=M(sn);{var $n=Wn=>{const At=_(()=>Ky[l(y)]);var Yn=X(),Bt=M(Yn);Bn(Bt,()=>l(At),(ji,Ut)=>{Ut(ji,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return n},get fieldLabel(){return l(He)},get fieldConfig(){return e.fieldConfig},get currentValue(){return l($e)},get readonly(){return l(Ye)},get required(){return l(S)},get invalid(){return l(Ue)}})}),$(Wn,Yn)},Dr=Wn=>{const At=_(()=>Ky[l(y)]);var Yn=LY(),Bt=M(Yn);{var ji=Jt=>{var ut=TY(),bt=z(ut);cr(bt,()=>f(l(W))),$(Jt,ut)};q(Bt,Jt=>{l(W)&&Jt(ji)})}var Ut=j(Bt,2);{var Ei=Jt=>{var ut=CY(),bt=z(ut);Z(()=>te(bt,l(D))),$(Jt,ut)};q(Ut,Jt=>{l(D)&&Jt(Ei)})}var vn=j(Ut,2);Bn(vn,()=>l(At),(Jt,ut)=>{ut(Jt,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return n},get fieldLabel(){return l(He)},get fieldConfig(){return e.fieldConfig},get readonly(){return l(Ye)},get required(){return l(S)},get invalid(){return l(Ue)},get currentValue(){return r()[d()][e.locale][e.keyPath]},set currentValue(bt){_t(We,Se(r)[d()][e.locale][e.keyPath]=bt,Se(r))}})});var Qr=j(vn,2);{var Mr=Jt=>{var ut=AY(),bt=z(ut);Z(()=>te(bt,l(B))),$(Jt,ut)};q(Qr,Jt=>{l(B)&&Jt(Mr)})}var Fo=j(Qr,2);{var di=Jt=>{var ut=PY(),bt=z(ut);cr(bt,()=>f(l(Y))),$(Jt,ut)};q(Fo,Jt=>{l(Y)&&Jt(di)})}$(Wn,Yn)};q(Ln,Wn=>{l(K)?Wn($n):Wn(Dr,!1)},!0)}$(ht,sn)};q(It,ht=>{l(y)in Ky?ht(hn,!1):ht(kt)})}var Cr=j(mn,2);{var ui=ht=>{const sn=_(o);var Ln=IY(),$n=z(Ln);{var Dr=At=>{var Yn=NY(),Bt=z(Yn);cr(Bt,()=>f(l(b))),$(At,Yn)};q($n,At=>{l(b)&&At(Dr)})}var Wn=j($n,2);Bn(Wn,()=>l(sn),(At,Yn)=>{Yn(At,{get fieldConfig(){return e.fieldConfig},get currentValue(){return l($e)}})}),$(ht,Ln)};q(Cr,ht=>{!l(Ye)&&(l(b)||o())&&ht(ui)})}Z(ht=>{Ee(je,"id",`${n}-label`),te(Xe,l(He)),Kt=Zt(mn,1,"widget-wrapper svelte-dkfcyc",null,Kt,ht)},[()=>({"has-extra-labels":l(O)})]),$(ye,Qe)},$$slots:{default:!0}})}};q(ze,Ae=>{r()&&l(he)&&l(y)!=="hidden"&&Ae(Oe)})}$(t,Te),ce(),a()}var DY=U('<div class="required">*</div>'),MY=U('<header role="none"><h4 role="none"> </h4> <!></header> <!> <div role="none" class="widget-wrapper"><!></div>',1);function FY(t,e){const n=Rn();le(e,!0);const r=()=>V(We,"$entryDraft",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=_(()=>r()?.collection),c=_(()=>r()?.collectionFile),u=_(()=>(l(c)??l(a))?._i18n??Zi),d=_(()=>l(u).defaultLocale),f=_(()=>r()?.slugEditor[e.locale]),h=_(()=>l(f)===!0),p=_(()=>l(f)==="readonly"),g=_(()=>r()?.validities[e.locale]._slug),m=_(()=>!l(p)&&l(g)?.valid===!1);let v=ie("");De(()=>{l(v),Se(()=>{r()&&Object.entries(r().slugEditor).forEach(([E,k])=>{(e.locale===E||e.locale===l(d)&&k==="readonly")&&_t(We,Se(r).currentSlugs[E]=l(v),Se(r))})})}),De(()=>{l(p)&&G(v,r()?.currentSlugs[e.locale]??"",!0)});var b=X(),y=M(b);{var w=E=>{BA(E,{children:(k,S)=>{var C=MY(),x=M(C),T=z(x),A=z(T),P=j(T,2);{var L=H=>{var W=DY();Z(Y=>Ee(W,"aria-label",Y),[()=>i()("required")]),$(H,W)};q(P,H=>{l(h)&&H(L)})}var I=j(x,2);{var N=H=>{Uy(H,{get id(){return`${n}-error`},children:(W,Y)=>{var O=X(),F=M(O);{var K=J=>{var Q=Ie();Z(oe=>te(Q,oe),[()=>i()("validation.value_missing")]),$(J,Q)};q(F,J=>{l(g)?.valueMissing&&J(K)})}$(W,O)}})};q(I,H=>{l(m)&&H(N)})}var D=j(I,2),B=z(D);Cn(B,{flex:!0,get readonly(){return l(p)},get required(){return l(h)},get invalid(){return l(m)},get"aria-labelledby"(){return`${n}-label`},get"aria-errormessage"(){return`${n}-error`},get value(){return l(v)},set value(H){G(v,H,!0)}}),Z(H=>{Ee(T,"id",`${n}-label`),te(A,H)},[()=>i()("slug")]),$(k,C)},$$slots:{default:!0}})};q(y,E=>{r()&&E(w)})}$(t,b),ce(),s()}var zY=U("<!> <!>",1);function jY(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>n()?.fields??[]);ao(t,{children:(s,a)=>{var c=zY(),u=M(c);{var d=h=>{FY(h,{get locale(){return e.locale}})};q(u,h=>{n()?.slugEditor[e.locale]&&h(d)})}var f=j(u,2);it(f,17,()=>l(o),h=>h.name,(h,p)=>{ao(h,{children:(g,m)=>{ig(g,{get keyPath(){return l(p).name},get locale(){return e.locale},get fieldConfig(){return l(p)}})},$$slots:{default:!0}})}),$(s,c)},$$slots:{default:!0}}),ce(),i()}function BY(t,e){let n=R(e,"children",3,void 0);var r=X(),i=M(r);Me(i,()=>n()??Be),$(t,r)}var UY=U('<iframe class="preview svelte-1k58u5t"></iframe>');const qY={hash:"svelte-1k58u5t",code:"iframe.svelte-1k58u5t {display:block;border:none;width:100%;height:100%;}"};function VY(t,e){le(e,!0),ke(t,qY);const n=()=>V(ue,"$_",r),[r,i]=me();let o=ie(void 0);const s=()=>`
632
+ .suffix.svelte-dkfcyc {color:var(--sui-secondary-foreground-color);white-space:nowrap;}.comment.svelte-dkfcyc {margin-block:4px;line-height:var(--sui-line-height-compact);}.footer.svelte-dkfcyc {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}.hint.svelte-dkfcyc {flex:auto;margin:0;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);opacity:0.75;}`};function ig(t,e){const n=Rn();le(e,!0),ke(t,DY);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(h,"$extraHint",s),[s,a]=me(),c=Jn("field-editor")??{};let u=R(e,"context",19,()=>c.widgetContext??void 0),d=R(e,"valueStoreKey",19,()=>c.valueStoreKey??"currentValues");const f=Ae=>Nr.sanitize(Ik(Ae.replaceAll("\\n","<br>")),{ALLOWED_TAGS:["strong","em","del","code","a","br"],ALLOWED_ATTR:["href"]}),h=nt();$g("field-editor",{widgetContext:u(),extraHint:h,valueStoreKey:d()});const p=_(()=>u()==="markdown-editor-component"),g=_(()=>e.fieldConfig.name),m=_(()=>tt(e.fieldConfig.label,"")),v=_(()=>tt(e.fieldConfig.comment,"")),b=_(()=>tt(e.fieldConfig.hint,"")),y=_(()=>tt(e.fieldConfig.widget,"string")),w=_(()=>tt(e.fieldConfig.i18n,!1)),E=_(()=>tt(e.fieldConfig.pattern,()=>[],!0)),k=_(()=>tt(e.fieldConfig.readonly,!1)),S=_(()=>uc({fieldConfig:e.fieldConfig,locale:e.locale})),C=_(()=>l(y)==="list"?Yu(e.fieldConfig):{hasSubFields:!1}),x=_(()=>l(C).hasSubFields),T=_(()=>cc(e.fieldConfig)),A=_(()=>lk.includes(l(y))?e.fieldConfig:{}),P=_(()=>tt(l(A).min,0)),L=_(()=>tt(l(A).max,1/0)),I=_(()=>l(y)==="string"?e.fieldConfig.type??"text":l(y)==="number"?"number":void 0),N=_(()=>["string"].includes(l(y))),D=_(()=>l(N)?e.fieldConfig.prefix:void 0),B=_(()=>l(N)?e.fieldConfig.suffix:void 0),H=_(()=>["boolean","number","string"].includes(l(y))),W=_(()=>l(H)?e.fieldConfig.before_input:void 0),Y=_(()=>l(H)?e.fieldConfig.after_input:void 0),O=_(()=>!!(l(D)||l(B)||l(W)||l(Y))),F=_(()=>l(y)==="list"&&l(x)||l(T)||l(y)==="keyvalue"),K=_(()=>l(y)==="list"||l(T)),J=_(()=>r()?.collection),Q=_(()=>r()?.collectionFile),oe=_(()=>r()?.originalValues),re=_(()=>(l(Q)??l(J))?._i18n??Zi),ee=_(()=>l(re).i18nEnabled),ne=_(()=>l(re).allLocales),ae=_(()=>l(re).defaultLocale),fe=_(()=>l(ee)?l(ne).filter(Ae=>Ae!==e.locale):[]),be=_(()=>l(ee)&&(l(w)===!0||l(w)==="translate")),pe=_(()=>l(ee)&&l(w)==="duplicate"),he=_(()=>l(p)||e.locale===l(ae)||l(be)||l(pe)),ge=_(()=>!l(p)&&l(be)&&l(fe).length),ve=_(()=>!l(p)&&!(l(pe)&&e.locale!==l(ae))),_e=_(()=>new RegExp(`^${qt(e.keyPath)}\\.\\d+$`)),$e=_(()=>{const Ae=On(r()?.[d()][e.locale]??{}),we=Ae[e.keyPath];if(!l(K))return we;const Pe=Object.entries(Ae).filter(([ye])=>l(_e).test(ye));return Pe.length?Pe.map(([,ye])=>ye).filter(ye=>ye!==void 0):l(T)&&we!==void 0&&typeof we!="object"?[we]:[]}),Ce=_(()=>l(K)?Object.entries(l(oe)?.[e.locale]??{}).filter(([Ae])=>l(_e).test(Ae)).map(([,Ae])=>Ae).filter(Ae=>Ae!==void 0):l(oe)?.[e.locale]?.[e.keyPath]),Re=_(()=>r()?.validities[e.locale][e.keyPath]),He=_(()=>l(m)||l(g)),Ye=_(()=>l(k)||l(w)==="duplicate"&&e.locale!==l(ae)||l(y)==="compute"||l(y)==="uuid"),Ue=_(()=>l(Re)?.valid===!1);De(()=>{if(r()&&l(T)&&Array.isArray(l($e))){const Ae=r()[d()][e.locale]?.[`${e.keyPath}.0`],[we]=l($e);Ae===void 0&&we!==void 0&&(_t(We,Se(r)[d()][e.locale][`${e.keyPath}.0`]=we,Se(r)),delete r()[d()][e.locale][e.keyPath])}}),De(()=>{if(r()&&!l(T)&&l($e)===void 0){const Ae=r()[d()][e.locale]?.[`${e.keyPath}.0`];Ae!==void 0&&(_t(We,Se(r)[d()][e.locale][e.keyPath]=Ae,Se(r)),Object.keys(r()[d()][e.locale]).forEach(we=>{l(_e).test(we)&&delete r()[d()][e.locale][we]}))}});var Te=X(),ze=M(Te);{var Oe=Ae=>{{let we=_(()=>i()("x_field",{values:{field:l(He)}})),Pe=_(()=>l(y)==="compute");BA(Ae,{get"aria-label"(){return l(we)},get"data-widget"(){return l(y)},get"data-key-path"(){return e.keyPath},get hidden(){return l(Pe)},children:(ye,ot)=>{var Qe=RY(),Ne=M(Qe),je=z(Ne),Xe=z(je),st=j(je,2);{var lt=ht=>{var sn=kY();Z(Ln=>Ee(sn,"aria-label",Ln),[()=>i()("required")]),$(ht,sn)};q(st,ht=>{!l(Ye)&&l(S)&&ht(lt)})}var xt=j(st,2);Wr(xt,{flex:!0});var Yt=j(xt,2);{var wn=ht=>{UA(ht,{size:"small",get locale(){return e.locale},get otherLocales(){return l(fe)},get keyPath(){return e.keyPath}})};q(Yt,ht=>{l(ge)&&["markdown","string","text","list","object"].includes(l(y))&&ht(wn)})}var rn=j(Yt,2);{var on=ht=>{{const sn=$n=>{{let Dr=_(()=>i()("field_options"));ir($n,{get"aria-label"(){return l(Dr)},children:(Wn,At)=>{var Yn=SY(),Bt=M(Yn);{var ji=vn=>{By(vn,{get locale(){return e.locale},get otherLocales(){return l(fe)},get keyPath(){return e.keyPath}})};q(Bt,vn=>{l(ge)&&vn(ji)})}var Ut=j(Bt,2);{var Ei=vn=>{{let Qr=_(()=>i()("revert_changes")),Mr=_(()=>an(l($e),l(Ce))||/\.\d+\./.test(e.keyPath));mt(vn,{get label(){return l(Qr)},get disabled(){return l(Mr)},onclick:()=>{Gy({locale:e.locale,keyPath:e.keyPath})}})}};q(Ut,vn=>{l(ve)&&vn(Ei)})}$(Wn,Yn)},$$slots:{default:!0}})}};let Ln=_(()=>i()("show_field_options"));Ir(ht,{variant:"ghost",size:"small",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(Ln)},popup:sn,$$slots:{popup:!0}})}};q(rn,ht=>{(l(ge)||l(ve))&&ht(on)})}var pt=j(Ne,2);{var Mt=ht=>{var sn=EY(),Ln=z(sn);cr(Ln,()=>f(l(v))),$(ht,sn)};q(pt,ht=>{!l(Ye)&&l(v)&&ht(Mt)})}var cn=j(pt,2);{var En=ht=>{Uy(ht,{get id(){return`${n}-error`},children:(sn,Ln)=>{var $n=$Y(),Dr=M($n);{var Wn=ut=>{var bt=Ie();Z(Nn=>te(bt,Nn),[()=>i()("validation.value_missing")]),$(ut,bt)};q(Dr,ut=>{l(Re).valueMissing&&ut(Wn)})}var At=j(Dr,2);{var Yn=ut=>{const bt=_(()=>{const{minlength:In}=e.fieldConfig;return{minlength:In}});var Nn=Ie();Z(In=>te(Nn,In),[()=>i()(l(bt).minlength===1?"validation.too_short.one":"validation.too_short.many",{values:{min:l(bt).minlength}})]),$(ut,Nn)};q(At,ut=>{l(Re).tooShort&&ut(Yn)})}var Bt=j(At,2);{var ji=ut=>{const bt=_(()=>{const{maxlength:In}=e.fieldConfig;return{maxlength:In}});var Nn=Ie();Z(In=>te(Nn,In),[()=>i()(l(bt).maxlength===1?"validation.too_long.one":"validation.too_long.many",{values:{max:l(bt).maxlength}})]),$(ut,Nn)};q(Bt,ut=>{l(Re).tooLong&&ut(ji)})}var Ut=j(Bt,2);{var Ei=ut=>{const bt=_(()=>l(P)===1?"one":"many");var Nn=X(),In=M(Nn);{var pr=zn=>{var gr=Ie();Z(zo=>te(gr,zo),[()=>i()("validation.range_underflow.number",{values:{min:l(P)}})]),$(zn,gr)},fi=zn=>{var gr=X(),zo=M(gr);{var rf=ar=>{var mr=Ie();Z(hi=>te(mr,hi),[()=>i()(`validation.range_underflow.add_${l(bt)}`,{values:{min:l(P)}})]),$(ar,mr)},yl=ar=>{var mr=Ie();Z(hi=>te(mr,hi),[()=>i()(`validation.range_underflow.select_${l(bt)}`,{values:{min:l(P)}})]),$(ar,mr)};q(zo,ar=>{l(F)?ar(rf):ar(yl,!1)},!0)}$(zn,gr)};q(In,zn=>{l(y)==="number"?zn(pr):zn(fi,!1)})}$(ut,Nn)};q(Ut,ut=>{l(Re).rangeUnderflow&&ut(Ei)})}var vn=j(Ut,2);{var Qr=ut=>{const bt=_(()=>l(L)===1?"one":"many");var Nn=X(),In=M(Nn);{var pr=zn=>{var gr=Ie();Z(zo=>te(gr,zo),[()=>i()("validation.range_overflow.number",{values:{max:l(L)}})]),$(zn,gr)},fi=zn=>{var gr=X(),zo=M(gr);{var rf=ar=>{var mr=Ie();Z(hi=>te(mr,hi),[()=>i()(`validation.range_overflow.add_${l(bt)}`,{values:{max:l(L)}})]),$(ar,mr)},yl=ar=>{var mr=Ie();Z(hi=>te(mr,hi),[()=>i()(`validation.range_overflow.select_${l(bt)}`,{values:{max:l(L)}})]),$(ar,mr)};q(zo,ar=>{l(F)?ar(rf):ar(yl,!1)},!0)}$(zn,gr)};q(In,zn=>{l(y)==="number"?zn(pr):zn(fi,!1)})}$(ut,Nn)};q(vn,ut=>{l(Re).rangeOverflow&&ut(Qr)})}var Mr=j(vn,2);{var Fo=ut=>{var bt=Ie();Z(()=>te(bt,l(E)[1])),$(ut,bt)};q(Mr,ut=>{l(Re).patternMismatch&&ut(Fo)})}var di=j(Mr,2);{var Jt=ut=>{var bt=Ie();Z(Nn=>te(bt,Nn),[()=>i()(`validation.type_mismatch.${l(I)}`)]),$(ut,bt)};q(di,ut=>{l(Re).typeMismatch&&ut(Jt)})}$(sn,$n)}})};q(cn,ht=>{l(Re)?.valid===!1&&ht(En)})}var mn=j(cn,2);let Kt;var It=z(mn);{var kt=ht=>{var sn=TY(),Ln=z(sn);Z($n=>te(Ln,$n),[()=>i()("unsupported_widget_x",{values:{name:l(y)}})]),$(ht,sn)},hn=ht=>{var sn=X(),Ln=M(sn);{var $n=Wn=>{const At=_(()=>Ky[l(y)]);var Yn=X(),Bt=M(Yn);Bn(Bt,()=>l(At),(ji,Ut)=>{Ut(ji,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return n},get fieldLabel(){return l(He)},get fieldConfig(){return e.fieldConfig},get currentValue(){return l($e)},get readonly(){return l(Ye)},get required(){return l(S)},get invalid(){return l(Ue)}})}),$(Wn,Yn)},Dr=Wn=>{const At=_(()=>Ky[l(y)]);var Yn=NY(),Bt=M(Yn);{var ji=Jt=>{var ut=CY(),bt=z(ut);cr(bt,()=>f(l(W))),$(Jt,ut)};q(Bt,Jt=>{l(W)&&Jt(ji)})}var Ut=j(Bt,2);{var Ei=Jt=>{var ut=AY(),bt=z(ut);Z(()=>te(bt,l(D))),$(Jt,ut)};q(Ut,Jt=>{l(D)&&Jt(Ei)})}var vn=j(Ut,2);Bn(vn,()=>l(At),(Jt,ut)=>{ut(Jt,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return n},get fieldLabel(){return l(He)},get fieldConfig(){return e.fieldConfig},get readonly(){return l(Ye)},get required(){return l(S)},get invalid(){return l(Ue)},get currentValue(){return r()[d()][e.locale][e.keyPath]},set currentValue(bt){_t(We,Se(r)[d()][e.locale][e.keyPath]=bt,Se(r))}})});var Qr=j(vn,2);{var Mr=Jt=>{var ut=PY(),bt=z(ut);Z(()=>te(bt,l(B))),$(Jt,ut)};q(Qr,Jt=>{l(B)&&Jt(Mr)})}var Fo=j(Qr,2);{var di=Jt=>{var ut=LY(),bt=z(ut);cr(bt,()=>f(l(Y))),$(Jt,ut)};q(Fo,Jt=>{l(Y)&&Jt(di)})}$(Wn,Yn)};q(Ln,Wn=>{l(K)?Wn($n):Wn(Dr,!1)},!0)}$(ht,sn)};q(It,ht=>{l(y)in Ky?ht(hn,!1):ht(kt)})}var Cr=j(mn,2);{var ui=ht=>{const sn=_(o);var Ln=OY(),$n=z(Ln);{var Dr=At=>{var Yn=IY(),Bt=z(Yn);cr(Bt,()=>f(l(b))),$(At,Yn)};q($n,At=>{l(b)&&At(Dr)})}var Wn=j($n,2);Bn(Wn,()=>l(sn),(At,Yn)=>{Yn(At,{get fieldConfig(){return e.fieldConfig},get currentValue(){return l($e)}})}),$(ht,Ln)};q(Cr,ht=>{!l(Ye)&&(l(b)||o())&&ht(ui)})}Z(ht=>{Ee(je,"id",`${n}-label`),te(Xe,l(He)),Kt=Zt(mn,1,"widget-wrapper svelte-dkfcyc",null,Kt,ht)},[()=>({"has-extra-labels":l(O)})]),$(ye,Qe)},$$slots:{default:!0}})}};q(ze,Ae=>{r()&&l(he)&&l(y)!=="hidden"&&Ae(Oe)})}$(t,Te),ce(),a()}var MY=U('<div class="required">*</div>'),FY=U('<header role="none"><h4 role="none"> </h4> <!></header> <!> <div role="none" class="widget-wrapper"><!></div>',1);function zY(t,e){const n=Rn();le(e,!0);const r=()=>V(We,"$entryDraft",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=_(()=>r()?.collection),c=_(()=>r()?.collectionFile),u=_(()=>(l(c)??l(a))?._i18n??Zi),d=_(()=>l(u).defaultLocale),f=_(()=>r()?.slugEditor[e.locale]),h=_(()=>l(f)===!0),p=_(()=>l(f)==="readonly"),g=_(()=>r()?.validities[e.locale]._slug),m=_(()=>!l(p)&&l(g)?.valid===!1);let v=ie("");De(()=>{l(v),Se(()=>{r()&&Object.entries(r().slugEditor).forEach(([E,k])=>{(e.locale===E||e.locale===l(d)&&k==="readonly")&&_t(We,Se(r).currentSlugs[E]=l(v),Se(r))})})}),De(()=>{l(p)&&G(v,r()?.currentSlugs[e.locale]??"",!0)});var b=X(),y=M(b);{var w=E=>{BA(E,{children:(k,S)=>{var C=FY(),x=M(C),T=z(x),A=z(T),P=j(T,2);{var L=H=>{var W=MY();Z(Y=>Ee(W,"aria-label",Y),[()=>i()("required")]),$(H,W)};q(P,H=>{l(h)&&H(L)})}var I=j(x,2);{var N=H=>{Uy(H,{get id(){return`${n}-error`},children:(W,Y)=>{var O=X(),F=M(O);{var K=J=>{var Q=Ie();Z(oe=>te(Q,oe),[()=>i()("validation.value_missing")]),$(J,Q)};q(F,J=>{l(g)?.valueMissing&&J(K)})}$(W,O)}})};q(I,H=>{l(m)&&H(N)})}var D=j(I,2),B=z(D);Cn(B,{flex:!0,get readonly(){return l(p)},get required(){return l(h)},get invalid(){return l(m)},get"aria-labelledby"(){return`${n}-label`},get"aria-errormessage"(){return`${n}-error`},get value(){return l(v)},set value(H){G(v,H,!0)}}),Z(H=>{Ee(T,"id",`${n}-label`),te(A,H)},[()=>i()("slug")]),$(k,C)},$$slots:{default:!0}})};q(y,E=>{r()&&E(w)})}$(t,b),ce(),s()}var jY=U("<!> <!>",1);function BY(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>n()?.fields??[]);ao(t,{children:(s,a)=>{var c=jY(),u=M(c);{var d=h=>{zY(h,{get locale(){return e.locale}})};q(u,h=>{n()?.slugEditor[e.locale]&&h(d)})}var f=j(u,2);it(f,17,()=>l(o),h=>h.name,(h,p)=>{ao(h,{children:(g,m)=>{ig(g,{get keyPath(){return l(p).name},get locale(){return e.locale},get fieldConfig(){return l(p)}})},$$slots:{default:!0}})}),$(s,c)},$$slots:{default:!0}}),ce(),i()}function UY(t,e){let n=R(e,"children",3,void 0);var r=X(),i=M(r);Me(i,()=>n()??Be),$(t,r)}var qY=U('<iframe class="preview svelte-1k58u5t"></iframe>');const VY={hash:"svelte-1k58u5t",code:"iframe.svelte-1k58u5t {display:block;border:none;width:100%;height:100%;}"};function HY(t,e){le(e,!0),ke(t,VY);const n=()=>V(ue,"$_",r),[r,i]=me();let o=ie(void 0);const s=()=>`
633
633
  <!DOCTYPE html>
634
634
  <html lang="${Nr.sanitize(e.locale)}">
635
635
  <head>
@@ -639,34 +639,34 @@ td.svelte-18v8t2h {border-width:0;}th.svelte-18v8t2h {padding-block:4px;color:va
639
639
  </head>
640
640
  <body></body>
641
641
  </html>
642
- `,a=()=>{const d=l(o)?.contentDocument?.body;d&&xf(BY,{target:d,props:{children:e.children}})},c=()=>{l(o)&&(l(o).addEventListener("load",a,{once:!0}),l(o).src=URL.createObjectURL(new Blob([s()],{type:"text/html"})))};De(()=>{l(o)&&c()});var u=UY();vt(u,d=>G(o,d),()=>l(o)),Z(d=>Ee(u,"title",d),[()=>n()("content_preview")]),$(t,u),ce(),i()}var HY=U('<div role="document" class="svelte-17akd4q"><!></div>');const KY={hash:"svelte-17akd4q",code:"div.svelte-17akd4q {padding:8px 16px;}"};function GY(t,e){le(e,!0),ke(t,KY);const n=()=>V(We,"$entryDraft",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=c=>{var u=X(),d=M(u);it(d,17,()=>l(a),f=>f.name,(f,h)=>{ao(f,{children:(p,g)=>{Hy(p,{get keyPath(){return l(h).name},get locale(){return e.locale},get fieldConfig(){return l(h)}})},$$slots:{default:!0}})}),$(c,u)},a=_(()=>n()?.fields??[]);ao(t,{children:(c,u)=>{var d=X(),f=M(d);{var h=g=>{{let m=_(()=>[...Qg]);VY(g,{get locale(){return e.locale},get styleURLs(){return l(m)},get children(){return s}})}},p=g=>{var m=HY(),v=z(m);s(v),Z(b=>Ee(m,"aria-label",b),[()=>r()("content_preview")]),$(g,m)};q(f,g=>{Qg.size?g(h):g(p,!1)})}$(c,d)},$$slots:{default:!0}}),ce(),o()}const zi=nt(),WY=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new mo(e,"ui-settings"):null,r="entry-view",i={showPreview:!0,syncScrolling:!0,selectAssetsView:{type:"grid"},...await n?.get(r)};zi.set(i),Rl.set(i.selectAssetsView),zi.subscribe(o=>{(async()=>{try{an(o,await n?.get(r))||await n?.set(r,o)}catch{}})()}),Rl.subscribe(o=>{if(!o||!Object.keys(o).length)return;const s=se(zi)?.selectAssetsView??{};an(o,s)||zi.update(a=>({...a,selectAssetsView:o}))})};bn.subscribe(t=>{t&&!se(zi)&&WY(t)});var YY=U('<div role="none" class="content svelte-1vy4qxn"><!></div>'),JY=U('<span role="alert"> </span> <!>',1),XY=U('<div role="none" class="wrapper svelte-1vy4qxn"><!></div>');const ZY={hash:"svelte-1vy4qxn",code:`@charset "UTF-8";.wrapper.svelte-1vy4qxn {display:contents;}.content.svelte-1vy4qxn {--field-editor-padding: 16px;flex:auto;overflow-y:auto;scroll-behavior:auto; /* Don’t use smooth scroll for syncing */overscroll-behavior-y:contain;}
642
+ `,a=()=>{const d=l(o)?.contentDocument?.body;d&&xf(UY,{target:d,props:{children:e.children}})},c=()=>{l(o)&&(l(o).addEventListener("load",a,{once:!0}),l(o).src=URL.createObjectURL(new Blob([s()],{type:"text/html"})))};De(()=>{l(o)&&c()});var u=qY();vt(u,d=>G(o,d),()=>l(o)),Z(d=>Ee(u,"title",d),[()=>n()("content_preview")]),$(t,u),ce(),i()}var KY=U('<div role="document" class="svelte-17akd4q"><!></div>');const GY={hash:"svelte-17akd4q",code:"div.svelte-17akd4q {padding:8px 16px;}"};function WY(t,e){le(e,!0),ke(t,GY);const n=()=>V(We,"$entryDraft",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=c=>{var u=X(),d=M(u);it(d,17,()=>l(a),f=>f.name,(f,h)=>{ao(f,{children:(p,g)=>{Hy(p,{get keyPath(){return l(h).name},get locale(){return e.locale},get fieldConfig(){return l(h)}})},$$slots:{default:!0}})}),$(c,u)},a=_(()=>n()?.fields??[]);ao(t,{children:(c,u)=>{var d=X(),f=M(d);{var h=g=>{{let m=_(()=>[...Qg]);HY(g,{get locale(){return e.locale},get styleURLs(){return l(m)},get children(){return s}})}},p=g=>{var m=KY(),v=z(m);s(v),Z(b=>Ee(m,"aria-label",b),[()=>r()("content_preview")]),$(g,m)};q(f,g=>{Qg.size?g(h):g(p,!1)})}$(c,d)},$$slots:{default:!0}}),ce(),o()}const zi=nt(),YY=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new mo(e,"ui-settings"):null,r="entry-view",i={showPreview:!0,syncScrolling:!0,selectAssetsView:{type:"grid"},...await n?.get(r)};zi.set(i),Rl.set(i.selectAssetsView),zi.subscribe(o=>{(async()=>{try{an(o,await n?.get(r))||await n?.set(r,o)}catch{}})()}),Rl.subscribe(o=>{if(!o||!Object.keys(o).length)return;const s=se(zi)?.selectAssetsView??{};an(o,s)||zi.update(a=>({...a,selectAssetsView:o}))})};bn.subscribe(t=>{t&&!se(zi)&&YY(t)});var JY=U('<div role="none" class="content svelte-1vy4qxn"><!></div>'),XY=U('<span role="alert"> </span> <!>',1),ZY=U('<div role="none" class="wrapper svelte-1vy4qxn"><!></div>');const QY={hash:"svelte-1vy4qxn",code:`@charset "UTF-8";.wrapper.svelte-1vy4qxn {display:contents;}.content.svelte-1vy4qxn {--field-editor-padding: 16px;flex:auto;overflow-y:auto;scroll-behavior:auto; /* Don’t use smooth scroll for syncing */overscroll-behavior-y:contain;}
643
643
  @media (width < 768px) {.content.svelte-1vy4qxn {--field-editor-padding: 12px;}
644
- }`};function I2(t,e){le(e,!0),ke(t,ZY);const n=()=>V(zi,"$entryEditorSettings",s),r=()=>V(e.thisPane,"$thisPane",s),i=()=>V(We,"$entryDraft",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=R(e,"thisPaneContentArea",15),u=R(e,"thatPaneContentArea",15);const d=_(()=>n()??{}),f=_(()=>l(d).syncScrolling),h=_(()=>r()?.locale),p=_(()=>r()?.mode),g=_(()=>!!l(h)&&!!On(i()?.currentValues[l(h)])),m=_(()=>({values:{locale:l(h)?Oi(l(h)):""}})),v=_(()=>l(p)==="preview"?GY:jY);let b=ie(void 0);const y=()=>{window.requestAnimationFrame(()=>{if(!l(f)||!l(b)||!c()||!u())return;const T=c()!==l(b),{x:A,y:P}=T?{x:0,y:0}:c().getBoundingClientRect(),{ownerDocument:L,scrollTop:I,scrollHeight:N,clientHeight:D}=c(),B=N-D,H=I/B,W=L.elementsFromPoint(A+80,P).find(Q=>Q.matches("[data-key-path]"));if(!W){u(u().scrollTop=u().scrollHeight*H,!0);return}const{keyPath:Y}=W.dataset,{top:O,height:F}=W.getBoundingClientRect(),K=(P-O)/F,J=u().querySelector(`[data-key-path="${CSS.escape(Y??"")}"]`);K<0||K>1||!J||u(u().scrollTop=J.offsetTop-P+J.clientHeight*K,!0)})},w={capture:!0,passive:!0},E=async()=>{if(!l(b))return;c()&&(c().removeEventListener("wheel",y,w),c().removeEventListener("touchmove",y,w));const T=l(b).querySelector("iframe.preview");T?(await Lt(250),c(T?.contentDocument?.firstElementChild)):c(l(b)),c()&&(c(c().scrollTop=0,!0),c().addEventListener("wheel",y,w),c().addEventListener("touchmove",y,w))};De(()=>{r()?.mode,l(b),E()});var k=XY(),S=z(k);{var C=T=>{var A=YY(),P=z(A);Bn(P,()=>l(v),(L,I)=>{I(L,{get locale(){return l(h)}})}),vt(A,L=>G(b,L),()=>l(b)),$(T,A)},x=T=>{var A=X(),P=M(A);{var L=I=>{hr(I,{children:(N,D)=>{var B=JY(),H=M(B),W=z(H),Y=j(H,2);{let O=_(()=>o()(l(g)?"reenable_x_locale":"enable_x_locale",l(m)));Ze(Y,{variant:"tertiary",get label(){return l(O)},onclick:()=>{l(h)&&$2(l(h))}})}Z(O=>te(W,O),[()=>o()(l(g)?"locale_x_now_disabled":"locale_x_has_been_disabled",l(m))]),$(N,B)},$$slots:{default:!0}})};q(P,I=>{l(p)==="edit"&&I(L)},!0)}$(T,A)};q(S,T=>{l(h)&&i()?.currentLocales[l(h)]?T(C):T(x,!1)})}Z(()=>Ee(k,"id",e.id)),$(t,k),ce(),a()}var QY=U('<div role="none" class="inner svelte-1ibgz0y"><!> <!></div>'),eJ=U('<div role="none" class="wrapper svelte-1ibgz0y"><!></div>');const tJ={hash:"svelte-1ibgz0y",code:`.wrapper.svelte-1ibgz0y {display:contents;}
644
+ }`};function I2(t,e){le(e,!0),ke(t,QY);const n=()=>V(zi,"$entryEditorSettings",s),r=()=>V(e.thisPane,"$thisPane",s),i=()=>V(We,"$entryDraft",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=R(e,"thisPaneContentArea",15),u=R(e,"thatPaneContentArea",15);const d=_(()=>n()??{}),f=_(()=>l(d).syncScrolling),h=_(()=>r()?.locale),p=_(()=>r()?.mode),g=_(()=>!!l(h)&&!!On(i()?.currentValues[l(h)])),m=_(()=>({values:{locale:l(h)?Oi(l(h)):""}})),v=_(()=>l(p)==="preview"?WY:BY);let b=ie(void 0);const y=()=>{window.requestAnimationFrame(()=>{if(!l(f)||!l(b)||!c()||!u())return;const T=c()!==l(b),{x:A,y:P}=T?{x:0,y:0}:c().getBoundingClientRect(),{ownerDocument:L,scrollTop:I,scrollHeight:N,clientHeight:D}=c(),B=N-D,H=I/B,W=L.elementsFromPoint(A+80,P).find(Q=>Q.matches("[data-key-path]"));if(!W){u(u().scrollTop=u().scrollHeight*H,!0);return}const{keyPath:Y}=W.dataset,{top:O,height:F}=W.getBoundingClientRect(),K=(P-O)/F,J=u().querySelector(`[data-key-path="${CSS.escape(Y??"")}"]`);K<0||K>1||!J||u(u().scrollTop=J.offsetTop-P+J.clientHeight*K,!0)})},w={capture:!0,passive:!0},E=async()=>{if(!l(b))return;c()&&(c().removeEventListener("wheel",y,w),c().removeEventListener("touchmove",y,w));const T=l(b).querySelector("iframe.preview");T?(await Lt(250),c(T?.contentDocument?.firstElementChild)):c(l(b)),c()&&(c(c().scrollTop=0,!0),c().addEventListener("wheel",y,w),c().addEventListener("touchmove",y,w))};De(()=>{r()?.mode,l(b),E()});var k=ZY(),S=z(k);{var C=T=>{var A=JY(),P=z(A);Bn(P,()=>l(v),(L,I)=>{I(L,{get locale(){return l(h)}})}),vt(A,L=>G(b,L),()=>l(b)),$(T,A)},x=T=>{var A=X(),P=M(A);{var L=I=>{hr(I,{children:(N,D)=>{var B=XY(),H=M(B),W=z(H),Y=j(H,2);{let O=_(()=>o()(l(g)?"reenable_x_locale":"enable_x_locale",l(m)));Ze(Y,{variant:"tertiary",get label(){return l(O)},onclick:()=>{l(h)&&$2(l(h))}})}Z(O=>te(W,O),[()=>o()(l(g)?"locale_x_now_disabled":"locale_x_has_been_disabled",l(m))]),$(N,B)},$$slots:{default:!0}})};q(P,I=>{l(p)==="edit"&&I(L)},!0)}$(T,A)};q(S,T=>{l(h)&&i()?.currentLocales[l(h)]?T(C):T(x,!1)})}Z(()=>Ee(k,"id",e.id)),$(t,k),ce(),a()}var eJ=U('<div role="none" class="inner svelte-1ibgz0y"><!> <!></div>'),tJ=U('<div role="none" class="wrapper svelte-1ibgz0y"><!></div>');const nJ={hash:"svelte-1ibgz0y",code:`.wrapper.svelte-1ibgz0y {display:contents;}
645
645
  @media (width < 1024px) {.wrapper.svelte-1ibgz0y .combobox {min-width:128px;--sui-textbox-height: 32px;--sui-button-medium-height: 32px;}
646
- }.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 nJ(t,e){le(e,!0),ke(t,tJ);const n=()=>V(We,"$entryDraft",u),r=()=>V(ln,"$isSmallScreen",u),i=()=>V(Io,"$isMediumScreen",u),o=()=>V(f(),"$thatPane",u),s=()=>V(ue,"$_",u),a=()=>V(e.thisPane,"$thisPane",u),c=()=>V(zi,"$entryEditorSettings",u),[u,d]=me();let f=R(e,"thatPane",19,()=>nt(null));const h=_(()=>n()?.collection),p=_(()=>n()?.collectionFile),g=_(()=>(l(p)??l(h))?._i18n??Zi),m=_(()=>l(g).allLocales),v=_(()=>r()||i()?[...l(m)]:l(m).filter(A=>!(o()?.mode==="edit"&&o().locale===A))),b=_(()=>Object.entries(n()?.validities??{}).some(([A,P])=>l(v).includes(A)&&Object.values(P??{}).some(({valid:L})=>!L))),y=_(()=>n()?.canPreview??!0),w=_(()=>r()||i()||l(m).length>=5),E=_(()=>l(w)?Fa:Fh),k=_(()=>l(w)?kr:id),S=_(()=>l(w)?void 0:"tertiary"),C=_(()=>l(w)?void 0:"small");var x=eJ(),T=z(x);{let A=_(()=>l(b)&&l(w)?"error":void 0),P=_(()=>s()("switch_locale")),L=_(()=>e.id.replace("-header","-body"));Bn(T,()=>l(E),(I,N)=>{N(I,{get class(){return l(A)},get"aria-label"(){return l(P)},get"aria-controls"(){return l(L)},children:(D,B)=>{var H=QY(),W=z(H);it(W,17,()=>l(v),lr,(F,K)=>{const J=_(()=>Oi(l(K))),Q=_(()=>!n()?.currentLocales[l(K)]),oe=_(()=>Object.values(n()?.validities[l(K)]??{}).some(({valid:ne})=>!ne));var re=X(),ee=M(re);{const ne=he=>{var ge=X(),ve=M(ge);{var _e=Ce=>{Je(Ce,{name:"edit_off"})},$e=Ce=>{var Re=X(),He=M(Re);{var Ye=Ue=>{Je(Ue,{name:"error"})};q(He,Ue=>{l(oe)&&Ue(Ye)},!0)}$(Ce,Re)};q(ve,Ce=>{l(Q)?Ce(_e):Ce($e,!1)})}$(he,ge)};let ae=_(()=>l(J)),fe=_(()=>l(Q)?s()("locale_content_disabled_short"):l(oe)?s()("locale_content_error_short"):""),be=_(()=>a()?.mode==="edit"&&a().locale===l(K)),pe=_(()=>l(oe)?"error":"");Bn(ee,()=>l(k),(he,ge)=>{ge(he,{get variant(){return l(S)},get size(){return l(C)},get label(){return l(J)},get"aria-label"(){return`${l(ae)??""} ${l(fe)??""}`},get selected(){return l(be)},get class(){return l(pe)},"data-mode":"edit",onSelect:()=>{Ge(e.thisPane,{mode:"edit",locale:l(K)}),o()?.mode==="preview"&&Ge(f(),{mode:"preview",locale:l(K)})},startIcon:ne,$$slots:{startIcon:!0}})})}$(F,re)});var Y=j(W,2);{var O=F=>{var K=X(),J=M(K);{let Q=_(()=>s()("preview")),oe=_(()=>a()?.mode==="preview");Bn(J,()=>l(k),(re,ee)=>{ee(re,{get variant(){return l(S)},get size(){return l(C)},get label(){return l(Q)},get selected(){return l(oe)},"data-mode":"preview",onSelect:()=>{Ge(e.thisPane,{mode:"preview",locale:o()?.locale??""})}})})}$(F,K)};q(Y,F=>{o()?.mode==="edit"&&l(y)&&c()?.showPreview&&F(O)})}$(D,H)},$$slots:{default:!0}})})}$(t,x),ce(),d()}function O2(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.thisPane,"$thisPane",i),[i,o]=me();{const s=u=>{Je(u,{name:"visibility"})};let a=_(()=>n()("preview")),c=_(()=>r()?.mode==="preview");Ze(t,{variant:"ghost",iconic:!0,get"aria-label"(){return l(a)},get pressed(){return l(c)},onclick:()=>{Ge(e.thisPane,{mode:r()?.mode==="preview"?"edit":"preview",locale:r()?.locale??""})},startIcon:s,$$slots:{startIcon:!0}})}ce(),o()}var rJ=U("<!> <!>",1),iJ=U('<h3 role="none"> </h3>'),oJ=U("<!> <!>",1),sJ=U("<!> <!> <!>",1),aJ=U("<!> <!> <!> <!>",1),lJ=U("<!> <!>",1),cJ=U("<!> <!> <!>",1),uJ=U('<div role="none" class="header svelte-uj56is"><!></div>');const dJ={hash:"svelte-uj56is",code:`.header.svelte-uj56is {flex:none !important;}.header.svelte-uj56is > .sui.toolbar {margin-inline:auto;max-width:800px;}
646
+ }.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 rJ(t,e){le(e,!0),ke(t,nJ);const n=()=>V(We,"$entryDraft",u),r=()=>V(ln,"$isSmallScreen",u),i=()=>V(Io,"$isMediumScreen",u),o=()=>V(f(),"$thatPane",u),s=()=>V(ue,"$_",u),a=()=>V(e.thisPane,"$thisPane",u),c=()=>V(zi,"$entryEditorSettings",u),[u,d]=me();let f=R(e,"thatPane",19,()=>nt(null));const h=_(()=>n()?.collection),p=_(()=>n()?.collectionFile),g=_(()=>(l(p)??l(h))?._i18n??Zi),m=_(()=>l(g).allLocales),v=_(()=>r()||i()?[...l(m)]:l(m).filter(A=>!(o()?.mode==="edit"&&o().locale===A))),b=_(()=>Object.entries(n()?.validities??{}).some(([A,P])=>l(v).includes(A)&&Object.values(P??{}).some(({valid:L})=>!L))),y=_(()=>n()?.canPreview??!0),w=_(()=>r()||i()||l(m).length>=5),E=_(()=>l(w)?Fa:Fh),k=_(()=>l(w)?kr:id),S=_(()=>l(w)?void 0:"tertiary"),C=_(()=>l(w)?void 0:"small");var x=tJ(),T=z(x);{let A=_(()=>l(b)&&l(w)?"error":void 0),P=_(()=>s()("switch_locale")),L=_(()=>e.id.replace("-header","-body"));Bn(T,()=>l(E),(I,N)=>{N(I,{get class(){return l(A)},get"aria-label"(){return l(P)},get"aria-controls"(){return l(L)},children:(D,B)=>{var H=eJ(),W=z(H);it(W,17,()=>l(v),lr,(F,K)=>{const J=_(()=>Oi(l(K))),Q=_(()=>!n()?.currentLocales[l(K)]),oe=_(()=>Object.values(n()?.validities[l(K)]??{}).some(({valid:ne})=>!ne));var re=X(),ee=M(re);{const ne=he=>{var ge=X(),ve=M(ge);{var _e=Ce=>{Je(Ce,{name:"edit_off"})},$e=Ce=>{var Re=X(),He=M(Re);{var Ye=Ue=>{Je(Ue,{name:"error"})};q(He,Ue=>{l(oe)&&Ue(Ye)},!0)}$(Ce,Re)};q(ve,Ce=>{l(Q)?Ce(_e):Ce($e,!1)})}$(he,ge)};let ae=_(()=>l(J)),fe=_(()=>l(Q)?s()("locale_content_disabled_short"):l(oe)?s()("locale_content_error_short"):""),be=_(()=>a()?.mode==="edit"&&a().locale===l(K)),pe=_(()=>l(oe)?"error":"");Bn(ee,()=>l(k),(he,ge)=>{ge(he,{get variant(){return l(S)},get size(){return l(C)},get label(){return l(J)},get"aria-label"(){return`${l(ae)??""} ${l(fe)??""}`},get selected(){return l(be)},get class(){return l(pe)},"data-mode":"edit",onSelect:()=>{Ge(e.thisPane,{mode:"edit",locale:l(K)}),o()?.mode==="preview"&&Ge(f(),{mode:"preview",locale:l(K)})},startIcon:ne,$$slots:{startIcon:!0}})})}$(F,re)});var Y=j(W,2);{var O=F=>{var K=X(),J=M(K);{let Q=_(()=>s()("preview")),oe=_(()=>a()?.mode==="preview");Bn(J,()=>l(k),(re,ee)=>{ee(re,{get variant(){return l(S)},get size(){return l(C)},get label(){return l(Q)},get selected(){return l(oe)},"data-mode":"preview",onSelect:()=>{Ge(e.thisPane,{mode:"preview",locale:o()?.locale??""})}})})}$(F,K)};q(Y,F=>{o()?.mode==="edit"&&l(y)&&c()?.showPreview&&F(O)})}$(D,H)},$$slots:{default:!0}})})}$(t,x),ce(),d()}function O2(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.thisPane,"$thisPane",i),[i,o]=me();{const s=u=>{Je(u,{name:"visibility"})};let a=_(()=>n()("preview")),c=_(()=>r()?.mode==="preview");Ze(t,{variant:"ghost",iconic:!0,get"aria-label"(){return l(a)},get pressed(){return l(c)},onclick:()=>{Ge(e.thisPane,{mode:r()?.mode==="preview"?"edit":"preview",locale:r()?.locale??""})},startIcon:s,$$slots:{startIcon:!0}})}ce(),o()}var iJ=U("<!> <!>",1),oJ=U('<h3 role="none"> </h3>'),sJ=U("<!> <!>",1),aJ=U("<!> <!> <!>",1),lJ=U("<!> <!> <!> <!>",1),cJ=U("<!> <!>",1),uJ=U("<!> <!> <!>",1),dJ=U('<div role="none" class="header svelte-uj56is"><!></div>');const fJ={hash:"svelte-uj56is",code:`.header.svelte-uj56is {flex:none !important;}.header.svelte-uj56is > .sui.toolbar {margin-inline:auto;max-width:800px;}
647
647
  @media (width < 768px) {.header.svelte-uj56is > .sui.toolbar {padding:0;}
648
- }.header.svelte-uj56is > .sui.toolbar h3 {margin:0 8px;font-size:var(--sui-font-size-default);}`};function R2(t,e){le(e,!0),ke(t,dJ);const n=()=>V(We,"$entryDraft",u),r=()=>V(e.thisPane,"$thisPane",u),i=()=>V(ue,"$_",u),o=()=>V(ln,"$isSmallScreen",u),s=()=>V(Io,"$isMediumScreen",u),a=()=>V(dt,"$prefs",u),c=()=>V(bn,"$backend",u),[u,d]=me();let f=R(e,"thatPane",19,()=>nt(null));const h=_(()=>n()?.collection),p=_(()=>n()?.collectionFile),g=_(()=>n()?.originalEntry),m=_(()=>n()?.originalValues??{}),v=_(()=>(l(p)??l(h))?._i18n??Zi),b=_(()=>l(v).i18nEnabled),y=_(()=>l(v).saveAllLocales),w=_(()=>l(v).allLocales),E=_(()=>l(v).defaultLocale),k=_(()=>n()?.currentLocales[r()?.locale??""]),S=_(()=>Object.values(n()?.currentLocales??{}).filter(N=>N).length===1),C=_(()=>l(b)?l(w).filter(N=>N!==r()?.locale):[]),x=_(()=>!!l(C).length),T=_(()=>r()?.locale&&!an(On(n()?.currentValues[r().locale]),l(m)[r().locale])),A=_(()=>n()?.canPreview??!0),P=_(()=>l(h)&&l(g)&&r()?.locale?sk(l(g),r().locale,l(h),l(p)):void 0);var L=uJ(),I=z(L);{let N=_(()=>i()("secondary"));Si(I,{variant:"secondary",get"aria-label"(){return l(N)},children:(D,B)=>{var H=cJ(),W=M(H);{var Y=Q=>{var oe=rJ(),re=M(oe);nJ(re,{get id(){return e.id},get thisPane(){return e.thisPane},get thatPane(){return f()}});var ee=j(re,2);{var ne=ae=>{O2(ae,{get thisPane(){return e.thisPane}})};q(ee,ae=>{(o()||s())&&l(A)&&ae(ne)})}$(Q,oe)},O=Q=>{var oe=X(),re=M(oe);{var ee=ae=>{var fe=iJ(),be=z(fe);Z(pe=>te(be,pe),[()=>r()?.mode==="preview"?i()("preview"):i()("edit")]),$(ae,fe)},ne=ae=>{var fe=X(),be=M(fe);{var pe=he=>{O2(he,{get thisPane(){return e.thisPane}})};q(be,he=>{l(A)&&he(pe)},!0)}$(ae,fe)};q(re,ae=>{o()||s()?ae(ne,!1):ae(ee)},!0)}$(Q,oe)};q(W,Q=>{l(b)&&l(w).length>1?Q(Y):Q(O,!1)})}var F=j(W,2);Wr(F,{flex:!0});var K=j(F,2);{var J=Q=>{const oe=_(()=>Oi(r().locale));var re=lJ(),ee=M(re);{var ne=fe=>{UA(fe,{get locale(){return r().locale},get otherLocales(){return l(C)}})};q(ee,fe=>{l(x)&&fe(ne)})}var ae=j(ee,2);{const fe=pe=>{{let he=_(()=>i()("content_options_x_locale",{values:{locale:l(oe)}}));ir(pe,{get"aria-label"(){return l(he)},children:(ge,ve)=>{var _e=aJ(),$e=M(_e);{var Ce=ze=>{By(ze,{get locale(){return r().locale},get otherLocales(){return l(C)}})};q($e,ze=>{l(x)&&r()?.locale&&ze(Ce)})}var Re=j($e,2);{let ze=_(()=>i()("revert_changes")),Oe=_(()=>!l(T));mt(Re,{get label(){return l(ze)},get disabled(){return l(Oe)},onclick:()=>{Gy({locale:r()?.locale})}})}var He=j(Re,2);{var Ye=ze=>{var Oe=oJ(),Ae=M(Oe);Gr(Ae,{});var we=j(Ae,2);{let Pe=_(()=>i()(l(k)?"disable_x_locale":On(n()?.currentValues[r().locale])?"reenable_x_locale":"enable_x_locale",{values:{locale:l(oe)}})),ye=_(()=>r().locale===l(E)||l(k)&&l(S));mt(we,{get label(){return l(Pe)},get disabled(){return l(ye)},onclick:()=>{$2(r()?.locale??"")}})}$(ze,Oe)};q(He,ze=>{!l(y)&&r()?.locale&&ze(Ye)})}var Ue=j(He,2);{var Te=ze=>{var Oe=sJ(),Ae=M(Oe);Gr(Ae,{});var we=j(Ae,2);{var Pe=Qe=>{{let Ne=_(()=>i()("view_on_live_site"));mt(Qe,{get label(){return l(Ne)},onclick:()=>{window.open(l(P))}})}};q(we,Qe=>{l(P)&&Qe(Pe)})}var ye=j(we,2);{var ot=Qe=>{{let Ne=_(()=>!c()?.repository?.blobBaseURL),je=_(()=>i()("view_on_x",{values:{service:c()?.repository?.label},default:i()("view_in_repository")}));mt(Qe,{get disabled(){return l(Ne)},get label(){return l(je)},onclick:()=>{l(g)&&r()&&window.open(WD(l(g),r().locale))}})}};q(ye,Qe=>{a().devModeEnabled&&Qe(ot)})}$(ze,Oe)};q(Ue,ze=>{l(g)&&(l(P)||a().devModeEnabled)&&ze(Te)})}$(ge,_e)},$$slots:{default:!0}})}};let be=_(()=>i()("show_content_options_x_locale",{values:{locale:l(oe)}}));Ir(ae,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(be)},popup:fe,$$slots:{popup:!0}})}$(Q,re)};q(K,Q=>{r()?.mode==="edit"&&Q(J)})}$(D,H)},$$slots:{default:!0}})}Z(()=>Ee(L,"id",e.id)),$(t,L),ce(),d()}var fJ=U('<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>'),hJ=U('<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>'),pJ=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>',1);const gJ={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 mJ(t,e){const n=Rn();le(e,!0),ke(t,gJ);const r=()=>V(We,"$entryDraft",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"open",15,!1);const c=_(()=>r()?.collectionName??""),u=_(()=>r()?.currentSlugs??{});let d=ie(St([]));const f=St({}),h=St({}),p=()=>{G(d,wo(l(c)).map(g=>Object.values(g.locales).map(({slug:m})=>m)).flat(1).filter(g=>!Object.values(l(u)).includes(g)),!0),Object.assign(f,l(u)),Object.assign(h,Object.fromEntries(Object.keys(l(u)).map(g=>[g,!1])))};De(()=>{a()&&p()});{let g=_(()=>i()("edit_slug")),m=_(()=>i()("update")),v=_(()=>an(l(u),f)||Object.values(h).some(b=>b!==!1));Di(t,{get title(){return l(g)},get okLabel(){return l(m)},get okDisabled(){return l(v)},onOk:()=>{_t(We,Se(r).currentSlugs=f,Se(r))},get open(){return a()},set open(b){a(b)},children:(b,y)=>{var w=pJ(),E=M(w);Il(E,()=>({"--font-size":"var(--sui-font-size-small)"})),Mn(E.lastChild,{status:"warning",children:(S,C)=>{var x=Ie();Z(T=>te(x,T),[()=>i()("edit_slug_warning")]),$(S,x)},$$slots:{default:!0}});var k=j(E,2);it(k,21,()=>Object.keys(f),lr,(S,C)=>{var x=hJ(),T=z(x);{var A=W=>{var Y=fJ(),O=z(Y),F=z(O);Z(K=>te(F,K),[()=>Oi(l(C))]),$(W,Y)};q(T,W=>{["_","_default"].includes(l(C))||W(A)})}var P=j(T,2),L=z(P);{let W=_(()=>h[l(C)]!==!1);Cn(L,{flex:!0,oninput:()=>{h[l(C)]=f[l(C)].trim()?l(d).includes(f[l(C)])?"duplicate":!1:"empty"},get invalid(){return l(W)},get"aria-errormessage"(){return`${n}-${l(C)??""}-error`},get value(){return f[l(C)]},set value(Y){f[l(C)]=Y}})}var I=j(L,2),N=z(I);{var D=W=>{var Y=Ie();Z(O=>te(Y,O),[()=>i()("edit_slug_error.empty")]),$(W,Y)};q(N,W=>{h[l(C)]==="empty"&&W(D)})}var B=j(N,2);{var H=W=>{var Y=Ie();Z(O=>te(Y,O),[()=>i()("edit_slug_error.duplicate")]),$(W,Y)};q(B,W=>{h[l(C)]==="duplicate"&&W(H)})}Z(()=>Ee(I,"id",`${n}-${l(C)??""}-error`)),$(S,x)}),$(b,w)},$$slots:{default:!0}})}ce(),s()}const vJ=({ids:t,assetPaths:e})=>{const n=se(ri);ri.set(n.filter(r=>!t.includes(r.id))),Hd.set({...hl,deleted:!0,count:t.length}),e.length&&Dn.update(r=>r.filter(i=>!e.includes(i.path)))},D2=async(t,e=[])=>{const n=se(ri),r=t.map(i=>{const{locales:o,slug:s}=n.find(a=>a.id===i)??{};if(o)return Object.values(o).map(({path:a})=>({action:"delete",slug:s,path:a}))}).flat(1).filter((i,o,s)=>i&&s.findIndex(a=>a?.path===i.path)===o);e.length&&r.push(...e.map(i=>({action:"delete",path:i}))),await Kd({changes:r,options:{commitType:"delete",collection:se(Kn)}}),vJ({ids:t,assetPaths:e})},bJ="{{fields._slug}}",_J="{{fields._slug | localize}}",yJ=({collection:t,collectionFile:e,originalEntry:n})=>{const{_type:r}=t,{identifier_field:i="title",slug:o=`{{${i}}}`}=r==="entry"?t:{},{id:s}=n,a=s===void 0,{_i18n:c}=e??t,{allLocales:u,defaultLocale:d}=c,f=r==="entry"&&a,h=f&&o.includes(_J),p=f&&(o.includes(bJ)||h);return Object.fromEntries(u.map(g=>[g,p?g===d||h?!0:"readonly":!1]))},tf=({collection:t,collectionFile:e,originalEntry:n={},dynamicValues:r,expanderStates:i,isIndexFile:o=_o(t,n)})=>{const s=t.name,a=e?.name,{id:c,slug:u,locales:d}=n,f=c===void 0,{fields:h=[],_i18n:p}=e??t,g=o?ii(t):void 0,m=g?.fields??h,v=g?.editor?.preview??e?.editor?.preview??t.editor?.preview??se(Et)?.editor?.preview??!0,{allLocales:b,initialLocales:y,defaultLocale:w,canonicalSlug:{key:E="translationKey"}}=p,k=f?y:b.filter(T=>!!d?.[T]?.content),S=Object.fromEntries(b.map(T=>[T,k.includes(T)])),C=f?{}:E in(d?.[w]?.content??{})?Object.fromEntries(b.map(T=>[T,d?.[T]?.slug])):{_:d?.[w].slug},x=Object.fromEntries(k.map(T=>f?[T,Qd(m,T,r)]:[T,structuredClone(d?.[T]?.content)]));We.set({createdAt:Date.now(),isNew:f,isIndexFile:o,canPreview:v,collectionName:s,collection:t,fileName:a,collectionFile:e,fields:m,originalEntry:f?void 0:n,originalLocales:S,currentLocales:structuredClone(S),originalSlugs:C,currentSlugs:structuredClone(C),originalValues:x,currentValues:Object.fromEntries(k.map(T=>[T,Ly({draft:{collectionName:s,fileName:a,isIndexFile:o},locale:T,target:structuredClone(x[T])})])),files:{},extraValues:Object.fromEntries(b.map(T=>[T,{}])),validities:Object.fromEntries(b.map(T=>[T,{}])),expanderStates:i??{_:{}},slugEditor:yJ({collection:t,collectionFile:e,originalEntry:n})}),yH({collectionName:s,fileName:a,slug:u})},wJ=()=>{const t=se(We),{collectionName:e,fileName:n,collection:r,collectionFile:i,currentValues:o,validities:s,isIndexFile:a}=t,{defaultLocale:c,canonicalSlug:{key:u}}=(i??r)._i18n;Object.entries(o).forEach(([d,f])=>{delete f[u];const h={collectionName:e,fileName:n,valueMap:f,isIndexFile:a};Object.keys(f).forEach(p=>{const g=fn({...h,keyPath:p});if(g?.widget==="uuid"&&(d===c||[!0,"translate"].includes(g?.i18n??!1))&&(f[p]=P2(g)),g?.widget==="hidden"){if(Array.isArray(g.default)&&p.match(/\.\d+$/)&&(delete f[p],p=p.replace(/\.\d+$/,""),p in f))return;(d===c||[!0,"translate"].includes(g?.i18n??!1))&&Object.assign(f,p2({fieldConfig:g,keyPath:p,locale:d}))}})}),Object.keys(s).forEach(d=>{s[d]={}}),We.set({...t,isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{}}),Xg.set(!0)},M2=/\.\d+$/,xJ={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},kJ={get:(t,e)=>e==="valid"?!Object.values(t).some(Boolean):t[e]},SJ=t=>{const{draft:e,locale:n,valueMap:r,componentName:i,validities:o}=t,{collection:s,collectionName:a,fileName:c,collectionFile:u,files:d,isIndexFile:f}=e;let{keyPath:h,value:p}=t;const g={collectionName:a,fileName:c,componentName:i,valueMap:r,keyPath:h.replace(ef,""),isIndexFile:f},m=fn({...g});if(!m)return;const{widget:v="string",i18n:b=!1,pattern:y}=m,w=cc(m),{min:E=0,max:k=1/0}=lk.includes(v)?m:{},{i18nEnabled:S,defaultLocale:C}=(u??s)._i18n;if(!i&&n!==C&&(!S||b===!1||b==="none"||b==="duplicate"))return;const x=Object.entries(r),T=uc({fieldConfig:m,locale:n}),A={...xJ};if(v==="list"||w){if(h in o[n])return;const P=new RegExp(`^${qt(h)}\\.\\d+`),L=Array.isArray(p)&&p.length?p.length:new Set(x.map(([I])=>I.match(P)?.[0]).filter(Boolean)).size;T&&!L?A.valueMissing=!0:typeof E=="number"&&L<E?A.rangeUnderflow=!0:typeof k=="number"&&L>k&&(A.rangeOverflow=!0)}if(v==="object"&&T&&!p&&(A.valueMissing=!0),v==="keyvalue"){const P=h.match(/(.+?)(?:\.[^.]*)?$/)?.[1],L=fn({...g,keyPath:P.replace(ef,"")});if(P in o[n]||L?.widget!=="keyvalue")return;h=P;const N=qy({entryDraft:We,keyPath:P,locale:n});T&&!N.length?A.valueMissing=!0:typeof E=="number"&&N.length<E?A.rangeUnderflow=!0:typeof k=="number"&&N.length>k&&(A.rangeOverflow=!0)}if(v==="code"){const{output_code_only:P=!1,keys:L={code:"code",lang:"lang"}}=m,I=h.match(`(.+)\\.(?:${L.code}|${L.lang})$`)?.[1]??"";if(I&&(h=I),h in o[n])return;P||(p=r[`${h}.${L.code}`])}if(wv.includes(v)&&typeof p=="string"&&p.startsWith("blob:")&&(p=d[p]?.file?.name),!(["object","list","hidden","compute","keyvalue"].includes(v)||w)&&(typeof p=="string"&&(p=p.trim()),T&&(p==null||p===""||w&&!p.length)&&(A.valueMissing=!0),Array.isArray(y))){const P=fc(y[0]);P&&!P.test(String(p))&&(A.patternMismatch=!0)}if(["string","text"].includes(v)){const P=C2({fieldConfig:m,value:p});A.tooShort=P.tooShort,A.tooLong=P.tooLong}if(v==="string"&&p){const{type:P="text"}=m;if(P!=="text"){const L=Object.assign(document.createElement("input"),{type:P,value:p});A.typeMismatch=L.validity.typeMismatch}P==="email"&&!A.typeMismatch&&!p.split("@")[1]?.includes(".")&&(A.typeMismatch=!0)}if(v==="number"){const{value_type:P="int"}=m;typeof E=="number"&&p!==null&&Number(p)<E?A.rangeUnderflow=!0:typeof k=="number"&&p!==null&&Number(p)>k&&(A.rangeOverflow=!0),(P==="int"||P==="float")&&T&&p===null&&(A.typeMismatch=!0)}return new Proxy(A,kJ)},F2=t=>{const{validities:e,locale:n,keyPath:r}=t,i=SJ(t);let o=!0;return i&&(e[n][r]=i,i.valid||(o=!1)),o},EJ=({fieldConfig:t,validateArgs:e})=>{const{validities:n,locale:r,keyPath:i}=e,o=n[r][i]?.valid??F2(e),{widget:s="string"}=t;return s==="list"&&!Yu(t).hasSubFields?{valid:o,validateItems:!1}:cc(t)?{valid:o,validateItems:!1}:{valid:o,validateItems:!0}},z2=t=>{const e=se(We),{collectionName:n,fileName:r,isIndexFile:i,currentLocales:o}=e,s={},a={collectionName:n,fileName:r,isIndexFile:i,keyPath:"",valueMap:{}};let c=!0;return Object.entries(e[t]).forEach(([u,d])=>{const f=Object.entries(d);if(!o[u]){s[u]=Object.fromEntries(f.map(([p])=>[p,{valid:!0}]));return}const h={draft:e,locale:u,valueMap:d,validities:s};s[u]={},f.forEach(([p,g])=>{const[m]=p.match(ef)??[],v=m?d[`${m}__sc_component_name`]:void 0,b=fn({...a,keyPath:p.replace(ef,""),valueMap:d,componentName:v});if(b){if(M2.test(p)){const{valid:y,validateItems:w}=EJ({fieldConfig:b,validateArgs:{...h,keyPath:p.replace(M2,""),value:"",componentName:v}});if(y||(c=!1),!w)return}F2({...h,keyPath:p,value:g,componentName:v})||(c=!1)}})}),{valid:c,validities:s}},$J=()=>{const{currentSlugs:t,slugEditor:e}=se(We),n={};let r=!0;return Object.entries(t).forEach(([i,o])=>{const s=!!e[i]&&!o?.trim();s&&(r=!1),n[i]={_slug:{valueMissing:s,valid:!s}}}),{valid:r,validities:n}},TJ=()=>{const{valid:t,validities:e}=z2("currentValues"),{valid:n,validities:r}=z2("extraValues"),{valid:i,validities:o}=$J();return We.update(s=>({...s,validities:Object.fromEntries(Object.keys(e).map(a=>[a,{...e[a],...r[a],...o[a]}]))})),t&&n&&i},CJ=({skipCI:t})=>{const e=!!se(bn)?.isGit&&!(t??se(Ey));Hd.set({...hl,saved:!0,published:e,count:1}),Nh.set(e)},AJ=async({skipCI:t=void 0}={})=>{const e=se(We),{collection:n,isNew:r,collectionName:i,fileName:o,currentValues:s}=e;if(!TJ())throw AG({collectionName:i,fileName:o,currentValues:s}),new Error("validation_failed");const a=dA({draft:e}),{defaultLocaleSlug:c}=a,{savingEntry:u,changes:d,savingAssets:f}=await vA({draft:e,slugs:a});let h;try{h=await Kd({changes:d,savingEntries:[u],savingAssets:f,options:{commitType:r?"create":"update",collection:n,skipCI:t}})}catch(p){throw console.error(p.cause??p),new Error("saving_failed",{cause:p.cause??p})}return CJ({skipCI:t}),Yp(i,r?"":c),h.savedEntries[0]},j2=async(t,e)=>{const{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=t,{locales:o}=e,{content:s}=o[r]??Object.values(o)[0]??{};if(!s)return;const a=i.map(c=>{if(c.includes("*")){const u=new RegExp(`^${qt(c).replace("\\*",".+")}$`);return Object.keys(s).filter(d=>u.test(d))}return c}).flat(1);for(const c of a){const u=s[c]?await ic({value:s[c],entry:e,collectionName:n,thumbnail:!0}):void 0;if(u)return u}},B2=({entry:t,collectionName:e,fileName:n,relative:r=!1})=>{const{locales:i}=t,o=Kr(e);if(!o)return[];const s=_o(o,t),a=Object.values(i).map(({content:c})=>Object.entries(c).map(([u,d])=>{if(typeof d=="string"&&(!r||!/^[/@]/.test(d))&&["image","file"].includes(fn({collectionName:e,keyPath:u,isIndexFile:s})?.widget??"string")){const f=Vv({value:d,entry:t,collectionName:e,fileName:n});if(f&&nh(f.path).some(h=>h.collectionName===e&&h.fileName===n&&(r?h.entryRelative:!0)))return f}})).flat(1).filter((c,u,d)=>!!c&&d.indexOf(c)===u);if(r&&Wi({collectionName:e,fileName:n})?.entryRelative){const c=dn(Object.values(t.locales)[0].path).dirname;se(Dn).forEach(u=>{dn(u.path).dirname===c&&!a.find(({path:d})=>d===u.path)&&a.push(u)})}return a};var PJ=U("<!> <!>",1),LJ=U("<!> <!> <!>",1),NJ=U("<!> <!> <!> <!>",1),IJ=U('<!> <h2 role="none"><!></h2> <!> <!> <!> <!>',1),OJ=U('<div role="none" class="error svelte-zjrq31"> </div>'),RJ=U(" <!>",1),DJ=U("<!> <!> <!> <!> <!> <!>",1);const MJ={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 FJ(t,e){le(e,!0),ke(t,MJ);const n=()=>V(We,"$entryDraft",p),r=()=>V(zt,"$appLocale",p),i=()=>V(kA,"$entryDraftModified",p),o=()=>V(dt,"$prefs",p),s=()=>V(ue,"$_",p),a=()=>V(ln,"$isSmallScreen",p),c=()=>V(Io,"$isMediumScreen",p),u=()=>V(zi,"$entryEditorSettings",p),d=()=>V(Sy,"$skipCIConfigured",p),f=()=>V(Ey,"$skipCIEnabled",p),h=()=>V(Zg,"$copyFromLocaleToast",p),[p,g]=me(),m=ge=>{const ve=_(()=>a()?mt:Ze);var _e=PJ(),$e=M(_e);{let Re=_(()=>s()("duplicate")),He=_(()=>s()("duplicate_entry")),Ye=_(()=>l(T)||l(P)?.create===!1||!Sh(l(A)));Bn($e,()=>l(ve),(Ue,Te)=>{Te(Ue,{variant:"ghost",get label(){return l(Re)},get"aria-label"(){return l(He)},get disabled(){return l(Ye)},onclick:()=>{Ht(`/collections/${l(B)}/new`,{replaceState:!0,notifyChange:!1,transitionType:"forwards"}),wJ()}})})}var Ce=j($e,2);{let Re=_(()=>s()("delete")),He=_(()=>s()("delete_entry")),Ye=_(()=>l(P)?.delete===!1);Bn(Ce,()=>l(ve),(Ue,Te)=>{Te(Ue,{variant:"ghost",get label(){return l(Re)},get"aria-label"(){return l(He)},get disabled(){return l(Ye)},onclick:()=>{G(w,!0)}})})}$(ge,_e)};let v=R(e,"disabled",3,!1),b=ie(!1),y=ie(!1),w=ie(!1),E=ie(!1),k=ie(""),S=ie(!1),C=ie(void 0);const x=_(()=>n()?.isNew??!0),T=_(()=>n()?.isIndexFile??!1),A=_(()=>n()?.collection),P=_(()=>l(A)?._type==="entry"?l(A):void 0),L=_(()=>n()?.collectionFile),I=_(()=>n()?.originalEntry),N=_(()=>(l(L)??l(A))?._i18n??Zi),D=_(()=>l(N).defaultLocale),B=_(()=>l(A)?.name),H=_(()=>l(L)?.name),W=_(()=>r()&&l(A)?ns(l(A)):""),Y=_(()=>r()&&l(A)?ns(l(A),{useSingular:!0}):""),O=_(()=>n()?.canPreview??!0),F=_(()=>l(x)||i()),K=_(()=>Object.values(n()?.validities??{}).map(ge=>Object.values(ge).map(({valid:ve})=>!ve)).flat(1).filter(Boolean).length),J=_(()=>l(B)&&l(I)&&Wi({collectionName:l(B),fileName:l(H)})?.entryRelative?B2({entry:l(I),collectionName:l(B),fileName:l(H),relative:!0}):[]),Q=_(()=>l(A)&&l(I)?sk(l(I),l(D),l(A),l(L)):void 0),oe=()=>{Qs(l(B)==="_singletons"?"/collections":`/collections/${l(B)}`)},re=async({skipCI:ge=void 0}={})=>{if(G(S,!0),!!l(A))try{const ve=await AJ({skipCI:ge});o()?.closeOnSave??!0?(oe(),Ge(We,null)):(l(x)&&Ht(`/collections/${l(B)}/entries/${ve.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:"backwards"}),tf({collection:l(A),collectionFile:l(L),originalEntry:ve,expanderStates:n()?.expanderStates}))}catch(ve){ve.message==="validation_failed"?G(b,!0):ve.message==="saving_failed"?(G(E,!0),G(k,ve.cause?.message??ve.message??s()("unexpected_error"),!0)):(G(E,!0),G(k,""),console.error(ve))}finally{G(S,!1)}};var ee=DJ(),ne=M(ee);{let ge=_(()=>s()("primary"));Si(ne,{variant:"primary",get"aria-label"(){return l(ge)},children:(ve,_e)=>{var $e=IJ(),Ce=M($e);{let ye=_(()=>s()("cancel_editing"));pl(Ce,{get"aria-label"(){return l(ye)},get useShortcut(){return o().closeWithEscape},onclick:()=>{oe()}})}var Re=j(Ce,2),He=z(Re);xr(He,{children:(ye,ot)=>{var Qe=X(),Ne=M(Qe);{var je=st=>{var lt=Ie();Z(xt=>te(lt,xt),[()=>s()("create_entry_title",{values:{name:l(Y)}})]),$(st,lt)},Xe=st=>{const lt=_(()=>l(L)?Fu(l(L)):l(A)&&l(I)&&r()?lc(l(A),l(I)):"");var xt=X(),Yt=M(xt);{var wn=on=>{var pt=Ie();Z(()=>te(pt,l(lt))),$(on,pt)},rn=on=>{var pt=Ie();Z(Mt=>te(pt,Mt),[()=>s()("edit_entry_title",{values:{collection:l(W),entry:l(lt)}})]),$(on,pt)};q(Yt,on=>{a()?on(wn):on(rn,!1)})}$(st,xt)};q(Ne,st=>{l(x)?st(je):st(Xe,!1)})}$(ye,Qe)},$$slots:{default:!0}});var Ye=j(Re,2);{var Ue=ye=>{{let ot=_(()=>s()("view_on_live_site"));Ze(ye,{variant:"tertiary",get label(){return l(ot)},onclick:()=>{window.open(l(Q))}})}};q(Ye,ye=>{!v()&&l(Q)&&ye(Ue)})}var Te=j(Ye,2);{var ze=ye=>{m(ye)};q(Te,ye=>{!a()&&!v()&&!l(L)&&!l(x)&&ye(ze)})}var Oe=j(Te,2);{const ye=Qe=>{{let Ne=_(()=>s()("editor_options"));ir(Qe,{get"aria-label"(){return l(Ne)},children:(je,Xe)=>{var st=NJ(),lt=M(st);{var xt=pt=>{m(pt)};q(lt,pt=>{a()&&!v()&&!l(L)&&!l(x)&&pt(xt)})}var Yt=j(lt,2);{let pt=_(()=>s()("edit_slug")),Mt=_(()=>!!l(L)||l(x)||l(T)||l(P)?.delete===!1);mt(Yt,{get label(){return l(pt)},get disabled(){return l(Mt)},onclick:()=>{G(y,!0)}})}var wn=j(Yt,2);{let pt=_(()=>s()("revert_all_changes")),Mt=_(()=>!l(F));mt(wn,{get label(){return l(pt)},get disabled(){return l(Mt)},onclick:()=>{Gy()}})}var rn=j(wn,2);{var on=pt=>{var Mt=LJ(),cn=M(Mt);Gr(cn,{});var En=j(cn,2);{let Kt=_(()=>s()("show_preview")),It=_(()=>u()?.showPreview),kt=_(()=>!l(O));jh(En,{get label(){return l(Kt)},get checked(){return l(It)},get disabled(){return l(kt)},onChange:()=>{zi.update((hn={})=>({...hn,showPreview:!hn.showPreview}))}})}var mn=j(En,2);{let Kt=_(()=>s()("sync_scrolling")),It=_(()=>u()?.syncScrolling),kt=_(()=>!l(O)&&Object.keys(n()?.currentValues??{}).length===1);jh(mn,{get label(){return l(Kt)},get checked(){return l(It)},get disabled(){return l(kt)},onChange:()=>{zi.update((hn={})=>({...hn,syncScrolling:!hn.syncScrolling}))}})}$(pt,Mt)};q(rn,pt=>{a()||c()||pt(on)})}$(je,st)},$$slots:{default:!0}})}};let ot=_(()=>s()("show_editor_options"));vt(Ir(Oe,{get disabled(){return v()},variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(ot)},popup:ye,$$slots:{popup:!0}}),Qe=>G(C,Qe,!0),()=>l(C))}var Ae=j(Oe,2);{var we=ye=>{{const ot=je=>{ir(je,{children:(Xe,st)=>{{let lt=_(()=>s()(f()?"save_and_publish":"save_without_publishing"));mt(Xe,{get label(){return l(lt)},onclick:()=>{re({skipCI:!f()})}})}},$$slots:{default:!0}})};let Qe=_(()=>s()(l(S)?"saving":"save")),Ne=_(()=>v()||!l(F)||l(S));oE(ye,{variant:"primary",get label(){return l(Qe)},get disabled(){return l(Ne)},keyShortcuts:"Accel+S",onclick:()=>{re()},popup:ot,$$slots:{popup:!0}})}},Pe=ye=>{{let ot=_(()=>s()(l(S)?"saving":"save")),Qe=_(()=>v()||!l(F)||l(S));Ze(ye,{variant:"primary",get label(){return l(ot)},get disabled(){return l(Qe)},keyShortcuts:"Accel+S",onclick:()=>{re()}})}};q(Ae,ye=>{d()?ye(we):ye(Pe,!1)})}$(ve,$e)},$$slots:{default:!0}})}var ae=j(ne,2);Qn(ae,{get show(){return l(b)},set show(ge){G(b,ge,!0)},children:(ge,ve)=>{Mn(ge,{status:"error",children:(_e,$e)=>{var Ce=Ie();Z(Re=>te(Ce,Re),[()=>s()(l(K)===1?"entry_validation_error":"entry_validation_errors",{values:{count:l(K)}})]),$(_e,Ce)},$$slots:{default:!0}})},$$slots:{default:!0}});var fe=j(ae,2);Qn(fe,{get id(){return h().id},get show(){return h().show},set show(ge){_t(Zg,Se(h).show=ge,Se(h))},children:(ge,ve)=>{const _e=_(()=>{const{status:$e,message:Ce,count:Re,sourceLanguage:He}=h();return{status:$e,message:Ce,count:Re,sourceLanguage:He}});Mn(ge,{get status(){return l(_e).status},children:($e,Ce)=>{var Re=Ie();Z(He=>te(Re,He),[()=>s()(`editor.${l(_e).message}`,{values:{count:l(_e).count,source:l(_e).sourceLanguage?Oi(l(_e).sourceLanguage):""}})]),$($e,Re)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=j(fe,2);mJ(be,{get open(){return l(y)},set open(ge){G(y,ge,!0)}});var pe=j(be,2);{let ge=_(()=>s()("delete_entry")),ve=_(()=>s()("delete"));bc(pe,{get title(){return l(ge)},get okLabel(){return l(ve)},onOk:async()=>{l(I)&&await D2([l(I).id],l(J).map(({path:_e})=>_e)),oe()},onClose:()=>{l(C)?.focus()},get open(){return l(w)},set open(_e){G(w,_e,!0)},children:(_e,$e)=>{var Ce=Ie();Z(Re=>te(Ce,Re),[()=>s()(l(J).length?"confirm_deleting_this_entry_with_assets":"confirm_deleting_this_entry")]),$(_e,Ce)},$$slots:{default:!0}})}var he=j(pe,2);{let ge=_(()=>s()("saving_entry.error.title"));zh(he,{get title(){return l(ge)},onClose:()=>{l(C)?.focus()},get open(){return l(E)},set open(ve){G(E,ve,!0)},children:(ve,_e)=>{var $e=RJ(),Ce=M($e),Re=j(Ce);{var He=Ye=>{var Ue=OJ(),Te=z(Ue);Z(()=>te(Te,l(k))),$(Ye,Ue)};q(Re,Ye=>{l(k)&&Ye(He)})}Z(Ye=>te(Ce,`${Ye??""} `),[()=>s()("saving_entry.error.description")]),$(ve,$e)},$$slots:{default:!0}})}$(t,ee),ce(),g()}var zJ=U('<div role="none"><!></div> <div role="none"><!></div>',1),jJ=U("<!> <!>",1),BJ=U("<!> <!>",1),UJ=U("<!> <!>",1),qJ=U('<div role="none" class="cols svelte-jrunrx"><!></div>'),VJ=U("<!> <!>",1),HJ=U('<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>',1);const KJ={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);transition:filter 250ms;}.wrapper[hidden].svelte-jrunrx {display:none;}.wrapper[inert].svelte-jrunrx {filter:opacity(0);}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) {flex:auto;overflow:hidden;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div {display:flex;flex-direction:column;min-width:480px;background-color:var(--sui-primary-background-color);transition:all 500ms;}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div[data-mode=edit] {flex:1 1;}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div[data-mode=preview] {flex:2 1;}
648
+ }.header.svelte-uj56is > .sui.toolbar h3 {margin:0 8px;font-size:var(--sui-font-size-default);}`};function R2(t,e){le(e,!0),ke(t,fJ);const n=()=>V(We,"$entryDraft",u),r=()=>V(e.thisPane,"$thisPane",u),i=()=>V(ue,"$_",u),o=()=>V(ln,"$isSmallScreen",u),s=()=>V(Io,"$isMediumScreen",u),a=()=>V(dt,"$prefs",u),c=()=>V(bn,"$backend",u),[u,d]=me();let f=R(e,"thatPane",19,()=>nt(null));const h=_(()=>n()?.collection),p=_(()=>n()?.collectionFile),g=_(()=>n()?.originalEntry),m=_(()=>n()?.originalValues??{}),v=_(()=>(l(p)??l(h))?._i18n??Zi),b=_(()=>l(v).i18nEnabled),y=_(()=>l(v).saveAllLocales),w=_(()=>l(v).allLocales),E=_(()=>l(v).defaultLocale),k=_(()=>n()?.currentLocales[r()?.locale??""]),S=_(()=>Object.values(n()?.currentLocales??{}).filter(N=>N).length===1),C=_(()=>l(b)?l(w).filter(N=>N!==r()?.locale):[]),x=_(()=>!!l(C).length),T=_(()=>r()?.locale&&!an(On(n()?.currentValues[r().locale]),l(m)[r().locale])),A=_(()=>n()?.canPreview??!0),P=_(()=>l(h)&&l(g)&&r()?.locale?sk(l(g),r().locale,l(h),l(p)):void 0);var L=dJ(),I=z(L);{let N=_(()=>i()("secondary"));Si(I,{variant:"secondary",get"aria-label"(){return l(N)},children:(D,B)=>{var H=uJ(),W=M(H);{var Y=Q=>{var oe=iJ(),re=M(oe);rJ(re,{get id(){return e.id},get thisPane(){return e.thisPane},get thatPane(){return f()}});var ee=j(re,2);{var ne=ae=>{O2(ae,{get thisPane(){return e.thisPane}})};q(ee,ae=>{(o()||s())&&l(A)&&ae(ne)})}$(Q,oe)},O=Q=>{var oe=X(),re=M(oe);{var ee=ae=>{var fe=oJ(),be=z(fe);Z(pe=>te(be,pe),[()=>r()?.mode==="preview"?i()("preview"):i()("edit")]),$(ae,fe)},ne=ae=>{var fe=X(),be=M(fe);{var pe=he=>{O2(he,{get thisPane(){return e.thisPane}})};q(be,he=>{l(A)&&he(pe)},!0)}$(ae,fe)};q(re,ae=>{o()||s()?ae(ne,!1):ae(ee)},!0)}$(Q,oe)};q(W,Q=>{l(b)&&l(w).length>1?Q(Y):Q(O,!1)})}var F=j(W,2);Wr(F,{flex:!0});var K=j(F,2);{var J=Q=>{const oe=_(()=>Oi(r().locale));var re=cJ(),ee=M(re);{var ne=fe=>{UA(fe,{get locale(){return r().locale},get otherLocales(){return l(C)}})};q(ee,fe=>{l(x)&&fe(ne)})}var ae=j(ee,2);{const fe=pe=>{{let he=_(()=>i()("content_options_x_locale",{values:{locale:l(oe)}}));ir(pe,{get"aria-label"(){return l(he)},children:(ge,ve)=>{var _e=lJ(),$e=M(_e);{var Ce=ze=>{By(ze,{get locale(){return r().locale},get otherLocales(){return l(C)}})};q($e,ze=>{l(x)&&r()?.locale&&ze(Ce)})}var Re=j($e,2);{let ze=_(()=>i()("revert_changes")),Oe=_(()=>!l(T));mt(Re,{get label(){return l(ze)},get disabled(){return l(Oe)},onclick:()=>{Gy({locale:r()?.locale})}})}var He=j(Re,2);{var Ye=ze=>{var Oe=sJ(),Ae=M(Oe);Gr(Ae,{});var we=j(Ae,2);{let Pe=_(()=>i()(l(k)?"disable_x_locale":On(n()?.currentValues[r().locale])?"reenable_x_locale":"enable_x_locale",{values:{locale:l(oe)}})),ye=_(()=>r().locale===l(E)||l(k)&&l(S));mt(we,{get label(){return l(Pe)},get disabled(){return l(ye)},onclick:()=>{$2(r()?.locale??"")}})}$(ze,Oe)};q(He,ze=>{!l(y)&&r()?.locale&&ze(Ye)})}var Ue=j(He,2);{var Te=ze=>{var Oe=aJ(),Ae=M(Oe);Gr(Ae,{});var we=j(Ae,2);{var Pe=Qe=>{{let Ne=_(()=>i()("view_on_live_site"));mt(Qe,{get label(){return l(Ne)},onclick:()=>{window.open(l(P))}})}};q(we,Qe=>{l(P)&&Qe(Pe)})}var ye=j(we,2);{var ot=Qe=>{{let Ne=_(()=>!c()?.repository?.blobBaseURL),je=_(()=>i()("view_on_x",{values:{service:c()?.repository?.label},default:i()("view_in_repository")}));mt(Qe,{get disabled(){return l(Ne)},get label(){return l(je)},onclick:()=>{l(g)&&r()&&window.open(WD(l(g),r().locale))}})}};q(ye,Qe=>{a().devModeEnabled&&Qe(ot)})}$(ze,Oe)};q(Ue,ze=>{l(g)&&(l(P)||a().devModeEnabled)&&ze(Te)})}$(ge,_e)},$$slots:{default:!0}})}};let be=_(()=>i()("show_content_options_x_locale",{values:{locale:l(oe)}}));Ir(ae,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(be)},popup:fe,$$slots:{popup:!0}})}$(Q,re)};q(K,Q=>{r()?.mode==="edit"&&Q(J)})}$(D,H)},$$slots:{default:!0}})}Z(()=>Ee(L,"id",e.id)),$(t,L),ce(),d()}var hJ=U('<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>'),pJ=U('<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>'),gJ=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>',1);const mJ={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 vJ(t,e){const n=Rn();le(e,!0),ke(t,mJ);const r=()=>V(We,"$entryDraft",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"open",15,!1);const c=_(()=>r()?.collectionName??""),u=_(()=>r()?.currentSlugs??{});let d=ie(St([]));const f=St({}),h=St({}),p=()=>{G(d,wo(l(c)).map(g=>Object.values(g.locales).map(({slug:m})=>m)).flat(1).filter(g=>!Object.values(l(u)).includes(g)),!0),Object.assign(f,l(u)),Object.assign(h,Object.fromEntries(Object.keys(l(u)).map(g=>[g,!1])))};De(()=>{a()&&p()});{let g=_(()=>i()("edit_slug")),m=_(()=>i()("update")),v=_(()=>an(l(u),f)||Object.values(h).some(b=>b!==!1));Di(t,{get title(){return l(g)},get okLabel(){return l(m)},get okDisabled(){return l(v)},onOk:()=>{_t(We,Se(r).currentSlugs=f,Se(r))},get open(){return a()},set open(b){a(b)},children:(b,y)=>{var w=gJ(),E=M(w);Il(E,()=>({"--font-size":"var(--sui-font-size-small)"})),Mn(E.lastChild,{status:"warning",children:(S,C)=>{var x=Ie();Z(T=>te(x,T),[()=>i()("edit_slug_warning")]),$(S,x)},$$slots:{default:!0}});var k=j(E,2);it(k,21,()=>Object.keys(f),lr,(S,C)=>{var x=pJ(),T=z(x);{var A=W=>{var Y=hJ(),O=z(Y),F=z(O);Z(K=>te(F,K),[()=>Oi(l(C))]),$(W,Y)};q(T,W=>{["_","_default"].includes(l(C))||W(A)})}var P=j(T,2),L=z(P);{let W=_(()=>h[l(C)]!==!1);Cn(L,{flex:!0,oninput:()=>{h[l(C)]=f[l(C)].trim()?l(d).includes(f[l(C)])?"duplicate":!1:"empty"},get invalid(){return l(W)},get"aria-errormessage"(){return`${n}-${l(C)??""}-error`},get value(){return f[l(C)]},set value(Y){f[l(C)]=Y}})}var I=j(L,2),N=z(I);{var D=W=>{var Y=Ie();Z(O=>te(Y,O),[()=>i()("edit_slug_error.empty")]),$(W,Y)};q(N,W=>{h[l(C)]==="empty"&&W(D)})}var B=j(N,2);{var H=W=>{var Y=Ie();Z(O=>te(Y,O),[()=>i()("edit_slug_error.duplicate")]),$(W,Y)};q(B,W=>{h[l(C)]==="duplicate"&&W(H)})}Z(()=>Ee(I,"id",`${n}-${l(C)??""}-error`)),$(S,x)}),$(b,w)},$$slots:{default:!0}})}ce(),s()}const bJ=({ids:t,assetPaths:e})=>{const n=se(ri);ri.set(n.filter(r=>!t.includes(r.id))),Hd.set({...hl,deleted:!0,count:t.length}),e.length&&Dn.update(r=>r.filter(i=>!e.includes(i.path)))},D2=async(t,e=[])=>{const n=se(ri),r=t.map(i=>{const{locales:o,slug:s}=n.find(a=>a.id===i)??{};if(o)return Object.values(o).map(({path:a})=>({action:"delete",slug:s,path:a}))}).flat(1).filter((i,o,s)=>i&&s.findIndex(a=>a?.path===i.path)===o);e.length&&r.push(...e.map(i=>({action:"delete",path:i}))),await Kd({changes:r,options:{commitType:"delete",collection:se(Kn)}}),bJ({ids:t,assetPaths:e})},_J="{{fields._slug}}",yJ="{{fields._slug | localize}}",wJ=({collection:t,collectionFile:e,originalEntry:n})=>{const{_type:r}=t,{identifier_field:i="title",slug:o=`{{${i}}}`}=r==="entry"?t:{},{id:s}=n,a=s===void 0,{_i18n:c}=e??t,{allLocales:u,defaultLocale:d}=c,f=r==="entry"&&a,h=f&&o.includes(yJ),p=f&&(o.includes(_J)||h);return Object.fromEntries(u.map(g=>[g,p?g===d||h?!0:"readonly":!1]))},tf=({collection:t,collectionFile:e,originalEntry:n={},dynamicValues:r,expanderStates:i,isIndexFile:o=_o(t,n)})=>{const s=t.name,a=e?.name,{id:c,slug:u,locales:d}=n,f=c===void 0,{fields:h=[],_i18n:p}=e??t,g=o?ii(t):void 0,m=g?.fields??h,v=g?.editor?.preview??e?.editor?.preview??t.editor?.preview??se(Et)?.editor?.preview??!0,{allLocales:b,initialLocales:y,defaultLocale:w,canonicalSlug:{key:E="translationKey"}}=p,k=f?y:b.filter(T=>!!d?.[T]?.content),S=Object.fromEntries(b.map(T=>[T,k.includes(T)])),C=f?{}:E in(d?.[w]?.content??{})?Object.fromEntries(b.map(T=>[T,d?.[T]?.slug])):{_:d?.[w].slug},x=Object.fromEntries(k.map(T=>f?[T,Qd(m,T,r)]:[T,structuredClone(d?.[T]?.content)]));We.set({createdAt:Date.now(),isNew:f,isIndexFile:o,canPreview:v,collectionName:s,collection:t,fileName:a,collectionFile:e,fields:m,originalEntry:f?void 0:n,originalLocales:S,currentLocales:structuredClone(S),originalSlugs:C,currentSlugs:structuredClone(C),originalValues:x,currentValues:Object.fromEntries(k.map(T=>[T,Ly({draft:{collectionName:s,fileName:a,isIndexFile:o},locale:T,target:structuredClone(x[T])})])),files:{},extraValues:Object.fromEntries(b.map(T=>[T,{}])),validities:Object.fromEntries(b.map(T=>[T,{}])),expanderStates:i??{_:{}},slugEditor:wJ({collection:t,collectionFile:e,originalEntry:n})}),wH({collectionName:s,fileName:a,slug:u})},xJ=()=>{const t=se(We),{collectionName:e,fileName:n,collection:r,collectionFile:i,currentValues:o,validities:s,isIndexFile:a}=t,{defaultLocale:c,canonicalSlug:{key:u}}=(i??r)._i18n;Object.entries(o).forEach(([d,f])=>{delete f[u];const h={collectionName:e,fileName:n,valueMap:f,isIndexFile:a};Object.keys(f).forEach(p=>{const g=fn({...h,keyPath:p});if(g?.widget==="uuid"&&(d===c||[!0,"translate"].includes(g?.i18n??!1))&&(f[p]=P2(g)),g?.widget==="hidden"){if(Array.isArray(g.default)&&p.match(/\.\d+$/)&&(delete f[p],p=p.replace(/\.\d+$/,""),p in f))return;(d===c||[!0,"translate"].includes(g?.i18n??!1))&&Object.assign(f,p2({fieldConfig:g,keyPath:p,locale:d}))}})}),Object.keys(s).forEach(d=>{s[d]={}}),We.set({...t,isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{}}),Xg.set(!0)},M2=/\.\d+$/,kJ={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},SJ={get:(t,e)=>e==="valid"?!Object.values(t).some(Boolean):t[e]},EJ=t=>{const{draft:e,locale:n,valueMap:r,componentName:i,validities:o}=t,{collection:s,collectionName:a,fileName:c,collectionFile:u,files:d,isIndexFile:f}=e;let{keyPath:h,value:p}=t;const g={collectionName:a,fileName:c,componentName:i,valueMap:r,keyPath:h.replace(ef,""),isIndexFile:f},m=fn({...g});if(!m)return;const{widget:v="string",i18n:b=!1,pattern:y}=m,w=cc(m),{min:E=0,max:k=1/0}=lk.includes(v)?m:{},{i18nEnabled:S,defaultLocale:C}=(u??s)._i18n;if(!i&&n!==C&&(!S||b===!1||b==="none"||b==="duplicate"))return;const x=Object.entries(r),T=uc({fieldConfig:m,locale:n}),A={...kJ};if(v==="list"||w){if(h in o[n])return;const P=new RegExp(`^${qt(h)}\\.\\d+`),L=Array.isArray(p)&&p.length?p.length:new Set(x.map(([I])=>I.match(P)?.[0]).filter(Boolean)).size;T&&!L?A.valueMissing=!0:typeof E=="number"&&L<E?A.rangeUnderflow=!0:typeof k=="number"&&L>k&&(A.rangeOverflow=!0)}if(v==="object"&&T&&!p&&(A.valueMissing=!0),v==="keyvalue"){const P=h.match(/(.+?)(?:\.[^.]*)?$/)?.[1],L=fn({...g,keyPath:P.replace(ef,"")});if(P in o[n]||L?.widget!=="keyvalue")return;h=P;const N=qy({entryDraft:We,keyPath:P,locale:n});T&&!N.length?A.valueMissing=!0:typeof E=="number"&&N.length<E?A.rangeUnderflow=!0:typeof k=="number"&&N.length>k&&(A.rangeOverflow=!0)}if(v==="code"){const{output_code_only:P=!1,keys:L={code:"code",lang:"lang"}}=m,I=h.match(`(.+)\\.(?:${L.code}|${L.lang})$`)?.[1]??"";if(I&&(h=I),h in o[n])return;P||(p=r[`${h}.${L.code}`])}if(wv.includes(v)&&typeof p=="string"&&p.startsWith("blob:")&&(p=d[p]?.file?.name),!(["object","list","hidden","compute","keyvalue"].includes(v)||w)&&(typeof p=="string"&&(p=p.trim()),T&&(p==null||p===""||w&&!p.length)&&(A.valueMissing=!0),Array.isArray(y))){const P=fc(y[0]);P&&!P.test(String(p))&&(A.patternMismatch=!0)}if(["string","text"].includes(v)){const P=C2({fieldConfig:m,value:p});A.tooShort=P.tooShort,A.tooLong=P.tooLong}if(v==="string"&&p){const{type:P="text"}=m;if(P!=="text"){const L=Object.assign(document.createElement("input"),{type:P,value:p});A.typeMismatch=L.validity.typeMismatch}P==="email"&&!A.typeMismatch&&!p.split("@")[1]?.includes(".")&&(A.typeMismatch=!0)}if(v==="number"){const{value_type:P="int"}=m;typeof E=="number"&&p!==null&&Number(p)<E?A.rangeUnderflow=!0:typeof k=="number"&&p!==null&&Number(p)>k&&(A.rangeOverflow=!0),(P==="int"||P==="float")&&T&&p===null&&(A.typeMismatch=!0)}return new Proxy(A,SJ)},F2=t=>{const{validities:e,locale:n,keyPath:r}=t,i=EJ(t);let o=!0;return i&&(e[n][r]=i,i.valid||(o=!1)),o},$J=({fieldConfig:t,validateArgs:e})=>{const{validities:n,locale:r,keyPath:i}=e,o=n[r][i]?.valid??F2(e),{widget:s="string"}=t;return s==="list"&&!Yu(t).hasSubFields?{valid:o,validateItems:!1}:cc(t)?{valid:o,validateItems:!1}:{valid:o,validateItems:!0}},z2=t=>{const e=se(We),{collectionName:n,fileName:r,isIndexFile:i,currentLocales:o}=e,s={},a={collectionName:n,fileName:r,isIndexFile:i,keyPath:"",valueMap:{}};let c=!0;return Object.entries(e[t]).forEach(([u,d])=>{const f=Object.entries(d);if(!o[u]){s[u]=Object.fromEntries(f.map(([p])=>[p,{valid:!0}]));return}const h={draft:e,locale:u,valueMap:d,validities:s};s[u]={},f.forEach(([p,g])=>{const[m]=p.match(ef)??[],v=m?d[`${m}__sc_component_name`]:void 0,b=fn({...a,keyPath:p.replace(ef,""),valueMap:d,componentName:v});if(b){if(M2.test(p)){const{valid:y,validateItems:w}=$J({fieldConfig:b,validateArgs:{...h,keyPath:p.replace(M2,""),value:"",componentName:v}});if(y||(c=!1),!w)return}F2({...h,keyPath:p,value:g,componentName:v})||(c=!1)}})}),{valid:c,validities:s}},TJ=()=>{const{currentSlugs:t,slugEditor:e}=se(We),n={};let r=!0;return Object.entries(t).forEach(([i,o])=>{const s=!!e[i]&&!o?.trim();s&&(r=!1),n[i]={_slug:{valueMissing:s,valid:!s}}}),{valid:r,validities:n}},CJ=()=>{const{valid:t,validities:e}=z2("currentValues"),{valid:n,validities:r}=z2("extraValues"),{valid:i,validities:o}=TJ();return We.update(s=>({...s,validities:Object.fromEntries(Object.keys(e).map(a=>[a,{...e[a],...r[a],...o[a]}]))})),t&&n&&i},AJ=({skipCI:t})=>{const e=!!se(bn)?.isGit&&!(t??se(Ey));Hd.set({...hl,saved:!0,published:e,count:1}),Nh.set(e)},PJ=async({skipCI:t=void 0}={})=>{const e=se(We),{collection:n,isNew:r,collectionName:i,fileName:o,currentValues:s}=e;if(!CJ())throw PG({collectionName:i,fileName:o,currentValues:s}),new Error("validation_failed");const a=dA({draft:e}),{defaultLocaleSlug:c}=a,{savingEntry:u,changes:d,savingAssets:f}=await vA({draft:e,slugs:a});let h;try{h=await Kd({changes:d,savingEntries:[u],savingAssets:f,options:{commitType:r?"create":"update",collection:n,skipCI:t}})}catch(p){throw console.error(p.cause??p),new Error("saving_failed",{cause:p.cause??p})}return AJ({skipCI:t}),Yp(i,r?"":c),h.savedEntries[0]},j2=async(t,e)=>{const{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=t,{locales:o}=e,{content:s}=o[r]??Object.values(o)[0]??{};if(!s)return;const a=i.map(c=>{if(c.includes("*")){const u=new RegExp(`^${qt(c).replace("\\*",".+")}$`);return Object.keys(s).filter(d=>u.test(d))}return c}).flat(1);for(const c of a){const u=s[c]?await ic({value:s[c],entry:e,collectionName:n,thumbnail:!0}):void 0;if(u)return u}},B2=({entry:t,collectionName:e,fileName:n,relative:r=!1})=>{const{locales:i}=t,o=Kr(e);if(!o)return[];const s=_o(o,t),a=Object.values(i).map(({content:c})=>Object.entries(c).map(([u,d])=>{if(typeof d=="string"&&(!r||!/^[/@]/.test(d))&&["image","file"].includes(fn({collectionName:e,keyPath:u,isIndexFile:s})?.widget??"string")){const f=Vv({value:d,entry:t,collectionName:e,fileName:n});if(f&&nh(f.path).some(h=>h.collectionName===e&&h.fileName===n&&(r?h.entryRelative:!0)))return f}})).flat(1).filter((c,u,d)=>!!c&&d.indexOf(c)===u);if(r&&Wi({collectionName:e,fileName:n})?.entryRelative){const c=dn(Object.values(t.locales)[0].path).dirname;se(Dn).forEach(u=>{dn(u.path).dirname===c&&!a.find(({path:d})=>d===u.path)&&a.push(u)})}return a};var LJ=U("<!> <!>",1),NJ=U("<!> <!> <!>",1),IJ=U("<!> <!> <!> <!>",1),OJ=U('<!> <h2 role="none"><!></h2> <!> <!> <!> <!>',1),RJ=U('<div role="none" class="error svelte-zjrq31"> </div>'),DJ=U(" <!>",1),MJ=U("<!> <!> <!> <!> <!> <!>",1);const FJ={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 zJ(t,e){le(e,!0),ke(t,FJ);const n=()=>V(We,"$entryDraft",p),r=()=>V(zt,"$appLocale",p),i=()=>V(kA,"$entryDraftModified",p),o=()=>V(dt,"$prefs",p),s=()=>V(ue,"$_",p),a=()=>V(ln,"$isSmallScreen",p),c=()=>V(Io,"$isMediumScreen",p),u=()=>V(zi,"$entryEditorSettings",p),d=()=>V(Sy,"$skipCIConfigured",p),f=()=>V(Ey,"$skipCIEnabled",p),h=()=>V(Zg,"$copyFromLocaleToast",p),[p,g]=me(),m=ge=>{const ve=_(()=>a()?mt:Ze);var _e=LJ(),$e=M(_e);{let Re=_(()=>s()("duplicate")),He=_(()=>s()("duplicate_entry")),Ye=_(()=>l(T)||l(P)?.create===!1||!Sh(l(A)));Bn($e,()=>l(ve),(Ue,Te)=>{Te(Ue,{variant:"ghost",get label(){return l(Re)},get"aria-label"(){return l(He)},get disabled(){return l(Ye)},onclick:()=>{Ht(`/collections/${l(B)}/new`,{replaceState:!0,notifyChange:!1,transitionType:"forwards"}),xJ()}})})}var Ce=j($e,2);{let Re=_(()=>s()("delete")),He=_(()=>s()("delete_entry")),Ye=_(()=>l(P)?.delete===!1);Bn(Ce,()=>l(ve),(Ue,Te)=>{Te(Ue,{variant:"ghost",get label(){return l(Re)},get"aria-label"(){return l(He)},get disabled(){return l(Ye)},onclick:()=>{G(w,!0)}})})}$(ge,_e)};let v=R(e,"disabled",3,!1),b=ie(!1),y=ie(!1),w=ie(!1),E=ie(!1),k=ie(""),S=ie(!1),C=ie(void 0);const x=_(()=>n()?.isNew??!0),T=_(()=>n()?.isIndexFile??!1),A=_(()=>n()?.collection),P=_(()=>l(A)?._type==="entry"?l(A):void 0),L=_(()=>n()?.collectionFile),I=_(()=>n()?.originalEntry),N=_(()=>(l(L)??l(A))?._i18n??Zi),D=_(()=>l(N).defaultLocale),B=_(()=>l(A)?.name),H=_(()=>l(L)?.name),W=_(()=>r()&&l(A)?ns(l(A)):""),Y=_(()=>r()&&l(A)?ns(l(A),{useSingular:!0}):""),O=_(()=>n()?.canPreview??!0),F=_(()=>l(x)||i()),K=_(()=>Object.values(n()?.validities??{}).map(ge=>Object.values(ge).map(({valid:ve})=>!ve)).flat(1).filter(Boolean).length),J=_(()=>l(B)&&l(I)&&Wi({collectionName:l(B),fileName:l(H)})?.entryRelative?B2({entry:l(I),collectionName:l(B),fileName:l(H),relative:!0}):[]),Q=_(()=>l(A)&&l(I)?sk(l(I),l(D),l(A),l(L)):void 0),oe=()=>{Qs(l(B)==="_singletons"?"/collections":`/collections/${l(B)}`)},re=async({skipCI:ge=void 0}={})=>{if(G(S,!0),!!l(A))try{const ve=await PJ({skipCI:ge});o()?.closeOnSave??!0?(oe(),Ge(We,null)):(l(x)&&Ht(`/collections/${l(B)}/entries/${ve.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:"backwards"}),tf({collection:l(A),collectionFile:l(L),originalEntry:ve,expanderStates:n()?.expanderStates}))}catch(ve){ve.message==="validation_failed"?G(b,!0):ve.message==="saving_failed"?(G(E,!0),G(k,ve.cause?.message??ve.message??s()("unexpected_error"),!0)):(G(E,!0),G(k,""),console.error(ve))}finally{G(S,!1)}};var ee=MJ(),ne=M(ee);{let ge=_(()=>s()("primary"));Si(ne,{variant:"primary",get"aria-label"(){return l(ge)},children:(ve,_e)=>{var $e=OJ(),Ce=M($e);{let ye=_(()=>s()("cancel_editing"));pl(Ce,{get"aria-label"(){return l(ye)},get useShortcut(){return o().closeWithEscape},onclick:()=>{oe()}})}var Re=j(Ce,2),He=z(Re);xr(He,{children:(ye,ot)=>{var Qe=X(),Ne=M(Qe);{var je=st=>{var lt=Ie();Z(xt=>te(lt,xt),[()=>s()("create_entry_title",{values:{name:l(Y)}})]),$(st,lt)},Xe=st=>{const lt=_(()=>l(L)?Fu(l(L)):l(A)&&l(I)&&r()?lc(l(A),l(I)):"");var xt=X(),Yt=M(xt);{var wn=on=>{var pt=Ie();Z(()=>te(pt,l(lt))),$(on,pt)},rn=on=>{var pt=Ie();Z(Mt=>te(pt,Mt),[()=>s()("edit_entry_title",{values:{collection:l(W),entry:l(lt)}})]),$(on,pt)};q(Yt,on=>{a()?on(wn):on(rn,!1)})}$(st,xt)};q(Ne,st=>{l(x)?st(je):st(Xe,!1)})}$(ye,Qe)},$$slots:{default:!0}});var Ye=j(Re,2);{var Ue=ye=>{{let ot=_(()=>s()("view_on_live_site"));Ze(ye,{variant:"tertiary",get label(){return l(ot)},onclick:()=>{window.open(l(Q))}})}};q(Ye,ye=>{!v()&&l(Q)&&ye(Ue)})}var Te=j(Ye,2);{var ze=ye=>{m(ye)};q(Te,ye=>{!a()&&!v()&&!l(L)&&!l(x)&&ye(ze)})}var Oe=j(Te,2);{const ye=Qe=>{{let Ne=_(()=>s()("editor_options"));ir(Qe,{get"aria-label"(){return l(Ne)},children:(je,Xe)=>{var st=IJ(),lt=M(st);{var xt=pt=>{m(pt)};q(lt,pt=>{a()&&!v()&&!l(L)&&!l(x)&&pt(xt)})}var Yt=j(lt,2);{let pt=_(()=>s()("edit_slug")),Mt=_(()=>!!l(L)||l(x)||l(T)||l(P)?.delete===!1);mt(Yt,{get label(){return l(pt)},get disabled(){return l(Mt)},onclick:()=>{G(y,!0)}})}var wn=j(Yt,2);{let pt=_(()=>s()("revert_all_changes")),Mt=_(()=>!l(F));mt(wn,{get label(){return l(pt)},get disabled(){return l(Mt)},onclick:()=>{Gy()}})}var rn=j(wn,2);{var on=pt=>{var Mt=NJ(),cn=M(Mt);Gr(cn,{});var En=j(cn,2);{let Kt=_(()=>s()("show_preview")),It=_(()=>u()?.showPreview),kt=_(()=>!l(O));jh(En,{get label(){return l(Kt)},get checked(){return l(It)},get disabled(){return l(kt)},onChange:()=>{zi.update((hn={})=>({...hn,showPreview:!hn.showPreview}))}})}var mn=j(En,2);{let Kt=_(()=>s()("sync_scrolling")),It=_(()=>u()?.syncScrolling),kt=_(()=>!l(O)&&Object.keys(n()?.currentValues??{}).length===1);jh(mn,{get label(){return l(Kt)},get checked(){return l(It)},get disabled(){return l(kt)},onChange:()=>{zi.update((hn={})=>({...hn,syncScrolling:!hn.syncScrolling}))}})}$(pt,Mt)};q(rn,pt=>{a()||c()||pt(on)})}$(je,st)},$$slots:{default:!0}})}};let ot=_(()=>s()("show_editor_options"));vt(Ir(Oe,{get disabled(){return v()},variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(ot)},popup:ye,$$slots:{popup:!0}}),Qe=>G(C,Qe,!0),()=>l(C))}var Ae=j(Oe,2);{var we=ye=>{{const ot=je=>{ir(je,{children:(Xe,st)=>{{let lt=_(()=>s()(f()?"save_and_publish":"save_without_publishing"));mt(Xe,{get label(){return l(lt)},onclick:()=>{re({skipCI:!f()})}})}},$$slots:{default:!0}})};let Qe=_(()=>s()(l(S)?"saving":"save")),Ne=_(()=>v()||!l(F)||l(S));oE(ye,{variant:"primary",get label(){return l(Qe)},get disabled(){return l(Ne)},keyShortcuts:"Accel+S",onclick:()=>{re()},popup:ot,$$slots:{popup:!0}})}},Pe=ye=>{{let ot=_(()=>s()(l(S)?"saving":"save")),Qe=_(()=>v()||!l(F)||l(S));Ze(ye,{variant:"primary",get label(){return l(ot)},get disabled(){return l(Qe)},keyShortcuts:"Accel+S",onclick:()=>{re()}})}};q(Ae,ye=>{d()?ye(we):ye(Pe,!1)})}$(ve,$e)},$$slots:{default:!0}})}var ae=j(ne,2);Qn(ae,{get show(){return l(b)},set show(ge){G(b,ge,!0)},children:(ge,ve)=>{Mn(ge,{status:"error",children:(_e,$e)=>{var Ce=Ie();Z(Re=>te(Ce,Re),[()=>s()(l(K)===1?"entry_validation_error":"entry_validation_errors",{values:{count:l(K)}})]),$(_e,Ce)},$$slots:{default:!0}})},$$slots:{default:!0}});var fe=j(ae,2);Qn(fe,{get id(){return h().id},get show(){return h().show},set show(ge){_t(Zg,Se(h).show=ge,Se(h))},children:(ge,ve)=>{const _e=_(()=>{const{status:$e,message:Ce,count:Re,sourceLanguage:He}=h();return{status:$e,message:Ce,count:Re,sourceLanguage:He}});Mn(ge,{get status(){return l(_e).status},children:($e,Ce)=>{var Re=Ie();Z(He=>te(Re,He),[()=>s()(`editor.${l(_e).message}`,{values:{count:l(_e).count,source:l(_e).sourceLanguage?Oi(l(_e).sourceLanguage):""}})]),$($e,Re)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=j(fe,2);vJ(be,{get open(){return l(y)},set open(ge){G(y,ge,!0)}});var pe=j(be,2);{let ge=_(()=>s()("delete_entry")),ve=_(()=>s()("delete"));bc(pe,{get title(){return l(ge)},get okLabel(){return l(ve)},onOk:async()=>{l(I)&&await D2([l(I).id],l(J).map(({path:_e})=>_e)),oe()},onClose:()=>{l(C)?.focus()},get open(){return l(w)},set open(_e){G(w,_e,!0)},children:(_e,$e)=>{var Ce=Ie();Z(Re=>te(Ce,Re),[()=>s()(l(J).length?"confirm_deleting_this_entry_with_assets":"confirm_deleting_this_entry")]),$(_e,Ce)},$$slots:{default:!0}})}var he=j(pe,2);{let ge=_(()=>s()("saving_entry.error.title"));zh(he,{get title(){return l(ge)},onClose:()=>{l(C)?.focus()},get open(){return l(E)},set open(ve){G(E,ve,!0)},children:(ve,_e)=>{var $e=DJ(),Ce=M($e),Re=j(Ce);{var He=Ye=>{var Ue=RJ(),Te=z(Ue);Z(()=>te(Te,l(k))),$(Ye,Ue)};q(Re,Ye=>{l(k)&&Ye(He)})}Z(Ye=>te(Ce,`${Ye??""} `),[()=>s()("saving_entry.error.description")]),$(ve,$e)},$$slots:{default:!0}})}$(t,ee),ce(),g()}var jJ=U('<div role="none"><!></div> <div role="none"><!></div>',1),BJ=U("<!> <!>",1),UJ=U("<!> <!>",1),qJ=U("<!> <!>",1),VJ=U('<div role="none" class="cols svelte-jrunrx"><!></div>'),HJ=U("<!> <!>",1),KJ=U('<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>',1);const GJ={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);transition:filter 250ms;}.wrapper[hidden].svelte-jrunrx {display:none;}.wrapper[inert].svelte-jrunrx {filter:opacity(0);}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) {flex:auto;overflow:hidden;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div {display:flex;flex-direction:column;min-width:480px;background-color:var(--sui-primary-background-color);transition:all 500ms;}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div[data-mode=edit] {flex:1 1;}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div[data-mode=preview] {flex:2 1;}
649
649
  @media (width < 768px) {.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div {min-width:auto;}
650
- }`};function GJ(t,e){le(e,!0),ke(t,KJ);const n=()=>V(We,"$entryDraft",f),r=()=>V(zi,"$entryEditorSettings",f),i=()=>V(ma,"$editorLeftPane",f),o=()=>V(po,"$editorRightPane",f),s=()=>V(ln,"$isSmallScreen",f),a=()=>V(Io,"$isMediumScreen",f),c=()=>V(ga,"$showContentOverlay",f),u=()=>V(ue,"$_",f),d=()=>V(Xg,"$showDuplicateToast",f),[f,h]=me();let p=!1,g=ie(!0),m=ie(void 0),v=ie(void 0),b=ie(void 0);const y=_(()=>n()?.isNew??!0),w=_(()=>n()?.collection),E=_(()=>l(w)?._type==="entry"?l(w):void 0),k=_(()=>n()?.collectionFile),S=_(()=>r()??{}),C=_(()=>l(S).showPreview),x=_(()=>(l(k)??l(w))?._i18n??Zi),T=_(()=>l(x).i18nEnabled),A=_(()=>l(x).allLocales),P=_(()=>l(x).defaultLocale),L=_(()=>n()?.canPreview??!0),I=_(()=>l(k)?.name?[l(w)?.name,l(k).name].join("|"):l(w)?.name),N=_(()=>l(E)?.create??!1),D=_(()=>l(E)?.limit??1/0),B=_(()=>!Sh(l(w))),H=async()=>{const[re,ee]=r()?.paneStates?.[l(I)??""]??[];return p||!re||!ee||re.locale&&!l(A).includes(re.locale)||ee.locale&&!l(A).includes(ee.locale)||(!l(C)||!l(L))&&(re.mode==="preview"||ee.mode==="preview")?!1:(p=!0,await ha(),Ge(ma,re),Ge(po,ee),await ha(),p=!1,(s()||a())&&Ge(po,null),!0)},W=async()=>{if(n()&&!await H())if(Ge(ma,{mode:"edit",locale:i()?.locale??l(P)}),s()||a())Ge(po,null);else if(!l(C)||!l(L)){const re=l(T)?l(A).filter(ee=>ee!==i()?.locale):[];Ge(po,re.length?{mode:"edit",locale:re[0]}:null)}else Ge(po,{mode:"preview",locale:i().locale})},Y=()=>{!l(w)||p||!i()||!o()||!l(I)||zi.update((re={})=>({...re,paneStates:{...re.paneStates,[l(I)]:[i(),o()]}}))},O=async()=>{await ha(),l(m)&&(l(m).tabIndex=0,l(m).focus())};Ft(()=>{l(m)?.addEventListener("transitionend",()=>{c()||(G(g,!0),Ge(We,null))})}),De(()=>{l(I)&&(Ge(ma,null),Ge(po,null))}),De(()=>{l(C),l(L),s(),a(),Se(()=>{W()})}),De(()=>{i(),o(),Y()}),De(()=>{l(m)&&(c()?l(g)&&(G(g,!1),W(),O(),xH()):wH())});var F=HJ(),K=M(F),J=z(K);Xn(J,()=>n()?.createdAt,re=>{var ee=VJ(),ne=M(ee);{let pe=_(()=>l(y)&&l(B));FJ(ne,{get disabled(){return l(pe)}})}var ae=j(ne,2);{var fe=pe=>{},be=pe=>{var he=X(),ge=M(he);{var ve=$e=>{hr($e,{children:(Ce,Re)=>{var He=zJ(),Ye=M(He),Ue=z(Ye);{var Te=we=>{var Pe=Ie();Z(ye=>te(Pe,ye),[()=>u()("creating_entries_disabled_by_admin")]),$(we,Pe)},ze=we=>{var Pe=Ie();Z(ye=>te(Pe,ye),[()=>u()("creating_entries_disabled_by_limit",{values:{limit:l(D)}})]),$(we,Pe)};q(Ue,we=>{l(N)?we(ze,!1):we(Te)})}var Oe=j(Ye,2),Ae=z(Oe);Ze(Ae,{variant:"primary",onclick:()=>{Ht(`/collection/${l(w)?.name}`,{replaceState:!0,transitionType:"backwards"})},children:(we,Pe)=>{var ye=Ie();Z(ot=>te(ye,ot),[()=>u()("back_to_collection")]),$(we,ye)},$$slots:{default:!0}}),$(Ce,He)},$$slots:{default:!0}})},_e=$e=>{var Ce=qJ(),Re=z(Ce);{var He=Ye=>{var Ue=UJ(),Te=M(Ue);{var ze=we=>{const Pe=_(()=>{const{locale:ye,mode:ot}=i()??{};return{locale:ye,mode:ot}});{let ye=_(()=>u()(l(Pe).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Oi(l(Pe).locale)}}));No(we,{class:"pane",get"aria-label"(){return l(ye)},get"data-locale"(){return l(Pe).locale},get"data-mode"(){return l(Pe).mode},children:(ot,Qe)=>{var Ne=jJ(),je=M(Ne);R2(je,{id:"left-pane-header",get thisPane(){return ma},get thatPane(){return po}});var Xe=j(je,2);I2(Xe,{id:"left-pane-body",get thisPane(){return ma},get thisPaneContentArea(){return l(v)},set thisPaneContentArea(st){G(v,st,!0)},get thatPaneContentArea(){return l(b)},set thatPaneContentArea(st){G(b,st,!0)}}),$(ot,Ne)},$$slots:{default:!0}})}};q(Te,we=>{i()&&we(ze)})}var Oe=j(Te,2);{var Ae=we=>{const Pe=_(()=>{const{locale:ye,mode:ot}=o()??{};return{locale:ye,mode:ot}});{let ye=_(()=>u()(l(Pe).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Oi(l(Pe).locale)}}));No(we,{get"aria-label"(){return l(ye)},get"data-locale"(){return l(Pe).locale},get"data-mode"(){return l(Pe).mode},children:(ot,Qe)=>{var Ne=BJ(),je=M(Ne);R2(je,{id:"right-pane-header",get thisPane(){return po},get thatPane(){return ma}});var Xe=j(je,2);I2(Xe,{id:"right-pane-body",get thisPane(){return po},get thisPaneContentArea(){return l(b)},set thisPaneContentArea(st){G(b,st,!0)},get thatPaneContentArea(){return l(v)},set thatPaneContentArea(st){G(v,st,!0)}}),$(ot,Ne)},$$slots:{default:!0}})}};q(Oe,we=>{o()&&we(Ae)})}$(Ye,Ue)};q(Re,Ye=>{l(w)&&Ye(He)})}$($e,Ce)};q(ge,$e=>{l(y)&&l(B)?$e(ve):$e(_e,!1)},!0)}$(pe,he)};q(ae,pe=>{n()?pe(be,!1):pe(fe)})}$(re,ee)}),vt(K,re=>G(m,re),()=>l(m));var Q=j(K,2);SH(Q,{});var oe=j(Q,2);Qn(oe,{get show(){return Jg(),d()},set show(re){Ge(Xg,re)},children:(re,ee)=>{Mn(re,{status:"success",children:(ne,ae)=>{var fe=Ie();Z(be=>te(fe,be),[()=>u()("entry_duplicated")]),$(ne,fe)},$$slots:{default:!0}})},$$slots:{default:!0}}),Z(re=>{Ee(K,"hidden",l(g)),K.inert=!c(),Ee(K,"aria-label",re)},[()=>u()("content_editor")]),$(t,F),ce(),h()}const U2=t=>{if(Array.isArray(t))return{options:t};if(Gt(t)){const{filters:e,default:n}=t;if(Array.isArray(e)){const r=n?e.find(({name:i})=>i===n):void 0;return{options:e,default:r?{field:r.field,pattern:r.pattern}:void 0}}}return{options:[]}},WJ=(t,e,n)=>{const{name:r,view_filters:i=[],_i18n:{defaultLocale:o}}=e,{options:s}=U2(i),a=n.filter(({field:c,pattern:u})=>c!==void 0&&u!==void 0&&s.some(d=>d.field===c&&String(d.pattern)===String(u)));return t.filter(c=>a.every(({field:u,pattern:d})=>{const f={entry:c,locale:o,collectionName:r,key:u},h=Vu({...f,resolveRef:!1}),p=Vu({...f}),g=fc(d);return h===void 0||p===void 0?!1:g?g.test(String(h))||g.test(String(p)):h===d||p===d}))},YJ=Qt([Kn],([t],e)=>{if(!t||!("folder"in t)){e([]);return}const{options:n,default:r}=U2(t.view_filters);e(n),Zr.update(i=>({...i,filters:i.filters??(r?[r]:void 0)}))}),JJ=t=>{if(Array.isArray(t))return{options:t};if(Gt(t)){const{groups:e,default:n}=t;if(Array.isArray(e)){const r=n?e.find(({name:i})=>i===n):void 0;return{options:e,default:r?{field:r.field,pattern:r.pattern}:void 0}}}return{options:[]}},XJ=(t,e,n)=>{const{field:r,pattern:i}=n??{field:"",pattern:void 0};if(!r)return t.length?[{name:"*",entries:t}]:[];const{name:o,_i18n:{defaultLocale:s}}=e,a=se(Zr).sort,c=fc(i),u={},d=se(ue)("other");t.forEach(h=>{const p=Vu({entry:h,locale:s,collectionName:o,key:r}),g=p===void 0?d:c?String(p).match(c)?.[0]??d:String(p);g in u||(u[g]=[]),u[g].push(h)});const f=Object.entries(u).map(([h,p])=>({name:h,entries:p})).sort(({name:h},{name:p})=>vi(h,p));return a?.key===r&&a.order==="descending"&&f.reverse(),f},ZJ=Qt([Kn],([t],e)=>{if(!t||!("folder"in t)){e([]);return}const{options:n,default:r}=JJ(t.view_groups);e(n),Zr.update(i=>({...i,group:i.group===void 0?r:i.group}))}),Zc=nt(),QJ=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new mo(e,"ui-settings"):null,r="contents-view";Zc.set(await n?.get(r)??{}),Zc.subscribe(i=>{(async()=>{try{an(i,await n?.get(r))||await n?.set(r,i)}catch{}})()}),Zr.subscribe(i=>{const{name:o}=se(Kn)??{},s=se(Zc)?.[o??""]??{};o&&!an(i,s)&&Zc.update(a=>({...a,[o]:i}))})};bn.subscribe(t=>{t&&!se(Zc)&&QJ(t)});const q2=["title","name","date","author","description"],Wy={slug:String,commit_author:String,commit_date:Date},V2=Object.keys(Wy),H2=t=>Array.isArray(t)&&t.every(e=>typeof e=="string"),eX=t=>{if(H2(t))return{keys:t};if(Gt(t)){const{fields:e,default:n}=t;return H2(e)?Gt(n)?{keys:e,defaultKey:n.field,defaultOrder:["descending","Descending"].includes(n.direction??"")?"descending":"ascending"}:{keys:e}:{keys:[]}}return{keys:[]}},tX=t=>{if(t){const e=q2.filter(n=>n!==t);return{keys:[t,...e],defaultKey:t}}return{keys:[...q2]}},nX=({collection:t,isCommitAuthorAvailable:e,isCommitDateAvailable:n})=>{const{name:r,identifier_field:i,sortable_fields:o}=t;let{keys:s,defaultKey:a,defaultOrder:c}=o?eX(o):tX(i);const u=s.includes("commit_author"),d=s.includes("commit_date");return e?!s.includes("author")&&!u&&s.push("commit_author"):u&&(s=s.filter(f=>f!=="commit_author")),n?!s.includes("date")&&!d&&s.push("commit_date"):d&&(s=s.filter(f=>f!=="commit_date")),s=Ru(s).filter(f=>!!f&&(V2.includes(f)||!!fn({collectionName:r,keyPath:f}))),a=a&&s.includes(a)?a:s[0],c??=a?"ascending":void 0,{keys:s,default:{key:a,order:c}}},rX=({key:t,fieldConfig:e})=>{if(t in Wy)return Wy[t];if(e?.widget==="boolean")return Boolean;if(e?.widget==="number"){const{value_type:n="int"}=e;if(n==="int"||n==="float")return Number}return String},iX=({collection:t,key:e})=>[...V2,"name"].includes(e)?se(ue)(`sort_keys.${e}`):e.includes(".")?e.split(".").map((n,r,i)=>{if(/^\d+$/.test(n))return;const o=i.slice(0,r+1).join(".");return fn({collectionName:t.name,keyPath:o})?.label||n}).filter(Boolean).join(" – "):t.fields?.find(({name:n})=>n===e)?.label||e,oX=Qt([Kn,ri,zt],([t,e],n)=>{if(!t||!("folder"in t)){n([]);return}const r=se(Zc)?.[t.name]??{type:"list"},{keys:i,default:o}=nX({collection:t,isCommitAuthorAvailable:e.some(s=>!!s.commitAuthor),isCommitDateAvailable:e.some(s=>!!s.commitDate)});r.sort??=o,n(i.map(s=>({key:s,label:iX({collection:t,key:s})}))),an(r,se(Zr))||Zr.set(r)}),K2=t=>{let e=t,n=!0;for(;n;){const r=e;e=e.replaceAll(/([_*`~])([^_*`~]+)\1/g,"$2"),e=e.replaceAll(/([_*`~]{2,})(.+?)\1/g,"$2"),n=e!==r}return e},sX=["title","summary","description"],aX=(t,e,{key:n,order:r}={})=>{const i=[...t];if(n===void 0)return i;const{name:o,_i18n:{defaultLocale:s}}=e,a=fn({collectionName:o,keyPath:n}),c=rX({key:n,fieldConfig:a}),u=Object.fromEntries(i.map(p=>[p.slug,Vu({entry:p,locale:s,collectionName:o,key:n})])),d=a?.widget==="datetime"?a:void 0,f=a?.widget==="markdown"||sX.includes(n);i.sort((p,g)=>{const m=u[p.slug],v=u[g.slug];if(d){const b=m?ec(m,d):void 0,y=v?ec(v,d):void 0;return Number(b??0)-Number(y??0)}if(c===String){const b=m?String(m):"",y=v?String(v):"";return f?vi(K2(b),K2(y)):vi(b,y)}return Number(m??0)-Number(v??0)}),r==="descending"&&i.reverse();const h=ii(e)?.name;if(h){const p=i.findIndex(g=>g.slug===h);p>-1&&i.unshift(i.splice(p,1)[0])}return i},Zr=nt({type:"list"}),na=Qt([ri,Kn],([t,e],n)=>{n(t&&e?wo(e.name):[])});let G2="";const Yy=Qt([na,Zr,zt],([t,e],n)=>{const r=JSON.stringify({_listedEntries:t,_currentView:e});if(r===G2)return;G2=r,n([]);const i=se(Kn);let o=[...t];if(!o.length||Ds(i,o[0]).length)return;e.sort&&(o=aX(o,i,e.sort)),e.filters&&(o=WJ(o,i,e.filters));const s=XJ(o,i,e.group);an(se(Yy),s)||n(s)});na.subscribe(t=>{hc.set([]),se(dt).devModeEnabled&&console.info("listedEntries",t)}),Kn.subscribe(t=>{t&&se(dt).devModeEnabled&&console.info("selectedCollection",t)});var lX=U("<!> <!>",1),cX=U('<div role="none" class="label svelte-cy8v6x"><!></div>'),uX=U("<!> <!> <!>",1);const dX={hash:"svelte-cy8v6x",code:".label.svelte-cy8v6x .icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}"};function fX(t,e){le(e,!0),ke(t,dX);const n=()=>V(na,"$listedEntries",a),r=()=>V(ln,"$isSmallScreen",a),i=()=>V(Io,"$isMediumScreen",a),o=()=>V(hc,"$selectedEntries",a),s=()=>V(zt,"$appLocale",a),[a,c]=me(),u=d=>{hc.update(f=>{const h=f.indexOf(e.entry);return d&&h===-1&&f.push(e.entry),!d&&h>-1&&f.splice(h,1),f})};{let d=_(()=>n().indexOf(e.entry));sd(t,{get"aria-rowindex"(){return l(d)},onChange:f=>{u(f.detail.selected)},onclick:()=>{Ht(`/collections/${e.collection.name}/entries/${e.entry.subPath}`,{transitionType:"forwards"})},children:(f,h)=>{var p=uX(),g=M(p);{var m=w=>{_i(w,{class:"checkbox",children:(E,k)=>{{let S=_(()=>o().includes(e.entry));od(E,{role:"none",tabindex:"-1",get checked(){return l(S)},onChange:({detail:{checked:C}})=>{u(C)}})}},$$slots:{default:!0}})};q(g,w=>{r()||i()||w(m)})}var v=j(g,2);{var b=w=>{_i(w,{class:"image",children:(E,k)=>{var S=X(),C=M(S);Xt(C,()=>j2(e.collection,e.entry),null,(x,T)=>{var A=X(),P=M(A);{var L=I=>{{let N=_(()=>e.viewType==="list"?"icon":"tile");Ty(I,{get src(){return l(T)},get variant(){return l(N)},cover:!0})}};q(P,I=>{l(T)&&I(L)})}$(x,A)}),$(E,S)},$$slots:{default:!0}})};q(v,w=>{e.collection._thumbnailFieldNames.length&&w(b)})}var y=j(v,2);_i(y,{class:"title",children:(w,E)=>{var k=cX(),S=z(k);xr(S,{lines:2,children:(C,x)=>{var T=lX(),A=M(T);Xn(A,s,I=>{var N=X(),D=M(N);cr(D,()=>lc(e.collection,e.entry,{useTemplate:!0,allowMarkdown:!0})),$(I,N)});var P=j(A,2);{var L=I=>{{let N=_(()=>ii(e.collection)?.icon);Je(I,{get name(){return l(N)},class:"home"})}};q(P,I=>{_o(e.collection,e.entry)&&I(L)})}$(C,T)},$$slots:{default:!0}}),$(w,k)},$$slots:{default:!0}}),$(f,p)},$$slots:{default:!0}})}ce(),c()}var hX=U("<!> <!>",1);function W2(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",s),r=()=>V(ri,"$allEntries",s),i=()=>V(zt,"$appLocale",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=R(e,"label",3,void 0),u=R(e,"keyShortcuts",3,void 0);const d=_(()=>!Sh(n())),f=_(()=>r()&&n()?HD(n()):!1),h=_(()=>i()&&n()?ii(n())?.label:""),p=_(()=>l(f)?oE:Ze),g=(b=!1)=>{Ht(`/collections/${e.collectionName}/new`,{state:{index:b},transitionType:"forwards"})};var m=X(),v=M(m);{const b=k=>{Je(k,{name:"edit"})},y=k=>{var S=X(),C=M(S);{var x=T=>{ir(T,{children:(A,P)=>{var L=hX(),I=M(L);{let D=_(()=>o()("entry"));mt(I,{get label(){return l(D)},onclick:()=>g()})}var N=j(I,2);mt(N,{get label(){return l(h)},onclick:()=>g(!0)}),$(A,L)},$$slots:{default:!0}})};q(C,T=>{l(f)&&T(x)})}$(k,S)};let w=_(()=>!c()),E=_(()=>o()("create_new_entry"));Bn(v,()=>l(p),(k,S)=>{S(k,{variant:"primary",get iconic(){return l(w)},get disabled(){return l(d)},get label(){return c()},get"aria-label"(){return l(E)},get keyShortcuts(){return u()},onclick:()=>g(),startIcon:b,popup:y,$$slots:{startIcon:!0,popup:!0}})})}$(t,m),ce(),a()}var pX=U('<span role="none"> </span>'),gX=U('<span role="none"> </span> <!>',1),mX=U('<span role="none"> </span>');function vX(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",a),r=()=>V(Zr,"$currentView",a),i=()=>V(Yy,"$entryGroups",a),o=()=>V(ue,"$_",a),s=()=>V(na,"$listedEntries",a),[a,c]=me(),u=_(n),d=_(()=>r().type),f=_(()=>i().map(({entries:h})=>h).flat(1));{let h=_(()=>o()("entry_list"));Ay(t,{get"aria-label"(){return l(h)},children:(p,g)=>{var m=X(),v=M(m);{var b=w=>{var E=X(),k=M(E);{var S=x=>{const T=_(()=>{const{defaultLocale:A}=l(u)._i18n;return{defaultLocale:A}});{let A=_(()=>o()("entries"));Yd(x,{get viewType(){return l(d)},id:"entry-list",get"aria-label"(){return l(A)},get"aria-rowcount"(){return s().length},children:(P,L)=>{var I=X(),N=M(I);it(N,1,i,({name:D,entries:B})=>D,(D,B)=>{let H=()=>l(B).name,W=()=>l(B).entries;var Y=X(),O=M(Y);Xt(O,Lt,null,F=>{{let K=_(()=>H()!=="*"?H():void 0);aE(F,{get label(){return l(K)},children:(J,Q)=>{{const oe=(ee,ne=Be)=>{var ae=X(),fe=M(ae);Xt(fe,Lt,null,be=>{fX(be,{get collection(){return l(u)},get entry(){return ne()},get viewType(){return l(d)}})}),$(ee,ae)};let re=_(()=>W().filter(({locales:ee})=>!!(ee[l(T).defaultLocale]??Object.values(ee)[0])?.content));Ma(J,{get items(){return l(re)},itemKey:"id",renderItem:oe,$$slots:{renderItem:!0}})}},$$slots:{default:!0}})}}),$(D,Y)}),$(P,I)},$$slots:{default:!0}})}},C=x=>{var T=X(),A=M(T);{var P=I=>{hr(I,{children:(N,D)=>{var B=pX(),H=z(B);Z(W=>te(H,W),[()=>o()("no_entries_found")]),$(N,B)},$$slots:{default:!0}})},L=I=>{hr(I,{children:(N,D)=>{var B=gX(),H=M(B),W=z(H),Y=j(H,2);{let O=_(()=>o()("create_new_entry"));W2(Y,{get collectionName(){return l(u).name},get label(){return l(O)}})}Z(O=>te(W,O),[()=>o()("no_entries_created")]),$(N,B)},$$slots:{default:!0}})};q(A,I=>{s().length?I(P):I(L,!1)},!0)}$(x,T)};q(k,x=>{l(f).length?x(S):x(C,!1)})}$(w,E)},y=w=>{hr(w,{children:(E,k)=>{var S=mX(),C=z(S);Z(x=>te(C,x),[()=>o()("collection_not_found")]),$(E,S)},$$slots:{default:!0}})};q(v,w=>{l(u)?w(b):w(y,!1)})}$(p,m)},$$slots:{default:!0}})}ce(),c()}var bX=U('<div role="none" class="label svelte-1nfjp1"><!> <!></div>'),_X=U('<span role="none"> </span>');const yX={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 wX(t,e){le(e,!0),ke(t,yX);const n=()=>V(Kn,"$selectedCollection",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=_(()=>n()?.files.filter(fh)??[]);{let a=_(()=>r()("file_list"));Ay(t,{get"aria-label"(){return l(a)},children:(c,u)=>{var d=X(),f=M(d);{var h=g=>{{let m=_(()=>r()("files"));Yd(g,{viewType:"list",get"aria-label"(){return l(m)},get"aria-rowcount"(){return l(s).length},children:(v,b)=>{Ma(v,{get items(){return l(s)},itemKey:"name",renderItem:(w,E)=>{let k=()=>E?.().name,S=()=>E?.().label,C=()=>E?.().icon;var x=X(),T=M(x);Xt(T,Lt,null,A=>{sd(A,{onclick:()=>{Ht(`/collections/${n()?.name}/entries/${k()}`,{transitionType:"forwards"})},children:(P,L)=>{_i(P,{class:"title",children:(I,N)=>{var D=bX(),B=z(D);{var H=Y=>{Je(Y,{get name(){return C()}})};q(B,Y=>{C()&&Y(H)})}var W=j(B,2);xr(W,{lines:2,children:(Y,O)=>{var F=Ie();Z(()=>te(F,S()||k())),$(Y,F)},$$slots:{default:!0}}),$(I,D)},$$slots:{default:!0}})},$$slots:{default:!0}})}),$(w,x)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},p=g=>{hr(g,{children:(m,v)=>{var b=_X(),y=z(b);Z(w=>te(y,w),[()=>r()("no_files_in_collection")]),$(m,b)},$$slots:{default:!0}})};q(f,g=>{l(s)?.length?g(h):g(p,!1)})}$(c,d)},$$slots:{default:!0}})}ce(),o()}var xX=U('<div class="wrapper svelte-w0jevb"><!></div>');const kX={hash:"svelte-w0jevb",code:".wrapper.svelte-w0jevb {display:contents;}"};function SX(t,e){le(e,!0),ke(t,kX);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>e.file.name),s=_(()=>e.file.label),a=_(()=>e.file.icon);let c=ie(!1),u=ie(void 0);var d=xX(),f=z(d);{const h=g=>{{let m=_(()=>l(a)||"edit_document");Je(g,{get name(){return l(m)}})}};let p=_(()=>l(s)||l(o));kr(f,{get label(){return l(p)},onSelect:()=>{Ge(ci,n()("singleton_selected_announcement",{values:{file:l(s)||l(o)}}))},onclick:()=>{Ht(`/collections/_singletons/entries/${l(o)}`,{transitionType:"forwards"}),G(c,!1),l(u)?.querySelector('[role="option"]')?.classList.remove("focused")},get selected(){return l(c)},set selected(g){G(c,g,!0)},startIcon:h,$$slots:{startIcon:!0}})}vt(d,h=>G(u,h),()=>l(u)),$(t,d),ce(),i()}var EX=U("<!> <!>",1);function Y2(t,e){le(e,!0);const n=()=>V(dt,"$prefs",c),r=()=>V(bn,"$backend",c),i=()=>V(Nh,"$isLastCommitPublished",c),o=()=>V(Sy,"$skipCIConfigured",c),s=()=>V(ln,"$isSmallScreen",c),a=()=>V(ue,"$_",c),[c,u]=me(),d=_(()=>n().deployHookURL),f=_(()=>r()?.triggerDeployment),h=_(()=>(!!l(d)||typeof l(f)=="function")&&!i());let p=ie("info"),g=ie(!1);const m=async()=>{G(p,"info"),G(g,!0);try{const{ok:w,status:E}=l(d)?await fetch(l(d),{method:"POST",mode:"no-cors"}):await l(f)?.()??{};if(!w&&E!==0)throw new Error(`Webhook returned ${E} error`);Ge(Nh,!0)}catch(w){G(p,"error"),G(g,!0),console.error(w)}};var v=X(),b=M(v);{var y=w=>{var E=EX(),k=M(E);{let C=_(()=>s()?"small":"medium"),x=_(()=>a()("publish_changes")),T=_(()=>!l(h));Ze(k,{variant:"secondary",get size(){return l(C)},get label(){return l(x)},get disabled(){return l(T)},onclick:()=>m()})}var S=j(k,2);Qn(S,{get show(){return l(g)},set show(C){G(g,C,!0)},children:(C,x)=>{Mn(C,{get status(){return l(p)},children:(T,A)=>{var P=Ie();Z(L=>te(P,L),[()=>a()(l(p)==="error"?"publishing_changes_failed":"publishing_changes")]),$(T,P)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(w,E)};q(b,w=>{o()&&w(y)})}$(t,v),ce(),u()}var $X=U("<header><h2> </h2> <!></header> <!>",1),TX=U('<span class="count"> </span>'),CX=U('<span class="count"> </span>'),AX=U("<!> <!>",1),PX=U('<div role="none" class="primary-sidebar"><!> <!></div>');function LX(t,e){le(e,!0);const n=()=>V(zt,"$appLocale",c),r=()=>V(Et,"$siteConfig",c),i=()=>V(ln,"$isSmallScreen",c),o=()=>V(ue,"$_",c),s=()=>V(Kn,"$selectedCollection",c),a=()=>V(ri,"$allEntries",c),[c,u]=me(),d=_(()=>Intl.NumberFormat(n()??void 0)),f=_(()=>r()?.collections?.filter(({hide:b})=>!b)??[]),h=_(()=>r()?.singletons??[]);var p=PX(),g=z(p);{var m=b=>{var y=$X(),w=M(y),E=z(w),k=z(E),S=j(E,2);Y2(S,{});var C=j(w,2);Gp(C,{onclick:x=>{x.preventDefault(),Ht("/search")}}),Z(x=>te(k,x),[()=>o()("contents")]),$(b,y)};q(g,b=>{i()&&b(m)})}var v=j(g,2);{let b=_(()=>o()("collection_list"));_c(v,{get"aria-label"(){return l(b)},"aria-controls":"collection-container",children:(y,w)=>{var E=AX(),k=M(E);{var S=T=>{{let A=_(()=>o()("collections"));Da(T,{get label(){return l(A)},children:(P,L)=>{var I=X(),N=M(I);it(N,19,()=>l(f),(D,B)=>D.name??B,(D,B)=>{var H=X(),W=M(H);Xt(W,Lt,null,Y=>{var O=X(),F=M(O);{var K=Q=>{const oe=_(()=>{const{name:re,label:ee,icon:ne}=l(B);return{name:re,label:ee,icon:ne}});{const re=fe=>{{let be=_(()=>l(oe).icon||"bookmark_manager");Je(fe,{get name(){return l(be)}})}},ee=fe=>{var be=X(),pe=M(be);Xn(pe,a,he=>{const ge=_(()=>("files"in l(B)?l(B).files:wo(l(oe).name)).length);var ve=TX(),_e=z(ve);Z(($e,Ce)=>{Ee(ve,"aria-label",`(${$e??""})`),te(_e,Ce)},[()=>o()(l(ge)>1?"many_entries":l(ge)===1?"one_entry":"no_entries",{values:{count:l(ge)}}),()=>l(d).format(l(ge))]),$(he,ve)}),$(fe,be)};let ne=_(()=>l(oe).label||l(oe).name),ae=_(()=>i()?!1:s()?.name===l(oe).name);kr(Q,{get label(){return l(ne)},get selected(){return l(ae)},onSelect:()=>{Ht(`/collections/${l(oe).name}`,{transitionType:"forwards"})},startIcon:re,endIcon:ee,$$slots:{startIcon:!0,endIcon:!0}})}},J=Q=>{var oe=X(),re=M(oe);{var ee=ne=>{Gr(ne,{})};q(re,ne=>{l(B).divider&&ne(ee)},!0)}$(Q,oe)};q(F,Q=>{"divider"in l(B)?Q(J,!1):Q(K)})}$(Y,O)}),$(D,H)}),$(P,I)},$$slots:{default:!0}})}};q(k,T=>{l(f).length&&T(S)})}var C=j(k,2);{var x=T=>{var A=X(),P=M(A);{var L=N=>{{let D=_(()=>o()("files"));Da(N,{get label(){return l(D)},children:(B,H)=>{var W=X(),Y=M(W);it(Y,19,()=>l(h),(O,F)=>O.name??F,(O,F)=>{var K=X(),J=M(K);Xt(J,Lt,null,Q=>{var oe=X(),re=M(oe);{var ee=ae=>{SX(ae,{get file(){return l(F)}})},ne=ae=>{var fe=X(),be=M(fe);{var pe=he=>{Gr(he,{})};q(be,he=>{l(F).divider&&he(pe)},!0)}$(ae,fe)};q(re,ae=>{"divider"in l(F)?ae(ne,!1):ae(ee)})}$(Q,oe)}),$(O,K)}),$(B,W)},$$slots:{default:!0}})}},I=N=>{const D=_(()=>l(h).length);{let B=_(()=>o()("collections"));Da(N,{get label(){return l(B)},children:(H,W)=>{{const Y=J=>{Je(J,{name:"bookmark_manager"})},O=J=>{var Q=CX(),oe=z(Q);Z((re,ee)=>{Ee(Q,"aria-label",`(${re??""})`),te(oe,ee)},[()=>o()(l(D)>1?"many_entries":l(D)===1?"one_entry":"no_entries",{values:{count:l(D)}}),()=>l(d).format(l(D))]),$(J,Q)};let F=_(()=>o()("files")),K=_(()=>s()?.name==="_singletons");kr(H,{get label(){return l(F)},get selected(){return l(K)},onSelect:()=>{Ht("/collections/_singletons",{transitionType:"forwards"})},startIcon:Y,endIcon:O,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};q(P,N=>{i()||l(f).length?N(L):N(I,!1)})}$(T,A)};q(C,T=>{l(h).length&&T(x)})}$(y,E)},$$slots:{default:!0}})}$(t,p),ce(),u()}function NX(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",s),r=()=>V(hc,"$selectedEntries",s),i=()=>V(ue,"$_",s),o=()=>V(na,"$listedEntries",s),[s,a]=me();let c=R(e,"open",15,!1);const u=_(()=>{const d=n()?.name;return r().length&&d&&Wi({collectionName:d})?.entryRelative?r().map(f=>B2({entry:f,collectionName:d,relative:!0})).flat(1):[]});{let d=_(()=>r().length===1?i()("delete_entry"):i()("delete_entries")),f=_(()=>i()("delete"));bc(t,{get title(){return l(d)},get okLabel(){return l(f)},onOk:()=>{D2(r().map(({id:h})=>h),l(u).map(({path:h})=>h))},get open(){return c()},set open(h){c(h)},children:(h,p)=>{var g=X(),m=M(g);{var v=y=>{var w=Ie();Z(E=>te(w,E),[()=>i()(l(u).length?"confirm_deleting_selected_entry_with_assets":"confirm_deleting_selected_entry")]),$(y,w)},b=y=>{var w=X(),E=M(w);{var k=C=>{var x=Ie();Z(T=>te(x,T),[()=>i()(l(u).length?"confirm_deleting_all_entries_with_assets":"confirm_deleting_all_entries")]),$(C,x)},S=C=>{var x=Ie();Z(T=>te(x,T),[()=>i()(l(u).length?"confirm_deleting_selected_entries_with_assets":"confirm_deleting_selected_entries",{values:{count:r().length}})]),$(C,x)};q(E,C=>{r().length===o().length?C(k):C(S,!1)},!0)}$(y,w)};q(m,y=>{r().length===1?y(v):y(b,!1)})}$(h,g)},$$slots:{default:!0}})}ce(),a()}var IX=U('<div role="none" class="description svelte-83jnuc"><!></div>'),OX=U("<!> <!>",1),RX=U('<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>',1),DX=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1),MX=U("<!> <!>",1),FX=U("<!> <!>",1);const zX={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 jX(t,e){le(e,!0),ke(t,zX);const n=()=>V(Kn,"$selectedCollection",c),r=()=>V(zt,"$appLocale",c),i=()=>V(ue,"$_",c),o=()=>V(ln,"$isSmallScreen",c),s=()=>V(hc,"$selectedEntries",c),a=()=>V(na,"$listedEntries",c),[c,u]=me();let d=ie(!1);const f=T=>Nr.sanitize(Rt.parseInline(T),{ALLOWED_TAGS:["strong","em","del","code","a"],ALLOWED_ATTR:["href"]}),h=_(()=>n()?.name??""),p=_(()=>n()?.description),g=_(()=>!Sh(n())),m=_(()=>r()&&n()?ns(n()):l(h)),v=_(()=>{const T=n();return T?._type==="entry"?{isEntryCollection:!0,canCreate:T.create??!1,canDelete:T.delete??!0,limit:T.limit??1/0}:{isEntryCollection:!1,canCreate:!1,canDelete:!1,limit:1/0}}),b=_(()=>l(v).isEntryCollection),y=_(()=>l(v).canCreate),w=_(()=>l(v).canDelete),E=_(()=>l(v).limit);var k=FX(),S=M(k);{var C=T=>{var A=MX(),P=M(A);{let N=_(()=>i()("collection"));Si(P,{variant:"primary",get"aria-label"(){return l(N)},children:(D,B)=>{var H=RX(),W=M(H);{var Y=ee=>{{let ne=_(()=>i()("back_to_collection_list"));pl(ee,{get"aria-label"(){return l(ne)},onclick:()=>{Qs("/collections")}})}};q(W,ee=>{o()&&ee(Y)})}var O=j(W,2),F=z(O),K=j(O,2);{var J=ee=>{Wr(ee,{flex:!0})},Q=ee=>{var ne=IX(),ae=z(ne);xr(ae,{children:(fe,be)=>{var pe=X(),he=M(pe);cr(he,()=>f(l(p)||"")),$(fe,pe)},$$slots:{default:!0}}),$(ee,ne)};q(K,ee=>{o()?ee(J):ee(Q,!1)})}var oe=j(K,2);{var re=ee=>{var ne=OX(),ae=M(ne);{var fe=pe=>{{let he=_(()=>i()("delete")),ge=_(()=>s().length===1?i()("delete_selected_entry"):i()("delete_selected_entries")),ve=_(()=>!s().length||!l(w));Ze(pe,{variant:"ghost",get label(){return l(he)},get"aria-label"(){return l(ge)},get disabled(){return l(ve)},onclick:()=>{G(d,!0)}})}};q(ae,pe=>{o()||pe(fe)})}var be=j(ae,2);nE(be,{children:(pe,he)=>{var ge=X(),ve=M(ge);{var _e=$e=>{{let Ce=_(()=>o()?void 0:i()("create"));W2($e,{get collectionName(){return l(h)},get label(){return l(Ce)},keyShortcuts:"Accel+E"})}};q(ve,$e=>{(!o()||a().length&&!l(g))&&$e(_e)})}$(pe,ge)},$$slots:{default:!0}}),$(ee,ne)};q(oe,ee=>{l(b)&&ee(re)})}Z(()=>te(F,l(m))),$(D,H)},$$slots:{default:!0}})}var L=j(P,2);{var I=N=>{var D=DX(),B=M(D);Il(B,()=>({"--sui-infobar-border-width":"1px 0","--sui-infobar-message-justify-content":"center"})),Mh(B.lastChild,{dismissible:!1,children:(H,W)=>{var Y=X(),O=M(Y);{var F=J=>{var Q=Ie();Z(oe=>te(Q,oe),[()=>i()("creating_entries_disabled_by_admin")]),$(J,Q)},K=J=>{var Q=Ie();Z(oe=>te(Q,oe),[()=>i()("creating_entries_disabled_by_limit",{values:{limit:l(E)}})]),$(J,Q)};q(O,J=>{l(y)?J(K,!1):J(F)})}$(H,Y)},$$slots:{default:!0}}),$(N,D)};q(L,N=>{l(b)&&l(g)&&N(I)})}$(T,A)};q(S,T=>{n()&&T(C)})}var x=j(S,2);NX(x,{get open(){return l(d)},set open(T){G(d,T,!0)}}),$(t,k),ce(),u()}function BX(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",a),r=()=>V(Vd,"$isLargeScreen",a),i=()=>V(Zr,"$currentView",a),o=()=>V(ue,"$_",a),s=()=>V(Dn,"$allAssets",a),[a,c]=me(),u=_(()=>Wi({collectionName:n()?.name})),d=_(()=>l(u)??{internalPath:void 0,entryRelative:!1,hasTemplateTags:!1}),f=_(()=>l(d).internalPath),h=_(()=>l(d).entryRelative),p=_(()=>l(d).hasTemplateTags),g=_(()=>l(h)||l(p));var m=X(),v=M(m);{var b=y=>{{let w=_(()=>o()("collection_assets"));No(y,{id:"collection-assets",class:"secondary-sidebar",get"aria-label"(){return l(w)},children:(E,k)=>{Wd(E,{get disabled(){return l(g)},multiple:!0,onDrop:({files:S})=>{Ge(Ji,{folder:l(u),files:S})},children:(S,C)=>{{let x=_(()=>s().filter(T=>an(T.folder,l(u))));KA(S,{get assets(){return l(x)},onSelect:({asset:T})=>{Ht(`/assets/${T.path}`,{transitionType:"forwards"})}})}},$$slots:{default:!0}})},$$slots:{default:!0}})}};q(v,y=>{l(f)!==void 0&&r()&&i().showMedia&&y(b)})}$(t,m),ce(),c()}var UX=U("<!> <!>",1);function qX(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"noneLabel",3,""),u=R(e,"groups",19,()=>[]);{const d=h=>{{let p=_(()=>n()("grouping_options"));ir(h,{get"aria-label"(){return l(p)},get"aria-controls"(){return e["aria-controls"]},children:(g,m)=>{var v=UX(),b=M(v);{let w=_(()=>c()||n()("sort_keys.none")),E=_(()=>!r().group);ad(b,{get label(){return l(w)},get checked(){return l(E)},onSelect:()=>{e.currentView.update(k=>({...k,group:null}))}})}var y=j(b,2);it(y,17,u,lr,(w,E)=>{let k=()=>l(E).label,S=()=>l(E).field,C=()=>l(E).pattern;{let x=_(()=>r().group?.field===S()&&String(r().group.pattern)===String(C()));ad(w,{get label(){return k()},get checked(){return l(x)},onSelect:()=>{e.currentView.update(T=>({...T,group:{field:S(),pattern:C()}}))}})}}),$(g,v)},$$slots:{default:!0}})}};let f=_(()=>s()||n()("group"));Ir(t,{variant:"ghost",get label(){return l(f)},get disabled(){return a()},popupPosition:"bottom-right",popup:d,$$slots:{popup:!0}})}ce(),o()}var VX=U("<!> <!>",1),HX=U("<!> <!> <!> <!> <!> <!> <!>",1);function KX(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",h),r=()=>V(na,"$listedEntries",h),i=()=>V(ue,"$_",h),o=()=>V(ln,"$isSmallScreen",h),s=()=>V(Io,"$isMediumScreen",h),a=()=>V(Yy,"$entryGroups",h),c=()=>V(oX,"$sortKeys",h),u=()=>V(YJ,"$viewFilters",h),d=()=>V(ZJ,"$viewGroups",h),f=()=>V(Zr,"$currentView",h),[h,p]=me(),g=_(()=>n()?._type==="entry"?n():void 0),m=_(()=>l(g)?.name),v=_(()=>l(g)?._thumbnailFieldNames??[]),b=_(()=>!!r().length),y=_(()=>r().length>1);var w=X(),E=M(w);{var k=S=>{{let C=_(()=>i()("entry_list"));Si(S,{variant:"secondary",get"aria-label"(){return l(C)},children:(x,T)=>{var A=HX(),P=M(A);{var L=J=>{{let Q=_(()=>a().map(({entries:oe})=>oe).flat(1));wA(J,{get allItems(){return l(Q)},get selectedItems(){return hc}})}};q(P,J=>{o()||s()||J(L)})}var I=j(P,2);Wr(I,{flex:!0});var N=j(I,2);{let J=_(()=>!l(y)||!c().length);xA(N,{get disabled(){return l(J)},get currentView(){return Zr},get sortKeys(){return c()},get collectionName(){return l(m)},"aria-controls":"entry-list"})}var D=j(N,2);{var B=J=>{{let Q=_(()=>!l(y));yA(J,{get disabled(){return l(Q)},get currentView(){return Zr},get filters(){return u()},multiple:!0,"aria-controls":"entry-list"})}};q(D,J=>{u()?.length&&J(B)})}var H=j(D,2);{var W=J=>{{let Q=_(()=>!l(y));qX(J,{get disabled(){return l(Q)},get currentView(){return Zr},get groups(){return d()},"aria-controls":"entry-list"})}};q(H,J=>{d()?.length&&J(W)})}var Y=j(H,2);{var O=J=>{{let Q=_(()=>!l(b));Py(J,{get disabled(){return l(Q)},get currentView(){return Zr},"aria-controls":"entry-list"})}};q(Y,J=>{l(v).length&&J(O)})}var F=j(Y,2);{var K=J=>{var Q=VX(),oe=M(Q);Gr(oe,{orientation:"vertical"});var re=j(oe,2);{const ee=be=>{Je(be,{name:"photo_library"})};let ne=_(()=>!l(b)||!Wi({collectionName:l(m)})),ae=_(()=>!!f().showMedia),fe=_(()=>i()(f().showMedia?"hide_assets":"show_assets"));Ze(re,{variant:"ghost",iconic:!0,get disabled(){return l(ne)},get pressed(){return l(ae)},"aria-controls":"collection-assets",get"aria-expanded"(){return f().showMedia},get"aria-label"(){return l(fe)},onclick:()=>{Zr.update(be=>({...be,showMedia:!f().showMedia}))},startIcon:ee,$$slots:{startIcon:!0}})}$(J,Q)};q(F,J=>{o()||s()||J(K)})}$(x,A)},$$slots:{default:!0}})}};q(E,S=>{l(g)&&S(k)})}$(t,w),ce(),p()}var GX=U("<!> <!> <!> <!>",1);function WX(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",c),r=()=>V(ln,"$isSmallScreen",c),i=()=>V(ue,"$_",c),o=()=>V(na,"$listedEntries",c),s=()=>V(zt,"$appLocale",c),a=()=>V(Hd,"$contentUpdatesToast",c),[c,u]=me(),d=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/;let f=ie(!1);const h=_(()=>"files"in(n()??{})?wX:vX),p=()=>{const{path:w,params:E}=Oo(),k=w.match(d);if(G(f,!1),n()?.name==="_singletons"&&zs().length&&Ge(Kn,void 0),!k?.groups)return;const{_collectionName:S,routeType:C,subPath:x}=k.groups;if(!S){if(r())Ge(Kn,void 0),Ge(ci,i()("viewing_collection_list")),G(f,!0);else{const I=n()||rj()||GS();Ht(`/collections/${I?.name}`,{replaceState:!0})}return}const T=Kr(S);if(!T||T.hide?Ge(Kn,void 0):n()?.name!==T.name&&Ge(Kn,T),!T||!n()){Ge(ci,i()("collection_not_found"));return}const{name:A}=n(),P=ns(n()),L="_fileMap"in n()?n()._fileMap:void 0;if(!C){const I=o().length;Ge(ci,i()(I>1?"viewing_x_collection_many_entries":I===1?"viewing_x_collection_one_entry":"viewing_x_collection_no_entries",{values:{collection:P,count:I}}));return}if(Ge(ga,!0),L){if(C==="entries"&&x){const I=yv(A,x),N=L[x];tf(I?{collection:T,collectionFile:N,originalEntry:I}:{collection:T,collectionFile:N,originalEntry:{slug:N.name,locales:Object.fromEntries(N._i18n.initialLocales.map(D=>[D,{}]))}}),Ge(ci,i()(`edit_${T._type}_announcement`,{values:{collection:P,file:Fu(N)}}))}}else if(C==="new"&&!x&&(tf({collection:T,dynamicValues:E,isIndexFile:!!window.history.state?.index}),Ge(ci,i()("create_entry_announcement",{values:{collection:P}}))),C==="entries"&&x){const I=o().find(N=>N.subPath===x);I&&s()&&(tf({collection:T,originalEntry:I}),Ge(ci,i()("edit_entry_announcement",{values:{collection:P,entry:lc(n(),I)}})))}};Ft(()=>{p()});var g=GX();jr("hashchange",ua,w=>{xy(w,p,d)});var m=M(g);{const w=S=>{var C=X(),x=M(C);{var T=A=>{LX(A,{})};q(x,A=>{(!r()||l(f))&&A(T)})}$(S,C)},E=S=>{var C=X(),x=M(C);{var T=A=>{{const P=H=>{jX(H,{})},L=H=>{var W=X(),Y=M(W);{var O=F=>{KX(F,{})};q(Y,F=>{n()?._type==="entry"&&o().length&&F(O)})}$(H,W)},I=H=>{var W=X(),Y=M(W);Bn(Y,()=>l(h),(O,F)=>{F(O,{})}),$(H,W)},N=H=>{BX(H,{})};let D=_(()=>i()("x_collection",{values:{collection:s()&&n()?ns(n()):""}})),B=_(()=>n()?.description);Jd(A,{get"aria-label"(){return l(D)},get"aria-description"(){return l(B)},primaryToolbar:P,secondaryToolbar:L,mainContent:I,secondarySidebar:N,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};q(x,A=>{(!r()||!l(f))&&A(T)})}$(S,C)};let k=_(()=>i()("content_library"));ml(m,{get"aria-label"(){return l(k)},primarySidebar:w,main:E,$$slots:{primarySidebar:!0,main:!0}})}var v=j(m,2);GJ(v,{});var b=j(v,2);Qn(b,{get show(){return a().saved},set show(w){_t(Hd,Se(a).saved=w,Se(a))},children:(w,E)=>{Mn(w,{status:"success",children:(k,S)=>{var C=Ie();Z(x=>te(C,x),[()=>i()(a().published?"entry_saved_and_published":"entry_saved")]),$(k,C)},$$slots:{default:!0}})},$$slots:{default:!0}});var y=j(b,2);Qn(y,{get show(){return a().deleted},set show(w){_t(Hd,Se(a).deleted=w,Se(a))},children:(w,E)=>{Mn(w,{status:"success",children:(k,S)=>{var C=Ie();Z(x=>te(C,x),[()=>i()(a().count===1?"entry_deleted":"entries_deleted",{values:{count:a().count}})]),$(k,C)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,g),ce(),u()}function J2(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(dt,"$prefs",i),[i,o]=me();{let s=_(()=>n()("prefs.i18n.default_translator.select_service"));Fa(t,{get"aria-label"(){return l(s)},get value(){return r().defaultTranslationService},onChange:a=>{Ge(dt,{...r(),defaultTranslationService:a.detail.value})},children:(a,c)=>{var u=X(),d=M(u);it(d,17,()=>Object.entries(jy),([f,{serviceLabel:h}])=>f,(f,h)=>{var p=_(()=>lo(l(h),2));let g=()=>l(p)[0],m=()=>l(p)[1].serviceLabel;{let v=_(()=>g()===r().defaultTranslationService);kr(f,{get label(){return m()},get value(){return g()},get selected(){return l(v)}})}}),$(a,u)},$$slots:{default:!0}})}ce(),o()}var YX=U("<!> <!> <!>",1);function JX(t,e){le(e,!0);const n=()=>V(tg,"$translator",a),r=()=>V(ga,"$showContentOverlay",a),i=()=>V(gu,"$translatorApiKeyDialogState",a),o=()=>V(ue,"$_",a),s=()=>V(dt,"$prefs",a),[a,c]=me(),u=_(()=>n().serviceId),d=_(()=>n().apiLabel),f=_(()=>n().developerURL),h=_(()=>n().apiKeyURL),p=_(()=>n().apiKeyPattern);De(()=>{!r()&&i().show&&(_t(gu,Se(i).show=!1,Se(i)),i().resolve?.())});{let g=_(()=>o()(i().multiple?"translate_fields":"translate_field")),m=_(()=>({spellcheck:!1,monospace:!0,"aria-label":o()("api_key")}));sE(t,{get title(){return l(g)},showOk:!1,get textboxAttrs(){return l(m)},oninput:v=>{const b=v.target.value.trim();l(p)?.test(b)&&(_t(dt,Se(s).apiKeys??={},Se(s)),_t(dt,Se(s).apiKeys[l(u)]=b,Se(s)),_t(gu,Se(i).show=!1,Se(i)),i().resolve?.(b))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(v){_t(gu,Se(i).show=v,Se(i))},children:(v,b)=>{var y=YX(),w=M(y);J2(w,{});var E=j(w,2);Wr(E,{});var k=j(E,2);cr(k,()=>Nr.sanitize(o()("prefs.i18n.translator.description",{values:{service:l(d),homeHref:`href="${l(f)}"`,apiKeyHref:`href="${l(h)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(v,y)},$$slots:{default:!0}})}ce(),c()}function XX(t,e){le(e,!0);const n=()=>V(_v,"$entryParseErrors",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(!!n().length);Qn(t,{get show(){return l(s)},set show(a){G(s,a,!0)},children:(a,c)=>{Mn(a,{status:"error",children:(u,d)=>{var f=Ie();Z(h=>te(f,h),[()=>r()(n().length===1?"entry_parse_error":"entry_parse_errors")]),$(u,f)},$$slots:{default:!0}})},$$slots:{default:!0}}),ce(),o()}const X2=Qt([Vd,Wc,bn,Hn],([t,e,n,r])=>t&&e&&!!n?.isGit&&!!r?.token),og=nt(!1);var ZX=U(" <!> <!>",1),QX=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1);function eZ(t,e){le(e,!0);const n=()=>V(bn,"$backend",i),r=()=>V(ue,"$_",i),[i,o]=me();let s,a=ie(!1);De(()=>{const{databaseName:d}=n()?.repository??{};d&&(s=new mo(d,"ui-settings"),(async()=>{const f=await s.get("onboarding")??{};f.mobileCta||G(a,!0),await s.set("onboarding",{...f,mobileCta:!0})})())});var c=QX(),u=M(c);Il(u,()=>({"--sui-infobar-message-justify-content":"center"})),Mh(u.lastChild,{get show(){return l(a)},dismissible:!1,children:(d,f)=>{var h=ZX(),p=M(h),g=j(p);{let v=_(()=>r()("mobile_promo_button"));Ze(g,{variant:"link",get label(){return l(v)},onclick:()=>{G(a,!1),Ge(og,!0)}})}var m=j(g,2);{let v=_(()=>r()("later"));Ze(m,{variant:"link",get label(){return l(v)},onclick:()=>{G(a,!1)}})}Z(v=>te(p,`${v??""} `),[()=>r()("mobile_promo_title")]),$(d,h)},$$slots:{default:!0}}),$(t,c),ce(),o()}var tZ=U('<div role="none" class="wrapper svelte-t2r4ty"><!></div>');const nZ={hash:"svelte-t2r4ty",code:`.wrapper.svelte-t2r4ty {display:contents;}.wrapper.svelte-t2r4ty .sui.select-button-group {gap:4px;}
650
+ }`};function WJ(t,e){le(e,!0),ke(t,GJ);const n=()=>V(We,"$entryDraft",f),r=()=>V(zi,"$entryEditorSettings",f),i=()=>V(ma,"$editorLeftPane",f),o=()=>V(po,"$editorRightPane",f),s=()=>V(ln,"$isSmallScreen",f),a=()=>V(Io,"$isMediumScreen",f),c=()=>V(ga,"$showContentOverlay",f),u=()=>V(ue,"$_",f),d=()=>V(Xg,"$showDuplicateToast",f),[f,h]=me();let p=!1,g=ie(!0),m=ie(void 0),v=ie(void 0),b=ie(void 0);const y=_(()=>n()?.isNew??!0),w=_(()=>n()?.collection),E=_(()=>l(w)?._type==="entry"?l(w):void 0),k=_(()=>n()?.collectionFile),S=_(()=>r()??{}),C=_(()=>l(S).showPreview),x=_(()=>(l(k)??l(w))?._i18n??Zi),T=_(()=>l(x).i18nEnabled),A=_(()=>l(x).allLocales),P=_(()=>l(x).defaultLocale),L=_(()=>n()?.canPreview??!0),I=_(()=>l(k)?.name?[l(w)?.name,l(k).name].join("|"):l(w)?.name),N=_(()=>l(E)?.create??!1),D=_(()=>l(E)?.limit??1/0),B=_(()=>!Sh(l(w))),H=async()=>{const[re,ee]=r()?.paneStates?.[l(I)??""]??[];return p||!re||!ee||re.locale&&!l(A).includes(re.locale)||ee.locale&&!l(A).includes(ee.locale)||(!l(C)||!l(L))&&(re.mode==="preview"||ee.mode==="preview")?!1:(p=!0,await ha(),Ge(ma,re),Ge(po,ee),await ha(),p=!1,(s()||a())&&Ge(po,null),!0)},W=async()=>{if(n()&&!await H())if(Ge(ma,{mode:"edit",locale:i()?.locale??l(P)}),s()||a())Ge(po,null);else if(!l(C)||!l(L)){const re=l(T)?l(A).filter(ee=>ee!==i()?.locale):[];Ge(po,re.length?{mode:"edit",locale:re[0]}:null)}else Ge(po,{mode:"preview",locale:i().locale})},Y=()=>{!l(w)||p||!i()||!o()||!l(I)||zi.update((re={})=>({...re,paneStates:{...re.paneStates,[l(I)]:[i(),o()]}}))},O=async()=>{await ha(),l(m)&&(l(m).tabIndex=0,l(m).focus())};Ft(()=>{l(m)?.addEventListener("transitionend",()=>{c()||(G(g,!0),Ge(We,null))})}),De(()=>{l(I)&&(Ge(ma,null),Ge(po,null))}),De(()=>{l(C),l(L),s(),a(),Se(()=>{W()})}),De(()=>{i(),o(),Y()}),De(()=>{l(m)&&(c()?l(g)&&(G(g,!1),W(),O(),kH()):xH())});var F=KJ(),K=M(F),J=z(K);Xn(J,()=>n()?.createdAt,re=>{var ee=HJ(),ne=M(ee);{let pe=_(()=>l(y)&&l(B));zJ(ne,{get disabled(){return l(pe)}})}var ae=j(ne,2);{var fe=pe=>{},be=pe=>{var he=X(),ge=M(he);{var ve=$e=>{hr($e,{children:(Ce,Re)=>{var He=jJ(),Ye=M(He),Ue=z(Ye);{var Te=we=>{var Pe=Ie();Z(ye=>te(Pe,ye),[()=>u()("creating_entries_disabled_by_admin")]),$(we,Pe)},ze=we=>{var Pe=Ie();Z(ye=>te(Pe,ye),[()=>u()("creating_entries_disabled_by_limit",{values:{limit:l(D)}})]),$(we,Pe)};q(Ue,we=>{l(N)?we(ze,!1):we(Te)})}var Oe=j(Ye,2),Ae=z(Oe);Ze(Ae,{variant:"primary",onclick:()=>{Ht(`/collection/${l(w)?.name}`,{replaceState:!0,transitionType:"backwards"})},children:(we,Pe)=>{var ye=Ie();Z(ot=>te(ye,ot),[()=>u()("back_to_collection")]),$(we,ye)},$$slots:{default:!0}}),$(Ce,He)},$$slots:{default:!0}})},_e=$e=>{var Ce=VJ(),Re=z(Ce);{var He=Ye=>{var Ue=qJ(),Te=M(Ue);{var ze=we=>{const Pe=_(()=>{const{locale:ye,mode:ot}=i()??{};return{locale:ye,mode:ot}});{let ye=_(()=>u()(l(Pe).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Oi(l(Pe).locale)}}));No(we,{class:"pane",get"aria-label"(){return l(ye)},get"data-locale"(){return l(Pe).locale},get"data-mode"(){return l(Pe).mode},children:(ot,Qe)=>{var Ne=BJ(),je=M(Ne);R2(je,{id:"left-pane-header",get thisPane(){return ma},get thatPane(){return po}});var Xe=j(je,2);I2(Xe,{id:"left-pane-body",get thisPane(){return ma},get thisPaneContentArea(){return l(v)},set thisPaneContentArea(st){G(v,st,!0)},get thatPaneContentArea(){return l(b)},set thatPaneContentArea(st){G(b,st,!0)}}),$(ot,Ne)},$$slots:{default:!0}})}};q(Te,we=>{i()&&we(ze)})}var Oe=j(Te,2);{var Ae=we=>{const Pe=_(()=>{const{locale:ye,mode:ot}=o()??{};return{locale:ye,mode:ot}});{let ye=_(()=>u()(l(Pe).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Oi(l(Pe).locale)}}));No(we,{get"aria-label"(){return l(ye)},get"data-locale"(){return l(Pe).locale},get"data-mode"(){return l(Pe).mode},children:(ot,Qe)=>{var Ne=UJ(),je=M(Ne);R2(je,{id:"right-pane-header",get thisPane(){return po},get thatPane(){return ma}});var Xe=j(je,2);I2(Xe,{id:"right-pane-body",get thisPane(){return po},get thisPaneContentArea(){return l(b)},set thisPaneContentArea(st){G(b,st,!0)},get thatPaneContentArea(){return l(v)},set thatPaneContentArea(st){G(v,st,!0)}}),$(ot,Ne)},$$slots:{default:!0}})}};q(Oe,we=>{o()&&we(Ae)})}$(Ye,Ue)};q(Re,Ye=>{l(w)&&Ye(He)})}$($e,Ce)};q(ge,$e=>{l(y)&&l(B)?$e(ve):$e(_e,!1)},!0)}$(pe,he)};q(ae,pe=>{n()?pe(be,!1):pe(fe)})}$(re,ee)}),vt(K,re=>G(m,re),()=>l(m));var Q=j(K,2);EH(Q,{});var oe=j(Q,2);Qn(oe,{get show(){return Jg(),d()},set show(re){Ge(Xg,re)},children:(re,ee)=>{Mn(re,{status:"success",children:(ne,ae)=>{var fe=Ie();Z(be=>te(fe,be),[()=>u()("entry_duplicated")]),$(ne,fe)},$$slots:{default:!0}})},$$slots:{default:!0}}),Z(re=>{Ee(K,"hidden",l(g)),K.inert=!c(),Ee(K,"aria-label",re)},[()=>u()("content_editor")]),$(t,F),ce(),h()}const U2=t=>{if(Array.isArray(t))return{options:t};if(Gt(t)){const{filters:e,default:n}=t;if(Array.isArray(e)){const r=n?e.find(({name:i})=>i===n):void 0;return{options:e,default:r?{field:r.field,pattern:r.pattern}:void 0}}}return{options:[]}},YJ=(t,e,n)=>{const{name:r,view_filters:i=[],_i18n:{defaultLocale:o}}=e,{options:s}=U2(i),a=n.filter(({field:c,pattern:u})=>c!==void 0&&u!==void 0&&s.some(d=>d.field===c&&String(d.pattern)===String(u)));return t.filter(c=>a.every(({field:u,pattern:d})=>{const f={entry:c,locale:o,collectionName:r,key:u},h=Vu({...f,resolveRef:!1}),p=Vu({...f}),g=fc(d);return h===void 0||p===void 0?!1:g?g.test(String(h))||g.test(String(p)):h===d||p===d}))},JJ=Qt([Kn],([t],e)=>{if(!t||!("folder"in t)){e([]);return}const{options:n,default:r}=U2(t.view_filters);e(n),Zr.update(i=>({...i,filters:i.filters??(r?[r]:void 0)}))}),XJ=t=>{if(Array.isArray(t))return{options:t};if(Gt(t)){const{groups:e,default:n}=t;if(Array.isArray(e)){const r=n?e.find(({name:i})=>i===n):void 0;return{options:e,default:r?{field:r.field,pattern:r.pattern}:void 0}}}return{options:[]}},ZJ=(t,e,n)=>{const{field:r,pattern:i}=n??{field:"",pattern:void 0};if(!r)return t.length?[{name:"*",entries:t}]:[];const{name:o,_i18n:{defaultLocale:s}}=e,a=se(Zr).sort,c=fc(i),u={},d=se(ue)("other");t.forEach(h=>{const p=Vu({entry:h,locale:s,collectionName:o,key:r}),g=p===void 0?d:c?String(p).match(c)?.[0]??d:String(p);g in u||(u[g]=[]),u[g].push(h)});const f=Object.entries(u).map(([h,p])=>({name:h,entries:p})).sort(({name:h},{name:p})=>vi(h,p));return a?.key===r&&a.order==="descending"&&f.reverse(),f},QJ=Qt([Kn],([t],e)=>{if(!t||!("folder"in t)){e([]);return}const{options:n,default:r}=XJ(t.view_groups);e(n),Zr.update(i=>({...i,group:i.group===void 0?r:i.group}))}),Zc=nt(),eX=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new mo(e,"ui-settings"):null,r="contents-view";Zc.set(await n?.get(r)??{}),Zc.subscribe(i=>{(async()=>{try{an(i,await n?.get(r))||await n?.set(r,i)}catch{}})()}),Zr.subscribe(i=>{const{name:o}=se(Kn)??{},s=se(Zc)?.[o??""]??{};o&&!an(i,s)&&Zc.update(a=>({...a,[o]:i}))})};bn.subscribe(t=>{t&&!se(Zc)&&eX(t)});const q2=["title","name","date","author","description"],Wy={slug:String,commit_author:String,commit_date:Date},V2=Object.keys(Wy),H2=t=>Array.isArray(t)&&t.every(e=>typeof e=="string"),tX=t=>{if(H2(t))return{keys:t};if(Gt(t)){const{fields:e,default:n}=t;return H2(e)?Gt(n)?{keys:e,defaultKey:n.field,defaultOrder:["descending","Descending"].includes(n.direction??"")?"descending":"ascending"}:{keys:e}:{keys:[]}}return{keys:[]}},nX=t=>{if(t){const e=q2.filter(n=>n!==t);return{keys:[t,...e],defaultKey:t}}return{keys:[...q2]}},rX=({collection:t,isCommitAuthorAvailable:e,isCommitDateAvailable:n})=>{const{name:r,identifier_field:i,sortable_fields:o}=t;let{keys:s,defaultKey:a,defaultOrder:c}=o?tX(o):nX(i);const u=s.includes("commit_author"),d=s.includes("commit_date");return e?!s.includes("author")&&!u&&s.push("commit_author"):u&&(s=s.filter(f=>f!=="commit_author")),n?!s.includes("date")&&!d&&s.push("commit_date"):d&&(s=s.filter(f=>f!=="commit_date")),s=Ru(s).filter(f=>!!f&&(V2.includes(f)||!!fn({collectionName:r,keyPath:f}))),a=a&&s.includes(a)?a:s[0],c??=a?"ascending":void 0,{keys:s,default:{key:a,order:c}}},iX=({key:t,fieldConfig:e})=>{if(t in Wy)return Wy[t];if(e?.widget==="boolean")return Boolean;if(e?.widget==="number"){const{value_type:n="int"}=e;if(n==="int"||n==="float")return Number}return String},oX=({collection:t,key:e})=>[...V2,"name"].includes(e)?se(ue)(`sort_keys.${e}`):e.includes(".")?e.split(".").map((n,r,i)=>{if(/^\d+$/.test(n))return;const o=i.slice(0,r+1).join(".");return fn({collectionName:t.name,keyPath:o})?.label||n}).filter(Boolean).join(" – "):t.fields?.find(({name:n})=>n===e)?.label||e,sX=Qt([Kn,ri,zt],([t,e],n)=>{if(!t||!("folder"in t)){n([]);return}const r=se(Zc)?.[t.name]??{type:"list"},{keys:i,default:o}=rX({collection:t,isCommitAuthorAvailable:e.some(s=>!!s.commitAuthor),isCommitDateAvailable:e.some(s=>!!s.commitDate)});r.sort??=o,n(i.map(s=>({key:s,label:oX({collection:t,key:s})}))),an(r,se(Zr))||Zr.set(r)}),K2=t=>{let e=t,n=!0;for(;n;){const r=e;e=e.replaceAll(/([_*`~])([^_*`~]+)\1/g,"$2"),e=e.replaceAll(/([_*`~]{2,})(.+?)\1/g,"$2"),n=e!==r}return e},aX=["title","summary","description"],lX=(t,e,{key:n,order:r}={})=>{const i=[...t];if(n===void 0)return i;const{name:o,_i18n:{defaultLocale:s}}=e,a=fn({collectionName:o,keyPath:n}),c=iX({key:n,fieldConfig:a}),u=Object.fromEntries(i.map(p=>[p.slug,Vu({entry:p,locale:s,collectionName:o,key:n})])),d=a?.widget==="datetime"?a:void 0,f=a?.widget==="markdown"||aX.includes(n);i.sort((p,g)=>{const m=u[p.slug],v=u[g.slug];if(d){const b=m?ec(m,d):void 0,y=v?ec(v,d):void 0;return Number(b??0)-Number(y??0)}if(c===String){const b=m?String(m):"",y=v?String(v):"";return f?vi(K2(b),K2(y)):vi(b,y)}return Number(m??0)-Number(v??0)}),r==="descending"&&i.reverse();const h=ii(e)?.name;if(h){const p=i.findIndex(g=>g.slug===h);p>-1&&i.unshift(i.splice(p,1)[0])}return i},Zr=nt({type:"list"}),na=Qt([ri,Kn],([t,e],n)=>{n(t&&e?wo(e.name):[])});let G2="";const Yy=Qt([na,Zr,zt],([t,e],n)=>{const r=JSON.stringify({_listedEntries:t,_currentView:e});if(r===G2)return;G2=r,n([]);const i=se(Kn);let o=[...t];if(!o.length||Ds(i,o[0]).length)return;e.sort&&(o=lX(o,i,e.sort)),e.filters&&(o=YJ(o,i,e.filters));const s=ZJ(o,i,e.group);an(se(Yy),s)||n(s)});na.subscribe(t=>{hc.set([]),se(dt).devModeEnabled&&console.info("listedEntries",t)}),Kn.subscribe(t=>{t&&se(dt).devModeEnabled&&console.info("selectedCollection",t)});var cX=U("<!> <!>",1),uX=U('<div role="none" class="label svelte-cy8v6x"><!></div>'),dX=U("<!> <!> <!>",1);const fX={hash:"svelte-cy8v6x",code:".label.svelte-cy8v6x .icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}"};function hX(t,e){le(e,!0),ke(t,fX);const n=()=>V(na,"$listedEntries",a),r=()=>V(ln,"$isSmallScreen",a),i=()=>V(Io,"$isMediumScreen",a),o=()=>V(hc,"$selectedEntries",a),s=()=>V(zt,"$appLocale",a),[a,c]=me(),u=d=>{hc.update(f=>{const h=f.indexOf(e.entry);return d&&h===-1&&f.push(e.entry),!d&&h>-1&&f.splice(h,1),f})};{let d=_(()=>n().indexOf(e.entry));sd(t,{get"aria-rowindex"(){return l(d)},onChange:f=>{u(f.detail.selected)},onclick:()=>{Ht(`/collections/${e.collection.name}/entries/${e.entry.subPath}`,{transitionType:"forwards"})},children:(f,h)=>{var p=dX(),g=M(p);{var m=w=>{_i(w,{class:"checkbox",children:(E,k)=>{{let S=_(()=>o().includes(e.entry));od(E,{role:"none",tabindex:"-1",get checked(){return l(S)},onChange:({detail:{checked:C}})=>{u(C)}})}},$$slots:{default:!0}})};q(g,w=>{r()||i()||w(m)})}var v=j(g,2);{var b=w=>{_i(w,{class:"image",children:(E,k)=>{var S=X(),C=M(S);Xt(C,()=>j2(e.collection,e.entry),null,(x,T)=>{var A=X(),P=M(A);{var L=I=>{{let N=_(()=>e.viewType==="list"?"icon":"tile");Ty(I,{get src(){return l(T)},get variant(){return l(N)},cover:!0})}};q(P,I=>{l(T)&&I(L)})}$(x,A)}),$(E,S)},$$slots:{default:!0}})};q(v,w=>{e.collection._thumbnailFieldNames.length&&w(b)})}var y=j(v,2);_i(y,{class:"title",children:(w,E)=>{var k=uX(),S=z(k);xr(S,{lines:2,children:(C,x)=>{var T=cX(),A=M(T);Xn(A,s,I=>{var N=X(),D=M(N);cr(D,()=>lc(e.collection,e.entry,{useTemplate:!0,allowMarkdown:!0})),$(I,N)});var P=j(A,2);{var L=I=>{{let N=_(()=>ii(e.collection)?.icon);Je(I,{get name(){return l(N)},class:"home"})}};q(P,I=>{_o(e.collection,e.entry)&&I(L)})}$(C,T)},$$slots:{default:!0}}),$(w,k)},$$slots:{default:!0}}),$(f,p)},$$slots:{default:!0}})}ce(),c()}var pX=U("<!> <!>",1);function W2(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",s),r=()=>V(ri,"$allEntries",s),i=()=>V(zt,"$appLocale",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=R(e,"label",3,void 0),u=R(e,"keyShortcuts",3,void 0);const d=_(()=>!Sh(n())),f=_(()=>r()&&n()?HD(n()):!1),h=_(()=>i()&&n()?ii(n())?.label:""),p=_(()=>l(f)?oE:Ze),g=(b=!1)=>{Ht(`/collections/${e.collectionName}/new`,{state:{index:b},transitionType:"forwards"})};var m=X(),v=M(m);{const b=k=>{Je(k,{name:"edit"})},y=k=>{var S=X(),C=M(S);{var x=T=>{ir(T,{children:(A,P)=>{var L=pX(),I=M(L);{let D=_(()=>o()("entry"));mt(I,{get label(){return l(D)},onclick:()=>g()})}var N=j(I,2);mt(N,{get label(){return l(h)},onclick:()=>g(!0)}),$(A,L)},$$slots:{default:!0}})};q(C,T=>{l(f)&&T(x)})}$(k,S)};let w=_(()=>!c()),E=_(()=>o()("create_new_entry"));Bn(v,()=>l(p),(k,S)=>{S(k,{variant:"primary",get iconic(){return l(w)},get disabled(){return l(d)},get label(){return c()},get"aria-label"(){return l(E)},get keyShortcuts(){return u()},onclick:()=>g(),startIcon:b,popup:y,$$slots:{startIcon:!0,popup:!0}})})}$(t,m),ce(),a()}var gX=U('<span role="none"> </span>'),mX=U('<span role="none"> </span> <!>',1),vX=U('<span role="none"> </span>');function bX(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",a),r=()=>V(Zr,"$currentView",a),i=()=>V(Yy,"$entryGroups",a),o=()=>V(ue,"$_",a),s=()=>V(na,"$listedEntries",a),[a,c]=me(),u=_(n),d=_(()=>r().type),f=_(()=>i().map(({entries:h})=>h).flat(1));{let h=_(()=>o()("entry_list"));Ay(t,{get"aria-label"(){return l(h)},children:(p,g)=>{var m=X(),v=M(m);{var b=w=>{var E=X(),k=M(E);{var S=x=>{const T=_(()=>{const{defaultLocale:A}=l(u)._i18n;return{defaultLocale:A}});{let A=_(()=>o()("entries"));Yd(x,{get viewType(){return l(d)},id:"entry-list",get"aria-label"(){return l(A)},get"aria-rowcount"(){return s().length},children:(P,L)=>{var I=X(),N=M(I);it(N,1,i,({name:D,entries:B})=>D,(D,B)=>{let H=()=>l(B).name,W=()=>l(B).entries;var Y=X(),O=M(Y);Xt(O,Lt,null,F=>{{let K=_(()=>H()!=="*"?H():void 0);aE(F,{get label(){return l(K)},children:(J,Q)=>{{const oe=(ee,ne=Be)=>{var ae=X(),fe=M(ae);Xt(fe,Lt,null,be=>{hX(be,{get collection(){return l(u)},get entry(){return ne()},get viewType(){return l(d)}})}),$(ee,ae)};let re=_(()=>W().filter(({locales:ee})=>!!(ee[l(T).defaultLocale]??Object.values(ee)[0])?.content));Ma(J,{get items(){return l(re)},itemKey:"id",renderItem:oe,$$slots:{renderItem:!0}})}},$$slots:{default:!0}})}}),$(D,Y)}),$(P,I)},$$slots:{default:!0}})}},C=x=>{var T=X(),A=M(T);{var P=I=>{hr(I,{children:(N,D)=>{var B=gX(),H=z(B);Z(W=>te(H,W),[()=>o()("no_entries_found")]),$(N,B)},$$slots:{default:!0}})},L=I=>{hr(I,{children:(N,D)=>{var B=mX(),H=M(B),W=z(H),Y=j(H,2);{let O=_(()=>o()("create_new_entry"));W2(Y,{get collectionName(){return l(u).name},get label(){return l(O)}})}Z(O=>te(W,O),[()=>o()("no_entries_created")]),$(N,B)},$$slots:{default:!0}})};q(A,I=>{s().length?I(P):I(L,!1)},!0)}$(x,T)};q(k,x=>{l(f).length?x(S):x(C,!1)})}$(w,E)},y=w=>{hr(w,{children:(E,k)=>{var S=vX(),C=z(S);Z(x=>te(C,x),[()=>o()("collection_not_found")]),$(E,S)},$$slots:{default:!0}})};q(v,w=>{l(u)?w(b):w(y,!1)})}$(p,m)},$$slots:{default:!0}})}ce(),c()}var _X=U('<div role="none" class="label svelte-1nfjp1"><!> <!></div>'),yX=U('<span role="none"> </span>');const wX={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 xX(t,e){le(e,!0),ke(t,wX);const n=()=>V(Kn,"$selectedCollection",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=_(()=>n()?.files.filter(fh)??[]);{let a=_(()=>r()("file_list"));Ay(t,{get"aria-label"(){return l(a)},children:(c,u)=>{var d=X(),f=M(d);{var h=g=>{{let m=_(()=>r()("files"));Yd(g,{viewType:"list",get"aria-label"(){return l(m)},get"aria-rowcount"(){return l(s).length},children:(v,b)=>{Ma(v,{get items(){return l(s)},itemKey:"name",renderItem:(w,E)=>{let k=()=>E?.().name,S=()=>E?.().label,C=()=>E?.().icon;var x=X(),T=M(x);Xt(T,Lt,null,A=>{sd(A,{onclick:()=>{Ht(`/collections/${n()?.name}/entries/${k()}`,{transitionType:"forwards"})},children:(P,L)=>{_i(P,{class:"title",children:(I,N)=>{var D=_X(),B=z(D);{var H=Y=>{Je(Y,{get name(){return C()}})};q(B,Y=>{C()&&Y(H)})}var W=j(B,2);xr(W,{lines:2,children:(Y,O)=>{var F=Ie();Z(()=>te(F,S()||k())),$(Y,F)},$$slots:{default:!0}}),$(I,D)},$$slots:{default:!0}})},$$slots:{default:!0}})}),$(w,x)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},p=g=>{hr(g,{children:(m,v)=>{var b=yX(),y=z(b);Z(w=>te(y,w),[()=>r()("no_files_in_collection")]),$(m,b)},$$slots:{default:!0}})};q(f,g=>{l(s)?.length?g(h):g(p,!1)})}$(c,d)},$$slots:{default:!0}})}ce(),o()}var kX=U('<div class="wrapper svelte-w0jevb"><!></div>');const SX={hash:"svelte-w0jevb",code:".wrapper.svelte-w0jevb {display:contents;}"};function EX(t,e){le(e,!0),ke(t,SX);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>e.file.name),s=_(()=>e.file.label),a=_(()=>e.file.icon);let c=ie(!1),u=ie(void 0);var d=kX(),f=z(d);{const h=g=>{{let m=_(()=>l(a)||"edit_document");Je(g,{get name(){return l(m)}})}};let p=_(()=>l(s)||l(o));kr(f,{get label(){return l(p)},onSelect:()=>{Ge(ci,n()("singleton_selected_announcement",{values:{file:l(s)||l(o)}}))},onclick:()=>{Ht(`/collections/_singletons/entries/${l(o)}`,{transitionType:"forwards"}),G(c,!1),l(u)?.querySelector('[role="option"]')?.classList.remove("focused")},get selected(){return l(c)},set selected(g){G(c,g,!0)},startIcon:h,$$slots:{startIcon:!0}})}vt(d,h=>G(u,h),()=>l(u)),$(t,d),ce(),i()}var $X=U("<!> <!>",1);function Y2(t,e){le(e,!0);const n=()=>V(dt,"$prefs",c),r=()=>V(bn,"$backend",c),i=()=>V(Nh,"$isLastCommitPublished",c),o=()=>V(Sy,"$skipCIConfigured",c),s=()=>V(ln,"$isSmallScreen",c),a=()=>V(ue,"$_",c),[c,u]=me(),d=_(()=>n().deployHookURL),f=_(()=>r()?.triggerDeployment),h=_(()=>(!!l(d)||typeof l(f)=="function")&&!i());let p=ie("info"),g=ie(!1);const m=async()=>{G(p,"info"),G(g,!0);try{const{ok:w,status:E}=l(d)?await fetch(l(d),{method:"POST",mode:"no-cors"}):await l(f)?.()??{};if(!w&&E!==0)throw new Error(`Webhook returned ${E} error`);Ge(Nh,!0)}catch(w){G(p,"error"),G(g,!0),console.error(w)}};var v=X(),b=M(v);{var y=w=>{var E=$X(),k=M(E);{let C=_(()=>s()?"small":"medium"),x=_(()=>a()("publish_changes")),T=_(()=>!l(h));Ze(k,{variant:"secondary",get size(){return l(C)},get label(){return l(x)},get disabled(){return l(T)},onclick:()=>m()})}var S=j(k,2);Qn(S,{get show(){return l(g)},set show(C){G(g,C,!0)},children:(C,x)=>{Mn(C,{get status(){return l(p)},children:(T,A)=>{var P=Ie();Z(L=>te(P,L),[()=>a()(l(p)==="error"?"publishing_changes_failed":"publishing_changes")]),$(T,P)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(w,E)};q(b,w=>{o()&&w(y)})}$(t,v),ce(),u()}var TX=U("<header><h2> </h2> <!></header> <!>",1),CX=U('<span class="count"> </span>'),AX=U('<span class="count"> </span>'),PX=U("<!> <!>",1),LX=U('<div role="none" class="primary-sidebar"><!> <!></div>');function NX(t,e){le(e,!0);const n=()=>V(zt,"$appLocale",c),r=()=>V(Et,"$siteConfig",c),i=()=>V(ln,"$isSmallScreen",c),o=()=>V(ue,"$_",c),s=()=>V(Kn,"$selectedCollection",c),a=()=>V(ri,"$allEntries",c),[c,u]=me(),d=_(()=>Intl.NumberFormat(n()??void 0)),f=_(()=>r()?.collections?.filter(({hide:b})=>!b)??[]),h=_(()=>r()?.singletons??[]);var p=LX(),g=z(p);{var m=b=>{var y=TX(),w=M(y),E=z(w),k=z(E),S=j(E,2);Y2(S,{});var C=j(w,2);Gp(C,{onclick:x=>{x.preventDefault(),Ht("/search")}}),Z(x=>te(k,x),[()=>o()("contents")]),$(b,y)};q(g,b=>{i()&&b(m)})}var v=j(g,2);{let b=_(()=>o()("collection_list"));_c(v,{get"aria-label"(){return l(b)},"aria-controls":"collection-container",children:(y,w)=>{var E=PX(),k=M(E);{var S=T=>{{let A=_(()=>o()("collections"));Da(T,{get label(){return l(A)},children:(P,L)=>{var I=X(),N=M(I);it(N,19,()=>l(f),(D,B)=>D.name??B,(D,B)=>{var H=X(),W=M(H);Xt(W,Lt,null,Y=>{var O=X(),F=M(O);{var K=Q=>{const oe=_(()=>{const{name:re,label:ee,icon:ne}=l(B);return{name:re,label:ee,icon:ne}});{const re=fe=>{{let be=_(()=>l(oe).icon||"bookmark_manager");Je(fe,{get name(){return l(be)}})}},ee=fe=>{var be=X(),pe=M(be);Xn(pe,a,he=>{const ge=_(()=>("files"in l(B)?l(B).files:wo(l(oe).name)).length);var ve=CX(),_e=z(ve);Z(($e,Ce)=>{Ee(ve,"aria-label",`(${$e??""})`),te(_e,Ce)},[()=>o()(l(ge)>1?"many_entries":l(ge)===1?"one_entry":"no_entries",{values:{count:l(ge)}}),()=>l(d).format(l(ge))]),$(he,ve)}),$(fe,be)};let ne=_(()=>l(oe).label||l(oe).name),ae=_(()=>i()?!1:s()?.name===l(oe).name);kr(Q,{get label(){return l(ne)},get selected(){return l(ae)},onSelect:()=>{Ht(`/collections/${l(oe).name}`,{transitionType:"forwards"})},startIcon:re,endIcon:ee,$$slots:{startIcon:!0,endIcon:!0}})}},J=Q=>{var oe=X(),re=M(oe);{var ee=ne=>{Gr(ne,{})};q(re,ne=>{l(B).divider&&ne(ee)},!0)}$(Q,oe)};q(F,Q=>{"divider"in l(B)?Q(J,!1):Q(K)})}$(Y,O)}),$(D,H)}),$(P,I)},$$slots:{default:!0}})}};q(k,T=>{l(f).length&&T(S)})}var C=j(k,2);{var x=T=>{var A=X(),P=M(A);{var L=N=>{{let D=_(()=>o()("files"));Da(N,{get label(){return l(D)},children:(B,H)=>{var W=X(),Y=M(W);it(Y,19,()=>l(h),(O,F)=>O.name??F,(O,F)=>{var K=X(),J=M(K);Xt(J,Lt,null,Q=>{var oe=X(),re=M(oe);{var ee=ae=>{EX(ae,{get file(){return l(F)}})},ne=ae=>{var fe=X(),be=M(fe);{var pe=he=>{Gr(he,{})};q(be,he=>{l(F).divider&&he(pe)},!0)}$(ae,fe)};q(re,ae=>{"divider"in l(F)?ae(ne,!1):ae(ee)})}$(Q,oe)}),$(O,K)}),$(B,W)},$$slots:{default:!0}})}},I=N=>{const D=_(()=>l(h).length);{let B=_(()=>o()("collections"));Da(N,{get label(){return l(B)},children:(H,W)=>{{const Y=J=>{Je(J,{name:"bookmark_manager"})},O=J=>{var Q=AX(),oe=z(Q);Z((re,ee)=>{Ee(Q,"aria-label",`(${re??""})`),te(oe,ee)},[()=>o()(l(D)>1?"many_entries":l(D)===1?"one_entry":"no_entries",{values:{count:l(D)}}),()=>l(d).format(l(D))]),$(J,Q)};let F=_(()=>o()("files")),K=_(()=>s()?.name==="_singletons");kr(H,{get label(){return l(F)},get selected(){return l(K)},onSelect:()=>{Ht("/collections/_singletons",{transitionType:"forwards"})},startIcon:Y,endIcon:O,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};q(P,N=>{i()||l(f).length?N(L):N(I,!1)})}$(T,A)};q(C,T=>{l(h).length&&T(x)})}$(y,E)},$$slots:{default:!0}})}$(t,p),ce(),u()}function IX(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",s),r=()=>V(hc,"$selectedEntries",s),i=()=>V(ue,"$_",s),o=()=>V(na,"$listedEntries",s),[s,a]=me();let c=R(e,"open",15,!1);const u=_(()=>{const d=n()?.name;return r().length&&d&&Wi({collectionName:d})?.entryRelative?r().map(f=>B2({entry:f,collectionName:d,relative:!0})).flat(1):[]});{let d=_(()=>r().length===1?i()("delete_entry"):i()("delete_entries")),f=_(()=>i()("delete"));bc(t,{get title(){return l(d)},get okLabel(){return l(f)},onOk:()=>{D2(r().map(({id:h})=>h),l(u).map(({path:h})=>h))},get open(){return c()},set open(h){c(h)},children:(h,p)=>{var g=X(),m=M(g);{var v=y=>{var w=Ie();Z(E=>te(w,E),[()=>i()(l(u).length?"confirm_deleting_selected_entry_with_assets":"confirm_deleting_selected_entry")]),$(y,w)},b=y=>{var w=X(),E=M(w);{var k=C=>{var x=Ie();Z(T=>te(x,T),[()=>i()(l(u).length?"confirm_deleting_all_entries_with_assets":"confirm_deleting_all_entries")]),$(C,x)},S=C=>{var x=Ie();Z(T=>te(x,T),[()=>i()(l(u).length?"confirm_deleting_selected_entries_with_assets":"confirm_deleting_selected_entries",{values:{count:r().length}})]),$(C,x)};q(E,C=>{r().length===o().length?C(k):C(S,!1)},!0)}$(y,w)};q(m,y=>{r().length===1?y(v):y(b,!1)})}$(h,g)},$$slots:{default:!0}})}ce(),a()}var OX=U('<div role="none" class="description svelte-83jnuc"><!></div>'),RX=U("<!> <!>",1),DX=U('<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>',1),MX=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1),FX=U("<!> <!>",1),zX=U("<!> <!>",1);const jX={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 BX(t,e){le(e,!0),ke(t,jX);const n=()=>V(Kn,"$selectedCollection",c),r=()=>V(zt,"$appLocale",c),i=()=>V(ue,"$_",c),o=()=>V(ln,"$isSmallScreen",c),s=()=>V(hc,"$selectedEntries",c),a=()=>V(na,"$listedEntries",c),[c,u]=me();let d=ie(!1);const f=T=>Nr.sanitize(Rt.parseInline(T),{ALLOWED_TAGS:["strong","em","del","code","a"],ALLOWED_ATTR:["href"]}),h=_(()=>n()?.name??""),p=_(()=>n()?.description),g=_(()=>!Sh(n())),m=_(()=>r()&&n()?ns(n()):l(h)),v=_(()=>{const T=n();return T?._type==="entry"?{isEntryCollection:!0,canCreate:T.create??!1,canDelete:T.delete??!0,limit:T.limit??1/0}:{isEntryCollection:!1,canCreate:!1,canDelete:!1,limit:1/0}}),b=_(()=>l(v).isEntryCollection),y=_(()=>l(v).canCreate),w=_(()=>l(v).canDelete),E=_(()=>l(v).limit);var k=zX(),S=M(k);{var C=T=>{var A=FX(),P=M(A);{let N=_(()=>i()("collection"));Si(P,{variant:"primary",get"aria-label"(){return l(N)},children:(D,B)=>{var H=DX(),W=M(H);{var Y=ee=>{{let ne=_(()=>i()("back_to_collection_list"));pl(ee,{get"aria-label"(){return l(ne)},onclick:()=>{Qs("/collections")}})}};q(W,ee=>{o()&&ee(Y)})}var O=j(W,2),F=z(O),K=j(O,2);{var J=ee=>{Wr(ee,{flex:!0})},Q=ee=>{var ne=OX(),ae=z(ne);xr(ae,{children:(fe,be)=>{var pe=X(),he=M(pe);cr(he,()=>f(l(p)||"")),$(fe,pe)},$$slots:{default:!0}}),$(ee,ne)};q(K,ee=>{o()?ee(J):ee(Q,!1)})}var oe=j(K,2);{var re=ee=>{var ne=RX(),ae=M(ne);{var fe=pe=>{{let he=_(()=>i()("delete")),ge=_(()=>s().length===1?i()("delete_selected_entry"):i()("delete_selected_entries")),ve=_(()=>!s().length||!l(w));Ze(pe,{variant:"ghost",get label(){return l(he)},get"aria-label"(){return l(ge)},get disabled(){return l(ve)},onclick:()=>{G(d,!0)}})}};q(ae,pe=>{o()||pe(fe)})}var be=j(ae,2);nE(be,{children:(pe,he)=>{var ge=X(),ve=M(ge);{var _e=$e=>{{let Ce=_(()=>o()?void 0:i()("create"));W2($e,{get collectionName(){return l(h)},get label(){return l(Ce)},keyShortcuts:"Accel+E"})}};q(ve,$e=>{(!o()||a().length&&!l(g))&&$e(_e)})}$(pe,ge)},$$slots:{default:!0}}),$(ee,ne)};q(oe,ee=>{l(b)&&ee(re)})}Z(()=>te(F,l(m))),$(D,H)},$$slots:{default:!0}})}var L=j(P,2);{var I=N=>{var D=MX(),B=M(D);Il(B,()=>({"--sui-infobar-border-width":"1px 0","--sui-infobar-message-justify-content":"center"})),Mh(B.lastChild,{dismissible:!1,children:(H,W)=>{var Y=X(),O=M(Y);{var F=J=>{var Q=Ie();Z(oe=>te(Q,oe),[()=>i()("creating_entries_disabled_by_admin")]),$(J,Q)},K=J=>{var Q=Ie();Z(oe=>te(Q,oe),[()=>i()("creating_entries_disabled_by_limit",{values:{limit:l(E)}})]),$(J,Q)};q(O,J=>{l(y)?J(K,!1):J(F)})}$(H,Y)},$$slots:{default:!0}}),$(N,D)};q(L,N=>{l(b)&&l(g)&&N(I)})}$(T,A)};q(S,T=>{n()&&T(C)})}var x=j(S,2);IX(x,{get open(){return l(d)},set open(T){G(d,T,!0)}}),$(t,k),ce(),u()}function UX(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",a),r=()=>V(Vd,"$isLargeScreen",a),i=()=>V(Zr,"$currentView",a),o=()=>V(ue,"$_",a),s=()=>V(Dn,"$allAssets",a),[a,c]=me(),u=_(()=>Wi({collectionName:n()?.name})),d=_(()=>l(u)??{internalPath:void 0,entryRelative:!1,hasTemplateTags:!1}),f=_(()=>l(d).internalPath),h=_(()=>l(d).entryRelative),p=_(()=>l(d).hasTemplateTags),g=_(()=>l(h)||l(p));var m=X(),v=M(m);{var b=y=>{{let w=_(()=>o()("collection_assets"));No(y,{id:"collection-assets",class:"secondary-sidebar",get"aria-label"(){return l(w)},children:(E,k)=>{Wd(E,{get disabled(){return l(g)},multiple:!0,onDrop:({files:S})=>{Ge(Ji,{folder:l(u),files:S})},children:(S,C)=>{{let x=_(()=>s().filter(T=>an(T.folder,l(u))));KA(S,{get assets(){return l(x)},onSelect:({asset:T})=>{Ht(`/assets/${T.path}`,{transitionType:"forwards"})}})}},$$slots:{default:!0}})},$$slots:{default:!0}})}};q(v,y=>{l(f)!==void 0&&r()&&i().showMedia&&y(b)})}$(t,m),ce(),c()}var qX=U("<!> <!>",1);function VX(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"noneLabel",3,""),u=R(e,"groups",19,()=>[]);{const d=h=>{{let p=_(()=>n()("grouping_options"));ir(h,{get"aria-label"(){return l(p)},get"aria-controls"(){return e["aria-controls"]},children:(g,m)=>{var v=qX(),b=M(v);{let w=_(()=>c()||n()("sort_keys.none")),E=_(()=>!r().group);ad(b,{get label(){return l(w)},get checked(){return l(E)},onSelect:()=>{e.currentView.update(k=>({...k,group:null}))}})}var y=j(b,2);it(y,17,u,lr,(w,E)=>{let k=()=>l(E).label,S=()=>l(E).field,C=()=>l(E).pattern;{let x=_(()=>r().group?.field===S()&&String(r().group.pattern)===String(C()));ad(w,{get label(){return k()},get checked(){return l(x)},onSelect:()=>{e.currentView.update(T=>({...T,group:{field:S(),pattern:C()}}))}})}}),$(g,v)},$$slots:{default:!0}})}};let f=_(()=>s()||n()("group"));Ir(t,{variant:"ghost",get label(){return l(f)},get disabled(){return a()},popupPosition:"bottom-right",popup:d,$$slots:{popup:!0}})}ce(),o()}var HX=U("<!> <!>",1),KX=U("<!> <!> <!> <!> <!> <!> <!>",1);function GX(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",h),r=()=>V(na,"$listedEntries",h),i=()=>V(ue,"$_",h),o=()=>V(ln,"$isSmallScreen",h),s=()=>V(Io,"$isMediumScreen",h),a=()=>V(Yy,"$entryGroups",h),c=()=>V(sX,"$sortKeys",h),u=()=>V(JJ,"$viewFilters",h),d=()=>V(QJ,"$viewGroups",h),f=()=>V(Zr,"$currentView",h),[h,p]=me(),g=_(()=>n()?._type==="entry"?n():void 0),m=_(()=>l(g)?.name),v=_(()=>l(g)?._thumbnailFieldNames??[]),b=_(()=>!!r().length),y=_(()=>r().length>1);var w=X(),E=M(w);{var k=S=>{{let C=_(()=>i()("entry_list"));Si(S,{variant:"secondary",get"aria-label"(){return l(C)},children:(x,T)=>{var A=KX(),P=M(A);{var L=J=>{{let Q=_(()=>a().map(({entries:oe})=>oe).flat(1));wA(J,{get allItems(){return l(Q)},get selectedItems(){return hc}})}};q(P,J=>{o()||s()||J(L)})}var I=j(P,2);Wr(I,{flex:!0});var N=j(I,2);{let J=_(()=>!l(y)||!c().length);xA(N,{get disabled(){return l(J)},get currentView(){return Zr},get sortKeys(){return c()},get collectionName(){return l(m)},"aria-controls":"entry-list"})}var D=j(N,2);{var B=J=>{{let Q=_(()=>!l(y));yA(J,{get disabled(){return l(Q)},get currentView(){return Zr},get filters(){return u()},multiple:!0,"aria-controls":"entry-list"})}};q(D,J=>{u()?.length&&J(B)})}var H=j(D,2);{var W=J=>{{let Q=_(()=>!l(y));VX(J,{get disabled(){return l(Q)},get currentView(){return Zr},get groups(){return d()},"aria-controls":"entry-list"})}};q(H,J=>{d()?.length&&J(W)})}var Y=j(H,2);{var O=J=>{{let Q=_(()=>!l(b));Py(J,{get disabled(){return l(Q)},get currentView(){return Zr},"aria-controls":"entry-list"})}};q(Y,J=>{l(v).length&&J(O)})}var F=j(Y,2);{var K=J=>{var Q=HX(),oe=M(Q);Gr(oe,{orientation:"vertical"});var re=j(oe,2);{const ee=be=>{Je(be,{name:"photo_library"})};let ne=_(()=>!l(b)||!Wi({collectionName:l(m)})),ae=_(()=>!!f().showMedia),fe=_(()=>i()(f().showMedia?"hide_assets":"show_assets"));Ze(re,{variant:"ghost",iconic:!0,get disabled(){return l(ne)},get pressed(){return l(ae)},"aria-controls":"collection-assets",get"aria-expanded"(){return f().showMedia},get"aria-label"(){return l(fe)},onclick:()=>{Zr.update(be=>({...be,showMedia:!f().showMedia}))},startIcon:ee,$$slots:{startIcon:!0}})}$(J,Q)};q(F,J=>{o()||s()||J(K)})}$(x,A)},$$slots:{default:!0}})}};q(E,S=>{l(g)&&S(k)})}$(t,w),ce(),p()}var WX=U("<!> <!> <!> <!>",1);function YX(t,e){le(e,!0);const n=()=>V(Kn,"$selectedCollection",c),r=()=>V(ln,"$isSmallScreen",c),i=()=>V(ue,"$_",c),o=()=>V(na,"$listedEntries",c),s=()=>V(zt,"$appLocale",c),a=()=>V(Hd,"$contentUpdatesToast",c),[c,u]=me(),d=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/;let f=ie(!1);const h=_(()=>"files"in(n()??{})?xX:bX),p=()=>{const{path:w,params:E}=Oo(),k=w.match(d);if(G(f,!1),n()?.name==="_singletons"&&zs().length&&Ge(Kn,void 0),!k?.groups)return;const{_collectionName:S,routeType:C,subPath:x}=k.groups;if(!S){if(r())Ge(Kn,void 0),Ge(ci,i()("viewing_collection_list")),G(f,!0);else{const I=n()||rj()||GS();Ht(`/collections/${I?.name}`,{replaceState:!0})}return}const T=Kr(S);if(!T||T.hide?Ge(Kn,void 0):n()?.name!==T.name&&Ge(Kn,T),!T||!n()){Ge(ci,i()("collection_not_found"));return}const{name:A}=n(),P=ns(n()),L="_fileMap"in n()?n()._fileMap:void 0;if(!C){const I=o().length;Ge(ci,i()(I>1?"viewing_x_collection_many_entries":I===1?"viewing_x_collection_one_entry":"viewing_x_collection_no_entries",{values:{collection:P,count:I}}));return}if(Ge(ga,!0),L){if(C==="entries"&&x){const I=yv(A,x),N=L[x];tf(I?{collection:T,collectionFile:N,originalEntry:I}:{collection:T,collectionFile:N,originalEntry:{slug:N.name,locales:Object.fromEntries(N._i18n.initialLocales.map(D=>[D,{}]))}}),Ge(ci,i()(`edit_${T._type}_announcement`,{values:{collection:P,file:Fu(N)}}))}}else if(C==="new"&&!x&&(tf({collection:T,dynamicValues:E,isIndexFile:!!window.history.state?.index}),Ge(ci,i()("create_entry_announcement",{values:{collection:P}}))),C==="entries"&&x){const I=o().find(N=>N.subPath===x);I&&s()&&(tf({collection:T,originalEntry:I}),Ge(ci,i()("edit_entry_announcement",{values:{collection:P,entry:lc(n(),I)}})))}};Ft(()=>{p()});var g=WX();jr("hashchange",ua,w=>{xy(w,p,d)});var m=M(g);{const w=S=>{var C=X(),x=M(C);{var T=A=>{NX(A,{})};q(x,A=>{(!r()||l(f))&&A(T)})}$(S,C)},E=S=>{var C=X(),x=M(C);{var T=A=>{{const P=H=>{BX(H,{})},L=H=>{var W=X(),Y=M(W);{var O=F=>{GX(F,{})};q(Y,F=>{n()?._type==="entry"&&o().length&&F(O)})}$(H,W)},I=H=>{var W=X(),Y=M(W);Bn(Y,()=>l(h),(O,F)=>{F(O,{})}),$(H,W)},N=H=>{UX(H,{})};let D=_(()=>i()("x_collection",{values:{collection:s()&&n()?ns(n()):""}})),B=_(()=>n()?.description);Jd(A,{get"aria-label"(){return l(D)},get"aria-description"(){return l(B)},primaryToolbar:P,secondaryToolbar:L,mainContent:I,secondarySidebar:N,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};q(x,A=>{(!r()||!l(f))&&A(T)})}$(S,C)};let k=_(()=>i()("content_library"));ml(m,{get"aria-label"(){return l(k)},primarySidebar:w,main:E,$$slots:{primarySidebar:!0,main:!0}})}var v=j(m,2);WJ(v,{});var b=j(v,2);Qn(b,{get show(){return a().saved},set show(w){_t(Hd,Se(a).saved=w,Se(a))},children:(w,E)=>{Mn(w,{status:"success",children:(k,S)=>{var C=Ie();Z(x=>te(C,x),[()=>i()(a().published?"entry_saved_and_published":"entry_saved")]),$(k,C)},$$slots:{default:!0}})},$$slots:{default:!0}});var y=j(b,2);Qn(y,{get show(){return a().deleted},set show(w){_t(Hd,Se(a).deleted=w,Se(a))},children:(w,E)=>{Mn(w,{status:"success",children:(k,S)=>{var C=Ie();Z(x=>te(C,x),[()=>i()(a().count===1?"entry_deleted":"entries_deleted",{values:{count:a().count}})]),$(k,C)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,g),ce(),u()}function J2(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(dt,"$prefs",i),[i,o]=me();{let s=_(()=>n()("prefs.i18n.default_translator.select_service"));Fa(t,{get"aria-label"(){return l(s)},get value(){return r().defaultTranslationService},onChange:a=>{Ge(dt,{...r(),defaultTranslationService:a.detail.value})},children:(a,c)=>{var u=X(),d=M(u);it(d,17,()=>Object.entries(jy),([f,{serviceLabel:h}])=>f,(f,h)=>{var p=_(()=>lo(l(h),2));let g=()=>l(p)[0],m=()=>l(p)[1].serviceLabel;{let v=_(()=>g()===r().defaultTranslationService);kr(f,{get label(){return m()},get value(){return g()},get selected(){return l(v)}})}}),$(a,u)},$$slots:{default:!0}})}ce(),o()}var JX=U("<!> <!> <!>",1);function XX(t,e){le(e,!0);const n=()=>V(tg,"$translator",a),r=()=>V(ga,"$showContentOverlay",a),i=()=>V(gu,"$translatorApiKeyDialogState",a),o=()=>V(ue,"$_",a),s=()=>V(dt,"$prefs",a),[a,c]=me(),u=_(()=>n().serviceId),d=_(()=>n().apiLabel),f=_(()=>n().developerURL),h=_(()=>n().apiKeyURL),p=_(()=>n().apiKeyPattern);De(()=>{!r()&&i().show&&(_t(gu,Se(i).show=!1,Se(i)),i().resolve?.())});{let g=_(()=>o()(i().multiple?"translate_fields":"translate_field")),m=_(()=>({spellcheck:!1,monospace:!0,"aria-label":o()("api_key")}));sE(t,{get title(){return l(g)},showOk:!1,get textboxAttrs(){return l(m)},oninput:v=>{const b=v.target.value.trim();l(p)?.test(b)&&(_t(dt,Se(s).apiKeys??={},Se(s)),_t(dt,Se(s).apiKeys[l(u)]=b,Se(s)),_t(gu,Se(i).show=!1,Se(i)),i().resolve?.(b))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(v){_t(gu,Se(i).show=v,Se(i))},children:(v,b)=>{var y=JX(),w=M(y);J2(w,{});var E=j(w,2);Wr(E,{});var k=j(E,2);cr(k,()=>Nr.sanitize(o()("prefs.i18n.translator.description",{values:{service:l(d),homeHref:`href="${l(f)}"`,apiKeyHref:`href="${l(h)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(v,y)},$$slots:{default:!0}})}ce(),c()}function ZX(t,e){le(e,!0);const n=()=>V(_v,"$entryParseErrors",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(!!n().length);Qn(t,{get show(){return l(s)},set show(a){G(s,a,!0)},children:(a,c)=>{Mn(a,{status:"error",children:(u,d)=>{var f=Ie();Z(h=>te(f,h),[()=>r()(n().length===1?"entry_parse_error":"entry_parse_errors")]),$(u,f)},$$slots:{default:!0}})},$$slots:{default:!0}}),ce(),o()}const X2=Qt([Vd,Wc,bn,Hn],([t,e,n,r])=>t&&e&&!!n?.isGit&&!!r?.token),og=nt(!1);var QX=U(" <!> <!>",1),eZ=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1);function tZ(t,e){le(e,!0);const n=()=>V(bn,"$backend",i),r=()=>V(ue,"$_",i),[i,o]=me();let s,a=ie(!1);De(()=>{const{databaseName:d}=n()?.repository??{};d&&(s=new mo(d,"ui-settings"),(async()=>{const f=await s.get("onboarding")??{};f.mobileCta||G(a,!0),await s.set("onboarding",{...f,mobileCta:!0})})())});var c=eZ(),u=M(c);Il(u,()=>({"--sui-infobar-message-justify-content":"center"})),Mh(u.lastChild,{get show(){return l(a)},dismissible:!1,children:(d,f)=>{var h=QX(),p=M(h),g=j(p);{let v=_(()=>r()("mobile_promo_button"));Ze(g,{variant:"link",get label(){return l(v)},onclick:()=>{G(a,!1),Ge(og,!0)}})}var m=j(g,2);{let v=_(()=>r()("later"));Ze(m,{variant:"link",get label(){return l(v)},onclick:()=>{G(a,!1)}})}Z(v=>te(p,`${v??""} `),[()=>r()("mobile_promo_title")]),$(d,h)},$$slots:{default:!0}}),$(t,c),ce(),o()}var nZ=U('<div role="none" class="wrapper svelte-t2r4ty"><!></div>');const rZ={hash:"svelte-t2r4ty",code:`.wrapper.svelte-t2r4ty {display:contents;}.wrapper.svelte-t2r4ty .sui.select-button-group {gap:4px;}
651
651
  @media (width < 768px) {.wrapper.svelte-t2r4ty .sui.select-button-group {justify-content:space-evenly;width:100%;}
652
- }.wrapper.svelte-t2r4ty .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}`};function Z2(t,e){le(e,!0),ke(t,nZ);const n=()=>V(ue,"$_",s),r=()=>V(ln,"$isSmallScreen",s),i=()=>V(Gi,"$selectedAssetFolder",s),o=()=>V(yy,"$selectedPageName",s),[s,a]=me(),c=_(()=>[{key:"collections",label:n()("contents"),icon:"library_books",link:"/collections"},{key:"assets",label:n()("assets"),icon:"photo_library",link:r()?"/assets":`/assets/${i()?.internalPath??"-/all"}`},...r()?[{key:"menu",label:n()("menu"),icon:"menu",link:"/menu"}]:[]]);var u=tZ(),d=z(u);{let f=_(()=>n()("switch_page"));Fh(d,{get"aria-label"(){return l(f)},"aria-controls":"page-container",children:(h,p)=>{var g=X(),m=M(g);it(m,19,()=>l(c),({key:v,label:b,icon:y,link:w})=>v,(v,b,y)=>{let w=()=>l(b).key,E=()=>l(b).label,k=()=>l(b).icon,S=()=>l(b).link;{const C=A=>{Je(A,{get name(){return k()}})};let x=_(()=>o()===w()),T=_(()=>l(y)+1);id(v,{variant:"ghost",iconic:!0,get selected(){return l(x)},get"aria-label"(){return E()},get keyShortcuts(){return`Alt+${l(T)??""}`},onclick:()=>{Ht(S())},startIcon:C,$$slots:{startIcon:!0}})}}),$(h,g)},$$slots:{default:!0}})}$(t,u),ce(),a()}var rZ=U('<div role="none" class="buttons"><!></div>');function iZ(t,e){le(e,!0);const n=()=>V(_y,"$hasOverlay",i),r=()=>V(ue,"$_",i),[i,o]=me();Mj(t,{get inert(){return n()},children:(s,a)=>{{let c=_(()=>r()("global"));Si(s,{variant:"primary",get"aria-label"(){return l(c)},children:(u,d)=>{var f=rZ(),h=z(f);Z2(h,{}),$(u,f)},$$slots:{default:!0}})}},$$slots:{default:!0}}),ce(),o()}var oZ=U('<span class="version svelte-wmw2gz"> </span>');const sZ={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 aZ(t,e){le(e,!0),ke(t,sZ);const n=()=>V(ue,"$_",i),r=()=>V(dt,"$prefs",i),[i,o]=me();{const s=c=>{var u=X(),d=M(u);{var f=h=>{var p=oZ(),g=z(p);Z(m=>{Ee(p,"aria-label",`(${m??""})`),te(g,`v${uv}`)},[()=>n()("version_x",{values:{version:uv}})]),$(h,p)};q(d,h=>{r().devModeEnabled&&h(f)})}$(c,u)};let a=_(()=>n()("release_notes"));mt(t,{get label(){return l(a)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/releases","_blank")},endIcon:s,$$slots:{endIcon:!0}})}ce(),o()}var lZ=U('<kbd class="svelte-13q15u"> </kbd>'),cZ=U("<!> <!>",1),uZ=U('<div role="none" class="wrapper svelte-13q15u"><!></div>');const dZ={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 fZ(t,e){le(e,!0),ke(t,dZ);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"open",15,!1),s=R(e,"onClose",3,void 0);const a=[{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 c=ie("Ctrl");Ft(()=>{(navigator.userAgentData?.platform==="macOS"||navigator.platform.startsWith("Mac"))&&G(c,"⌘")});{let u=_(()=>n()("keyboard_shortcuts"));Di(t,{get title(){return l(u)},size:"small",showOk:!1,showCancel:!1,showClose:!0,style:"--sui-dialog-small-content-max-height:auto",onClose:()=>{s()?.()},get open(){return o()},set open(d){o(d)},children:(d,f)=>{var h=uZ(),p=z(h);{let g=_(()=>n()("keyboard_shortcuts"));IU(p,{get"aria-label"(){return l(g)},children:(m,v)=>{var b=X(),y=M(b);it(y,17,()=>a,({feature:w,keys:E})=>E,(w,E)=>{let k=()=>l(E).feature,S=()=>l(E).keys;PU(w,{children:(C,x)=>{var T=cZ(),A=M(T);lE(A,{class:"feature",children:(L,I)=>{var N=Ie();Z(D=>te(N,D),[()=>n()(`keyboard_shortcuts_.${k()}`)]),$(L,N)},$$slots:{default:!0}});var P=j(A,2);lE(P,{class:"keys",children:(L,I)=>{var N=X(),D=M(N);it(D,17,()=>S().split("+"),lr,(B,H)=>{var W=lZ(),Y=z(W);Z(O=>te(Y,O),[()=>l(H).replace("Accel",l(c))]),$(B,W)}),$(L,N)},$$slots:{default:!0}}),$(C,T)},$$slots:{default:!0}})}),$(m,b)},$$slots:{default:!0}})}$(d,h)},$$slots:{default:!0}})}ce(),i()}var hZ=U("<!> <!>",1);function pZ(t,e){le(e,!0);const n=()=>V(Wc,"$hasMouse",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(!1);var a=hZ(),c=M(a);{var u=f=>{{let h=_(()=>r()("keyboard_shortcuts"));mt(f,{get label(){return l(h)},onclick:()=>{G(s,!0)}})}};q(c,f=>{n()&&f(u)})}var d=j(c,2);fZ(d,{onClose:()=>{e.menuButton?.focus()},get open(){return l(s)},set open(f){G(s,f,!0)}}),$(t,a),ce(),o()}function Qc(t,e){le(e,!0);const n=()=>V(dt,"$prefs",r),[r,i]=me();let o=R(e,"defaultValue",3,!0),s=ie(!0);De(()=>{G(s,!!(n()[e.key]??o()),!0)}),De(()=>{n()[e.key]!==l(s)&&_t(dt,Se(n)[e.key]=l(s),Se(n))}),_b(t,{get label(){return e.label},get checked(){return l(s)},set checked(a){G(s,a,!0)}}),ce(),i()}var gZ=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>');function mZ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();R(e,"onChange",3,void 0);var o=gZ(),s=z(o),a=z(s),c=j(s,2),u=z(c),d=j(c,2),f=z(d);{let h=_(()=>n()("prefs.accessibility.underline_links.switch_label"));Qc(f,{key:"underlineLinks",get label(){return l(h)}})}Z((h,p)=>{te(a,h),te(u,p)},[()=>n()("prefs.accessibility.underline_links.title"),()=>n()("prefs.accessibility.underline_links.description")]),$(t,o),ce(),i()}var vZ=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>'),bZ=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section> <section><h4> </h4> <p> </p> <div role="none"><!></div></section> <!>',1);function _Z(t,e){le(e,!0);const n=()=>V(ue,"$_",o),r=()=>V(Sy,"$skipCIConfigured",o),i=()=>V(dt,"$prefs",o),[o,s]=me();let a=R(e,"onChange",3,void 0);var c=bZ(),u=M(c),d=z(u),f=z(d),h=j(d,2),p=z(h),g=j(h,2),m=z(g);{let T=_(()=>n()("prefs.advanced.beta.switch_label"));Qc(m,{key:"beta",get label(){return l(T)},defaultValue:!1})}var v=j(u,2),b=z(v),y=z(b),w=j(b,2),E=z(w),k=j(w,2),S=z(k);{let T=_(()=>n()("prefs.advanced.developer_mode.switch_label"));Qc(S,{key:"devModeEnabled",get label(){return l(T)},defaultValue:!1})}var C=j(v,2);{var x=T=>{var A=vZ(),P=z(A),L=z(P),I=j(P,2),N=z(I),D=j(I,2),B=z(D);{let H=_(()=>n()("prefs.advanced.deploy_hook.field_label"));Cn(B,{flex:!0,get label(){return l(H)},onchange:()=>{a()?.({message:n()(i().deployHookURL?"prefs.advanced.deploy_hook.url_saved":"prefs.advanced.deploy_hook.url_removed")})},get value(){return i().deployHookURL},set value(W){_t(dt,Se(i).deployHookURL=W,Se(i))}})}Z((H,W)=>{te(L,H),te(N,W)},[()=>n()("prefs.advanced.deploy_hook.title"),()=>n()("prefs.advanced.deploy_hook.description")]),$(T,A)};q(C,T=>{r()&&T(x)})}Z((T,A,P,L)=>{te(f,T),te(p,A),te(y,P),te(E,L)},[()=>n()("prefs.advanced.beta.title"),()=>n()("prefs.advanced.beta.description"),()=>n()("prefs.advanced.developer_mode.title"),()=>n()("prefs.advanced.developer_mode.description")]),$(t,c),ce(),s()}var yZ=U('<section><h4> </h4> <div role="none"><!></div></section>');function wZ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(dt,"$prefs",i),[i,o]=me();R(e,"onChange",3,void 0);var s=yZ(),a=z(s),c=z(a),u=j(a,2),d=z(u);{let f=_(()=>n()("prefs.appearance.select_theme"));Fh(d,{get"aria-label"(){return l(f)},onChange:h=>{Ge(dt,{...r(),theme:h.detail.value})},children:(h,p)=>{var g=X(),m=M(g);it(m,16,()=>["auto","dark","light"],lr,(v,b)=>{{let y=_(()=>n()(`prefs.theme.${b}`)),w=_(()=>!r().theme&&b==="auto"||r().theme===b);id(v,{variant:"tertiary",get label(){return l(y)},get value(){return b},get selected(){return l(w)}})}}),$(h,g)},$$slots:{default:!0}})}Z(f=>te(c,f),[()=>n()("prefs.appearance.theme")]),$(t,s),ce(),o()}var xZ=U('<section><h4> </h4> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>');function kZ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();R(e,"onChange",3,void 0);var o=xZ(),s=z(o),a=z(s),c=j(s,2),u=z(c);{let g=_(()=>n()("prefs.contents.editor.use_draft_backup.switch_label"));Qc(u,{key:"useDraftBackup",get label(){return l(g)}})}var d=j(c,2),f=z(d);{let g=_(()=>n()("prefs.contents.editor.close_on_save.switch_label"));Qc(f,{key:"closeOnSave",get label(){return l(g)}})}var h=j(d,2),p=z(h);{let g=_(()=>n()("prefs.contents.editor.close_with_escape.switch_label"));Qc(p,{key:"closeWithEscape",get label(){return l(g)}})}Z(g=>te(a,g),[()=>n()("prefs.contents.editor.title")]),$(t,o),ce(),i()}var SZ=U('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>'),EZ=U('<section><h4> </h4> <div role="none"><!></div></section> <!>',1);function $Z(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(dt,"$prefs",i),[i,o]=me();let s=R(e,"onChange",3,void 0);var a=EZ(),c=M(a),u=z(c),d=z(u),f=j(u,2),h=z(f);J2(h,{});var p=j(c,2);it(p,17,()=>Object.entries(jy),([g,m])=>g,(g,m)=>{var v=_(()=>lo(l(m),2));let b=()=>l(v)[0],y=()=>l(v)[1];const w=_(()=>{const{serviceLabel:L,apiLabel:I,developerURL:N,apiKeyURL:D}=y();return{serviceLabel:L,apiLabel:I,developerURL:N,apiKeyURL:D}});var E=SZ(),k=z(E),S=z(k),C=j(k,2),x=z(C);cr(x,()=>Nr.sanitize(n()("prefs.i18n.translator.description",{values:{service:l(w).apiLabel,homeHref:`href="${l(w).developerURL}"`,apiKeyHref:`href="${l(w).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var T=j(C,2),A=z(T);{var P=L=>{{let I=_(()=>n()("prefs.i18n.translator.field_label",{values:{service:l(w).serviceLabel}}));Cn(L,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(I)},onchange:()=>{s()?.({message:n()(r().apiKeys?.[b()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return r().apiKeys[b()]},set value(N){_t(dt,Se(r).apiKeys[b()]=N,Se(r))}})}};q(A,L=>{r().apiKeys&&L(P)})}Z(()=>te(S,l(w).serviceLabel)),$(g,E)}),Z(g=>te(d,g),[()=>n()("prefs.i18n.default_translator.title")]),$(t,a),ce(),o()}var TZ=U('<section><h4> </h4> <div role="none"><!></div></section>');function CZ(t,e){le(e,!0);const n=()=>V(ue,"$_",s),r=()=>V(zt,"$appLocale",s),i=()=>V(dt,"$prefs",s),o=()=>V(k0,"$appLocales",s),[s,a]=me();R(e,"onChange",3,void 0);var c=TZ(),u=z(c),d=z(u),f=j(u,2),h=z(f);Xn(h,r,p=>{{let g=_(()=>n()("prefs.language.ui_language.select_language")),m=_(()=>r()??void 0);Fa(p,{get"aria-label"(){return l(g)},get value(){return l(m)},onChange:v=>{Ge(dt,{...i(),locale:v.detail.value})},children:(v,b)=>{var y=X(),w=M(y);it(w,1,o,lr,(E,k)=>{{let S=_(()=>Oi(l(k),{native:!0})),C=_(()=>l(k)===r());kr(E,{get label(){return l(S)},get value(){return l(k)},get selected(){return l(C)},dir:"auto"})}}),$(v,y)},$$slots:{default:!0}})}}),Z(p=>te(d,p),[()=>n()("prefs.language.ui_language.title")]),$(t,c),ce(),a()}var AZ=U('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>');function PZ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(dt,"$prefs",i),[i,o]=me();let s=R(e,"onChange",3,void 0);const a=_(()=>{const{providers:d=[]}=s2();return Object.entries(rg).filter(([f])=>d.includes(f))});var c=X(),u=M(c);it(u,17,()=>l(a),([d,f])=>d,(d,f)=>{var h=_(()=>lo(l(f),2));let p=()=>l(h)[0],g=()=>l(h)[1];const m=_(()=>{const{serviceLabel:x,developerURL:T,apiKeyURL:A}=g();return{serviceLabel:x,developerURL:T,apiKeyURL:A}});var v=AZ(),b=z(v),y=z(b),w=j(b,2),E=z(w);cr(E,()=>Nr.sanitize(n()("prefs.media.stock_photos.description",{values:{service:l(m).serviceLabel,homeHref:`href="${l(m).developerURL}"`,apiKeyHref:`href="${l(m).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var k=j(w,2),S=z(k);{var C=x=>{{let T=_(()=>n()("prefs.media.stock_photos.field_label",{values:{service:l(m).serviceLabel}}));Cn(x,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(T)},onchange:()=>{s()?.({message:n()(r().apiKeys?.[p()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return r().apiKeys[p()]},set value(A){_t(dt,Se(r).apiKeys[p()]=A,Se(r))}})}};q(S,x=>{r().apiKeys&&x(C)})}Z(x=>te(y,x),[()=>n()("prefs.media.stock_photos.title",{values:{service:l(m).serviceLabel}})]),$(d,v)},d=>{var f=Ie();Z(h=>te(f,h),[()=>n()("prefs.media.stock_photos.providers_disabled")]),$(d,f)}),$(t,c),ce(),o()}const sg=Qt([Et],([t])=>[{key:"appearance",icon:"palette",component:wZ},{key:"language",icon:"language",component:CZ},{key:"contents",icon:"library_books",component:kZ},{key:"i18n",icon:"translate",component:$Z,enabled:(t?.i18n?.locales?.length??0)>1},{key:"media",icon:"photo_library",component:PZ},{key:"accessibility",icon:"accessibility_new",component:mZ},{key:"advanced",icon:"build",component:_Z}]);var LZ=U('<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>'),NZ=U("<!> <!>",1);const IZ={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;}.wrapper.svelte-pwxwga .sui.tab-panel section:not(:first-child) {margin:16px 0 0;}.wrapper.svelte-pwxwga .sui.tab-panel p {margin-top:0;}.wrapper.svelte-pwxwga .sui.tab-panel h4 {font-size:inherit;}.wrapper.svelte-pwxwga .sui.tab-panel h4 ~ div {margin:8px 0 0;}.wrapper.svelte-pwxwga .sui.tab-panel h4 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function OZ(t,e){le(e,!0),ke(t,IZ);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"open",15,!1),s=R(e,"onClose",3,void 0),a=ie("appearance"),c=ie(""),u=ie(!1);var d=NZ(),f=M(d);{let p=_(()=>n()("settings"));Di(f,{get title(){return l(p)},size:"large",showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{s()?.()},get open(){return o()},set open(g){o(g)},children:(g,m)=>{var v=LZ(),b=z(v);{let w=_(()=>n()("categories"));DU(b,{orientation:"vertical",get"aria-label"(){return l(w)},children:(E,k)=>{var S=X(),C=M(S);it(C,17,()=>se(sg),({key:x,icon:T,enabled:A=!0})=>x,(x,T)=>{let A=()=>l(T).key,P=()=>l(T).icon,L=Lg(()=>tt(l(T).enabled,!0));var I=X(),N=M(I);{var D=B=>{{const H=O=>{Je(O,{get name(){return P()}})};let W=_(()=>n()(`prefs.${A()}.title`)),Y=_(()=>A()===l(a));jU(B,{get label(){return l(W)},get selected(){return l(Y)},get"aria-controls"(){return`prefs-tab-${A()??""}`},onSelect:()=>{G(a,A(),!0)},startIcon:H,$$slots:{startIcon:!0}})}};q(N,B=>{l(L)&&B(D)})}$(x,I)}),$(E,S)},$$slots:{default:!0}})}var y=j(b,2);it(y,17,()=>se(sg),({key:w,component:E})=>w,(w,E)=>{let k=()=>l(E).key,S=()=>l(E).component;zU(w,{get id(){return`prefs-tab-${k()??""}`},children:(C,x)=>{var T=X(),A=M(T);Bn(A,S,(P,L)=>{L(P,{onChange:({message:I})=>{G(c,I,!0),G(u,!0)}})}),$(C,T)},$$slots:{default:!0}})}),$(g,v)},$$slots:{default:!0}})}var h=j(f,2);Qn(h,{get show(){return l(u)},set show(p){G(u,p,!0)},children:(p,g)=>{Mn(p,{status:"success",children:(m,v)=>{var b=Ie();Z(()=>te(b,l(c))),$(m,b)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,d),ce(),i()}var RZ=U("<!> <!>",1),DZ=U("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),MZ=U("<!> <!>",1);function Q2(t,e){le(e,!0);const n=()=>V(gc,"$backendName",u),r=()=>V(ue,"$_",u),i=()=>V(Hn,"$user",u),o=()=>V(dt,"$prefs",u),s=()=>V(bn,"$backend",u),a=()=>V(ln,"$isSmallScreen",u),c=()=>V(X2,"$canShowMobileSignInDialog",u),[u,d]=me();let f=ie(!1);const h=_(()=>n()==="local"),p=_(()=>n()==="test-repo");var g=MZ(),m=M(g);{let b=_(()=>r()("account"));ir(m,{get"aria-label"(){return l(b)},children:(y,w)=>{var E=DZ(),k=M(E);{let Y=_(()=>l(h)?r()("working_with_local_repo"):l(p)?r()("working_with_test_repo"):r()("signed_in_as_x",{values:{name:i()?.login}})),O=_(()=>l(h)||l(p));mt(k,{get label(){return l(Y)},get disabled(){return l(O)},onclick:()=>{window.open(i()?.profileURL,"_blank")}})}var S=j(k,2);Gr(S,{});var C=j(S,2);{let Y=_(()=>r()("live_site"));mt(C,{get label(){return l(Y)},onclick:()=>{eA()}})}var x=j(C,2);{var T=Y=>{var O=RZ(),F=M(O);{let J=_(()=>r()("git_repository")),Q=_(()=>!s()?.repository?.treeBaseURL);mt(F,{get label(){return l(J)},get disabled(){return l(Q)},onclick:()=>{window.open(s()?.repository?.treeBaseURL)}})}var K=j(F,2);{let J=_(()=>r()("site_config"));mt(K,{get label(){return l(J)},onclick:()=>{Ht("/config",{transitionType:"forwards"})}})}$(Y,O)};q(x,Y=>{o().devModeEnabled&&Y(T)})}var A=j(x,2);Gr(A,{});var P=j(A,2);{let Y=_(()=>r()("settings"));mt(P,{get label(){return l(Y)},onclick:()=>{a()?Ht("/settings",{transitionType:"forwards"}):G(f,!0)}})}var L=j(P,2);pZ(L,{get menuButton(){return e.menuButton}});var I=j(L,2);{var N=Y=>{aZ(Y,{})};q(I,Y=>{o().devModeEnabled&&Y(N)})}var D=j(I,2);{var B=Y=>{{let O=_(()=>r()("sign_in_with_mobile"));mt(Y,{get label(){return l(O)},onclick:()=>{Ge(og,!0)}})}};q(D,Y=>{c()&&Y(B)})}var H=j(D,2);Gr(H,{});var W=j(H,2);{let Y=_(()=>r()("sign_out"));mt(W,{get label(){return l(Y)},onclick:async()=>{window.requestAnimationFrame(()=>{b6()})}})}$(y,E)},$$slots:{default:!0}})}var v=j(m,2);OZ(v,{onClose:()=>{e.menuButton?.focus()},get open(){return l(f)},set open(b){G(f,b,!0)}}),$(t,g),ce(),d()}var FZ=U('<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>'),zZ=U('<div role="none" class="wrapper svelte-q0ng4j"><!></div>');const jZ={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 BZ(t,e){le(e,!0),ke(t,jZ);const n=()=>V(Hn,"$user",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(void 0);const a=_(()=>!!n()?.avatarURL);var c=zZ(),u=z(c);{const d=g=>{var m=X(),v=M(m);{var b=w=>{var E=FZ();Z(()=>Ee(E,"src",n()?.avatarURL)),$(w,E)},y=w=>{Je(w,{name:"account_circle"})};q(v,w=>{l(a)?w(b):w(y,!1)})}$(g,m)},f=g=>{Q2(g,{get menuButton(){return l(s)}})};let h=_(()=>l(a)?"avatar":""),p=_(()=>r()("show_account_menu"));vt(Ir(u,{variant:"ghost",iconic:!0,get class(){return l(h)},popupPosition:"bottom-right",get"aria-label"(){return l(p)},endIcon:d,popup:f,$$slots:{endIcon:!0,popup:!0}}),g=>G(s,g,!0),()=>l(s))}$(t,c),ce(),o()}var UZ=U("<!> <!>",1),qZ=U("<!> <!>",1);function VZ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>zs({visible:!0,type:"entry"}));{const s=u=>{Je(u,{name:"add"})},a=u=>{{let d=_(()=>n()("create_entry_or_assets"));ir(u,{get"aria-label"(){return l(d)},children:(f,h)=>{var p=qZ(),g=M(p);{var m=b=>{var y=UZ(),w=M(y);it(w,17,()=>l(o),k=>k.name,(k,S)=>{const C=_(()=>{const{name:x,label:T,label_singular:A,create:P=!1,limit:L=1/0}=l(S);return{name:x,label:T,labelSingular:A,create:P,limit:L}});{let x=_(()=>l(C).labelSingular||l(C).label||l(C).name),T=_(()=>!l(C).create||wo(l(C).name).length>=l(C).limit);mt(k,{get label(){return l(x)},get disabled(){return l(T)},onclick:()=>{Ht(`/collections/${l(C).name}/new`,{transitionType:"forwards"})}})}});var E=j(w,2);Gr(E,{}),$(b,y)};q(g,b=>{l(o).length&&b(m)})}var v=j(g,2);{let b=_(()=>n()("assets"));mt(v,{get label(){return l(b)},onclick:async()=>{Ht("/assets",{transitionType:"forwards"}),await Lt(100),Ge(Xs,!0)}})}$(f,p)},$$slots:{default:!0}})}};let c=_(()=>n()("create_entry_or_assets"));Ir(t,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(c)},endIcon:s,popup:a,$$slots:{endIcon:!0,popup:!0}})}ce(),i()}function HZ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{Je(a,{name:"notifications"})};let s=_(()=>n()("show_notifications"));Ze(t,{variant:"ghost",iconic:!0,hidden:!0,get"aria-label"(){return l(s)},onclick:()=>{},startIcon:o,$$slots:{startIcon:!0}})}ce(),i()}var KZ=U('<img loading="lazy" alt="" class="logo svelte-15c9hhi"/>');const GZ={hash:"svelte-15c9hhi",code:"img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}"};function WZ(t,e){le(e,!0),ke(t,GZ);const n=()=>V(Et,"$siteConfig",i),r=()=>V(ue,"$_",i),[i,o]=me();var s=X(),a=M(s);{var c=u=>{{let d=_(()=>r()("visit_live_site"));Ze(u,{variant:"ghost",iconic:!0,get"aria-label"(){return l(d)},onclick:()=>{eA()},children:(f,h)=>{var p=KZ();Z(()=>Ee(p,"src",n().logo_url)),$(f,p)},$$slots:{default:!0}})}};q(a,u=>{n()?.logo_url&&u(c)})}$(t,s),ce(),o()}var YZ=U('<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>',1),JZ=U('<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>');const XZ={hash:"svelte-1kz79fh",code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;}.toolbar-wrapper[inert].svelte-1kz79fh {display:none;}
652
+ }.wrapper.svelte-t2r4ty .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}`};function Z2(t,e){le(e,!0),ke(t,rZ);const n=()=>V(ue,"$_",s),r=()=>V(ln,"$isSmallScreen",s),i=()=>V(Gi,"$selectedAssetFolder",s),o=()=>V(yy,"$selectedPageName",s),[s,a]=me(),c=_(()=>[{key:"collections",label:n()("contents"),icon:"library_books",link:"/collections"},{key:"assets",label:n()("assets"),icon:"photo_library",link:r()?"/assets":`/assets/${i()?.internalPath??"-/all"}`},...r()?[{key:"menu",label:n()("menu"),icon:"menu",link:"/menu"}]:[]]);var u=nZ(),d=z(u);{let f=_(()=>n()("switch_page"));Fh(d,{get"aria-label"(){return l(f)},"aria-controls":"page-container",children:(h,p)=>{var g=X(),m=M(g);it(m,19,()=>l(c),({key:v,label:b,icon:y,link:w})=>v,(v,b,y)=>{let w=()=>l(b).key,E=()=>l(b).label,k=()=>l(b).icon,S=()=>l(b).link;{const C=A=>{Je(A,{get name(){return k()}})};let x=_(()=>o()===w()),T=_(()=>l(y)+1);id(v,{variant:"ghost",iconic:!0,get selected(){return l(x)},get"aria-label"(){return E()},get keyShortcuts(){return`Alt+${l(T)??""}`},onclick:()=>{Ht(S())},startIcon:C,$$slots:{startIcon:!0}})}}),$(h,g)},$$slots:{default:!0}})}$(t,u),ce(),a()}var iZ=U('<div role="none" class="buttons"><!></div>');function oZ(t,e){le(e,!0);const n=()=>V(_y,"$hasOverlay",i),r=()=>V(ue,"$_",i),[i,o]=me();Mj(t,{get inert(){return n()},children:(s,a)=>{{let c=_(()=>r()("global"));Si(s,{variant:"primary",get"aria-label"(){return l(c)},children:(u,d)=>{var f=iZ(),h=z(f);Z2(h,{}),$(u,f)},$$slots:{default:!0}})}},$$slots:{default:!0}}),ce(),o()}var sZ=U('<span class="version svelte-wmw2gz"> </span>');const aZ={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 lZ(t,e){le(e,!0),ke(t,aZ);const n=()=>V(ue,"$_",i),r=()=>V(dt,"$prefs",i),[i,o]=me();{const s=c=>{var u=X(),d=M(u);{var f=h=>{var p=sZ(),g=z(p);Z(m=>{Ee(p,"aria-label",`(${m??""})`),te(g,`v${uv}`)},[()=>n()("version_x",{values:{version:uv}})]),$(h,p)};q(d,h=>{r().devModeEnabled&&h(f)})}$(c,u)};let a=_(()=>n()("release_notes"));mt(t,{get label(){return l(a)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/releases","_blank")},endIcon:s,$$slots:{endIcon:!0}})}ce(),o()}var cZ=U('<kbd class="svelte-13q15u"> </kbd>'),uZ=U("<!> <!>",1),dZ=U('<div role="none" class="wrapper svelte-13q15u"><!></div>');const fZ={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 hZ(t,e){le(e,!0),ke(t,fZ);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"open",15,!1),s=R(e,"onClose",3,void 0);const a=[{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 c=ie("Ctrl");Ft(()=>{(navigator.userAgentData?.platform==="macOS"||navigator.platform.startsWith("Mac"))&&G(c,"⌘")});{let u=_(()=>n()("keyboard_shortcuts"));Di(t,{get title(){return l(u)},size:"small",showOk:!1,showCancel:!1,showClose:!0,style:"--sui-dialog-small-content-max-height:auto",onClose:()=>{s()?.()},get open(){return o()},set open(d){o(d)},children:(d,f)=>{var h=dZ(),p=z(h);{let g=_(()=>n()("keyboard_shortcuts"));IU(p,{get"aria-label"(){return l(g)},children:(m,v)=>{var b=X(),y=M(b);it(y,17,()=>a,({feature:w,keys:E})=>E,(w,E)=>{let k=()=>l(E).feature,S=()=>l(E).keys;PU(w,{children:(C,x)=>{var T=uZ(),A=M(T);lE(A,{class:"feature",children:(L,I)=>{var N=Ie();Z(D=>te(N,D),[()=>n()(`keyboard_shortcuts_.${k()}`)]),$(L,N)},$$slots:{default:!0}});var P=j(A,2);lE(P,{class:"keys",children:(L,I)=>{var N=X(),D=M(N);it(D,17,()=>S().split("+"),lr,(B,H)=>{var W=cZ(),Y=z(W);Z(O=>te(Y,O),[()=>l(H).replace("Accel",l(c))]),$(B,W)}),$(L,N)},$$slots:{default:!0}}),$(C,T)},$$slots:{default:!0}})}),$(m,b)},$$slots:{default:!0}})}$(d,h)},$$slots:{default:!0}})}ce(),i()}var pZ=U("<!> <!>",1);function gZ(t,e){le(e,!0);const n=()=>V(Wc,"$hasMouse",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(!1);var a=pZ(),c=M(a);{var u=f=>{{let h=_(()=>r()("keyboard_shortcuts"));mt(f,{get label(){return l(h)},onclick:()=>{G(s,!0)}})}};q(c,f=>{n()&&f(u)})}var d=j(c,2);hZ(d,{onClose:()=>{e.menuButton?.focus()},get open(){return l(s)},set open(f){G(s,f,!0)}}),$(t,a),ce(),o()}function Qc(t,e){le(e,!0);const n=()=>V(dt,"$prefs",r),[r,i]=me();let o=R(e,"defaultValue",3,!0),s=ie(!0);De(()=>{G(s,!!(n()[e.key]??o()),!0)}),De(()=>{n()[e.key]!==l(s)&&_t(dt,Se(n)[e.key]=l(s),Se(n))}),_b(t,{get label(){return e.label},get checked(){return l(s)},set checked(a){G(s,a,!0)}}),ce(),i()}var mZ=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>');function vZ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();R(e,"onChange",3,void 0);var o=mZ(),s=z(o),a=z(s),c=j(s,2),u=z(c),d=j(c,2),f=z(d);{let h=_(()=>n()("prefs.accessibility.underline_links.switch_label"));Qc(f,{key:"underlineLinks",get label(){return l(h)}})}Z((h,p)=>{te(a,h),te(u,p)},[()=>n()("prefs.accessibility.underline_links.title"),()=>n()("prefs.accessibility.underline_links.description")]),$(t,o),ce(),i()}var bZ=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>'),_Z=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section> <section><h4> </h4> <p> </p> <div role="none"><!></div></section> <!>',1);function yZ(t,e){le(e,!0);const n=()=>V(ue,"$_",o),r=()=>V(Sy,"$skipCIConfigured",o),i=()=>V(dt,"$prefs",o),[o,s]=me();let a=R(e,"onChange",3,void 0);var c=_Z(),u=M(c),d=z(u),f=z(d),h=j(d,2),p=z(h),g=j(h,2),m=z(g);{let T=_(()=>n()("prefs.advanced.beta.switch_label"));Qc(m,{key:"beta",get label(){return l(T)},defaultValue:!1})}var v=j(u,2),b=z(v),y=z(b),w=j(b,2),E=z(w),k=j(w,2),S=z(k);{let T=_(()=>n()("prefs.advanced.developer_mode.switch_label"));Qc(S,{key:"devModeEnabled",get label(){return l(T)},defaultValue:!1})}var C=j(v,2);{var x=T=>{var A=bZ(),P=z(A),L=z(P),I=j(P,2),N=z(I),D=j(I,2),B=z(D);{let H=_(()=>n()("prefs.advanced.deploy_hook.field_label"));Cn(B,{flex:!0,get label(){return l(H)},onchange:()=>{a()?.({message:n()(i().deployHookURL?"prefs.advanced.deploy_hook.url_saved":"prefs.advanced.deploy_hook.url_removed")})},get value(){return i().deployHookURL},set value(W){_t(dt,Se(i).deployHookURL=W,Se(i))}})}Z((H,W)=>{te(L,H),te(N,W)},[()=>n()("prefs.advanced.deploy_hook.title"),()=>n()("prefs.advanced.deploy_hook.description")]),$(T,A)};q(C,T=>{r()&&T(x)})}Z((T,A,P,L)=>{te(f,T),te(p,A),te(y,P),te(E,L)},[()=>n()("prefs.advanced.beta.title"),()=>n()("prefs.advanced.beta.description"),()=>n()("prefs.advanced.developer_mode.title"),()=>n()("prefs.advanced.developer_mode.description")]),$(t,c),ce(),s()}var wZ=U('<section><h4> </h4> <div role="none"><!></div></section>');function xZ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(dt,"$prefs",i),[i,o]=me();R(e,"onChange",3,void 0);var s=wZ(),a=z(s),c=z(a),u=j(a,2),d=z(u);{let f=_(()=>n()("prefs.appearance.select_theme"));Fh(d,{get"aria-label"(){return l(f)},onChange:h=>{Ge(dt,{...r(),theme:h.detail.value})},children:(h,p)=>{var g=X(),m=M(g);it(m,16,()=>["auto","dark","light"],lr,(v,b)=>{{let y=_(()=>n()(`prefs.theme.${b}`)),w=_(()=>!r().theme&&b==="auto"||r().theme===b);id(v,{variant:"tertiary",get label(){return l(y)},get value(){return b},get selected(){return l(w)}})}}),$(h,g)},$$slots:{default:!0}})}Z(f=>te(c,f),[()=>n()("prefs.appearance.theme")]),$(t,s),ce(),o()}var kZ=U('<section><h4> </h4> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>');function SZ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();R(e,"onChange",3,void 0);var o=kZ(),s=z(o),a=z(s),c=j(s,2),u=z(c);{let g=_(()=>n()("prefs.contents.editor.use_draft_backup.switch_label"));Qc(u,{key:"useDraftBackup",get label(){return l(g)}})}var d=j(c,2),f=z(d);{let g=_(()=>n()("prefs.contents.editor.close_on_save.switch_label"));Qc(f,{key:"closeOnSave",get label(){return l(g)}})}var h=j(d,2),p=z(h);{let g=_(()=>n()("prefs.contents.editor.close_with_escape.switch_label"));Qc(p,{key:"closeWithEscape",get label(){return l(g)}})}Z(g=>te(a,g),[()=>n()("prefs.contents.editor.title")]),$(t,o),ce(),i()}var EZ=U('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>'),$Z=U('<section><h4> </h4> <div role="none"><!></div></section> <!>',1);function TZ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(dt,"$prefs",i),[i,o]=me();let s=R(e,"onChange",3,void 0);var a=$Z(),c=M(a),u=z(c),d=z(u),f=j(u,2),h=z(f);J2(h,{});var p=j(c,2);it(p,17,()=>Object.entries(jy),([g,m])=>g,(g,m)=>{var v=_(()=>lo(l(m),2));let b=()=>l(v)[0],y=()=>l(v)[1];const w=_(()=>{const{serviceLabel:L,apiLabel:I,developerURL:N,apiKeyURL:D}=y();return{serviceLabel:L,apiLabel:I,developerURL:N,apiKeyURL:D}});var E=EZ(),k=z(E),S=z(k),C=j(k,2),x=z(C);cr(x,()=>Nr.sanitize(n()("prefs.i18n.translator.description",{values:{service:l(w).apiLabel,homeHref:`href="${l(w).developerURL}"`,apiKeyHref:`href="${l(w).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var T=j(C,2),A=z(T);{var P=L=>{{let I=_(()=>n()("prefs.i18n.translator.field_label",{values:{service:l(w).serviceLabel}}));Cn(L,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(I)},onchange:()=>{s()?.({message:n()(r().apiKeys?.[b()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return r().apiKeys[b()]},set value(N){_t(dt,Se(r).apiKeys[b()]=N,Se(r))}})}};q(A,L=>{r().apiKeys&&L(P)})}Z(()=>te(S,l(w).serviceLabel)),$(g,E)}),Z(g=>te(d,g),[()=>n()("prefs.i18n.default_translator.title")]),$(t,a),ce(),o()}var CZ=U('<section><h4> </h4> <div role="none"><!></div></section>');function AZ(t,e){le(e,!0);const n=()=>V(ue,"$_",s),r=()=>V(zt,"$appLocale",s),i=()=>V(dt,"$prefs",s),o=()=>V(k0,"$appLocales",s),[s,a]=me();R(e,"onChange",3,void 0);var c=CZ(),u=z(c),d=z(u),f=j(u,2),h=z(f);Xn(h,r,p=>{{let g=_(()=>n()("prefs.language.ui_language.select_language")),m=_(()=>r()??void 0);Fa(p,{get"aria-label"(){return l(g)},get value(){return l(m)},onChange:v=>{Ge(dt,{...i(),locale:v.detail.value})},children:(v,b)=>{var y=X(),w=M(y);it(w,1,o,lr,(E,k)=>{{let S=_(()=>Oi(l(k),{native:!0})),C=_(()=>l(k)===r());kr(E,{get label(){return l(S)},get value(){return l(k)},get selected(){return l(C)},dir:"auto"})}}),$(v,y)},$$slots:{default:!0}})}}),Z(p=>te(d,p),[()=>n()("prefs.language.ui_language.title")]),$(t,c),ce(),a()}var PZ=U('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>');function LZ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(dt,"$prefs",i),[i,o]=me();let s=R(e,"onChange",3,void 0);const a=_(()=>{const{providers:d=[]}=s2();return Object.entries(rg).filter(([f])=>d.includes(f))});var c=X(),u=M(c);it(u,17,()=>l(a),([d,f])=>d,(d,f)=>{var h=_(()=>lo(l(f),2));let p=()=>l(h)[0],g=()=>l(h)[1];const m=_(()=>{const{serviceLabel:x,developerURL:T,apiKeyURL:A}=g();return{serviceLabel:x,developerURL:T,apiKeyURL:A}});var v=PZ(),b=z(v),y=z(b),w=j(b,2),E=z(w);cr(E,()=>Nr.sanitize(n()("prefs.media.stock_photos.description",{values:{service:l(m).serviceLabel,homeHref:`href="${l(m).developerURL}"`,apiKeyHref:`href="${l(m).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var k=j(w,2),S=z(k);{var C=x=>{{let T=_(()=>n()("prefs.media.stock_photos.field_label",{values:{service:l(m).serviceLabel}}));Cn(x,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(T)},onchange:()=>{s()?.({message:n()(r().apiKeys?.[p()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return r().apiKeys[p()]},set value(A){_t(dt,Se(r).apiKeys[p()]=A,Se(r))}})}};q(S,x=>{r().apiKeys&&x(C)})}Z(x=>te(y,x),[()=>n()("prefs.media.stock_photos.title",{values:{service:l(m).serviceLabel}})]),$(d,v)},d=>{var f=Ie();Z(h=>te(f,h),[()=>n()("prefs.media.stock_photos.providers_disabled")]),$(d,f)}),$(t,c),ce(),o()}const sg=Qt([Et],([t])=>[{key:"appearance",icon:"palette",component:xZ},{key:"language",icon:"language",component:AZ},{key:"contents",icon:"library_books",component:SZ},{key:"i18n",icon:"translate",component:TZ,enabled:(t?.i18n?.locales?.length??0)>1},{key:"media",icon:"photo_library",component:LZ},{key:"accessibility",icon:"accessibility_new",component:vZ},{key:"advanced",icon:"build",component:yZ}]);var NZ=U('<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>'),IZ=U("<!> <!>",1);const OZ={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;}.wrapper.svelte-pwxwga .sui.tab-panel section:not(:first-child) {margin:16px 0 0;}.wrapper.svelte-pwxwga .sui.tab-panel p {margin-top:0;}.wrapper.svelte-pwxwga .sui.tab-panel h4 {font-size:inherit;}.wrapper.svelte-pwxwga .sui.tab-panel h4 ~ div {margin:8px 0 0;}.wrapper.svelte-pwxwga .sui.tab-panel h4 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function RZ(t,e){le(e,!0),ke(t,OZ);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"open",15,!1),s=R(e,"onClose",3,void 0),a=ie("appearance"),c=ie(""),u=ie(!1);var d=IZ(),f=M(d);{let p=_(()=>n()("settings"));Di(f,{get title(){return l(p)},size:"large",showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{s()?.()},get open(){return o()},set open(g){o(g)},children:(g,m)=>{var v=NZ(),b=z(v);{let w=_(()=>n()("categories"));DU(b,{orientation:"vertical",get"aria-label"(){return l(w)},children:(E,k)=>{var S=X(),C=M(S);it(C,17,()=>se(sg),({key:x,icon:T,enabled:A=!0})=>x,(x,T)=>{let A=()=>l(T).key,P=()=>l(T).icon,L=Lg(()=>tt(l(T).enabled,!0));var I=X(),N=M(I);{var D=B=>{{const H=O=>{Je(O,{get name(){return P()}})};let W=_(()=>n()(`prefs.${A()}.title`)),Y=_(()=>A()===l(a));jU(B,{get label(){return l(W)},get selected(){return l(Y)},get"aria-controls"(){return`prefs-tab-${A()??""}`},onSelect:()=>{G(a,A(),!0)},startIcon:H,$$slots:{startIcon:!0}})}};q(N,B=>{l(L)&&B(D)})}$(x,I)}),$(E,S)},$$slots:{default:!0}})}var y=j(b,2);it(y,17,()=>se(sg),({key:w,component:E})=>w,(w,E)=>{let k=()=>l(E).key,S=()=>l(E).component;zU(w,{get id(){return`prefs-tab-${k()??""}`},children:(C,x)=>{var T=X(),A=M(T);Bn(A,S,(P,L)=>{L(P,{onChange:({message:I})=>{G(c,I,!0),G(u,!0)}})}),$(C,T)},$$slots:{default:!0}})}),$(g,v)},$$slots:{default:!0}})}var h=j(f,2);Qn(h,{get show(){return l(u)},set show(p){G(u,p,!0)},children:(p,g)=>{Mn(p,{status:"success",children:(m,v)=>{var b=Ie();Z(()=>te(b,l(c))),$(m,b)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,d),ce(),i()}var DZ=U("<!> <!>",1),MZ=U("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),FZ=U("<!> <!>",1);function Q2(t,e){le(e,!0);const n=()=>V(gc,"$backendName",u),r=()=>V(ue,"$_",u),i=()=>V(Hn,"$user",u),o=()=>V(dt,"$prefs",u),s=()=>V(bn,"$backend",u),a=()=>V(ln,"$isSmallScreen",u),c=()=>V(X2,"$canShowMobileSignInDialog",u),[u,d]=me();let f=ie(!1);const h=_(()=>n()==="local"),p=_(()=>n()==="test-repo");var g=FZ(),m=M(g);{let b=_(()=>r()("account"));ir(m,{get"aria-label"(){return l(b)},children:(y,w)=>{var E=MZ(),k=M(E);{let Y=_(()=>l(h)?r()("working_with_local_repo"):l(p)?r()("working_with_test_repo"):r()("signed_in_as_x",{values:{name:i()?.login}})),O=_(()=>l(h)||l(p));mt(k,{get label(){return l(Y)},get disabled(){return l(O)},onclick:()=>{window.open(i()?.profileURL,"_blank")}})}var S=j(k,2);Gr(S,{});var C=j(S,2);{let Y=_(()=>r()("live_site"));mt(C,{get label(){return l(Y)},onclick:()=>{eA()}})}var x=j(C,2);{var T=Y=>{var O=DZ(),F=M(O);{let J=_(()=>r()("git_repository")),Q=_(()=>!s()?.repository?.treeBaseURL);mt(F,{get label(){return l(J)},get disabled(){return l(Q)},onclick:()=>{window.open(s()?.repository?.treeBaseURL)}})}var K=j(F,2);{let J=_(()=>r()("site_config"));mt(K,{get label(){return l(J)},onclick:()=>{Ht("/config",{transitionType:"forwards"})}})}$(Y,O)};q(x,Y=>{o().devModeEnabled&&Y(T)})}var A=j(x,2);Gr(A,{});var P=j(A,2);{let Y=_(()=>r()("settings"));mt(P,{get label(){return l(Y)},onclick:()=>{a()?Ht("/settings",{transitionType:"forwards"}):G(f,!0)}})}var L=j(P,2);gZ(L,{get menuButton(){return e.menuButton}});var I=j(L,2);{var N=Y=>{lZ(Y,{})};q(I,Y=>{o().devModeEnabled&&Y(N)})}var D=j(I,2);{var B=Y=>{{let O=_(()=>r()("sign_in_with_mobile"));mt(Y,{get label(){return l(O)},onclick:()=>{Ge(og,!0)}})}};q(D,Y=>{c()&&Y(B)})}var H=j(D,2);Gr(H,{});var W=j(H,2);{let Y=_(()=>r()("sign_out"));mt(W,{get label(){return l(Y)},onclick:async()=>{window.requestAnimationFrame(()=>{b6()})}})}$(y,E)},$$slots:{default:!0}})}var v=j(m,2);RZ(v,{onClose:()=>{e.menuButton?.focus()},get open(){return l(f)},set open(b){G(f,b,!0)}}),$(t,g),ce(),d()}var zZ=U('<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>'),jZ=U('<div role="none" class="wrapper svelte-q0ng4j"><!></div>');const BZ={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 UZ(t,e){le(e,!0),ke(t,BZ);const n=()=>V(Hn,"$user",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(void 0);const a=_(()=>!!n()?.avatarURL);var c=jZ(),u=z(c);{const d=g=>{var m=X(),v=M(m);{var b=w=>{var E=zZ();Z(()=>Ee(E,"src",n()?.avatarURL)),$(w,E)},y=w=>{Je(w,{name:"account_circle"})};q(v,w=>{l(a)?w(b):w(y,!1)})}$(g,m)},f=g=>{Q2(g,{get menuButton(){return l(s)}})};let h=_(()=>l(a)?"avatar":""),p=_(()=>r()("show_account_menu"));vt(Ir(u,{variant:"ghost",iconic:!0,get class(){return l(h)},popupPosition:"bottom-right",get"aria-label"(){return l(p)},endIcon:d,popup:f,$$slots:{endIcon:!0,popup:!0}}),g=>G(s,g,!0),()=>l(s))}$(t,c),ce(),o()}var qZ=U("<!> <!>",1),VZ=U("<!> <!>",1);function HZ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>zs({visible:!0,type:"entry"}));{const s=u=>{Je(u,{name:"add"})},a=u=>{{let d=_(()=>n()("create_entry_or_assets"));ir(u,{get"aria-label"(){return l(d)},children:(f,h)=>{var p=VZ(),g=M(p);{var m=b=>{var y=qZ(),w=M(y);it(w,17,()=>l(o),k=>k.name,(k,S)=>{const C=_(()=>{const{name:x,label:T,label_singular:A,create:P=!1,limit:L=1/0}=l(S);return{name:x,label:T,labelSingular:A,create:P,limit:L}});{let x=_(()=>l(C).labelSingular||l(C).label||l(C).name),T=_(()=>!l(C).create||wo(l(C).name).length>=l(C).limit);mt(k,{get label(){return l(x)},get disabled(){return l(T)},onclick:()=>{Ht(`/collections/${l(C).name}/new`,{transitionType:"forwards"})}})}});var E=j(w,2);Gr(E,{}),$(b,y)};q(g,b=>{l(o).length&&b(m)})}var v=j(g,2);{let b=_(()=>n()("assets"));mt(v,{get label(){return l(b)},onclick:async()=>{Ht("/assets",{transitionType:"forwards"}),await Lt(100),Ge(Xs,!0)}})}$(f,p)},$$slots:{default:!0}})}};let c=_(()=>n()("create_entry_or_assets"));Ir(t,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(c)},endIcon:s,popup:a,$$slots:{endIcon:!0,popup:!0}})}ce(),i()}function KZ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{Je(a,{name:"notifications"})};let s=_(()=>n()("show_notifications"));Ze(t,{variant:"ghost",iconic:!0,hidden:!0,get"aria-label"(){return l(s)},onclick:()=>{},startIcon:o,$$slots:{startIcon:!0}})}ce(),i()}var GZ=U('<img loading="lazy" alt="" class="logo svelte-15c9hhi"/>');const WZ={hash:"svelte-15c9hhi",code:"img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}"};function YZ(t,e){le(e,!0),ke(t,WZ);const n=()=>V(Et,"$siteConfig",i),r=()=>V(ue,"$_",i),[i,o]=me();var s=X(),a=M(s);{var c=u=>{{let d=_(()=>r()("visit_live_site"));Ze(u,{variant:"ghost",iconic:!0,get"aria-label"(){return l(d)},onclick:()=>{eA()},children:(f,h)=>{var p=GZ();Z(()=>Ee(p,"src",n().logo_url)),$(f,p)},$$slots:{default:!0}})}};q(a,u=>{n()?.logo_url&&u(c)})}$(t,s),ce(),o()}var JZ=U('<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>',1),XZ=U('<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>');const ZZ={hash:"svelte-1kz79fh",code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;}.toolbar-wrapper[inert].svelte-1kz79fh {display:none;}
653
653
  @media (width < 768px) {.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar {padding:0 4px;}
654
654
  }.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%;}
655
655
  @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;}
656
- }`};function ZZ(t,e){le(e,!0),ke(t,XZ);const n=()=>V(_y,"$hasOverlay",i),r=()=>V(ue,"$_",i),[i,o]=me();var s=JZ(),a=z(s);{let c=_(()=>r()("global"));Si(a,{variant:"primary",get"aria-label"(){return l(c)},children:(u,d)=>{var f=YZ(),h=M(f),p=z(h);WZ(p,{});var g=j(p,2);Z2(g,{});var m=j(h,2);Gp(m,{});var v=j(m,2),b=z(v);Y2(b,{});var y=j(b,2);VZ(y,{});var w=j(y,2);HZ(w,{});var E=j(w,2);q(E,S=>{});var k=j(E,2);BZ(k,{}),$(u,f)},$$slots:{default:!0}})}Z(()=>s.inert=n()),$(t,s),ce(),o()}var QZ=U('<h2 role="none"> </h2> <!>',1),eQ=U('<div role="none" class="wrapper svelte-16cq5v7"><section><h3 class="svelte-16cq5v7"> </h3> <!></section> <!></div>');const tQ={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 nQ(t,e){le(e,!0),ke(t,tQ);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{Jd(a,{primaryToolbar:d=>{Si(d,{variant:"primary",children:(f,h)=>{var p=QZ(),g=M(p),m=z(g),v=j(g,2);Wr(v,{flex:!0}),Z(b=>te(m,b),[()=>n()("menu")]),$(f,p)},$$slots:{default:!0}})},mainContent:d=>{var f=eQ(),h=z(f),p=z(h),g=z(p),m=j(p,2);Q2(m,{});var v=j(h,2);q(v,b=>{}),Z(b=>te(g,b),[()=>n()("account")]),$(d,f)},$$slots:{primaryToolbar:!0,mainContent:!0}})};let s=_(()=>n()("menu"));ml(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}var eu={},Jy,eP;function rQ(){return eP||(eP=1,Jy=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Jy}var Xy={},ra={},tP;function bl(){if(tP)return ra;tP=1;let t;const e=[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];return ra.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},ra.getSymbolTotalCodewords=function(r){return e[r]},ra.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},ra.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');t=r},ra.isKanjiModeEnabled=function(){return typeof t<"u"},ra.toSJIS=function(r){return t(r)},ra}var Zy={},nP;function Qy(){return nP||(nP=1,(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,i){if(t.isValid(r))return r;try{return e(r)}catch{return i}}})(Zy)),Zy}var ew,rP;function iQ(){if(rP)return ew;rP=1;function t(){this.buffer=[],this.length=0}return t.prototype={get:function(e){const n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let r=0;r<n;r++)this.putBit((e>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},ew=t,ew}var tw,iP;function oQ(){if(iP)return tw;iP=1;function t(e){if(!e||e<1)throw new 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)}return t.prototype.set=function(e,n,r,i){const o=e*this.size+n;this.data[o]=r,i&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,n){return this.data[e*this.size+n]},t.prototype.xor=function(e,n,r){this.data[e*this.size+n]^=r},t.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},tw=t,tw}var nw={},oP;function sQ(){return oP||(oP=1,(function(t){const e=bl().getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=e(r),s=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let c=1;c<i-1;c++)a[c]=a[c-1]-s;return a.push(6),a.reverse()},t.getPositions=function(r){const i=[],o=t.getRowColCoords(r),s=o.length;for(let a=0;a<s;a++)for(let c=0;c<s;c++)a===0&&c===0||a===0&&c===s-1||a===s-1&&c===0||i.push([o[a],o[c]]);return i}})(nw)),nw}var rw={},sP;function aQ(){if(sP)return rw;sP=1;const t=bl().getSymbolSize,e=7;return rw.getPositions=function(r){const i=t(r);return[[0,0],[i-e,0],[0,i-e]]},rw}var iw={},aP;function lQ(){return aP||(aP=1,(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){const o=i.size;let s=0,a=0,c=0,u=null,d=null;for(let f=0;f<o;f++){a=c=0,u=d=null;for(let h=0;h<o;h++){let p=i.get(f,h);p===u?a++:(a>=5&&(s+=e.N1+(a-5)),u=p,a=1),p=i.get(h,f),p===d?c++:(c>=5&&(s+=e.N1+(c-5)),d=p,c=1)}a>=5&&(s+=e.N1+(a-5)),c>=5&&(s+=e.N1+(c-5))}return s},t.getPenaltyN2=function(i){const o=i.size;let s=0;for(let a=0;a<o-1;a++)for(let c=0;c<o-1;c++){const u=i.get(a,c)+i.get(a,c+1)+i.get(a+1,c)+i.get(a+1,c+1);(u===4||u===0)&&s++}return s*e.N2},t.getPenaltyN3=function(i){const o=i.size;let s=0,a=0,c=0;for(let u=0;u<o;u++){a=c=0;for(let d=0;d<o;d++)a=a<<1&2047|i.get(u,d),d>=10&&(a===1488||a===93)&&s++,c=c<<1&2047|i.get(d,u),d>=10&&(c===1488||c===93)&&s++}return s*e.N3},t.getPenaltyN4=function(i){let o=0;const s=i.data.length;for(let c=0;c<s;c++)o+=i.data[c];return Math.abs(Math.ceil(o*100/s/5)-10)*e.N4};function n(r,i,o){switch(r){case t.Patterns.PATTERN000:return(i+o)%2===0;case t.Patterns.PATTERN001:return i%2===0;case t.Patterns.PATTERN010:return o%3===0;case t.Patterns.PATTERN011:return(i+o)%3===0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case t.Patterns.PATTERN101:return i*o%2+i*o%3===0;case t.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case t.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(i,o){const s=o.size;for(let a=0;a<s;a++)for(let c=0;c<s;c++)o.isReserved(c,a)||o.xor(c,a,n(i,c,a))},t.getBestMask=function(i,o){const s=Object.keys(t.Patterns).length;let a=0,c=1/0;for(let u=0;u<s;u++){o(u),t.applyMask(u,i);const d=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(u,i),d<c&&(c=d,a=u)}return a}})(iw)),iw}var ag={},lP;function cP(){if(lP)return ag;lP=1;const t=Qy(),e=[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],n=[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];return ag.getBlocksCount=function(i,o){switch(o){case t.L:return e[(i-1)*4+0];case t.M:return e[(i-1)*4+1];case t.Q:return e[(i-1)*4+2];case t.H:return e[(i-1)*4+3];default:return}},ag.getTotalCodewordsCount=function(i,o){switch(o){case t.L:return n[(i-1)*4+0];case t.M:return n[(i-1)*4+1];case t.Q:return n[(i-1)*4+2];case t.H:return n[(i-1)*4+3];default:return}},ag}var ow={},nf={},uP;function cQ(){if(uP)return nf;uP=1;const t=new Uint8Array(512),e=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)t[i]=r,e[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)t[i]=t[i-255]})(),nf.log=function(r){if(r<1)throw new Error("log("+r+")");return e[r]},nf.exp=function(r){return t[r]},nf.mul=function(r,i){return r===0||i===0?0:t[e[r]+e[i]]},nf}var dP;function uQ(){return dP||(dP=1,(function(t){const e=cQ();t.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let a=0;a<i.length;a++)o[s+a]^=e.mul(r[s],i[a]);return o},t.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const s=o[0];for(let c=0;c<i.length;c++)o[c]^=e.mul(i[c],s);let a=0;for(;a<o.length&&o[a]===0;)a++;o=o.slice(a)}return o},t.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=t.mul(i,new Uint8Array([1,e.exp(o)]));return i}})(ow)),ow}var sw,fP;function dQ(){if(fP)return sw;fP=1;const t=uQ();function e(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(r){this.degree=r,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const o=t.mod(i,this.genPoly),s=this.degree-o.length;if(s>0){const a=new Uint8Array(this.degree);return a.set(o,s),a}return o},sw=e,sw}var aw={},lw={},cw={},hP;function pP(){return hP||(hP=1,cw.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),cw}var Mo={},gP;function mP(){if(gP)return Mo;gP=1;const t="[0-9]+",e="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
657
- ]))+`;Mo.KANJI=new RegExp(n,"g"),Mo.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Mo.BYTE=new RegExp(r,"g"),Mo.NUMERIC=new RegExp(t,"g"),Mo.ALPHANUMERIC=new RegExp(e,"g");const i=new RegExp("^"+n+"$"),o=new RegExp("^"+t+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Mo.testKanji=function(c){return i.test(c)},Mo.testNumeric=function(c){return o.test(c)},Mo.testAlphanumeric=function(c){return s.test(c)},Mo}var vP;function _l(){return vP||(vP=1,(function(t){const e=pP(),n=mP();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},t.getBestModeForData=function(o){return n.testNumeric(o)?t.NUMERIC:n.testAlphanumeric(o)?t.ALPHANUMERIC:n.testKanji(o)?t.KANJI:t.BYTE},t.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},t.isValid=function(o){return o&&o.bit&&o.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+i)}}t.from=function(o,s){if(t.isValid(o))return o;try{return r(o)}catch{return s}}})(lw)),lw}var bP;function fQ(){return bP||(bP=1,(function(t){const e=bl(),n=cP(),r=Qy(),i=_l(),o=pP(),s=7973,a=e.getBCHDigit(s);function c(h,p,g){for(let m=1;m<=40;m++)if(p<=t.getCapacity(m,g,h))return m}function u(h,p){return i.getCharCountIndicator(h,p)+4}function d(h,p){let g=0;return h.forEach(function(m){const v=u(m.mode,p);g+=v+m.getBitsLength()}),g}function f(h,p){for(let g=1;g<=40;g++)if(d(h,g)<=t.getCapacity(g,p,i.MIXED))return g}t.from=function(p,g){return o.isValid(p)?parseInt(p,10):g},t.getCapacity=function(p,g,m){if(!o.isValid(p))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=i.BYTE);const v=e.getSymbolTotalCodewords(p),b=n.getTotalCodewordsCount(p,g),y=(v-b)*8;if(m===i.MIXED)return y;const w=y-u(m,p);switch(m){case i.NUMERIC:return Math.floor(w/10*3);case i.ALPHANUMERIC:return Math.floor(w/11*2);case i.KANJI:return Math.floor(w/13);case i.BYTE:default:return Math.floor(w/8)}},t.getBestVersionForData=function(p,g){let m;const v=r.from(g,r.M);if(Array.isArray(p)){if(p.length>1)return f(p,v);if(p.length===0)return 1;m=p[0]}else m=p;return c(m.mode,m.getLength(),v)},t.getEncodedBits=function(p){if(!o.isValid(p)||p<7)throw new Error("Invalid QR Code version");let g=p<<12;for(;e.getBCHDigit(g)-a>=0;)g^=s<<e.getBCHDigit(g)-a;return p<<12|g}})(aw)),aw}var uw={},_P;function hQ(){if(_P)return uw;_P=1;const t=bl(),e=1335,n=21522,r=t.getBCHDigit(e);return uw.getEncodedBits=function(o,s){const a=o.bit<<3|s;let c=a<<10;for(;t.getBCHDigit(c)-r>=0;)c^=e<<t.getBCHDigit(c)-r;return(a<<10|c)^n},uw}var dw={},fw,yP;function pQ(){if(yP)return fw;yP=1;const t=_l();function e(n){this.mode=t.NUMERIC,this.data=n.toString()}return e.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(r){let i,o,s;for(i=0;i+3<=this.data.length;i+=3)o=this.data.substr(i,3),s=parseInt(o,10),r.put(s,10);const a=this.data.length-i;a>0&&(o=this.data.substr(i),s=parseInt(o,10),r.put(s,a*3+1))},fw=e,fw}var hw,wP;function gQ(){if(wP)return hw;wP=1;const t=_l(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=t.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(i){let o;for(o=0;o+2<=this.data.length;o+=2){let s=e.indexOf(this.data[o])*45;s+=e.indexOf(this.data[o+1]),i.put(s,11)}this.data.length%2&&i.put(e.indexOf(this.data[o]),6)},hw=n,hw}var pw,xP;function mQ(){if(xP)return pw;xP=1;const t=_l();function e(n){this.mode=t.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return e.getBitsLength=function(r){return r*8},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(n){for(let r=0,i=this.data.length;r<i;r++)n.put(this.data[r],8)},pw=e,pw}var gw,kP;function vQ(){if(kP)return gw;kP=1;const t=_l(),e=bl();function n(r){this.mode=t.KANJI,this.data=r}return n.getBitsLength=function(i){return i*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let i;for(i=0;i<this.data.length;i++){let o=e.toSJIS(this.data[i]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
658
- Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),r.put(o,13)}},gw=n,gw}var mw={exports:{}},SP;function bQ(){return SP||(SP=1,(function(t){var e={single_source_shortest_paths:function(n,r,i){var o={},s={};s[r]=0;var a=e.PriorityQueue.make();a.push(r,0);for(var c,u,d,f,h,p,g,m,v;!a.empty();){c=a.pop(),u=c.value,f=c.cost,h=n[u]||{};for(d in h)h.hasOwnProperty(d)&&(p=h[d],g=f+p,m=s[d],v=typeof s[d]>"u",(v||m>g)&&(s[d]=g,a.push(d,g),o[d]=u))}if(typeof i<"u"&&typeof s[i]>"u"){var b=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(b)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],o=r;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,r,i){var o=e.single_source_shortest_paths(n,r,i);return e.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var r=e.PriorityQueue,i={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(mw)),mw.exports}var EP;function _Q(){return EP||(EP=1,(function(t){const e=_l(),n=pQ(),r=gQ(),i=mQ(),o=vQ(),s=mP(),a=bl(),c=bQ();function u(b){return unescape(encodeURIComponent(b)).length}function d(b,y,w){const E=[];let k;for(;(k=b.exec(w))!==null;)E.push({data:k[0],index:k.index,mode:y,length:k[0].length});return E}function f(b){const y=d(s.NUMERIC,e.NUMERIC,b),w=d(s.ALPHANUMERIC,e.ALPHANUMERIC,b);let E,k;return a.isKanjiModeEnabled()?(E=d(s.BYTE,e.BYTE,b),k=d(s.KANJI,e.KANJI,b)):(E=d(s.BYTE_KANJI,e.BYTE,b),k=[]),y.concat(w,E,k).sort(function(C,x){return C.index-x.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function h(b,y){switch(y){case e.NUMERIC:return n.getBitsLength(b);case e.ALPHANUMERIC:return r.getBitsLength(b);case e.KANJI:return o.getBitsLength(b);case e.BYTE:return i.getBitsLength(b)}}function p(b){return b.reduce(function(y,w){const E=y.length-1>=0?y[y.length-1]:null;return E&&E.mode===w.mode?(y[y.length-1].data+=w.data,y):(y.push(w),y)},[])}function g(b){const y=[];for(let w=0;w<b.length;w++){const E=b[w];switch(E.mode){case e.NUMERIC:y.push([E,{data:E.data,mode:e.ALPHANUMERIC,length:E.length},{data:E.data,mode:e.BYTE,length:E.length}]);break;case e.ALPHANUMERIC:y.push([E,{data:E.data,mode:e.BYTE,length:E.length}]);break;case e.KANJI:y.push([E,{data:E.data,mode:e.BYTE,length:u(E.data)}]);break;case e.BYTE:y.push([{data:E.data,mode:e.BYTE,length:u(E.data)}])}}return y}function m(b,y){const w={},E={start:{}};let k=["start"];for(let S=0;S<b.length;S++){const C=b[S],x=[];for(let T=0;T<C.length;T++){const A=C[T],P=""+S+T;x.push(P),w[P]={node:A,lastCount:0},E[P]={};for(let L=0;L<k.length;L++){const I=k[L];w[I]&&w[I].node.mode===A.mode?(E[I][P]=h(w[I].lastCount+A.length,A.mode)-h(w[I].lastCount,A.mode),w[I].lastCount+=A.length):(w[I]&&(w[I].lastCount=A.length),E[I][P]=h(A.length,A.mode)+4+e.getCharCountIndicator(A.mode,y))}}k=x}for(let S=0;S<k.length;S++)E[k[S]].end=0;return{map:E,table:w}}function v(b,y){let w;const E=e.getBestModeForData(b);if(w=e.from(y,E),w!==e.BYTE&&w.bit<E.bit)throw new Error('"'+b+'" cannot be encoded with mode '+e.toString(w)+`.
659
- Suggested mode is: `+e.toString(E));switch(w===e.KANJI&&!a.isKanjiModeEnabled()&&(w=e.BYTE),w){case e.NUMERIC:return new n(b);case e.ALPHANUMERIC:return new r(b);case e.KANJI:return new o(b);case e.BYTE:return new i(b)}}t.fromArray=function(y){return y.reduce(function(w,E){return typeof E=="string"?w.push(v(E,null)):E.data&&w.push(v(E.data,E.mode)),w},[])},t.fromString=function(y,w){const E=f(y,a.isKanjiModeEnabled()),k=g(E),S=m(k,w),C=c.find_path(S.map,"start","end"),x=[];for(let T=1;T<C.length-1;T++)x.push(S.table[C[T]].node);return t.fromArray(p(x))},t.rawSplit=function(y){return t.fromArray(f(y,a.isKanjiModeEnabled()))}})(dw)),dw}var $P;function yQ(){if($P)return Xy;$P=1;const t=bl(),e=Qy(),n=iQ(),r=oQ(),i=sQ(),o=aQ(),s=lQ(),a=cP(),c=dQ(),u=fQ(),d=hQ(),f=_l(),h=_Q();function p(S,C){const x=S.size,T=o.getPositions(C);for(let A=0;A<T.length;A++){const P=T[A][0],L=T[A][1];for(let I=-1;I<=7;I++)if(!(P+I<=-1||x<=P+I))for(let N=-1;N<=7;N++)L+N<=-1||x<=L+N||(I>=0&&I<=6&&(N===0||N===6)||N>=0&&N<=6&&(I===0||I===6)||I>=2&&I<=4&&N>=2&&N<=4?S.set(P+I,L+N,!0,!0):S.set(P+I,L+N,!1,!0))}}function g(S){const C=S.size;for(let x=8;x<C-8;x++){const T=x%2===0;S.set(x,6,T,!0),S.set(6,x,T,!0)}}function m(S,C){const x=i.getPositions(C);for(let T=0;T<x.length;T++){const A=x[T][0],P=x[T][1];for(let L=-2;L<=2;L++)for(let I=-2;I<=2;I++)L===-2||L===2||I===-2||I===2||L===0&&I===0?S.set(A+L,P+I,!0,!0):S.set(A+L,P+I,!1,!0)}}function v(S,C){const x=S.size,T=u.getEncodedBits(C);let A,P,L;for(let I=0;I<18;I++)A=Math.floor(I/3),P=I%3+x-8-3,L=(T>>I&1)===1,S.set(A,P,L,!0),S.set(P,A,L,!0)}function b(S,C,x){const T=S.size,A=d.getEncodedBits(C,x);let P,L;for(P=0;P<15;P++)L=(A>>P&1)===1,P<6?S.set(P,8,L,!0):P<8?S.set(P+1,8,L,!0):S.set(T-15+P,8,L,!0),P<8?S.set(8,T-P-1,L,!0):P<9?S.set(8,15-P-1+1,L,!0):S.set(8,15-P-1,L,!0);S.set(T-8,8,1,!0)}function y(S,C){const x=S.size;let T=-1,A=x-1,P=7,L=0;for(let I=x-1;I>0;I-=2)for(I===6&&I--;;){for(let N=0;N<2;N++)if(!S.isReserved(A,I-N)){let D=!1;L<C.length&&(D=(C[L]>>>P&1)===1),S.set(A,I-N,D),P--,P===-1&&(L++,P=7)}if(A+=T,A<0||x<=A){A-=T,T=-T;break}}}function w(S,C,x){const T=new n;x.forEach(function(N){T.put(N.mode.bit,4),T.put(N.getLength(),f.getCharCountIndicator(N.mode,S)),N.write(T)});const A=t.getSymbolTotalCodewords(S),P=a.getTotalCodewordsCount(S,C),L=(A-P)*8;for(T.getLengthInBits()+4<=L&&T.put(0,4);T.getLengthInBits()%8!==0;)T.putBit(0);const I=(L-T.getLengthInBits())/8;for(let N=0;N<I;N++)T.put(N%2?17:236,8);return E(T,S,C)}function E(S,C,x){const T=t.getSymbolTotalCodewords(C),A=a.getTotalCodewordsCount(C,x),P=T-A,L=a.getBlocksCount(C,x),I=T%L,N=L-I,D=Math.floor(T/L),B=Math.floor(P/L),H=B+1,W=D-B,Y=new c(W);let O=0;const F=new Array(L),K=new Array(L);let J=0;const Q=new Uint8Array(S.buffer);for(let ae=0;ae<L;ae++){const fe=ae<N?B:H;F[ae]=Q.slice(O,O+fe),K[ae]=Y.encode(F[ae]),O+=fe,J=Math.max(J,fe)}const oe=new Uint8Array(T);let re=0,ee,ne;for(ee=0;ee<J;ee++)for(ne=0;ne<L;ne++)ee<F[ne].length&&(oe[re++]=F[ne][ee]);for(ee=0;ee<W;ee++)for(ne=0;ne<L;ne++)oe[re++]=K[ne][ee];return oe}function k(S,C,x,T){let A;if(Array.isArray(S))A=h.fromArray(S);else if(typeof S=="string"){let D=C;if(!D){const B=h.rawSplit(S);D=u.getBestVersionForData(B,x)}A=h.fromString(S,D||40)}else throw new Error("Invalid data");const P=u.getBestVersionForData(A,x);if(!P)throw new Error("The amount of data is too big to be stored in a QR Code");if(!C)C=P;else if(C<P)throw new Error(`
656
+ }`};function QZ(t,e){le(e,!0),ke(t,ZZ);const n=()=>V(_y,"$hasOverlay",i),r=()=>V(ue,"$_",i),[i,o]=me();var s=XZ(),a=z(s);{let c=_(()=>r()("global"));Si(a,{variant:"primary",get"aria-label"(){return l(c)},children:(u,d)=>{var f=JZ(),h=M(f),p=z(h);YZ(p,{});var g=j(p,2);Z2(g,{});var m=j(h,2);Gp(m,{});var v=j(m,2),b=z(v);Y2(b,{});var y=j(b,2);HZ(y,{});var w=j(y,2);KZ(w,{});var E=j(w,2);q(E,S=>{});var k=j(E,2);UZ(k,{}),$(u,f)},$$slots:{default:!0}})}Z(()=>s.inert=n()),$(t,s),ce(),o()}var eQ=U('<h2 role="none"> </h2> <!>',1),tQ=U('<div role="none" class="wrapper svelte-16cq5v7"><section><h3 class="svelte-16cq5v7"> </h3> <!></section> <!></div>');const nQ={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 rQ(t,e){le(e,!0),ke(t,nQ);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{Jd(a,{primaryToolbar:d=>{Si(d,{variant:"primary",children:(f,h)=>{var p=eQ(),g=M(p),m=z(g),v=j(g,2);Wr(v,{flex:!0}),Z(b=>te(m,b),[()=>n()("menu")]),$(f,p)},$$slots:{default:!0}})},mainContent:d=>{var f=tQ(),h=z(f),p=z(h),g=z(p),m=j(p,2);Q2(m,{});var v=j(h,2);q(v,b=>{}),Z(b=>te(g,b),[()=>n()("account")]),$(d,f)},$$slots:{primaryToolbar:!0,mainContent:!0}})};let s=_(()=>n()("menu"));ml(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}var eu={},Jy,eP;function iQ(){return eP||(eP=1,Jy=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Jy}var Xy={},ra={},tP;function bl(){if(tP)return ra;tP=1;let t;const e=[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];return ra.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},ra.getSymbolTotalCodewords=function(r){return e[r]},ra.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},ra.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');t=r},ra.isKanjiModeEnabled=function(){return typeof t<"u"},ra.toSJIS=function(r){return t(r)},ra}var Zy={},nP;function Qy(){return nP||(nP=1,(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,i){if(t.isValid(r))return r;try{return e(r)}catch{return i}}})(Zy)),Zy}var ew,rP;function oQ(){if(rP)return ew;rP=1;function t(){this.buffer=[],this.length=0}return t.prototype={get:function(e){const n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let r=0;r<n;r++)this.putBit((e>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},ew=t,ew}var tw,iP;function sQ(){if(iP)return tw;iP=1;function t(e){if(!e||e<1)throw new 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)}return t.prototype.set=function(e,n,r,i){const o=e*this.size+n;this.data[o]=r,i&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,n){return this.data[e*this.size+n]},t.prototype.xor=function(e,n,r){this.data[e*this.size+n]^=r},t.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},tw=t,tw}var nw={},oP;function aQ(){return oP||(oP=1,(function(t){const e=bl().getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=e(r),s=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let c=1;c<i-1;c++)a[c]=a[c-1]-s;return a.push(6),a.reverse()},t.getPositions=function(r){const i=[],o=t.getRowColCoords(r),s=o.length;for(let a=0;a<s;a++)for(let c=0;c<s;c++)a===0&&c===0||a===0&&c===s-1||a===s-1&&c===0||i.push([o[a],o[c]]);return i}})(nw)),nw}var rw={},sP;function lQ(){if(sP)return rw;sP=1;const t=bl().getSymbolSize,e=7;return rw.getPositions=function(r){const i=t(r);return[[0,0],[i-e,0],[0,i-e]]},rw}var iw={},aP;function cQ(){return aP||(aP=1,(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){const o=i.size;let s=0,a=0,c=0,u=null,d=null;for(let f=0;f<o;f++){a=c=0,u=d=null;for(let h=0;h<o;h++){let p=i.get(f,h);p===u?a++:(a>=5&&(s+=e.N1+(a-5)),u=p,a=1),p=i.get(h,f),p===d?c++:(c>=5&&(s+=e.N1+(c-5)),d=p,c=1)}a>=5&&(s+=e.N1+(a-5)),c>=5&&(s+=e.N1+(c-5))}return s},t.getPenaltyN2=function(i){const o=i.size;let s=0;for(let a=0;a<o-1;a++)for(let c=0;c<o-1;c++){const u=i.get(a,c)+i.get(a,c+1)+i.get(a+1,c)+i.get(a+1,c+1);(u===4||u===0)&&s++}return s*e.N2},t.getPenaltyN3=function(i){const o=i.size;let s=0,a=0,c=0;for(let u=0;u<o;u++){a=c=0;for(let d=0;d<o;d++)a=a<<1&2047|i.get(u,d),d>=10&&(a===1488||a===93)&&s++,c=c<<1&2047|i.get(d,u),d>=10&&(c===1488||c===93)&&s++}return s*e.N3},t.getPenaltyN4=function(i){let o=0;const s=i.data.length;for(let c=0;c<s;c++)o+=i.data[c];return Math.abs(Math.ceil(o*100/s/5)-10)*e.N4};function n(r,i,o){switch(r){case t.Patterns.PATTERN000:return(i+o)%2===0;case t.Patterns.PATTERN001:return i%2===0;case t.Patterns.PATTERN010:return o%3===0;case t.Patterns.PATTERN011:return(i+o)%3===0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case t.Patterns.PATTERN101:return i*o%2+i*o%3===0;case t.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case t.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(i,o){const s=o.size;for(let a=0;a<s;a++)for(let c=0;c<s;c++)o.isReserved(c,a)||o.xor(c,a,n(i,c,a))},t.getBestMask=function(i,o){const s=Object.keys(t.Patterns).length;let a=0,c=1/0;for(let u=0;u<s;u++){o(u),t.applyMask(u,i);const d=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(u,i),d<c&&(c=d,a=u)}return a}})(iw)),iw}var ag={},lP;function cP(){if(lP)return ag;lP=1;const t=Qy(),e=[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],n=[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];return ag.getBlocksCount=function(i,o){switch(o){case t.L:return e[(i-1)*4+0];case t.M:return e[(i-1)*4+1];case t.Q:return e[(i-1)*4+2];case t.H:return e[(i-1)*4+3];default:return}},ag.getTotalCodewordsCount=function(i,o){switch(o){case t.L:return n[(i-1)*4+0];case t.M:return n[(i-1)*4+1];case t.Q:return n[(i-1)*4+2];case t.H:return n[(i-1)*4+3];default:return}},ag}var ow={},nf={},uP;function uQ(){if(uP)return nf;uP=1;const t=new Uint8Array(512),e=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)t[i]=r,e[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)t[i]=t[i-255]})(),nf.log=function(r){if(r<1)throw new Error("log("+r+")");return e[r]},nf.exp=function(r){return t[r]},nf.mul=function(r,i){return r===0||i===0?0:t[e[r]+e[i]]},nf}var dP;function dQ(){return dP||(dP=1,(function(t){const e=uQ();t.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let a=0;a<i.length;a++)o[s+a]^=e.mul(r[s],i[a]);return o},t.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const s=o[0];for(let c=0;c<i.length;c++)o[c]^=e.mul(i[c],s);let a=0;for(;a<o.length&&o[a]===0;)a++;o=o.slice(a)}return o},t.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=t.mul(i,new Uint8Array([1,e.exp(o)]));return i}})(ow)),ow}var sw,fP;function fQ(){if(fP)return sw;fP=1;const t=dQ();function e(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(r){this.degree=r,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const o=t.mod(i,this.genPoly),s=this.degree-o.length;if(s>0){const a=new Uint8Array(this.degree);return a.set(o,s),a}return o},sw=e,sw}var aw={},lw={},cw={},hP;function pP(){return hP||(hP=1,cw.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),cw}var Mo={},gP;function mP(){if(gP)return Mo;gP=1;const t="[0-9]+",e="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
657
+ ]))+`;Mo.KANJI=new RegExp(n,"g"),Mo.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Mo.BYTE=new RegExp(r,"g"),Mo.NUMERIC=new RegExp(t,"g"),Mo.ALPHANUMERIC=new RegExp(e,"g");const i=new RegExp("^"+n+"$"),o=new RegExp("^"+t+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Mo.testKanji=function(c){return i.test(c)},Mo.testNumeric=function(c){return o.test(c)},Mo.testAlphanumeric=function(c){return s.test(c)},Mo}var vP;function _l(){return vP||(vP=1,(function(t){const e=pP(),n=mP();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},t.getBestModeForData=function(o){return n.testNumeric(o)?t.NUMERIC:n.testAlphanumeric(o)?t.ALPHANUMERIC:n.testKanji(o)?t.KANJI:t.BYTE},t.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},t.isValid=function(o){return o&&o.bit&&o.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+i)}}t.from=function(o,s){if(t.isValid(o))return o;try{return r(o)}catch{return s}}})(lw)),lw}var bP;function hQ(){return bP||(bP=1,(function(t){const e=bl(),n=cP(),r=Qy(),i=_l(),o=pP(),s=7973,a=e.getBCHDigit(s);function c(h,p,g){for(let m=1;m<=40;m++)if(p<=t.getCapacity(m,g,h))return m}function u(h,p){return i.getCharCountIndicator(h,p)+4}function d(h,p){let g=0;return h.forEach(function(m){const v=u(m.mode,p);g+=v+m.getBitsLength()}),g}function f(h,p){for(let g=1;g<=40;g++)if(d(h,g)<=t.getCapacity(g,p,i.MIXED))return g}t.from=function(p,g){return o.isValid(p)?parseInt(p,10):g},t.getCapacity=function(p,g,m){if(!o.isValid(p))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=i.BYTE);const v=e.getSymbolTotalCodewords(p),b=n.getTotalCodewordsCount(p,g),y=(v-b)*8;if(m===i.MIXED)return y;const w=y-u(m,p);switch(m){case i.NUMERIC:return Math.floor(w/10*3);case i.ALPHANUMERIC:return Math.floor(w/11*2);case i.KANJI:return Math.floor(w/13);case i.BYTE:default:return Math.floor(w/8)}},t.getBestVersionForData=function(p,g){let m;const v=r.from(g,r.M);if(Array.isArray(p)){if(p.length>1)return f(p,v);if(p.length===0)return 1;m=p[0]}else m=p;return c(m.mode,m.getLength(),v)},t.getEncodedBits=function(p){if(!o.isValid(p)||p<7)throw new Error("Invalid QR Code version");let g=p<<12;for(;e.getBCHDigit(g)-a>=0;)g^=s<<e.getBCHDigit(g)-a;return p<<12|g}})(aw)),aw}var uw={},_P;function pQ(){if(_P)return uw;_P=1;const t=bl(),e=1335,n=21522,r=t.getBCHDigit(e);return uw.getEncodedBits=function(o,s){const a=o.bit<<3|s;let c=a<<10;for(;t.getBCHDigit(c)-r>=0;)c^=e<<t.getBCHDigit(c)-r;return(a<<10|c)^n},uw}var dw={},fw,yP;function gQ(){if(yP)return fw;yP=1;const t=_l();function e(n){this.mode=t.NUMERIC,this.data=n.toString()}return e.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(r){let i,o,s;for(i=0;i+3<=this.data.length;i+=3)o=this.data.substr(i,3),s=parseInt(o,10),r.put(s,10);const a=this.data.length-i;a>0&&(o=this.data.substr(i),s=parseInt(o,10),r.put(s,a*3+1))},fw=e,fw}var hw,wP;function mQ(){if(wP)return hw;wP=1;const t=_l(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=t.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(i){let o;for(o=0;o+2<=this.data.length;o+=2){let s=e.indexOf(this.data[o])*45;s+=e.indexOf(this.data[o+1]),i.put(s,11)}this.data.length%2&&i.put(e.indexOf(this.data[o]),6)},hw=n,hw}var pw,xP;function vQ(){if(xP)return pw;xP=1;const t=_l();function e(n){this.mode=t.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return e.getBitsLength=function(r){return r*8},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(n){for(let r=0,i=this.data.length;r<i;r++)n.put(this.data[r],8)},pw=e,pw}var gw,kP;function bQ(){if(kP)return gw;kP=1;const t=_l(),e=bl();function n(r){this.mode=t.KANJI,this.data=r}return n.getBitsLength=function(i){return i*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let i;for(i=0;i<this.data.length;i++){let o=e.toSJIS(this.data[i]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
658
+ Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),r.put(o,13)}},gw=n,gw}var mw={exports:{}},SP;function _Q(){return SP||(SP=1,(function(t){var e={single_source_shortest_paths:function(n,r,i){var o={},s={};s[r]=0;var a=e.PriorityQueue.make();a.push(r,0);for(var c,u,d,f,h,p,g,m,v;!a.empty();){c=a.pop(),u=c.value,f=c.cost,h=n[u]||{};for(d in h)h.hasOwnProperty(d)&&(p=h[d],g=f+p,m=s[d],v=typeof s[d]>"u",(v||m>g)&&(s[d]=g,a.push(d,g),o[d]=u))}if(typeof i<"u"&&typeof s[i]>"u"){var b=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(b)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],o=r;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,r,i){var o=e.single_source_shortest_paths(n,r,i);return e.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var r=e.PriorityQueue,i={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(mw)),mw.exports}var EP;function yQ(){return EP||(EP=1,(function(t){const e=_l(),n=gQ(),r=mQ(),i=vQ(),o=bQ(),s=mP(),a=bl(),c=_Q();function u(b){return unescape(encodeURIComponent(b)).length}function d(b,y,w){const E=[];let k;for(;(k=b.exec(w))!==null;)E.push({data:k[0],index:k.index,mode:y,length:k[0].length});return E}function f(b){const y=d(s.NUMERIC,e.NUMERIC,b),w=d(s.ALPHANUMERIC,e.ALPHANUMERIC,b);let E,k;return a.isKanjiModeEnabled()?(E=d(s.BYTE,e.BYTE,b),k=d(s.KANJI,e.KANJI,b)):(E=d(s.BYTE_KANJI,e.BYTE,b),k=[]),y.concat(w,E,k).sort(function(C,x){return C.index-x.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function h(b,y){switch(y){case e.NUMERIC:return n.getBitsLength(b);case e.ALPHANUMERIC:return r.getBitsLength(b);case e.KANJI:return o.getBitsLength(b);case e.BYTE:return i.getBitsLength(b)}}function p(b){return b.reduce(function(y,w){const E=y.length-1>=0?y[y.length-1]:null;return E&&E.mode===w.mode?(y[y.length-1].data+=w.data,y):(y.push(w),y)},[])}function g(b){const y=[];for(let w=0;w<b.length;w++){const E=b[w];switch(E.mode){case e.NUMERIC:y.push([E,{data:E.data,mode:e.ALPHANUMERIC,length:E.length},{data:E.data,mode:e.BYTE,length:E.length}]);break;case e.ALPHANUMERIC:y.push([E,{data:E.data,mode:e.BYTE,length:E.length}]);break;case e.KANJI:y.push([E,{data:E.data,mode:e.BYTE,length:u(E.data)}]);break;case e.BYTE:y.push([{data:E.data,mode:e.BYTE,length:u(E.data)}])}}return y}function m(b,y){const w={},E={start:{}};let k=["start"];for(let S=0;S<b.length;S++){const C=b[S],x=[];for(let T=0;T<C.length;T++){const A=C[T],P=""+S+T;x.push(P),w[P]={node:A,lastCount:0},E[P]={};for(let L=0;L<k.length;L++){const I=k[L];w[I]&&w[I].node.mode===A.mode?(E[I][P]=h(w[I].lastCount+A.length,A.mode)-h(w[I].lastCount,A.mode),w[I].lastCount+=A.length):(w[I]&&(w[I].lastCount=A.length),E[I][P]=h(A.length,A.mode)+4+e.getCharCountIndicator(A.mode,y))}}k=x}for(let S=0;S<k.length;S++)E[k[S]].end=0;return{map:E,table:w}}function v(b,y){let w;const E=e.getBestModeForData(b);if(w=e.from(y,E),w!==e.BYTE&&w.bit<E.bit)throw new Error('"'+b+'" cannot be encoded with mode '+e.toString(w)+`.
659
+ Suggested mode is: `+e.toString(E));switch(w===e.KANJI&&!a.isKanjiModeEnabled()&&(w=e.BYTE),w){case e.NUMERIC:return new n(b);case e.ALPHANUMERIC:return new r(b);case e.KANJI:return new o(b);case e.BYTE:return new i(b)}}t.fromArray=function(y){return y.reduce(function(w,E){return typeof E=="string"?w.push(v(E,null)):E.data&&w.push(v(E.data,E.mode)),w},[])},t.fromString=function(y,w){const E=f(y,a.isKanjiModeEnabled()),k=g(E),S=m(k,w),C=c.find_path(S.map,"start","end"),x=[];for(let T=1;T<C.length-1;T++)x.push(S.table[C[T]].node);return t.fromArray(p(x))},t.rawSplit=function(y){return t.fromArray(f(y,a.isKanjiModeEnabled()))}})(dw)),dw}var $P;function wQ(){if($P)return Xy;$P=1;const t=bl(),e=Qy(),n=oQ(),r=sQ(),i=aQ(),o=lQ(),s=cQ(),a=cP(),c=fQ(),u=hQ(),d=pQ(),f=_l(),h=yQ();function p(S,C){const x=S.size,T=o.getPositions(C);for(let A=0;A<T.length;A++){const P=T[A][0],L=T[A][1];for(let I=-1;I<=7;I++)if(!(P+I<=-1||x<=P+I))for(let N=-1;N<=7;N++)L+N<=-1||x<=L+N||(I>=0&&I<=6&&(N===0||N===6)||N>=0&&N<=6&&(I===0||I===6)||I>=2&&I<=4&&N>=2&&N<=4?S.set(P+I,L+N,!0,!0):S.set(P+I,L+N,!1,!0))}}function g(S){const C=S.size;for(let x=8;x<C-8;x++){const T=x%2===0;S.set(x,6,T,!0),S.set(6,x,T,!0)}}function m(S,C){const x=i.getPositions(C);for(let T=0;T<x.length;T++){const A=x[T][0],P=x[T][1];for(let L=-2;L<=2;L++)for(let I=-2;I<=2;I++)L===-2||L===2||I===-2||I===2||L===0&&I===0?S.set(A+L,P+I,!0,!0):S.set(A+L,P+I,!1,!0)}}function v(S,C){const x=S.size,T=u.getEncodedBits(C);let A,P,L;for(let I=0;I<18;I++)A=Math.floor(I/3),P=I%3+x-8-3,L=(T>>I&1)===1,S.set(A,P,L,!0),S.set(P,A,L,!0)}function b(S,C,x){const T=S.size,A=d.getEncodedBits(C,x);let P,L;for(P=0;P<15;P++)L=(A>>P&1)===1,P<6?S.set(P,8,L,!0):P<8?S.set(P+1,8,L,!0):S.set(T-15+P,8,L,!0),P<8?S.set(8,T-P-1,L,!0):P<9?S.set(8,15-P-1+1,L,!0):S.set(8,15-P-1,L,!0);S.set(T-8,8,1,!0)}function y(S,C){const x=S.size;let T=-1,A=x-1,P=7,L=0;for(let I=x-1;I>0;I-=2)for(I===6&&I--;;){for(let N=0;N<2;N++)if(!S.isReserved(A,I-N)){let D=!1;L<C.length&&(D=(C[L]>>>P&1)===1),S.set(A,I-N,D),P--,P===-1&&(L++,P=7)}if(A+=T,A<0||x<=A){A-=T,T=-T;break}}}function w(S,C,x){const T=new n;x.forEach(function(N){T.put(N.mode.bit,4),T.put(N.getLength(),f.getCharCountIndicator(N.mode,S)),N.write(T)});const A=t.getSymbolTotalCodewords(S),P=a.getTotalCodewordsCount(S,C),L=(A-P)*8;for(T.getLengthInBits()+4<=L&&T.put(0,4);T.getLengthInBits()%8!==0;)T.putBit(0);const I=(L-T.getLengthInBits())/8;for(let N=0;N<I;N++)T.put(N%2?17:236,8);return E(T,S,C)}function E(S,C,x){const T=t.getSymbolTotalCodewords(C),A=a.getTotalCodewordsCount(C,x),P=T-A,L=a.getBlocksCount(C,x),I=T%L,N=L-I,D=Math.floor(T/L),B=Math.floor(P/L),H=B+1,W=D-B,Y=new c(W);let O=0;const F=new Array(L),K=new Array(L);let J=0;const Q=new Uint8Array(S.buffer);for(let ae=0;ae<L;ae++){const fe=ae<N?B:H;F[ae]=Q.slice(O,O+fe),K[ae]=Y.encode(F[ae]),O+=fe,J=Math.max(J,fe)}const oe=new Uint8Array(T);let re=0,ee,ne;for(ee=0;ee<J;ee++)for(ne=0;ne<L;ne++)ee<F[ne].length&&(oe[re++]=F[ne][ee]);for(ee=0;ee<W;ee++)for(ne=0;ne<L;ne++)oe[re++]=K[ne][ee];return oe}function k(S,C,x,T){let A;if(Array.isArray(S))A=h.fromArray(S);else if(typeof S=="string"){let D=C;if(!D){const B=h.rawSplit(S);D=u.getBestVersionForData(B,x)}A=h.fromString(S,D||40)}else throw new Error("Invalid data");const P=u.getBestVersionForData(A,x);if(!P)throw new Error("The amount of data is too big to be stored in a QR Code");if(!C)C=P;else if(C<P)throw new Error(`
660
660
  The chosen QR Code version cannot contain this amount of data.
661
661
  Minimum version required to store current data is: `+P+`.
662
- `);const L=w(C,x,A),I=t.getSymbolSize(C),N=new r(I);return p(N,C),g(N),m(N,C),b(N,x,0),C>=7&&v(N,C),y(N,L),isNaN(T)&&(T=s.getBestMask(N,b.bind(null,N,x))),s.applyMask(T,N),b(N,x,T),{modules:N,version:C,errorCorrectionLevel:x,maskPattern:T,segments:A}}return Xy.create=function(C,x){if(typeof C>"u"||C==="")throw new Error("No input text");let T=e.M,A,P;return typeof x<"u"&&(T=e.from(x.errorCorrectionLevel,e.M),A=u.from(x.version),P=s.from(x.maskPattern),x.toSJISFunc&&t.setToSJISFunction(x.toSJISFunc)),k(C,A,T,P)},Xy}var vw={},bw={},TP;function CP(){return TP||(TP=1,(function(t){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}t.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:o,scale:o?4:s,margin:i,color:{dark:e(r.color.dark||"#000000ff"),light:e(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},t.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},t.getImageWidth=function(r,i){const o=t.getScale(r,i);return Math.floor((r+i.margin*2)*o)},t.qrToImageData=function(r,i,o){const s=i.modules.size,a=i.modules.data,c=t.getScale(s,o),u=Math.floor((s+o.margin*2)*c),d=o.margin*c,f=[o.color.light,o.color.dark];for(let h=0;h<u;h++)for(let p=0;p<u;p++){let g=(h*u+p)*4,m=o.color.light;if(h>=d&&p>=d&&h<u-d&&p<u-d){const v=Math.floor((h-d)/c),b=Math.floor((p-d)/c);m=f[a[v*s+b]?1:0]}r[g++]=m.r,r[g++]=m.g,r[g++]=m.b,r[g]=m.a}}})(bw)),bw}var AP;function wQ(){return AP||(AP=1,(function(t){const e=CP();function n(i,o,s){i.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}t.render=function(o,s,a){let c=a,u=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(u=r()),c=e.getOptions(c);const d=e.getImageWidth(o.modules.size,c),f=u.getContext("2d"),h=f.createImageData(d,d);return e.qrToImageData(h.data,o,c),n(f,u,d),f.putImageData(h,0,0),u},t.renderToDataURL=function(o,s,a){let c=a;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const u=t.render(o,s,c),d=c.type||"image/png",f=c.rendererOpts||{};return u.toDataURL(d,f.quality)}})(vw)),vw}var _w={},PP;function xQ(){if(PP)return _w;PP=1;const t=CP();function e(i,o){const s=i.a/255,a=o+'="'+i.hex+'"';return s<1?a+" "+o+'-opacity="'+s.toFixed(2).slice(1)+'"':a}function n(i,o,s){let a=i+o;return typeof s<"u"&&(a+=" "+s),a}function r(i,o,s){let a="",c=0,u=!1,d=0;for(let f=0;f<i.length;f++){const h=Math.floor(f%o),p=Math.floor(f/o);!h&&!u&&(u=!0),i[f]?(d++,f>0&&h>0&&i[f-1]||(a+=u?n("M",h+s,.5+p+s):n("m",c,0),c=0,u=!1),h+1<o&&i[f+1]||(a+=n("h",d),d=0)):c++}return a}return _w.render=function(o,s,a){const c=t.getOptions(s),u=o.modules.size,d=o.modules.data,f=u+c.margin*2,h=c.color.light.a?"<path "+e(c.color.light,"fill")+' d="M0 0h'+f+"v"+f+'H0z"/>':"",p="<path "+e(c.color.dark,"stroke")+' d="'+r(d,u,c.margin)+'"/>',g='viewBox="0 0 '+f+" "+f+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+g+' shape-rendering="crispEdges">'+h+p+`</svg>
663
- `;return typeof a=="function"&&a(null,v),v},_w}var LP;function kQ(){if(LP)return eu;LP=1;const t=rQ(),e=yQ(),n=wQ(),r=xQ();function i(o,s,a,c,u){const d=[].slice.call(arguments,1),f=d.length,h=typeof d[f-1]=="function";if(!h&&!t())throw new Error("Callback required as last argument");if(h){if(f<2)throw new Error("Too few arguments provided");f===2?(u=a,a=s,s=c=void 0):f===3&&(s.getContext&&typeof u>"u"?(u=c,c=void 0):(u=c,c=a,a=s,s=void 0))}else{if(f<1)throw new Error("Too few arguments provided");return f===1?(a=s,s=c=void 0):f===2&&!s.getContext&&(c=a,a=s,s=void 0),new Promise(function(p,g){try{const m=e.create(a,c);p(o(m,s,c))}catch(m){g(m)}})}try{const p=e.create(a,c);u(null,o(p,s,c))}catch(p){u(p)}}return eu.create=e.create,eu.toCanvas=i.bind(null,n.render),eu.toDataURL=i.bind(null,n.renderToDataURL),eu.toString=i.bind(null,function(o,s,a){return r.render(o,a)}),eu}var SQ=kQ(),EQ=U('<div> </div> <canvas class="svelte-1eeac91"></canvas>',1);const $Q={hash:"svelte-1eeac91",code:"canvas.svelte-1eeac91 {display:block;margin:32px auto 16px;width:200px !important;height:200px !important;}"};function TQ(t,e){le(e,!0),ke(t,$Q);const n=()=>V(og,"$showMobileSignInDialog",s),r=()=>V(Hn,"$user",s),i=()=>V(dt,"$prefs",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=ie(void 0);De(()=>{if(l(c)&&n()){const{origin:u,pathname:d}=window.location,f=btoa(JSON.stringify({token:r()?.token,prefs:i()}));SQ.toCanvas(l(c),`${u}${d}#/signin/${f}`)}});{let u=_(()=>o()("sign_in_with_mobile"));Di(t,{get title(){return l(u)},size:"small",showOk:!1,showCancel:!1,showClose:!0,style:"--sui-dialog-small-content-max-height:auto",get open(){return Jg(),n()},set open(d){Ge(og,d)},children:(d,f)=>{var h=EQ(),p=M(h),g=z(p),m=j(p,2);vt(m,v=>G(c,v),()=>l(c)),Z(v=>te(g,v),[()=>o()("sign_in_with_mobile_instruction")]),$(d,h)},$$slots:{default:!0}})}ce(),a()}var CQ=U('<div role="none" class="label"><!></div>'),AQ=U("<!> <!> <!>",1);function PQ(t,e){le(e,!0);const n=()=>V(zt,"$appLocale",r),[r,i]=me(),o=_(()=>e.asset.path),s=_(()=>e.asset.name),a=_(()=>e.asset.folder),c=_(()=>e.asset.kind);sd(t,{onclick:()=>{Ht(`/assets/${l(o)}`,{transitionType:"forwards"})},children:(u,d)=>{var f=AQ(),h=M(f);_i(h,{class:"image",children:(m,v)=>{Ro(m,{get kind(){return l(c)},get asset(){return e.asset},variant:"icon",cover:!0})},$$slots:{default:!0}});var p=j(h,2);_i(p,{class:"collection",children:(m,v)=>{var b=X(),y=M(b);Xn(y,n,w=>{var E=Ie();Z(k=>te(E,k),[()=>qp(l(a))]),$(w,E)}),$(m,b)},$$slots:{default:!0}});var g=j(p,2);_i(g,{class:"title",children:(m,v)=>{var b=CQ(),y=z(b);xr(y,{lines:2,children:(w,E)=>{var k=Ie();Z(()=>te(k,l(s))),$(w,k)},$$slots:{default:!0}}),$(m,b)},$$slots:{default:!0}}),$(u,f)},$$slots:{default:!0}}),ce(),i()}const LQ=({assets:t,terms:e})=>(e=Zd(e),!t.length||!e?[]:t.filter(n=>Xc({value:n.name,terms:e}))),NQ=Qt([Dn,gs],([t,e])=>LQ({assets:t,terms:e}));var IQ=U('<span role="none"> </span>'),OQ=U('<h3 role="none" id="search-results-assets"> </h3> <div role="none"><!></div>',1);function RQ(t,e){le(e,!0);const n=()=>V(NQ,"$assetSearchResults",o),r=()=>V(ue,"$_",o),i=()=>V(gs,"$searchTerms",o),[o,s]=me();De(()=>{const a=n().length;Ge(ci,r()("viewing_asset_search_results",{values:{terms:i(),assets:a>1?r()("many_assets",{values:{count:a}}):a===1?r()("one_asset"):r()("no_assets")}}))}),No(t,{"aria-labelledby":"search-results-assets",children:(a,c)=>{var u=OQ(),d=M(u),f=z(d),h=j(d,2),p=z(h);{var g=v=>{{let b=_(()=>r()("assets"));Yd(v,{viewType:"list",get"aria-label"(){return l(b)},get"aria-rowcount"(){return n().length},children:(y,w)=>{var E=X(),k=M(E);Xn(k,i,S=>{Ma(S,{get items(){return n()},itemKey:"path",renderItem:(x,T=Be)=>{var A=X(),P=M(A);Xt(P,Lt,null,L=>{PQ(L,{get asset(){return T()}})}),$(x,A)},$$slots:{renderItem:!0}})}),$(y,E)},$$slots:{default:!0}})}},m=v=>{var b=X(),y=M(b);{var w=E=>{hr(E,{children:(k,S)=>{var C=IQ(),x=z(C);Z(T=>te(x,T),[()=>r()("no_files_found")]),$(k,C)},$$slots:{default:!0}})};q(y,E=>{i()&&E(w)},!0)}$(v,b)};q(p,v=>{n().length?v(g):v(m,!1)})}Z(v=>te(f,v),[()=>r()("assets")]),$(a,u)},$$slots:{default:!0}}),ce(),s()}var DQ=U('<div role="none" class="label"><!></div>'),MQ=U("<!> <!> <!>",1);function FQ(t,e){le(e,!0);const n=()=>V(zt,"$appLocale",r),[r,i]=me(),o=(d,f)=>{let h=()=>f?.().collection,p=()=>f?.().collectionFile;const g=_(()=>{const{defaultLocale:w}=(p()??h())._i18n??Zi;return{defaultLocale:w}}),m=_(()=>{const{content:w}=l(s)[l(g).defaultLocale]??Object.values(l(s))[0]??{};return{content:w}});var v=X(),b=M(v);{var y=w=>{sd(w,{onclick:()=>{Ht(`/collections/${h().name}/entries/${p()?.name||l(a)}`,{transitionType:"forwards"})},children:(E,k)=>{var S=MQ(),C=M(S);_i(C,{class:"image",children:(A,P)=>{var L=X(),I=M(L);{var N=D=>{var B=X(),H=M(B);Xt(H,()=>j2(h(),e.entry),null,(W,Y)=>{var O=X(),F=M(O);{var K=J=>{Ty(J,{get src(){return l(Y)},variant:"icon",cover:!0})};q(F,J=>{l(Y)&&J(K)})}$(W,O)}),$(D,B)};q(I,D=>{h()._type==="entry"&&D(N)})}$(A,L)},$$slots:{default:!0}});var x=j(C,2);_i(x,{class:"collection",children:(A,P)=>{var L=X(),I=M(L);Xn(I,n,N=>{var D=Ie();Z(B=>te(D,B),[()=>ns(h())]),$(N,D)}),$(A,L)},$$slots:{default:!0}});var T=j(x,2);_i(T,{class:"title",children:(A,P)=>{var L=DQ(),I=z(L);xr(I,{lines:2,children:(N,D)=>{var B=X(),H=M(B);{var W=O=>{var F=Ie();Z(K=>te(F,K),[()=>Fu(p())]),$(O,F)},Y=O=>{var F=X(),K=M(F);Xn(K,n,J=>{var Q=X(),oe=M(Q);cr(oe,()=>lc(h(),e.entry,{useTemplate:!0,allowMarkdown:!0})),$(J,Q)}),$(O,F)};q(H,O=>{p()?O(W):O(Y,!1)})}$(N,B)},$$slots:{default:!0}}),$(A,L)},$$slots:{default:!0}}),$(E,S)},$$slots:{default:!0}})};q(b,w=>{l(m).content&&w(y)})}$(d,v)},s=_(()=>e.entry.locales),a=_(()=>e.entry.subPath);var c=X(),u=M(c);it(u,17,()=>Xo(e.entry),d=>d.name,(d,f)=>{var h=X(),p=M(h);Xt(p,Lt,null,g=>{var m=X(),v=M(m);it(v,17,()=>Ds(l(f),e.entry),b=>b.name,(b,y)=>{var w=X(),E=M(w);Xt(E,Lt,null,k=>{o(k,()=>({collection:l(f),collectionFile:l(y)}))}),$(b,w)},b=>{o(b,()=>({collection:l(f)}))}),$(g,m)}),$(d,h)}),$(t,c),ce(),i()}const zQ=({entry:t,terms:e})=>{let n=0;const r=Xo(t);if(r.length){r.forEach(s=>{Xc({value:s.label||s.name,terms:e})&&(n+=10),n+=Ds(s,t).filter(a=>Xc({value:a.label||a.name,terms:e})).length});const[i]=r,o=lc(i,t,{useTemplate:!0,allowMarkdown:!0});Xc({value:o,terms:e})&&(n+=10)}return Object.values(t.locales).forEach(({content:i})=>{n+=Object.values(i).filter(o=>typeof o=="string"&&!!o&&Xc({value:o,terms:e})||typeof o=="number"&&Xc({value:String(o),terms:e})).length}),n},jQ=({entries:t,terms:e})=>(e=Zd(e),!t.length||!e?[]:t.map(n=>({entry:n,points:zQ({entry:n,terms:e})})).filter(({points:n})=>n>0).sort((n,r)=>r.points-n.points).map(({entry:n})=>n)),BQ=Qt([ri,gs,zt],([t,e])=>jQ({entries:t,terms:e}));var UQ=U('<span role="none"> </span>'),qQ=U('<h3 role="none" id="search-results-entries"> </h3> <div role="none"><!></div>',1);function VQ(t,e){le(e,!0);const n=()=>V(BQ,"$entrySearchResults",o),r=()=>V(ue,"$_",o),i=()=>V(gs,"$searchTerms",o),[o,s]=me();De(()=>{const a=n().length;Ge(ci,r()("viewing_entry_search_results",{values:{terms:i(),entries:a>1?r()("many_entries",{values:{count:a}}):a===1?r()("one_entry"):r()("no_entries")}}))}),No(t,{"aria-labelledby":"search-results-entries",children:(a,c)=>{var u=qQ(),d=M(u),f=z(d),h=j(d,2),p=z(h);{var g=v=>{{let b=_(()=>r()("entries"));Yd(v,{viewType:"list",get"aria-label"(){return l(b)},get"aria-rowcount"(){return n().length},children:(y,w)=>{var E=X(),k=M(E);Xn(k,i,S=>{Ma(S,{get items(){return n()},itemKey:"id",renderItem:(x,T=Be)=>{var A=X(),P=M(A);Xt(P,Lt,null,L=>{FQ(L,{get entry(){return T()}})}),$(x,A)},$$slots:{renderItem:!0}})}),$(y,E)},$$slots:{default:!0}})}},m=v=>{var b=X(),y=M(b);{var w=E=>{hr(E,{children:(k,S)=>{var C=UQ(),x=z(C);Z(T=>te(x,T),[()=>r()("no_entries_found")]),$(k,C)},$$slots:{default:!0}})};q(y,E=>{i()&&E(w)},!0)}$(v,b)};q(p,v=>{n().length?v(g):v(m,!1)})}Z(v=>te(f,v),[()=>r()("entries")]),$(a,u)},$$slots:{default:!0}}),ce(),s()}var HQ=U('<header role="none" class="svelte-1p7vfqa"><h2 role="none" class="svelte-1p7vfqa"> </h2></header>'),KQ=U('<div role="none" class="wrapper svelte-1p7vfqa"><!> <div role="none" class="results svelte-1p7vfqa"><!> <!></div></div>');const GQ={hash:"svelte-1p7vfqa",code:`.wrapper.svelte-1p7vfqa {display:flex;flex-direction:column;overflow:hidden;width:100%;background-color:var(--sui-primary-background-color);}header.svelte-1p7vfqa {flex:none;display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}header.svelte-1p7vfqa h2:where(.svelte-1p7vfqa) {font-size:var(--sui-font-size-x-large);}.results.svelte-1p7vfqa {flex:auto;display:flex;gap:16px;overflow:hidden;height:100%;}.results.svelte-1p7vfqa > .sui.group {flex:auto;display:flex;flex-direction:column;overflow:hidden;width:50%;height:100%;}.results.svelte-1p7vfqa h3 {flex:none;margin:16px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-large);}.results.svelte-1p7vfqa h3 + div {overflow:auto;flex:auto;}
662
+ `);const L=w(C,x,A),I=t.getSymbolSize(C),N=new r(I);return p(N,C),g(N),m(N,C),b(N,x,0),C>=7&&v(N,C),y(N,L),isNaN(T)&&(T=s.getBestMask(N,b.bind(null,N,x))),s.applyMask(T,N),b(N,x,T),{modules:N,version:C,errorCorrectionLevel:x,maskPattern:T,segments:A}}return Xy.create=function(C,x){if(typeof C>"u"||C==="")throw new Error("No input text");let T=e.M,A,P;return typeof x<"u"&&(T=e.from(x.errorCorrectionLevel,e.M),A=u.from(x.version),P=s.from(x.maskPattern),x.toSJISFunc&&t.setToSJISFunction(x.toSJISFunc)),k(C,A,T,P)},Xy}var vw={},bw={},TP;function CP(){return TP||(TP=1,(function(t){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}t.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:o,scale:o?4:s,margin:i,color:{dark:e(r.color.dark||"#000000ff"),light:e(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},t.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},t.getImageWidth=function(r,i){const o=t.getScale(r,i);return Math.floor((r+i.margin*2)*o)},t.qrToImageData=function(r,i,o){const s=i.modules.size,a=i.modules.data,c=t.getScale(s,o),u=Math.floor((s+o.margin*2)*c),d=o.margin*c,f=[o.color.light,o.color.dark];for(let h=0;h<u;h++)for(let p=0;p<u;p++){let g=(h*u+p)*4,m=o.color.light;if(h>=d&&p>=d&&h<u-d&&p<u-d){const v=Math.floor((h-d)/c),b=Math.floor((p-d)/c);m=f[a[v*s+b]?1:0]}r[g++]=m.r,r[g++]=m.g,r[g++]=m.b,r[g]=m.a}}})(bw)),bw}var AP;function xQ(){return AP||(AP=1,(function(t){const e=CP();function n(i,o,s){i.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}t.render=function(o,s,a){let c=a,u=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(u=r()),c=e.getOptions(c);const d=e.getImageWidth(o.modules.size,c),f=u.getContext("2d"),h=f.createImageData(d,d);return e.qrToImageData(h.data,o,c),n(f,u,d),f.putImageData(h,0,0),u},t.renderToDataURL=function(o,s,a){let c=a;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const u=t.render(o,s,c),d=c.type||"image/png",f=c.rendererOpts||{};return u.toDataURL(d,f.quality)}})(vw)),vw}var _w={},PP;function kQ(){if(PP)return _w;PP=1;const t=CP();function e(i,o){const s=i.a/255,a=o+'="'+i.hex+'"';return s<1?a+" "+o+'-opacity="'+s.toFixed(2).slice(1)+'"':a}function n(i,o,s){let a=i+o;return typeof s<"u"&&(a+=" "+s),a}function r(i,o,s){let a="",c=0,u=!1,d=0;for(let f=0;f<i.length;f++){const h=Math.floor(f%o),p=Math.floor(f/o);!h&&!u&&(u=!0),i[f]?(d++,f>0&&h>0&&i[f-1]||(a+=u?n("M",h+s,.5+p+s):n("m",c,0),c=0,u=!1),h+1<o&&i[f+1]||(a+=n("h",d),d=0)):c++}return a}return _w.render=function(o,s,a){const c=t.getOptions(s),u=o.modules.size,d=o.modules.data,f=u+c.margin*2,h=c.color.light.a?"<path "+e(c.color.light,"fill")+' d="M0 0h'+f+"v"+f+'H0z"/>':"",p="<path "+e(c.color.dark,"stroke")+' d="'+r(d,u,c.margin)+'"/>',g='viewBox="0 0 '+f+" "+f+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+g+' shape-rendering="crispEdges">'+h+p+`</svg>
663
+ `;return typeof a=="function"&&a(null,v),v},_w}var LP;function SQ(){if(LP)return eu;LP=1;const t=iQ(),e=wQ(),n=xQ(),r=kQ();function i(o,s,a,c,u){const d=[].slice.call(arguments,1),f=d.length,h=typeof d[f-1]=="function";if(!h&&!t())throw new Error("Callback required as last argument");if(h){if(f<2)throw new Error("Too few arguments provided");f===2?(u=a,a=s,s=c=void 0):f===3&&(s.getContext&&typeof u>"u"?(u=c,c=void 0):(u=c,c=a,a=s,s=void 0))}else{if(f<1)throw new Error("Too few arguments provided");return f===1?(a=s,s=c=void 0):f===2&&!s.getContext&&(c=a,a=s,s=void 0),new Promise(function(p,g){try{const m=e.create(a,c);p(o(m,s,c))}catch(m){g(m)}})}try{const p=e.create(a,c);u(null,o(p,s,c))}catch(p){u(p)}}return eu.create=e.create,eu.toCanvas=i.bind(null,n.render),eu.toDataURL=i.bind(null,n.renderToDataURL),eu.toString=i.bind(null,function(o,s,a){return r.render(o,a)}),eu}var EQ=SQ(),$Q=U('<div> </div> <canvas class="svelte-1eeac91"></canvas>',1);const TQ={hash:"svelte-1eeac91",code:"canvas.svelte-1eeac91 {display:block;margin:32px auto 16px;width:200px !important;height:200px !important;}"};function CQ(t,e){le(e,!0),ke(t,TQ);const n=()=>V(og,"$showMobileSignInDialog",s),r=()=>V(Hn,"$user",s),i=()=>V(dt,"$prefs",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=ie(void 0);De(()=>{if(l(c)&&n()){const{origin:u,pathname:d}=window.location,f=btoa(JSON.stringify({token:r()?.token,prefs:i()}));EQ.toCanvas(l(c),`${u}${d}#/signin/${f}`)}});{let u=_(()=>o()("sign_in_with_mobile"));Di(t,{get title(){return l(u)},size:"small",showOk:!1,showCancel:!1,showClose:!0,style:"--sui-dialog-small-content-max-height:auto",get open(){return Jg(),n()},set open(d){Ge(og,d)},children:(d,f)=>{var h=$Q(),p=M(h),g=z(p),m=j(p,2);vt(m,v=>G(c,v),()=>l(c)),Z(v=>te(g,v),[()=>o()("sign_in_with_mobile_instruction")]),$(d,h)},$$slots:{default:!0}})}ce(),a()}var AQ=U('<div role="none" class="label"><!></div>'),PQ=U("<!> <!> <!>",1);function LQ(t,e){le(e,!0);const n=()=>V(zt,"$appLocale",r),[r,i]=me(),o=_(()=>e.asset.path),s=_(()=>e.asset.name),a=_(()=>e.asset.folder),c=_(()=>e.asset.kind);sd(t,{onclick:()=>{Ht(`/assets/${l(o)}`,{transitionType:"forwards"})},children:(u,d)=>{var f=PQ(),h=M(f);_i(h,{class:"image",children:(m,v)=>{Ro(m,{get kind(){return l(c)},get asset(){return e.asset},variant:"icon",cover:!0})},$$slots:{default:!0}});var p=j(h,2);_i(p,{class:"collection",children:(m,v)=>{var b=X(),y=M(b);Xn(y,n,w=>{var E=Ie();Z(k=>te(E,k),[()=>qp(l(a))]),$(w,E)}),$(m,b)},$$slots:{default:!0}});var g=j(p,2);_i(g,{class:"title",children:(m,v)=>{var b=AQ(),y=z(b);xr(y,{lines:2,children:(w,E)=>{var k=Ie();Z(()=>te(k,l(s))),$(w,k)},$$slots:{default:!0}}),$(m,b)},$$slots:{default:!0}}),$(u,f)},$$slots:{default:!0}}),ce(),i()}const NQ=({assets:t,terms:e})=>(e=Zd(e),!t.length||!e?[]:t.filter(n=>Xc({value:n.name,terms:e}))),IQ=Qt([Dn,gs],([t,e])=>NQ({assets:t,terms:e}));var OQ=U('<span role="none"> </span>'),RQ=U('<h3 role="none" id="search-results-assets"> </h3> <div role="none"><!></div>',1);function DQ(t,e){le(e,!0);const n=()=>V(IQ,"$assetSearchResults",o),r=()=>V(ue,"$_",o),i=()=>V(gs,"$searchTerms",o),[o,s]=me();De(()=>{const a=n().length;Ge(ci,r()("viewing_asset_search_results",{values:{terms:i(),assets:a>1?r()("many_assets",{values:{count:a}}):a===1?r()("one_asset"):r()("no_assets")}}))}),No(t,{"aria-labelledby":"search-results-assets",children:(a,c)=>{var u=RQ(),d=M(u),f=z(d),h=j(d,2),p=z(h);{var g=v=>{{let b=_(()=>r()("assets"));Yd(v,{viewType:"list",get"aria-label"(){return l(b)},get"aria-rowcount"(){return n().length},children:(y,w)=>{var E=X(),k=M(E);Xn(k,i,S=>{Ma(S,{get items(){return n()},itemKey:"path",renderItem:(x,T=Be)=>{var A=X(),P=M(A);Xt(P,Lt,null,L=>{LQ(L,{get asset(){return T()}})}),$(x,A)},$$slots:{renderItem:!0}})}),$(y,E)},$$slots:{default:!0}})}},m=v=>{var b=X(),y=M(b);{var w=E=>{hr(E,{children:(k,S)=>{var C=OQ(),x=z(C);Z(T=>te(x,T),[()=>r()("no_files_found")]),$(k,C)},$$slots:{default:!0}})};q(y,E=>{i()&&E(w)},!0)}$(v,b)};q(p,v=>{n().length?v(g):v(m,!1)})}Z(v=>te(f,v),[()=>r()("assets")]),$(a,u)},$$slots:{default:!0}}),ce(),s()}var MQ=U('<div role="none" class="label"><!></div>'),FQ=U("<!> <!> <!>",1);function zQ(t,e){le(e,!0);const n=()=>V(zt,"$appLocale",r),[r,i]=me(),o=(d,f)=>{let h=()=>f?.().collection,p=()=>f?.().collectionFile;const g=_(()=>{const{defaultLocale:w}=(p()??h())._i18n??Zi;return{defaultLocale:w}}),m=_(()=>{const{content:w}=l(s)[l(g).defaultLocale]??Object.values(l(s))[0]??{};return{content:w}});var v=X(),b=M(v);{var y=w=>{sd(w,{onclick:()=>{Ht(`/collections/${h().name}/entries/${p()?.name||l(a)}`,{transitionType:"forwards"})},children:(E,k)=>{var S=FQ(),C=M(S);_i(C,{class:"image",children:(A,P)=>{var L=X(),I=M(L);{var N=D=>{var B=X(),H=M(B);Xt(H,()=>j2(h(),e.entry),null,(W,Y)=>{var O=X(),F=M(O);{var K=J=>{Ty(J,{get src(){return l(Y)},variant:"icon",cover:!0})};q(F,J=>{l(Y)&&J(K)})}$(W,O)}),$(D,B)};q(I,D=>{h()._type==="entry"&&D(N)})}$(A,L)},$$slots:{default:!0}});var x=j(C,2);_i(x,{class:"collection",children:(A,P)=>{var L=X(),I=M(L);Xn(I,n,N=>{var D=Ie();Z(B=>te(D,B),[()=>ns(h())]),$(N,D)}),$(A,L)},$$slots:{default:!0}});var T=j(x,2);_i(T,{class:"title",children:(A,P)=>{var L=MQ(),I=z(L);xr(I,{lines:2,children:(N,D)=>{var B=X(),H=M(B);{var W=O=>{var F=Ie();Z(K=>te(F,K),[()=>Fu(p())]),$(O,F)},Y=O=>{var F=X(),K=M(F);Xn(K,n,J=>{var Q=X(),oe=M(Q);cr(oe,()=>lc(h(),e.entry,{useTemplate:!0,allowMarkdown:!0})),$(J,Q)}),$(O,F)};q(H,O=>{p()?O(W):O(Y,!1)})}$(N,B)},$$slots:{default:!0}}),$(A,L)},$$slots:{default:!0}}),$(E,S)},$$slots:{default:!0}})};q(b,w=>{l(m).content&&w(y)})}$(d,v)},s=_(()=>e.entry.locales),a=_(()=>e.entry.subPath);var c=X(),u=M(c);it(u,17,()=>Xo(e.entry),d=>d.name,(d,f)=>{var h=X(),p=M(h);Xt(p,Lt,null,g=>{var m=X(),v=M(m);it(v,17,()=>Ds(l(f),e.entry),b=>b.name,(b,y)=>{var w=X(),E=M(w);Xt(E,Lt,null,k=>{o(k,()=>({collection:l(f),collectionFile:l(y)}))}),$(b,w)},b=>{o(b,()=>({collection:l(f)}))}),$(g,m)}),$(d,h)}),$(t,c),ce(),i()}const jQ=({entry:t,terms:e})=>{let n=0;const r=Xo(t);if(r.length){r.forEach(s=>{Xc({value:s.label||s.name,terms:e})&&(n+=10),n+=Ds(s,t).filter(a=>Xc({value:a.label||a.name,terms:e})).length});const[i]=r,o=lc(i,t,{useTemplate:!0,allowMarkdown:!0});Xc({value:o,terms:e})&&(n+=10)}return Object.values(t.locales).forEach(({content:i})=>{n+=Object.values(i).filter(o=>typeof o=="string"&&!!o&&Xc({value:o,terms:e})||typeof o=="number"&&Xc({value:String(o),terms:e})).length}),n},BQ=({entries:t,terms:e})=>(e=Zd(e),!t.length||!e?[]:t.map(n=>({entry:n,points:jQ({entry:n,terms:e})})).filter(({points:n})=>n>0).sort((n,r)=>r.points-n.points).map(({entry:n})=>n)),UQ=Qt([ri,gs,zt],([t,e])=>BQ({entries:t,terms:e}));var qQ=U('<span role="none"> </span>'),VQ=U('<h3 role="none" id="search-results-entries"> </h3> <div role="none"><!></div>',1);function HQ(t,e){le(e,!0);const n=()=>V(UQ,"$entrySearchResults",o),r=()=>V(ue,"$_",o),i=()=>V(gs,"$searchTerms",o),[o,s]=me();De(()=>{const a=n().length;Ge(ci,r()("viewing_entry_search_results",{values:{terms:i(),entries:a>1?r()("many_entries",{values:{count:a}}):a===1?r()("one_entry"):r()("no_entries")}}))}),No(t,{"aria-labelledby":"search-results-entries",children:(a,c)=>{var u=VQ(),d=M(u),f=z(d),h=j(d,2),p=z(h);{var g=v=>{{let b=_(()=>r()("entries"));Yd(v,{viewType:"list",get"aria-label"(){return l(b)},get"aria-rowcount"(){return n().length},children:(y,w)=>{var E=X(),k=M(E);Xn(k,i,S=>{Ma(S,{get items(){return n()},itemKey:"id",renderItem:(x,T=Be)=>{var A=X(),P=M(A);Xt(P,Lt,null,L=>{zQ(L,{get entry(){return T()}})}),$(x,A)},$$slots:{renderItem:!0}})}),$(y,E)},$$slots:{default:!0}})}},m=v=>{var b=X(),y=M(b);{var w=E=>{hr(E,{children:(k,S)=>{var C=qQ(),x=z(C);Z(T=>te(x,T),[()=>r()("no_entries_found")]),$(k,C)},$$slots:{default:!0}})};q(y,E=>{i()&&E(w)},!0)}$(v,b)};q(p,v=>{n().length?v(g):v(m,!1)})}Z(v=>te(f,v),[()=>r()("entries")]),$(a,u)},$$slots:{default:!0}}),ce(),s()}var KQ=U('<header role="none" class="svelte-1p7vfqa"><h2 role="none" class="svelte-1p7vfqa"> </h2></header>'),GQ=U('<div role="none" class="wrapper svelte-1p7vfqa"><!> <div role="none" class="results svelte-1p7vfqa"><!> <!></div></div>');const WQ={hash:"svelte-1p7vfqa",code:`.wrapper.svelte-1p7vfqa {display:flex;flex-direction:column;overflow:hidden;width:100%;background-color:var(--sui-primary-background-color);}header.svelte-1p7vfqa {flex:none;display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}header.svelte-1p7vfqa h2:where(.svelte-1p7vfqa) {font-size:var(--sui-font-size-x-large);}.results.svelte-1p7vfqa {flex:auto;display:flex;gap:16px;overflow:hidden;height:100%;}.results.svelte-1p7vfqa > .sui.group {flex:auto;display:flex;flex-direction:column;overflow:hidden;width:50%;height:100%;}.results.svelte-1p7vfqa h3 {flex:none;margin:16px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-large);}.results.svelte-1p7vfqa h3 + div {overflow:auto;flex:auto;}
664
664
  @media (width < 768px) {.results.svelte-1p7vfqa h3 {display:none;}
665
- }`};function WQ(t,e){le(e,!0),ke(t,GQ);const n=()=>V(ln,"$isSmallScreen",o),r=()=>V(ue,"$_",o),i=()=>V(gl,"$searchMode",o),[o,s]=me();var a=KQ(),c=z(a);{var u=m=>{var v=HQ(),b=z(v),y=z(b);Z(w=>te(y,w),[()=>r()("search_results")]),$(m,v)};q(c,m=>{n()||m(u)})}var d=j(c,2),f=z(d);{var h=m=>{VQ(m,{})};q(f,m=>{i()==="entries"&&m(h)})}var p=j(f,2);{var g=m=>{RQ(m,{})};q(p,m=>{i()==="assets"&&m(g)})}$(t,a),ce(),s()}var YQ=U('<!> <div role="search" class="svelte-u038t"><!></div>',1);const JQ={hash:"svelte-u038t",code:"[role=search].svelte-u038t {display:contents;}[role=search].svelte-u038t .sui.search-bar {flex:auto;}"};function XQ(t,e){le(e,!0),ke(t,JQ);const n=()=>V(gs,"$searchTerms",s),r=()=>V(gl,"$searchMode",s),i=()=>V(ue,"$_",s),o=()=>V(ln,"$isSmallScreen",s),[s,a]=me(),c=/^\/search\/(?<terms>.+)$/,u=()=>{const{path:d}=Oo(),{terms:f}=d.match(c)?.groups??{};f&&f!==n()&&Ge(gs,f),Ge(gl,r()??"entries")};Ft(()=>{u(),document.querySelector(".sui.search-bar input")?.focus()}),jr("hashchange",ua,()=>{u()});{const d=h=>{Jd(h,{primaryToolbar:m=>{var v=X(),b=M(v);{var y=w=>{Si(w,{variant:"primary",children:(E,k)=>{var S=YQ(),C=M(S);{let A=_(()=>i()(r()==="assets"?"back_to_asset_folder_list":"back_to_collection_list"));pl(C,{get"aria-label"(){return l(A)},onclick:()=>{Ge(gs,""),Ht(r()==="assets"?"/assets":"/collections",{transitionType:"backwards"})}})}var x=j(C,2),T=z(x);Gp(T,{}),$(E,S)},$$slots:{default:!0}})};q(b,w=>{o()&&w(y)})}$(m,v)},mainContent:m=>{WQ(m,{})},$$slots:{primaryToolbar:!0,mainContent:!0}})};let f=_(()=>i()("search_results_for_x",{values:{terms:n()}}));ml(t,{get"aria-label"(){return l(f)},main:d,$$slots:{main:!0}})}ce(),a()}var ZQ=U('<!> <h2 role="none"> </h2>',1),QQ=U('<!> <h2 role="none"> </h2>',1),eee=U("<!> <!>",1),tee=U('<div role="none" class="inner svelte-116bna3"><!></div>'),nee=U('<div role="none" class="wrapper svelte-116bna3"><!></div>'),ree=U("<!> <!>",1);const iee={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 .inner:where(.svelte-116bna3) {padding:16px;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) section:not(:first-child) {margin:16px 0 0;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) p {margin-top:0;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) h4 {font-size:inherit;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) h4 ~ div {margin:8px 0 0;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) h4 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function oee(t,e){le(e,!0),ke(t,iee);const n=()=>V(ue,"$_",r),[r,i]=me(),o=/^\/settings(?:\/(?<panelKey>.+))?$/;let s=ie(void 0),a=ie(""),c=ie(!1);const u=()=>{const{path:p}=Oo(),g=p.match(o);if(!g?.groups)return;const{panelKey:m}=g.groups;G(s,m?se(sg).find(v=>v.key===m):void 0,!0)};Ft(()=>{u()});var d=ree();jr("hashchange",ua,p=>{xy(p,u,o)});var f=M(d);{const p=m=>{Jd(m,{primaryToolbar:y=>{Si(y,{variant:"primary",children:(w,E)=>{var k=eee(),S=M(k);{var C=A=>{var P=ZQ(),L=M(P);pl(L,{onclick:()=>Qs("/settings")});var I=j(L,2),N=z(I);Z(D=>te(N,D),[()=>n()(`prefs.${l(s).key}.title`)]),$(A,P)},x=A=>{var P=QQ(),L=M(P);pl(L,{onclick:()=>Qs("/menu")});var I=j(L,2),N=z(I);Z(D=>te(N,D),[()=>n()("settings")]),$(A,P)};q(S,A=>{l(s)?A(C):A(x,!1)})}var T=j(S,2);Wr(T,{flex:!0}),$(w,k)},$$slots:{default:!0}})},mainContent:y=>{var w=nee(),E=z(w);{var k=C=>{const x=_(()=>l(s).component);var T=tee(),A=z(T);Bn(A,()=>l(x),(P,L)=>{L(P,{onChange:({message:I})=>{G(a,I,!0),G(c,!0)}})}),$(C,T)},S=C=>{{let x=_(()=>n()("settings"));ir(C,{get"aria-label"(){return l(x)},children:(T,A)=>{var P=X(),L=M(P);it(L,17,()=>se(sg),({key:I,icon:N})=>I,(I,N)=>{let D=()=>l(N).key,B=()=>l(N).icon;{const H=Y=>{Je(Y,{get name(){return B()}})};let W=_(()=>n()(`prefs.${D()}.title`));mt(I,{get label(){return l(W)},onclick:()=>Ht(`/settings/${D()}`,{transitionType:"forwards"}),startIcon:H,$$slots:{startIcon:!0}})}}),$(T,P)},$$slots:{default:!0}})}};q(E,C=>{l(s)?C(k):C(S,!1)})}$(y,w)},$$slots:{primaryToolbar:!0,mainContent:!0}})};let g=_(()=>n()("settings"));ml(f,{get"aria-label"(){return l(g)},main:p,$$slots:{main:!0}})}var h=j(f,2);Qn(h,{get show(){return l(c)},set show(p){G(c,p,!0)},children:(p,g)=>{Mn(p,{status:"success",children:(m,v)=>{var b=Ie();Z(()=>te(b,l(a))),$(m,b)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,d),ce(),i()}var see=U('<header role="none" class="svelte-ljqw9n"><h3 role="none" id="draft-column-title" class="svelte-ljqw9n"> </h3></header>'),aee=U('<header role="none" class="svelte-ljqw9n"><h3 role="none" id="review-column-title" class="svelte-ljqw9n"> </h3></header>'),lee=U('<header role="none" class="svelte-ljqw9n"><h3 role="none" id="ready-column-title" class="svelte-ljqw9n"> </h3></header>'),cee=U('<div role="none" class="columns svelte-ljqw9n"><!> <!> <!></div>');const uee={hash:"svelte-ljqw9n",code:`.columns.svelte-ljqw9n {flex:auto;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}
665
+ }`};function YQ(t,e){le(e,!0),ke(t,WQ);const n=()=>V(ln,"$isSmallScreen",o),r=()=>V(ue,"$_",o),i=()=>V(gl,"$searchMode",o),[o,s]=me();var a=GQ(),c=z(a);{var u=m=>{var v=KQ(),b=z(v),y=z(b);Z(w=>te(y,w),[()=>r()("search_results")]),$(m,v)};q(c,m=>{n()||m(u)})}var d=j(c,2),f=z(d);{var h=m=>{HQ(m,{})};q(f,m=>{i()==="entries"&&m(h)})}var p=j(f,2);{var g=m=>{DQ(m,{})};q(p,m=>{i()==="assets"&&m(g)})}$(t,a),ce(),s()}var JQ=U('<!> <div role="search" class="svelte-u038t"><!></div>',1);const XQ={hash:"svelte-u038t",code:"[role=search].svelte-u038t {display:contents;}[role=search].svelte-u038t .sui.search-bar {flex:auto;}"};function ZQ(t,e){le(e,!0),ke(t,XQ);const n=()=>V(gs,"$searchTerms",s),r=()=>V(gl,"$searchMode",s),i=()=>V(ue,"$_",s),o=()=>V(ln,"$isSmallScreen",s),[s,a]=me(),c=/^\/search\/(?<terms>.+)$/,u=()=>{const{path:d}=Oo(),{terms:f}=d.match(c)?.groups??{};f&&f!==n()&&Ge(gs,f),Ge(gl,r()??"entries")};Ft(()=>{u(),document.querySelector(".sui.search-bar input")?.focus()}),jr("hashchange",ua,()=>{u()});{const d=h=>{Jd(h,{primaryToolbar:m=>{var v=X(),b=M(v);{var y=w=>{Si(w,{variant:"primary",children:(E,k)=>{var S=JQ(),C=M(S);{let A=_(()=>i()(r()==="assets"?"back_to_asset_folder_list":"back_to_collection_list"));pl(C,{get"aria-label"(){return l(A)},onclick:()=>{Ge(gs,""),Ht(r()==="assets"?"/assets":"/collections",{transitionType:"backwards"})}})}var x=j(C,2),T=z(x);Gp(T,{}),$(E,S)},$$slots:{default:!0}})};q(b,w=>{o()&&w(y)})}$(m,v)},mainContent:m=>{YQ(m,{})},$$slots:{primaryToolbar:!0,mainContent:!0}})};let f=_(()=>i()("search_results_for_x",{values:{terms:n()}}));ml(t,{get"aria-label"(){return l(f)},main:d,$$slots:{main:!0}})}ce(),a()}var QQ=U('<!> <h2 role="none"> </h2>',1),eee=U('<!> <h2 role="none"> </h2>',1),tee=U("<!> <!>",1),nee=U('<div role="none" class="inner svelte-116bna3"><!></div>'),ree=U('<div role="none" class="wrapper svelte-116bna3"><!></div>'),iee=U("<!> <!>",1);const oee={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 .inner:where(.svelte-116bna3) {padding:16px;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) section:not(:first-child) {margin:16px 0 0;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) p {margin-top:0;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) h4 {font-size:inherit;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) h4 ~ div {margin:8px 0 0;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) h4 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function see(t,e){le(e,!0),ke(t,oee);const n=()=>V(ue,"$_",r),[r,i]=me(),o=/^\/settings(?:\/(?<panelKey>.+))?$/;let s=ie(void 0),a=ie(""),c=ie(!1);const u=()=>{const{path:p}=Oo(),g=p.match(o);if(!g?.groups)return;const{panelKey:m}=g.groups;G(s,m?se(sg).find(v=>v.key===m):void 0,!0)};Ft(()=>{u()});var d=iee();jr("hashchange",ua,p=>{xy(p,u,o)});var f=M(d);{const p=m=>{Jd(m,{primaryToolbar:y=>{Si(y,{variant:"primary",children:(w,E)=>{var k=tee(),S=M(k);{var C=A=>{var P=QQ(),L=M(P);pl(L,{onclick:()=>Qs("/settings")});var I=j(L,2),N=z(I);Z(D=>te(N,D),[()=>n()(`prefs.${l(s).key}.title`)]),$(A,P)},x=A=>{var P=eee(),L=M(P);pl(L,{onclick:()=>Qs("/menu")});var I=j(L,2),N=z(I);Z(D=>te(N,D),[()=>n()("settings")]),$(A,P)};q(S,A=>{l(s)?A(C):A(x,!1)})}var T=j(S,2);Wr(T,{flex:!0}),$(w,k)},$$slots:{default:!0}})},mainContent:y=>{var w=ree(),E=z(w);{var k=C=>{const x=_(()=>l(s).component);var T=nee(),A=z(T);Bn(A,()=>l(x),(P,L)=>{L(P,{onChange:({message:I})=>{G(a,I,!0),G(c,!0)}})}),$(C,T)},S=C=>{{let x=_(()=>n()("settings"));ir(C,{get"aria-label"(){return l(x)},children:(T,A)=>{var P=X(),L=M(P);it(L,17,()=>se(sg),({key:I,icon:N})=>I,(I,N)=>{let D=()=>l(N).key,B=()=>l(N).icon;{const H=Y=>{Je(Y,{get name(){return B()}})};let W=_(()=>n()(`prefs.${D()}.title`));mt(I,{get label(){return l(W)},onclick:()=>Ht(`/settings/${D()}`,{transitionType:"forwards"}),startIcon:H,$$slots:{startIcon:!0}})}}),$(T,P)},$$slots:{default:!0}})}};q(E,C=>{l(s)?C(k):C(S,!1)})}$(y,w)},$$slots:{primaryToolbar:!0,mainContent:!0}})};let g=_(()=>n()("settings"));ml(f,{get"aria-label"(){return l(g)},main:p,$$slots:{main:!0}})}var h=j(f,2);Qn(h,{get show(){return l(c)},set show(p){G(c,p,!0)},children:(p,g)=>{Mn(p,{status:"success",children:(m,v)=>{var b=Ie();Z(()=>te(b,l(a))),$(m,b)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,d),ce(),i()}var aee=U('<header role="none" class="svelte-ljqw9n"><h3 role="none" id="draft-column-title" class="svelte-ljqw9n"> </h3></header>'),lee=U('<header role="none" class="svelte-ljqw9n"><h3 role="none" id="review-column-title" class="svelte-ljqw9n"> </h3></header>'),cee=U('<header role="none" class="svelte-ljqw9n"><h3 role="none" id="ready-column-title" class="svelte-ljqw9n"> </h3></header>'),uee=U('<div role="none" class="columns svelte-ljqw9n"><!> <!> <!></div>');const dee={hash:"svelte-ljqw9n",code:`.columns.svelte-ljqw9n {flex:auto;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}
666
666
  @media (width < 768px) {.columns.svelte-ljqw9n {flex-direction:column;gap:0;}
667
667
  }.columns.svelte-ljqw9n .column {flex:auto;width:33.3333333333%;background-color:var(--sui-primary-background-color);}
668
668
  @media (width < 768px) {.columns.svelte-ljqw9n .column {width:100%;height:33.3333333333%;}
669
- }.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 dee(t,e){le(e,!0),ke(t,uee);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{var c=cee(),u=z(c);No(u,{class:"column","aria-labelledby":"draft-column-title",children:(h,p)=>{var g=see(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.drafts")]),$(h,g)},$$slots:{default:!0}});var d=j(u,2);No(d,{class:"column","aria-labelledby":"review-column-title",children:(h,p)=>{var g=aee(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.in_review")]),$(h,g)},$$slots:{default:!0}});var f=j(d,2);No(f,{class:"column","aria-labelledby":"ready-column-title",children:(h,p)=>{var g=lee(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.ready")]),$(h,g)},$$slots:{default:!0}}),$(a,c)};let s=_(()=>n()("editorial_workflow"));ml(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}var fee=U("<!> <!>",1),hee=U('<!> <!> <div role="none" class="page-root svelte-1a6c577"><!></div> <!> <!> <!> <!> <!>',1);const pee={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 gee(t,e){le(e,!0),ke(t,pee);const n=()=>V(yy,"$selectedPageName",o),r=()=>V(X2,"$canShowMobileSignInDialog",o),i=()=>V(ln,"$isSmallScreen",o),[o,s]=me(),a={collections:WX,assets:sH,search:XQ,workflow:dee,config:mH,menu:nQ,settings:oee},c=_(()=>a[n()]),u=()=>{Ge(ga,!1),Ge(Js,!1);const{path:T}=Oo(),{pageName:A}=T.match(`^\\/(?<pageName>${Object.keys(a).join("|")})\\b`)?.groups??{};A?n()!==A&&Ge(yy,A):window.location.replace("#/collections"),A==="collections"?Ge(gl,"entries"):A==="assets"?Ge(gl,"assets"):A!=="search"&&Ge(gl,null)};Ft(()=>{u()});var d={pages:a,selectPage:u},f=hee();jr("hashchange",ua,()=>{u()});var h=M(f);{var p=T=>{var A=fee(),P=M(A);eZ(P,{});var L=j(P,2);TQ(L,{}),$(T,A)};q(h,T=>{r()&&T(p)})}var g=j(h,2);{var m=T=>{ZZ(T,{})};q(g,T=>{i()||T(m)})}var v=j(g,2),b=z(v);Bn(b,()=>l(c),(T,A)=>{A(T,{})});var y=j(v,2);{var w=T=>{iZ(T,{})};q(y,T=>{i()&&T(w)})}var E=j(y,2);hH(E,{});var k=j(E,2);fH(k,{});var S=j(k,2);JX(S,{});var C=j(S,2);XX(C,{}),$(t,f);var x=ce(d);return s(),x}const mee=Object.freeze(Object.defineProperty({__proto__:null,strings:{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",clipboard_error:"There was an error while copying data.",welcome_to_sveltia_cms:"Welcome to Sveltia CMS",loading_site_config:"Loading Site 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_pat:"Sign In with {service} Using PAT",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_entries:"Search for entries…",search_placeholder_assets:"Search for assets…",search_placeholder_all:"Search for entries 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",site_config:"Site Configuration",show_help_menu:"Show Help Menu",help:"Help",keyboard_shortcuts:"Keyboard Shortcuts",documentation:"Documentation",release_notes:"Release Notes",version_x:"Version {version}",report_issue:"Report Issue",share_feedback:"Share Feedback",get_help:"Get Help",join_discord:"Join Us on Discord",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"},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",creating_entries_disabled_by_admin:"Creating new entries in this collection is disabled by the administrator.",creating_entries_disabled_by_limit:"You cannot add new entries to this collection because it has reached its limit of {limit} 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}",tap_to_browse:"Tap to browse…",drop_file_or_click_to_browse:"Drop a file here or click to browse…",drop_files_or_click_to_browse:"Drop files here or click to browse…",drop_image_file_or_click_to_browse:"Drop an image file here or click to browse…",drop_image_files_or_click_to_browse:"Drop image files here or click to browse…",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 to delete this asset?",confirm_deleting_selected_asset:"Are you sure to delete the selected asset?",confirm_deleting_selected_assets:"Are you sure to delete the selected {count} assets?",confirm_deleting_all_assets:"Are you sure 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 to delete this entry?",confirm_deleting_this_entry_with_assets:"Are you sure to delete this entry and associated assets?",confirm_deleting_selected_entry:"Are you sure to delete the selected entry?",confirm_deleting_selected_entry_with_assets:"Are you sure to delete the selected entry and associated assets?",confirm_deleting_selected_entries:"Are you sure to delete the selected {count} entries?",confirm_deleting_selected_entries_with_assets:"Are you sure to delete the selected {count} entries and associated assets?",confirm_deleting_all_entries:"Are you sure to delete all the entries?",confirm_deleting_all_entries_with_assets:"Are you sure 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 to replace “{name}” with the following file?",confirm_uploading_file:"Are you sure to save the following file to the “{folder}” folder?",confirm_uploading_files:"Are you sure 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.",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_widget_x:"Unsupported widget: {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 the Relation widget, 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:{number:"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:{number:"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."}},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:{initial:"Sign into {service} to insert media on the storage to entry fields.",requested:"Signing in…",error:"User name or password is incorrect. Please double check and try again."}},config:{error:{no_secure_context:"Sveltia CMS only works with HTTPS or localhost URLs.",fetch_failed:"The configuration file could not be retrieved.",fetch_failed_not_ok:"HTTP response returned with status {status}.",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 and JSON are supported.",no_collection:"Collections are not defined in the configuration file.",missing_backend:"The backend is not defined in the configuration file.",missing_backend_name:"The backend name is not defined in the configuration file.",unsupported_backend:"The configured “{name}” backend is not supported.",missing_repository:"The repository is not defined in the configuration file.",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.",oauth_no_app_id:"OAuth application ID is not defined in the configuration file.",missing_media_folder:"The media folder is not defined in the configuration file.",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.",unexpected:"There was an unexpected error while validating the configuration file.",try_again:"Please solve the issue and try again."}},local_backend:{unsupported_browser:"Local development is not supported in your browser. Please use Chrome or Edge instead.",disabled:"Local development 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."},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",default_translator:{title:"Default Translation Service",select_service:"Select Service"},translator:{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:{title:"{service} Free Images",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}",providers_disabled:"Stock asset providers are disabled by the administrator."}},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.",field_label:"Deploy Hook URL",url_saved:"Webhook URL has been saved.",url_removed:"Webhook URL 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"}}},Symbol.toStringTag,{value:"Module"})),vee=Object.freeze(Object.defineProperty({__proto__:null,strings:{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:"スラッグ",clipboard_error:"データのコピー中に問題が発生しました。",welcome_to_sveltia_cms:"Sveltia CMS へようこそ",loading_site_config:"サイト設定を読み込んでいます…",loading_site_data:"サイトデータを読み込んでいます…",loading_site_data_error:"サイトデータの読み込み中にエラーが発生しました。",sign_in_with_x:"{service} でログイン",sign_in_with_x_using_pat:"{service} で PAT を使用してログイン",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_entries:"エントリーを検索…",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:"設定",site_config:"サイト設定",show_help_menu:"ヘルプメニューを表示",help:"ヘルプ",keyboard_shortcuts:"キーボードショートカット",documentation:"ドキュメンテーション",release_notes:"リリースノート",version_x:"バージョン {version}",report_issue:"問題を報告",share_feedback:"フィードバックを共有",get_help:"サポート",join_discord:"Discord チャンネルに参加",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:"更新日時"},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:"グローバルアセット",creating_entries_disabled_by_admin:"このコレクションへの新しいエントリーの作成は、管理者によって無効化されています。",creating_entries_disabled_by_limit:"このコレクションは最大の {limit} エントリーに達したため、新しいエントリーを作成することはできません。",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} を差し替え",tap_to_browse:"タップして参照…",drop_file_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_files_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_image_file_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",drop_image_files_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",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} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください",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_widget_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:{select_many:"少なくとも {min} 個の項目を選択してください。",select_one:"少なくとも {min} 個の項目を選択してください。",add_many:"少なくとも {min} 個の項目を追加してください。",add_one:"少なくとも {min} 個の項目を追加してください。"},range_overflow:{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:{email:"正しいメールアドレスを入力してください。",url:"正しい URL を入力してください。"}},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:{initial:"{service} へログインすると、ストレージ上のメディアをエントリー項目へ挿入できます。",requested:"ログイン中…",error:"ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。"}},config:{error:{no_secure_context:"Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。",fetch_failed:"設定ファイルを読み込めませんでした。",fetch_failed_not_ok:"HTTP レスポンスがステータス {status} で返されました。",parse_failed:"設定ファイルを解析できませんでした。",parse_failed_invalid_object:"設定ファイルが有効な JavaScript オブジェクトではありません。",parse_failed_unsupported_type:"設定ファイルが有効なファイル形式ではありません。サポートされているのは YAML と JSON のみです。",no_collection:"設定ファイル内でコレクションが定義されていません。",missing_backend:"設定ファイル内でバックエンドが定義されていません。",missing_backend_name:"設定ファイル内でバックエンド名が定義されていません。",unsupported_backend:"設定されている「{name}」バックエンドは非対応です。",missing_repository:"設定ファイル内でレポジトリが定義されていません。",invalid_repository:"設定されているレポジトリが正しくありません。この設定は「owner/repo」形式でなければなりません。",oauth_implicit_flow:"設定されている認証方式 (暗黙的フロー) は非対応です。",oauth_no_app_id:"設定ファイル内で OAuth アプリケーション ID が定義されていません。",missing_media_folder:"設定ファイル内でメディアフォルダーが定義されていません。",invalid_media_folder:"設定されているメディアフォルダーが正しくありません。この設定は文字列でなければなりません。",invalid_public_folder:"設定されているパブリックフォルダーが正しくありません。この設定は文字列でなければなりません。",public_folder_relative_path:"設定されているパブリックフォルダーが正しくありません。この設定は「/」で始まる絶対パスでなければなりません。",public_folder_absolute_url:"パブリックフォルダーオプションの絶対 URL は非対応です。",unexpected:"設定ファイルを検証中に予期せぬ問題が発生しました。",try_again:"問題を解決してから再度お試しください。"}},local_backend:{unsupported_browser:"お使いのブラウザーはローカル開発に対応していません。代わりに Chrome か Edge を使ってください。",disabled:"お使いのブラウザーではローカル開発が無効化されています。<a>有効化する方法はこちら</a>。"},status:{drafts:"下書き",in_review:"レビュー中",ready:"公開可"},categories:"カテゴリ",prefs:{changes:{api_key_saved:"API キーが保存されました。",api_key_removed:"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:"国際化",default_translator:{title:"デフォルト翻訳サービス",select_service:"サービスを選択"},translator:{field_label:"{service} キー",description:"<a {homeHref}>{service}</a> にユーザー登録して、<a {apiKeyHref}>発行されたキー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。"}},media:{title:"メディア",stock_photos:{title:"{service} 無料画像素材",field_label:"{service} API キー",description:"<a {homeHref}>{service} API</a> にユーザー登録して、<a {apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。",credit:"写真提供: {service}",providers_disabled:"ストックアセットプロバイダーは管理者によって無効化されています。"}},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 を使用する場合は空欄のままで構いません。",field_label:"デプロイフック URL",url_saved:"ウェブフック URL が保存されました。",url_removed:"ウェブフック URL が削除されました。"}}},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"}}},Symbol.toStringTag,{value:"Module"})),bee=()=>{Object.entries(Object.assign({"/src/lib/locales/en.js":mee,"/src/lib/locales/ja.js":vee})).forEach(([e,{strings:n}])=>{const r=dn(e).filename;vm(r,n)}),ZS({fallbackLocale:"en",initialLocale:se(dt).locale||(vO()??"").split("-")[0]||"en"})};var _ee=U('<link rel="icon"/>'),yee=U('<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>',1),wee=U('<div role="none" class="outer svelte-7y4msj"><!> <!> <div role="none" class="main svelte-7y4msj"><!> <!></div></div>'),xee=U('<!> <div role="status" class="svelte-7y4msj"> </div>',1);const kee={hash:"svelte-7y4msj",code:`@view-transition {navigation:auto;
669
+ }.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 fee(t,e){le(e,!0),ke(t,dee);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{var c=uee(),u=z(c);No(u,{class:"column","aria-labelledby":"draft-column-title",children:(h,p)=>{var g=aee(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.drafts")]),$(h,g)},$$slots:{default:!0}});var d=j(u,2);No(d,{class:"column","aria-labelledby":"review-column-title",children:(h,p)=>{var g=lee(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.in_review")]),$(h,g)},$$slots:{default:!0}});var f=j(d,2);No(f,{class:"column","aria-labelledby":"ready-column-title",children:(h,p)=>{var g=cee(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.ready")]),$(h,g)},$$slots:{default:!0}}),$(a,c)};let s=_(()=>n()("editorial_workflow"));ml(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}var hee=U("<!> <!>",1),pee=U('<!> <!> <div role="none" class="page-root svelte-1a6c577"><!></div> <!> <!> <!> <!> <!>',1);const gee={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 mee(t,e){le(e,!0),ke(t,gee);const n=()=>V(yy,"$selectedPageName",o),r=()=>V(X2,"$canShowMobileSignInDialog",o),i=()=>V(ln,"$isSmallScreen",o),[o,s]=me(),a={collections:YX,assets:aH,search:ZQ,workflow:fee,config:vH,menu:rQ,settings:see},c=_(()=>a[n()]),u=()=>{Ge(ga,!1),Ge(Js,!1);const{path:T}=Oo(),{pageName:A}=T.match(`^\\/(?<pageName>${Object.keys(a).join("|")})\\b`)?.groups??{};A?n()!==A&&Ge(yy,A):window.location.replace("#/collections"),A==="collections"?Ge(gl,"entries"):A==="assets"?Ge(gl,"assets"):A!=="search"&&Ge(gl,null)};Ft(()=>{u()});var d={pages:a,selectPage:u},f=pee();jr("hashchange",ua,()=>{u()});var h=M(f);{var p=T=>{var A=hee(),P=M(A);tZ(P,{});var L=j(P,2);CQ(L,{}),$(T,A)};q(h,T=>{r()&&T(p)})}var g=j(h,2);{var m=T=>{QZ(T,{})};q(g,T=>{i()||T(m)})}var v=j(g,2),b=z(v);Bn(b,()=>l(c),(T,A)=>{A(T,{})});var y=j(v,2);{var w=T=>{oZ(T,{})};q(y,T=>{i()&&T(w)})}var E=j(y,2);pH(E,{});var k=j(E,2);hH(k,{});var S=j(k,2);XX(S,{});var C=j(S,2);ZX(C,{}),$(t,f);var x=ce(d);return s(),x}const vee=Object.freeze(Object.defineProperty({__proto__:null,strings:{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",clipboard_error:"There was an error while copying data.",welcome_to_sveltia_cms:"Welcome to Sveltia CMS",loading_site_config:"Loading Site 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_pat:"Sign In with {service} Using PAT",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_entries:"Search for entries…",search_placeholder_assets:"Search for assets…",search_placeholder_all:"Search for entries 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",site_config:"Site Configuration",show_help_menu:"Show Help Menu",help:"Help",keyboard_shortcuts:"Keyboard Shortcuts",documentation:"Documentation",release_notes:"Release Notes",version_x:"Version {version}",report_issue:"Report Issue",share_feedback:"Share Feedback",get_help:"Get Help",join_discord:"Join Us on Discord",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"},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",creating_entries_disabled_by_admin:"Creating new entries in this collection is disabled by the administrator.",creating_entries_disabled_by_limit:"You cannot add new entries to this collection because it has reached its limit of {limit} 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}",tap_to_browse:"Tap to browse…",drop_file_or_click_to_browse:"Drop a file here or click to browse…",drop_files_or_click_to_browse:"Drop files here or click to browse…",drop_image_file_or_click_to_browse:"Drop an image file here or click to browse…",drop_image_files_or_click_to_browse:"Drop image files here or click to browse…",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 to delete this asset?",confirm_deleting_selected_asset:"Are you sure to delete the selected asset?",confirm_deleting_selected_assets:"Are you sure to delete the selected {count} assets?",confirm_deleting_all_assets:"Are you sure 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 to delete this entry?",confirm_deleting_this_entry_with_assets:"Are you sure to delete this entry and associated assets?",confirm_deleting_selected_entry:"Are you sure to delete the selected entry?",confirm_deleting_selected_entry_with_assets:"Are you sure to delete the selected entry and associated assets?",confirm_deleting_selected_entries:"Are you sure to delete the selected {count} entries?",confirm_deleting_selected_entries_with_assets:"Are you sure to delete the selected {count} entries and associated assets?",confirm_deleting_all_entries:"Are you sure to delete all the entries?",confirm_deleting_all_entries_with_assets:"Are you sure 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 to replace “{name}” with the following file?",confirm_uploading_file:"Are you sure to save the following file to the “{folder}” folder?",confirm_uploading_files:"Are you sure 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.",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_widget_x:"Unsupported widget: {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 the Relation widget, 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:{number:"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:{number:"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."}},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:{initial:"Sign into {service} to insert media on the storage to entry fields.",requested:"Signing in…",error:"User name or password is incorrect. Please double check and try again."}},config:{error:{no_secure_context:"Sveltia CMS only works with HTTPS or localhost URLs.",fetch_failed:"The configuration file could not be retrieved.",fetch_failed_not_ok:"HTTP response returned with status {status}.",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 and JSON are supported.",no_collection:"Collections are not defined in the configuration file.",missing_backend:"The backend is not defined in the configuration file.",missing_backend_name:"The backend name is not defined in the configuration file.",unsupported_backend:"The configured “{name}” backend is not supported.",missing_repository:"The repository is not defined in the configuration file.",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.",oauth_no_app_id:"OAuth application ID is not defined in the configuration file.",missing_media_folder:"The media folder is not defined in the configuration file.",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.",unexpected:"There was an unexpected error while validating the configuration file.",try_again:"Please solve the issue and try again."}},local_backend:{unsupported_browser:"Local development is not supported in your browser. Please use Chrome or Edge instead.",disabled:"Local development 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."},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",default_translator:{title:"Default Translation Service",select_service:"Select Service"},translator:{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:{title:"{service} Free Images",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}",providers_disabled:"Stock asset providers are disabled by the administrator."}},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.",field_label:"Deploy Hook URL",url_saved:"Webhook URL has been saved.",url_removed:"Webhook URL 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"}}},Symbol.toStringTag,{value:"Module"})),bee=Object.freeze(Object.defineProperty({__proto__:null,strings:{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:"スラッグ",clipboard_error:"データのコピー中に問題が発生しました。",welcome_to_sveltia_cms:"Sveltia CMS へようこそ",loading_site_config:"サイト設定を読み込んでいます…",loading_site_data:"サイトデータを読み込んでいます…",loading_site_data_error:"サイトデータの読み込み中にエラーが発生しました。",sign_in_with_x:"{service} でログイン",sign_in_with_x_using_pat:"{service} で PAT を使用してログイン",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_entries:"エントリーを検索…",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:"設定",site_config:"サイト設定",show_help_menu:"ヘルプメニューを表示",help:"ヘルプ",keyboard_shortcuts:"キーボードショートカット",documentation:"ドキュメンテーション",release_notes:"リリースノート",version_x:"バージョン {version}",report_issue:"問題を報告",share_feedback:"フィードバックを共有",get_help:"サポート",join_discord:"Discord チャンネルに参加",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:"更新日時"},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:"グローバルアセット",creating_entries_disabled_by_admin:"このコレクションへの新しいエントリーの作成は、管理者によって無効化されています。",creating_entries_disabled_by_limit:"このコレクションは最大の {limit} エントリーに達したため、新しいエントリーを作成することはできません。",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} を差し替え",tap_to_browse:"タップして参照…",drop_file_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_files_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_image_file_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",drop_image_files_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",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} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください",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_widget_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:{select_many:"少なくとも {min} 個の項目を選択してください。",select_one:"少なくとも {min} 個の項目を選択してください。",add_many:"少なくとも {min} 個の項目を追加してください。",add_one:"少なくとも {min} 個の項目を追加してください。"},range_overflow:{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:{email:"正しいメールアドレスを入力してください。",url:"正しい URL を入力してください。"}},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:{initial:"{service} へログインすると、ストレージ上のメディアをエントリー項目へ挿入できます。",requested:"ログイン中…",error:"ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。"}},config:{error:{no_secure_context:"Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。",fetch_failed:"設定ファイルを読み込めませんでした。",fetch_failed_not_ok:"HTTP レスポンスがステータス {status} で返されました。",parse_failed:"設定ファイルを解析できませんでした。",parse_failed_invalid_object:"設定ファイルが有効な JavaScript オブジェクトではありません。",parse_failed_unsupported_type:"設定ファイルが有効なファイル形式ではありません。サポートされているのは YAML と JSON のみです。",no_collection:"設定ファイル内でコレクションが定義されていません。",missing_backend:"設定ファイル内でバックエンドが定義されていません。",missing_backend_name:"設定ファイル内でバックエンド名が定義されていません。",unsupported_backend:"設定されている「{name}」バックエンドは非対応です。",missing_repository:"設定ファイル内でレポジトリが定義されていません。",invalid_repository:"設定されているレポジトリが正しくありません。この設定は「owner/repo」形式でなければなりません。",oauth_implicit_flow:"設定されている認証方式 (暗黙的フロー) は非対応です。",oauth_no_app_id:"設定ファイル内で OAuth アプリケーション ID が定義されていません。",missing_media_folder:"設定ファイル内でメディアフォルダーが定義されていません。",invalid_media_folder:"設定されているメディアフォルダーが正しくありません。この設定は文字列でなければなりません。",invalid_public_folder:"設定されているパブリックフォルダーが正しくありません。この設定は文字列でなければなりません。",public_folder_relative_path:"設定されているパブリックフォルダーが正しくありません。この設定は「/」で始まる絶対パスでなければなりません。",public_folder_absolute_url:"パブリックフォルダーオプションの絶対 URL は非対応です。",unexpected:"設定ファイルを検証中に予期せぬ問題が発生しました。",try_again:"問題を解決してから再度お試しください。"}},local_backend:{unsupported_browser:"お使いのブラウザーはローカル開発に対応していません。代わりに Chrome か Edge を使ってください。",disabled:"お使いのブラウザーではローカル開発が無効化されています。<a>有効化する方法はこちら</a>。"},status:{drafts:"下書き",in_review:"レビュー中",ready:"公開可"},categories:"カテゴリ",prefs:{changes:{api_key_saved:"API キーが保存されました。",api_key_removed:"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:"国際化",default_translator:{title:"デフォルト翻訳サービス",select_service:"サービスを選択"},translator:{field_label:"{service} キー",description:"<a {homeHref}>{service}</a> にユーザー登録して、<a {apiKeyHref}>発行されたキー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。"}},media:{title:"メディア",stock_photos:{title:"{service} 無料画像素材",field_label:"{service} API キー",description:"<a {homeHref}>{service} API</a> にユーザー登録して、<a {apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。",credit:"写真提供: {service}",providers_disabled:"ストックアセットプロバイダーは管理者によって無効化されています。"}},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 を使用する場合は空欄のままで構いません。",field_label:"デプロイフック URL",url_saved:"ウェブフック URL が保存されました。",url_removed:"ウェブフック URL が削除されました。"}}},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"}}},Symbol.toStringTag,{value:"Module"})),_ee=()=>{Object.entries(Object.assign({"/src/lib/locales/en.js":vee,"/src/lib/locales/ja.js":bee})).forEach(([e,{strings:n}])=>{const r=dn(e).filename;vm(r,n)}),ZS({fallbackLocale:"en",initialLocale:se(dt).locale||(vO()??"").split("-")[0]||"en"})};var yee=U('<link rel="icon"/>'),wee=U('<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>',1),xee=U('<div role="none" class="outer svelte-7y4msj"><!> <!> <div role="none" class="main svelte-7y4msj"><!> <!></div></div>'),kee=U('<!> <div role="status" class="svelte-7y4msj"> </div>',1);const See={hash:"svelte-7y4msj",code:`@view-transition {navigation:auto;
670
670
  }
671
671
  @keyframes svelte-7y4msj-slide-out-to-left {
672
672
  from {
@@ -721,7 +721,7 @@ Minimum version required to store current data is: `+P+`.
721
721
  animation: none;}
722
722
  }html:active-view-transition-type(unknown)::view-transition-old(page-root) {
723
723
  animation: none;}html:active-view-transition-type(unknown)::view-transition-new(page-root) {
724
- animation: none;}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 See(t,e){le(e,!0),ke(t,kee);const n=()=>V(Et,"$siteConfig",c),r=()=>V(If,"$isLoading",c),i=()=>V(bn,"$backend",c),o=()=>V(Hn,"$user",c),s=()=>V(oc,"$dataLoaded",c),a=()=>V(ci,"$announcedPageStatus",c),[c,u]=me();Ft(()=>{bee()}),Ft(()=>{tj(e.config)}),Ft(()=>{m6()}),Ft(()=>{const d=document.querySelector("#nc-root");d&&window.getComputedStyle(d).position==="static"&&window.requestAnimationFrame(()=>{const{top:f,height:h}=d.getBoundingClientRect();h?d.style.position="relative":(d.style.position="fixed",d.style.inset=`${f}px 0 0 0`)})}),Px(d=>{var f=yee(),h=j(M(f),4);{var p=m=>{const v=_(()=>n().logo_url);var b=_ee();Z((y,w)=>{Ee(b,"href",y),Ee(b,"type",w)},[()=>l(v)||`data:image/svg+xml;base64,${btoa(ZC)}`,()=>l(v)?Jo.getType(l(v))??void 0:"image/svg+xml"]),$(m,b)};q(h,m=>{n()&&m(p)})}var g=j(h,2);q(g,m=>{}),$(d,f)}),jr("mousedown",Ig.body,d=>{if(d.target?.matches("a")){const f=d.target,{origin:h,pathname:p}=f;(h!==window.location.origin||p!==window.location.pathname)&&(f.target="_blank")}}),a6(t,{children:(d,f)=>{var h=xee(),p=M(h);{var g=b=>{var y=wee(),w=z(y);H6(w,{});var E=j(w,2);{var k=A=>{U6(A,{})};q(E,A=>{i()&&A(k)})}var S=j(E,2),C=z(S);z6(C,{});var x=j(C,2);{var T=A=>{gee(A,{})};q(x,A=>{o()&&s()&&A(T)})}$(b,y)};q(p,b=>{r()||b(g)})}var m=j(p,2),v=z(m);Z(()=>te(v,a())),$(d,h)},$$slots:{default:!0}}),ce(),u()}const Eee=["getBackend","getCustomFormats","getCustomFormatsExtensions","getCustomFormatsFormatters","getEditorComponents","getEventListeners","getLocale","getMediaLibrary","getPreviewStyles","getPreviewTemplate","getRemarkPlugins","getWidget","getWidgetValueSerializer","getWidgets","invokeEvent","moment","registerBackend","registerLocale","registerMediaLibrary","registerRemarkPlugin","registerWidgetValueSerializer","removeEventListener","resolveWidget"],$ee="https://github.com/sveltia/sveltia-cms#compatibility";let NP=!1;const lg=async({config:t}={})=>{NP||(NP=!0,document.readyState==="loading"&&!document.querySelector("#nc-root")&&await new Promise(e=>{window.addEventListener("DOMContentLoaded",()=>e(void 0),{once:!0})}),xf(See,{target:document.querySelector("#nc-root")??document.body,props:{config:t}}))},Tee=(t,e,{fromFile:n,toFile:r})=>{Rh.set(t,{extension:e,parser:n,formatter:r})},Cee=t=>{gh.set(t.id,t)},Aee=t=>{console.error("Event hooks are not yet supported in Sveltia CMS.")},Pee=(t,{raw:e=!1}={})=>{if(typeof t!="string")throw new TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a string");if(typeof e!="boolean")throw new TypeError("The `raw` option for `CMS.registerPreviewStyle()` must be a boolean");const n=e?URL.createObjectURL(new Blob([t],{type:"text/css"})):t;Qg.add(n)},Lee=(t,e)=>{console.error("Custom preview templates are not yet supported in Sveltia CMS.")},Nee=(t,e,n,r)=>{console.error("Custom widgets are not yet supported in Sveltia CMS.")},IP=new Proxy({init:lg,registerCustomFormat:Tee,registerEditorComponent:Cee,registerEventListener:Aee,registerPreviewStyle:Pee,registerPreviewTemplate:Lee,registerWidget:Nee},{get:(t,e)=>{if(e in t)return t[e];let n="";if(Eee.includes(e)&&(n="CMS.%s() is not supported in Sveltia CMS, and we don’t have any plans to implement it."),n)return console.error(`${n} See %s for compatibility information.`,e,$ee),()=>{}}});return window.CMS=IP,window.initCMS=lg,window.createClass=lL,window.createElement=Rw.createElement,window.h=Rw.createElement,!window.CMS_MANUAL_INIT&&(document.currentScript||document.querySelector('script[src$="/sveltia-cms.js"]'))&&lg(),sf.default=IP,sf.init=lg,Object.defineProperties(sf,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),sf})({});
724
+ animation: none;}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 Eee(t,e){le(e,!0),ke(t,See);const n=()=>V(Et,"$siteConfig",c),r=()=>V(If,"$isLoading",c),i=()=>V(bn,"$backend",c),o=()=>V(Hn,"$user",c),s=()=>V(oc,"$dataLoaded",c),a=()=>V(ci,"$announcedPageStatus",c),[c,u]=me();Ft(()=>{_ee()}),Ft(()=>{tj(e.config)}),Ft(()=>{m6()}),Ft(()=>{const d=document.querySelector("#nc-root");d&&window.getComputedStyle(d).position==="static"&&window.requestAnimationFrame(()=>{const{top:f,height:h}=d.getBoundingClientRect();h?d.style.position="relative":(d.style.position="fixed",d.style.inset=`${f}px 0 0 0`)})}),Px(d=>{var f=wee(),h=j(M(f),4);{var p=m=>{const v=_(()=>n().logo_url);var b=yee();Z((y,w)=>{Ee(b,"href",y),Ee(b,"type",w)},[()=>l(v)||`data:image/svg+xml;base64,${btoa(ZC)}`,()=>l(v)?Jo.getType(l(v))??void 0:"image/svg+xml"]),$(m,b)};q(h,m=>{n()&&m(p)})}var g=j(h,2);q(g,m=>{}),$(d,f)}),jr("mousedown",Ig.body,d=>{if(d.target?.matches("a")){const f=d.target,{origin:h,pathname:p}=f;(h!==window.location.origin||p!==window.location.pathname)&&(f.target="_blank")}}),a6(t,{children:(d,f)=>{var h=kee(),p=M(h);{var g=b=>{var y=xee(),w=z(y);H6(w,{});var E=j(w,2);{var k=A=>{U6(A,{})};q(E,A=>{i()&&A(k)})}var S=j(E,2),C=z(S);z6(C,{});var x=j(C,2);{var T=A=>{mee(A,{})};q(x,A=>{o()&&s()&&A(T)})}$(b,y)};q(p,b=>{r()||b(g)})}var m=j(p,2),v=z(m);Z(()=>te(v,a())),$(d,h)},$$slots:{default:!0}}),ce(),u()}const $ee=["getBackend","getCustomFormats","getCustomFormatsExtensions","getCustomFormatsFormatters","getEditorComponents","getEventListeners","getLocale","getMediaLibrary","getPreviewStyles","getPreviewTemplate","getRemarkPlugins","getWidget","getWidgetValueSerializer","getWidgets","invokeEvent","moment","registerBackend","registerLocale","registerMediaLibrary","registerRemarkPlugin","registerWidgetValueSerializer","removeEventListener","resolveWidget"],Tee="https://github.com/sveltia/sveltia-cms#compatibility";let NP=!1;const lg=async({config:t}={})=>{NP||(NP=!0,document.readyState==="loading"&&!document.querySelector("#nc-root")&&await new Promise(e=>{window.addEventListener("DOMContentLoaded",()=>e(void 0),{once:!0})}),xf(Eee,{target:document.querySelector("#nc-root")??document.body,props:{config:t}}))},Cee=(t,e,{fromFile:n,toFile:r})=>{Rh.set(t,{extension:e,parser:n,formatter:r})},Aee=t=>{gh.set(t.id,t)},Pee=t=>{console.error("Event hooks are not yet supported in Sveltia CMS.")},Lee=(t,{raw:e=!1}={})=>{if(typeof t!="string")throw new TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a string");if(typeof e!="boolean")throw new TypeError("The `raw` option for `CMS.registerPreviewStyle()` must be a boolean");const n=e?URL.createObjectURL(new Blob([t],{type:"text/css"})):t;Qg.add(n)},Nee=(t,e)=>{console.error("Custom preview templates are not yet supported in Sveltia CMS.")},Iee=(t,e,n,r)=>{console.error("Custom widgets are not yet supported in Sveltia CMS.")},IP=new Proxy({init:lg,registerCustomFormat:Cee,registerEditorComponent:Aee,registerEventListener:Pee,registerPreviewStyle:Lee,registerPreviewTemplate:Nee,registerWidget:Iee},{get:(t,e)=>{if(e in t)return t[e];let n="";if($ee.includes(e)&&(n="CMS.%s() is not supported in Sveltia CMS, and we don’t have any plans to implement it."),n)return console.error(`${n} See %s for compatibility information.`,e,Tee),()=>{}}});return window.CMS=IP,window.initCMS=lg,window.createClass=lL,window.createElement=Rw.createElement,window.h=Rw.createElement,!window.CMS_MANUAL_INIT&&(document.currentScript||document.querySelector('script[src$="/sveltia-cms.js"]'))&&lg(),sf.default=IP,sf.init=lg,Object.defineProperties(sf,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),sf})({});
725
725
  /**
726
726
  * @license React
727
727
  * react.production.js