@sveltia/cms 0.91.6 → 0.91.7

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.
@@ -142,12 +142,12 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
142
142
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
143
143
  `,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 l=n.sep[a];switch(l.type){case"newline":s.push(a);break;case"space":break;case"comment":l.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(Sa(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(HE(n.key)&&!Sa(n.sep,"newline")){const s=au(n.start),a=n.key,l=n.sep;l.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:l}]})}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(Sa(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=au(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]}):Sa(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&&!Sa(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||Sa(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=Bp(r),o=au(i);GE(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(`
144
144
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
145
- `,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=Bp(e),r=au(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=Bp(e),r=au(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 WE(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new BE||null,prettyErrors:e}}function Oz(t,e={}){const{lineCounter:n,prettyErrors:r}=WE(e),i=new hb(n?.addNewLine),o=new cb(e),s=Array.from(o.compose(i.parse(t)));if(r&&n)for(const a of s)a.errors.forEach(Rp(t,n)),a.warnings.forEach(Rp(t,n));return s.length>0?s:Object.assign([],{empty:!0},o.streamInfo())}function KE(t,e={}){const{lineCounter:n,prettyErrors:r}=WE(e),i=new hb(n?.addNewLine),o=new cb(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 wl(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Rp(t,n)),s.warnings.forEach(Rp(t,n))),s}function Nz(t,e,n){let r;typeof e=="function"?r=e:n===void 0&&e&&typeof e=="object"&&(n=e);const i=KE(t,n);if(!i)return null;if(i.warnings.forEach(o=>iE(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 Lz(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 vl(t)&&!r?t.toString(n):new iu(t,r,n).toString(n)}const ef=Object.freeze(Object.defineProperty({__proto__:null,Alias:vp,CST:$z,Composer:cb,Document:iu,Lexer:jE,LineCounter:BE,Pair:Kr,Parser:hb,Scalar:Tt,Schema:Lp,YAMLError:rb,YAMLMap:Li,YAMLParseError:wl,YAMLSeq:ka,YAMLWarning:CE,isAlias:xa,isCollection:qn,isDocument:vl,isMap:Kc,isNode:Hn,isPair:On,isScalar:mn,isSeq:Vc,parse:Nz,parseAllDocuments:Oz,parseDocument:KE,stringify:Lz,visit:_l,visitAsync:mp},Symbol.toStringTag,{value:"Module"})),Ea=nt([]),kl=Bn([Ea],([t],e)=>{e(t.find(({collectionName:n,internalPath:r})=>n===void 0&&r!==void 0))}),po=nt(),qp=Bn([po,kl],([t,e])=>t?.internalPath!==void 0?t:e),go=({collectionName:t,fileName:e,keyPath:n})=>ie(Ea).find(r=>r.collectionName===t&&r.fileName===e&&r.keyPath===n),Hp=(t,{matchSubFolders:e=!0}={})=>{const{filename:n}=gn(t);return n.startsWith("+")?[]:ie(Ea).filter(({internalPath:r,entryRelative:i})=>r===void 0?!1:i?t.startsWith(`${r}/`):new RegExp(`^${r.replace(/{{.+?}}/g,".+?")}${r&&e?"\\b":"$"}`).test(gn(t).dirname??"")).sort((r,i)=>(i.internalPath??"").localeCompare(r.internalPath??"")??0)},pb=t=>!!t&&!t.entryRelative&&!t.hasTemplateTags;class Ho{#t;#n="";#e="";#o={};#s=[];constructor(e,n,{keyPath:r,autoIncrement:i,indexes:o=[]}={}){this.#t=void 0,this.#n=e,this.#e=n,this.#o={keyPath:r,autoIncrement:i},this.#s=o}async#c(e){return new Promise(n=>{const r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{const i=r.result,o=this.#e,s=i.objectStoreNames.contains(o)?i.transaction(o,"readwrite").objectStore(o):i.createObjectStore(o,this.#o);this.#s.forEach(({name:a,keyPath:l,options:u})=>{s.indexNames.contains(a)||s.createIndex(a,l,u)})},r.onsuccess=()=>{n(r.result)}})}async#a(){let e=!1,n=await this.#c();const{version:r,objectStoreNames:i}=n,o=this.#e;if(i.contains(o)){const s=n.transaction(o).objectStore(o);e=this.#s.some(({name:a})=>!s.indexNames.contains(a))}else e=!0;return e&&(n.close(),n=await this.#c(r+1)),n.onversionchange=()=>{n.close(),this.#t=void 0},n}async#r(e){this.#t??=await this.#a();const n=this.#t,r=this.#e,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.#r(r=>r.put(n,e))}async put(e){return this.#r(n=>n.put(e))}async saveEntries(e){return this.#r(n=>{e.forEach(([r,i])=>{n.put(i,r)})})}async get(e){return this.#r(n=>n.get(e))}async keys(){return this.#r(e=>e.getAllKeys())}async values(){return this.#r(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.#r(a=>{const l=(n?a.index(n):a).openCursor(r,i),u=[];l.onsuccess=()=>{const d=l.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.#r(n=>n.delete(e))}async deleteEntries(e){await this.#r(n=>{e.forEach(r=>{n.delete(r)})})}async clear(){await this.#r(e=>e.clear())}}class bi{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 VE=t=>Array.isArray(t)&&t.every(e=>hn(e)),tf=t=>[...new Set(t)];var gb,YE;function Rz(){return YE||(YE=1,gb=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}),gb}var Fz=Rz();const vn=jc(Fz);function ZE(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function JE(t){return t}function As(t,e){e=e||{};const n=e.delimiter||".",r=e.maxDepth,i=e.transformKey||JE,o={};function s(a,l,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=ZE(f),m=p==="[object Object]"||p==="[object Array]",v=l?l+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 lu(t,e){e=e||{};const n=e.delimiter||".",r=e.overwrite||!1,i=e.transformKey||JE,o={};if(ZE(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 l(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):l(f,d,As(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]=lu(t[d],e)}),o}const wt=(t=0)=>new Promise(e=>{globalThis.setTimeout(()=>{e(void 0)},t)}),Dz=["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"],XE="https://api.pexels.com/v1",Mz={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}$/,search:async(t,{apiKey:e})=>{const n={Authorization:e},[r]=ie(nn).toLowerCase().split("-");let i=[];if(t)for(let o=1;o<=2;o+=1){const s=new URLSearchParams({query:t,locale:Dz.find(d=>d.split("-")[0]===r)||"en-US",page:o,per_page:80}),a=await fetch(`${XE}/search?${s.toString()}`,{headers:n});if(!a.ok)return Promise.reject();const{photos:l,next_page:u}=await a.json();if(i.push(...l),!u)break;await wt(50)}else{const o=new URLSearchParams({per_page:80}),s=await fetch(`${XE}/curated?${o.toString()}`,{headers:n});if(!s.ok)return Promise.reject();i=(await s.json()).photos}return i.map(({id:o,url:s,alt:a,src:{large2x:l,medium:u},photographer:d})=>({id:String(o),description:s.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g," ")??a,previewURL:u,downloadURL:l,fileName:`pexels-${d.split(/\s+/).join("-").toLowerCase()}-${o}.jpg`,kind:"image",credit:`<a href="${s}">Photo by ${d} on Pexels</a>`}))}},zz=["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"],Uz="https://pixabay.com/api",jz={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}$/,search:async(t,{apiKey:e})=>{const[n]=ie(nn).toLowerCase().split("-"),r=new URLSearchParams({key:e,q:t,lang:zz.includes(n)?n:"en",image_type:"photo",min_width:1280,editors_choice:!t,safesearch:!0,per_page:150}),i=await fetch(`${Uz}/?${r.toString()}`);return i.ok?(await i.json()).hits.map(({id:s,webformatURL:a,previewURL:l,largeImageURL:u,imageWidth:d,imageHeight:f,pageURL:h,tags:p,user:g})=>({id:String(s),description:p,previewURL:a.replace("_640.",d>f?"_180.":"_340."),downloadURL:u,fileName:l.split("/").pop().replace("_150.","_1280."),kind:"image",credit:`<a href="${h}">Photo by ${g} on Pixabay`})):Promise.reject()}},Bz=["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"],QE="https://api.unsplash.com",eT="utm_source=sveltia-cms&utm_medium=referral",qz={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,}$/,search:async(t,{apiKey:e})=>{const n={Authorization:`Client-ID ${e}`},[r]=ie(nn).toLowerCase().split("-");let i=[];if(t)for(let o=1;o<=5;o+=1){const s=new URLSearchParams({query:t,lang:Bz.includes(r)?r:"en",page:o,per_page:30}),a=await fetch(`${QE}/search/photos?${s.toString()}`,{headers:n});if(!a.ok)return Promise.reject();const{results:l,total_pages:u}=await a.json();if(i.push(...l),u===o)break;await wt(50)}else{const o=new URLSearchParams({per_page:30}),s=await fetch(`${QE}/photos?${o.toString()}`,{headers:n});if(!s.ok)return Promise.reject();i=await s.json()}return i.map(({id:o,description:s,alt_description:a,urls:{regular:l,thumb:u},user:{username:d,name:f}})=>({id:String(o),description:[s,a].filter(Boolean).join(" — "),previewURL:u,downloadURL:l,fileName:`${f.split(/\s+/).join("-").toLowerCase()}-${o}-unsplash.jpg`,kind:"image",credit:`Photo by <a href="https://unsplash.com/@${d}?${eT}">${f}</a> on <a href="https://unsplash.com/?${eT}">Unsplash</a>`}))}},Gp={},Wp={pexels:Mz,pixabay:jz,unsplash:qz},tT=["avif","gif","jpeg","png","webp"],Hz=tT.map(t=>`image/${t}`),mb=/\b(?:avif|gif|jpe?g|png|webp)$/i,Gz=["image/svg+xml"],Wz=/\b(?:svg)$/i,Go=[...Hz,...Gz],nT=["webp"],Mpe="modulepreload",zpe=function(t){return"/"+t},Upe={},rT=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)})},vb="0.91.6",Kz={"@jsquash/webp":"^1.5.0","@lexical/markdown":"^0.33.1","@sindresorhus/transliterate":"^1.6.0","@sveltia/ui":"^0.27.6","@sveltia/utils":"^0.8.0",deepmerge:"^4.3.1",exifreader:"^4.31.1","fast-deep-equal":"^3.1.3",flat:"^6.0.1","isomorphic-dompurify":"^2.26.0",leaflet:"^1.9.4",lexical:"^0.33.1",marked:"^16.1.1","marked-bidi":"^1.0.13",mime:"^4.0.7",moment:"^2.30.1","parse-entities":"^4.0.2","pdfjs-dist":"^5.3.93",qrcode:"^1.5.4","sanitize-filename":"^1.6.3","smol-toml":"^1.4.1",svgo:"^4.0.0","terra-draw":"^1.9.1","terra-draw-leaflet-adapter":"^1.0.3",turndown:"^7.2.0",yaml:"^2.8.0"},_b=t=>{const e=`https://unpkg.com/${t}`,n=Kz[t]?.replace(/^\D/,"");return n?`${e}@${n}`:e},cu=async(t,e)=>rT(()=>import(`${_b(t)}/${e}`),void 0),bb={},Vz=async t=>{if(t in bb)return bb[t];const e=`image/${t}`,n=new OffscreenCanvas(1,1);n.getContext("2d");const i=(await n.convertToBlob({type:e})).type===e;return bb[t]=i,i},iT=async(t,{format:e="webp",quality:n=85}={})=>{const r=`image/${e}`;if(!await Vz(e)&&nT.includes(e)){const o=t.getContext("2d").getImageData(0,0,t.width,t.height);try{const s=(await cu(`@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})},Yz=({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 l=1,u=0,d=0;if(i==="scale-down"){if(a)return o;i="contain"}return i==="contain"&&(s?(n>r?(l=n/t,u=n):(l=r/t,u=r),d=e*l):(n>r?(l=r/e,d=r):(l=n/e,d=n),u=t*l)),{scale:l,width:u,height:d}},oT=(t,e,n)=>{const{scale:r,width:i,height:o}=Yz(e,n);return t.width=i,t.height=o,{scale:r,width:i,height:o}},Zz=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})},Jz=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)})},Xz=async t=>t.type.startsWith("video/")?Jz({blob:t}):Zz({blob:t}),yb=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{let s,a=0,l=0;try{s=await createImageBitmap(t),{width:a,height:l}=s}catch{({source:s,naturalWidth:a,naturalHeight:l}=await Xz(t))}r??=a,i??=l;const u=new OffscreenCanvas(512,512),d=u.getContext("2d");return oT(u,{width:a,height:l},{fit:o,width:r,height:i}),d.drawImage(s,0,0,u.width,u.height),s instanceof HTMLVideoElement&&document.body.removeChild(s),iT(u,{format:e,quality:n})},Qz=async t=>{const e=await t.text();try{const{optimize:n}=await cu("svgo","dist/svgo.browser.js"),{data:r}=n(e);return new Blob([r],{type:t.type})}catch{}return t},sT=({libraryName:t="default",fieldConfig:e}={})=>{const n=ie(Nt);return e?.media_libraries?.[t]??(e?.media_library?.name===t||n?.media_library?.name===t?e?.media_library:void 0)??n?.media_libraries?.[t]??(n?.media_library?.name===t?n.media_library:void 0)??{}},nf=({fieldConfig:t}={})=>{const e=sT({fieldConfig:t}),{max_file_size:n,slugify_filename:r,transformations:i}=typeof e=="boolean"?{}:e?.config??{};return{config:{max_file_size:typeof n=="number"&&Number.isInteger(n)?n:1/0,slugify_filename:typeof r=="boolean"?r:!1,transformations:hn(i)?i:void 0}}},aT=({fieldConfig:t}={})=>{const e=sT({libraryName:"stock_assets",fieldConfig:t}),n=Object.keys(Wp),{providers:r}=e;return{providers:Array.isArray(r)?r:n}},lT=async(t,e)=>{const[n,r]=t.type.split("/");if(n==="image"&&r!=="svg+xml"){let i;if(r in e?i=e[r]:"raster_image"in e&&tT.includes(r)&&(i=e.raster_image),i){const{format:o,quality:s,width:a,height:l}=i,u=o&&nT.includes(o)?o:"webp",d=await yb(t,{format:u,quality:s&&Number.isSafeInteger(s)?s:85,width:a&&Number.isSafeInteger(a)?a:void 0,height:l&&Number.isSafeInteger(l)?l:void 0}),f=d.type===`image/${u}`?mb.test(t.name)?t.name.replace(mb,u):t.name.concat(u):t.name;return new File([d],f,{type:d.type})}}return n==="image"&&r==="svg+xml"&&e.svg?.optimize?new File([await Qz(t)],t.name,{type:t.type}):t},Sl=({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]))};function eU(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const tU=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ő","O"],["Ø","O"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ő","o"],["ø","o"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["ẞ","SS"],["à","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"],["إ","i"],["ئ","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"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["ու","u"],["ՈՒ","U"],["Ու","U"],["փ","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"],["𝓀","h"],["𝓁","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"],["𝕆","N"],["𝕊","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)"],["ⓒ","(b)"],["ⓓ","(c)"],["ⓔ","(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"]],nU=(t,e)=>{for(const[n,r]of e)t=t.replace(new RegExp(eU(n),"g"),r);return t};function rU(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={customReplacements:[],...e};const n=new Map([...tU,...e.customReplacements]);return t=t.normalize(),t=nU(t,n),t=t.normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize(),t}const cT=(t,{fallback:e=!0}={})=>{const{slug:{encoding:n="unicode",clean_accents:r=!1,sanitize_replacement:i="-"}={}}=ie(Nt)??{};let o=t;if(r&&(o=rU(o).normalize("NFD").replace(/\p{Diacritic}/gu,"")),n==="ascii"?o=o.replaceAll(/[^\w-~]/g," "):o=o.replaceAll(/[\p{Z}\p{C}!"#$&'()*+,/:;<=>?@[\]^`{|}]/gu," "),o=o.toLocaleLowerCase().trim().replaceAll(/\s+/g,i),i){const s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`${s}+`,"g");o=o.replace(a,i);const l=new RegExp(`^${s}+|${s}+$`,"g");o=o.replace(l,"")}return!o&&e?vi("short"):o};var uT;function We(){return uT.apply(null,arguments)}function iU(t){uT=t}function mo(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function El(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function rn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function wb(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(rn(t,e))return!1;return!0}function yi(t){return t===void 0}function $s(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function rf(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function dT(t,e){var n=[],r,i=t.length;for(r=0;r<i;++r)n.push(e(t[r],r));return n}function Ta(t,e){for(var n in e)rn(e,n)&&(t[n]=e[n]);return rn(e,"toString")&&(t.toString=e.toString),rn(e,"valueOf")&&(t.valueOf=e.valueOf),t}function Wo(t,e,n,r){return MT(t,e,n,r,!0).utc()}function oU(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Pt(t){return t._pf==null&&(t._pf=oU()),t._pf}var xb;Array.prototype.some?xb=Array.prototype.some:xb=function(t){var e=Object(this),n=e.length>>>0,r;for(r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};function kb(t){var e=null,n=!1,r=t._d&&!isNaN(t._d.getTime());if(r&&(e=Pt(t),n=xb.call(e.parsedDateParts,function(i){return i!=null}),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(r=r&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=r;else return r;return t._isValid}function Kp(t){var e=Wo(NaN);return t!=null?Ta(Pt(e),t):Pt(e).userInvalidated=!0,e}var fT=We.momentProperties=[],Sb=!1;function Eb(t,e){var n,r,i,o=fT.length;if(yi(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),yi(e._i)||(t._i=e._i),yi(e._f)||(t._f=e._f),yi(e._l)||(t._l=e._l),yi(e._strict)||(t._strict=e._strict),yi(e._tzm)||(t._tzm=e._tzm),yi(e._isUTC)||(t._isUTC=e._isUTC),yi(e._offset)||(t._offset=e._offset),yi(e._pf)||(t._pf=Pt(e)),yi(e._locale)||(t._locale=e._locale),o>0)for(n=0;n<o;n++)r=fT[n],i=e[r],yi(i)||(t[r]=i);return t}function of(t){Eb(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Sb===!1&&(Sb=!0,We.updateOffset(this),Sb=!1)}function vo(t){return t instanceof of||t!=null&&t._isAMomentObject!=null}function hT(t){We.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function Xi(t,e){var n=!0;return Ta(function(){if(We.deprecationHandler!=null&&We.deprecationHandler(null,t),n){var r=[],i,o,s,a=arguments.length;for(o=0;o<a;o++){if(i="",typeof arguments[o]=="object"){i+=`
145
+ `,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=Bp(e),r=au(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=Bp(e),r=au(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 WE(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new BE||null,prettyErrors:e}}function Oz(t,e={}){const{lineCounter:n,prettyErrors:r}=WE(e),i=new hb(n?.addNewLine),o=new cb(e),s=Array.from(o.compose(i.parse(t)));if(r&&n)for(const a of s)a.errors.forEach(Rp(t,n)),a.warnings.forEach(Rp(t,n));return s.length>0?s:Object.assign([],{empty:!0},o.streamInfo())}function KE(t,e={}){const{lineCounter:n,prettyErrors:r}=WE(e),i=new hb(n?.addNewLine),o=new cb(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 wl(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Rp(t,n)),s.warnings.forEach(Rp(t,n))),s}function Nz(t,e,n){let r;typeof e=="function"?r=e:n===void 0&&e&&typeof e=="object"&&(n=e);const i=KE(t,n);if(!i)return null;if(i.warnings.forEach(o=>iE(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 Lz(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 vl(t)&&!r?t.toString(n):new iu(t,r,n).toString(n)}const ef=Object.freeze(Object.defineProperty({__proto__:null,Alias:vp,CST:$z,Composer:cb,Document:iu,Lexer:jE,LineCounter:BE,Pair:Kr,Parser:hb,Scalar:Tt,Schema:Lp,YAMLError:rb,YAMLMap:Li,YAMLParseError:wl,YAMLSeq:ka,YAMLWarning:CE,isAlias:xa,isCollection:qn,isDocument:vl,isMap:Kc,isNode:Hn,isPair:On,isScalar:mn,isSeq:Vc,parse:Nz,parseAllDocuments:Oz,parseDocument:KE,stringify:Lz,visit:_l,visitAsync:mp},Symbol.toStringTag,{value:"Module"})),Ea=nt([]),kl=Bn([Ea],([t],e)=>{e(t.find(({collectionName:n,internalPath:r})=>n===void 0&&r!==void 0))}),po=nt(),qp=Bn([po,kl],([t,e])=>t?.internalPath!==void 0?t:e),go=({collectionName:t,fileName:e,keyPath:n})=>ie(Ea).find(r=>r.collectionName===t&&r.fileName===e&&r.keyPath===n),Hp=(t,{matchSubFolders:e=!0}={})=>{const{filename:n}=gn(t);return n.startsWith("+")?[]:ie(Ea).filter(({internalPath:r,entryRelative:i})=>r===void 0?!1:i?t.startsWith(`${r}/`):new RegExp(`^${r.replace(/{{.+?}}/g,".+?")}${r&&e?"\\b":"$"}`).test(gn(t).dirname??"")).sort((r,i)=>(i.internalPath??"").localeCompare(r.internalPath??"")??0)},pb=t=>!!t&&!t.entryRelative&&!t.hasTemplateTags;class Ho{#t;#n="";#e="";#o={};#s=[];constructor(e,n,{keyPath:r,autoIncrement:i,indexes:o=[]}={}){this.#t=void 0,this.#n=e,this.#e=n,this.#o={keyPath:r,autoIncrement:i},this.#s=o}async#c(e){return new Promise(n=>{const r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{const i=r.result,o=this.#e,s=i.objectStoreNames.contains(o)?i.transaction(o,"readwrite").objectStore(o):i.createObjectStore(o,this.#o);this.#s.forEach(({name:a,keyPath:l,options:u})=>{s.indexNames.contains(a)||s.createIndex(a,l,u)})},r.onsuccess=()=>{n(r.result)}})}async#a(){let e=!1,n=await this.#c();const{version:r,objectStoreNames:i}=n,o=this.#e;if(i.contains(o)){const s=n.transaction(o).objectStore(o);e=this.#s.some(({name:a})=>!s.indexNames.contains(a))}else e=!0;return e&&(n.close(),n=await this.#c(r+1)),n.onversionchange=()=>{n.close(),this.#t=void 0},n}async#r(e){this.#t??=await this.#a();const n=this.#t,r=this.#e,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.#r(r=>r.put(n,e))}async put(e){return this.#r(n=>n.put(e))}async saveEntries(e){return this.#r(n=>{e.forEach(([r,i])=>{n.put(i,r)})})}async get(e){return this.#r(n=>n.get(e))}async keys(){return this.#r(e=>e.getAllKeys())}async values(){return this.#r(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.#r(a=>{const l=(n?a.index(n):a).openCursor(r,i),u=[];l.onsuccess=()=>{const d=l.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.#r(n=>n.delete(e))}async deleteEntries(e){await this.#r(n=>{e.forEach(r=>{n.delete(r)})})}async clear(){await this.#r(e=>e.clear())}}class bi{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 VE=t=>Array.isArray(t)&&t.every(e=>hn(e)),tf=t=>[...new Set(t)];var gb,YE;function Rz(){return YE||(YE=1,gb=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}),gb}var Fz=Rz();const vn=jc(Fz);function ZE(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function JE(t){return t}function As(t,e){e=e||{};const n=e.delimiter||".",r=e.maxDepth,i=e.transformKey||JE,o={};function s(a,l,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=ZE(f),m=p==="[object Object]"||p==="[object Array]",v=l?l+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 lu(t,e){e=e||{};const n=e.delimiter||".",r=e.overwrite||!1,i=e.transformKey||JE,o={};if(ZE(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 l(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):l(f,d,As(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]=lu(t[d],e)}),o}const wt=(t=0)=>new Promise(e=>{globalThis.setTimeout(()=>{e(void 0)},t)}),Dz=["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"],XE="https://api.pexels.com/v1",Mz={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}$/,search:async(t,{apiKey:e})=>{const n={Authorization:e},[r]=ie(nn).toLowerCase().split("-");let i=[];if(t)for(let o=1;o<=2;o+=1){const s=new URLSearchParams({query:t,locale:Dz.find(d=>d.split("-")[0]===r)||"en-US",page:o,per_page:80}),a=await fetch(`${XE}/search?${s.toString()}`,{headers:n});if(!a.ok)return Promise.reject();const{photos:l,next_page:u}=await a.json();if(i.push(...l),!u)break;await wt(50)}else{const o=new URLSearchParams({per_page:80}),s=await fetch(`${XE}/curated?${o.toString()}`,{headers:n});if(!s.ok)return Promise.reject();i=(await s.json()).photos}return i.map(({id:o,url:s,alt:a,src:{large2x:l,medium:u},photographer:d})=>({id:String(o),description:s.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g," ")??a,previewURL:u,downloadURL:l,fileName:`pexels-${d.split(/\s+/).join("-").toLowerCase()}-${o}.jpg`,kind:"image",credit:`<a href="${s}">Photo by ${d} on Pexels</a>`}))}},zz=["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"],Uz="https://pixabay.com/api",jz={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}$/,search:async(t,{apiKey:e})=>{const[n]=ie(nn).toLowerCase().split("-"),r=new URLSearchParams({key:e,q:t,lang:zz.includes(n)?n:"en",image_type:"photo",min_width:1280,editors_choice:!t,safesearch:!0,per_page:150}),i=await fetch(`${Uz}/?${r.toString()}`);return i.ok?(await i.json()).hits.map(({id:s,webformatURL:a,previewURL:l,largeImageURL:u,imageWidth:d,imageHeight:f,pageURL:h,tags:p,user:g})=>({id:String(s),description:p,previewURL:a.replace("_640.",d>f?"_180.":"_340."),downloadURL:u,fileName:l.split("/").pop().replace("_150.","_1280."),kind:"image",credit:`<a href="${h}">Photo by ${g} on Pixabay`})):Promise.reject()}},Bz=["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"],QE="https://api.unsplash.com",eT="utm_source=sveltia-cms&utm_medium=referral",qz={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,}$/,search:async(t,{apiKey:e})=>{const n={Authorization:`Client-ID ${e}`},[r]=ie(nn).toLowerCase().split("-");let i=[];if(t)for(let o=1;o<=5;o+=1){const s=new URLSearchParams({query:t,lang:Bz.includes(r)?r:"en",page:o,per_page:30}),a=await fetch(`${QE}/search/photos?${s.toString()}`,{headers:n});if(!a.ok)return Promise.reject();const{results:l,total_pages:u}=await a.json();if(i.push(...l),u===o)break;await wt(50)}else{const o=new URLSearchParams({per_page:30}),s=await fetch(`${QE}/photos?${o.toString()}`,{headers:n});if(!s.ok)return Promise.reject();i=await s.json()}return i.map(({id:o,description:s,alt_description:a,urls:{regular:l,thumb:u},user:{username:d,name:f}})=>({id:String(o),description:[s,a].filter(Boolean).join(" — "),previewURL:u,downloadURL:l,fileName:`${f.split(/\s+/).join("-").toLowerCase()}-${o}-unsplash.jpg`,kind:"image",credit:`Photo by <a href="https://unsplash.com/@${d}?${eT}">${f}</a> on <a href="https://unsplash.com/?${eT}">Unsplash</a>`}))}},Gp={},Wp={pexels:Mz,pixabay:jz,unsplash:qz},tT=["avif","gif","jpeg","png","webp"],Hz=tT.map(t=>`image/${t}`),mb=/\b(?:avif|gif|jpe?g|png|webp)$/i,Gz=["image/svg+xml"],Wz=/\b(?:svg)$/i,Go=[...Hz,...Gz],nT=["webp"],Mpe="modulepreload",zpe=function(t){return"/"+t},Upe={},rT=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)})},vb="0.91.7",Kz={"@jsquash/webp":"^1.5.0","@lexical/markdown":"^0.33.1","@sindresorhus/transliterate":"^1.6.0","@sveltia/ui":"^0.27.6","@sveltia/utils":"^0.8.0",deepmerge:"^4.3.1",exifreader:"^4.31.1","fast-deep-equal":"^3.1.3",flat:"^6.0.1","isomorphic-dompurify":"^2.26.0",leaflet:"^1.9.4",lexical:"^0.33.1",marked:"^16.1.1","marked-bidi":"^1.0.13",mime:"^4.0.7",moment:"^2.30.1","parse-entities":"^4.0.2","pdfjs-dist":"^5.3.93",qrcode:"^1.5.4","sanitize-filename":"^1.6.3","smol-toml":"^1.4.1",svgo:"^4.0.0","terra-draw":"^1.9.1","terra-draw-leaflet-adapter":"^1.0.3",turndown:"^7.2.0",yaml:"^2.8.0"},_b=t=>{const e=`https://unpkg.com/${t}`,n=Kz[t]?.replace(/^\D/,"");return n?`${e}@${n}`:e},cu=async(t,e)=>rT(()=>import(`${_b(t)}/${e}`),void 0),bb={},Vz=async t=>{if(t in bb)return bb[t];const e=`image/${t}`,n=new OffscreenCanvas(1,1);n.getContext("2d");const i=(await n.convertToBlob({type:e})).type===e;return bb[t]=i,i},iT=async(t,{format:e="webp",quality:n=85}={})=>{const r=`image/${e}`;if(!await Vz(e)&&nT.includes(e)){const o=t.getContext("2d").getImageData(0,0,t.width,t.height);try{const s=(await cu(`@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})},Yz=({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 l=1,u=0,d=0;if(i==="scale-down"){if(a)return o;i="contain"}return i==="contain"&&(s?(n>r?(l=n/t,u=n):(l=r/t,u=r),d=e*l):(n>r?(l=r/e,d=r):(l=n/e,d=n),u=t*l)),{scale:l,width:u,height:d}},oT=(t,e,n)=>{const{scale:r,width:i,height:o}=Yz(e,n);return t.width=i,t.height=o,{scale:r,width:i,height:o}},Zz=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})},Jz=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)})},Xz=async t=>t.type.startsWith("video/")?Jz({blob:t}):Zz({blob:t}),yb=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{let s,a=0,l=0;try{s=await createImageBitmap(t),{width:a,height:l}=s}catch{({source:s,naturalWidth:a,naturalHeight:l}=await Xz(t))}r??=a,i??=l;const u=new OffscreenCanvas(512,512),d=u.getContext("2d");return oT(u,{width:a,height:l},{fit:o,width:r,height:i}),d.drawImage(s,0,0,u.width,u.height),s instanceof HTMLVideoElement&&document.body.removeChild(s),iT(u,{format:e,quality:n})},Qz=async t=>{const e=await t.text();try{const{optimize:n}=await cu("svgo","dist/svgo.browser.js"),{data:r}=n(e);return new Blob([r],{type:t.type})}catch{}return t},sT=({libraryName:t="default",fieldConfig:e}={})=>{const n=ie(Nt);return e?.media_libraries?.[t]??(e?.media_library?.name===t||n?.media_library?.name===t?e?.media_library:void 0)??n?.media_libraries?.[t]??(n?.media_library?.name===t?n.media_library:void 0)??{}},nf=({fieldConfig:t}={})=>{const e=sT({fieldConfig:t}),{max_file_size:n,slugify_filename:r,transformations:i}=typeof e=="boolean"?{}:e?.config??{};return{config:{max_file_size:typeof n=="number"&&Number.isInteger(n)?n:1/0,slugify_filename:typeof r=="boolean"?r:!1,transformations:hn(i)?i:void 0}}},aT=({fieldConfig:t}={})=>{const e=sT({libraryName:"stock_assets",fieldConfig:t}),n=Object.keys(Wp),{providers:r}=e;return{providers:Array.isArray(r)?r:n}},lT=async(t,e)=>{const[n,r]=t.type.split("/");if(n==="image"&&r!=="svg+xml"){let i;if(r in e?i=e[r]:"raster_image"in e&&tT.includes(r)&&(i=e.raster_image),i){const{format:o,quality:s,width:a,height:l}=i,u=o&&nT.includes(o)?o:"webp",d=await yb(t,{format:u,quality:s&&Number.isSafeInteger(s)?s:85,width:a&&Number.isSafeInteger(a)?a:void 0,height:l&&Number.isSafeInteger(l)?l:void 0}),f=d.type===`image/${u}`?mb.test(t.name)?t.name.replace(mb,u):t.name.concat(u):t.name;return new File([d],f,{type:d.type})}}return n==="image"&&r==="svg+xml"&&e.svg?.optimize?new File([await Qz(t)],t.name,{type:t.type}):t},Sl=({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]))};function eU(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const tU=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ő","O"],["Ø","O"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ő","o"],["ø","o"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["ẞ","SS"],["à","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"],["إ","i"],["ئ","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"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["ու","u"],["ՈՒ","U"],["Ու","U"],["փ","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"],["𝓀","h"],["𝓁","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"],["𝕆","N"],["𝕊","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)"],["ⓒ","(b)"],["ⓓ","(c)"],["ⓔ","(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"]],nU=(t,e)=>{for(const[n,r]of e)t=t.replace(new RegExp(eU(n),"g"),r);return t};function rU(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={customReplacements:[],...e};const n=new Map([...tU,...e.customReplacements]);return t=t.normalize(),t=nU(t,n),t=t.normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize(),t}const cT=(t,{fallback:e=!0}={})=>{const{slug:{encoding:n="unicode",clean_accents:r=!1,sanitize_replacement:i="-"}={}}=ie(Nt)??{};let o=t;if(r&&(o=rU(o).normalize("NFD").replace(/\p{Diacritic}/gu,"")),n==="ascii"?o=o.replaceAll(/[^\w-~]/g," "):o=o.replaceAll(/[\p{Z}\p{C}!"#$&'()*+,/:;<=>?@[\]^`{|}]/gu," "),o=o.toLocaleLowerCase().trim().replaceAll(/\s+/g,i),i){const s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`${s}+`,"g");o=o.replace(a,i);const l=new RegExp(`^${s}+|${s}+$`,"g");o=o.replace(l,"")}return!o&&e?vi("short"):o};var uT;function We(){return uT.apply(null,arguments)}function iU(t){uT=t}function mo(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function El(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function rn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function wb(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(rn(t,e))return!1;return!0}function yi(t){return t===void 0}function $s(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function rf(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function dT(t,e){var n=[],r,i=t.length;for(r=0;r<i;++r)n.push(e(t[r],r));return n}function Ta(t,e){for(var n in e)rn(e,n)&&(t[n]=e[n]);return rn(e,"toString")&&(t.toString=e.toString),rn(e,"valueOf")&&(t.valueOf=e.valueOf),t}function Wo(t,e,n,r){return MT(t,e,n,r,!0).utc()}function oU(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Pt(t){return t._pf==null&&(t._pf=oU()),t._pf}var xb;Array.prototype.some?xb=Array.prototype.some:xb=function(t){var e=Object(this),n=e.length>>>0,r;for(r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};function kb(t){var e=null,n=!1,r=t._d&&!isNaN(t._d.getTime());if(r&&(e=Pt(t),n=xb.call(e.parsedDateParts,function(i){return i!=null}),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n),t._strict&&(r=r&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=r;else return r;return t._isValid}function Kp(t){var e=Wo(NaN);return t!=null?Ta(Pt(e),t):Pt(e).userInvalidated=!0,e}var fT=We.momentProperties=[],Sb=!1;function Eb(t,e){var n,r,i,o=fT.length;if(yi(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),yi(e._i)||(t._i=e._i),yi(e._f)||(t._f=e._f),yi(e._l)||(t._l=e._l),yi(e._strict)||(t._strict=e._strict),yi(e._tzm)||(t._tzm=e._tzm),yi(e._isUTC)||(t._isUTC=e._isUTC),yi(e._offset)||(t._offset=e._offset),yi(e._pf)||(t._pf=Pt(e)),yi(e._locale)||(t._locale=e._locale),o>0)for(n=0;n<o;n++)r=fT[n],i=e[r],yi(i)||(t[r]=i);return t}function of(t){Eb(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Sb===!1&&(Sb=!0,We.updateOffset(this),Sb=!1)}function vo(t){return t instanceof of||t!=null&&t._isAMomentObject!=null}function hT(t){We.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function Xi(t,e){var n=!0;return Ta(function(){if(We.deprecationHandler!=null&&We.deprecationHandler(null,t),n){var r=[],i,o,s,a=arguments.length;for(o=0;o<a;o++){if(i="",typeof arguments[o]=="object"){i+=`
146
146
  [`+o+"] ";for(s in arguments[0])rn(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}hT(t+`
147
147
  Arguments: `+Array.prototype.slice.call(r).join("")+`
148
148
  `+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var pT={};function gT(t,e){We.deprecationHandler!=null&&We.deprecationHandler(t,e),pT[t]||(hT(e),pT[t]=!0)}We.suppressDeprecationWarnings=!1,We.deprecationHandler=null;function Ko(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function sU(t){var e,n;for(n in t)rn(t,n)&&(e=t[n],Ko(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Tb(t,e){var n=Ta({},t),r;for(r in e)rn(e,r)&&(El(t[r])&&El(e[r])?(n[r]={},Ta(n[r],t[r]),Ta(n[r],e[r])):e[r]!=null?n[r]=e[r]:delete n[r]);for(r in t)rn(t,r)&&!rn(e,r)&&El(t[r])&&(n[r]=Ta({},n[r]));return n}function Cb(t){t!=null&&this.set(t)}var Ab;Object.keys?Ab=Object.keys:Ab=function(t){var e,n=[];for(e in t)rn(t,e)&&n.push(e);return n};var aU={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function lU(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return Ko(r)?r.call(e,n):r}function Vo(t,e,n){var r=""+Math.abs(t),i=e-r.length,o=t>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var $b=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Vp=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ib={},uu={};function ft(t,e,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),t&&(uu[t]=i),e&&(uu[e[0]]=function(){return Vo(i.apply(this,arguments),e[1],e[2])}),n&&(uu[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function cU(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function uU(t){var e=t.match($b),n,r;for(n=0,r=e.length;n<r;n++)uu[e[n]]?e[n]=uu[e[n]]:e[n]=cU(e[n]);return function(i){var o="",s;for(s=0;s<r;s++)o+=Ko(e[s])?e[s].call(i,t):e[s];return o}}function Yp(t,e){return t.isValid()?(e=mT(e,t.localeData()),Ib[e]=Ib[e]||uU(e),Ib[e](t)):t.localeData().invalidDate()}function mT(t,e){var n=5;function r(i){return e.longDateFormat(i)||i}for(Vp.lastIndex=0;n>=0&&Vp.test(t);)t=t.replace(Vp,r),Vp.lastIndex=0,n-=1;return t}var dU={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"};function fU(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match($b).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var hU="Invalid date";function pU(){return this._invalidDate}var gU="%d",mU=/\d{1,2}/;function vU(t){return this._ordinal.replace("%d",t)}var _U={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function bU(t,e,n,r){var i=this._relativeTime[n];return Ko(i)?i(t,e,n,r):i.replace(/%d/i,t)}function yU(t,e){var n=this._relativeTime[t>0?"future":"past"];return Ko(n)?n(e):n.replace(/%s/i,e)}var vT={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Qi(t){return typeof t=="string"?vT[t]||vT[t.toLowerCase()]:void 0}function Pb(t){var e={},n,r;for(r in t)rn(t,r)&&(n=Qi(r),n&&(e[n]=t[r]));return e}var wU={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function xU(t){var e=[],n;for(n in t)rn(t,n)&&e.push({unit:n,priority:wU[n]});return e.sort(function(r,i){return r.priority-i.priority}),e}var _T=/\d/,Ri=/\d\d/,bT=/\d{3}/,Ob=/\d{4}/,Zp=/[+-]?\d{6}/,En=/\d\d?/,yT=/\d\d\d\d?/,wT=/\d\d\d\d\d\d?/,Jp=/\d{1,3}/,Nb=/\d{1,4}/,Xp=/[+-]?\d{1,6}/,du=/\d+/,Qp=/[+-]?\d+/,kU=/Z|[+-]\d\d:?\d\d/gi,eg=/Z|[+-]\d\d(?::?\d\d)?/gi,SU=/[+-]?\d+(\.\d{1,3})?/,sf=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,fu=/^[1-9]\d?/,Lb=/^([1-9]\d|\d)/,tg;tg={};function rt(t,e,n){tg[t]=Ko(e)?e:function(r,i){return r&&n?n:e}}function EU(t,e){return rn(tg,t)?tg[t](e._strict,e._locale):new RegExp(TU(t))}function TU(t){return Is(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,r,i,o){return n||r||i||o}))}function Is(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function eo(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Bt(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=eo(e)),n}var Rb={};function pn(t,e){var n,r=e,i;for(typeof t=="string"&&(t=[t]),$s(e)&&(r=function(o,s){s[e]=Bt(o)}),i=t.length,n=0;n<i;n++)Rb[t[n]]=r}function af(t,e){pn(t,function(n,r,i,o){i._w=i._w||{},e(n,i._w,i,o)})}function CU(t,e,n){e!=null&&rn(Rb,t)&&Rb[t](e,n._a,n,t)}function ng(t){return t%4===0&&t%100!==0||t%400===0}var Vr=0,Ps=1,Yo=2,vr=3,_o=4,Os=5,Tl=6,AU=7,$U=8;ft("Y",0,0,function(){var t=this.year();return t<=9999?Vo(t,4):"+"+t}),ft(0,["YY",2],0,function(){return this.year()%100}),ft(0,["YYYY",4],0,"year"),ft(0,["YYYYY",5],0,"year"),ft(0,["YYYYYY",6,!0],0,"year"),rt("Y",Qp),rt("YY",En,Ri),rt("YYYY",Nb,Ob),rt("YYYYY",Xp,Zp),rt("YYYYYY",Xp,Zp),pn(["YYYYY","YYYYYY"],Vr),pn("YYYY",function(t,e){e[Vr]=t.length===2?We.parseTwoDigitYear(t):Bt(t)}),pn("YY",function(t,e){e[Vr]=We.parseTwoDigitYear(t)}),pn("Y",function(t,e){e[Vr]=parseInt(t,10)});function lf(t){return ng(t)?366:365}We.parseTwoDigitYear=function(t){return Bt(t)+(Bt(t)>68?1900:2e3)};var xT=hu("FullYear",!0);function IU(){return ng(this.year())}function hu(t,e){return function(n){return n!=null?(kT(this,t,n),We.updateOffset(this,e),this):cf(this,t)}}function cf(t,e){if(!t.isValid())return NaN;var n=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function kT(t,e,n){var r,i,o,s,a;if(!(!t.isValid()||isNaN(n))){switch(r=t._d,i=t._isUTC,e){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,s=t.month(),a=t.date(),a=a===29&&s===1&&!ng(o)?28:a,i?r.setUTCFullYear(o,s,a):r.setFullYear(o,s,a)}}function PU(t){return t=Qi(t),Ko(this[t])?this[t]():this}function OU(t,e){if(typeof t=="object"){t=Pb(t);var n=xU(t),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](t[n[r].unit])}else if(t=Qi(t),Ko(this[t]))return this[t](e);return this}function NU(t,e){return(t%e+e)%e}var er;Array.prototype.indexOf?er=Array.prototype.indexOf:er=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function Fb(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=NU(e,12);return t+=(e-n)/12,n===1?ng(t)?29:28:31-n%7%2}ft("M",["MM",2],"Mo",function(){return this.month()+1}),ft("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),ft("MMMM",0,0,function(t){return this.localeData().months(this,t)}),rt("M",En,fu),rt("MM",En,Ri),rt("MMM",function(t,e){return e.monthsShortRegex(t)}),rt("MMMM",function(t,e){return e.monthsRegex(t)}),pn(["M","MM"],function(t,e){e[Ps]=Bt(t)-1}),pn(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);i!=null?e[Ps]=i:Pt(n).invalidMonth=t});var LU="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ST="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ET=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,RU=sf,FU=sf;function DU(t,e){return t?mo(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ET).test(e)?"format":"standalone"][t.month()]:mo(this._months)?this._months:this._months.standalone}function MU(t,e){return t?mo(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ET.test(e)?"format":"standalone"][t.month()]:mo(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function zU(t,e,n){var r,i,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=Wo([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?e==="MMM"?(i=er.call(this._shortMonthsParse,s),i!==-1?i:null):(i=er.call(this._longMonthsParse,s),i!==-1?i:null):e==="MMM"?(i=er.call(this._shortMonthsParse,s),i!==-1?i:(i=er.call(this._longMonthsParse,s),i!==-1?i:null)):(i=er.call(this._longMonthsParse,s),i!==-1?i:(i=er.call(this._shortMonthsParse,s),i!==-1?i:null))}function UU(t,e,n){var r,i,o;if(this._monthsParseExact)return zU.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Wo([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(n&&e==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function TT(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=Bt(e);else if(e=t.localeData().monthsParse(e),!$s(e))return t}var n=e,r=t.date();return r=r<29?r:Math.min(r,Fb(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,r):t._d.setMonth(n,r),t}function CT(t){return t!=null?(TT(this,t),We.updateOffset(this,!0),this):cf(this,"Month")}function jU(){return Fb(this.year(),this.month())}function BU(t){return this._monthsParseExact?(rn(this,"_monthsRegex")||AT.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(rn(this,"_monthsShortRegex")||(this._monthsShortRegex=RU),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function qU(t){return this._monthsParseExact?(rn(this,"_monthsRegex")||AT.call(this),t?this._monthsStrictRegex:this._monthsRegex):(rn(this,"_monthsRegex")||(this._monthsRegex=FU),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function AT(){function t(l,u){return u.length-l.length}var e=[],n=[],r=[],i,o,s,a;for(i=0;i<12;i++)o=Wo([2e3,i]),s=Is(this.monthsShort(o,"")),a=Is(this.months(o,"")),e.push(s),n.push(a),r.push(a),r.push(s);e.sort(t),n.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function HU(t,e,n,r,i,o,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,r,i,o,s),a}function uf(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function rg(t,e,n){var r=7+e-n,i=(7+uf(t,0,r).getUTCDay()-e)%7;return-i+r-1}function $T(t,e,n,r,i){var o=(7+n-r)%7,s=rg(t,r,i),a=1+7*(e-1)+o+s,l,u;return a<=0?(l=t-1,u=lf(l)+a):a>lf(t)?(l=t+1,u=a-lf(t)):(l=t,u=a),{year:l,dayOfYear:u}}function df(t,e,n){var r=rg(t.year(),e,n),i=Math.floor((t.dayOfYear()-r-1)/7)+1,o,s;return i<1?(s=t.year()-1,o=i+Ns(s,e,n)):i>Ns(t.year(),e,n)?(o=i-Ns(t.year(),e,n),s=t.year()+1):(s=t.year(),o=i),{week:o,year:s}}function Ns(t,e,n){var r=rg(t,e,n),i=rg(t+1,e,n);return(lf(t)-r+i)/7}ft("w",["ww",2],"wo","week"),ft("W",["WW",2],"Wo","isoWeek"),rt("w",En,fu),rt("ww",En,Ri),rt("W",En,fu),rt("WW",En,Ri),af(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=Bt(t)});function GU(t){return df(t,this._week.dow,this._week.doy).week}var WU={dow:0,doy:6};function KU(){return this._week.dow}function VU(){return this._week.doy}function YU(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function ZU(t){var e=df(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}ft("d",0,"do","day"),ft("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),ft("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),ft("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),ft("e",0,0,"weekday"),ft("E",0,0,"isoWeekday"),rt("d",En),rt("e",En),rt("E",En),rt("dd",function(t,e){return e.weekdaysMinRegex(t)}),rt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),rt("dddd",function(t,e){return e.weekdaysRegex(t)}),af(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);i!=null?e.d=i:Pt(n).invalidWeekday=t}),af(["d","e","E"],function(t,e,n,r){e[r]=Bt(t)});function JU(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function XU(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Db(t,e){return t.slice(e,7).concat(t.slice(0,e))}var QU="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),IT="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),e4="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),t4=sf,n4=sf,r4=sf;function i4(t,e){var n=mo(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?Db(n,this._week.dow):t?n[t.day()]:n}function o4(t){return t===!0?Db(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function s4(t){return t===!0?Db(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function a4(t,e,n){var r,i,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Wo([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?e==="dddd"?(i=er.call(this._weekdaysParse,s),i!==-1?i:null):e==="ddd"?(i=er.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=er.call(this._minWeekdaysParse,s),i!==-1?i:null):e==="dddd"?(i=er.call(this._weekdaysParse,s),i!==-1||(i=er.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=er.call(this._minWeekdaysParse,s),i!==-1?i:null)):e==="ddd"?(i=er.call(this._shortWeekdaysParse,s),i!==-1||(i=er.call(this._weekdaysParse,s),i!==-1)?i:(i=er.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=er.call(this._minWeekdaysParse,s),i!==-1||(i=er.call(this._weekdaysParse,s),i!==-1)?i:(i=er.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function l4(t,e,n){var r,i,o;if(this._weekdaysParseExact)return a4.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Wo([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function c4(t){if(!this.isValid())return t!=null?this:NaN;var e=cf(this,"Day");return t!=null?(t=JU(t,this.localeData()),this.add(t-e,"d")):e}function u4(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function d4(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=XU(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function f4(t){return this._weekdaysParseExact?(rn(this,"_weekdaysRegex")||Mb.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(rn(this,"_weekdaysRegex")||(this._weekdaysRegex=t4),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function h4(t){return this._weekdaysParseExact?(rn(this,"_weekdaysRegex")||Mb.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(rn(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=n4),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function p4(t){return this._weekdaysParseExact?(rn(this,"_weekdaysRegex")||Mb.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(rn(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=r4),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Mb(){function t(d,f){return f.length-d.length}var e=[],n=[],r=[],i=[],o,s,a,l,u;for(o=0;o<7;o++)s=Wo([2e3,1]).day(o),a=Is(this.weekdaysMin(s,"")),l=Is(this.weekdaysShort(s,"")),u=Is(this.weekdays(s,"")),e.push(a),n.push(l),r.push(u),i.push(a),i.push(l),i.push(u);e.sort(t),n.sort(t),r.sort(t),i.sort(t),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function zb(){return this.hours()%12||12}function g4(){return this.hours()||24}ft("H",["HH",2],0,"hour"),ft("h",["hh",2],0,zb),ft("k",["kk",2],0,g4),ft("hmm",0,0,function(){return""+zb.apply(this)+Vo(this.minutes(),2)}),ft("hmmss",0,0,function(){return""+zb.apply(this)+Vo(this.minutes(),2)+Vo(this.seconds(),2)}),ft("Hmm",0,0,function(){return""+this.hours()+Vo(this.minutes(),2)}),ft("Hmmss",0,0,function(){return""+this.hours()+Vo(this.minutes(),2)+Vo(this.seconds(),2)});function PT(t,e){ft(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}PT("a",!0),PT("A",!1);function OT(t,e){return e._meridiemParse}rt("a",OT),rt("A",OT),rt("H",En,Lb),rt("h",En,fu),rt("k",En,fu),rt("HH",En,Ri),rt("hh",En,Ri),rt("kk",En,Ri),rt("hmm",yT),rt("hmmss",wT),rt("Hmm",yT),rt("Hmmss",wT),pn(["H","HH"],vr),pn(["k","kk"],function(t,e,n){var r=Bt(t);e[vr]=r===24?0:r}),pn(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),pn(["h","hh"],function(t,e,n){e[vr]=Bt(t),Pt(n).bigHour=!0}),pn("hmm",function(t,e,n){var r=t.length-2;e[vr]=Bt(t.substr(0,r)),e[_o]=Bt(t.substr(r)),Pt(n).bigHour=!0}),pn("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[vr]=Bt(t.substr(0,r)),e[_o]=Bt(t.substr(r,2)),e[Os]=Bt(t.substr(i)),Pt(n).bigHour=!0}),pn("Hmm",function(t,e,n){var r=t.length-2;e[vr]=Bt(t.substr(0,r)),e[_o]=Bt(t.substr(r))}),pn("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[vr]=Bt(t.substr(0,r)),e[_o]=Bt(t.substr(r,2)),e[Os]=Bt(t.substr(i))});function m4(t){return(t+"").toLowerCase().charAt(0)==="p"}var v4=/[ap]\.?m?\.?/i,_4=hu("Hours",!0);function b4(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var NT={calendar:aU,longDateFormat:dU,invalidDate:hU,ordinal:gU,dayOfMonthOrdinalParse:mU,relativeTime:_U,months:LU,monthsShort:ST,week:WU,weekdays:QU,weekdaysMin:e4,weekdaysShort:IT,meridiemParse:v4},Nn={},ff={},hf;function y4(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function LT(t){return t&&t.toLowerCase().replace("_","-")}function w4(t){for(var e=0,n,r,i,o;e<t.length;){for(o=LT(t[e]).split("-"),n=o.length,r=LT(t[e+1]),r=r?r.split("-"):null;n>0;){if(i=ig(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&y4(o,r)>=n-1)break;n--}e++}return hf}function x4(t){return!!(t&&t.match("^[^/\\\\]*$"))}function ig(t){var e=null,n;if(Nn[t]===void 0&&typeof module<"u"&&module&&module.exports&&x4(t))try{e=hf._abbr,n=require,n("./locale/"+t),Ca(e)}catch{Nn[t]=null}return Nn[t]}function Ca(t,e){var n;return t&&(yi(e)?n=Ls(t):n=Ub(t,e),n?hf=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),hf._abbr}function Ub(t,e){if(e!==null){var n,r=NT;if(e.abbr=t,Nn[t]!=null)gT("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Nn[t]._config;else if(e.parentLocale!=null)if(Nn[e.parentLocale]!=null)r=Nn[e.parentLocale]._config;else if(n=ig(e.parentLocale),n!=null)r=n._config;else return ff[e.parentLocale]||(ff[e.parentLocale]=[]),ff[e.parentLocale].push({name:t,config:e}),null;return Nn[t]=new Cb(Tb(r,e)),ff[t]&&ff[t].forEach(function(i){Ub(i.name,i.config)}),Ca(t),Nn[t]}else return delete Nn[t],null}function k4(t,e){if(e!=null){var n,r,i=NT;Nn[t]!=null&&Nn[t].parentLocale!=null?Nn[t].set(Tb(Nn[t]._config,e)):(r=ig(t),r!=null&&(i=r._config),e=Tb(i,e),r==null&&(e.abbr=t),n=new Cb(e),n.parentLocale=Nn[t],Nn[t]=n),Ca(t)}else Nn[t]!=null&&(Nn[t].parentLocale!=null?(Nn[t]=Nn[t].parentLocale,t===Ca()&&Ca(t)):Nn[t]!=null&&delete Nn[t]);return Nn[t]}function Ls(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return hf;if(!mo(t)){if(e=ig(t),e)return e;t=[t]}return w4(t)}function S4(){return Ab(Nn)}function jb(t){var e,n=t._a;return n&&Pt(t).overflow===-2&&(e=n[Ps]<0||n[Ps]>11?Ps:n[Yo]<1||n[Yo]>Fb(n[Vr],n[Ps])?Yo:n[vr]<0||n[vr]>24||n[vr]===24&&(n[_o]!==0||n[Os]!==0||n[Tl]!==0)?vr:n[_o]<0||n[_o]>59?_o:n[Os]<0||n[Os]>59?Os:n[Tl]<0||n[Tl]>999?Tl:-1,Pt(t)._overflowDayOfYear&&(e<Vr||e>Yo)&&(e=Yo),Pt(t)._overflowWeeks&&e===-1&&(e=AU),Pt(t)._overflowWeekday&&e===-1&&(e=$U),Pt(t).overflow=e),t}var E4=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,T4=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,C4=/Z|[+-]\d\d(?::?\d\d)?/,og=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Bb=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],A4=/^\/?Date\((-?\d+)/i,$4=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,I4={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function RT(t){var e,n,r=t._i,i=E4.exec(r)||T4.exec(r),o,s,a,l,u=og.length,d=Bb.length;if(i){for(Pt(t).iso=!0,e=0,n=u;e<n;e++)if(og[e][1].exec(i[1])){s=og[e][0],o=og[e][2]!==!1;break}if(s==null){t._isValid=!1;return}if(i[3]){for(e=0,n=d;e<n;e++)if(Bb[e][1].exec(i[3])){a=(i[2]||" ")+Bb[e][0];break}if(a==null){t._isValid=!1;return}}if(!o&&a!=null){t._isValid=!1;return}if(i[4])if(C4.exec(i[4]))l="Z";else{t._isValid=!1;return}t._f=s+(a||"")+(l||""),Hb(t)}else t._isValid=!1}function P4(t,e,n,r,i,o){var s=[O4(t),ST.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function O4(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function N4(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function L4(t,e,n){if(t){var r=IT.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return Pt(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function R4(t,e,n){if(t)return I4[t];if(e)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function FT(t){var e=$4.exec(N4(t._i)),n;if(e){if(n=P4(e[4],e[3],e[2],e[5],e[6],e[7]),!L4(e[1],n,t))return;t._a=n,t._tzm=R4(e[8],e[9],e[10]),t._d=uf.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),Pt(t).rfc2822=!0}else t._isValid=!1}function F4(t){var e=A4.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(RT(t),t._isValid===!1)delete t._isValid;else return;if(FT(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:We.createFromInputFallback(t)}We.createFromInputFallback=Xi("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function pu(t,e,n){return t??e??n}function D4(t){var e=new Date(We.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function qb(t){var e,n,r=[],i,o,s;if(!t._d){for(i=D4(t),t._w&&t._a[Yo]==null&&t._a[Ps]==null&&M4(t),t._dayOfYear!=null&&(s=pu(t._a[Vr],i[Vr]),(t._dayOfYear>lf(s)||t._dayOfYear===0)&&(Pt(t)._overflowDayOfYear=!0),n=uf(s,0,t._dayOfYear),t._a[Ps]=n.getUTCMonth(),t._a[Yo]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[vr]===24&&t._a[_o]===0&&t._a[Os]===0&&t._a[Tl]===0&&(t._nextDay=!0,t._a[vr]=0),t._d=(t._useUTC?uf:HU).apply(null,r),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[vr]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==o&&(Pt(t).weekdayMismatch=!0)}}function M4(t){var e,n,r,i,o,s,a,l,u;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(o=1,s=4,n=pu(e.GG,t._a[Vr],df(Tn(),1,4).year),r=pu(e.W,1),i=pu(e.E,1),(i<1||i>7)&&(l=!0)):(o=t._locale._week.dow,s=t._locale._week.doy,u=df(Tn(),o,s),n=pu(e.gg,t._a[Vr],u.year),r=pu(e.w,u.week),e.d!=null?(i=e.d,(i<0||i>6)&&(l=!0)):e.e!=null?(i=e.e+o,(e.e<0||e.e>6)&&(l=!0)):i=o),r<1||r>Ns(n,o,s)?Pt(t)._overflowWeeks=!0:l!=null?Pt(t)._overflowWeekday=!0:(a=$T(n,r,i,o,s),t._a[Vr]=a.year,t._dayOfYear=a.dayOfYear)}We.ISO_8601=function(){},We.RFC_2822=function(){};function Hb(t){if(t._f===We.ISO_8601){RT(t);return}if(t._f===We.RFC_2822){FT(t);return}t._a=[],Pt(t).empty=!0;var e=""+t._i,n,r,i,o,s,a=e.length,l=0,u,d;for(i=mT(t._f,t._locale).match($b)||[],d=i.length,n=0;n<d;n++)o=i[n],r=(e.match(EU(o,t))||[])[0],r&&(s=e.substr(0,e.indexOf(r)),s.length>0&&Pt(t).unusedInput.push(s),e=e.slice(e.indexOf(r)+r.length),l+=r.length),uu[o]?(r?Pt(t).empty=!1:Pt(t).unusedTokens.push(o),CU(o,r,t)):t._strict&&!r&&Pt(t).unusedTokens.push(o);Pt(t).charsLeftOver=a-l,e.length>0&&Pt(t).unusedInput.push(e),t._a[vr]<=12&&Pt(t).bigHour===!0&&t._a[vr]>0&&(Pt(t).bigHour=void 0),Pt(t).parsedDateParts=t._a.slice(0),Pt(t).meridiem=t._meridiem,t._a[vr]=z4(t._locale,t._a[vr],t._meridiem),u=Pt(t).era,u!==null&&(t._a[Vr]=t._locale.erasConvertYear(u,t._a[Vr])),qb(t),jb(t)}function z4(t,e,n){var r;return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(r=t.isPM(n),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function U4(t){var e,n,r,i,o,s,a=!1,l=t._f.length;if(l===0){Pt(t).invalidFormat=!0,t._d=new Date(NaN);return}for(i=0;i<l;i++)o=0,s=!1,e=Eb({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[i],Hb(e),kb(e)&&(s=!0),o+=Pt(e).charsLeftOver,o+=Pt(e).unusedTokens.length*10,Pt(e).score=o,a?o<r&&(r=o,n=e):(r==null||o<r||s)&&(r=o,n=e,s&&(a=!0));Ta(t,n||e)}function j4(t){if(!t._d){var e=Pb(t._i),n=e.day===void 0?e.date:e.day;t._a=dT([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),qb(t)}}function B4(t){var e=new of(jb(DT(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function DT(t){var e=t._i,n=t._f;return t._locale=t._locale||Ls(t._l),e===null||n===void 0&&e===""?Kp({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),vo(e)?new of(jb(e)):(rf(e)?t._d=e:mo(n)?U4(t):n?Hb(t):q4(t),kb(t)||(t._d=null),t))}function q4(t){var e=t._i;yi(e)?t._d=new Date(We.now()):rf(e)?t._d=new Date(e.valueOf()):typeof e=="string"?F4(t):mo(e)?(t._a=dT(e.slice(0),function(n){return parseInt(n,10)}),qb(t)):El(e)?j4(t):$s(e)?t._d=new Date(e):We.createFromInputFallback(t)}function MT(t,e,n,r,i){var o={};return(e===!0||e===!1)&&(r=e,e=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(El(t)&&wb(t)||mo(t)&&t.length===0)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,B4(o)}function Tn(t,e,n,r){return MT(t,e,n,r,!1)}var H4=Xi("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Tn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:Kp()}),G4=Xi("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Tn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:Kp()});function zT(t,e){var n,r;if(e.length===1&&mo(e[0])&&(e=e[0]),!e.length)return Tn();for(n=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](n))&&(n=e[r]);return n}function W4(){var t=[].slice.call(arguments,0);return zT("isBefore",t)}function K4(){var t=[].slice.call(arguments,0);return zT("isAfter",t)}var V4=function(){return Date.now?Date.now():+new Date},pf=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Y4(t){var e,n=!1,r,i=pf.length;for(e in t)if(rn(t,e)&&!(er.call(pf,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(r=0;r<i;++r)if(t[pf[r]]){if(n)return!1;parseFloat(t[pf[r]])!==Bt(t[pf[r]])&&(n=!0)}return!0}function Z4(){return this._isValid}function J4(){return bo(NaN)}function sg(t){var e=Pb(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=Y4(e),this._milliseconds=+d+u*1e3+l*6e4+a*1e3*60*60,this._days=+s+o*7,this._months=+i+r*3+n*12,this._data={},this._locale=Ls(),this._bubble()}function ag(t){return t instanceof sg}function Gb(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function X4(t,e,n){var r=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),o=0,s;for(s=0;s<r;s++)Bt(t[s])!==Bt(e[s])&&o++;return o+i}function UT(t,e){ft(t,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Vo(~~(n/60),2)+e+Vo(~~n%60,2)})}UT("Z",":"),UT("ZZ",""),rt("Z",eg),rt("ZZ",eg),pn(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Wb(eg,t)});var Q4=/([\+\-]|\d\d)/gi;function Wb(t,e){var n=(e||"").match(t),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(Q4)||["-",0,0],o=+(i[1]*60)+Bt(i[2]),o===0?0:i[0]==="+"?o:-o)}function Kb(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(vo(t)||rf(t)?t.valueOf():Tn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),We.updateOffset(n,!1),n):Tn(t).local()}function Vb(t){return-Math.round(t._d.getTimezoneOffset())}We.updateOffset=function(){};function ej(t,e,n){var r=this._offset||0,i;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=Wb(eg,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(i=Vb(this)),this._offset=t,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?HT(this,bo(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,We.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Vb(this)}function tj(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function nj(t){return this.utcOffset(0,t)}function rj(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Vb(this),"m")),this}function ij(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=Wb(kU,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function oj(t){return this.isValid()?(t=t?Tn(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function sj(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function aj(){if(!yi(this._isDSTShifted))return this._isDSTShifted;var t={},e;return Eb(t,this),t=DT(t),t._a?(e=t._isUTC?Wo(t._a):Tn(t._a),this._isDSTShifted=this.isValid()&&X4(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function lj(){return this.isValid()?!this._isUTC:!1}function cj(){return this.isValid()?this._isUTC:!1}function jT(){return this.isValid()?this._isUTC&&this._offset===0:!1}var uj=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,dj=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function bo(t,e){var n=t,r=null,i,o,s;return ag(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:$s(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(r=uj.exec(t))?(i=r[1]==="-"?-1:1,n={y:0,d:Bt(r[Yo])*i,h:Bt(r[vr])*i,m:Bt(r[_o])*i,s:Bt(r[Os])*i,ms:Bt(Gb(r[Tl]*1e3))*i}):(r=dj.exec(t))?(i=r[1]==="-"?-1:1,n={y:Cl(r[2],i),M:Cl(r[3],i),w:Cl(r[4],i),d:Cl(r[5],i),h:Cl(r[6],i),m:Cl(r[7],i),s:Cl(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=fj(Tn(n.from),Tn(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),o=new sg(n),ag(t)&&rn(t,"_locale")&&(o._locale=t._locale),ag(t)&&rn(t,"_isValid")&&(o._isValid=t._isValid),o}bo.fn=sg.prototype,bo.invalid=J4;function Cl(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function BT(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function fj(t,e){var n;return t.isValid()&&e.isValid()?(e=Kb(e,t),t.isBefore(e)?n=BT(t,e):(n=BT(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function qT(t,e){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(gT(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=bo(n,r),HT(this,i,t),this}}function HT(t,e,n,r){var i=e._milliseconds,o=Gb(e._days),s=Gb(e._months);t.isValid()&&(r=r??!0,s&&TT(t,cf(t,"Month")+s*n),o&&kT(t,"Date",cf(t,"Date")+o*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&We.updateOffset(t,o||s))}var hj=qT(1,"add"),pj=qT(-1,"subtract");function GT(t){return typeof t=="string"||t instanceof String}function gj(t){return vo(t)||rf(t)||GT(t)||$s(t)||vj(t)||mj(t)||t===null||t===void 0}function mj(t){var e=El(t)&&!wb(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,s=r.length;for(i=0;i<s;i+=1)o=r[i],n=n||rn(t,o);return e&&n}function vj(t){var e=mo(t),n=!1;return e&&(n=t.filter(function(r){return!$s(r)&&GT(t)}).length===0),e&&n}function _j(t){var e=El(t)&&!wb(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],n=n||rn(t,o);return e&&n}function bj(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function yj(t,e){arguments.length===1&&(arguments[0]?gj(arguments[0])?(t=arguments[0],e=void 0):_j(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Tn(),r=Kb(n,this).startOf("day"),i=We.calendarFormat(this,r)||"sameElse",o=e&&(Ko(e[i])?e[i].call(this,n):e[i]);return this.format(o||this.localeData().calendar(i,this,Tn(n)))}function wj(){return new of(this)}function xj(t,e){var n=vo(t)?t:Tn(t);return this.isValid()&&n.isValid()?(e=Qi(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function kj(t,e){var n=vo(t)?t:Tn(t);return this.isValid()&&n.isValid()?(e=Qi(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function Sj(t,e,n,r){var i=vo(t)?t:Tn(t),o=vo(e)?e:Tn(e);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function Ej(t,e){var n=vo(t)?t:Tn(t),r;return this.isValid()&&n.isValid()?(e=Qi(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function Tj(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Cj(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Aj(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(r=Kb(t,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,e=Qi(e),e){case"year":o=lg(this,r)/12;break;case"month":o=lg(this,r);break;case"quarter":o=lg(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:eo(o)}function lg(t,e){if(t.date()<e.date())return-lg(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,"months"),i,o;return e-r<0?(i=t.clone().add(n-1,"months"),o=(e-r)/(r-i)):(i=t.clone().add(n+1,"months"),o=(e-r)/(i-r)),-(n+o)||0}We.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",We.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function $j(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ij(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?Yp(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ko(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Yp(n,"Z")):Yp(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Pj(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,r,i,o;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=e+'[")]',this.format(n+r+i+o)}function Oj(t){t||(t=this.isUtc()?We.defaultFormatUtc:We.defaultFormat);var e=Yp(this,t);return this.localeData().postformat(e)}function Nj(t,e){return this.isValid()&&(vo(t)&&t.isValid()||Tn(t).isValid())?bo({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Lj(t){return this.from(Tn(),t)}function Rj(t,e){return this.isValid()&&(vo(t)&&t.isValid()||Tn(t).isValid())?bo({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Fj(t){return this.to(Tn(),t)}function WT(t){var e;return t===void 0?this._locale._abbr:(e=Ls(t),e!=null&&(this._locale=e),this)}var KT=Xi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function VT(){return this._locale}var cg=1e3,gu=60*cg,ug=60*gu,YT=(365*400+97)*24*ug;function mu(t,e){return(t%e+e)%e}function ZT(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-YT:new Date(t,e,n).valueOf()}function JT(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-YT:Date.UTC(t,e,n)}function Dj(t){var e,n;if(t=Qi(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?JT:ZT,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=mu(e+(this._isUTC?0:this.utcOffset()*gu),ug);break;case"minute":e=this._d.valueOf(),e-=mu(e,gu);break;case"second":e=this._d.valueOf(),e-=mu(e,cg);break}return this._d.setTime(e),We.updateOffset(this,!0),this}function Mj(t){var e,n;if(t=Qi(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?JT:ZT,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ug-mu(e+(this._isUTC?0:this.utcOffset()*gu),ug)-1;break;case"minute":e=this._d.valueOf(),e+=gu-mu(e,gu)-1;break;case"second":e=this._d.valueOf(),e+=cg-mu(e,cg)-1;break}return this._d.setTime(e),We.updateOffset(this,!0),this}function zj(){return this._d.valueOf()-(this._offset||0)*6e4}function Uj(){return Math.floor(this.valueOf()/1e3)}function jj(){return new Date(this.valueOf())}function Bj(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function qj(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Hj(){return this.isValid()?this.toISOString():null}function Gj(){return kb(this)}function Wj(){return Ta({},Pt(this))}function Kj(){return Pt(this).overflow}function Vj(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ft("N",0,0,"eraAbbr"),ft("NN",0,0,"eraAbbr"),ft("NNN",0,0,"eraAbbr"),ft("NNNN",0,0,"eraName"),ft("NNNNN",0,0,"eraNarrow"),ft("y",["y",1],"yo","eraYear"),ft("y",["yy",2],0,"eraYear"),ft("y",["yyy",3],0,"eraYear"),ft("y",["yyyy",4],0,"eraYear"),rt("N",Yb),rt("NN",Yb),rt("NNN",Yb),rt("NNNN",oB),rt("NNNNN",sB),pn(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?Pt(n).era=i:Pt(n).invalidEra=t}),rt("y",du),rt("yy",du),rt("yyy",du),rt("yyyy",du),rt("yo",aB),pn(["y","yy","yyy","yyyy"],Vr),pn(["yo"],function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Vr]=n._locale.eraYearOrdinalParse(t,i):e[Vr]=parseInt(t,10)});function Yj(t,e){var n,r,i,o=this._eras||Ls("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=We(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=We(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function Zj(t,e,n){var r,i,o=this.eras(),s,a,l;for(t=t.toUpperCase(),r=0,i=o.length;r<i;++r)if(s=o[r].name.toUpperCase(),a=o[r].abbr.toUpperCase(),l=o[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(a===t)return o[r];break;case"NNNN":if(s===t)return o[r];break;case"NNNNN":if(l===t)return o[r];break}else if([s,a,l].indexOf(t)>=0)return o[r]}function Jj(t,e){var n=t.since<=t.until?1:-1;return e===void 0?We(t.since).year():We(t.since).year()+(e-t.offset)*n}function Xj(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].name;return""}function Qj(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].narrow;return""}function eB(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].abbr;return""}function tB(){var t,e,n,r,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(n=i[t].since<=i[t].until?1:-1,r=this.clone().startOf("day").valueOf(),i[t].since<=r&&r<=i[t].until||i[t].until<=r&&r<=i[t].since)return(this.year()-We(i[t].since).year())*n+i[t].offset;return this.year()}function nB(t){return rn(this,"_erasNameRegex")||Zb.call(this),t?this._erasNameRegex:this._erasRegex}function rB(t){return rn(this,"_erasAbbrRegex")||Zb.call(this),t?this._erasAbbrRegex:this._erasRegex}function iB(t){return rn(this,"_erasNarrowRegex")||Zb.call(this),t?this._erasNarrowRegex:this._erasRegex}function Yb(t,e){return e.erasAbbrRegex(t)}function oB(t,e){return e.erasNameRegex(t)}function sB(t,e){return e.erasNarrowRegex(t)}function aB(t,e){return e._eraYearOrdinalRegex||du}function Zb(){var t=[],e=[],n=[],r=[],i,o,s,a,l,u=this.eras();for(i=0,o=u.length;i<o;++i)s=Is(u[i].name),a=Is(u[i].abbr),l=Is(u[i].narrow),e.push(s),t.push(a),n.push(l),r.push(s),r.push(a),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}ft(0,["gg",2],0,function(){return this.weekYear()%100}),ft(0,["GG",2],0,function(){return this.isoWeekYear()%100});function dg(t,e){ft(0,[t,t.length],0,e)}dg("gggg","weekYear"),dg("ggggg","weekYear"),dg("GGGG","isoWeekYear"),dg("GGGGG","isoWeekYear"),rt("G",Qp),rt("g",Qp),rt("GG",En,Ri),rt("gg",En,Ri),rt("GGGG",Nb,Ob),rt("gggg",Nb,Ob),rt("GGGGG",Xp,Zp),rt("ggggg",Xp,Zp),af(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=Bt(t)}),af(["gg","GG"],function(t,e,n,r){e[r]=We.parseTwoDigitYear(t)});function lB(t){return XT.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function cB(t){return XT.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function uB(){return Ns(this.year(),1,4)}function dB(){return Ns(this.isoWeekYear(),1,4)}function fB(){var t=this.localeData()._week;return Ns(this.year(),t.dow,t.doy)}function hB(){var t=this.localeData()._week;return Ns(this.weekYear(),t.dow,t.doy)}function XT(t,e,n,r,i){var o;return t==null?df(this,r,i).year:(o=Ns(t,r,i),e>o&&(e=o),pB.call(this,t,e,n,r,i))}function pB(t,e,n,r,i){var o=$T(t,e,n,r,i),s=uf(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}ft("Q",0,"Qo","quarter"),rt("Q",_T),pn("Q",function(t,e){e[Ps]=(Bt(t)-1)*3});function gB(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}ft("D",["DD",2],"Do","date"),rt("D",En,fu),rt("DD",En,Ri),rt("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),pn(["D","DD"],Yo),pn("Do",function(t,e){e[Yo]=Bt(t.match(En)[0])});var QT=hu("Date",!0);ft("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("DDD",Jp),rt("DDDD",bT),pn(["DDD","DDDD"],function(t,e,n){n._dayOfYear=Bt(t)});function mB(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}ft("m",["mm",2],0,"minute"),rt("m",En,Lb),rt("mm",En,Ri),pn(["m","mm"],_o);var vB=hu("Minutes",!1);ft("s",["ss",2],0,"second"),rt("s",En,Lb),rt("ss",En,Ri),pn(["s","ss"],Os);var _B=hu("Seconds",!1);ft("S",0,0,function(){return~~(this.millisecond()/100)}),ft(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ft(0,["SSS",3],0,"millisecond"),ft(0,["SSSS",4],0,function(){return this.millisecond()*10}),ft(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ft(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ft(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ft(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ft(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),rt("S",Jp,_T),rt("SS",Jp,Ri),rt("SSS",Jp,bT);var Aa,eC;for(Aa="SSSS";Aa.length<=9;Aa+="S")rt(Aa,du);function bB(t,e){e[Tl]=Bt(("0."+t)*1e3)}for(Aa="S";Aa.length<=9;Aa+="S")pn(Aa,bB);eC=hu("Milliseconds",!1),ft("z",0,0,"zoneAbbr"),ft("zz",0,0,"zoneName");function yB(){return this._isUTC?"UTC":""}function wB(){return this._isUTC?"Coordinated Universal Time":""}var je=of.prototype;je.add=hj,je.calendar=yj,je.clone=wj,je.diff=Aj,je.endOf=Mj,je.format=Oj,je.from=Nj,je.fromNow=Lj,je.to=Rj,je.toNow=Fj,je.get=PU,je.invalidAt=Kj,je.isAfter=xj,je.isBefore=kj,je.isBetween=Sj,je.isSame=Ej,je.isSameOrAfter=Tj,je.isSameOrBefore=Cj,je.isValid=Gj,je.lang=KT,je.locale=WT,je.localeData=VT,je.max=G4,je.min=H4,je.parsingFlags=Wj,je.set=OU,je.startOf=Dj,je.subtract=pj,je.toArray=Bj,je.toObject=qj,je.toDate=jj,je.toISOString=Ij,je.inspect=Pj,typeof Symbol<"u"&&Symbol.for!=null&&(je[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),je.toJSON=Hj,je.toString=$j,je.unix=Uj,je.valueOf=zj,je.creationData=Vj,je.eraName=Xj,je.eraNarrow=Qj,je.eraAbbr=eB,je.eraYear=tB,je.year=xT,je.isLeapYear=IU,je.weekYear=lB,je.isoWeekYear=cB,je.quarter=je.quarters=gB,je.month=CT,je.daysInMonth=jU,je.week=je.weeks=YU,je.isoWeek=je.isoWeeks=ZU,je.weeksInYear=fB,je.weeksInWeekYear=hB,je.isoWeeksInYear=uB,je.isoWeeksInISOWeekYear=dB,je.date=QT,je.day=je.days=c4,je.weekday=u4,je.isoWeekday=d4,je.dayOfYear=mB,je.hour=je.hours=_4,je.minute=je.minutes=vB,je.second=je.seconds=_B,je.millisecond=je.milliseconds=eC,je.utcOffset=ej,je.utc=nj,je.local=rj,je.parseZone=ij,je.hasAlignedHourOffset=oj,je.isDST=sj,je.isLocal=lj,je.isUtcOffset=cj,je.isUtc=jT,je.isUTC=jT,je.zoneAbbr=yB,je.zoneName=wB,je.dates=Xi("dates accessor is deprecated. Use date instead.",QT),je.months=Xi("months accessor is deprecated. Use month instead",CT),je.years=Xi("years accessor is deprecated. Use year instead",xT),je.zone=Xi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",tj),je.isDSTShifted=Xi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",aj);function xB(t){return Tn(t*1e3)}function kB(){return Tn.apply(null,arguments).parseZone()}function tC(t){return t}var on=Cb.prototype;on.calendar=lU,on.longDateFormat=fU,on.invalidDate=pU,on.ordinal=vU,on.preparse=tC,on.postformat=tC,on.relativeTime=bU,on.pastFuture=yU,on.set=sU,on.eras=Yj,on.erasParse=Zj,on.erasConvertYear=Jj,on.erasAbbrRegex=rB,on.erasNameRegex=nB,on.erasNarrowRegex=iB,on.months=DU,on.monthsShort=MU,on.monthsParse=UU,on.monthsRegex=qU,on.monthsShortRegex=BU,on.week=GU,on.firstDayOfYear=VU,on.firstDayOfWeek=KU,on.weekdays=i4,on.weekdaysMin=s4,on.weekdaysShort=o4,on.weekdaysParse=l4,on.weekdaysRegex=f4,on.weekdaysShortRegex=h4,on.weekdaysMinRegex=p4,on.isPM=m4,on.meridiem=b4;function fg(t,e,n,r){var i=Ls(),o=Wo().set(r,e);return i[n](o,t)}function nC(t,e,n){if($s(t)&&(e=t,t=void 0),t=t||"",e!=null)return fg(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fg(t,r,n,"month");return i}function Jb(t,e,n,r){typeof t=="boolean"?($s(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,$s(e)&&(n=e,e=void 0),e=e||"");var i=Ls(),o=t?i._week.dow:0,s,a=[];if(n!=null)return fg(e,(n+o)%7,r,"day");for(s=0;s<7;s++)a[s]=fg(e,(s+o)%7,r,"day");return a}function SB(t,e){return nC(t,e,"months")}function EB(t,e){return nC(t,e,"monthsShort")}function TB(t,e,n){return Jb(t,e,n,"weekdays")}function CB(t,e,n){return Jb(t,e,n,"weekdaysShort")}function AB(t,e,n){return Jb(t,e,n,"weekdaysMin")}Ca("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=Bt(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}}),We.lang=Xi("moment.lang is deprecated. Use moment.locale instead.",Ca),We.langData=Xi("moment.langData is deprecated. Use moment.localeData instead.",Ls);var Rs=Math.abs;function $B(){var t=this._data;return this._milliseconds=Rs(this._milliseconds),this._days=Rs(this._days),this._months=Rs(this._months),t.milliseconds=Rs(t.milliseconds),t.seconds=Rs(t.seconds),t.minutes=Rs(t.minutes),t.hours=Rs(t.hours),t.months=Rs(t.months),t.years=Rs(t.years),this}function rC(t,e,n,r){var i=bo(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function IB(t,e){return rC(this,t,e,1)}function PB(t,e){return rC(this,t,e,-1)}function iC(t){return t<0?Math.floor(t):Math.ceil(t)}function OB(){var t=this._milliseconds,e=this._days,n=this._months,r=this._data,i,o,s,a,l;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=iC(Xb(n)+e)*864e5,e=0,n=0),r.milliseconds=t%1e3,i=eo(t/1e3),r.seconds=i%60,o=eo(i/60),r.minutes=o%60,s=eo(o/60),r.hours=s%24,e+=eo(s/24),l=eo(oC(e)),n+=l,e-=iC(Xb(l)),a=eo(n/12),n%=12,r.days=e,r.months=n,r.years=a,this}function oC(t){return t*4800/146097}function Xb(t){return t*146097/4800}function NB(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=Qi(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,n=this._months+oC(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Xb(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+t)}}function Fs(t){return function(){return this.as(t)}}var sC=Fs("ms"),LB=Fs("s"),RB=Fs("m"),FB=Fs("h"),DB=Fs("d"),MB=Fs("w"),zB=Fs("M"),UB=Fs("Q"),jB=Fs("y"),BB=sC;function qB(){return bo(this)}function HB(t){return t=Qi(t),this.isValid()?this[t+"s"]():NaN}function Al(t){return function(){return this.isValid()?this._data[t]:NaN}}var GB=Al("milliseconds"),WB=Al("seconds"),KB=Al("minutes"),VB=Al("hours"),YB=Al("days"),ZB=Al("months"),JB=Al("years");function XB(){return eo(this.days()/7)}var Ds=Math.round,vu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function QB(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function e6(t,e,n,r){var i=bo(t).abs(),o=Ds(i.as("s")),s=Ds(i.as("m")),a=Ds(i.as("h")),l=Ds(i.as("d")),u=Ds(i.as("M")),d=Ds(i.as("w")),f=Ds(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),h=h||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f],h[2]=e,h[3]=+t>0,h[4]=r,QB.apply(null,h)}function t6(t){return t===void 0?Ds:typeof t=="function"?(Ds=t,!0):!1}function n6(t,e){return vu[t]===void 0?!1:e===void 0?vu[t]:(vu[t]=e,t==="s"&&(vu.ss=e-1),!0)}function r6(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=vu,i,o;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(r=Object.assign({},vu,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),i=this.localeData(),o=e6(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var Qb=Math.abs;function _u(t){return(t>0)-(t<0)||+t}function hg(){if(!this.isValid())return this.localeData().invalidDate();var t=Qb(this._milliseconds)/1e3,e=Qb(this._days),n=Qb(this._months),r,i,o,s,a=this.asSeconds(),l,u,d,f;return a?(r=eo(t/60),i=eo(r/60),t%=60,r%=60,o=eo(n/12),n%=12,s=t?t.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=_u(this._months)!==_u(a)?"-":"",d=_u(this._days)!==_u(a)?"-":"",f=_u(this._milliseconds)!==_u(a)?"-":"",l+"P"+(o?u+o+"Y":"")+(n?u+n+"M":"")+(e?d+e+"D":"")+(i||r||t?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(t?f+s+"S":"")):"P0D"}var Yt=sg.prototype;Yt.isValid=Z4,Yt.abs=$B,Yt.add=IB,Yt.subtract=PB,Yt.as=NB,Yt.asMilliseconds=sC,Yt.asSeconds=LB,Yt.asMinutes=RB,Yt.asHours=FB,Yt.asDays=DB,Yt.asWeeks=MB,Yt.asMonths=zB,Yt.asQuarters=UB,Yt.asYears=jB,Yt.valueOf=BB,Yt._bubble=OB,Yt.clone=qB,Yt.get=HB,Yt.milliseconds=GB,Yt.seconds=WB,Yt.minutes=KB,Yt.hours=VB,Yt.days=YB,Yt.weeks=XB,Yt.months=ZB,Yt.years=JB,Yt.humanize=r6,Yt.toISOString=hg,Yt.toString=hg,Yt.toJSON=hg,Yt.locale=WT,Yt.localeData=VT,Yt.toIsoString=Xi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",hg),Yt.lang=KT,ft("X",0,0,"unix"),ft("x",0,0,"valueOf"),rt("x",Qp),rt("X",SU),pn("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)}),pn("x",function(t,e,n){n._d=new Date(Bt(t))});We.version="2.30.1",iU(Tn),We.fn=je,We.min=W4,We.max=K4,We.now=V4,We.utc=Wo,We.unix=xB,We.months=SB,We.isDate=rf,We.locale=Ca,We.invalid=Kp,We.duration=bo,We.isMoment=vo,We.weekdays=TB,We.parseZone=kB,We.localeData=Ls,We.isDuration=ag,We.monthsShort=EB,We.weekdaysMin=AB,We.defineLocale=Ub,We.updateLocale=k4,We.locales=S4,We.weekdaysShort=CB,We.normalizeUnits=Qi,We.relativeTimeRounding=t6,We.relativeTimeThreshold=n6,We.calendarFormat=bj,We.prototype=je,We.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const pg=t=>{let e;if(t!=="_default")try{[e]=Intl.getCanonicalLocales(t)}catch{}return e},Zo=t=>{const e=pg(t);if(!e)return t;const n=new Intl.DisplayNames(ie(nn),{type:"language"});try{return n.of(e)??t}catch(r){return console.error(r),t}},bu=(t,e={})=>new Intl.ListFormat(pg(t),{style:"narrow",type:"conjunction",...e}),ey=({_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)},i6=/^(?:\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)?$/,o6=/^\d{4}-[01]\d-[0-3]\d$/,s6=/T00:00(?::00)?(?:\.000)?Z$/,ty={year:"numeric",month:"short",day:"numeric"},ny={hour:"numeric",minute:"numeric",hour12:!0},a6={...ty,...ny},$a=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}},yu=(t,e)=>{const{format:n,timeOnly:r,utc:i}=$a(e);if(t)try{return n?(i?We.utc:We)(t,n).toDate():r?new Date(`${new Date().toJSON().split("T")[0]}T${t}`):new Date(t)}catch(o){console.error(o);return}},aC=t=>{const{dateOnly:e,timeOnly:n,utc:r}=$a(t),{year:i,month:o,day:s,hour:a,minute:l}=Sl({timeZone:r?"UTC":void 0}),u=`${i}-${o}-${s}`,d=`${a}:${l}`;return e?u:n?d:r?`${u}T${d}:00.000Z`:`${u}T${d}`},lC=(t,e,n)=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=$a(n),a=i?"YYYY-MM-DD":o?"HH:mm":"YYYY-MM-DDTHH:mm",l=`:00${e?.endsWith(".000")?".000":""}`;if(t==="")return"";if(t)try{if(r){const u=(s?We.utc:We)(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}${l}`}catch(u){console.error(u);return}},l6=(t,e)=>{const{dateOnly:n,timeOnly:r,utc:i}=$a(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?yu(t,e):new Date;if(t&&!s||t&&s&&Number.isNaN(s.getTime()))return"";const{year:a,month:l,day:u,hour:d,minute:f}=Sl({date:s,timeZone:i?"UTC":void 0}),h=`${a}-${l}-${u}`,p=`${d}:${f}`;return n?h:r?p:`${h}T${p}`}catch(s){return console.error(s),""}},cC=({locale:t,fieldConfig:e,currentValue:n})=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=$a(e);if(typeof n!="string"||!n.trim())return"";if(r)try{return(s?We.utc:We)(n,r).format(r)}catch{}const a=yu(n,e),l=pg(t);return!a||Number.isNaN(a.getTime())?"":o?a.toLocaleTimeString(l,ny):i?a.toLocaleDateString(l,{...ty,timeZone:s||o6.test(n)||s6.test(n)?"UTC":void 0}):a.toLocaleString(l,{...ty,...ny,timeZone:s?"UTC":void 0,timeZoneName:s?void 0:"short"})},ry=/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,uC=/^default\('(?<defaultValue>.+?)'\)$/,c6=/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,u6=/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/,d6=t=>String(t).toUpperCase(),f6=t=>String(t).toLowerCase(),h6=(t,{format:e,timeZone:n},r)=>{const i=String(t),{dateOnly:o,utc:s}=$a(r),l=(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$/)?We.utc:We)(i);return l.isValid()?l.format(e):""},p6=(t,{defaultValue:e})=>t?String(t):e,g6=(t,{truthyValue:e,falsyValue:n})=>t?e:n,m6=(t,{max:e,ellipsis:n="…"})=>rS(String(t),Number(e),{ellipsis:n}),v6=({fieldConfig:t,value:e,transformation:n})=>{if(n==="upper")return d6(e);if(n==="lower")return f6(e);const r=n.match(ry);if(r?.groups)return h6(e,r.groups,t??{});const i=n.match(uC);if(i?.groups)return p6(e,i.groups);const o=n.match(c6);if(o?.groups)return g6(e,o.groups);const s=n.match(u6);return s?.groups?m6(e,s.groups):String(e)},iy=({fieldConfig:t,value:e,transformations:n})=>(n.forEach(r=>{e=v6({fieldConfig:t,value:e,transformation:r})}),e),dC={"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.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(dC);const fC={"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(fC);var to=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)},wu,gf,$l;class _6{constructor(...e){wu.set(this,new Map),gf.set(this,new Map),$l.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()),to(this,$l,"f").has(r)||to(this,$l,"f").set(r,new Set);const o=to(this,$l,"f").get(r);let s=!0;for(let a of i){const l=a.startsWith("*");if(a=l?a.slice(1):a,o?.add(a),s&&to(this,gf,"f").set(r,a),s=!1,l)continue;const u=to(this,wu,"f").get(a);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${u} -> ${a}". Pass \`force=true\` to override this definition.`);to(this,wu,"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:to(this,wu,"f").get(r)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&to(this,gf,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:to(this,$l,"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 to(this,$l,"f").values())Object.freeze(e);return this}_getTestState(){return{types:to(this,wu,"f"),extensions:to(this,gf,"f")}}}wu=new WeakMap,gf=new WeakMap,$l=new WeakMap;const Ms=new _6(fC,dC)._freeze();var oy,hC;function b6(){if(hC)return oy;hC=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return oy=function(r,i,o){if(typeof i!="string")throw new Error("Input must be string");for(var s=i.length,a=0,l,u,d=0;d<s;d+=1){if(l=i.charCodeAt(d),u=i[d],t(l)&&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},oy}var sy,pC;function y6(){if(pC)return sy;pC=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return sy=function(r){if(typeof r!="string")throw new Error("Input must be string");for(var i=r.length,o=0,s=null,a=null,l=0;l<i;l++)s=r.charCodeAt(l),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},sy}var ay,gC;function w6(){if(gC)return ay;gC=1;var t=b6(),e=y6();return ay=t.bind(null,e),ay}var ly,mC;function x6(){if(mC)return ly;mC=1;var t=w6(),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,l){if(typeof a!="string")throw new Error("Input must be string");var u=a.replace(e,l).replace(n,l).replace(r,l).replace(i,l).replace(o,l);return t(u,255)}return ly=function(a,l){var u=l&&l.replacement||"",d=s(a,u);return u===""?d:s(d,"")},ly}var k6=x6();const S6=jc(k6),vC=(t,e)=>new RegExp(`^${t.split("/").map(e).join("\\/")}\\b`),_C=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},E6=t=>decodeURIComponent(t),gg=t=>{const e=new Intl.NumberFormat(ie(nn),{maximumFractionDigits:1}),n=1e3,r=n*1e3,i=r*1e3,o=i*1e3;return t<n?ie(ue)("file_size_units.b",{values:{size:e.format(t)}}):t<r?ie(ue)("file_size_units.kb",{values:{size:e.format(t/n)}}):t<i?ie(ue)("file_size_units.mb",{values:{size:e.format(t/r)}}):t<o?ie(ue)("file_size_units.gb",{values:{size:e.format(t/i)}}):ie(ue)("file_size_units.tb",{values:{size:e.format(t/o)}})},bC=(t,e)=>{if(!e.length)return t;const{filename:n,extension:r}=gn(t),i=new RegExp(`^${un(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:""}$`),o=e.sort((a,l)=>Ni(a.split(".")[0],l.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}`:""}`},yC=(t,{slugificationEnabled:e=!1,assetNamesInSameFolder:n=[]}={})=>{let r=S6(t.normalize());if(e){const{filename:i,extension:o}=gn(r);r=`${cT(i)}${o?`.${o}`:""}`}return bC(r,n)},mf=t=>t.filter(Boolean).join("/"),cy=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}),mf(e)},uy=t=>typeof t=="string"?new Blob([t],{type:"text/plain"}):t,Il=async t=>{const n=await uy(t).arrayBuffer();return ml(new Blob([`blob ${n.byteLength}\0`,n]))};let wC=class{constructor(e){if(T6(e))throw new Error("DataView: Passed buffer type is unsupported.");this.buffer=e,this.byteLength=this.buffer.length}getUint8(e){return this.buffer.readUInt8(e)}getUint16(e,n){return n?this.buffer.readUInt16LE(e):this.buffer.readUInt16BE(e)}getUint32(e,n){return n?this.buffer.readUInt32LE(e):this.buffer.readUInt32BE(e)}getInt32(e,n){return n?this.buffer.readInt32LE(e):this.buffer.readInt32BE(e)}};function T6(t){return typeof t!="object"||t.length===void 0||t.readUInt8===void 0||t.readUInt16LE===void 0||t.readUInt16BE===void 0||t.readUInt32LE===void 0||t.readUInt32BE===void 0||t.readInt32LE===void 0||t.readInt32BE===void 0}function xC(t,e,n){try{return new DataView(t,e,n)}catch{return new wC(t,e,n)}}function At(t,e,n){const r=[];for(let i=0;i<n&&e+i<t.byteLength;i++)r.push(t.getUint8(e+i));return Pl(r)}function xu(t,e){const n=[];let r=0;for(;e+r<t.byteLength;){const i=t.getUint8(e+r);if(i===0)break;n.push(i),r++}return Pl(n)}function C6(t,e,n){const r=[];for(let i=0;i<n&&e+i<t.byteLength;i+=2)r.push(t.getUint16(e+i));return r[r.length-1]===0&&r.pop(),Pl(r)}function kC(t,e){const n=t.getUint8(e),r=At(t,e+1,n);return[n,r]}function Pl(t){return t.map(e=>String.fromCharCode(e)).join("")}function Ot(){for(let t=1;t<arguments.length;t++)for(const e in arguments[t])arguments[0][e]=arguments[t][e];return arguments[0]}function SC(t,e,n){let r=!1;Object.defineProperty(t,e,{get(){return r||(r=!0,Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n.apply(t),writable:!0})),t[e]},configurable:!0,enumerable:!0})}function EC(t){if(typeof btoa<"u")return btoa(typeof t=="string"?t:Array.prototype.reduce.call(new Uint8Array(t),(e,n)=>e+String.fromCharCode(n),""));if(!(typeof Buffer>"u"))return typeof Buffer.from<"u"?Buffer.from(t).toString("base64"):new Buffer(t).toString("base64")}function A6(t){const e=t.substring(t.indexOf(",")+1);if(t.indexOf(";base64")!==-1)return typeof atob<"u"?Uint8Array.from(atob(e),r=>r.charCodeAt(0)).buffer:typeof Buffer>"u"?void 0:typeof Buffer.from<"u"?Buffer.from(e,"base64"):new Buffer(e,"base64");const n=decodeURIComponent(e);return typeof Buffer<"u"?typeof Buffer.from<"u"?Buffer.from(n):new Buffer(n):Uint8Array.from(n,r=>r.charCodeAt(0)).buffer}function $6(t,e,n){return TC(n,e-t.length)+t}function I6(t,e){return parseInt(t.replace(".",""),e)/Math.pow(e,(t.split(".")[1]||"").length)}function TC(t,e){return new Array(e+1).join(t)}const mg=void 0,CC=0;function AC(t,e,n,r="string"){if(e===CC&&typeof DecompressionStream=="function"){const i=new DecompressionStream("deflate"),o=new Blob([t]).stream().pipeThrough(i);return r==="dataview"?new Response(o).arrayBuffer().then(s=>new DataView(s)):new Response(o).arrayBuffer().then(s=>new TextDecoder(n).decode(s))}return e!==void 0?Promise.reject(`Unknown compression method ${e}.`):t}const $C={USE_FILE:!0,USE_JFIF:!0,USE_PNG_FILE:!0,USE_EXIF:!0,USE_IPTC:!0,USE_XMP:!0,USE_ICC:!0,USE_MPF:!0,USE_PHOTOSHOP:!0,USE_THUMBNAIL:!0,USE_TIFF:!0,USE_JPEG:!0,USE_PNG:!0,USE_HEIC:!0,USE_AVIF:!0,USE_WEBP:!0,USE_GIF:!0,USE_MAKER_NOTES:!0};function sr(t){return t.map(e=>String.fromCharCode(e)).join("")}function dy(t){if(t.length>=8){const e=sr(t.slice(0,8));if(e==="ASCII\0\0\0")return sr(t.slice(8));if(e==="JIS\0\0\0\0\0")return"[JIS encoded text]";if(e==="UNICODE\0")return"[Unicode encoded text]";if(e==="\0\0\0\0\0\0\0\0")return"[Undefined encoding]"}return"Undefined"}function vg(t){return t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600}const fy=18761,hy=19789,Jo={BIG_ENDIAN:hy,LITTLE_ENDIAN:fy,getByteOrder:P6};function P6(t,e){if(t.getUint16(e)===fy)return fy;if(t.getUint16(e)===hy)return hy;throw new Error("Illegal byte order value. Faulty image.")}const IC={isTiffFile:O6,findTiffOffsets:L6};function O6(t){return!!t&&t.byteLength>=4&&N6(t)}function N6(t){const r=t.getUint16(0)===Jo.LITTLE_ENDIAN;return t.getUint16(2,r)===42}function L6(){return{hasAppMarkers:!0,tiffHeaderOffset:0}}const PC={isJpegFile:Z6,findJpegOffsets:J6},R6=2,F6=65496,OC=2,no=4,Yr=2,D6=2,M6=10,z6=18,NC=33,LC=79,RC=18,U6=8,py="ICC_PROFILE\0",FC=no+py.length,j6=FC+1,DC="MPF\0",MC=65472,zC=65474,B6=65476,q6=65499,H6=65501,G6=65498,UC=65504,gy=65505,jC=65506,W6=65517,K6=65519,V6=65534,Y6=65535,BC="JFIF",qC="Exif",HC="http://ns.adobe.com/xap/1.0/\0",GC="http://ns.adobe.com/xmp/extension/\0",WC="Photoshop 3.0";function Z6(t){return!!t&&t.byteLength>=R6&&t.getUint16(0)===F6}function J6(t){let e=OC,n,r,i,o,s,a,l,u,d;for(;e+no+5<=t.byteLength;){if(X6(t,e))n=t.getUint16(e+Yr),r=e+Yr;else if(Q6(t,e))n=t.getUint16(e+Yr),i=e+Yr;else if(n8(t,e))n=t.getUint16(e+Yr),o=e+D6;else if(r8(t,e))n=t.getUint16(e+Yr),s=e+M6;else if(i8(t,e))l||(l=[]),n=t.getUint16(e+Yr),l.push(l8(e,n));else if(s8(t,e))l||(l=[]),n=t.getUint16(e+Yr),l.push(c8(e,n));else if(u8(t,e))n=t.getUint16(e+Yr),a=e+z6;else if(e8(t,e)){n=t.getUint16(e+Yr);const f=e+RC,h=n-(RC-Yr),p=t.getUint8(e+FC),g=t.getUint8(e+j6);u||(u=[]),u.push({offset:f,length:h,chunkNumber:p,chunksTotal:g})}else if(t8(t,e))n=t.getUint16(e+Yr),d=e+U6;else if(d8(t,e))n=t.getUint16(e+Yr);else if(f8(t,e)){e++;continue}else break;e+=Yr+n}return{hasAppMarkers:e>OC,fileDataOffset:r||i,jfifDataOffset:o,tiffHeaderOffset:s,iptcDataOffset:a,xmpChunks:l,iccChunks:u,mpfDataOffset:d}}function X6(t,e){return t.getUint16(e)===MC}function Q6(t,e){return t.getUint16(e)===zC}function e8(t,e){const n=py.length;return t.getUint16(e)===jC&&At(t,e+no,n)===py}function t8(t,e){const n=DC.length;return t.getUint16(e)===jC&&At(t,e+no,n)===DC}function n8(t,e){const n=BC.length;return t.getUint16(e)===UC&&At(t,e+no,n)===BC&&t.getUint8(e+no+n)===0}function r8(t,e){const n=qC.length;return t.getUint16(e)===gy&&At(t,e+no,n)===qC&&t.getUint8(e+no+n)===0}function i8(t,e){return t.getUint16(e)===gy&&o8(t,e)}function o8(t,e){const n=HC.length;return At(t,e+no,n)===HC}function s8(t,e){return t.getUint16(e)===gy&&a8(t,e)}function a8(t,e){const n=GC.length;return At(t,e+no,n)===GC}function l8(t,e){return{dataOffset:t+NC,length:e-(NC-Yr)}}function c8(t,e){return{dataOffset:t+LC,length:e-(LC-Yr)}}function u8(t,e){const n=WC.length;return t.getUint16(e)===W6&&At(t,e+no,n)===WC&&t.getUint8(e+no+n)===0}function d8(t,e){const n=t.getUint16(e);return n>=UC&&n<=K6||n===V6||n===MC||n===zC||n===B6||n===q6||n===H6||n===G6}function f8(t,e){return t.getUint16(e)===Y6}const KC={isPngFile:g8,findPngOffsets:m8},my=`‰PNG\r
149
149
  
150
- `,_g=4,yo=4,ku=0,Ia=_g,Lr=_g+yo,vy="XML:com.adobe.xmp\0",_y="tEXt",Ol="iTXt",bg="zTXt",VC="pHYs",YC="tIME",h8="eXIf",p8="iCCP";function g8(t){return!!t&&At(t,0,my.length)===my}function m8(t,e){const r={hasAppMarkers:!1};let i=my.length;for(;i+_g+yo<=t.byteLength;){if(v8(t,i))r.hasAppMarkers=!0,r.pngHeaderOffset=i+Lr;else if(_8(t,i)){const o=k8(t,i);o!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:o,length:t.getUint32(i+ku)-(o-(i+Lr))}])}else if(b8(t,i,e)){r.hasAppMarkers=!0;const o=At(t,i+Ia,yo);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(i+ku),type:o,offset:i+Lr})}else if(y8(t,i))r.hasAppMarkers=!0,r.tiffHeaderOffset=i+Lr;else if(e&&w8(t,i)){r.hasAppMarkers=!0;const o=t.getUint32(i+ku),s=i+Lr,{profileName:a,compressionMethod:l,compressedProfileOffset:u}=S8(t,s);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:o-(u-s),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:l})}else x8(t,i)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(i+ku));i+=t.getUint32(i+ku)+_g+yo+4}return r}function v8(t,e){return At(t,e+Ia,yo)==="IHDR"}function _8(t,e){return At(t,e+Ia,yo)===Ol&&At(t,e+Lr,vy.length)===vy}function b8(t,e,n){const r=At(t,e+Ia,yo);return r===_y||r===Ol||r===bg&&n}function y8(t,e){return At(t,e+Ia,yo)===h8}function w8(t,e){return At(t,e+Ia,yo)===p8}function x8(t,e){const n=[VC,YC],r=At(t,e+Ia,yo);return n.includes(r)}function k8(t,e){e+=Lr+vy.length+1+1;let i=0;for(;i<2&&e<t.byteLength;)t.getUint8(e)===0&&i++,e++;if(!(i<2))return e}function S8(t,e){const i=xu(t,e);e+=i.length+1;const o=t.getUint8(e);return e+=1,{profileName:i,compressionMethod:o,compressedProfileOffset:e}}function E8(t,e){return t.getUint32(e+4)}function T8(t,e,n,r){const{offsets:o,sizes:s}=C8(e,n+3),a=t.getUint8(o.offsetSize)>>4;s.item.extent.extentOffset=a;const l=t.getUint8(o.lengthSize)&15;s.item.extent.extentLength=l;const u=t.getUint8(o.baseOffsetSize)>>4;s.item.baseOffset=u;const d=A8(t,o.indexSize,e);s.item.extent.extentIndex=d!==void 0?d:0;const f=$8(t,o.itemCount,e);return{type:"iloc",items:I8(t,e,o,s,a,l,d,f),length:r}}function C8(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function A8(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function $8(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function I8(t,e,n,r,i,o,s,a){if(a===void 0)return[];const l=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=P8(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=yg(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let h=0;h<f.extentCount;h++){const p={};p.extentIndex=O8(t,e,u,s),u+=r.item.extent.extentIndex,p.extentOffset=yg(t,u,i),u+=r.item.extent.extentOffset,p.extentLength=yg(t,u,o),u+=r.item.extent.extentLength,f.extents.push(p)}l.push(f)}return l}function P8(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function O8(t,e,n,r){if((e===1||e===2)&&r>0)return yg(t,n,r)}function yg(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),E8(t,e)):0}const N8=1718909296,L8=1768977008,R8=1835365473,F8=1768714083,D8=1768517222,M8=1768842853,z8=1768973167,U8=1668246642,ZC=1165519206,by=1835625829,j8=1970432288;function wg(t,e){const{length:o,contentOffset:s}=B8(t,e);if(o<8)return;const a=t.getUint32(e+4);if(a===N8)return Q8(t,s,o);if(a===L8)return e5(t,e,s,o);if(a===z8)return t5(t,e,s,o);if(a===U8)return n5(t,s,o);const l=t.getUint8(s);return a===R8?i5(t,e,s+1,o):a===F8?T8(t,l,s+1,o):a===D8?o5(t,e,l,s+1,o):a===M8?a5(t,e,l,s+1,o):{type:void 0,length:o}}function B8(t,e){const s=t.getUint32(e);return q8(s)?{length:t.byteLength-e,contentOffset:e+4+4}:H8(s)&&G8(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:s,contentOffset:e+4+4}}function q8(t){return t===0}function H8(t){return t===1}function G8(t,e){return t.getUint32(e+8)===0}function JC(t){{const e={},n=W8(t);return n?(e.tiffHeaderOffset=K8(t,n),e.xmpChunks=Z8(n),e.iccChunks=X8(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function W8(t){let r=0;for(;r+4+4<=t.byteLength;){const i=wg(t,r);if(i===void 0)break;if(i.type==="meta")return i;r+=i.length}}function K8(t,e){try{const n=V8(e).itemId,r=yy(e,n),i=r.baseOffset+r.extents[0].extentOffset;return Y8(t,i)}catch{return}}function V8(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===ZC)}function yy(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function Y8(t,e){return e+4+t.getUint32(e)}function Z8(t){try{const e=J8(t).itemId,n=yy(t,e),r=yy(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function J8(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===by&&e.contentType==="application/rdf+xml")}function X8(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function Q8(t,e,n){return{type:"ftyp",majorBrand:At(t,e,4),length:n}}function e5(t,e,n,r){return{type:"iprp",subBoxes:xg(t,n,r-(n-e)),length:r}}function t5(t,e,n,r){return{type:"ipco",properties:xg(t,n,r-(n-e)),length:r}}function n5(t,e,n){return{type:"colr",icc:r5(t,e),length:n}}function r5(t,e){const r=At(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function i5(t,e,n,r){return{type:"meta",subBoxes:xg(t,n+3,r-(n+3-e)),length:r}}function xg(t,e,n){const r=[ZC,by],i=[];let o=e;for(;o<e+n;){const s=wg(t,o);if(s===void 0)break;s.type!==void 0&&(s.itemType===void 0||r.indexOf(s.itemType)!==-1)&&i.push(s),o+=s.length}return i}function o5(t,e,n,r,i){const{offsets:o}=s5(n,r);return{type:"iinf",itemInfos:xg(t,o.itemInfos,i-(o.itemInfos-e)),length:i}}function s5(t,e){const r={entryCount:e+3},i={};return t===0?i.entryCount=2:i.entryCount=4,r.itemInfos=r.entryCount+i.entryCount,{offsets:r}}function a5(t,e,n,r,i){r+=3;const s={type:"infe",length:i};return(n===0||n===1)&&(s.itemId=t.getUint16(r),r+=2,s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemName=xu(t,r),r+=s.itemName.length+1),n>=2&&(n===2?(s.itemId=t.getUint16(r),r+=2):n===3&&(s.itemId=t.getUint32(r),r+=4),s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemType=t.getUint32(r),r+=4,s.itemName=xu(t,r),r+=s.itemName.length+1,s.itemType===by?(s.contentType=xu(t,r),r+=s.contentType.length+1,e+i>r&&(s.contentEncoding=xu(t,r),r+=s.contentEncoding.length+1)):s.itemType===j8&&(s.itemUri=xu(t,r),r+=s.itemUri.length+1)),s}const XC={isHeicFile:l5,findHeicOffsets:c5};function l5(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=wg(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function c5(t){return JC(t)}const QC={isAvifFile:u5,findAvifOffsets:d5};function u5(t){if(!t)return!1;try{const e=wg(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function d5(t){return JC(t)}const eA={isWebpFile:f5,findOffsets:h5};function f5(t){const n="RIFF",i="WEBP";return!!t&&At(t,0,n.length)===n&&At(t,8,i.length)===i}function h5(t){const r="Exif\0\0";let o=12,s=!1,a,l,u,d;for(;o+8<t.byteLength;){const f=At(t,o,4),h=t.getUint32(o+4,!0);f==="EXIF"?(s=!0,At(t,o+8,r.length)===r?a=o+8+r.length:a=o+8):f==="XMP "?(s=!0,l=[{dataOffset:o+8,length:h}]):f==="ICCP"?(s=!0,u=[{offset:o+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(s=!0,d=o+8),o+=8+(h%2===0?h:h+1)}return{hasAppMarkers:s,tiffHeaderOffset:a,xmpChunks:l,iccChunks:u,vp8xChunkOffset:d}}const tA={isGifFile:m5,findOffsets:v5},p5=6,g5=["GIF87a","GIF89a"];function m5(t){return!!t&&g5.includes(At(t,0,p5))}function v5(){return{gifHeaderOffset:0}}const nA={isXMLFile:_5,findOffsets:b5},rA=0,iA="<?xpacket begin";function _5(t){return!!t&&At(t,rA,iA.length)===iA}function b5(t){const e=[];return e.push({dataOffset:rA,length:t.byteLength}),{xmpChunks:e}}const y5={parseAppMarkers:w5};function w5(t,e){if(IC.isTiffFile(t))return Pa(IC.findTiffOffsets(),"tiff","TIFF");if(PC.isJpegFile(t))return Pa(PC.findJpegOffsets(t),"jpeg","JPEG");if(KC.isPngFile(t))return Pa(KC.findPngOffsets(t,e),"png","PNG");if(XC.isHeicFile(t))return Pa(XC.findHeicOffsets(t),"heic","HEIC");if(QC.isAvifFile(t))return Pa(QC.findAvifOffsets(t),"avif","AVIF");if(eA.isWebpFile(t))return Pa(eA.findOffsets(t),"webp","WebP");if(tA.isGifFile(t))return Pa(tA.findOffsets(t),"gif","GIF");if(nA.isXMLFile(t))return Pa(nA.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function Pa(t,e,n){return Ot({},t,{fileType:{value:e,description:n}})}const Et={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${Number(t[0]/t[1]).toFixed(1)}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":t===4?"millimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},FocalLengthIn35mmFilm(t){return t===0?"Unknown":t+" mm"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},oA={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:Et.XResolution},283:{name:"YResolution",description:Et.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:Et.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:{name:"XPTitle",description:vf},40092:{name:"XPComment",description:vf},40093:{name:"XPAuthor",description:vf},40094:{name:"XPKeywords",description:vf},40095:{name:"XPSubject",description:vf},42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:Et.LightSource},50779:{name:"CalibrationIlluminant2",description:Et.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"};function vf(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const x5={33434:{name:"ExposureTime",description:Et.ExposureTime},33437:{name:"FNumber",description:Et.FNumber},34850:{name:"ExposureProgram",description:Et.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>sr(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:Et.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:Et.ShutterSpeedValue},37378:{name:"ApertureValue",description:Et.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:Et.MeteringMode},37384:{name:"LightSource",description:Et.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:Et.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:dy},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:Et.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:Et.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:Et.CustomRendered},41986:{name:"ExposureMode",description:Et.ExposureMode},41987:{name:"WhiteBalance",description:Et.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:Et.FocalLengthIn35mmFilm},41990:{name:"SceneCaptureType",description:Et.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:Et.Contrast},41993:{name:"Saturation",description:Et.Saturation},41994:{name:"Sharpness",description:Et.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=parseFloat((t[0][0]/t[0][1]).toFixed(5)),n=parseFloat((t[1][0]/t[1][1]).toFixed(5)),r=`${e}-${n} mm`;if(t[3][1]===0)return`${r} f/?`;const i=1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]));return`${r} f/${parseFloat(i.toFixed(5))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},k5={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:vg},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:vg},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:dy},28:{name:"GPSAreaInformation",description:dy},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},S5={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>sr(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},E5={45056:{name:"MPFVersion",description:t=>sr(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},T5={4:{name:"ShotInfo",description:t=>t}},C5={0:{name:"PentaxVersion",description:t=>t.join(".")},5:"PentaxModelID",555:"LevelInfo"},sA=Ot({},oA,x5),wy="0th",aA="1st",lA="exif",cA="gps",uA="interoperability",dA="mpf",fA="canon",xy="pentax",Oa={[wy]:sA,[aA]:oA,[lA]:sA,[cA]:k5,[uA]:S5,[dA]:E5,[fA]:T5,[xy]:C5},hA={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},ky={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},Ge={getAsciiValue:A5,getByteAt:pA,getAsciiAt:$5,getShortAt:I5,getLongAt:kg,getRationalAt:P5,getUndefinedAt:O5,getSlongAt:Sy,getSrationalAt:N5,getIfdPointerAt:L5,typeSizes:hA,tagTypes:ky,getTypeSize:R5};function A5(t){return t.map(e=>String.fromCharCode(e))}function pA(t,e){return t.getUint8(e)}function $5(t,e){return t.getUint8(e)}function I5(t,e,n){return t.getUint16(e,n===Jo.LITTLE_ENDIAN)}function kg(t,e,n){return t.getUint32(e,n===Jo.LITTLE_ENDIAN)}function P5(t,e,n){return[kg(t,e,n),kg(t,e+4,n)]}function O5(t,e){return pA(t,e)}function Sy(t,e,n){return t.getInt32(e,n===Jo.LITTLE_ENDIAN)}function N5(t,e,n){return[Sy(t,e,n),Sy(t,e+4,n)]}function L5(t,e,n){return kg(t,e,n)}function R5(t){if(ky[t]===void 0)throw new Error("No such type found.");return hA[ky[t]]}const F5={1:Ge.getByteAt,2:Ge.getAsciiAt,3:Ge.getShortAt,4:Ge.getLongAt,5:Ge.getRationalAt,7:Ge.getUndefinedAt,9:Ge.getSlongAt,10:Ge.getSrationalAt,13:Ge.getIfdPointerAt};function gA(t,e,n){return e+Ge.getLongAt(t,e+4,n)}function Na(t,e,n,r,i,o){const s=Ge.getTypeSize("SHORT"),a=12,l={},u=D5(t,r,i);r+=s;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=M5(t,e,n,r,i,o);f!==void 0&&(l[f.name]={id:f.id,value:f.value,description:f.description},(f.name==="MakerNote"||e===xy&&f.name==="LevelInfo")&&(l[f.name].__offset=f.__offset)),r+=a}if(r<t.byteLength-Ge.getTypeSize("LONG")){const d=Ge.getLongAt(t,r,i);d!==0&&e===wy&&(l.Thumbnail=Na(t,aA,n,n+d,i,o))}return l}function D5(t,e,n){return e+Ge.getTypeSize("SHORT")<=t.byteLength?Ge.getShortAt(t,e,n):0}function M5(t,e,n,r,i,o){const a=Ge.getTypeSize("SHORT"),l=a+Ge.getTypeSize("SHORT"),u=l+Ge.getTypeSize("LONG"),d=Ge.getShortAt(t,r,i),f=Ge.getShortAt(t,r+a,i),h=Ge.getLongAt(t,r+l,i);let p,g;if(Ge.typeSizes[f]===void 0||!o&&Oa[e][d]===void 0)return;if(z5(f,h))g=r+u,p=mA(t,g,f,h,i);else if(g=Ge.getLongAt(t,r+u,i),U5(t,n,g,f,h)){const b=d===33723;p=mA(t,n+g,f,h,i,b)}else p="<faulty value>";f===Ge.tagTypes.ASCII&&(p=j5(p),p=B5(p));let m=`undefined-${d}`,v=p;if(Oa[e][d]!==void 0)if(Oa[e][d].name!==void 0&&Oa[e][d].description!==void 0){m=Oa[e][d].name;try{v=Oa[e][d].description(p)}catch{v=vA(p)}}else f===Ge.tagTypes.RATIONAL||f===Ge.tagTypes.SRATIONAL?(m=Oa[e][d],v=""+p[0]/p[1]):(m=Oa[e][d],v=vA(p));return{id:d,name:m,value:p,description:v,__offset:g}}function z5(t,e){return Ge.typeSizes[t]*e<=Ge.getTypeSize("LONG")}function mA(t,e,n,r,i,o=!1){let s=[];o&&(r=r*Ge.typeSizes[n],n=Ge.tagTypes.BYTE);for(let a=0;a<r;a++)s.push(F5[n](t,e,i)),e+=Ge.typeSizes[n];return n===Ge.tagTypes.ASCII?s=Ge.getAsciiValue(s):s.length===1&&(s=s[0]),s}function U5(t,e,n,r,i){return e+n+Ge.typeSizes[r]*i<=t.byteLength}function j5(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function B5(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function vA(t){return t instanceof Array?t.join(", "):t}const _A="Exif IFD Pointer",bA="GPS Info IFD Pointer",yA="Interoperability IFD Pointer",wA={read:q5};function q5(t,e,n){const r=Jo.getByteOrder(t,e);let i=H5(t,e,r,n);return i=G5(i,t,e,r,n),i=W5(i,t,e,r,n),i=K5(i,t,e,r,n),{tags:i,byteOrder:r}}function H5(t,e,n,r){return Na(t,wy,e,gA(t,e,n),n,r)}function G5(t,e,n,r,i){return t[_A]!==void 0?Ot(t,Na(e,lA,n,n+t[_A].value,r,i)):t}function W5(t,e,n,r,i){return t[bA]!==void 0?Ot(t,Na(e,cA,n,n+t[bA].value,r,i)):t}function K5(t,e,n,r,i){return t[yA]!==void 0?Ot(t,Na(e,uA,n,n+t[yA].value,r,i)):t}const V5={read:Y5},Su=16;function Y5(t,e,n){const r=Jo.getByteOrder(t,e),i=Na(t,dA,e,gA(t,e,r),r,n);return Z5(t,e,i,r)}function Z5(t,e,n,r){if(!n.MPEntry)return n;const i=[];for(let o=0;o<Math.ceil(n.MPEntry.value.length/Su);o++){i[o]={};const s=_f(n.MPEntry.value,o*Su,Ge.getTypeSize("LONG"),r);i[o].ImageFlags=J5(s),i[o].ImageFormat=X5(s),i[o].ImageType=Q5(s);const a=_f(n.MPEntry.value,o*Su+4,Ge.getTypeSize("LONG"),r);i[o].ImageSize={value:a,description:""+a};const l=eq(o,n.MPEntry,r,e);i[o].ImageOffset={value:l,description:""+l};const u=_f(n.MPEntry.value,o*Su+12,Ge.getTypeSize("SHORT"),r);i[o].DependentImage1EntryNumber={value:u,description:""+u};const d=_f(n.MPEntry.value,o*Su+14,Ge.getTypeSize("SHORT"),r);i[o].DependentImage2EntryNumber={value:d,description:""+d},i[o].image=t.buffer.slice(l,l+a),SC(i[o],"base64",function(){return EC(this.image)})}return n.Images=i,n}function _f(t,e,n,r){if(r===Jo.LITTLE_ENDIAN){let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*s;return o}let i=0;for(let o=0;o<n;o++)i+=t[e+o]<<8*(n-1-o);return i}function J5(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function X5(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function Q5(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function eq(t,e,n,r){return tq(t)?0:_f(e.value,t*Su+8,Ge.getTypeSize("LONG"),n)+r}function tq(t){return t===0}const nq={read:rq};function rq(t,e){const n=iq(t,e),r=lq(t,e,n);return{"Bits Per Sample":oq(t,e,n),"Image Height":sq(t,e,n),"Image Width":aq(t,e,n),"Color Components":r,Subsampling:r&&cq(t,e,r.value,n)}}function iq(t,e){return Ge.getShortAt(t,e)}function oq(t,e,n){if(3>n)return;const o=Ge.getByteAt(t,e+2);return{value:o,description:""+o}}function sq(t,e,n){if(5>n)return;const o=Ge.getShortAt(t,e+3);return{value:o,description:`${o}px`}}function aq(t,e,n){if(7>n)return;const o=Ge.getShortAt(t,e+5);return{value:o,description:`${o}px`}}function lq(t,e,n){if(8>n)return;const o=Ge.getByteAt(t,e+7);return{value:o,description:""+o}}function cq(t,e,n,r){if(8+3*n>r)return;const s=[];for(let a=0;a<n;a++){const l=e+8+a*3;s.push([Ge.getByteAt(t,l),Ge.getByteAt(t,l+1),Ge.getByteAt(t,l+2)])}return{value:s,description:s.length>1?uq(s)+dq(s):""}}function uq(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function dq(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const fq={read:hq};function hq(t,e){const n=pq(t,e),r=yq(t,e,n),i=wq(t,e,n),o={"JFIF Version":gq(t,e,n),"Resolution Unit":mq(t,e,n),XResolution:_q(t,e,n),YResolution:bq(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":i};if(r!==void 0&&i!==void 0){const s=xq(t,e,3*r.value*i.value,n);s&&(o["JFIF Thumbnail"]=s)}for(const s in o)o[s]===void 0&&delete o[s];return o}function pq(t,e){return Ge.getShortAt(t,e)}function gq(t,e,n){if(9>n)return;const o=Ge.getByteAt(t,e+7),s=Ge.getByteAt(t,e+7+1);return{value:o*256+s,description:o+"."+s}}function mq(t,e,n){if(10>n)return;const o=Ge.getByteAt(t,e+9);return{value:o,description:vq(o)}}function vq(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function _q(t,e,n){if(12>n)return;const o=Ge.getShortAt(t,e+10);return{value:o,description:""+o}}function bq(t,e,n){if(14>n)return;const o=Ge.getShortAt(t,e+12);return{value:o,description:""+o}}function yq(t,e,n){if(15>n)return;const o=Ge.getByteAt(t,e+14);return{value:o,description:`${o}px`}}function wq(t,e,n){if(16>n)return;const o=Ge.getByteAt(t,e+15);return{value:o,description:`${o}px`}}function xq(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const La={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:Ey},336:{name:"Time Sent",description:Ty},346:{name:"Coded Character Set",description:xA,encoding_name:xA},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>sr(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=sr(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=sr(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:Ey},572:{name:"Time Created",description:Ty},574:{name:"Digital Creation Date",description:Ey},575:{name:"Digital Creation Time",description:Ty},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=sr(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=sr(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=sr(t),n=e.charAt(0),r=e.charAt(1);let i="";return n==="1"?i+="Mono":n==="2"&&(i+="Stereo"),r==="A"?i+=", actuality":r==="C"?i+=", question and answer session":r==="M"?i+=", music, transmitted by itself":r==="Q"?i+=", response to a question":r==="R"?i+=", raw sound":r==="S"?i+=", scener":r==="V"?i+=", voicer":r==="W"&&(i+=", wrap"),i!==""?i:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(sr(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(sr(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=sr(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return sr(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=sr(t);if(e["ObjectData Preview File Format"]){const i=sr(e["ObjectData Preview File Format"].value);if(n[i]&&n[i][r])return n[i][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function Ey(t){const e=sr(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function Ty(t){const e=sr(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function xA(t){const e=sr(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const kq={get:Sq};function Sq(){if(typeof TextDecoder<"u")return TextDecoder}const kA={decode:Eq,TAG_HEADER_SIZE:5};function Eq(t,e){const n=kq.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(i=>String.fromCharCode(i)).join("");return Tq(r)}function Tq(t){try{return decodeURIComponent(escape(t))}catch{return t}}const Cq=943868237,bf=4,Sg=2,Aq=1,$q=2,SA=4,Iq=bf+Sg+$q+SA,Pq=1028,EA=5,Cy={read:Oq};function Oq(t,e,n){try{if(Array.isArray(t))return TA(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:i}=Nq(t,e);return TA(t,r,i,n)}catch{return{}}}function Nq(t,e){for(;e+Iq<=t.byteLength;){const n=Lq(t,e);if(Rq(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+Fq(n)}throw new Error("No IPTC NAA resource block.")}function Lq(t,e){if(t.getUint32(e,!1)!==Cq)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+bf+Sg),r=(n%2===0?n+1:n)+Aq;return{headerSize:bf+Sg+r+SA,type:t.getUint16(e+bf),size:t.getUint32(e+bf+Sg+r)}}function Rq(t){return t.type===Pq}function Fq(t){return t.size%2!==0?1:0}function TA(t,e,n,r){const i={};let o;const s=n+e.size;for(;n<s&&n<t.byteLength;){const{tag:a,tagSize:l}=Dq(t,n,i,o,r);if(a===null)break;a&&("encoding"in a&&(o=a.encoding),i[a.name]===void 0||a.repeatable===void 0?i[a.name]={id:a.id,value:a.value,description:a.description}:(i[a.name]instanceof Array||(i[a.name]=[{id:i[a.name].id,value:i[a.name].value,description:i[a.name].description}]),i[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=EA+l}return i}function Dq(t,e,n,r,i){if(Mq(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),l=t.getUint16(e+3);if(!i&&!La.iptc[a])return{tag:void 0,tagSize:l};const u=zq(t,e+EA,l),d={id:a,name:Uq(La.iptc[a],a,u),value:u,description:qq(La.iptc[a],u,n,r)};return Wq(a)&&(d.repeatable=!0),Kq(a)&&(d.encoding=La.iptc[a].encoding_name(u)),{tag:d,tagSize:l}}function Mq(t,e){return t.getUint8(e)!==28}function zq(t,e,n){const r=[];for(let i=0;i<n;i++)r.push(t.getUint8(e+i));return r}function Uq(t,e,n){return t?jq(t)?t:Bq(t)?t.name(n):t.name:`undefined-${e}`}function jq(t){return typeof t=="string"}function Bq(t){return typeof t.name=="function"}function qq(t,e,n,r){if(Gq(t))try{return t.description(e,n)}catch{}return Hq(t,e)?kA.decode(r,e):e}function Hq(t,e){return t&&e instanceof Array}function Gq(t){return t&&t.description!==void 0}function Wq(t){return La.iptc[t]&&La.iptc[t].repeatable}function Kq(t){return La.iptc[t]&&La.iptc[t].encoding_name!==void 0}const Eg={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>Et.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Eu(Et.XResolution,t),"tiff:YResolution":t=>Eu(Et.YResolution,t),"exif:ApertureValue":t=>Eu(Et.ApertureValue,t),"exif:GPSLatitude":AA,"exif:GPSLongitude":AA,"exif:FNumber":t=>Eu(Et.FNumber,t),"exif:FocalLength":t=>Eu(Et.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>Et.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>Et.ColorSpace(Vq(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return Et.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>Et.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>Et.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>Et.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>Et.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return CA(t)?Et.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>Et.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>Et.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>Et.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>Et.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Eu(Et.ShutterSpeedValue,t),"exif:WhiteBalance":t=>Et.WhiteBalance(parseInt(t,10))};function Eu(t,e){return CA(e)?t(e.split("/")):e}function Vq(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function CA(t){return/^-?\d+\/-?\d+$/.test(t)}function AA(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),i=parseFloat(n),o=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(i))return""+(r+i/60)+o}return t}const Yq={get:Zq};function Zq(t){if(t)return t;if(typeof DOMParser<"u")return new DOMParser;try{const{DOMParser:e,onErrorStopParsing:n}=__non_webpack_require__("@xmldom/xmldom");return new e({onError:n})}catch{return}}function Jq(t){const e=["prefix is non-null and namespace is null","prefix not bound to a namespace","prefix inte bundet till en namnrymd",/Namespace prefix .+ is not defined/];for(let n=0;n<e.length;n++)if(new RegExp(e[n]).test(t.message))return!0;return!1}function Xq(t){const e=t.match(/<([A-Za-z_][A-Za-z0-9._-]*)([^>]*)>/);if(!e)return t;const n=e[1],r=Qq(t),o=eH(t).filter(a=>r.indexOf(a)===-1);if(o.length===0)return t;const s=nH(o);return rH(t,n,s)}function Qq(t){const e=[],n=/xmlns:([\w-]+)=["'][^"']+["']/g;let r;for(;(r=n.exec(t))!==null;)e.indexOf(r[1])===-1&&e.push(r[1]);return e}function eH(t){const e=[],n=/\b([A-Za-z_][A-Za-z0-9._-]*):[A-Za-z_][A-Za-z0-9._-]*\b/g;let r;for(;(r=n.exec(t))!==null;){const i=r[1];i==="xmlns"||i==="xml"||e.indexOf(i)===-1&&e.push(i)}return e}const tH={xmp:"http://ns.adobe.com/xap/1.0/",tiff:"http://ns.adobe.com/tiff/1.0/",exif:"http://ns.adobe.com/exif/1.0/",dc:"http://purl.org/dc/elements/1.1/",xmpMM:"http://ns.adobe.com/xap/1.0/mm/",stEvt:"http://ns.adobe.com/xap/1.0/sType/ResourceEvent#",stRef:"http://ns.adobe.com/xap/1.0/sType/ResourceRef#",photoshop:"http://ns.adobe.com/photoshop/1.0/"};function nH(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n],i=tH[r]||"http://fallback.namespace/"+r;e.push(" xmlns:"+r+'="'+i+'"')}return e.join("")}function rH(t,e,n){const r=new RegExp("<"+e+"([^>]*)>");return t.replace(r,"<"+e+"$1"+n+">")}const $A={read:oH};class iH extends Error{constructor(e){super(e),this.name="ParseError"}}function oH(t,e,n){const r={};if(typeof t=="string")return Tg(r,t,n),r;const[i,o]=sH(t,e),s=Tg(r,i,n);if(o){const a=Tg(r,o,n);!s&&!a&&(delete r._raw,Tg(r,Ay(t,e),n))}return r}function sH(t,e){if(e.length===0)return[];const n=[Ay(t,e.slice(0,1))];return e.length>1&&n.push(Ay(t,e.slice(1))),n}function Ay(t,e){const n=e.reduce((o,s)=>o+s.length,0),r=new Uint8Array(n);let i=0;for(let o=0;o<e.length;o++){const s=e[o],a=t.buffer.slice(s.dataOffset,s.dataOffset+s.length);r.set(new Uint8Array(a),i),i+=s.length}return new DataView(r.buffer)}function Tg(t,e,n){try{const{doc:r,raw:i}=aH(e,n);t._raw=(t._raw||"")+i;const o=PA(r);return Ot(t,NA(OA(o,!0))),!0}catch{return!1}}function aH(t,e){const n=Yq.get(e);if(!n)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const r=typeof t=="string"?t:At(t,0,t.byteLength);return{doc:IA(n,lH(r)),raw:r}}function lH(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function IA(t,e,n=!1){try{const r=t.parseFromString(e,"application/xml"),i=r.getElementsByTagName("parsererror");if(i.length>0)throw new iH(i[0].textContent);return r}catch(r){if(r.name==="ParseError"&&Jq(r)&&!n)return IA(t,Xq(e),!0);throw r}}function PA(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return PA(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function OA(t,e=!1){const n=cH(t);return uH(n)?e?{}:dH(n[0]):fH(n)}function cH(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function uH(t){return t.length===1&&t[0].nodeName==="#text"}function dH(t){return t.nodeValue}function fH(t){const e={};return t.forEach(n=>{if(hH(n)){const r=pH(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function hH(t){return t.nodeName&&t.nodeName!=="#text"}function pH(t){return{attributes:gH(t),value:OA(t)}}function gH(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function NA(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(i=>{Ot(e,$y(i.attributes)),typeof i.value=="object"&&Ot(e,LA(i.value))})}return e}function $y(t){const e={};for(const n in t)try{mH(n)&&(e[Ag(n)]={value:t[n],attributes:{},description:zs(t[n],n)})}catch{}return e}function mH(t){return t!=="rdf:parseType"&&!Cg(t)}function Cg(t){return t.split(":")[0]==="xmlns"}function Ag(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function zs(t,e=void 0){if(Array.isArray(t)){const n=vH(t);return e&&typeof Eg[e]=="function"?Eg[e](t,n):n}if(typeof t=="object")return _H(t);try{return e&&typeof Eg[e]=="function"?Eg[e](t):decodeURIComponent(escape(t))}catch{return t}}function vH(t){return t.map(e=>e.value!==void 0?zs(e.value):zs(e)).join(", ")}function _H(t){const e=[];for(const n in t)e.push(`${bH(n)}: ${zs(t[n].value)}`);return e.join("; ")}function bH(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function LA(t){const e={};for(const n in t)try{Cg(n)||(e[Ag(n)]=yH(t[n],n))}catch{}return e}function yH(t,e){return xH(t)?kH(t,e):wH(t)?{value:"",attributes:{},description:""}:RA(t)?FA(t,e):DA(t)?MA(t,e):zA(t)?UA(t,e):TH(t)?CH(t,e):Iy(t,e)}function wH(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function xH(t){return Array.isArray(t)}function kH(t,e){return Iy(t[t.length-1],e)}function RA(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function FA(t,e){const n=yf(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),Ot(n,yf(t),SH(t));const r=EH(t);return{value:r,attributes:n,description:zs(r,e)}}function yf(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!Cg(n)&&(e[Ag(n)]=t.attributes[n]);return e}function SH(t){const e={};for(const n in t.value)n!=="rdf:value"&&!Cg(n)&&(e[Ag(n)]=t.value[n].value);return e}function EH(t){return BA(t.value["rdf:value"])||t.value["rdf:value"].value}function DA(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function MA(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(Ot(n.value,$y(t.value["rdf:Description"].attributes)),Ot(n.attributes,yf(t)),t=t.value["rdf:Description"]),Ot(n.value,LA(t.value)),n.description=zs(n.value,e),n}function zA(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function UA(t,e){const n=$y(t.attributes);return{value:n,attributes:{},description:zs(n,e)}}function TH(t){return jA(t.value)!==void 0}function jA(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function CH(t,e){let n=jA(t.value).value["rdf:li"];const r=yf(t),i=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(o=>{i.push(AH(o))}),{value:i,attributes:r,description:zs(i,e)}}function AH(t){return RA(t)?FA(t):DA(t)?MA(t).value:zA(t)?UA(t).value:Iy(t)}function Iy(t,e){const n=BA(t)||NA(t.value);return{value:n,attributes:yf(t),description:zs(n,e)}}function BA(t){return t.attributes&&t.attributes["rdf:resource"]}const Us={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},qA=24,Py={2e3:{name:"PathInformation",description:$H},2999:{name:"ClippingPathName",description(t){const[,e]=kC(t,0);return e}}};function $H(t){const n={},r=[];for(let i=0;i<t.byteLength;i+=2+qA){const o=Ge.getShortAt(t,i);Oy[o]&&(n[o]||(n[o]=Oy[o].description),r.push({type:o,path:Oy[o].path(t,i+2)}))}return JSON.stringify({types:n,paths:r})}const Oy={[Us.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[Ge.getShortAt(t,e)]},[Us.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:$g},[Us.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:$g},[Us.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[Ge.getShortAt(t,e)]},[Us.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:$g},[Us.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:$g},[Us.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Us.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[Ge.getShortAt(t,e)]},[Us.CLIPBOARD]:{description:"Clipboard",path:PH}};function $g(t,e){const r=[];for(let i=0;i<qA;i+=8)r.push(IH(t,e+i));return r}function IH(t,e){const n=Nl(t,e,8);return[Nl(t,e+4,8),n]}function PH(t,e){return[[Nl(t,e,8),Nl(t,e+4,8),Nl(t,e+8,8),Nl(t,e+12,8)],Nl(t,e+16,8)]}function Nl(t,e,n){const r=Ge.getLongAt(t,e),i=r>>>31?-1:1,o=(r&2130706432)>>>32-n,s=r&parseInt(TC("1",32-n),2);return i*I6(o.toString(2)+"."+$6(s.toString(2),32-n,"0"),2)}const OH={read:RH},HA="8BIM",NH=2,LH=4,GA=HA.length;function RH(t,e){const n=xC(new Uint8Array(t).buffer),r={};let i=0;for(;i<t.length;){const o=At(n,i,GA);i+=GA;const s=Ge.getShortAt(n,i);i+=NH;const{tagName:a,tagNameSize:l}=FH(n,i);i+=l;const u=Ge.getLongAt(n,i);if(i+=LH,o===HA){const d=xC(n.buffer,i,u),f={id:s,value:At(d,0,u)};if(Py[s]){try{f.description=Py[s].description(d)}catch{f.description="<no description formatter>"}r[a||Py[s].name]=f}else e&&(r[`undefined-${s}`]=f)}i+=u+u%2}return r}function FH(t,e){const[n,r]=kC(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const WA={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},KA={4:{name:"Preferred CMM type",value:(t,e)=>At(t,e,4),description:t=>t!==null?Ny(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>At(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>At(t,e,4)},20:{name:"Connection Space",value:(t,e)=>At(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>DH(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>MH(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>At(t,e,4),description:t=>Ny(t)},48:{name:"Device Manufacturer",value:(t,e)=>At(t,e,4),description:t=>Ny(t)},52:{name:"Device Model Number",value:(t,e)=>At(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>At(t,e,4)}};function DH(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,i=t.getUint16(e+4),o=t.getUint16(e+6),s=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,i,o,s,a))}function MH(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Ny(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const VA={read:KH},zH=84,UH=128,jH="acsp",BH="desc",qH="mluc",HH="text",GH="sig ",WH=12;function KH(t,e,n){return n&&e[0].compressionMethod!==mg?VH(t,e):ZH(t,e)}function VH(t,e){if(!YH(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return AC(n,e[0].compressionMethod,"utf-8","dataview").then(YA).catch(()=>({}))}function YH(t){return t===CC}function ZH(t,e){try{const n=e.reduce((s,a)=>s+a.length,0),r=new Uint8Array(n);let i=0;const o=JH(t);for(let s=1;s<=e.length;s++){const a=e.find(d=>d.chunkNumber===s);if(!a)throw new Error(`ICC chunk ${s} not found`);const l=o.slice(a.offset,a.offset+a.length),u=new Uint8Array(l);r.set(u,i),i+=u.length}return YA(new DataView(r.buffer))}catch{return{}}}function JH(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function XH(t){return t.length<UH+4}function QH(t,e){return t.length<e+WH}function YA(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.byteLength<zH)throw new Error("ICC profile too short");const r={},i=Object.keys(KA);for(let l=0;l<i.length;l++){const u=i[l],d=KA[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),r[d.name]={value:f,description:h}}if(Ig(e.slice(36,40))!==jH)throw new Error("ICC profile: missing signature");if(XH(e))return r;const s=t.getUint32(128);let a=132;for(let l=0;l<s;l++){if(QH(e,a))return r;const u=At(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const h=At(t,d,4);if(h===BH){const p=t.getUint32(d+8);if(p>f)return r;const g=Ig(e.slice(d+12,d+p+11));wf(r,u,g)}else if(h===qH){const p=t.getUint32(d+8),g=t.getUint32(d+12);let m=d+16;const v=[];for(let b=0;b<p;b++){const y=At(t,m+0,2),w=At(t,m+2,2),E=t.getUint32(m+4),C=t.getUint32(m+8),k=C6(t,d+C,E);v.push({languageCode:y,countryCode:w,text:k}),m+=g}if(p===1)wf(r,u,v[0].text);else{const b={};for(let y=0;y<v.length;y++)b[`${v[y].languageCode}-${v[y].countryCode}`]=v[y].text;wf(r,u,b)}}else if(h===HH){const p=Ig(e.slice(d+8,d+f-7));wf(r,u,p)}else if(h===GH){const p=Ig(e.slice(d+8,d+12));wf(r,u,p)}a=a+12}return r}function Ig(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function wf(t,e,n){WA[e]?t[WA[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const Pg=27,eG={read:tG,SHOT_INFO_AUTO_ROTATE:Pg};function tG(t,e,n,r,i){let o=Na(t,fA,e,e+n,r,i);return o.ShotInfo&&(o=Ot({},o,nG(o.ShotInfo.value)),delete o.ShotInfo),o}function nG(t){const e={};return t[Pg]!==void 0&&(e.AutoRotate={value:t[Pg],description:rG(t[Pg])}),e}function rG(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const ZA=8,JA=ZA+2,XA={K3_III:78420},Og={CAMERA_ORIENTATION:1,ROLL_ANGLE:3,PITCH_ANGLE:5},iG={read:oG,PENTAX_IFD_OFFSET:JA,MODEL_ID:XA,LIK3III:Og};function oG(t,e,n,r){const i=Jo.getByteOrder(t,e+n+ZA),o=e+n;let s=Na(t,xy,o,o+JA,i,r);return sG(s)&&(s=Ot({},s,aG(t,o+s.LevelInfo.__offset,i)),delete s.LevelInfo),s}function sG(t){return t.PentaxModelID&&t.PentaxModelID.value===XA.K3_III&&t.LevelInfo}function aG(t,e,n){const r={};if(e+7>t.byteLength)return r;const i=t.getInt8(e+Og.CAMERA_ORIENTATION);r.CameraOrientation={value:i,description:lG(i)};const o=t.getInt16(e+Og.ROLL_ANGLE,n===Jo.LITTLE_ENDIAN);r.RollAngle={value:o,description:cG(o)};const s=t.getInt16(e+Og.PITCH_ANGLE,n===Jo.LITTLE_ENDIAN);return r.PitchAngle={value:s,description:uG(s)},r}function lG(t){return t===0?"Horizontal (normal)":t===1?"Rotate 270 CW":t===2?"Rotate 180":t===3?"Rotate 90 CW":t===4?"Upwards":t===5?"Downwards":"Unknown"}function cG(t){return""+t*-.5}function uG(t){return""+t*-.5}const dG={read:fG};function fG(t,e){return{"Image Width":hG(t,e),"Image Height":pG(t,e),"Bit Depth":gG(t,e),"Color Type":mG(t,e),Compression:vG(t,e),Filter:_G(t,e),Interlace:bG(t,e)}}function hG(t,e){if(e+0+4>t.byteLength)return;const i=Ge.getLongAt(t,e);return{value:i,description:`${i}px`}}function pG(t,e){if(e+4+4>t.byteLength)return;const i=Ge.getLongAt(t,e+4);return{value:i,description:`${i}px`}}function gG(t,e){if(e+8+1>t.byteLength)return;const i=Ge.getByteAt(t,e+8);return{value:i,description:`${i}`}}function mG(t,e){const i={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const o=Ge.getByteAt(t,e+9);return{value:o,description:i[o]||"Unknown"}}function vG(t,e){if(e+10+1>t.byteLength)return;const i=Ge.getByteAt(t,e+10);return{value:i,description:i===0?"Deflate/Inflate":"Unknown"}}function _G(t,e){if(e+11+1>t.byteLength)return;const i=Ge.getByteAt(t,e+11);return{value:i,description:i===0?"Adaptive":"Unknown"}}function bG(t,e){const i={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const o=Ge.getByteAt(t,e+12);return{value:o,description:i[o]||"Unknown"}}const yG={read:EG},Ly="STATE_KEYWORD",Ry="STATE_COMPRESSION",Fy="STATE_LANG",wG="STATE_TRANSLATED_KEYWORD",Dy="STATE_TEXT",xG=1,kG=1,SG=6;function EG(t,e,n,r){const i={},o=[];for(let s=0;s<e.length;s++){const{offset:a,length:l,type:u}=e[s],d=TG(t,a,l,u,n);if(d instanceof Promise)o.push(d.then(({name:f,value:h,description:p})=>{try{if($C.USE_EXIF&&e$(f,h))return{__exif:wA.read(n$(h),SG,r).tags};if($C.USE_IPTC&&t$(f,h))return{__iptc:Cy.read(n$(h),0,r)};if(f&&!e$(f,h)&&!t$(f,h))return{[f]:{value:h,description:p}}}catch{}return{}}));else{const{name:f,value:h,description:p}=d;f&&(i[f]={value:h,description:p})}}return{readTags:i,readTagsPromise:o.length>0?Promise.all(o):void 0}}function TG(t,e,n,r,i){const o=[],s=[];let a,l=Ly,u=mg;for(let f=0;f<n&&e+f<t.byteLength;f++){if(l===Ry){u=CG({type:r,dataView:t,offset:e+f}),r===Ol&&(f+=xG),l=QA(r,l);continue}else if(l===Dy){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?l=QA(r,l):l===Ly?o.push(h):l===Fy&&s.push(h)}if(u!==mg&&!i)return{};const d=AC(a,u,AG(r));return d instanceof Promise?d.then(f=>My(f,r,s,o)).catch(()=>My("<text using unknown compression>".split(""),r,s,o)):My(d,r,s,o)}function CG({type:t,dataView:e,offset:n}){if(t===Ol){if(e.getUint8(n)===kG)return e.getUint8(n+1)}else if(t===bg)return e.getUint8(n);return mg}function QA(t,e){return e===Ly&&[Ol,bg].includes(t)?Ry:e===Ry?t===Ol?Fy:Dy:e===Fy?wG:Dy}function AG(t){return t===_y||t===bg?"latin1":"utf-8"}function My(t,e,n,r){const i=IG(t);return{name:$G(e,n,r),value:i,description:e===Ol?PG(t):i}}function $G(t,e,n){const r=Pl(n);if(t===_y||e.length===0)return r;const i=Pl(e);return`${r} (${i})`}function IG(t){return t instanceof DataView?At(t,0,t.byteLength):t}function PG(t){return kA.decode("UTF-8",t)}function e$(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function t$(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function n$(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return OG(e[2].replace(/\n/g,""))}function OG(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const NG={read:LG};function LG(t,e){const n={};for(let r=0;r<e.length;r++){const i=Ge.getLongAt(t,e[r]+ku),o=At(t,e[r]+Ia,yo);o===VC?(n["Pixels Per Unit X"]=RG(t,e[r],i),n["Pixels Per Unit Y"]=FG(t,e[r],i),n["Pixel Units"]=DG(t,e[r],i)):o===YC&&(n["Modify Date"]=MG(t,e[r],i))}return n}function RG(t,e,n){if(!Ng(t,e,n,0,4))return;const o=Ge.getLongAt(t,e+Lr+0);return{value:o,description:""+o}}function FG(t,e,n){if(!Ng(t,e,n,4,4))return;const o=Ge.getLongAt(t,e+Lr+4);return{value:o,description:""+o}}function DG(t,e,n){if(!Ng(t,e,n,8,1))return;const o=Ge.getByteAt(t,e+Lr+8);return{value:o,description:o===1?"meters":"Unknown"}}function MG(t,e,n){if(!Ng(t,e,n,0,7))return;const i=Ge.getShortAt(t,e+Lr),o=Ge.getByteAt(t,e+Lr+2),s=Ge.getByteAt(t,e+Lr+3),a=Ge.getByteAt(t,e+Lr+4),l=Ge.getByteAt(t,e+Lr+5),u=Ge.getByteAt(t,e+Lr+6);return{value:[i,o,s,a,l,u],description:`${Tu(i,4)}-${Tu(o,2)}-${Tu(s,2)} ${Tu(a,2)}:${Tu(l,2)}:${Tu(u,2)}`}}function Ng(t,e,n,r,i){return r+i<=n&&e+Lr+r+i<=t.byteLength}function Tu(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const zG={read:BG},UG=4,jG=7;function BG(t,e){const n={},r=Ge.getByteAt(t,e);return n.Alpha=qG(r),n.Animation=HG(r),n.ImageWidth=r$(t,e+UG),n.ImageHeight=r$(t,e+jG),n}function qG(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function HG(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function r$(t,e){const n=Ge.getByteAt(t,e)+256*Ge.getByteAt(t,e+1)+65536*Ge.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const GG={read:WG};function WG(t){return{"GIF Version":KG(t),"Image Width":VG(t),"Image Height":YG(t),"Global Color Map":ZG(t),"Bits Per Pixel":XG(t),"Color Resolution Depth":JG(t)}}function KG(t){if(6>t.byteLength)return;const r=At(t,3,3);return{value:r,description:r}}function VG(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function YG(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function ZG(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&128)>>>7;return{value:i,description:i===1?"Yes":"No"}}function JG(t){if(11>t.byteLength)return;const i=((t.getUint8(10)&112)>>>4)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}function XG(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&7)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}const QG=[6,7,99],e9={get:t9};function t9(t,e,n){if(n9(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),SC(e,"base64",function(){return EC(this.image)})}return e}function n9(t){return t&&(t.Compression===void 0||QG.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}const zy={INCHES:2,CENTIMETERS:3,MILLIMETERS:4},Uy={INCHES_TO_MM:25.4,CM_TO_MM:10,MM_TO_MM:1},r9={get:i9};function i9(t,e){const n={};let r=!1;const i=Ll(t,"exif","FocalLength",e),o=Ll(t,"exif","FocalPlaneXResolution",e),s=Ll(t,"exif","FocalPlaneYResolution",e),a=Ll(t,"exif","FocalPlaneResolutionUnit",e),l=Ll(t,"file","Image Width",e),u=Ll(t,"file","Image Height",e),d=Ll(t,"exif","FocalLengthIn35mmFilm",e)||o9(o,s,a,l,u,i);d&&(n.FocalLength35efl={value:d,description:Et.FocalLengthIn35mmFilm(d)},r=!0);const f=s9(i,d);f&&(n.ScaleFactorTo35mmEquivalent=f,r=!0);const h=a9(d);if(h&&(n.FieldOfView=h,r=!0),r)return n}function Ll(t,e,n,r){if(r&&t[e]&&t[e][n])return t[e][n].value;if(!r&&t[n])return t[n].value}function o9(t,e,n,r,i,o){if(t&&e&&n&&r&&i&&o)try{let a;switch(n){case zy.INCHES:a=Uy.INCHES_TO_MM;break;case zy.CENTIMETERS:a=Uy.CM_TO_MM;break;case zy.MILLIMETERS:a=Uy.MM_TO_MM;break;default:return}const l=t[0]/t[1]*a,u=e[0]/e[1]*a,d=r/l,f=i/u,h=Math.sqrt(d**2+f**2);return o[0]/o[1]*(43.27/h)}catch{}}function s9(t,e){if(t&&e)try{const n=e/(t[0]/t[1]);return{value:n,description:n.toFixed(1)}}catch{}}function a9(t){if(t)try{const n=2*Math.atan(36/(2*t))*(180/Math.PI);return{value:n,description:n.toFixed(1)+" deg"}}catch{}}function i$(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}i$.prototype=new Error;const o$={MetadataMissingError:i$},l9={load:c9,loadView:s$,errors:o$};function c9(t,e={}){return u9(t)?(e.async=!0,d9(t,e).then(n=>jy(n,e))):_9(t)?(e.async=!0,b9(t).then(n=>jy(n,e))):jy(t,e)}function u9(t){return typeof t=="string"}function d9(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?f9(t,e):h9(t,e):g9(t)?Promise.resolve(A6(t)):m9(t,e)}function f9(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function h9(t,{length:e}={}){return new Promise((n,r)=>{const i={};Number.isInteger(e)&&e>=0&&(i.headers={range:`bytes=0-${e-1}`}),p9(t)(t,i,s=>{if(s.statusCode>=200&&s.statusCode<=299){const a=[];s.on("data",l=>a.push(Buffer.from(l))),s.on("error",l=>r(l)),s.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${s.statusCode} ${s.statusMessage}`),s.resume()}).on("error",s=>r(s))})}function p9(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function g9(t){return/^data:[^;,]*(;base64)?,/.test(t)}function m9(t,{length:e}={}){return new Promise((n,r)=>{const i=v9();i.open(t,(o,s)=>{o?r(o):i.stat(t,(a,l)=>{if(a)r(a);else{const u=Math.min(l.size,e!==void 0?e:l.size),d=Buffer.alloc(u),f={buffer:d,length:u};i.read(s,f,h=>{h?r(h):i.close(s,p=>{p&&console.warn(`Could not close file ${t}:`,p),n(d)})})}})})})}function v9(){try{return __non_webpack_require__("fs")}catch{return}}function _9(t){return typeof File<"u"&&t instanceof File}function b9(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=i=>e(i.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function jy(t,e){return y9(t)&&(t=new Uint8Array(t).buffer),s$(w9(t),e)}function y9(t){try{return Buffer.isBuffer(t)}catch{return!1}}function w9(t){try{return new DataView(t)}catch{return new wC(t)}}function s$(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1,domParser:i=void 0}={expanded:!1,async:!1,includeUnknown:!1,domParser:void 0}){let o=!1,s={};const a=[],{fileType:l,fileDataOffset:u,jfifDataOffset:d,tiffHeaderOffset:f,iptcDataOffset:h,xmpChunks:p,iccChunks:g,mpfDataOffset:m,pngHeaderOffset:v,pngTextChunks:b,pngChunkOffsets:y,vp8xChunkOffset:w,gifHeaderOffset:E}=y5.parseAppMarkers(t,n);if(x9(u)){o=!0;const S=nq.read(t,u);e?s.file=S:s=Ot({},s,S)}if(k9(d)){o=!0;const S=fq.read(t,d);e?s.jfif=S:s=Ot({},s,S)}if(S9(f)){o=!0;const{tags:S,byteOrder:A}=wA.read(t,f,r);if(S.Thumbnail&&(s.Thumbnail=S.Thumbnail,delete S.Thumbnail),e?(s.exif=S,E9(s)):s=Ot({},s,S),S["IPTC-NAA"]&&!a$(h)){const I=Cy.read(S["IPTC-NAA"].value,0,r);e?s.iptc=I:s=Ot({},s,I)}if(S.ApplicationNotes&&!l$(p)){const I=$A.read(Pl(S.ApplicationNotes.value),void 0,i);e?s.xmp=I:(delete I._raw,s=Ot({},s,I))}if(S.ImageSourceData&&S.PhotoshopSettings){const I=OH.read(S.PhotoshopSettings.value,r);e?s.photoshop=I:s=Ot({},s,I)}if(S.ICC_Profile&&!c$(g)){const I=VA.read(S.ICC_Profile.value,[{offset:0,length:S.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=I:s=Ot({},s,I)}if(S.MakerNote){if(T9(S)){const I=eG.read(t,f,S.MakerNote.__offset,A,r);e?s.makerNotes=I:s=Ot({},s,I)}else if(C9(S)){const I=iG.read(t,f,S.MakerNote.__offset,r);e?s.makerNotes=I:s=Ot({},s,I)}}S.MakerNote&&delete S.MakerNote.__offset}if(a$(h)){o=!0;const S=Cy.read(t,h,r);e?s.iptc=S:s=Ot({},s,S)}if(l$(p)){o=!0;const S=$A.read(t,p,i);e?s.xmp=S:(delete S._raw,s=Ot({},s,S))}if(c$(g)){o=!0;const S=VA.read(t,g,n);S instanceof Promise?a.push(S.then($)):$(S)}if(A9(m)){o=!0;const S=V5.read(t,m,r);e?s.mpf=S:s=Ot({},s,S)}if($9(v)){o=!0;const S=dG.read(t,v);e?(s.png=s.png?Ot({},s.png,S):S,s.pngFile=S):s=Ot({},s,S)}if(I9(b)){o=!0;const{readTags:S,readTagsPromise:A}=yG.read(t,b,n,r);x(S),A&&a.push(A.then(I=>I.forEach(x)))}if(P9(y)){o=!0;const S=NG.read(t,y);e?s.png=s.png?Ot({},s.png,S):S:s=Ot({},s,S)}if(O9(w)){o=!0;const S=zG.read(t,w);e?s.riff=s.riff?Ot({},s.riff,S):S:s=Ot({},s,S)}if(N9(E)){o=!0;const S=GG.read(t,E);e?s.gif=s.gif?Ot({},s.gif,S):S:s=Ot({},s,S)}const C=r9.get(s,e);C&&(e?s.composite=C:s=Ot({},s,C));const k=e9.get(t,s.Thumbnail,f);if(k?(o=!0,s.Thumbnail=k):delete s.Thumbnail,l&&(e?(s.file||(s.file={}),s.file.FileType=l):s.FileType=l,o=!0),!o)throw new o$.MetadataMissingError;if(n)return Promise.all(a).then(()=>s);return s;function $(S){e?s.icc=S:s=Ot({},s,S)}function x(S){if(e){for(const A of["exif","iptc"]){const I=`__${A}`;S[I]&&(s[A]=s[A]?Ot({},s.exif,S[I]):S[I],delete S[I])}s.png=s.png?Ot({},s.png,S):S,s.pngText=s.pngText?Ot({},s.png,S):S}else s=Ot({},s,S.__exif?S.__exif:{},S.__iptc?S.__iptc:{},S),delete s.__exif,delete s.__iptc}}function x9(t){return t!==void 0}function k9(t){return t!==void 0}function S9(t){return t!==void 0}function E9(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=vg(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=vg(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function a$(t){return t!==void 0}function l$(t){return Array.isArray(t)&&t.length>0}function c$(t){return Array.isArray(t)&&t.length>0}function T9(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function C9(t){const e="PENTAX ";return t.MakerNote.value.length>e.length&&Pl(t.MakerNote.value.slice(0,e.length))===e&&t.MakerNote.__offset}function A9(t){return t!==void 0}function $9(t){return t!==void 0}function I9(t){return t!==void 0}function P9(t){return t!==void 0}function O9(t){return t!==void 0}function N9(t){return t!==void 0}const Rl=(t,e)=>{if(typeof t!="number")return NaN;if(!Number.isFinite(t))return t;const n=10**e;return Math.round(t*n)/n},L9=/^(?<year>\d{4}):(?<month>\d{2}):(?<date>\d{2}) (?<hour>\d{2}):(?<minute>\d{2}):(?<second>\d{2})$/,R9=async(t,e)=>{if(!(e==="image")||!t.file)return{createdDate:void 0,coordinates:void 0};const{exif:{DateTimeOriginal:r,DateTime:i}={DateTimeOriginal:void 0,DateTime:void 0},gps:{Latitude:o,Longitude:s}={Latitude:void 0,Longitude:void 0}}=await l9.load(t.file,{expanded:!0}).catch(()=>{})??{},l=(r?.description??i?.description)?.match(L9);let u,d;if(l?.groups){const{year:f,month:h,date:p,hour:g,minute:m,second:v}=l.groups,b=new Date(`${f}-${h}-${p}T${g}:${m}:${v}Z`);Number.isNaN(b.getTime())||(u=b)}return typeof o=="number"&&typeof s=="number"&&Number.isFinite(o)&&Number.isFinite(s)&&(d={latitude:Rl(o,7),longitude:Rl(s,7)}),{createdDate:u,coordinates:d}},F9=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})},D9=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})},M9=async(t,e)=>e==="image"?F9(t):D9(t,e),z9=async(t,e,n)=>{const{dimensions:r,duration:i}=await M9(e,n),{createdDate:o,coordinates:s}=await R9(t,n);return{dimensions:r,duration:i,createdDate:o,coordinates:s}},Cu=_b("pdfjs-dist"),U9=`${Cu}/build/pdf.min.mjs`,j9=`${Cu}/build/pdf.worker.min.mjs`,B9={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${Cu}/cmaps/`,iccUrl:`${Cu}/iccs/`,standardFontDataUrl:`${Cu}/standard_fonts/`,wasmUrl:`${Cu}/wasm/`};let Lg;const q9=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{if(!Lg)try{Lg=await import(U9),Lg.GlobalWorkerOptions.workerSrc=j9}catch{throw new Error("Failed to load PDF.js library")}const s=URL.createObjectURL(t),a=new OffscreenCanvas(512,512),l=a.getContext("2d");try{const d=await(await Lg.getDocument({...B9,url:s}).promise).getPage(1),f=d.getViewport({scale:1}),{scale:h}=oT(a,{width:f.width,height:f.height},{width:r,height:i,fit:o});await d.render({canvasContext:l,viewport:h===1?f:d.getViewport({scale:h})}).promise,URL.revokeObjectURL(s)}catch{throw new Error("Failed to render PDF")}return iT(a,{format:e,quality:n})},By=new Set,Ra=async(t,e=0)=>{const{file:n,blobURL:r,name:i}=t;if(r)return fetch(r).then(s=>s.blob());let o;if(n)o=n;else{if(By.has(t.path)&&e<10)return await wt(200),Ra(t,e+1);By.add(t.path);const s=await ie(Ln)?.fetchBlob?.(t);if(!s)throw new Error("Failed to retrieve blob");o=new Blob([s],{type:Ms.getType(i)??s.type})}return t.blobURL=URL.createObjectURL(o),By.delete(t.path),o},qy=async t=>(t.blobURL||await Ra(t),t.blobURL);let Rg;const Hy=async(t,{cacheOnly:e=!1}={})=>{const n=t.name.endsWith(".pdf");if(!(["image","video"].includes(t.kind)||n))return;if(Rg===void 0){const{databaseName:i}=ie(Ln)?.repository??{};Rg=i?new Ho(i,"asset-thumbnails"):null}let r=await Rg?.get(t.sha);if(!r){if(e)return;const i=await Ra(t),o={format:"webp",quality:85,width:512,height:512,fit:"contain"};r=n?await q9(i,o):await yb(i,o),await Rg?.set(t.sha,r)}return URL.createObjectURL(r)},xf=(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:Hp(t.path).find(({collectionName:d})=>d!==void 0)??ie(kl);if(o)return e&&r&&gn(t.path).dirname===gn(Object.values(r.locales)[0].path).dirname?t.name:void 0;const{_baseURL:a="",output:{encode_file_path:l=!1}={}}=ie(Nt);let u=s?t.path.replace(vC(t.folder.internalPath??"",d=>{const f=d.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return f?`(?<${f}>[^/]+)`:un(d)}),i?.replaceAll(/{{(.+?)}}/g,"$<$1>")??""):t.path.replace(t.folder.internalPath??"",i==="/"?"":i??"");if(l&&(u=_C(u)),!(!u.startsWith("/")&&!n))return e?u:`${a}${u}`},Au=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=pw({value:t,entry:e,collectionName:n,fileName:r});if(o)return(i?await Hy(o):await qy(o))??xf(o)},Fg={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},Dg=async t=>{const{kind:e,path:n}=t,{blobBaseURL:r}=ie(Ln)?.repository??{},i=await qy(t),o=xf(t,{allowSpecial:!0,pathOnly:!0})??i;let s={};return["image","video","audio"].includes(e)&&i&&(s=await z9(t,i,e)),{...s,publicURL:xf(t),repoBlobURL:r?`${r}/${n}`:void 0,usedEntries:o?await fw(o):[]}},$u=nt(!1),Xo=nt(),Gy=nt([]),wi=nt([]),Wy=nt([]),u$=t=>ie(Gy).filter(({collectionName:e,filePathMap:n})=>n?Object.values(n).includes(t):li(e)?._file?.fullPathRegEx?.test(t)).sort((e,n)=>n.folderPath?.localeCompare(e.folderPath??"")??0),H9=()=>{try{return ie(ue)("index_file")}catch{return"Index File"}},xi=t=>{const{index_file:e}=t;if(!zf(t)||!e)return;const n=e===!0?{}:e;return{name:n.name??"_index",label:n.label??H9(),icon:n.icon??"home",fields:n.fields,editor:n.editor}},Qo=(t,e)=>{const n=xi(t);return n?e.slug===n.name:!1},G9=t=>{const e=xi(t);return e?!ts(t.name).some(({slug:n})=>n===e.name):!1},W9=/{{(?:year|month|day|hour|minute|second)}}/,js=t=>u$(Object.values(t.locales)[0].path).map(({collectionName:e})=>li(e)).filter(e=>!!e),K9=({dateFieldName:t,fields:e,content:n})=>{const r=t?e.find(({widget:a,name:l})=>a==="datetime"&&l===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 Sl({date:(s?We.utc:We)(i,o).toDate(),timeZone:s?"UTC":void 0})},d$=(t,e,n,r)=>{const{show_preview_links:i=!0,_baseURL:o}=ie(Nt)??{},{slug:s,path:a,content:l}=t.locales[e]??{},{preview_path:u,preview_path_date_field:d,fields:f=[]}=r??n;if(!i||!o||!a||!l||!u)return;const h=Qo(n,t),g=(h?xi(n):void 0)?.fields??f;let m;if(!(W9.test(u)&&(m=K9({dateFieldName:d,fields:g,content:l}),!m)))try{const v=ns(u,{type:"preview_path",collection:n,content:l,locale:e,currentSlug:s,entryFilePath:a,dateTimeParts:m,isIndexFile:h});return`${o.replace(/\/$/,"")}/${v.replace(/^\//,"")}`}catch{return}},V9=(t,e)=>`${ie(Ln)?.repository?.blobBaseURL}/${t.locales[e]?.path}?plain=1`,Mg=t=>!("divider"in t)&&typeof t.file=="string"&&Array.isArray(t.fields),zg=t=>t.filter(e=>Mg(e)),Iu=(t,e)=>{const n=typeof t=="string"?li(t):t;if(!(!n||!("_fileMap"in n)))return n._fileMap[e]},kf=t=>t.label||t.name,Fa=(t,e)=>"_fileMap"in t?Object.values(t._fileMap).filter(({_file:n,_i18n:r})=>n.fullPath===e.locales[r.defaultLocale]?.path):[],Ky=(t,e)=>ie(wi).find(n=>js(n).some(r=>r.name===t&&Fa(r,n).some(i=>i.name===e))),f$=(t,e)=>{if(t&&e){const{collections:n,singletons:r}=ie(Nt);return t==="_singletons"?Array.isArray(r)?zg(r).findIndex(i=>i.name===e):-1:Bl({collections:n}).find(({name:i})=>i===t)?.files?.findIndex(({name:i})=>i===e)??-1}return-1};var Vy,h$;function p$(){if(h$)return Vy;h$=1;const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:l,construct:u}=typeof Reflect<"u"&&Reflect;o||(o=function(_e){return _e}),s||(s=function(_e){return _e}),l||(l=function(_e,Oe,Ce){return _e.apply(Oe,Ce)}),u||(u=function(_e,Oe){return new _e(...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),C=x(Object.prototype.hasOwnProperty),k=x(RegExp.prototype.test),$=S(TypeError);function x(Te){return function(_e){_e instanceof RegExp&&(_e.lastIndex=0);for(var Oe=arguments.length,Ce=new Array(Oe>1?Oe-1:0),De=1;De<Oe;De++)Ce[De-1]=arguments[De];return l(Te,_e,Ce)}}function S(Te){return function(){for(var _e=arguments.length,Oe=new Array(_e),Ce=0;Ce<_e;Ce++)Oe[Ce]=arguments[Ce];return u(Te,Oe)}}function A(Te,_e){let Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;e&&e(Te,null);let Ce=_e.length;for(;Ce--;){let De=_e[Ce];if(typeof De=="string"){const Je=Oe(De);Je!==De&&(n(_e)||(_e[Ce]=Je),De=Je)}Te[De]=!0}return Te}function I(Te){for(let _e=0;_e<Te.length;_e++)C(Te,_e)||(Te[_e]=null);return Te}function P(Te){const _e=a(null);for(const[Oe,Ce]of t(Te))C(Te,Oe)&&(Array.isArray(Ce)?_e[Oe]=I(Ce):Ce&&typeof Ce=="object"&&Ce.constructor===Object?_e[Oe]=P(Ce):_e[Oe]=Ce);return _e}function N(Te,_e){for(;Te!==null;){const Ce=i(Te,_e);if(Ce){if(Ce.get)return x(Ce.get);if(typeof Ce.value=="function")return x(Ce.value)}Te=r(Te)}function Oe(){return null}return Oe}const L=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","section","select","shadow","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"]),B=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=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"]),W=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"]),Z=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"]),J=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=o(["#text"]),G=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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Y=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"]),ee=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"]),se=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),X=s(/\$\{[\w\W]*/gm),ne=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),de=s(/^aria-[\-\w]+$/),pe=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fe=s(/^(?:\w+script|data):/i),he=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ge=s(/^html$/i),ye=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var xe=Object.freeze({__proto__:null,ARIA_ATTR:de,ATTR_WHITESPACE:he,CUSTOM_ELEMENT:ye,DATA_ATTR:ne,DOCTYPE_NAME:ge,ERB_EXPR:re,IS_ALLOWED_URI:pe,IS_SCRIPT_OR_DATA:fe,MUSTACHE_EXPR:oe,TMPLIT_EXPR:X});const ve={element:1,text:3,progressingInstruction:7,comment:8,document:9},ze=function(){return typeof window>"u"?null:window},Me=function(_e,Oe){if(typeof _e!="object"||typeof _e.createPolicy!="function")return null;let Ce=null;const De="data-tt-policy-suffix";Oe&&Oe.hasAttribute(De)&&(Ce=Oe.getAttribute(De));const Je="dompurify"+(Ce?"#"+Ce:"");try{return _e.createPolicy(Je,{createHTML(lt){return lt},createScriptURL(lt){return lt}})}catch{return console.warn("TrustedTypes policy "+Je+" could not be created."),null}},Ae=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function $e(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ze();const _e=ht=>$e(ht);if(_e.version="3.2.6",_e.removed=[],!Te||!Te.document||Te.document.nodeType!==ve.document||!Te.Element)return _e.isSupported=!1,_e;let{document:Oe}=Te;const Ce=Oe,De=Ce.currentScript,{DocumentFragment:Je,HTMLTemplateElement:lt,Node:gt,Element:Ze,NodeFilter:Ye,NamedNodeMap:Se=Te.NamedNodeMap||Te.MozNamedAttrMap,HTMLFormElement:Ve,DOMParser:ot,trustedTypes:kt}=Te,st=Ze.prototype,mt=N(st,"cloneNode"),Kt=N(st,"remove"),xn=N(st,"nextSibling"),Lt=N(st,"childNodes"),zt=N(st,"parentNode");if(typeof lt=="function"){const ht=Oe.createElement("template");ht.content&&ht.content.ownerDocument&&(Oe=ht.content.ownerDocument)}let it,Ct="";const{implementation:Rt,createNodeIterator:Vn,createDocumentFragment:yn,getElementsByTagName:Ar}=Oe,{importNode:vt}=Ce;let _t=Ae();_e.isSupported=typeof t=="function"&&typeof zt=="function"&&Rt&&Rt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:kn,ERB_EXPR:$n,TMPLIT_EXPR:Ur,DATA_ATTR:jr,ARIA_ATTR:br,IS_SCRIPT_OR_DATA:Br,ATTR_WHITESPACE:qr,CUSTOM_ELEMENT:dr}=xe;let{IS_ALLOWED_URI:fr}=xe,cn=null;const Fn=A({},[...L,...B,...q,...Z,...H]);let Qt=null;const yr=A({},[...G,...Y,...ee,...se]);let qt=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}})),$r=null,an=null,pt=!0,It=!0,Dn=!1,hr=!0,Po=!1,Oo=!0,Mn=!1,Hr=!1,Wi=!1,ao=!1,Gr=!1,zn=!1,pr=!0,Ci=!1;const sa="user-content-";let Sc=!0,aa=!1,lo={},bs=null;const ys=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 ws=null;const il=A({},["audio","video","img","source","image","track"]);let Ec=null;const xd=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nv="http://www.w3.org/1998/Math/MathML",Lv="http://www.w3.org/2000/svg",la="http://www.w3.org/1999/xhtml";let kd=la,j1=!1,B1=null;const Epe=A({},[Nv,Lv,la],v);let Rv=A({},["mi","mo","mn","ms","mtext"]),Fv=A({},["annotation-xml"]);const Tpe=A({},["title","style","font","a","script"]);let Mh=null;const Cpe=["application/xhtml+xml","text/html"],Ape="text/html";let Ir=null,Sd=null;const $pe=Oe.createElement("form"),VR=function(ae){return ae instanceof RegExp||ae instanceof Function},q1=function(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Sd&&Sd===ae)){if((!ae||typeof ae!="object")&&(ae={}),ae=P(ae),Mh=Cpe.indexOf(ae.PARSER_MEDIA_TYPE)===-1?Ape:ae.PARSER_MEDIA_TYPE,Ir=Mh==="application/xhtml+xml"?v:m,cn=C(ae,"ALLOWED_TAGS")?A({},ae.ALLOWED_TAGS,Ir):Fn,Qt=C(ae,"ALLOWED_ATTR")?A({},ae.ALLOWED_ATTR,Ir):yr,B1=C(ae,"ALLOWED_NAMESPACES")?A({},ae.ALLOWED_NAMESPACES,v):Epe,Ec=C(ae,"ADD_URI_SAFE_ATTR")?A(P(xd),ae.ADD_URI_SAFE_ATTR,Ir):xd,ws=C(ae,"ADD_DATA_URI_TAGS")?A(P(il),ae.ADD_DATA_URI_TAGS,Ir):il,bs=C(ae,"FORBID_CONTENTS")?A({},ae.FORBID_CONTENTS,Ir):ys,$r=C(ae,"FORBID_TAGS")?A({},ae.FORBID_TAGS,Ir):P({}),an=C(ae,"FORBID_ATTR")?A({},ae.FORBID_ATTR,Ir):P({}),lo=C(ae,"USE_PROFILES")?ae.USE_PROFILES:!1,pt=ae.ALLOW_ARIA_ATTR!==!1,It=ae.ALLOW_DATA_ATTR!==!1,Dn=ae.ALLOW_UNKNOWN_PROTOCOLS||!1,hr=ae.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Po=ae.SAFE_FOR_TEMPLATES||!1,Oo=ae.SAFE_FOR_XML!==!1,Mn=ae.WHOLE_DOCUMENT||!1,ao=ae.RETURN_DOM||!1,Gr=ae.RETURN_DOM_FRAGMENT||!1,zn=ae.RETURN_TRUSTED_TYPE||!1,Wi=ae.FORCE_BODY||!1,pr=ae.SANITIZE_DOM!==!1,Ci=ae.SANITIZE_NAMED_PROPS||!1,Sc=ae.KEEP_CONTENT!==!1,aa=ae.IN_PLACE||!1,fr=ae.ALLOWED_URI_REGEXP||pe,kd=ae.NAMESPACE||la,Rv=ae.MATHML_TEXT_INTEGRATION_POINTS||Rv,Fv=ae.HTML_INTEGRATION_POINTS||Fv,qt=ae.CUSTOM_ELEMENT_HANDLING||{},ae.CUSTOM_ELEMENT_HANDLING&&VR(ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(qt.tagNameCheck=ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&VR(ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(qt.attributeNameCheck=ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&typeof ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(qt.allowCustomizedBuiltInElements=ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Po&&(It=!1),Gr&&(ao=!0),lo&&(cn=A({},H),Qt=[],lo.html===!0&&(A(cn,L),A(Qt,G)),lo.svg===!0&&(A(cn,B),A(Qt,Y),A(Qt,se)),lo.svgFilters===!0&&(A(cn,q),A(Qt,Y),A(Qt,se)),lo.mathMl===!0&&(A(cn,Z),A(Qt,ee),A(Qt,se))),ae.ADD_TAGS&&(cn===Fn&&(cn=P(cn)),A(cn,ae.ADD_TAGS,Ir)),ae.ADD_ATTR&&(Qt===yr&&(Qt=P(Qt)),A(Qt,ae.ADD_ATTR,Ir)),ae.ADD_URI_SAFE_ATTR&&A(Ec,ae.ADD_URI_SAFE_ATTR,Ir),ae.FORBID_CONTENTS&&(bs===ys&&(bs=P(bs)),A(bs,ae.FORBID_CONTENTS,Ir)),Sc&&(cn["#text"]=!0),Mn&&A(cn,["html","head","body"]),cn.table&&(A(cn,["tbody"]),delete $r.tbody),ae.TRUSTED_TYPES_POLICY){if(typeof ae.TRUSTED_TYPES_POLICY.createHTML!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ae.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');it=ae.TRUSTED_TYPES_POLICY,Ct=it.createHTML("")}else it===void 0&&(it=Me(kt,De)),it!==null&&typeof Ct=="string"&&(Ct=it.createHTML(""));o&&o(ae),Sd=ae}},YR=A({},[...B,...q,...W]),ZR=A({},[...Z,...J]),Ipe=function(ae){let Be=zt(ae);(!Be||!Be.tagName)&&(Be={namespaceURI:kd,tagName:"template"});const dt=m(ae.tagName),Un=m(Be.tagName);return B1[ae.namespaceURI]?ae.namespaceURI===Lv?Be.namespaceURI===la?dt==="svg":Be.namespaceURI===Nv?dt==="svg"&&(Un==="annotation-xml"||Rv[Un]):!!YR[dt]:ae.namespaceURI===Nv?Be.namespaceURI===la?dt==="math":Be.namespaceURI===Lv?dt==="math"&&Fv[Un]:!!ZR[dt]:ae.namespaceURI===la?Be.namespaceURI===Lv&&!Fv[Un]||Be.namespaceURI===Nv&&!Rv[Un]?!1:!ZR[dt]&&(Tpe[dt]||!YR[dt]):!!(Mh==="application/xhtml+xml"&&B1[ae.namespaceURI]):!1},xs=function(ae){p(_e.removed,{element:ae});try{zt(ae).removeChild(ae)}catch{Kt(ae)}},Ed=function(ae,Be){try{p(_e.removed,{attribute:Be.getAttributeNode(ae),from:Be})}catch{p(_e.removed,{attribute:null,from:Be})}if(Be.removeAttribute(ae),ae==="is")if(ao||Gr)try{xs(Be)}catch{}else try{Be.setAttribute(ae,"")}catch{}},JR=function(ae){let Be=null,dt=null;if(Wi)ae="<remove></remove>"+ae;else{const wr=b(ae,/^[\r\n\t ]+/);dt=wr&&wr[0]}Mh==="application/xhtml+xml"&&kd===la&&(ae='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ae+"</body></html>");const Un=it?it.createHTML(ae):ae;if(kd===la)try{Be=new ot().parseFromString(Un,Mh)}catch{}if(!Be||!Be.documentElement){Be=Rt.createDocument(kd,"template",null);try{Be.documentElement.innerHTML=j1?Ct:Un}catch{}}const ei=Be.body||Be.documentElement;return ae&&dt&&ei.insertBefore(Oe.createTextNode(dt),ei.childNodes[0]||null),kd===la?Ar.call(Be,Mn?"html":"body")[0]:Mn?Be.documentElement:ei},XR=function(ae){return Vn.call(ae.ownerDocument||ae,ae,Ye.SHOW_ELEMENT|Ye.SHOW_COMMENT|Ye.SHOW_TEXT|Ye.SHOW_PROCESSING_INSTRUCTION|Ye.SHOW_CDATA_SECTION,null)},H1=function(ae){return ae instanceof Ve&&(typeof ae.nodeName!="string"||typeof ae.textContent!="string"||typeof ae.removeChild!="function"||!(ae.attributes instanceof Se)||typeof ae.removeAttribute!="function"||typeof ae.setAttribute!="function"||typeof ae.namespaceURI!="string"||typeof ae.insertBefore!="function"||typeof ae.hasChildNodes!="function")},QR=function(ae){return typeof gt=="function"&&ae instanceof gt};function ca(ht,ae,Be){d(ht,dt=>{dt.call(_e,ae,Be,Sd)})}const eF=function(ae){let Be=null;if(ca(_t.beforeSanitizeElements,ae,null),H1(ae))return xs(ae),!0;const dt=Ir(ae.nodeName);if(ca(_t.uponSanitizeElement,ae,{tagName:dt,allowedTags:cn}),Oo&&ae.hasChildNodes()&&!QR(ae.firstElementChild)&&k(/<[/\w!]/g,ae.innerHTML)&&k(/<[/\w!]/g,ae.textContent)||ae.nodeType===ve.progressingInstruction||Oo&&ae.nodeType===ve.comment&&k(/<[/\w]/g,ae.data))return xs(ae),!0;if(!cn[dt]||$r[dt]){if(!$r[dt]&&nF(dt)&&(qt.tagNameCheck instanceof RegExp&&k(qt.tagNameCheck,dt)||qt.tagNameCheck instanceof Function&&qt.tagNameCheck(dt)))return!1;if(Sc&&!bs[dt]){const Un=zt(ae)||ae.parentNode,ei=Lt(ae)||ae.childNodes;if(ei&&Un){const wr=ei.length;for(let Ai=wr-1;Ai>=0;--Ai){const ua=mt(ei[Ai],!0);ua.__removalCount=(ae.__removalCount||0)+1,Un.insertBefore(ua,xn(ae))}}}return xs(ae),!0}return ae instanceof Ze&&!Ipe(ae)||(dt==="noscript"||dt==="noembed"||dt==="noframes")&&k(/<\/no(script|embed|frames)/i,ae.innerHTML)?(xs(ae),!0):(Po&&ae.nodeType===ve.text&&(Be=ae.textContent,d([kn,$n,Ur],Un=>{Be=y(Be,Un," ")}),ae.textContent!==Be&&(p(_e.removed,{element:ae.cloneNode()}),ae.textContent=Be)),ca(_t.afterSanitizeElements,ae,null),!1)},tF=function(ae,Be,dt){if(pr&&(Be==="id"||Be==="name")&&(dt in Oe||dt in $pe))return!1;if(!(It&&!an[Be]&&k(jr,Be))){if(!(pt&&k(br,Be))){if(!Qt[Be]||an[Be]){if(!(nF(ae)&&(qt.tagNameCheck instanceof RegExp&&k(qt.tagNameCheck,ae)||qt.tagNameCheck instanceof Function&&qt.tagNameCheck(ae))&&(qt.attributeNameCheck instanceof RegExp&&k(qt.attributeNameCheck,Be)||qt.attributeNameCheck instanceof Function&&qt.attributeNameCheck(Be))||Be==="is"&&qt.allowCustomizedBuiltInElements&&(qt.tagNameCheck instanceof RegExp&&k(qt.tagNameCheck,dt)||qt.tagNameCheck instanceof Function&&qt.tagNameCheck(dt))))return!1}else if(!Ec[Be]){if(!k(fr,y(dt,qr,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&ae!=="script"&&w(dt,"data:")===0&&ws[ae])){if(!(Dn&&!k(Br,y(dt,qr,"")))){if(dt)return!1}}}}}}return!0},nF=function(ae){return ae!=="annotation-xml"&&b(ae,dr)},rF=function(ae){ca(_t.beforeSanitizeAttributes,ae,null);const{attributes:Be}=ae;if(!Be||H1(ae))return;const dt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Qt,forceKeepAttr:void 0};let Un=Be.length;for(;Un--;){const ei=Be[Un],{name:wr,namespaceURI:Ai,value:ua}=ei,zh=Ir(wr),G1=ua;let ti=wr==="value"?G1:E(G1);if(dt.attrName=zh,dt.attrValue=ti,dt.keepAttr=!0,dt.forceKeepAttr=void 0,ca(_t.uponSanitizeAttribute,ae,dt),ti=dt.attrValue,Ci&&(zh==="id"||zh==="name")&&(Ed(wr,ae),ti=sa+ti),Oo&&k(/((--!?|])>)|<\/(style|title)/i,ti)){Ed(wr,ae);continue}if(dt.forceKeepAttr)continue;if(!dt.keepAttr){Ed(wr,ae);continue}if(!hr&&k(/\/>/i,ti)){Ed(wr,ae);continue}Po&&d([kn,$n,Ur],oF=>{ti=y(ti,oF," ")});const iF=Ir(ae.nodeName);if(!tF(iF,zh,ti)){Ed(wr,ae);continue}if(it&&typeof kt=="object"&&typeof kt.getAttributeType=="function"&&!Ai)switch(kt.getAttributeType(iF,zh)){case"TrustedHTML":{ti=it.createHTML(ti);break}case"TrustedScriptURL":{ti=it.createScriptURL(ti);break}}if(ti!==G1)try{Ai?ae.setAttributeNS(Ai,wr,ti):ae.setAttribute(wr,ti),H1(ae)?xs(ae):h(_e.removed)}catch{Ed(wr,ae)}}ca(_t.afterSanitizeAttributes,ae,null)},Ppe=function ht(ae){let Be=null;const dt=XR(ae);for(ca(_t.beforeSanitizeShadowDOM,ae,null);Be=dt.nextNode();)ca(_t.uponSanitizeShadowNode,Be,null),eF(Be),rF(Be),Be.content instanceof Je&&ht(Be.content);ca(_t.afterSanitizeShadowDOM,ae,null)};return _e.sanitize=function(ht){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,dt=null,Un=null,ei=null;if(j1=!ht,j1&&(ht="<!-->"),typeof ht!="string"&&!QR(ht))if(typeof ht.toString=="function"){if(ht=ht.toString(),typeof ht!="string")throw $("dirty is not a string, aborting")}else throw $("toString is not a function");if(!_e.isSupported)return ht;if(Hr||q1(ae),_e.removed=[],typeof ht=="string"&&(aa=!1),aa){if(ht.nodeName){const ua=Ir(ht.nodeName);if(!cn[ua]||$r[ua])throw $("root node is forbidden and cannot be sanitized in-place")}}else if(ht instanceof gt)Be=JR("<!---->"),dt=Be.ownerDocument.importNode(ht,!0),dt.nodeType===ve.element&&dt.nodeName==="BODY"||dt.nodeName==="HTML"?Be=dt:Be.appendChild(dt);else{if(!ao&&!Po&&!Mn&&ht.indexOf("<")===-1)return it&&zn?it.createHTML(ht):ht;if(Be=JR(ht),!Be)return ao?null:zn?Ct:""}Be&&Wi&&xs(Be.firstChild);const wr=XR(aa?ht:Be);for(;Un=wr.nextNode();)eF(Un),rF(Un),Un.content instanceof Je&&Ppe(Un.content);if(aa)return ht;if(ao){if(Gr)for(ei=yn.call(Be.ownerDocument);Be.firstChild;)ei.appendChild(Be.firstChild);else ei=Be;return(Qt.shadowroot||Qt.shadowrootmode)&&(ei=vt.call(Ce,ei,!0)),ei}let Ai=Mn?Be.outerHTML:Be.innerHTML;return Mn&&cn["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&k(ge,Be.ownerDocument.doctype.name)&&(Ai="<!DOCTYPE "+Be.ownerDocument.doctype.name+`>
150
+ `,_g=4,yo=4,ku=0,Ia=_g,Lr=_g+yo,vy="XML:com.adobe.xmp\0",_y="tEXt",Ol="iTXt",bg="zTXt",VC="pHYs",YC="tIME",h8="eXIf",p8="iCCP";function g8(t){return!!t&&At(t,0,my.length)===my}function m8(t,e){const r={hasAppMarkers:!1};let i=my.length;for(;i+_g+yo<=t.byteLength;){if(v8(t,i))r.hasAppMarkers=!0,r.pngHeaderOffset=i+Lr;else if(_8(t,i)){const o=k8(t,i);o!==void 0&&(r.hasAppMarkers=!0,r.xmpChunks=[{dataOffset:o,length:t.getUint32(i+ku)-(o-(i+Lr))}])}else if(b8(t,i,e)){r.hasAppMarkers=!0;const o=At(t,i+Ia,yo);r.pngTextChunks||(r.pngTextChunks=[]),r.pngTextChunks.push({length:t.getUint32(i+ku),type:o,offset:i+Lr})}else if(y8(t,i))r.hasAppMarkers=!0,r.tiffHeaderOffset=i+Lr;else if(e&&w8(t,i)){r.hasAppMarkers=!0;const o=t.getUint32(i+ku),s=i+Lr,{profileName:a,compressionMethod:l,compressedProfileOffset:u}=S8(t,s);r.iccChunks||(r.iccChunks=[]),r.iccChunks.push({offset:u,length:o-(u-s),chunkNumber:1,chunksTotal:1,profileName:a,compressionMethod:l})}else x8(t,i)&&(r.hasAppMarkers=!0,r.pngChunkOffsets||(r.pngChunkOffsets=[]),r.pngChunkOffsets.push(i+ku));i+=t.getUint32(i+ku)+_g+yo+4}return r}function v8(t,e){return At(t,e+Ia,yo)==="IHDR"}function _8(t,e){return At(t,e+Ia,yo)===Ol&&At(t,e+Lr,vy.length)===vy}function b8(t,e,n){const r=At(t,e+Ia,yo);return r===_y||r===Ol||r===bg&&n}function y8(t,e){return At(t,e+Ia,yo)===h8}function w8(t,e){return At(t,e+Ia,yo)===p8}function x8(t,e){const n=[VC,YC],r=At(t,e+Ia,yo);return n.includes(r)}function k8(t,e){e+=Lr+vy.length+1+1;let i=0;for(;i<2&&e<t.byteLength;)t.getUint8(e)===0&&i++,e++;if(!(i<2))return e}function S8(t,e){const i=xu(t,e);e+=i.length+1;const o=t.getUint8(e);return e+=1,{profileName:i,compressionMethod:o,compressedProfileOffset:e}}function E8(t,e){return t.getUint32(e+4)}function T8(t,e,n,r){const{offsets:o,sizes:s}=C8(e,n+3),a=t.getUint8(o.offsetSize)>>4;s.item.extent.extentOffset=a;const l=t.getUint8(o.lengthSize)&15;s.item.extent.extentLength=l;const u=t.getUint8(o.baseOffsetSize)>>4;s.item.baseOffset=u;const d=A8(t,o.indexSize,e);s.item.extent.extentIndex=d!==void 0?d:0;const f=$8(t,o.itemCount,e);return{type:"iloc",items:I8(t,e,o,s,a,l,d,f),length:r}}function C8(t,e){const n={item:{dataReferenceIndex:2,extentCount:2,extent:{}}};t<2?(n.itemCount=2,n.item.itemId=2):t===2&&(n.itemCount=4,n.item.itemId=4),t===1||t===2?n.item.constructionMethod=2:n.item.constructionMethod=0;const r={offsetSize:e,lengthSize:e,baseOffsetSize:e+1,indexSize:e+1};return r.itemCount=e+2,r.items=r.itemCount+n.itemCount,r.item={itemId:0},r.item.constructionMethod=r.item.itemId+n.item.itemId,r.item.dataReferenceIndex=r.item.constructionMethod+n.item.constructionMethod,{offsets:r,sizes:n}}function A8(t,e,n){if(n===1||n===2)return t.getUint8(e)&15}function $8(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function I8(t,e,n,r,i,o,s,a){if(a===void 0)return[];const l=[];let u=n.items;for(let d=0;d<a;d++){const f={extents:[]};f.itemId=P8(t,u,e),u+=r.item.itemId,f.constructionMethod=e===1||e===2?t.getUint16(u)&15:void 0,u+=r.item.constructionMethod,f.dataReferenceIndex=t.getUint16(u),u+=r.item.dataReferenceIndex,f.baseOffset=yg(t,u,r.item.baseOffset),u+=r.item.baseOffset,f.extentCount=t.getUint16(u),u+=r.item.extentCount;for(let h=0;h<f.extentCount;h++){const p={};p.extentIndex=O8(t,e,u,s),u+=r.item.extent.extentIndex,p.extentOffset=yg(t,u,i),u+=r.item.extent.extentOffset,p.extentLength=yg(t,u,o),u+=r.item.extent.extentLength,f.extents.push(p)}l.push(f)}return l}function P8(t,e,n){if(n<2)return t.getUint16(e);if(n===2)return t.getUint32(e)}function O8(t,e,n,r){if((e===1||e===2)&&r>0)return yg(t,n,r)}function yg(t,e,n){return n===4?t.getUint32(e):n===8?(console.warn("This file uses an 8-bit offset which is currently not supported by ExifReader. Contact the maintainer to get it fixed."),E8(t,e)):0}const N8=1718909296,L8=1768977008,R8=1835365473,F8=1768714083,D8=1768517222,M8=1768842853,z8=1768973167,U8=1668246642,ZC=1165519206,by=1835625829,j8=1970432288;function wg(t,e){const{length:o,contentOffset:s}=B8(t,e);if(o<8)return;const a=t.getUint32(e+4);if(a===N8)return Q8(t,s,o);if(a===L8)return e5(t,e,s,o);if(a===z8)return t5(t,e,s,o);if(a===U8)return n5(t,s,o);const l=t.getUint8(s);return a===R8?i5(t,e,s+1,o):a===F8?T8(t,l,s+1,o):a===D8?o5(t,e,l,s+1,o):a===M8?a5(t,e,l,s+1,o):{type:void 0,length:o}}function B8(t,e){const s=t.getUint32(e);return q8(s)?{length:t.byteLength-e,contentOffset:e+4+4}:H8(s)&&G8(t,e)?{length:t.getUint32(e+12),contentOffset:e+4+4+8}:{length:s,contentOffset:e+4+4}}function q8(t){return t===0}function H8(t){return t===1}function G8(t,e){return t.getUint32(e+8)===0}function JC(t){{const e={},n=W8(t);return n?(e.tiffHeaderOffset=K8(t,n),e.xmpChunks=Z8(n),e.iccChunks=X8(n),e.hasAppMarkers=e.tiffHeaderOffset!==void 0||e.xmpChunks!==void 0||e.iccChunks!==void 0,e):{hasAppMarkers:!1}}}function W8(t){let r=0;for(;r+4+4<=t.byteLength;){const i=wg(t,r);if(i===void 0)break;if(i.type==="meta")return i;r+=i.length}}function K8(t,e){try{const n=V8(e).itemId,r=yy(e,n),i=r.baseOffset+r.extents[0].extentOffset;return Y8(t,i)}catch{return}}function V8(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===ZC)}function yy(t,e){return t.subBoxes.find(n=>n.type==="iloc").items.find(n=>n.itemId===e)}function Y8(t,e){return e+4+t.getUint32(e)}function Z8(t){try{const e=J8(t).itemId,n=yy(t,e),r=yy(t,e).extents[0];return[{dataOffset:n.baseOffset+r.extentOffset,length:r.extentLength}]}catch{return}}function J8(t){return t.subBoxes.find(e=>e.type==="iinf").itemInfos.find(e=>e.itemType===by&&e.contentType==="application/rdf+xml")}function X8(t){try{const e=t.subBoxes.find(n=>n.type==="iprp").subBoxes.find(n=>n.type==="ipco").properties.find(n=>n.type==="colr").icc;if(e)return[e]}catch{}}function Q8(t,e,n){return{type:"ftyp",majorBrand:At(t,e,4),length:n}}function e5(t,e,n,r){return{type:"iprp",subBoxes:xg(t,n,r-(n-e)),length:r}}function t5(t,e,n,r){return{type:"ipco",properties:xg(t,n,r-(n-e)),length:r}}function n5(t,e,n){return{type:"colr",icc:r5(t,e),length:n}}function r5(t,e){const r=At(t,e,4);if(!(r!=="prof"&&r!=="rICC"))return{offset:e+4,length:t.getUint32(e+4),chunkNumber:1,chunksTotal:1}}function i5(t,e,n,r){return{type:"meta",subBoxes:xg(t,n+3,r-(n+3-e)),length:r}}function xg(t,e,n){const r=[ZC,by],i=[];let o=e;for(;o<e+n;){const s=wg(t,o);if(s===void 0)break;s.type!==void 0&&(s.itemType===void 0||r.indexOf(s.itemType)!==-1)&&i.push(s),o+=s.length}return i}function o5(t,e,n,r,i){const{offsets:o}=s5(n,r);return{type:"iinf",itemInfos:xg(t,o.itemInfos,i-(o.itemInfos-e)),length:i}}function s5(t,e){const r={entryCount:e+3},i={};return t===0?i.entryCount=2:i.entryCount=4,r.itemInfos=r.entryCount+i.entryCount,{offsets:r}}function a5(t,e,n,r,i){r+=3;const s={type:"infe",length:i};return(n===0||n===1)&&(s.itemId=t.getUint16(r),r+=2,s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemName=xu(t,r),r+=s.itemName.length+1),n>=2&&(n===2?(s.itemId=t.getUint16(r),r+=2):n===3&&(s.itemId=t.getUint32(r),r+=4),s.itemProtectionIndex=t.getUint16(r),r+=2,s.itemType=t.getUint32(r),r+=4,s.itemName=xu(t,r),r+=s.itemName.length+1,s.itemType===by?(s.contentType=xu(t,r),r+=s.contentType.length+1,e+i>r&&(s.contentEncoding=xu(t,r),r+=s.contentEncoding.length+1)):s.itemType===j8&&(s.itemUri=xu(t,r),r+=s.itemUri.length+1)),s}const XC={isHeicFile:l5,findHeicOffsets:c5};function l5(t){if(!t)return!1;const e=["heic","heix","hevc","hevx","heim","heis","hevm","hevs","mif1"];try{const n=wg(t,0);return n&&e.indexOf(n.majorBrand)!==-1}catch{return!1}}function c5(t){return JC(t)}const QC={isAvifFile:u5,findAvifOffsets:d5};function u5(t){if(!t)return!1;try{const e=wg(t,0);return e&&e.majorBrand==="avif"}catch{return!1}}function d5(t){return JC(t)}const eA={isWebpFile:f5,findOffsets:h5};function f5(t){const n="RIFF",i="WEBP";return!!t&&At(t,0,n.length)===n&&At(t,8,i.length)===i}function h5(t){const r="Exif\0\0";let o=12,s=!1,a,l,u,d;for(;o+8<t.byteLength;){const f=At(t,o,4),h=t.getUint32(o+4,!0);f==="EXIF"?(s=!0,At(t,o+8,r.length)===r?a=o+8+r.length:a=o+8):f==="XMP "?(s=!0,l=[{dataOffset:o+8,length:h}]):f==="ICCP"?(s=!0,u=[{offset:o+8,length:h,chunkNumber:1,chunksTotal:1}]):f==="VP8X"&&(s=!0,d=o+8),o+=8+(h%2===0?h:h+1)}return{hasAppMarkers:s,tiffHeaderOffset:a,xmpChunks:l,iccChunks:u,vp8xChunkOffset:d}}const tA={isGifFile:m5,findOffsets:v5},p5=6,g5=["GIF87a","GIF89a"];function m5(t){return!!t&&g5.includes(At(t,0,p5))}function v5(){return{gifHeaderOffset:0}}const nA={isXMLFile:_5,findOffsets:b5},rA=0,iA="<?xpacket begin";function _5(t){return!!t&&At(t,rA,iA.length)===iA}function b5(t){const e=[];return e.push({dataOffset:rA,length:t.byteLength}),{xmpChunks:e}}const y5={parseAppMarkers:w5};function w5(t,e){if(IC.isTiffFile(t))return Pa(IC.findTiffOffsets(),"tiff","TIFF");if(PC.isJpegFile(t))return Pa(PC.findJpegOffsets(t),"jpeg","JPEG");if(KC.isPngFile(t))return Pa(KC.findPngOffsets(t,e),"png","PNG");if(XC.isHeicFile(t))return Pa(XC.findHeicOffsets(t),"heic","HEIC");if(QC.isAvifFile(t))return Pa(QC.findAvifOffsets(t),"avif","AVIF");if(eA.isWebpFile(t))return Pa(eA.findOffsets(t),"webp","WebP");if(tA.isGifFile(t))return Pa(tA.findOffsets(t),"gif","GIF");if(nA.isXMLFile(t))return Pa(nA.findOffsets(t),"xml","XML");throw new Error("Invalid image format")}function Pa(t,e,n){return Ot({},t,{fileType:{value:e,description:n}})}const Et={ApertureValue:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2),ColorSpace(t){return t===1?"sRGB":t===65535?"Uncalibrated":"Unknown"},ComponentsConfiguration(t){return t.map(e=>{if(e===49)return"Y";if(e===50)return"Cb";if(e===51)return"Cr";if(e===52)return"R";if(e===53)return"G";if(e===54)return"B"}).join("")},Contrast(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},CustomRendered(t){return t===0?"Normal process":t===1?"Custom process":"Unknown"},ExposureMode(t){return t===0?"Auto exposure":t===1?"Manual exposure":t===2?"Auto bracket":"Unknown"},ExposureProgram(t){return t===0?"Undefined":t===1?"Manual":t===2?"Normal program":t===3?"Aperture priority":t===4?"Shutter priority":t===5?"Creative program":t===6?"Action program":t===7?"Portrait mode":t===8?"Landscape mode":t===9?"Bulb":"Unknown"},ExposureTime(t){if(t[0]/t[1]>.25){const e=t[0]/t[1];return Number.isInteger(e)?""+e:e.toFixed(1)}return t[0]!==0?`1/${Math.round(t[1]/t[0])}`:`0/${t[1]}`},FNumber:t=>`f/${Number(t[0]/t[1]).toFixed(1)}`,FocalLength:t=>t[0]/t[1]+" mm",FocalPlaneResolutionUnit(t){return t===2?"inches":t===3?"centimeters":t===4?"millimeters":"Unknown"},LightSource:t=>t===1?"Daylight":t===2?"Fluorescent":t===3?"Tungsten (incandescent light)":t===4?"Flash":t===9?"Fine weather":t===10?"Cloudy weather":t===11?"Shade":t===12?"Daylight fluorescent (D 5700 – 7100K)":t===13?"Day white fluorescent (N 4600 – 5400K)":t===14?"Cool white fluorescent (W 3900 – 4500K)":t===15?"White fluorescent (WW 3200 – 3700K)":t===17?"Standard light A":t===18?"Standard light B":t===19?"Standard light C":t===20?"D55":t===21?"D65":t===22?"D75":t===23?"D50":t===24?"ISO studio tungsten":t===255?"Other light source":"Unknown",MeteringMode(t){return t===1?"Average":t===2?"CenterWeightedAverage":t===3?"Spot":t===4?"MultiSpot":t===5?"Pattern":t===6?"Partial":t===255?"Other":"Unknown"},ResolutionUnit(t){return t===2?"inches":t===3?"centimeters":"Unknown"},Saturation(t){return t===0?"Normal":t===1?"Low saturation":t===2?"High saturation":"Unknown"},FocalLengthIn35mmFilm(t){return t===0?"Unknown":t+" mm"},SceneCaptureType(t){return t===0?"Standard":t===1?"Landscape":t===2?"Portrait":t===3?"Night scene":"Unknown"},Sharpness(t){return t===0?"Normal":t===1?"Soft":t===2?"Hard":"Unknown"},ShutterSpeedValue(t){const e=Math.pow(2,t[0]/t[1]);return e<=1?`${Math.round(1/e)}`:`1/${Math.round(e)}`},WhiteBalance(t){return t===0?"Auto white balance":t===1?"Manual white balance":"Unknown"},XResolution:t=>""+Math.round(t[0]/t[1]),YResolution:t=>""+Math.round(t[0]/t[1])},oA={11:"ProcessingSoftware",254:{name:"SubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image",3:"Single page of multi-page reduced-resolution image",4:"Transparency mask",5:"Transparency mask of reduced-resolution image",6:"Transparency mask of multi-page image",7:"Transparency mask of reduced-resolution multi-page image",65537:"Alternate reduced-resolution image",4294967295:"Invalid"})[t]||"Unknown"},255:{name:"OldSubfileType",description:t=>({0:"Full-resolution image",1:"Reduced-resolution image",2:"Single page of multi-page image"})[t]||"Unknown"},256:"ImageWidth",257:"ImageLength",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",263:{name:"Thresholding",description:t=>({1:"No dithering or halftoning",2:"Ordered dither or halfton",3:"Randomized dither"})[t]||"Unknown"},264:"CellWidth",265:"CellLength",266:{name:"FillOrder",description:t=>({1:"Normal",2:"Reversed"})[t]||"Unknown"},269:"DocumentName",270:"ImageDescription",271:"Make",272:"Model",273:"StripOffsets",274:{name:"Orientation",description:t=>t===1?"top-left":t===2?"top-right":t===3?"bottom-right":t===4?"bottom-left":t===5?"left-top":t===6?"right-top":t===7?"right-bottom":t===8?"left-bottom":"Undefined"},277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",280:"MinSampleValue",281:"MaxSampleValue",282:{name:"XResolution",description:Et.XResolution},283:{name:"YResolution",description:Et.YResolution},284:"PlanarConfiguration",285:"PageName",286:{name:"XPosition",description:t=>""+Math.round(t[0]/t[1])},287:{name:"YPosition",description:t=>""+Math.round(t[0]/t[1])},290:{name:"GrayResponseUnit",description:t=>({1:"0.1",2:"0.001",3:"0.0001",4:"1e-05",5:"1e-06"})[t]||"Unknown"},296:{name:"ResolutionUnit",description:Et.ResolutionUnit},297:"PageNumber",301:"TransferFunction",305:"Software",306:"DateTime",315:"Artist",316:"HostComputer",317:"Predictor",318:{name:"WhitePoint",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},319:{name:"PrimaryChromaticities",description:t=>t.map(e=>`${e[0]}/${e[1]}`).join(", ")},321:"HalftoneHints",322:"TileWidth",323:"TileLength",330:"A100DataOffset",332:{name:"InkSet",description:t=>({1:"CMYK",2:"Not CMYK"})[t]||"Unknown"},337:"TargetPrinter",338:{name:"ExtraSamples",description:t=>({0:"Unspecified",1:"Associated Alpha",2:"Unassociated Alpha"})[t]||"Unknown"},339:{name:"SampleFormat",description:t=>{const e={1:"Unsigned",2:"Signed",3:"Float",4:"Undefined",5:"Complex int",6:"Complex float"};return Array.isArray(t)?t.map(n=>e[n]||"Unknown").join(", "):"Unknown"}},513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",529:{name:"YCbCrCoefficients",description:t=>t.map(e=>""+e[0]/e[1]).join("/")},530:"YCbCrSubSampling",531:{name:"YCbCrPositioning",description:t=>t===1?"centered":t===2?"co-sited":"undefined "+t},532:{name:"ReferenceBlackWhite",description:t=>t.map(e=>""+e[0]/e[1]).join(", ")},700:"ApplicationNotes",18246:"Rating",18249:"RatingPercent",33432:{name:"Copyright",description:t=>t.join("; ")},33550:"PixelScale",33723:"IPTC-NAA",33920:"IntergraphMatrix",33922:"ModelTiePoint",34118:"SEMInfo",34264:"ModelTransform",34377:"PhotoshopSettings",34665:"Exif IFD Pointer",34675:"ICC_Profile",34735:"GeoTiffDirectory",34736:"GeoTiffDoubleParams",34737:"GeoTiffAsciiParams",34853:"GPS Info IFD Pointer",40091:{name:"XPTitle",description:vf},40092:{name:"XPComment",description:vf},40093:{name:"XPAuthor",description:vf},40094:{name:"XPKeywords",description:vf},40095:{name:"XPSubject",description:vf},42112:"GDALMetadata",42113:"GDALNoData",50341:"PrintIM",50707:"DNGBackwardVersion",50708:"UniqueCameraModel",50709:"LocalizedCameraModel",50721:"ColorMatrix1",50722:"ColorMatrix2",50723:"CameraCalibration1",50724:"CameraCalibration2",50725:"ReductionMatrix1",50726:"ReductionMatrix2",50727:"AnalogBalance",50728:"AsShotNeutral",50729:"AsShotWhiteXY",50730:"BaselineExposure",50731:"BaselineNoise",50732:"BaselineSharpness",50734:"LinearResponseLimit",50735:"CameraSerialNumber",50736:"DNGLensInfo",50739:"ShadowScale",50741:{name:"MakerNoteSafety",description:t=>({0:"Unsafe",1:"Safe"})[t]||"Unknown"},50778:{name:"CalibrationIlluminant1",description:Et.LightSource},50779:{name:"CalibrationIlluminant2",description:Et.LightSource},50781:"RawDataUniqueID",50827:"OriginalRawFileName",50828:"OriginalRawFileData",50831:"AsShotICCProfile",50832:"AsShotPreProfileMatrix",50833:"CurrentICCProfile",50834:"CurrentPreProfileMatrix",50879:"ColorimetricReference",50885:"SRawType",50898:"PanasonicTitle",50899:"PanasonicTitle2",50931:"CameraCalibrationSig",50932:"ProfileCalibrationSig",50933:"ProfileIFD",50934:"AsShotProfileName",50936:"ProfileName",50937:"ProfileHueSatMapDims",50938:"ProfileHueSatMapData1",50939:"ProfileHueSatMapData2",50940:"ProfileToneCurve",50941:{name:"ProfileEmbedPolicy",description:t=>({0:"Allow Copying",1:"Embed if Used",2:"Never Embed",3:"No Restrictions"})[t]||"Unknown"},50942:"ProfileCopyright",50964:"ForwardMatrix1",50965:"ForwardMatrix2",50966:"PreviewApplicationName",50967:"PreviewApplicationVersion",50968:"PreviewSettingsName",50969:"PreviewSettingsDigest",50970:{name:"PreviewColorSpace",description:t=>({1:"Gray Gamma 2.2",2:"sRGB",3:"Adobe RGB",4:"ProPhoto RGB"})[t]||"Unknown"},50971:"PreviewDateTime",50972:"RawImageDigest",50973:"OriginalRawFileDigest",50981:"ProfileLookTableDims",50982:"ProfileLookTableData",51043:"TimeCodes",51044:"FrameRate",51058:"TStop",51081:"ReelName",51089:"OriginalDefaultFinalSize",51090:"OriginalBestQualitySize",51091:"OriginalDefaultCropSize",51105:"CameraLabel",51107:{name:"ProfileHueSatMapEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51108:{name:"ProfileLookTableEncoding",description:t=>({0:"Linear",1:"sRGB"})[t]||"Unknown"},51109:"BaselineExposureOffset",51110:{name:"DefaultBlackRender",description:t=>({0:"Auto",1:"None"})[t]||"Unknown"},51111:"NewRawImageDigest",51112:"RawToPreviewGain"};function vf(t){return new TextDecoder("utf-16").decode(new Uint8Array(t)).replace(/\u0000+$/,"")}const x5={33434:{name:"ExposureTime",description:Et.ExposureTime},33437:{name:"FNumber",description:Et.FNumber},34850:{name:"ExposureProgram",description:Et.ExposureProgram},34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:{name:"OECF",description:()=>"[Raw OECF table data]"},34858:"TimeZoneOffset",34859:"SelfTimerMode",34864:{name:"SensitivityType",description:t=>({1:"Standard Output Sensitivity",2:"Recommended Exposure Index",3:"ISO Speed",4:"Standard Output Sensitivity and Recommended Exposure Index",5:"Standard Output Sensitivity and ISO Speed",6:"Recommended Exposure Index and ISO Speed",7:"Standard Output Sensitivity, Recommended Exposure Index and ISO Speed"})[t]||"Unknown"},34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",36864:{name:"ExifVersion",description:t=>sr(t)},36867:"DateTimeOriginal",36868:"DateTimeDigitized",36873:"GooglePlusUploadCode",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37121:{name:"ComponentsConfiguration",description:Et.ComponentsConfiguration},37122:"CompressedBitsPerPixel",37377:{name:"ShutterSpeedValue",description:Et.ShutterSpeedValue},37378:{name:"ApertureValue",description:Et.ApertureValue},37379:"BrightnessValue",37380:"ExposureBiasValue",37381:{name:"MaxApertureValue",description:t=>Math.pow(Math.sqrt(2),t[0]/t[1]).toFixed(2)},37382:{name:"SubjectDistance",description:t=>t[0]/t[1]+" m"},37383:{name:"MeteringMode",description:Et.MeteringMode},37384:{name:"LightSource",description:Et.LightSource},37385:{name:"Flash",description:t=>t===0?"Flash did not fire":t===1?"Flash fired":t===5?"Strobe return light not detected":t===7?"Strobe return light detected":t===9?"Flash fired, compulsory flash mode":t===13?"Flash fired, compulsory flash mode, return light not detected":t===15?"Flash fired, compulsory flash mode, return light detected":t===16?"Flash did not fire, compulsory flash mode":t===24?"Flash did not fire, auto mode":t===25?"Flash fired, auto mode":t===29?"Flash fired, auto mode, return light not detected":t===31?"Flash fired, auto mode, return light detected":t===32?"No flash function":t===65?"Flash fired, red-eye reduction mode":t===69?"Flash fired, red-eye reduction mode, return light not detected":t===71?"Flash fired, red-eye reduction mode, return light detected":t===73?"Flash fired, compulsory flash mode, red-eye reduction mode":t===77?"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected":t===79?"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected":t===89?"Flash fired, auto mode, red-eye reduction mode":t===93?"Flash fired, auto mode, return light not detected, red-eye reduction mode":t===95?"Flash fired, auto mode, return light detected, red-eye reduction mode":"Unknown"},37386:{name:"FocalLength",description:Et.FocalLength},37393:"ImageNumber",37394:{name:"SecurityClassification",description:t=>({C:"Confidential",R:"Restricted",S:"Secret",T:"Top Secret",U:"Unclassified"})[t]||"Unknown"},37395:"ImageHistory",37396:{name:"SubjectArea",description:t=>t.length===2?`Location; X: ${t[0]}, Y: ${t[1]}`:t.length===3?`Circle; X: ${t[0]}, Y: ${t[1]}, diameter: ${t[2]}`:t.length===4?`Rectangle; X: ${t[0]}, Y: ${t[1]}, width: ${t[2]}, height: ${t[3]}`:"Unknown"},37500:{name:"MakerNote",description:()=>"[Raw maker note data]"},37510:{name:"UserComment",description:dy},37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",37724:"ImageSourceData",37888:{name:"AmbientTemperature",description:t=>t[0]/t[1]+" °C"},37889:{name:"Humidity",description:t=>t[0]/t[1]+" %"},37890:{name:"Pressure",description:t=>t[0]/t[1]+" hPa"},37891:{name:"WaterDepth",description:t=>t[0]/t[1]+" m"},37892:{name:"Acceleration",description:t=>t[0]/t[1]+" mGal"},37893:{name:"CameraElevationAngle",description:t=>t[0]/t[1]+" °"},40960:{name:"FlashpixVersion",description:t=>t.map(e=>String.fromCharCode(e)).join("")},40961:{name:"ColorSpace",description:Et.ColorSpace},40962:"PixelXDimension",40963:"PixelYDimension",40964:"RelatedSoundFile",40965:"Interoperability IFD Pointer",41483:"FlashEnergy",41484:{name:"SpatialFrequencyResponse",description:()=>"[Raw SFR table data]"},41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:{name:"FocalPlaneResolutionUnit",description:Et.FocalPlaneResolutionUnit},41492:{name:"SubjectLocation",description:([t,e])=>`X: ${t}, Y: ${e}`},41493:"ExposureIndex",41495:{name:"SensingMethod",description:t=>t===1?"Undefined":t===2?"One-chip color area sensor":t===3?"Two-chip color area sensor":t===4?"Three-chip color area sensor":t===5?"Color sequential area sensor":t===7?"Trilinear sensor":t===8?"Color sequential linear sensor":"Unknown"},41728:{name:"FileSource",description:t=>t===3?"DSC":"Unknown"},41729:{name:"SceneType",description:t=>t===1?"A directly photographed image":"Unknown"},41730:{name:"CFAPattern",description:()=>"[Raw CFA pattern table data]"},41985:{name:"CustomRendered",description:Et.CustomRendered},41986:{name:"ExposureMode",description:Et.ExposureMode},41987:{name:"WhiteBalance",description:Et.WhiteBalance},41988:{name:"DigitalZoomRatio",description:t=>t[0]===0?"Digital zoom was not used":""+t[0]/t[1]},41989:{name:"FocalLengthIn35mmFilm",description:Et.FocalLengthIn35mmFilm},41990:{name:"SceneCaptureType",description:Et.SceneCaptureType},41991:{name:"GainControl",description:t=>t===0?"None":t===1?"Low gain up":t===2?"High gain up":t===3?"Low gain down":t===4?"High gain down":"Unknown"},41992:{name:"Contrast",description:Et.Contrast},41993:{name:"Saturation",description:Et.Saturation},41994:{name:"Sharpness",description:Et.Sharpness},41995:{name:"DeviceSettingDescription",description:()=>"[Raw device settings table data]"},41996:{name:"SubjectDistanceRange",description:t=>t===1?"Macro":t===2?"Close view":t===3?"Distant view":"Unknown"},42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:{name:"LensSpecification",description:t=>{const e=parseFloat((t[0][0]/t[0][1]).toFixed(5)),n=parseFloat((t[1][0]/t[1][1]).toFixed(5)),r=`${e}-${n} mm`;if(t[3][1]===0)return`${r} f/?`;const i=1/(t[2][1]/t[2][1]/(t[3][0]/t[3][1]));return`${r} f/${parseFloat(i.toFixed(5))}`}},42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",42080:{name:"CompositeImage",description:t=>({1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"})[t]||"Unknown"},42081:"SourceImageNumberOfCompositeImage",42082:"SourceExposureTimesOfCompositeImage",42240:"Gamma",59932:"Padding",59933:"OffsetSchema",65e3:"OwnerName",65001:"SerialNumber",65002:"Lens",65100:"RawFile",65101:"Converter",65102:"WhiteBalance",65105:"Exposure",65106:"Shadows",65107:"Brightness",65108:"Contrast",65109:"Saturation",65110:"Sharpness",65111:"Smoothness",65112:"MoireFilter"},k5={0:{name:"GPSVersionID",description:t=>t[0]===2&&t[1]===2&&t[2]===0&&t[3]===0?"Version 2.2":"Unknown"},1:{name:"GPSLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},2:{name:"GPSLatitude",description:vg},3:{name:"GPSLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},4:{name:"GPSLongitude",description:vg},5:{name:"GPSAltitudeRef",description:t=>t===0?"Sea level":t===1?"Sea level reference (negative value)":"Unknown"},6:{name:"GPSAltitude",description:t=>t[0]/t[1]+" m"},7:{name:"GPSTimeStamp",description:t=>t.map(([e,n])=>{const r=e/n;return/^\d(\.|$)/.test(`${r}`)?`0${r}`:r}).join(":")},8:"GPSSatellites",9:{name:"GPSStatus",description:t=>{const e=t.join("");return e==="A"?"Measurement in progress":e==="V"?"Measurement Interoperability":"Unknown"}},10:{name:"GPSMeasureMode",description:t=>{const e=t.join("");return e==="2"?"2-dimensional measurement":e==="3"?"3-dimensional measurement":"Unknown"}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers per hour":e==="M"?"Miles per hour":e==="N"?"Knots":"Unknown"}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:t=>{const e=t.join("");return e==="N"?"North latitude":e==="S"?"South latitude":"Unknown"}},20:{name:"GPSDestLatitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},21:{name:"GPSDestLongitudeRef",description:t=>{const e=t.join("");return e==="E"?"East longitude":e==="W"?"West longitude":"Unknown"}},22:{name:"GPSDestLongitude",description:t=>t[0][0]/t[0][1]+t[1][0]/t[1][1]/60+t[2][0]/t[2][1]/3600},23:{name:"GPSDestBearingRef",description:t=>{const e=t.join("");return e==="T"?"True direction":e==="M"?"Magnetic direction":"Unknown"}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:t=>{const e=t.join("");return e==="K"?"Kilometers":e==="M"?"Miles":e==="N"?"Knots":"Unknown"}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:dy},28:{name:"GPSAreaInformation",description:dy},29:"GPSDateStamp",30:{name:"GPSDifferential",description:t=>t===0?"Measurement without differential correction":t===1?"Differential correction applied":"Unknown"},31:"GPSHPositioningError"},S5={1:"InteroperabilityIndex",2:{name:"InteroperabilityVersion",description:t=>sr(t)},4096:"RelatedImageFileFormat",4097:"RelatedImageWidth",4098:"RelatedImageHeight"},E5={45056:{name:"MPFVersion",description:t=>sr(t)},45057:"NumberOfImages",45058:"MPEntry",45059:"ImageUIDList",45060:"TotalFrames"},T5={4:{name:"ShotInfo",description:t=>t}},C5={0:{name:"PentaxVersion",description:t=>t.join(".")},5:"PentaxModelID",555:"LevelInfo"},sA=Ot({},oA,x5),wy="0th",aA="1st",lA="exif",cA="gps",uA="interoperability",dA="mpf",fA="canon",xy="pentax",Oa={[wy]:sA,[aA]:oA,[lA]:sA,[cA]:k5,[uA]:S5,[dA]:E5,[fA]:T5,[xy]:C5},hA={1:1,2:1,3:2,4:4,5:8,7:1,9:4,10:8,13:4},ky={BYTE:1,ASCII:2,SHORT:3,LONG:4,RATIONAL:5,UNDEFINED:7,SLONG:9,SRATIONAL:10,IFD:13},Ge={getAsciiValue:A5,getByteAt:pA,getAsciiAt:$5,getShortAt:I5,getLongAt:kg,getRationalAt:P5,getUndefinedAt:O5,getSlongAt:Sy,getSrationalAt:N5,getIfdPointerAt:L5,typeSizes:hA,tagTypes:ky,getTypeSize:R5};function A5(t){return t.map(e=>String.fromCharCode(e))}function pA(t,e){return t.getUint8(e)}function $5(t,e){return t.getUint8(e)}function I5(t,e,n){return t.getUint16(e,n===Jo.LITTLE_ENDIAN)}function kg(t,e,n){return t.getUint32(e,n===Jo.LITTLE_ENDIAN)}function P5(t,e,n){return[kg(t,e,n),kg(t,e+4,n)]}function O5(t,e){return pA(t,e)}function Sy(t,e,n){return t.getInt32(e,n===Jo.LITTLE_ENDIAN)}function N5(t,e,n){return[Sy(t,e,n),Sy(t,e+4,n)]}function L5(t,e,n){return kg(t,e,n)}function R5(t){if(ky[t]===void 0)throw new Error("No such type found.");return hA[ky[t]]}const F5={1:Ge.getByteAt,2:Ge.getAsciiAt,3:Ge.getShortAt,4:Ge.getLongAt,5:Ge.getRationalAt,7:Ge.getUndefinedAt,9:Ge.getSlongAt,10:Ge.getSrationalAt,13:Ge.getIfdPointerAt};function gA(t,e,n){return e+Ge.getLongAt(t,e+4,n)}function Na(t,e,n,r,i,o){const s=Ge.getTypeSize("SHORT"),a=12,l={},u=D5(t,r,i);r+=s;for(let d=0;d<u&&!(r+a>t.byteLength);d++){const f=M5(t,e,n,r,i,o);f!==void 0&&(l[f.name]={id:f.id,value:f.value,description:f.description},(f.name==="MakerNote"||e===xy&&f.name==="LevelInfo")&&(l[f.name].__offset=f.__offset)),r+=a}if(r<t.byteLength-Ge.getTypeSize("LONG")){const d=Ge.getLongAt(t,r,i);d!==0&&e===wy&&(l.Thumbnail=Na(t,aA,n,n+d,i,o))}return l}function D5(t,e,n){return e+Ge.getTypeSize("SHORT")<=t.byteLength?Ge.getShortAt(t,e,n):0}function M5(t,e,n,r,i,o){const a=Ge.getTypeSize("SHORT"),l=a+Ge.getTypeSize("SHORT"),u=l+Ge.getTypeSize("LONG"),d=Ge.getShortAt(t,r,i),f=Ge.getShortAt(t,r+a,i),h=Ge.getLongAt(t,r+l,i);let p,g;if(Ge.typeSizes[f]===void 0||!o&&Oa[e][d]===void 0)return;if(z5(f,h))g=r+u,p=mA(t,g,f,h,i);else if(g=Ge.getLongAt(t,r+u,i),U5(t,n,g,f,h)){const b=d===33723;p=mA(t,n+g,f,h,i,b)}else p="<faulty value>";f===Ge.tagTypes.ASCII&&(p=j5(p),p=B5(p));let m=`undefined-${d}`,v=p;if(Oa[e][d]!==void 0)if(Oa[e][d].name!==void 0&&Oa[e][d].description!==void 0){m=Oa[e][d].name;try{v=Oa[e][d].description(p)}catch{v=vA(p)}}else f===Ge.tagTypes.RATIONAL||f===Ge.tagTypes.SRATIONAL?(m=Oa[e][d],v=""+p[0]/p[1]):(m=Oa[e][d],v=vA(p));return{id:d,name:m,value:p,description:v,__offset:g}}function z5(t,e){return Ge.typeSizes[t]*e<=Ge.getTypeSize("LONG")}function mA(t,e,n,r,i,o=!1){let s=[];o&&(r=r*Ge.typeSizes[n],n=Ge.tagTypes.BYTE);for(let a=0;a<r;a++)s.push(F5[n](t,e,i)),e+=Ge.typeSizes[n];return n===Ge.tagTypes.ASCII?s=Ge.getAsciiValue(s):s.length===1&&(s=s[0]),s}function U5(t,e,n,r,i){return e+n+Ge.typeSizes[r]*i<=t.byteLength}function j5(t){const e=[];let n=0;for(let r=0;r<t.length;r++){if(t[r]==="\0"){n++;continue}e[n]===void 0&&(e[n]=""),e[n]+=t[r]}return e}function B5(t){try{return t.map(e=>decodeURIComponent(escape(e)))}catch{return t}}function vA(t){return t instanceof Array?t.join(", "):t}const _A="Exif IFD Pointer",bA="GPS Info IFD Pointer",yA="Interoperability IFD Pointer",wA={read:q5};function q5(t,e,n){const r=Jo.getByteOrder(t,e);let i=H5(t,e,r,n);return i=G5(i,t,e,r,n),i=W5(i,t,e,r,n),i=K5(i,t,e,r,n),{tags:i,byteOrder:r}}function H5(t,e,n,r){return Na(t,wy,e,gA(t,e,n),n,r)}function G5(t,e,n,r,i){return t[_A]!==void 0?Ot(t,Na(e,lA,n,n+t[_A].value,r,i)):t}function W5(t,e,n,r,i){return t[bA]!==void 0?Ot(t,Na(e,cA,n,n+t[bA].value,r,i)):t}function K5(t,e,n,r,i){return t[yA]!==void 0?Ot(t,Na(e,uA,n,n+t[yA].value,r,i)):t}const V5={read:Y5},Su=16;function Y5(t,e,n){const r=Jo.getByteOrder(t,e),i=Na(t,dA,e,gA(t,e,r),r,n);return Z5(t,e,i,r)}function Z5(t,e,n,r){if(!n.MPEntry)return n;const i=[];for(let o=0;o<Math.ceil(n.MPEntry.value.length/Su);o++){i[o]={};const s=_f(n.MPEntry.value,o*Su,Ge.getTypeSize("LONG"),r);i[o].ImageFlags=J5(s),i[o].ImageFormat=X5(s),i[o].ImageType=Q5(s);const a=_f(n.MPEntry.value,o*Su+4,Ge.getTypeSize("LONG"),r);i[o].ImageSize={value:a,description:""+a};const l=eq(o,n.MPEntry,r,e);i[o].ImageOffset={value:l,description:""+l};const u=_f(n.MPEntry.value,o*Su+12,Ge.getTypeSize("SHORT"),r);i[o].DependentImage1EntryNumber={value:u,description:""+u};const d=_f(n.MPEntry.value,o*Su+14,Ge.getTypeSize("SHORT"),r);i[o].DependentImage2EntryNumber={value:d,description:""+d},i[o].image=t.buffer.slice(l,l+a),SC(i[o],"base64",function(){return EC(this.image)})}return n.Images=i,n}function _f(t,e,n,r){if(r===Jo.LITTLE_ENDIAN){let o=0;for(let s=0;s<n;s++)o+=t[e+s]<<8*s;return o}let i=0;for(let o=0;o<n;o++)i+=t[e+o]<<8*(n-1-o);return i}function J5(t){const e=[t>>31&1,t>>30&1,t>>29&1],n=[];return e[0]&&n.push("Dependent Parent Image"),e[1]&&n.push("Dependent Child Image"),e[2]&&n.push("Representative Image"),{value:e,description:n.join(", ")||"None"}}function X5(t){const e=t>>24&7;return{value:e,description:e===0?"JPEG":"Unknown"}}function Q5(t){const e=t&16777215;return{value:e,description:{196608:"Baseline MP Primary Image",65537:"Large Thumbnail (VGA equivalent)",65538:"Large Thumbnail (Full HD equivalent)",131073:"Multi-Frame Image (Panorama)",131074:"Multi-Frame Image (Disparity)",131075:"Multi-Frame Image (Multi-Angle)",0:"Undefined"}[e]||"Unknown"}}function eq(t,e,n,r){return tq(t)?0:_f(e.value,t*Su+8,Ge.getTypeSize("LONG"),n)+r}function tq(t){return t===0}const nq={read:rq};function rq(t,e){const n=iq(t,e),r=lq(t,e,n);return{"Bits Per Sample":oq(t,e,n),"Image Height":sq(t,e,n),"Image Width":aq(t,e,n),"Color Components":r,Subsampling:r&&cq(t,e,r.value,n)}}function iq(t,e){return Ge.getShortAt(t,e)}function oq(t,e,n){if(3>n)return;const o=Ge.getByteAt(t,e+2);return{value:o,description:""+o}}function sq(t,e,n){if(5>n)return;const o=Ge.getShortAt(t,e+3);return{value:o,description:`${o}px`}}function aq(t,e,n){if(7>n)return;const o=Ge.getShortAt(t,e+5);return{value:o,description:`${o}px`}}function lq(t,e,n){if(8>n)return;const o=Ge.getByteAt(t,e+7);return{value:o,description:""+o}}function cq(t,e,n,r){if(8+3*n>r)return;const s=[];for(let a=0;a<n;a++){const l=e+8+a*3;s.push([Ge.getByteAt(t,l),Ge.getByteAt(t,l+1),Ge.getByteAt(t,l+2)])}return{value:s,description:s.length>1?uq(s)+dq(s):""}}function uq(t){const e={1:"Y",2:"Cb",3:"Cr",4:"I",5:"Q"};return t.map(n=>e[n[0]]).join("")}function dq(t){const e={17:"4:4:4 (1 1)",18:"4:4:0 (1 2)",20:"4:4:1 (1 4)",33:"4:2:2 (2 1)",34:"4:2:0 (2 2)",36:"4:2:1 (2 4)",65:"4:1:1 (4 1)",66:"4:1:0 (4 2)"};return t.length===0||t[0][1]===void 0||e[t[0][1]]===void 0?"":e[t[0][1]]}const fq={read:hq};function hq(t,e){const n=pq(t,e),r=yq(t,e,n),i=wq(t,e,n),o={"JFIF Version":gq(t,e,n),"Resolution Unit":mq(t,e,n),XResolution:_q(t,e,n),YResolution:bq(t,e,n),"JFIF Thumbnail Width":r,"JFIF Thumbnail Height":i};if(r!==void 0&&i!==void 0){const s=xq(t,e,3*r.value*i.value,n);s&&(o["JFIF Thumbnail"]=s)}for(const s in o)o[s]===void 0&&delete o[s];return o}function pq(t,e){return Ge.getShortAt(t,e)}function gq(t,e,n){if(9>n)return;const o=Ge.getByteAt(t,e+7),s=Ge.getByteAt(t,e+7+1);return{value:o*256+s,description:o+"."+s}}function mq(t,e,n){if(10>n)return;const o=Ge.getByteAt(t,e+9);return{value:o,description:vq(o)}}function vq(t){return t===0?"None":t===1?"inches":t===2?"cm":"Unknown"}function _q(t,e,n){if(12>n)return;const o=Ge.getShortAt(t,e+10);return{value:o,description:""+o}}function bq(t,e,n){if(14>n)return;const o=Ge.getShortAt(t,e+12);return{value:o,description:""+o}}function yq(t,e,n){if(15>n)return;const o=Ge.getByteAt(t,e+14);return{value:o,description:`${o}px`}}function wq(t,e,n){if(16>n)return;const o=Ge.getByteAt(t,e+15);return{value:o,description:`${o}px`}}function xq(t,e,n,r){return n===0||16+n>r?void 0:{value:t.buffer.slice(e+16,e+16+n),description:"<24-bit RGB pixel data>"}}const La={iptc:{256:{name:"Model Version",description:t=>((t[0]<<8)+t[1]).toString()},261:{name:"Destination",repeatable:!0},276:{name:"File Format",description:t=>((t[0]<<8)+t[1]).toString()},278:{name:"File Format Version",description:t=>((t[0]<<8)+t[1]).toString()},286:"Service Identifier",296:"Envelope Number",306:"Product ID",316:"Envelope Priority",326:{name:"Date Sent",description:Ey},336:{name:"Time Sent",description:Ty},346:{name:"Coded Character Set",description:xA,encoding_name:xA},356:"UNO",376:{name:"ARM Identifier",description:t=>((t[0]<<8)+t[1]).toString()},378:{name:"ARM Version",description:t=>((t[0]<<8)+t[1]).toString()},512:{name:"Record Version",description:t=>((t[0]<<8)+t[1]).toString()},515:"Object Type Reference",516:"Object Attribute Reference",517:"Object Name",519:"Edit Status",520:{name:"Editorial Update",description:t=>sr(t)==="01"?"Additional Language":"Unknown"},522:"Urgency",524:{name:"Subject Reference",repeatable:!0,description:t=>{const e=sr(t).split(":");return e[2]+(e[3]?"/"+e[3]:"")+(e[4]?"/"+e[4]:"")}},527:"Category",532:{name:"Supplemental Category",repeatable:!0},534:"Fixture Identifier",537:{name:"Keywords",repeatable:!0},538:{name:"Content Location Code",repeatable:!0},539:{name:"Content Location Name",repeatable:!0},542:"Release Date",547:"Release Time",549:"Expiration Date",550:"Expiration Time",552:"Special Instructions",554:{name:"Action Advised",description:t=>{const e=sr(t);return e==="01"?"Object Kill":e==="02"?"Object Replace":e==="03"?"Object Append":e==="04"?"Object Reference":"Unknown"}},557:{name:"Reference Service",repeatable:!0},559:{name:"Reference Date",repeatable:!0},562:{name:"Reference Number",repeatable:!0},567:{name:"Date Created",description:Ey},572:{name:"Time Created",description:Ty},574:{name:"Digital Creation Date",description:Ey},575:{name:"Digital Creation Time",description:Ty},577:"Originating Program",582:"Program Version",587:{name:"Object Cycle",description:t=>{const e=sr(t);return e==="a"?"morning":e==="p"?"evening":e==="b"?"both":"Unknown"}},592:{name:"By-line",repeatable:!0},597:{name:"By-line Title",repeatable:!0},602:"City",604:"Sub-location",607:"Province/State",612:"Country/Primary Location Code",613:"Country/Primary Location Name",615:"Original Transmission Reference",617:"Headline",622:"Credit",627:"Source",628:"Copyright Notice",630:{name:"Contact",repeatable:!0},632:"Caption/Abstract",634:{name:"Writer/Editor",repeatable:!0},637:{name:"Rasterized Caption",description:t=>t},642:"Image Type",643:{name:"Image Orientation",description:t=>{const e=sr(t);return e==="P"?"Portrait":e==="L"?"Landscape":e==="S"?"Square":"Unknown"}},647:"Language Identifier",662:{name:"Audio Type",description:t=>{const e=sr(t),n=e.charAt(0),r=e.charAt(1);let i="";return n==="1"?i+="Mono":n==="2"&&(i+="Stereo"),r==="A"?i+=", actuality":r==="C"?i+=", question and answer session":r==="M"?i+=", music, transmitted by itself":r==="Q"?i+=", response to a question":r==="R"?i+=", raw sound":r==="S"?i+=", scener":r==="V"?i+=", voicer":r==="W"&&(i+=", wrap"),i!==""?i:e}},663:{name:"Audio Sampling Rate",description:t=>parseInt(sr(t),10)+" Hz"},664:{name:"Audio Sampling Resolution",description:t=>{const e=parseInt(sr(t),10);return e+(e===1?" bit":" bits")}},665:{name:"Audio Duration",description:t=>{const e=sr(t);return e.length>=6?e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2):e}},666:"Audio Outcue",698:"Short Document ID",699:"Unique Document ID",700:"Owner ID",712:{name:t=>t.length===2?"ObjectData Preview File Format":"Record 2 destination",description:t=>{if(t.length===2){const e=(t[0]<<8)+t[1];return e===0?"No ObjectData":e===1?"IPTC-NAA Digital Newsphoto Parameter Record":e===2?"IPTC7901 Recommended Message Format":e===3?"Tagged Image File Format (Adobe/Aldus Image data)":e===4?"Illustrator (Adobe Graphics data)":e===5?"AppleSingle (Apple Computer Inc)":e===6?"NAA 89-3 (ANPA 1312)":e===7?"MacBinary II":e===8?"IPTC Unstructured Character Oriented File Format (UCOFF)":e===9?"United Press International ANPA 1312 variant":e===10?"United Press International Down-Load Message":e===11?"JPEG File Interchange (JFIF)":e===12?"Photo-CD Image-Pac (Eastman Kodak)":e===13?"Microsoft Bit Mapped Graphics File [*.BMP]":e===14?"Digital Audio File [*.WAV] (Microsoft & Creative Labs)":e===15?"Audio plus Moving Video [*.AVI] (Microsoft)":e===16?"PC DOS/Windows Executable Files [*.COM][*.EXE]":e===17?"Compressed Binary File [*.ZIP] (PKWare Inc)":e===18?"Audio Interchange File Format AIFF (Apple Computer Inc)":e===19?"RIFF Wave (Microsoft Corporation)":e===20?"Freehand (Macromedia/Aldus)":e===21?'Hypertext Markup Language "HTML" (The Internet Society)':e===22?"MPEG 2 Audio Layer 2 (Musicom), ISO/IEC":e===23?"MPEG 2 Audio Layer 3, ISO/IEC":e===24?"Portable Document File (*.PDF) Adobe":e===25?"News Industry Text Format (NITF)":e===26?"Tape Archive (*.TAR)":e===27?"Tidningarnas Telegrambyrå NITF version (TTNITF DTD)":e===28?"Ritzaus Bureau NITF version (RBNITF DTD)":e===29?"Corel Draw [*.CDR]":`Unknown format ${e}`}return sr(t)}},713:{name:"ObjectData Preview File Format Version",description:(t,e)=>{const n={"00":{"00":"1"},"01":{"01":"1","02":"2","03":"3","04":"4"},"02":{"04":"4"},"03":{"01":"5.0","02":"6.0"},"04":{"01":"1.40"},"05":{"01":"2"},"06":{"01":"1"},11:{"01":"1.02"},20:{"01":"3.1","02":"4.0","03":"5.0","04":"5.5"},21:{"02":"2.0"}},r=sr(t);if(e["ObjectData Preview File Format"]){const i=sr(e["ObjectData Preview File Format"].value);if(n[i]&&n[i][r])return n[i][r]}return r}},714:"ObjectData Preview Data",1802:{name:"Size Mode",description:t=>t[0].toString()},1812:{name:"Max Subfile Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1882:{name:"ObjectData Size Announced",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}},1887:{name:"Maximum ObjectData Size",description:t=>{let e=0;for(let n=0;n<t.length;n++)e=(e<<8)+t[n];return e.toString()}}}};function Ey(t){const e=sr(t);return e.length>=8?e.substr(0,4)+"-"+e.substr(4,2)+"-"+e.substr(6,2):e}function Ty(t){const e=sr(t);let n=e;return e.length>=6&&(n=e.substr(0,2)+":"+e.substr(2,2)+":"+e.substr(4,2),e.length===11&&(n+=e.substr(6,1)+e.substr(7,2)+":"+e.substr(9,2))),n}function xA(t){const e=sr(t);return e==="\x1B%G"?"UTF-8":e==="\x1B%5"?"Windows-1252":e==="\x1B%/G"?"UTF-8 Level 1":e==="\x1B%/H"?"UTF-8 Level 2":e==="\x1B%/I"?"UTF-8 Level 3":e==="\x1B/A"?"ISO-8859-1":e==="\x1B/B"?"ISO-8859-2":e==="\x1B/C"?"ISO-8859-3":e==="\x1B/D"?"ISO-8859-4":e==="\x1B/@"?"ISO-8859-5":e==="\x1B/G"?"ISO-8859-6":e==="\x1B/F"?"ISO-8859-7":e==="\x1B/H"?"ISO-8859-8":"Unknown"}const kq={get:Sq};function Sq(){if(typeof TextDecoder<"u")return TextDecoder}const kA={decode:Eq,TAG_HEADER_SIZE:5};function Eq(t,e){const n=kq.get();if(typeof n<"u"&&t!==void 0)try{return new n(t).decode(e instanceof DataView?e.buffer:Uint8Array.from(e))}catch{}const r=e.map(i=>String.fromCharCode(i)).join("");return Tq(r)}function Tq(t){try{return decodeURIComponent(escape(t))}catch{return t}}const Cq=943868237,bf=4,Sg=2,Aq=1,$q=2,SA=4,Iq=bf+Sg+$q+SA,Pq=1028,EA=5,Cy={read:Oq};function Oq(t,e,n){try{if(Array.isArray(t))return TA(new DataView(Uint8Array.from(t).buffer),{size:t.length},0,n);const{naaBlock:r,dataOffset:i}=Nq(t,e);return TA(t,r,i,n)}catch{return{}}}function Nq(t,e){for(;e+Iq<=t.byteLength;){const n=Lq(t,e);if(Rq(n))return{naaBlock:n,dataOffset:e+n.headerSize};e+=n.headerSize+n.size+Fq(n)}throw new Error("No IPTC NAA resource block.")}function Lq(t,e){if(t.getUint32(e,!1)!==Cq)throw new Error("Not an IPTC resource block.");const n=t.getUint8(e+bf+Sg),r=(n%2===0?n+1:n)+Aq;return{headerSize:bf+Sg+r+SA,type:t.getUint16(e+bf),size:t.getUint32(e+bf+Sg+r)}}function Rq(t){return t.type===Pq}function Fq(t){return t.size%2!==0?1:0}function TA(t,e,n,r){const i={};let o;const s=n+e.size;for(;n<s&&n<t.byteLength;){const{tag:a,tagSize:l}=Dq(t,n,i,o,r);if(a===null)break;a&&("encoding"in a&&(o=a.encoding),i[a.name]===void 0||a.repeatable===void 0?i[a.name]={id:a.id,value:a.value,description:a.description}:(i[a.name]instanceof Array||(i[a.name]=[{id:i[a.name].id,value:i[a.name].value,description:i[a.name].description}]),i[a.name].push({id:a.id,value:a.value,description:a.description}))),n+=EA+l}return i}function Dq(t,e,n,r,i){if(Mq(t,e))return{tag:null,tagSize:0};const a=t.getUint16(e+1),l=t.getUint16(e+3);if(!i&&!La.iptc[a])return{tag:void 0,tagSize:l};const u=zq(t,e+EA,l),d={id:a,name:Uq(La.iptc[a],a,u),value:u,description:qq(La.iptc[a],u,n,r)};return Wq(a)&&(d.repeatable=!0),Kq(a)&&(d.encoding=La.iptc[a].encoding_name(u)),{tag:d,tagSize:l}}function Mq(t,e){return t.getUint8(e)!==28}function zq(t,e,n){const r=[];for(let i=0;i<n;i++)r.push(t.getUint8(e+i));return r}function Uq(t,e,n){return t?jq(t)?t:Bq(t)?t.name(n):t.name:`undefined-${e}`}function jq(t){return typeof t=="string"}function Bq(t){return typeof t.name=="function"}function qq(t,e,n,r){if(Gq(t))try{return t.description(e,n)}catch{}return Hq(t,e)?kA.decode(r,e):e}function Hq(t,e){return t&&e instanceof Array}function Gq(t){return t&&t.description!==void 0}function Wq(t){return La.iptc[t]&&La.iptc[t].repeatable}function Kq(t){return La.iptc[t]&&La.iptc[t].encoding_name!==void 0}const Eg={"tiff:Orientation"(t){return t==="1"?"Horizontal (normal)":t==="2"?"Mirror horizontal":t==="3"?"Rotate 180":t==="4"?"Mirror vertical":t==="5"?"Mirror horizontal and rotate 270 CW":t==="6"?"Rotate 90 CW":t==="7"?"Mirror horizontal and rotate 90 CW":t==="8"?"Rotate 270 CW":t},"tiff:ResolutionUnit":t=>Et.ResolutionUnit(parseInt(t,10)),"tiff:XResolution":t=>Eu(Et.XResolution,t),"tiff:YResolution":t=>Eu(Et.YResolution,t),"exif:ApertureValue":t=>Eu(Et.ApertureValue,t),"exif:GPSLatitude":AA,"exif:GPSLongitude":AA,"exif:FNumber":t=>Eu(Et.FNumber,t),"exif:FocalLength":t=>Eu(Et.FocalLength,t),"exif:FocalPlaneResolutionUnit":t=>Et.FocalPlaneResolutionUnit(parseInt(t,10)),"exif:ColorSpace":t=>Et.ColorSpace(Vq(t)),"exif:ComponentsConfiguration"(t,e){if(/^\d, \d, \d, \d$/.test(e)){const n=e.split(", ").map(r=>r.charCodeAt(0));return Et.ComponentsConfiguration(n)}return e},"exif:Contrast":t=>Et.Contrast(parseInt(t,10)),"exif:CustomRendered":t=>Et.CustomRendered(parseInt(t,10)),"exif:ExposureMode":t=>Et.ExposureMode(parseInt(t,10)),"exif:ExposureProgram":t=>Et.ExposureProgram(parseInt(t,10)),"exif:ExposureTime"(t){return CA(t)?Et.ExposureTime(t.split("/").map(e=>parseInt(e,10))):t},"exif:MeteringMode":t=>Et.MeteringMode(parseInt(t,10)),"exif:Saturation":t=>Et.Saturation(parseInt(t,10)),"exif:SceneCaptureType":t=>Et.SceneCaptureType(parseInt(t,10)),"exif:Sharpness":t=>Et.Sharpness(parseInt(t,10)),"exif:ShutterSpeedValue":t=>Eu(Et.ShutterSpeedValue,t),"exif:WhiteBalance":t=>Et.WhiteBalance(parseInt(t,10))};function Eu(t,e){return CA(e)?t(e.split("/")):e}function Vq(t){return t.substring(0,2)==="0x"?parseInt(t.substring(2),16):parseInt(t,10)}function CA(t){return/^-?\d+\/-?\d+$/.test(t)}function AA(t){const[e,n]=t.split(",");if(e!==void 0&&n!==void 0){const r=parseFloat(e),i=parseFloat(n),o=n.charAt(n.length-1);if(!Number.isNaN(r)&&!Number.isNaN(i))return""+(r+i/60)+o}return t}const Yq={get:Zq};function Zq(t){if(t)return t;if(typeof DOMParser<"u")return new DOMParser;try{const{DOMParser:e,onErrorStopParsing:n}=__non_webpack_require__("@xmldom/xmldom");return new e({onError:n})}catch{return}}function Jq(t){const e=["prefix is non-null and namespace is null","prefix not bound to a namespace","prefix inte bundet till en namnrymd",/Namespace prefix .+ is not defined/];for(let n=0;n<e.length;n++)if(new RegExp(e[n]).test(t.message))return!0;return!1}function Xq(t){const e=t.match(/<([A-Za-z_][A-Za-z0-9._-]*)([^>]*)>/);if(!e)return t;const n=e[1],r=Qq(t),o=eH(t).filter(a=>r.indexOf(a)===-1);if(o.length===0)return t;const s=nH(o);return rH(t,n,s)}function Qq(t){const e=[],n=/xmlns:([\w-]+)=["'][^"']+["']/g;let r;for(;(r=n.exec(t))!==null;)e.indexOf(r[1])===-1&&e.push(r[1]);return e}function eH(t){const e=[],n=/\b([A-Za-z_][A-Za-z0-9._-]*):[A-Za-z_][A-Za-z0-9._-]*\b/g;let r;for(;(r=n.exec(t))!==null;){const i=r[1];i==="xmlns"||i==="xml"||e.indexOf(i)===-1&&e.push(i)}return e}const tH={xmp:"http://ns.adobe.com/xap/1.0/",tiff:"http://ns.adobe.com/tiff/1.0/",exif:"http://ns.adobe.com/exif/1.0/",dc:"http://purl.org/dc/elements/1.1/",xmpMM:"http://ns.adobe.com/xap/1.0/mm/",stEvt:"http://ns.adobe.com/xap/1.0/sType/ResourceEvent#",stRef:"http://ns.adobe.com/xap/1.0/sType/ResourceRef#",photoshop:"http://ns.adobe.com/photoshop/1.0/"};function nH(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n],i=tH[r]||"http://fallback.namespace/"+r;e.push(" xmlns:"+r+'="'+i+'"')}return e.join("")}function rH(t,e,n){const r=new RegExp("<"+e+"([^>]*)>");return t.replace(r,"<"+e+"$1"+n+">")}const $A={read:oH};class iH extends Error{constructor(e){super(e),this.name="ParseError"}}function oH(t,e,n){const r={};if(typeof t=="string")return Tg(r,t,n),r;const[i,o]=sH(t,e),s=Tg(r,i,n);if(o){const a=Tg(r,o,n);!s&&!a&&(delete r._raw,Tg(r,Ay(t,e),n))}return r}function sH(t,e){if(e.length===0)return[];const n=[Ay(t,e.slice(0,1))];return e.length>1&&n.push(Ay(t,e.slice(1))),n}function Ay(t,e){const n=e.reduce((o,s)=>o+s.length,0),r=new Uint8Array(n);let i=0;for(let o=0;o<e.length;o++){const s=e[o],a=t.buffer.slice(s.dataOffset,s.dataOffset+s.length);r.set(new Uint8Array(a),i),i+=s.length}return new DataView(r.buffer)}function Tg(t,e,n){try{const{doc:r,raw:i}=aH(e,n);t._raw=(t._raw||"")+i;const o=PA(r);return Ot(t,NA(OA(o,!0))),!0}catch{return!1}}function aH(t,e){const n=Yq.get(e);if(!n)throw console.warn("Warning: DOMParser is not available. It is needed to be able to parse XMP tags."),new Error;const r=typeof t=="string"?t:At(t,0,t.byteLength);return{doc:IA(n,lH(r)),raw:r}}function lH(t){return t.replace(/^.+(<\?xpacket begin)/,"$1").replace(/(<\?xpacket end=".*"\?>).+$/,"$1")}function IA(t,e,n=!1){try{const r=t.parseFromString(e,"application/xml"),i=r.getElementsByTagName("parsererror");if(i.length>0)throw new iH(i[0].textContent);return r}catch(r){if(r.name==="ParseError"&&Jq(r)&&!n)return IA(t,Xq(e),!0);throw r}}function PA(t){for(let e=0;e<t.childNodes.length;e++){if(t.childNodes[e].tagName==="x:xmpmeta")return PA(t.childNodes[e]);if(t.childNodes[e].tagName==="rdf:RDF")return t.childNodes[e]}throw new Error}function OA(t,e=!1){const n=cH(t);return uH(n)?e?{}:dH(n[0]):fH(n)}function cH(t){const e=[];for(let n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e}function uH(t){return t.length===1&&t[0].nodeName==="#text"}function dH(t){return t.nodeValue}function fH(t){const e={};return t.forEach(n=>{if(hH(n)){const r=pH(n);e[n.nodeName]!==void 0?(Array.isArray(e[n.nodeName])||(e[n.nodeName]=[e[n.nodeName]]),e[n.nodeName].push(r)):e[n.nodeName]=r}}),e}function hH(t){return t.nodeName&&t.nodeName!=="#text"}function pH(t){return{attributes:gH(t),value:OA(t)}}function gH(t){const e={};for(let n=0;n<t.attributes.length;n++)e[t.attributes[n].nodeName]=decodeURIComponent(escape(t.attributes[n].value));return e}function NA(t){const e={};if(typeof t=="string")return t;for(const n in t){let r=t[n];Array.isArray(r)||(r=[r]),r.forEach(i=>{Ot(e,$y(i.attributes)),typeof i.value=="object"&&Ot(e,LA(i.value))})}return e}function $y(t){const e={};for(const n in t)try{mH(n)&&(e[Ag(n)]={value:t[n],attributes:{},description:zs(t[n],n)})}catch{}return e}function mH(t){return t!=="rdf:parseType"&&!Cg(t)}function Cg(t){return t.split(":")[0]==="xmlns"}function Ag(t){return/^MicrosoftPhoto(_\d+_)?:Rating$/i.test(t)?"RatingPercent":t.split(":")[1]}function zs(t,e=void 0){if(Array.isArray(t)){const n=vH(t);return e&&typeof Eg[e]=="function"?Eg[e](t,n):n}if(typeof t=="object")return _H(t);try{return e&&typeof Eg[e]=="function"?Eg[e](t):decodeURIComponent(escape(t))}catch{return t}}function vH(t){return t.map(e=>e.value!==void 0?zs(e.value):zs(e)).join(", ")}function _H(t){const e=[];for(const n in t)e.push(`${bH(n)}: ${zs(t[n].value)}`);return e.join("; ")}function bH(t){return t==="CiAdrCity"?"CreatorCity":t==="CiAdrCtry"?"CreatorCountry":t==="CiAdrExtadr"?"CreatorAddress":t==="CiAdrPcode"?"CreatorPostalCode":t==="CiAdrRegion"?"CreatorRegion":t==="CiEmailWork"?"CreatorWorkEmail":t==="CiTelWork"?"CreatorWorkPhone":t==="CiUrlWork"?"CreatorWorkUrl":t}function LA(t){const e={};for(const n in t)try{Cg(n)||(e[Ag(n)]=yH(t[n],n))}catch{}return e}function yH(t,e){return xH(t)?kH(t,e):wH(t)?{value:"",attributes:{},description:""}:RA(t)?FA(t,e):DA(t)?MA(t,e):zA(t)?UA(t,e):TH(t)?CH(t,e):Iy(t,e)}function wH(t){return t.attributes["rdf:parseType"]==="Resource"&&typeof t.value=="string"&&t.value.trim()===""}function xH(t){return Array.isArray(t)}function kH(t,e){return Iy(t[t.length-1],e)}function RA(t){return t.attributes["rdf:parseType"]==="Resource"&&t.value["rdf:value"]!==void 0||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]!==void 0}function FA(t,e){const n=yf(t);t.value["rdf:Description"]!==void 0&&(t=t.value["rdf:Description"]),Ot(n,yf(t),SH(t));const r=EH(t);return{value:r,attributes:n,description:zs(r,e)}}function yf(t){const e={};for(const n in t.attributes)n!=="rdf:parseType"&&n!=="rdf:resource"&&!Cg(n)&&(e[Ag(n)]=t.attributes[n]);return e}function SH(t){const e={};for(const n in t.value)n!=="rdf:value"&&!Cg(n)&&(e[Ag(n)]=t.value[n].value);return e}function EH(t){return BA(t.value["rdf:value"])||t.value["rdf:value"].value}function DA(t){return t.attributes["rdf:parseType"]==="Resource"||t.value["rdf:Description"]!==void 0&&t.value["rdf:Description"].value["rdf:value"]===void 0}function MA(t,e){const n={value:{},attributes:{}};return t.value["rdf:Description"]!==void 0&&(Ot(n.value,$y(t.value["rdf:Description"].attributes)),Ot(n.attributes,yf(t)),t=t.value["rdf:Description"]),Ot(n.value,LA(t.value)),n.description=zs(n.value,e),n}function zA(t){return Object.keys(t.value).length===0&&t.attributes["xml:lang"]===void 0&&t.attributes["rdf:resource"]===void 0}function UA(t,e){const n=$y(t.attributes);return{value:n,attributes:{},description:zs(n,e)}}function TH(t){return jA(t.value)!==void 0}function jA(t){return t["rdf:Bag"]||t["rdf:Seq"]||t["rdf:Alt"]}function CH(t,e){let n=jA(t.value).value["rdf:li"];const r=yf(t),i=[];return n===void 0?n=[]:Array.isArray(n)||(n=[n]),n.forEach(o=>{i.push(AH(o))}),{value:i,attributes:r,description:zs(i,e)}}function AH(t){return RA(t)?FA(t):DA(t)?MA(t).value:zA(t)?UA(t).value:Iy(t)}function Iy(t,e){const n=BA(t)||NA(t.value);return{value:n,attributes:yf(t),description:zs(n,e)}}function BA(t){return t.attributes&&t.attributes["rdf:resource"]}const Us={CLOSED_SUBPATH_LENGTH:0,CLOSED_SUBPATH_BEZIER_LINKED:1,CLOSED_SUBPATH_BEZIER_UNLINKED:2,OPEN_SUBPATH_LENGTH:3,OPEN_SUBPATH_BEZIER_LINKED:4,OPEN_SUBPATH_BEZIER_UNLINKED:5,FILL_RULE:6,CLIPBOARD:7,INITIAL_FILL_RULE:8},qA=24,Py={2e3:{name:"PathInformation",description:$H},2999:{name:"ClippingPathName",description(t){const[,e]=kC(t,0);return e}}};function $H(t){const n={},r=[];for(let i=0;i<t.byteLength;i+=2+qA){const o=Ge.getShortAt(t,i);Oy[o]&&(n[o]||(n[o]=Oy[o].description),r.push({type:o,path:Oy[o].path(t,i+2)}))}return JSON.stringify({types:n,paths:r})}const Oy={[Us.CLOSED_SUBPATH_LENGTH]:{description:"Closed subpath length",path:(t,e)=>[Ge.getShortAt(t,e)]},[Us.CLOSED_SUBPATH_BEZIER_LINKED]:{description:"Closed subpath Bezier knot, linked",path:$g},[Us.CLOSED_SUBPATH_BEZIER_UNLINKED]:{description:"Closed subpath Bezier knot, unlinked",path:$g},[Us.OPEN_SUBPATH_LENGTH]:{description:"Open subpath length",path:(t,e)=>[Ge.getShortAt(t,e)]},[Us.OPEN_SUBPATH_BEZIER_LINKED]:{description:"Open subpath Bezier knot, linked",path:$g},[Us.OPEN_SUBPATH_BEZIER_UNLINKED]:{description:"Open subpath Bezier knot, unlinked",path:$g},[Us.FILL_RULE]:{description:"Path fill rule",path:()=>[]},[Us.INITIAL_FILL_RULE]:{description:"Initial fill rule",path:(t,e)=>[Ge.getShortAt(t,e)]},[Us.CLIPBOARD]:{description:"Clipboard",path:PH}};function $g(t,e){const r=[];for(let i=0;i<qA;i+=8)r.push(IH(t,e+i));return r}function IH(t,e){const n=Nl(t,e,8);return[Nl(t,e+4,8),n]}function PH(t,e){return[[Nl(t,e,8),Nl(t,e+4,8),Nl(t,e+8,8),Nl(t,e+12,8)],Nl(t,e+16,8)]}function Nl(t,e,n){const r=Ge.getLongAt(t,e),i=r>>>31?-1:1,o=(r&2130706432)>>>32-n,s=r&parseInt(TC("1",32-n),2);return i*I6(o.toString(2)+"."+$6(s.toString(2),32-n,"0"),2)}const OH={read:RH},HA="8BIM",NH=2,LH=4,GA=HA.length;function RH(t,e){const n=xC(new Uint8Array(t).buffer),r={};let i=0;for(;i<t.length;){const o=At(n,i,GA);i+=GA;const s=Ge.getShortAt(n,i);i+=NH;const{tagName:a,tagNameSize:l}=FH(n,i);i+=l;const u=Ge.getLongAt(n,i);if(i+=LH,o===HA){const d=xC(n.buffer,i,u),f={id:s,value:At(d,0,u)};if(Py[s]){try{f.description=Py[s].description(d)}catch{f.description="<no description formatter>"}r[a||Py[s].name]=f}else e&&(r[`undefined-${s}`]=f)}i+=u+u%2}return r}function FH(t,e){const[n,r]=kC(t,e);return{tagName:r,tagNameSize:1+n+(n%2===0?1:0)}}const WA={desc:{name:"ICC Description"},cprt:{name:"ICC Copyright"},dmdd:{name:"ICC Device Model Description"},vued:{name:"ICC Viewing Conditions Description"},dmnd:{name:"ICC Device Manufacturer for Display"},tech:{name:"Technology"}},KA={4:{name:"Preferred CMM type",value:(t,e)=>At(t,e,4),description:t=>t!==null?Ny(t):""},8:{name:"Profile Version",value:(t,e)=>t.getUint8(e).toString(10)+"."+(t.getUint8(e+1)>>4).toString(10)+"."+(t.getUint8(e+1)%16).toString(10)},12:{name:"Profile/Device class",value:(t,e)=>At(t,e,4),description:t=>{switch(t.toLowerCase()){case"scnr":return"Input Device profile";case"mntr":return"Display Device profile";case"prtr":return"Output Device profile";case"link":return"DeviceLink profile";case"abst":return"Abstract profile";case"spac":return"ColorSpace profile";case"nmcl":return"NamedColor profile";case"cenc":return"ColorEncodingSpace profile";case"mid ":return"MultiplexIdentification profile";case"mlnk":return"MultiplexLink profile";case"mvis":return"MultiplexVisualization profile";default:return t}}},16:{name:"Color Space",value:(t,e)=>At(t,e,4)},20:{name:"Connection Space",value:(t,e)=>At(t,e,4)},24:{name:"ICC Profile Date",value:(t,e)=>DH(t,e).toISOString()},36:{name:"ICC Signature",value:(t,e)=>MH(t.buffer.slice(e,e+4))},40:{name:"Primary Platform",value:(t,e)=>At(t,e,4),description:t=>Ny(t)},48:{name:"Device Manufacturer",value:(t,e)=>At(t,e,4),description:t=>Ny(t)},52:{name:"Device Model Number",value:(t,e)=>At(t,e,4)},64:{name:"Rendering Intent",value:(t,e)=>t.getUint32(e),description:t=>{switch(t){case 0:return"Perceptual";case 1:return"Relative Colorimetric";case 2:return"Saturation";case 3:return"Absolute Colorimetric";default:return t}}},80:{name:"Profile Creator",value:(t,e)=>At(t,e,4)}};function DH(t,e){const n=t.getUint16(e),r=t.getUint16(e+2)-1,i=t.getUint16(e+4),o=t.getUint16(e+6),s=t.getUint16(e+8),a=t.getUint16(e+10);return new Date(Date.UTC(n,r,i,o,s,a))}function MH(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function Ny(t){switch(t.toLowerCase()){case"appl":return"Apple";case"adbe":return"Adobe";case"msft":return"Microsoft";case"sunw":return"Sun Microsystems";case"sgi":return"Silicon Graphics";case"tgnt":return"Taligent";default:return t}}const VA={read:KH},zH=84,UH=128,jH="acsp",BH="desc",qH="mluc",HH="text",GH="sig ",WH=12;function KH(t,e,n){return n&&e[0].compressionMethod!==mg?VH(t,e):ZH(t,e)}function VH(t,e){if(!YH(e[0].compressionMethod))return{};const n=new DataView(t.buffer.slice(e[0].offset,e[0].offset+e[0].length));return AC(n,e[0].compressionMethod,"utf-8","dataview").then(YA).catch(()=>({}))}function YH(t){return t===CC}function ZH(t,e){try{const n=e.reduce((s,a)=>s+a.length,0),r=new Uint8Array(n);let i=0;const o=JH(t);for(let s=1;s<=e.length;s++){const a=e.find(d=>d.chunkNumber===s);if(!a)throw new Error(`ICC chunk ${s} not found`);const l=o.slice(a.offset,a.offset+a.length),u=new Uint8Array(l);r.set(u,i),i+=u.length}return YA(new DataView(r.buffer))}catch{return{}}}function JH(t){return Array.isArray(t)?new DataView(Uint8Array.from(t).buffer).buffer:t.buffer}function XH(t){return t.length<UH+4}function QH(t,e){return t.length<e+WH}function YA(t){const e=t.buffer,n=t.getUint32();if(t.byteLength!==n)throw new Error("ICC profile length not matching");if(t.byteLength<zH)throw new Error("ICC profile too short");const r={},i=Object.keys(KA);for(let l=0;l<i.length;l++){const u=i[l],d=KA[u],f=d.value(t,parseInt(u,10));let h=f;d.description&&(h=d.description(f)),r[d.name]={value:f,description:h}}if(Ig(e.slice(36,40))!==jH)throw new Error("ICC profile: missing signature");if(XH(e))return r;const s=t.getUint32(128);let a=132;for(let l=0;l<s;l++){if(QH(e,a))return r;const u=At(t,a,4),d=t.getUint32(a+4),f=t.getUint32(a+8);if(d>e.length)return r;const h=At(t,d,4);if(h===BH){const p=t.getUint32(d+8);if(p>f)return r;const g=Ig(e.slice(d+12,d+p+11));wf(r,u,g)}else if(h===qH){const p=t.getUint32(d+8),g=t.getUint32(d+12);let m=d+16;const v=[];for(let b=0;b<p;b++){const y=At(t,m+0,2),w=At(t,m+2,2),E=t.getUint32(m+4),C=t.getUint32(m+8),k=C6(t,d+C,E);v.push({languageCode:y,countryCode:w,text:k}),m+=g}if(p===1)wf(r,u,v[0].text);else{const b={};for(let y=0;y<v.length;y++)b[`${v[y].languageCode}-${v[y].countryCode}`]=v[y].text;wf(r,u,b)}}else if(h===HH){const p=Ig(e.slice(d+8,d+f-7));wf(r,u,p)}else if(h===GH){const p=Ig(e.slice(d+8,d+12));wf(r,u,p)}a=a+12}return r}function Ig(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function wf(t,e,n){WA[e]?t[WA[e].name]={value:n,description:n}:t[e]={value:n,description:n}}const Pg=27,eG={read:tG,SHOT_INFO_AUTO_ROTATE:Pg};function tG(t,e,n,r,i){let o=Na(t,fA,e,e+n,r,i);return o.ShotInfo&&(o=Ot({},o,nG(o.ShotInfo.value)),delete o.ShotInfo),o}function nG(t){const e={};return t[Pg]!==void 0&&(e.AutoRotate={value:t[Pg],description:rG(t[Pg])}),e}function rG(t){return t===0?"None":t===1?"Rotate 90 CW":t===2?"Rotate 180":t===3?"Rotate 270 CW":"Unknown"}const ZA=8,JA=ZA+2,XA={K3_III:78420},Og={CAMERA_ORIENTATION:1,ROLL_ANGLE:3,PITCH_ANGLE:5},iG={read:oG,PENTAX_IFD_OFFSET:JA,MODEL_ID:XA,LIK3III:Og};function oG(t,e,n,r){const i=Jo.getByteOrder(t,e+n+ZA),o=e+n;let s=Na(t,xy,o,o+JA,i,r);return sG(s)&&(s=Ot({},s,aG(t,o+s.LevelInfo.__offset,i)),delete s.LevelInfo),s}function sG(t){return t.PentaxModelID&&t.PentaxModelID.value===XA.K3_III&&t.LevelInfo}function aG(t,e,n){const r={};if(e+7>t.byteLength)return r;const i=t.getInt8(e+Og.CAMERA_ORIENTATION);r.CameraOrientation={value:i,description:lG(i)};const o=t.getInt16(e+Og.ROLL_ANGLE,n===Jo.LITTLE_ENDIAN);r.RollAngle={value:o,description:cG(o)};const s=t.getInt16(e+Og.PITCH_ANGLE,n===Jo.LITTLE_ENDIAN);return r.PitchAngle={value:s,description:uG(s)},r}function lG(t){return t===0?"Horizontal (normal)":t===1?"Rotate 270 CW":t===2?"Rotate 180":t===3?"Rotate 90 CW":t===4?"Upwards":t===5?"Downwards":"Unknown"}function cG(t){return""+t*-.5}function uG(t){return""+t*-.5}const dG={read:fG};function fG(t,e){return{"Image Width":hG(t,e),"Image Height":pG(t,e),"Bit Depth":gG(t,e),"Color Type":mG(t,e),Compression:vG(t,e),Filter:_G(t,e),Interlace:bG(t,e)}}function hG(t,e){if(e+0+4>t.byteLength)return;const i=Ge.getLongAt(t,e);return{value:i,description:`${i}px`}}function pG(t,e){if(e+4+4>t.byteLength)return;const i=Ge.getLongAt(t,e+4);return{value:i,description:`${i}px`}}function gG(t,e){if(e+8+1>t.byteLength)return;const i=Ge.getByteAt(t,e+8);return{value:i,description:`${i}`}}function mG(t,e){const i={0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha"};if(e+9+1>t.byteLength)return;const o=Ge.getByteAt(t,e+9);return{value:o,description:i[o]||"Unknown"}}function vG(t,e){if(e+10+1>t.byteLength)return;const i=Ge.getByteAt(t,e+10);return{value:i,description:i===0?"Deflate/Inflate":"Unknown"}}function _G(t,e){if(e+11+1>t.byteLength)return;const i=Ge.getByteAt(t,e+11);return{value:i,description:i===0?"Adaptive":"Unknown"}}function bG(t,e){const i={0:"Noninterlaced",1:"Adam7 Interlace"};if(e+12+1>t.byteLength)return;const o=Ge.getByteAt(t,e+12);return{value:o,description:i[o]||"Unknown"}}const yG={read:EG},Ly="STATE_KEYWORD",Ry="STATE_COMPRESSION",Fy="STATE_LANG",wG="STATE_TRANSLATED_KEYWORD",Dy="STATE_TEXT",xG=1,kG=1,SG=6;function EG(t,e,n,r){const i={},o=[];for(let s=0;s<e.length;s++){const{offset:a,length:l,type:u}=e[s],d=TG(t,a,l,u,n);if(d instanceof Promise)o.push(d.then(({name:f,value:h,description:p})=>{try{if($C.USE_EXIF&&e$(f,h))return{__exif:wA.read(n$(h),SG,r).tags};if($C.USE_IPTC&&t$(f,h))return{__iptc:Cy.read(n$(h),0,r)};if(f&&!e$(f,h)&&!t$(f,h))return{[f]:{value:h,description:p}}}catch{}return{}}));else{const{name:f,value:h,description:p}=d;f&&(i[f]={value:h,description:p})}}return{readTags:i,readTagsPromise:o.length>0?Promise.all(o):void 0}}function TG(t,e,n,r,i){const o=[],s=[];let a,l=Ly,u=mg;for(let f=0;f<n&&e+f<t.byteLength;f++){if(l===Ry){u=CG({type:r,dataView:t,offset:e+f}),r===Ol&&(f+=xG),l=QA(r,l);continue}else if(l===Dy){a=new DataView(t.buffer.slice(e+f,e+n));break}const h=t.getUint8(e+f);h===0?l=QA(r,l):l===Ly?o.push(h):l===Fy&&s.push(h)}if(u!==mg&&!i)return{};const d=AC(a,u,AG(r));return d instanceof Promise?d.then(f=>My(f,r,s,o)).catch(()=>My("<text using unknown compression>".split(""),r,s,o)):My(d,r,s,o)}function CG({type:t,dataView:e,offset:n}){if(t===Ol){if(e.getUint8(n)===kG)return e.getUint8(n+1)}else if(t===bg)return e.getUint8(n);return mg}function QA(t,e){return e===Ly&&[Ol,bg].includes(t)?Ry:e===Ry?t===Ol?Fy:Dy:e===Fy?wG:Dy}function AG(t){return t===_y||t===bg?"latin1":"utf-8"}function My(t,e,n,r){const i=IG(t);return{name:$G(e,n,r),value:i,description:e===Ol?PG(t):i}}function $G(t,e,n){const r=Pl(n);if(t===_y||e.length===0)return r;const i=Pl(e);return`${r} (${i})`}function IG(t){return t instanceof DataView?At(t,0,t.byteLength):t}function PG(t){return kA.decode("UTF-8",t)}function e$(t,e){return t.toLowerCase()==="raw profile type exif"&&e.substring(1,5)==="exif"}function t$(t,e){return t.toLowerCase()==="raw profile type iptc"&&e.substring(1,5)==="iptc"}function n$(t){const e=t.match(/\n(exif|iptc)\n\s*\d+\n([\s\S]*)$/);return OG(e[2].replace(/\n/g,""))}function OG(t){const e=new DataView(new ArrayBuffer(t.length/2));for(let n=0;n<t.length;n+=2)e.setUint8(n/2,parseInt(t.substring(n,n+2),16));return e}const NG={read:LG};function LG(t,e){const n={};for(let r=0;r<e.length;r++){const i=Ge.getLongAt(t,e[r]+ku),o=At(t,e[r]+Ia,yo);o===VC?(n["Pixels Per Unit X"]=RG(t,e[r],i),n["Pixels Per Unit Y"]=FG(t,e[r],i),n["Pixel Units"]=DG(t,e[r],i)):o===YC&&(n["Modify Date"]=MG(t,e[r],i))}return n}function RG(t,e,n){if(!Ng(t,e,n,0,4))return;const o=Ge.getLongAt(t,e+Lr+0);return{value:o,description:""+o}}function FG(t,e,n){if(!Ng(t,e,n,4,4))return;const o=Ge.getLongAt(t,e+Lr+4);return{value:o,description:""+o}}function DG(t,e,n){if(!Ng(t,e,n,8,1))return;const o=Ge.getByteAt(t,e+Lr+8);return{value:o,description:o===1?"meters":"Unknown"}}function MG(t,e,n){if(!Ng(t,e,n,0,7))return;const i=Ge.getShortAt(t,e+Lr),o=Ge.getByteAt(t,e+Lr+2),s=Ge.getByteAt(t,e+Lr+3),a=Ge.getByteAt(t,e+Lr+4),l=Ge.getByteAt(t,e+Lr+5),u=Ge.getByteAt(t,e+Lr+6);return{value:[i,o,s,a,l,u],description:`${Tu(i,4)}-${Tu(o,2)}-${Tu(s,2)} ${Tu(a,2)}:${Tu(l,2)}:${Tu(u,2)}`}}function Ng(t,e,n,r,i){return r+i<=n&&e+Lr+r+i<=t.byteLength}function Tu(t,e){return`${"0".repeat(e-(""+t).length)}${t}`}const zG={read:BG},UG=4,jG=7;function BG(t,e){const n={},r=Ge.getByteAt(t,e);return n.Alpha=qG(r),n.Animation=HG(r),n.ImageWidth=r$(t,e+UG),n.ImageHeight=r$(t,e+jG),n}function qG(t){const e=t&16;return{value:e?1:0,description:e?"Yes":"No"}}function HG(t){const e=t&2;return{value:e?1:0,description:e?"Yes":"No"}}function r$(t,e){const n=Ge.getByteAt(t,e)+256*Ge.getByteAt(t,e+1)+65536*Ge.getByteAt(t,e+2)+1;return{value:n,description:n+"px"}}const GG={read:WG};function WG(t){return{"GIF Version":KG(t),"Image Width":VG(t),"Image Height":YG(t),"Global Color Map":ZG(t),"Bits Per Pixel":XG(t),"Color Resolution Depth":JG(t)}}function KG(t){if(6>t.byteLength)return;const r=At(t,3,3);return{value:r,description:r}}function VG(t){if(8>t.byteLength)return;const r=t.getUint16(6,!0);return{value:r,description:`${r}px`}}function YG(t){if(10>t.byteLength)return;const r=t.getUint16(8,!0);return{value:r,description:`${r}px`}}function ZG(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&128)>>>7;return{value:i,description:i===1?"Yes":"No"}}function JG(t){if(11>t.byteLength)return;const i=((t.getUint8(10)&112)>>>4)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}function XG(t){if(11>t.byteLength)return;const i=(t.getUint8(10)&7)+1;return{value:i,description:`${i} ${i===1?"bit":"bits"}`}}const QG=[6,7,99],e9={get:t9};function t9(t,e,n){if(n9(e)){e.type="image/jpeg";const r=n+e.JPEGInterchangeFormat.value;e.image=t.buffer.slice(r,r+e.JPEGInterchangeFormatLength.value),SC(e,"base64",function(){return EC(this.image)})}return e}function n9(t){return t&&(t.Compression===void 0||QG.includes(t.Compression.value))&&t.JPEGInterchangeFormat&&t.JPEGInterchangeFormat.value&&t.JPEGInterchangeFormatLength&&t.JPEGInterchangeFormatLength.value}const zy={INCHES:2,CENTIMETERS:3,MILLIMETERS:4},Uy={INCHES_TO_MM:25.4,CM_TO_MM:10,MM_TO_MM:1},r9={get:i9};function i9(t,e){const n={};let r=!1;const i=Ll(t,"exif","FocalLength",e),o=Ll(t,"exif","FocalPlaneXResolution",e),s=Ll(t,"exif","FocalPlaneYResolution",e),a=Ll(t,"exif","FocalPlaneResolutionUnit",e),l=Ll(t,"file","Image Width",e),u=Ll(t,"file","Image Height",e),d=Ll(t,"exif","FocalLengthIn35mmFilm",e)||o9(o,s,a,l,u,i);d&&(n.FocalLength35efl={value:d,description:Et.FocalLengthIn35mmFilm(d)},r=!0);const f=s9(i,d);f&&(n.ScaleFactorTo35mmEquivalent=f,r=!0);const h=a9(d);if(h&&(n.FieldOfView=h,r=!0),r)return n}function Ll(t,e,n,r){if(r&&t[e]&&t[e][n])return t[e][n].value;if(!r&&t[n])return t[n].value}function o9(t,e,n,r,i,o){if(t&&e&&n&&r&&i&&o)try{let a;switch(n){case zy.INCHES:a=Uy.INCHES_TO_MM;break;case zy.CENTIMETERS:a=Uy.CM_TO_MM;break;case zy.MILLIMETERS:a=Uy.MM_TO_MM;break;default:return}const l=t[0]/t[1]*a,u=e[0]/e[1]*a,d=r/l,f=i/u,h=Math.sqrt(d**2+f**2);return o[0]/o[1]*(43.27/h)}catch{}}function s9(t,e){if(t&&e)try{const n=e/(t[0]/t[1]);return{value:n,description:n.toFixed(1)}}catch{}}function a9(t){if(t)try{const n=2*Math.atan(36/(2*t))*(180/Math.PI);return{value:n,description:n.toFixed(1)+" deg"}}catch{}}function i$(t){this.name="MetadataMissingError",this.message=t||"No Exif data",this.stack=new Error().stack}i$.prototype=new Error;const o$={MetadataMissingError:i$},l9={load:c9,loadView:s$,errors:o$};function c9(t,e={}){return u9(t)?(e.async=!0,d9(t,e).then(n=>jy(n,e))):_9(t)?(e.async=!0,b9(t).then(n=>jy(n,e))):jy(t,e)}function u9(t){return typeof t=="string"}function d9(t,e){return/^\w+:\/\//.test(t)?typeof fetch<"u"?f9(t,e):h9(t,e):g9(t)?Promise.resolve(A6(t)):m9(t,e)}function f9(t,{length:e}={}){const n={method:"GET"};return Number.isInteger(e)&&e>=0&&(n.headers={range:`bytes=0-${e-1}`}),fetch(t,n).then(r=>r.arrayBuffer())}function h9(t,{length:e}={}){return new Promise((n,r)=>{const i={};Number.isInteger(e)&&e>=0&&(i.headers={range:`bytes=0-${e-1}`}),p9(t)(t,i,s=>{if(s.statusCode>=200&&s.statusCode<=299){const a=[];s.on("data",l=>a.push(Buffer.from(l))),s.on("error",l=>r(l)),s.on("end",()=>n(Buffer.concat(a)))}else r(`Could not fetch file: ${s.statusCode} ${s.statusMessage}`),s.resume()}).on("error",s=>r(s))})}function p9(t){return/^https:\/\//.test(t)?__non_webpack_require__("https").get:__non_webpack_require__("http").get}function g9(t){return/^data:[^;,]*(;base64)?,/.test(t)}function m9(t,{length:e}={}){return new Promise((n,r)=>{const i=v9();i.open(t,(o,s)=>{o?r(o):i.stat(t,(a,l)=>{if(a)r(a);else{const u=Math.min(l.size,e!==void 0?e:l.size),d=Buffer.alloc(u),f={buffer:d,length:u};i.read(s,f,h=>{h?r(h):i.close(s,p=>{p&&console.warn(`Could not close file ${t}:`,p),n(d)})})}})})})}function v9(){try{return __non_webpack_require__("fs")}catch{return}}function _9(t){return typeof File<"u"&&t instanceof File}function b9(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=i=>e(i.target.result),r.onerror=()=>n(r.error),r.readAsArrayBuffer(t)})}function jy(t,e){return y9(t)&&(t=new Uint8Array(t).buffer),s$(w9(t),e)}function y9(t){try{return Buffer.isBuffer(t)}catch{return!1}}function w9(t){try{return new DataView(t)}catch{return new wC(t)}}function s$(t,{expanded:e=!1,async:n=!1,includeUnknown:r=!1,domParser:i=void 0}={expanded:!1,async:!1,includeUnknown:!1,domParser:void 0}){let o=!1,s={};const a=[],{fileType:l,fileDataOffset:u,jfifDataOffset:d,tiffHeaderOffset:f,iptcDataOffset:h,xmpChunks:p,iccChunks:g,mpfDataOffset:m,pngHeaderOffset:v,pngTextChunks:b,pngChunkOffsets:y,vp8xChunkOffset:w,gifHeaderOffset:E}=y5.parseAppMarkers(t,n);if(x9(u)){o=!0;const S=nq.read(t,u);e?s.file=S:s=Ot({},s,S)}if(k9(d)){o=!0;const S=fq.read(t,d);e?s.jfif=S:s=Ot({},s,S)}if(S9(f)){o=!0;const{tags:S,byteOrder:A}=wA.read(t,f,r);if(S.Thumbnail&&(s.Thumbnail=S.Thumbnail,delete S.Thumbnail),e?(s.exif=S,E9(s)):s=Ot({},s,S),S["IPTC-NAA"]&&!a$(h)){const I=Cy.read(S["IPTC-NAA"].value,0,r);e?s.iptc=I:s=Ot({},s,I)}if(S.ApplicationNotes&&!l$(p)){const I=$A.read(Pl(S.ApplicationNotes.value),void 0,i);e?s.xmp=I:(delete I._raw,s=Ot({},s,I))}if(S.ImageSourceData&&S.PhotoshopSettings){const I=OH.read(S.PhotoshopSettings.value,r);e?s.photoshop=I:s=Ot({},s,I)}if(S.ICC_Profile&&!c$(g)){const I=VA.read(S.ICC_Profile.value,[{offset:0,length:S.ICC_Profile.value.length,chunkNumber:1,chunksTotal:1}]);e?s.icc=I:s=Ot({},s,I)}if(S.MakerNote){if(T9(S)){const I=eG.read(t,f,S.MakerNote.__offset,A,r);e?s.makerNotes=I:s=Ot({},s,I)}else if(C9(S)){const I=iG.read(t,f,S.MakerNote.__offset,r);e?s.makerNotes=I:s=Ot({},s,I)}}S.MakerNote&&delete S.MakerNote.__offset}if(a$(h)){o=!0;const S=Cy.read(t,h,r);e?s.iptc=S:s=Ot({},s,S)}if(l$(p)){o=!0;const S=$A.read(t,p,i);e?s.xmp=S:(delete S._raw,s=Ot({},s,S))}if(c$(g)){o=!0;const S=VA.read(t,g,n);S instanceof Promise?a.push(S.then($)):$(S)}if(A9(m)){o=!0;const S=V5.read(t,m,r);e?s.mpf=S:s=Ot({},s,S)}if($9(v)){o=!0;const S=dG.read(t,v);e?(s.png=s.png?Ot({},s.png,S):S,s.pngFile=S):s=Ot({},s,S)}if(I9(b)){o=!0;const{readTags:S,readTagsPromise:A}=yG.read(t,b,n,r);x(S),A&&a.push(A.then(I=>I.forEach(x)))}if(P9(y)){o=!0;const S=NG.read(t,y);e?s.png=s.png?Ot({},s.png,S):S:s=Ot({},s,S)}if(O9(w)){o=!0;const S=zG.read(t,w);e?s.riff=s.riff?Ot({},s.riff,S):S:s=Ot({},s,S)}if(N9(E)){o=!0;const S=GG.read(t,E);e?s.gif=s.gif?Ot({},s.gif,S):S:s=Ot({},s,S)}const C=r9.get(s,e);C&&(e?s.composite=C:s=Ot({},s,C));const k=e9.get(t,s.Thumbnail,f);if(k?(o=!0,s.Thumbnail=k):delete s.Thumbnail,l&&(e?(s.file||(s.file={}),s.file.FileType=l):s.FileType=l,o=!0),!o)throw new o$.MetadataMissingError;if(n)return Promise.all(a).then(()=>s);return s;function $(S){e?s.icc=S:s=Ot({},s,S)}function x(S){if(e){for(const A of["exif","iptc"]){const I=`__${A}`;S[I]&&(s[A]=s[A]?Ot({},s.exif,S[I]):S[I],delete S[I])}s.png=s.png?Ot({},s.png,S):S,s.pngText=s.pngText?Ot({},s.png,S):S}else s=Ot({},s,S.__exif?S.__exif:{},S.__iptc?S.__iptc:{},S),delete s.__exif,delete s.__iptc}}function x9(t){return t!==void 0}function k9(t){return t!==void 0}function S9(t){return t!==void 0}function E9(t){if(t.exif){if(t.exif.GPSLatitude&&t.exif.GPSLatitudeRef)try{t.gps=t.gps||{},t.gps.Latitude=vg(t.exif.GPSLatitude.value),t.exif.GPSLatitudeRef.value.join("")==="S"&&(t.gps.Latitude=-t.gps.Latitude)}catch{}if(t.exif.GPSLongitude&&t.exif.GPSLongitudeRef)try{t.gps=t.gps||{},t.gps.Longitude=vg(t.exif.GPSLongitude.value),t.exif.GPSLongitudeRef.value.join("")==="W"&&(t.gps.Longitude=-t.gps.Longitude)}catch{}if(t.exif.GPSAltitude&&t.exif.GPSAltitudeRef)try{t.gps=t.gps||{},t.gps.Altitude=t.exif.GPSAltitude.value[0]/t.exif.GPSAltitude.value[1],t.exif.GPSAltitudeRef.value===1&&(t.gps.Altitude=-t.gps.Altitude)}catch{}}}function a$(t){return t!==void 0}function l$(t){return Array.isArray(t)&&t.length>0}function c$(t){return Array.isArray(t)&&t.length>0}function T9(t){return t.Make&&t.Make.value&&Array.isArray(t.Make.value)&&t.Make.value[0]==="Canon"&&t.MakerNote&&t.MakerNote.__offset}function C9(t){const e="PENTAX ";return t.MakerNote.value.length>e.length&&Pl(t.MakerNote.value.slice(0,e.length))===e&&t.MakerNote.__offset}function A9(t){return t!==void 0}function $9(t){return t!==void 0}function I9(t){return t!==void 0}function P9(t){return t!==void 0}function O9(t){return t!==void 0}function N9(t){return t!==void 0}const Rl=(t,e)=>{if(typeof t!="number")return NaN;if(!Number.isFinite(t))return t;const n=10**e;return Math.round(t*n)/n},L9=/^(?<year>\d{4}):(?<month>\d{2}):(?<date>\d{2}) (?<hour>\d{2}):(?<minute>\d{2}):(?<second>\d{2})$/,R9=async(t,e)=>{if(!(e==="image")||!t.file)return{createdDate:void 0,coordinates:void 0};const{exif:{DateTimeOriginal:r,DateTime:i}={DateTimeOriginal:void 0,DateTime:void 0},gps:{Latitude:o,Longitude:s}={Latitude:void 0,Longitude:void 0}}=await l9.load(t.file,{expanded:!0}).catch(()=>{})??{},l=(r?.description??i?.description)?.match(L9);let u,d;if(l?.groups){const{year:f,month:h,date:p,hour:g,minute:m,second:v}=l.groups,b=new Date(`${f}-${h}-${p}T${g}:${m}:${v}Z`);Number.isNaN(b.getTime())||(u=b)}return typeof o=="number"&&typeof s=="number"&&Number.isFinite(o)&&Number.isFinite(s)&&(d={latitude:Rl(o,7),longitude:Rl(s,7)}),{createdDate:u,coordinates:d}},F9=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})},D9=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})},M9=async(t,e)=>e==="image"?F9(t):D9(t,e),z9=async(t,e,n)=>{const{dimensions:r,duration:i}=await M9(e,n),{createdDate:o,coordinates:s}=await R9(t,n);return{dimensions:r,duration:i,createdDate:o,coordinates:s}},Cu=_b("pdfjs-dist"),U9=`${Cu}/build/pdf.min.mjs`,j9=`${Cu}/build/pdf.worker.min.mjs`,B9={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${Cu}/cmaps/`,iccUrl:`${Cu}/iccs/`,standardFontDataUrl:`${Cu}/standard_fonts/`,wasmUrl:`${Cu}/wasm/`};let Lg;const q9=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{if(!Lg)try{Lg=await import(U9),Lg.GlobalWorkerOptions.workerSrc=j9}catch{throw new Error("Failed to load PDF.js library")}const s=URL.createObjectURL(t),a=new OffscreenCanvas(512,512),l=a.getContext("2d");try{const d=await(await Lg.getDocument({...B9,url:s}).promise).getPage(1),f=d.getViewport({scale:1}),{scale:h}=oT(a,{width:f.width,height:f.height},{width:r,height:i,fit:o});await d.render({canvasContext:l,viewport:h===1?f:d.getViewport({scale:h})}).promise,URL.revokeObjectURL(s)}catch{throw new Error("Failed to render PDF")}return iT(a,{format:e,quality:n})},By=new Set,Ra=async(t,e=0)=>{const{file:n,blobURL:r,name:i}=t;if(r)return fetch(r).then(s=>s.blob());let o;if(n)o=n;else{if(By.has(t.path)&&e<=25)return await wt(200),Ra(t,e+1);By.add(t.path);const s=await ie(Ln)?.fetchBlob?.(t);if(!s)throw new Error("Failed to retrieve blob");o=new Blob([s],{type:Ms.getType(i)??s.type})}return t.blobURL=URL.createObjectURL(o),By.delete(t.path),o},qy=async t=>(t.blobURL||await Ra(t),t.blobURL);let Rg;const Hy=async(t,{cacheOnly:e=!1}={})=>{const n=t.name.endsWith(".pdf");if(!(["image","video"].includes(t.kind)||n))return;if(Rg===void 0){const{databaseName:i}=ie(Ln)?.repository??{};Rg=i?new Ho(i,"asset-thumbnails"):null}let r=await Rg?.get(t.sha);if(!r){if(e)return;const i=await Ra(t),o={format:"webp",quality:85,width:512,height:512,fit:"contain"};r=n?await q9(i,o):await yb(i,o),await Rg?.set(t.sha,r)}return URL.createObjectURL(r)},xf=(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:Hp(t.path).find(({collectionName:d})=>d!==void 0)??ie(kl);if(o)return e&&r&&gn(t.path).dirname===gn(Object.values(r.locales)[0].path).dirname?t.name:void 0;const{_baseURL:a="",output:{encode_file_path:l=!1}={}}=ie(Nt);let u=s?t.path.replace(vC(t.folder.internalPath??"",d=>{const f=d.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return f?`(?<${f}>[^/]+)`:un(d)}),i?.replaceAll(/{{(.+?)}}/g,"$<$1>")??""):t.path.replace(t.folder.internalPath??"",i==="/"?"":i??"");if(l&&(u=_C(u)),!(!u.startsWith("/")&&!n))return e?u:`${a}${u}`},Au=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=pw({value:t,entry:e,collectionName:n,fileName:r});if(o)return(i?await Hy(o):await qy(o))??xf(o)},Fg={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},Dg=async t=>{const{kind:e,path:n}=t,{blobBaseURL:r}=ie(Ln)?.repository??{},i=await qy(t),o=xf(t,{allowSpecial:!0,pathOnly:!0})??i;let s={};return["image","video","audio"].includes(e)&&i&&(s=await z9(t,i,e)),{...s,publicURL:xf(t),repoBlobURL:r?`${r}/${n}`:void 0,usedEntries:o?await fw(o):[]}},$u=nt(!1),Xo=nt(),Gy=nt([]),wi=nt([]),Wy=nt([]),u$=t=>ie(Gy).filter(({collectionName:e,filePathMap:n})=>n?Object.values(n).includes(t):li(e)?._file?.fullPathRegEx?.test(t)).sort((e,n)=>n.folderPath?.localeCompare(e.folderPath??"")??0),H9=()=>{try{return ie(ue)("index_file")}catch{return"Index File"}},xi=t=>{const{index_file:e}=t;if(!zf(t)||!e)return;const n=e===!0?{}:e;return{name:n.name??"_index",label:n.label??H9(),icon:n.icon??"home",fields:n.fields,editor:n.editor}},Qo=(t,e)=>{const n=xi(t);return n?e.slug===n.name:!1},G9=t=>{const e=xi(t);return e?!ts(t.name).some(({slug:n})=>n===e.name):!1},W9=/{{(?:year|month|day|hour|minute|second)}}/,js=t=>u$(Object.values(t.locales)[0].path).map(({collectionName:e})=>li(e)).filter(e=>!!e),K9=({dateFieldName:t,fields:e,content:n})=>{const r=t?e.find(({widget:a,name:l})=>a==="datetime"&&l===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 Sl({date:(s?We.utc:We)(i,o).toDate(),timeZone:s?"UTC":void 0})},d$=(t,e,n,r)=>{const{show_preview_links:i=!0,_baseURL:o}=ie(Nt)??{},{slug:s,path:a,content:l}=t.locales[e]??{},{preview_path:u,preview_path_date_field:d,fields:f=[]}=r??n;if(!i||!o||!a||!l||!u)return;const h=Qo(n,t),g=(h?xi(n):void 0)?.fields??f;let m;if(!(W9.test(u)&&(m=K9({dateFieldName:d,fields:g,content:l}),!m)))try{const v=ns(u,{type:"preview_path",collection:n,content:l,locale:e,currentSlug:s,entryFilePath:a,dateTimeParts:m,isIndexFile:h});return`${o.replace(/\/$/,"")}/${v.replace(/^\//,"")}`}catch{return}},V9=(t,e)=>`${ie(Ln)?.repository?.blobBaseURL}/${t.locales[e]?.path}?plain=1`,Mg=t=>!("divider"in t)&&typeof t.file=="string"&&Array.isArray(t.fields),zg=t=>t.filter(e=>Mg(e)),Iu=(t,e)=>{const n=typeof t=="string"?li(t):t;if(!(!n||!("_fileMap"in n)))return n._fileMap[e]},kf=t=>t.label||t.name,Fa=(t,e)=>"_fileMap"in t?Object.values(t._fileMap).filter(({_file:n,_i18n:r})=>n.fullPath===e.locales[r.defaultLocale]?.path):[],Ky=(t,e)=>ie(wi).find(n=>js(n).some(r=>r.name===t&&Fa(r,n).some(i=>i.name===e))),f$=(t,e)=>{if(t&&e){const{collections:n,singletons:r}=ie(Nt);return t==="_singletons"?Array.isArray(r)?zg(r).findIndex(i=>i.name===e):-1:Bl({collections:n}).find(({name:i})=>i===t)?.files?.findIndex(({name:i})=>i===e)??-1}return-1};var Vy,h$;function p$(){if(h$)return Vy;h$=1;const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:l,construct:u}=typeof Reflect<"u"&&Reflect;o||(o=function(_e){return _e}),s||(s=function(_e){return _e}),l||(l=function(_e,Oe,Ce){return _e.apply(Oe,Ce)}),u||(u=function(_e,Oe){return new _e(...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),C=x(Object.prototype.hasOwnProperty),k=x(RegExp.prototype.test),$=S(TypeError);function x(Te){return function(_e){_e instanceof RegExp&&(_e.lastIndex=0);for(var Oe=arguments.length,Ce=new Array(Oe>1?Oe-1:0),De=1;De<Oe;De++)Ce[De-1]=arguments[De];return l(Te,_e,Ce)}}function S(Te){return function(){for(var _e=arguments.length,Oe=new Array(_e),Ce=0;Ce<_e;Ce++)Oe[Ce]=arguments[Ce];return u(Te,Oe)}}function A(Te,_e){let Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;e&&e(Te,null);let Ce=_e.length;for(;Ce--;){let De=_e[Ce];if(typeof De=="string"){const Je=Oe(De);Je!==De&&(n(_e)||(_e[Ce]=Je),De=Je)}Te[De]=!0}return Te}function I(Te){for(let _e=0;_e<Te.length;_e++)C(Te,_e)||(Te[_e]=null);return Te}function P(Te){const _e=a(null);for(const[Oe,Ce]of t(Te))C(Te,Oe)&&(Array.isArray(Ce)?_e[Oe]=I(Ce):Ce&&typeof Ce=="object"&&Ce.constructor===Object?_e[Oe]=P(Ce):_e[Oe]=Ce);return _e}function N(Te,_e){for(;Te!==null;){const Ce=i(Te,_e);if(Ce){if(Ce.get)return x(Ce.get);if(typeof Ce.value=="function")return x(Ce.value)}Te=r(Te)}function Oe(){return null}return Oe}const L=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","section","select","shadow","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"]),B=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=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"]),W=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"]),Z=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"]),J=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=o(["#text"]),G=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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Y=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"]),ee=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"]),se=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),X=s(/\$\{[\w\W]*/gm),ne=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),de=s(/^aria-[\-\w]+$/),pe=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fe=s(/^(?:\w+script|data):/i),he=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ge=s(/^html$/i),ye=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var xe=Object.freeze({__proto__:null,ARIA_ATTR:de,ATTR_WHITESPACE:he,CUSTOM_ELEMENT:ye,DATA_ATTR:ne,DOCTYPE_NAME:ge,ERB_EXPR:re,IS_ALLOWED_URI:pe,IS_SCRIPT_OR_DATA:fe,MUSTACHE_EXPR:oe,TMPLIT_EXPR:X});const ve={element:1,text:3,progressingInstruction:7,comment:8,document:9},ze=function(){return typeof window>"u"?null:window},Me=function(_e,Oe){if(typeof _e!="object"||typeof _e.createPolicy!="function")return null;let Ce=null;const De="data-tt-policy-suffix";Oe&&Oe.hasAttribute(De)&&(Ce=Oe.getAttribute(De));const Je="dompurify"+(Ce?"#"+Ce:"");try{return _e.createPolicy(Je,{createHTML(lt){return lt},createScriptURL(lt){return lt}})}catch{return console.warn("TrustedTypes policy "+Je+" could not be created."),null}},Ae=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function $e(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ze();const _e=ht=>$e(ht);if(_e.version="3.2.6",_e.removed=[],!Te||!Te.document||Te.document.nodeType!==ve.document||!Te.Element)return _e.isSupported=!1,_e;let{document:Oe}=Te;const Ce=Oe,De=Ce.currentScript,{DocumentFragment:Je,HTMLTemplateElement:lt,Node:gt,Element:Ze,NodeFilter:Ye,NamedNodeMap:Se=Te.NamedNodeMap||Te.MozNamedAttrMap,HTMLFormElement:Ve,DOMParser:ot,trustedTypes:kt}=Te,st=Ze.prototype,mt=N(st,"cloneNode"),Kt=N(st,"remove"),xn=N(st,"nextSibling"),Lt=N(st,"childNodes"),zt=N(st,"parentNode");if(typeof lt=="function"){const ht=Oe.createElement("template");ht.content&&ht.content.ownerDocument&&(Oe=ht.content.ownerDocument)}let it,Ct="";const{implementation:Rt,createNodeIterator:Vn,createDocumentFragment:yn,getElementsByTagName:Ar}=Oe,{importNode:vt}=Ce;let _t=Ae();_e.isSupported=typeof t=="function"&&typeof zt=="function"&&Rt&&Rt.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:kn,ERB_EXPR:$n,TMPLIT_EXPR:Ur,DATA_ATTR:jr,ARIA_ATTR:br,IS_SCRIPT_OR_DATA:Br,ATTR_WHITESPACE:qr,CUSTOM_ELEMENT:dr}=xe;let{IS_ALLOWED_URI:fr}=xe,cn=null;const Fn=A({},[...L,...B,...q,...Z,...H]);let Qt=null;const yr=A({},[...G,...Y,...ee,...se]);let qt=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}})),$r=null,an=null,pt=!0,It=!0,Dn=!1,hr=!0,Po=!1,Oo=!0,Mn=!1,Hr=!1,Wi=!1,ao=!1,Gr=!1,zn=!1,pr=!0,Ci=!1;const sa="user-content-";let Sc=!0,aa=!1,lo={},bs=null;const ys=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 ws=null;const il=A({},["audio","video","img","source","image","track"]);let Ec=null;const xd=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nv="http://www.w3.org/1998/Math/MathML",Lv="http://www.w3.org/2000/svg",la="http://www.w3.org/1999/xhtml";let kd=la,j1=!1,B1=null;const Epe=A({},[Nv,Lv,la],v);let Rv=A({},["mi","mo","mn","ms","mtext"]),Fv=A({},["annotation-xml"]);const Tpe=A({},["title","style","font","a","script"]);let Mh=null;const Cpe=["application/xhtml+xml","text/html"],Ape="text/html";let Ir=null,Sd=null;const $pe=Oe.createElement("form"),VR=function(ae){return ae instanceof RegExp||ae instanceof Function},q1=function(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Sd&&Sd===ae)){if((!ae||typeof ae!="object")&&(ae={}),ae=P(ae),Mh=Cpe.indexOf(ae.PARSER_MEDIA_TYPE)===-1?Ape:ae.PARSER_MEDIA_TYPE,Ir=Mh==="application/xhtml+xml"?v:m,cn=C(ae,"ALLOWED_TAGS")?A({},ae.ALLOWED_TAGS,Ir):Fn,Qt=C(ae,"ALLOWED_ATTR")?A({},ae.ALLOWED_ATTR,Ir):yr,B1=C(ae,"ALLOWED_NAMESPACES")?A({},ae.ALLOWED_NAMESPACES,v):Epe,Ec=C(ae,"ADD_URI_SAFE_ATTR")?A(P(xd),ae.ADD_URI_SAFE_ATTR,Ir):xd,ws=C(ae,"ADD_DATA_URI_TAGS")?A(P(il),ae.ADD_DATA_URI_TAGS,Ir):il,bs=C(ae,"FORBID_CONTENTS")?A({},ae.FORBID_CONTENTS,Ir):ys,$r=C(ae,"FORBID_TAGS")?A({},ae.FORBID_TAGS,Ir):P({}),an=C(ae,"FORBID_ATTR")?A({},ae.FORBID_ATTR,Ir):P({}),lo=C(ae,"USE_PROFILES")?ae.USE_PROFILES:!1,pt=ae.ALLOW_ARIA_ATTR!==!1,It=ae.ALLOW_DATA_ATTR!==!1,Dn=ae.ALLOW_UNKNOWN_PROTOCOLS||!1,hr=ae.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Po=ae.SAFE_FOR_TEMPLATES||!1,Oo=ae.SAFE_FOR_XML!==!1,Mn=ae.WHOLE_DOCUMENT||!1,ao=ae.RETURN_DOM||!1,Gr=ae.RETURN_DOM_FRAGMENT||!1,zn=ae.RETURN_TRUSTED_TYPE||!1,Wi=ae.FORCE_BODY||!1,pr=ae.SANITIZE_DOM!==!1,Ci=ae.SANITIZE_NAMED_PROPS||!1,Sc=ae.KEEP_CONTENT!==!1,aa=ae.IN_PLACE||!1,fr=ae.ALLOWED_URI_REGEXP||pe,kd=ae.NAMESPACE||la,Rv=ae.MATHML_TEXT_INTEGRATION_POINTS||Rv,Fv=ae.HTML_INTEGRATION_POINTS||Fv,qt=ae.CUSTOM_ELEMENT_HANDLING||{},ae.CUSTOM_ELEMENT_HANDLING&&VR(ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(qt.tagNameCheck=ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&VR(ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(qt.attributeNameCheck=ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&typeof ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(qt.allowCustomizedBuiltInElements=ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Po&&(It=!1),Gr&&(ao=!0),lo&&(cn=A({},H),Qt=[],lo.html===!0&&(A(cn,L),A(Qt,G)),lo.svg===!0&&(A(cn,B),A(Qt,Y),A(Qt,se)),lo.svgFilters===!0&&(A(cn,q),A(Qt,Y),A(Qt,se)),lo.mathMl===!0&&(A(cn,Z),A(Qt,ee),A(Qt,se))),ae.ADD_TAGS&&(cn===Fn&&(cn=P(cn)),A(cn,ae.ADD_TAGS,Ir)),ae.ADD_ATTR&&(Qt===yr&&(Qt=P(Qt)),A(Qt,ae.ADD_ATTR,Ir)),ae.ADD_URI_SAFE_ATTR&&A(Ec,ae.ADD_URI_SAFE_ATTR,Ir),ae.FORBID_CONTENTS&&(bs===ys&&(bs=P(bs)),A(bs,ae.FORBID_CONTENTS,Ir)),Sc&&(cn["#text"]=!0),Mn&&A(cn,["html","head","body"]),cn.table&&(A(cn,["tbody"]),delete $r.tbody),ae.TRUSTED_TYPES_POLICY){if(typeof ae.TRUSTED_TYPES_POLICY.createHTML!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ae.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');it=ae.TRUSTED_TYPES_POLICY,Ct=it.createHTML("")}else it===void 0&&(it=Me(kt,De)),it!==null&&typeof Ct=="string"&&(Ct=it.createHTML(""));o&&o(ae),Sd=ae}},YR=A({},[...B,...q,...W]),ZR=A({},[...Z,...J]),Ipe=function(ae){let Be=zt(ae);(!Be||!Be.tagName)&&(Be={namespaceURI:kd,tagName:"template"});const dt=m(ae.tagName),Un=m(Be.tagName);return B1[ae.namespaceURI]?ae.namespaceURI===Lv?Be.namespaceURI===la?dt==="svg":Be.namespaceURI===Nv?dt==="svg"&&(Un==="annotation-xml"||Rv[Un]):!!YR[dt]:ae.namespaceURI===Nv?Be.namespaceURI===la?dt==="math":Be.namespaceURI===Lv?dt==="math"&&Fv[Un]:!!ZR[dt]:ae.namespaceURI===la?Be.namespaceURI===Lv&&!Fv[Un]||Be.namespaceURI===Nv&&!Rv[Un]?!1:!ZR[dt]&&(Tpe[dt]||!YR[dt]):!!(Mh==="application/xhtml+xml"&&B1[ae.namespaceURI]):!1},xs=function(ae){p(_e.removed,{element:ae});try{zt(ae).removeChild(ae)}catch{Kt(ae)}},Ed=function(ae,Be){try{p(_e.removed,{attribute:Be.getAttributeNode(ae),from:Be})}catch{p(_e.removed,{attribute:null,from:Be})}if(Be.removeAttribute(ae),ae==="is")if(ao||Gr)try{xs(Be)}catch{}else try{Be.setAttribute(ae,"")}catch{}},JR=function(ae){let Be=null,dt=null;if(Wi)ae="<remove></remove>"+ae;else{const wr=b(ae,/^[\r\n\t ]+/);dt=wr&&wr[0]}Mh==="application/xhtml+xml"&&kd===la&&(ae='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ae+"</body></html>");const Un=it?it.createHTML(ae):ae;if(kd===la)try{Be=new ot().parseFromString(Un,Mh)}catch{}if(!Be||!Be.documentElement){Be=Rt.createDocument(kd,"template",null);try{Be.documentElement.innerHTML=j1?Ct:Un}catch{}}const ei=Be.body||Be.documentElement;return ae&&dt&&ei.insertBefore(Oe.createTextNode(dt),ei.childNodes[0]||null),kd===la?Ar.call(Be,Mn?"html":"body")[0]:Mn?Be.documentElement:ei},XR=function(ae){return Vn.call(ae.ownerDocument||ae,ae,Ye.SHOW_ELEMENT|Ye.SHOW_COMMENT|Ye.SHOW_TEXT|Ye.SHOW_PROCESSING_INSTRUCTION|Ye.SHOW_CDATA_SECTION,null)},H1=function(ae){return ae instanceof Ve&&(typeof ae.nodeName!="string"||typeof ae.textContent!="string"||typeof ae.removeChild!="function"||!(ae.attributes instanceof Se)||typeof ae.removeAttribute!="function"||typeof ae.setAttribute!="function"||typeof ae.namespaceURI!="string"||typeof ae.insertBefore!="function"||typeof ae.hasChildNodes!="function")},QR=function(ae){return typeof gt=="function"&&ae instanceof gt};function ca(ht,ae,Be){d(ht,dt=>{dt.call(_e,ae,Be,Sd)})}const eF=function(ae){let Be=null;if(ca(_t.beforeSanitizeElements,ae,null),H1(ae))return xs(ae),!0;const dt=Ir(ae.nodeName);if(ca(_t.uponSanitizeElement,ae,{tagName:dt,allowedTags:cn}),Oo&&ae.hasChildNodes()&&!QR(ae.firstElementChild)&&k(/<[/\w!]/g,ae.innerHTML)&&k(/<[/\w!]/g,ae.textContent)||ae.nodeType===ve.progressingInstruction||Oo&&ae.nodeType===ve.comment&&k(/<[/\w]/g,ae.data))return xs(ae),!0;if(!cn[dt]||$r[dt]){if(!$r[dt]&&nF(dt)&&(qt.tagNameCheck instanceof RegExp&&k(qt.tagNameCheck,dt)||qt.tagNameCheck instanceof Function&&qt.tagNameCheck(dt)))return!1;if(Sc&&!bs[dt]){const Un=zt(ae)||ae.parentNode,ei=Lt(ae)||ae.childNodes;if(ei&&Un){const wr=ei.length;for(let Ai=wr-1;Ai>=0;--Ai){const ua=mt(ei[Ai],!0);ua.__removalCount=(ae.__removalCount||0)+1,Un.insertBefore(ua,xn(ae))}}}return xs(ae),!0}return ae instanceof Ze&&!Ipe(ae)||(dt==="noscript"||dt==="noembed"||dt==="noframes")&&k(/<\/no(script|embed|frames)/i,ae.innerHTML)?(xs(ae),!0):(Po&&ae.nodeType===ve.text&&(Be=ae.textContent,d([kn,$n,Ur],Un=>{Be=y(Be,Un," ")}),ae.textContent!==Be&&(p(_e.removed,{element:ae.cloneNode()}),ae.textContent=Be)),ca(_t.afterSanitizeElements,ae,null),!1)},tF=function(ae,Be,dt){if(pr&&(Be==="id"||Be==="name")&&(dt in Oe||dt in $pe))return!1;if(!(It&&!an[Be]&&k(jr,Be))){if(!(pt&&k(br,Be))){if(!Qt[Be]||an[Be]){if(!(nF(ae)&&(qt.tagNameCheck instanceof RegExp&&k(qt.tagNameCheck,ae)||qt.tagNameCheck instanceof Function&&qt.tagNameCheck(ae))&&(qt.attributeNameCheck instanceof RegExp&&k(qt.attributeNameCheck,Be)||qt.attributeNameCheck instanceof Function&&qt.attributeNameCheck(Be))||Be==="is"&&qt.allowCustomizedBuiltInElements&&(qt.tagNameCheck instanceof RegExp&&k(qt.tagNameCheck,dt)||qt.tagNameCheck instanceof Function&&qt.tagNameCheck(dt))))return!1}else if(!Ec[Be]){if(!k(fr,y(dt,qr,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&ae!=="script"&&w(dt,"data:")===0&&ws[ae])){if(!(Dn&&!k(Br,y(dt,qr,"")))){if(dt)return!1}}}}}}return!0},nF=function(ae){return ae!=="annotation-xml"&&b(ae,dr)},rF=function(ae){ca(_t.beforeSanitizeAttributes,ae,null);const{attributes:Be}=ae;if(!Be||H1(ae))return;const dt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Qt,forceKeepAttr:void 0};let Un=Be.length;for(;Un--;){const ei=Be[Un],{name:wr,namespaceURI:Ai,value:ua}=ei,zh=Ir(wr),G1=ua;let ti=wr==="value"?G1:E(G1);if(dt.attrName=zh,dt.attrValue=ti,dt.keepAttr=!0,dt.forceKeepAttr=void 0,ca(_t.uponSanitizeAttribute,ae,dt),ti=dt.attrValue,Ci&&(zh==="id"||zh==="name")&&(Ed(wr,ae),ti=sa+ti),Oo&&k(/((--!?|])>)|<\/(style|title)/i,ti)){Ed(wr,ae);continue}if(dt.forceKeepAttr)continue;if(!dt.keepAttr){Ed(wr,ae);continue}if(!hr&&k(/\/>/i,ti)){Ed(wr,ae);continue}Po&&d([kn,$n,Ur],oF=>{ti=y(ti,oF," ")});const iF=Ir(ae.nodeName);if(!tF(iF,zh,ti)){Ed(wr,ae);continue}if(it&&typeof kt=="object"&&typeof kt.getAttributeType=="function"&&!Ai)switch(kt.getAttributeType(iF,zh)){case"TrustedHTML":{ti=it.createHTML(ti);break}case"TrustedScriptURL":{ti=it.createScriptURL(ti);break}}if(ti!==G1)try{Ai?ae.setAttributeNS(Ai,wr,ti):ae.setAttribute(wr,ti),H1(ae)?xs(ae):h(_e.removed)}catch{Ed(wr,ae)}}ca(_t.afterSanitizeAttributes,ae,null)},Ppe=function ht(ae){let Be=null;const dt=XR(ae);for(ca(_t.beforeSanitizeShadowDOM,ae,null);Be=dt.nextNode();)ca(_t.uponSanitizeShadowNode,Be,null),eF(Be),rF(Be),Be.content instanceof Je&&ht(Be.content);ca(_t.afterSanitizeShadowDOM,ae,null)};return _e.sanitize=function(ht){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,dt=null,Un=null,ei=null;if(j1=!ht,j1&&(ht="<!-->"),typeof ht!="string"&&!QR(ht))if(typeof ht.toString=="function"){if(ht=ht.toString(),typeof ht!="string")throw $("dirty is not a string, aborting")}else throw $("toString is not a function");if(!_e.isSupported)return ht;if(Hr||q1(ae),_e.removed=[],typeof ht=="string"&&(aa=!1),aa){if(ht.nodeName){const ua=Ir(ht.nodeName);if(!cn[ua]||$r[ua])throw $("root node is forbidden and cannot be sanitized in-place")}}else if(ht instanceof gt)Be=JR("<!---->"),dt=Be.ownerDocument.importNode(ht,!0),dt.nodeType===ve.element&&dt.nodeName==="BODY"||dt.nodeName==="HTML"?Be=dt:Be.appendChild(dt);else{if(!ao&&!Po&&!Mn&&ht.indexOf("<")===-1)return it&&zn?it.createHTML(ht):ht;if(Be=JR(ht),!Be)return ao?null:zn?Ct:""}Be&&Wi&&xs(Be.firstChild);const wr=XR(aa?ht:Be);for(;Un=wr.nextNode();)eF(Un),rF(Un),Un.content instanceof Je&&Ppe(Un.content);if(aa)return ht;if(ao){if(Gr)for(ei=yn.call(Be.ownerDocument);Be.firstChild;)ei.appendChild(Be.firstChild);else ei=Be;return(Qt.shadowroot||Qt.shadowrootmode)&&(ei=vt.call(Ce,ei,!0)),ei}let Ai=Mn?Be.outerHTML:Be.innerHTML;return Mn&&cn["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&k(ge,Be.ownerDocument.doctype.name)&&(Ai="<!DOCTYPE "+Be.ownerDocument.doctype.name+`>
151
151
  `+Ai),Po&&d([kn,$n,Ur],ua=>{Ai=y(Ai,ua," ")}),it&&zn?it.createHTML(Ai):Ai},_e.setConfig=function(){let ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};q1(ht),Hr=!0},_e.clearConfig=function(){Sd=null,Hr=!1},_e.isValidAttribute=function(ht,ae,Be){Sd||q1({});const dt=Ir(ht),Un=Ir(ae);return tF(dt,Un,Be)},_e.addHook=function(ht,ae){typeof ae=="function"&&p(_t[ht],ae)},_e.removeHook=function(ht,ae){if(ae!==void 0){const Be=f(_t[ht],ae);return Be===-1?void 0:g(_t[ht],Be,1)[0]}return h(_t[ht])},_e.removeHooks=function(ht){_t[ht]=[]},_e.removeAllHooks=function(){_t=Ae()},_e}var Ee=$e();return Vy=Ee,Vy}var Yy,g$;function Y9(){return g$||(g$=1,Yy=window.DOMPurify||(window.DOMPurify=p$().default||p$())),Yy}var Ug=Y9();const Fi=jc(Ug);function Zy(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Fl=Zy();function m$(t){Fl=t}var Sf={exec:()=>null};function ln(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(si.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,e)};return r}var si={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")},Z9=/^(?:[ \t]*(?:\n|$))+/,J9=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,X9=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ef=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Q9=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Jy=/(?:[*+-]|\d{1,9}[.)])/,v$=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_$=ln(v$).replace(/bull/g,Jy).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(),e7=ln(v$).replace(/bull/g,Jy).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(),Xy=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,t7=/^[^\n]+/,Qy=/(?!\s*\])(?:\\.|[^\[\]\\])+/,n7=ln(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Qy).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),r7=ln(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Jy).getRegex(),jg="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",ew=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,i7=ln("^ {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",ew).replace("tag",jg).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),b$=ln(Xy).replace("hr",Ef).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",jg).getRegex(),o7=ln(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",b$).getRegex(),tw={blockquote:o7,code:J9,def:n7,fences:X9,heading:Q9,hr:Ef,html:i7,lheading:_$,list:r7,newline:Z9,paragraph:b$,table:Sf,text:t7},y$=ln("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ef).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",jg).getRegex(),s7={...tw,lheading:e7,table:y$,paragraph:ln(Xy).replace("hr",Ef).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",y$).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",jg).getRegex()},a7={...tw,html:ln(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ew).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:Sf,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ln(Xy).replace("hr",Ef).replace("heading",` *#{1,6} *[^
152
152
  ]`).replace("lheading",_$).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},l7=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,c7=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,w$=/^( {2,}|\\)\n(?!\s*$)/,u7=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Bg=/[\p{P}\p{S}]/u,nw=/[\s\p{P}\p{S}]/u,x$=/[^\s\p{P}\p{S}]/u,d7=ln(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,nw).getRegex(),k$=/(?!~)[\p{P}\p{S}]/u,f7=/(?!~)[\s\p{P}\p{S}]/u,h7=/(?:[^\s\p{P}\p{S}]|~)/u,p7=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,S$=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,g7=ln(S$,"u").replace(/punct/g,Bg).getRegex(),m7=ln(S$,"u").replace(/punct/g,k$).getRegex(),E$="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",v7=ln(E$,"gu").replace(/notPunctSpace/g,x$).replace(/punctSpace/g,nw).replace(/punct/g,Bg).getRegex(),_7=ln(E$,"gu").replace(/notPunctSpace/g,h7).replace(/punctSpace/g,f7).replace(/punct/g,k$).getRegex(),b7=ln("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,x$).replace(/punctSpace/g,nw).replace(/punct/g,Bg).getRegex(),y7=ln(/\\(punct)/,"gu").replace(/punct/g,Bg).getRegex(),w7=ln(/^<(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(),x7=ln(ew).replace("(?:-->|$)","-->").getRegex(),k7=ln("^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",x7).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),qg=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,S7=ln(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",qg).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),T$=ln(/^!?\[(label)\]\[(ref)\]/).replace("label",qg).replace("ref",Qy).getRegex(),C$=ln(/^!?\[(ref)\](?:\[\])?/).replace("ref",Qy).getRegex(),E7=ln("reflink|nolink(?!\\()","g").replace("reflink",T$).replace("nolink",C$).getRegex(),rw={_backpedal:Sf,anyPunctuation:y7,autolink:w7,blockSkip:p7,br:w$,code:c7,del:Sf,emStrongLDelim:g7,emStrongRDelimAst:v7,emStrongRDelimUnd:b7,escape:l7,link:S7,nolink:C$,punctuation:d7,reflink:T$,reflinkSearch:E7,tag:k7,text:u7,url:Sf},T7={...rw,link:ln(/^!?\[(label)\]\((.*?)\)/).replace("label",qg).getRegex(),reflink:ln(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",qg).getRegex()},iw={...rw,emStrongRDelimAst:_7,emStrongLDelim:m7,url:ln(/^((?: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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},C7={...iw,br:ln(w$).replace("{2,}","*").getRegex(),text:ln(iw.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Hg={normal:tw,gfm:s7,pedantic:a7},Tf={normal:rw,gfm:iw,breaks:C7,pedantic:T7},A7={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},A$=t=>A7[t];function es(t,e){if(e){if(si.escapeTest.test(t))return t.replace(si.escapeReplace,A$)}else if(si.escapeTestNoEncode.test(t))return t.replace(si.escapeReplaceNoEncode,A$);return t}function $$(t){try{t=encodeURI(t).replace(si.percentDecode,"%")}catch{return null}return t}function I$(t,e){let n=t.replace(si.findPipe,(o,s,a)=>{let l=!1,u=s;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(si.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(si.slashPipe,"|");return r}function Cf(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 $7(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 P$(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 l={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:s,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}function I7(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let i=r[1];return e.split(`
153
153
  `).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(`
@@ -236,7 +236,7 @@ ${o}`,n),this.line=r,this.column=i,this.codeblock=o}}function Xg(t,e=0,n=t.lengt
236
236
  `}else i+=d,i+=" = ",i+=xw(t[l],u,n,r),i+=`
237
237
  `}}return`${i}
238
238
  ${o}`.trim()}function RW(t,{maxDepth:e=1e3,numbersAsFloat:n=!1}={}){if(Of(t)!=="object")throw new TypeError("stringify can only be called with an object");return kw(t,"",e,n)}const Q$=t=>JSON.parse(t),e2=t=>ya(IW(t)),t2=t=>ef.parse(t),FW=t=>t.startsWith("+++")?"toml-frontmatter":t.startsWith("{")?"json-frontmatter":"yaml-frontmatter",DW=({collection:t,collectionFile:e,format:n,text:r})=>{const{_file:{format:i,fmDelimiters:o}}=e??t,[s,a]=(i==="frontmatter"?q2({format:n,delimiter:o}):o)??["---","---"],l=un(s),u=un(a),d=new RegExp(`^${l}\\n(?:(?<head>.*?)\\n)?${u}$(?:\\n(?<body>.+))?`,"ms"),{head:f,body:h}=r.match(d)?.groups??{};if(!f&&!h)return{body:r};let p={};return n==="yaml-frontmatter"&&(p=t2(f)),n==="toml-frontmatter"&&(p=e2(f)),n==="json-frontmatter"&&(p=Q$(`{${f}}`)),{...p,body:h}},MW=async({text:t="",path:e,folder:{collectionName:n,fileName:r}})=>{const i=li(n),o=i&&r?Iu(i,r):void 0;if(!i)throw new Error("Collection not found");if(r&&!o)throw new Error("Collection file not found");t=t.trim().replace(/\r\n?/g,`
239
- `);let{_file:{format:s}}=o??i;const a=sm[s]?.parser;if(a)return a(t);try{if(s==="yaml"||s==="yml")return t2(t);if(s==="toml")return e2(t);if(s==="json")return Q$(t);if(s==="frontmatter"&&(s=FW(t)),/^(?:yaml|toml|json)-frontmatter$/.test(s))return DW({collection:i,collectionFile:o,format:s,text:t})}catch(l){throw new Error(`${e} could not be parsed due to ${l.name}: ${l.message}`)}throw new Error(`${e} could not be parsed due to an unknown format: ${s}`)},n2=t=>t.length===1&&t[0].widget==="list"&&t[0].root===!0,zW=({collectionName:t,fileName:e,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:o,summaryTemplate:s,hasSingleSubField:a,index:l})=>{const u={collectionName:t,fileName:e,valueMap:r,isIndexFile:i};if(!s){if(a)return r[`${n}.${l}`];const d=new RegExp(`^${un(n)}\\.${l}[\\b\\.]`),f=Object.fromEntries(Object.entries(r).filter(([p])=>d.test(p)).map(([p,g])=>[p.replace(d,""),g])),h=p=>{const g=f[p];if(typeof g!="string"||!g.trim())return null;const m=`${n}.${l}.${p}`;return _n({...u,keyPath:m})?.widget!=="hidden"?g:null};return h("title")||h("name")||Object.entries(r).find(([p,g])=>{if(!d.test(p)||typeof g!="string"||!g.trim())return!1;const m=_n({...u,keyPath:p});return m?m.widget!=="hidden":!0})?.[1]||""}return s.replaceAll(/{{(.+?)}}/g,(d,f)=>{const[h,...p]=f.split(/\s*\|\s*/),g=h.replace(/^fields\./,""),m=`${n}.${l}.${g}`;if(a){const b=_n({...u,keyPath:n})?.field;if(!b||b.name!==g)return""}return Af({...u,keyPath:a?`${n}.${l}`:m,locale:o,transformations:p})})},r2=t=>/\/_index(?:\.[\w-]+)?\.md$/.test(t),Sw=({subPath:t,subPathTemplate:e})=>{if(e?.includes("{{slug}}")){const[,n]=t.match(new RegExp(`^${un(e).replace("\\{\\{slug\\}\\}","(.+)")}$`))??[];if(n)return n}return t},UW=async(t,e)=>{try{return await MW(t)}catch(n){console.error(n),e.push(n);return}},jW=(t,e,n)=>{if(n2(e)){const r=e[0].name;return n?!hn(t)||!Object.values(t).every(Array.isArray)?void 0:Object.fromEntries(Object.entries(t).map(([i,o])=>[i,{[r]:o}])):Array.isArray(t)?{[r]:t}:void 0}return hn(t)?t:void 0},BW=(t,e,n,r,i)=>r2(t)?!(e||xi(n)?.name==="_index"||r?.split("/").pop()==="_index"&&i==="md"):!1,qW=(t,e,n,r,i)=>{const{path:o,folder:{filePathMap:s}}=t;if(e){if(i){const[u,d]=Object.entries(s??{}).find(([,f])=>f===o)??[];return{subPath:d,locale:u}}return{subPath:o,locale:void 0}}if(!n)return{subPath:void 0,locale:void 0};const{subPath:a,locale:l=r}=o.match(n)?.groups??{};return{subPath:a,locale:l}},HW=(t,e,n,r,i,o)=>{const s=r||Sw({subPath:i,subPathTemplate:o});t.slug=s,t.locales._default={slug:s,path:n,content:As(e)}},GW=(t,e,n,r,i,o,s)=>{const a=r||Sw({subPath:i,subPathTemplate:o});t.slug=a,t.locales=Object.fromEntries(s.filter(l=>l in e).map(l=>[l,{slug:a,path:n,content:As(e[l])}]))},WW=(t,e,n,r,i,o,s,a,l,u,d)=>{const f=u&&typeof e[u]=="string"?e[u]:void 0,h=r||Sw({subPath:i,subPathTemplate:o}),p={slug:h,path:n,content:As(e)},g=`${l}/${f??h}`,m=d.find(v=>v.id===g);return m?(m.locales[s]=p,s===a&&(m.slug=h,m.subPath=i),!0):(t.id=g,t.locales[s]=p,s===a&&(t.slug=h),!1)},KW=async({file:t,entries:e,errors:n})=>{const r=await UW(t,n);if(!r)return;const{path:i,meta:o={},folder:{collectionName:s,fileName:a}}=t,l=li(s),u=l&&a?Iu(l,a):void 0;if(!l||a&&!u)return;const{fields:d=[],_file:{fullPathRegEx:f,subPath:h,extension:p},_i18n:{i18nEnabled:g,allLocales:m,defaultLocale:v,structureMap:{i18nSingleFile:b,i18nMultiFile:y,i18nMultiFolder:w,i18nRootMultiFolder:E},canonicalSlug:{key:C}}}=u??l,k=jW(r,d,b);if(!k||BW(i,a,l,h,p))return;const $=y||w||E,{subPath:x,locale:S}=qW(t,a,f,v,$);if(!x||$&&!S)return;const A={id:"",slug:"",subPath:x,locales:{},...o};if(!g)HW(A,k,i,a,x,h);else if(b)GW(A,k,i,a,x,h,m);else if($&&S&&WW(A,k,i,a,x,h,S,v,s,C,e))return;e.push(A)},i2=async t=>{const e=[],n=[];return await Promise.all(t.map(r=>KW({file:r,entries:e,errors:n}))),{entries:e.filter(r=>(r.id=vi(),!!r.slug&&!!Object.keys(r.locales).length)),errors:n}},Ew=t=>{const e=[],n=[],r=[];t.forEach(o=>{const{path:s,name:a}=o;if(a.startsWith("."))W$.test(a)&&r.push({...o,type:"config"});else{const[l]=u$(s),[u]=Hp(s);l&&e.push({...o,type:"entry",folder:l}),u&&!e.find(d=>d.path===s)&&!r2(s)&&n.push({...o,type:"asset",folder:u})}});const i=[...e,...n,...r];return{entryFiles:e,assetFiles:n,configFiles:r,allFiles:i,count:i.length}},o2=async(t,e,n="file")=>{const r=In(e??"");let i=t;if(!r){if(n==="directory")return i;throw new Error("Path is required for file handle retrieval")}const o=r.split("/"),s=o.length-1,a=!0;for await(const[l,u]of o.entries())i=await(l===s&&n==="file"?i.getFileHandle(u,{create:a}):i.getDirectoryHandle(u,{create:a}));return i},s2=(t,e)=>o2(t,e,"file"),Nf=(t,e)=>o2(t,e,"directory"),a2=t=>vC(t,e=>e.replace(/{{.+?}}/,".+?")),l2=async(t,e)=>{const{rootDirHandle:n,scanningPaths:r,scanningPathsRegEx:i,fileList:o}=e;for await(const[s,a]of t.entries()){if(s.startsWith(".")&&!W$.test(s))continue;const l=(await n.resolve(a))?.join("/")??"",u=i.some(d=>d.test(l));if(a.kind==="file"){if(!u)continue;try{let d=await a.getFile();const{type:f,lastModified:h}=d;d=new File([d],d.name,{type:f,lastModified:h}),o.push({file:d,path:l})}catch(d){console.error(d)}}if(a.kind==="directory"){const d=a2(l);if(!u&&!r.some(f=>d.test(f)))continue;await l2(a,e)}}},VW=async({file:t,path:e})=>({file:t,path:e.normalize(),name:t.name.normalize(),size:t.size,sha:await Il(t)}),YW=async t=>{const e=[],n=tf([...ie(Gy).map(({filePathMap:r,folderPathMap:i})=>Object.values(r||(i??{}))).flat(1),...ie(Ea).filter(({internalPath:r})=>r!==void 0).map(({internalPath:r})=>r)].map(r=>In(r??"")));return await l2(t,{rootDirHandle:t,scanningPaths:n,scanningPathsRegEx:n.map(a2),fileList:e}),Promise.all(e.map(VW))},ZW=async t=>{const{name:e,file:n}=t;if(e!==".gitkeep")try{t.text=await VD(n)}catch(r){t.text="",console.error(r)}},c2=async t=>{const{entryFiles:e,assetFiles:n,configFiles:r}=Ew(await YW(t));await Promise.all([...e,...r].map(ZW));const{entries:i,errors:o}=await i2(e);wi.set(i),Yn.set(G$(n)),vw.set(r),Wy.set(o),$u.set(!0)},JW=async({rootDirHandle:t,previousPath:e,path:n})=>{const{dirname:r,basename:i}=gn(n),o=await s2(t,e);return r&&r!==gn(e).dirname?await o.move(await Nf(t,r),i):await o.move(i),o},XW=async({rootDirHandle:t,fileHandle:e,path:n,data:r})=>{e??=await s2(t,n);const i=await e.createWritable?.();try{await i?.write(r)}catch{}finally{try{await i?.close()}catch{}}return e.getFile()},QW=async(t,e)=>{let n=await Nf(t,e.join("/"));for(;;){const r=[];for await(const o of n.keys())r.push(o);if(r.length>1||!e.length)break;const i=e.pop();n=await Nf(t,e.join("/")),await n.removeEntry(i)}},eK=async({rootDirHandle:t,path:e})=>{const{dirname:n="",basename:r}=gn(In(e));await(await Nf(t,n)).removeEntry(r),n&&await QW(t,n.split("/"))},tK=async(t,{action:e,path:n,previousPath:r,data:i})=>{let o;return e==="move"&&r&&(o=await JW({rootDirHandle:t,previousPath:r,path:n})),["create","update","move"].includes(e)&&i?XW({rootDirHandle:t,fileHandle:o,path:n,data:i}):(e==="delete"&&await eK({rootDirHandle:t,path:n}),null)},u2=async(t,e)=>{const n=await Promise.all(e.map(async r=>{const{path:i,data:o}=r;let s=null;if(t)try{s=await tK(t,r)}catch(a){console.error(a)}if(!s)if(o!==void 0)s=uy(o);else return null;return[i,{file:s,sha:await Il(s)}]}));return{sha:await Il(new Date().toJSON()),files:Object.fromEntries(n.filter(r=>!!r))}},d2="local",nK="Local Repository";let Tw;const rK={service:"",label:"",owner:"",repo:"",branch:""},f2=new Proxy({},{get:(t,e)=>(Tw??rK)[e]}),Cw="root_dir_handle";let Qg,Aw;const iK=async({forceReload:t=!1,showPicker:e=!0}={})=>{if(!("showDirectoryPicker"in window))throw new Error("unsupported");let n=t?null:await Qg?.get(Cw)??null;if(n)if(await n.requestPermission({mode:"readwrite"})!=="granted")n=null;else try{await n.entries().next()}catch(r){n=null,console.error(r)}return!n&&e&&(n=await window.showDirectoryPicker(),n&&(await n.getDirectoryHandle(".git"),await Qg?.set(Cw,n))),n},oK={isGit:!1,name:d2,label:nK,repository:f2,init:()=>{const{name:t}=ie(Nt).backend;Tw=Ff[t]?.init?.();const{databaseName:e}=Tw??{};return Qg=e?new Ho(e,"file-system-handles"):null,f2},signIn:async({auto:t=!1})=>{const e=await iK({showPicker:!t});if(e)Aw=e;else throw new Error("Directory handle could not be acquired");return{backendName:d2}},signOut:async()=>{await Qg?.delete(Cw)},fetchFiles:async()=>{await c2(Aw)},commitChanges:async t=>u2(Aw,t)},sK="sveltia-cms-test",h2="test-repo",aK="Test";let em;const lK={isGit:!1,name:h2,label:aK,init:()=>{},signIn:async()=>{try{em=await Nf(await navigator.storage.getDirectory(),sK)}catch{}return{backendName:h2}},signOut:async()=>{},fetchFiles:async()=>{em?await c2(em):$u.set(!0)},commitChanges:async t=>u2(em,t)},zl="gitea",p2="Gitea / Forgejo",g2="https://gitea.com/api/v1",cK="https://gitea.com",uK="login/oauth/authorize",dK=1.24,fK=12,tr=nt();tr.subscribe(t=>{(async()=>{try{t?await bi.set("sveltia-cms.user",t):t===null&&await bi.delete("sveltia-cms.user")}catch{}})()});const Lf=async(t,e={},{responseType:n="json",refreshAccessToken:r=void 0}={})=>{let i;e.cache="no-cache",e.headers=new Headers(e.headers),n==="json"&&e.headers.set("Accept","application/json"),e.method==="POST"&&hn(e.body)&&(e.headers.set("Content-Type","application/json"),e.body=JSON.stringify(e.body));try{i=await fetch(t,e)}catch(u){throw new Error("Failed to send the request",{cause:u})}if(n==="raw")return i;const{ok:o,status:s}=i;let a;try{if(o&&n==="blob")return i.blob();if(o&&n==="text")return i.text();a=await i.json()}catch(u){throw new Error("Failed to parse the response",{cause:u})}if(o&&!(t.endsWith("/graphql")&&hn(a)&&a.errors))return a;if(s===401&&r){const[u]=e.headers.get("Authorization")?.split(" ")??["token"],{token:d}=await r();return e.headers.set("Authorization",`${u} ${d}`),Lf(t,e,{responseType:n})}if(!hn(a))throw new Error("Server responded with an error",{cause:{status:s}});let l="";throw typeof a.error=="string"&&(l=a.error),typeof a.message=="string"&&(l=a.message),Array.isArray(a.errors)&&(typeof a.errors[0]=="string"&&(l=a.errors.join(", ")),hn(a.errors[0])&&typeof a.errors[0].message=="string"&&(l=a.errors.map(u=>u.message).join(", "))),new Error("Server responded with an error",{cause:{status:s,message:l}})},Ul={...{clientId:"",authURL:"",tokenURL:"",authScheme:"token",origin:"",restBaseURL:"",graphqlBaseURL:""}},Rf={},hK=async({clientId:t,tokenURL:e,refreshToken:n})=>{let r,i="";try{r=await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({grant_type:"refresh_token",client_id:t,refresh_token:n})})}catch{}if(!r?.ok)throw new Error(ie(ue)("sign_in_error.TOKEN_REFRESH_FAILED"));return{access_token:i,refresh_token:n}=await r.json(),tr.update(o=>o&&{...o,token:i,refreshToken:n}),{token:i,refreshToken:n}},ar=async(t,{method:e="GET",headers:n={},body:r=null,responseType:i="json",token:o=void 0,refreshToken:s=void 0}={})=>{const{clientId:a,tokenURL:l,restBaseURL:u,graphqlBaseURL:d,authScheme:f="token"}=Ul,h=ie(tr),g=t==="/graphql"?d:u;return o??=h?.token,s??=h?.refreshToken,n.Authorization=`${f} ${o}`,Lf(`${g}${t}`,{method:e,headers:n,body:r},{responseType:i,refreshAccessToken:s?()=>hK({clientId:a,tokenURL:l,refreshToken:s}):void 0})},Gs=async(t,e={})=>{t=t.replace(/\n\s*/g," "),Object.entries(Rf).forEach(([r,i])=>{t.includes(`$${r}`)&&(e[r]??=i)});const{data:n}=await ar("/graphql",{method:"POST",body:{query:t,variables:e}});return n},pK=async({token:t,refreshToken:e})=>{const{id:n,full_name:r,login:i,email:o,avatar_url:s,html_url:a}=await ar("/user",{token:t,refreshToken:e}),l=ie(tr);return l?.token&&l.token!==t&&(t=l.token,e=l.refreshToken),{backendName:zl,id:n,name:r,login:i,email:o,avatarURL:s,profileURL:a,token:t,refreshToken:e}},m2=nt(!1),gK=({authURL:t})=>{const{availHeight:r,availWidth:i}=window.screen,o=r/2-800/2,s=i/2-600/2;return window.open(t,"auth",`width=600,height=800,top=${o},left=${s}`)},v2=async({backendName:t,authURL:e})=>{const n=gK({authURL:e});return new Promise((r,i)=>{const o=t==="github"?setInterval(()=>{n?.closed&&(clearInterval(o),i(Object.assign(new Error("Authentication aborted"),{name:"AbortError"})))},1e3):0,s=({origin:a,data:l})=>{if(a!==new URL(e).origin||typeof l!="string")return;const u=t;if(l===`authorizing:${u}`){n?.postMessage(l,a);return}const{result:d}=l.match(`^authorization:${u}:(success|error):(?<result>.+)`)?.groups??{};let f;try{f=d?JSON.parse(d):{error:"No data"},hn(f)||(f={error:"Malformed data"})}catch{f={error:"Malformed data"}}"token"in f?r(f):i(new Error("Authentication failed",{cause:new Error(f.errorCode?ie(ue)(`sign_in_error.${f.errorCode}`,{default:f.error}):f.error)})),window.removeEventListener("message",s),clearInterval(o),n?.close()};window.addEventListener("message",s)})},_2=async({backendName:t,siteDomain:e,authURL:n,scope:r})=>{const{hostname:i}=window.location;e??=i==="localhost"?"cms.netlify.com":i;try{new URL(n).origin==="https://api.netlify.com"&&(e=new URL(`https://${e}`).hostname)}catch{}const o=new URLSearchParams({provider:t,site_id:e,scope:r});return v2({backendName:t,authURL:`${n}?${o.toString()}`})},mK=async()=>{const t=`${b_()}${b_()}`,e=btoa(await ml(t,{algorithm:"SHA-256",format:"binary"})).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");return{csrfToken:vi().replaceAll("-",""),codeVerifier:t,codeChallenge:e}},b2=async({backendName:t,clientId:e,authURL:n,scope:r})=>{const{csrfToken:i,codeVerifier:o,codeChallenge:s}=await mK(),{origin:a,pathname:l}=window.location,u=`${a}${l}`,d=new URLSearchParams({client_id:e,redirect_uri:u,response_type:"code",state:i,scope:r,code_challenge:s,code_challenge_method:"S256"});return await bi.set("sveltia-cms.auth",{csrfToken:i,codeVerifier:o,realAuthURL:`${n}?${d.toString()}`}),await bi.set("sveltia-cms.user",{backendName:t}),v2({backendName:t,authURL:u})},tm=({provider:t="unknown",token:e,refreshToken:n,error:r,errorCode:i})=>{const o=r?"error":"success",s=r?{provider:t,error:r,errorCode:i}:{provider:t,token:e,refreshToken:n};window.addEventListener("message",({data:a,origin:l})=>{a===`authorizing:${t}`&&window.opener?.postMessage(`authorization:${t}:${o}:${JSON.stringify(s)}`,l)}),window.opener?.postMessage(`authorizing:${t}`,"*")},vK=async({backendName:t,clientId:e,tokenURL:n,code:r,state:i})=>{const{origin:o,pathname:s}=new URL(window.location.href),{csrfToken:a,codeVerifier:l}=await bi.get("sveltia-cms.auth")??{},u=t,d=`${o}${s}`;if(await bi.delete("sveltia-cms.auth"),!a||!l||i!==a)return tm({provider:u,error:ie(ue)("sign_in_error.CSRF_DETECTED"),errorCode:"CSRF_DETECTED"});let f,h="",p="",g="";try{f=await fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({grant_type:"authorization_code",client_id:e,code:r,redirect_uri:d,code_verifier:l})})}catch{}if(!f)return tm({provider:u,error:ie(ue)("sign_in_error.TOKEN_REQUEST_FAILED"),errorCode:"TOKEN_REQUEST_FAILED"});try{({access_token:h,refresh_token:p,error:g}=await f.json())}catch{return tm({provider:u,error:ie(ue)("sign_in_error.MALFORMED_RESPONSE"),errorCode:"MALFORMED_RESPONSE"})}return tm({provider:u,token:h,refreshToken:p,error:g})},y2=async({backendName:t,clientId:e,tokenURL:n})=>{m2.set(!0);const{search:r}=window.location,{code:i,state:o}=Object.fromEntries(new URLSearchParams(r));if(i&&o)await vK({backendName:t,clientId:e,tokenURL:n,code:i,state:o});else{const{realAuthURL:s}=await bi.get("sveltia-cms.auth")??{};s&&(window.location.href=s)}},_K=async({token:t,refreshToken:e,auto:n=!1})=>{if(!t){const{origin:r}=window.location,{clientId:i,authURL:o,tokenURL:s}=Ul,a="read:repository,write:repository,read:user",l=window.opener?.origin===r&&window.name==="auth";if(l&&await y2({backendName:zl,clientId:i,tokenURL:s}),l||n)return;({token:t,refreshToken:e}=await b2({backendName:zl,clientId:i,authURL:o,scope:a}))}return pK({token:t,refreshToken:e})},bK=async()=>{},$w={service:"",label:"",owner:"",repo:"",branch:"",baseURL:"",treeBaseURL:"",blobBaseURL:"",isSelfHosted:!1,databaseName:""},ai={...$w};let w2=null;const x2=(t,e)=>({treeBaseURL:e?`${t}/src/branch/${e}`:t,blobBaseURL:e?`${t}/src/branch/${e}`:""}),k2=async()=>{const{owner:t,repo:e}=ai;return w2??=await ar(`/repos/${t}/${e}`),w2},yK=async()=>{const{repo:t}=ai;try{const{permissions:e}=await k2();if(!e?.pull)throw new Error("Not a collaborator of the repository",{cause:new Error(ie(ue)("repository_no_access",{values:{repo:t}}))})}catch(e){throw e instanceof Error&&e.message.includes("Not a collaborator")?e:new Error("Failed to check repository access",{cause:new Error(ie(ue)("repository_not_found",{values:{repo:t}}))})}},wK=async()=>{const{repo:t,baseURL:e=""}=ai;try{const{default_branch:n}=await k2();if(!n)throw new Error("Failed to retrieve the default branch name.",{cause:new Error(ie(ue)("repository_empty",{values:{repo:t}}))});return Object.assign(ai,{branch:n},x2(e,n)),n}catch{throw new Error("Failed to retrieve the default branch name.",{cause:new Error(ie(ue)("repository_not_found",{values:{repo:t}}))})}},xK={create:"Create {{collection}} “{{slug}}”",update:"Update {{collection}} “{{slug}}”",delete:"Delete {{collection}} “{{slug}}”",uploadMedia:"Upload “{{path}}”",deleteMedia:"Delete “{{path}}”",openAuthoring:"{{message}}"},Iw=(t,{commitType:e="update",collection:n,skipCI:r=void 0})=>{const{backend:{commit_messages:i={},automatic_deployments:o}}=ie(Nt),{login:s="",name:a=""}=ie(tr),[l=""]=t.map(p=>p.slug).filter(Boolean),[u,...d]=t.map(({path:p})=>p),f=n?Ws(n,{useSingular:!0}):"";let h=i[e]||xK[e]||"";return["create","update","delete"].includes(e)&&(h=h.replaceAll("{{slug}}",l).replaceAll("{{collection}}",f).replaceAll("{{path}}",u).replaceAll("{{author-login}}",s).replaceAll("{{author-name}}",a)),["uploadMedia","deleteMedia"].includes(e)&&(h=h.replaceAll("{{path}}",u).replaceAll("{{author-login}}",s).replaceAll("{{author-name}}",a),d.length&&(h+=` +${d.length}`)),["openAuthoring"].includes(e)&&(h=h.replaceAll("{{message}}",e).replaceAll("{{author-login}}",s).replaceAll("{{author-name}}",a)),!["delete","deleteMedia"].includes(e)&&(r===void 0?o===!1:r===!0)&&(h=`[skip ci] ${h}`),h},kK=async()=>{const{owner:t,repo:e,branch:n}=ai;try{const{commit:{id:r,message:i}}=await ar(`/repos/${t}/${e}/branches/${n}`);return{hash:r,message:i}}catch{throw new Error("Failed to retrieve the last commit hash.",{cause:new Error(ie(ue)("branch_not_found",{values:{repo:e,branch:n}}))})}},SK=async(t,e)=>{const{owner:n,repo:r,branch:i}=ai,o=Iw(t,e),{name:s,email:a}=ie(tr),l=new Date().toJSON(),u=await Promise.all(t.map(async({action:h,path:p,previousPath:g,previousSha:m,data:v=""})=>({operation:h==="move"?"update":h,path:p,content:await w_(v),from_path:g,sha:m}))),{commit:d,files:f}=await ar(`/repos/${n}/${r}/contents`,{method:"POST",body:{branch:i,author:{name:s,email:a},committer:{name:s,email:a},dates:{author:l,committer:l},message:o,files:u}});return{sha:d.sha,date:new Date(d.created),files:Object.fromEntries(f.map(({path:h,sha:p})=>[h,{sha:p}]))}},S2={isForgejo:!1},EK=async()=>{const{version:t}=await ar("/version"),e=t.includes("+gitea-"),n=e?"Forgejo":"Gitea",r=e?fK:dK;if(Object.assign(S2,{isForgejo:e}),Object.assign(ai,{label:n}),Number.parseFloat(t)<r)throw new Error(`Unsupported ${n} version`,{cause:new Error(ie(ue)("backend_unsupported_version",{values:{name:n,version:r}}))})},TK=async({metaDB:t,lastHash:e,cachedFileEntries:n,fetchFileList:r})=>{const i=await t.get("last_commit_hash"),o=await t.get("git_config_fetched");if(i&&i===e&&o&&n.length)return Ew(n.map(([a,l])=>({path:a,name:gn(a).basename,...l})));const s=Ew(await r(e));return t.set("last_commit_hash",e),t.set("git_config_fetched",!0),s},CK=({allFiles:t,cachedFiles:e})=>{t.forEach(({sha:n,path:r},i)=>{e[r]?.sha===n&&Object.assign(t[i],e[r])})},Pw=({file:t,fetchedFileMap:e})=>{const{meta:n,size:r,text:i}=e[t.path]??{};return{...t,size:t.size??r,text:t.text??i,meta:t.meta??n}},E2=({entries:t,assets:e,configFiles:n,errors:r=[]})=>{wi.set(t),Yn.set(e),vw.set(n),Wy.set(r),$u.set(!0)},AK=async({cacheDB:t,allFiles:e,cachedFiles:n,fetchingFiles:r,fetchedFileMap:i})=>{const o=e.map(({path:a})=>a),s=Object.keys(n).filter(a=>!o.includes(a));r.length&&await t.saveEntries(Object.entries(i)),s.length&&t.deleteEntries(s)},Ow=async({repository:t,fetchDefaultBranchName:e,fetchLastCommit:n,fetchFileList:r,fetchFileContents:i})=>{const{databaseName:o,branch:s}=t,a=new Ho(o,"meta"),l=new Ho(o,"file-cache"),u=await l.entries();let d=s;d||(d=await e(),t.branch=d);const{hash:f,message:h}=await n(),p=await TK({metaDB:a,lastHash:f,cachedFileEntries:u,fetchFileList:r});if(nm.set(!h.startsWith("[skip ci]")),!p.count){E2({entries:[],assets:[],configFiles:[]});return}const{entryFiles:g,assetFiles:m,configFiles:v,allFiles:b}=p,y=Object.fromEntries(u);CK({allFiles:b,cachedFiles:y});const w=b.filter(({meta:$})=>!$),E=w.length?await i(w):{},{entries:C,errors:k}=await i2(g.map($=>Pw({file:$,fetchedFileMap:E})));E2({entries:C,assets:G$(m.map($=>Pw({file:$,fetchedFileMap:E}))),configFiles:v.map($=>Pw({file:$,fetchedFileMap:E})),errors:k}),await AK({cacheDB:l,allFiles:b,cachedFiles:y,fetchingFiles:w,fetchedFileMap:E})},$K=async t=>{const{owner:e,repo:n,branch:r}=ai,i=`/repos/${e}/${n}/git/trees/${t??r}?recursive=1`,o=[];let s=1;for(;;){const{tree:a,truncated:l}=await ar(`${i}&page=${s}`);if(a&&o.push(...a),a&&l)s+=1;else break}return o.filter(({type:a})=>a==="blob").map(({path:a,sha:l,size:u})=>({path:a,sha:l,size:u,name:gn(a).basename}))},IK=async(t,e)=>{const n=await Promise.all(t.map(async({path:r,sha:i,size:o},s)=>{const a=e[s],l={sha:i,size:o??0,text:a?.content&&a.encoding==="base64"?await ZD(a.content):"",meta:{}};return[r,l]}).filter(r=>!!r));return Object.fromEntries(n)},PK=async t=>{const{owner:e,repo:n,branch:r}=ai,{isForgejo:i}=S2,o=i?`/repos/${e}/${n}/git/blobs`:`/repos/${e}/${n}/file-contents?ref=${r}`,s=i?"sha":"path",a=t.filter(({type:f})=>f!=="asset").map(({[s]:f})=>f);if(!a.length)return{};const l=[],u=[...a];Xo.set(0);const{default_paging_num:d=30}=await ar("/settings/api");for(;;){const f=u.splice(0,d),h=await(i?ar(`${o}?shas=${f.join(",")}`):ar(o,{method:"POST",body:{files:f}}));if(l.push(...h),Xo.set(Math.ceil((a.length-u.length)/a.length*100)),!u.length)break}return Xo.set(void 0),IK(t,l)},OK=async()=>{await EK(),await yK(),await Ow({repository:ai,fetchDefaultBranchName:wK,fetchLastCommit:kK,fetchFileList:$K,fetchFileContents:PK})},NK=async t=>{const{owner:e,repo:n,branch:r}=ai,{path:i}=t;return ar(`/repos/${e}/${n}/media/${r}/${encodeURIComponent(i)}`,{responseType:"blob"})},Nw="sveltia-cms.prefs",Lw=nt(),xt=nt({},t=>{Lw.set(void 0),(async()=>{try{const e=await bi.get(Nw)??{};e.apiKeys??={},e.useDraftBackup??=!0,e.closeOnSave??=!0,e.closeWithEscape??=!0,e.underlineLinks??=!0,e.beta??=!1,e.devModeEnabled??=!1,t(e)}catch{Lw.set({type:"permission_denied"})}})()});xt.subscribe(t=>{if(!t||!Object.keys(t).length)return;(async()=>{try{vn(t,await bi.get(Nw))||await bi.set(Nw,t)}catch{}})();const{locale:e,theme:n,underlineLinks:r=!0,beta:i=!1,devModeEnabled:o=!1}=t;e&&ie(LS).includes(e)&&nn.set(e);const s=!n||n==="auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";Object.assign(document.documentElement.dataset,{theme:s?a:n,autoTheming:s,underlineLinks:r,beta:i,devMode:o})});const LK={isGit:!0,name:zl,label:p2,repository:ai,init:()=>{const{backend:t}=ie(Nt)??{};if(t?.name!==zl)return;const{repo:e,branch:n,base_url:r=cK,auth_endpoint:i=uK,app_id:o="",api_root:s=g2}=t,a=`${In(r)}/${In(i)}`,l=new URL(s).origin,[u,d]=e.split("/"),f=`${l}/${u}/${d}`;return Object.assign(ai,{service:zl,label:p2,owner:u,repo:d,branch:n,baseURL:f,databaseName:`${zl}:${u}/${d}`,isSelfHosted:s!==g2},x2(f,n)),Object.assign(Ul,{clientId:o,authURL:a,tokenURL:a.replace("/authorize","/access_token"),origin:l,restBaseURL:`${l}/api/v1`}),ie(xt).devModeEnabled&&console.info("repositoryInfo",ai),ai},signIn:_K,signOut:bK,fetchFiles:OK,fetchBlob:NK,commitChanges:SK},Ru="github",T2="GitHub",C2="https://api.github.com",RK="https://api.netlify.com",FK="auth",DK="https://github.com",MK=async({token:t})=>{const{id:e,name:n,login:r,email:i,avatar_url:o,html_url:s}=await ar("/user",{token:t});return{backendName:Ru,id:e,name:n,login:r,email:i,avatarURL:o,profileURL:s,token:t}},zK=async({token:t,auto:e=!1})=>{if(!(e&&!t)){if(!t){const{site_domain:n}=ie(Nt)?.backend??{},{authURL:r}=Ul;({token:t}=await _2({backendName:Ru,siteDomain:n,authURL:r,scope:"repo,user"}))}return MK({token:t})}},UK=async()=>{},Di={...$w},A2=(t,e)=>({treeBaseURL:e?`${t}/tree/${e}`:t,blobBaseURL:e?`${t}/blob/${e}`:""}),jK=async()=>{const{owner:t,repo:e}=Di,n=ie(tr)?.login,{ok:r}=await ar(`/repos/${t}/${e}/collaborators/${encodeURIComponent(n)}`,{headers:{Accept:"application/json"},responseType:"raw"});if(!r)throw new Error("Not a collaborator of the repository",{cause:new Error(ie(ue)("repository_no_access",{values:{repo:e}}))})},BK=`
239
+ `);let{_file:{format:s}}=o??i;const a=sm[s]?.parser;if(a)return a(t);try{if(s==="yaml"||s==="yml")return t2(t);if(s==="toml")return e2(t);if(s==="json")return Q$(t);if(s==="frontmatter"&&(s=FW(t)),/^(?:yaml|toml|json)-frontmatter$/.test(s))return DW({collection:i,collectionFile:o,format:s,text:t})}catch(l){throw new Error(`${e} could not be parsed due to ${l.name}: ${l.message}`)}throw new Error(`${e} could not be parsed due to an unknown format: ${s}`)},n2=t=>t.length===1&&t[0].widget==="list"&&t[0].root===!0,zW=({collectionName:t,fileName:e,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:o,summaryTemplate:s,hasSingleSubField:a,index:l})=>{const u={collectionName:t,fileName:e,valueMap:r,isIndexFile:i};if(!s){if(a)return r[`${n}.${l}`];const d=new RegExp(`^${un(n)}\\.${l}[\\b\\.]`),f=Object.fromEntries(Object.entries(r).filter(([p])=>d.test(p)).map(([p,g])=>[p.replace(d,""),g])),h=p=>{const g=f[p];if(typeof g!="string"||!g.trim())return null;const m=`${n}.${l}.${p}`;return _n({...u,keyPath:m})?.widget!=="hidden"?g:null};return h("title")||h("name")||Object.entries(r).find(([p,g])=>{if(!d.test(p)||typeof g!="string"||!g.trim())return!1;const m=_n({...u,keyPath:p});return m?m.widget!=="hidden":!0})?.[1]||""}return s.replaceAll(/{{(.+?)}}/g,(d,f)=>{const[h,...p]=f.split(/\s*\|\s*/),g=h.replace(/^fields\./,""),m=`${n}.${l}.${g}`;if(a){const b=_n({...u,keyPath:n})?.field;if(!b||b.name!==g)return""}return Af({...u,keyPath:a?`${n}.${l}`:m,locale:o,transformations:p})})},r2=t=>/\/_index(?:\.[\w-]+)?\.md$/.test(t),Sw=({subPath:t,subPathTemplate:e})=>{if(e?.includes("{{slug}}")){const[,n]=t.match(new RegExp(`^${un(e).replace("\\{\\{slug\\}\\}","(.+)")}$`))??[];if(n)return n}return t},UW=async(t,e)=>{try{return await MW(t)}catch(n){console.error(n),e.push(n);return}},jW=(t,e,n)=>{if(n2(e)){const r=e[0].name;return n?!hn(t)||!Object.values(t).every(Array.isArray)?void 0:Object.fromEntries(Object.entries(t).map(([i,o])=>[i,{[r]:o}])):Array.isArray(t)?{[r]:t}:void 0}return hn(t)?t:void 0},BW=(t,e,n,r,i)=>r2(t)?!(e||xi(n)?.name==="_index"||r?.split("/").pop()==="_index"&&i==="md"):!1,qW=(t,e,n,r,i)=>{const{path:o,folder:{filePathMap:s}}=t;if(e){if(i){const[u,d]=Object.entries(s??{}).find(([,f])=>f===o)??[];return{subPath:d,locale:u}}return{subPath:o,locale:void 0}}if(!n)return{subPath:void 0,locale:void 0};const{subPath:a,locale:l=r}=o.match(n)?.groups??{};return{subPath:a,locale:l}},HW=(t,e,n,r,i,o)=>{const s=r||Sw({subPath:i,subPathTemplate:o});t.slug=s,t.locales._default={slug:s,path:n,content:As(e)}},GW=(t,e,n,r,i,o,s)=>{const a=r||Sw({subPath:i,subPathTemplate:o});t.slug=a,t.locales=Object.fromEntries(s.filter(l=>l in e).map(l=>[l,{slug:a,path:n,content:As(e[l])}]))},WW=(t,e,n,r,i,o,s,a,l,u,d)=>{const f=u&&typeof e[u]=="string"?e[u]:void 0,h=r||Sw({subPath:i,subPathTemplate:o}),p={slug:h,path:n,content:As(e)},g=`${l}/${f??h}`,m=d.find(v=>v.id===g);return m?(m.locales[s]=p,s===a&&(m.slug=h,m.subPath=i),!0):(t.id=g,t.locales[s]=p,s===a&&(t.slug=h),!1)},KW=async({file:t,entries:e,errors:n})=>{const r=await UW(t,n);if(!r)return;const{path:i,meta:o={},folder:{collectionName:s,fileName:a}}=t,l=li(s),u=l&&a?Iu(l,a):void 0;if(!l||a&&!u)return;const{fields:d=[],_file:{fullPathRegEx:f,subPath:h,extension:p},_i18n:{i18nEnabled:g,allLocales:m,defaultLocale:v,structureMap:{i18nSingleFile:b,i18nMultiFile:y,i18nMultiFolder:w,i18nRootMultiFolder:E},canonicalSlug:{key:C}}}=u??l,k=jW(r,d,b);if(!k||BW(i,a,l,h,p))return;const $=y||w||E,{subPath:x,locale:S}=qW(t,a,f,v,$);if(!x||$&&!S)return;const A={id:"",slug:"",subPath:x,locales:{},...o};if(!g)HW(A,k,i,a,x,h);else if(b)GW(A,k,i,a,x,h,m);else if($&&S&&WW(A,k,i,a,x,h,S,v,s,C,e))return;e.push(A)},i2=async t=>{const e=[],n=[];return await Promise.all(t.map(r=>KW({file:r,entries:e,errors:n}))),{entries:e.filter(r=>(r.id=vi(),!!r.slug&&!!Object.keys(r.locales).length)),errors:n}},Ew=t=>{const e=[],n=[],r=[];t.forEach(o=>{const{path:s,name:a}=o;if(a.startsWith("."))W$.test(a)&&r.push({...o,type:"config"});else{const[l]=u$(s),[u]=Hp(s);l&&e.push({...o,type:"entry",folder:l}),u&&!e.find(d=>d.path===s)&&!r2(s)&&n.push({...o,type:"asset",folder:u})}});const i=[...e,...n,...r];return{entryFiles:e,assetFiles:n,configFiles:r,allFiles:i,count:i.length}},o2=async(t,e,n="file")=>{const r=In(e??"");let i=t;if(!r){if(n==="directory")return i;throw new Error("Path is required for file handle retrieval")}const o=r.split("/"),s=o.length-1,a=!0;for await(const[l,u]of o.entries())i=await(l===s&&n==="file"?i.getFileHandle(u,{create:a}):i.getDirectoryHandle(u,{create:a}));return i},s2=(t,e)=>o2(t,e,"file"),Nf=(t,e)=>o2(t,e,"directory"),a2=t=>vC(t,e=>e.replace(/{{.+?}}/,".+?")),l2=async(t,e)=>{const{rootDirHandle:n,scanningPaths:r,scanningPathsRegEx:i,fileList:o}=e;for await(const[s,a]of t.entries()){if(s.startsWith(".")&&!W$.test(s))continue;const l=(await n.resolve(a))?.join("/")??"",u=i.some(d=>d.test(l));if(a.kind==="file"){if(!u)continue;try{let d=await a.getFile();const{type:f,lastModified:h}=d;d=new File([d],d.name,{type:f,lastModified:h}),o.push({file:d,path:l})}catch(d){console.error(d)}}if(a.kind==="directory"){const d=a2(l);if(!u&&!r.some(f=>d.test(f)))continue;await l2(a,e)}}},VW=async({file:t,path:e})=>({file:t,path:e.normalize(),name:t.name.normalize(),size:t.size,sha:await Il(t)}),YW=async t=>{const e=[],n=tf([...ie(Gy).map(({filePathMap:r,folderPathMap:i})=>Object.values(r||(i??{}))).flat(1),...ie(Ea).filter(({internalPath:r})=>r!==void 0).map(({internalPath:r})=>r)].map(r=>In(r??"")));return await l2(t,{rootDirHandle:t,scanningPaths:n,scanningPathsRegEx:n.map(a2),fileList:e}),Promise.all(e.map(VW))},ZW=async t=>{const{name:e,file:n}=t;if(e!==".gitkeep")try{t.text=await VD(n)}catch(r){t.text="",console.error(r)}},c2=async t=>{const{entryFiles:e,assetFiles:n,configFiles:r}=Ew(await YW(t));await Promise.all([...e,...r].map(ZW));const{entries:i,errors:o}=await i2(e);wi.set(i),Yn.set(G$(n)),vw.set(r),Wy.set(o),$u.set(!0)},JW=async({rootDirHandle:t,previousPath:e,path:n})=>{const{dirname:r,basename:i}=gn(n),o=await s2(t,e);return r&&r!==gn(e).dirname?await o.move(await Nf(t,r),i):await o.move(i),o},XW=async({rootDirHandle:t,fileHandle:e,path:n,data:r})=>{e??=await s2(t,n);const i=await e.createWritable?.();try{await i?.write(r)}catch{}finally{try{await i?.close()}catch{}}return e.getFile()},QW=async(t,e)=>{let n=await Nf(t,e.join("/"));for(;;){const r=[];for await(const o of n.keys())r.push(o);if(r.length>1||!e.length)break;const i=e.pop();n=await Nf(t,e.join("/")),await n.removeEntry(i)}},eK=async({rootDirHandle:t,path:e})=>{const{dirname:n="",basename:r}=gn(In(e));await(await Nf(t,n)).removeEntry(r),n&&await QW(t,n.split("/"))},tK=async(t,{action:e,path:n,previousPath:r,data:i})=>{let o;return e==="move"&&r&&(o=await JW({rootDirHandle:t,previousPath:r,path:n})),["create","update","move"].includes(e)&&i?XW({rootDirHandle:t,fileHandle:o,path:n,data:i}):(e==="delete"&&await eK({rootDirHandle:t,path:n}),null)},u2=async(t,e)=>{const n=await Promise.all(e.map(async r=>{const{path:i,data:o}=r;let s=null;if(t)try{s=await tK(t,r)}catch(a){console.error(a)}if(!s)if(o!==void 0)s=uy(o);else return null;return[i,{file:s,sha:await Il(s)}]}));return{sha:await Il(new Date().toJSON()),files:Object.fromEntries(n.filter(r=>!!r))}},d2="local",nK="Local Repository";let Tw;const rK={service:"",label:"",owner:"",repo:"",branch:""},f2=new Proxy({},{get:(t,e)=>(Tw??rK)[e]}),Cw="root_dir_handle";let Qg,Aw;const iK=async({forceReload:t=!1,showPicker:e=!0}={})=>{if(!("showDirectoryPicker"in window))throw new Error("unsupported");let n=t?null:await Qg?.get(Cw)??null;if(n)if(await n.requestPermission({mode:"readwrite"})!=="granted")n=null;else try{await n.entries().next()}catch(r){n=null,console.error(r)}return!n&&e&&(n=await window.showDirectoryPicker(),n&&(await n.getDirectoryHandle(".git"),await Qg?.set(Cw,n))),n},oK={isGit:!1,name:d2,label:nK,repository:f2,init:()=>{const{name:t}=ie(Nt).backend;Tw=Ff[t]?.init?.();const{databaseName:e}=Tw??{};return Qg=e?new Ho(e,"file-system-handles"):null,f2},signIn:async({auto:t=!1})=>{const e=await iK({showPicker:!t});if(e)Aw=e;else throw new Error("Directory handle could not be acquired");return{backendName:d2}},signOut:async()=>{await Qg?.delete(Cw)},fetchFiles:async()=>{await c2(Aw)},commitChanges:async t=>u2(Aw,t)},sK="sveltia-cms-test",h2="test-repo",aK="Test";let em;const lK={isGit:!1,name:h2,label:aK,init:()=>{},signIn:async()=>{try{em=await Nf(await navigator.storage.getDirectory(),sK)}catch{}return{backendName:h2}},signOut:async()=>{},fetchFiles:async()=>{em?await c2(em):$u.set(!0)},commitChanges:async t=>u2(em,t)},zl="gitea",p2="Gitea / Forgejo",g2="https://gitea.com/api/v1",cK="https://gitea.com",uK="login/oauth/authorize",dK=1.24,fK=12,tr=nt();tr.subscribe(t=>{(async()=>{try{t?await bi.set("sveltia-cms.user",t):t===null&&await bi.delete("sveltia-cms.user")}catch{}})()});const Lf=async(t,e={},{responseType:n="json",refreshAccessToken:r=void 0}={})=>{let i;e.cache="no-cache",e.headers=new Headers(e.headers),n==="json"&&e.headers.set("Accept","application/json"),e.method==="POST"&&hn(e.body)&&(e.headers.set("Content-Type","application/json"),e.body=JSON.stringify(e.body));try{i=await fetch(t,e)}catch(u){throw new Error("Failed to send the request",{cause:u})}if(n==="raw")return i;const{ok:o,status:s}=i;let a;try{if(o&&n==="blob")return i.blob();if(o&&n==="text")return i.text();a=await i.json()}catch(u){throw new Error("Failed to parse the response",{cause:u})}if(o&&!(t.endsWith("/graphql")&&hn(a)&&a.errors))return a;if(s===401&&r){const[u]=e.headers.get("Authorization")?.split(" ")??["token"],{token:d}=await r();return e.headers.set("Authorization",`${u} ${d}`),Lf(t,e,{responseType:n})}if(!hn(a))throw new Error("Server responded with an error",{cause:{status:s}});let l="";throw typeof a.error=="string"&&(l=a.error),typeof a.message=="string"&&(l=a.message),Array.isArray(a.errors)&&(typeof a.errors[0]=="string"&&(l=a.errors.join(", ")),hn(a.errors[0])&&typeof a.errors[0].message=="string"&&(l=a.errors.map(u=>u.message).join(", "))),new Error("Server responded with an error",{cause:{status:s,message:l}})},Ul={...{clientId:"",authURL:"",tokenURL:"",authScheme:"token",origin:"",restBaseURL:"",graphqlBaseURL:""}},Rf={},hK=async({clientId:t,tokenURL:e,refreshToken:n})=>{let r,i="";try{r=await fetch(e,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({grant_type:"refresh_token",client_id:t,refresh_token:n})})}catch{}if(!r?.ok)throw new Error(ie(ue)("sign_in_error.TOKEN_REFRESH_FAILED"));return{access_token:i,refresh_token:n}=await r.json(),tr.update(o=>o&&{...o,token:i,refreshToken:n}),{token:i,refreshToken:n}},ar=async(t,{method:e="GET",headers:n={},body:r=null,responseType:i="json",token:o=void 0,refreshToken:s=void 0}={})=>{const{clientId:a,tokenURL:l,restBaseURL:u,graphqlBaseURL:d,authScheme:f="token"}=Ul,h=ie(tr),g=t==="/graphql"?d:u;return o??=h?.token,s??=h?.refreshToken,n.Authorization=`${f} ${o}`,Lf(`${g}${t}`,{method:e,headers:n,body:r},{responseType:i,refreshAccessToken:s?()=>hK({clientId:a,tokenURL:l,refreshToken:s}):void 0})},Gs=async(t,e={})=>{t=t.replace(/\n\s*/g," "),Object.entries(Rf).forEach(([r,i])=>{t.includes(`$${r}`)&&(e[r]??=i)});const{data:n}=await ar("/graphql",{method:"POST",body:{query:t,variables:e}});return n},pK=async({token:t,refreshToken:e})=>{const{id:n,full_name:r,login:i,email:o,avatar_url:s,html_url:a}=await ar("/user",{token:t,refreshToken:e}),l=ie(tr);return l?.token&&l.token!==t&&(t=l.token,e=l.refreshToken),{backendName:zl,id:n,name:r,login:i,email:o,avatarURL:s,profileURL:a,token:t,refreshToken:e}},m2=nt(!1),gK=({authURL:t})=>{const{availHeight:r,availWidth:i}=window.screen,o=r/2-800/2,s=i/2-600/2;return window.open(t,"auth",`width=600,height=800,top=${o},left=${s}`)},v2=async({backendName:t,authURL:e})=>{const n=gK({authURL:e});return new Promise((r,i)=>{const o=t==="github"?setInterval(()=>{n?.closed&&(clearInterval(o),i(Object.assign(new Error("Authentication aborted"),{name:"AbortError"})))},1e3):0,s=({origin:a,data:l})=>{if(a!==new URL(e).origin||typeof l!="string")return;const u=t;if(l===`authorizing:${u}`){n?.postMessage(l,a);return}const{result:d}=l.match(`^authorization:${u}:(success|error):(?<result>.+)`)?.groups??{};let f;try{f=d?JSON.parse(d):{error:"No data"},hn(f)||(f={error:"Malformed data"})}catch{f={error:"Malformed data"}}"token"in f?r(f):i(new Error("Authentication failed",{cause:new Error(f.errorCode?ie(ue)(`sign_in_error.${f.errorCode}`,{default:f.error}):f.error)})),window.removeEventListener("message",s),clearInterval(o),n?.close()};window.addEventListener("message",s)})},_2=async({backendName:t,siteDomain:e,authURL:n,scope:r})=>{const{hostname:i}=window.location;e??=i==="localhost"?"cms.netlify.com":i;try{new URL(n).origin==="https://api.netlify.com"&&(e=new URL(`https://${e}`).hostname)}catch{}const o=new URLSearchParams({provider:t,site_id:e,scope:r});return v2({backendName:t,authURL:`${n}?${o.toString()}`})},mK=async()=>{const t=`${b_()}${b_()}`,e=btoa(await ml(t,{algorithm:"SHA-256",format:"binary"})).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");return{csrfToken:vi().replaceAll("-",""),codeVerifier:t,codeChallenge:e}},b2=async({backendName:t,clientId:e,authURL:n,scope:r})=>{const{csrfToken:i,codeVerifier:o,codeChallenge:s}=await mK(),{origin:a,pathname:l}=window.location,u=`${a}${l}`,d=new URLSearchParams({client_id:e,redirect_uri:u,response_type:"code",state:i,scope:r,code_challenge:s,code_challenge_method:"S256"});return await bi.set("sveltia-cms.auth",{csrfToken:i,codeVerifier:o,realAuthURL:`${n}?${d.toString()}`}),await bi.set("sveltia-cms.user",{backendName:t}),v2({backendName:t,authURL:u})},tm=({provider:t="unknown",token:e,refreshToken:n,error:r,errorCode:i})=>{const o=r?"error":"success",s=r?{provider:t,error:r,errorCode:i}:{provider:t,token:e,refreshToken:n};window.addEventListener("message",({data:a,origin:l})=>{a===`authorizing:${t}`&&window.opener?.postMessage(`authorization:${t}:${o}:${JSON.stringify(s)}`,l)}),window.opener?.postMessage(`authorizing:${t}`,"*")},vK=async({backendName:t,clientId:e,tokenURL:n,code:r,state:i})=>{const{origin:o,pathname:s}=new URL(window.location.href),{csrfToken:a,codeVerifier:l}=await bi.get("sveltia-cms.auth")??{},u=t,d=`${o}${s}`;if(await bi.delete("sveltia-cms.auth"),!a||!l||i!==a)return tm({provider:u,error:ie(ue)("sign_in_error.CSRF_DETECTED"),errorCode:"CSRF_DETECTED"});let f,h="",p="",g="";try{f=await fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({grant_type:"authorization_code",client_id:e,code:r,redirect_uri:d,code_verifier:l})})}catch{}if(!f)return tm({provider:u,error:ie(ue)("sign_in_error.TOKEN_REQUEST_FAILED"),errorCode:"TOKEN_REQUEST_FAILED"});try{({access_token:h,refresh_token:p,error:g}=await f.json())}catch{return tm({provider:u,error:ie(ue)("sign_in_error.MALFORMED_RESPONSE"),errorCode:"MALFORMED_RESPONSE"})}return tm({provider:u,token:h,refreshToken:p,error:g})},y2=async({backendName:t,clientId:e,tokenURL:n})=>{m2.set(!0);const{search:r}=window.location,{code:i,state:o}=Object.fromEntries(new URLSearchParams(r));if(i&&o)await vK({backendName:t,clientId:e,tokenURL:n,code:i,state:o});else{const{realAuthURL:s}=await bi.get("sveltia-cms.auth")??{};s&&(window.location.href=s)}},_K=async({token:t,refreshToken:e,auto:n=!1})=>{if(!t){const{origin:r}=window.location,{clientId:i,authURL:o,tokenURL:s}=Ul,a="read:repository,write:repository,read:user",l=window.opener?.origin===r&&window.name==="auth";if(l&&await y2({backendName:zl,clientId:i,tokenURL:s}),l||n)return;({token:t,refreshToken:e}=await b2({backendName:zl,clientId:i,authURL:o,scope:a}))}return pK({token:t,refreshToken:e})},bK=async()=>{},$w={service:"",label:"",owner:"",repo:"",branch:"",baseURL:"",treeBaseURL:"",blobBaseURL:"",isSelfHosted:!1,databaseName:""},ai={...$w};let w2=null;const x2=(t,e)=>({treeBaseURL:e?`${t}/src/branch/${e}`:t,blobBaseURL:e?`${t}/src/branch/${e}`:""}),k2=async()=>{const{owner:t,repo:e}=ai;return w2??=await ar(`/repos/${t}/${e}`),w2},yK=async()=>{const{repo:t}=ai;try{const{permissions:e}=await k2();if(!e?.pull)throw new Error("Not a collaborator of the repository",{cause:new Error(ie(ue)("repository_no_access",{values:{repo:t}}))})}catch(e){throw e instanceof Error&&e.message.includes("Not a collaborator")?e:new Error("Failed to check repository access",{cause:new Error(ie(ue)("repository_not_found",{values:{repo:t}}))})}},wK=async()=>{const{repo:t,baseURL:e=""}=ai;try{const{default_branch:n}=await k2();if(!n)throw new Error("Failed to retrieve the default branch name.",{cause:new Error(ie(ue)("repository_empty",{values:{repo:t}}))});return Object.assign(ai,{branch:n},x2(e,n)),n}catch{throw new Error("Failed to retrieve the default branch name.",{cause:new Error(ie(ue)("repository_not_found",{values:{repo:t}}))})}},xK={create:"Create {{collection}} “{{slug}}”",update:"Update {{collection}} “{{slug}}”",delete:"Delete {{collection}} “{{slug}}”",uploadMedia:"Upload “{{path}}”",deleteMedia:"Delete “{{path}}”",openAuthoring:"{{message}}"},Iw=(t,{commitType:e="update",collection:n,skipCI:r=void 0})=>{const{backend:{commit_messages:i={},automatic_deployments:o}}=ie(Nt),{login:s="",name:a=""}=ie(tr),[l=""]=t.map(p=>p.slug).filter(Boolean),[u,...d]=t.map(({path:p})=>p),f=n?Ws(n,{useSingular:!0}):"";let h=i[e]||xK[e]||"";return["create","update","delete"].includes(e)&&(h=h.replaceAll("{{slug}}",l).replaceAll("{{collection}}",f).replaceAll("{{path}}",u).replaceAll("{{author-login}}",s).replaceAll("{{author-name}}",a)),["uploadMedia","deleteMedia"].includes(e)&&(h=h.replaceAll("{{path}}",u).replaceAll("{{author-login}}",s).replaceAll("{{author-name}}",a),d.length&&(h+=` +${d.length}`)),["openAuthoring"].includes(e)&&(h=h.replaceAll("{{message}}",e).replaceAll("{{author-login}}",s).replaceAll("{{author-name}}",a)),!["delete","deleteMedia"].includes(e)&&(r===void 0?o===!1:r===!0)&&(h=`[skip ci] ${h}`),h},kK=async()=>{const{owner:t,repo:e,branch:n}=ai;try{const{commit:{id:r,message:i}}=await ar(`/repos/${t}/${e}/branches/${n}`);return{hash:r,message:i}}catch{throw new Error("Failed to retrieve the last commit hash.",{cause:new Error(ie(ue)("branch_not_found",{values:{repo:e,branch:n}}))})}},SK=async(t,e)=>{const{owner:n,repo:r,branch:i}=ai,o=Iw(t,e),{name:s,email:a}=ie(tr),l=new Date().toJSON(),u=await Promise.all(t.map(async({action:h,path:p,previousPath:g,previousSha:m,data:v=""})=>({operation:h==="move"?"update":h,path:p,content:await w_(v),from_path:g,sha:m}))),{commit:d,files:f}=await ar(`/repos/${n}/${r}/contents`,{method:"POST",body:{branch:i,author:{name:s,email:a},committer:{name:s,email:a},dates:{author:l,committer:l},message:o,files:u}});return{sha:d.sha,date:new Date(d.created),files:Object.fromEntries(f.map(({path:h,sha:p})=>[h,{sha:p}]))}},S2={isForgejo:!1},EK=async()=>{const{version:t}=await ar("/version"),e=t.includes("+gitea-"),n=e?"Forgejo":"Gitea",r=e?fK:dK;if(Object.assign(S2,{isForgejo:e}),Object.assign(ai,{label:n}),Number.parseFloat(t)<r)throw new Error(`Unsupported ${n} version`,{cause:new Error(ie(ue)("backend_unsupported_version",{values:{name:n,version:r}}))})},TK=async({metaDB:t,lastHash:e,cachedFileEntries:n,fetchFileList:r})=>{const i=await t.get("last_commit_hash"),o=await t.get("git_config_fetched");if(i&&i===e&&o&&n.length)return Ew(n.map(([a,l])=>({path:a,name:gn(a).basename,...l})));const s=Ew(await r(e));return t.set("last_commit_hash",e),t.set("git_config_fetched",!0),s},CK=({allFiles:t,cachedFiles:e})=>{t.forEach(({sha:n,path:r},i)=>{e[r]?.sha===n&&Object.assign(t[i],e[r])})},Pw=({file:t,fetchedFileMap:e})=>{const{meta:n,size:r,text:i}=e[t.path]??{};return{...t,size:t.size??r,text:t.text??i,meta:t.meta??n}},E2=({entries:t,assets:e,configFiles:n,errors:r=[]})=>{wi.set(t),Yn.set(e),vw.set(n),Wy.set(r),$u.set(!0)},AK=async({cacheDB:t,allFiles:e,cachedFiles:n,fetchingFiles:r,fetchedFileMap:i})=>{const o=e.map(({path:a})=>a),s=Object.keys(n).filter(a=>!o.includes(a));r.length&&await t.saveEntries(Object.entries(i)),s.length&&t.deleteEntries(s)},Ow=async({repository:t,fetchDefaultBranchName:e,fetchLastCommit:n,fetchFileList:r,fetchFileContents:i})=>{const{databaseName:o,branch:s}=t,a=new Ho(o,"meta"),l=new Ho(o,"file-cache"),u=await l.entries();let d=s;d||(d=await e(),t.branch=d);const{hash:f,message:h}=await n(),p=await TK({metaDB:a,lastHash:f,cachedFileEntries:u,fetchFileList:r});if(nm.set(!h.startsWith("[skip ci]")),!p.count){E2({entries:[],assets:[],configFiles:[]});return}const{entryFiles:g,assetFiles:m,configFiles:v,allFiles:b}=p,y=Object.fromEntries(u);CK({allFiles:b,cachedFiles:y});const w=b.filter(({meta:$})=>!$),E=w.length?await i(w):{},{entries:C,errors:k}=await i2(g.map($=>Pw({file:$,fetchedFileMap:E})));E2({entries:C,assets:G$(m.map($=>Pw({file:$,fetchedFileMap:E}))),configFiles:v.map($=>Pw({file:$,fetchedFileMap:E})),errors:k}),await AK({cacheDB:l,allFiles:b,cachedFiles:y,fetchingFiles:w,fetchedFileMap:E})},$K=async t=>{const{owner:e,repo:n,branch:r}=ai,i=`/repos/${e}/${n}/git/trees/${t??r}?recursive=1`,o=[];let s=1;for(;;){const{tree:a,truncated:l}=await ar(`${i}&page=${s}`);if(a&&o.push(...a),a&&l)s+=1;else break}return o.filter(({type:a})=>a==="blob").map(({path:a,sha:l,size:u})=>({path:a,sha:l,size:u,name:gn(a).basename}))},IK=async(t,e)=>{const n=await Promise.all(t.map(async({path:r,sha:i,size:o},s)=>{const a=e[s],l={sha:i,size:o??0,text:a?.content&&a.encoding==="base64"?await ZD(a.content):"",meta:{}};return[r,l]}).filter(r=>!!r));return Object.fromEntries(n)},PK=async t=>{const{owner:e,repo:n,branch:r}=ai,{isForgejo:i}=S2,o=i?`/repos/${e}/${n}/git/blobs`:`/repos/${e}/${n}/file-contents?ref=${r}`,s=i?"sha":"path",a=t.filter(({type:f})=>f!=="asset").map(({[s]:f})=>f);if(!a.length)return{};const l=[],u=[...a];Xo.set(0);const{default_paging_num:d=30}=await ar("/settings/api");for(;;){const f=u.splice(0,d),h=await(i?ar(`${o}?shas=${f.join(",")}`):ar(o,{method:"POST",body:{files:f}}));if(l.push(...h),Xo.set(Math.ceil((a.length-u.length)/a.length*100)),!u.length)break}return Xo.set(void 0),IK(t,l)},OK=async()=>{await EK(),await yK(),await Ow({repository:ai,fetchDefaultBranchName:wK,fetchLastCommit:kK,fetchFileList:$K,fetchFileContents:PK})},NK=async t=>{const{owner:e,repo:n,branch:r}=ai,{path:i}=t;return ar(`/repos/${e}/${n}/media/${r}/${encodeURI(i)}`,{responseType:"blob"})},Nw="sveltia-cms.prefs",Lw=nt(),xt=nt({},t=>{Lw.set(void 0),(async()=>{try{const e=await bi.get(Nw)??{};e.apiKeys??={},e.useDraftBackup??=!0,e.closeOnSave??=!0,e.closeWithEscape??=!0,e.underlineLinks??=!0,e.beta??=!1,e.devModeEnabled??=!1,t(e)}catch{Lw.set({type:"permission_denied"})}})()});xt.subscribe(t=>{if(!t||!Object.keys(t).length)return;(async()=>{try{vn(t,await bi.get(Nw))||await bi.set(Nw,t)}catch{}})();const{locale:e,theme:n,underlineLinks:r=!0,beta:i=!1,devModeEnabled:o=!1}=t;e&&ie(LS).includes(e)&&nn.set(e);const s=!n||n==="auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";Object.assign(document.documentElement.dataset,{theme:s?a:n,autoTheming:s,underlineLinks:r,beta:i,devMode:o})});const LK={isGit:!0,name:zl,label:p2,repository:ai,init:()=>{const{backend:t}=ie(Nt)??{};if(t?.name!==zl)return;const{repo:e,branch:n,base_url:r=cK,auth_endpoint:i=uK,app_id:o="",api_root:s=g2}=t,a=`${In(r)}/${In(i)}`,l=new URL(s).origin,[u,d]=e.split("/"),f=`${l}/${u}/${d}`;return Object.assign(ai,{service:zl,label:p2,owner:u,repo:d,branch:n,baseURL:f,databaseName:`${zl}:${u}/${d}`,isSelfHosted:s!==g2},x2(f,n)),Object.assign(Ul,{clientId:o,authURL:a,tokenURL:a.replace("/authorize","/access_token"),origin:l,restBaseURL:`${l}/api/v1`}),ie(xt).devModeEnabled&&console.info("repositoryInfo",ai),ai},signIn:_K,signOut:bK,fetchFiles:OK,fetchBlob:NK,commitChanges:SK},Ru="github",T2="GitHub",C2="https://api.github.com",RK="https://api.netlify.com",FK="auth",DK="https://github.com",MK=async({token:t})=>{const{id:e,name:n,login:r,email:i,avatar_url:o,html_url:s}=await ar("/user",{token:t});return{backendName:Ru,id:e,name:n,login:r,email:i,avatarURL:o,profileURL:s,token:t}},zK=async({token:t,auto:e=!1})=>{if(!(e&&!t)){if(!t){const{site_domain:n}=ie(Nt)?.backend??{},{authURL:r}=Ul;({token:t}=await _2({backendName:Ru,siteDomain:n,authURL:r,scope:"repo,user"}))}return MK({token:t})}},UK=async()=>{},Di={...$w},A2=(t,e)=>({treeBaseURL:e?`${t}/tree/${e}`:t,blobBaseURL:e?`${t}/blob/${e}`:""}),jK=async()=>{const{owner:t,repo:e}=Di,n=ie(tr)?.login,{ok:r}=await ar(`/repos/${t}/${e}/collaborators/${encodeURIComponent(n)}`,{headers:{Accept:"application/json"},responseType:"raw"});if(!r)throw new Error("Not a collaborator of the repository",{cause:new Error(ie(ue)("repository_no_access",{values:{repo:e}}))})},BK=`
240
240
  query($owner: String!, $repo: String!) {
241
241
  repository(owner: $owner, name: $repo) {
242
242
  defaultBranchRef {