@byuckchon-frontend/utils 1.4.2 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1896 -1836
- package/dist/index.umd.js +9 -8
- package/dist/src/validate/index.d.ts +1 -4
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
(function(ce,nt){typeof exports=="object"&&typeof module<"u"?nt(exports):typeof define=="function"&&define.amd?define(["exports"],nt):(ce=typeof globalThis<"u"?globalThis:ce||self,nt(ce.index={}))})(this,(function(ce){"use strict";const nt=()=>({formatPhoneNumber:i=>{const a=(i??"").replace(/\D/g,"");if(/^1[568]\d{7}$/.test(a))return a.replace(/^(\d{4})(\d{4})$/,"$1-$2");if(a.startsWith("02")){if(a.length===9)return a.replace(/^(\d{2})(\d{3})(\d{4})$/,"$1-$2-$3");if(a.length===10)return a.replace(/^(\d{2})(\d{4})(\d{4})$/,"$1-$2-$3")}if(/^0\d+/.test(a)){if(a.length===10)return a.replace(/^(\d{3})(\d{3})(\d{4})$/,"$1-$2-$3");if(a.length===11)return a.replace(/^(\d{3})(\d{4})(\d{4})$/,"$1-$2-$3")}return i},formatBizNumber:i=>{const a=(i??"").replace(/\D/g,"");return a.length===10?a.replace(/^(\d{3})(\d{2})(\d{5})$/,"$1-$2-$3"):a.length===13?a.replace(/^(\d{6})(\d{7})$/,"$1-$2"):String(i??"")},formatDate:i=>{if(!(i instanceof Date)||isNaN(i.getTime()))return"";const a=i.getHours(),l=i.getMinutes(),f=a<12?"오전":"오후",d=a%12===0?12:a%12;return`${f} ${d}시 ${l}분`},Masker:{maskName:i=>{const a=(i??"").trim(),l=[...a].length;if(l<=0)return"";if(l===1)return"*";if(l===2){const[b]=[...a];return`${b}*`}const f=[...a],d=f[0],p=f[l-1],w="*".repeat(l-2);return`${d}${w}${p}`},maskPhoneNumber:i=>{if(i.includes("-")){const p=i.split("-");if(p.length===3){const[w,b,E]=p;return`${w}-${"*".repeat(b.replace(/\D/g,"").length||4)}-${E}`}if(p.length===2){const[w,b]=p,E=b.replace(/\D/g,""),y=E.slice(-4),m=Math.max(1,E.length-y.length);return`${w}-${"*".repeat(m)}${y}`}return i}const a=i.replace(/\D/g,"");if(a.length<8)return i;const l=a.slice(0,3),f=a.slice(-4),d=Math.max(1,a.length-(l.length+f.length));return`${l}${"*".repeat(d)}${f}`}},commanizeData:i=>{const a=String(i??"").trim();if(!a)return"";const l=a.replace(/,/g,""),f=l.startsWith("-")?"-":"",d=l.replace(/^-/,""),[p,w]=d.split("."),b=p.replace(/\B(?=(\d{3})+(?!\d))/g,",");return f+b+(w!==void 0?`.${w}`:"")},decommanizeData:i=>i.replace(/,/g,"")}),So=/^[A-Za-z0-9]([A-Za-z0-9_.+-]*[A-Za-z0-9])?@[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?\.[A-Za-z]{2,}$/,Po=/^010(\d{4})(\d{4})$/,Mo=/^(070|02|031|032|033|034|035|036|037|038|039|041|042|043|051|052|053|054|055|061|062|063|064|070|071|072)[0-9]{3,4}[0-9]{4}$/,No=/([0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1,2][0-9]|3[0,1]))/,Co=/^(19[0-9][0-9]|20\d{2})(0[0-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])$/,Lo=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+~`\-={}[\]:;"'<>,.?/\\]).{10,}$/,ko=/^d{2}([0]\d|[1][0-2])([0][1-9]|[1-2]\d|[3][0-1])[-]*[1-4]\d{6}$/,Io=/^(?:[0-9]{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[1,2][0-9]|3[0,1]))-[1-8][0-9]{6}$/,Fo=/^https?:\/\/(?:[-\w.])+(?:\.[a-zA-Z]{2,})+(?::\d+)?(?:\/[^\s]*)?$/i,vo=/\.(jpg|jpeg|png|gif|pdf|doc|docx|xls|xlsx|ppt|pptx|txt|zip|rar)$/i;function Ho(t){return So.test(t)}function Uo(t){return Po.test(t)}function Bo(t){return Mo.test(t)}function Wo(t){return No.test(t)}function $o(t){return Co.test(t)}function qo(t){return Lo.test(t)}function Yo(t){return ko.test(t)}function zo(t){return Io.test(t)}function jo(t){const e=t.replace(/-/gi,"").split("").map(n=>parseInt(n,10));if(e.length===10){if(e.every(s=>s===0))return!1;const n=[1,3,7,1,3,7,1,3,5];let r=0;for(let s=0;s<9;s++)r+=n[s]*e[s];const o=(10-r%10)%10;return e[9]===o}return!1}function Go(t){return Fo.test(t)}function Xo(t,e=10){const n=typeof t=="string"?t:t.name;return!(!vo.test(n)||t instanceof File&&t.size/1048576>e)}const Vo={email:Ho,phone:Uo,homePhone:Bo,birth6:Wo,birth8:$o,password:qo,juminAfter2020:zo,juminBefore2020:Yo,corporateRegiNumber:jo,url:Go,file:Xo};function In(t,e){return function(){return t.apply(e,arguments)}}const{toString:Qo}=Object.prototype,{getPrototypeOf:At}=Object,{iterator:Rt,toStringTag:Fn}=Symbol,xt=(t=>e=>{const n=Qo.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),de=t=>(t=t.toLowerCase(),e=>xt(e)===t),Dt=t=>e=>typeof e===t,{isArray:qe}=Array,Ye=Dt("undefined");function rt(t){return t!==null&&!Ye(t)&&t.constructor!==null&&!Ye(t.constructor)&&re(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const vn=de("ArrayBuffer");function Ko(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&vn(t.buffer),e}const Jo=Dt("string"),re=Dt("function"),Hn=Dt("number"),ot=t=>t!==null&&typeof t=="object",Zo=t=>t===!0||t===!1,St=t=>{if(xt(t)!=="object")return!1;const e=At(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Fn in t)&&!(Rt in t)},es=t=>{if(!ot(t)||rt(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},ts=de("Date"),ns=de("File"),rs=t=>!!(t&&typeof t.uri<"u"),os=t=>t&&typeof t.getParts<"u",ss=de("Blob"),is=de("FileList"),as=t=>ot(t)&&re(t.pipe);function cs(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Un=cs(),Bn=typeof Un.FormData<"u"?Un.FormData:void 0,us=t=>{if(!t)return!1;if(Bn&&t instanceof Bn)return!0;const e=At(t);if(!e||e===Object.prototype||!re(t.append))return!1;const n=xt(t);return n==="formdata"||n==="object"&&re(t.toString)&&t.toString()==="[object FormData]"},ls=de("URLSearchParams"),[fs,ds,ms,hs]=["ReadableStream","Request","Response","Headers"].map(de),ps=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function st(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),qe(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(rt(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let a;for(r=0;r<i;r++)a=s[r],e.call(null,t[a],a,t)}}function Wn(t,e){if(rt(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const Ce=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$n=t=>!Ye(t)&&t!==Ce;function zt(...t){const{caseless:e,skipUndefined:n}=$n(this)&&this||{},r={},o=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=e&&Wn(r,i)||i,l=jt(r,a)?r[a]:void 0;St(l)&&St(s)?r[a]=zt(l,s):St(s)?r[a]=zt({},s):qe(s)?r[a]=s.slice():(!n||!Ye(s))&&(r[a]=s)};for(let s=0,i=t.length;s<i;s++)t[s]&&st(t[s],o);return r}const gs=(t,e,n,{allOwnKeys:r}={})=>(st(e,(o,s)=>{n&&re(o)?Object.defineProperty(t,s,{__proto__:null,value:In(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),ws=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ys=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},bs=(t,e,n,r)=>{let o,s,i;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&At(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ts=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Es=t=>{if(!t)return null;if(qe(t))return t;let e=t.length;if(!Hn(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_s=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&At(Uint8Array)),Os=(t,e)=>{const r=(t&&t[Rt]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},As=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Rs=de("HTMLFormElement"),xs=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),jt=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Ds=de("RegExp"),qn=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};st(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),Object.defineProperties(t,r)},Ss=t=>{qn(t,(e,n)=>{if(re(t)&&["arguments","caller","callee"].includes(n))return!1;const r=t[n];if(re(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ps=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return qe(t)?r(t):r(String(t).split(e)),n},Ms=()=>{},Ns=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Cs(t){return!!(t&&re(t.append)&&t[Fn]==="FormData"&&t[Rt])}const Ls=t=>{const e=new Array(10),n=(r,o)=>{if(ot(r)){if(e.indexOf(r)>=0)return;if(rt(r))return r;if(!("toJSON"in r)){e[o]=r;const s=qe(r)?[]:{};return st(r,(i,a)=>{const l=n(i,o+1);!Ye(l)&&(s[a]=l)}),e[o]=void 0,s}}return r};return n(t,0)},ks=de("AsyncFunction"),Is=t=>t&&(ot(t)||re(t))&&re(t.then)&&re(t.catch),Yn=((t,e)=>t?setImmediate:e?((n,r)=>(Ce.addEventListener("message",({source:o,data:s})=>{o===Ce&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Ce.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",re(Ce.postMessage)),Fs=typeof queueMicrotask<"u"?queueMicrotask.bind(Ce):typeof process<"u"&&process.nextTick||Yn,u={isArray:qe,isArrayBuffer:vn,isBuffer:rt,isFormData:us,isArrayBufferView:Ko,isString:Jo,isNumber:Hn,isBoolean:Zo,isObject:ot,isPlainObject:St,isEmptyObject:es,isReadableStream:fs,isRequest:ds,isResponse:ms,isHeaders:hs,isUndefined:Ye,isDate:ts,isFile:ns,isReactNativeBlob:rs,isReactNative:os,isBlob:ss,isRegExp:Ds,isFunction:re,isStream:as,isURLSearchParams:ls,isTypedArray:_s,isFileList:is,forEach:st,merge:zt,extend:gs,trim:ps,stripBOM:ws,inherits:ys,toFlatObject:bs,kindOf:xt,kindOfTest:de,endsWith:Ts,toArray:Es,forEachEntry:Os,matchAll:As,isHTMLForm:Rs,hasOwnProperty:jt,hasOwnProp:jt,reduceDescriptors:qn,freezeMethods:Ss,toObjectSet:Ps,toCamelCase:xs,noop:Ms,toFiniteNumber:Ns,findKey:Wn,global:Ce,isContextDefined:$n,isSpecCompliantForm:Cs,toJSONObject:Ls,isAsyncFn:ks,isThenable:Is,setImmediate:Yn,asap:Fs,isIterable:t=>t!=null&&re(t[Rt])},vs=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Hs=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
2
|
-
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||e[n]&&
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[zn]=this[zn]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=it(i);r[a]||(zs(o,i),r[a]=!0)}return u.isArray(e)?e.forEach(s):s(e),this}};J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),u.reduceDescriptors(J.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),u.freezeMethods(J);const js="[REDACTED ****]";function Gs(t){if(u.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(u.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Xs(t,e){const n=new Set(e.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||u.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof J&&(s=s.toJSON()),r.push(s);let i;if(u.isArray(s))i=[],s.forEach((a,l)=>{const f=o(a);u.isUndefined(f)||(i[l]=f)});else{if(!u.isPlainObject(s)&&Gs(s))return r.pop(),s;i=Object.create(null);for(const[a,l]of Object.entries(s)){const f=n.has(a.toLowerCase())?js:o(l);u.isUndefined(f)||(i[a]=f)}}return r.pop(),i};return o(t)}let T=class xo extends Error{static from(e,n,r,o,s,i){const a=new xo(e.message,n||e.code,r,o,s);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,n,r,o,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const e=this.config,n=e&&u.hasOwnProp(e,"redact")?e.redact:void 0,r=u.isArray(n)&&n.length>0?Xs(e,n):u.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};T.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",T.ERR_BAD_OPTION="ERR_BAD_OPTION",T.ECONNABORTED="ECONNABORTED",T.ETIMEDOUT="ETIMEDOUT",T.ECONNREFUSED="ECONNREFUSED",T.ERR_NETWORK="ERR_NETWORK",T.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",T.ERR_DEPRECATED="ERR_DEPRECATED",T.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",T.ERR_BAD_REQUEST="ERR_BAD_REQUEST",T.ERR_CANCELED="ERR_CANCELED",T.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",T.ERR_INVALID_URL="ERR_INVALID_URL",T.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Vs=null;function Xt(t){return u.isPlainObject(t)||u.isArray(t)}function jn(t){return u.endsWith(t,"[]")?t.slice(0,-2):t}function Vt(t,e,n){return t?t.concat(e).map(function(o,s){return o=jn(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function Qs(t){return u.isArray(t)&&!t.some(Xt)}const Ks=u.toFlatObject(u,{},null,function(e){return/^is[A-Z]/.test(e)});function Mt(t,e,n){if(!u.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!u.isUndefined(g[m])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,i=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,f=a&&u.isSpecCompliantForm(e);if(!u.isFunction(o))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(u.isDate(y))return y.toISOString();if(u.isBoolean(y))return y.toString();if(!f&&u.isBlob(y))throw new T("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(y)||u.isTypedArray(y)?f&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function p(y,m,g){let x=y;if(u.isReactNative(e)&&u.isReactNativeBlob(y))return e.append(Vt(g,m,s),d(y)),!1;if(y&&!g&&typeof y=="object"){if(u.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=JSON.stringify(y);else if(u.isArray(y)&&Qs(y)||(u.isFileList(y)||u.endsWith(m,"[]"))&&(x=u.toArray(y)))return m=jn(m),x.forEach(function(O,k){!(u.isUndefined(O)||O===null)&&e.append(i===!0?Vt([m],k,s):i===null?m:m+"[]",d(O))}),!1}return Xt(y)?!0:(e.append(Vt(g,m,s),d(y)),!1)}const w=[],b=Object.assign(Ks,{defaultVisitor:p,convertValue:d,isVisitable:Xt});function E(y,m,g=0){if(!u.isUndefined(y)){if(g>l)throw new T("Object is too deeply nested ("+g+" levels). Max depth: "+l,T.ERR_FORM_DATA_DEPTH_EXCEEDED);if(w.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));w.push(y),u.forEach(y,function(R,O){(!(u.isUndefined(R)||R===null)&&o.call(e,R,u.isString(O)?O.trim():O,m,b))===!0&&E(R,m?m.concat(O):[O],g+1)}),w.pop()}}if(!u.isObject(t))throw new TypeError("data must be an object");return E(t),e}function Gn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function Qt(t,e){this._pairs=[],t&&Mt(t,this,e)}const Xn=Qt.prototype;Xn.append=function(e,n){this._pairs.push([e,n])},Xn.toString=function(e){const n=e?function(r){return e.call(this,r,Gn)}:Gn;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Js(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Vn(t,e,n){if(!e)return t;const r=n&&n.encode||Js,o=u.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(s?i=s(e,o):i=u.isURLSearchParams(e)?e.toString():new Qt(e,o).toString(r),i){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Qn{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){u.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Kt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Zs={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Qt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Jt=typeof window<"u"&&typeof document<"u",Zt=typeof navigator=="object"&&navigator||void 0,ei=Jt&&(!Zt||["ReactNative","NativeScript","NS"].indexOf(Zt.product)<0),ti=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ni=Jt&&window.location.href||"http://localhost",Q={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jt,hasStandardBrowserEnv:ei,hasStandardBrowserWebWorkerEnv:ti,navigator:Zt,origin:ni},Symbol.toStringTag,{value:"Module"})),...Zs};function ri(t,e){return Mt(t,new Q.classes.URLSearchParams,{visitor:function(n,r,o,s){return Q.isNode&&u.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function oi(t){return u.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function si(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function Kn(t){function e(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=s>=n.length;return i=!i&&u.isArray(o)?o.length:i,l?(u.hasOwnProp(o,i)?o[i]=u.isArray(o[i])?o[i].concat(r):[o[i],r]:o[i]=r,!a):((!o[i]||!u.isObject(o[i]))&&(o[i]=[]),e(n,r,o[i],s)&&u.isArray(o[i])&&(o[i]=si(o[i])),!a)}if(u.isFormData(t)&&u.isFunction(t.entries)){const n={};return u.forEachEntry(t,(r,o)=>{e(oi(r),o,n,0)}),n}return null}const ze=(t,e)=>t!=null&&u.hasOwnProp(t,e)?t[e]:void 0;function ii(t,e,n){if(u.isString(t))try{return(e||JSON.parse)(t),u.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const at={transitional:Kt,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=u.isObject(e);if(s&&u.isHTMLForm(e)&&(e=new FormData(e)),u.isFormData(e))return o?JSON.stringify(Kn(e)):e;if(u.isArrayBuffer(e)||u.isBuffer(e)||u.isStream(e)||u.isFile(e)||u.isBlob(e)||u.isReadableStream(e))return e;if(u.isArrayBufferView(e))return e.buffer;if(u.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){const l=ze(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return ri(e,l).toString();if((a=u.isFileList(e))||r.indexOf("multipart/form-data")>-1){const f=ze(this,"env"),d=f&&f.FormData;return Mt(a?{"files[]":e}:e,d&&new d,l)}}return s||o?(n.setContentType("application/json",!1),ii(e)):e}],transformResponse:[function(e){const n=ze(this,"transitional")||at.transitional,r=n&&n.forcedJSONParsing,o=ze(this,"responseType"),s=o==="json";if(u.isResponse(e)||u.isReadableStream(e))return e;if(e&&u.isString(e)&&(r&&!o||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,ze(this,"parseReviver"))}catch(l){if(a)throw l.name==="SyntaxError"?T.from(l,T.ERR_BAD_RESPONSE,this,null,ze(this,"response")):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Q.classes.FormData,Blob:Q.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch","query"],t=>{at.headers[t]={}});function en(t,e){const n=this||at,r=e||n,o=J.from(r.headers);let s=r.data;return u.forEach(t,function(a){s=a.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function Jn(t){return!!(t&&t.__CANCEL__)}let ct=class extends T{constructor(e,n,r){super(e??"canceled",T.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Zn(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new T("Request failed with status code "+n.status,n.status>=400&&n.status<500?T.ERR_BAD_REQUEST:T.ERR_BAD_RESPONSE,n.config,n.request,n))}function ai(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function ci(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(l){const f=Date.now(),d=r[s];i||(i=f),n[o]=l,r[o]=f;let p=s,w=0;for(;p!==o;)w+=n[p++],p=p%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),f-i<e)return;const b=d&&f-d;return b?Math.round(w*1e3/b):void 0}}function ui(t,e){let n=0,r=1e3/e,o,s;const i=(f,d=Date.now())=>{n=d,o=null,s&&(clearTimeout(s),s=null),t(...f)};return[(...f)=>{const d=Date.now(),p=d-n;p>=r?i(f,d):(o=f,s||(s=setTimeout(()=>{s=null,i(o)},r-p)))},()=>o&&i(o)]}const Nt=(t,e,n=3)=>{let r=0;const o=ci(50,250);return ui(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=a!=null?Math.min(i,a):i,f=Math.max(0,l-r),d=o(f);r=Math.max(r,l);const p={loaded:l,total:a,progress:a?l/a:void 0,bytes:f,rate:d||void 0,estimated:d&&a?(a-l)/d:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(p)},n)},er=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},tr=t=>(...e)=>u.asap(()=>t(...e)),li=Q.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Q.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Q.origin),Q.navigator&&/(msie|trident)/i.test(Q.navigator.userAgent)):()=>!0,fi=Q.hasStandardBrowserEnv?{write(t,e,n,r,o,s,i){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];u.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),u.isString(r)&&a.push(`path=${r}`),u.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),u.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const r=e[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===t)return decodeURIComponent(r.slice(o+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function di(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function mi(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function nr(t,e,n){let r=!di(e);return t&&(r||n===!1)?mi(t,e):e}const rr=t=>t instanceof J?{...t}:t;function Le(t,e){e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,d,p,w){return u.isPlainObject(f)&&u.isPlainObject(d)?u.merge.call({caseless:w},f,d):u.isPlainObject(d)?u.merge({},d):u.isArray(d)?d.slice():d}function o(f,d,p,w){if(u.isUndefined(d)){if(!u.isUndefined(f))return r(void 0,f,p,w)}else return r(f,d,p,w)}function s(f,d){if(!u.isUndefined(d))return r(void 0,d)}function i(f,d){if(u.isUndefined(d)){if(!u.isUndefined(f))return r(void 0,f)}else return r(void 0,d)}function a(f,d,p){if(u.hasOwnProp(e,p))return r(f,d);if(u.hasOwnProp(t,p))return r(void 0,f)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:a,headers:(f,d,p)=>o(rr(f),rr(d),p,!0)};return u.forEach(Object.keys({...t,...e}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const p=u.hasOwnProp(l,d)?l[d]:o,w=u.hasOwnProp(t,d)?t[d]:void 0,b=u.hasOwnProp(e,d)?e[d]:void 0,E=p(w,b,d);u.isUndefined(E)&&p!==a||(n[d]=E)}),n}const hi=["content-type","content-length"];function pi(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e).forEach(([r,o])=>{hi.includes(r.toLowerCase())&&t.set(r,o)})}const gi=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),or=t=>{const e=Le({},t),n=w=>u.hasOwnProp(e,w)?e[w]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const l=n("auth"),f=n("baseURL"),d=n("allowAbsoluteUrls"),p=n("url");if(e.headers=a=J.from(a),e.url=Vn(nr(f,p,d),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?gi(l.password):""))),u.isFormData(r)&&(Q.hasStandardBrowserEnv||Q.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):u.isFunction(r.getHeaders)&&pi(a,r.getHeaders(),n("formDataHeaderPolicy"))),Q.hasStandardBrowserEnv&&(u.isFunction(o)&&(o=o(e)),o===!0||o==null&&li(e.url))){const b=s&&i&&fi.read(i);b&&a.set(s,b)}return e},wi=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=or(t);let s=o.data;const i=J.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:f}=o,d,p,w,b,E;function y(){b&&b(),E&&E(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function g(){if(!m)return;const R=J.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:R,config:t,request:m};Zn(function(ve){n(ve),y()},function(ve){r(ve),y()},k),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(g)},m.onabort=function(){m&&(r(new T("Request aborted",T.ECONNABORTED,t,m)),y(),m=null)},m.onerror=function(O){const k=O&&O.message?O.message:"Network Error",se=new T(k,T.ERR_NETWORK,t,m);se.event=O||null,r(se),y(),m=null},m.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||Kt;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),r(new T(O,k.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,t,m)),y(),m=null},s===void 0&&i.setContentType(null),"setRequestHeader"in m&&u.forEach(i.toJSON(),function(O,k){m.setRequestHeader(k,O)}),u.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),a&&a!=="json"&&(m.responseType=o.responseType),f&&([w,E]=Nt(f,!0),m.addEventListener("progress",w)),l&&m.upload&&([p,b]=Nt(l),m.upload.addEventListener("progress",p),m.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=R=>{m&&(r(!R||R.type?new ct(null,t,m):R),m.abort(),y(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const x=ai(o.url);if(x&&!Q.protocols.includes(x)){r(new T("Unsupported protocol "+x+":",T.ERR_BAD_REQUEST,t));return}m.send(s||null)})},yi=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,o;const s=function(f){if(!o){o=!0,a();const d=f instanceof Error?f:this.reason;r.abort(d instanceof T?d:new ct(d instanceof Error?d.message:d))}};let i=e&&setTimeout(()=>{i=null,s(new T(`timeout of ${e}ms exceeded`,T.ETIMEDOUT))},e);const a=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),t=null)};t.forEach(f=>f.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>u.asap(a),l}},bi=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},Ti=async function*(t,e){for await(const n of Ei(t))yield*bi(n,e)},Ei=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},sr=(t,e,n,r)=>{const o=Ti(t,e);let s=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:f,value:d}=await o.next();if(f){a(),l.close();return}let p=d.byteLength;if(n){let w=s+=p;n(w)}l.enqueue(new Uint8Array(d))}catch(f){throw a(f),f}},cancel(l){return a(l),o.return()}},{highWaterMark:2})};function _i(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const n=t.slice(5,e),r=t.slice(e+1);if(/;base64/i.test(n)){let i=r.length;const a=r.length;for(let b=0;b<a;b++)if(r.charCodeAt(b)===37&&b+2<a){const E=r.charCodeAt(b+1),y=r.charCodeAt(b+2);(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102)&&(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(i-=2,b+=2)}let l=0,f=a-1;const d=b=>b>=2&&r.charCodeAt(b-2)===37&&r.charCodeAt(b-1)===51&&(r.charCodeAt(b)===68||r.charCodeAt(b)===100);f>=0&&(r.charCodeAt(f)===61?(l++,f--):d(f)&&(l++,f-=3)),l===1&&f>=0&&(r.charCodeAt(f)===61||d(f))&&l++;const w=Math.floor(i/4)*3-(l||0);return w>0?w:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let s=0;for(let i=0,a=r.length;i<a;i++){const l=r.charCodeAt(i);if(l<128)s+=1;else if(l<2048)s+=2;else if(l>=55296&&l<=56319&&i+1<a){const f=r.charCodeAt(i+1);f>=56320&&f<=57343?(s+=4,i++):s+=3}else s+=3}return s}const tn="1.16.0",ir=64*1024,{isFunction:Ct}=u,ar=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Oi=t=>{const e=u.global??globalThis,{ReadableStream:n,TextEncoder:r}=e;t=u.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:o,Request:s,Response:i}=t,a=o?Ct(o):typeof fetch=="function",l=Ct(s),f=Ct(i);if(!a)return!1;const d=a&&Ct(n),p=a&&(typeof r=="function"?(g=>x=>g.encode(x))(new r):async g=>new Uint8Array(await new s(g).arrayBuffer())),w=l&&d&&ar(()=>{let g=!1;const x=new s(Q.origin,{body:new n,method:"POST",get duplex(){return g=!0,"half"}}),R=x.headers.has("Content-Type");return x.body!=null&&x.body.cancel(),g&&!R}),b=f&&d&&ar(()=>u.isReadableStream(new i("").body)),E={stream:b&&(g=>g.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!E[g]&&(E[g]=(x,R)=>{let O=x&&x[g];if(O)return O.call(x);throw new T(`Response type '${g}' is not supported`,T.ERR_NOT_SUPPORT,R)})});const y=async g=>{if(g==null)return 0;if(u.isBlob(g))return g.size;if(u.isSpecCompliantForm(g))return(await new s(Q.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(u.isArrayBufferView(g)||u.isArrayBuffer(g))return g.byteLength;if(u.isURLSearchParams(g)&&(g=g+""),u.isString(g))return(await p(g)).byteLength},m=async(g,x)=>{const R=u.toFiniteNumber(g.getContentLength());return R??y(x)};return async g=>{let{url:x,method:R,data:O,signal:k,cancelToken:se,timeout:ve,onDownloadProgress:wt,onUploadProgress:Bt,responseType:be,headers:H,withCredentials:Ae="same-origin",fetchOptions:He,maxContentLength:te,maxBodyLength:yt}=or(g);const Ue=u.isNumber(te)&&te>-1,En=u.isNumber(yt)&&yt>-1;let bt=o||fetch;be=be?(be+"").toLowerCase():"text";let Te=yi([k,se&&se.toAbortSignal()],ve),ne=null;const I=Te&&Te.unsubscribe&&(()=>{Te.unsubscribe()});let Tt;try{if(Ue&&typeof x=="string"&&x.startsWith("data:")&&_i(x)>te)throw new T("maxContentLength size of "+te+" exceeded",T.ERR_BAD_RESPONSE,g,ne);if(En&&R!=="get"&&R!=="head"){const P=await m(H,O);if(typeof P=="number"&&isFinite(P)&&P>yt)throw new T("Request body larger than maxBodyLength limit",T.ERR_BAD_REQUEST,g,ne)}if(Bt&&w&&R!=="get"&&R!=="head"&&(Tt=await m(H,O))!==0){let P=new s(x,{method:"POST",body:O,duplex:"half"}),xe;if(u.isFormData(O)&&(xe=P.headers.get("content-type"))&&H.setContentType(xe),P.body){const[Ne,Be]=er(Tt,Nt(tr(Bt)));O=sr(P.body,ir,Ne,Be)}}u.isString(Ae)||(Ae=Ae?"include":"omit");const M=l&&"credentials"in s.prototype;if(u.isFormData(O)){const P=H.getContentType();P&&/^multipart\/form-data/i.test(P)&&!/boundary=/i.test(P)&&H.delete("content-type")}H.set("User-Agent","axios/"+tn,!1);const me={...He,signal:Te,method:R.toUpperCase(),headers:H.normalize().toJSON(),body:O,duplex:"half",credentials:M?Ae:void 0};ne=l&&new s(x,me);let C=await(l?bt(ne,He):bt(x,me));if(Ue){const P=u.toFiniteNumber(C.headers.get("content-length"));if(P!=null&&P>te)throw new T("maxContentLength size of "+te+" exceeded",T.ERR_BAD_RESPONSE,g,ne)}const Re=b&&(be==="stream"||be==="response");if(b&&C.body&&(wt||Ue||Re&&I)){const P={};["status","statusText","headers"].forEach(he=>{P[he]=C[he]});const xe=u.toFiniteNumber(C.headers.get("content-length")),[Ne,Be]=wt&&er(xe,Nt(tr(wt),!0))||[];let Et=0;const De=he=>{if(Ue&&(Et=he,Et>te))throw new T("maxContentLength size of "+te+" exceeded",T.ERR_BAD_RESPONSE,g,ne);Ne&&Ne(he)};C=new i(sr(C.body,ir,De,()=>{Be&&Be(),I&&I()}),P)}be=be||"text";let ie=await E[u.findKey(E,be)||"text"](C,g);if(Ue&&!b&&!Re){let P;if(ie!=null&&(typeof ie.byteLength=="number"?P=ie.byteLength:typeof ie.size=="number"?P=ie.size:typeof ie=="string"&&(P=typeof r=="function"?new r().encode(ie).byteLength:ie.length)),typeof P=="number"&&P>te)throw new T("maxContentLength size of "+te+" exceeded",T.ERR_BAD_RESPONSE,g,ne)}return!Re&&I&&I(),await new Promise((P,xe)=>{Zn(P,xe,{data:ie,headers:J.from(C.headers),status:C.status,statusText:C.statusText,config:g,request:ne})})}catch(M){if(I&&I(),Te&&Te.aborted&&Te.reason instanceof T){const me=Te.reason;throw me.config=g,ne&&(me.request=ne),M!==me&&(me.cause=M),me}throw M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new T("Network Error",T.ERR_NETWORK,g,ne,M&&M.response),{cause:M.cause||M}):T.from(M,M&&M.code,g,ne,M&&M.response)}}},Ai=new Map,cr=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,s=[r,o,n];let i=s.length,a=i,l,f,d=Ai;for(;a--;)l=s[a],f=d.get(l),f===void 0&&d.set(l,f=a?new Map:Oi(e)),d=f;return f};cr();const nn={http:Vs,xhr:wi,fetch:{get:cr}};u.forEach(nn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const ur=t=>`- ${t}`,Ri=t=>u.isFunction(t)||t===null||t===!1;function xi(t,e){t=u.isArray(t)?t:[t];const{length:n}=t;let r,o;const s={};for(let i=0;i<n;i++){r=t[i];let a;if(o=r,!Ri(r)&&(o=nn[(a=String(r)).toLowerCase()],o===void 0))throw new T(`Unknown adapter '${a}'`);if(o&&(u.isFunction(o)||(o=o.get(e))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([l,f])=>`adapter ${l} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
|
|
4
|
-
`+i.map(
|
|
5
|
-
`):" "+
|
|
1
|
+
(function(se,ct){typeof exports=="object"&&typeof module<"u"?ct(exports):typeof define=="function"&&define.amd?define(["exports"],ct):(se=typeof globalThis<"u"?globalThis:se||self,ct(se.index={}))})(this,(function(se){"use strict";const ct=()=>({formatPhoneNumber:i=>{const a=(i??"").replace(/\D/g,"");if(/^1[568]\d{7}$/.test(a))return a.replace(/^(\d{4})(\d{4})$/,"$1-$2");if(a.startsWith("02")){if(a.length===9)return a.replace(/^(\d{2})(\d{3})(\d{4})$/,"$1-$2-$3");if(a.length===10)return a.replace(/^(\d{2})(\d{4})(\d{4})$/,"$1-$2-$3")}if(/^0\d+/.test(a)){if(a.length===10)return a.replace(/^(\d{3})(\d{3})(\d{4})$/,"$1-$2-$3");if(a.length===11)return a.replace(/^(\d{3})(\d{4})(\d{4})$/,"$1-$2-$3")}return i},formatBizNumber:i=>{const a=(i??"").replace(/\D/g,"");return a.length===10?a.replace(/^(\d{3})(\d{2})(\d{5})$/,"$1-$2-$3"):a.length===13?a.replace(/^(\d{6})(\d{7})$/,"$1-$2"):String(i??"")},formatDate:i=>{if(!(i instanceof Date)||isNaN(i.getTime()))return"";const a=i.getHours(),u=i.getMinutes(),f=a<12?"오전":"오후",d=a%12===0?12:a%12;return`${f} ${d}시 ${u}분`},Masker:{maskName:i=>{const a=(i??"").trim(),u=[...a].length;if(u<=0)return"";if(u===1)return"*";if(u===2){const[T]=[...a];return`${T}*`}const f=[...a],d=f[0],p=f[u-1],g="*".repeat(u-2);return`${d}${g}${p}`},maskPhoneNumber:i=>{if(i.includes("-")){const p=i.split("-");if(p.length===3){const[g,T,_]=p;return`${g}-${"*".repeat(T.replace(/\D/g,"").length||4)}-${_}`}if(p.length===2){const[g,T]=p,_=T.replace(/\D/g,""),w=_.slice(-4),m=Math.max(1,_.length-w.length);return`${g}-${"*".repeat(m)}${w}`}return i}const a=i.replace(/\D/g,"");if(a.length<8)return i;const u=a.slice(0,3),f=a.slice(-4),d=Math.max(1,a.length-(u.length+f.length));return`${u}${"*".repeat(d)}${f}`}},commanizeData:i=>{const a=String(i??"").trim();if(!a)return"";const u=a.replace(/,/g,""),f=u.startsWith("-")?"-":"",d=u.replace(/^-/,""),[p,g]=d.split("."),T=p.replace(/\B(?=(\d{3})+(?!\d))/g,",");return f+T+(g!==void 0?`.${g}`:"")},decommanizeData:i=>i.replace(/,/g,"")}),Fo=/^[A-Za-z0-9]([A-Za-z0-9_.+-]*[A-Za-z0-9])?@[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?\.[A-Za-z]{2,}$/,vo=/^010(\d{4})(\d{4})$/,Ho=/^(070|02|031|032|033|034|035|036|037|038|039|041|042|043|051|052|053|054|055|061|062|063|064|070|071|072)[0-9]{3,4}[0-9]{4}$/,Uo=/([0-9]{2}(0[1-9]|1[0-2])(0[1-9]|[1,2][0-9]|3[0,1]))/,Bo=/^(19[0-9][0-9]|20\d{2})(0[0-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])$/,$o=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+~`\-={}[\]:;"'<>,.?/\\]).{10,}$/,Wo=/^d{2}([0]\d|[1][0-2])([0][1-9]|[1-2]\d|[3][0-1])[-]*[1-4]\d{6}$/,qo=/^(?:[0-9]{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[1,2][0-9]|3[0,1]))-[1-8][0-9]{6}$/,Yo=/^https?:\/\/(?:[-\w.])+(?:\.[a-zA-Z]{2,})+(?::\d+)?(?:\/[^\s]*)?$/i,zo=/\.(jpg|jpeg|png|gif|pdf|doc|docx|xls|xlsx|ppt|pptx|txt|zip|rar)$/i;function jo(t){return Fo.test(t)}function Go(t){return vo.test(t)}function Xo(t){return Ho.test(t)}function Vo(t){return Uo.test(t)}function Qo(t){return Bo.test(t)}function Ko(t){return $o.test(t)}function Jo(t){return Wo.test(t)}function Zo(t){return qo.test(t)}function es(t){const e=t.replace(/[^0-9]/g,"");if(e.length!==10||/^0+$/.test(e))return!1;const n=e.split("").map(u=>parseInt(u,10)),r=[1,3,7,1,3,7,1,3,5];let o=0;for(let u=0;u<8;u++)o+=r[u]*n[u];const s=r[8]*n[8];o+=Math.floor(s/10)+s%10;const i=o%10,a=i===0?0:10-i;return n[9]===a}function ts(t){return Yo.test(t)}function ns(t,e=10){const n=typeof t=="string"?t:t.name;return!(!zo.test(n)||t instanceof File&&t.size/1048576>e)}const rs={email:jo,phone:Go,homePhone:Xo,birth6:Vo,birth8:Qo,password:Ko,juminAfter2020:Zo,juminBefore2020:Jo,corporateRegiNumber:es,url:ts,file:ns};function $n(t,e){return function(){return t.apply(e,arguments)}}const{toString:os}=Object.prototype,{getPrototypeOf:xt}=Object,{iterator:Dt,toStringTag:Wn}=Symbol,St=(t=>e=>{const n=os.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),me=t=>(t=t.toLowerCase(),e=>St(e)===t),Pt=t=>e=>typeof e===t,{isArray:ze}=Array,je=Pt("undefined");function ut(t){return t!==null&&!je(t)&&t.constructor!==null&&!je(t.constructor)&&ne(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const qn=me("ArrayBuffer");function ss(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&qn(t.buffer),e}const is=Pt("string"),ne=Pt("function"),Yn=Pt("number"),lt=t=>t!==null&&typeof t=="object",as=t=>t===!0||t===!1,Nt=t=>{if(St(t)!=="object")return!1;const e=xt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Wn in t)&&!(Dt in t)},cs=t=>{if(!lt(t)||ut(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},us=me("Date"),ls=me("File"),fs=t=>!!(t&&typeof t.uri<"u"),ds=t=>t&&typeof t.getParts<"u",ms=me("Blob"),hs=me("FileList"),ps=t=>lt(t)&&ne(t.pipe);function gs(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const zn=gs(),jn=typeof zn.FormData<"u"?zn.FormData:void 0,ys=t=>{if(!t)return!1;if(jn&&t instanceof jn)return!0;const e=xt(t);if(!e||e===Object.prototype||!ne(t.append))return!1;const n=St(t);return n==="formdata"||n==="object"&&ne(t.toString)&&t.toString()==="[object FormData]"},ws=me("URLSearchParams"),[bs,Ts,Es,_s]=["ReadableStream","Request","Response","Headers"].map(me),Os=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ft(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),ze(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(ut(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let a;for(r=0;r<i;r++)a=s[r],e.call(null,t[a],a,t)}}function Gn(t,e){if(ut(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const He=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xn=t=>!je(t)&&t!==He;function Kt(...t){const{caseless:e,skipUndefined:n}=Xn(this)&&this||{},r={},o=(s,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=e&&Gn(r,i)||i,u=Jt(r,a)?r[a]:void 0;Nt(u)&&Nt(s)?r[a]=Kt(u,s):Nt(s)?r[a]=Kt({},s):ze(s)?r[a]=s.slice():(!n||!je(s))&&(r[a]=s)};for(let s=0,i=t.length;s<i;s++)t[s]&&ft(t[s],o);return r}const As=(t,e,n,{allOwnKeys:r}={})=>(ft(e,(o,s)=>{n&&ne(o)?Object.defineProperty(t,s,{__proto__:null,value:$n(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),Rs=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),xs=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},Ds=(t,e,n,r)=>{let o,s,i;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&xt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ss=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Ps=t=>{if(!t)return null;if(ze(t))return t;let e=t.length;if(!Yn(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Ns=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xt(Uint8Array)),Ms=(t,e)=>{const r=(t&&t[Dt]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},Cs=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Ls=me("HTMLFormElement"),ks=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Jt=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Is=me("RegExp"),Vn=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ft(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),Object.defineProperties(t,r)},Fs=t=>{Vn(t,(e,n)=>{if(ne(t)&&["arguments","caller","callee"].includes(n))return!1;const r=t[n];if(ne(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},vs=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return ze(t)?r(t):r(String(t).split(e)),n},Hs=()=>{},Us=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Bs(t){return!!(t&&ne(t.append)&&t[Wn]==="FormData"&&t[Dt])}const $s=t=>{const e=new WeakSet,n=r=>{if(lt(r)){if(e.has(r))return;if(ut(r))return r;if(!("toJSON"in r)){e.add(r);const o=ze(r)?[]:{};return ft(r,(s,i)=>{const a=n(s);!je(a)&&(o[i]=a)}),e.delete(r),o}}return r};return n(t)},Ws=me("AsyncFunction"),qs=t=>t&&(lt(t)||ne(t))&&ne(t.then)&&ne(t.catch),Qn=((t,e)=>t?setImmediate:e?((n,r)=>(He.addEventListener("message",({source:o,data:s})=>{o===He&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),He.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ne(He.postMessage)),Ys=typeof queueMicrotask<"u"?queueMicrotask.bind(He):typeof process<"u"&&process.nextTick||Qn,l={isArray:ze,isArrayBuffer:qn,isBuffer:ut,isFormData:ys,isArrayBufferView:ss,isString:is,isNumber:Yn,isBoolean:as,isObject:lt,isPlainObject:Nt,isEmptyObject:cs,isReadableStream:bs,isRequest:Ts,isResponse:Es,isHeaders:_s,isUndefined:je,isDate:us,isFile:ls,isReactNativeBlob:fs,isReactNative:ds,isBlob:ms,isRegExp:Is,isFunction:ne,isStream:ps,isURLSearchParams:ws,isTypedArray:Ns,isFileList:hs,forEach:ft,merge:Kt,extend:As,trim:Os,stripBOM:Rs,inherits:xs,toFlatObject:Ds,kindOf:St,kindOfTest:me,endsWith:Ss,toArray:Ps,forEachEntry:Ms,matchAll:Cs,isHTMLForm:Ls,hasOwnProperty:Jt,hasOwnProp:Jt,reduceDescriptors:Vn,freezeMethods:Fs,toObjectSet:vs,toCamelCase:ks,noop:Hs,toFiniteNumber:Us,findKey:Gn,global:He,isContextDefined:Xn,isSpecCompliantForm:Bs,toJSONObject:$s,isAsyncFn:Ws,isThenable:qs,setImmediate:Qn,asap:Ys,isIterable:t=>t!=null&&ne(t[Dt])},zs=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),js=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
2
|
+
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||e[n]&&zs[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};function Gs(t){let e=0,n=t.length;for(;e<n;){const r=t.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;n>e;){const r=t.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const Xs=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Vs=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Zt(t,e){return l.isArray(t)?t.map(n=>Zt(n,e)):Gs(String(t).replace(e,""))}const Qs=t=>Zt(t,Xs),Ks=t=>Zt(t,Vs);function Kn(t){const e=Object.create(null);return l.forEach(t.toJSON(),(n,r)=>{e[r]=Ks(n)}),e}const Jn=Symbol("internals");function dt(t){return t&&String(t).trim().toLowerCase()}function Mt(t){return t===!1||t==null?t:l.isArray(t)?t.map(Mt):Qs(String(t))}function Js(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Zs=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function en(t,e,n,r,o){if(l.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!l.isString(e)){if(l.isString(r))return e.indexOf(r)!==-1;if(l.isRegExp(r))return r.test(e)}}function ei(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function ti(t,e){const n=l.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{__proto__:null,value:function(o,s,i){return this[r].call(this,e,o,s,i)},configurable:!0})})}let Z=class{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(a,u,f){const d=dt(u);if(!d)throw new Error("header name must be a non-empty string");const p=l.findKey(o,d);(!p||o[p]===void 0||f===!0||f===void 0&&o[p]!==!1)&&(o[p||u]=Mt(a))}const i=(a,u)=>l.forEach(a,(f,d)=>s(f,d,u));if(l.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(l.isString(e)&&(e=e.trim())&&!Zs(e))i(js(e),n);else if(l.isObject(e)&&l.isIterable(e)){let a={},u,f;for(const d of e){if(!l.isArray(d))throw TypeError("Object iterator must return a key-value pair");a[f=d[0]]=(u=a[f])?l.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}i(a,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=dt(e),e){const r=l.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return Js(o);if(l.isFunction(n))return n.call(this,o,r);if(l.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=dt(e),e){const r=l.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||en(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(i){if(i=dt(i),i){const a=l.findKey(r,i);a&&(!n||en(r,r[a],a,n))&&(delete r[a],o=!0)}}return l.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||en(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return l.forEach(this,(o,s)=>{const i=l.findKey(r,s);if(i){n[i]=Mt(o),delete n[s];return}const a=e?ei(s):String(s).trim();a!==s&&delete n[s],n[a]=Mt(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return l.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&l.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Jn]=this[Jn]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=dt(i);r[a]||(ti(o,i),r[a]=!0)}return l.isArray(e)?e.forEach(s):s(e),this}};Z.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(Z.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),l.freezeMethods(Z);const ni="[REDACTED ****]";function ri(t){if(l.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(l.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function oi(t,e){const n=new Set(e.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||l.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Z&&(s=s.toJSON()),r.push(s);let i;if(l.isArray(s))i=[],s.forEach((a,u)=>{const f=o(a);l.isUndefined(f)||(i[u]=f)});else{if(!l.isPlainObject(s)&&ri(s))return r.pop(),s;i=Object.create(null);for(const[a,u]of Object.entries(s)){const f=n.has(a.toLowerCase())?ni:o(u);l.isUndefined(f)||(i[a]=f)}}return r.pop(),i};return o(t)}let E=class ko extends Error{static from(e,n,r,o,s,i){const a=new ko(e.message,n||e.code,r,o,s);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,n,r,o,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const e=this.config,n=e&&l.hasOwnProp(e,"redact")?e.redact:void 0,r=l.isArray(n)&&n.length>0?oi(e,n):l.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};E.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",E.ERR_BAD_OPTION="ERR_BAD_OPTION",E.ECONNABORTED="ECONNABORTED",E.ETIMEDOUT="ETIMEDOUT",E.ECONNREFUSED="ECONNREFUSED",E.ERR_NETWORK="ERR_NETWORK",E.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",E.ERR_DEPRECATED="ERR_DEPRECATED",E.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",E.ERR_BAD_REQUEST="ERR_BAD_REQUEST",E.ERR_CANCELED="ERR_CANCELED",E.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",E.ERR_INVALID_URL="ERR_INVALID_URL",E.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const si=null;function tn(t){return l.isPlainObject(t)||l.isArray(t)}function Zn(t){return l.endsWith(t,"[]")?t.slice(0,-2):t}function nn(t,e,n){return t?t.concat(e).map(function(o,s){return o=Zn(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function ii(t){return l.isArray(t)&&!t.some(tn)}const ai=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function Ct(t,e,n){if(!l.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!l.isUndefined(y[m])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,i=n.indexes,a=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?100:n.maxDepth,f=a&&l.isSpecCompliantForm(e);if(!l.isFunction(o))throw new TypeError("visitor must be a function");function d(w){if(w===null)return"";if(l.isDate(w))return w.toISOString();if(l.isBoolean(w))return w.toString();if(!f&&l.isBlob(w))throw new E("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(w)||l.isTypedArray(w)?f&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function p(w,m,y){let x=w;if(l.isReactNative(e)&&l.isReactNativeBlob(w))return e.append(nn(y,m,s),d(w)),!1;if(w&&!y&&typeof w=="object"){if(l.endsWith(m,"{}"))m=r?m:m.slice(0,-2),w=JSON.stringify(w);else if(l.isArray(w)&&ii(w)||(l.isFileList(w)||l.endsWith(m,"[]"))&&(x=l.toArray(w)))return m=Zn(m),x.forEach(function(A,v){!(l.isUndefined(A)||A===null)&&e.append(i===!0?nn([m],v,s):i===null?m:m+"[]",d(A))}),!1}return tn(w)?!0:(e.append(nn(y,m,s),d(w)),!1)}const g=[],T=Object.assign(ai,{defaultVisitor:p,convertValue:d,isVisitable:tn});function _(w,m,y=0){if(!l.isUndefined(w)){if(y>u)throw new E("Object is too deeply nested ("+y+" levels). Max depth: "+u,E.ERR_FORM_DATA_DEPTH_EXCEEDED);if(g.indexOf(w)!==-1)throw Error("Circular reference detected in "+m.join("."));g.push(w),l.forEach(w,function(S,A){(!(l.isUndefined(S)||S===null)&&o.call(e,S,l.isString(A)?A.trim():A,m,T))===!0&&_(S,m?m.concat(A):[A],y+1)}),g.pop()}}if(!l.isObject(t))throw new TypeError("data must be an object");return _(t),e}function er(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function rn(t,e){this._pairs=[],t&&Ct(t,this,e)}const tr=rn.prototype;tr.append=function(e,n){this._pairs.push([e,n])},tr.toString=function(e){const n=e?function(r){return e.call(this,r,er)}:er;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function ci(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nr(t,e,n){if(!e)return t;const r=n&&n.encode||ci,o=l.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(s?i=s(e,o):i=l.isURLSearchParams(e)?e.toString():new rn(e,o).toString(r),i){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class rr{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){l.forEach(this.handlers,function(r){r!==null&&e(r)})}}const on={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ui={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:rn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},sn=typeof window<"u"&&typeof document<"u",an=typeof navigator=="object"&&navigator||void 0,li=sn&&(!an||["ReactNative","NativeScript","NS"].indexOf(an.product)<0),fi=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",di=sn&&window.location.href||"http://localhost",J={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sn,hasStandardBrowserEnv:li,hasStandardBrowserWebWorkerEnv:fi,navigator:an,origin:di},Symbol.toStringTag,{value:"Module"})),...ui};function mi(t,e){return Ct(t,new J.classes.URLSearchParams,{visitor:function(n,r,o,s){return J.isNode&&l.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function hi(t){return l.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function pi(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function or(t){function e(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),u=s>=n.length;return i=!i&&l.isArray(o)?o.length:i,u?(l.hasOwnProp(o,i)?o[i]=l.isArray(o[i])?o[i].concat(r):[o[i],r]:o[i]=r,!a):((!l.hasOwnProp(o,i)||!l.isObject(o[i]))&&(o[i]=[]),e(n,r,o[i],s)&&l.isArray(o[i])&&(o[i]=pi(o[i])),!a)}if(l.isFormData(t)&&l.isFunction(t.entries)){const n={};return l.forEachEntry(t,(r,o)=>{e(hi(r),o,n,0)}),n}return null}const Ge=(t,e)=>t!=null&&l.hasOwnProp(t,e)?t[e]:void 0;function gi(t,e,n){if(l.isString(t))try{return(e||JSON.parse)(t),l.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const mt={transitional:on,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=l.isObject(e);if(s&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return o?JSON.stringify(or(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e)||l.isReadableStream(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){const u=Ge(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return mi(e,u).toString();if((a=l.isFileList(e))||r.indexOf("multipart/form-data")>-1){const f=Ge(this,"env"),d=f&&f.FormData;return Ct(a?{"files[]":e}:e,d&&new d,u)}}return s||o?(n.setContentType("application/json",!1),gi(e)):e}],transformResponse:[function(e){const n=Ge(this,"transitional")||mt.transitional,r=n&&n.forcedJSONParsing,o=Ge(this,"responseType"),s=o==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(r&&!o||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,Ge(this,"parseReviver"))}catch(u){if(a)throw u.name==="SyntaxError"?E.from(u,E.ERR_BAD_RESPONSE,this,null,Ge(this,"response")):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:J.classes.FormData,Blob:J.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch","query"],t=>{mt.headers[t]={}});function cn(t,e){const n=this||mt,r=e||n,o=Z.from(r.headers);let s=r.data;return l.forEach(t,function(a){s=a.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function sr(t){return!!(t&&t.__CANCEL__)}let ht=class extends E{constructor(e,n,r){super(e??"canceled",E.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function ir(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new E("Request failed with status code "+n.status,n.status>=400&&n.status<500?E.ERR_BAD_REQUEST:E.ERR_BAD_RESPONSE,n.config,n.request,n))}function yi(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function wi(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(u){const f=Date.now(),d=r[s];i||(i=f),n[o]=u,r[o]=f;let p=s,g=0;for(;p!==o;)g+=n[p++],p=p%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),f-i<e)return;const T=d&&f-d;return T?Math.round(g*1e3/T):void 0}}function bi(t,e){let n=0,r=1e3/e,o,s;const i=(f,d=Date.now())=>{n=d,o=null,s&&(clearTimeout(s),s=null),t(...f)};return[(...f)=>{const d=Date.now(),p=d-n;p>=r?i(f,d):(o=f,s||(s=setTimeout(()=>{s=null,i(o)},r-p)))},()=>o&&i(o)]}const Lt=(t,e,n=3)=>{let r=0;const o=wi(50,250);return bi(s=>{if(!s||typeof s.loaded!="number")return;const i=s.loaded,a=s.lengthComputable?s.total:void 0,u=a!=null?Math.min(i,a):i,f=Math.max(0,u-r),d=o(f);r=Math.max(r,u);const p={loaded:u,total:a,progress:a?u/a:void 0,bytes:f,rate:d||void 0,estimated:d&&a?(a-u)/d:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(p)},n)},ar=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},cr=t=>(...e)=>l.asap(()=>t(...e)),Ti=J.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,J.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(J.origin),J.navigator&&/(msie|trident)/i.test(J.navigator.userAgent)):()=>!0,Ei=J.hasStandardBrowserEnv?{write(t,e,n,r,o,s,i){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];l.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),l.isString(r)&&a.push(`path=${r}`),l.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),l.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const r=e[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===t)return decodeURIComponent(r.slice(o+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function _i(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Oi(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function ur(t,e,n){let r=!_i(e);return t&&(r||n===!1)?Oi(t,e):e}const lr=t=>t instanceof Z?{...t}:t;function Ue(t,e){e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,d,p,g){return l.isPlainObject(f)&&l.isPlainObject(d)?l.merge.call({caseless:g},f,d):l.isPlainObject(d)?l.merge({},d):l.isArray(d)?d.slice():d}function o(f,d,p,g){if(l.isUndefined(d)){if(!l.isUndefined(f))return r(void 0,f,p,g)}else return r(f,d,p,g)}function s(f,d){if(!l.isUndefined(d))return r(void 0,d)}function i(f,d){if(l.isUndefined(d)){if(!l.isUndefined(f))return r(void 0,f)}else return r(void 0,d)}function a(f,d,p){if(l.hasOwnProp(e,p))return r(f,d);if(l.hasOwnProp(t,p))return r(void 0,f)}const u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:a,headers:(f,d,p)=>o(lr(f),lr(d),p,!0)};return l.forEach(Object.keys({...t,...e}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const p=l.hasOwnProp(u,d)?u[d]:o,g=l.hasOwnProp(t,d)?t[d]:void 0,T=l.hasOwnProp(e,d)?e[d]:void 0,_=p(g,T,d);l.isUndefined(_)&&p!==a||(n[d]=_)}),n}const Ai=["content-type","content-length"];function Ri(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e).forEach(([r,o])=>{Ai.includes(r.toLowerCase())&&t.set(r,o)})}const xi=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),fr=t=>{const e=Ue({},t),n=g=>l.hasOwnProp(e,g)?e[g]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),i=n("xsrfCookieName");let a=n("headers");const u=n("auth"),f=n("baseURL"),d=n("allowAbsoluteUrls"),p=n("url");if(e.headers=a=Z.from(a),e.url=nr(ur(f,p,d),t.params,t.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?xi(u.password):""))),l.isFormData(r)&&(J.hasStandardBrowserEnv||J.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):l.isFunction(r.getHeaders)&&Ri(a,r.getHeaders(),n("formDataHeaderPolicy"))),J.hasStandardBrowserEnv&&(l.isFunction(o)&&(o=o(e)),o===!0||o==null&&Ti(e.url))){const T=s&&i&&Ei.read(i);T&&a.set(s,T)}return e},Di=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=fr(t);let s=o.data;const i=Z.from(o.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:f}=o,d,p,g,T,_;function w(){T&&T(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function y(){if(!m)return;const S=Z.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:t,request:m};ir(function(he){n(he),w()},function(he){r(he),w()},v),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.startsWith("file:"))||setTimeout(y)},m.onabort=function(){m&&(r(new E("Request aborted",E.ECONNABORTED,t,m)),w(),m=null)},m.onerror=function(A){const v=A&&A.message?A.message:"Network Error",I=new E(v,E.ERR_NETWORK,t,m);I.event=A||null,r(I),w(),m=null},m.ontimeout=function(){let A=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||on;o.timeoutErrorMessage&&(A=o.timeoutErrorMessage),r(new E(A,v.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,t,m)),w(),m=null},s===void 0&&i.setContentType(null),"setRequestHeader"in m&&l.forEach(Kn(i),function(A,v){m.setRequestHeader(v,A)}),l.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),a&&a!=="json"&&(m.responseType=o.responseType),f&&([g,_]=Lt(f,!0),m.addEventListener("progress",g)),u&&m.upload&&([p,T]=Lt(u),m.upload.addEventListener("progress",p),m.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(d=S=>{m&&(r(!S||S.type?new ht(null,t,m):S),m.abort(),w(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const x=yi(o.url);if(x&&!J.protocols.includes(x)){r(new E("Unsupported protocol "+x+":",E.ERR_BAD_REQUEST,t));return}m.send(s||null)})},Si=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let r=!1;const o=function(u){if(!r){r=!0,i();const f=u instanceof Error?u:this.reason;n.abort(f instanceof E?f:new ht(f instanceof Error?f.message:f))}};let s=e&&setTimeout(()=>{s=null,o(new E(`timeout of ${e}ms exceeded`,E.ETIMEDOUT))},e);const i=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>l.asap(i),a},Pi=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},Ni=async function*(t,e){for await(const n of Mi(t))yield*Pi(n,e)},Mi=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},dr=(t,e,n,r)=>{const o=Ni(t,e);let s=0,i,a=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:f,value:d}=await o.next();if(f){a(),u.close();return}let p=d.byteLength;if(n){let g=s+=p;n(g)}u.enqueue(new Uint8Array(d))}catch(f){throw a(f),f}},cancel(u){return a(u),o.return()}},{highWaterMark:2})};function Ci(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const n=t.slice(5,e),r=t.slice(e+1);if(/;base64/i.test(n)){let i=r.length;const a=r.length;for(let T=0;T<a;T++)if(r.charCodeAt(T)===37&&T+2<a){const _=r.charCodeAt(T+1),w=r.charCodeAt(T+2);(_>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102)&&(w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102)&&(i-=2,T+=2)}let u=0,f=a-1;const d=T=>T>=2&&r.charCodeAt(T-2)===37&&r.charCodeAt(T-1)===51&&(r.charCodeAt(T)===68||r.charCodeAt(T)===100);f>=0&&(r.charCodeAt(f)===61?(u++,f--):d(f)&&(u++,f-=3)),u===1&&f>=0&&(r.charCodeAt(f)===61||d(f))&&u++;const g=Math.floor(i/4)*3-(u||0);return g>0?g:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let s=0;for(let i=0,a=r.length;i<a;i++){const u=r.charCodeAt(i);if(u<128)s+=1;else if(u<2048)s+=2;else if(u>=55296&&u<=56319&&i+1<a){const f=r.charCodeAt(i+1);f>=56320&&f<=57343?(s+=4,i++):s+=3}else s+=3}return s}const un="1.16.1",mr=64*1024,{isFunction:kt}=l,hr=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Li=t=>{const e=l.global!==void 0&&l.global!==null?l.global:globalThis,{ReadableStream:n,TextEncoder:r}=e;t=l.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:o,Request:s,Response:i}=t,a=o?kt(o):typeof fetch=="function",u=kt(s),f=kt(i);if(!a)return!1;const d=a&&kt(n),p=a&&(typeof r=="function"?(y=>x=>y.encode(x))(new r):async y=>new Uint8Array(await new s(y).arrayBuffer())),g=u&&d&&hr(()=>{let y=!1;const x=new s(J.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),S=x.headers.has("Content-Type");return x.body!=null&&x.body.cancel(),y&&!S}),T=f&&d&&hr(()=>l.isReadableStream(new i("").body)),_={stream:T&&(y=>y.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!_[y]&&(_[y]=(x,S)=>{let A=x&&x[y];if(A)return A.call(x);throw new E(`Response type '${y}' is not supported`,E.ERR_NOT_SUPPORT,S)})});const w=async y=>{if(y==null)return 0;if(l.isBlob(y))return y.size;if(l.isSpecCompliantForm(y))return(await new s(J.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(l.isArrayBufferView(y)||l.isArrayBuffer(y))return y.byteLength;if(l.isURLSearchParams(y)&&(y=y+""),l.isString(y))return(await p(y)).byteLength},m=async(y,x)=>{const S=l.toFiniteNumber(y.getContentLength());return S??w(x)};return async y=>{let{url:x,method:S,data:A,signal:v,cancelToken:I,timeout:he,onDownloadProgress:ke,onUploadProgress:tt,responseType:pe,headers:Se,withCredentials:nt="same-origin",fetchOptions:$t,maxContentLength:F,maxBodyLength:Ie}=fr(y);const Ee=l.isNumber(F)&&F>-1,rt=l.isNumber(Ie)&&Ie>-1;let Wt=o||fetch;pe=pe?(pe+"").toLowerCase():"text";let _e=Si([v,I&&I.toAbortSignal()],he),oe=null;const Oe=_e&&_e.unsubscribe&&(()=>{_e.unsubscribe()});let qt;try{if(Ee&&typeof x=="string"&&x.startsWith("data:")&&Ci(x)>F)throw new E("maxContentLength size of "+F+" exceeded",E.ERR_BAD_RESPONSE,y,oe);if(rt&&S!=="get"&&S!=="head"){const R=await m(Se,A);if(typeof R=="number"&&isFinite(R)&&R>Ie)throw new E("Request body larger than maxBodyLength limit",E.ERR_BAD_REQUEST,y,oe)}if(tt&&g&&S!=="get"&&S!=="head"&&(qt=await m(Se,A))!==0){let R=new s(x,{method:"POST",body:A,duplex:"half"}),fe;if(l.isFormData(A)&&(fe=R.headers.get("content-type"))&&Se.setContentType(fe),R.body){const[Pe,ae]=ar(qt,Lt(cr(tt)));A=dr(R.body,mr,Pe,ae)}}l.isString(nt)||(nt=nt?"include":"omit");const X=u&&"credentials"in s.prototype;if(l.isFormData(A)){const R=Se.getContentType();R&&/^multipart\/form-data/i.test(R)&&!/boundary=/i.test(R)&&Se.delete("content-type")}Se.set("User-Agent","axios/"+un,!1);const k={...$t,signal:_e,method:S.toUpperCase(),headers:Kn(Se.normalize()),body:A,duplex:"half",credentials:X?nt:void 0};oe=u&&new s(x,k);let ie=await(u?Wt(oe,$t):Wt(x,k));if(Ee){const R=l.toFiniteNumber(ie.headers.get("content-length"));if(R!=null&&R>F)throw new E("maxContentLength size of "+F+" exceeded",E.ERR_BAD_RESPONSE,y,oe)}const z=T&&(pe==="stream"||pe==="response");if(T&&ie.body&&(ke||Ee||z&&Oe)){const R={};["status","statusText","headers"].forEach(Fe=>{R[Fe]=ie[Fe]});const fe=l.toFiniteNumber(ie.headers.get("content-length")),[Pe,ae]=ke&&ar(fe,Lt(cr(ke),!0))||[];let Et=0;const _t=Fe=>{if(Ee&&(Et=Fe,Et>F))throw new E("maxContentLength size of "+F+" exceeded",E.ERR_BAD_RESPONSE,y,oe);Pe&&Pe(Fe)};ie=new i(dr(ie.body,mr,_t,()=>{ae&&ae(),Oe&&Oe()}),R)}pe=pe||"text";let le=await _[l.findKey(_,pe)||"text"](ie,y);if(Ee&&!T&&!z){let R;if(le!=null&&(typeof le.byteLength=="number"?R=le.byteLength:typeof le.size=="number"?R=le.size:typeof le=="string"&&(R=typeof r=="function"?new r().encode(le).byteLength:le.length)),typeof R=="number"&&R>F)throw new E("maxContentLength size of "+F+" exceeded",E.ERR_BAD_RESPONSE,y,oe)}return!z&&Oe&&Oe(),await new Promise((R,fe)=>{ir(R,fe,{data:le,headers:Z.from(ie.headers),status:ie.status,statusText:ie.statusText,config:y,request:oe})})}catch(X){if(Oe&&Oe(),_e&&_e.aborted&&_e.reason instanceof E){const k=_e.reason;throw k.config=y,oe&&(k.request=oe),X!==k&&(k.cause=X),k}throw X&&X.name==="TypeError"&&/Load failed|fetch/i.test(X.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,y,oe,X&&X.response),{cause:X.cause||X}):E.from(X,X&&X.code,y,oe,X&&X.response)}}},ki=new Map,pr=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,s=[r,o,n];let i=s.length,a=i,u,f,d=ki;for(;a--;)u=s[a],f=d.get(u),f===void 0&&d.set(u,f=a?new Map:Li(e)),d=f;return f};pr();const ln={http:si,xhr:Di,fetch:{get:pr}};l.forEach(ln,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const gr=t=>`- ${t}`,Ii=t=>l.isFunction(t)||t===null||t===!1;function Fi(t,e){t=l.isArray(t)?t:[t];const{length:n}=t;let r,o;const s={};for(let i=0;i<n;i++){r=t[i];let a;if(o=r,!Ii(r)&&(o=ln[(a=String(r)).toLowerCase()],o===void 0))throw new E(`Unknown adapter '${a}'`);if(o&&(l.isFunction(o)||(o=o.get(e))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
|
|
4
|
+
`+i.map(gr).join(`
|
|
5
|
+
`):" "+gr(i[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const yr={getAdapter:Fi,adapters:ln};function fn(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ht(null,t)}function wr(t){return fn(t),t.headers=Z.from(t.headers),t.data=cn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),yr.getAdapter(t.adapter||mt.adapter,t)(t).then(function(r){fn(t),t.response=r;try{r.data=cn.call(t,t.transformResponse,r)}finally{delete t.response}return r.headers=Z.from(r.headers),r},function(r){if(!sr(r)&&(fn(t),r&&r.response)){t.response=r.response;try{r.response.data=cn.call(t,t.transformResponse,r.response)}finally{delete t.response}r.response.headers=Z.from(r.response.headers)}return Promise.reject(r)})}const It={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{It[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const br={};It.transitional=function(e,n,r){function o(s,i){return"[Axios v"+un+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(e===!1)throw new E(o(i," has been removed"+(n?" in "+n:"")),E.ERR_DEPRECATED);return n&&!br[i]&&(br[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,i,a):!0}},It.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function vi(t,e,n){if(typeof t!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],i=Object.prototype.hasOwnProperty.call(e,s)?e[s]:void 0;if(i){const a=t[s],u=a===void 0||i(a,s,t);if(u!==!0)throw new E("option "+s+" must be "+u,E.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new E("Unknown option "+s,E.ERR_BAD_OPTION)}}const Ft={assertOptions:vi,validators:It},ce=Ft.validators;let Be=class{constructor(e){this.defaults=e||{},this.interceptors={request:new rr,response:new rr}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=(()=>{if(!o.stack)return"";const i=o.stack.indexOf(`
|
|
6
6
|
`);return i===-1?"":o.stack.slice(i+1)})();try{if(!r.stack)r.stack=s;else if(s){const i=s.indexOf(`
|
|
7
7
|
`),a=i===-1?-1:s.indexOf(`
|
|
8
|
-
`,i+1),
|
|
9
|
-
`+s)}}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Le(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&kt.assertOptions(r,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean),legacyInterceptorReqResOrdering:ue.transitional(ue.boolean)},!1),o!=null&&(u.isFunction(o)?n.paramsSerializer={serialize:o}:kt.assertOptions(o,{encode:ue.function,serialize:ue.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),kt.assertOptions(n,{baseUrl:ue.spelling("baseURL"),withXsrfToken:ue.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&u.merge(s.common,s[n.method]);s&&u.forEach(["delete","get","head","post","put","patch","query","common"],E=>{delete s[E]}),n.headers=J.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;l=l&&y.synchronous;const m=n.transitional||Kt;m&&m.legacyInterceptorReqResOrdering?a.unshift(y.fulfilled,y.rejected):a.push(y.fulfilled,y.rejected)});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let d,p=0,w;if(!l){const E=[fr.bind(this),void 0];for(E.unshift(...a),E.push(...f),w=E.length,d=Promise.resolve(n);p<w;)d=d.then(E[p++],E[p++]);return d}w=a.length;let b=n;for(;p<w;){const E=a[p++],y=a[p++];try{b=E(b)}catch(m){y.call(this,m);break}}try{d=fr.call(this,b)}catch(E){return Promise.reject(E)}for(p=0,w=f.length;p<w;)d=d.then(f[p++],f[p++]);return d}getUri(e){e=Le(this.defaults,e);const n=nr(e.baseURL,e.url,e.allowAbsoluteUrls);return Vn(n,e.params,e.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(e){ke.prototype[e]=function(n,r){return this.request(Le(r||{},{method:e,url:n,data:(r||{}).data}))}}),u.forEach(["post","put","patch","query"],function(e){function n(r){return function(s,i,a){return this.request(Le(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}ke.prototype[e]=n(),e!=="query"&&(ke.prototype[e+"Form"]=n(!0))});let Si=class Do{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(s,i,a){r.reason||(r.reason=new ct(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Do(function(o){e=o}),cancel:e}}};function Pi(t){return function(n){return t.apply(null,n)}}function Mi(t){return u.isObject(t)&&t.isAxiosError===!0}const on={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(on).forEach(([t,e])=>{on[e]=t});function mr(t){const e=new ke(t),n=In(ke.prototype.request,e);return u.extend(n,ke.prototype,e,{allOwnKeys:!0}),u.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return mr(Le(t,o))},n}const W=mr(at);W.Axios=ke,W.CanceledError=ct,W.CancelToken=Si,W.isCancel=Jn,W.VERSION=tn,W.toFormData=Mt,W.AxiosError=T,W.Cancel=W.CanceledError,W.all=function(e){return Promise.all(e)},W.spread=Pi,W.isAxiosError=Mi,W.mergeConfig=Le,W.AxiosHeaders=J,W.formToJSON=t=>Kn(u.isHTMLForm(t)?new FormData(t):t),W.getAdapter=lr.getAdapter,W.HttpStatusCode=on,W.default=W;const{Axios:qu,AxiosError:Yu,CanceledError:zu,isCancel:ju,CancelToken:Gu,VERSION:Xu,all:Vu,Cancel:Qu,isAxiosError:Ku,spread:Ju,toFormData:Zu,AxiosHeaders:el,HttpStatusCode:tl,formToJSON:nl,getAdapter:rl,mergeConfig:ol,create:sl}=W,Ni=({error:t,message:e="알 수 없는 에러가 발생했습니다.",callback:n})=>W.isAxiosError(t)?(n?.(),{type:"axios",message:t.response?.data?.message??e,status:t.response?.status}):t instanceof Error?(n?.(),{type:"client",message:t.message||e}):(n?.(),{type:"unknown",message:e}),hr=(t,e={})=>{const{removeUndefined:n=!0,removeNull:r=!0,removeEmptyString:o=!0,removeEmptyArray:s=!0,removeEmptyObject:i=!0,normalizeNumbers:a=!1,normalizeBooleans:l=!1,normalizeNested:f=!1}=e,d=w=>{switch(!0){case(n&&w===void 0):return!0;case(r&&w===null):return!0;case(o&&w===""):return!0;case(s&&Array.isArray(w)&&w.length===0):return!0;case(i&&typeof w=="object"&&w!==null&&!Array.isArray(w)&&Object.keys(w).length===0):return!0;default:return!1}},p=w=>{if(typeof w=="object"&&w!==null){if(Array.isArray(w))return f?w.map(b=>p(b)).filter(b=>!d(b)):w;if(typeof w=="object")return f?hr(w,e):w}if(typeof w=="string"){const b=w.trim();if(l){const E=b.toLowerCase();if(E==="true")return!0;if(E==="false")return!1}return b}return a&&typeof w=="number"?String(w):w};return Object.fromEntries(Object.entries(t).map(([w,b])=>[w,p(b)]).filter(([,w])=>!d(w)))};function Oe(){return typeof window>"u"||"Deno"in globalThis}function Ci(){return!Oe()}function pr(){return Oe()?!1:/ipad|iphone/i.test(navigator.userAgent)}function gr(){return Oe()?!1:/Macintosh|MacIntel|MacPPC|Mac68K/.test(navigator.platform)}function wr(){return Oe()?!1:/Android/i.test(navigator.userAgent)}function Li(){return Oe()?!1:/MSIE|Trident/i.test(navigator.userAgent)}function yr(){return Oe()?!1:/KAKAOTALK/i.test(navigator.userAgent)}function sn(){return Oe()?!1:pr()?"ios":wr()?"android":"web"}function ki(){const t=sn();return t==="ios"||t==="android"}function Ii(){if(Oe())return"server";if(yr())return"kakao";const t=sn();return t==="ios"||t==="android"?t:gr()?"macos":"web"}const Fi={isServer:Oe,isClient:Ci,isIOS:pr,isAndroid:wr,isMacOS:gr,isIE:Li,isKakaoWebView:yr,isMobileWeb:ki,getOSByUserAgent:sn,getPlatform:Ii};const{entries:br,setPrototypeOf:Tr,isFrozen:vi,getPrototypeOf:Hi,getOwnPropertyDescriptor:Ui}=Object;let{freeze:Z,seal:le,create:je}=Object,{apply:an,construct:cn}=typeof Reflect<"u"&&Reflect;Z||(Z=function(e){return e}),le||(le=function(e){return e}),an||(an=function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return e.apply(n,o)}),cn||(cn=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new e(...r)});const ut=Y(Array.prototype.forEach),Bi=Y(Array.prototype.lastIndexOf),Er=Y(Array.prototype.pop),lt=Y(Array.prototype.push),Wi=Y(Array.prototype.splice),ee=Array.isArray,ft=Y(String.prototype.toLowerCase),un=Y(String.prototype.toString),_r=Y(String.prototype.match),Ge=Y(String.prototype.replace),Or=Y(String.prototype.indexOf),$i=Y(String.prototype.trim),qi=Y(Number.prototype.toString),Yi=Y(Boolean.prototype.toString),Ar=typeof BigInt>"u"?null:Y(BigInt.prototype.toString),Rr=typeof Symbol>"u"?null:Y(Symbol.prototype.toString),U=Y(Object.prototype.hasOwnProperty),dt=Y(Object.prototype.toString),V=Y(RegExp.prototype.test),It=zi(TypeError);function Y(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return an(t,e,r)}}function zi(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return cn(t,n)}}function D(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ft;if(Tr&&Tr(t,null),!ee(e))return t;let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(vi(e)||(e[r]=s),o=s)}t[o]=!0}return t}function ji(t){for(let e=0;e<t.length;e++)U(t,e)||(t[e]=null);return t}function oe(t){const e=je(null);for(const[n,r]of br(t))U(t,n)&&(ee(r)?e[n]=ji(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=oe(r):e[n]=r);return e}function Gi(t){switch(typeof t){case"string":return t;case"number":return qi(t);case"boolean":return Yi(t);case"bigint":return Ar?Ar(t):"0";case"symbol":return Rr?Rr(t):"Symbol()";case"undefined":return dt(t);case"function":case"object":{if(t===null)return dt(t);const e=t,n=Xe(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:dt(r)}return dt(t)}default:return dt(t)}}function Xe(t,e){for(;t!==null;){const r=Ui(t,e);if(r){if(r.get)return Y(r.get);if(typeof r.value=="function")return Y(r.value)}t=Hi(t)}function n(){return null}return n}function Xi(t){try{return V(t,""),!0}catch{return!1}}const xr=Z(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ln=Z(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fn=Z(["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"]),Vi=Z(["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"]),dn=Z(["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"]),Qi=Z(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Dr=Z(["#text"]),Sr=Z(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mn=Z(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Pr=Z(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ft=Z(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ki=le(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ji=le(/<%[\w\W]*|[\w\W]*%>/gm),Zi=le(/\$\{[\w\W]*/gm),ea=le(/^data-[\-\w.\u00B7-\uFFFF]+$/),ta=le(/^aria-[\-\w]+$/),Mr=le(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),na=le(/^(?:\w+script|data):/i),ra=le(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nr=le(/^html$/i),oa=le(/^[a-z][.\w]*(-[.\w]+)+$/i);var Cr=Object.freeze({__proto__:null,ARIA_ATTR:ta,ATTR_WHITESPACE:ra,CUSTOM_ELEMENT:oa,DATA_ATTR:ea,DOCTYPE_NAME:Nr,ERB_EXPR:Ji,IS_ALLOWED_URI:Mr,IS_SCRIPT_OR_DATA:na,MUSTACHE_EXPR:Ki,TMPLIT_EXPR:Zi});const mt={element:1,text:3,progressingInstruction:7,comment:8,document:9},sa=function(){return typeof window>"u"?null:window},ia=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Lr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function kr(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sa();const e=A=>kr(A);if(e.version="3.4.2",e.removed=[],!t||!t.document||t.document.nodeType!==mt.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:i,Node:a,Element:l,NodeFilter:f,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:w,trustedTypes:b}=t,E=l.prototype,y=Xe(E,"cloneNode"),m=Xe(E,"remove"),g=Xe(E,"nextSibling"),x=Xe(E,"childNodes"),R=Xe(E,"parentNode");if(typeof i=="function"){const A=n.createElement("template");A.content&&A.content.ownerDocument&&(n=A.content.ownerDocument)}let O,k="";const{implementation:se,createNodeIterator:ve,createDocumentFragment:wt,getElementsByTagName:Bt}=n,{importNode:be}=r;let H=Lr();e.isSupported=typeof br=="function"&&typeof R=="function"&&se&&se.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ae,ERB_EXPR:He,TMPLIT_EXPR:te,DATA_ATTR:yt,ARIA_ATTR:Ue,IS_SCRIPT_OR_DATA:En,ATTR_WHITESPACE:bt,CUSTOM_ELEMENT:Te}=Cr;let{IS_ALLOWED_URI:ne}=Cr,I=null;const Tt=D({},[...xr,...ln,...fn,...dn,...Dr]);let M=null;const me=D({},[...Sr,...mn,...Pr,...Ft]);let C=Object.seal(je(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}})),Re=null,ie=null;const P=Object.seal(je(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xe=!0,Ne=!0,Be=!1,Et=!0,De=!1,he=!0,We=!1,_n=!1,On=!1,Je=!1,Wt=!1,$t=!1,ao=!0,co=!1;const uo="user-content-";let An=!0,_t=!1,Ze={},Ee=null;const Rn=D({},["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 lo=null;const fo=D({},["audio","video","img","source","image","track"]);let xn=null;const mo=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),qt="http://www.w3.org/1998/Math/MathML",Yt="http://www.w3.org/2000/svg",_e="http://www.w3.org/1999/xhtml";let et=_e,Dn=!1,Sn=null;const Mu=D({},[qt,Yt,_e],un);let Pn=D({},["mi","mo","mn","ms","mtext"]),Mn=D({},["annotation-xml"]);const Nu=D({},["title","style","font","a","script"]);let Ot=null;const Cu=["application/xhtml+xml","text/html"],Lu="text/html";let j=null,tt=null;const ku=n.createElement("form"),ho=function(c){return c instanceof RegExp||c instanceof Function},Nn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(tt&&tt===c)return;(!c||typeof c!="object")&&(c={}),c=oe(c),Ot=Cu.indexOf(c.PARSER_MEDIA_TYPE)===-1?Lu:c.PARSER_MEDIA_TYPE,j=Ot==="application/xhtml+xml"?un:ft,I=U(c,"ALLOWED_TAGS")&&ee(c.ALLOWED_TAGS)?D({},c.ALLOWED_TAGS,j):Tt,M=U(c,"ALLOWED_ATTR")&&ee(c.ALLOWED_ATTR)?D({},c.ALLOWED_ATTR,j):me,Sn=U(c,"ALLOWED_NAMESPACES")&&ee(c.ALLOWED_NAMESPACES)?D({},c.ALLOWED_NAMESPACES,un):Mu,xn=U(c,"ADD_URI_SAFE_ATTR")&&ee(c.ADD_URI_SAFE_ATTR)?D(oe(mo),c.ADD_URI_SAFE_ATTR,j):mo,lo=U(c,"ADD_DATA_URI_TAGS")&&ee(c.ADD_DATA_URI_TAGS)?D(oe(fo),c.ADD_DATA_URI_TAGS,j):fo,Ee=U(c,"FORBID_CONTENTS")&&ee(c.FORBID_CONTENTS)?D({},c.FORBID_CONTENTS,j):Rn,Re=U(c,"FORBID_TAGS")&&ee(c.FORBID_TAGS)?D({},c.FORBID_TAGS,j):oe({}),ie=U(c,"FORBID_ATTR")&&ee(c.FORBID_ATTR)?D({},c.FORBID_ATTR,j):oe({}),Ze=U(c,"USE_PROFILES")?c.USE_PROFILES&&typeof c.USE_PROFILES=="object"?oe(c.USE_PROFILES):c.USE_PROFILES:!1,xe=c.ALLOW_ARIA_ATTR!==!1,Ne=c.ALLOW_DATA_ATTR!==!1,Be=c.ALLOW_UNKNOWN_PROTOCOLS||!1,Et=c.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=c.SAFE_FOR_TEMPLATES||!1,he=c.SAFE_FOR_XML!==!1,We=c.WHOLE_DOCUMENT||!1,Je=c.RETURN_DOM||!1,Wt=c.RETURN_DOM_FRAGMENT||!1,$t=c.RETURN_TRUSTED_TYPE||!1,On=c.FORCE_BODY||!1,ao=c.SANITIZE_DOM!==!1,co=c.SANITIZE_NAMED_PROPS||!1,An=c.KEEP_CONTENT!==!1,_t=c.IN_PLACE||!1,ne=Xi(c.ALLOWED_URI_REGEXP)?c.ALLOWED_URI_REGEXP:Mr,et=typeof c.NAMESPACE=="string"?c.NAMESPACE:_e,Pn=U(c,"MATHML_TEXT_INTEGRATION_POINTS")&&c.MATHML_TEXT_INTEGRATION_POINTS&&typeof c.MATHML_TEXT_INTEGRATION_POINTS=="object"?oe(c.MATHML_TEXT_INTEGRATION_POINTS):D({},["mi","mo","mn","ms","mtext"]),Mn=U(c,"HTML_INTEGRATION_POINTS")&&c.HTML_INTEGRATION_POINTS&&typeof c.HTML_INTEGRATION_POINTS=="object"?oe(c.HTML_INTEGRATION_POINTS):D({},["annotation-xml"]);const h=U(c,"CUSTOM_ELEMENT_HANDLING")&&c.CUSTOM_ELEMENT_HANDLING&&typeof c.CUSTOM_ELEMENT_HANDLING=="object"?oe(c.CUSTOM_ELEMENT_HANDLING):je(null);if(C=je(null),U(h,"tagNameCheck")&&ho(h.tagNameCheck)&&(C.tagNameCheck=h.tagNameCheck),U(h,"attributeNameCheck")&&ho(h.attributeNameCheck)&&(C.attributeNameCheck=h.attributeNameCheck),U(h,"allowCustomizedBuiltInElements")&&typeof h.allowCustomizedBuiltInElements=="boolean"&&(C.allowCustomizedBuiltInElements=h.allowCustomizedBuiltInElements),De&&(Ne=!1),Wt&&(Je=!0),Ze&&(I=D({},Dr),M=je(null),Ze.html===!0&&(D(I,xr),D(M,Sr)),Ze.svg===!0&&(D(I,ln),D(M,mn),D(M,Ft)),Ze.svgFilters===!0&&(D(I,fn),D(M,mn),D(M,Ft)),Ze.mathMl===!0&&(D(I,dn),D(M,Pr),D(M,Ft))),P.tagCheck=null,P.attributeCheck=null,U(c,"ADD_TAGS")&&(typeof c.ADD_TAGS=="function"?P.tagCheck=c.ADD_TAGS:ee(c.ADD_TAGS)&&(I===Tt&&(I=oe(I)),D(I,c.ADD_TAGS,j))),U(c,"ADD_ATTR")&&(typeof c.ADD_ATTR=="function"?P.attributeCheck=c.ADD_ATTR:ee(c.ADD_ATTR)&&(M===me&&(M=oe(M)),D(M,c.ADD_ATTR,j))),U(c,"ADD_URI_SAFE_ATTR")&&ee(c.ADD_URI_SAFE_ATTR)&&D(xn,c.ADD_URI_SAFE_ATTR,j),U(c,"FORBID_CONTENTS")&&ee(c.FORBID_CONTENTS)&&(Ee===Rn&&(Ee=oe(Ee)),D(Ee,c.FORBID_CONTENTS,j)),U(c,"ADD_FORBID_CONTENTS")&&ee(c.ADD_FORBID_CONTENTS)&&(Ee===Rn&&(Ee=oe(Ee)),D(Ee,c.ADD_FORBID_CONTENTS,j)),An&&(I["#text"]=!0),We&&D(I,["html","head","body"]),I.table&&(D(I,["tbody"]),delete Re.tbody),c.TRUSTED_TYPES_POLICY){if(typeof c.TRUSTED_TYPES_POLICY.createHTML!="function")throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof c.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw It('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');O=c.TRUSTED_TYPES_POLICY,k=O.createHTML("")}else O===void 0&&(O=ia(b,o)),O!==null&&typeof k=="string"&&(k=O.createHTML(""));Z&&Z(c),tt=c},po=D({},[...ln,...fn,...Vi]),go=D({},[...dn,...Qi]),Iu=function(c){let h=R(c);(!h||!h.tagName)&&(h={namespaceURI:et,tagName:"template"});const _=ft(c.tagName),F=ft(h.tagName);return Sn[c.namespaceURI]?c.namespaceURI===Yt?h.namespaceURI===_e?_==="svg":h.namespaceURI===qt?_==="svg"&&(F==="annotation-xml"||Pn[F]):!!po[_]:c.namespaceURI===qt?h.namespaceURI===_e?_==="math":h.namespaceURI===Yt?_==="math"&&Mn[F]:!!go[_]:c.namespaceURI===_e?h.namespaceURI===Yt&&!Mn[F]||h.namespaceURI===qt&&!Pn[F]?!1:!go[_]&&(Nu[_]||!po[_]):!!(Ot==="application/xhtml+xml"&&Sn[c.namespaceURI]):!1},pe=function(c){lt(e.removed,{element:c});try{R(c).removeChild(c)}catch{m(c)}},$e=function(c,h){try{lt(e.removed,{attribute:h.getAttributeNode(c),from:h})}catch{lt(e.removed,{attribute:null,from:h})}if(h.removeAttribute(c),c==="is")if(Je||Wt)try{pe(h)}catch{}else try{h.setAttribute(c,"")}catch{}},wo=function(c){let h=null,_=null;if(On)c="<remove></remove>"+c;else{const z=_r(c,/^[\r\n\t ]+/);_=z&&z[0]}Ot==="application/xhtml+xml"&&et===_e&&(c='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+c+"</body></html>");const F=O?O.createHTML(c):c;if(et===_e)try{h=new w().parseFromString(F,Ot)}catch{}if(!h||!h.documentElement){h=se.createDocument(et,"template",null);try{h.documentElement.innerHTML=Dn?k:F}catch{}}const K=h.body||h.documentElement;return c&&_&&K.insertBefore(n.createTextNode(_),K.childNodes[0]||null),et===_e?Bt.call(h,We?"html":"body")[0]:We?h.documentElement:K},yo=function(c){return ve.call(c.ownerDocument||c,c,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Cn=function(c){return c instanceof p&&(typeof c.nodeName!="string"||typeof c.textContent!="string"||typeof c.removeChild!="function"||!(c.attributes instanceof d)||typeof c.removeAttribute!="function"||typeof c.setAttribute!="function"||typeof c.namespaceURI!="string"||typeof c.insertBefore!="function"||typeof c.hasChildNodes!="function")},Ln=function(c){return typeof a=="function"&&c instanceof a};function Se(A,c,h){ut(A,_=>{_.call(e,c,h,tt)})}const bo=function(c){let h=null;if(Se(H.beforeSanitizeElements,c,null),Cn(c))return pe(c),!0;const _=j(c.nodeName);if(Se(H.uponSanitizeElement,c,{tagName:_,allowedTags:I}),he&&c.hasChildNodes()&&!Ln(c.firstElementChild)&&V(/<[/\w!]/g,c.innerHTML)&&V(/<[/\w!]/g,c.textContent)||he&&c.namespaceURI===_e&&_==="style"&&Ln(c.firstElementChild)||c.nodeType===mt.progressingInstruction||he&&c.nodeType===mt.comment&&V(/<[/\w]/g,c.data))return pe(c),!0;if(Re[_]||!(P.tagCheck instanceof Function&&P.tagCheck(_))&&!I[_]){if(!Re[_]&&Eo(_)&&(C.tagNameCheck instanceof RegExp&&V(C.tagNameCheck,_)||C.tagNameCheck instanceof Function&&C.tagNameCheck(_)))return!1;if(An&&!Ee[_]){const F=R(c)||c.parentNode,K=x(c)||c.childNodes;if(K&&F){const z=K.length;for(let ae=z-1;ae>=0;--ae){const fe=y(K[ae],!0);F.insertBefore(fe,g(c))}}}return pe(c),!0}return c instanceof l&&!Iu(c)||(_==="noscript"||_==="noembed"||_==="noframes")&&V(/<\/no(script|embed|frames)/i,c.innerHTML)?(pe(c),!0):(De&&c.nodeType===mt.text&&(h=c.textContent,ut([Ae,He,te],F=>{h=Ge(h,F," ")}),c.textContent!==h&&(lt(e.removed,{element:c.cloneNode()}),c.textContent=h)),Se(H.afterSanitizeElements,c,null),!1)},To=function(c,h,_){if(ie[h]||ao&&(h==="id"||h==="name")&&(_ in n||_ in ku))return!1;const F=M[h]||P.attributeCheck instanceof Function&&P.attributeCheck(h,c);if(!(Ne&&!ie[h]&&V(yt,h))){if(!(xe&&V(Ue,h))){if(!F||ie[h]){if(!(Eo(c)&&(C.tagNameCheck instanceof RegExp&&V(C.tagNameCheck,c)||C.tagNameCheck instanceof Function&&C.tagNameCheck(c))&&(C.attributeNameCheck instanceof RegExp&&V(C.attributeNameCheck,h)||C.attributeNameCheck instanceof Function&&C.attributeNameCheck(h,c))||h==="is"&&C.allowCustomizedBuiltInElements&&(C.tagNameCheck instanceof RegExp&&V(C.tagNameCheck,_)||C.tagNameCheck instanceof Function&&C.tagNameCheck(_))))return!1}else if(!xn[h]){if(!V(ne,Ge(_,bt,""))){if(!((h==="src"||h==="xlink:href"||h==="href")&&c!=="script"&&Or(_,"data:")===0&&lo[c])){if(!(Be&&!V(En,Ge(_,bt,"")))){if(_)return!1}}}}}}return!0},Fu=D({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Eo=function(c){return!Fu[ft(c)]&&V(Te,c)},_o=function(c){Se(H.beforeSanitizeAttributes,c,null);const{attributes:h}=c;if(!h||Cn(c))return;const _={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0};let F=h.length;for(;F--;){const K=h[F],{name:z,namespaceURI:ae,value:fe}=K,ge=j(z),kn=fe;let X=z==="value"?kn:$i(kn);if(_.attrName=ge,_.attrValue=X,_.keepAttr=!0,_.forceKeepAttr=void 0,Se(H.uponSanitizeAttribute,c,_),X=_.attrValue,co&&(ge==="id"||ge==="name")&&Or(X,uo)!==0&&($e(z,c),X=uo+X),he&&V(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,X)){$e(z,c);continue}if(ge==="attributename"&&_r(X,"href")){$e(z,c);continue}if(_.forceKeepAttr)continue;if(!_.keepAttr){$e(z,c);continue}if(!Et&&V(/\/>/i,X)){$e(z,c);continue}De&&ut([Ae,He,te],Ro=>{X=Ge(X,Ro," ")});const Ao=j(c.nodeName);if(!To(Ao,ge,X)){$e(z,c);continue}if(O&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!ae)switch(b.getAttributeType(Ao,ge)){case"TrustedHTML":{X=O.createHTML(X);break}case"TrustedScriptURL":{X=O.createScriptURL(X);break}}if(X!==kn)try{ae?c.setAttributeNS(ae,z,X):c.setAttribute(z,X),Cn(c)?pe(c):Er(e.removed)}catch{$e(z,c)}}Se(H.afterSanitizeAttributes,c,null)},Oo=function(c){let h=null;const _=yo(c);for(Se(H.beforeSanitizeShadowDOM,c,null);h=_.nextNode();)Se(H.uponSanitizeShadowNode,h,null),bo(h),_o(h),h.content instanceof s&&Oo(h.content);Se(H.afterSanitizeShadowDOM,c,null)};return e.sanitize=function(A){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=null,_=null,F=null,K=null;if(Dn=!A,Dn&&(A="<!-->"),typeof A!="string"&&!Ln(A)&&(A=Gi(A),typeof A!="string"))throw It("dirty is not a string, aborting");if(!e.isSupported)return A;if(_n||Nn(c),e.removed=[],typeof A=="string"&&(_t=!1),_t){const fe=A.nodeName;if(typeof fe=="string"){const ge=j(fe);if(!I[ge]||Re[ge])throw It("root node is forbidden and cannot be sanitized in-place")}}else if(A instanceof a)h=wo("<!---->"),_=h.ownerDocument.importNode(A,!0),_.nodeType===mt.element&&_.nodeName==="BODY"||_.nodeName==="HTML"?h=_:h.appendChild(_);else{if(!Je&&!De&&!We&&A.indexOf("<")===-1)return O&&$t?O.createHTML(A):A;if(h=wo(A),!h)return Je?null:$t?k:""}h&&On&&pe(h.firstChild);const z=yo(_t?A:h);for(;F=z.nextNode();)bo(F),_o(F),F.content instanceof s&&Oo(F.content);if(_t)return A;if(Je){if(De){h.normalize();let fe=h.innerHTML;ut([Ae,He,te],ge=>{fe=Ge(fe,ge," ")}),h.innerHTML=fe}if(Wt)for(K=wt.call(h.ownerDocument);h.firstChild;)K.appendChild(h.firstChild);else K=h;return(M.shadowroot||M.shadowrootmode)&&(K=be.call(r,K,!0)),K}let ae=We?h.outerHTML:h.innerHTML;return We&&I["!doctype"]&&h.ownerDocument&&h.ownerDocument.doctype&&h.ownerDocument.doctype.name&&V(Nr,h.ownerDocument.doctype.name)&&(ae="<!DOCTYPE "+h.ownerDocument.doctype.name+`>
|
|
10
|
-
`+ae),De&&ut([Ae,He,te],fe=>{ae=Ge(ae,fe," ")}),O&&$t?O.createHTML(ae):ae},e.setConfig=function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nn(A),_n=!0},e.clearConfig=function(){tt=null,_n=!1},e.isValidAttribute=function(A,c,h){tt||Nn({});const _=j(A),F=j(c);return To(_,F,h)},e.addHook=function(A,c){typeof c=="function"&<(H[A],c)},e.removeHook=function(A,c){if(c!==void 0){const h=Bi(H[A],c);return h===-1?void 0:Wi(H[A],h,1)[0]}return Er(H[A])},e.removeHooks=function(A){H[A]=[]},e.removeAllHooks=function(){H=Lr()},e}var aa=kr();const ca={addElements:[],allowElements:[],allowAttributes:{},dropElements:[],dropAttributes:{}},Ir=t=>t?Array.from(new Set(Object.values(t).flat())):[],ua=({content:t,config:e})=>{const n={...ca,...e},r=Ir(n.allowAttributes),o=r.length>0?{ALLOWED_ATTR:[...new Set([...r,"class","id","style"])]}:{},s=Ir(n.dropAttributes),i=s.length>0?{FORBID_ATTR:s}:{},a=n.addElements&&n.addElements.length>0&&!(n.allowElements&&n.allowElements.length>0)?{ADD_TAGS:n.addElements}:{},l=n.allowElements&&n.allowElements.length>0?{ALLOWED_TAGS:n.allowElements}:{},f=n.dropElements&&n.dropElements.length>0?{FORBID_TAGS:n.dropElements}:{},d={ALLOW_UNKNOWN_PROTOCOLS:!1,...a,...l,...i,...o,...f};return aa.sanitize(t,d)},Fr=6048e5,la=864e5,vr=6e4,Hr=36e5,fa=1e3,Ur=Symbol.for("constructDateFrom");function G(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Ur in t?t[Ur](e):t instanceof Date?new t.constructor(e):new Date(e)}function N(t,e){return G(e||t,t)}function Br(t,e,n){const r=N(t,n?.in);return isNaN(e)?G(n?.in||t,NaN):(e&&r.setDate(r.getDate()+e),r)}let da={};function Ve(){return da}function Pe(t,e){const n=Ve(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=N(t,e?.in),s=o.getDay(),i=(s<r?7:0)+s-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Qe(t,e){return Pe(t,{...e,weekStartsOn:1})}function Wr(t,e){const n=N(t,e?.in),r=n.getFullYear(),o=G(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Qe(o),i=G(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const a=Qe(i);return n.getTime()>=s.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function vt(t){const e=N(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Ie(t,...e){const n=G.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function $r(t,e){const n=N(t,e?.in);return n.setHours(0,0,0,0),n}function qr(t,e,n){const[r,o]=Ie(n?.in,t,e),s=$r(r),i=$r(o),a=+s-vt(s),l=+i-vt(i);return Math.round((a-l)/la)}function ma(t,e){const n=Wr(t,e),r=G(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Qe(r)}function ht(t,e){const n=+N(t)-+N(e);return n<0?-1:n>0?1:n}function ha(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function pa(t){return!(!ha(t)&&typeof t!="number"||isNaN(+N(t)))}function ga(t,e,n){const[r,o]=Ie(n?.in,t,e),s=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return s*12+i}function wa(t,e,n){const[r,o]=Ie(n?.in,t,e);return r.getFullYear()-o.getFullYear()}function Yr(t,e,n){const[r,o]=Ie(n?.in,t,e),s=zr(r,o),i=Math.abs(qr(r,o));r.setDate(r.getDate()-s*i);const a=+(zr(r,o)===-s),l=s*(i-a);return l===0?0:l}function zr(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function hn(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function ya(t,e,n){const[r,o]=Ie(n?.in,t,e),s=(+r-+o)/Hr;return hn(n?.roundingMethod)(s)}function ba(t,e){return+N(t)-+N(e)}function Ta(t,e,n){const r=ba(t,e)/vr;return hn(n?.roundingMethod)(r)}function Ea(t,e){const n=N(t,e?.in);return n.setHours(23,59,59,999),n}function _a(t,e){const n=N(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Oa(t,e){const n=N(t,e?.in);return+Ea(n,e)==+_a(n,e)}function Aa(t,e,n){const[r,o,s]=Ie(n?.in,t,t,e),i=ht(o,s),a=Math.abs(ga(o,s));if(a<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-i*a);let l=ht(o,s)===-i;Oa(r)&&a===1&&ht(r,s)===1&&(l=!1);const f=i*(a-+l);return f===0?0:f}function Ra(t,e,n){const r=Yr(t,e,n)/7;return hn(n?.roundingMethod)(r)}function xa(t,e,n){const[r,o]=Ie(n?.in,t,e),s=ht(r,o),i=Math.abs(wa(r,o));r.setFullYear(1584),o.setFullYear(1584);const a=ht(r,o)===-s,l=s*(i-+a);return l===0?0:l}function Da(t,e){const n=N(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Sa={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Pa=(t,e,n)=>{let r;const o=Sa[t];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function pn(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Ma={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Na={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ca={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},La={date:pn({formats:Ma,defaultWidth:"full"}),time:pn({formats:Na,defaultWidth:"full"}),dateTime:pn({formats:Ca,defaultWidth:"full"})},ka={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ia=(t,e,n,r)=>ka[t];function pt(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):i;o=t.formattingValues[a]||t.formattingValues[i]}else{const i=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;o=t.values[a]||t.values[i]}const s=t.argumentCallback?t.argumentCallback(e):e;return o[s]}}const Fa={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},va={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ha={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ua={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ba={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Wa={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$a={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:pt({values:Fa,defaultWidth:"wide"}),quarter:pt({values:va,defaultWidth:"wide",argumentCallback:t=>t-1}),month:pt({values:Ha,defaultWidth:"wide"}),day:pt({values:Ua,defaultWidth:"wide"}),dayPeriod:pt({values:Ba,defaultWidth:"wide",formattingValues:Wa,defaultFormattingWidth:"wide"})};function gt(t){return(e,n={})=>{const r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;const i=s[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?Ya(a,p=>p.test(i)):qa(a,p=>p.test(i));let f;f=t.valueCallback?t.valueCallback(l):l,f=n.valueCallback?n.valueCallback(f):f;const d=e.slice(i.length);return{value:f,rest:d}}}function qa(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Ya(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function za(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const o=r[0],s=e.match(t.parsePattern);if(!s)return null;let i=t.valueCallback?t.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const a=e.slice(o.length);return{value:i,rest:a}}}const ja=/^(\d+)(th|st|nd|rd)?/i,Ga=/\d+/i,Xa={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Va={any:[/^b/i,/^(a|c)/i]},Qa={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ka={any:[/1/i,/2/i,/3/i,/4/i]},Ja={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Za={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ec={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},tc={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nc={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rc={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},oc={ordinalNumber:za({matchPattern:ja,parsePattern:Ga,valueCallback:t=>parseInt(t,10)}),era:gt({matchPatterns:Xa,defaultMatchWidth:"wide",parsePatterns:Va,defaultParseWidth:"any"}),quarter:gt({matchPatterns:Qa,defaultMatchWidth:"wide",parsePatterns:Ka,defaultParseWidth:"any",valueCallback:t=>t+1}),month:gt({matchPatterns:Ja,defaultMatchWidth:"wide",parsePatterns:Za,defaultParseWidth:"any"}),day:gt({matchPatterns:ec,defaultMatchWidth:"wide",parsePatterns:tc,defaultParseWidth:"any"}),dayPeriod:gt({matchPatterns:nc,defaultMatchWidth:"any",parsePatterns:rc,defaultParseWidth:"any"})},jr={code:"en-US",formatDistance:Pa,formatLong:La,formatRelative:Ia,localize:$a,match:oc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sc(t,e){const n=N(t,e?.in);return qr(n,Da(n))+1}function Gr(t,e){const n=N(t,e?.in),r=+Qe(n)-+ma(n);return Math.round(r/Fr)+1}function gn(t,e){const n=N(t,e?.in),r=n.getFullYear(),o=Ve(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=G(e?.in||t,0);i.setFullYear(r+1,0,s),i.setHours(0,0,0,0);const a=Pe(i,e),l=G(e?.in||t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const f=Pe(l,e);return+n>=+a?r+1:+n>=+f?r:r-1}function ic(t,e){const n=Ve(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=gn(t,e),s=G(e?.in||t,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),Pe(s,e)}function Xr(t,e){const n=N(t,e?.in),r=+Pe(n,e)-+ic(n,e);return Math.round(r/Fr)+1}function S(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Me={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return S(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):S(n+1,2)},d(t,e){return S(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return S(t.getHours()%12||12,e.length)},H(t,e){return S(t.getHours(),e.length)},m(t,e){return S(t.getMinutes(),e.length)},s(t,e){return S(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return S(o,e.length)}},Ke={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Vr={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Me.y(t,e)},Y:function(t,e,n,r){const o=gn(t,r),s=o>0?o:1-o;if(e==="YY"){const i=s%100;return S(i,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):S(s,e.length)},R:function(t,e){const n=Wr(t);return S(n,e.length)},u:function(t,e){const n=t.getFullYear();return S(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return S(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return S(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Me.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return S(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const o=Xr(t,r);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):S(o,e.length)},I:function(t,e,n){const r=Gr(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):S(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Me.d(t,e)},D:function(t,e,n){const r=sc(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):S(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return S(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return S(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return S(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let o;switch(r===12?o=Ke.noon:r===0?o=Ke.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let o;switch(r>=17?o=Ke.evening:r>=12?o=Ke.afternoon:r>=4?o=Ke.morning:o=Ke.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Me.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Me.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):S(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):S(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Me.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Me.s(t,e)},S:function(t,e){return Me.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Kr(r);case"XXXX":case"XX":return Fe(r);default:return Fe(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Kr(r);case"xxxx":case"xx":return Fe(r);default:return Fe(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Qr(r,":");default:return"GMT"+Fe(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Qr(r,":");default:return"GMT"+Fe(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return S(r,e.length)},T:function(t,e,n){return S(+t,e.length)}};function Qr(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+e+S(s,2)}function Kr(t,e){return t%60===0?(t>0?"-":"+")+S(Math.abs(t)/60,2):Fe(t,e)}function Fe(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=S(Math.trunc(r/60),2),s=S(r%60,2);return n+o+e+s}const Jr=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Zr=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},wn={p:Zr,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Jr(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",Jr(r,e)).replace("{{time}}",Zr(o,e))}},ac=/^D+$/,cc=/^Y+$/,uc=["D","DD","YY","YYYY"];function eo(t){return ac.test(t)}function to(t){return cc.test(t)}function yn(t,e,n){const r=lc(t,e,n);if(console.warn(r),uc.includes(t))throw new RangeError(r)}function lc(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const fc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mc=/^'([^]*?)'?$/,hc=/''/g,pc=/[a-zA-Z]/;function gc(t,e,n){const r=Ve(),o=r.locale??jr,s=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=N(t,n?.in);if(!pa(a))throw new RangeError("Invalid time value");let l=e.match(dc).map(d=>{const p=d[0];if(p==="p"||p==="P"){const w=wn[p];return w(d,o.formatLong)}return d}).join("").match(fc).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const p=d[0];if(p==="'")return{isToken:!1,value:wc(d)};if(Vr[p])return{isToken:!0,value:d};if(p.match(pc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:d}});o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));const f={firstWeekContainsDate:s,weekStartsOn:i,locale:o};return l.map(d=>{if(!d.isToken)return d.value;const p=d.value;(to(p)||eo(p))&&yn(p,e,String(t));const w=Vr[p[0]];return w(a,p,o.localize,f)}).join("")}function wc(t){const e=t.match(mc);return e?e[1].replace(hc,"'"):t}function yc(t,e){const n=N(t,e?.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",o="";const s="-",i=":";{const a=S(n.getDate(),2),l=S(n.getMonth()+1,2);r=`${S(n.getFullYear(),4)}${s}${l}${s}${a}`}{const a=n.getTimezoneOffset();if(a!==0){const b=Math.abs(a),E=S(Math.trunc(b/60),2),y=S(b%60,2);o=`${a<0?"+":"-"}${E}:${y}`}else o="Z";const l=S(n.getHours(),2),f=S(n.getMinutes(),2),d=S(n.getSeconds(),2),p=r===""?"":"T",w=[l,f,d].join(i);r=`${r}${p}${w}${o}`}return r}function bc(){return Object.assign({},Ve())}function Tc(t,e){const n=N(t,e?.in).getDay();return n===0?7:n}function Ec(t,e){return+N(t)>+N(e)}function _c(t,e){return+N(t)<+N(e)}function Oc(t,e){const n=Ac(e)?new e(0):G(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function Ac(t){return typeof t=="function"&&t.prototype?.constructor===t}const Rc=10;class no{subPriority=0;validate(e,n){return!0}}class xc extends no{constructor(e,n,r,o,s){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=o,s&&(this.subPriority=s)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class Dc extends no{priority=Rc;subPriority=-1;constructor(e,n){super(),this.context=e||(r=>G(n,r))}set(e,n){return n.timestampIsSet?e:G(e,Oc(e,this.context))}}class L{run(e,n,r,o){const s=this.parse(e,n,r,o);return s?{setter:new xc(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,n,r){return!0}}class Sc extends L{priority=140;parse(e,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,n,r){return n.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const $={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},we={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function q(t,e){return t&&{value:e(t.value),rest:t.rest}}function v(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function ye(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*Hr+s*vr+i*fa),rest:e.slice(n[0].length)}}function ro(t){return v($.anyDigitsSigned,t)}function B(t,e){switch(t){case 1:return v($.singleDigit,e);case 2:return v($.twoDigits,e);case 3:return v($.threeDigits,e);case 4:return v($.fourDigits,e);default:return v(new RegExp("^\\d{1,"+t+"}"),e)}}function Ht(t,e){switch(t){case 1:return v($.singleDigitSigned,e);case 2:return v($.twoDigitsSigned,e);case 3:return v($.threeDigitsSigned,e);case 4:return v($.fourDigitsSigned,e);default:return v(new RegExp("^-?\\d{1,"+t+"}"),e)}}function bn(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function oo(t,e){const n=e>0,r=n?e:1-e;let o;if(r<=50)o=t||100;else{const s=r+50,i=Math.trunc(s/100)*100,a=t>=s%100;o=t+i-(a?100:0)}return n?o:1-o}function so(t){return t%400===0||t%4===0&&t%100!==0}class Pc extends L{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const o=s=>({year:s,isTwoDigitYear:n==="yy"});switch(n){case"y":return q(B(4,e),o);case"yo":return q(r.ordinalNumber(e,{unit:"year"}),o);default:return q(B(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r){const o=e.getFullYear();if(r.isTwoDigitYear){const i=oo(r.year,o);return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}const s=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}}class Mc extends L{priority=130;parse(e,n,r){const o=s=>({year:s,isTwoDigitYear:n==="YY"});switch(n){case"Y":return q(B(4,e),o);case"Yo":return q(r.ordinalNumber(e,{unit:"year"}),o);default:return q(B(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r,o){const s=gn(e,o);if(r.isTwoDigitYear){const a=oo(r.year,s);return e.setFullYear(a,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Pe(e,o)}const i=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(i,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Pe(e,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class Nc extends L{priority=130;parse(e,n){return Ht(n==="R"?4:n.length,e)}set(e,n,r){const o=G(e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),Qe(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class Cc extends L{priority=130;parse(e,n){return Ht(n==="u"?4:n.length,e)}set(e,n,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class Lc extends L{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return B(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class kc extends L{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return B(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class Ic extends L{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,r){const o=s=>s-1;switch(n){case"M":return q(v($.month,e),o);case"MM":return q(B(2,e),o);case"Mo":return q(r.ordinalNumber(e,{unit:"month"}),o);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class Fc extends L{priority=110;parse(e,n,r){const o=s=>s-1;switch(n){case"L":return q(v($.month,e),o);case"LL":return q(B(2,e),o);case"Lo":return q(r.ordinalNumber(e,{unit:"month"}),o);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function vc(t,e,n){const r=N(t,n?.in),o=Xr(r,n)-e;return r.setDate(r.getDate()-o*7),N(r,n?.in)}class Hc extends L{priority=100;parse(e,n,r){switch(n){case"w":return v($.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r,o){return Pe(vc(e,r,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function Uc(t,e,n){const r=N(t,n?.in),o=Gr(r,n)-e;return r.setDate(r.getDate()-o*7),r}class Bc extends L{priority=100;parse(e,n,r){switch(n){case"I":return v($.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r){return Qe(Uc(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const Wc=[31,28,31,30,31,30,31,31,30,31,30,31],$c=[31,29,31,30,31,30,31,31,30,31,30,31];class qc extends L{priority=90;subPriority=1;parse(e,n,r){switch(n){case"d":return v($.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return B(n.length,e)}}validate(e,n){const r=e.getFullYear(),o=so(r),s=e.getMonth();return o?n>=1&&n<=$c[s]:n>=1&&n<=Wc[s]}set(e,n,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Yc extends L{priority=90;subpriority=1;parse(e,n,r){switch(n){case"D":case"DD":return v($.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return B(n.length,e)}}validate(e,n){const r=e.getFullYear();return so(r)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Tn(t,e,n){const r=Ve(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=N(t,n?.in),i=s.getDay(),l=(e%7+7)%7,f=7-o,d=e<0||e>6?e-(i+f)%7:(l+f)%7-(i+f)%7;return Br(s,d,n)}class zc extends L{priority=90;parse(e,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Tn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class jc extends L{priority=90;parse(e,n,r,o){const s=i=>{const a=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return q(B(n.length,e),s);case"eo":return q(r.ordinalNumber(e,{unit:"day"}),s);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Tn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class Gc extends L{priority=90;parse(e,n,r,o){const s=i=>{const a=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return q(B(n.length,e),s);case"co":return q(r.ordinalNumber(e,{unit:"day"}),s);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Tn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function Xc(t,e,n){const r=N(t,n?.in),o=Tc(r,n),s=e-o;return Br(r,s,n)}class Vc extends L{priority=90;parse(e,n,r){const o=s=>s===0?7:s;switch(n){case"i":case"ii":return B(n.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return q(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return q(r.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return q(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o);default:return q(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o)}}validate(e,n){return n>=1&&n<=7}set(e,n,r){return e=Xc(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class Qc extends L{priority=80;parse(e,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(bn(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class Kc extends L{priority=80;parse(e,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(bn(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class Jc extends L{priority=80;parse(e,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(bn(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class Zc extends L{priority=70;parse(e,n,r){switch(n){case"h":return v($.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,r){const o=e.getHours()>=12;return o&&r<12?e.setHours(r+12,0,0,0):!o&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class eu extends L{priority=70;parse(e,n,r){switch(n){case"H":return v($.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class tu extends L{priority=70;parse(e,n,r){switch(n){case"K":return v($.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class nu extends L{priority=70;parse(e,n,r){switch(n){case"k":return v($.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,r){const o=r<=24?r%24:r;return e.setHours(o,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class ru extends L{priority=60;parse(e,n,r){switch(n){case"m":return v($.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class ou extends L{priority=50;parse(e,n,r){switch(n){case"s":return v($.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class su extends L{priority=30;parse(e,n){const r=o=>Math.trunc(o*Math.pow(10,-n.length+3));return q(B(n.length,e),r)}set(e,n,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}class iu extends L{priority=10;parse(e,n){switch(n){case"X":return ye(we.basicOptionalMinutes,e);case"XX":return ye(we.basic,e);case"XXXX":return ye(we.basicOptionalSeconds,e);case"XXXXX":return ye(we.extendedOptionalSeconds,e);default:return ye(we.extended,e)}}set(e,n,r){return n.timestampIsSet?e:G(e,e.getTime()-vt(e)-r)}incompatibleTokens=["t","T","x"]}class au extends L{priority=10;parse(e,n){switch(n){case"x":return ye(we.basicOptionalMinutes,e);case"xx":return ye(we.basic,e);case"xxxx":return ye(we.basicOptionalSeconds,e);case"xxxxx":return ye(we.extendedOptionalSeconds,e);default:return ye(we.extended,e)}}set(e,n,r){return n.timestampIsSet?e:G(e,e.getTime()-vt(e)-r)}incompatibleTokens=["t","T","X"]}class cu extends L{priority=40;parse(e){return ro(e)}set(e,n,r){return[G(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class uu extends L{priority=20;parse(e){return ro(e)}set(e,n,r){return[G(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const lu={G:new Sc,y:new Pc,Y:new Mc,R:new Nc,u:new Cc,Q:new Lc,q:new kc,M:new Ic,L:new Fc,w:new Hc,I:new Bc,d:new qc,D:new Yc,E:new zc,e:new jc,c:new Gc,i:new Vc,a:new Qc,b:new Kc,B:new Jc,h:new Zc,H:new eu,K:new tu,k:new nu,m:new ru,s:new ou,S:new su,X:new iu,x:new au,t:new cu,T:new uu},fu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,du=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,mu=/^'([^]*?)'?$/,hu=/''/g,pu=/\S/,gu=/[a-zA-Z]/;function wu(t,e,n,r){const o=()=>G(n,NaN),s=bc(),i=s.locale??jr,a=s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!e)return t?o():N(n,r?.in);const f={firstWeekContainsDate:a,weekStartsOn:l,locale:i},d=[new Dc(r?.in,n)],p=e.match(du).map(m=>{const g=m[0];if(g in wn){const x=wn[g];return x(m,i.formatLong)}return m}).join("").match(fu),w=[];for(let m of p){to(m)&&yn(m,e,t),eo(m)&&yn(m,e,t);const g=m[0],x=lu[g];if(x){const{incompatibleTokens:R}=x;if(Array.isArray(R)){const k=w.find(se=>R.includes(se.token)||se.token===g);if(k)throw new RangeError(`The format string mustn't contain \`${k.fullToken}\` and \`${m}\` at the same time`)}else if(x.incompatibleTokens==="*"&&w.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);w.push({token:g,fullToken:m});const O=x.run(t,m,i.match,f);if(!O)return o();d.push(O.setter),t=O.rest}else{if(g.match(gu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");if(m==="''"?m="'":g==="'"&&(m=yu(m)),t.indexOf(m)===0)t=t.slice(m.length);else return o()}}if(t.length>0&&pu.test(t))return o();const b=d.map(m=>m.priority).sort((m,g)=>g-m).filter((m,g,x)=>x.indexOf(m)===g).map(m=>d.filter(g=>g.priority===m).sort((g,x)=>x.subPriority-g.subPriority)).map(m=>m[0]);let E=N(n,r?.in);if(isNaN(+E))return o();const y={};for(const m of b){if(!m.validate(E,f))return o();const g=m.set(E,y,f);Array.isArray(g)?(E=g[0],Object.assign(y,g[1])):E=g}return E}function yu(t){return t.match(mu)[1].replace(hu,"'")}const Ut=t=>{const e=typeof t=="string"?new Date(t):t;if(isNaN(e.getTime()))throw new Error("올바른 날짜 형식이 아닙니다.");return e},bu=t=>{const e=Ut(t),n=540*60*1e3;return new Date(e.getTime()+n)},Tu=t=>{const e=Ut(t),n=540*60*1e3;return new Date(e.getTime()-n)},io=(t,e="yyyy-MM-dd")=>{const n=Ut(t);return gc(n,e)},Eu=t=>yc(t),_u=(t,e)=>wu(t,e??"yyyy-MM-dd",new Date),Ou=(t,e)=>_c(t,e)?t:e,Au=(t,e)=>Ec(t,e)?t:e,Ru=(t,e)=>{const n=new Date,r=n>=t,s={...{direction:r?"전":"후",seconds:r?"방금":"잠시",minutes:"분",hours:"시간",days:"일",weeks:"주",months:"개월",years:"년"},...e},i=[{diffFunc:Ta,limit:60,label:s.minutes},{diffFunc:ya,limit:24,label:s.hours},{diffFunc:Yr,limit:7,label:s.days},{diffFunc:Ra,limit:5,label:s.weeks},{diffFunc:Aa,limit:12,label:s.months},{diffFunc:xa,limit:1/0,label:s.years}];for(const a of i){const l=Math.abs(a.diffFunc(n,t));if(l>=1&&l<a.limit)return`${l}${a.label} ${s.direction}`}return r?`${s.seconds} ${s.direction}`:`${s.seconds} ${s.direction}`},xu=(t,e={})=>{const{use12Hour:n=!0,showPeriod:r=!0,showSeconds:o=!1,includeDate:s=!1,includeWeekday:i=!1,timeSeparator:a=":",dateFormat:l="yyyy-MM-dd",dateTimeSeparator:f=" ",padHours:d=!0,periodLabels:p={am:"오전",pm:"오후"},weekdayLabels:w=["일","월","화","수","목","금","토"]}=e,b=Ut(t),E=b.getHours(),y=b.getMinutes(),m=b.getSeconds();let g="";if(n){const R=E<12?p.am:p.pm,O=E%12||12,k=d?O.toString().padStart(2,"0"):O.toString();g=r?`${R} ${k}`:k}else g=d?E.toString().padStart(2,"0"):E.toString();const x=y.toString().padStart(2,"0");if(g+=`${a}${x}`,o){const R=m.toString().padStart(2,"0");g+=`${a}${R}`}if(s){let O=io(b,l);if(i){const k=w[b.getDay()];O+=` (${k})`}return`${O}${f}${g}`}return g};function Du(t,e){const n=typeof t=="string"?new Date(t):t,r=typeof e=="string"?new Date(e):e;return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}const Su=Object.freeze(Object.defineProperty({__proto__:null,afterDate:Au,beforeDate:Ou,formatDate:io,formatToCustomKoreanTime:xu,isSameDay:Du,isSameMinute:(t,e)=>{const n=typeof t=="string"?new Date(t):t,r=typeof e=="string"?new Date(e):e,o=n.setSeconds(0,0),s=r.setSeconds(0,0);return o===s},kstToUtc:Tu,parseDate:_u,relativeTime:Ru,toISO:Eu,utcToKst:bu},Symbol.toStringTag,{value:"Module"})),Pu=Object.freeze(Object.defineProperty({__proto__:null,convertVideoLinks:t=>{let e=t;const n=r=>`<iframe src="${r}" frameborder="0" allowfullscreen style="display:block;width:100%;max-width:100%;aspect-ratio:16 / 9;height:auto;"></iframe>`;return e=e.replace(/https?:\/\/youtu\.be\/([a-zA-Z0-9_-]+)/g,(r,o)=>n(`https://www.youtube.com/embed/${o}`)),e=e.replace(/https?:\/\/www\.youtube\.com\/watch\?v=([a-zA-Z0-9_-]+)/g,(r,o)=>n(`https://www.youtube.com/embed/${o}`)),e},iframeHTMLRenderer:{htmlBlock:{iframe(t){return[{type:"openTag",tagName:"iframe",outerNewLine:!0,attributes:t.attrs},{type:"html",content:t.childrenHTML??""},{type:"closeTag",tagName:"iframe",outerNewLine:!0}]}}}},Symbol.toStringTag,{value:"Module"}));ce.FormatData=nt,ce.SanitizeHtml=ua,ce.dateUtils=Su,ce.editorUtils=Pu,ce.filterParams=hr,ce.handleError=Ni,ce.userAgent=Fi,ce.validate=Vo,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})}));
|
|
8
|
+
`,i+1),u=a===-1?"":s.slice(a+1);String(r.stack).endsWith(u)||(r.stack+=`
|
|
9
|
+
`+s)}}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Ue(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ft.assertOptions(r,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean),legacyInterceptorReqResOrdering:ce.transitional(ce.boolean)},!1),o!=null&&(l.isFunction(o)?n.paramsSerializer={serialize:o}:Ft.assertOptions(o,{encode:ce.function,serialize:ce.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ft.assertOptions(n,{baseUrl:ce.spelling("baseURL"),withXsrfToken:ce.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&l.merge(s.common,s[n.method]);s&&l.forEach(["delete","get","head","post","put","patch","query","common"],_=>{delete s[_]}),n.headers=Z.concat(i,s);const a=[];let u=!0;this.interceptors.request.forEach(function(w){if(typeof w.runWhen=="function"&&w.runWhen(n)===!1)return;u=u&&w.synchronous;const m=n.transitional||on;m&&m.legacyInterceptorReqResOrdering?a.unshift(w.fulfilled,w.rejected):a.push(w.fulfilled,w.rejected)});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let d,p=0,g;if(!u){const _=[wr.bind(this),void 0];for(_.unshift(...a),_.push(...f),g=_.length,d=Promise.resolve(n);p<g;)d=d.then(_[p++],_[p++]);return d}g=a.length;let T=n;for(;p<g;){const _=a[p++],w=a[p++];try{T=_(T)}catch(m){w.call(this,m);break}}try{d=wr.call(this,T)}catch(_){return Promise.reject(_)}for(p=0,g=f.length;p<g;)d=d.then(f[p++],f[p++]);return d}getUri(e){e=Ue(this.defaults,e);const n=ur(e.baseURL,e.url,e.allowAbsoluteUrls);return nr(n,e.params,e.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(e){Be.prototype[e]=function(n,r){return this.request(Ue(r||{},{method:e,url:n,data:(r||{}).data}))}}),l.forEach(["post","put","patch","query"],function(e){function n(r){return function(s,i,a){return this.request(Ue(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Be.prototype[e]=n(),e!=="query"&&(Be.prototype[e+"Form"]=n(!0))});let Hi=class Io{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(s,i,a){r.reason||(r.reason=new ht(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Io(function(o){e=o}),cancel:e}}};function Ui(t){return function(n){return t.apply(null,n)}}function Bi(t){return l.isObject(t)&&t.isAxiosError===!0}const dn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(dn).forEach(([t,e])=>{dn[e]=t});function Tr(t){const e=new Be(t),n=$n(Be.prototype.request,e);return l.extend(n,Be.prototype,e,{allOwnKeys:!0}),l.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Tr(Ue(t,o))},n}const W=Tr(mt);W.Axios=Be,W.CanceledError=ht,W.CancelToken=Hi,W.isCancel=sr,W.VERSION=un,W.toFormData=Ct,W.AxiosError=E,W.Cancel=W.CanceledError,W.all=function(e){return Promise.all(e)},W.spread=Ui,W.isAxiosError=Bi,W.mergeConfig=Ue,W.AxiosHeaders=Z,W.formToJSON=t=>or(l.isHTMLForm(t)?new FormData(t):t),W.getAdapter=yr.getAdapter,W.HttpStatusCode=dn,W.default=W;const{Axios:sl,AxiosError:il,CanceledError:al,isCancel:cl,CancelToken:ul,VERSION:ll,all:fl,Cancel:dl,isAxiosError:ml,spread:hl,toFormData:pl,AxiosHeaders:gl,HttpStatusCode:yl,formToJSON:wl,getAdapter:bl,mergeConfig:Tl,create:El}=W,$i=({error:t,message:e="알 수 없는 에러가 발생했습니다.",callback:n})=>W.isAxiosError(t)?(n?.(),{type:"axios",message:t.response?.data?.message??e,status:t.response?.status}):t instanceof Error?(n?.(),{type:"client",message:t.message||e}):(n?.(),{type:"unknown",message:e}),Er=(t,e={})=>{const{removeUndefined:n=!0,removeNull:r=!0,removeEmptyString:o=!0,removeEmptyArray:s=!0,removeEmptyObject:i=!0,normalizeNumbers:a=!1,normalizeBooleans:u=!1,normalizeNested:f=!1}=e,d=g=>{switch(!0){case(n&&g===void 0):return!0;case(r&&g===null):return!0;case(o&&g===""):return!0;case(s&&Array.isArray(g)&&g.length===0):return!0;case(i&&typeof g=="object"&&g!==null&&!Array.isArray(g)&&Object.keys(g).length===0):return!0;default:return!1}},p=g=>{if(typeof g=="object"&&g!==null){if(Array.isArray(g))return f?g.map(T=>p(T)).filter(T=>!d(T)):g;if(typeof g=="object")return f?Er(g,e):g}if(typeof g=="string"){const T=g.trim();if(u){const _=T.toLowerCase();if(_==="true")return!0;if(_==="false")return!1}return T}return a&&typeof g=="number"?String(g):g};return Object.fromEntries(Object.entries(t).map(([g,T])=>[g,p(T)]).filter(([,g])=>!d(g)))};function De(){return typeof window>"u"||"Deno"in globalThis}function Wi(){return!De()}function _r(){return De()?!1:/ipad|iphone/i.test(navigator.userAgent)}function Or(){return De()?!1:/Macintosh|MacIntel|MacPPC|Mac68K/.test(navigator.platform)}function Ar(){return De()?!1:/Android/i.test(navigator.userAgent)}function qi(){return De()?!1:/MSIE|Trident/i.test(navigator.userAgent)}function Rr(){return De()?!1:/KAKAOTALK/i.test(navigator.userAgent)}function mn(){return De()?!1:_r()?"ios":Ar()?"android":"web"}function Yi(){const t=mn();return t==="ios"||t==="android"}function zi(){if(De())return"server";if(Rr())return"kakao";const t=mn();return t==="ios"||t==="android"?t:Or()?"macos":"web"}const ji={isServer:De,isClient:Wi,isIOS:_r,isAndroid:Ar,isMacOS:Or,isIE:qi,isKakaoWebView:Rr,isMobileWeb:Yi,getOSByUserAgent:mn,getPlatform:zi};function xr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Gi(t){if(Array.isArray(t))return t}function Xi(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],u=!0,f=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(u=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);u=!0);}catch(d){f=!0,o=d}finally{try{if(!u&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(f)throw o}}return a}}function Vi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qi(t,e){return Gi(t)||Xi(t,e)||Ki(t,e)||Vi()}function Ki(t,e){if(t){if(typeof t=="string")return xr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xr(t,e):void 0}}const Dr=Object.entries,Sr=Object.setPrototypeOf,Ji=Object.isFrozen,Zi=Object.getPrototypeOf,ea=Object.getOwnPropertyDescriptor;let ee=Object.freeze,ue=Object.seal,Xe=Object.create,Pr=typeof Reflect<"u"&&Reflect,hn=Pr.apply,pn=Pr.construct;ee||(ee=function(e){return e}),ue||(ue=function(e){return e}),hn||(hn=function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return e.apply(n,o)}),pn||(pn=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new e(...r)});const Ve=j(Array.prototype.forEach),ta=j(Array.prototype.lastIndexOf),Nr=j(Array.prototype.pop),Qe=j(Array.prototype.push),na=j(Array.prototype.splice),te=Array.isArray,pt=j(String.prototype.toLowerCase),gn=j(String.prototype.toString),Mr=j(String.prototype.match),Ke=j(String.prototype.replace),Cr=j(String.prototype.indexOf),ra=j(String.prototype.trim),oa=j(Number.prototype.toString),sa=j(Boolean.prototype.toString),Lr=typeof BigInt>"u"?null:j(BigInt.prototype.toString),kr=typeof Symbol>"u"?null:j(Symbol.prototype.toString),U=j(Object.prototype.hasOwnProperty),gt=j(Object.prototype.toString),K=j(RegExp.prototype.test),yt=ia(TypeError);function j(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return hn(t,e,r)}}function ia(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return pn(t,n)}}function D(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pt;if(Sr&&Sr(t,null),!te(e))return t;let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(Ji(e)||(e[r]=s),o=s)}t[o]=!0}return t}function aa(t){for(let e=0;e<t.length;e++)U(t,e)||(t[e]=null);return t}function re(t){const e=Xe(null);for(const r of Dr(t)){var n=Qi(r,2);const o=n[0],s=n[1];U(t,o)&&(te(s)?e[o]=aa(s):s&&typeof s=="object"&&s.constructor===Object?e[o]=re(s):e[o]=s)}return e}function ca(t){switch(typeof t){case"string":return t;case"number":return oa(t);case"boolean":return sa(t);case"bigint":return Lr?Lr(t):"0";case"symbol":return kr?kr(t):"Symbol()";case"undefined":return gt(t);case"function":case"object":{if(t===null)return gt(t);const e=t,n=we(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:gt(r)}return gt(t)}default:return gt(t)}}function we(t,e){for(;t!==null;){const r=ea(t,e);if(r){if(r.get)return j(r.get);if(typeof r.value=="function")return j(r.value)}t=Zi(t)}function n(){return null}return n}function ua(t){try{return K(t,""),!0}catch{return!1}}const Ir=ee(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),yn=ee(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),wn=ee(["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"]),la=ee(["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"]),bn=ee(["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"]),fa=ee(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fr=ee(["#text"]),vr=ee(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Tn=ee(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Hr=ee(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),vt=ee(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),da=ue(/{{[\w\W]*|^[\w\W]*}}/g),ma=ue(/<%[\w\W]*|^[\w\W]*%>/g),ha=ue(/\${[\w\W]*/g),pa=ue(/^data-[\-\w.\u00B7-\uFFFF]+$/),ga=ue(/^aria-[\-\w]+$/),Ur=ue(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ya=ue(/^(?:\w+script|data):/i),wa=ue(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ba=ue(/^html$/i),Ta=ue(/^[a-z][.\w]*(-[.\w]+)+$/i),Me={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ea=function(){return typeof window>"u"?null:window},_a=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Br=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function $r(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ea();const e=O=>$r(O);if(e.version="3.4.6",e.removed=[],!t||!t.document||t.document.nodeType!==Me.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const r=n,o=r.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,i=t.Node,a=t.Element,u=t.NodeFilter,f=t.NamedNodeMap;f===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,p=t.trustedTypes,g=a.prototype,T=we(g,"cloneNode"),_=we(g,"remove"),w=we(g,"nextSibling"),m=we(g,"childNodes"),y=we(g,"parentNode"),x=we(g,"shadowRoot"),S=we(g,"attributes"),A=i&&i.prototype?we(i.prototype,"nodeType"):null,v=i&&i.prototype?we(i.prototype,"nodeName"):null;if(typeof s=="function"){const O=n.createElement("template");O.content&&O.content.ownerDocument&&(n=O.content.ownerDocument)}let I,he="";const ke=n,tt=ke.implementation,pe=ke.createNodeIterator,Se=ke.createDocumentFragment,nt=ke.getElementsByTagName,$t=r.importNode;let F=Br();e.isSupported=typeof Dr=="function"&&typeof y=="function"&&tt&&tt.createHTMLDocument!==void 0;const Ie=da,Ee=ma,rt=ha,Wt=pa,_e=ga,oe=ya,Oe=wa,qt=Ta;let X=Ur,k=null;const ie=D({},[...Ir,...yn,...wn,...bn,...Fr]);let z=null;const le=D({},[...vr,...Tn,...Hr,...vt]);let R=Object.seal(Xe(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}})),fe=null,Pe=null;const ae=Object.seal(Xe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Et=!0,_t=!0,Fe=!1,po=!0,ve=!1,Ot=!0,qe=!1,Sn=!1,Pn=!1,ot=!1,Yt=!1,zt=!1,go=!0,yo=!1;const wo="user-content-";let Nn=!0,At=!1,st={},Ae=null;const Mn=D({},["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 bo=null;const To=D({},["audio","video","img","source","image","track"]);let Cn=null;const Eo=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),jt="http://www.w3.org/1998/Math/MathML",Gt="http://www.w3.org/2000/svg",Re="http://www.w3.org/1999/xhtml";let it=Re,Ln=!1,kn=null;const ju=D({},[jt,Gt,Re],gn);let In=D({},["mi","mo","mn","ms","mtext"]),Fn=D({},["annotation-xml"]);const Gu=D({},["title","style","font","a","script"]);let Rt=null;const Xu=["application/xhtml+xml","text/html"],Vu="text/html";let G=null,at=null;const Qu=n.createElement("form"),_o=function(c){return c instanceof RegExp||c instanceof Function},vn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(at&&at===c)return;(!c||typeof c!="object")&&(c={}),c=re(c),Rt=Xu.indexOf(c.PARSER_MEDIA_TYPE)===-1?Vu:c.PARSER_MEDIA_TYPE,G=Rt==="application/xhtml+xml"?gn:pt,k=U(c,"ALLOWED_TAGS")&&te(c.ALLOWED_TAGS)?D({},c.ALLOWED_TAGS,G):ie,z=U(c,"ALLOWED_ATTR")&&te(c.ALLOWED_ATTR)?D({},c.ALLOWED_ATTR,G):le,kn=U(c,"ALLOWED_NAMESPACES")&&te(c.ALLOWED_NAMESPACES)?D({},c.ALLOWED_NAMESPACES,gn):ju,Cn=U(c,"ADD_URI_SAFE_ATTR")&&te(c.ADD_URI_SAFE_ATTR)?D(re(Eo),c.ADD_URI_SAFE_ATTR,G):Eo,bo=U(c,"ADD_DATA_URI_TAGS")&&te(c.ADD_DATA_URI_TAGS)?D(re(To),c.ADD_DATA_URI_TAGS,G):To,Ae=U(c,"FORBID_CONTENTS")&&te(c.FORBID_CONTENTS)?D({},c.FORBID_CONTENTS,G):Mn,fe=U(c,"FORBID_TAGS")&&te(c.FORBID_TAGS)?D({},c.FORBID_TAGS,G):re({}),Pe=U(c,"FORBID_ATTR")&&te(c.FORBID_ATTR)?D({},c.FORBID_ATTR,G):re({}),st=U(c,"USE_PROFILES")?c.USE_PROFILES&&typeof c.USE_PROFILES=="object"?re(c.USE_PROFILES):c.USE_PROFILES:!1,Et=c.ALLOW_ARIA_ATTR!==!1,_t=c.ALLOW_DATA_ATTR!==!1,Fe=c.ALLOW_UNKNOWN_PROTOCOLS||!1,po=c.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ve=c.SAFE_FOR_TEMPLATES||!1,Ot=c.SAFE_FOR_XML!==!1,qe=c.WHOLE_DOCUMENT||!1,ot=c.RETURN_DOM||!1,Yt=c.RETURN_DOM_FRAGMENT||!1,zt=c.RETURN_TRUSTED_TYPE||!1,Pn=c.FORCE_BODY||!1,go=c.SANITIZE_DOM!==!1,yo=c.SANITIZE_NAMED_PROPS||!1,Nn=c.KEEP_CONTENT!==!1,At=c.IN_PLACE||!1,X=ua(c.ALLOWED_URI_REGEXP)?c.ALLOWED_URI_REGEXP:Ur,it=typeof c.NAMESPACE=="string"?c.NAMESPACE:Re,In=U(c,"MATHML_TEXT_INTEGRATION_POINTS")&&c.MATHML_TEXT_INTEGRATION_POINTS&&typeof c.MATHML_TEXT_INTEGRATION_POINTS=="object"?re(c.MATHML_TEXT_INTEGRATION_POINTS):D({},["mi","mo","mn","ms","mtext"]),Fn=U(c,"HTML_INTEGRATION_POINTS")&&c.HTML_INTEGRATION_POINTS&&typeof c.HTML_INTEGRATION_POINTS=="object"?re(c.HTML_INTEGRATION_POINTS):D({},["annotation-xml"]);const h=U(c,"CUSTOM_ELEMENT_HANDLING")&&c.CUSTOM_ELEMENT_HANDLING&&typeof c.CUSTOM_ELEMENT_HANDLING=="object"?re(c.CUSTOM_ELEMENT_HANDLING):Xe(null);if(R=Xe(null),U(h,"tagNameCheck")&&_o(h.tagNameCheck)&&(R.tagNameCheck=h.tagNameCheck),U(h,"attributeNameCheck")&&_o(h.attributeNameCheck)&&(R.attributeNameCheck=h.attributeNameCheck),U(h,"allowCustomizedBuiltInElements")&&typeof h.allowCustomizedBuiltInElements=="boolean"&&(R.allowCustomizedBuiltInElements=h.allowCustomizedBuiltInElements),ve&&(_t=!1),Yt&&(ot=!0),st&&(k=D({},Fr),z=Xe(null),st.html===!0&&(D(k,Ir),D(z,vr)),st.svg===!0&&(D(k,yn),D(z,Tn),D(z,vt)),st.svgFilters===!0&&(D(k,wn),D(z,Tn),D(z,vt)),st.mathMl===!0&&(D(k,bn),D(z,Hr),D(z,vt))),ae.tagCheck=null,ae.attributeCheck=null,U(c,"ADD_TAGS")&&(typeof c.ADD_TAGS=="function"?ae.tagCheck=c.ADD_TAGS:te(c.ADD_TAGS)&&(k===ie&&(k=re(k)),D(k,c.ADD_TAGS,G))),U(c,"ADD_ATTR")&&(typeof c.ADD_ATTR=="function"?ae.attributeCheck=c.ADD_ATTR:te(c.ADD_ATTR)&&(z===le&&(z=re(z)),D(z,c.ADD_ATTR,G))),U(c,"ADD_URI_SAFE_ATTR")&&te(c.ADD_URI_SAFE_ATTR)&&D(Cn,c.ADD_URI_SAFE_ATTR,G),U(c,"FORBID_CONTENTS")&&te(c.FORBID_CONTENTS)&&(Ae===Mn&&(Ae=re(Ae)),D(Ae,c.FORBID_CONTENTS,G)),U(c,"ADD_FORBID_CONTENTS")&&te(c.ADD_FORBID_CONTENTS)&&(Ae===Mn&&(Ae=re(Ae)),D(Ae,c.ADD_FORBID_CONTENTS,G)),Nn&&(k["#text"]=!0),qe&&D(k,["html","head","body"]),k.table&&(D(k,["tbody"]),delete fe.tbody),c.TRUSTED_TYPES_POLICY){if(typeof c.TRUSTED_TYPES_POLICY.createHTML!="function")throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof c.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=c.TRUSTED_TYPES_POLICY,he=I.createHTML("")}else I===void 0&&(I=_a(p,o)),I!==null&&typeof he=="string"&&(he=I.createHTML(""));ee&&ee(c),at=c},Oo=D({},[...yn,...wn,...la]),Ao=D({},[...bn,...fa]),Ku=function(c){let h=y(c);(!h||!h.tagName)&&(h={namespaceURI:it,tagName:"template"});const b=pt(c.tagName),C=pt(h.tagName);return kn[c.namespaceURI]?c.namespaceURI===Gt?h.namespaceURI===Re?b==="svg":h.namespaceURI===jt?b==="svg"&&(C==="annotation-xml"||In[C]):!!Oo[b]:c.namespaceURI===jt?h.namespaceURI===Re?b==="math":h.namespaceURI===Gt?b==="math"&&Fn[C]:!!Ao[b]:c.namespaceURI===Re?h.namespaceURI===Gt&&!Fn[C]||h.namespaceURI===jt&&!In[C]?!1:!Ao[b]&&(Gu[b]||!Oo[b]):!!(Rt==="application/xhtml+xml"&&kn[c.namespaceURI]):!1},ge=function(c){Qe(e.removed,{element:c});try{y(c).removeChild(c)}catch{_(c)}},Ye=function(c,h){try{Qe(e.removed,{attribute:h.getAttributeNode(c),from:h})}catch{Qe(e.removed,{attribute:null,from:h})}if(h.removeAttribute(c),c==="is")if(ot||Yt)try{ge(h)}catch{}else try{h.setAttribute(c,"")}catch{}},Ro=function(c){let h=null,b=null;if(Pn)c="<remove></remove>"+c;else{const $=Mr(c,/^[\r\n\t ]+/);b=$&&$[0]}Rt==="application/xhtml+xml"&&it===Re&&(c='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+c+"</body></html>");const C=I?I.createHTML(c):c;if(it===Re)try{h=new d().parseFromString(C,Rt)}catch{}if(!h||!h.documentElement){h=tt.createDocument(it,"template",null);try{h.documentElement.innerHTML=Ln?he:C}catch{}}const L=h.body||h.documentElement;return c&&b&&L.insertBefore(n.createTextNode(b),L.childNodes[0]||null),it===Re?nt.call(h,qe?"html":"body")[0]:qe?h.documentElement:L},xo=function(c){return pe.call(c.ownerDocument||c,c,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Do=function(c){c.normalize();const h=pe.call(c.ownerDocument||c,c,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let b=h.nextNode();for(;b;){let C=b.data;Ve([Ie,Ee,rt],L=>{C=Ke(C,L," ")}),b.data=C,b=h.nextNode()}},Xt=function(c){const h=v?v(c):null;return typeof h!="string"||G(h)!=="form"?!1:typeof c.nodeName!="string"||typeof c.textContent!="string"||typeof c.removeChild!="function"||c.attributes!==S(c)||typeof c.removeAttribute!="function"||typeof c.setAttribute!="function"||typeof c.namespaceURI!="string"||typeof c.insertBefore!="function"||typeof c.hasChildNodes!="function"||c.childNodes!==m(c)},Hn=function(c){if(!A||typeof c!="object"||c===null)return!1;try{return A(c)===Me.documentFragment}catch{return!1}},Vt=function(c){if(!A||typeof c!="object"||c===null)return!1;try{return typeof A(c)=="number"}catch{return!1}};function Ne(O,c,h){Ve(O,b=>{b.call(e,c,h,at)})}const So=function(c){let h=null;if(Ne(F.beforeSanitizeElements,c,null),Xt(c))return ge(c),!0;const b=G(c.nodeName);if(Ne(F.uponSanitizeElement,c,{tagName:b,allowedTags:k}),Ot&&c.hasChildNodes()&&!Vt(c.firstElementChild)&&K(/<[/\w!]/g,c.innerHTML)&&K(/<[/\w!]/g,c.textContent)||Ot&&c.namespaceURI===Re&&b==="style"&&Vt(c.firstElementChild)||c.nodeType===Me.progressingInstruction||Ot&&c.nodeType===Me.comment&&K(/<[/\w]/g,c.data))return ge(c),!0;if(fe[b]||!(ae.tagCheck instanceof Function&&ae.tagCheck(b))&&!k[b]){if(!fe[b]&&No(b)&&(R.tagNameCheck instanceof RegExp&&K(R.tagNameCheck,b)||R.tagNameCheck instanceof Function&&R.tagNameCheck(b)))return!1;if(Nn&&!Ae[b]){const L=y(c)||c.parentNode,$=m(c)||c.childNodes;if($&&L){const de=$.length;for(let xe=de-1;xe>=0;--xe){const ye=T($[xe],!0);L.insertBefore(ye,w(c))}}}return ge(c),!0}return(A?A(c):c.nodeType)===Me.element&&!Ku(c)||(b==="noscript"||b==="noembed"||b==="noframes")&&K(/<\/no(script|embed|frames)/i,c.innerHTML)?(ge(c),!0):(ve&&c.nodeType===Me.text&&(h=c.textContent,Ve([Ie,Ee,rt],L=>{h=Ke(h,L," ")}),c.textContent!==h&&(Qe(e.removed,{element:c.cloneNode()}),c.textContent=h)),Ne(F.afterSanitizeElements,c,null),!1)},Po=function(c,h,b){if(Pe[h]||go&&(h==="id"||h==="name")&&(b in n||b in Qu))return!1;const C=z[h]||ae.attributeCheck instanceof Function&&ae.attributeCheck(h,c);if(!(_t&&!Pe[h]&&K(Wt,h))){if(!(Et&&K(_e,h))){if(!C||Pe[h]){if(!(No(c)&&(R.tagNameCheck instanceof RegExp&&K(R.tagNameCheck,c)||R.tagNameCheck instanceof Function&&R.tagNameCheck(c))&&(R.attributeNameCheck instanceof RegExp&&K(R.attributeNameCheck,h)||R.attributeNameCheck instanceof Function&&R.attributeNameCheck(h,c))||h==="is"&&R.allowCustomizedBuiltInElements&&(R.tagNameCheck instanceof RegExp&&K(R.tagNameCheck,b)||R.tagNameCheck instanceof Function&&R.tagNameCheck(b))))return!1}else if(!Cn[h]){if(!K(X,Ke(b,Oe,""))){if(!((h==="src"||h==="xlink:href"||h==="href")&&c!=="script"&&Cr(b,"data:")===0&&bo[c])){if(!(Fe&&!K(oe,Ke(b,Oe,"")))){if(b)return!1}}}}}}return!0},Ju=D({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),No=function(c){return!Ju[pt(c)]&&K(qt,c)},Mo=function(c){Ne(F.beforeSanitizeAttributes,c,null);const h=c.attributes;if(!h||Xt(c))return;const b={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let C=h.length;for(;C--;){const L=h[C],$=L.name,de=L.namespaceURI,xe=L.value,ye=G($),Bn=xe;let Q=$==="value"?Bn:ra(Bn);if(b.attrName=ye,b.attrValue=Q,b.keepAttr=!0,b.forceKeepAttr=void 0,Ne(F.uponSanitizeAttribute,c,b),Q=b.attrValue,yo&&(ye==="id"||ye==="name")&&Cr(Q,wo)!==0&&(Ye($,c),Q=wo+Q),Ot&&K(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Q)){Ye($,c);continue}if(ye==="attributename"&&Mr(Q,"href")){Ye($,c);continue}if(b.forceKeepAttr)continue;if(!b.keepAttr){Ye($,c);continue}if(!po&&K(/\/>/i,Q)){Ye($,c);continue}ve&&Ve([Ie,Ee,rt],Lo=>{Q=Ke(Q,Lo," ")});const Co=G(c.nodeName);if(!Po(Co,ye,Q)){Ye($,c);continue}if(I&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!de)switch(p.getAttributeType(Co,ye)){case"TrustedHTML":{Q=I.createHTML(Q);break}case"TrustedScriptURL":{Q=I.createScriptURL(Q);break}}if(Q!==Bn)try{de?c.setAttributeNS(de,$,Q):c.setAttribute($,Q),Xt(c)?ge(c):Nr(e.removed)}catch{Ye($,c)}}Ne(F.afterSanitizeAttributes,c,null)},Un=function(c){let h=null;const b=xo(c);for(Ne(F.beforeSanitizeShadowDOM,c,null);h=b.nextNode();)Ne(F.uponSanitizeShadowNode,h,null),So(h),Mo(h),Hn(h.content)&&Un(h.content);Ne(F.afterSanitizeShadowDOM,c,null)},Qt=function(c){if((A?A(c):c.nodeType)===Me.element){const L=x?x(c):c.shadowRoot;Hn(L)&&(Qt(L),Un(L))}const b=m?m(c):c.childNodes;if(!b)return;const C=[];Ve(b,L=>{Qe(C,L)});for(const L of C)Qt(L)};return e.sanitize=function(O){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=null,b=null,C=null,L=null;if(Ln=!O,Ln&&(O="<!-->"),typeof O!="string"&&!Vt(O)&&(O=ca(O),typeof O!="string"))throw yt("dirty is not a string, aborting");if(!e.isSupported)return O;if(Sn||vn(c),e.removed=[],typeof O=="string"&&(At=!1),At){const xe=v?v(O):O.nodeName;if(typeof xe=="string"){const ye=G(xe);if(!k[ye]||fe[ye])throw yt("root node is forbidden and cannot be sanitized in-place")}if(Xt(O))throw yt("root node is clobbered and cannot be sanitized in-place");Qt(O)}else if(Vt(O))h=Ro("<!---->"),b=h.ownerDocument.importNode(O,!0),b.nodeType===Me.element&&b.nodeName==="BODY"||b.nodeName==="HTML"?h=b:h.appendChild(b),Qt(b);else{if(!ot&&!ve&&!qe&&O.indexOf("<")===-1)return I&&zt?I.createHTML(O):O;if(h=Ro(O),!h)return ot?null:zt?he:""}h&&Pn&&ge(h.firstChild);const $=xo(At?O:h);for(;C=$.nextNode();)So(C),Mo(C),Hn(C.content)&&Un(C.content);if(At)return ve&&Do(O),O;if(ot){if(ve&&Do(h),Yt)for(L=Se.call(h.ownerDocument);h.firstChild;)L.appendChild(h.firstChild);else L=h;return(z.shadowroot||z.shadowrootmode)&&(L=$t.call(r,L,!0)),L}let de=qe?h.outerHTML:h.innerHTML;return qe&&k["!doctype"]&&h.ownerDocument&&h.ownerDocument.doctype&&h.ownerDocument.doctype.name&&K(ba,h.ownerDocument.doctype.name)&&(de="<!DOCTYPE "+h.ownerDocument.doctype.name+`>
|
|
11
|
+
`+de),ve&&Ve([Ie,Ee,rt],xe=>{de=Ke(de,xe," ")}),I&&zt?I.createHTML(de):de},e.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vn(O),Sn=!0},e.clearConfig=function(){at=null,Sn=!1},e.isValidAttribute=function(O,c,h){at||vn({});const b=G(O),C=G(c);return Po(b,C,h)},e.addHook=function(O,c){typeof c=="function"&&Qe(F[O],c)},e.removeHook=function(O,c){if(c!==void 0){const h=ta(F[O],c);return h===-1?void 0:na(F[O],h,1)[0]}return Nr(F[O])},e.removeHooks=function(O){F[O]=[]},e.removeAllHooks=function(){F=Br()},e}var Oa=$r();const Aa={addElements:[],allowElements:[],allowAttributes:{},dropElements:[],dropAttributes:{}},Wr=t=>t?Array.from(new Set(Object.values(t).flat())):[],Ra=({content:t,config:e})=>{const n={...Aa,...e},r=Wr(n.allowAttributes),o=r.length>0?{ALLOWED_ATTR:[...new Set([...r,"class","id","style"])]}:{},s=Wr(n.dropAttributes),i=s.length>0?{FORBID_ATTR:s}:{},a=n.addElements&&n.addElements.length>0&&!(n.allowElements&&n.allowElements.length>0)?{ADD_TAGS:n.addElements}:{},u=n.allowElements&&n.allowElements.length>0?{ALLOWED_TAGS:n.allowElements}:{},f=n.dropElements&&n.dropElements.length>0?{FORBID_TAGS:n.dropElements}:{},d={ALLOW_UNKNOWN_PROTOCOLS:!1,...a,...u,...i,...o,...f};return Oa.sanitize(t,d)},qr=6048e5,xa=864e5,Yr=6e4,zr=36e5,Da=1e3,jr=Symbol.for("constructDateFrom");function V(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&jr in t?t[jr](e):t instanceof Date?new t.constructor(e):new Date(e)}function N(t,e){return V(e||t,t)}function Gr(t,e,n){const r=N(t,n?.in);return isNaN(e)?V(n?.in||t,NaN):(e&&r.setDate(r.getDate()+e),r)}let Sa={};function Je(){return Sa}function Ce(t,e){const n=Je(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=N(t,e?.in),s=o.getDay(),i=(s<r?7:0)+s-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Ze(t,e){return Ce(t,{...e,weekStartsOn:1})}function Xr(t,e){const n=N(t,e?.in),r=n.getFullYear(),o=V(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Ze(o),i=V(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const a=Ze(i);return n.getTime()>=s.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function Ht(t){const e=N(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function $e(t,...e){const n=V.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function Vr(t,e){const n=N(t,e?.in);return n.setHours(0,0,0,0),n}function Qr(t,e,n){const[r,o]=$e(n?.in,t,e),s=Vr(r),i=Vr(o),a=+s-Ht(s),u=+i-Ht(i);return Math.round((a-u)/xa)}function Pa(t,e){const n=Xr(t,e),r=V(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ze(r)}function wt(t,e){const n=+N(t)-+N(e);return n<0?-1:n>0?1:n}function Na(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Ma(t){return!(!Na(t)&&typeof t!="number"||isNaN(+N(t)))}function Ca(t,e,n){const[r,o]=$e(n?.in,t,e),s=r.getFullYear()-o.getFullYear(),i=r.getMonth()-o.getMonth();return s*12+i}function La(t,e,n){const[r,o]=$e(n?.in,t,e);return r.getFullYear()-o.getFullYear()}function Kr(t,e,n){const[r,o]=$e(n?.in,t,e),s=Jr(r,o),i=Math.abs(Qr(r,o));r.setDate(r.getDate()-s*i);const a=+(Jr(r,o)===-s),u=s*(i-a);return u===0?0:u}function Jr(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function En(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function ka(t,e,n){const[r,o]=$e(n?.in,t,e),s=(+r-+o)/zr;return En(n?.roundingMethod)(s)}function Ia(t,e){return+N(t)-+N(e)}function Fa(t,e,n){const r=Ia(t,e)/Yr;return En(n?.roundingMethod)(r)}function va(t,e){const n=N(t,e?.in);return n.setHours(23,59,59,999),n}function Ha(t,e){const n=N(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Ua(t,e){const n=N(t,e?.in);return+va(n,e)==+Ha(n,e)}function Ba(t,e,n){const[r,o,s]=$e(n?.in,t,t,e),i=wt(o,s),a=Math.abs(Ca(o,s));if(a<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-i*a);let u=wt(o,s)===-i;Ua(r)&&a===1&&wt(r,s)===1&&(u=!1);const f=i*(a-+u);return f===0?0:f}function $a(t,e,n){const r=Kr(t,e,n)/7;return En(n?.roundingMethod)(r)}function Wa(t,e,n){const[r,o]=$e(n?.in,t,e),s=wt(r,o),i=Math.abs(La(r,o));r.setFullYear(1584),o.setFullYear(1584);const a=wt(r,o)===-s,u=s*(i-+a);return u===0?0:u}function qa(t,e){const n=N(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Ya={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},za=(t,e,n)=>{let r;const o=Ya[t];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function _n(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const ja={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ga={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Xa={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Va={date:_n({formats:ja,defaultWidth:"full"}),time:_n({formats:Ga,defaultWidth:"full"}),dateTime:_n({formats:Xa,defaultWidth:"full"})},Qa={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ka=(t,e,n,r)=>Qa[t];function bt(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&t.formattingValues){const i=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):i;o=t.formattingValues[a]||t.formattingValues[i]}else{const i=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;o=t.values[a]||t.values[i]}const s=t.argumentCallback?t.argumentCallback(e):e;return o[s]}}const Ja={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Za={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ec={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tc={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},nc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},rc={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},oc={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:bt({values:Ja,defaultWidth:"wide"}),quarter:bt({values:Za,defaultWidth:"wide",argumentCallback:t=>t-1}),month:bt({values:ec,defaultWidth:"wide"}),day:bt({values:tc,defaultWidth:"wide"}),dayPeriod:bt({values:nc,defaultWidth:"wide",formattingValues:rc,defaultFormattingWidth:"wide"})};function Tt(t){return(e,n={})=>{const r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;const i=s[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(a)?ic(a,p=>p.test(i)):sc(a,p=>p.test(i));let f;f=t.valueCallback?t.valueCallback(u):u,f=n.valueCallback?n.valueCallback(f):f;const d=e.slice(i.length);return{value:f,rest:d}}}function sc(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function ic(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function ac(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const o=r[0],s=e.match(t.parsePattern);if(!s)return null;let i=t.valueCallback?t.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const a=e.slice(o.length);return{value:i,rest:a}}}const cc=/^(\d+)(th|st|nd|rd)?/i,uc=/\d+/i,lc={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fc={any:[/^b/i,/^(a|c)/i]},dc={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mc={any:[/1/i,/2/i,/3/i,/4/i]},hc={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pc={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gc={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yc={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wc={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bc={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Tc={ordinalNumber:ac({matchPattern:cc,parsePattern:uc,valueCallback:t=>parseInt(t,10)}),era:Tt({matchPatterns:lc,defaultMatchWidth:"wide",parsePatterns:fc,defaultParseWidth:"any"}),quarter:Tt({matchPatterns:dc,defaultMatchWidth:"wide",parsePatterns:mc,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Tt({matchPatterns:hc,defaultMatchWidth:"wide",parsePatterns:pc,defaultParseWidth:"any"}),day:Tt({matchPatterns:gc,defaultMatchWidth:"wide",parsePatterns:yc,defaultParseWidth:"any"}),dayPeriod:Tt({matchPatterns:wc,defaultMatchWidth:"any",parsePatterns:bc,defaultParseWidth:"any"})},Zr={code:"en-US",formatDistance:za,formatLong:Va,formatRelative:Ka,localize:oc,match:Tc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ec(t,e){const n=N(t,e?.in);return Qr(n,qa(n))+1}function eo(t,e){const n=N(t,e?.in),r=+Ze(n)-+Pa(n);return Math.round(r/qr)+1}function On(t,e){const n=N(t,e?.in),r=n.getFullYear(),o=Je(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=V(e?.in||t,0);i.setFullYear(r+1,0,s),i.setHours(0,0,0,0);const a=Ce(i,e),u=V(e?.in||t,0);u.setFullYear(r,0,s),u.setHours(0,0,0,0);const f=Ce(u,e);return+n>=+a?r+1:+n>=+f?r:r-1}function _c(t,e){const n=Je(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=On(t,e),s=V(e?.in||t,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),Ce(s,e)}function to(t,e){const n=N(t,e?.in),r=+Ce(n,e)-+_c(n,e);return Math.round(r/qr)+1}function P(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Le={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return P(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):P(n+1,2)},d(t,e){return P(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return P(t.getHours()%12||12,e.length)},H(t,e){return P(t.getHours(),e.length)},m(t,e){return P(t.getMinutes(),e.length)},s(t,e){return P(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return P(o,e.length)}},et={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},no={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Le.y(t,e)},Y:function(t,e,n,r){const o=On(t,r),s=o>0?o:1-o;if(e==="YY"){const i=s%100;return P(i,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):P(s,e.length)},R:function(t,e){const n=Xr(t);return P(n,e.length)},u:function(t,e){const n=t.getFullYear();return P(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return P(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return P(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Le.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return P(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const o=to(t,r);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):P(o,e.length)},I:function(t,e,n){const r=eo(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):P(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Le.d(t,e)},D:function(t,e,n){const r=Ec(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):P(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return P(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const o=t.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return P(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return P(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const o=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let o;switch(r===12?o=et.noon:r===0?o=et.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let o;switch(r>=17?o=et.evening:r>=12?o=et.afternoon:r>=4?o=et.morning:o=et.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Le.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Le.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Le.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Le.s(t,e)},S:function(t,e){return Le.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return oo(r);case"XXXX":case"XX":return We(r);default:return We(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return oo(r);case"xxxx":case"xx":return We(r);default:return We(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ro(r,":");default:return"GMT"+We(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ro(r,":");default:return"GMT"+We(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return P(r,e.length)},T:function(t,e,n){return P(+t,e.length)}};function ro(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+e+P(s,2)}function oo(t,e){return t%60===0?(t>0?"-":"+")+P(Math.abs(t)/60,2):We(t,e)}function We(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=P(Math.trunc(r/60),2),s=P(r%60,2);return n+o+e+s}const so=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},io=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},An={p:io,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return so(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",so(r,e)).replace("{{time}}",io(o,e))}},Oc=/^D+$/,Ac=/^Y+$/,Rc=["D","DD","YY","YYYY"];function ao(t){return Oc.test(t)}function co(t){return Ac.test(t)}function Rn(t,e,n){const r=xc(t,e,n);if(console.warn(r),Rc.includes(t))throw new RangeError(r)}function xc(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Dc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Sc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pc=/^'([^]*?)'?$/,Nc=/''/g,Mc=/[a-zA-Z]/;function Cc(t,e,n){const r=Je(),o=r.locale??Zr,s=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=N(t,n?.in);if(!Ma(a))throw new RangeError("Invalid time value");let u=e.match(Sc).map(d=>{const p=d[0];if(p==="p"||p==="P"){const g=An[p];return g(d,o.formatLong)}return d}).join("").match(Dc).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const p=d[0];if(p==="'")return{isToken:!1,value:Lc(d)};if(no[p])return{isToken:!0,value:d};if(p.match(Mc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:d}});o.localize.preprocessor&&(u=o.localize.preprocessor(a,u));const f={firstWeekContainsDate:s,weekStartsOn:i,locale:o};return u.map(d=>{if(!d.isToken)return d.value;const p=d.value;(co(p)||ao(p))&&Rn(p,e,String(t));const g=no[p[0]];return g(a,p,o.localize,f)}).join("")}function Lc(t){const e=t.match(Pc);return e?e[1].replace(Nc,"'"):t}function kc(t,e){const n=N(t,e?.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",o="";const s="-",i=":";{const a=P(n.getDate(),2),u=P(n.getMonth()+1,2);r=`${P(n.getFullYear(),4)}${s}${u}${s}${a}`}{const a=n.getTimezoneOffset();if(a!==0){const T=Math.abs(a),_=P(Math.trunc(T/60),2),w=P(T%60,2);o=`${a<0?"+":"-"}${_}:${w}`}else o="Z";const u=P(n.getHours(),2),f=P(n.getMinutes(),2),d=P(n.getSeconds(),2),p=r===""?"":"T",g=[u,f,d].join(i);r=`${r}${p}${g}${o}`}return r}function Ic(){return Object.assign({},Je())}function Fc(t,e){const n=N(t,e?.in).getDay();return n===0?7:n}function vc(t,e){return+N(t)>+N(e)}function Hc(t,e){return+N(t)<+N(e)}function Uc(t,e){const n=Bc(e)?new e(0):V(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function Bc(t){return typeof t=="function"&&t.prototype?.constructor===t}const $c=10;class uo{subPriority=0;validate(e,n){return!0}}class Wc extends uo{constructor(e,n,r,o,s){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=o,s&&(this.subPriority=s)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class qc extends uo{priority=$c;subPriority=-1;constructor(e,n){super(),this.context=e||(r=>V(n,r))}set(e,n){return n.timestampIsSet?e:V(e,Uc(e,this.context))}}class M{run(e,n,r,o){const s=this.parse(e,n,r,o);return s?{setter:new Wc(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,n,r){return!0}}class Yc extends M{priority=140;parse(e,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,n,r){return n.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const q={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},be={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Y(t,e){return t&&{value:e(t.value),rest:t.rest}}function H(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function Te(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(o*zr+s*Yr+i*Da),rest:e.slice(n[0].length)}}function lo(t){return H(q.anyDigitsSigned,t)}function B(t,e){switch(t){case 1:return H(q.singleDigit,e);case 2:return H(q.twoDigits,e);case 3:return H(q.threeDigits,e);case 4:return H(q.fourDigits,e);default:return H(new RegExp("^\\d{1,"+t+"}"),e)}}function Ut(t,e){switch(t){case 1:return H(q.singleDigitSigned,e);case 2:return H(q.twoDigitsSigned,e);case 3:return H(q.threeDigitsSigned,e);case 4:return H(q.fourDigitsSigned,e);default:return H(new RegExp("^-?\\d{1,"+t+"}"),e)}}function xn(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function fo(t,e){const n=e>0,r=n?e:1-e;let o;if(r<=50)o=t||100;else{const s=r+50,i=Math.trunc(s/100)*100,a=t>=s%100;o=t+i-(a?100:0)}return n?o:1-o}function mo(t){return t%400===0||t%4===0&&t%100!==0}class zc extends M{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const o=s=>({year:s,isTwoDigitYear:n==="yy"});switch(n){case"y":return Y(B(4,e),o);case"yo":return Y(r.ordinalNumber(e,{unit:"year"}),o);default:return Y(B(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r){const o=e.getFullYear();if(r.isTwoDigitYear){const i=fo(r.year,o);return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}const s=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}}class jc extends M{priority=130;parse(e,n,r){const o=s=>({year:s,isTwoDigitYear:n==="YY"});switch(n){case"Y":return Y(B(4,e),o);case"Yo":return Y(r.ordinalNumber(e,{unit:"year"}),o);default:return Y(B(n.length,e),o)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r,o){const s=On(e,o);if(r.isTwoDigitYear){const a=fo(r.year,s);return e.setFullYear(a,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Ce(e,o)}const i=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(i,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Ce(e,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class Gc extends M{priority=130;parse(e,n){return Ut(n==="R"?4:n.length,e)}set(e,n,r){const o=V(e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),Ze(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class Xc extends M{priority=130;parse(e,n){return Ut(n==="u"?4:n.length,e)}set(e,n,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class Vc extends M{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return B(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class Qc extends M{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return B(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class Kc extends M{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,r){const o=s=>s-1;switch(n){case"M":return Y(H(q.month,e),o);case"MM":return Y(B(2,e),o);case"Mo":return Y(r.ordinalNumber(e,{unit:"month"}),o);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class Jc extends M{priority=110;parse(e,n,r){const o=s=>s-1;switch(n){case"L":return Y(H(q.month,e),o);case"LL":return Y(B(2,e),o);case"Lo":return Y(r.ordinalNumber(e,{unit:"month"}),o);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function Zc(t,e,n){const r=N(t,n?.in),o=to(r,n)-e;return r.setDate(r.getDate()-o*7),N(r,n?.in)}class eu extends M{priority=100;parse(e,n,r){switch(n){case"w":return H(q.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r,o){return Ce(Zc(e,r,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function tu(t,e,n){const r=N(t,n?.in),o=eo(r,n)-e;return r.setDate(r.getDate()-o*7),r}class nu extends M{priority=100;parse(e,n,r){switch(n){case"I":return H(q.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r){return Ze(tu(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const ru=[31,28,31,30,31,30,31,31,30,31,30,31],ou=[31,29,31,30,31,30,31,31,30,31,30,31];class su extends M{priority=90;subPriority=1;parse(e,n,r){switch(n){case"d":return H(q.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return B(n.length,e)}}validate(e,n){const r=e.getFullYear(),o=mo(r),s=e.getMonth();return o?n>=1&&n<=ou[s]:n>=1&&n<=ru[s]}set(e,n,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class iu extends M{priority=90;subpriority=1;parse(e,n,r){switch(n){case"D":case"DD":return H(q.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return B(n.length,e)}}validate(e,n){const r=e.getFullYear();return mo(r)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Dn(t,e,n){const r=Je(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=N(t,n?.in),i=s.getDay(),u=(e%7+7)%7,f=7-o,d=e<0||e>6?e-(i+f)%7:(u+f)%7-(i+f)%7;return Gr(s,d,n)}class au extends M{priority=90;parse(e,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Dn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class cu extends M{priority=90;parse(e,n,r,o){const s=i=>{const a=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+a};switch(n){case"e":case"ee":return Y(B(n.length,e),s);case"eo":return Y(r.ordinalNumber(e,{unit:"day"}),s);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Dn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class uu extends M{priority=90;parse(e,n,r,o){const s=i=>{const a=Math.floor((i-1)/7)*7;return(i+o.weekStartsOn+6)%7+a};switch(n){case"c":case"cc":return Y(B(n.length,e),s);case"co":return Y(r.ordinalNumber(e,{unit:"day"}),s);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,o){return e=Dn(e,r,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function lu(t,e,n){const r=N(t,n?.in),o=Fc(r,n),s=e-o;return Gr(r,s,n)}class fu extends M{priority=90;parse(e,n,r){const o=s=>s===0?7:s;switch(n){case"i":case"ii":return B(n.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return Y(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return Y(r.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Y(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o);default:return Y(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),o)}}validate(e,n){return n>=1&&n<=7}set(e,n,r){return e=lu(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class du extends M{priority=80;parse(e,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(xn(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class mu extends M{priority=80;parse(e,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(xn(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class hu extends M{priority=80;parse(e,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(xn(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class pu extends M{priority=70;parse(e,n,r){switch(n){case"h":return H(q.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,r){const o=e.getHours()>=12;return o&&r<12?e.setHours(r+12,0,0,0):!o&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class gu extends M{priority=70;parse(e,n,r){switch(n){case"H":return H(q.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class yu extends M{priority=70;parse(e,n,r){switch(n){case"K":return H(q.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class wu extends M{priority=70;parse(e,n,r){switch(n){case"k":return H(q.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return B(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,r){const o=r<=24?r%24:r;return e.setHours(o,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class bu extends M{priority=60;parse(e,n,r){switch(n){case"m":return H(q.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class Tu extends M{priority=50;parse(e,n,r){switch(n){case"s":return H(q.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return B(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class Eu extends M{priority=30;parse(e,n){const r=o=>Math.trunc(o*Math.pow(10,-n.length+3));return Y(B(n.length,e),r)}set(e,n,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}class _u extends M{priority=10;parse(e,n){switch(n){case"X":return Te(be.basicOptionalMinutes,e);case"XX":return Te(be.basic,e);case"XXXX":return Te(be.basicOptionalSeconds,e);case"XXXXX":return Te(be.extendedOptionalSeconds,e);default:return Te(be.extended,e)}}set(e,n,r){return n.timestampIsSet?e:V(e,e.getTime()-Ht(e)-r)}incompatibleTokens=["t","T","x"]}class Ou extends M{priority=10;parse(e,n){switch(n){case"x":return Te(be.basicOptionalMinutes,e);case"xx":return Te(be.basic,e);case"xxxx":return Te(be.basicOptionalSeconds,e);case"xxxxx":return Te(be.extendedOptionalSeconds,e);default:return Te(be.extended,e)}}set(e,n,r){return n.timestampIsSet?e:V(e,e.getTime()-Ht(e)-r)}incompatibleTokens=["t","T","X"]}class Au extends M{priority=40;parse(e){return lo(e)}set(e,n,r){return[V(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class Ru extends M{priority=20;parse(e){return lo(e)}set(e,n,r){return[V(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const xu={G:new Yc,y:new zc,Y:new jc,R:new Gc,u:new Xc,Q:new Vc,q:new Qc,M:new Kc,L:new Jc,w:new eu,I:new nu,d:new su,D:new iu,E:new au,e:new cu,c:new uu,i:new fu,a:new du,b:new mu,B:new hu,h:new pu,H:new gu,K:new yu,k:new wu,m:new bu,s:new Tu,S:new Eu,X:new _u,x:new Ou,t:new Au,T:new Ru},Du=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Su=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pu=/^'([^]*?)'?$/,Nu=/''/g,Mu=/\S/,Cu=/[a-zA-Z]/;function Lu(t,e,n,r){const o=()=>V(n,NaN),s=Ic(),i=s.locale??Zr,a=s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,u=s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!e)return t?o():N(n,r?.in);const f={firstWeekContainsDate:a,weekStartsOn:u,locale:i},d=[new qc(r?.in,n)],p=e.match(Su).map(m=>{const y=m[0];if(y in An){const x=An[y];return x(m,i.formatLong)}return m}).join("").match(Du),g=[];for(let m of p){co(m)&&Rn(m,e,t),ao(m)&&Rn(m,e,t);const y=m[0],x=xu[y];if(x){const{incompatibleTokens:S}=x;if(Array.isArray(S)){const v=g.find(I=>S.includes(I.token)||I.token===y);if(v)throw new RangeError(`The format string mustn't contain \`${v.fullToken}\` and \`${m}\` at the same time`)}else if(x.incompatibleTokens==="*"&&g.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);g.push({token:y,fullToken:m});const A=x.run(t,m,i.match,f);if(!A)return o();d.push(A.setter),t=A.rest}else{if(y.match(Cu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(m==="''"?m="'":y==="'"&&(m=ku(m)),t.indexOf(m)===0)t=t.slice(m.length);else return o()}}if(t.length>0&&Mu.test(t))return o();const T=d.map(m=>m.priority).sort((m,y)=>y-m).filter((m,y,x)=>x.indexOf(m)===y).map(m=>d.filter(y=>y.priority===m).sort((y,x)=>x.subPriority-y.subPriority)).map(m=>m[0]);let _=N(n,r?.in);if(isNaN(+_))return o();const w={};for(const m of T){if(!m.validate(_,f))return o();const y=m.set(_,w,f);Array.isArray(y)?(_=y[0],Object.assign(w,y[1])):_=y}return _}function ku(t){return t.match(Pu)[1].replace(Nu,"'")}const Bt=t=>{const e=typeof t=="string"?new Date(t):t;if(isNaN(e.getTime()))throw new Error("올바른 날짜 형식이 아닙니다.");return e},Iu=t=>{const e=Bt(t),n=540*60*1e3;return new Date(e.getTime()+n)},Fu=t=>{const e=Bt(t),n=540*60*1e3;return new Date(e.getTime()-n)},ho=(t,e="yyyy-MM-dd")=>{const n=Bt(t);return Cc(n,e)},vu=t=>kc(t),Hu=(t,e)=>Lu(t,e??"yyyy-MM-dd",new Date),Uu=(t,e)=>Hc(t,e)?t:e,Bu=(t,e)=>vc(t,e)?t:e,$u=(t,e)=>{const n=new Date,r=n>=t,s={...{direction:r?"전":"후",seconds:r?"방금":"잠시",minutes:"분",hours:"시간",days:"일",weeks:"주",months:"개월",years:"년"},...e},i=[{diffFunc:Fa,limit:60,label:s.minutes},{diffFunc:ka,limit:24,label:s.hours},{diffFunc:Kr,limit:7,label:s.days},{diffFunc:$a,limit:5,label:s.weeks},{diffFunc:Ba,limit:12,label:s.months},{diffFunc:Wa,limit:1/0,label:s.years}];for(const a of i){const u=Math.abs(a.diffFunc(n,t));if(u>=1&&u<a.limit)return`${u}${a.label} ${s.direction}`}return r?`${s.seconds} ${s.direction}`:`${s.seconds} ${s.direction}`},Wu=(t,e={})=>{const{use12Hour:n=!0,showPeriod:r=!0,showSeconds:o=!1,includeDate:s=!1,includeWeekday:i=!1,timeSeparator:a=":",dateFormat:u="yyyy-MM-dd",dateTimeSeparator:f=" ",padHours:d=!0,periodLabels:p={am:"오전",pm:"오후"},weekdayLabels:g=["일","월","화","수","목","금","토"]}=e,T=Bt(t),_=T.getHours(),w=T.getMinutes(),m=T.getSeconds();let y="";if(n){const S=_<12?p.am:p.pm,A=_%12||12,v=d?A.toString().padStart(2,"0"):A.toString();y=r?`${S} ${v}`:v}else y=d?_.toString().padStart(2,"0"):_.toString();const x=w.toString().padStart(2,"0");if(y+=`${a}${x}`,o){const S=m.toString().padStart(2,"0");y+=`${a}${S}`}if(s){let A=ho(T,u);if(i){const v=g[T.getDay()];A+=` (${v})`}return`${A}${f}${y}`}return y};function qu(t,e){const n=typeof t=="string"?new Date(t):t,r=typeof e=="string"?new Date(e):e;return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()&&n.getDate()===r.getDate()}const Yu=Object.freeze(Object.defineProperty({__proto__:null,afterDate:Bu,beforeDate:Uu,formatDate:ho,formatToCustomKoreanTime:Wu,isSameDay:qu,isSameMinute:(t,e)=>{const n=typeof t=="string"?new Date(t):t,r=typeof e=="string"?new Date(e):e,o=n.setSeconds(0,0),s=r.setSeconds(0,0);return o===s},kstToUtc:Fu,parseDate:Hu,relativeTime:$u,toISO:vu,utcToKst:Iu},Symbol.toStringTag,{value:"Module"})),zu=Object.freeze(Object.defineProperty({__proto__:null,convertVideoLinks:t=>{let e=t;const n=r=>`<iframe src="${r}" frameborder="0" allowfullscreen style="display:block;width:100%;max-width:100%;aspect-ratio:16 / 9;height:auto;"></iframe>`;return e=e.replace(/https?:\/\/youtu\.be\/([a-zA-Z0-9_-]+)/g,(r,o)=>n(`https://www.youtube.com/embed/${o}`)),e=e.replace(/https?:\/\/www\.youtube\.com\/watch\?v=([a-zA-Z0-9_-]+)/g,(r,o)=>n(`https://www.youtube.com/embed/${o}`)),e},iframeHTMLRenderer:{htmlBlock:{iframe(t){return[{type:"openTag",tagName:"iframe",outerNewLine:!0,attributes:t.attrs},{type:"html",content:t.childrenHTML??""},{type:"closeTag",tagName:"iframe",outerNewLine:!0}]}}}},Symbol.toStringTag,{value:"Module"}));se.FormatData=ct,se.SanitizeHtml=Ra,se.dateUtils=Yu,se.editorUtils=zu,se.filterParams=Er,se.handleError=$i,se.userAgent=ji,se.validate=rs,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})}));
|