@opengis/cms 0.0.7 → 0.0.8

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.
Files changed (43) hide show
  1. package/dist/cms.js +1505 -1494
  2. package/dist/cms.umd.cjs +11 -11
  3. package/package.json +6 -4
  4. package/server/app.js +25 -0
  5. package/server/config.js +5 -0
  6. package/server/index.js +23 -0
  7. package/server/migrations/media.sql +30 -0
  8. package/server/plugins/hook.js +91 -0
  9. package/server/plugins/vite.js +80 -0
  10. package/server/routes/builder/controllers/cms.builder.delete.js +21 -0
  11. package/server/routes/builder/controllers/cms.builder.get.js +17 -0
  12. package/server/routes/builder/controllers/cms.builder.list.js +16 -0
  13. package/server/routes/builder/controllers/cms.builder.post.js +21 -0
  14. package/server/routes/builder/controllers/cms.builder.put.js +23 -0
  15. package/server/routes/builder/index.mjs +22 -0
  16. package/server/routes/category/controllers/cms.category.delete.js +21 -0
  17. package/server/routes/category/controllers/cms.category.get.js +17 -0
  18. package/server/routes/category/controllers/cms.category.list.js +16 -0
  19. package/server/routes/category/controllers/cms.category.post.js +21 -0
  20. package/server/routes/category/controllers/cms.category.put.js +23 -0
  21. package/server/routes/category/index.mjs +22 -0
  22. package/server/routes/manager/controllers/cms.manager.delete.js +22 -0
  23. package/server/routes/manager/controllers/cms.manager.get.js +21 -0
  24. package/server/routes/manager/controllers/cms.manager.list.js +31 -0
  25. package/server/routes/manager/controllers/cms.manager.post.js +28 -0
  26. package/server/routes/manager/controllers/cms.manager.put.js +23 -0
  27. package/server/routes/manager/index.mjs +22 -0
  28. package/server/routes/media/controllers/delete.js +59 -0
  29. package/server/routes/media/controllers/edit.js +94 -0
  30. package/server/routes/media/controllers/list.js +74 -0
  31. package/server/routes/media/controllers/metadata.js +51 -0
  32. package/server/routes/media/controllers/preview.js +47 -0
  33. package/server/routes/media/controllers/upload.js +79 -0
  34. package/server/routes/media/index.mjs +16 -0
  35. package/server/routes/root.mjs +15 -0
  36. package/server/templates/cls/cms.category_type.json +10 -0
  37. package/server/templates/cls/cms.content_review_status.json +10 -0
  38. package/server/templates/cls/cms.content_status.json +10 -0
  39. package/server/templates/cls/cms.content_type.json +10 -0
  40. package/server/templates/cls/cms.lang.json +10 -0
  41. package/server/templates/page/login.html +59 -0
  42. package/server/templates/select/cms.category_id.sql +1 -0
  43. package/server/templates/select/cms.type_id.sql +1 -0
package/dist/cms.umd.cjs CHANGED
@@ -1,19 +1,19 @@
1
- (function(a,Me){typeof exports=="object"&&typeof module<"u"?module.exports=Me(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Me):(a=typeof globalThis<"u"?globalThis:a||self,a.cms=Me(a.Vue))})(this,function(a){"use strict";function Me(e,t){return function(){return e.apply(t,arguments)}}const{toString:gs}=Object.prototype,{getPrototypeOf:Bt}=Object,tt=(e=>t=>{const r=gs.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Q=e=>(e=e.toLowerCase(),t=>tt(t)===e),rt=e=>t=>typeof t===e,{isArray:Te}=Array,Ue=rt("undefined");function ws(e){return e!==null&&!Ue(e)&&e.constructor!==null&&!Ue(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Mr=Q("ArrayBuffer");function xs(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Mr(e.buffer),t}const ks=rt("string"),q=rt("function"),Tr=rt("number"),nt=e=>e!==null&&typeof e=="object",bs=e=>e===!0||e===!1,st=e=>{if(tt(e)!=="object")return!1;const t=Bt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ss=Q("Date"),Ds=Q("File"),Es=Q("Blob"),Ns=Q("FileList"),Os=e=>nt(e)&&q(e.pipe),Ms=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||q(e.append)&&((t=tt(e))==="formdata"||t==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},Ts=Q("URLSearchParams"),[Cs,Rs,Vs,Ps]=["ReadableStream","Request","Response","Headers"].map(Q),Ys=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Le(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),Te(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(n=0;n<i;n++)l=o[n],t.call(null,e[l],l,e)}}function Cr(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rr=e=>!Ue(e)&&e!==ke;function vt(){const{caseless:e}=Rr(this)&&this||{},t={},r=(n,s)=>{const o=e&&Cr(t,s)||s;st(t[o])&&st(n)?t[o]=vt(t[o],n):st(n)?t[o]=vt({},n):Te(n)?t[o]=n.slice():t[o]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Le(arguments[n],r);return t}const As=(e,t,r,{allOwnKeys:n}={})=>(Le(t,(s,o)=>{r&&q(s)?e[o]=Me(s,r):e[o]=s},{allOwnKeys:n}),e),Fs=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bs=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},vs=(e,t,r,n)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Bt(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},$s=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Us=e=>{if(!e)return null;if(Te(e))return e;let t=e.length;if(!Tr(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Ls=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bt(Uint8Array)),Is=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Ws=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},js=Q("HTMLFormElement"),Hs=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Vr=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),zs=Q("RegExp"),Pr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Le(r,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(n[o]=i||s)}),Object.defineProperties(e,n)},qs=e=>{Pr(e,(t,r)=>{if(q(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(q(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Gs=(e,t)=>{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return Te(e)?n(e):n(String(e).split(t)),r},Zs=()=>{},Js=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ks(e){return!!(e&&q(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qs=e=>{const t=new Array(10),r=(n,s)=>{if(nt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const o=Te(n)?[]:{};return Le(n,(i,l)=>{const d=r(i,s+1);!Ue(d)&&(o[l]=d)}),t[s]=void 0,o}}return n};return r(e,0)},Xs=Q("AsyncFunction"),ea=e=>e&&(nt(e)||q(e))&&q(e.then)&&q(e.catch),Yr=((e,t)=>e?setImmediate:t?((r,n)=>(ke.addEventListener("message",({source:s,data:o})=>{s===ke&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),ke.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",q(ke.postMessage)),ta=typeof queueMicrotask<"u"?queueMicrotask.bind(ke):typeof process<"u"&&process.nextTick||Yr,u={isArray:Te,isArrayBuffer:Mr,isBuffer:ws,isFormData:Ms,isArrayBufferView:xs,isString:ks,isNumber:Tr,isBoolean:bs,isObject:nt,isPlainObject:st,isReadableStream:Cs,isRequest:Rs,isResponse:Vs,isHeaders:Ps,isUndefined:Ue,isDate:Ss,isFile:Ds,isBlob:Es,isRegExp:zs,isFunction:q,isStream:Os,isURLSearchParams:Ts,isTypedArray:Ls,isFileList:Ns,forEach:Le,merge:vt,extend:As,trim:Ys,stripBOM:Fs,inherits:Bs,toFlatObject:vs,kindOf:tt,kindOfTest:Q,endsWith:$s,toArray:Us,forEachEntry:Is,matchAll:Ws,isHTMLForm:js,hasOwnProperty:Vr,hasOwnProp:Vr,reduceDescriptors:Pr,freezeMethods:qs,toObjectSet:Gs,toCamelCase:Hs,noop:Zs,toFiniteNumber:Js,findKey:Cr,global:ke,isContextDefined:Rr,isSpecCompliantForm:Ks,toJSONObject:Qs,isAsyncFn:Xs,isThenable:ea,setImmediate:Yr,asap:ta};function E(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}u.inherits(E,Error,{toJSON:function(){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:u.toJSONObject(this.config),code:this.code,status:this.status}}});const Ar=E.prototype,Fr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Fr[e]={value:e}}),Object.defineProperties(E,Fr),Object.defineProperty(Ar,"isAxiosError",{value:!0}),E.from=(e,t,r,n,s,o)=>{const i=Object.create(Ar);return u.toFlatObject(e,i,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),E.call(i,e.message,t,r,n,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const ra=null;function $t(e){return u.isPlainObject(e)||u.isArray(e)}function Br(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function vr(e,t,r){return e?e.concat(t).map(function(s,o){return s=Br(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function na(e){return u.isArray(e)&&!e.some($t)}const sa=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function at(e,t,r){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=u.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,y){return!u.isUndefined(y[k])});const n=r.metaTokens,s=r.visitor||f,o=r.dots,i=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(s))throw new TypeError("visitor must be a function");function c(_){if(_===null)return"";if(u.isDate(_))return _.toISOString();if(!d&&u.isBlob(_))throw new E("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(_)||u.isTypedArray(_)?d&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function f(_,k,y){let p=_;if(_&&!y&&typeof _=="object"){if(u.endsWith(k,"{}"))k=n?k:k.slice(0,-2),_=JSON.stringify(_);else if(u.isArray(_)&&na(_)||(u.isFileList(_)||u.endsWith(k,"[]"))&&(p=u.toArray(_)))return k=Br(k),p.forEach(function(g,U){!(u.isUndefined(g)||g===null)&&t.append(i===!0?vr([k],U,o):i===null?k:k+"[]",c(g))}),!1}return $t(_)?!0:(t.append(vr(y,k,o),c(_)),!1)}const h=[],b=Object.assign(sa,{defaultVisitor:f,convertValue:c,isVisitable:$t});function S(_,k){if(!u.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+k.join("."));h.push(_),u.forEach(_,function(p,V){(!(u.isUndefined(p)||p===null)&&s.call(t,p,u.isString(V)?V.trim():V,k,b))===!0&&S(p,k?k.concat(V):[V])}),h.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return S(e),t}function $r(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ut(e,t){this._pairs=[],e&&at(e,this,t)}const Ur=Ut.prototype;Ur.append=function(t,r){this._pairs.push([t,r])},Ur.toString=function(t){const r=t?function(n){return t.call(this,n,$r)}:$r;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function aa(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lr(e,t,r){if(!t)return e;const n=r&&r.encode||aa;u.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let o;if(s?o=s(t,r):o=u.isURLSearchParams(t)?t.toString():new Ut(t,r).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ir{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Wr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oa={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ut,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Lt=typeof window<"u"&&typeof document<"u",It=typeof navigator=="object"&&navigator||void 0,ia=Lt&&(!It||["ReactNative","NativeScript","NS"].indexOf(It.product)<0),la=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ca=Lt&&window.location.href||"http://localhost",L={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lt,hasStandardBrowserEnv:ia,hasStandardBrowserWebWorkerEnv:la,navigator:It,origin:ca},Symbol.toStringTag,{value:"Module"})),...oa};function da(e,t){return at(e,new L.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,o){return L.isNode&&u.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function ua(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fa(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function jr(e){function t(r,n,s,o){let i=r[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),d=o>=r.length;return i=!i&&u.isArray(s)?s.length:i,d?(u.hasOwnProp(s,i)?s[i]=[s[i],n]:s[i]=n,!l):((!s[i]||!u.isObject(s[i]))&&(s[i]=[]),t(r,n,s[i],o)&&u.isArray(s[i])&&(s[i]=fa(s[i])),!l)}if(u.isFormData(e)&&u.isFunction(e.entries)){const r={};return u.forEachEntry(e,(n,s)=>{t(ua(n),s,r,0)}),r}return null}function ha(e,t,r){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ie={transitional:Wr,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=u.isObject(t);if(o&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return s?JSON.stringify(jr(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return da(t,this.formSerializer).toString();if((l=u.isFileList(t))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return at(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(r.setContentType("application/json",!1),ha(t)):t}],transformResponse:[function(t){const r=this.transitional||Ie.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(n&&!this.responseType||s)){const i=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?E.from(l,E.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:L.classes.FormData,Blob:L.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{Ie.headers[e]={}});const ma=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"]),pa=e=>{const t={};let r,n,s;return e&&e.split(`
2
- `).forEach(function(i){s=i.indexOf(":"),r=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!r||t[r]&&ma[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Hr=Symbol("internals");function We(e){return e&&String(e).trim().toLowerCase()}function ot(e){return e===!1||e==null?e:u.isArray(e)?e.map(ot):String(e)}function ya(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const _a=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wt(e,t,r,n,s){if(u.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!u.isString(t)){if(u.isString(n))return t.indexOf(n)!==-1;if(u.isRegExp(n))return n.test(t)}}function ga(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function wa(e,t){const r=u.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,o,i){return this[n].call(this,t,s,o,i)},configurable:!0})})}let H=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function o(l,d,c){const f=We(d);if(!f)throw new Error("header name must be a non-empty string");const h=u.findKey(s,f);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||d]=ot(l))}const i=(l,d)=>u.forEach(l,(c,f)=>o(c,f,d));if(u.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(u.isString(t)&&(t=t.trim())&&!_a(t))i(pa(t),r);else if(u.isHeaders(t))for(const[l,d]of t.entries())o(d,l,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=We(t),t){const n=u.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return ya(s);if(u.isFunction(r))return r.call(this,s,n);if(u.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=We(t),t){const n=u.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Wt(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function o(i){if(i=We(i),i){const l=u.findKey(n,i);l&&(!r||Wt(n,n[l],l,r))&&(delete n[l],s=!0)}}return u.isArray(t)?t.forEach(o):o(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const o=r[n];(!t||Wt(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const r=this,n={};return u.forEach(this,(s,o)=>{const i=u.findKey(n,o);if(i){r[i]=ot(s),delete r[o];return}const l=t?ga(o):String(o).trim();l!==o&&delete r[o],r[l]=ot(s),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return u.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&u.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
3
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[Hr]=this[Hr]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=We(i);n[l]||(wa(s,i),n[l]=!0)}return u.isArray(t)?t.forEach(o):o(t),this}};H.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),u.reduceDescriptors(H.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),u.freezeMethods(H);function jt(e,t){const r=this||Ie,n=t||r,s=H.from(n.headers);let o=n.data;return u.forEach(e,function(l){o=l.call(r,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function zr(e){return!!(e&&e.__CANCEL__)}function Ce(e,t,r){E.call(this,e??"canceled",E.ERR_CANCELED,t,r),this.name="CanceledError"}u.inherits(Ce,E,{__CANCEL__:!0});function qr(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new E("Request failed with status code "+r.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function xa(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ka(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),f=n[o];i||(i=c),r[s]=d,n[s]=c;let h=o,b=0;for(;h!==s;)b+=r[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const S=f&&c-f;return S?Math.round(b*1e3/S):void 0}}function ba(e,t){let r=0,n=1e3/t,s,o;const i=(c,f=Date.now())=>{r=f,s=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const f=Date.now(),h=f-r;h>=n?i(c,f):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},n-h)))},()=>s&&i(s)]}const it=(e,t,r=3)=>{let n=0;const s=ka(50,250);return ba(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,d=i-n,c=s(d),f=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&f?(l-i)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},Gr=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Zr=e=>(...t)=>u.asap(()=>e(...t)),Sa=L.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,L.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(L.origin),L.navigator&&/(msie|trident)/i.test(L.navigator.userAgent)):()=>!0,Da=L.hasStandardBrowserEnv?{write(e,t,r,n,s,o){const i=[e+"="+encodeURIComponent(t)];u.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),u.isString(n)&&i.push("path="+n),u.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ea(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Na(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Jr(e,t,r){let n=!Ea(t);return e&&n||r==!1?Na(e,t):t}const Kr=e=>e instanceof H?{...e}:e;function be(e,t){t=t||{};const r={};function n(c,f,h,b){return u.isPlainObject(c)&&u.isPlainObject(f)?u.merge.call({caseless:b},c,f):u.isPlainObject(f)?u.merge({},f):u.isArray(f)?f.slice():f}function s(c,f,h,b){if(u.isUndefined(f)){if(!u.isUndefined(c))return n(void 0,c,h,b)}else return n(c,f,h,b)}function o(c,f){if(!u.isUndefined(f))return n(void 0,f)}function i(c,f){if(u.isUndefined(f)){if(!u.isUndefined(c))return n(void 0,c)}else return n(void 0,f)}function l(c,f,h){if(h in t)return n(c,f);if(h in e)return n(void 0,c)}const d={url:o,method:o,data:o,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,responseEncoding:i,validateStatus:l,headers:(c,f,h)=>s(Kr(c),Kr(f),h,!0)};return u.forEach(Object.keys(Object.assign({},e,t)),function(f){const h=d[f]||s,b=h(e[f],t[f],f);u.isUndefined(b)&&h!==l||(r[f]=b)}),r}const Qr=e=>{const t=be({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=H.from(i),t.url=Lr(Jr(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if(u.isFormData(r)){if(L.hasStandardBrowserEnv||L.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((d=i.getContentType())!==!1){const[c,...f]=d?d.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...f].join("; "))}}if(L.hasStandardBrowserEnv&&(n&&u.isFunction(n)&&(n=n(t)),n||n!==!1&&Sa(t.url))){const c=s&&o&&Da.read(o);c&&i.set(s,c)}return t},Oa=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const s=Qr(e);let o=s.data;const i=H.from(s.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:c}=s,f,h,b,S,_;function k(){S&&S(),_&&_(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let y=new XMLHttpRequest;y.open(s.method.toUpperCase(),s.url,!0),y.timeout=s.timeout;function p(){if(!y)return;const g=H.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),B={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:g,config:e,request:y};qr(function(W){r(W),k()},function(W){n(W),k()},B),y=null}"onloadend"in y?y.onloadend=p:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(p)},y.onabort=function(){y&&(n(new E("Request aborted",E.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new E("Network Error",E.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let U=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const B=s.transitional||Wr;s.timeoutErrorMessage&&(U=s.timeoutErrorMessage),n(new E(U,B.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,e,y)),y=null},o===void 0&&i.setContentType(null),"setRequestHeader"in y&&u.forEach(i.toJSON(),function(U,B){y.setRequestHeader(B,U)}),u.isUndefined(s.withCredentials)||(y.withCredentials=!!s.withCredentials),l&&l!=="json"&&(y.responseType=s.responseType),c&&([b,_]=it(c,!0),y.addEventListener("progress",b)),d&&y.upload&&([h,S]=it(d),y.upload.addEventListener("progress",h),y.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(f=g=>{y&&(n(!g||g.type?new Ce(null,e,y):g),y.abort(),y=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const V=xa(s.url);if(V&&L.protocols.indexOf(V)===-1){n(new E("Unsupported protocol "+V+":",E.ERR_BAD_REQUEST,e));return}y.send(o||null)})},Ma=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const o=function(c){if(!s){s=!0,l();const f=c instanceof Error?c:this.reason;n.abort(f instanceof E?f:new Ce(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,o(new E(`timeout ${t} of ms exceeded`,E.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:d}=n;return d.unsubscribe=()=>u.asap(l),d}},Ta=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Ca=async function*(e,t){for await(const r of Ra(e))yield*Ta(r,t)},Ra=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Xr=(e,t,r,n)=>{const s=Ca(e,t);let o=0,i,l=d=>{i||(i=!0,n&&n(d))};return new ReadableStream({async pull(d){try{const{done:c,value:f}=await s.next();if(c){l(),d.close();return}let h=f.byteLength;if(r){let b=o+=h;r(b)}d.enqueue(new Uint8Array(f))}catch(c){throw l(c),c}},cancel(d){return l(d),s.return()}},{highWaterMark:2})},lt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",en=lt&&typeof ReadableStream=="function",Va=lt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),tn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Pa=en&&tn(()=>{let e=!1;const t=new Request(L.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),rn=64*1024,Ht=en&&tn(()=>u.isReadableStream(new Response("").body)),ct={stream:Ht&&(e=>e.body)};lt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ct[t]&&(ct[t]=u.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new E(`Response type '${t}' is not supported`,E.ERR_NOT_SUPPORT,n)})})})(new Response);const Ya=async e=>{if(e==null)return 0;if(u.isBlob(e))return e.size;if(u.isSpecCompliantForm(e))return(await new Request(L.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(u.isArrayBufferView(e)||u.isArrayBuffer(e))return e.byteLength;if(u.isURLSearchParams(e)&&(e=e+""),u.isString(e))return(await Va(e)).byteLength},Aa=async(e,t)=>{const r=u.toFiniteNumber(e.getContentLength());return r??Ya(t)},zt={http:ra,xhr:Oa,fetch:lt&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:d,responseType:c,headers:f,withCredentials:h="same-origin",fetchOptions:b}=Qr(e);c=c?(c+"").toLowerCase():"text";let S=Ma([s,o&&o.toAbortSignal()],i),_;const k=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let y;try{if(d&&Pa&&r!=="get"&&r!=="head"&&(y=await Aa(f,n))!==0){let B=new Request(t,{method:"POST",body:n,duplex:"half"}),ne;if(u.isFormData(n)&&(ne=B.headers.get("content-type"))&&f.setContentType(ne),B.body){const[W,Ft]=Gr(y,it(Zr(d)));n=Xr(B.body,rn,W,Ft)}}u.isString(h)||(h=h?"include":"omit");const p="credentials"in Request.prototype;_=new Request(t,{...b,signal:S,method:r.toUpperCase(),headers:f.normalize().toJSON(),body:n,duplex:"half",credentials:p?h:void 0});let V=await fetch(_);const g=Ht&&(c==="stream"||c==="response");if(Ht&&(l||g&&k)){const B={};["status","statusText","headers"].forEach(ys=>{B[ys]=V[ys]});const ne=u.toFiniteNumber(V.headers.get("content-length")),[W,Ft]=l&&Gr(ne,it(Zr(l),!0))||[];V=new Response(Xr(V.body,rn,W,()=>{Ft&&Ft(),k&&k()}),B)}c=c||"text";let U=await ct[u.findKey(ct,c)||"text"](V,e);return!g&&k&&k(),await new Promise((B,ne)=>{qr(B,ne,{data:U,headers:H.from(V.headers),status:V.status,statusText:V.statusText,config:e,request:_})})}catch(p){throw k&&k(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,e,_),{cause:p.cause||p}):E.from(p,p&&p.code,e,_)}})};u.forEach(zt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nn=e=>`- ${e}`,Fa=e=>u.isFunction(e)||e===null||e===!1,sn={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let o=0;o<t;o++){r=e[o];let i;if(n=r,!Fa(r)&&(n=zt[(i=String(r)).toLowerCase()],n===void 0))throw new E(`Unknown adapter '${i}'`);if(n)break;s[i||"#"+o]=n}if(!n){const o=Object.entries(s).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
4
- `+o.map(nn).join(`
5
- `):" "+nn(o[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:zt};function qt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ce(null,e)}function an(e){return qt(e),e.headers=H.from(e.headers),e.data=jt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sn.getAdapter(e.adapter||Ie.adapter)(e).then(function(n){return qt(e),n.data=jt.call(e,e.transformResponse,n),n.headers=H.from(n.headers),n},function(n){return zr(n)||(qt(e),n&&n.response&&(n.response.data=jt.call(e,e.transformResponse,n.response),n.response.headers=H.from(n.response.headers))),Promise.reject(n)})}const on="1.8.1",dt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ln={};dt.transitional=function(t,r,n){function s(o,i){return"[Axios v"+on+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,l)=>{if(t===!1)throw new E(s(i," has been removed"+(r?" in "+r:"")),E.ERR_DEPRECATED);return r&&!ln[i]&&(ln[i]=!0,console.warn(s(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,l):!0}},dt.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Ba(e,t,r){if(typeof e!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const o=n[s],i=t[o];if(i){const l=e[o],d=l===void 0||i(l,o,e);if(d!==!0)throw new E("option "+o+" must be "+d,E.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new E("Unknown option "+o,E.ERR_BAD_OPTION)}}const ut={assertOptions:Ba,validators:dt},se=ut.validators;let Se=class{constructor(t){this.defaults=t,this.interceptors={request:new Ir,response:new Ir}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
- `+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=be(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:o}=r;n!==void 0&&ut.assertOptions(n,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean)},!1),s!=null&&(u.isFunction(s)?r.paramsSerializer={serialize:s}:ut.assertOptions(s,{encode:se.function,serialize:se.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ut.assertOptions(r,{baseUrl:se.spelling("baseURL"),withXsrfToken:se.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&u.merge(o.common,o[r.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],_=>{delete o[_]}),r.headers=H.concat(i,o);const l=[];let d=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(r)===!1||(d=d&&k.synchronous,l.unshift(k.fulfilled,k.rejected))});const c=[];this.interceptors.response.forEach(function(k){c.push(k.fulfilled,k.rejected)});let f,h=0,b;if(!d){const _=[an.bind(this),void 0];for(_.unshift.apply(_,l),_.push.apply(_,c),b=_.length,f=Promise.resolve(r);h<b;)f=f.then(_[h++],_[h++]);return f}b=l.length;let S=r;for(h=0;h<b;){const _=l[h++],k=l[h++];try{S=_(S)}catch(y){k.call(this,y);break}}try{f=an.call(this,S)}catch(_){return Promise.reject(_)}for(h=0,b=c.length;h<b;)f=f.then(c[h++],c[h++]);return f}getUri(t){t=be(this.defaults,t);const r=Jr(t.baseURL,t.url,t.allowAbsoluteUrls);return Lr(r,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){Se.prototype[t]=function(r,n){return this.request(be(n||{},{method:t,url:r,data:(n||{}).data}))}}),u.forEach(["post","put","patch"],function(t){function r(n){return function(o,i,l){return this.request(be(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Se.prototype[t]=r(),Se.prototype[t+"Form"]=r(!0)});let va=class _s{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(s=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](s);n._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{n.subscribe(l),o=l}).then(s);return i.cancel=function(){n.unsubscribe(o)},i},t(function(o,i,l){n.reason||(n.reason=new Ce(o,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new _s(function(s){t=s}),cancel:t}}};function $a(e){return function(r){return e.apply(null,r)}}function Ua(e){return u.isObject(e)&&e.isAxiosError===!0}const Gt={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};Object.entries(Gt).forEach(([e,t])=>{Gt[t]=e});function cn(e){const t=new Se(e),r=Me(Se.prototype.request,t);return u.extend(r,Se.prototype,t,{allOwnKeys:!0}),u.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return cn(be(e,s))},r}const O=cn(Ie);O.Axios=Se,O.CanceledError=Ce,O.CancelToken=va,O.isCancel=zr,O.VERSION=on,O.toFormData=at,O.AxiosError=E,O.Cancel=O.CanceledError,O.all=function(t){return Promise.all(t)},O.spread=$a,O.isAxiosError=Ua,O.mergeConfig=be,O.AxiosHeaders=H,O.formToJSON=e=>jr(u.isHTMLForm(e)?new FormData(e):e),O.getAdapter=sn.getAdapter,O.HttpStatusCode=Gt,O.default=O;const{Axios:$f,AxiosError:Uf,CanceledError:Lf,isCancel:If,CancelToken:Wf,VERSION:jf,all:Hf,Cancel:zf,isAxiosError:qf,spread:Gf,toFormData:Zf,AxiosHeaders:Jf,HttpStatusCode:Kf,formToJSON:Qf,getAdapter:Xf,mergeConfig:eh}=O;/*!
1
+ (function(a,Me){typeof exports=="object"&&typeof module<"u"?module.exports=Me(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Me):(a=typeof globalThis<"u"?globalThis:a||self,a.cms=Me(a.Vue))})(this,function(a){"use strict";function Me(e,t){return function(){return e.apply(t,arguments)}}const{toString:ks}=Object.prototype,{getPrototypeOf:Bt}=Object,tt=(e=>t=>{const r=ks.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Q=e=>(e=e.toLowerCase(),t=>tt(t)===e),rt=e=>t=>typeof t===e,{isArray:Te}=Array,Le=rt("undefined");function bs(e){return e!==null&&!Le(e)&&e.constructor!==null&&!Le(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Tr=Q("ArrayBuffer");function Ss(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Tr(e.buffer),t}const Ds=rt("string"),q=rt("function"),Cr=rt("number"),nt=e=>e!==null&&typeof e=="object",Es=e=>e===!0||e===!1,st=e=>{if(tt(e)!=="object")return!1;const t=Bt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ns=Q("Date"),Os=Q("File"),Ms=Q("Blob"),Ts=Q("FileList"),Cs=e=>nt(e)&&q(e.pipe),Rs=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||q(e.append)&&((t=tt(e))==="formdata"||t==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},Vs=Q("URLSearchParams"),[Ps,Ys,As,Fs]=["ReadableStream","Request","Response","Headers"].map(Q),Bs=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ue(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),Te(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(n=0;n<i;n++)l=o[n],t.call(null,e[l],l,e)}}function Rr(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vr=e=>!Le(e)&&e!==ke;function vt(){const{caseless:e}=Vr(this)&&this||{},t={},r=(n,s)=>{const o=e&&Rr(t,s)||s;st(t[o])&&st(n)?t[o]=vt(t[o],n):st(n)?t[o]=vt({},n):Te(n)?t[o]=n.slice():t[o]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Ue(arguments[n],r);return t}const vs=(e,t,r,{allOwnKeys:n}={})=>(Ue(t,(s,o)=>{r&&q(s)?e[o]=Me(s,r):e[o]=s},{allOwnKeys:n}),e),$s=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ls=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Us=(e,t,r,n)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Bt(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Is=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Ws=e=>{if(!e)return null;if(Te(e))return e;let t=e.length;if(!Cr(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},js=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bt(Uint8Array)),Hs=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},zs=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},qs=Q("HTMLFormElement"),Gs=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Pr=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Zs=Q("RegExp"),Yr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ue(r,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(n[o]=i||s)}),Object.defineProperties(e,n)},Js=e=>{Yr(e,(t,r)=>{if(q(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(q(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Ks=(e,t)=>{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return Te(e)?n(e):n(String(e).split(t)),r},Qs=()=>{},Xs=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,$t="abcdefghijklmnopqrstuvwxyz",Ar="0123456789",Fr={DIGIT:Ar,ALPHA:$t,ALPHA_DIGIT:$t+$t.toUpperCase()+Ar},ea=(e=16,t=Fr.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function ta(e){return!!(e&&q(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ra=e=>{const t=new Array(10),r=(n,s)=>{if(nt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const o=Te(n)?[]:{};return Ue(n,(i,l)=>{const d=r(i,s+1);!Le(d)&&(o[l]=d)}),t[s]=void 0,o}}return n};return r(e,0)},na=Q("AsyncFunction"),sa=e=>e&&(nt(e)||q(e))&&q(e.then)&&q(e.catch),Br=((e,t)=>e?setImmediate:t?((r,n)=>(ke.addEventListener("message",({source:s,data:o})=>{s===ke&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),ke.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",q(ke.postMessage)),aa=typeof queueMicrotask<"u"?queueMicrotask.bind(ke):typeof process<"u"&&process.nextTick||Br,u={isArray:Te,isArrayBuffer:Tr,isBuffer:bs,isFormData:Rs,isArrayBufferView:Ss,isString:Ds,isNumber:Cr,isBoolean:Es,isObject:nt,isPlainObject:st,isReadableStream:Ps,isRequest:Ys,isResponse:As,isHeaders:Fs,isUndefined:Le,isDate:Ns,isFile:Os,isBlob:Ms,isRegExp:Zs,isFunction:q,isStream:Cs,isURLSearchParams:Vs,isTypedArray:js,isFileList:Ts,forEach:Ue,merge:vt,extend:vs,trim:Bs,stripBOM:$s,inherits:Ls,toFlatObject:Us,kindOf:tt,kindOfTest:Q,endsWith:Is,toArray:Ws,forEachEntry:Hs,matchAll:zs,isHTMLForm:qs,hasOwnProperty:Pr,hasOwnProp:Pr,reduceDescriptors:Yr,freezeMethods:Js,toObjectSet:Ks,toCamelCase:Gs,noop:Qs,toFiniteNumber:Xs,findKey:Rr,global:ke,isContextDefined:Vr,ALPHABET:Fr,generateString:ea,isSpecCompliantForm:ta,toJSONObject:ra,isAsyncFn:na,isThenable:sa,setImmediate:Br,asap:aa};function E(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}u.inherits(E,Error,{toJSON:function(){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:u.toJSONObject(this.config),code:this.code,status:this.status}}});const vr=E.prototype,$r={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{$r[e]={value:e}}),Object.defineProperties(E,$r),Object.defineProperty(vr,"isAxiosError",{value:!0}),E.from=(e,t,r,n,s,o)=>{const i=Object.create(vr);return u.toFlatObject(e,i,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),E.call(i,e.message,t,r,n,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const oa=null;function Lt(e){return u.isPlainObject(e)||u.isArray(e)}function Lr(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function Ur(e,t,r){return e?e.concat(t).map(function(s,o){return s=Lr(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function ia(e){return u.isArray(e)&&!e.some(Lt)}const la=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function at(e,t,r){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=u.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(k,y){return!u.isUndefined(y[k])});const n=r.metaTokens,s=r.visitor||f,o=r.dots,i=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(s))throw new TypeError("visitor must be a function");function c(_){if(_===null)return"";if(u.isDate(_))return _.toISOString();if(!d&&u.isBlob(_))throw new E("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(_)||u.isTypedArray(_)?d&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function f(_,k,y){let p=_;if(_&&!y&&typeof _=="object"){if(u.endsWith(k,"{}"))k=n?k:k.slice(0,-2),_=JSON.stringify(_);else if(u.isArray(_)&&ia(_)||(u.isFileList(_)||u.endsWith(k,"[]"))&&(p=u.toArray(_)))return k=Lr(k),p.forEach(function(g,L){!(u.isUndefined(g)||g===null)&&t.append(i===!0?Ur([k],L,o):i===null?k:k+"[]",c(g))}),!1}return Lt(_)?!0:(t.append(Ur(y,k,o),c(_)),!1)}const h=[],b=Object.assign(la,{defaultVisitor:f,convertValue:c,isVisitable:Lt});function S(_,k){if(!u.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+k.join("."));h.push(_),u.forEach(_,function(p,V){(!(u.isUndefined(p)||p===null)&&s.call(t,p,u.isString(V)?V.trim():V,k,b))===!0&&S(p,k?k.concat(V):[V])}),h.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Ir(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ut(e,t){this._pairs=[],e&&at(e,this,t)}const Wr=Ut.prototype;Wr.append=function(t,r){this._pairs.push([t,r])},Wr.toString=function(t){const r=t?function(n){return t.call(this,n,Ir)}:Ir;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function ca(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jr(e,t,r){if(!t)return e;const n=r&&r.encode||ca;u.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let o;if(s?o=s(t,r):o=u.isURLSearchParams(t)?t.toString():new Ut(t,r).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Hr{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(n){n!==null&&t(n)})}}const zr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},da={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ut,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},It=typeof window<"u"&&typeof document<"u",Wt=typeof navigator=="object"&&navigator||void 0,ua=It&&(!Wt||["ReactNative","NativeScript","NS"].indexOf(Wt.product)<0),fa=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ha=It&&window.location.href||"http://localhost",U={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:It,hasStandardBrowserEnv:ua,hasStandardBrowserWebWorkerEnv:fa,navigator:Wt,origin:ha},Symbol.toStringTag,{value:"Module"})),...da};function ma(e,t){return at(e,new U.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,o){return U.isNode&&u.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pa(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ya(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function qr(e){function t(r,n,s,o){let i=r[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),d=o>=r.length;return i=!i&&u.isArray(s)?s.length:i,d?(u.hasOwnProp(s,i)?s[i]=[s[i],n]:s[i]=n,!l):((!s[i]||!u.isObject(s[i]))&&(s[i]=[]),t(r,n,s[i],o)&&u.isArray(s[i])&&(s[i]=ya(s[i])),!l)}if(u.isFormData(e)&&u.isFunction(e.entries)){const r={};return u.forEachEntry(e,(n,s)=>{t(pa(n),s,r,0)}),r}return null}function _a(e,t,r){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ie={transitional:zr,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=u.isObject(t);if(o&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return s?JSON.stringify(qr(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ma(t,this.formSerializer).toString();if((l=u.isFileList(t))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return at(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(r.setContentType("application/json",!1),_a(t)):t}],transformResponse:[function(t){const r=this.transitional||Ie.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(n&&!this.responseType||s)){const i=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?E.from(l,E.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{Ie.headers[e]={}});const ga=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"]),wa=e=>{const t={};let r,n,s;return e&&e.split(`
2
+ `).forEach(function(i){s=i.indexOf(":"),r=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!r||t[r]&&ga[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Gr=Symbol("internals");function We(e){return e&&String(e).trim().toLowerCase()}function ot(e){return e===!1||e==null?e:u.isArray(e)?e.map(ot):String(e)}function xa(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const ka=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jt(e,t,r,n,s){if(u.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!u.isString(t)){if(u.isString(n))return t.indexOf(n)!==-1;if(u.isRegExp(n))return n.test(t)}}function ba(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Sa(e,t){const r=u.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,o,i){return this[n].call(this,t,s,o,i)},configurable:!0})})}let H=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function o(l,d,c){const f=We(d);if(!f)throw new Error("header name must be a non-empty string");const h=u.findKey(s,f);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||d]=ot(l))}const i=(l,d)=>u.forEach(l,(c,f)=>o(c,f,d));if(u.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(u.isString(t)&&(t=t.trim())&&!ka(t))i(wa(t),r);else if(u.isHeaders(t))for(const[l,d]of t.entries())o(d,l,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=We(t),t){const n=u.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return xa(s);if(u.isFunction(r))return r.call(this,s,n);if(u.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=We(t),t){const n=u.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||jt(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function o(i){if(i=We(i),i){const l=u.findKey(n,i);l&&(!r||jt(n,n[l],l,r))&&(delete n[l],s=!0)}}return u.isArray(t)?t.forEach(o):o(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const o=r[n];(!t||jt(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const r=this,n={};return u.forEach(this,(s,o)=>{const i=u.findKey(n,o);if(i){r[i]=ot(s),delete r[o];return}const l=t?ba(o):String(o).trim();l!==o&&delete r[o],r[l]=ot(s),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return u.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&u.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[Gr]=this[Gr]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=We(i);n[l]||(Sa(s,i),n[l]=!0)}return u.isArray(t)?t.forEach(o):o(t),this}};H.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),u.reduceDescriptors(H.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),u.freezeMethods(H);function Ht(e,t){const r=this||Ie,n=t||r,s=H.from(n.headers);let o=n.data;return u.forEach(e,function(l){o=l.call(r,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Zr(e){return!!(e&&e.__CANCEL__)}function Ce(e,t,r){E.call(this,e??"canceled",E.ERR_CANCELED,t,r),this.name="CanceledError"}u.inherits(Ce,E,{__CANCEL__:!0});function Jr(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new E("Request failed with status code "+r.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Da(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ea(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),f=n[o];i||(i=c),r[s]=d,n[s]=c;let h=o,b=0;for(;h!==s;)b+=r[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const S=f&&c-f;return S?Math.round(b*1e3/S):void 0}}function Na(e,t){let r=0,n=1e3/t,s,o;const i=(c,f=Date.now())=>{r=f,s=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const f=Date.now(),h=f-r;h>=n?i(c,f):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},n-h)))},()=>s&&i(s)]}const it=(e,t,r=3)=>{let n=0;const s=Ea(50,250);return Na(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,d=i-n,c=s(d),f=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&f?(l-i)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},Kr=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Qr=e=>(...t)=>u.asap(()=>e(...t)),Oa=U.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,U.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0,Ma=U.hasStandardBrowserEnv?{write(e,t,r,n,s,o){const i=[e+"="+encodeURIComponent(t)];u.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),u.isString(n)&&i.push("path="+n),u.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ta(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ca(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Xr(e,t){return e&&!Ta(t)?Ca(e,t):t}const en=e=>e instanceof H?{...e}:e;function be(e,t){t=t||{};const r={};function n(c,f,h,b){return u.isPlainObject(c)&&u.isPlainObject(f)?u.merge.call({caseless:b},c,f):u.isPlainObject(f)?u.merge({},f):u.isArray(f)?f.slice():f}function s(c,f,h,b){if(u.isUndefined(f)){if(!u.isUndefined(c))return n(void 0,c,h,b)}else return n(c,f,h,b)}function o(c,f){if(!u.isUndefined(f))return n(void 0,f)}function i(c,f){if(u.isUndefined(f)){if(!u.isUndefined(c))return n(void 0,c)}else return n(void 0,f)}function l(c,f,h){if(h in t)return n(c,f);if(h in e)return n(void 0,c)}const d={url:o,method:o,data:o,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,responseEncoding:i,validateStatus:l,headers:(c,f,h)=>s(en(c),en(f),h,!0)};return u.forEach(Object.keys(Object.assign({},e,t)),function(f){const h=d[f]||s,b=h(e[f],t[f],f);u.isUndefined(b)&&h!==l||(r[f]=b)}),r}const tn=e=>{const t=be({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=H.from(i),t.url=jr(Xr(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if(u.isFormData(r)){if(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((d=i.getContentType())!==!1){const[c,...f]=d?d.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...f].join("; "))}}if(U.hasStandardBrowserEnv&&(n&&u.isFunction(n)&&(n=n(t)),n||n!==!1&&Oa(t.url))){const c=s&&o&&Ma.read(o);c&&i.set(s,c)}return t},Ra=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const s=tn(e);let o=s.data;const i=H.from(s.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:c}=s,f,h,b,S,_;function k(){S&&S(),_&&_(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let y=new XMLHttpRequest;y.open(s.method.toUpperCase(),s.url,!0),y.timeout=s.timeout;function p(){if(!y)return;const g=H.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),B={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:g,config:e,request:y};Jr(function(W){r(W),k()},function(W){n(W),k()},B),y=null}"onloadend"in y?y.onloadend=p:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(p)},y.onabort=function(){y&&(n(new E("Request aborted",E.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new E("Network Error",E.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let L=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const B=s.transitional||zr;s.timeoutErrorMessage&&(L=s.timeoutErrorMessage),n(new E(L,B.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,e,y)),y=null},o===void 0&&i.setContentType(null),"setRequestHeader"in y&&u.forEach(i.toJSON(),function(L,B){y.setRequestHeader(B,L)}),u.isUndefined(s.withCredentials)||(y.withCredentials=!!s.withCredentials),l&&l!=="json"&&(y.responseType=s.responseType),c&&([b,_]=it(c,!0),y.addEventListener("progress",b)),d&&y.upload&&([h,S]=it(d),y.upload.addEventListener("progress",h),y.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(f=g=>{y&&(n(!g||g.type?new Ce(null,e,y):g),y.abort(),y=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const V=Da(s.url);if(V&&U.protocols.indexOf(V)===-1){n(new E("Unsupported protocol "+V+":",E.ERR_BAD_REQUEST,e));return}y.send(o||null)})},Va=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const o=function(c){if(!s){s=!0,l();const f=c instanceof Error?c:this.reason;n.abort(f instanceof E?f:new Ce(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,o(new E(`timeout ${t} of ms exceeded`,E.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:d}=n;return d.unsubscribe=()=>u.asap(l),d}},Pa=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Ya=async function*(e,t){for await(const r of Aa(e))yield*Pa(r,t)},Aa=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},rn=(e,t,r,n)=>{const s=Ya(e,t);let o=0,i,l=d=>{i||(i=!0,n&&n(d))};return new ReadableStream({async pull(d){try{const{done:c,value:f}=await s.next();if(c){l(),d.close();return}let h=f.byteLength;if(r){let b=o+=h;r(b)}d.enqueue(new Uint8Array(f))}catch(c){throw l(c),c}},cancel(d){return l(d),s.return()}},{highWaterMark:2})},lt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",nn=lt&&typeof ReadableStream=="function",Fa=lt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),sn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ba=nn&&sn(()=>{let e=!1;const t=new Request(U.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),an=64*1024,zt=nn&&sn(()=>u.isReadableStream(new Response("").body)),ct={stream:zt&&(e=>e.body)};lt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ct[t]&&(ct[t]=u.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new E(`Response type '${t}' is not supported`,E.ERR_NOT_SUPPORT,n)})})})(new Response);const va=async e=>{if(e==null)return 0;if(u.isBlob(e))return e.size;if(u.isSpecCompliantForm(e))return(await new Request(U.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(u.isArrayBufferView(e)||u.isArrayBuffer(e))return e.byteLength;if(u.isURLSearchParams(e)&&(e=e+""),u.isString(e))return(await Fa(e)).byteLength},$a=async(e,t)=>{const r=u.toFiniteNumber(e.getContentLength());return r??va(t)},qt={http:oa,xhr:Ra,fetch:lt&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:d,responseType:c,headers:f,withCredentials:h="same-origin",fetchOptions:b}=tn(e);c=c?(c+"").toLowerCase():"text";let S=Va([s,o&&o.toAbortSignal()],i),_;const k=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let y;try{if(d&&Ba&&r!=="get"&&r!=="head"&&(y=await $a(f,n))!==0){let B=new Request(t,{method:"POST",body:n,duplex:"half"}),ne;if(u.isFormData(n)&&(ne=B.headers.get("content-type"))&&f.setContentType(ne),B.body){const[W,Ft]=Kr(y,it(Qr(d)));n=rn(B.body,an,W,Ft)}}u.isString(h)||(h=h?"include":"omit");const p="credentials"in Request.prototype;_=new Request(t,{...b,signal:S,method:r.toUpperCase(),headers:f.normalize().toJSON(),body:n,duplex:"half",credentials:p?h:void 0});let V=await fetch(_);const g=zt&&(c==="stream"||c==="response");if(zt&&(l||g&&k)){const B={};["status","statusText","headers"].forEach(ws=>{B[ws]=V[ws]});const ne=u.toFiniteNumber(V.headers.get("content-length")),[W,Ft]=l&&Kr(ne,it(Qr(l),!0))||[];V=new Response(rn(V.body,an,W,()=>{Ft&&Ft(),k&&k()}),B)}c=c||"text";let L=await ct[u.findKey(ct,c)||"text"](V,e);return!g&&k&&k(),await new Promise((B,ne)=>{Jr(B,ne,{data:L,headers:H.from(V.headers),status:V.status,statusText:V.statusText,config:e,request:_})})}catch(p){throw k&&k(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,e,_),{cause:p.cause||p}):E.from(p,p&&p.code,e,_)}})};u.forEach(qt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const on=e=>`- ${e}`,La=e=>u.isFunction(e)||e===null||e===!1,ln={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let o=0;o<t;o++){r=e[o];let i;if(n=r,!La(r)&&(n=qt[(i=String(r)).toLowerCase()],n===void 0))throw new E(`Unknown adapter '${i}'`);if(n)break;s[i||"#"+o]=n}if(!n){const o=Object.entries(s).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
4
+ `+o.map(on).join(`
5
+ `):" "+on(o[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:qt};function Gt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ce(null,e)}function cn(e){return Gt(e),e.headers=H.from(e.headers),e.data=Ht.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ln.getAdapter(e.adapter||Ie.adapter)(e).then(function(n){return Gt(e),n.data=Ht.call(e,e.transformResponse,n),n.headers=H.from(n.headers),n},function(n){return Zr(n)||(Gt(e),n&&n.response&&(n.response.data=Ht.call(e,e.transformResponse,n.response),n.response.headers=H.from(n.response.headers))),Promise.reject(n)})}const dn="1.7.9",dt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const un={};dt.transitional=function(t,r,n){function s(o,i){return"[Axios v"+dn+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,l)=>{if(t===!1)throw new E(s(i," has been removed"+(r?" in "+r:"")),E.ERR_DEPRECATED);return r&&!un[i]&&(un[i]=!0,console.warn(s(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,l):!0}},dt.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Ua(e,t,r){if(typeof e!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const o=n[s],i=t[o];if(i){const l=e[o],d=l===void 0||i(l,o,e);if(d!==!0)throw new E("option "+o+" must be "+d,E.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new E("Unknown option "+o,E.ERR_BAD_OPTION)}}const ut={assertOptions:Ua,validators:dt},se=ut.validators;let Se=class{constructor(t){this.defaults=t,this.interceptors={request:new Hr,response:new Hr}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
+ `+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=be(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:o}=r;n!==void 0&&ut.assertOptions(n,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean)},!1),s!=null&&(u.isFunction(s)?r.paramsSerializer={serialize:s}:ut.assertOptions(s,{encode:se.function,serialize:se.function},!0)),ut.assertOptions(r,{baseUrl:se.spelling("baseURL"),withXsrfToken:se.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&u.merge(o.common,o[r.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],_=>{delete o[_]}),r.headers=H.concat(i,o);const l=[];let d=!0;this.interceptors.request.forEach(function(k){typeof k.runWhen=="function"&&k.runWhen(r)===!1||(d=d&&k.synchronous,l.unshift(k.fulfilled,k.rejected))});const c=[];this.interceptors.response.forEach(function(k){c.push(k.fulfilled,k.rejected)});let f,h=0,b;if(!d){const _=[cn.bind(this),void 0];for(_.unshift.apply(_,l),_.push.apply(_,c),b=_.length,f=Promise.resolve(r);h<b;)f=f.then(_[h++],_[h++]);return f}b=l.length;let S=r;for(h=0;h<b;){const _=l[h++],k=l[h++];try{S=_(S)}catch(y){k.call(this,y);break}}try{f=cn.call(this,S)}catch(_){return Promise.reject(_)}for(h=0,b=c.length;h<b;)f=f.then(c[h++],c[h++]);return f}getUri(t){t=be(this.defaults,t);const r=Xr(t.baseURL,t.url);return jr(r,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){Se.prototype[t]=function(r,n){return this.request(be(n||{},{method:t,url:r,data:(n||{}).data}))}}),u.forEach(["post","put","patch"],function(t){function r(n){return function(o,i,l){return this.request(be(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Se.prototype[t]=r(),Se.prototype[t+"Form"]=r(!0)});let Ia=class xs{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(s=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](s);n._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{n.subscribe(l),o=l}).then(s);return i.cancel=function(){n.unsubscribe(o)},i},t(function(o,i,l){n.reason||(n.reason=new Ce(o,i,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new xs(function(s){t=s}),cancel:t}}};function Wa(e){return function(r){return e.apply(null,r)}}function ja(e){return u.isObject(e)&&e.isAxiosError===!0}const Zt={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};Object.entries(Zt).forEach(([e,t])=>{Zt[t]=e});function fn(e){const t=new Se(e),r=Me(Se.prototype.request,t);return u.extend(r,Se.prototype,t,{allOwnKeys:!0}),u.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return fn(be(e,s))},r}const O=fn(Ie);O.Axios=Se,O.CanceledError=Ce,O.CancelToken=Ia,O.isCancel=Zr,O.VERSION=dn,O.toFormData=at,O.AxiosError=E,O.Cancel=O.CanceledError,O.all=function(t){return Promise.all(t)},O.spread=Wa,O.isAxiosError=ja,O.mergeConfig=be,O.AxiosHeaders=H,O.formToJSON=e=>qr(u.isHTMLForm(e)?new FormData(e):e),O.getAdapter=ln.getAdapter,O.HttpStatusCode=Zt,O.default=O;const{Axios:Wf,AxiosError:jf,CanceledError:Hf,isCancel:zf,CancelToken:qf,VERSION:Gf,all:Zf,Cancel:Jf,isAxiosError:Kf,spread:Qf,toFormData:Xf,AxiosHeaders:eh,HttpStatusCode:th,formToJSON:rh,getAdapter:nh,mergeConfig:sh}=O;/*!
7
7
  * vue-router v4.5.0
8
8
  * (c) 2024 Eduardo San Martin Morote
9
9
  * @license MIT
10
- */var dn;(function(e){e.pop="pop",e.push="push"})(dn||(dn={}));var un;(function(e){e.back="back",e.forward="forward",e.unknown=""})(un||(un={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var fn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(fn||(fn={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const La=Symbol(process.env.NODE_ENV!=="production"?"router":""),Ia=Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function Wa(){return a.inject(La)}function ft(e){return a.inject(Ia)}const j=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},ja={},Ha={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-arrow-left"};function za(e,t){return a.openBlock(),a.createElementBlock("svg",Ha,t[0]||(t[0]=[a.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),a.createElementVNode("path",{d:"M5 12l14 0"},null,-1),a.createElementVNode("path",{d:"M5 12l6 6"},null,-1),a.createElementVNode("path",{d:"M5 12l6 -6"},null,-1)]))}const hn=j(ja,[["render",za]]),qa=[{key:"title",placeholder:"Назва колонки українською",ua:"Назва колонки українською",type:"text",slots:{row:'<div class="flex items-center gap-2"><img class="block" height="24" width="30" :src="`https://cdn.softpro.ua/data/npm/admin/column-types/icon-${row?.type?.toLowerCase()}.svg`"/> <span class="text-[12px]">{{ row?.title }}</span></div>'},validators:["required"]},{key:"type",type:"radio",ua:"Тип колонки",view:"buttons",style:{class:"!w-[calc(50%-5px)]"},slots:{label:'<div class="flex items-center justify-start w-full gap-4"><img class="block" height="24" width="30" :src="`https://cdn.softpro.ua/data/npm/admin/column-types/icon-${id?.toLowerCase()}.svg`"/><div class="flex flex-col items-start gap-1"><span class="text-black text-[14px]">{{text}}</span><span class="text-[12px]">{{description}}</span></div></div>'},options:[{id:"Text",text:"Текст",description:"Маленький або довгий текст, наприклад заголовок або опис"},{id:"Number",text:"Цифри",description:"Числа (цілі, з плаваючою точкою, десяткові)"},{id:"Email",text:"Електронна пошта",description:"Поле електронної пошти з фоматом перевірки"},{id:"Date",text:"Дата",description:"Вибір дати з годинами, хвилинами та секундами"},{id:"Switcher",text:"Так/Ні",description:"Так чи ні, 1 або 0, вірно чи хибно"},{id:"File",text:"Файл",description:"Різноманітні файли"},{id:"Select",text:"Селект",description:"Список значень, а потім виберіть одне"},{id:"Badge",text:"Бейдж",description:"Стилізоване значення з переліку"}],validators:["required"]},{key:"enabled",type:"Switcher",ua:"Увімкнено",col:6}],mn=[{key:"name",type:"Text",ua:"Назва",placeholder:"Назва",validators:["required"]},{key:"template",type:"Text",ua:"Шаблон",placeholder:"Шаблон",validators:["required"]},{key:"description",type:"Text",ua:"Опис",placeholder:"Опис"}],Ga={class:"w-full flex justify-center"},Za={class:"p-[20px] w-full max-w-[1440px]"},Ja={class:"flex items-center justify-between"},Ka={class:"mt-[10px]"},Qa={class:"flex items-end gap-1"},Xa={class:"font-medium text-2xl"},eo={class:"text-gray-600 font-medium text-2xl"},to={class:"text-gray-600"},ro={class:"flex items-center gap-1"},no={class:"w-full mt-[20px] bg-white rounded-xl"},so={class:"flex justify-end p-[20px] gap-[10px] border-t w-full"},ao={__name:"vs-builder-content",props:{UPDATE:Object},setup(e){var _;const t=ft(),r=(_=a.getCurrentInstance().proxy)==null?void 0:_.$notify,n=e,s=a.computed(()=>{var k;return(k=t==null?void 0:t.params)==null?void 0:k.id}),o=a.ref(null),i=a.ref([]),l=a.ref({}),d=a.ref(!1),c=a.ref(),f=async()=>{var k,y,p,V;try{const{data:g}=await O.get(`/api/cms-builder/${s.value}`);o.value=(k=g==null?void 0:g.rows)==null?void 0:k[0],l.value=(y=g==null?void 0:g.rows)==null?void 0:y[0],i.value=((V=(p=g==null?void 0:g.rows)==null?void 0:p[0])==null?void 0:V.columns)||[]}catch{}},h=async()=>{try{await O.put(`/api/cms-builder/${s.value}`,{...o.value,columns:i.value}),await r({type:"success",title:"Успішно!",message:"Дані оновлено успішно"}),await f()}catch(k){console.log(k),await r({type:"error",title:"Помилка!",message:"При спробі оновити дані виникла помилка"})}},b=async()=>{try{await c.value.doValidation(),await O.put(`/api/cms-builder/${s.value}`,l.value),await r({type:"success",title:"Успішно!",message:"Дані оновлено успішно"}),await f(),d.value=!1,n.UPDATE.getList()}catch(k){console.log(k),await r({type:"error",title:"Помилка!",message:"При спробі оновити дані виникла помилка"})}};a.watch(s,f),a.onMounted(()=>f());const S={key:"type",type:"Autocomplete",ua:"Тип",searchable:!1,options:[{id:"single",text:"Одиночний тип"},{id:"collection",text:"Колекція"}]};return(k,y)=>{var U,B,ne;const p=a.resolveComponent("VsDataTable"),V=a.resolveComponent("VsForm"),g=a.resolveComponent("VsDialog");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Ga,[a.createElementVNode("div",Za,[a.createElementVNode("button",{onClick:y[0]||(y[0]=W=>k.$router.back()),class:"text-blue-500 flex gap-2 items-center hover:text-blue-700 duration-300"},[a.createVNode(hn),y[6]||(y[6]=a.createTextVNode(" Повернутися назад "))]),a.createElementVNode("div",Ja,[a.createElementVNode("div",Ka,[a.createElementVNode("div",Qa,[a.createElementVNode("h2",Xa,a.toDisplayString((U=o.value)==null?void 0:U.name)+" -",1),a.createElementVNode("span",eo,a.toDisplayString((B=o.value)==null?void 0:B.template),1)]),a.createElementVNode("p",to,a.toDisplayString((ne=o.value)==null?void 0:ne.description),1)]),a.createElementVNode("div",ro,[a.createElementVNode("button",{onClick:y[1]||(y[1]=W=>d.value=!0),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Редагувати "),a.createElementVNode("button",{onClick:h,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Зберегти ")])]),a.createElementVNode("div",null,[a.createElementVNode("div",no,[a.createVNode(p,{class:"w-full",colModel:a.unref(qa),modelValue:i.value,"onUpdate:modelValue":y[2]||(y[2]=W=>i.value=W),addition:!1,import:!1,additionBottom:!0},null,8,["colModel","modelValue"])])])])]),a.createVNode(g,{title:"Редагувати",visible:d.value,"onUpdate:visible":y[5]||(y[5]=W=>d.value=W)},{footer:a.withCtx(()=>[a.createElementVNode("div",so,[a.createElementVNode("button",{onClick:y[4]||(y[4]=W=>d.value=!1),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border rounded-lg border-gray-200 hover:bg-gray-100 duration-300"}," Скасувати"),a.createElementVNode("button",{onClick:b,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Зберегти ")])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(V,{modelValue:l.value,"onUpdate:modelValue":y[3]||(y[3]=W=>l.value=W),scheme:[...a.unref(mn),S],ref_key:"form",ref:c},null,8,["modelValue","scheme"])])]),_:1},8,["visible"])],64)}}};//! moment.js
10
+ */var hn;(function(e){e.pop="pop",e.push="push"})(hn||(hn={}));var mn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(mn||(mn={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var pn;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(pn||(pn={})),Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const Ha=Symbol(process.env.NODE_ENV!=="production"?"router":""),za=Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function qa(){return a.inject(Ha)}function ft(e){return a.inject(za)}const j=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Ga={},Za={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-arrow-left"};function Ja(e,t){return a.openBlock(),a.createElementBlock("svg",Za,t[0]||(t[0]=[a.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),a.createElementVNode("path",{d:"M5 12l14 0"},null,-1),a.createElementVNode("path",{d:"M5 12l6 6"},null,-1),a.createElementVNode("path",{d:"M5 12l6 -6"},null,-1)]))}const yn=j(Ga,[["render",Ja]]),Ka=[{key:"title",placeholder:"Назва колонки українською",ua:"Назва колонки українською",type:"text",slots:{row:'<div class="flex items-center gap-2"><img class="block" height="24" width="30" :src="`https://cdn.softpro.ua/data/npm/admin/column-types/icon-${row?.type?.toLowerCase()}.svg`"/> <span class="text-[12px]">{{ row?.title }}</span></div>'},validators:["required"]},{key:"type",type:"radio",ua:"Тип колонки",view:"buttons",style:{class:"!w-[calc(50%-5px)]"},slots:{label:'<div class="flex items-center justify-start w-full gap-4"><img class="block" height="24" width="30" :src="`https://cdn.softpro.ua/data/npm/admin/column-types/icon-${id?.toLowerCase()}.svg`"/><div class="flex flex-col items-start gap-1"><span class="text-black text-[14px]">{{text}}</span><span class="text-[12px]">{{description}}</span></div></div>'},options:[{id:"Text",text:"Текст",description:"Маленький або довгий текст, наприклад заголовок або опис"},{id:"Number",text:"Цифри",description:"Числа (цілі, з плаваючою точкою, десяткові)"},{id:"Email",text:"Електронна пошта",description:"Поле електронної пошти з фоматом перевірки"},{id:"Date",text:"Дата",description:"Вибір дати з годинами, хвилинами та секундами"},{id:"Switcher",text:"Так/Ні",description:"Так чи ні, 1 або 0, вірно чи хибно"},{id:"File",text:"Файл",description:"Різноманітні файли"},{id:"Select",text:"Селект",description:"Список значень, а потім виберіть одне"},{id:"Badge",text:"Бейдж",description:"Стилізоване значення з переліку"}],validators:["required"]},{key:"enabled",type:"Switcher",ua:"Увімкнено",col:6}],_n=[{key:"name",type:"Text",ua:"Назва",placeholder:"Назва",validators:["required"]},{key:"template",type:"Text",ua:"Шаблон",placeholder:"Шаблон",validators:["required"]},{key:"description",type:"Text",ua:"Опис",placeholder:"Опис"}],Qa={class:"w-full flex justify-center"},Xa={class:"p-[20px] w-full max-w-[1440px]"},eo={class:"flex items-center justify-between"},to={class:"mt-[10px]"},ro={class:"flex items-end gap-1"},no={class:"font-medium text-2xl"},so={class:"text-gray-600 font-medium text-2xl"},ao={class:"text-gray-600"},oo={class:"flex items-center gap-1"},io={class:"w-full mt-[20px] bg-white rounded-xl"},lo={class:"flex justify-end p-[20px] gap-[10px] border-t w-full"},co={__name:"vs-builder-content",props:{UPDATE:Object},setup(e){var _;const t=ft(),r=(_=a.getCurrentInstance().proxy)==null?void 0:_.$notify,n=e,s=a.computed(()=>{var k;return(k=t==null?void 0:t.params)==null?void 0:k.id}),o=a.ref(null),i=a.ref([]),l=a.ref({}),d=a.ref(!1),c=a.ref(),f=async()=>{var k,y,p,V;try{const{data:g}=await O.get(`/api/cms-builder/${s.value}`);o.value=(k=g==null?void 0:g.rows)==null?void 0:k[0],l.value=(y=g==null?void 0:g.rows)==null?void 0:y[0],i.value=((V=(p=g==null?void 0:g.rows)==null?void 0:p[0])==null?void 0:V.columns)||[]}catch{}},h=async()=>{try{await O.put(`/api/cms-builder/${s.value}`,{...o.value,columns:i.value}),await r({type:"success",title:"Успішно!",message:"Дані оновлено успішно"}),await f()}catch(k){console.log(k),await r({type:"error",title:"Помилка!",message:"При спробі оновити дані виникла помилка"})}},b=async()=>{try{await c.value.doValidation(),await O.put(`/api/cms-builder/${s.value}`,l.value),await r({type:"success",title:"Успішно!",message:"Дані оновлено успішно"}),await f(),d.value=!1,n.UPDATE.getList()}catch(k){console.log(k),await r({type:"error",title:"Помилка!",message:"При спробі оновити дані виникла помилка"})}};a.watch(s,f),a.onMounted(()=>f());const S={key:"type",type:"Autocomplete",ua:"Тип",searchable:!1,options:[{id:"single",text:"Одиночний тип"},{id:"collection",text:"Колекція"}]};return(k,y)=>{var L,B,ne;const p=a.resolveComponent("VsDataTable"),V=a.resolveComponent("VsForm"),g=a.resolveComponent("VsDialog");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Qa,[a.createElementVNode("div",Xa,[a.createElementVNode("button",{onClick:y[0]||(y[0]=W=>k.$router.back()),class:"text-blue-500 flex gap-2 items-center hover:text-blue-700 duration-300"},[a.createVNode(yn),y[6]||(y[6]=a.createTextVNode(" Повернутися назад "))]),a.createElementVNode("div",eo,[a.createElementVNode("div",to,[a.createElementVNode("div",ro,[a.createElementVNode("h2",no,a.toDisplayString((L=o.value)==null?void 0:L.name)+" -",1),a.createElementVNode("span",so,a.toDisplayString((B=o.value)==null?void 0:B.template),1)]),a.createElementVNode("p",ao,a.toDisplayString((ne=o.value)==null?void 0:ne.description),1)]),a.createElementVNode("div",oo,[a.createElementVNode("button",{onClick:y[1]||(y[1]=W=>d.value=!0),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Редагувати "),a.createElementVNode("button",{onClick:h,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Зберегти ")])]),a.createElementVNode("div",null,[a.createElementVNode("div",io,[a.createVNode(p,{class:"w-full",colModel:a.unref(Ka),modelValue:i.value,"onUpdate:modelValue":y[2]||(y[2]=W=>i.value=W),addition:!1,import:!1,additionBottom:!0},null,8,["colModel","modelValue"])])])])]),a.createVNode(g,{title:"Редагувати",visible:d.value,"onUpdate:visible":y[5]||(y[5]=W=>d.value=W)},{footer:a.withCtx(()=>[a.createElementVNode("div",lo,[a.createElementVNode("button",{onClick:y[4]||(y[4]=W=>d.value=!1),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border rounded-lg border-gray-200 hover:bg-gray-100 duration-300"}," Скасувати"),a.createElementVNode("button",{onClick:b,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Зберегти ")])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(V,{modelValue:l.value,"onUpdate:modelValue":y[3]||(y[3]=W=>l.value=W),scheme:[...a.unref(_n),S],ref_key:"form",ref:c},null,8,["modelValue","scheme"])])]),_:1},8,["visible"])],64)}}};//! moment.js
11
11
  //! version : 2.30.1
12
12
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
13
13
  //! license : MIT
14
14
  //! momentjs.com
15
- var pn;function w(){return pn.apply(null,arguments)}function oo(e){pn=e}function X(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function De(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Zt(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(C(e,t))return!1;return!0}function z(e){return e===void 0}function ce(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function je(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function yn(e,t){var r=[],n,s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function ge(e,t){for(var r in t)C(t,r)&&(e[r]=t[r]);return C(t,"toString")&&(e.toString=t.toString),C(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ae(e,t,r,n){return Wn(e,t,r,n,!0).utc()}function io(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function N(e){return e._pf==null&&(e._pf=io()),e._pf}var Jt;Array.prototype.some?Jt=Array.prototype.some:Jt=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Kt(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=N(e),r=Jt.call(t.parsedDateParts,function(s){return s!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function ht(e){var t=ae(NaN);return e!=null?ge(N(t),e):N(t).userInvalidated=!0,t}var _n=w.momentProperties=[],Qt=!1;function Xt(e,t){var r,n,s,o=_n.length;if(z(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),z(t._i)||(e._i=t._i),z(t._f)||(e._f=t._f),z(t._l)||(e._l=t._l),z(t._strict)||(e._strict=t._strict),z(t._tzm)||(e._tzm=t._tzm),z(t._isUTC)||(e._isUTC=t._isUTC),z(t._offset)||(e._offset=t._offset),z(t._pf)||(e._pf=N(t)),z(t._locale)||(e._locale=t._locale),o>0)for(r=0;r<o;r++)n=_n[r],s=t[n],z(s)||(e[n]=s);return e}function He(e){Xt(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Qt===!1&&(Qt=!0,w.updateOffset(this),Qt=!1)}function ee(e){return e instanceof He||e!=null&&e._isAMomentObject!=null}function gn(e){w.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Z(e,t){var r=!0;return ge(function(){if(w.deprecationHandler!=null&&w.deprecationHandler(null,e),r){var n=[],s,o,i,l=arguments.length;for(o=0;o<l;o++){if(s="",typeof arguments[o]=="object"){s+=`
16
- [`+o+"] ";for(i in arguments[0])C(arguments[0],i)&&(s+=i+": "+arguments[0][i]+", ");s=s.slice(0,-2)}else s=arguments[o];n.push(s)}gn(e+`
15
+ var gn;function w(){return gn.apply(null,arguments)}function uo(e){gn=e}function X(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function De(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Jt(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(C(e,t))return!1;return!0}function z(e){return e===void 0}function ce(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function je(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function wn(e,t){var r=[],n,s=e.length;for(n=0;n<s;++n)r.push(t(e[n],n));return r}function ge(e,t){for(var r in t)C(t,r)&&(e[r]=t[r]);return C(t,"toString")&&(e.toString=t.toString),C(t,"valueOf")&&(e.valueOf=t.valueOf),e}function ae(e,t,r,n){return zn(e,t,r,n,!0).utc()}function fo(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function N(e){return e._pf==null&&(e._pf=fo()),e._pf}var Kt;Array.prototype.some?Kt=Array.prototype.some:Kt=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Qt(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=N(e),r=Kt.call(t.parsedDateParts,function(s){return s!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function ht(e){var t=ae(NaN);return e!=null?ge(N(t),e):N(t).userInvalidated=!0,t}var xn=w.momentProperties=[],Xt=!1;function er(e,t){var r,n,s,o=xn.length;if(z(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),z(t._i)||(e._i=t._i),z(t._f)||(e._f=t._f),z(t._l)||(e._l=t._l),z(t._strict)||(e._strict=t._strict),z(t._tzm)||(e._tzm=t._tzm),z(t._isUTC)||(e._isUTC=t._isUTC),z(t._offset)||(e._offset=t._offset),z(t._pf)||(e._pf=N(t)),z(t._locale)||(e._locale=t._locale),o>0)for(r=0;r<o;r++)n=xn[r],s=t[n],z(s)||(e[n]=s);return e}function He(e){er(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Xt===!1&&(Xt=!0,w.updateOffset(this),Xt=!1)}function ee(e){return e instanceof He||e!=null&&e._isAMomentObject!=null}function kn(e){w.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Z(e,t){var r=!0;return ge(function(){if(w.deprecationHandler!=null&&w.deprecationHandler(null,e),r){var n=[],s,o,i,l=arguments.length;for(o=0;o<l;o++){if(s="",typeof arguments[o]=="object"){s+=`
16
+ [`+o+"] ";for(i in arguments[0])C(arguments[0],i)&&(s+=i+": "+arguments[0][i]+", ");s=s.slice(0,-2)}else s=arguments[o];n.push(s)}kn(e+`
17
17
  Arguments: `+Array.prototype.slice.call(n).join("")+`
18
- `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var wn={};function xn(e,t){w.deprecationHandler!=null&&w.deprecationHandler(e,t),wn[e]||(gn(t),wn[e]=!0)}w.suppressDeprecationWarnings=!1,w.deprecationHandler=null;function oe(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function lo(e){var t,r;for(r in e)C(e,r)&&(t=e[r],oe(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function er(e,t){var r=ge({},e),n;for(n in t)C(t,n)&&(De(e[n])&&De(t[n])?(r[n]={},ge(r[n],e[n]),ge(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)C(e,n)&&!C(t,n)&&De(e[n])&&(r[n]=ge({},r[n]));return r}function tr(e){e!=null&&this.set(e)}var rr;Object.keys?rr=Object.keys:rr=function(e){var t,r=[];for(t in e)C(e,t)&&r.push(t);return r};var co={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function uo(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return oe(n)?n.call(t,r):n}function ie(e,t,r){var n=""+Math.abs(e),s=t-n.length,o=e>=0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var nr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,mt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,sr={},Re={};function D(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(Re[e]=s),t&&(Re[t[0]]=function(){return ie(s.apply(this,arguments),t[1],t[2])}),r&&(Re[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function fo(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ho(e){var t=e.match(nr),r,n;for(r=0,n=t.length;r<n;r++)Re[t[r]]?t[r]=Re[t[r]]:t[r]=fo(t[r]);return function(s){var o="",i;for(i=0;i<n;i++)o+=oe(t[i])?t[i].call(s,e):t[i];return o}}function pt(e,t){return e.isValid()?(t=kn(t,e.localeData()),sr[t]=sr[t]||ho(t),sr[t](e)):e.localeData().invalidDate()}function kn(e,t){var r=5;function n(s){return t.longDateFormat(s)||s}for(mt.lastIndex=0;r>=0&&mt.test(e);)e=e.replace(mt,n),mt.lastIndex=0,r-=1;return e}var mo={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function po(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(nr).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var yo="Invalid date";function _o(){return this._invalidDate}var go="%d",wo=/\d{1,2}/;function xo(e){return this._ordinal.replace("%d",e)}var ko={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function bo(e,t,r,n){var s=this._relativeTime[r];return oe(s)?s(e,t,r,n):s.replace(/%d/i,e)}function So(e,t){var r=this._relativeTime[e>0?"future":"past"];return oe(r)?r(t):r.replace(/%s/i,t)}var bn={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function J(e){return typeof e=="string"?bn[e]||bn[e.toLowerCase()]:void 0}function ar(e){var t={},r,n;for(n in e)C(e,n)&&(r=J(n),r&&(t[r]=e[n]));return t}var Do={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Eo(e){var t=[],r;for(r in e)C(e,r)&&t.push({unit:r,priority:Do[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var Sn=/\d/,G=/\d\d/,Dn=/\d{3}/,or=/\d{4}/,yt=/[+-]?\d{6}/,Y=/\d\d?/,En=/\d\d\d\d?/,Nn=/\d\d\d\d\d\d?/,_t=/\d{1,3}/,ir=/\d{1,4}/,gt=/[+-]?\d{1,6}/,Ve=/\d+/,wt=/[+-]?\d+/,No=/Z|[+-]\d\d:?\d\d/gi,xt=/Z|[+-]\d\d(?::?\d\d)?/gi,Oo=/[+-]?\d+(\.\d{1,3})?/,ze=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Pe=/^[1-9]\d?/,lr=/^([1-9]\d|\d)/,kt;kt={};function x(e,t,r){kt[e]=oe(t)?t:function(n,s){return n&&r?r:t}}function Mo(e,t){return C(kt,e)?kt[e](t._strict,t._locale):new RegExp(To(e))}function To(e){return de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,o){return r||n||s||o}))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=K(t)),r}var cr={};function P(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),ce(t)&&(n=function(o,i){i[t]=M(o)}),s=e.length,r=0;r<s;r++)cr[e[r]]=n}function qe(e,t){P(e,function(r,n,s,o){s._w=s._w||{},t(r,s._w,s,o)})}function Co(e,t,r){t!=null&&C(cr,e)&&cr[e](t,r._a,r,e)}function bt(e){return e%4===0&&e%100!==0||e%400===0}var I=0,ue=1,le=2,$=3,te=4,fe=5,Ee=6,Ro=7,Vo=8;D("Y",0,0,function(){var e=this.year();return e<=9999?ie(e,4):"+"+e}),D(0,["YY",2],0,function(){return this.year()%100}),D(0,["YYYY",4],0,"year"),D(0,["YYYYY",5],0,"year"),D(0,["YYYYYY",6,!0],0,"year"),x("Y",wt),x("YY",Y,G),x("YYYY",ir,or),x("YYYYY",gt,yt),x("YYYYYY",gt,yt),P(["YYYYY","YYYYYY"],I),P("YYYY",function(e,t){t[I]=e.length===2?w.parseTwoDigitYear(e):M(e)}),P("YY",function(e,t){t[I]=w.parseTwoDigitYear(e)}),P("Y",function(e,t){t[I]=parseInt(e,10)});function Ge(e){return bt(e)?366:365}w.parseTwoDigitYear=function(e){return M(e)+(M(e)>68?1900:2e3)};var On=Ye("FullYear",!0);function Po(){return bt(this.year())}function Ye(e,t){return function(r){return r!=null?(Mn(this,e,r),w.updateOffset(this,t),this):Ze(this,e)}}function Ze(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Mn(e,t,r){var n,s,o,i,l;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(s?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(s?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(s?n.setUTCHours(r):n.setHours(r));case"Date":return void(s?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}o=r,i=e.month(),l=e.date(),l=l===29&&i===1&&!bt(o)?28:l,s?n.setUTCFullYear(o,i,l):n.setFullYear(o,i,l)}}function Yo(e){return e=J(e),oe(this[e])?this[e]():this}function Ao(e,t){if(typeof e=="object"){e=ar(e);var r=Eo(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=J(e),oe(this[e]))return this[e](t);return this}function Fo(e,t){return(e%t+t)%t}var v;Array.prototype.indexOf?v=Array.prototype.indexOf:v=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function dr(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Fo(t,12);return e+=(t-r)/12,r===1?bt(e)?29:28:31-r%7%2}D("M",["MM",2],"Mo",function(){return this.month()+1}),D("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),D("MMMM",0,0,function(e){return this.localeData().months(this,e)}),x("M",Y,Pe),x("MM",Y,G),x("MMM",function(e,t){return t.monthsShortRegex(e)}),x("MMMM",function(e,t){return t.monthsRegex(e)}),P(["M","MM"],function(e,t){t[ue]=M(e)-1}),P(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[ue]=s:N(r).invalidMonth=e});var Bo="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Tn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Cn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,vo=ze,$o=ze;function Uo(e,t){return e?X(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Cn).test(t)?"format":"standalone"][e.month()]:X(this._months)?this._months:this._months.standalone}function Lo(e,t){return e?X(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Cn.test(t)?"format":"standalone"][e.month()]:X(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Io(e,t,r){var n,s,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=ae([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return r?t==="MMM"?(s=v.call(this._shortMonthsParse,i),s!==-1?s:null):(s=v.call(this._longMonthsParse,i),s!==-1?s:null):t==="MMM"?(s=v.call(this._shortMonthsParse,i),s!==-1?s:(s=v.call(this._longMonthsParse,i),s!==-1?s:null)):(s=v.call(this._longMonthsParse,i),s!==-1?s:(s=v.call(this._shortMonthsParse,i),s!==-1?s:null))}function Wo(e,t,r){var n,s,o;if(this._monthsParseExact)return Io.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=ae([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function Rn(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=M(t);else if(t=e.localeData().monthsParse(t),!ce(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,dr(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function Vn(e){return e!=null?(Rn(this,e),w.updateOffset(this,!0),this):Ze(this,"Month")}function jo(){return dr(this.year(),this.month())}function Ho(e){return this._monthsParseExact?(C(this,"_monthsRegex")||Pn.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(C(this,"_monthsShortRegex")||(this._monthsShortRegex=vo),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function zo(e){return this._monthsParseExact?(C(this,"_monthsRegex")||Pn.call(this),e?this._monthsStrictRegex:this._monthsRegex):(C(this,"_monthsRegex")||(this._monthsRegex=$o),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Pn(){function e(d,c){return c.length-d.length}var t=[],r=[],n=[],s,o,i,l;for(s=0;s<12;s++)o=ae([2e3,s]),i=de(this.monthsShort(o,"")),l=de(this.months(o,"")),t.push(i),r.push(l),n.push(l),n.push(i);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function qo(e,t,r,n,s,o,i){var l;return e<100&&e>=0?(l=new Date(e+400,t,r,n,s,o,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,r,n,s,o,i),l}function Je(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function St(e,t,r){var n=7+t-r,s=(7+Je(e,0,n).getUTCDay()-t)%7;return-s+n-1}function Yn(e,t,r,n,s){var o=(7+r-n)%7,i=St(e,n,s),l=1+7*(t-1)+o+i,d,c;return l<=0?(d=e-1,c=Ge(d)+l):l>Ge(e)?(d=e+1,c=l-Ge(e)):(d=e,c=l),{year:d,dayOfYear:c}}function Ke(e,t,r){var n=St(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,o,i;return s<1?(i=e.year()-1,o=s+he(i,t,r)):s>he(e.year(),t,r)?(o=s-he(e.year(),t,r),i=e.year()+1):(i=e.year(),o=s),{week:o,year:i}}function he(e,t,r){var n=St(e,t,r),s=St(e+1,t,r);return(Ge(e)-n+s)/7}D("w",["ww",2],"wo","week"),D("W",["WW",2],"Wo","isoWeek"),x("w",Y,Pe),x("ww",Y,G),x("W",Y,Pe),x("WW",Y,G),qe(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=M(e)});function Go(e){return Ke(e,this._week.dow,this._week.doy).week}var Zo={dow:0,doy:6};function Jo(){return this._week.dow}function Ko(){return this._week.doy}function Qo(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Xo(e){var t=Ke(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}D("d",0,"do","day"),D("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),D("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),D("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),D("e",0,0,"weekday"),D("E",0,0,"isoWeekday"),x("d",Y),x("e",Y),x("E",Y),x("dd",function(e,t){return t.weekdaysMinRegex(e)}),x("ddd",function(e,t){return t.weekdaysShortRegex(e)}),x("dddd",function(e,t){return t.weekdaysRegex(e)}),qe(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:N(r).invalidWeekday=e}),qe(["d","e","E"],function(e,t,r,n){t[n]=M(e)});function ei(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function ti(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ur(e,t){return e.slice(t,7).concat(e.slice(0,t))}var ri="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),An="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ni="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),si=ze,ai=ze,oi=ze;function ii(e,t){var r=X(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ur(r,this._week.dow):e?r[e.day()]:r}function li(e){return e===!0?ur(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ci(e){return e===!0?ur(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function di(e,t,r){var n,s,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=ae([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?t==="dddd"?(s=v.call(this._weekdaysParse,i),s!==-1?s:null):t==="ddd"?(s=v.call(this._shortWeekdaysParse,i),s!==-1?s:null):(s=v.call(this._minWeekdaysParse,i),s!==-1?s:null):t==="dddd"?(s=v.call(this._weekdaysParse,i),s!==-1||(s=v.call(this._shortWeekdaysParse,i),s!==-1)?s:(s=v.call(this._minWeekdaysParse,i),s!==-1?s:null)):t==="ddd"?(s=v.call(this._shortWeekdaysParse,i),s!==-1||(s=v.call(this._weekdaysParse,i),s!==-1)?s:(s=v.call(this._minWeekdaysParse,i),s!==-1?s:null)):(s=v.call(this._minWeekdaysParse,i),s!==-1||(s=v.call(this._weekdaysParse,i),s!==-1)?s:(s=v.call(this._shortWeekdaysParse,i),s!==-1?s:null))}function ui(e,t,r){var n,s,o;if(this._weekdaysParseExact)return di.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=ae([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function fi(e){if(!this.isValid())return e!=null?this:NaN;var t=Ze(this,"Day");return e!=null?(e=ei(e,this.localeData()),this.add(e-t,"d")):t}function hi(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function mi(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=ti(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function pi(e){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||fr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(C(this,"_weekdaysRegex")||(this._weekdaysRegex=si),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function yi(e){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||fr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(C(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ai),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function _i(e){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||fr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(C(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oi),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function fr(){function e(f,h){return h.length-f.length}var t=[],r=[],n=[],s=[],o,i,l,d,c;for(o=0;o<7;o++)i=ae([2e3,1]).day(o),l=de(this.weekdaysMin(i,"")),d=de(this.weekdaysShort(i,"")),c=de(this.weekdays(i,"")),t.push(l),r.push(d),n.push(c),s.push(l),s.push(d),s.push(c);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function hr(){return this.hours()%12||12}function gi(){return this.hours()||24}D("H",["HH",2],0,"hour"),D("h",["hh",2],0,hr),D("k",["kk",2],0,gi),D("hmm",0,0,function(){return""+hr.apply(this)+ie(this.minutes(),2)}),D("hmmss",0,0,function(){return""+hr.apply(this)+ie(this.minutes(),2)+ie(this.seconds(),2)}),D("Hmm",0,0,function(){return""+this.hours()+ie(this.minutes(),2)}),D("Hmmss",0,0,function(){return""+this.hours()+ie(this.minutes(),2)+ie(this.seconds(),2)});function Fn(e,t){D(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Fn("a",!0),Fn("A",!1);function Bn(e,t){return t._meridiemParse}x("a",Bn),x("A",Bn),x("H",Y,lr),x("h",Y,Pe),x("k",Y,Pe),x("HH",Y,G),x("hh",Y,G),x("kk",Y,G),x("hmm",En),x("hmmss",Nn),x("Hmm",En),x("Hmmss",Nn),P(["H","HH"],$),P(["k","kk"],function(e,t,r){var n=M(e);t[$]=n===24?0:n}),P(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),P(["h","hh"],function(e,t,r){t[$]=M(e),N(r).bigHour=!0}),P("hmm",function(e,t,r){var n=e.length-2;t[$]=M(e.substr(0,n)),t[te]=M(e.substr(n)),N(r).bigHour=!0}),P("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[$]=M(e.substr(0,n)),t[te]=M(e.substr(n,2)),t[fe]=M(e.substr(s)),N(r).bigHour=!0}),P("Hmm",function(e,t,r){var n=e.length-2;t[$]=M(e.substr(0,n)),t[te]=M(e.substr(n))}),P("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[$]=M(e.substr(0,n)),t[te]=M(e.substr(n,2)),t[fe]=M(e.substr(s))});function wi(e){return(e+"").toLowerCase().charAt(0)==="p"}var xi=/[ap]\.?m?\.?/i,ki=Ye("Hours",!0);function bi(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var vn={calendar:co,longDateFormat:mo,invalidDate:yo,ordinal:go,dayOfMonthOrdinalParse:wo,relativeTime:ko,months:Bo,monthsShort:Tn,week:Zo,weekdays:ri,weekdaysMin:ni,weekdaysShort:An,meridiemParse:xi},F={},Qe={},Xe;function Si(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function $n(e){return e&&e.toLowerCase().replace("_","-")}function Di(e){for(var t=0,r,n,s,o;t<e.length;){for(o=$n(e[t]).split("-"),r=o.length,n=$n(e[t+1]),n=n?n.split("-"):null;r>0;){if(s=Dt(o.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&Si(o,n)>=r-1)break;r--}t++}return Xe}function Ei(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Dt(e){var t=null,r;if(F[e]===void 0&&typeof module<"u"&&module&&module.exports&&Ei(e))try{t=Xe._abbr,r=require,r("./locale/"+e),we(t)}catch{F[e]=null}return F[e]}function we(e,t){var r;return e&&(z(t)?r=me(e):r=mr(e,t),r?Xe=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function mr(e,t){if(t!==null){var r,n=vn;if(t.abbr=e,F[e]!=null)xn("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=F[e]._config;else if(t.parentLocale!=null)if(F[t.parentLocale]!=null)n=F[t.parentLocale]._config;else if(r=Dt(t.parentLocale),r!=null)n=r._config;else return Qe[t.parentLocale]||(Qe[t.parentLocale]=[]),Qe[t.parentLocale].push({name:e,config:t}),null;return F[e]=new tr(er(n,t)),Qe[e]&&Qe[e].forEach(function(s){mr(s.name,s.config)}),we(e),F[e]}else return delete F[e],null}function Ni(e,t){if(t!=null){var r,n,s=vn;F[e]!=null&&F[e].parentLocale!=null?F[e].set(er(F[e]._config,t)):(n=Dt(e),n!=null&&(s=n._config),t=er(s,t),n==null&&(t.abbr=e),r=new tr(t),r.parentLocale=F[e],F[e]=r),we(e)}else F[e]!=null&&(F[e].parentLocale!=null?(F[e]=F[e].parentLocale,e===we()&&we(e)):F[e]!=null&&delete F[e]);return F[e]}function me(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!X(e)){if(t=Dt(e),t)return t;e=[e]}return Di(e)}function Oi(){return rr(F)}function pr(e){var t,r=e._a;return r&&N(e).overflow===-2&&(t=r[ue]<0||r[ue]>11?ue:r[le]<1||r[le]>dr(r[I],r[ue])?le:r[$]<0||r[$]>24||r[$]===24&&(r[te]!==0||r[fe]!==0||r[Ee]!==0)?$:r[te]<0||r[te]>59?te:r[fe]<0||r[fe]>59?fe:r[Ee]<0||r[Ee]>999?Ee:-1,N(e)._overflowDayOfYear&&(t<I||t>le)&&(t=le),N(e)._overflowWeeks&&t===-1&&(t=Ro),N(e)._overflowWeekday&&t===-1&&(t=Vo),N(e).overflow=t),e}var Mi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ti=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ci=/Z|[+-]\d\d(?::?\d\d)?/,Et=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],yr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ri=/^\/?Date\((-?\d+)/i,Vi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Pi={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Un(e){var t,r,n=e._i,s=Mi.exec(n)||Ti.exec(n),o,i,l,d,c=Et.length,f=yr.length;if(s){for(N(e).iso=!0,t=0,r=c;t<r;t++)if(Et[t][1].exec(s[1])){i=Et[t][0],o=Et[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(s[3]){for(t=0,r=f;t<r;t++)if(yr[t][1].exec(s[3])){l=(s[2]||" ")+yr[t][0];break}if(l==null){e._isValid=!1;return}}if(!o&&l!=null){e._isValid=!1;return}if(s[4])if(Ci.exec(s[4]))d="Z";else{e._isValid=!1;return}e._f=i+(l||"")+(d||""),gr(e)}else e._isValid=!1}function Yi(e,t,r,n,s,o){var i=[Ai(e),Tn.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return o&&i.push(parseInt(o,10)),i}function Ai(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Fi(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Bi(e,t,r){if(e){var n=An.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return N(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function vi(e,t,r){if(e)return Pi[e];if(t)return 0;var n=parseInt(r,10),s=n%100,o=(n-s)/100;return o*60+s}function Ln(e){var t=Vi.exec(Fi(e._i)),r;if(t){if(r=Yi(t[4],t[3],t[2],t[5],t[6],t[7]),!Bi(t[1],r,e))return;e._a=r,e._tzm=vi(t[8],t[9],t[10]),e._d=Je.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),N(e).rfc2822=!0}else e._isValid=!1}function $i(e){var t=Ri.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Un(e),e._isValid===!1)delete e._isValid;else return;if(Ln(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:w.createFromInputFallback(e)}w.createFromInputFallback=Z("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ae(e,t,r){return e??t??r}function Ui(e){var t=new Date(w.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function _r(e){var t,r,n=[],s,o,i;if(!e._d){for(s=Ui(e),e._w&&e._a[le]==null&&e._a[ue]==null&&Li(e),e._dayOfYear!=null&&(i=Ae(e._a[I],s[I]),(e._dayOfYear>Ge(i)||e._dayOfYear===0)&&(N(e)._overflowDayOfYear=!0),r=Je(i,0,e._dayOfYear),e._a[ue]=r.getUTCMonth(),e._a[le]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[$]===24&&e._a[te]===0&&e._a[fe]===0&&e._a[Ee]===0&&(e._nextDay=!0,e._a[$]=0),e._d=(e._useUTC?Je:qo).apply(null,n),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(N(e).weekdayMismatch=!0)}}function Li(e){var t,r,n,s,o,i,l,d,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,i=4,r=Ae(t.GG,e._a[I],Ke(A(),1,4).year),n=Ae(t.W,1),s=Ae(t.E,1),(s<1||s>7)&&(d=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,c=Ke(A(),o,i),r=Ae(t.gg,e._a[I],c.year),n=Ae(t.w,c.week),t.d!=null?(s=t.d,(s<0||s>6)&&(d=!0)):t.e!=null?(s=t.e+o,(t.e<0||t.e>6)&&(d=!0)):s=o),n<1||n>he(r,o,i)?N(e)._overflowWeeks=!0:d!=null?N(e)._overflowWeekday=!0:(l=Yn(r,n,s,o,i),e._a[I]=l.year,e._dayOfYear=l.dayOfYear)}w.ISO_8601=function(){},w.RFC_2822=function(){};function gr(e){if(e._f===w.ISO_8601){Un(e);return}if(e._f===w.RFC_2822){Ln(e);return}e._a=[],N(e).empty=!0;var t=""+e._i,r,n,s,o,i,l=t.length,d=0,c,f;for(s=kn(e._f,e._locale).match(nr)||[],f=s.length,r=0;r<f;r++)o=s[r],n=(t.match(Mo(o,e))||[])[0],n&&(i=t.substr(0,t.indexOf(n)),i.length>0&&N(e).unusedInput.push(i),t=t.slice(t.indexOf(n)+n.length),d+=n.length),Re[o]?(n?N(e).empty=!1:N(e).unusedTokens.push(o),Co(o,n,e)):e._strict&&!n&&N(e).unusedTokens.push(o);N(e).charsLeftOver=l-d,t.length>0&&N(e).unusedInput.push(t),e._a[$]<=12&&N(e).bigHour===!0&&e._a[$]>0&&(N(e).bigHour=void 0),N(e).parsedDateParts=e._a.slice(0),N(e).meridiem=e._meridiem,e._a[$]=Ii(e._locale,e._a[$],e._meridiem),c=N(e).era,c!==null&&(e._a[I]=e._locale.erasConvertYear(c,e._a[I])),_r(e),pr(e)}function Ii(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function Wi(e){var t,r,n,s,o,i,l=!1,d=e._f.length;if(d===0){N(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<d;s++)o=0,i=!1,t=Xt({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],gr(t),Kt(t)&&(i=!0),o+=N(t).charsLeftOver,o+=N(t).unusedTokens.length*10,N(t).score=o,l?o<n&&(n=o,r=t):(n==null||o<n||i)&&(n=o,r=t,i&&(l=!0));ge(e,r||t)}function ji(e){if(!e._d){var t=ar(e._i),r=t.day===void 0?t.date:t.day;e._a=yn([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),_r(e)}}function Hi(e){var t=new He(pr(In(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function In(e){var t=e._i,r=e._f;return e._locale=e._locale||me(e._l),t===null||r===void 0&&t===""?ht({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ee(t)?new He(pr(t)):(je(t)?e._d=t:X(r)?Wi(e):r?gr(e):zi(e),Kt(e)||(e._d=null),e))}function zi(e){var t=e._i;z(t)?e._d=new Date(w.now()):je(t)?e._d=new Date(t.valueOf()):typeof t=="string"?$i(e):X(t)?(e._a=yn(t.slice(0),function(r){return parseInt(r,10)}),_r(e)):De(t)?ji(e):ce(t)?e._d=new Date(t):w.createFromInputFallback(e)}function Wn(e,t,r,n,s){var o={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(De(e)&&Zt(e)||X(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=s,o._l=r,o._i=e,o._f=t,o._strict=n,Hi(o)}function A(e,t,r,n){return Wn(e,t,r,n,!1)}var qi=Z("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=A.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ht()}),Gi=Z("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=A.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ht()});function jn(e,t){var r,n;if(t.length===1&&X(t[0])&&(t=t[0]),!t.length)return A();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function Zi(){var e=[].slice.call(arguments,0);return jn("isBefore",e)}function Ji(){var e=[].slice.call(arguments,0);return jn("isAfter",e)}var Ki=function(){return Date.now?Date.now():+new Date},et=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Qi(e){var t,r=!1,n,s=et.length;for(t in e)if(C(e,t)&&!(v.call(et,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[et[n]]){if(r)return!1;parseFloat(e[et[n]])!==M(e[et[n]])&&(r=!0)}return!0}function Xi(){return this._isValid}function el(){return re(NaN)}function Nt(e){var t=ar(e),r=t.year||0,n=t.quarter||0,s=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,d=t.minute||0,c=t.second||0,f=t.millisecond||0;this._isValid=Qi(t),this._milliseconds=+f+c*1e3+d*6e4+l*1e3*60*60,this._days=+i+o*7,this._months=+s+n*3+r*12,this._data={},this._locale=me(),this._bubble()}function Ot(e){return e instanceof Nt}function wr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function tl(e,t,r){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0,i;for(i=0;i<n;i++)M(e[i])!==M(t[i])&&o++;return o+s}function Hn(e,t){D(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+ie(~~(r/60),2)+t+ie(~~r%60,2)})}Hn("Z",":"),Hn("ZZ",""),x("Z",xt),x("ZZ",xt),P(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=xr(xt,e)});var rl=/([\+\-]|\d\d)/gi;function xr(e,t){var r=(t||"").match(e),n,s,o;return r===null?null:(n=r[r.length-1]||[],s=(n+"").match(rl)||["-",0,0],o=+(s[1]*60)+M(s[2]),o===0?0:s[0]==="+"?o:-o)}function kr(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(ee(e)||je(e)?e.valueOf():A(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),w.updateOffset(r,!1),r):A(e).local()}function br(e){return-Math.round(e._d.getTimezoneOffset())}w.updateOffset=function(){};function nl(e,t,r){var n=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=xr(xt,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=br(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?Zn(this,re(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,w.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:br(this)}function sl(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function al(e){return this.utcOffset(0,e)}function ol(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(br(this),"m")),this}function il(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=xr(No,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ll(e){return this.isValid()?(e=e?A(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function cl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function dl(){if(!z(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Xt(e,this),e=In(e),e._a?(t=e._isUTC?ae(e._a):A(e._a),this._isDSTShifted=this.isValid()&&tl(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function ul(){return this.isValid()?!this._isUTC:!1}function fl(){return this.isValid()?this._isUTC:!1}function zn(){return this.isValid()?this._isUTC&&this._offset===0:!1}var hl=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ml=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function re(e,t){var r=e,n=null,s,o,i;return Ot(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ce(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=hl.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:M(n[le])*s,h:M(n[$])*s,m:M(n[te])*s,s:M(n[fe])*s,ms:M(wr(n[Ee]*1e3))*s}):(n=ml.exec(e))?(s=n[1]==="-"?-1:1,r={y:Ne(n[2],s),M:Ne(n[3],s),w:Ne(n[4],s),d:Ne(n[5],s),h:Ne(n[6],s),m:Ne(n[7],s),s:Ne(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=pl(A(r.from),A(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),o=new Nt(r),Ot(e)&&C(e,"_locale")&&(o._locale=e._locale),Ot(e)&&C(e,"_isValid")&&(o._isValid=e._isValid),o}re.fn=Nt.prototype,re.invalid=el;function Ne(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function qn(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function pl(e,t){var r;return e.isValid()&&t.isValid()?(t=kr(t,e),e.isBefore(t)?r=qn(e,t):(r=qn(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Gn(e,t){return function(r,n){var s,o;return n!==null&&!isNaN(+n)&&(xn(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=n,n=o),s=re(r,n),Zn(this,s,e),this}}function Zn(e,t,r,n){var s=t._milliseconds,o=wr(t._days),i=wr(t._months);e.isValid()&&(n=n??!0,i&&Rn(e,Ze(e,"Month")+i*r),o&&Mn(e,"Date",Ze(e,"Date")+o*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&w.updateOffset(e,o||i))}var yl=Gn(1,"add"),_l=Gn(-1,"subtract");function Jn(e){return typeof e=="string"||e instanceof String}function gl(e){return ee(e)||je(e)||Jn(e)||ce(e)||xl(e)||wl(e)||e===null||e===void 0}function wl(e){var t=De(e)&&!Zt(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,o,i=n.length;for(s=0;s<i;s+=1)o=n[s],r=r||C(e,o);return t&&r}function xl(e){var t=X(e),r=!1;return t&&(r=e.filter(function(n){return!ce(n)&&Jn(e)}).length===0),t&&r}function kl(e){var t=De(e)&&!Zt(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,o;for(s=0;s<n.length;s+=1)o=n[s],r=r||C(e,o);return t&&r}function bl(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Sl(e,t){arguments.length===1&&(arguments[0]?gl(arguments[0])?(e=arguments[0],t=void 0):kl(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||A(),n=kr(r,this).startOf("day"),s=w.calendarFormat(this,n)||"sameElse",o=t&&(oe(t[s])?t[s].call(this,r):t[s]);return this.format(o||this.localeData().calendar(s,this,A(r)))}function Dl(){return new He(this)}function El(e,t){var r=ee(e)?e:A(e);return this.isValid()&&r.isValid()?(t=J(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Nl(e,t){var r=ee(e)?e:A(e);return this.isValid()&&r.isValid()?(t=J(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Ol(e,t,r,n){var s=ee(e)?e:A(e),o=ee(t)?t:A(t);return this.isValid()&&s.isValid()&&o.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(n[1]===")"?this.isBefore(o,r):!this.isAfter(o,r))):!1}function Ml(e,t){var r=ee(e)?e:A(e),n;return this.isValid()&&r.isValid()?(t=J(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function Tl(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Cl(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Rl(e,t,r){var n,s,o;if(!this.isValid())return NaN;if(n=kr(e,this),!n.isValid())return NaN;switch(s=(n.utcOffset()-this.utcOffset())*6e4,t=J(t),t){case"year":o=Mt(this,n)/12;break;case"month":o=Mt(this,n);break;case"quarter":o=Mt(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-s)/864e5;break;case"week":o=(this-n-s)/6048e5;break;default:o=this-n}return r?o:K(o)}function Mt(e,t){if(e.date()<t.date())return-Mt(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),s,o;return t-n<0?(s=e.clone().add(r-1,"months"),o=(t-n)/(n-s)):(s=e.clone().add(r+1,"months"),o=(t-n)/(s-n)),-(r+o)||0}w.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",w.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Vl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Pl(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?pt(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):oe(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",pt(r,"Z")):pt(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Yl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(r+n+s+o)}function Al(e){e||(e=this.isUtc()?w.defaultFormatUtc:w.defaultFormat);var t=pt(this,e);return this.localeData().postformat(t)}function Fl(e,t){return this.isValid()&&(ee(e)&&e.isValid()||A(e).isValid())?re({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Bl(e){return this.from(A(),e)}function vl(e,t){return this.isValid()&&(ee(e)&&e.isValid()||A(e).isValid())?re({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function $l(e){return this.to(A(),e)}function Kn(e){var t;return e===void 0?this._locale._abbr:(t=me(e),t!=null&&(this._locale=t),this)}var Qn=Z("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Xn(){return this._locale}var Tt=1e3,Fe=60*Tt,Ct=60*Fe,es=(365*400+97)*24*Ct;function Be(e,t){return(e%t+t)%t}function ts(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-es:new Date(e,t,r).valueOf()}function rs(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-es:Date.UTC(e,t,r)}function Ul(e){var t,r;if(e=J(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?rs:ts,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Be(t+(this._isUTC?0:this.utcOffset()*Fe),Ct);break;case"minute":t=this._d.valueOf(),t-=Be(t,Fe);break;case"second":t=this._d.valueOf(),t-=Be(t,Tt);break}return this._d.setTime(t),w.updateOffset(this,!0),this}function Ll(e){var t,r;if(e=J(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?rs:ts,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ct-Be(t+(this._isUTC?0:this.utcOffset()*Fe),Ct)-1;break;case"minute":t=this._d.valueOf(),t+=Fe-Be(t,Fe)-1;break;case"second":t=this._d.valueOf(),t+=Tt-Be(t,Tt)-1;break}return this._d.setTime(t),w.updateOffset(this,!0),this}function Il(){return this._d.valueOf()-(this._offset||0)*6e4}function Wl(){return Math.floor(this.valueOf()/1e3)}function jl(){return new Date(this.valueOf())}function Hl(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function zl(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ql(){return this.isValid()?this.toISOString():null}function Gl(){return Kt(this)}function Zl(){return ge({},N(this))}function Jl(){return N(this).overflow}function Kl(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}D("N",0,0,"eraAbbr"),D("NN",0,0,"eraAbbr"),D("NNN",0,0,"eraAbbr"),D("NNNN",0,0,"eraName"),D("NNNNN",0,0,"eraNarrow"),D("y",["y",1],"yo","eraYear"),D("y",["yy",2],0,"eraYear"),D("y",["yyy",3],0,"eraYear"),D("y",["yyyy",4],0,"eraYear"),x("N",Sr),x("NN",Sr),x("NNN",Sr),x("NNNN",lc),x("NNNNN",cc),P(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?N(r).era=s:N(r).invalidEra=e}),x("y",Ve),x("yy",Ve),x("yyy",Ve),x("yyyy",Ve),x("yo",dc),P(["y","yy","yyy","yyyy"],I),P(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[I]=r._locale.eraYearOrdinalParse(e,s):t[I]=parseInt(e,10)});function Ql(e,t){var r,n,s,o=this._eras||me("en")._eras;for(r=0,n=o.length;r<n;++r){switch(typeof o[r].since){case"string":s=w(o[r].since).startOf("day"),o[r].since=s.valueOf();break}switch(typeof o[r].until){case"undefined":o[r].until=1/0;break;case"string":s=w(o[r].until).startOf("day").valueOf(),o[r].until=s.valueOf();break}}return o}function Xl(e,t,r){var n,s,o=this.eras(),i,l,d;for(e=e.toUpperCase(),n=0,s=o.length;n<s;++n)if(i=o[n].name.toUpperCase(),l=o[n].abbr.toUpperCase(),d=o[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(l===e)return o[n];break;case"NNNN":if(i===e)return o[n];break;case"NNNNN":if(d===e)return o[n];break}else if([i,l,d].indexOf(e)>=0)return o[n]}function ec(e,t){var r=e.since<=e.until?1:-1;return t===void 0?w(e.since).year():w(e.since).year()+(t-e.offset)*r}function tc(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function rc(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function nc(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function sc(){var e,t,r,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return(this.year()-w(s[e].since).year())*r+s[e].offset;return this.year()}function ac(e){return C(this,"_erasNameRegex")||Dr.call(this),e?this._erasNameRegex:this._erasRegex}function oc(e){return C(this,"_erasAbbrRegex")||Dr.call(this),e?this._erasAbbrRegex:this._erasRegex}function ic(e){return C(this,"_erasNarrowRegex")||Dr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Sr(e,t){return t.erasAbbrRegex(e)}function lc(e,t){return t.erasNameRegex(e)}function cc(e,t){return t.erasNarrowRegex(e)}function dc(e,t){return t._eraYearOrdinalRegex||Ve}function Dr(){var e=[],t=[],r=[],n=[],s,o,i,l,d,c=this.eras();for(s=0,o=c.length;s<o;++s)i=de(c[s].name),l=de(c[s].abbr),d=de(c[s].narrow),t.push(i),e.push(l),r.push(d),n.push(i),n.push(l),n.push(d);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}D(0,["gg",2],0,function(){return this.weekYear()%100}),D(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Rt(e,t){D(0,[e,e.length],0,t)}Rt("gggg","weekYear"),Rt("ggggg","weekYear"),Rt("GGGG","isoWeekYear"),Rt("GGGGG","isoWeekYear"),x("G",wt),x("g",wt),x("GG",Y,G),x("gg",Y,G),x("GGGG",ir,or),x("gggg",ir,or),x("GGGGG",gt,yt),x("ggggg",gt,yt),qe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=M(e)}),qe(["gg","GG"],function(e,t,r,n){t[n]=w.parseTwoDigitYear(e)});function uc(e){return ns.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function fc(e){return ns.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function hc(){return he(this.year(),1,4)}function mc(){return he(this.isoWeekYear(),1,4)}function pc(){var e=this.localeData()._week;return he(this.year(),e.dow,e.doy)}function yc(){var e=this.localeData()._week;return he(this.weekYear(),e.dow,e.doy)}function ns(e,t,r,n,s){var o;return e==null?Ke(this,n,s).year:(o=he(e,n,s),t>o&&(t=o),_c.call(this,e,t,r,n,s))}function _c(e,t,r,n,s){var o=Yn(e,t,r,n,s),i=Je(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}D("Q",0,"Qo","quarter"),x("Q",Sn),P("Q",function(e,t){t[ue]=(M(e)-1)*3});function gc(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}D("D",["DD",2],"Do","date"),x("D",Y,Pe),x("DD",Y,G),x("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),P(["D","DD"],le),P("Do",function(e,t){t[le]=M(e.match(Y)[0])});var ss=Ye("Date",!0);D("DDD",["DDDD",3],"DDDo","dayOfYear"),x("DDD",_t),x("DDDD",Dn),P(["DDD","DDDD"],function(e,t,r){r._dayOfYear=M(e)});function wc(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}D("m",["mm",2],0,"minute"),x("m",Y,lr),x("mm",Y,G),P(["m","mm"],te);var xc=Ye("Minutes",!1);D("s",["ss",2],0,"second"),x("s",Y,lr),x("ss",Y,G),P(["s","ss"],fe);var kc=Ye("Seconds",!1);D("S",0,0,function(){return~~(this.millisecond()/100)}),D(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,function(){return this.millisecond()*10}),D(0,["SSSSS",5],0,function(){return this.millisecond()*100}),D(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),D(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),D(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),D(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),x("S",_t,Sn),x("SS",_t,G),x("SSS",_t,Dn);var xe,as;for(xe="SSSS";xe.length<=9;xe+="S")x(xe,Ve);function bc(e,t){t[Ee]=M(("0."+e)*1e3)}for(xe="S";xe.length<=9;xe+="S")P(xe,bc);as=Ye("Milliseconds",!1),D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName");function Sc(){return this._isUTC?"UTC":""}function Dc(){return this._isUTC?"Coordinated Universal Time":""}var m=He.prototype;m.add=yl,m.calendar=Sl,m.clone=Dl,m.diff=Rl,m.endOf=Ll,m.format=Al,m.from=Fl,m.fromNow=Bl,m.to=vl,m.toNow=$l,m.get=Yo,m.invalidAt=Jl,m.isAfter=El,m.isBefore=Nl,m.isBetween=Ol,m.isSame=Ml,m.isSameOrAfter=Tl,m.isSameOrBefore=Cl,m.isValid=Gl,m.lang=Qn,m.locale=Kn,m.localeData=Xn,m.max=Gi,m.min=qi,m.parsingFlags=Zl,m.set=Ao,m.startOf=Ul,m.subtract=_l,m.toArray=Hl,m.toObject=zl,m.toDate=jl,m.toISOString=Pl,m.inspect=Yl,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=ql,m.toString=Vl,m.unix=Wl,m.valueOf=Il,m.creationData=Kl,m.eraName=tc,m.eraNarrow=rc,m.eraAbbr=nc,m.eraYear=sc,m.year=On,m.isLeapYear=Po,m.weekYear=uc,m.isoWeekYear=fc,m.quarter=m.quarters=gc,m.month=Vn,m.daysInMonth=jo,m.week=m.weeks=Qo,m.isoWeek=m.isoWeeks=Xo,m.weeksInYear=pc,m.weeksInWeekYear=yc,m.isoWeeksInYear=hc,m.isoWeeksInISOWeekYear=mc,m.date=ss,m.day=m.days=fi,m.weekday=hi,m.isoWeekday=mi,m.dayOfYear=wc,m.hour=m.hours=ki,m.minute=m.minutes=xc,m.second=m.seconds=kc,m.millisecond=m.milliseconds=as,m.utcOffset=nl,m.utc=al,m.local=ol,m.parseZone=il,m.hasAlignedHourOffset=ll,m.isDST=cl,m.isLocal=ul,m.isUtcOffset=fl,m.isUtc=zn,m.isUTC=zn,m.zoneAbbr=Sc,m.zoneName=Dc,m.dates=Z("dates accessor is deprecated. Use date instead.",ss),m.months=Z("months accessor is deprecated. Use month instead",Vn),m.years=Z("years accessor is deprecated. Use year instead",On),m.zone=Z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",sl),m.isDSTShifted=Z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",dl);function Ec(e){return A(e*1e3)}function Nc(){return A.apply(null,arguments).parseZone()}function os(e){return e}var R=tr.prototype;R.calendar=uo,R.longDateFormat=po,R.invalidDate=_o,R.ordinal=xo,R.preparse=os,R.postformat=os,R.relativeTime=bo,R.pastFuture=So,R.set=lo,R.eras=Ql,R.erasParse=Xl,R.erasConvertYear=ec,R.erasAbbrRegex=oc,R.erasNameRegex=ac,R.erasNarrowRegex=ic,R.months=Uo,R.monthsShort=Lo,R.monthsParse=Wo,R.monthsRegex=zo,R.monthsShortRegex=Ho,R.week=Go,R.firstDayOfYear=Ko,R.firstDayOfWeek=Jo,R.weekdays=ii,R.weekdaysMin=ci,R.weekdaysShort=li,R.weekdaysParse=ui,R.weekdaysRegex=pi,R.weekdaysShortRegex=yi,R.weekdaysMinRegex=_i,R.isPM=wi,R.meridiem=bi;function Vt(e,t,r,n){var s=me(),o=ae().set(n,t);return s[r](o,e)}function is(e,t,r){if(ce(e)&&(t=e,e=void 0),e=e||"",t!=null)return Vt(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Vt(e,n,r,"month");return s}function Er(e,t,r,n){typeof e=="boolean"?(ce(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ce(t)&&(r=t,t=void 0),t=t||"");var s=me(),o=e?s._week.dow:0,i,l=[];if(r!=null)return Vt(t,(r+o)%7,n,"day");for(i=0;i<7;i++)l[i]=Vt(t,(i+o)%7,n,"day");return l}function Oc(e,t){return is(e,t,"months")}function Mc(e,t){return is(e,t,"monthsShort")}function Tc(e,t,r){return Er(e,t,r,"weekdays")}function Cc(e,t,r){return Er(e,t,r,"weekdaysShort")}function Rc(e,t,r){return Er(e,t,r,"weekdaysMin")}we("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=M(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),w.lang=Z("moment.lang is deprecated. Use moment.locale instead.",we),w.langData=Z("moment.langData is deprecated. Use moment.localeData instead.",me);var pe=Math.abs;function Vc(){var e=this._data;return this._milliseconds=pe(this._milliseconds),this._days=pe(this._days),this._months=pe(this._months),e.milliseconds=pe(e.milliseconds),e.seconds=pe(e.seconds),e.minutes=pe(e.minutes),e.hours=pe(e.hours),e.months=pe(e.months),e.years=pe(e.years),this}function ls(e,t,r,n){var s=re(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function Pc(e,t){return ls(this,e,t,1)}function Yc(e,t){return ls(this,e,t,-1)}function cs(e){return e<0?Math.floor(e):Math.ceil(e)}function Ac(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,o,i,l,d;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=cs(Nr(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=K(e/1e3),n.seconds=s%60,o=K(s/60),n.minutes=o%60,i=K(o/60),n.hours=i%24,t+=K(i/24),d=K(ds(t)),r+=d,t-=cs(Nr(d)),l=K(r/12),r%=12,n.days=t,n.months=r,n.years=l,this}function ds(e){return e*4800/146097}function Nr(e){return e*146097/4800}function Fc(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=J(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+ds(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Nr(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function ye(e){return function(){return this.as(e)}}var us=ye("ms"),Bc=ye("s"),vc=ye("m"),$c=ye("h"),Uc=ye("d"),Lc=ye("w"),Ic=ye("M"),Wc=ye("Q"),jc=ye("y"),Hc=us;function zc(){return re(this)}function qc(e){return e=J(e),this.isValid()?this[e+"s"]():NaN}function Oe(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gc=Oe("milliseconds"),Zc=Oe("seconds"),Jc=Oe("minutes"),Kc=Oe("hours"),Qc=Oe("days"),Xc=Oe("months"),ed=Oe("years");function td(){return K(this.days()/7)}var _e=Math.round,ve={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rd(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function nd(e,t,r,n){var s=re(e).abs(),o=_e(s.as("s")),i=_e(s.as("m")),l=_e(s.as("h")),d=_e(s.as("d")),c=_e(s.as("M")),f=_e(s.as("w")),h=_e(s.as("y")),b=o<=r.ss&&["s",o]||o<r.s&&["ss",o]||i<=1&&["m"]||i<r.m&&["mm",i]||l<=1&&["h"]||l<r.h&&["hh",l]||d<=1&&["d"]||d<r.d&&["dd",d];return r.w!=null&&(b=b||f<=1&&["w"]||f<r.w&&["ww",f]),b=b||c<=1&&["M"]||c<r.M&&["MM",c]||h<=1&&["y"]||["yy",h],b[2]=t,b[3]=+e>0,b[4]=n,rd.apply(null,b)}function sd(e){return e===void 0?_e:typeof e=="function"?(_e=e,!0):!1}function ad(e,t){return ve[e]===void 0?!1:t===void 0?ve[e]:(ve[e]=t,e==="s"&&(ve.ss=t-1),!0)}function od(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=ve,s,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},ve,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),o=nd(this,!r,n,s),r&&(o=s.pastFuture(+this,o)),s.postformat(o)}var Or=Math.abs;function $e(e){return(e>0)-(e<0)||+e}function Pt(){if(!this.isValid())return this.localeData().invalidDate();var e=Or(this._milliseconds)/1e3,t=Or(this._days),r=Or(this._months),n,s,o,i,l=this.asSeconds(),d,c,f,h;return l?(n=K(e/60),s=K(n/60),e%=60,n%=60,o=K(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=l<0?"-":"",c=$e(this._months)!==$e(l)?"-":"",f=$e(this._days)!==$e(l)?"-":"",h=$e(this._milliseconds)!==$e(l)?"-":"",d+"P"+(o?c+o+"Y":"")+(r?c+r+"M":"")+(t?f+t+"D":"")+(s||n||e?"T":"")+(s?h+s+"H":"")+(n?h+n+"M":"")+(e?h+i+"S":"")):"P0D"}var T=Nt.prototype;T.isValid=Xi,T.abs=Vc,T.add=Pc,T.subtract=Yc,T.as=Fc,T.asMilliseconds=us,T.asSeconds=Bc,T.asMinutes=vc,T.asHours=$c,T.asDays=Uc,T.asWeeks=Lc,T.asMonths=Ic,T.asQuarters=Wc,T.asYears=jc,T.valueOf=Hc,T._bubble=Ac,T.clone=zc,T.get=qc,T.milliseconds=Gc,T.seconds=Zc,T.minutes=Jc,T.hours=Kc,T.days=Qc,T.weeks=td,T.months=Xc,T.years=ed,T.humanize=od,T.toISOString=Pt,T.toString=Pt,T.toJSON=Pt,T.locale=Kn,T.localeData=Xn,T.toIsoString=Z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pt),T.lang=Qn,D("X",0,0,"unix"),D("x",0,0,"valueOf"),x("x",wt),x("X",Oo),P("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),P("x",function(e,t,r){r._d=new Date(M(e))});//! moment.js
19
- w.version="2.30.1",oo(A),w.fn=m,w.min=Zi,w.max=Ji,w.now=Ki,w.utc=ae,w.unix=Ec,w.months=Oc,w.isDate=je,w.locale=we,w.invalid=ht,w.duration=re,w.isMoment=ee,w.weekdays=Tc,w.parseZone=Nc,w.localeData=me,w.isDuration=Ot,w.monthsShort=Mc,w.weekdaysMin=Rc,w.defineLocale=mr,w.updateLocale=Ni,w.locales=Oi,w.weekdaysShort=Cc,w.normalizeUnits=J,w.relativeTimeRounding=sd,w.relativeTimeThreshold=ad,w.calendarFormat=bl,w.prototype=m,w.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const id={class:"whitespace-nowrap"},ld={__name:"vs-manager-table-date",props:{value:{type:String,default:()=>""}},setup(e){const t=e,r=a.computed(()=>{if(!t.value)return"-";try{const n=w(t.value,"YYYY-MM-DD");return new Date(n).toLocaleDateString("uk-UA",{day:"2-digit",month:"long",year:"numeric"})}catch{return t.value}});return(n,s)=>(a.openBlock(),a.createElementBlock("div",id,a.toDisplayString(r.value),1))}},cd={},dd={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-check"};function ud(e,t,r,n,s,o){return a.openBlock(),a.createElementBlock("svg",dd,t[0]||(t[0]=[a.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),a.createElementVNode("path",{d:"M5 12l5 5l10 -10"},null,-1)]))}const fd=j(cd,[["render",ud]]),fs={__name:"vs-manager-table-switch",props:{value:{type:Boolean,default:()=>!1}},setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["w-[20px] h-[20px] rounded-md flex items-center justify-center disabled",[e.value?"bg-blue-400":"border"]])},[a.createVNode(fd,{height:"18",width:"18",class:"text-white"})],2))}},hd={switch:fs,switcher:fs,date:ld},md={props:{title:{type:String,default:()=>"Дані для відображення відсутні"},text:{type:String,default:()=>"Змініть параметри пошуку або спробуйте пізніше"}}},pd={class:"w-full"},yd={class:"p-5 min-h-[500px] flex flex-col justify-center items-center text-center"},_d={class:"max-w-sm mx-auto mt-6"},gd={class:"font-medium text-gray-800 dark:text-neutral-200"},wd={class:"mt-2 text-sm text-gray-500 dark:text-neutral-500"};function xd(e,t,r,n,s,o){return a.openBlock(),a.createElementBlock("div",pd,[a.createElementVNode("div",yd,[t[0]||(t[0]=a.createStaticVNode('<svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>',1)),a.createElementVNode("div",_d,[a.createElementVNode("p",gd,a.toDisplayString(r.title),1),a.createElementVNode("p",wd,a.toDisplayString(r.text),1)])])])}const Yt=j(md,[["render",xd]]),kd={class:"w-full"},bd={key:0,class:"relative min-w-full divide-y-2 divide-gray-200 bg-white text-[12px]"},Sd={class:"sticky top-[0px] z-[1] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200"},Dd={class:"divide-y divide-gray-200 dark:divide-neutral-700"},Ed=["onClick"],Nd={class:"px-4 py-2 text-gray-700 max-w-[250px] admin-component-is"},Od={__name:"vs-manager-collection-table",props:{objectData:Object,template:String},setup(e){const t=[{ua:"Назва",name:"title",format:"Text"},{ua:"Шлях",name:"url",format:"Text"},{ua:"Чи увімкнений",name:"enabled",format:"Switch"},{ua:"Дата створення",name:"cdate",format:"Date"}];return(r,n)=>{var s,o,i;return a.openBlock(),a.createElementBlock("div",kd,[(o=(s=e.objectData)==null?void 0:s.rows)!=null&&o.length?(a.openBlock(),a.createElementBlock("table",bd,[a.createElementVNode("thead",Sd,[a.createElementVNode("tr",null,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(t,(l,d)=>a.createElementVNode("th",{key:d,class:"text-start px-4 py-2 font-medium text-gray-900 max-w-[250px]"},a.toDisplayString(l==null?void 0:l.ua),1)),64))])]),a.createElementVNode("tbody",Dd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((i=e.objectData)==null?void 0:i.rows,l=>(a.openBlock(),a.createElementBlock("tr",{class:"odd:bg-gray-50",onClick:d=>r.$router.push(`/cms/manager/collection/${e.template}/${l==null?void 0:l.id}`)},[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(t,d=>{var c;return a.createElementVNode("td",Nd,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(hd)[(c=d==null?void 0:d.format)==null?void 0:c.toLowerCase()]||"div"),{value:l==null?void 0:l[d==null?void 0:d.name]},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l==null?void 0:l[d==null?void 0:d.name]),1)]),_:2},1032,["value"]))])}),64))],8,Ed))),256))])])):(a.openBlock(),a.createBlock(Yt,{key:1}))])}}},Md=e=>{const t={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"e",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"ts",ч:"ch",ш:"sh",щ:"shch",ы:"y",э:"e",ю:"yu",я:"ya",ь:"",ъ:"",є:"ye",і:"i",ї:"yi",ґ:"g"};return e.toLowerCase().split("").map(r=>t[r]||r).join("").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim("-")},Td={class:"flex justify-end p-[20px] gap-[10px] border-t w-full"},Cd={__name:"vs-manager-colection-table-add",props:{template:{type:String,default:()=>""}},emits:["update-list"],setup(e,{emit:t}){const r=a.getCurrentInstance().proxy.$notify,n=t,s=e,o=a.ref(!1),i=a.ref({}),l=a.ref(),d=async()=>{try{await l.value.doValidation(),i.value.url=Md(i.value.title),await O.post(`/api/cms-manager/${s.template}`,i.value),r({type:"success",title:"Успушно!",message:"Об'єкт створено успішно"}),i.value={},o.value=!1,n("update-list")}catch{r({type:"error",title:"Помилка!",message:"При спробі створити об'єкт сталася помилка"})}},c=[{key:"title",ua:"Назва",type:"Text",placeholder:"Назва",validators:["required"]},{key:"body",ua:"Контент",type:"TextEditor",validators:["required"]},{ua:"Чи увімкнений",name:"enabled",type:"Switcher"}];return(f,h)=>{const b=a.resolveComponent("VsForm"),S=a.resolveComponent("VsDialog");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("button",{onClick:h[0]||(h[0]=_=>o.value=!0),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Створити "),a.createVNode(S,{title:"Створити об'єкт",visible:o.value,"onUpdate:visible":h[3]||(h[3]=_=>o.value=_)},{footer:a.withCtx(()=>[a.createElementVNode("div",Td,[a.createElementVNode("button",{onClick:h[2]||(h[2]=_=>o.value=!1),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border rounded-lg border-gray-200 hover:bg-gray-100 duration-300"}," Скасувати"),a.createElementVNode("button",{onClick:d,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Створити ")])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(b,{ref_key:"form",ref:l,scheme:c,modelValue:i.value,"onUpdate:modelValue":h[1]||(h[1]=_=>i.value=_)},null,8,["modelValue"])])]),_:1},8,["visible"])],64)}}},Rd=(e,t=300)=>{let r;return function(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}},Vd={class:"bg-white rounded-xl p-[20px] border mt-[20px]"},Pd={class:"mb-4 xl:mb-8"},Yd={class:"text-lg font-semibold text-gray-800 dark:text-neutral-200"},Ad={class:"text-sm text-gray-500 dark:text-neutral-500"},Fd={class:"flex items-center"},Bd={class:"flex justify-end ml-auto items-center"},vd={__name:"vs-manager-collection-content",setup(e){const t=ft(),r=a.computed(()=>{var i;return(i=t==null?void 0:t.params)==null?void 0:i.template}),n=a.ref(null),s=async(i=null)=>{try{const{data:l}=await O.get(`/api/cms-manager/${r.value}`,{params:{search:i}});n.value=l}catch{}},o=Rd(i=>s(i),300);return a.watch(r,s),a.onMounted(()=>s()),(i,l)=>{var d,c,f,h;return a.openBlock(),a.createElementBlock("div",Vd,[a.createElementVNode("div",Pd,[a.createElementVNode("h1",Yd,a.toDisplayString((c=(d=n.value)==null?void 0:d.type)==null?void 0:c.name),1),a.createElementVNode("p",Ad,a.toDisplayString((h=(f=n.value)==null?void 0:f.type)==null?void 0:h.description),1)]),a.createElementVNode("div",Fd,[a.createElementVNode("input",{type:"text",onInput:l[0]||(l[0]=({target:b})=>a.unref(o)(b.value)),class:"py-2 px-4 block max-w-[400px] w-full bg-gray-100 border-transparent rounded-lg text-sm focus:outline-2 focus:outline-blue-500 h-[36px] mb-[1px]",placeholder:"Пошук за назвою"},null,32),a.createElementVNode("div",Bd,[a.createVNode(Cd,{template:r.value,onUpdateList:s},null,8,["template"])])]),a.createVNode(Od,{objectData:n.value,template:r.value},null,8,["objectData","template"])])}}},$d={class:"flex items-center justify-between"},Ud={class:"mt-[10px]"},Ld={class:"font-medium text-2xl"},Id={class:"text-gray-600"},Wd={class:"w-full mt-[20px] bg-white rounded-xl p-[20px] border"},jd={__name:"vs-manager-collection-item-content",setup(e){const t=a.getCurrentInstance().proxy.$notify,r=ft(),n=Wa(),s=a.computed(()=>{var S;return(S=r==null?void 0:r.params)==null?void 0:S.template}),o=a.computed(()=>{var S;return(S=r==null?void 0:r.params)==null?void 0:S.id}),i=a.ref(null),l=a.ref({}),d=a.ref(1),c=async()=>{var S,_;try{const{data:k}=await O.get(`/api/cms-manager/${s.value}/${o.value}`);i.value=(S=k==null?void 0:k.rows)==null?void 0:S[0],l.value=(_=k==null?void 0:k.rows)==null?void 0:_[0],d.value=d.value+1}catch{}},f=async()=>{try{await O.put(`/api/cms-manager/${o.value}`,l.value),await t({type:"success",title:"Успішно!",message:"Дані успішно оновлено"}),c()}catch{await t({type:"error",title:"Помилка!",message:"При спробі оновити дані виникла помилка"})}},h=async()=>{try{await O.delete(`/api/cms-manager/${o.value}`),await t({type:"success",title:"Успішно!",message:"Об'єкт видалено успішно"}),await(n==null?void 0:n.back())}catch{await t({type:"error",title:"Помилка!",message:"При спробі видалити об'єкт виникла помилка"})}};a.watch(s,c),a.onMounted(()=>c());const b={title:{ua:"Назва",type:"Text",placeholder:"Назва",validators:["required"]},body:{ua:"Контент",type:"TextEditor",validators:["required"]},enabled:{ua:"Чи увімкнений",type:"Switcher"}};return(S,_)=>{var y,p;const k=a.resolveComponent("VsForm");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",$d,[a.createElementVNode("div",Ud,[a.createElementVNode("h2",Ld,a.toDisplayString((y=i.value)==null?void 0:y.title),1),a.createElementVNode("p",Id,a.toDisplayString((p=i.value)==null?void 0:p.description),1)]),a.createElementVNode("div",{class:"flex items-center gap-1"},[a.createElementVNode("button",{onClick:h,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-red-500 rounded-lg !border-gray-200 hover:bg-red-700 duration-300"}," Видалити "),a.createElementVNode("button",{onClick:f,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Зберегти ")])]),a.createElementVNode("div",null,[a.createElementVNode("div",Wd,[(a.openBlock(),a.createBlock(k,{key:d.value,class:"w-full",scheme:b,modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=V=>l.value=V)},null,8,["modelValue"]))])])],64)}}},Hd={class:"flex items-center justify-between"},zd={class:"mt-[10px]"},qd={class:"font-medium text-2xl"},Gd={class:"text-gray-600"},Zd={class:"w-full mt-[20px] bg-white rounded-xl p-[20px] border"},Jd={__name:"vs-manager-single-content",setup(e){const t=ft(),r=a.computed(()=>{var c;return(c=t==null?void 0:t.params)==null?void 0:c.template}),n=a.ref(null),s=a.ref({}),o=a.ref(1),i=async()=>{var c,f;try{const{data:h}=await O.get(`/api/cms-manager/${r.value}`);n.value=(c=h==null?void 0:h.rows)==null?void 0:c[0],s.value=(f=h==null?void 0:h.rows)==null?void 0:f[0],o.value=o.value+1}catch{}},l=async()=>{var c;try{await O.put(`/api/cms-manager/${(c=n.value)==null?void 0:c.id}`,s.value),await $notify({type:"success",title:"Успішно!",message:"Дані успішно оновлено"}),i()}catch{await $notify({type:"error",title:"Помилка!",message:"При спробі оновити дані виникла помилка"})}};a.watch(r,i),a.onMounted(()=>i());const d={title:{ua:"Назва",type:"Text",placeholder:"Назва"},enabled:{ua:"Чи увімкнений",type:"Switcher"}};return(c,f)=>{var b,S;const h=a.resolveComponent("VsForm");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Hd,[a.createElementVNode("div",zd,[a.createElementVNode("h2",qd,a.toDisplayString((b=n.value)==null?void 0:b.title),1),a.createElementVNode("p",Gd,a.toDisplayString((S=n.value)==null?void 0:S.description),1)]),a.createElementVNode("div",{class:"flex items-center gap-1"},[a.createElementVNode("button",{onClick:l,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Зберегти ")])]),a.createElementVNode("div",null,[a.createElementVNode("div",Zd,[(a.openBlock(),a.createBlock(h,{key:o.value,class:"w-full",scheme:d,modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=_=>s.value=_)},null,8,["modelValue"]))])])],64)}}},Kd={},Qd={xmlns:"http://www.w3.org/2000/svg",width:"5",height:"5",fill:"currentColor",viewBox:"0 0 4 4"};function Xd(e,t){return a.openBlock(),a.createElementBlock("svg",Qd,t[0]||(t[0]=[a.createElementVNode("rect",{width:"4",height:"4",fill:"currentColor",rx:"2"},null,-1)]))}const At=j(Kd,[["render",Xd]]),eu={},tu={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-plus"};function ru(e,t){return a.openBlock(),a.createElementBlock("svg",tu,t[0]||(t[0]=[a.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),a.createElementVNode("path",{d:"M12 5l0 14"},null,-1),a.createElementVNode("path",{d:"M5 12l14 0"},null,-1)]))}const hs=j(eu,[["render",ru]]),nu={class:"p-4 w-[260px] border-r h-[100%] overflow-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"},su={class:"flex flex-col space-y-1"},au={class:"pt-2"},ou={class:"flex flex-col space-y-1"},iu={class:"flex justify-end p-[20px] gap-[10px] border-t w-full"},lu={__name:"vs-builder-menu",props:{UPDATE:{},UPDATEModifiers:{}},emits:["update:UPDATE"],setup(e){var h;const t=(h=a.getCurrentInstance().proxy)==null?void 0:h.$notify,r=a.useModel(e,"UPDATE"),n=a.ref(null),s=a.ref(!1),o=a.ref({}),i=a.ref(""),l=a.ref(),d=async()=>{try{const{data:b}=await O.get("/api/cms-builder");n.value=(b==null?void 0:b.rows)||null}catch{}},c=b=>{b==="single"?(o.value={type:"single"},i.value="Створити новий тип"):(o.value={type:"collection"},i.value="Створити колекцію"),s.value=!0},f=async()=>{try{await l.value.doValidation(),await O.post("/api/cms-builder",o.value),await t({type:"success",title:"Успішно!",message:"Об'єкт створено успішно"}),s.value=!1,await d()}catch{await t({type:"error",title:"Помилка!",message:"При спробі створити об'єкт виникла помилка"})}};return d(),a.onMounted(()=>r.value.getList=()=>d()),(b,S)=>{var p,V;const _=a.resolveComponent("router-link"),k=a.resolveComponent("VsForm"),y=a.resolveComponent("VsDialog");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",nu,[a.createElementVNode("div",null,[S[6]||(S[6]=a.createElementVNode("h2",{v:"",class:"block text-[14px] font-medium text-gray-800 mb-2 dark:text-neutral-200"}," Колекції ",-1)),a.createElementVNode("ul",su,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((p=n.value)==null?void 0:p.filter(g=>(g==null?void 0:g.type)=="collection"),g=>{var U,B;return a.openBlock(),a.createElementBlock("li",{key:g==null?void 0:g.id},[a.createVNode(_,{to:`/cms/builder/${g==null?void 0:g.id}`,class:a.normalizeClass([[((B=(U=b.$route)==null?void 0:U.params)==null?void 0:B.id)===(g==null?void 0:g.id)?"bg-gray-200":""],"w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-200 focus:outline-none dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(At,{class:"text-gray-500"}),a.createTextVNode(" "+a.toDisplayString(g==null?void 0:g.name),1)]),_:2},1032,["to","class"])])}),128))]),a.createElementVNode("button",{onClick:S[0]||(S[0]=g=>c("colection")),class:"text-blue-500 flex text-[14px] py-2 px-2 text-nowrap hover:text-blue-700 duration-300 gap-2 items-center"},[a.createVNode(hs,{height:"16",width:"16"}),S[5]||(S[5]=a.createTextVNode(" Створити нову колекцію "))])]),a.createElementVNode("div",au,[S[8]||(S[8]=a.createElementVNode("h2",{class:"block text-[14px] mb-2 font-medium text-gray-800 dark:text-neutral-200"}," Одиничні типи ",-1)),a.createElementVNode("ul",ou,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((V=n.value)==null?void 0:V.filter(g=>(g==null?void 0:g.type)=="single"),g=>{var U,B;return a.openBlock(),a.createElementBlock("li",{key:g==null?void 0:g.id},[a.createVNode(_,{to:`/cms/builder/${g==null?void 0:g.id}`,class:a.normalizeClass([[((B=(U=b.$route)==null?void 0:U.params)==null?void 0:B.id)===(g==null?void 0:g.id)?"bg-gray-200":""],"w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 hover:bg-gray-200 rounded-lg focus:outline-none dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(At,{class:"text-gray-500"}),a.createTextVNode(" "+a.toDisplayString(g==null?void 0:g.name),1)]),_:2},1032,["to","class"])])}),128))]),a.createElementVNode("button",{onClick:S[1]||(S[1]=g=>c("single")),class:"text-blue-500 flex text-[14px] py-2 px-2 hover:text-blue-700 duration-300 gap-2 items-center"},[a.createVNode(hs,{height:"16",width:"16"}),S[7]||(S[7]=a.createTextVNode(" Створити новий тип "))])])]),a.createVNode(y,{visible:s.value,"onUpdate:visible":S[4]||(S[4]=g=>s.value=g),title:i.value},{footer:a.withCtx(()=>[a.createElementVNode("div",iu,[a.createElementVNode("button",{onClick:S[3]||(S[3]=g=>s.value=!1),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border rounded-lg border-gray-200 hover:bg-gray-100 duration-300"}," Скасувати"),a.createElementVNode("button",{onClick:f,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Зберегти ")])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(k,{modelValue:o.value,"onUpdate:modelValue":S[2]||(S[2]=g=>o.value=g),scheme:a.unref(mn),ref_key:"form",ref:l},null,8,["modelValue","scheme"])])]),_:1},8,["visible","title"])],64)}}},cu={class:"w-full bg-[#f6f6f9] h-[calc(100vh-60px)]"},du={class:"flex h-full"},uu={__name:"vs-builder",setup(e){const t=a.ref({});return(r,n)=>{const s=a.resolveComponent("router-view");return a.openBlock(),a.createElementBlock("div",cu,[a.createElementVNode("div",du,[a.createVNode(lu,{UPDATE:t.value,"onUpdate:UPDATE":n[0]||(n[0]=o=>t.value=o)},null,8,["UPDATE"]),a.createVNode(s,null,{default:a.withCtx(({Component:o})=>[o?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o),{key:0,UPDATE:t.value},null,8,["UPDATE"])):(a.openBlock(),a.createBlock(Yt,{key:1,class:"pt-[100px]",text:"Оберіть один з існуючих пунктів меню, або створіть новий"}))]),_:1})])])}}},fu={class:"p-4 w-[260px] shrink-0 border-r h-[100vh]"},hu={key:0,class:""},mu={class:"flex flex-col space-y-1"},pu={class:"pt-5"},yu={class:"flex flex-col space-y-1"},_u={__name:"vs-manager-menu",setup(e){const t=a.ref(null);return(async()=>{try{const{data:n}=await O.get("/api/cms-builder");t.value=(n==null?void 0:n.rows)||null}catch{}})(),(n,s)=>{var i,l,d;const o=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",fu,[(i=t.value)!=null&&i.length?(a.openBlock(),a.createElementBlock("div",hu,[s[0]||(s[0]=a.createElementVNode("h2",{class:"block text-[14px] font-medium text-gray-800 mb-2 dark:text-neutral-200"}," Колекції ",-1)),a.createElementVNode("ul",mu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((l=t.value)==null?void 0:l.filter(c=>(c==null?void 0:c.type)=="collection"),c=>{var f,h,b;return a.openBlock(),a.createElementBlock("li",{key:(f=n.item)==null?void 0:f.id},[a.createVNode(o,{to:`/cms/manager/collection/${c==null?void 0:c.template}`,class:a.normalizeClass([[((b=(h=n.$route)==null?void 0:h.params)==null?void 0:b.template)===(c==null?void 0:c.template)?"bg-gray-200":""],"w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-200 focus:outline-none dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(At,{class:"text-gray-500"}),a.createTextVNode(" "+a.toDisplayString((c==null?void 0:c.name)||(c==null?void 0:c.title)),1)]),_:2},1032,["to","class"])])}),128))])])):a.createCommentVNode("",!0),a.createElementVNode("div",pu,[s[1]||(s[1]=a.createElementVNode("h2",{class:"block text-[14px] mb-2 font-medium text-gray-800 dark:text-neutral-200"}," Одиничні типи ",-1)),a.createElementVNode("ul",yu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((d=t.value)==null?void 0:d.filter(c=>(c==null?void 0:c.type)=="single"),c=>{var f,h,b;return a.openBlock(),a.createElementBlock("li",{key:(f=n.item)==null?void 0:f.id},[a.createVNode(o,{to:`/cms/manager/single/${c==null?void 0:c.template}`,class:a.normalizeClass([[((b=(h=n.$route)==null?void 0:h.params)==null?void 0:b.template)===(c==null?void 0:c.template)?"bg-gray-200":""],"w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-200 focus:outline-none dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(At,{class:"text-gray-500"}),a.createTextVNode(" "+a.toDisplayString((c==null?void 0:c.name)||(c==null?void 0:c.title)),1)]),_:2},1032,["to","class"])])}),128))])])])}}},gu={class:"w-full bg-[#f6f6f9] h-[calc(100vh-60px)]"},wu={class:"flex"},xu={class:"w-full flex justify-center"},ku={class:"p-[20px] w-full max-w-[1440px]"},bu={__name:"vs-manager",setup(e){return(t,r)=>{const n=a.resolveComponent("router-view");return a.openBlock(),a.createElementBlock("div",gu,[a.createElementVNode("div",wu,[a.createVNode(_u),a.createElementVNode("div",xu,[a.createElementVNode("div",ku,[a.createElementVNode("button",{onClick:r[0]||(r[0]=s=>t.$router.back()),class:"text-blue-500 flex gap-2 items-center hover:text-blue-700 duration-300"},[a.createVNode(hn,{template:t.template},null,8,["template"]),r[1]||(r[1]=a.createTextVNode(" Повернутися назад "))]),a.createVNode(n,null,{default:a.withCtx(({Component:s})=>[s?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s),{key:0})):(a.openBlock(),a.createBlock(Yt,{key:1,class:"pt-[100px]",text:"Оберіть один з існуючих пунктів меню, або створіть новий"}))]),_:1})])])])])}}},Su={},Du={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};function Eu(e,t){return a.openBlock(),a.createElementBlock("svg",Du,t[0]||(t[0]=[a.createElementVNode("path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},null,-1),a.createElementVNode("polyline",{points:"9 22 9 12 15 12 15 22"},null,-1)]))}const Nu=j(Su,[["render",Eu]]),Ou={},Mu={"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"};function Tu(e,t){return a.openBlock(),a.createElementBlock("svg",Mu,t[0]||(t[0]=[a.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"},null,-1)]))}const Cu={components:{IconHome:Nu,IconChewronRight:j(Ou,[["render",Tu]])},props:{initialPath:{type:String,default:""},root:{type:String,default:"Root"}},data(){return{breadcrumbs:[]}},watch:{initialPath:{immediate:!0,handler(e){const t=e.split("/").filter(Boolean);this.breadcrumbs=[this.root,...t]}}},methods:{navigateTo(e){const t=e===0?"":this.breadcrumbs.slice(1,e+1).join("/");this.$emit("update-path",t)}}},Ru={"aria-label":"Breadcrumb",class:"mb-4"},Vu={class:"flex items-start justify-between"},Pu={class:"flex flex-wrap items-center gap-[5px] min-h-8"},Yu={class:"flex items-center"},Au=["onClick"],Fu={key:1};function Bu(e,t,r,n,s,o){const i=a.resolveComponent("IconHome"),l=a.resolveComponent("IconChewronRight");return a.openBlock(),a.createElementBlock("nav",Ru,[a.createElementVNode("div",Vu,[a.createElementVNode("ol",Pu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.breadcrumbs,(d,c)=>(a.openBlock(),a.createElementBlock("li",{key:c,class:"whitespace-nowrap"},[a.createElementVNode("div",Yu,[a.createElementVNode("button",{onClick:f=>o.navigateTo(c),class:a.normalizeClass([["hover:text-blue-500 focus:outline-none flex items-center",c===s.breadcrumbs.length-1?"font-medium underline text-blue-500":"text-gray-500"],"h-8 flex items-center"])},[c===0?(a.openBlock(),a.createBlock(i,{key:0,class:"w-4 h-4"})):(a.openBlock(),a.createElementBlock("span",Fu,a.toDisplayString(d),1))],10,Au),c<s.breadcrumbs.length-1?(a.openBlock(),a.createBlock(l,{key:0,class:"text-gray-400 w-3 h-3 ml-[10px]"})):a.createCommentVNode("",!0)])]))),128))])])])}const vu=j(Cu,[["render",Bu]]),$u={},Uu={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lu(e,t){return a.openBlock(),a.createElementBlock("svg",Uu,t[0]||(t[0]=[a.createElementVNode("path",{d:"M6.41667 11.0833C8.994 11.0833 11.0833 8.994 11.0833 6.41667C11.0833 3.83934 8.994 1.75 6.41667 1.75C3.83934 1.75 1.75 3.83934 1.75 6.41667C1.75 8.994 3.83934 11.0833 6.41667 11.0833Z",stroke:"#6B7280","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),a.createElementVNode("path",{d:"M12.25 12.25L9.7417 9.7417",stroke:"#6B7280","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Iu=j($u,[["render",Lu]]),Wu={},ju={"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor"};function Hu(e,t){return a.openBlock(),a.createElementBlock("svg",ju,t[0]||(t[0]=[a.createElementVNode("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H 13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"},null,-1),a.createElementVNode("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"},null,-1)]))}const zu=j(Wu,[["render",Hu]]),qu={},Gu={width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zu(e,t){return a.openBlock(),a.createElementBlock("svg",Gu,t[0]||(t[0]=[a.createElementVNode("path",{d:"M3 8.2C3 7.07989 3 6.51984 3.21799 6.09202C3.40973 5.71569 3.71569 5.40973 4.09202 5.21799C4.51984 5 5.0799 5 6.2 5H9.67452C10.1637 5 10.4083 5 10.6385 5.05526C10.8425 5.10425 11.0376 5.18506 11.2166 5.29472C11.4184 5.4184 11.5914 5.59135 11.9373 5.93726L12.0627 6.06274C12.4086 6.40865 12.5816 6.5816 12.7834 6.70528C12.9624 6.81494 13.1575 6.89575 13.3615 6.94474C13.5917 7 13.8363 7 14.3255 7H17.8C18.9201 7 19.4802 7 19.908 7.21799C20.2843 7.40973 20.5903 7.71569 20.782 8.09202C21 8.51984 21 9.0799 21 10.2V15.8C21 16.9201 21 17.4802 20.782 17.908C20.5903 18.2843 20.2843 18.5903 19.908 18.782C19.4802 19 18.9201 19 17.8 19H6.2C5.07989 19 4.51984 19 4.09202 18.782C3.71569 18.5903 3.40973 18.2843 3.21799 17.908C3 17.4802 3 16.9201 3 15.8V8.2Z",stroke:"#000000","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Ju=j(qu,[["render",Zu]]),Ku={},Qu={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xu(e,t){return a.openBlock(),a.createElementBlock("svg",Qu,t[0]||(t[0]=[a.createElementVNode("path",{d:"M18 6L6 18",stroke:"#6B7280","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),a.createElementVNode("path",{d:"M6 6L18 18",stroke:"#6B7280","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const ef=j(Ku,[["render",Xu]]),tf={},rf={class:"flex-shrink-0 size-3.5",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};function nf(e,t){return a.openBlock(),a.createElementBlock("svg",rf,t[0]||(t[0]=[a.createStaticVNode('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>',9)]))}const sf=j(tf,[["render",nf]]),af={},of={"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor"};function lf(e,t){return a.openBlock(),a.createElementBlock("svg",of,t[0]||(t[0]=[a.createElementVNode("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H 13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"},null,-1),a.createElementVNode("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"},null,-1)]))}const cf={components:{Breadcrumb:vu,IconSearch:Iu,IconFolder:zu,IconFolder2:Ju,IconClose:ef,IconImage:j(af,[["render",lf]]),IconActions:sf,VsNotData:Yt},props:{type:{type:String,default:"icon"}},data(){return{icons:[],currentPage:parseInt(this.$route.query.page,10)||1,iconsPerPage:15,token:"",searchQuery:"",selectedFile:null,isAddDirModalOpen:!1,newDirName:""}},watch:{isAddDirModalOpen(e){e||(this.newDirName="")}},computed:{currentDir(){return this.$route.query.dir||""},currentTab(){return this.$route.query.tab||""},filteredIcons(){return this.searchQuery?this.icons.filter(e=>e.name.toLowerCase().includes(this.searchQuery.toLowerCase())):this.icons},sortedIcons(){return[...this.filteredIcons].sort((e,t)=>e.type==="dir"&&t.type!=="dir"?-1:e.type!=="dir"&&t.type==="dir"?1:e.name.localeCompare(t.name))},currentIcons(){const e=(this.currentPage-1)*this.iconsPerPage,t=e+this.iconsPerPage;return this.sortedIcons.slice(e,t)}},methods:{async fetchIcons(e){try{const{data:t}=await O.get("/api/cms-media",{params:{dir:e}});this.icons=(t==null?void 0:t.data)||[],this.token=t==null?void 0:t.token}catch(t){console.error("Error fetching icons:",t)}},async addDir(){var e,t;if(!this.newDirName.trim()){this.$notify({type:"error",title:"Помилка",message:"Назва папки не може бути порожньою."});return}try{const r=await O.post(`/api/cms-media/${this.token}`,{name:this.newDirName});this.$notify({type:"success",title:"Успіх!",message:`Папку "${this.newDirName}" успішно створено.`}),this.fetchIcons(this.currentDir),this.handeAddFolderClose(),this.newDirName=""}catch(r){console.error("Error creating directory:",r),this.$notify({type:"error",title:"Помилка",message:((t=(e=r.response)==null?void 0:e.data)==null?void 0:t.message)||"Не вдалося створити папку."})}},handeAddFolderClose(){this.isAddDirModalOpen=!1},navigateToDir(e){const t=`${this.currentDir}/${e}`.replace(/\/+/g,"/");this.updateURL(t)},updatePath(e){this.updateURL(e)},updateURL(e){this.$router.push({query:{...this.$route.query,dir:e,page:this.currentPage}})},async handleFileChange(e){const t=e.target.files[0];if(!t)return;const r=new FormData;r.append("file",t);try{const n=await O.post(`/api/cms-media/${this.token}`,r,{headers:{"Content-Type":"multipart/form-data"}});this.$notify({type:"success",title:"Успіх!",message:"Файл успішно додано!"}),this.currentPage=1}catch(n){console.error("Error uploading file:",n),this.$notify({type:"error",title:"Помилка",message:n.response.statustext||n.message||n})}finally{await this.fetchIcons(this.currentDir)}},clearSearch(){this.searchQuery=""},copyToClipboard(e){try{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),t.setSelectionRange(0,e.length);const r=document.execCommand("copy");document.body.removeChild(t),r?this.$notify({type:"success",title:"Скопійовано!",message:"Назву іконки успішно скопійовано."}):this.$notify({type:"error",title:"Помилка",message:"Не вдалося скопіювати шлях."})}catch(t){this.$notify({type:"error",title:"Помилка",message:"Не вдалося скопіювати координати"}),console.error("Copy failed",t)}}},watch:{currentDir:{immediate:!0,handler(e){this.fetchIcons(e)}},currentTab:{handler(){this.currentPage=1}},currentPage(e){this.$emit("update-url",{query:{...this.$route.query,page:e}})}},async mounted(){await this.fetchIcons(this.currentDir)}},df={class:"w-full p-[20px] bg-gray-100 flex justify-center h-[calc(100vh-60px)]"},uf={class:"p-[20px] w-full max-w-[1640px]"},ff={class:"flex items-start justify-between"},hf={class:"flex gap-2 relative"},mf={class:"flex items-center justify-between bg-white py-2 px-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 text-sm w-[250px]"},pf={class:"flex items-center gap-[12px]"},yf={for:"file-upload",class:"py-2 px-3 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 cursor-pointer"},_f={key:0,class:"flex flex-col items-center justify-center h-64 bg-gray-50 rounded-lg border text-center"},gf={key:1},wf={class:"grid grid-cols-2 lg:grid-cols-5 gap-3 xl:gap-5"},xf=["onClick"],kf={class:"relative group"},bf={class:"w-full h-36 sm:h-[170px] object-cover rounded-t-xl flex items-center justify-center"},Sf={key:0,class:"text-[#54aeff]"},Df=["src","alt"],Ef={class:"p-3 flex items-center gap-x-3 border-t"},Nf={key:0,class:"flex shrink-0 justify-center items-center w-10 h-10 bg-white border border-solid text-gray-500 rounded-lg"},Of=["title"],Mf=["onClick"],Tf={class:"block truncate text-xs text-gray-500"},Cf={class:"p-4"},Rf={class:"flex justify-end"};function Vf(e,t,r,n,s,o){var y;const i=a.resolveComponent("Breadcrumb"),l=a.resolveComponent("IconSearch"),d=a.resolveComponent("IconClose"),c=a.resolveComponent("IconFolder2"),f=a.resolveComponent("VsNotData"),h=a.resolveComponent("IconFolder"),b=a.resolveComponent("IconImage"),S=a.resolveComponent("VsPagination"),_=a.resolveComponent("VsText"),k=a.resolveComponent("VsDialog");return a.openBlock(),a.createElementBlock("div",df,[a.createElementVNode("div",uf,[a.createElementVNode("div",null,[a.createElementVNode("div",ff,[a.createVNode(i,{initialPath:o.currentDir,onUpdatePath:o.updatePath},null,8,["initialPath","onUpdatePath"]),a.createElementVNode("div",hf,[a.createElementVNode("div",mf,[a.createElementVNode("div",pf,[a.createVNode(l),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=p=>s.searchQuery=p),type:"text",placeholder:"Пошук за назвою...",class:"focus:outline-none"},null,512),[[a.vModelText,s.searchQuery]])]),s.searchQuery?(a.openBlock(),a.createBlock(d,{key:0,class:"w-4 h-4 cursor-pointer",onClick:o.clearSearch},null,8,["onClick"])):a.createCommentVNode("",!0)]),a.createElementVNode("button",{ref:"dropdownButton",onClick:t[1]||(t[1]=p=>s.isAddDirModalOpen=!0),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium border border-gray-300 rounded-lg text-gray-800 hover:bg-gray-100 bg-white"},[a.createVNode(c),t[7]||(t[7]=a.createTextVNode(" Додати папку "))],512),a.createElementVNode("label",yf,[t[8]||(t[8]=a.createTextVNode(" Завантажити ")),a.createElementVNode("input",{id:"file-upload",type:"file",class:"hidden",onChange:t[2]||(t[2]=(...p)=>o.handleFileChange&&o.handleFileChange(...p))},null,32)])])]),(y=o.filteredIcons)!=null&&y.length?(a.openBlock(),a.createElementBlock("div",gf,[a.createElementVNode("div",wf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.currentIcons,p=>{var V;return a.openBlock(),a.createElementBlock("div",{key:p==null?void 0:p.id,class:a.normalizeClass(["flex flex-col bg-white border rounded-xl",{"cursor-pointer hover:border-blue-500":p.type==="dir","cursor-default":p.type!=="dir"}]),onClick:g=>p.type==="dir"?o.navigateToDir(p.name):null},[a.createElementVNode("div",kf,[a.createElementVNode("div",bf,[(p==null?void 0:p.type)==="dir"?(a.openBlock(),a.createElementBlock("div",Sf,[a.createVNode(h)])):(a.openBlock(),a.createElementBlock("img",{key:1,class:"object-contain max-h-[40px]",src:`/api/cms-media/${p==null?void 0:p.token}`,alt:p==null?void 0:p.name,style:a.normalizeStyle((V=p==null?void 0:p.path)!=null&&V.includes(".svg")?"width:250px;max-height:100px":"")},null,12,Df))])]),a.createElementVNode("div",Ef,[p.type!=="dir"?(a.openBlock(),a.createElementBlock("span",Nf,[a.createVNode(b)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"grow truncate",title:p==null?void 0:p.name},[a.createElementVNode("p",{class:a.normalizeClass(["block truncate text-sm font-semibold text-gray-800",{"cursor-pointer":p.type!=="dir"}]),onClick:a.withModifiers(g=>p.type!=="dir"&&o.copyToClipboard(p==null?void 0:p.name),["stop"])},a.toDisplayString(p==null?void 0:p.name),11,Mf),a.createElementVNode("p",Tf,a.toDisplayString(p==null?void 0:p.size),1)],8,Of)])],10,xf)}),128))]),o.filteredIcons.length>s.iconsPerPage?(a.openBlock(),a.createBlock(S,{key:0,defaultPage:s.currentPage,class:"mt-6 focus-visible:outline-blue-500 flex !justify-center",total:o.filteredIcons.length,pageSize:s.iconsPerPage,maxPages:3,goTo:!1,onPageChange:t[3]||(t[3]=p=>s.currentPage=p)},null,8,["defaultPage","total","pageSize"])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",_f,[a.createVNode(f,{text:"",class:"![&>div]:min-w-[100px] !w-auto"})]))]),a.createVNode(k,{visible:s.isAddDirModalOpen,"onUpdate:visible":t[6]||(t[6]=p=>s.isAddDirModalOpen=p),title:"Додати папку",size:"small",closeClickBack:!0,onOnClose:o.handeAddFolderClose},{default:a.withCtx(()=>[a.createElementVNode("div",Cf,[a.createVNode(_,{modelValue:s.newDirName,"onUpdate:modelValue":t[4]||(t[4]=p=>s.newDirName=p),placeholder:"Назва нової папки.."},null,8,["modelValue"]),a.createElementVNode("div",Rf,[a.createElementVNode("button",{onClick:t[5]||(t[5]=(...p)=>o.addDir&&o.addDir(...p)),class:"mt-4 py-2 px-4 text-white bg-blue-600 hover:bg-blue-700 rounded-lg"}," Створити ")])])]),_:1},8,["visible","onOnClose"])])])}const ms={"vs-builder":uu,"vs-builder-content":ao,"vs-manager":bu,"vs-manager-collection-content":vd,"vs-manager-collection-item-content":jd,"vs-manager-single-content":Jd,"vs-media":j(cf,[["render",Vf]])},ps={install:e=>{var t;(t=Object.entries(ms))==null||t.forEach(([r,n])=>e.component(r,n))},components:ms};return typeof window<"u"&&(window.v3Cms=ps),ps});
18
+ `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var bn={};function Sn(e,t){w.deprecationHandler!=null&&w.deprecationHandler(e,t),bn[e]||(kn(t),bn[e]=!0)}w.suppressDeprecationWarnings=!1,w.deprecationHandler=null;function oe(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ho(e){var t,r;for(r in e)C(e,r)&&(t=e[r],oe(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function tr(e,t){var r=ge({},e),n;for(n in t)C(t,n)&&(De(e[n])&&De(t[n])?(r[n]={},ge(r[n],e[n]),ge(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)C(e,n)&&!C(t,n)&&De(e[n])&&(r[n]=ge({},r[n]));return r}function rr(e){e!=null&&this.set(e)}var nr;Object.keys?nr=Object.keys:nr=function(e){var t,r=[];for(t in e)C(e,t)&&r.push(t);return r};var mo={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function po(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return oe(n)?n.call(t,r):n}function ie(e,t,r){var n=""+Math.abs(e),s=t-n.length,o=e>=0;return(o?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var sr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,mt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ar={},Re={};function D(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(Re[e]=s),t&&(Re[t[0]]=function(){return ie(s.apply(this,arguments),t[1],t[2])}),r&&(Re[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function yo(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function _o(e){var t=e.match(sr),r,n;for(r=0,n=t.length;r<n;r++)Re[t[r]]?t[r]=Re[t[r]]:t[r]=yo(t[r]);return function(s){var o="",i;for(i=0;i<n;i++)o+=oe(t[i])?t[i].call(s,e):t[i];return o}}function pt(e,t){return e.isValid()?(t=Dn(t,e.localeData()),ar[t]=ar[t]||_o(t),ar[t](e)):e.localeData().invalidDate()}function Dn(e,t){var r=5;function n(s){return t.longDateFormat(s)||s}for(mt.lastIndex=0;r>=0&&mt.test(e);)e=e.replace(mt,n),mt.lastIndex=0,r-=1;return e}var go={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function wo(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(sr).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var xo="Invalid date";function ko(){return this._invalidDate}var bo="%d",So=/\d{1,2}/;function Do(e){return this._ordinal.replace("%d",e)}var Eo={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function No(e,t,r,n){var s=this._relativeTime[r];return oe(s)?s(e,t,r,n):s.replace(/%d/i,e)}function Oo(e,t){var r=this._relativeTime[e>0?"future":"past"];return oe(r)?r(t):r.replace(/%s/i,t)}var En={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function J(e){return typeof e=="string"?En[e]||En[e.toLowerCase()]:void 0}function or(e){var t={},r,n;for(n in e)C(e,n)&&(r=J(n),r&&(t[r]=e[n]));return t}var Mo={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function To(e){var t=[],r;for(r in e)C(e,r)&&t.push({unit:r,priority:Mo[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var Nn=/\d/,G=/\d\d/,On=/\d{3}/,ir=/\d{4}/,yt=/[+-]?\d{6}/,Y=/\d\d?/,Mn=/\d\d\d\d?/,Tn=/\d\d\d\d\d\d?/,_t=/\d{1,3}/,lr=/\d{1,4}/,gt=/[+-]?\d{1,6}/,Ve=/\d+/,wt=/[+-]?\d+/,Co=/Z|[+-]\d\d:?\d\d/gi,xt=/Z|[+-]\d\d(?::?\d\d)?/gi,Ro=/[+-]?\d+(\.\d{1,3})?/,ze=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Pe=/^[1-9]\d?/,cr=/^([1-9]\d|\d)/,kt;kt={};function x(e,t,r){kt[e]=oe(t)?t:function(n,s){return n&&r?r:t}}function Vo(e,t){return C(kt,e)?kt[e](t._strict,t._locale):new RegExp(Po(e))}function Po(e){return de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,o){return r||n||s||o}))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=K(t)),r}var dr={};function P(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),ce(t)&&(n=function(o,i){i[t]=M(o)}),s=e.length,r=0;r<s;r++)dr[e[r]]=n}function qe(e,t){P(e,function(r,n,s,o){s._w=s._w||{},t(r,s._w,s,o)})}function Yo(e,t,r){t!=null&&C(dr,e)&&dr[e](t,r._a,r,e)}function bt(e){return e%4===0&&e%100!==0||e%400===0}var I=0,ue=1,le=2,$=3,te=4,fe=5,Ee=6,Ao=7,Fo=8;D("Y",0,0,function(){var e=this.year();return e<=9999?ie(e,4):"+"+e}),D(0,["YY",2],0,function(){return this.year()%100}),D(0,["YYYY",4],0,"year"),D(0,["YYYYY",5],0,"year"),D(0,["YYYYYY",6,!0],0,"year"),x("Y",wt),x("YY",Y,G),x("YYYY",lr,ir),x("YYYYY",gt,yt),x("YYYYYY",gt,yt),P(["YYYYY","YYYYYY"],I),P("YYYY",function(e,t){t[I]=e.length===2?w.parseTwoDigitYear(e):M(e)}),P("YY",function(e,t){t[I]=w.parseTwoDigitYear(e)}),P("Y",function(e,t){t[I]=parseInt(e,10)});function Ge(e){return bt(e)?366:365}w.parseTwoDigitYear=function(e){return M(e)+(M(e)>68?1900:2e3)};var Cn=Ye("FullYear",!0);function Bo(){return bt(this.year())}function Ye(e,t){return function(r){return r!=null?(Rn(this,e,r),w.updateOffset(this,t),this):Ze(this,e)}}function Ze(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Rn(e,t,r){var n,s,o,i,l;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(s?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(s?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(s?n.setUTCHours(r):n.setHours(r));case"Date":return void(s?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}o=r,i=e.month(),l=e.date(),l=l===29&&i===1&&!bt(o)?28:l,s?n.setUTCFullYear(o,i,l):n.setFullYear(o,i,l)}}function vo(e){return e=J(e),oe(this[e])?this[e]():this}function $o(e,t){if(typeof e=="object"){e=or(e);var r=To(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=J(e),oe(this[e]))return this[e](t);return this}function Lo(e,t){return(e%t+t)%t}var v;Array.prototype.indexOf?v=Array.prototype.indexOf:v=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ur(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Lo(t,12);return e+=(t-r)/12,r===1?bt(e)?29:28:31-r%7%2}D("M",["MM",2],"Mo",function(){return this.month()+1}),D("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),D("MMMM",0,0,function(e){return this.localeData().months(this,e)}),x("M",Y,Pe),x("MM",Y,G),x("MMM",function(e,t){return t.monthsShortRegex(e)}),x("MMMM",function(e,t){return t.monthsRegex(e)}),P(["M","MM"],function(e,t){t[ue]=M(e)-1}),P(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[ue]=s:N(r).invalidMonth=e});var Uo="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Vn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Io=ze,Wo=ze;function jo(e,t){return e?X(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pn).test(t)?"format":"standalone"][e.month()]:X(this._months)?this._months:this._months.standalone}function Ho(e,t){return e?X(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pn.test(t)?"format":"standalone"][e.month()]:X(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function zo(e,t,r){var n,s,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=ae([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return r?t==="MMM"?(s=v.call(this._shortMonthsParse,i),s!==-1?s:null):(s=v.call(this._longMonthsParse,i),s!==-1?s:null):t==="MMM"?(s=v.call(this._shortMonthsParse,i),s!==-1?s:(s=v.call(this._longMonthsParse,i),s!==-1?s:null)):(s=v.call(this._longMonthsParse,i),s!==-1?s:(s=v.call(this._shortMonthsParse,i),s!==-1?s:null))}function qo(e,t,r){var n,s,o;if(this._monthsParseExact)return zo.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=ae([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function Yn(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=M(t);else if(t=e.localeData().monthsParse(t),!ce(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,ur(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function An(e){return e!=null?(Yn(this,e),w.updateOffset(this,!0),this):Ze(this,"Month")}function Go(){return ur(this.year(),this.month())}function Zo(e){return this._monthsParseExact?(C(this,"_monthsRegex")||Fn.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(C(this,"_monthsShortRegex")||(this._monthsShortRegex=Io),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Jo(e){return this._monthsParseExact?(C(this,"_monthsRegex")||Fn.call(this),e?this._monthsStrictRegex:this._monthsRegex):(C(this,"_monthsRegex")||(this._monthsRegex=Wo),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Fn(){function e(d,c){return c.length-d.length}var t=[],r=[],n=[],s,o,i,l;for(s=0;s<12;s++)o=ae([2e3,s]),i=de(this.monthsShort(o,"")),l=de(this.months(o,"")),t.push(i),r.push(l),n.push(l),n.push(i);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ko(e,t,r,n,s,o,i){var l;return e<100&&e>=0?(l=new Date(e+400,t,r,n,s,o,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,r,n,s,o,i),l}function Je(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function St(e,t,r){var n=7+t-r,s=(7+Je(e,0,n).getUTCDay()-t)%7;return-s+n-1}function Bn(e,t,r,n,s){var o=(7+r-n)%7,i=St(e,n,s),l=1+7*(t-1)+o+i,d,c;return l<=0?(d=e-1,c=Ge(d)+l):l>Ge(e)?(d=e+1,c=l-Ge(e)):(d=e,c=l),{year:d,dayOfYear:c}}function Ke(e,t,r){var n=St(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,o,i;return s<1?(i=e.year()-1,o=s+he(i,t,r)):s>he(e.year(),t,r)?(o=s-he(e.year(),t,r),i=e.year()+1):(i=e.year(),o=s),{week:o,year:i}}function he(e,t,r){var n=St(e,t,r),s=St(e+1,t,r);return(Ge(e)-n+s)/7}D("w",["ww",2],"wo","week"),D("W",["WW",2],"Wo","isoWeek"),x("w",Y,Pe),x("ww",Y,G),x("W",Y,Pe),x("WW",Y,G),qe(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=M(e)});function Qo(e){return Ke(e,this._week.dow,this._week.doy).week}var Xo={dow:0,doy:6};function ei(){return this._week.dow}function ti(){return this._week.doy}function ri(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function ni(e){var t=Ke(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}D("d",0,"do","day"),D("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),D("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),D("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),D("e",0,0,"weekday"),D("E",0,0,"isoWeekday"),x("d",Y),x("e",Y),x("E",Y),x("dd",function(e,t){return t.weekdaysMinRegex(e)}),x("ddd",function(e,t){return t.weekdaysShortRegex(e)}),x("dddd",function(e,t){return t.weekdaysRegex(e)}),qe(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:N(r).invalidWeekday=e}),qe(["d","e","E"],function(e,t,r,n){t[n]=M(e)});function si(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function ai(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function fr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var oi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),vn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ii="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),li=ze,ci=ze,di=ze;function ui(e,t){var r=X(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?fr(r,this._week.dow):e?r[e.day()]:r}function fi(e){return e===!0?fr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function hi(e){return e===!0?fr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function mi(e,t,r){var n,s,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=ae([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?t==="dddd"?(s=v.call(this._weekdaysParse,i),s!==-1?s:null):t==="ddd"?(s=v.call(this._shortWeekdaysParse,i),s!==-1?s:null):(s=v.call(this._minWeekdaysParse,i),s!==-1?s:null):t==="dddd"?(s=v.call(this._weekdaysParse,i),s!==-1||(s=v.call(this._shortWeekdaysParse,i),s!==-1)?s:(s=v.call(this._minWeekdaysParse,i),s!==-1?s:null)):t==="ddd"?(s=v.call(this._shortWeekdaysParse,i),s!==-1||(s=v.call(this._weekdaysParse,i),s!==-1)?s:(s=v.call(this._minWeekdaysParse,i),s!==-1?s:null)):(s=v.call(this._minWeekdaysParse,i),s!==-1||(s=v.call(this._weekdaysParse,i),s!==-1)?s:(s=v.call(this._shortWeekdaysParse,i),s!==-1?s:null))}function pi(e,t,r){var n,s,o;if(this._weekdaysParseExact)return mi.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=ae([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function yi(e){if(!this.isValid())return e!=null?this:NaN;var t=Ze(this,"Day");return e!=null?(e=si(e,this.localeData()),this.add(e-t,"d")):t}function _i(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function gi(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=ai(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function wi(e){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||hr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(C(this,"_weekdaysRegex")||(this._weekdaysRegex=li),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function xi(e){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||hr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(C(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ci),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ki(e){return this._weekdaysParseExact?(C(this,"_weekdaysRegex")||hr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(C(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=di),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function hr(){function e(f,h){return h.length-f.length}var t=[],r=[],n=[],s=[],o,i,l,d,c;for(o=0;o<7;o++)i=ae([2e3,1]).day(o),l=de(this.weekdaysMin(i,"")),d=de(this.weekdaysShort(i,"")),c=de(this.weekdays(i,"")),t.push(l),r.push(d),n.push(c),s.push(l),s.push(d),s.push(c);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function mr(){return this.hours()%12||12}function bi(){return this.hours()||24}D("H",["HH",2],0,"hour"),D("h",["hh",2],0,mr),D("k",["kk",2],0,bi),D("hmm",0,0,function(){return""+mr.apply(this)+ie(this.minutes(),2)}),D("hmmss",0,0,function(){return""+mr.apply(this)+ie(this.minutes(),2)+ie(this.seconds(),2)}),D("Hmm",0,0,function(){return""+this.hours()+ie(this.minutes(),2)}),D("Hmmss",0,0,function(){return""+this.hours()+ie(this.minutes(),2)+ie(this.seconds(),2)});function $n(e,t){D(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}$n("a",!0),$n("A",!1);function Ln(e,t){return t._meridiemParse}x("a",Ln),x("A",Ln),x("H",Y,cr),x("h",Y,Pe),x("k",Y,Pe),x("HH",Y,G),x("hh",Y,G),x("kk",Y,G),x("hmm",Mn),x("hmmss",Tn),x("Hmm",Mn),x("Hmmss",Tn),P(["H","HH"],$),P(["k","kk"],function(e,t,r){var n=M(e);t[$]=n===24?0:n}),P(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),P(["h","hh"],function(e,t,r){t[$]=M(e),N(r).bigHour=!0}),P("hmm",function(e,t,r){var n=e.length-2;t[$]=M(e.substr(0,n)),t[te]=M(e.substr(n)),N(r).bigHour=!0}),P("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[$]=M(e.substr(0,n)),t[te]=M(e.substr(n,2)),t[fe]=M(e.substr(s)),N(r).bigHour=!0}),P("Hmm",function(e,t,r){var n=e.length-2;t[$]=M(e.substr(0,n)),t[te]=M(e.substr(n))}),P("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[$]=M(e.substr(0,n)),t[te]=M(e.substr(n,2)),t[fe]=M(e.substr(s))});function Si(e){return(e+"").toLowerCase().charAt(0)==="p"}var Di=/[ap]\.?m?\.?/i,Ei=Ye("Hours",!0);function Ni(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Un={calendar:mo,longDateFormat:go,invalidDate:xo,ordinal:bo,dayOfMonthOrdinalParse:So,relativeTime:Eo,months:Uo,monthsShort:Vn,week:Xo,weekdays:oi,weekdaysMin:ii,weekdaysShort:vn,meridiemParse:Di},F={},Qe={},Xe;function Oi(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function In(e){return e&&e.toLowerCase().replace("_","-")}function Mi(e){for(var t=0,r,n,s,o;t<e.length;){for(o=In(e[t]).split("-"),r=o.length,n=In(e[t+1]),n=n?n.split("-"):null;r>0;){if(s=Dt(o.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&Oi(o,n)>=r-1)break;r--}t++}return Xe}function Ti(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Dt(e){var t=null,r;if(F[e]===void 0&&typeof module<"u"&&module&&module.exports&&Ti(e))try{t=Xe._abbr,r=require,r("./locale/"+e),we(t)}catch{F[e]=null}return F[e]}function we(e,t){var r;return e&&(z(t)?r=me(e):r=pr(e,t),r?Xe=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Xe._abbr}function pr(e,t){if(t!==null){var r,n=Un;if(t.abbr=e,F[e]!=null)Sn("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=F[e]._config;else if(t.parentLocale!=null)if(F[t.parentLocale]!=null)n=F[t.parentLocale]._config;else if(r=Dt(t.parentLocale),r!=null)n=r._config;else return Qe[t.parentLocale]||(Qe[t.parentLocale]=[]),Qe[t.parentLocale].push({name:e,config:t}),null;return F[e]=new rr(tr(n,t)),Qe[e]&&Qe[e].forEach(function(s){pr(s.name,s.config)}),we(e),F[e]}else return delete F[e],null}function Ci(e,t){if(t!=null){var r,n,s=Un;F[e]!=null&&F[e].parentLocale!=null?F[e].set(tr(F[e]._config,t)):(n=Dt(e),n!=null&&(s=n._config),t=tr(s,t),n==null&&(t.abbr=e),r=new rr(t),r.parentLocale=F[e],F[e]=r),we(e)}else F[e]!=null&&(F[e].parentLocale!=null?(F[e]=F[e].parentLocale,e===we()&&we(e)):F[e]!=null&&delete F[e]);return F[e]}function me(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Xe;if(!X(e)){if(t=Dt(e),t)return t;e=[e]}return Mi(e)}function Ri(){return nr(F)}function yr(e){var t,r=e._a;return r&&N(e).overflow===-2&&(t=r[ue]<0||r[ue]>11?ue:r[le]<1||r[le]>ur(r[I],r[ue])?le:r[$]<0||r[$]>24||r[$]===24&&(r[te]!==0||r[fe]!==0||r[Ee]!==0)?$:r[te]<0||r[te]>59?te:r[fe]<0||r[fe]>59?fe:r[Ee]<0||r[Ee]>999?Ee:-1,N(e)._overflowDayOfYear&&(t<I||t>le)&&(t=le),N(e)._overflowWeeks&&t===-1&&(t=Ao),N(e)._overflowWeekday&&t===-1&&(t=Fo),N(e).overflow=t),e}var Vi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Yi=/Z|[+-]\d\d(?::?\d\d)?/,Et=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_r=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ai=/^\/?Date\((-?\d+)/i,Fi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Bi={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Wn(e){var t,r,n=e._i,s=Vi.exec(n)||Pi.exec(n),o,i,l,d,c=Et.length,f=_r.length;if(s){for(N(e).iso=!0,t=0,r=c;t<r;t++)if(Et[t][1].exec(s[1])){i=Et[t][0],o=Et[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(s[3]){for(t=0,r=f;t<r;t++)if(_r[t][1].exec(s[3])){l=(s[2]||" ")+_r[t][0];break}if(l==null){e._isValid=!1;return}}if(!o&&l!=null){e._isValid=!1;return}if(s[4])if(Yi.exec(s[4]))d="Z";else{e._isValid=!1;return}e._f=i+(l||"")+(d||""),wr(e)}else e._isValid=!1}function vi(e,t,r,n,s,o){var i=[$i(e),Vn.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return o&&i.push(parseInt(o,10)),i}function $i(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Li(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ui(e,t,r){if(e){var n=vn.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return N(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Ii(e,t,r){if(e)return Bi[e];if(t)return 0;var n=parseInt(r,10),s=n%100,o=(n-s)/100;return o*60+s}function jn(e){var t=Fi.exec(Li(e._i)),r;if(t){if(r=vi(t[4],t[3],t[2],t[5],t[6],t[7]),!Ui(t[1],r,e))return;e._a=r,e._tzm=Ii(t[8],t[9],t[10]),e._d=Je.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),N(e).rfc2822=!0}else e._isValid=!1}function Wi(e){var t=Ai.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Wn(e),e._isValid===!1)delete e._isValid;else return;if(jn(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:w.createFromInputFallback(e)}w.createFromInputFallback=Z("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ae(e,t,r){return e??t??r}function ji(e){var t=new Date(w.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function gr(e){var t,r,n=[],s,o,i;if(!e._d){for(s=ji(e),e._w&&e._a[le]==null&&e._a[ue]==null&&Hi(e),e._dayOfYear!=null&&(i=Ae(e._a[I],s[I]),(e._dayOfYear>Ge(i)||e._dayOfYear===0)&&(N(e)._overflowDayOfYear=!0),r=Je(i,0,e._dayOfYear),e._a[ue]=r.getUTCMonth(),e._a[le]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[$]===24&&e._a[te]===0&&e._a[fe]===0&&e._a[Ee]===0&&(e._nextDay=!0,e._a[$]=0),e._d=(e._useUTC?Je:Ko).apply(null,n),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(N(e).weekdayMismatch=!0)}}function Hi(e){var t,r,n,s,o,i,l,d,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,i=4,r=Ae(t.GG,e._a[I],Ke(A(),1,4).year),n=Ae(t.W,1),s=Ae(t.E,1),(s<1||s>7)&&(d=!0)):(o=e._locale._week.dow,i=e._locale._week.doy,c=Ke(A(),o,i),r=Ae(t.gg,e._a[I],c.year),n=Ae(t.w,c.week),t.d!=null?(s=t.d,(s<0||s>6)&&(d=!0)):t.e!=null?(s=t.e+o,(t.e<0||t.e>6)&&(d=!0)):s=o),n<1||n>he(r,o,i)?N(e)._overflowWeeks=!0:d!=null?N(e)._overflowWeekday=!0:(l=Bn(r,n,s,o,i),e._a[I]=l.year,e._dayOfYear=l.dayOfYear)}w.ISO_8601=function(){},w.RFC_2822=function(){};function wr(e){if(e._f===w.ISO_8601){Wn(e);return}if(e._f===w.RFC_2822){jn(e);return}e._a=[],N(e).empty=!0;var t=""+e._i,r,n,s,o,i,l=t.length,d=0,c,f;for(s=Dn(e._f,e._locale).match(sr)||[],f=s.length,r=0;r<f;r++)o=s[r],n=(t.match(Vo(o,e))||[])[0],n&&(i=t.substr(0,t.indexOf(n)),i.length>0&&N(e).unusedInput.push(i),t=t.slice(t.indexOf(n)+n.length),d+=n.length),Re[o]?(n?N(e).empty=!1:N(e).unusedTokens.push(o),Yo(o,n,e)):e._strict&&!n&&N(e).unusedTokens.push(o);N(e).charsLeftOver=l-d,t.length>0&&N(e).unusedInput.push(t),e._a[$]<=12&&N(e).bigHour===!0&&e._a[$]>0&&(N(e).bigHour=void 0),N(e).parsedDateParts=e._a.slice(0),N(e).meridiem=e._meridiem,e._a[$]=zi(e._locale,e._a[$],e._meridiem),c=N(e).era,c!==null&&(e._a[I]=e._locale.erasConvertYear(c,e._a[I])),gr(e),yr(e)}function zi(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function qi(e){var t,r,n,s,o,i,l=!1,d=e._f.length;if(d===0){N(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<d;s++)o=0,i=!1,t=er({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],wr(t),Qt(t)&&(i=!0),o+=N(t).charsLeftOver,o+=N(t).unusedTokens.length*10,N(t).score=o,l?o<n&&(n=o,r=t):(n==null||o<n||i)&&(n=o,r=t,i&&(l=!0));ge(e,r||t)}function Gi(e){if(!e._d){var t=or(e._i),r=t.day===void 0?t.date:t.day;e._a=wn([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),gr(e)}}function Zi(e){var t=new He(yr(Hn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Hn(e){var t=e._i,r=e._f;return e._locale=e._locale||me(e._l),t===null||r===void 0&&t===""?ht({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),ee(t)?new He(yr(t)):(je(t)?e._d=t:X(r)?qi(e):r?wr(e):Ji(e),Qt(e)||(e._d=null),e))}function Ji(e){var t=e._i;z(t)?e._d=new Date(w.now()):je(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Wi(e):X(t)?(e._a=wn(t.slice(0),function(r){return parseInt(r,10)}),gr(e)):De(t)?Gi(e):ce(t)?e._d=new Date(t):w.createFromInputFallback(e)}function zn(e,t,r,n,s){var o={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(De(e)&&Jt(e)||X(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=s,o._l=r,o._i=e,o._f=t,o._strict=n,Zi(o)}function A(e,t,r,n){return zn(e,t,r,n,!1)}var Ki=Z("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=A.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:ht()}),Qi=Z("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=A.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:ht()});function qn(e,t){var r,n;if(t.length===1&&X(t[0])&&(t=t[0]),!t.length)return A();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function Xi(){var e=[].slice.call(arguments,0);return qn("isBefore",e)}function el(){var e=[].slice.call(arguments,0);return qn("isAfter",e)}var tl=function(){return Date.now?Date.now():+new Date},et=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rl(e){var t,r=!1,n,s=et.length;for(t in e)if(C(e,t)&&!(v.call(et,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[et[n]]){if(r)return!1;parseFloat(e[et[n]])!==M(e[et[n]])&&(r=!0)}return!0}function nl(){return this._isValid}function sl(){return re(NaN)}function Nt(e){var t=or(e),r=t.year||0,n=t.quarter||0,s=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,d=t.minute||0,c=t.second||0,f=t.millisecond||0;this._isValid=rl(t),this._milliseconds=+f+c*1e3+d*6e4+l*1e3*60*60,this._days=+i+o*7,this._months=+s+n*3+r*12,this._data={},this._locale=me(),this._bubble()}function Ot(e){return e instanceof Nt}function xr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function al(e,t,r){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0,i;for(i=0;i<n;i++)M(e[i])!==M(t[i])&&o++;return o+s}function Gn(e,t){D(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+ie(~~(r/60),2)+t+ie(~~r%60,2)})}Gn("Z",":"),Gn("ZZ",""),x("Z",xt),x("ZZ",xt),P(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=kr(xt,e)});var ol=/([\+\-]|\d\d)/gi;function kr(e,t){var r=(t||"").match(e),n,s,o;return r===null?null:(n=r[r.length-1]||[],s=(n+"").match(ol)||["-",0,0],o=+(s[1]*60)+M(s[2]),o===0?0:s[0]==="+"?o:-o)}function br(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(ee(e)||je(e)?e.valueOf():A(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),w.updateOffset(r,!1),r):A(e).local()}function Sr(e){return-Math.round(e._d.getTimezoneOffset())}w.updateOffset=function(){};function il(e,t,r){var n=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=kr(xt,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=Sr(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?Qn(this,re(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,w.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:Sr(this)}function ll(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function cl(e){return this.utcOffset(0,e)}function dl(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Sr(this),"m")),this}function ul(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=kr(Co,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function fl(e){return this.isValid()?(e=e?A(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function hl(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ml(){if(!z(this._isDSTShifted))return this._isDSTShifted;var e={},t;return er(e,this),e=Hn(e),e._a?(t=e._isUTC?ae(e._a):A(e._a),this._isDSTShifted=this.isValid()&&al(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function pl(){return this.isValid()?!this._isUTC:!1}function yl(){return this.isValid()?this._isUTC:!1}function Zn(){return this.isValid()?this._isUTC&&this._offset===0:!1}var _l=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,gl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function re(e,t){var r=e,n=null,s,o,i;return Ot(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ce(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=_l.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:M(n[le])*s,h:M(n[$])*s,m:M(n[te])*s,s:M(n[fe])*s,ms:M(xr(n[Ee]*1e3))*s}):(n=gl.exec(e))?(s=n[1]==="-"?-1:1,r={y:Ne(n[2],s),M:Ne(n[3],s),w:Ne(n[4],s),d:Ne(n[5],s),h:Ne(n[6],s),m:Ne(n[7],s),s:Ne(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=wl(A(r.from),A(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),o=new Nt(r),Ot(e)&&C(e,"_locale")&&(o._locale=e._locale),Ot(e)&&C(e,"_isValid")&&(o._isValid=e._isValid),o}re.fn=Nt.prototype,re.invalid=sl;function Ne(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Jn(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function wl(e,t){var r;return e.isValid()&&t.isValid()?(t=br(t,e),e.isBefore(t)?r=Jn(e,t):(r=Jn(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Kn(e,t){return function(r,n){var s,o;return n!==null&&!isNaN(+n)&&(Sn(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=n,n=o),s=re(r,n),Qn(this,s,e),this}}function Qn(e,t,r,n){var s=t._milliseconds,o=xr(t._days),i=xr(t._months);e.isValid()&&(n=n??!0,i&&Yn(e,Ze(e,"Month")+i*r),o&&Rn(e,"Date",Ze(e,"Date")+o*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&w.updateOffset(e,o||i))}var xl=Kn(1,"add"),kl=Kn(-1,"subtract");function Xn(e){return typeof e=="string"||e instanceof String}function bl(e){return ee(e)||je(e)||Xn(e)||ce(e)||Dl(e)||Sl(e)||e===null||e===void 0}function Sl(e){var t=De(e)&&!Jt(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,o,i=n.length;for(s=0;s<i;s+=1)o=n[s],r=r||C(e,o);return t&&r}function Dl(e){var t=X(e),r=!1;return t&&(r=e.filter(function(n){return!ce(n)&&Xn(e)}).length===0),t&&r}function El(e){var t=De(e)&&!Jt(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,o;for(s=0;s<n.length;s+=1)o=n[s],r=r||C(e,o);return t&&r}function Nl(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Ol(e,t){arguments.length===1&&(arguments[0]?bl(arguments[0])?(e=arguments[0],t=void 0):El(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||A(),n=br(r,this).startOf("day"),s=w.calendarFormat(this,n)||"sameElse",o=t&&(oe(t[s])?t[s].call(this,r):t[s]);return this.format(o||this.localeData().calendar(s,this,A(r)))}function Ml(){return new He(this)}function Tl(e,t){var r=ee(e)?e:A(e);return this.isValid()&&r.isValid()?(t=J(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Cl(e,t){var r=ee(e)?e:A(e);return this.isValid()&&r.isValid()?(t=J(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Rl(e,t,r,n){var s=ee(e)?e:A(e),o=ee(t)?t:A(t);return this.isValid()&&s.isValid()&&o.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(n[1]===")"?this.isBefore(o,r):!this.isAfter(o,r))):!1}function Vl(e,t){var r=ee(e)?e:A(e),n;return this.isValid()&&r.isValid()?(t=J(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function Pl(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Yl(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Al(e,t,r){var n,s,o;if(!this.isValid())return NaN;if(n=br(e,this),!n.isValid())return NaN;switch(s=(n.utcOffset()-this.utcOffset())*6e4,t=J(t),t){case"year":o=Mt(this,n)/12;break;case"month":o=Mt(this,n);break;case"quarter":o=Mt(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-s)/864e5;break;case"week":o=(this-n-s)/6048e5;break;default:o=this-n}return r?o:K(o)}function Mt(e,t){if(e.date()<t.date())return-Mt(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),s,o;return t-n<0?(s=e.clone().add(r-1,"months"),o=(t-n)/(n-s)):(s=e.clone().add(r+1,"months"),o=(t-n)/(s-n)),-(r+o)||0}w.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",w.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Fl(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Bl(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?pt(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):oe(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",pt(r,"Z")):pt(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function vl(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(r+n+s+o)}function $l(e){e||(e=this.isUtc()?w.defaultFormatUtc:w.defaultFormat);var t=pt(this,e);return this.localeData().postformat(t)}function Ll(e,t){return this.isValid()&&(ee(e)&&e.isValid()||A(e).isValid())?re({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ul(e){return this.from(A(),e)}function Il(e,t){return this.isValid()&&(ee(e)&&e.isValid()||A(e).isValid())?re({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Wl(e){return this.to(A(),e)}function es(e){var t;return e===void 0?this._locale._abbr:(t=me(e),t!=null&&(this._locale=t),this)}var ts=Z("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function rs(){return this._locale}var Tt=1e3,Fe=60*Tt,Ct=60*Fe,ns=(365*400+97)*24*Ct;function Be(e,t){return(e%t+t)%t}function ss(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-ns:new Date(e,t,r).valueOf()}function as(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-ns:Date.UTC(e,t,r)}function jl(e){var t,r;if(e=J(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?as:ss,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Be(t+(this._isUTC?0:this.utcOffset()*Fe),Ct);break;case"minute":t=this._d.valueOf(),t-=Be(t,Fe);break;case"second":t=this._d.valueOf(),t-=Be(t,Tt);break}return this._d.setTime(t),w.updateOffset(this,!0),this}function Hl(e){var t,r;if(e=J(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?as:ss,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Ct-Be(t+(this._isUTC?0:this.utcOffset()*Fe),Ct)-1;break;case"minute":t=this._d.valueOf(),t+=Fe-Be(t,Fe)-1;break;case"second":t=this._d.valueOf(),t+=Tt-Be(t,Tt)-1;break}return this._d.setTime(t),w.updateOffset(this,!0),this}function zl(){return this._d.valueOf()-(this._offset||0)*6e4}function ql(){return Math.floor(this.valueOf()/1e3)}function Gl(){return new Date(this.valueOf())}function Zl(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Jl(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Kl(){return this.isValid()?this.toISOString():null}function Ql(){return Qt(this)}function Xl(){return ge({},N(this))}function ec(){return N(this).overflow}function tc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}D("N",0,0,"eraAbbr"),D("NN",0,0,"eraAbbr"),D("NNN",0,0,"eraAbbr"),D("NNNN",0,0,"eraName"),D("NNNNN",0,0,"eraNarrow"),D("y",["y",1],"yo","eraYear"),D("y",["yy",2],0,"eraYear"),D("y",["yyy",3],0,"eraYear"),D("y",["yyyy",4],0,"eraYear"),x("N",Dr),x("NN",Dr),x("NNN",Dr),x("NNNN",fc),x("NNNNN",hc),P(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?N(r).era=s:N(r).invalidEra=e}),x("y",Ve),x("yy",Ve),x("yyy",Ve),x("yyyy",Ve),x("yo",mc),P(["y","yy","yyy","yyyy"],I),P(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[I]=r._locale.eraYearOrdinalParse(e,s):t[I]=parseInt(e,10)});function rc(e,t){var r,n,s,o=this._eras||me("en")._eras;for(r=0,n=o.length;r<n;++r){switch(typeof o[r].since){case"string":s=w(o[r].since).startOf("day"),o[r].since=s.valueOf();break}switch(typeof o[r].until){case"undefined":o[r].until=1/0;break;case"string":s=w(o[r].until).startOf("day").valueOf(),o[r].until=s.valueOf();break}}return o}function nc(e,t,r){var n,s,o=this.eras(),i,l,d;for(e=e.toUpperCase(),n=0,s=o.length;n<s;++n)if(i=o[n].name.toUpperCase(),l=o[n].abbr.toUpperCase(),d=o[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(l===e)return o[n];break;case"NNNN":if(i===e)return o[n];break;case"NNNNN":if(d===e)return o[n];break}else if([i,l,d].indexOf(e)>=0)return o[n]}function sc(e,t){var r=e.since<=e.until?1:-1;return t===void 0?w(e.since).year():w(e.since).year()+(t-e.offset)*r}function ac(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function oc(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function ic(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function lc(){var e,t,r,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return(this.year()-w(s[e].since).year())*r+s[e].offset;return this.year()}function cc(e){return C(this,"_erasNameRegex")||Er.call(this),e?this._erasNameRegex:this._erasRegex}function dc(e){return C(this,"_erasAbbrRegex")||Er.call(this),e?this._erasAbbrRegex:this._erasRegex}function uc(e){return C(this,"_erasNarrowRegex")||Er.call(this),e?this._erasNarrowRegex:this._erasRegex}function Dr(e,t){return t.erasAbbrRegex(e)}function fc(e,t){return t.erasNameRegex(e)}function hc(e,t){return t.erasNarrowRegex(e)}function mc(e,t){return t._eraYearOrdinalRegex||Ve}function Er(){var e=[],t=[],r=[],n=[],s,o,i,l,d,c=this.eras();for(s=0,o=c.length;s<o;++s)i=de(c[s].name),l=de(c[s].abbr),d=de(c[s].narrow),t.push(i),e.push(l),r.push(d),n.push(i),n.push(l),n.push(d);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}D(0,["gg",2],0,function(){return this.weekYear()%100}),D(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Rt(e,t){D(0,[e,e.length],0,t)}Rt("gggg","weekYear"),Rt("ggggg","weekYear"),Rt("GGGG","isoWeekYear"),Rt("GGGGG","isoWeekYear"),x("G",wt),x("g",wt),x("GG",Y,G),x("gg",Y,G),x("GGGG",lr,ir),x("gggg",lr,ir),x("GGGGG",gt,yt),x("ggggg",gt,yt),qe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=M(e)}),qe(["gg","GG"],function(e,t,r,n){t[n]=w.parseTwoDigitYear(e)});function pc(e){return os.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function yc(e){return os.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function _c(){return he(this.year(),1,4)}function gc(){return he(this.isoWeekYear(),1,4)}function wc(){var e=this.localeData()._week;return he(this.year(),e.dow,e.doy)}function xc(){var e=this.localeData()._week;return he(this.weekYear(),e.dow,e.doy)}function os(e,t,r,n,s){var o;return e==null?Ke(this,n,s).year:(o=he(e,n,s),t>o&&(t=o),kc.call(this,e,t,r,n,s))}function kc(e,t,r,n,s){var o=Bn(e,t,r,n,s),i=Je(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}D("Q",0,"Qo","quarter"),x("Q",Nn),P("Q",function(e,t){t[ue]=(M(e)-1)*3});function bc(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}D("D",["DD",2],"Do","date"),x("D",Y,Pe),x("DD",Y,G),x("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),P(["D","DD"],le),P("Do",function(e,t){t[le]=M(e.match(Y)[0])});var is=Ye("Date",!0);D("DDD",["DDDD",3],"DDDo","dayOfYear"),x("DDD",_t),x("DDDD",On),P(["DDD","DDDD"],function(e,t,r){r._dayOfYear=M(e)});function Sc(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}D("m",["mm",2],0,"minute"),x("m",Y,cr),x("mm",Y,G),P(["m","mm"],te);var Dc=Ye("Minutes",!1);D("s",["ss",2],0,"second"),x("s",Y,cr),x("ss",Y,G),P(["s","ss"],fe);var Ec=Ye("Seconds",!1);D("S",0,0,function(){return~~(this.millisecond()/100)}),D(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,function(){return this.millisecond()*10}),D(0,["SSSSS",5],0,function(){return this.millisecond()*100}),D(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),D(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),D(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),D(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),x("S",_t,Nn),x("SS",_t,G),x("SSS",_t,On);var xe,ls;for(xe="SSSS";xe.length<=9;xe+="S")x(xe,Ve);function Nc(e,t){t[Ee]=M(("0."+e)*1e3)}for(xe="S";xe.length<=9;xe+="S")P(xe,Nc);ls=Ye("Milliseconds",!1),D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName");function Oc(){return this._isUTC?"UTC":""}function Mc(){return this._isUTC?"Coordinated Universal Time":""}var m=He.prototype;m.add=xl,m.calendar=Ol,m.clone=Ml,m.diff=Al,m.endOf=Hl,m.format=$l,m.from=Ll,m.fromNow=Ul,m.to=Il,m.toNow=Wl,m.get=vo,m.invalidAt=ec,m.isAfter=Tl,m.isBefore=Cl,m.isBetween=Rl,m.isSame=Vl,m.isSameOrAfter=Pl,m.isSameOrBefore=Yl,m.isValid=Ql,m.lang=ts,m.locale=es,m.localeData=rs,m.max=Qi,m.min=Ki,m.parsingFlags=Xl,m.set=$o,m.startOf=jl,m.subtract=kl,m.toArray=Zl,m.toObject=Jl,m.toDate=Gl,m.toISOString=Bl,m.inspect=vl,typeof Symbol<"u"&&Symbol.for!=null&&(m[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),m.toJSON=Kl,m.toString=Fl,m.unix=ql,m.valueOf=zl,m.creationData=tc,m.eraName=ac,m.eraNarrow=oc,m.eraAbbr=ic,m.eraYear=lc,m.year=Cn,m.isLeapYear=Bo,m.weekYear=pc,m.isoWeekYear=yc,m.quarter=m.quarters=bc,m.month=An,m.daysInMonth=Go,m.week=m.weeks=ri,m.isoWeek=m.isoWeeks=ni,m.weeksInYear=wc,m.weeksInWeekYear=xc,m.isoWeeksInYear=_c,m.isoWeeksInISOWeekYear=gc,m.date=is,m.day=m.days=yi,m.weekday=_i,m.isoWeekday=gi,m.dayOfYear=Sc,m.hour=m.hours=Ei,m.minute=m.minutes=Dc,m.second=m.seconds=Ec,m.millisecond=m.milliseconds=ls,m.utcOffset=il,m.utc=cl,m.local=dl,m.parseZone=ul,m.hasAlignedHourOffset=fl,m.isDST=hl,m.isLocal=pl,m.isUtcOffset=yl,m.isUtc=Zn,m.isUTC=Zn,m.zoneAbbr=Oc,m.zoneName=Mc,m.dates=Z("dates accessor is deprecated. Use date instead.",is),m.months=Z("months accessor is deprecated. Use month instead",An),m.years=Z("years accessor is deprecated. Use year instead",Cn),m.zone=Z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ll),m.isDSTShifted=Z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ml);function Tc(e){return A(e*1e3)}function Cc(){return A.apply(null,arguments).parseZone()}function cs(e){return e}var R=rr.prototype;R.calendar=po,R.longDateFormat=wo,R.invalidDate=ko,R.ordinal=Do,R.preparse=cs,R.postformat=cs,R.relativeTime=No,R.pastFuture=Oo,R.set=ho,R.eras=rc,R.erasParse=nc,R.erasConvertYear=sc,R.erasAbbrRegex=dc,R.erasNameRegex=cc,R.erasNarrowRegex=uc,R.months=jo,R.monthsShort=Ho,R.monthsParse=qo,R.monthsRegex=Jo,R.monthsShortRegex=Zo,R.week=Qo,R.firstDayOfYear=ti,R.firstDayOfWeek=ei,R.weekdays=ui,R.weekdaysMin=hi,R.weekdaysShort=fi,R.weekdaysParse=pi,R.weekdaysRegex=wi,R.weekdaysShortRegex=xi,R.weekdaysMinRegex=ki,R.isPM=Si,R.meridiem=Ni;function Vt(e,t,r,n){var s=me(),o=ae().set(n,t);return s[r](o,e)}function ds(e,t,r){if(ce(e)&&(t=e,e=void 0),e=e||"",t!=null)return Vt(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Vt(e,n,r,"month");return s}function Nr(e,t,r,n){typeof e=="boolean"?(ce(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ce(t)&&(r=t,t=void 0),t=t||"");var s=me(),o=e?s._week.dow:0,i,l=[];if(r!=null)return Vt(t,(r+o)%7,n,"day");for(i=0;i<7;i++)l[i]=Vt(t,(i+o)%7,n,"day");return l}function Rc(e,t){return ds(e,t,"months")}function Vc(e,t){return ds(e,t,"monthsShort")}function Pc(e,t,r){return Nr(e,t,r,"weekdays")}function Yc(e,t,r){return Nr(e,t,r,"weekdaysShort")}function Ac(e,t,r){return Nr(e,t,r,"weekdaysMin")}we("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=M(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}}),w.lang=Z("moment.lang is deprecated. Use moment.locale instead.",we),w.langData=Z("moment.langData is deprecated. Use moment.localeData instead.",me);var pe=Math.abs;function Fc(){var e=this._data;return this._milliseconds=pe(this._milliseconds),this._days=pe(this._days),this._months=pe(this._months),e.milliseconds=pe(e.milliseconds),e.seconds=pe(e.seconds),e.minutes=pe(e.minutes),e.hours=pe(e.hours),e.months=pe(e.months),e.years=pe(e.years),this}function us(e,t,r,n){var s=re(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function Bc(e,t){return us(this,e,t,1)}function vc(e,t){return us(this,e,t,-1)}function fs(e){return e<0?Math.floor(e):Math.ceil(e)}function $c(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,o,i,l,d;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=fs(Or(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=K(e/1e3),n.seconds=s%60,o=K(s/60),n.minutes=o%60,i=K(o/60),n.hours=i%24,t+=K(i/24),d=K(hs(t)),r+=d,t-=fs(Or(d)),l=K(r/12),r%=12,n.days=t,n.months=r,n.years=l,this}function hs(e){return e*4800/146097}function Or(e){return e*146097/4800}function Lc(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=J(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+hs(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Or(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function ye(e){return function(){return this.as(e)}}var ms=ye("ms"),Uc=ye("s"),Ic=ye("m"),Wc=ye("h"),jc=ye("d"),Hc=ye("w"),zc=ye("M"),qc=ye("Q"),Gc=ye("y"),Zc=ms;function Jc(){return re(this)}function Kc(e){return e=J(e),this.isValid()?this[e+"s"]():NaN}function Oe(e){return function(){return this.isValid()?this._data[e]:NaN}}var Qc=Oe("milliseconds"),Xc=Oe("seconds"),ed=Oe("minutes"),td=Oe("hours"),rd=Oe("days"),nd=Oe("months"),sd=Oe("years");function ad(){return K(this.days()/7)}var _e=Math.round,ve={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function od(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function id(e,t,r,n){var s=re(e).abs(),o=_e(s.as("s")),i=_e(s.as("m")),l=_e(s.as("h")),d=_e(s.as("d")),c=_e(s.as("M")),f=_e(s.as("w")),h=_e(s.as("y")),b=o<=r.ss&&["s",o]||o<r.s&&["ss",o]||i<=1&&["m"]||i<r.m&&["mm",i]||l<=1&&["h"]||l<r.h&&["hh",l]||d<=1&&["d"]||d<r.d&&["dd",d];return r.w!=null&&(b=b||f<=1&&["w"]||f<r.w&&["ww",f]),b=b||c<=1&&["M"]||c<r.M&&["MM",c]||h<=1&&["y"]||["yy",h],b[2]=t,b[3]=+e>0,b[4]=n,od.apply(null,b)}function ld(e){return e===void 0?_e:typeof e=="function"?(_e=e,!0):!1}function cd(e,t){return ve[e]===void 0?!1:t===void 0?ve[e]:(ve[e]=t,e==="s"&&(ve.ss=t-1),!0)}function dd(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=ve,s,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},ve,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),o=id(this,!r,n,s),r&&(o=s.pastFuture(+this,o)),s.postformat(o)}var Mr=Math.abs;function $e(e){return(e>0)-(e<0)||+e}function Pt(){if(!this.isValid())return this.localeData().invalidDate();var e=Mr(this._milliseconds)/1e3,t=Mr(this._days),r=Mr(this._months),n,s,o,i,l=this.asSeconds(),d,c,f,h;return l?(n=K(e/60),s=K(n/60),e%=60,n%=60,o=K(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=l<0?"-":"",c=$e(this._months)!==$e(l)?"-":"",f=$e(this._days)!==$e(l)?"-":"",h=$e(this._milliseconds)!==$e(l)?"-":"",d+"P"+(o?c+o+"Y":"")+(r?c+r+"M":"")+(t?f+t+"D":"")+(s||n||e?"T":"")+(s?h+s+"H":"")+(n?h+n+"M":"")+(e?h+i+"S":"")):"P0D"}var T=Nt.prototype;T.isValid=nl,T.abs=Fc,T.add=Bc,T.subtract=vc,T.as=Lc,T.asMilliseconds=ms,T.asSeconds=Uc,T.asMinutes=Ic,T.asHours=Wc,T.asDays=jc,T.asWeeks=Hc,T.asMonths=zc,T.asQuarters=qc,T.asYears=Gc,T.valueOf=Zc,T._bubble=$c,T.clone=Jc,T.get=Kc,T.milliseconds=Qc,T.seconds=Xc,T.minutes=ed,T.hours=td,T.days=rd,T.weeks=ad,T.months=nd,T.years=sd,T.humanize=dd,T.toISOString=Pt,T.toString=Pt,T.toJSON=Pt,T.locale=es,T.localeData=rs,T.toIsoString=Z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pt),T.lang=ts,D("X",0,0,"unix"),D("x",0,0,"valueOf"),x("x",wt),x("X",Ro),P("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)}),P("x",function(e,t,r){r._d=new Date(M(e))});//! moment.js
19
+ w.version="2.30.1",uo(A),w.fn=m,w.min=Xi,w.max=el,w.now=tl,w.utc=ae,w.unix=Tc,w.months=Rc,w.isDate=je,w.locale=we,w.invalid=ht,w.duration=re,w.isMoment=ee,w.weekdays=Pc,w.parseZone=Cc,w.localeData=me,w.isDuration=Ot,w.monthsShort=Vc,w.weekdaysMin=Ac,w.defineLocale=pr,w.updateLocale=Ci,w.locales=Ri,w.weekdaysShort=Yc,w.normalizeUnits=J,w.relativeTimeRounding=ld,w.relativeTimeThreshold=cd,w.calendarFormat=Nl,w.prototype=m,w.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const ud={class:"whitespace-nowrap"},fd={__name:"vs-manager-table-date",props:{value:{type:String,default:()=>""}},setup(e){const t=e,r=a.computed(()=>{if(!t.value)return"-";try{const n=w(t.value,"YYYY-MM-DD");return new Date(n).toLocaleDateString("uk-UA",{day:"2-digit",month:"long",year:"numeric"})}catch{return t.value}});return(n,s)=>(a.openBlock(),a.createElementBlock("div",ud,a.toDisplayString(r.value),1))}},hd={},md={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-check"};function pd(e,t,r,n,s,o){return a.openBlock(),a.createElementBlock("svg",md,t[0]||(t[0]=[a.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),a.createElementVNode("path",{d:"M5 12l5 5l10 -10"},null,-1)]))}const yd=j(hd,[["render",pd]]),ps={__name:"vs-manager-table-switch",props:{value:{type:Boolean,default:()=>!1}},setup(e){return(t,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["w-[20px] h-[20px] rounded-md flex items-center justify-center disabled",[e.value?"bg-blue-400":"border"]])},[a.createVNode(yd,{height:"18",width:"18",class:"text-white"})],2))}},_d={switch:ps,switcher:ps,date:fd},gd={props:{title:{type:String,default:()=>"Дані для відображення відсутні"},text:{type:String,default:()=>"Змініть параметри пошуку або спробуйте пізніше"}}},wd={class:"w-full"},xd={class:"p-5 min-h-[500px] flex flex-col justify-center items-center text-center"},kd={class:"max-w-sm mx-auto mt-6"},bd={class:"font-medium text-gray-800 dark:text-neutral-200"},Sd={class:"mt-2 text-sm text-gray-500 dark:text-neutral-500"};function Dd(e,t,r,n,s,o){return a.openBlock(),a.createElementBlock("div",wd,[a.createElementVNode("div",xd,[t[0]||(t[0]=a.createStaticVNode('<svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>',1)),a.createElementVNode("div",kd,[a.createElementVNode("p",bd,a.toDisplayString(r.title),1),a.createElementVNode("p",Sd,a.toDisplayString(r.text),1)])])])}const Yt=j(gd,[["render",Dd]]),Ed={class:"w-full"},Nd={key:0,class:"relative min-w-full divide-y-2 divide-gray-200 bg-white text-[12px]"},Od={class:"sticky top-[0px] z-[1] bg-white w-full after:absolute after:content-[''] after:block after:w-full after:h-px after:bg-stone-200"},Md={class:"divide-y divide-gray-200 dark:divide-neutral-700"},Td=["onClick"],Cd={class:"px-4 py-2 text-gray-700 max-w-[250px] admin-component-is"},Rd={__name:"vs-manager-collection-table",props:{objectData:Object,template:String},setup(e){const t=[{ua:"Назва",name:"title",format:"Text"},{ua:"Шлях",name:"url",format:"Text"},{ua:"Чи увімкнений",name:"enabled",format:"Switch"},{ua:"Дата створення",name:"cdate",format:"Date"}];return(r,n)=>{var s,o,i;return a.openBlock(),a.createElementBlock("div",Ed,[(o=(s=e.objectData)==null?void 0:s.rows)!=null&&o.length?(a.openBlock(),a.createElementBlock("table",Nd,[a.createElementVNode("thead",Od,[a.createElementVNode("tr",null,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(t,(l,d)=>a.createElementVNode("th",{key:d,class:"text-start px-4 py-2 font-medium text-gray-900 max-w-[250px]"},a.toDisplayString(l==null?void 0:l.ua),1)),64))])]),a.createElementVNode("tbody",Md,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((i=e.objectData)==null?void 0:i.rows,l=>(a.openBlock(),a.createElementBlock("tr",{class:"odd:bg-gray-50",onClick:d=>r.$router.push(`/cms/manager/collection/${e.template}/${l==null?void 0:l.id}`)},[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(t,d=>{var c;return a.createElementVNode("td",Cd,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(_d)[(c=d==null?void 0:d.format)==null?void 0:c.toLowerCase()]||"div"),{value:l==null?void 0:l[d==null?void 0:d.name]},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l==null?void 0:l[d==null?void 0:d.name]),1)]),_:2},1032,["value"]))])}),64))],8,Td))),256))])])):(a.openBlock(),a.createBlock(Yt,{key:1}))])}}},Vd=e=>{const t={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"e",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"ts",ч:"ch",ш:"sh",щ:"shch",ы:"y",э:"e",ю:"yu",я:"ya",ь:"",ъ:"",є:"ye",і:"i",ї:"yi",ґ:"g"};return e.toLowerCase().split("").map(r=>t[r]||r).join("").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim("-")},Pd={class:"flex justify-end p-[20px] gap-[10px] border-t w-full"},Yd={__name:"vs-manager-colection-table-add",props:{template:{type:String,default:()=>""}},emits:["update-list"],setup(e,{emit:t}){const r=a.getCurrentInstance().proxy.$notify,n=t,s=e,o=a.ref(!1),i=a.ref({}),l=a.ref(),d=async()=>{try{await l.value.doValidation(),i.value.url=Vd(i.value.title),await O.post(`/api/cms-manager/${s.template}`,i.value),r({type:"success",title:"Успушно!",message:"Об'єкт створено успішно"}),i.value={},o.value=!1,n("update-list")}catch{r({type:"error",title:"Помилка!",message:"При спробі створити об'єкт сталася помилка"})}},c=[{key:"title",ua:"Назва",type:"Text",placeholder:"Назва",validators:["required"]},{key:"body",ua:"Контент",type:"TextEditor",validators:["required"]},{ua:"Чи увімкнений",name:"enabled",type:"Switcher"}];return(f,h)=>{const b=a.resolveComponent("VsForm"),S=a.resolveComponent("VsDialog");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("button",{onClick:h[0]||(h[0]=_=>o.value=!0),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Створити "),a.createVNode(S,{title:"Створити об'єкт",visible:o.value,"onUpdate:visible":h[3]||(h[3]=_=>o.value=_)},{footer:a.withCtx(()=>[a.createElementVNode("div",Pd,[a.createElementVNode("button",{onClick:h[2]||(h[2]=_=>o.value=!1),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border rounded-lg border-gray-200 hover:bg-gray-100 duration-300"}," Скасувати"),a.createElementVNode("button",{onClick:d,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Створити ")])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(b,{ref_key:"form",ref:l,scheme:c,modelValue:i.value,"onUpdate:modelValue":h[1]||(h[1]=_=>i.value=_)},null,8,["modelValue"])])]),_:1},8,["visible"])],64)}}},Ad=(e,t=300)=>{let r;return function(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}},Fd={class:"bg-white rounded-xl p-[20px] border mt-[20px]"},Bd={class:"mb-4 xl:mb-8"},vd={class:"text-lg font-semibold text-gray-800 dark:text-neutral-200"},$d={class:"text-sm text-gray-500 dark:text-neutral-500"},Ld={class:"flex items-center"},Ud={class:"flex justify-end ml-auto items-center"},Id={__name:"vs-manager-collection-content",setup(e){const t=ft(),r=a.computed(()=>{var i;return(i=t==null?void 0:t.params)==null?void 0:i.template}),n=a.ref(null),s=async(i=null)=>{try{const{data:l}=await O.get(`/api/cms-manager/${r.value}`,{params:{search:i}});n.value=l}catch{}},o=Ad(i=>s(i),300);return a.watch(r,s),a.onMounted(()=>s()),(i,l)=>{var d,c,f,h;return a.openBlock(),a.createElementBlock("div",Fd,[a.createElementVNode("div",Bd,[a.createElementVNode("h1",vd,a.toDisplayString((c=(d=n.value)==null?void 0:d.type)==null?void 0:c.name),1),a.createElementVNode("p",$d,a.toDisplayString((h=(f=n.value)==null?void 0:f.type)==null?void 0:h.description),1)]),a.createElementVNode("div",Ld,[a.createElementVNode("input",{type:"text",onInput:l[0]||(l[0]=({target:b})=>a.unref(o)(b.value)),class:"py-2 px-4 block max-w-[400px] w-full bg-gray-100 border-transparent rounded-lg text-sm focus:outline-2 focus:outline-blue-500 h-[36px] mb-[1px]",placeholder:"Пошук за назвою"},null,32),a.createElementVNode("div",Ud,[a.createVNode(Yd,{template:r.value,onUpdateList:s},null,8,["template"])])]),a.createVNode(Rd,{objectData:n.value,template:r.value},null,8,["objectData","template"])])}}},Wd={class:"flex items-center justify-between"},jd={class:"mt-[10px]"},Hd={class:"font-medium text-2xl"},zd={class:"text-gray-600"},qd={class:"w-full mt-[20px] bg-white rounded-xl p-[20px] border"},Gd={__name:"vs-manager-collection-item-content",setup(e){const t=a.getCurrentInstance().proxy.$notify,r=ft(),n=qa(),s=a.computed(()=>{var S;return(S=r==null?void 0:r.params)==null?void 0:S.template}),o=a.computed(()=>{var S;return(S=r==null?void 0:r.params)==null?void 0:S.id}),i=a.ref(null),l=a.ref({}),d=a.ref(1),c=async()=>{var S,_;try{const{data:k}=await O.get(`/api/cms-manager/${s.value}/${o.value}`);i.value=(S=k==null?void 0:k.rows)==null?void 0:S[0],l.value=(_=k==null?void 0:k.rows)==null?void 0:_[0],d.value=d.value+1}catch{}},f=async()=>{try{await O.put(`/api/cms-manager/${o.value}`,l.value),await t({type:"success",title:"Успішно!",message:"Дані успішно оновлено"}),c()}catch{await t({type:"error",title:"Помилка!",message:"При спробі оновити дані виникла помилка"})}},h=async()=>{try{await O.delete(`/api/cms-manager/${o.value}`),await t({type:"success",title:"Успішно!",message:"Об'єкт видалено успішно"}),await(n==null?void 0:n.back())}catch{await t({type:"error",title:"Помилка!",message:"При спробі видалити об'єкт виникла помилка"})}};a.watch(s,c),a.onMounted(()=>c());const b={title:{ua:"Назва",type:"Text",placeholder:"Назва",validators:["required"]},body:{ua:"Контент",type:"TextEditor",validators:["required"]},enabled:{ua:"Чи увімкнений",type:"Switcher"}};return(S,_)=>{var y,p;const k=a.resolveComponent("VsForm");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Wd,[a.createElementVNode("div",jd,[a.createElementVNode("h2",Hd,a.toDisplayString((y=i.value)==null?void 0:y.title),1),a.createElementVNode("p",zd,a.toDisplayString((p=i.value)==null?void 0:p.description),1)]),a.createElementVNode("div",{class:"flex items-center gap-1"},[a.createElementVNode("button",{onClick:h,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-red-500 rounded-lg !border-gray-200 hover:bg-red-700 duration-300"}," Видалити "),a.createElementVNode("button",{onClick:f,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Зберегти ")])]),a.createElementVNode("div",null,[a.createElementVNode("div",qd,[(a.openBlock(),a.createBlock(k,{key:d.value,class:"w-full",scheme:b,modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=V=>l.value=V)},null,8,["modelValue"]))])])],64)}}},Zd={class:"flex items-center justify-between"},Jd={class:"mt-[10px]"},Kd={class:"font-medium text-2xl"},Qd={class:"text-gray-600"},Xd={class:"w-full mt-[20px] bg-white rounded-xl p-[20px] border"},eu={__name:"vs-manager-single-content",setup(e){const t=ft(),r=a.computed(()=>{var c;return(c=t==null?void 0:t.params)==null?void 0:c.template}),n=a.ref(null),s=a.ref({}),o=a.ref(1),i=async()=>{var c,f;try{const{data:h}=await O.get(`/api/cms-manager/${r.value}`);n.value=(c=h==null?void 0:h.rows)==null?void 0:c[0],s.value=(f=h==null?void 0:h.rows)==null?void 0:f[0],o.value=o.value+1}catch{}},l=async()=>{var c;try{await O.put(`/api/cms-manager/${(c=n.value)==null?void 0:c.id}`,s.value),await $notify({type:"success",title:"Успішно!",message:"Дані успішно оновлено"}),i()}catch{await $notify({type:"error",title:"Помилка!",message:"При спробі оновити дані виникла помилка"})}};a.watch(r,i),a.onMounted(()=>i());const d={title:{ua:"Назва",type:"Text",placeholder:"Назва"},enabled:{ua:"Чи увімкнений",type:"Switcher"}};return(c,f)=>{var b,S;const h=a.resolveComponent("VsForm");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",Zd,[a.createElementVNode("div",Jd,[a.createElementVNode("h2",Kd,a.toDisplayString((b=n.value)==null?void 0:b.title),1),a.createElementVNode("p",Qd,a.toDisplayString((S=n.value)==null?void 0:S.description),1)]),a.createElementVNode("div",{class:"flex items-center gap-1"},[a.createElementVNode("button",{onClick:l,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Зберегти ")])]),a.createElementVNode("div",null,[a.createElementVNode("div",Xd,[(a.openBlock(),a.createBlock(h,{key:o.value,class:"w-full",scheme:d,modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=_=>s.value=_)},null,8,["modelValue"]))])])],64)}}},tu={},ru={xmlns:"http://www.w3.org/2000/svg",width:"5",height:"5",fill:"currentColor",viewBox:"0 0 4 4"};function nu(e,t){return a.openBlock(),a.createElementBlock("svg",ru,t[0]||(t[0]=[a.createElementVNode("rect",{width:"4",height:"4",fill:"currentColor",rx:"2"},null,-1)]))}const At=j(tu,[["render",nu]]),su={},au={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-plus"};function ou(e,t){return a.openBlock(),a.createElementBlock("svg",au,t[0]||(t[0]=[a.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),a.createElementVNode("path",{d:"M12 5l0 14"},null,-1),a.createElementVNode("path",{d:"M5 12l14 0"},null,-1)]))}const ys=j(su,[["render",ou]]),iu={class:"p-4 w-[260px] border-r h-[100%] overflow-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"},lu={class:"flex flex-col space-y-1"},cu={class:"pt-2"},du={class:"flex flex-col space-y-1"},uu={class:"flex justify-end p-[20px] gap-[10px] border-t w-full"},fu={__name:"vs-builder-menu",props:{UPDATE:{},UPDATEModifiers:{}},emits:["update:UPDATE"],setup(e){var h;const t=(h=a.getCurrentInstance().proxy)==null?void 0:h.$notify,r=a.useModel(e,"UPDATE"),n=a.ref(null),s=a.ref(!1),o=a.ref({}),i=a.ref(""),l=a.ref(),d=async()=>{try{const{data:b}=await O.get("/api/cms-builder");n.value=(b==null?void 0:b.rows)||null}catch{}},c=b=>{b==="single"?(o.value={type:"single"},i.value="Створити новий тип"):(o.value={type:"collection"},i.value="Створити колекцію"),s.value=!0},f=async()=>{try{await l.value.doValidation(),await O.post("/api/cms-builder",o.value),await t({type:"success",title:"Успішно!",message:"Об'єкт створено успішно"}),s.value=!1,await d()}catch{await t({type:"error",title:"Помилка!",message:"При спробі створити об'єкт виникла помилка"})}};return d(),a.onMounted(()=>r.value.getList=()=>d()),(b,S)=>{var p,V;const _=a.resolveComponent("router-link"),k=a.resolveComponent("VsForm"),y=a.resolveComponent("VsDialog");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",iu,[a.createElementVNode("div",null,[S[6]||(S[6]=a.createElementVNode("h2",{v:"",class:"block text-[14px] font-medium text-gray-800 mb-2 dark:text-neutral-200"}," Колекції ",-1)),a.createElementVNode("ul",lu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((p=n.value)==null?void 0:p.filter(g=>(g==null?void 0:g.type)=="collection"),g=>{var L,B;return a.openBlock(),a.createElementBlock("li",{key:g==null?void 0:g.id},[a.createVNode(_,{to:`/cms/builder/${g==null?void 0:g.id}`,class:a.normalizeClass([[((B=(L=b.$route)==null?void 0:L.params)==null?void 0:B.id)===(g==null?void 0:g.id)?"bg-gray-200":""],"w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-200 focus:outline-none dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(At,{class:"text-gray-500"}),a.createTextVNode(" "+a.toDisplayString(g==null?void 0:g.name),1)]),_:2},1032,["to","class"])])}),128))]),a.createElementVNode("button",{onClick:S[0]||(S[0]=g=>c("colection")),class:"text-blue-500 flex text-[14px] py-2 px-2 text-nowrap hover:text-blue-700 duration-300 gap-2 items-center"},[a.createVNode(ys,{height:"16",width:"16"}),S[5]||(S[5]=a.createTextVNode(" Створити нову колекцію "))])]),a.createElementVNode("div",cu,[S[8]||(S[8]=a.createElementVNode("h2",{class:"block text-[14px] mb-2 font-medium text-gray-800 dark:text-neutral-200"}," Одиничні типи ",-1)),a.createElementVNode("ul",du,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((V=n.value)==null?void 0:V.filter(g=>(g==null?void 0:g.type)=="single"),g=>{var L,B;return a.openBlock(),a.createElementBlock("li",{key:g==null?void 0:g.id},[a.createVNode(_,{to:`/cms/builder/${g==null?void 0:g.id}`,class:a.normalizeClass([[((B=(L=b.$route)==null?void 0:L.params)==null?void 0:B.id)===(g==null?void 0:g.id)?"bg-gray-200":""],"w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 hover:bg-gray-200 rounded-lg focus:outline-none dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(At,{class:"text-gray-500"}),a.createTextVNode(" "+a.toDisplayString(g==null?void 0:g.name),1)]),_:2},1032,["to","class"])])}),128))]),a.createElementVNode("button",{onClick:S[1]||(S[1]=g=>c("single")),class:"text-blue-500 flex text-[14px] py-2 px-2 hover:text-blue-700 duration-300 gap-2 items-center"},[a.createVNode(ys,{height:"16",width:"16"}),S[7]||(S[7]=a.createTextVNode(" Створити новий тип "))])])]),a.createVNode(y,{visible:s.value,"onUpdate:visible":S[4]||(S[4]=g=>s.value=g),title:i.value},{footer:a.withCtx(()=>[a.createElementVNode("div",uu,[a.createElementVNode("button",{onClick:S[3]||(S[3]=g=>s.value=!1),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border rounded-lg border-gray-200 hover:bg-gray-100 duration-300"}," Скасувати"),a.createElementVNode("button",{onClick:f,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Зберегти ")])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.createVNode(k,{modelValue:o.value,"onUpdate:modelValue":S[2]||(S[2]=g=>o.value=g),scheme:a.unref(_n),ref_key:"form",ref:l},null,8,["modelValue","scheme"])])]),_:1},8,["visible","title"])],64)}}},hu={class:"w-full bg-[#f6f6f9] h-[calc(100vh-60px)]"},mu={class:"flex h-full"},pu={__name:"vs-builder",setup(e){const t=a.ref({});return(r,n)=>{const s=a.resolveComponent("router-view");return a.openBlock(),a.createElementBlock("div",hu,[a.createElementVNode("div",mu,[a.createVNode(fu,{UPDATE:t.value,"onUpdate:UPDATE":n[0]||(n[0]=o=>t.value=o)},null,8,["UPDATE"]),a.createVNode(s,null,{default:a.withCtx(({Component:o})=>[o?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o),{key:0,UPDATE:t.value},null,8,["UPDATE"])):(a.openBlock(),a.createBlock(Yt,{key:1,class:"pt-[100px]",text:"Оберіть один з існуючих пунктів меню, або створіть новий"}))]),_:1})])])}}},yu={class:"p-4 w-[260px] shrink-0 border-r h-[100vh]"},_u={key:0,class:""},gu={class:"flex flex-col space-y-1"},wu={class:"pt-5"},xu={class:"flex flex-col space-y-1"},ku={__name:"vs-manager-menu",setup(e){const t=a.ref(null);return(async()=>{try{const{data:n}=await O.get("/api/cms-builder");t.value=(n==null?void 0:n.rows)||null}catch{}})(),(n,s)=>{var i,l,d;const o=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",yu,[(i=t.value)!=null&&i.length?(a.openBlock(),a.createElementBlock("div",_u,[s[0]||(s[0]=a.createElementVNode("h2",{class:"block text-[14px] font-medium text-gray-800 mb-2 dark:text-neutral-200"}," Колекції ",-1)),a.createElementVNode("ul",gu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((l=t.value)==null?void 0:l.filter(c=>(c==null?void 0:c.type)=="collection"),c=>{var f,h,b;return a.openBlock(),a.createElementBlock("li",{key:(f=n.item)==null?void 0:f.id},[a.createVNode(o,{to:`/cms/manager/collection/${c==null?void 0:c.template}`,class:a.normalizeClass([[((b=(h=n.$route)==null?void 0:h.params)==null?void 0:b.template)===(c==null?void 0:c.template)?"bg-gray-200":""],"w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-200 focus:outline-none dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(At,{class:"text-gray-500"}),a.createTextVNode(" "+a.toDisplayString((c==null?void 0:c.name)||(c==null?void 0:c.title)),1)]),_:2},1032,["to","class"])])}),128))])])):a.createCommentVNode("",!0),a.createElementVNode("div",wu,[s[1]||(s[1]=a.createElementVNode("h2",{class:"block text-[14px] mb-2 font-medium text-gray-800 dark:text-neutral-200"}," Одиничні типи ",-1)),a.createElementVNode("ul",xu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((d=t.value)==null?void 0:d.filter(c=>(c==null?void 0:c.type)=="single"),c=>{var f,h,b;return a.openBlock(),a.createElementBlock("li",{key:(f=n.item)==null?void 0:f.id},[a.createVNode(o,{to:`/cms/manager/single/${c==null?void 0:c.template}`,class:a.normalizeClass([[((b=(h=n.$route)==null?void 0:h.params)==null?void 0:b.template)===(c==null?void 0:c.template)?"bg-gray-200":""],"w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-200 focus:outline-none dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"])},{default:a.withCtx(()=>[a.createVNode(At,{class:"text-gray-500"}),a.createTextVNode(" "+a.toDisplayString((c==null?void 0:c.name)||(c==null?void 0:c.title)),1)]),_:2},1032,["to","class"])])}),128))])])])}}},bu={class:"w-full bg-[#f6f6f9] h-[calc(100vh-60px)]"},Su={class:"flex"},Du={class:"w-full flex justify-center"},Eu={class:"p-[20px] w-full max-w-[1440px]"},Nu={__name:"vs-manager",setup(e){return(t,r)=>{const n=a.resolveComponent("router-view");return a.openBlock(),a.createElementBlock("div",bu,[a.createElementVNode("div",Su,[a.createVNode(ku),a.createElementVNode("div",Du,[a.createElementVNode("div",Eu,[a.createElementVNode("button",{onClick:r[0]||(r[0]=s=>t.$router.back()),class:"text-blue-500 flex gap-2 items-center hover:text-blue-700 duration-300"},[a.createVNode(yn,{template:t.template},null,8,["template"]),r[1]||(r[1]=a.createTextVNode(" Повернутися назад "))]),a.createVNode(n,null,{default:a.withCtx(({Component:s})=>[s?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s),{key:0})):(a.openBlock(),a.createBlock(Yt,{key:1,class:"pt-[100px]",text:"Оберіть один з існуючих пунктів меню, або створіть новий"}))]),_:1})])])])])}}},Ou={},Mu={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};function Tu(e,t){return a.openBlock(),a.createElementBlock("svg",Mu,t[0]||(t[0]=[a.createElementVNode("path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},null,-1),a.createElementVNode("polyline",{points:"9 22 9 12 15 12 15 22"},null,-1)]))}const Cu=j(Ou,[["render",Tu]]),Ru={},Vu={"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 6 10"};function Pu(e,t){return a.openBlock(),a.createElementBlock("svg",Vu,t[0]||(t[0]=[a.createElementVNode("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 9 4-4-4-4"},null,-1)]))}const Yu={components:{IconHome:Cu,IconChewronRight:j(Ru,[["render",Pu]])},props:{initialPath:{type:String,default:""},root:{type:String,default:"Root"}},data(){return{breadcrumbs:[]}},watch:{initialPath:{immediate:!0,handler(e){const t=e.split("/").filter(Boolean);this.breadcrumbs=[this.root,...t]}}},methods:{navigateTo(e){const t=e===0?"":this.breadcrumbs.slice(1,e+1).join("/");this.$emit("update-path",t)}}},Au={"aria-label":"Breadcrumb",class:"mb-4"},Fu={class:"flex items-start justify-between"},Bu={class:"flex flex-wrap items-center gap-[5px] min-h-8"},vu={class:"flex items-center"},$u=["onClick"],Lu={key:1};function Uu(e,t,r,n,s,o){const i=a.resolveComponent("IconHome"),l=a.resolveComponent("IconChewronRight");return a.openBlock(),a.createElementBlock("nav",Au,[a.createElementVNode("div",Fu,[a.createElementVNode("ol",Bu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.breadcrumbs,(d,c)=>(a.openBlock(),a.createElementBlock("li",{key:c,class:"whitespace-nowrap"},[a.createElementVNode("div",vu,[a.createElementVNode("button",{onClick:f=>o.navigateTo(c),class:a.normalizeClass([["hover:text-blue-500 focus:outline-none flex items-center",c===s.breadcrumbs.length-1?"font-medium underline text-blue-500":"text-gray-500"],"h-8 flex items-center"])},[c===0?(a.openBlock(),a.createBlock(i,{key:0,class:"w-4 h-4"})):(a.openBlock(),a.createElementBlock("span",Lu,a.toDisplayString(d),1))],10,$u),c<s.breadcrumbs.length-1?(a.openBlock(),a.createBlock(l,{key:0,class:"text-gray-400 w-3 h-3 ml-[10px]"})):a.createCommentVNode("",!0)])]))),128))])])])}const Iu=j(Yu,[["render",Uu]]),Wu={},ju={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hu(e,t){return a.openBlock(),a.createElementBlock("svg",ju,t[0]||(t[0]=[a.createElementVNode("path",{d:"M6.41667 11.0833C8.994 11.0833 11.0833 8.994 11.0833 6.41667C11.0833 3.83934 8.994 1.75 6.41667 1.75C3.83934 1.75 1.75 3.83934 1.75 6.41667C1.75 8.994 3.83934 11.0833 6.41667 11.0833Z",stroke:"#6B7280","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),a.createElementVNode("path",{d:"M12.25 12.25L9.7417 9.7417",stroke:"#6B7280","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const zu=j(Wu,[["render",Hu]]),qu={},Gu={"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor"};function Zu(e,t){return a.openBlock(),a.createElementBlock("svg",Gu,t[0]||(t[0]=[a.createElementVNode("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H 13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"},null,-1),a.createElementVNode("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"},null,-1)]))}const Ju=j(qu,[["render",Zu]]),Ku={},Qu={width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xu(e,t){return a.openBlock(),a.createElementBlock("svg",Qu,t[0]||(t[0]=[a.createElementVNode("path",{d:"M3 8.2C3 7.07989 3 6.51984 3.21799 6.09202C3.40973 5.71569 3.71569 5.40973 4.09202 5.21799C4.51984 5 5.0799 5 6.2 5H9.67452C10.1637 5 10.4083 5 10.6385 5.05526C10.8425 5.10425 11.0376 5.18506 11.2166 5.29472C11.4184 5.4184 11.5914 5.59135 11.9373 5.93726L12.0627 6.06274C12.4086 6.40865 12.5816 6.5816 12.7834 6.70528C12.9624 6.81494 13.1575 6.89575 13.3615 6.94474C13.5917 7 13.8363 7 14.3255 7H17.8C18.9201 7 19.4802 7 19.908 7.21799C20.2843 7.40973 20.5903 7.71569 20.782 8.09202C21 8.51984 21 9.0799 21 10.2V15.8C21 16.9201 21 17.4802 20.782 17.908C20.5903 18.2843 20.2843 18.5903 19.908 18.782C19.4802 19 18.9201 19 17.8 19H6.2C5.07989 19 4.51984 19 4.09202 18.782C3.71569 18.5903 3.40973 18.2843 3.21799 17.908C3 17.4802 3 16.9201 3 15.8V8.2Z",stroke:"#000000","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const ef=j(Ku,[["render",Xu]]),tf={},rf={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function nf(e,t){return a.openBlock(),a.createElementBlock("svg",rf,t[0]||(t[0]=[a.createElementVNode("path",{d:"M18 6L6 18",stroke:"#6B7280","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),a.createElementVNode("path",{d:"M6 6L18 18",stroke:"#6B7280","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const sf=j(tf,[["render",nf]]),af={},of={class:"flex-shrink-0 size-3.5",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};function lf(e,t){return a.openBlock(),a.createElementBlock("svg",of,t[0]||(t[0]=[a.createStaticVNode('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>',9)]))}const cf=j(af,[["render",lf]]),df={},uf={"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor"};function ff(e,t){return a.openBlock(),a.createElementBlock("svg",uf,t[0]||(t[0]=[a.createElementVNode("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H 13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"},null,-1),a.createElementVNode("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"},null,-1)]))}const hf={components:{Breadcrumb:Iu,IconSearch:zu,IconFolder:Ju,IconFolder2:ef,IconClose:sf,IconImage:j(df,[["render",ff]]),IconActions:cf,VsNotData:Yt},props:{type:{type:String,default:"icon"}},data(){return{icons:[],currentPage:parseInt(this.$route.query.page,10)||1,iconsPerPage:15,token:"",searchQuery:"",selectedFile:null,isAddDirModalOpen:!1,newDirName:""}},watch:{isAddDirModalOpen(e){e||(this.newDirName="")}},computed:{currentDir(){return this.$route.query.dir||""},currentTab(){return this.$route.query.tab||""},filteredIcons(){return this.searchQuery?this.icons.filter(e=>e.name.toLowerCase().includes(this.searchQuery.toLowerCase())):this.icons},sortedIcons(){return[...this.filteredIcons].sort((e,t)=>e.type==="dir"&&t.type!=="dir"?-1:e.type!=="dir"&&t.type==="dir"?1:e.name.localeCompare(t.name))},currentIcons(){const e=(this.currentPage-1)*this.iconsPerPage,t=e+this.iconsPerPage;return this.sortedIcons.slice(e,t)}},methods:{async fetchIcons(e){try{const{data:t}=await O.get("/api/cms-media",{params:{dir:e}});this.icons=(t==null?void 0:t.data)||[],this.token=t==null?void 0:t.token}catch(t){console.error("Error fetching icons:",t)}},async addDir(){var e,t;if(!this.newDirName.trim()){this.$notify({type:"error",title:"Помилка",message:"Назва папки не може бути порожньою."});return}try{const r=await O.post(`/api/cms-media/${this.token}`,{name:this.newDirName});this.$notify({type:"success",title:"Успіх!",message:`Папку "${this.newDirName}" успішно створено.`}),this.fetchIcons(this.currentDir),this.handeAddFolderClose(),this.newDirName=""}catch(r){console.error("Error creating directory:",r),this.$notify({type:"error",title:"Помилка",message:((t=(e=r.response)==null?void 0:e.data)==null?void 0:t.message)||"Не вдалося створити папку."})}},handeAddFolderClose(){this.isAddDirModalOpen=!1},navigateToDir(e){const t=`${this.currentDir}/${e}`.replace(/\/+/g,"/");this.updateURL(t)},updatePath(e){this.updateURL(e)},updateURL(e){this.$router.push({query:{...this.$route.query,dir:e,page:this.currentPage}})},async handleFileChange(e){const t=e.target.files[0];if(!t)return;const r=new FormData;r.append("file",t);try{const n=await O.post(`/api/cms-media/${this.token}`,r,{headers:{"Content-Type":"multipart/form-data"}});this.$notify({type:"success",title:"Успіх!",message:"Файл успішно додано!"}),this.currentPage=1}catch(n){console.error("Error uploading file:",n),this.$notify({type:"error",title:"Помилка",message:n.response.statustext||n.message||n})}finally{await this.fetchIcons(this.currentDir)}},clearSearch(){this.searchQuery=""},copyToClipboard(e){try{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),t.setSelectionRange(0,e.length);const r=document.execCommand("copy");document.body.removeChild(t),r?this.$notify({type:"success",title:"Скопійовано!",message:"Назву іконки успішно скопійовано."}):this.$notify({type:"error",title:"Помилка",message:"Не вдалося скопіювати шлях."})}catch(t){this.$notify({type:"error",title:"Помилка",message:"Не вдалося скопіювати координати"}),console.error("Copy failed",t)}}},watch:{currentDir:{immediate:!0,handler(e){this.fetchIcons(e)}},currentTab:{handler(){this.currentPage=1}},currentPage(e){this.$emit("update-url",{query:{...this.$route.query,page:e}})}},async mounted(){await this.fetchIcons(this.currentDir)}},mf={class:"w-full p-[20px] bg-gray-100 flex justify-center h-[calc(100vh-60px)]"},pf={class:"p-[20px] w-full max-w-[1640px]"},yf={class:"flex items-start justify-between"},_f={class:"flex gap-2 relative"},gf={class:"flex items-center justify-between bg-white py-2 px-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 text-sm w-[250px]"},wf={class:"flex items-center gap-[12px]"},xf={for:"file-upload",class:"py-2 px-3 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:bg-blue-700 cursor-pointer"},kf={key:0,class:"flex flex-col items-center justify-center h-64 bg-gray-50 rounded-lg border text-center"},bf={key:1},Sf={class:"grid grid-cols-2 lg:grid-cols-5 gap-3 xl:gap-5"},Df=["onClick"],Ef={class:"relative group"},Nf={class:"w-full h-36 sm:h-[170px] object-cover rounded-t-xl flex items-center justify-center"},Of={key:0,class:"text-[#54aeff]"},Mf=["src","alt"],Tf={class:"p-3 flex items-center gap-x-3 border-t"},Cf={key:0,class:"flex shrink-0 justify-center items-center w-10 h-10 bg-white border border-solid text-gray-500 rounded-lg"},Rf=["title"],Vf=["onClick"],Pf={class:"block truncate text-xs text-gray-500"},Yf={class:"p-4"},Af={class:"flex justify-end"};function Ff(e,t,r,n,s,o){var y;const i=a.resolveComponent("Breadcrumb"),l=a.resolveComponent("IconSearch"),d=a.resolveComponent("IconClose"),c=a.resolveComponent("IconFolder2"),f=a.resolveComponent("VsNotData"),h=a.resolveComponent("IconFolder"),b=a.resolveComponent("IconImage"),S=a.resolveComponent("VsPagination"),_=a.resolveComponent("VsText"),k=a.resolveComponent("VsDialog");return a.openBlock(),a.createElementBlock("div",mf,[a.createElementVNode("div",pf,[a.createElementVNode("div",null,[a.createElementVNode("div",yf,[a.createVNode(i,{initialPath:o.currentDir,onUpdatePath:o.updatePath},null,8,["initialPath","onUpdatePath"]),a.createElementVNode("div",_f,[a.createElementVNode("div",gf,[a.createElementVNode("div",wf,[a.createVNode(l),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[0]||(t[0]=p=>s.searchQuery=p),type:"text",placeholder:"Пошук за назвою...",class:"focus:outline-none"},null,512),[[a.vModelText,s.searchQuery]])]),s.searchQuery?(a.openBlock(),a.createBlock(d,{key:0,class:"w-4 h-4 cursor-pointer",onClick:o.clearSearch},null,8,["onClick"])):a.createCommentVNode("",!0)]),a.createElementVNode("button",{ref:"dropdownButton",onClick:t[1]||(t[1]=p=>s.isAddDirModalOpen=!0),class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium border border-gray-300 rounded-lg text-gray-800 hover:bg-gray-100 bg-white"},[a.createVNode(c),t[7]||(t[7]=a.createTextVNode(" Додати папку "))],512),a.createElementVNode("label",xf,[t[8]||(t[8]=a.createTextVNode(" Завантажити ")),a.createElementVNode("input",{id:"file-upload",type:"file",class:"hidden",onChange:t[2]||(t[2]=(...p)=>o.handleFileChange&&o.handleFileChange(...p))},null,32)])])]),(y=o.filteredIcons)!=null&&y.length?(a.openBlock(),a.createElementBlock("div",bf,[a.createElementVNode("div",Sf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.currentIcons,p=>{var V;return a.openBlock(),a.createElementBlock("div",{key:p==null?void 0:p.id,class:a.normalizeClass(["flex flex-col bg-white border rounded-xl",{"cursor-pointer hover:border-blue-500":p.type==="dir","cursor-default":p.type!=="dir"}]),onClick:g=>p.type==="dir"?o.navigateToDir(p.name):null},[a.createElementVNode("div",Ef,[a.createElementVNode("div",Nf,[(p==null?void 0:p.type)==="dir"?(a.openBlock(),a.createElementBlock("div",Of,[a.createVNode(h)])):(a.openBlock(),a.createElementBlock("img",{key:1,class:"object-contain max-h-[40px]",src:`/api/cms-media/${p==null?void 0:p.token}`,alt:p==null?void 0:p.name,style:a.normalizeStyle((V=p==null?void 0:p.path)!=null&&V.includes(".svg")?"width:250px;max-height:100px":"")},null,12,Mf))])]),a.createElementVNode("div",Tf,[p.type!=="dir"?(a.openBlock(),a.createElementBlock("span",Cf,[a.createVNode(b)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"grow truncate",title:p==null?void 0:p.name},[a.createElementVNode("p",{class:a.normalizeClass(["block truncate text-sm font-semibold text-gray-800",{"cursor-pointer":p.type!=="dir"}]),onClick:a.withModifiers(g=>p.type!=="dir"&&o.copyToClipboard(p==null?void 0:p.name),["stop"])},a.toDisplayString(p==null?void 0:p.name),11,Vf),a.createElementVNode("p",Pf,a.toDisplayString(p==null?void 0:p.size),1)],8,Rf)])],10,Df)}),128))]),o.filteredIcons.length>s.iconsPerPage?(a.openBlock(),a.createBlock(S,{key:0,defaultPage:s.currentPage,class:"mt-6 focus-visible:outline-blue-500 flex !justify-center",total:o.filteredIcons.length,pageSize:s.iconsPerPage,maxPages:3,goTo:!1,onPageChange:t[3]||(t[3]=p=>s.currentPage=p)},null,8,["defaultPage","total","pageSize"])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",kf,[a.createVNode(f,{text:"",class:"![&>div]:min-w-[100px] !w-auto"})]))]),a.createVNode(k,{visible:s.isAddDirModalOpen,"onUpdate:visible":t[6]||(t[6]=p=>s.isAddDirModalOpen=p),title:"Додати папку",size:"small",closeClickBack:!0,onOnClose:o.handeAddFolderClose},{default:a.withCtx(()=>[a.createElementVNode("div",Yf,[a.createVNode(_,{modelValue:s.newDirName,"onUpdate:modelValue":t[4]||(t[4]=p=>s.newDirName=p),placeholder:"Назва нової папки.."},null,8,["modelValue"]),a.createElementVNode("div",Af,[a.createElementVNode("button",{onClick:t[5]||(t[5]=(...p)=>o.addDir&&o.addDir(...p)),class:"mt-4 py-2 px-4 text-white bg-blue-600 hover:bg-blue-700 rounded-lg"}," Створити ")])])]),_:1},8,["visible","onOnClose"])])])}const _s={"vs-builder":pu,"vs-builder-content":co,"vs-manager":Nu,"vs-manager-collection-content":Id,"vs-manager-collection-item-content":Gd,"vs-manager-single-content":eu,"vs-media":j(hf,[["render",Ff]])},gs={install:e=>{var t;(t=Object.entries(_s))==null||t.forEach(([r,n])=>e.component(r,n))},components:_s};return typeof window<"u"&&(window.v3Cms=gs),gs});