@creopse/vue 0.0.55 → 0.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.cjs +6 -18
- package/dist/index.js +6 -18
- package/dist/index.mjs +1969 -4639
- package/package.json +12 -12
- package/types/core/props-manager.d.ts +110 -123
package/dist/index.cjs
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("vue"),ca=require("@inertiajs/vue3"),wr=Symbol("Props"),Sr=Symbol("Config"),vr=Symbol("Router"),da=Symbol("ResolveSections"),se=[];for(let e=0;e<256;++e)se.push((e+256).toString(16).slice(1));function Xo(e,t=0){return(se[e[t+0]]+se[e[t+1]]+se[e[t+2]]+se[e[t+3]]+"-"+se[e[t+4]]+se[e[t+5]]+"-"+se[e[t+6]]+se[e[t+7]]+"-"+se[e[t+8]]+se[e[t+9]]+"-"+se[e[t+10]]+se[e[t+11]]+se[e[t+12]]+se[e[t+13]]+se[e[t+14]]+se[e[t+15]]).toLowerCase()}let Kn;const Qo=new Uint8Array(16);function el(){if(!Kn){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Kn=crypto.getRandomValues.bind(crypto)}return Kn(Qo)}const tl=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ws={randomUUID:tl};function nl(e,t,n){e=e||{};const r=e.random??e.rng?.()??el();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Xo(r)}function st(e,t,n){return ws.randomUUID&&!e?ws.randomUUID():nl(e)}var Ss;(function(e){e[e.DOCUMENT=1]="DOCUMENT",e[e.IMAGE=2]="IMAGE",e[e.VIDEO=3]="VIDEO",e[e.AUDIO=4]="AUDIO",e[e.OTHER=5]="OTHER"})(Ss||(Ss={}));var vs;(function(e){e[e.DRAFT=1]="DRAFT",e[e.PENDING=2]="PENDING",e[e.PUBLISHED=3]="PUBLISHED",e[e.TRASH=4]="TRASH"})(vs||(vs={}));var bs;(function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal"})(bs||(bs={}));var ks;(function(e){e.SELF_HOSTED="self-hosted",e.YOUTUBE="youtube"})(ks||(ks={}));function rl(e){return e.length>1&&e.charAt(e.length-1)==="/"?e.substring(0,e.length-1):e}function sl(e){return e.startsWith("/")?e.slice(1):e}function al(){return window.location.protocol+"//"+window.location.hostname}function Os(e){const t=document.getElementById(e);t?t.scrollIntoView({behavior:"smooth",block:"start"}):console.error(`Element with ID "${e}" not found.`)}function Zn(e){if(!e||typeof e!="string")return!1;let t=e.trim();t.includes("://")||(t="http://"+t);let n;try{n=new URL(t)}catch{return!1}const r=n.protocol.replace(":","");if(!["http","https","ftp"].includes(r)||!n.hostname)return!1;const s=n.hostname.toLowerCase();if(s.includes("_"))return!1;if(n.port){const u=parseInt(n.port,10);if(isNaN(u)||u<1||u>65535)return!1}const a=s==="localhost",i=/^(?:(?:\d{1,3}\.){3}\d{1,3})$/i.test(s),l=/^\[([0-9a-f:]+)\]$/i.test(s)||/^([0-9a-f:]+)$/i.test(s);if(!a&&!i&&!l){const u=s.split(".");if(u.length<2||u.some(f=>!f)||u[u.length-1].length<1)return!1}return!(!/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i.test(s)&&!a&&!i&&!l)}//! moment.js
|
|
2
|
-
|
|
3
|
-
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var fa;function O(){return fa.apply(null,arguments)}function il(e){fa=e}function Oe(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function ot(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function br(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(F(e,t))return!1;return!0}function fe(e){return e===void 0}function Ge(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Ht(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ha(e,t){var n=[],r,s=e.length;for(r=0;r<s;++r)n.push(t(e[r],r));return n}function Ke(e,t){for(var n in t)F(t,n)&&(e[n]=t[n]);return F(t,"toString")&&(e.toString=t.toString),F(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ne(e,t,n,r){return La(e,t,n,r,!0).utc()}function ol(){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 C(e){return e._pf==null&&(e._pf=ol()),e._pf}var lr;Array.prototype.some?lr=Array.prototype.some:lr=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function kr(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=C(e),n=lr.call(t.parsedDateParts,function(s){return s!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function bn(e){var t=Ne(NaN);return e!=null?Ke(C(t),e):C(t).userInvalidated=!0,t}var Es=O.momentProperties=[],Xn=!1;function Or(e,t){var n,r,s,a=Es.length;if(fe(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),fe(t._i)||(e._i=t._i),fe(t._f)||(e._f=t._f),fe(t._l)||(e._l=t._l),fe(t._strict)||(e._strict=t._strict),fe(t._tzm)||(e._tzm=t._tzm),fe(t._isUTC)||(e._isUTC=t._isUTC),fe(t._offset)||(e._offset=t._offset),fe(t._pf)||(e._pf=C(t)),fe(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=Es[n],s=t[r],fe(s)||(e[r]=s);return e}function $t(e){Or(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Xn===!1&&(Xn=!0,O.updateOffset(this),Xn=!1)}function Ee(e){return e instanceof $t||e!=null&&e._isAMomentObject!=null}function ma(e){O.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ve(e,t){var n=!0;return Ke(function(){if(O.deprecationHandler!=null&&O.deprecationHandler(null,e),n){var r=[],s,a,i,l=arguments.length;for(a=0;a<l;a++){if(s="",typeof arguments[a]=="object"){s+=`
|
|
7
|
-
[`+a+"] ";for(i in arguments[0])F(arguments[0],i)&&(s+=i+": "+arguments[0][i]+", ");s=s.slice(0,-2)}else s=arguments[a];r.push(s)}ma(e+`
|
|
8
|
-
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
9
|
-
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var Ds={};function pa(e,t){O.deprecationHandler!=null&&O.deprecationHandler(e,t),Ds[e]||(ma(t),Ds[e]=!0)}O.suppressDeprecationWarnings=!1;O.deprecationHandler=null;function Ce(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ll(e){var t,n;for(n in e)F(e,n)&&(t=e[n],Ce(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ur(e,t){var n=Ke({},e),r;for(r in t)F(t,r)&&(ot(e[r])&&ot(t[r])?(n[r]={},Ke(n[r],e[r]),Ke(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)F(e,r)&&!F(t,r)&&ot(e[r])&&(n[r]=Ke({},n[r]));return n}function Er(e){e!=null&&this.set(e)}var cr;Object.keys?cr=Object.keys:cr=function(e){var t,n=[];for(t in e)F(e,t)&&n.push(t);return n};var ul={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function cl(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Ce(r)?r.call(t,n):r}function Ie(e,t,n){var r=""+Math.abs(e),s=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var Dr=/(\[[^\[]*\])|(\\)?([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,rn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Qn={},wt={};function A(e,t,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),e&&(wt[e]=s),t&&(wt[t[0]]=function(){return Ie(s.apply(this,arguments),t[1],t[2])}),n&&(wt[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function dl(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function fl(e){var t=e.match(Dr),n,r;for(n=0,r=t.length;n<r;n++)wt[t[n]]?t[n]=wt[t[n]]:t[n]=dl(t[n]);return function(s){var a="",i;for(i=0;i<r;i++)a+=Ce(t[i])?t[i].call(s,e):t[i];return a}}function ln(e,t){return e.isValid()?(t=ga(t,e.localeData()),Qn[t]=Qn[t]||fl(t),Qn[t](e)):e.localeData().invalidDate()}function ga(e,t){var n=5;function r(s){return t.longDateFormat(s)||s}for(rn.lastIndex=0;n>=0&&rn.test(e);)e=e.replace(rn,r),rn.lastIndex=0,n-=1;return e}var hl={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 ml(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Dr).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var pl="Invalid date";function gl(){return this._invalidDate}var _l="%d",yl=/\d{1,2}/;function wl(e){return this._ordinal.replace("%d",e)}var Sl={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 vl(e,t,n,r){var s=this._relativeTime[n];return Ce(s)?s(e,t,n,r):s.replace(/%d/i,e)}function bl(e,t){var n=this._relativeTime[e>0?"future":"past"];return Ce(n)?n(t):n.replace(/%s/i,t)}var Ts={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 be(e){return typeof e=="string"?Ts[e]||Ts[e.toLowerCase()]:void 0}function Tr(e){var t={},n,r;for(r in e)F(e,r)&&(n=be(r),n&&(t[n]=e[r]));return t}var kl={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 Ol(e){var t=[],n;for(n in e)F(e,n)&&t.push({unit:n,priority:kl[n]});return t.sort(function(r,s){return r.priority-s.priority}),t}var _a=/\d/,ye=/\d\d/,ya=/\d{3}/,Mr=/\d{4}/,kn=/[+-]?\d{6}/,q=/\d\d?/,wa=/\d\d\d\d?/,Sa=/\d\d\d\d\d\d?/,On=/\d{1,3}/,Rr=/\d{1,4}/,En=/[+-]?\d{1,6}/,kt=/\d+/,Dn=/[+-]?\d+/,El=/Z|[+-]\d\d:?\d\d/gi,Tn=/Z|[+-]\d\d(?::?\d\d)?/gi,Dl=/[+-]?\d+(\.\d{1,3})?/,Bt=/[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,Ot=/^[1-9]\d?/,Ar=/^([1-9]\d|\d)/,mn;mn={};function D(e,t,n){mn[e]=Ce(t)?t:function(r,s){return r&&n?n:t}}function Tl(e,t){return F(mn,e)?mn[e](t._strict,t._locale):new RegExp(Ml(e))}function Ml(e){return Be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,s,a){return n||r||s||a}))}function Be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Se(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Y(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Se(t)),n}var dr={};function $(e,t){var n,r=t,s;for(typeof e=="string"&&(e=[e]),Ge(t)&&(r=function(a,i){i[t]=Y(a)}),s=e.length,n=0;n<s;n++)dr[e[n]]=r}function Vt(e,t){$(e,function(n,r,s,a){s._w=s._w||{},t(n,s._w,s,a)})}function Rl(e,t,n){t!=null&&F(dr,e)&&dr[e](t,n._a,n,e)}function Mn(e){return e%4===0&&e%100!==0||e%400===0}var oe=0,He=1,xe=2,ee=3,ke=4,$e=5,at=6,Al=7,xl=8;A("Y",0,0,function(){var e=this.year();return e<=9999?Ie(e,4):"+"+e});A(0,["YY",2],0,function(){return this.year()%100});A(0,["YYYY",4],0,"year");A(0,["YYYYY",5],0,"year");A(0,["YYYYYY",6,!0],0,"year");D("Y",Dn);D("YY",q,ye);D("YYYY",Rr,Mr);D("YYYYY",En,kn);D("YYYYYY",En,kn);$(["YYYYY","YYYYYY"],oe);$("YYYY",function(e,t){t[oe]=e.length===2?O.parseTwoDigitYear(e):Y(e)});$("YY",function(e,t){t[oe]=O.parseTwoDigitYear(e)});$("Y",function(e,t){t[oe]=parseInt(e,10)});function Lt(e){return Mn(e)?366:365}O.parseTwoDigitYear=function(e){return Y(e)+(Y(e)>68?1900:2e3)};var va=Et("FullYear",!0);function Il(){return Mn(this.year())}function Et(e,t){return function(n){return n!=null?(ba(this,e,n),O.updateOffset(this,t),this):Yt(this,e)}}function Yt(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function ba(e,t,n){var r,s,a,i,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),l=e.date(),l=l===29&&i===1&&!Mn(a)?28:l,s?r.setUTCFullYear(a,i,l):r.setFullYear(a,i,l)}}function Nl(e){return e=be(e),Ce(this[e])?this[e]():this}function Cl(e,t){if(typeof e=="object"){e=Tr(e);var n=Ol(e),r,s=n.length;for(r=0;r<s;r++)this[n[r].unit](e[n[r].unit])}else if(e=be(e),Ce(this[e]))return this[e](t);return this}function Pl(e,t){return(e%t+t)%t}var Q;Array.prototype.indexOf?Q=Array.prototype.indexOf:Q=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function xr(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Pl(t,12);return e+=(t-n)/12,n===1?Mn(e)?29:28:31-n%7%2}A("M",["MM",2],"Mo",function(){return this.month()+1});A("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});A("MMMM",0,0,function(e){return this.localeData().months(this,e)});D("M",q,Ot);D("MM",q,ye);D("MMM",function(e,t){return t.monthsShortRegex(e)});D("MMMM",function(e,t){return t.monthsRegex(e)});$(["M","MM"],function(e,t){t[He]=Y(e)-1});$(["MMM","MMMM"],function(e,t,n,r){var s=n._locale.monthsParse(e,r,n._strict);s!=null?t[He]=s:C(n).invalidMonth=e});var Ll="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ka="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Oa=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Yl=Bt,Ul=Bt;function Fl(e,t){return e?Oe(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Oa).test(t)?"format":"standalone"][e.month()]:Oe(this._months)?this._months:this._months.standalone}function jl(e,t){return e?Oe(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Oa.test(t)?"format":"standalone"][e.month()]:Oe(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Wl(e,t,n){var r,s,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=Ne([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(s=Q.call(this._shortMonthsParse,i),s!==-1?s:null):(s=Q.call(this._longMonthsParse,i),s!==-1?s:null):t==="MMM"?(s=Q.call(this._shortMonthsParse,i),s!==-1?s:(s=Q.call(this._longMonthsParse,i),s!==-1?s:null)):(s=Q.call(this._longMonthsParse,i),s!==-1?s:(s=Q.call(this._shortMonthsParse,i),s!==-1?s:null))}function Hl(e,t,n){var r,s,a;if(this._monthsParseExact)return Wl.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=Ne([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Ea(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Y(t);else if(t=e.localeData().monthsParse(t),!Ge(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,xr(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function Da(e){return e!=null?(Ea(this,e),O.updateOffset(this,!0),this):Yt(this,"Month")}function $l(){return xr(this.year(),this.month())}function Bl(e){return this._monthsParseExact?(F(this,"_monthsRegex")||Ta.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(F(this,"_monthsShortRegex")||(this._monthsShortRegex=Yl),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Vl(e){return this._monthsParseExact?(F(this,"_monthsRegex")||Ta.call(this),e?this._monthsStrictRegex:this._monthsRegex):(F(this,"_monthsRegex")||(this._monthsRegex=Ul),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ta(){function e(m,u){return u.length-m.length}var t=[],n=[],r=[],s,a,i,l;for(s=0;s<12;s++)a=Ne([2e3,s]),i=Be(this.monthsShort(a,"")),l=Be(this.months(a,"")),t.push(i),n.push(l),r.push(l),r.push(i);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Gl(e,t,n,r,s,a,i){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,s,a,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,s,a,i),l}function Ut(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function pn(e,t,n){var r=7+t-n,s=(7+Ut(e,0,r).getUTCDay()-t)%7;return-s+r-1}function Ma(e,t,n,r,s){var a=(7+n-r)%7,i=pn(e,r,s),l=1+7*(t-1)+a+i,m,u;return l<=0?(m=e-1,u=Lt(m)+l):l>Lt(e)?(m=e+1,u=l-Lt(e)):(m=e,u=l),{year:m,dayOfYear:u}}function Ft(e,t,n){var r=pn(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1,a,i;return s<1?(i=e.year()-1,a=s+Ve(i,t,n)):s>Ve(e.year(),t,n)?(a=s-Ve(e.year(),t,n),i=e.year()+1):(i=e.year(),a=s),{week:a,year:i}}function Ve(e,t,n){var r=pn(e,t,n),s=pn(e+1,t,n);return(Lt(e)-r+s)/7}A("w",["ww",2],"wo","week");A("W",["WW",2],"Wo","isoWeek");D("w",q,Ot);D("ww",q,ye);D("W",q,Ot);D("WW",q,ye);Vt(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Y(e)});function zl(e){return Ft(e,this._week.dow,this._week.doy).week}var ql={dow:0,doy:6};function Jl(){return this._week.dow}function Kl(){return this._week.doy}function Zl(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Xl(e){var t=Ft(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}A("d",0,"do","day");A("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});A("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});A("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});A("e",0,0,"weekday");A("E",0,0,"isoWeekday");D("d",q);D("e",q);D("E",q);D("dd",function(e,t){return t.weekdaysMinRegex(e)});D("ddd",function(e,t){return t.weekdaysShortRegex(e)});D("dddd",function(e,t){return t.weekdaysRegex(e)});Vt(["dd","ddd","dddd"],function(e,t,n,r){var s=n._locale.weekdaysParse(e,r,n._strict);s!=null?t.d=s:C(n).invalidWeekday=e});Vt(["d","e","E"],function(e,t,n,r){t[r]=Y(e)});function Ql(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function eu(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ir(e,t){return e.slice(t,7).concat(e.slice(0,t))}var tu="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ra="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),nu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ru=Bt,su=Bt,au=Bt;function iu(e,t){var n=Oe(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Ir(n,this._week.dow):e?n[e.day()]:n}function ou(e){return e===!0?Ir(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function lu(e){return e===!0?Ir(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function uu(e,t,n){var r,s,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Ne([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(s=Q.call(this._weekdaysParse,i),s!==-1?s:null):t==="ddd"?(s=Q.call(this._shortWeekdaysParse,i),s!==-1?s:null):(s=Q.call(this._minWeekdaysParse,i),s!==-1?s:null):t==="dddd"?(s=Q.call(this._weekdaysParse,i),s!==-1||(s=Q.call(this._shortWeekdaysParse,i),s!==-1)?s:(s=Q.call(this._minWeekdaysParse,i),s!==-1?s:null)):t==="ddd"?(s=Q.call(this._shortWeekdaysParse,i),s!==-1||(s=Q.call(this._weekdaysParse,i),s!==-1)?s:(s=Q.call(this._minWeekdaysParse,i),s!==-1?s:null)):(s=Q.call(this._minWeekdaysParse,i),s!==-1||(s=Q.call(this._weekdaysParse,i),s!==-1)?s:(s=Q.call(this._shortWeekdaysParse,i),s!==-1?s:null))}function cu(e,t,n){var r,s,a;if(this._weekdaysParseExact)return uu.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=Ne([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function du(e){if(!this.isValid())return e!=null?this:NaN;var t=Yt(this,"Day");return e!=null?(e=Ql(e,this.localeData()),this.add(e-t,"d")):t}function fu(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 hu(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=eu(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function mu(e){return this._weekdaysParseExact?(F(this,"_weekdaysRegex")||Nr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(F(this,"_weekdaysRegex")||(this._weekdaysRegex=ru),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function pu(e){return this._weekdaysParseExact?(F(this,"_weekdaysRegex")||Nr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(F(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=su),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function gu(e){return this._weekdaysParseExact?(F(this,"_weekdaysRegex")||Nr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(F(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=au),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Nr(){function e(f,_){return _.length-f.length}var t=[],n=[],r=[],s=[],a,i,l,m,u;for(a=0;a<7;a++)i=Ne([2e3,1]).day(a),l=Be(this.weekdaysMin(i,"")),m=Be(this.weekdaysShort(i,"")),u=Be(this.weekdays(i,"")),t.push(l),n.push(m),r.push(u),s.push(l),s.push(m),s.push(u);t.sort(e),n.sort(e),r.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Cr(){return this.hours()%12||12}function _u(){return this.hours()||24}A("H",["HH",2],0,"hour");A("h",["hh",2],0,Cr);A("k",["kk",2],0,_u);A("hmm",0,0,function(){return""+Cr.apply(this)+Ie(this.minutes(),2)});A("hmmss",0,0,function(){return""+Cr.apply(this)+Ie(this.minutes(),2)+Ie(this.seconds(),2)});A("Hmm",0,0,function(){return""+this.hours()+Ie(this.minutes(),2)});A("Hmmss",0,0,function(){return""+this.hours()+Ie(this.minutes(),2)+Ie(this.seconds(),2)});function Aa(e,t){A(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Aa("a",!0);Aa("A",!1);function xa(e,t){return t._meridiemParse}D("a",xa);D("A",xa);D("H",q,Ar);D("h",q,Ot);D("k",q,Ot);D("HH",q,ye);D("hh",q,ye);D("kk",q,ye);D("hmm",wa);D("hmmss",Sa);D("Hmm",wa);D("Hmmss",Sa);$(["H","HH"],ee);$(["k","kk"],function(e,t,n){var r=Y(e);t[ee]=r===24?0:r});$(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});$(["h","hh"],function(e,t,n){t[ee]=Y(e),C(n).bigHour=!0});$("hmm",function(e,t,n){var r=e.length-2;t[ee]=Y(e.substr(0,r)),t[ke]=Y(e.substr(r)),C(n).bigHour=!0});$("hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[ee]=Y(e.substr(0,r)),t[ke]=Y(e.substr(r,2)),t[$e]=Y(e.substr(s)),C(n).bigHour=!0});$("Hmm",function(e,t,n){var r=e.length-2;t[ee]=Y(e.substr(0,r)),t[ke]=Y(e.substr(r))});$("Hmmss",function(e,t,n){var r=e.length-4,s=e.length-2;t[ee]=Y(e.substr(0,r)),t[ke]=Y(e.substr(r,2)),t[$e]=Y(e.substr(s))});function yu(e){return(e+"").toLowerCase().charAt(0)==="p"}var wu=/[ap]\.?m?\.?/i,Su=Et("Hours",!0);function vu(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Ia={calendar:ul,longDateFormat:hl,invalidDate:pl,ordinal:_l,dayOfMonthOrdinalParse:yl,relativeTime:Sl,months:Ll,monthsShort:ka,week:ql,weekdays:tu,weekdaysMin:nu,weekdaysShort:Ra,meridiemParse:wu},J={},xt={},jt;function bu(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function Ms(e){return e&&e.toLowerCase().replace("_","-")}function ku(e){for(var t=0,n,r,s,a;t<e.length;){for(a=Ms(e[t]).split("-"),n=a.length,r=Ms(e[t+1]),r=r?r.split("-"):null;n>0;){if(s=Rn(a.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&bu(a,r)>=n-1)break;n--}t++}return jt}function Ou(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Rn(e){var t=null,n;if(J[e]===void 0&&typeof module<"u"&&module&&module.exports&&Ou(e))try{t=jt._abbr,n=require,n("./locale/"+e),Xe(t)}catch{J[e]=null}return J[e]}function Xe(e,t){var n;return e&&(fe(t)?n=ze(e):n=Pr(e,t),n?jt=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),jt._abbr}function Pr(e,t){if(t!==null){var n,r=Ia;if(t.abbr=e,J[e]!=null)pa("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=J[e]._config;else if(t.parentLocale!=null)if(J[t.parentLocale]!=null)r=J[t.parentLocale]._config;else if(n=Rn(t.parentLocale),n!=null)r=n._config;else return xt[t.parentLocale]||(xt[t.parentLocale]=[]),xt[t.parentLocale].push({name:e,config:t}),null;return J[e]=new Er(ur(r,t)),xt[e]&&xt[e].forEach(function(s){Pr(s.name,s.config)}),Xe(e),J[e]}else return delete J[e],null}function Eu(e,t){if(t!=null){var n,r,s=Ia;J[e]!=null&&J[e].parentLocale!=null?J[e].set(ur(J[e]._config,t)):(r=Rn(e),r!=null&&(s=r._config),t=ur(s,t),r==null&&(t.abbr=e),n=new Er(t),n.parentLocale=J[e],J[e]=n),Xe(e)}else J[e]!=null&&(J[e].parentLocale!=null?(J[e]=J[e].parentLocale,e===Xe()&&Xe(e)):J[e]!=null&&delete J[e]);return J[e]}function ze(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return jt;if(!Oe(e)){if(t=Rn(e),t)return t;e=[e]}return ku(e)}function Du(){return cr(J)}function Lr(e){var t,n=e._a;return n&&C(e).overflow===-2&&(t=n[He]<0||n[He]>11?He:n[xe]<1||n[xe]>xr(n[oe],n[He])?xe:n[ee]<0||n[ee]>24||n[ee]===24&&(n[ke]!==0||n[$e]!==0||n[at]!==0)?ee:n[ke]<0||n[ke]>59?ke:n[$e]<0||n[$e]>59?$e:n[at]<0||n[at]>999?at:-1,C(e)._overflowDayOfYear&&(t<oe||t>xe)&&(t=xe),C(e)._overflowWeeks&&t===-1&&(t=Al),C(e)._overflowWeekday&&t===-1&&(t=xl),C(e).overflow=t),e}var Tu=/^\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)?)?$/,Mu=/^\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)?)?$/,Ru=/Z|[+-]\d\d(?::?\d\d)?/,sn=[["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]],er=[["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/]],Au=/^\/?Date\((-?\d+)/i,xu=/^(?:(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}))$/,Iu={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 Na(e){var t,n,r=e._i,s=Tu.exec(r)||Mu.exec(r),a,i,l,m,u=sn.length,f=er.length;if(s){for(C(e).iso=!0,t=0,n=u;t<n;t++)if(sn[t][1].exec(s[1])){i=sn[t][0],a=sn[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(s[3]){for(t=0,n=f;t<n;t++)if(er[t][1].exec(s[3])){l=(s[2]||" ")+er[t][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(s[4])if(Ru.exec(s[4]))m="Z";else{e._isValid=!1;return}e._f=i+(l||"")+(m||""),Ur(e)}else e._isValid=!1}function Nu(e,t,n,r,s,a){var i=[Cu(e),ka.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return a&&i.push(parseInt(a,10)),i}function Cu(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pu(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Lu(e,t,n){if(e){var r=Ra.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(r!==s)return C(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Yu(e,t,n){if(e)return Iu[e];if(t)return 0;var r=parseInt(n,10),s=r%100,a=(r-s)/100;return a*60+s}function Ca(e){var t=xu.exec(Pu(e._i)),n;if(t){if(n=Nu(t[4],t[3],t[2],t[5],t[6],t[7]),!Lu(t[1],n,e))return;e._a=n,e._tzm=Yu(t[8],t[9],t[10]),e._d=Ut.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),C(e).rfc2822=!0}else e._isValid=!1}function Uu(e){var t=Au.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Na(e),e._isValid===!1)delete e._isValid;else return;if(Ca(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:O.createFromInputFallback(e)}O.createFromInputFallback=ve("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 gt(e,t,n){return e??t??n}function Fu(e){var t=new Date(O.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Yr(e){var t,n,r=[],s,a,i;if(!e._d){for(s=Fu(e),e._w&&e._a[xe]==null&&e._a[He]==null&&ju(e),e._dayOfYear!=null&&(i=gt(e._a[oe],s[oe]),(e._dayOfYear>Lt(i)||e._dayOfYear===0)&&(C(e)._overflowDayOfYear=!0),n=Ut(i,0,e._dayOfYear),e._a[He]=n.getUTCMonth(),e._a[xe]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=s[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ee]===24&&e._a[ke]===0&&e._a[$e]===0&&e._a[at]===0&&(e._nextDay=!0,e._a[ee]=0),e._d=(e._useUTC?Ut:Gl).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ee]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(C(e).weekdayMismatch=!0)}}function ju(e){var t,n,r,s,a,i,l,m,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,n=gt(t.GG,e._a[oe],Ft(z(),1,4).year),r=gt(t.W,1),s=gt(t.E,1),(s<1||s>7)&&(m=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=Ft(z(),a,i),n=gt(t.gg,e._a[oe],u.year),r=gt(t.w,u.week),t.d!=null?(s=t.d,(s<0||s>6)&&(m=!0)):t.e!=null?(s=t.e+a,(t.e<0||t.e>6)&&(m=!0)):s=a),r<1||r>Ve(n,a,i)?C(e)._overflowWeeks=!0:m!=null?C(e)._overflowWeekday=!0:(l=Ma(n,r,s,a,i),e._a[oe]=l.year,e._dayOfYear=l.dayOfYear)}O.ISO_8601=function(){};O.RFC_2822=function(){};function Ur(e){if(e._f===O.ISO_8601){Na(e);return}if(e._f===O.RFC_2822){Ca(e);return}e._a=[],C(e).empty=!0;var t=""+e._i,n,r,s,a,i,l=t.length,m=0,u,f;for(s=ga(e._f,e._locale).match(Dr)||[],f=s.length,n=0;n<f;n++)a=s[n],r=(t.match(Tl(a,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&C(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),m+=r.length),wt[a]?(r?C(e).empty=!1:C(e).unusedTokens.push(a),Rl(a,r,e)):e._strict&&!r&&C(e).unusedTokens.push(a);C(e).charsLeftOver=l-m,t.length>0&&C(e).unusedInput.push(t),e._a[ee]<=12&&C(e).bigHour===!0&&e._a[ee]>0&&(C(e).bigHour=void 0),C(e).parsedDateParts=e._a.slice(0),C(e).meridiem=e._meridiem,e._a[ee]=Wu(e._locale,e._a[ee],e._meridiem),u=C(e).era,u!==null&&(e._a[oe]=e._locale.erasConvertYear(u,e._a[oe])),Yr(e),Lr(e)}function Wu(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Hu(e){var t,n,r,s,a,i,l=!1,m=e._f.length;if(m===0){C(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<m;s++)a=0,i=!1,t=Or({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],Ur(t),kr(t)&&(i=!0),a+=C(t).charsLeftOver,a+=C(t).unusedTokens.length*10,C(t).score=a,l?a<r&&(r=a,n=t):(r==null||a<r||i)&&(r=a,n=t,i&&(l=!0));Ke(e,n||t)}function $u(e){if(!e._d){var t=Tr(e._i),n=t.day===void 0?t.date:t.day;e._a=ha([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Yr(e)}}function Bu(e){var t=new $t(Lr(Pa(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Pa(e){var t=e._i,n=e._f;return e._locale=e._locale||ze(e._l),t===null||n===void 0&&t===""?bn({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ee(t)?new $t(Lr(t)):(Ht(t)?e._d=t:Oe(n)?Hu(e):n?Ur(e):Vu(e),kr(e)||(e._d=null),e))}function Vu(e){var t=e._i;fe(t)?e._d=new Date(O.now()):Ht(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Uu(e):Oe(t)?(e._a=ha(t.slice(0),function(n){return parseInt(n,10)}),Yr(e)):ot(t)?$u(e):Ge(t)?e._d=new Date(t):O.createFromInputFallback(e)}function La(e,t,n,r,s){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(ot(e)&&br(e)||Oe(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=s,a._l=n,a._i=e,a._f=t,a._strict=r,Bu(a)}function z(e,t,n,r){return La(e,t,n,r,!1)}var Gu=ve("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=z.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:bn()}),zu=ve("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=z.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:bn()});function Ya(e,t){var n,r;if(t.length===1&&Oe(t[0])&&(t=t[0]),!t.length)return z();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function qu(){var e=[].slice.call(arguments,0);return Ya("isBefore",e)}function Ju(){var e=[].slice.call(arguments,0);return Ya("isAfter",e)}var Ku=function(){return Date.now?Date.now():+new Date},It=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Zu(e){var t,n=!1,r,s=It.length;for(t in e)if(F(e,t)&&!(Q.call(It,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<s;++r)if(e[It[r]]){if(n)return!1;parseFloat(e[It[r]])!==Y(e[It[r]])&&(n=!0)}return!0}function Xu(){return this._isValid}function Qu(){return De(NaN)}function An(e){var t=Tr(e),n=t.year||0,r=t.quarter||0,s=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,m=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=Zu(t),this._milliseconds=+f+u*1e3+m*6e4+l*1e3*60*60,this._days=+i+a*7,this._months=+s+r*3+n*12,this._data={},this._locale=ze(),this._bubble()}function un(e){return e instanceof An}function fr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function ec(e,t,n){var r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),a=0,i;for(i=0;i<r;i++)Y(e[i])!==Y(t[i])&&a++;return a+s}function Ua(e,t){A(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Ie(~~(n/60),2)+t+Ie(~~n%60,2)})}Ua("Z",":");Ua("ZZ","");D("Z",Tn);D("ZZ",Tn);$(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Fr(Tn,e)});var tc=/([\+\-]|\d\d)/gi;function Fr(e,t){var n=(t||"").match(e),r,s,a;return n===null?null:(r=n[n.length-1]||[],s=(r+"").match(tc)||["-",0,0],a=+(s[1]*60)+Y(s[2]),a===0?0:s[0]==="+"?a:-a)}function jr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Ee(e)||Ht(e)?e.valueOf():z(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),O.updateOffset(n,!1),n):z(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}O.updateOffset=function(){};function nc(e,t,n){var r=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Fr(Tn,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(s=hr(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),r!==e&&(!t||this._changeInProgress?Wa(this,De(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,O.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:hr(this)}function rc(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function sc(e){return this.utcOffset(0,e)}function ac(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function ic(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Fr(El,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function oc(e){return this.isValid()?(e=e?z(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function lc(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function uc(){if(!fe(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Or(e,this),e=Pa(e),e._a?(t=e._isUTC?Ne(e._a):z(e._a),this._isDSTShifted=this.isValid()&&ec(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function cc(){return this.isValid()?!this._isUTC:!1}function dc(){return this.isValid()?this._isUTC:!1}function Fa(){return this.isValid()?this._isUTC&&this._offset===0:!1}var fc=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,hc=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function De(e,t){var n=e,r=null,s,a,i;return un(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Ge(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=fc.exec(e))?(s=r[1]==="-"?-1:1,n={y:0,d:Y(r[xe])*s,h:Y(r[ee])*s,m:Y(r[ke])*s,s:Y(r[$e])*s,ms:Y(fr(r[at]*1e3))*s}):(r=hc.exec(e))?(s=r[1]==="-"?-1:1,n={y:rt(r[2],s),M:rt(r[3],s),w:rt(r[4],s),d:rt(r[5],s),h:rt(r[6],s),m:rt(r[7],s),s:rt(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=mc(z(n.from),z(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),a=new An(n),un(e)&&F(e,"_locale")&&(a._locale=e._locale),un(e)&&F(e,"_isValid")&&(a._isValid=e._isValid),a}De.fn=An.prototype;De.invalid=Qu;function rt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Rs(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function mc(e,t){var n;return e.isValid()&&t.isValid()?(t=jr(t,e),e.isBefore(t)?n=Rs(e,t):(n=Rs(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ja(e,t){return function(n,r){var s,a;return r!==null&&!isNaN(+r)&&(pa(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."),a=n,n=r,r=a),s=De(n,r),Wa(this,s,e),this}}function Wa(e,t,n,r){var s=t._milliseconds,a=fr(t._days),i=fr(t._months);e.isValid()&&(r=r??!0,i&&Ea(e,Yt(e,"Month")+i*n),a&&ba(e,"Date",Yt(e,"Date")+a*n),s&&e._d.setTime(e._d.valueOf()+s*n),r&&O.updateOffset(e,a||i))}var pc=ja(1,"add"),gc=ja(-1,"subtract");function Ha(e){return typeof e=="string"||e instanceof String}function _c(e){return Ee(e)||Ht(e)||Ha(e)||Ge(e)||wc(e)||yc(e)||e===null||e===void 0}function yc(e){var t=ot(e)&&!br(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,a,i=r.length;for(s=0;s<i;s+=1)a=r[s],n=n||F(e,a);return t&&n}function wc(e){var t=Oe(e),n=!1;return t&&(n=e.filter(function(r){return!Ge(r)&&Ha(e)}).length===0),t&&n}function Sc(e){var t=ot(e)&&!br(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,a;for(s=0;s<r.length;s+=1)a=r[s],n=n||F(e,a);return t&&n}function vc(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function bc(e,t){arguments.length===1&&(arguments[0]?_c(arguments[0])?(e=arguments[0],t=void 0):Sc(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||z(),r=jr(n,this).startOf("day"),s=O.calendarFormat(this,r)||"sameElse",a=t&&(Ce(t[s])?t[s].call(this,n):t[s]);return this.format(a||this.localeData().calendar(s,this,z(n)))}function kc(){return new $t(this)}function Oc(e,t){var n=Ee(e)?e:z(e);return this.isValid()&&n.isValid()?(t=be(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Ec(e,t){var n=Ee(e)?e:z(e);return this.isValid()&&n.isValid()?(t=be(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Dc(e,t,n,r){var s=Ee(e)?e:z(e),a=Ee(t)?t:z(t);return this.isValid()&&s.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function Tc(e,t){var n=Ee(e)?e:z(e),r;return this.isValid()&&n.isValid()?(t=be(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Mc(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Rc(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ac(e,t,n){var r,s,a;if(!this.isValid())return NaN;if(r=jr(e,this),!r.isValid())return NaN;switch(s=(r.utcOffset()-this.utcOffset())*6e4,t=be(t),t){case"year":a=cn(this,r)/12;break;case"month":a=cn(this,r);break;case"quarter":a=cn(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-s)/864e5;break;case"week":a=(this-r-s)/6048e5;break;default:a=this-r}return n?a:Se(a)}function cn(e,t){if(e.date()<t.date())return-cn(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),s,a;return t-r<0?(s=e.clone().add(n-1,"months"),a=(t-r)/(r-s)):(s=e.clone().add(n+1,"months"),a=(t-r)/(s-r)),-(n+a)||0}O.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";O.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function xc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ic(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?ln(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ce(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ln(n,"Z")):ln(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Nc(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,s,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+s+a)}function Cc(e){e||(e=this.isUtc()?O.defaultFormatUtc:O.defaultFormat);var t=ln(this,e);return this.localeData().postformat(t)}function Pc(e,t){return this.isValid()&&(Ee(e)&&e.isValid()||z(e).isValid())?De({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Lc(e){return this.from(z(),e)}function Yc(e,t){return this.isValid()&&(Ee(e)&&e.isValid()||z(e).isValid())?De({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Uc(e){return this.to(z(),e)}function $a(e){var t;return e===void 0?this._locale._abbr:(t=ze(e),t!=null&&(this._locale=t),this)}var Ba=ve("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 Va(){return this._locale}var gn=1e3,St=60*gn,_n=60*St,Ga=(365*400+97)*24*_n;function vt(e,t){return(e%t+t)%t}function za(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Ga:new Date(e,t,n).valueOf()}function qa(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Ga:Date.UTC(e,t,n)}function Fc(e){var t,n;if(e=be(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?qa:za,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=vt(t+(this._isUTC?0:this.utcOffset()*St),_n);break;case"minute":t=this._d.valueOf(),t-=vt(t,St);break;case"second":t=this._d.valueOf(),t-=vt(t,gn);break}return this._d.setTime(t),O.updateOffset(this,!0),this}function jc(e){var t,n;if(e=be(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?qa:za,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=_n-vt(t+(this._isUTC?0:this.utcOffset()*St),_n)-1;break;case"minute":t=this._d.valueOf(),t+=St-vt(t,St)-1;break;case"second":t=this._d.valueOf(),t+=gn-vt(t,gn)-1;break}return this._d.setTime(t),O.updateOffset(this,!0),this}function Wc(){return this._d.valueOf()-(this._offset||0)*6e4}function Hc(){return Math.floor(this.valueOf()/1e3)}function $c(){return new Date(this.valueOf())}function Bc(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Vc(){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 Gc(){return this.isValid()?this.toISOString():null}function zc(){return kr(this)}function qc(){return Ke({},C(this))}function Jc(){return C(this).overflow}function Kc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}A("N",0,0,"eraAbbr");A("NN",0,0,"eraAbbr");A("NNN",0,0,"eraAbbr");A("NNNN",0,0,"eraName");A("NNNNN",0,0,"eraNarrow");A("y",["y",1],"yo","eraYear");A("y",["yy",2],0,"eraYear");A("y",["yyy",3],0,"eraYear");A("y",["yyyy",4],0,"eraYear");D("N",Wr);D("NN",Wr);D("NNN",Wr);D("NNNN",od);D("NNNNN",ld);$(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var s=n._locale.erasParse(e,r,n._strict);s?C(n).era=s:C(n).invalidEra=e});D("y",kt);D("yy",kt);D("yyy",kt);D("yyyy",kt);D("yo",ud);$(["y","yy","yyy","yyyy"],oe);$(["yo"],function(e,t,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[oe]=n._locale.eraYearOrdinalParse(e,s):t[oe]=parseInt(e,10)});function Zc(e,t){var n,r,s,a=this._eras||ze("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":s=O(a[n].since).startOf("day"),a[n].since=s.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":s=O(a[n].until).startOf("day").valueOf(),a[n].until=s.valueOf();break}}return a}function Xc(e,t,n){var r,s,a=this.eras(),i,l,m;for(e=e.toUpperCase(),r=0,s=a.length;r<s;++r)if(i=a[r].name.toUpperCase(),l=a[r].abbr.toUpperCase(),m=a[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return a[r];break;case"NNNN":if(i===e)return a[r];break;case"NNNNN":if(m===e)return a[r];break}else if([i,l,m].indexOf(e)>=0)return a[r]}function Qc(e,t){var n=e.since<=e.until?1:-1;return t===void 0?O(e.since).year():O(e.since).year()+(t-e.offset)*n}function ed(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function td(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function nd(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function rd(){var e,t,n,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-O(s[e].since).year())*n+s[e].offset;return this.year()}function sd(e){return F(this,"_erasNameRegex")||Hr.call(this),e?this._erasNameRegex:this._erasRegex}function ad(e){return F(this,"_erasAbbrRegex")||Hr.call(this),e?this._erasAbbrRegex:this._erasRegex}function id(e){return F(this,"_erasNarrowRegex")||Hr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Wr(e,t){return t.erasAbbrRegex(e)}function od(e,t){return t.erasNameRegex(e)}function ld(e,t){return t.erasNarrowRegex(e)}function ud(e,t){return t._eraYearOrdinalRegex||kt}function Hr(){var e=[],t=[],n=[],r=[],s,a,i,l,m,u=this.eras();for(s=0,a=u.length;s<a;++s)i=Be(u[s].name),l=Be(u[s].abbr),m=Be(u[s].narrow),t.push(i),e.push(l),n.push(m),r.push(i),r.push(l),r.push(m);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}A(0,["gg",2],0,function(){return this.weekYear()%100});A(0,["GG",2],0,function(){return this.isoWeekYear()%100});function xn(e,t){A(0,[e,e.length],0,t)}xn("gggg","weekYear");xn("ggggg","weekYear");xn("GGGG","isoWeekYear");xn("GGGGG","isoWeekYear");D("G",Dn);D("g",Dn);D("GG",q,ye);D("gg",q,ye);D("GGGG",Rr,Mr);D("gggg",Rr,Mr);D("GGGGG",En,kn);D("ggggg",En,kn);Vt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Y(e)});Vt(["gg","GG"],function(e,t,n,r){t[r]=O.parseTwoDigitYear(e)});function cd(e){return Ja.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function dd(e){return Ja.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function fd(){return Ve(this.year(),1,4)}function hd(){return Ve(this.isoWeekYear(),1,4)}function md(){var e=this.localeData()._week;return Ve(this.year(),e.dow,e.doy)}function pd(){var e=this.localeData()._week;return Ve(this.weekYear(),e.dow,e.doy)}function Ja(e,t,n,r,s){var a;return e==null?Ft(this,r,s).year:(a=Ve(e,r,s),t>a&&(t=a),gd.call(this,e,t,n,r,s))}function gd(e,t,n,r,s){var a=Ma(e,t,n,r,s),i=Ut(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}A("Q",0,"Qo","quarter");D("Q",_a);$("Q",function(e,t){t[He]=(Y(e)-1)*3});function _d(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}A("D",["DD",2],"Do","date");D("D",q,Ot);D("DD",q,ye);D("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});$(["D","DD"],xe);$("Do",function(e,t){t[xe]=Y(e.match(q)[0])});var Ka=Et("Date",!0);A("DDD",["DDDD",3],"DDDo","dayOfYear");D("DDD",On);D("DDDD",ya);$(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Y(e)});function yd(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}A("m",["mm",2],0,"minute");D("m",q,Ar);D("mm",q,ye);$(["m","mm"],ke);var wd=Et("Minutes",!1);A("s",["ss",2],0,"second");D("s",q,Ar);D("ss",q,ye);$(["s","ss"],$e);var Sd=Et("Seconds",!1);A("S",0,0,function(){return~~(this.millisecond()/100)});A(0,["SS",2],0,function(){return~~(this.millisecond()/10)});A(0,["SSS",3],0,"millisecond");A(0,["SSSS",4],0,function(){return this.millisecond()*10});A(0,["SSSSS",5],0,function(){return this.millisecond()*100});A(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});A(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});A(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});A(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});D("S",On,_a);D("SS",On,ye);D("SSS",On,ya);var Ze,Za;for(Ze="SSSS";Ze.length<=9;Ze+="S")D(Ze,kt);function vd(e,t){t[at]=Y(("0."+e)*1e3)}for(Ze="S";Ze.length<=9;Ze+="S")$(Ze,vd);Za=Et("Milliseconds",!1);A("z",0,0,"zoneAbbr");A("zz",0,0,"zoneName");function bd(){return this._isUTC?"UTC":""}function kd(){return this._isUTC?"Coordinated Universal Time":""}var v=$t.prototype;v.add=pc;v.calendar=bc;v.clone=kc;v.diff=Ac;v.endOf=jc;v.format=Cc;v.from=Pc;v.fromNow=Lc;v.to=Yc;v.toNow=Uc;v.get=Nl;v.invalidAt=Jc;v.isAfter=Oc;v.isBefore=Ec;v.isBetween=Dc;v.isSame=Tc;v.isSameOrAfter=Mc;v.isSameOrBefore=Rc;v.isValid=zc;v.lang=Ba;v.locale=$a;v.localeData=Va;v.max=zu;v.min=Gu;v.parsingFlags=qc;v.set=Cl;v.startOf=Fc;v.subtract=gc;v.toArray=Bc;v.toObject=Vc;v.toDate=$c;v.toISOString=Ic;v.inspect=Nc;typeof Symbol<"u"&&Symbol.for!=null&&(v[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});v.toJSON=Gc;v.toString=xc;v.unix=Hc;v.valueOf=Wc;v.creationData=Kc;v.eraName=ed;v.eraNarrow=td;v.eraAbbr=nd;v.eraYear=rd;v.year=va;v.isLeapYear=Il;v.weekYear=cd;v.isoWeekYear=dd;v.quarter=v.quarters=_d;v.month=Da;v.daysInMonth=$l;v.week=v.weeks=Zl;v.isoWeek=v.isoWeeks=Xl;v.weeksInYear=md;v.weeksInWeekYear=pd;v.isoWeeksInYear=fd;v.isoWeeksInISOWeekYear=hd;v.date=Ka;v.day=v.days=du;v.weekday=fu;v.isoWeekday=hu;v.dayOfYear=yd;v.hour=v.hours=Su;v.minute=v.minutes=wd;v.second=v.seconds=Sd;v.millisecond=v.milliseconds=Za;v.utcOffset=nc;v.utc=sc;v.local=ac;v.parseZone=ic;v.hasAlignedHourOffset=oc;v.isDST=lc;v.isLocal=cc;v.isUtcOffset=dc;v.isUtc=Fa;v.isUTC=Fa;v.zoneAbbr=bd;v.zoneName=kd;v.dates=ve("dates accessor is deprecated. Use date instead.",Ka);v.months=ve("months accessor is deprecated. Use month instead",Da);v.years=ve("years accessor is deprecated. Use year instead",va);v.zone=ve("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",rc);v.isDSTShifted=ve("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",uc);function Od(e){return z(e*1e3)}function Ed(){return z.apply(null,arguments).parseZone()}function Xa(e){return e}var j=Er.prototype;j.calendar=cl;j.longDateFormat=ml;j.invalidDate=gl;j.ordinal=wl;j.preparse=Xa;j.postformat=Xa;j.relativeTime=vl;j.pastFuture=bl;j.set=ll;j.eras=Zc;j.erasParse=Xc;j.erasConvertYear=Qc;j.erasAbbrRegex=ad;j.erasNameRegex=sd;j.erasNarrowRegex=id;j.months=Fl;j.monthsShort=jl;j.monthsParse=Hl;j.monthsRegex=Vl;j.monthsShortRegex=Bl;j.week=zl;j.firstDayOfYear=Kl;j.firstDayOfWeek=Jl;j.weekdays=iu;j.weekdaysMin=lu;j.weekdaysShort=ou;j.weekdaysParse=cu;j.weekdaysRegex=mu;j.weekdaysShortRegex=pu;j.weekdaysMinRegex=gu;j.isPM=yu;j.meridiem=vu;function yn(e,t,n,r){var s=ze(),a=Ne().set(r,t);return s[n](a,e)}function Qa(e,t,n){if(Ge(e)&&(t=e,e=void 0),e=e||"",t!=null)return yn(e,t,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=yn(e,r,n,"month");return s}function $r(e,t,n,r){typeof e=="boolean"?(Ge(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Ge(t)&&(n=t,t=void 0),t=t||"");var s=ze(),a=e?s._week.dow:0,i,l=[];if(n!=null)return yn(t,(n+a)%7,r,"day");for(i=0;i<7;i++)l[i]=yn(t,(i+a)%7,r,"day");return l}function Dd(e,t){return Qa(e,t,"months")}function Td(e,t){return Qa(e,t,"monthsShort")}function Md(e,t,n){return $r(e,t,n,"weekdays")}function Rd(e,t,n){return $r(e,t,n,"weekdaysShort")}function Ad(e,t,n){return $r(e,t,n,"weekdaysMin")}Xe("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,n=Y(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});O.lang=ve("moment.lang is deprecated. Use moment.locale instead.",Xe);O.langData=ve("moment.langData is deprecated. Use moment.localeData instead.",ze);var je=Math.abs;function xd(){var e=this._data;return this._milliseconds=je(this._milliseconds),this._days=je(this._days),this._months=je(this._months),e.milliseconds=je(e.milliseconds),e.seconds=je(e.seconds),e.minutes=je(e.minutes),e.hours=je(e.hours),e.months=je(e.months),e.years=je(e.years),this}function ei(e,t,n,r){var s=De(t,n);return e._milliseconds+=r*s._milliseconds,e._days+=r*s._days,e._months+=r*s._months,e._bubble()}function Id(e,t){return ei(this,e,t,1)}function Nd(e,t){return ei(this,e,t,-1)}function As(e){return e<0?Math.floor(e):Math.ceil(e)}function Cd(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,s,a,i,l,m;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=As(mr(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,s=Se(e/1e3),r.seconds=s%60,a=Se(s/60),r.minutes=a%60,i=Se(a/60),r.hours=i%24,t+=Se(i/24),m=Se(ti(t)),n+=m,t-=As(mr(m)),l=Se(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function ti(e){return e*4800/146097}function mr(e){return e*146097/4800}function Pd(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=be(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+ti(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(mr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function qe(e){return function(){return this.as(e)}}var ni=qe("ms"),Ld=qe("s"),Yd=qe("m"),Ud=qe("h"),Fd=qe("d"),jd=qe("w"),Wd=qe("M"),Hd=qe("Q"),$d=qe("y"),Bd=ni;function Vd(){return De(this)}function Gd(e){return e=be(e),this.isValid()?this[e+"s"]():NaN}function ct(e){return function(){return this.isValid()?this._data[e]:NaN}}var zd=ct("milliseconds"),qd=ct("seconds"),Jd=ct("minutes"),Kd=ct("hours"),Zd=ct("days"),Xd=ct("months"),Qd=ct("years");function ef(){return Se(this.days()/7)}var We=Math.round,_t={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function tf(e,t,n,r,s){return s.relativeTime(t||1,!!n,e,r)}function nf(e,t,n,r){var s=De(e).abs(),a=We(s.as("s")),i=We(s.as("m")),l=We(s.as("h")),m=We(s.as("d")),u=We(s.as("M")),f=We(s.as("w")),_=We(s.as("y")),E=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||l<=1&&["h"]||l<n.h&&["hh",l]||m<=1&&["d"]||m<n.d&&["dd",m];return n.w!=null&&(E=E||f<=1&&["w"]||f<n.w&&["ww",f]),E=E||u<=1&&["M"]||u<n.M&&["MM",u]||_<=1&&["y"]||["yy",_],E[2]=t,E[3]=+e>0,E[4]=r,tf.apply(null,E)}function rf(e){return e===void 0?We:typeof e=="function"?(We=e,!0):!1}function sf(e,t){return _t[e]===void 0?!1:t===void 0?_t[e]:(_t[e]=t,e==="s"&&(_t.ss=t-1),!0)}function af(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=_t,s,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},_t,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),s=this.localeData(),a=nf(this,!n,r,s),n&&(a=s.pastFuture(+this,a)),s.postformat(a)}var tr=Math.abs;function pt(e){return(e>0)-(e<0)||+e}function In(){if(!this.isValid())return this.localeData().invalidDate();var e=tr(this._milliseconds)/1e3,t=tr(this._days),n=tr(this._months),r,s,a,i,l=this.asSeconds(),m,u,f,_;return l?(r=Se(e/60),s=Se(r/60),e%=60,r%=60,a=Se(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",m=l<0?"-":"",u=pt(this._months)!==pt(l)?"-":"",f=pt(this._days)!==pt(l)?"-":"",_=pt(this._milliseconds)!==pt(l)?"-":"",m+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(s||r||e?"T":"")+(s?_+s+"H":"")+(r?_+r+"M":"")+(e?_+i+"S":"")):"P0D"}var U=An.prototype;U.isValid=Xu;U.abs=xd;U.add=Id;U.subtract=Nd;U.as=Pd;U.asMilliseconds=ni;U.asSeconds=Ld;U.asMinutes=Yd;U.asHours=Ud;U.asDays=Fd;U.asWeeks=jd;U.asMonths=Wd;U.asQuarters=Hd;U.asYears=$d;U.valueOf=Bd;U._bubble=Cd;U.clone=Vd;U.get=Gd;U.milliseconds=zd;U.seconds=qd;U.minutes=Jd;U.hours=Kd;U.days=Zd;U.weeks=ef;U.months=Xd;U.years=Qd;U.humanize=af;U.toISOString=In;U.toString=In;U.toJSON=In;U.locale=$a;U.localeData=Va;U.toIsoString=ve("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",In);U.lang=Ba;A("X",0,0,"unix");A("x",0,0,"valueOf");D("x",Dn);D("X",Dl);$("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});$("x",function(e,t,n){n._d=new Date(Y(e))});//! moment.js
|
|
10
|
-
O.version="2.30.1";il(z);O.fn=v;O.min=qu;O.max=Ju;O.now=Ku;O.utc=Ne;O.unix=Od;O.months=Dd;O.isDate=Ht;O.locale=Xe;O.invalid=bn;O.duration=De;O.isMoment=Ee;O.weekdays=Md;O.parseZone=Ed;O.localeData=ze;O.isDuration=un;O.monthsShort=Td;O.weekdaysMin=Ad;O.defineLocale=Pr;O.updateLocale=Eu;O.locales=Du;O.weekdaysShort=Rd;O.normalizeUnits=be;O.relativeTimeRounding=rf;O.relativeTimeThreshold=sf;O.calendarFormat=vc;O.prototype=v;O.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"};//! moment.js locale configuration
|
|
11
|
-
//! locale : French [fr]
|
|
12
|
-
//! author : John Fischer : https://github.com/jfroffice
|
|
13
|
-
var of=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,lf=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,xs=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,nr=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];O.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:xs,monthsShortRegex:xs,monthsStrictRegex:of,monthsShortStrictRegex:lf,monthsParse:nr,longMonthsParse:nr,shortMonthsParse:nr,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(e===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(e===1?"er":"e");case"w":case"W":return e+(e===1?"re":"e")}},week:{dow:1,doy:4}});var Is;(function(e){e.USER="user",e.ADMIN="admin",e.SYSTEM="system"})(Is||(Is={}));var Ns;(function(e){e.INTERNAL="internal",e.USER_EDITABLE="user-editable"})(Ns||(Ns={}));var Cs;(function(e){e.EDITORIAL_CONTENT="editorial-content",e.USER_DATA="user-data",e.SYSTEM_DATA="system-data"})(Cs||(Cs={}));var Ps;(function(e){e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED"})(Ps||(Ps={}));var Ls;(function(e){e.IMAGE="image",e.VIDEO="video"})(Ls||(Ls={}));var Ys;(function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.EMAIL_PASSWORD=1]="EMAIL_PASSWORD",e[e.PHONE=2]="PHONE",e[e.GOOGLE=3]="GOOGLE",e[e.FACEBOOK=4]="FACEBOOK",e[e.TWITTER=5]="TWITTER"})(Ys||(Ys={}));var wn;(function(e){e[e.FALSE=0]="FALSE",e[e.TRUE=1]="TRUE"})(wn||(wn={}));var Us;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})(Us||(Us={}));var _e;(function(e){e.RELOAD="reload",e.RELOAD_COMPLETE="reload-complete",e.ENABLE_EDITION_MODE="enable-edition-mode",e.DESELECT_ALL_SECTIONS="deselect-all-sections",e.SELECT_PREVIEW_SECTION="select-preview-section",e.SELECT_SIDEBAR_SECTION="select-sidebar-section",e.SEND_BASE_SECTION_SETTINGS="send-base-section-settings",e.SEND_BASE_SECTION_DATA="send-base-section-data",e.SEND_SECTION_SETTINGS="send-section-settings",e.SEND_SECTION_DATA="send-section-data",e.SEND_PAGE_SECTIONS="send-page-sections"})(_e||(_e={}));var Sn;(function(e){e.EXTERNAL_LINK="external-link",e.PAGE_LINK="page-link",e.CONTENT_LINK="content-link"})(Sn||(Sn={}));var Fs;(function(e){e[e.SYSTEM=1]="SYSTEM",e[e.USER=2]="USER"})(Fs||(Fs={}));var js;(function(e){e.WELCOME_USER="App\\Notifications\\WelcomeUser"})(js||(js={}));var Ws;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})(Ws||(Ws={}));var Hs;(function(e){e.SUBSCRIBER="App\\Models\\SubscriberProfile"})(Hs||(Hs={}));var $s;(function(e){e.FORM_INVALID_DATA="form/invalid_data",e.REQUEST_PARAMS_MISSING="request/params_missing",e.REQUEST_DATA_RETRIEVAL_FAILED="request/data_retrieval_failed",e.REQUEST_DATA_ALREADY_EXISTS="request/data_already_exists",e.AUTH_LOGIN_FAILED="auth/login_failed",e.AUTH_REGISTRATION_FAILED="auth/registration_failed",e.AUTH_MISSING_DATA="auth/missing_data",e.AUTH_WRONG_PASSWORD="auth/wrong_password",e.AUTH_USER_DISABLED="auth/user_disabled",e.AUTH_USER_NOT_FOUND="auth/user_not_found",e.AUTH_PROFILE_TYPE_NOT_FOUND="auth/profile_type_not_found",e.AUTH_EMAIL_ALREADY_USED="auth/email_already_used",e.AUTH_EMAIL_ALREADY_VERIFIED="auth/email_already_verified",e.AUTH_PROFILE_ALREADY_EXISTS="auth/profile_already_exists",e.AUTH_PROFILE_NOT_FOUND="auth/profile_not_found",e.AUTH_INVALID_TOKEN="auth/invalid_token",e.AUTH_CODE_SENDING_FAILED="auth/code_sending_failed",e.AUTH_CODE_VERIFICATION_FAILED="auth/code_verification_failed",e.AUTH_CODE_EXPIRED="auth/code_expired"})($s||($s={}));var Bs;(function(e){e.SUPER_ADMIN="super-admin",e.ADMIN="admin",e.USER="user"})(Bs||(Bs={}));var an=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pt={exports:{}};Pt.exports;var Vs;function cf(){return Vs||(Vs=1,function(e,t){var n=200,r="__lodash_hash_undefined__",s=9007199254740991,a="[object Arguments]",i="[object Array]",l="[object Boolean]",m="[object Date]",u="[object Error]",f="[object Function]",_="[object GeneratorFunction]",E="[object Map]",S="[object Number]",d="[object Object]",g="[object Promise]",w="[object RegExp]",P="[object Set]",V="[object String]",W="[object Symbol]",G="[object WeakMap]",te="[object ArrayBuffer]",ae="[object DataView]",X="[object Float32Array]",Pe="[object Float64Array]",pe="[object Int8Array]",Le="[object Int16Array]",Ye="[object Int32Array]",Me="[object Uint8Array]",x="[object Uint8ClampedArray]",L="[object Uint16Array]",H="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,le=/\w*$/,K=/^\[object .+?Constructor\]$/,ge=/^(?:0|[1-9]\d*)$/,b={};b[a]=b[i]=b[te]=b[ae]=b[l]=b[m]=b[X]=b[Pe]=b[pe]=b[Le]=b[Ye]=b[E]=b[S]=b[d]=b[w]=b[P]=b[V]=b[W]=b[Me]=b[x]=b[L]=b[H]=!0,b[u]=b[f]=b[G]=!1;var T=typeof an=="object"&&an&&an.Object===Object&&an,M=typeof self=="object"&&self&&self.Object===Object&&self,k=T||M||Function("return this")(),I=t&&!t.nodeType&&t,ne=I&&!0&&e&&!e.nodeType&&e,ue=ne&&ne.exports===I;function we(o,h){return o.set(h[0],h[1]),o}function Re(o,h){return o.add(h),o}function Qe(o,h){for(var y=-1,R=o?o.length:0;++y<R&&h(o[y],y,o)!==!1;);return o}function Un(o,h){for(var y=-1,R=h.length,re=o.length;++y<R;)o[re+y]=h[y];return o}function Kt(o,h,y,R){for(var re=-1,ce=o?o.length:0;++re<ce;)y=h(y,o[re],re,o);return y}function Ui(o,h){for(var y=-1,R=Array(o);++y<o;)R[y]=h(y);return R}function Fi(o,h){return o?.[h]}function Zr(o){var h=!1;if(o!=null&&typeof o.toString!="function")try{h=!!(o+"")}catch{}return h}function Xr(o){var h=-1,y=Array(o.size);return o.forEach(function(R,re){y[++h]=[re,R]}),y}function Fn(o,h){return function(y){return o(h(y))}}function Qr(o){var h=-1,y=Array(o.size);return o.forEach(function(R){y[++h]=R}),y}var ji=Array.prototype,Wi=Function.prototype,Zt=Object.prototype,jn=k["__core-js_shared__"],es=function(){var o=/[^.]+$/.exec(jn&&jn.keys&&jn.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),ts=Wi.toString,Je=Zt.hasOwnProperty,Xt=Zt.toString,Hi=RegExp("^"+ts.call(Je).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ns=ue?k.Buffer:void 0,rs=k.Symbol,ss=k.Uint8Array,$i=Fn(Object.getPrototypeOf,Object),Bi=Object.create,Vi=Zt.propertyIsEnumerable,Gi=ji.splice,as=Object.getOwnPropertySymbols,zi=ns?ns.isBuffer:void 0,qi=Fn(Object.keys,Object),Wn=ht(k,"DataView"),Rt=ht(k,"Map"),Hn=ht(k,"Promise"),$n=ht(k,"Set"),Bn=ht(k,"WeakMap"),At=ht(Object,"create"),Ji=nt(Wn),Ki=nt(Rt),Zi=nt(Hn),Xi=nt($n),Qi=nt(Bn),is=rs?rs.prototype:void 0,os=is?is.valueOf:void 0;function et(o){var h=-1,y=o?o.length:0;for(this.clear();++h<y;){var R=o[h];this.set(R[0],R[1])}}function eo(){this.__data__=At?At(null):{}}function to(o){return this.has(o)&&delete this.__data__[o]}function no(o){var h=this.__data__;if(At){var y=h[o];return y===r?void 0:y}return Je.call(h,o)?h[o]:void 0}function ro(o){var h=this.__data__;return At?h[o]!==void 0:Je.call(h,o)}function so(o,h){var y=this.__data__;return y[o]=At&&h===void 0?r:h,this}et.prototype.clear=eo,et.prototype.delete=to,et.prototype.get=no,et.prototype.has=ro,et.prototype.set=so;function Ue(o){var h=-1,y=o?o.length:0;for(this.clear();++h<y;){var R=o[h];this.set(R[0],R[1])}}function ao(){this.__data__=[]}function io(o){var h=this.__data__,y=Qt(h,o);if(y<0)return!1;var R=h.length-1;return y==R?h.pop():Gi.call(h,y,1),!0}function oo(o){var h=this.__data__,y=Qt(h,o);return y<0?void 0:h[y][1]}function lo(o){return Qt(this.__data__,o)>-1}function uo(o,h){var y=this.__data__,R=Qt(y,o);return R<0?y.push([o,h]):y[R][1]=h,this}Ue.prototype.clear=ao,Ue.prototype.delete=io,Ue.prototype.get=oo,Ue.prototype.has=lo,Ue.prototype.set=uo;function dt(o){var h=-1,y=o?o.length:0;for(this.clear();++h<y;){var R=o[h];this.set(R[0],R[1])}}function co(){this.__data__={hash:new et,map:new(Rt||Ue),string:new et}}function fo(o){return en(this,o).delete(o)}function ho(o){return en(this,o).get(o)}function mo(o){return en(this,o).has(o)}function po(o,h){return en(this,o).set(o,h),this}dt.prototype.clear=co,dt.prototype.delete=fo,dt.prototype.get=ho,dt.prototype.has=mo,dt.prototype.set=po;function ft(o){this.__data__=new Ue(o)}function go(){this.__data__=new Ue}function _o(o){return this.__data__.delete(o)}function yo(o){return this.__data__.get(o)}function wo(o){return this.__data__.has(o)}function So(o,h){var y=this.__data__;if(y instanceof Ue){var R=y.__data__;if(!Rt||R.length<n-1)return R.push([o,h]),this;y=this.__data__=new dt(R)}return y.set(o,h),this}ft.prototype.clear=go,ft.prototype.delete=_o,ft.prototype.get=yo,ft.prototype.has=wo,ft.prototype.set=So;function vo(o,h){var y=zn(o)||Vo(o)?Ui(o.length,String):[],R=y.length,re=!!R;for(var ce in o)Je.call(o,ce)&&!(re&&(ce=="length"||Wo(ce,R)))&&y.push(ce);return y}function ls(o,h,y){var R=o[h];(!(Je.call(o,h)&&fs(R,y))||y===void 0&&!(h in o))&&(o[h]=y)}function Qt(o,h){for(var y=o.length;y--;)if(fs(o[y][0],h))return y;return-1}function bo(o,h){return o&&us(h,qn(h),o)}function Vn(o,h,y,R,re,ce,Fe){var de;if(R&&(de=ce?R(o,re,ce,Fe):R(o)),de!==void 0)return de;if(!tn(o))return o;var ps=zn(o);if(ps){if(de=Uo(o),!h)return Po(o,de)}else{var mt=tt(o),gs=mt==f||mt==_;if(zo(o))return Mo(o,h);if(mt==d||mt==a||gs&&!ce){if(Zr(o))return ce?o:{};if(de=Fo(gs?{}:o),!h)return Lo(o,bo(de,o))}else{if(!b[mt])return ce?o:{};de=jo(o,mt,Vn,h)}}Fe||(Fe=new ft);var _s=Fe.get(o);if(_s)return _s;if(Fe.set(o,de),!ps)var ys=y?Yo(o):qn(o);return Qe(ys||o,function(Jn,nn){ys&&(nn=Jn,Jn=o[nn]),ls(de,nn,Vn(Jn,h,y,R,nn,o,Fe))}),de}function ko(o){return tn(o)?Bi(o):{}}function Oo(o,h,y){var R=h(o);return zn(o)?R:Un(R,y(o))}function Eo(o){return Xt.call(o)}function Do(o){if(!tn(o)||$o(o))return!1;var h=ms(o)||Zr(o)?Hi:K;return h.test(nt(o))}function To(o){if(!ds(o))return qi(o);var h=[];for(var y in Object(o))Je.call(o,y)&&y!="constructor"&&h.push(y);return h}function Mo(o,h){if(h)return o.slice();var y=new o.constructor(o.length);return o.copy(y),y}function Gn(o){var h=new o.constructor(o.byteLength);return new ss(h).set(new ss(o)),h}function Ro(o,h){var y=h?Gn(o.buffer):o.buffer;return new o.constructor(y,o.byteOffset,o.byteLength)}function Ao(o,h,y){var R=h?y(Xr(o),!0):Xr(o);return Kt(R,we,new o.constructor)}function xo(o){var h=new o.constructor(o.source,le.exec(o));return h.lastIndex=o.lastIndex,h}function Io(o,h,y){var R=h?y(Qr(o),!0):Qr(o);return Kt(R,Re,new o.constructor)}function No(o){return os?Object(os.call(o)):{}}function Co(o,h){var y=h?Gn(o.buffer):o.buffer;return new o.constructor(y,o.byteOffset,o.length)}function Po(o,h){var y=-1,R=o.length;for(h||(h=Array(R));++y<R;)h[y]=o[y];return h}function us(o,h,y,R){y||(y={});for(var re=-1,ce=h.length;++re<ce;){var Fe=h[re],de=void 0;ls(y,Fe,de===void 0?o[Fe]:de)}return y}function Lo(o,h){return us(o,cs(o),h)}function Yo(o){return Oo(o,qn,cs)}function en(o,h){var y=o.__data__;return Ho(h)?y[typeof h=="string"?"string":"hash"]:y.map}function ht(o,h){var y=Fi(o,h);return Do(y)?y:void 0}var cs=as?Fn(as,Object):Ko,tt=Eo;(Wn&&tt(new Wn(new ArrayBuffer(1)))!=ae||Rt&&tt(new Rt)!=E||Hn&&tt(Hn.resolve())!=g||$n&&tt(new $n)!=P||Bn&&tt(new Bn)!=G)&&(tt=function(o){var h=Xt.call(o),y=h==d?o.constructor:void 0,R=y?nt(y):void 0;if(R)switch(R){case Ji:return ae;case Ki:return E;case Zi:return g;case Xi:return P;case Qi:return G}return h});function Uo(o){var h=o.length,y=o.constructor(h);return h&&typeof o[0]=="string"&&Je.call(o,"index")&&(y.index=o.index,y.input=o.input),y}function Fo(o){return typeof o.constructor=="function"&&!ds(o)?ko($i(o)):{}}function jo(o,h,y,R){var re=o.constructor;switch(h){case te:return Gn(o);case l:case m:return new re(+o);case ae:return Ro(o,R);case X:case Pe:case pe:case Le:case Ye:case Me:case x:case L:case H:return Co(o,R);case E:return Ao(o,R,y);case S:case V:return new re(o);case w:return xo(o);case P:return Io(o,R,y);case W:return No(o)}}function Wo(o,h){return h=h??s,!!h&&(typeof o=="number"||ge.test(o))&&o>-1&&o%1==0&&o<h}function Ho(o){var h=typeof o;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?o!=="__proto__":o===null}function $o(o){return!!es&&es in o}function ds(o){var h=o&&o.constructor,y=typeof h=="function"&&h.prototype||Zt;return o===y}function nt(o){if(o!=null){try{return ts.call(o)}catch{}try{return o+""}catch{}}return""}function Bo(o){return Vn(o,!0,!0)}function fs(o,h){return o===h||o!==o&&h!==h}function Vo(o){return Go(o)&&Je.call(o,"callee")&&(!Vi.call(o,"callee")||Xt.call(o)==a)}var zn=Array.isArray;function hs(o){return o!=null&&qo(o.length)&&!ms(o)}function Go(o){return Jo(o)&&hs(o)}var zo=zi||Zo;function ms(o){var h=tn(o)?Xt.call(o):"";return h==f||h==_}function qo(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=s}function tn(o){var h=typeof o;return!!o&&(h=="object"||h=="function")}function Jo(o){return!!o&&typeof o=="object"}function qn(o){return hs(o)?vo(o):To(o)}function Ko(){return[]}function Zo(){return!1}e.exports=Bo}(Pt,Pt.exports)),Pt.exports}var df=cf();const yt=uf(df);function ri(e,t){return function(){return e.apply(t,arguments)}}const{toString:ff}=Object.prototype,{getPrototypeOf:Br}=Object,{iterator:Nn,toStringTag:si}=Symbol,Cn=(e=>t=>{const n=ff.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Te=e=>(e=e.toLowerCase(),t=>Cn(t)===e),Pn=e=>t=>typeof t===e,{isArray:Dt}=Array,bt=Pn("undefined");function Gt(e){return e!==null&&!bt(e)&&e.constructor!==null&&!bt(e.constructor)&&he(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ai=Te("ArrayBuffer");function hf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ai(e.buffer),t}const mf=Pn("string"),he=Pn("function"),ii=Pn("number"),zt=e=>e!==null&&typeof e=="object",pf=e=>e===!0||e===!1,dn=e=>{if(Cn(e)!=="object")return!1;const t=Br(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(si in e)&&!(Nn in e)},gf=e=>{if(!zt(e)||Gt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},_f=Te("Date"),yf=Te("File"),wf=Te("Blob"),Sf=Te("FileList"),vf=e=>zt(e)&&he(e.pipe),bf=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||he(e.append)&&((t=Cn(e))==="formdata"||t==="object"&&he(e.toString)&&e.toString()==="[object FormData]"))},kf=Te("URLSearchParams"),[Of,Ef,Df,Tf]=["ReadableStream","Request","Response","Headers"].map(Te),Mf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qt(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Dt(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(Gt(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(r=0;r<i;r++)l=a[r],t.call(null,e[l],l,e)}}function oi(e,t){if(Gt(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const it=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,li=e=>!bt(e)&&e!==it;function pr(){const{caseless:e,skipUndefined:t}=li(this)&&this||{},n={},r=(s,a)=>{const i=e&&oi(n,a)||a;dn(n[i])&&dn(s)?n[i]=pr(n[i],s):dn(s)?n[i]=pr({},s):Dt(s)?n[i]=s.slice():(!t||!bt(s))&&(n[i]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&qt(arguments[s],r);return n}const Rf=(e,t,n,{allOwnKeys:r}={})=>(qt(t,(s,a)=>{n&&he(s)?e[a]=ri(s,n):e[a]=s},{allOwnKeys:r}),e),Af=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xf=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},If=(e,t,n,r)=>{let s,a,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)i=s[a],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Br(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nf=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Cf=e=>{if(!e)return null;if(Dt(e))return e;let t=e.length;if(!ii(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Pf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Br(Uint8Array)),Lf=(e,t)=>{const r=(e&&e[Nn]).call(e);let s;for(;(s=r.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},Yf=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Uf=Te("HTMLFormElement"),Ff=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Gs=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),jf=Te("RegExp"),ui=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};qt(n,(s,a)=>{let i;(i=t(s,a,e))!==!1&&(r[a]=i||s)}),Object.defineProperties(e,r)},Wf=e=>{ui(e,(t,n)=>{if(he(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(he(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Hf=(e,t)=>{const n={},r=s=>{s.forEach(a=>{n[a]=!0})};return Dt(e)?r(e):r(String(e).split(t)),n},$f=()=>{},Bf=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Vf(e){return!!(e&&he(e.append)&&e[si]==="FormData"&&e[Nn])}const Gf=e=>{const t=new Array(10),n=(r,s)=>{if(zt(r)){if(t.indexOf(r)>=0)return;if(Gt(r))return r;if(!("toJSON"in r)){t[s]=r;const a=Dt(r)?[]:{};return qt(r,(i,l)=>{const m=n(i,s+1);!bt(m)&&(a[l]=m)}),t[s]=void 0,a}}return r};return n(e,0)},zf=Te("AsyncFunction"),qf=e=>e&&(zt(e)||he(e))&&he(e.then)&&he(e.catch),ci=((e,t)=>e?setImmediate:t?((n,r)=>(it.addEventListener("message",({source:s,data:a})=>{s===it&&a===n&&r.length&&r.shift()()},!1),s=>{r.push(s),it.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",he(it.postMessage)),Jf=typeof queueMicrotask<"u"?queueMicrotask.bind(it):typeof process<"u"&&process.nextTick||ci,Kf=e=>e!=null&&he(e[Nn]),p={isArray:Dt,isArrayBuffer:ai,isBuffer:Gt,isFormData:bf,isArrayBufferView:hf,isString:mf,isNumber:ii,isBoolean:pf,isObject:zt,isPlainObject:dn,isEmptyObject:gf,isReadableStream:Of,isRequest:Ef,isResponse:Df,isHeaders:Tf,isUndefined:bt,isDate:_f,isFile:yf,isBlob:wf,isRegExp:jf,isFunction:he,isStream:vf,isURLSearchParams:kf,isTypedArray:Pf,isFileList:Sf,forEach:qt,merge:pr,extend:Rf,trim:Mf,stripBOM:Af,inherits:xf,toFlatObject:If,kindOf:Cn,kindOfTest:Te,endsWith:Nf,toArray:Cf,forEachEntry:Lf,matchAll:Yf,isHTMLForm:Uf,hasOwnProperty:Gs,hasOwnProp:Gs,reduceDescriptors:ui,freezeMethods:Wf,toObjectSet:Hf,toCamelCase:Ff,noop:$f,toFiniteNumber:Bf,findKey:oi,global:it,isContextDefined:li,isSpecCompliantForm:Vf,toJSONObject:Gf,isAsyncFn:zf,isThenable:qf,setImmediate:ci,asap:Jf,isIterable:Kf};function N(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}p.inherits(N,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:p.toJSONObject(this.config),code:this.code,status:this.status}}});const di=N.prototype,fi={};["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=>{fi[e]={value:e}});Object.defineProperties(N,fi);Object.defineProperty(di,"isAxiosError",{value:!0});N.from=(e,t,n,r,s,a)=>{const i=Object.create(di);p.toFlatObject(e,i,function(f){return f!==Error.prototype},u=>u!=="isAxiosError");const l=e&&e.message?e.message:"Error",m=t==null&&e?e.code:t;return N.call(i,l,m,n,r,s),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};const Zf=null;function gr(e){return p.isPlainObject(e)||p.isArray(e)}function hi(e){return p.endsWith(e,"[]")?e.slice(0,-2):e}function zs(e,t,n){return e?e.concat(t).map(function(s,a){return s=hi(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function Xf(e){return p.isArray(e)&&!e.some(gr)}const Qf=p.toFlatObject(p,{},null,function(t){return/^is[A-Z]/.test(t)});function Ln(e,t,n){if(!p.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=p.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,w){return!p.isUndefined(w[g])});const r=n.metaTokens,s=n.visitor||f,a=n.dots,i=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&p.isSpecCompliantForm(t);if(!p.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(p.isDate(d))return d.toISOString();if(p.isBoolean(d))return d.toString();if(!m&&p.isBlob(d))throw new N("Blob is not supported. Use a Buffer instead.");return p.isArrayBuffer(d)||p.isTypedArray(d)?m&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,g,w){let P=d;if(d&&!w&&typeof d=="object"){if(p.endsWith(g,"{}"))g=r?g:g.slice(0,-2),d=JSON.stringify(d);else if(p.isArray(d)&&Xf(d)||(p.isFileList(d)||p.endsWith(g,"[]"))&&(P=p.toArray(d)))return g=hi(g),P.forEach(function(W,G){!(p.isUndefined(W)||W===null)&&t.append(i===!0?zs([g],G,a):i===null?g:g+"[]",u(W))}),!1}return gr(d)?!0:(t.append(zs(w,g,a),u(d)),!1)}const _=[],E=Object.assign(Qf,{defaultVisitor:f,convertValue:u,isVisitable:gr});function S(d,g){if(!p.isUndefined(d)){if(_.indexOf(d)!==-1)throw Error("Circular reference detected in "+g.join("."));_.push(d),p.forEach(d,function(P,V){(!(p.isUndefined(P)||P===null)&&s.call(t,P,p.isString(V)?V.trim():V,g,E))===!0&&S(P,g?g.concat(V):[V])}),_.pop()}}if(!p.isObject(e))throw new TypeError("data must be an object");return S(e),t}function qs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vr(e,t){this._pairs=[],e&&Ln(e,this,t)}const mi=Vr.prototype;mi.append=function(t,n){this._pairs.push([t,n])};mi.toString=function(t){const n=t?function(r){return t.call(this,r,qs)}:qs;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function eh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function pi(e,t,n){if(!t)return e;const r=n&&n.encode||eh;p.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(t,n):a=p.isURLSearchParams(t)?t.toString():new Vr(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Js{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){p.forEach(this.handlers,function(r){r!==null&&t(r)})}}const gi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},th=typeof URLSearchParams<"u"?URLSearchParams:Vr,nh=typeof FormData<"u"?FormData:null,rh=typeof Blob<"u"?Blob:null,sh={isBrowser:!0,classes:{URLSearchParams:th,FormData:nh,Blob:rh},protocols:["http","https","file","blob","url","data"]},Gr=typeof window<"u"&&typeof document<"u",_r=typeof navigator=="object"&&navigator||void 0,ah=Gr&&(!_r||["ReactNative","NativeScript","NS"].indexOf(_r.product)<0),ih=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",oh=Gr&&window.location.href||"http://localhost",lh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gr,hasStandardBrowserEnv:ah,hasStandardBrowserWebWorkerEnv:ih,navigator:_r,origin:oh},Symbol.toStringTag,{value:"Module"})),ie={...lh,...sh};function uh(e,t){return Ln(e,new ie.classes.URLSearchParams,{visitor:function(n,r,s,a){return ie.isNode&&p.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function ch(e){return p.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dh(e){const t={},n=Object.keys(e);let r;const s=n.length;let a;for(r=0;r<s;r++)a=n[r],t[a]=e[a];return t}function _i(e){function t(n,r,s,a){let i=n[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),m=a>=n.length;return i=!i&&p.isArray(s)?s.length:i,m?(p.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!p.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],a)&&p.isArray(s[i])&&(s[i]=dh(s[i])),!l)}if(p.isFormData(e)&&p.isFunction(e.entries)){const n={};return p.forEachEntry(e,(r,s)=>{t(ch(r),s,n,0)}),n}return null}function fh(e,t,n){if(p.isString(e))try{return(t||JSON.parse)(e),p.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Jt={transitional:gi,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,a=p.isObject(t);if(a&&p.isHTMLForm(t)&&(t=new FormData(t)),p.isFormData(t))return s?JSON.stringify(_i(t)):t;if(p.isArrayBuffer(t)||p.isBuffer(t)||p.isStream(t)||p.isFile(t)||p.isBlob(t)||p.isReadableStream(t))return t;if(p.isArrayBufferView(t))return t.buffer;if(p.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return uh(t,this.formSerializer).toString();if((l=p.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Ln(l?{"files[]":t}:t,m&&new m,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),fh(t)):t}],transformResponse:[function(t){const n=this.transitional||Jt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(p.isResponse(t)||p.isReadableStream(t))return t;if(t&&p.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(l){if(i)throw l.name==="SyntaxError"?N.from(l,N.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:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch"],e=>{Jt.headers[e]={}});const hh=p.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"]),mh=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
14
|
-
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&hh[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ks=Symbol("internals");function Nt(e){return e&&String(e).trim().toLowerCase()}function fn(e){return e===!1||e==null?e:p.isArray(e)?e.map(fn):String(e)}function ph(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const gh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rr(e,t,n,r,s){if(p.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!p.isString(t)){if(p.isString(r))return t.indexOf(r)!==-1;if(p.isRegExp(r))return r.test(t)}}function _h(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function yh(e,t){const n=p.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,a,i){return this[r].call(this,t,s,a,i)},configurable:!0})})}let me=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function a(l,m,u){const f=Nt(m);if(!f)throw new Error("header name must be a non-empty string");const _=p.findKey(s,f);(!_||s[_]===void 0||u===!0||u===void 0&&s[_]!==!1)&&(s[_||m]=fn(l))}const i=(l,m)=>p.forEach(l,(u,f)=>a(u,f,m));if(p.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(p.isString(t)&&(t=t.trim())&&!gh(t))i(mh(t),n);else if(p.isObject(t)&&p.isIterable(t)){let l={},m,u;for(const f of t){if(!p.isArray(f))throw TypeError("Object iterator must return a key-value pair");l[u=f[0]]=(m=l[u])?p.isArray(m)?[...m,f[1]]:[m,f[1]]:f[1]}i(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Nt(t),t){const r=p.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return ph(s);if(p.isFunction(n))return n.call(this,s,r);if(p.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Nt(t),t){const r=p.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||rr(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function a(i){if(i=Nt(i),i){const l=p.findKey(r,i);l&&(!n||rr(r,r[l],l,n))&&(delete r[l],s=!0)}}return p.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const a=n[r];(!t||rr(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,r={};return p.forEach(this,(s,a)=>{const i=p.findKey(r,a);if(i){n[i]=fn(s),delete n[a];return}const l=t?_h(a):String(a).trim();l!==a&&delete n[a],n[l]=fn(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return p.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&p.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
15
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ks]=this[Ks]={accessors:{}}).accessors,s=this.prototype;function a(i){const l=Nt(i);r[l]||(yh(s,i),r[l]=!0)}return p.isArray(t)?t.forEach(a):a(t),this}};me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);p.reduceDescriptors(me.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});p.freezeMethods(me);function sr(e,t){const n=this||Jt,r=t||n,s=me.from(r.headers);let a=r.data;return p.forEach(e,function(l){a=l.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function yi(e){return!!(e&&e.__CANCEL__)}function Tt(e,t,n){N.call(this,e??"canceled",N.ERR_CANCELED,t,n),this.name="CanceledError"}p.inherits(Tt,N,{__CANCEL__:!0});function wi(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new N("Request failed with status code "+n.status,[N.ERR_BAD_REQUEST,N.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function wh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Sh(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,a=0,i;return t=t!==void 0?t:1e3,function(m){const u=Date.now(),f=r[a];i||(i=u),n[s]=m,r[s]=u;let _=a,E=0;for(;_!==s;)E+=n[_++],_=_%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),u-i<t)return;const S=f&&u-f;return S?Math.round(E*1e3/S):void 0}}function vh(e,t){let n=0,r=1e3/t,s,a;const i=(u,f=Date.now())=>{n=f,s=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const f=Date.now(),_=f-n;_>=r?i(u,f):(s=u,a||(a=setTimeout(()=>{a=null,i(s)},r-_)))},()=>s&&i(s)]}const vn=(e,t,n=3)=>{let r=0;const s=Sh(50,250);return vh(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,m=i-r,u=s(m),f=i<=l;r=i;const _={loaded:i,total:l,progress:l?i/l:void 0,bytes:m,rate:u||void 0,estimated:u&&l&&f?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(_)},n)},Zs=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Xs=e=>(...t)=>p.asap(()=>e(...t)),bh=ie.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ie.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ie.origin),ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent)):()=>!0,kh=ie.hasStandardBrowserEnv?{write(e,t,n,r,s,a,i){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];p.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),p.isString(r)&&l.push(`path=${r}`),p.isString(s)&&l.push(`domain=${s}`),a===!0&&l.push("secure"),p.isString(i)&&l.push(`SameSite=${i}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Oh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Eh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Si(e,t,n){let r=!Oh(t);return e&&(r||n==!1)?Eh(e,t):t}const Qs=e=>e instanceof me?{...e}:e;function ut(e,t){t=t||{};const n={};function r(u,f,_,E){return p.isPlainObject(u)&&p.isPlainObject(f)?p.merge.call({caseless:E},u,f):p.isPlainObject(f)?p.merge({},f):p.isArray(f)?f.slice():f}function s(u,f,_,E){if(p.isUndefined(f)){if(!p.isUndefined(u))return r(void 0,u,_,E)}else return r(u,f,_,E)}function a(u,f){if(!p.isUndefined(f))return r(void 0,f)}function i(u,f){if(p.isUndefined(f)){if(!p.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function l(u,f,_){if(_ in t)return r(u,f);if(_ in e)return r(void 0,u)}const m={url:a,method:a,data:a,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:(u,f,_)=>s(Qs(u),Qs(f),_,!0)};return p.forEach(Object.keys({...e,...t}),function(f){const _=m[f]||s,E=_(e[f],t[f],f);p.isUndefined(E)&&_!==l||(n[f]=E)}),n}const vi=e=>{const t=ut({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:a,headers:i,auth:l}=t;if(t.headers=i=me.from(i),t.url=pi(Si(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),p.isFormData(n)){if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(p.isFunction(n.getHeaders)){const m=n.getHeaders(),u=["content-type","content-length"];Object.entries(m).forEach(([f,_])=>{u.includes(f.toLowerCase())&&i.set(f,_)})}}if(ie.hasStandardBrowserEnv&&(r&&p.isFunction(r)&&(r=r(t)),r||r!==!1&&bh(t.url))){const m=s&&a&&kh.read(a);m&&i.set(s,m)}return t},Dh=typeof XMLHttpRequest<"u",Th=Dh&&function(e){return new Promise(function(n,r){const s=vi(e);let a=s.data;const i=me.from(s.headers).normalize();let{responseType:l,onUploadProgress:m,onDownloadProgress:u}=s,f,_,E,S,d;function g(){S&&S(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}let w=new XMLHttpRequest;w.open(s.method.toUpperCase(),s.url,!0),w.timeout=s.timeout;function P(){if(!w)return;const W=me.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),te={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:W,config:e,request:w};wi(function(X){n(X),g()},function(X){r(X),g()},te),w=null}"onloadend"in w?w.onloadend=P:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(P)},w.onabort=function(){w&&(r(new N("Request aborted",N.ECONNABORTED,e,w)),w=null)},w.onerror=function(G){const te=G&&G.message?G.message:"Network Error",ae=new N(te,N.ERR_NETWORK,e,w);ae.event=G||null,r(ae),w=null},w.ontimeout=function(){let G=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const te=s.transitional||gi;s.timeoutErrorMessage&&(G=s.timeoutErrorMessage),r(new N(G,te.clarifyTimeoutError?N.ETIMEDOUT:N.ECONNABORTED,e,w)),w=null},a===void 0&&i.setContentType(null),"setRequestHeader"in w&&p.forEach(i.toJSON(),function(G,te){w.setRequestHeader(te,G)}),p.isUndefined(s.withCredentials)||(w.withCredentials=!!s.withCredentials),l&&l!=="json"&&(w.responseType=s.responseType),u&&([E,d]=vn(u,!0),w.addEventListener("progress",E)),m&&w.upload&&([_,S]=vn(m),w.upload.addEventListener("progress",_),w.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(f=W=>{w&&(r(!W||W.type?new Tt(null,e,w):W),w.abort(),w=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const V=wh(s.url);if(V&&ie.protocols.indexOf(V)===-1){r(new N("Unsupported protocol "+V+":",N.ERR_BAD_REQUEST,e));return}w.send(a||null)})},Mh=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const a=function(u){if(!s){s=!0,l();const f=u instanceof Error?u:this.reason;r.abort(f instanceof N?f:new Tt(f instanceof Error?f.message:f))}};let i=t&&setTimeout(()=>{i=null,a(new N(`timeout ${t} of ms exceeded`,N.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:m}=r;return m.unsubscribe=()=>p.asap(l),m}},Rh=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Ah=async function*(e,t){for await(const n of xh(e))yield*Rh(n,t)},xh=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ea=(e,t,n,r)=>{const s=Ah(e,t);let a=0,i,l=m=>{i||(i=!0,r&&r(m))};return new ReadableStream({async pull(m){try{const{done:u,value:f}=await s.next();if(u){l(),m.close();return}let _=f.byteLength;if(n){let E=a+=_;n(E)}m.enqueue(new Uint8Array(f))}catch(u){throw l(u),u}},cancel(m){return l(m),s.return()}},{highWaterMark:2})},ta=64*1024,{isFunction:on}=p,Ih=(({Request:e,Response:t})=>({Request:e,Response:t}))(p.global),{ReadableStream:na,TextEncoder:ra}=p.global,sa=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nh=e=>{e=p.merge.call({skipUndefined:!0},Ih,e);const{fetch:t,Request:n,Response:r}=e,s=t?on(t):typeof fetch=="function",a=on(n),i=on(r);if(!s)return!1;const l=s&&on(na),m=s&&(typeof ra=="function"?(d=>g=>d.encode(g))(new ra):async d=>new Uint8Array(await new n(d).arrayBuffer())),u=a&&l&&sa(()=>{let d=!1;const g=new n(ie.origin,{body:new na,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!g}),f=i&&l&&sa(()=>p.isReadableStream(new r("").body)),_={stream:f&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!_[d]&&(_[d]=(g,w)=>{let P=g&&g[d];if(P)return P.call(g);throw new N(`Response type '${d}' is not supported`,N.ERR_NOT_SUPPORT,w)})});const E=async d=>{if(d==null)return 0;if(p.isBlob(d))return d.size;if(p.isSpecCompliantForm(d))return(await new n(ie.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(p.isArrayBufferView(d)||p.isArrayBuffer(d))return d.byteLength;if(p.isURLSearchParams(d)&&(d=d+""),p.isString(d))return(await m(d)).byteLength},S=async(d,g)=>{const w=p.toFiniteNumber(d.getContentLength());return w??E(g)};return async d=>{let{url:g,method:w,data:P,signal:V,cancelToken:W,timeout:G,onDownloadProgress:te,onUploadProgress:ae,responseType:X,headers:Pe,withCredentials:pe="same-origin",fetchOptions:Le}=vi(d),Ye=t||fetch;X=X?(X+"").toLowerCase():"text";let Me=Mh([V,W&&W.toAbortSignal()],G),x=null;const L=Me&&Me.unsubscribe&&(()=>{Me.unsubscribe()});let H;try{if(ae&&u&&w!=="get"&&w!=="head"&&(H=await S(Pe,P))!==0){let T=new n(g,{method:"POST",body:P,duplex:"half"}),M;if(p.isFormData(P)&&(M=T.headers.get("content-type"))&&Pe.setContentType(M),T.body){const[k,I]=Zs(H,vn(Xs(ae)));P=ea(T.body,ta,k,I)}}p.isString(pe)||(pe=pe?"include":"omit");const B=a&&"credentials"in n.prototype,le={...Le,signal:Me,method:w.toUpperCase(),headers:Pe.normalize().toJSON(),body:P,duplex:"half",credentials:B?pe:void 0};x=a&&new n(g,le);let K=await(a?Ye(x,Le):Ye(g,le));const ge=f&&(X==="stream"||X==="response");if(f&&(te||ge&&L)){const T={};["status","statusText","headers"].forEach(ne=>{T[ne]=K[ne]});const M=p.toFiniteNumber(K.headers.get("content-length")),[k,I]=te&&Zs(M,vn(Xs(te),!0))||[];K=new r(ea(K.body,ta,k,()=>{I&&I(),L&&L()}),T)}X=X||"text";let b=await _[p.findKey(_,X)||"text"](K,d);return!ge&&L&&L(),await new Promise((T,M)=>{wi(T,M,{data:b,headers:me.from(K.headers),status:K.status,statusText:K.statusText,config:d,request:x})})}catch(B){throw L&&L(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new N("Network Error",N.ERR_NETWORK,d,x),{cause:B.cause||B}):N.from(B,B&&B.code,d,x)}}},Ch=new Map,bi=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,a=[r,s,n];let i=a.length,l=i,m,u,f=Ch;for(;l--;)m=a[l],u=f.get(m),u===void 0&&f.set(m,u=l?new Map:Nh(t)),f=u;return u};bi();const zr={http:Zf,xhr:Th,fetch:{get:bi}};p.forEach(zr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const aa=e=>`- ${e}`,Ph=e=>p.isFunction(e)||e===null||e===!1;function Lh(e,t){e=p.isArray(e)?e:[e];const{length:n}=e;let r,s;const a={};for(let i=0;i<n;i++){r=e[i];let l;if(s=r,!Ph(r)&&(s=zr[(l=String(r)).toLowerCase()],s===void 0))throw new N(`Unknown adapter '${l}'`);if(s&&(p.isFunction(s)||(s=s.get(t))))break;a[l||"#"+i]=s}if(!s){const i=Object.entries(a).map(([m,u])=>`adapter ${m} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?i.length>1?`since :
|
|
16
|
-
`+i.map(aa).join(`
|
|
17
|
-
`):" "+aa(i[0]):"as no adapter specified";throw new N("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return s}const ki={getAdapter:Lh,adapters:zr};function ar(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tt(null,e)}function ia(e){return ar(e),e.headers=me.from(e.headers),e.data=sr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ki.getAdapter(e.adapter||Jt.adapter,e)(e).then(function(r){return ar(e),r.data=sr.call(e,e.transformResponse,r),r.headers=me.from(r.headers),r},function(r){return yi(r)||(ar(e),r&&r.response&&(r.response.data=sr.call(e,e.transformResponse,r.response),r.response.headers=me.from(r.response.headers))),Promise.reject(r)})}const Oi="1.13.2",Yn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const oa={};Yn.transitional=function(t,n,r){function s(a,i){return"[Axios v"+Oi+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,l)=>{if(t===!1)throw new N(s(i," has been removed"+(n?" in "+n:"")),N.ERR_DEPRECATED);return n&&!oa[i]&&(oa[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,l):!0}};Yn.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Yh(e,t,n){if(typeof e!="object")throw new N("options must be an object",N.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const a=r[s],i=t[a];if(i){const l=e[a],m=l===void 0||i(l,a,e);if(m!==!0)throw new N("option "+a+" must be "+m,N.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new N("Unknown option "+a,N.ERR_BAD_OPTION)}}const hn={assertOptions:Yh,validators:Yn},Ae=hn.validators;let lt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Js,response:new Js}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
18
|
-
`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ut(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:a}=n;r!==void 0&&hn.assertOptions(r,{silentJSONParsing:Ae.transitional(Ae.boolean),forcedJSONParsing:Ae.transitional(Ae.boolean),clarifyTimeoutError:Ae.transitional(Ae.boolean)},!1),s!=null&&(p.isFunction(s)?n.paramsSerializer={serialize:s}:hn.assertOptions(s,{encode:Ae.function,serialize:Ae.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),hn.assertOptions(n,{baseUrl:Ae.spelling("baseURL"),withXsrfToken:Ae.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&p.merge(a.common,a[n.method]);a&&p.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),n.headers=me.concat(i,a);const l=[];let m=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(m=m&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let f,_=0,E;if(!m){const d=[ia.bind(this),void 0];for(d.unshift(...l),d.push(...u),E=d.length,f=Promise.resolve(n);_<E;)f=f.then(d[_++],d[_++]);return f}E=l.length;let S=n;for(;_<E;){const d=l[_++],g=l[_++];try{S=d(S)}catch(w){g.call(this,w);break}}try{f=ia.call(this,S)}catch(d){return Promise.reject(d)}for(_=0,E=u.length;_<E;)f=f.then(u[_++],u[_++]);return f}getUri(t){t=ut(this.defaults,t);const n=Si(t.baseURL,t.url,t.allowAbsoluteUrls);return pi(n,t.params,t.paramsSerializer)}};p.forEach(["delete","get","head","options"],function(t){lt.prototype[t]=function(n,r){return this.request(ut(r||{},{method:t,url:n,data:(r||{}).data}))}});p.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,l){return this.request(ut(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}lt.prototype[t]=n(),lt.prototype[t+"Form"]=n(!0)});let Uh=class Ei{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(s=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](s);r._listeners=null}),this.promise.then=s=>{let a;const i=new Promise(l=>{r.subscribe(l),a=l}).then(s);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,l){r.reason||(r.reason=new Tt(a,i,l),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ei(function(s){t=s}),cancel:t}}};function Fh(e){return function(n){return e.apply(null,n)}}function jh(e){return p.isObject(e)&&e.isAxiosError===!0}const yr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yr).forEach(([e,t])=>{yr[t]=e});function Di(e){const t=new lt(e),n=ri(lt.prototype.request,t);return p.extend(n,lt.prototype,t,{allOwnKeys:!0}),p.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Di(ut(e,s))},n}const Z=Di(Jt);Z.Axios=lt;Z.CanceledError=Tt;Z.CancelToken=Uh;Z.isCancel=yi;Z.VERSION=Oi;Z.toFormData=Ln;Z.AxiosError=N;Z.Cancel=Z.CanceledError;Z.all=function(t){return Promise.all(t)};Z.spread=Fh;Z.isAxiosError=jh;Z.mergeConfig=ut;Z.AxiosHeaders=me;Z.formToJSON=e=>_i(p.isHTMLForm(e)?new FormData(e):e);Z.getAdapter=ki.getAdapter;Z.HttpStatusCode=yr;Z.default=Z;const{Axios:mm,AxiosError:pm,CanceledError:gm,isCancel:_m,CancelToken:ym,VERSION:wm,all:Sm,Cancel:vm,isAxiosError:bm,spread:km,toFormData:Om,AxiosHeaders:Em,HttpStatusCode:Dm,formToJSON:Tm,getAdapter:Mm,mergeConfig:Rm}=Z,Ti=Z.create({withCredentials:!0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"});Ti.interceptors.request.use(e=>{const t=document.cookie.split("; ").find(n=>n.startsWith("XSRF-TOKEN="))?.split("=")[1];return t&&(e.headers["X-XSRF-TOKEN"]=decodeURIComponent(t)),e});const qr=()=>{const e=c.inject(Sr);if(!e)throw new Error("[@creopse/vue] Plugin not installed");const t=rl(e.appUrl||al());return{...e,apiBaseUrl:t,apiUrl:`${t}/api`}},Mt=()=>{const{apiUrl:e,apiBaseUrl:t,debug:n}=qr(),r=f=>{n&&(f.response?(console.log("data:",f.response.data),console.log("status:",f.response.status),console.log("headers:",f.response.headers)):f.request?console.log("request:",f.request):console.log("error:",f.message),console.log("config:",f.config))},s=async(f,_)=>{let E=!1,S=null,d=null;try{S=await Ti.request({method:f.method||"get",params:f.params||{},data:f.data||{},url:f.url||"/",baseURL:f.useApiBaseUrl?t:e,headers:f.headers,...f.responseType&&{responseType:f.responseType}}),E=!0}catch(g){d=g,E=!1,g.response?.status==401?_?.():g.response?.status==419?console.error("CSRF token mismatch"):r(g)}return{success:E,failure:!E,result:S?S.data:null,error:d}};return{request:s,getItemRequest:async f=>await s({url:`/${f.routeBase}/${f.id}`}),postItemRequest:async f=>await s({url:`/${f.routeBase}`,method:"post",data:f.data}),putItemRequest:async f=>await s({url:`/${f.routeBase}/${f.id}`,method:"put",data:f.data}),deleteItemRequest:async f=>await s({url:`/${f.routeBase}/${f.id}`,method:"delete"}),getAllItemsRequest:async f=>await s({url:`/${f.routeBase}`}),handleError:r}},ir=new WeakMap,Wh=(...e)=>{var t;const n=e[0],r=(t=c.getCurrentInstance())===null||t===void 0?void 0:t.proxy,s=r??c.getCurrentScope();if(s==null&&!c.hasInjectionContext())throw new Error("injectLocal must be called in setup");return s&&ir.has(s)&&n in ir.get(s)?ir.get(s)[n]:c.inject(...e)},Hh=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $h=Object.prototype.toString,Bh=e=>$h.call(e)==="[object Object]";function la(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function or(e){return Array.isArray(e)?e:[e]}function Vh(e,t,n){return c.watch(e,t,{...n,immediate:!0})}const Mi=Hh?window:void 0;function Gh(e){var t;const n=c.toValue(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function zh(...e){const t=(r,s,a,i)=>(r.addEventListener(s,a,i),()=>r.removeEventListener(s,a,i)),n=c.computed(()=>{const r=or(c.toValue(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0});return Vh(()=>{var r,s;return[(r=(s=n.value)===null||s===void 0?void 0:s.map(a=>Gh(a)))!==null&&r!==void 0?r:[Mi].filter(a=>a!=null),or(c.toValue(n.value?e[1]:e[0])),or(c.unref(n.value?e[2]:e[1])),c.toValue(n.value?e[3]:e[2])]},([r,s,a,i],l,m)=>{if(!r?.length||!s?.length||!a?.length)return;const u=Bh(i)?{...i}:i,f=r.flatMap(_=>s.flatMap(E=>a.map(S=>t(_,E,S,u))));m(()=>{f.forEach(_=>_())})},{flush:"post"})}function qh(){const e=c.shallowRef(!1),t=c.getCurrentInstance();return t&&c.onMounted(()=>{e.value=!0},t),e}function Jh(e){const t=qh();return c.computed(()=>(t.value,!!e()))}const Kh=Symbol("vueuse-ssr-width");function Zh(){const e=c.hasInjectionContext()?Wh(Kh,null):null;return typeof e=="number"?e:void 0}function Ct(e,t={}){const{window:n=Mi,ssrWidth:r=Zh()}=t,s=Jh(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),a=c.shallowRef(typeof r=="number"),i=c.shallowRef(),l=c.shallowRef(!1),m=u=>{l.value=u.matches};return c.watchEffect(()=>{if(a.value){a.value=!s.value,l.value=c.toValue(e).split(",").some(u=>{const f=u.includes("not all"),_=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),E=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let S=!!(_||E);return _&&S&&(S=r>=la(_[1])),E&&S&&(S=r<=la(E[1])),f?!S:S});return}s.value&&(i.value=n.matchMedia(c.toValue(e)),l.value=i.value.matches)}),zh(i,"change",m,{passive:!0}),c.computed(()=>l.value)}const Wt=()=>{const e=c.inject(wr);return e?e.getState().props:(console.warn("[@creopse/vue] Using native Inertia props - live preview disabled"),usePage().props)},Jr=()=>{const e=Wt(),t=ca.usePage(),n=c.inject(vr),r=c.inject(Sr),{request:s}=Mt(),{apiBaseUrl:a,langKey:i}=qr(),l=c.computed(()=>t.url),m=x=>Zn(x)?x:`${a}/${sl(x)}`,u=x=>x?Zn(x)?x:`${a}/storage/${x}`:"",f=async(x,L="original")=>{const H=["small","medium","large"],B=x.split("/").pop();let le=!1;for(let K=0;K<H.length;K++)if(H[K]===L&&(le=!0),le)try{const ge=u(`thumbnails/${H[K]}/${B}`);if((await Z.head(ge)).status===200)return ge}catch{}return u(x)},_=(x,L)=>{let H,B=(window.navigator.language||window.navigator.userLanguage)?.split("-")[0];e.userData&&e.userData.preferences&&e.userData.preferences.locale&&(B=e.userData.preferences.locale),L||(L=localStorage.getItem(i)||(r?.useUserLocaleAsFallback?B:!1)||e.appLocale||r?.locale||"en");try{H=JSON.parse(x)}catch{H={}}return H&&(H[L.toUpperCase()]||H[L])||""},E=(x,L)=>_(x,L),S=(x,L)=>{if(!x)return"";let H=_(x,L).replace(new RegExp("{{BASE_URL}}article","g"),`${a}/article`).replace(new RegExp("{{BASE_URL}}","g"),`${a}/storage`);const B=H.match(/\[audio\](.*?)\[\/?audio\]/g),le=H.match(/\[video\](.*?)\[\/?video\]/g);return B?.forEach(K=>{const ge=K.replace(/\[\/?audio\]/g,"");H=H.replace(K,`<br><p><audio preload="all" controls style="width: 100%"><source src="${u(ge)}"></audio></p><br>`)}),le?.forEach(K=>{const ge=K.replace(/\[\/?video\]/g,"");H=H.replace(K,`<br><p><video controls style="width: 100%"><source src="${u(ge)}"></video></p><br>`)}),H},d=(x,L)=>S(x,L),g=Ct("(min-width: 1536px)"),w=Ct("(min-width: 1280px) and (max-width: 1535px)"),P=Ct("(min-width: 1024px) and (max-width: 1279px)"),V=Ct("(min-width: 768px) and (max-width: 1023px)"),W=Ct("(max-width: 767px)"),G=[{label:"Français",value:"fr",flag:"flag:fr-1x1"},{label:"English",value:"en",flag:"flag:gb-1x1"}];return{is2XlScreen:g,isXlScreen:w,isLgScreen:P,isMdScreen:V,isSmScreen:W,getTranslation:_,getLangageLabel:x=>G.find(L=>L.value==x)?.label,getLanguageValue:x=>G.find(L=>L.label==x)?.value,ckEditorToolbarItems:["fullScreen","|","heading","|","uploadImage","|","bold","italic","underline","strikethrough","code","subscript","superscript","selectAll","|","fontSize","fontFamily","fontColor","fontBackgroundColor","|","horizontalLine","blockQuote","bulletedList","numberedList","alignment","|","outdent","indent","|","link","insertTable","mediaEmbed","|","undo","redo"],displayFormErrors:(x,L)=>{if(x)for(const[H,B]of Object.entries(x))for(const le of B)L(le)},resolveHtmlLinks:S,resolveUrl:m,updateLang:async(x,L=!0,H=!0)=>{if(localStorage.setItem(i,x),e.isUserLoggedIn&&H){const B=e.userData?.preferences||{inAppNotifEnabled:wn.TRUE,emailNotifEnabled:wn.TRUE,locale:x};B.locale=x,await s({url:`/users/self/${e.userData?.id}`,method:"put",data:{preferences:B}})}L&&location.reload()},languages:G,getImage:f,fileUrl:u,currentRoutePath:l,openLink:x=>{Zn(x)?window.open(x,"_blank"):n?.get(x)},openMenu:x=>{switch(x?.targetType){case Sn.EXTERNAL_LINK:window.open(x?.url??"#");break;case Sn.PAGE_LINK:n?.get(x?.path??"/");break}},getMenuHref:x=>x?.targetType==="external-link"?x?.url||"":x?.path||"",rHtml:d,tr:E}},Ri=()=>{const{request:e}=Mt(),{fileUrl:t}=Jr(),n=Wt(),r=ca.usePage(),s=n.pageData,a=n.article,i=n.category,l=n.tag,m=n.contentModelItem,u=b=>{if(!b)return null;const T=b.split("__"),M=T.length?T[0]:"",k=T.length>1?T[1]:"";return n.pageData?.sections?.find(I=>I.slug==M&&I.pivot?.linkId==k)?.pivot?.data||null},f=b=>u(b)?.index,_=b=>{if(!b)return null;const T=b.split("__"),M=T.length?T[0]:"",k=T.length>1?T[1]:"";return n.pageData?.sections?.find(I=>I.slug==M&&I.pivot?.linkId==k)?.pivot?.settings||null},E=(b,T)=>_(b)?.[T],S=(b,T,M)=>E(b,T)?.[M],d=async(b,T,M="default")=>{const k=await e({url:`section-data/${b}/source/${T}/link/${M}`});return k.success&&k.result?k.result.data:null},g=b=>n?.contentModels?.find(T=>T.name===b),w=b=>{const{index:T,...M}=b.contentModelData;return{...b,data:{...b.contentModelData?.index,...M}}},P=async(b,T=!0)=>{const M=await e({url:`content-model/items?contentModelName=${b}${T?"&isActive=true":""}`});return M.success&&M.result?(M.result.data||[]).map(k=>w(k)):[]},V=async(b,T,M,k=!0,I,ne)=>{const ue=new URLSearchParams({page:String(T),pageSize:String(M),contentModelName:b});k&&ue.append("isActive","true"),I&&ue.append("query",I),ne?.length&&ne.forEach((Re,Qe)=>{ue.append(`dataFilters[${Qe}][key]`,Re.key),ue.append(`dataFilters[${Qe}][value]`,Re.value),Re.operator&&ue.append(`dataFilters[${Qe}][operator]`,Re.operator)});const we=await e({url:`content-model/items?${ue.toString()}`});if(we.success&&we.result){const Re=(we.result.data?.items||[]).map(Kt=>w(Kt)),Qe=we.result.data?.meta?.total||0,Un=we.result.data?.meta?.currentPage||1;return{items:Re,total:Qe,currentPage:Un}}return{items:[],total:0,currentPage:1}},W=async(b,T,M={},k={},I=void 0,ne=void 0)=>{const ue=await e({url:"/content-model/user-items",method:"post",data:{title:b,contentModelId:T,contentModelData:{index:{...M},...k}}});return ue.failure&&ue.error?ne&&ne(ue.error?.response?.data):I&&I(),ue},G=(b,T)=>{const M=n?.permalinks||[];switch(b){case"news-article":case"news-category":case"news-tag":{const k=M?.find(I=>I.contentType===b);return k?`${k.pathPrefix}/${k.contentParam?T[k.contentParam]:T.id}`:""}default:{const k=M?.find(I=>I.content?.name===b);return k?`${k.pathPrefix}/${k.contentParam?k.contentParam=="id"?T.id:T?.data[k.contentParam]:T.id}`:""}}},te=(b,T=!0)=>{const M=yt(n?.menus?.find(k=>k.name===b));return M&&(M.items=yt(M.items?.filter(k=>!T||k.isActive)?.sort((k,I)=>k.position-I.position))),M},ae=(b,T=!0)=>{const M=yt(n?.menus?.find(k=>k.location?.name===b));return M&&(M.items=yt(M.items?.filter(k=>!T||k.isActive)?.sort((k,I)=>k.position-I.position))),M},X=(b,T=!0)=>te(b)?.items?.filter(M=>!T||M.isVisible)?.sort((M,k)=>M.position-k.position),Pe=b=>{const T=[];return(n?.menus||[]).forEach(k=>{Array.isArray(k.items)&&T.push(...k.items)}),T.find(k=>k.id===b)},pe=(b,T=!0)=>ae(b)?.items?.filter(M=>!T||M.isVisible)?.sort((M,k)=>M.position-k.position),Le=(b,T=!1,M=!0)=>{const k=[],I=T?pe(b,M):X(b,M);if(I){for(const ne of I)if(!k.find(we=>we.id===ne.menuItemGroupId)){const we=n?.menuItemGroups?.find(Re=>Re.id===ne.menuItemGroupId);we&&k.push(we)}}return k},Ye=(b,T,M=!1,k=!0)=>(M?pe(b,k):X(b,k))?.filter(ne=>ne.menuItemGroupId===T),Me=(b,T=!1,M=!0)=>Le(b,T).map(I=>({group:I,items:Ye(b,I.id||0,T,M)})),x=(b,T=!1,M=!0)=>(T?pe(b,M):X(b,M))?.filter(I=>!I.menuItemGroupId),L=(b,T="string")=>{const k=n.appInformation.find(ne=>ne.key===b);let I="";switch(T){case"number":I=k&&parseInt(k.value)&&!isNaN(parseInt(k.value))?parseInt(k.value):0;break;case"boolean":I=k&&!isNaN(parseInt(k.value))&&parseInt(k.value)>0;break;case"object":I=k&&k.value?JSON.parse(k.value):{};break;case"array":I=k&&k.value?JSON.parse(k.value):[];break;default:I=k&&k.value?k.value:"";break}return I},H=c.computed(()=>L("primaryColor")||"#005B97"),B=c.computed(()=>L("secondaryColor")||"#1E9CD7"),le=c.computed(()=>L("accentColor")||"#FF6501"),K=c.computed(()=>{const b=L("icon");return t(b)||""});return{logo:c.computed(()=>{const b=L("logo");return t(b)||""}),icon:K,page:r,pageData:s,newsArticle:a,newsCategory:i,newsTag:l,contentModelItem:m,getMenu:te,getMenuByLocation:ae,getMenuItems:X,getMenuItemById:Pe,getMenuItemsByLocation:pe,getMenuGroups:Le,getMenuItemsByGroup:Ye,getMenuGroupedItems:Me,getMenuUngroupedItems:x,getSectionData:u,getSectionSettings:_,getSectionSettingsGroup:E,getSectionSetting:S,getAnySectionData:d,getSectionRootData:f,getContentPath:G,getContentModel:g,getContentModelItems:P,getPaginatedContentModelItems:V,getAppInformationValue:L,submitUserContentModelItem:W,formatContentModelItemData:w,appAccentColor:le,appPrimaryColor:H,appSecondaryColor:B}},ua=()=>{const e=r=>{const s={};if(!r)throw new Error("[@creopse/vue] resolveSections is required");const a=r();for(const[l,m]of Object.entries(a)){var i=l.replace(/^\.\/(.*)\.\w+$/,"$1");const u=i.split("/"),f=u[u.length-1]?.split(".")[0];s[f]=m.default}return s},t=r=>{const s=r.pageData?.sections,a=r.pageData?.sectionsOrder,i=[];if(Array.isArray(s)&&Array.isArray(a)){for(const l of a)if(l){const m=s.find(u=>`${u.slug}__${u.pivot?.linkId}`===l);m&&i.push(m)}}return i.length?i:s||[]};return{getComponents:e,getSectionsInOrder:t,getFinalPageSections:r=>{const s=t(r),a=r.pageData?.sectionsDisabled;return s.filter(i=>!a?.includes(`${i.slug}__${i.pivot?.linkId}`))}}},Xh=["id"],Qh=c.defineComponent({__name:"Core",setup(e){const{page:t}=Ri(),n=c.ref(ua());var r=n.value.getFinalPageSections(Wt()),s=n.value.getComponents(c.inject(da));c.onMounted(()=>{setTimeout(()=>{const _=t.props.sectionData;_&&r.find(E=>E.slug==_.slug&&E.pivot?.linkId==_.pivot?.linkId)&&Os(`${_.slug}__${_.pivot?.linkId}-container`)},1e3)});const a=c.ref(st()),i=c.ref({}),l=()=>{r.forEach(_=>{i.value[`${_.slug}__${_.pivot?.linkId}-key`]=st()})};l();const m=c.ref({}),u=yt(Wt()),f=c.inject(wr);return c.onMounted(()=>{const _=()=>{if(document.addEventListener("click",g=>{const w=g.target.closest("a");if(w)return g.preventDefault(),g.stopPropagation(),g.stopImmediatePropagation(),console.debug("🚫 Navigation blocked:",w.href),!1},!0),["assign","replace"].forEach(g=>{Object.getOwnPropertyDescriptor(window.location,g)?.configurable!==!1&&Object.defineProperty(window.location,g,{value:function(){console.debug(`🚫 location.${g}() blocked`)},writable:!1,configurable:!1})}),Object.getOwnPropertyDescriptor(window.location,"href")?.configurable!==!1){const g=window.location.href;Object.defineProperty(window.location,"href",{get:()=>g,set:w=>{console.debug("🚫 location.href = blocked:",w)},configurable:!1})}window.open=function(){return console.debug("🚫 window.open() blocked"),null},["pushState","replaceState"].forEach(g=>{history[g]=function(){console.debug(`🚫 history.${g}() blocked`)}}),document.addEventListener("submit",g=>{g.preventDefault(),console.debug("🚫 Form submission blocked")},!0),console.debug("✅ Navigation lock activated")},E=()=>{Object.keys(m.value).forEach(d=>{m.value[d].isActive=!1;const g=document.getElementById(d);g&&(g.style.border="none",g.style.boxShadow="none")})},S=d=>{switch(d.data?.type){case _e.RELOAD:sessionStorage.setItem("shouldNotifyReload","1"),sessionStorage.setItem("replyOrigin",d.origin),window.location.reload();break;case _e.ENABLE_EDITION_MODE:{const g=d.data?.primaryColor??"blue";sessionStorage.setItem("replyOrigin",d.origin),sessionStorage.setItem("primaryColor",g),r?.forEach((w,P)=>{if(w.slug&&w.pivot?.linkId){const V=`${w.slug}__${w.pivot?.linkId}-container`,W=document.getElementById(V);W&&(m.value[V]={element:W,clickCount:0,isActive:!1},W.addEventListener("click",function(G){E(),m.value[this.id].clickCount++,m.value[this.id].isActive=!0,this.style.border=`5px solid ${g}`,this.style.boxShadow=`0 0 10px ${g}`,window.parent.postMessage({type:_e.SELECT_PREVIEW_SECTION,slug:w.slug,linkId:w.pivot?.linkId},d.origin)}),W.style.cursor="pointer",W.style.transition="all 0.3s ease")}}),_();break}case _e.DESELECT_ALL_SECTIONS:E();break;case _e.SELECT_SIDEBAR_SECTION:{setTimeout(()=>{r.find(P=>P.slug==d.data?.slug&&P.pivot?.linkId==d.data?.linkId)&&Os(`${d.data?.slug}__${d.data?.linkId}-container`)},1e3);const g=`${d.data?.slug}__${d.data?.linkId}-container`,w=document.getElementById(g);w&&(E(),m.value[g].clickCount++,m.value[g].isActive=!0,w.style.border=`5px solid ${sessionStorage.getItem("primaryColor")}`,w.style.boxShadow=`0 0 10px ${sessionStorage.getItem("primaryColor")}`);break}case _e.SEND_BASE_SECTION_SETTINGS:case _e.SEND_SECTION_SETTINGS:{const g=u.pageData?.sections?.findIndex(w=>w.slug==d.data?.slug&&w.pivot?.linkId==d.data?.linkId);if(typeof g!="number")return;g>-1&&u.pageData?.sections&&u.pageData?.sections[g].pivot?.settings&&(u.pageData.sections[g].pivot.settings=d.data?.settings,f?.sync(u),i.value[`${d.data?.slug}__${d.data?.linkId}-key`]=st())}break;case _e.SEND_BASE_SECTION_DATA:case _e.SEND_SECTION_DATA:{const g=u.pageData?.sections?.findIndex(w=>w.slug==d.data?.slug&&w.pivot?.linkId==d.data?.linkId);if(typeof g!="number")return;g>-1&&u.pageData?.sections&&u.pageData?.sections[g].pivot?.data&&(u.pageData.sections[g].pivot.data=d.data?.data,f?.sync(u),i.value[`${d.data?.slug}__${d.data?.linkId}-key`]=st())}break;case _e.SEND_PAGE_SECTIONS:{if(!u.pageData)return;u.pageData.sectionsOrder=d.data?.sectionsOrder,u.pageData.sectionsDisabled=d.data?.sectionsDisabled;const g=yt(u.pageData.sections||[]);u.pageData.sections=d.data?.sectionsList||[],g.forEach(w=>{const P=u.pageData?.sections?.findIndex(V=>V.slug==w?.slug&&V.pivot?.linkId==w.pivot?.linkId);typeof P=="number"&&P>-1&&u.pageData?.sections?.[P].pivot&&(u.pageData.sections[P].pivot.data=w.pivot?.data,u.pageData.sections[P].pivot.settings=w.pivot?.settings)}),f?.sync(u),n.value=ua(),r=n.value.getFinalPageSections(f?.getState().props),l(),a.value=st()}break}};if(window.addEventListener("message",S),sessionStorage.getItem("shouldNotifyReload")==="1"){const d=sessionStorage.getItem("replyOrigin")||"*";window.parent.postMessage({type:_e.RELOAD_COMPLETE},d),sessionStorage.removeItem("shouldNotifyReload"),sessionStorage.removeItem("replyOrigin")}}),(_,E)=>(c.openBlock(),c.createElementBlock("div",{key:c.unref(a),class:"reset-styles"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(r),S=>(c.openBlock(),c.createElementBlock("section",{key:`${S.slug}__${S.pivot?.linkId}`,id:`${S.slug}__${S.pivot?.linkId}-container`,class:"reset-styles"},[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(c.unref(s)[S.name]),{key:c.unref(i)[`${S.slug}__${S.pivot?.linkId}-key`],data:S.pivot?.data,settings:S.pivot?.settings,"section-key":`${S.slug}__${S.pivot?.linkId}`,metadata:{slug:S.slug,name:S.name,title:S.title,linkId:S.pivot?.linkId,createdAt:S.createdAt,updatedAt:S.updatedAt}},null,8,["data","settings","section-key","metadata"]))],8,Xh))),128))]))}}),Ai=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},em=Ai(Qh,[["__scopeId","data-v-ecceed8b"]]),xi=c.defineComponent({__name:"index",setup(e){const t=c.inject(vr),n=c.ref(st());return t?.on("navigate",r=>{n.value=st()}),(r,s)=>(c.openBlock(),c.createBlock(em,{key:c.unref(n)}))}}),tm=["src","alt","title","width","height","loading"],Kr=c.defineComponent({__name:"AsyncImg",props:{load:{type:Function},alt:{},width:{},height:{},title:{},loading:{},style:{}},setup(e){const t=e,n=c.ref("");return(async()=>{n.value=await t.load()})(),(s,a)=>(c.openBlock(),c.createElementBlock("img",{src:c.unref(n),alt:t.alt,title:t.title,style:c.normalizeStyle(t.style),width:t.width,height:t.height,loading:t.loading},null,12,tm))}}),nm=c.defineComponent({__name:"CustomTransition",props:{name:{default:"fade"},mode:{default:"out-in"},appear:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(c.openBlock(),c.createBlock(c.Transition,{name:t.name,mode:t.mode,appear:t.appear},{default:c.withCtx(()=>[c.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["name","mode","appear"]))}}),Ii=Ai(nm,[["__scopeId","data-v-30b5e62e"]]),rm=["src"],Ni=c.defineComponent({__name:"Image",props:{src:{},alt:{default:""},width:{default:void 0},height:{default:void 0},title:{default:void 0},loading:{default:void 0},style:{default:void 0},size:{default:"original"},sync:{type:Boolean,default:!1}},setup(e){const t=e,{getImage:n}=Jr(),{src:r,size:s,sync:a}=c.toRefs(t),i=c.computed(()=>{const{src:l,size:m,sync:u,...f}=t;return f});return(l,m)=>{const u=Kr;return c.unref(a)?(c.openBlock(),c.createElementBlock("img",c.mergeProps({key:0,src:c.unref(r)},c.unref(i)),null,16,rm)):(c.openBlock(),c.createBlock(u,c.mergeProps({key:1,load:()=>c.unref(n)(c.unref(r),c.unref(s))},c.unref(i)),null,16,["load"]))}}}),Ci=c.defineComponent({__name:"MountedTeleport",props:{to:{}},setup(e){const t=e,n=c.ref(!1);return c.onMounted(()=>{n.value=!0}),c.onUnmounted(()=>{n.value=!1}),(r,s)=>c.unref(n)?(c.openBlock(),c.createBlock(c.Teleport,{key:0,to:t.to},[c.renderSlot(r.$slots,"default")],8,["to"])):c.createCommentVNode("",!0)}}),sm=["innerHTML"],am=["href"],im=["href"],Pi=c.defineComponent({__name:"ReadMore",props:{moreStr:{default:"Read more"},lessStr:{default:""},text:{},link:{default:"#"},maxChars:{default:100}},setup(e){const t=e,n=c.ref(!1),r=c.computed(()=>!n.value&&t.text.length>t.maxChars?t.text.substring(0,t.maxChars)+"...":t.text),s=(a,i)=>{t.link=="#"&&a.preventDefault(),t.lessStr&&(n.value=i)};return(a,i)=>(c.openBlock(),c.createElementBlock("div",null,[c.createElementVNode("span",{innerHTML:c.unref(r)},null,8,sm),c.withDirectives(c.createElementVNode("span",null,[c.withDirectives(c.createElementVNode("a",{id:"readmore",href:t.link,onClick:i[0]||(i[0]=l=>s(l,!0))},c.toDisplayString(t.moreStr),9,am),[[c.vShow,!c.unref(n)]]),c.withDirectives(c.createElementVNode("a",{id:"readmore",href:t.link,onClick:i[1]||(i[1]=l=>s(l,!1))},c.toDisplayString(t.lessStr),9,im),[[c.vShow,c.unref(n)]])],512),[[c.vShow,t.text.length>t.maxChars]])]))}}),Li=c.defineComponent({__name:"StickyBottom",props:{bottom:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,n=c.ref(null),r=c.ref(!1),s=c.ref(""),a=c.ref(void 0),i=c.ref(void 0),l=c.ref(!1);c.onMounted(()=>{i.value=n.value?.getBoundingClientRect().height,window.addEventListener("scroll",_),window.addEventListener("resize",E),_()}),c.onActivated(()=>{_()}),c.onUnmounted(()=>{window.removeEventListener("scroll",_),window.removeEventListener("resize",E)});const m=()=>{r.value||(s.value="fixed",r.value=!0,a.value=a.value+"px",l.value=!0)},u=()=>{r.value&&f()},f=()=>{s.value="",a.value="auto",r.value=!1,l.value=!1},_=()=>{const S=n.value?.getBoundingClientRect().width;if(a.value=S||"auto",(n.value?.getBoundingClientRect().bottom||0)>t.bottom){m();return}u()},E=()=>{l.value&&(a.value=n.value?.getBoundingClientRect().width+"px")};return(S,d)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"el",ref:n,style:c.normalizeStyle({height:c.unref(i)+"px",zIndex:t.zIndex})},[c.createElementVNode("div",{class:c.normalizeClass(t.className),style:c.normalizeStyle({bottom:c.unref(l)?t.bottom+"px":"",zIndex:t.zIndex,position:c.unref(s),width:c.unref(a),height:c.unref(i)+"px"})},[c.renderSlot(S.$slots,"default",{},()=>[d[0]||(d[0]=c.createElementVNode("div",null,"Sticky Bottom",-1))])],6)],4))}}),Yi=c.defineComponent({__name:"StickyTop",props:{top:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,n=c.ref(null),r=c.ref(!1),s=c.ref(""),a=c.ref(void 0),i=c.ref(void 0),l=c.ref(!1);c.onMounted(()=>{i.value=n.value?.getBoundingClientRect().height,window.addEventListener("scroll",_),window.addEventListener("resize",E)}),c.onActivated(()=>{_()}),c.onUnmounted(()=>{window.removeEventListener("scroll",_),window.removeEventListener("resize",E)});const m=()=>{r.value||(s.value="fixed",r.value=!0,a.value=a.value+"px",l.value=!0)},u=()=>{r.value&&f()},f=()=>{s.value="",a.value="auto",r.value=!1,l.value=!1},_=()=>{const S=n.value?.getBoundingClientRect().width;if(a.value=S||"auto",(n.value?.getBoundingClientRect().top||0)<t.top){m();return}u()},E=()=>{l.value&&(a.value=n.value?.getBoundingClientRect().width+"px")};return(S,d)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"el",ref:n,style:c.normalizeStyle({height:c.unref(i)+"px",zIndex:t.zIndex})},[c.createElementVNode("div",{class:c.normalizeClass(t.className),style:c.normalizeStyle({top:c.unref(l)?t.top+"px":"",zIndex:t.zIndex,position:c.unref(s),width:c.unref(a),height:c.unref(i)+"px"})},[c.renderSlot(S.$slots,"default",{},()=>[d[0]||(d[0]=c.createElementVNode("div",null,"Sticky Top",-1))])],6)],4))}});class om{state;constructor(t){this.state=c.reactive({props:t})}update(t,n="merge"){this.state.props=n==="merge"?this.deepMerge(this.state.props,t):this.deepOverride(this.state.props,t)}getState(){return c.readonly(this.state)}sync(t){this.state.props=t}deepMerge(t,n){const r={...t};return this.isObject(t)&&this.isObject(n)&&Object.keys(n).forEach(s=>{this.isObject(n[s])&&s in t?r[s]=this.deepMerge(t[s],n[s]):r[s]=n[s]}),r}deepOverride(t,n){if(!this.isObject(n))return n;const r={...n};return this.isObject(t)&&Object.keys(n).forEach(s=>{this.isObject(n[s])&&this.isObject(t[s])&&(r[s]=this.deepOverride(t[s],n[s]))}),r}isObject(t){return t&&typeof t=="object"&&!Array.isArray(t)}}const lm=()=>{const{request:e}=Mt(),t=c.ref(!1),n=async(S=!0)=>{t.value=!0;const d=await e({url:"/news-categories"});return t.value=!1,d.success&&d.result.data?d.result.data.filter(g=>!S||g.isActive):[]},r=async(S=!0)=>{t.value=!0;const d=await e({url:"/news-tags"});return t.value=!1,d.success&&d.result.data?d.result.data.filter(g=>!S||g.isActive):[]},s=S=>{const d=new URLSearchParams;return d.set("pageSize",String(S.pageSize)),S.query&&d.set("query",S.query),S.page&&d.set("page",String(S.page)),S.status&&d.set("status",String(S.status)),S.categories?.length&&S.categories.forEach(g=>d.append("categories[]",String(g))),S.tags?.length&&S.tags.forEach(g=>d.append("tags[]",String(g))),S.months?.length&&S.months.forEach(g=>d.append("months[]",g)),`/news-articles?${d.toString()}`},a=async S=>{t.value=!0;const d=await e({url:s(S)});return t.value=!1,d.success&&d.result.data?d.result.data:{articles:[],meta:{total:0,currentPage:1,perPage:1,lastPage:1}}},i=async()=>{t.value=!0;const S=await e({url:"/news-articles/list/months"});return t.value=!1,S.success&&S.result.data?S.result.data:[]},l=async()=>{t.value=!0;const S=await e({url:"/count/news-articles"});return t.value=!1,S.success?S.result.data:0},m=async S=>{t.value=!0;const d=await e({url:`/count/news-articles/status/${S}`});return t.value=!1,d.success?d.result.data:0},u=async S=>{t.value=!0;const d=await e({url:`/count/news-articles/author/${S}`});return t.value=!1,d.success?d.result.data:0},f=S=>{const d=new URLSearchParams;return Object.entries(S).forEach(([g,w])=>{w!==void 0&&d.set(g,String(w))}),`/news-comments?${d.toString()}`};return{isLoading:t,loadTags:r,loadComments:async S=>{t.value=!0;const d=await e({url:f(S)});return t.value=!1,d.success&&d.result.data?d.result.data:{comments:[],meta:{total:0,currentPage:1,perPage:1,lastPage:1}}},loadArticles:a,loadCategories:n,loadArticlesCount:l,loadArticlesMonths:i,loadArticlesCountByStatus:m,loadArticlesCountByAuthor:u,addComment:async(S,d=void 0,g=void 0)=>{t.value=!0;const w=await e({url:"/news-comments",method:"post",data:S});return t.value=!1,w.failure&&w.error?g&&g(w.error?.response?.data):d&&d(),w}}},um=()=>{const{request:e}=Mt(),t=c.ref(!1),n=async(a=!0)=>{t.value=!0;const i=await e({url:"/video-categories"});return t.value=!1,i.success&&i.result.data?i.result.data.filter(l=>!a||l.isActive):[]},r=a=>{const i=new URLSearchParams;return i.set("pageSize",String(a.pageSize)),a.query&&i.set("query",a.query),a.page&&i.set("page",String(a.page)),a.source&&i.set("source",a.source),a.visible!==void 0&&i.set("visible",String(a.visible)),a.orderByPublishedAt!==void 0&&i.set("orderByPublishedAt",String(a.orderByPublishedAt)),a.categories?.length&&a.categories.forEach(l=>i.append("categories[]",String(l))),`/video-items?${i.toString()}`};return{isLoading:t,loadCategories:n,loadVideoItems:async a=>{t.value=!0;const i=await e({url:r(a)});return t.value=!1,i.success&&i.result.data?i.result.data:{videoItems:[],meta:{total:0,currentPage:1,perPage:1,lastPage:1}}}}},cm=()=>{const{request:e}=Mt(),t=c.ref(!1),n=async(a,i=void 0,l=void 0)=>{await s("email",a,i,l)},r=async(a,i=void 0,l=void 0)=>{await s("phone",a.replace(/\s+/g,""),i,l)},s=async(a,i,l=void 0,m=void 0)=>{t.value=!0;const u=await e({url:`newsletter/${a}s`,method:"post",data:a==="email"?{email:i}:{phone:i}});u.failure&&u.error?m&&m(u.error?.response?.data):l&&l(),t.value=!1};return{subscribePhone:r,subscribeEmail:n,isLoading:t}},dm={install(e,t){if(!t?.initialProps)throw new Error("[@creopse/vue] initialProps is required");if(!t?.config)throw new Error("[@creopse/vue] config is required");if(!t?.resolveSections)throw new Error("[@creopse/vue] resolveSections is required");const n=new om(t.initialProps);t?.router?(t.router.on("navigate",r=>{n.sync(r.detail.page.props)}),e.provide(vr,t.router)):console.warn("[@creopse/vue] No router - props won't sync"),e.provide(wr,n),e.config.globalProperties.$props=n,e.provide(Sr,t.config),e.config.globalProperties.$config=t.config,e.provide(da,t.resolveSections),e.config.globalProperties.$resolveSections=t.resolveSections,e.component("RootContainer",xi),e.component("CustomTransition",Ii),e.component("MountedTeleport",Ci),e.component("StickyBottom",Li),e.component("StickyTop",Yi),e.component("ReadMore",Pi),e.component("AsyncImg",Kr),e.component("Image",Ni)}};exports.AsyncImg=Kr;exports.CustomTransition=Ii;exports.Image=Ni;exports.MountedTeleport=Ci;exports.ReadMore=Pi;exports.RootContainer=xi;exports.StickyBottom=Li;exports.StickyTop=Yi;exports.default=dm;exports.useApi=Mt;exports.useConfig=qr;exports.useContent=Ri;exports.useHelper=Jr;exports.useNews=lm;exports.useNewsletter=cm;exports.useProps=Wt;exports.useVideo=um;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("vue"),Kn=require("@inertiajs/vue3"),vt=Symbol("Props"),Dt=Symbol("Config"),Rt=Symbol("Router"),Yn=Symbol("ResolveSections"),V=[];for(let e=0;e<256;++e)V.push((e+256).toString(16).slice(1));function qo(e,t=0){return(V[e[t+0]]+V[e[t+1]]+V[e[t+2]]+V[e[t+3]]+"-"+V[e[t+4]]+V[e[t+5]]+"-"+V[e[t+6]]+V[e[t+7]]+"-"+V[e[t+8]]+V[e[t+9]]+"-"+V[e[t+10]]+V[e[t+11]]+V[e[t+12]]+V[e[t+13]]+V[e[t+14]]+V[e[t+15]]).toLowerCase()}let gt;const Wo=new Uint8Array(16);function zo(){if(!gt){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");gt=crypto.getRandomValues.bind(crypto)}return gt(Wo)}const Ko=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),an={randomUUID:Ko};function Yo(e,t,n){e=e||{};const r=e.random??e.rng?.()??zo();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,qo(r)}function me(e,t,n){return an.randomUUID&&!e?an.randomUUID():Yo(e)}var cn;(function(e){e[e.DOCUMENT=1]="DOCUMENT",e[e.IMAGE=2]="IMAGE",e[e.VIDEO=3]="VIDEO",e[e.AUDIO=4]="AUDIO",e[e.OTHER=5]="OTHER"})(cn||(cn={}));var ln;(function(e){e[e.DRAFT=1]="DRAFT",e[e.PENDING=2]="PENDING",e[e.PUBLISHED=3]="PUBLISHED",e[e.TRASH=4]="TRASH"})(ln||(ln={}));var un;(function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal"})(un||(un={}));var fn;(function(e){e.SELF_HOSTED="self-hosted",e.YOUTUBE="youtube"})(fn||(fn={}));function Xo(e){return e.length>1&&e.charAt(e.length-1)==="/"?e.substring(0,e.length-1):e}function Jo(e){return e.startsWith("/")?e.slice(1):e}function Qo(){const{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?`:${n}`:"")}function dn(e){const t=document.getElementById(e);t?t.scrollIntoView({behavior:"smooth",block:"start"}):console.error(`Element with ID "${e}" not found.`)}function _t(e){if(!e||typeof e!="string")return!1;let t=e.trim();t.includes("://")||(t="http://"+t);let n;try{n=new URL(t)}catch{return!1}const r=n.protocol.replace(":","");if(!["http","https","ftp"].includes(r)||!n.hostname)return!1;const o=n.hostname.toLowerCase();if(o.includes("_"))return!1;if(n.port){const f=parseInt(n.port,10);if(isNaN(f)||f<1||f>65535)return!1}const i=o==="localhost",a=/^(?:(?:\d{1,3}\.){3}\d{1,3})$/i.test(o),u=/^\[([0-9a-f:]+)\]$/i.test(o)||/^([0-9a-f:]+)$/i.test(o);if(!i&&!a&&!u){const f=o.split(".");if(f.length<2||f.some(d=>!d)||f[f.length-1].length<1)return!1}return!(!/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i.test(o)&&!i&&!a&&!u)}var pn;(function(e){e.USER="user",e.ADMIN="admin",e.SYSTEM="system"})(pn||(pn={}));var En;(function(e){e.INTERNAL="internal",e.USER_EDITABLE="user-editable"})(En||(En={}));var hn;(function(e){e.EDITORIAL_CONTENT="editorial-content",e.USER_DATA="user-data",e.SYSTEM_DATA="system-data"})(hn||(hn={}));var mn;(function(e){e.API="api",e.WEB="web",e.ADMIN="admin",e.MOBILE="mobile"})(mn||(mn={}));var gn;(function(e){e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED"})(gn||(gn={}));var _n;(function(e){e.IMAGE="image",e.VIDEO="video"})(_n||(_n={}));var Tn;(function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.EMAIL_PASSWORD=1]="EMAIL_PASSWORD",e[e.PHONE=2]="PHONE",e[e.GOOGLE=3]="GOOGLE",e[e.FACEBOOK=4]="FACEBOOK",e[e.TWITTER=5]="TWITTER"})(Tn||(Tn={}));var Je;(function(e){e[e.FALSE=0]="FALSE",e[e.TRUE=1]="TRUE"})(Je||(Je={}));var On;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})(On||(On={}));var ee;(function(e){e.RELOAD="reload",e.RELOAD_COMPLETE="reload-complete",e.ENABLE_EDITION_MODE="enable-edition-mode",e.DESELECT_ALL_SECTIONS="deselect-all-sections",e.SELECT_PREVIEW_SECTION="select-preview-section",e.SELECT_SIDEBAR_SECTION="select-sidebar-section",e.SEND_BASE_SECTION_SETTINGS="send-base-section-settings",e.SEND_BASE_SECTION_DATA="send-base-section-data",e.SEND_SECTION_SETTINGS="send-section-settings",e.SEND_SECTION_DATA="send-section-data",e.SEND_PAGE_SECTIONS="send-page-sections"})(ee||(ee={}));var Qe;(function(e){e.EXTERNAL_LINK="external-link",e.PAGE_LINK="page-link",e.CONTENT_LINK="content-link"})(Qe||(Qe={}));var An;(function(e){e[e.SYSTEM=1]="SYSTEM",e[e.USER=2]="USER"})(An||(An={}));var yn;(function(e){e.WELCOME_USER="Creopse\\Creopse\\Notifications\\WelcomeUser"})(yn||(yn={}));var In;(function(e){e.NEWS_TAG="news-tag",e.NEWS_CATEGORY="news-category",e.NEWS_ARTICLE="news-article",e.CONTENT_MODEL="content-model"})(In||(In={}));var bn;(function(e){e.ADMIN="Creopse\\Creopse\\Models\\AdminProfile",e.SUBSCRIBER="App\\Models\\SubscriberProfile"})(bn||(bn={}));var wn;(function(e){e.VIEW_DASHBOARD="view-dashboard",e.VIEW_ACCOUNT="view-account",e.EDIT_ACCOUNT="edit-account",e.VIEW_NOTIFICATIONS="view-notifications",e.MANAGE_NOTIFICATIONS="manage-notifications",e.VIEW_ABOUT="view-about",e.MANAGE_PLUGINS="manage-plugins",e.MANAGE_APP_SETTINGS="manage-app-settings",e.VIEW_USERS="view-users",e.CREATE_USER="create-user",e.EDIT_USER="edit-user",e.DELETE_USER="delete-user",e.VIEW_ROLES="view-roles",e.MANAGE_ROLES="manage-roles",e.VIEW_PERMISSIONS="view-permissions",e.MANAGE_PERMISSIONS="manage-permissions",e.CREATE_ARTICLE="create-article",e.EDIT_ARTICLE="edit-article",e.DELETE_ARTICLE="delete-article",e.MANAGE_NEWS="manage-news",e.VIEW_MEDIA="view-media",e.UPLOAD_MEDIA="upload-media",e.DELETE_MEDIA="delete-media",e.VIEW_CONTENT="view-content",e.MANAGE_CONTENT="manage-content",e.USE_VISUAL_EDITOR="use-visual-editor"})(wn||(wn={}));var Sn;(function(e){e.FORM_INVALID_DATA="form/invalid_data",e.REQUEST_PARAMS_MISSING="request/params_missing",e.REQUEST_DATA_RETRIEVAL_FAILED="request/data_retrieval_failed",e.REQUEST_DATA_ALREADY_EXISTS="request/data_already_exists",e.AUTH_LOGIN_FAILED="auth/login_failed",e.AUTH_REGISTRATION_FAILED="auth/registration_failed",e.AUTH_MISSING_DATA="auth/missing_data",e.AUTH_WRONG_PASSWORD="auth/wrong_password",e.AUTH_USER_DISABLED="auth/user_disabled",e.AUTH_USER_NOT_FOUND="auth/user_not_found",e.AUTH_PROFILE_TYPE_NOT_FOUND="auth/profile_type_not_found",e.AUTH_EMAIL_ALREADY_USED="auth/email_already_used",e.AUTH_EMAIL_ALREADY_VERIFIED="auth/email_already_verified",e.AUTH_PROFILE_ALREADY_EXISTS="auth/profile_already_exists",e.AUTH_PROFILE_NOT_FOUND="auth/profile_not_found",e.AUTH_INVALID_TOKEN="auth/invalid_token",e.AUTH_CODE_SENDING_FAILED="auth/code_sending_failed",e.AUTH_CODE_VERIFICATION_FAILED="auth/code_verification_failed",e.AUTH_CODE_EXPIRED="auth/code_expired"})(Sn||(Sn={}));var Nn;(function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.ALREADY_REPORTED=208]="ALREADY_REPORTED",e[e.IM_USED=226]="IM_USED",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.FOUND=302]="FOUND",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.USE_PROXY=305]="USE_PROXY",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",e[e.URI_TOO_LONG=414]="URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.RANGE_NOT_SATISFIABLE=416]="RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.SESSION_HAS_EXPIRED=419]="SESSION_HAS_EXPIRED",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.LOCKED=423]="LOCKED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.TOO_EARLY=425]="TOO_EARLY",e[e.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.CONNECTION_CLOSED_WITHOUT_RESPONSE=444]="CONNECTION_CLOSED_WITHOUT_RESPONSE",e[e.RETRY_WITH=449]="RETRY_WITH",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.CLIENT_CLOSED_REQUEST=499]="CLIENT_CLOSED_REQUEST",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.LOOP_DETECTED=508]="LOOP_DETECTED",e[e.BANDWIDTH_LIMIT_EXCEEDED=509]="BANDWIDTH_LIMIT_EXCEEDED",e[e.NOT_EXTENDED=510]="NOT_EXTENDED",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",e[e.UNKNOWN_ERROR=520]="UNKNOWN_ERROR",e[e.WEB_SERVER_IS_DOWN=521]="WEB_SERVER_IS_DOWN",e[e.CONNECTION_TIMED_OUT=522]="CONNECTION_TIMED_OUT",e[e.ORIGIN_IS_UNREACHABLE=523]="ORIGIN_IS_UNREACHABLE",e[e.A_TIMEOUT_OCCURRED=524]="A_TIMEOUT_OCCURRED",e[e.SSL_HANDSHAKE_FAILED=525]="SSL_HANDSHAKE_FAILED",e[e.INVALID_SSL_CERTIFICATE=526]="INVALID_SSL_CERTIFICATE",e[e.RAILGUN_ERROR=527]="RAILGUN_ERROR",e[e.NETWORK_READ_TIMEOUT_ERROR=598]="NETWORK_READ_TIMEOUT_ERROR",e[e.NETWORK_CONNECT_TIMEOUT_ERROR=599]="NETWORK_CONNECT_TIMEOUT_ERROR"})(Nn||(Nn={}));var vn;(function(e){e.SUPER_ADMIN="super-admin",e.ADMIN="admin",e.USER="user"})(vn||(vn={}));var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pe={exports:{}};Pe.exports;var Dn;function es(){return Dn||(Dn=1,function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",T="[object Date]",f="[object Error]",d="[object Function]",O="[object GeneratorFunction]",b="[object Map]",_="[object Number]",l="[object Object]",h="[object Promise]",g="[object RegExp]",R="[object Set]",k="[object String]",U="[object Symbol]",C="[object WeakMap]",$="[object ArrayBuffer]",G="[object DataView]",F="[object Float32Array]",ie="[object Float64Array]",Q="[object Int8Array]",ae="[object Int16Array]",ce="[object Int32Array]",re="[object Uint8Array]",N="[object Uint8ClampedArray]",L="[object Uint16Array]",P="[object Uint32Array]",x=/[\\^$.*+?()[\]{}|]/g,W=/\w*$/,B=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,A={};A[i]=A[a]=A[$]=A[G]=A[u]=A[T]=A[F]=A[ie]=A[Q]=A[ae]=A[ce]=A[b]=A[_]=A[l]=A[g]=A[R]=A[k]=A[U]=A[re]=A[N]=A[L]=A[P]=!0,A[f]=A[d]=A[C]=!1;var I=typeof We=="object"&&We&&We.Object===Object&&We,w=typeof self=="object"&&self&&self.Object===Object&&self,y=I||w||Function("return this")(),v=t&&!t.nodeType&&t,j=v&&!0&&e&&!e.nodeType&&e,z=j&&j.exports===v;function te(s,p){return s.set(p[0],p[1]),s}function oe(s,p){return s.add(p),s}function de(s,p){for(var m=-1,S=s?s.length:0;++m<S&&p(s[m],m,s)!==!1;);return s}function st(s,p){for(var m=-1,S=p.length,H=s.length;++m<S;)s[H+m]=p[m];return s}function Fe(s,p,m,S){for(var H=-1,K=s?s.length:0;++H<K;)m=p(m,s[H],H,s);return m}function Lr(s,p){for(var m=-1,S=Array(s);++m<s;)S[m]=p(m);return S}function Ur(s,p){return s?.[p]}function Mt(s){var p=!1;if(s!=null&&typeof s.toString!="function")try{p=!!(s+"")}catch{}return p}function Ft(s){var p=-1,m=Array(s.size);return s.forEach(function(S,H){m[++p]=[H,S]}),m}function it(s,p){return function(m){return s(p(m))}}function $t(s){var p=-1,m=Array(s.size);return s.forEach(function(S){m[++p]=S}),m}var Pr=Array.prototype,xr=Function.prototype,$e=Object.prototype,at=y["__core-js_shared__"],jt=function(){var s=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Ht=xr.toString,fe=$e.hasOwnProperty,je=$e.toString,kr=RegExp("^"+Ht.call(fe).replace(x,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vt=z?y.Buffer:void 0,Gt=y.Symbol,qt=y.Uint8Array,Cr=it(Object.getPrototypeOf,Object),Br=Object.create,Mr=$e.propertyIsEnumerable,Fr=Pr.splice,Wt=Object.getOwnPropertySymbols,$r=Vt?Vt.isBuffer:void 0,jr=it(Object.keys,Object),ct=ye(y,"DataView"),De=ye(y,"Map"),lt=ye(y,"Promise"),ut=ye(y,"Set"),ft=ye(y,"WeakMap"),Re=ye(Object,"create"),Hr=he(ct),Vr=he(De),Gr=he(lt),qr=he(ut),Wr=he(ft),zt=Gt?Gt.prototype:void 0,Kt=zt?zt.valueOf:void 0;function pe(s){var p=-1,m=s?s.length:0;for(this.clear();++p<m;){var S=s[p];this.set(S[0],S[1])}}function zr(){this.__data__=Re?Re(null):{}}function Kr(s){return this.has(s)&&delete this.__data__[s]}function Yr(s){var p=this.__data__;if(Re){var m=p[s];return m===r?void 0:m}return fe.call(p,s)?p[s]:void 0}function Xr(s){var p=this.__data__;return Re?p[s]!==void 0:fe.call(p,s)}function Jr(s,p){var m=this.__data__;return m[s]=Re&&p===void 0?r:p,this}pe.prototype.clear=zr,pe.prototype.delete=Kr,pe.prototype.get=Yr,pe.prototype.has=Xr,pe.prototype.set=Jr;function le(s){var p=-1,m=s?s.length:0;for(this.clear();++p<m;){var S=s[p];this.set(S[0],S[1])}}function Qr(){this.__data__=[]}function Zr(s){var p=this.__data__,m=He(p,s);if(m<0)return!1;var S=p.length-1;return m==S?p.pop():Fr.call(p,m,1),!0}function eo(s){var p=this.__data__,m=He(p,s);return m<0?void 0:p[m][1]}function to(s){return He(this.__data__,s)>-1}function no(s,p){var m=this.__data__,S=He(m,s);return S<0?m.push([s,p]):m[S][1]=p,this}le.prototype.clear=Qr,le.prototype.delete=Zr,le.prototype.get=eo,le.prototype.has=to,le.prototype.set=no;function Oe(s){var p=-1,m=s?s.length:0;for(this.clear();++p<m;){var S=s[p];this.set(S[0],S[1])}}function ro(){this.__data__={hash:new pe,map:new(De||le),string:new pe}}function oo(s){return Ve(this,s).delete(s)}function so(s){return Ve(this,s).get(s)}function io(s){return Ve(this,s).has(s)}function ao(s,p){return Ve(this,s).set(s,p),this}Oe.prototype.clear=ro,Oe.prototype.delete=oo,Oe.prototype.get=so,Oe.prototype.has=io,Oe.prototype.set=ao;function Ae(s){this.__data__=new le(s)}function co(){this.__data__=new le}function lo(s){return this.__data__.delete(s)}function uo(s){return this.__data__.get(s)}function fo(s){return this.__data__.has(s)}function po(s,p){var m=this.__data__;if(m instanceof le){var S=m.__data__;if(!De||S.length<n-1)return S.push([s,p]),this;m=this.__data__=new Oe(S)}return m.set(s,p),this}Ae.prototype.clear=co,Ae.prototype.delete=lo,Ae.prototype.get=uo,Ae.prototype.has=fo,Ae.prototype.set=po;function Eo(s,p){var m=Et(s)||Mo(s)?Lr(s.length,String):[],S=m.length,H=!!S;for(var K in s)fe.call(s,K)&&!(H&&(K=="length"||xo(K,S)))&&m.push(K);return m}function Yt(s,p,m){var S=s[p];(!(fe.call(s,p)&&Zt(S,m))||m===void 0&&!(p in s))&&(s[p]=m)}function He(s,p){for(var m=s.length;m--;)if(Zt(s[m][0],p))return m;return-1}function ho(s,p){return s&&Xt(p,ht(p),s)}function dt(s,p,m,S,H,K,ue){var Y;if(S&&(Y=K?S(s,H,K,ue):S(s)),Y!==void 0)return Y;if(!Ge(s))return s;var nn=Et(s);if(nn){if(Y=Lo(s),!p)return vo(s,Y)}else{var Ie=Ee(s),rn=Ie==d||Ie==O;if($o(s))return Ao(s,p);if(Ie==l||Ie==i||rn&&!K){if(Mt(s))return K?s:{};if(Y=Uo(rn?{}:s),!p)return Do(s,ho(Y,s))}else{if(!A[Ie])return K?s:{};Y=Po(s,Ie,dt,p)}}ue||(ue=new Ae);var on=ue.get(s);if(on)return on;if(ue.set(s,Y),!nn)var sn=m?Ro(s):ht(s);return de(sn||s,function(mt,qe){sn&&(qe=mt,mt=s[qe]),Yt(Y,qe,dt(mt,p,m,S,qe,s,ue))}),Y}function mo(s){return Ge(s)?Br(s):{}}function go(s,p,m){var S=p(s);return Et(s)?S:st(S,m(s))}function _o(s){return je.call(s)}function To(s){if(!Ge(s)||Co(s))return!1;var p=tn(s)||Mt(s)?kr:B;return p.test(he(s))}function Oo(s){if(!Qt(s))return jr(s);var p=[];for(var m in Object(s))fe.call(s,m)&&m!="constructor"&&p.push(m);return p}function Ao(s,p){if(p)return s.slice();var m=new s.constructor(s.length);return s.copy(m),m}function pt(s){var p=new s.constructor(s.byteLength);return new qt(p).set(new qt(s)),p}function yo(s,p){var m=p?pt(s.buffer):s.buffer;return new s.constructor(m,s.byteOffset,s.byteLength)}function Io(s,p,m){var S=p?m(Ft(s),!0):Ft(s);return Fe(S,te,new s.constructor)}function bo(s){var p=new s.constructor(s.source,W.exec(s));return p.lastIndex=s.lastIndex,p}function wo(s,p,m){var S=p?m($t(s),!0):$t(s);return Fe(S,oe,new s.constructor)}function So(s){return Kt?Object(Kt.call(s)):{}}function No(s,p){var m=p?pt(s.buffer):s.buffer;return new s.constructor(m,s.byteOffset,s.length)}function vo(s,p){var m=-1,S=s.length;for(p||(p=Array(S));++m<S;)p[m]=s[m];return p}function Xt(s,p,m,S){m||(m={});for(var H=-1,K=p.length;++H<K;){var ue=p[H],Y=void 0;Yt(m,ue,Y===void 0?s[ue]:Y)}return m}function Do(s,p){return Xt(s,Jt(s),p)}function Ro(s){return go(s,ht,Jt)}function Ve(s,p){var m=s.__data__;return ko(p)?m[typeof p=="string"?"string":"hash"]:m.map}function ye(s,p){var m=Ur(s,p);return To(m)?m:void 0}var Jt=Wt?it(Wt,Object):Vo,Ee=_o;(ct&&Ee(new ct(new ArrayBuffer(1)))!=G||De&&Ee(new De)!=b||lt&&Ee(lt.resolve())!=h||ut&&Ee(new ut)!=R||ft&&Ee(new ft)!=C)&&(Ee=function(s){var p=je.call(s),m=p==l?s.constructor:void 0,S=m?he(m):void 0;if(S)switch(S){case Hr:return G;case Vr:return b;case Gr:return h;case qr:return R;case Wr:return C}return p});function Lo(s){var p=s.length,m=s.constructor(p);return p&&typeof s[0]=="string"&&fe.call(s,"index")&&(m.index=s.index,m.input=s.input),m}function Uo(s){return typeof s.constructor=="function"&&!Qt(s)?mo(Cr(s)):{}}function Po(s,p,m,S){var H=s.constructor;switch(p){case $:return pt(s);case u:case T:return new H(+s);case G:return yo(s,S);case F:case ie:case Q:case ae:case ce:case re:case N:case L:case P:return No(s,S);case b:return Io(s,S,m);case _:case k:return new H(s);case g:return bo(s);case R:return wo(s,S,m);case U:return So(s)}}function xo(s,p){return p=p??o,!!p&&(typeof s=="number"||Z.test(s))&&s>-1&&s%1==0&&s<p}function ko(s){var p=typeof s;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?s!=="__proto__":s===null}function Co(s){return!!jt&&jt in s}function Qt(s){var p=s&&s.constructor,m=typeof p=="function"&&p.prototype||$e;return s===m}function he(s){if(s!=null){try{return Ht.call(s)}catch{}try{return s+""}catch{}}return""}function Bo(s){return dt(s,!0,!0)}function Zt(s,p){return s===p||s!==s&&p!==p}function Mo(s){return Fo(s)&&fe.call(s,"callee")&&(!Mr.call(s,"callee")||je.call(s)==i)}var Et=Array.isArray;function en(s){return s!=null&&jo(s.length)&&!tn(s)}function Fo(s){return Ho(s)&&en(s)}var $o=$r||Go;function tn(s){var p=Ge(s)?je.call(s):"";return p==d||p==O}function jo(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=o}function Ge(s){var p=typeof s;return!!s&&(p=="object"||p=="function")}function Ho(s){return!!s&&typeof s=="object"}function ht(s){return en(s)?Eo(s):Oo(s)}function Vo(){return[]}function Go(){return!1}e.exports=Bo}(Pe,Pe.exports)),Pe.exports}var ts=es();const be=Zo(ts);function Xn(e,t){return function(){return e.apply(t,arguments)}}const{toString:ns}=Object.prototype,{getPrototypeOf:Lt}=Object,{iterator:et,toStringTag:Jn}=Symbol,tt=(e=>t=>{const n=ns.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ne=e=>(e=e.toLowerCase(),t=>tt(t)===e),nt=e=>t=>typeof t===e,{isArray:Se}=Array,we=nt("undefined");function ke(e){return e!==null&&!we(e)&&e.constructor!==null&&!we(e.constructor)&&X(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Qn=ne("ArrayBuffer");function rs(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qn(e.buffer),t}const os=nt("string"),X=nt("function"),Zn=nt("number"),Ce=e=>e!==null&&typeof e=="object",ss=e=>e===!0||e===!1,Ke=e=>{if(tt(e)!=="object")return!1;const t=Lt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Jn in e)&&!(et in e)},is=e=>{if(!Ce(e)||ke(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},as=ne("Date"),cs=ne("File"),ls=ne("Blob"),us=ne("FileList"),fs=e=>Ce(e)&&X(e.pipe),ds=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||X(e.append)&&((t=tt(e))==="formdata"||t==="object"&&X(e.toString)&&e.toString()==="[object FormData]"))},ps=ne("URLSearchParams"),[Es,hs,ms,gs]=["ReadableStream","Request","Response","Headers"].map(ne),_s=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Be(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Se(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ke(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let u;for(r=0;r<a;r++)u=i[r],t.call(null,e[u],u,e)}}function er(e,t){if(ke(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ge=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tr=e=>!we(e)&&e!==ge;function bt(){const{caseless:e,skipUndefined:t}=tr(this)&&this||{},n={},r=(o,i)=>{const a=e&&er(n,i)||i;Ke(n[a])&&Ke(o)?n[a]=bt(n[a],o):Ke(o)?n[a]=bt({},o):Se(o)?n[a]=o.slice():(!t||!we(o))&&(n[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Be(arguments[o],r);return n}const Ts=(e,t,n,{allOwnKeys:r}={})=>(Be(t,(o,i)=>{n&&X(o)?e[i]=Xn(o,n):e[i]=o},{allOwnKeys:r}),e),Os=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),As=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ys=(e,t,n,r)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=n!==!1&&Lt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Is=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},bs=e=>{if(!e)return null;if(Se(e))return e;let t=e.length;if(!Zn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ws=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Lt(Uint8Array)),Ss=(e,t)=>{const r=(e&&e[et]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Ns=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},vs=ne("HTMLFormElement"),Ds=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Rn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Rs=ne("RegExp"),nr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Be(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Ls=e=>{nr(e,(t,n)=>{if(X(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(X(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Us=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Se(e)?r(e):r(String(e).split(t)),n},Ps=()=>{},xs=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ks(e){return!!(e&&X(e.append)&&e[Jn]==="FormData"&&e[et])}const Cs=e=>{const t=new Array(10),n=(r,o)=>{if(Ce(r)){if(t.indexOf(r)>=0)return;if(ke(r))return r;if(!("toJSON"in r)){t[o]=r;const i=Se(r)?[]:{};return Be(r,(a,u)=>{const T=n(a,o+1);!we(T)&&(i[u]=T)}),t[o]=void 0,i}}return r};return n(e,0)},Bs=ne("AsyncFunction"),Ms=e=>e&&(Ce(e)||X(e))&&X(e.then)&&X(e.catch),rr=((e,t)=>e?setImmediate:t?((n,r)=>(ge.addEventListener("message",({source:o,data:i})=>{o===ge&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ge.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",X(ge.postMessage)),Fs=typeof queueMicrotask<"u"?queueMicrotask.bind(ge):typeof process<"u"&&process.nextTick||rr,$s=e=>e!=null&&X(e[et]),E={isArray:Se,isArrayBuffer:Qn,isBuffer:ke,isFormData:ds,isArrayBufferView:rs,isString:os,isNumber:Zn,isBoolean:ss,isObject:Ce,isPlainObject:Ke,isEmptyObject:is,isReadableStream:Es,isRequest:hs,isResponse:ms,isHeaders:gs,isUndefined:we,isDate:as,isFile:cs,isBlob:ls,isRegExp:Rs,isFunction:X,isStream:fs,isURLSearchParams:ps,isTypedArray:ws,isFileList:us,forEach:Be,merge:bt,extend:Ts,trim:_s,stripBOM:Os,inherits:As,toFlatObject:ys,kindOf:tt,kindOfTest:ne,endsWith:Is,toArray:bs,forEachEntry:Ss,matchAll:Ns,isHTMLForm:vs,hasOwnProperty:Rn,hasOwnProp:Rn,reduceDescriptors:nr,freezeMethods:Ls,toObjectSet:Us,toCamelCase:Ds,noop:Ps,toFiniteNumber:xs,findKey:er,global:ge,isContextDefined:tr,isSpecCompliantForm:ks,toJSONObject:Cs,isAsyncFn:Bs,isThenable:Ms,setImmediate:rr,asap:Fs,isIterable:$s};function D(e,t,n,r,o){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),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}E.inherits(D,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:E.toJSONObject(this.config),code:this.code,status:this.status}}});const or=D.prototype,sr={};["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=>{sr[e]={value:e}});Object.defineProperties(D,sr);Object.defineProperty(or,"isAxiosError",{value:!0});D.from=(e,t,n,r,o,i)=>{const a=Object.create(or);E.toFlatObject(e,a,function(d){return d!==Error.prototype},f=>f!=="isAxiosError");const u=e&&e.message?e.message:"Error",T=t==null&&e?e.code:t;return D.call(a,u,T,n,r,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const js=null;function wt(e){return E.isPlainObject(e)||E.isArray(e)}function ir(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function Ln(e,t,n){return e?e.concat(t).map(function(o,i){return o=ir(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Hs(e){return E.isArray(e)&&!e.some(wt)}const Vs=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function rt(e,t,n){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!E.isUndefined(g[h])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,T=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(o))throw new TypeError("visitor must be a function");function f(l){if(l===null)return"";if(E.isDate(l))return l.toISOString();if(E.isBoolean(l))return l.toString();if(!T&&E.isBlob(l))throw new D("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(l)||E.isTypedArray(l)?T&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function d(l,h,g){let R=l;if(l&&!g&&typeof l=="object"){if(E.endsWith(h,"{}"))h=r?h:h.slice(0,-2),l=JSON.stringify(l);else if(E.isArray(l)&&Hs(l)||(E.isFileList(l)||E.endsWith(h,"[]"))&&(R=E.toArray(l)))return h=ir(h),R.forEach(function(U,C){!(E.isUndefined(U)||U===null)&&t.append(a===!0?Ln([h],C,i):a===null?h:h+"[]",f(U))}),!1}return wt(l)?!0:(t.append(Ln(g,h,i),f(l)),!1)}const O=[],b=Object.assign(Vs,{defaultVisitor:d,convertValue:f,isVisitable:wt});function _(l,h){if(!E.isUndefined(l)){if(O.indexOf(l)!==-1)throw Error("Circular reference detected in "+h.join("."));O.push(l),E.forEach(l,function(R,k){(!(E.isUndefined(R)||R===null)&&o.call(t,R,E.isString(k)?k.trim():k,h,b))===!0&&_(R,h?h.concat(k):[k])}),O.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return _(e),t}function Un(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ut(e,t){this._pairs=[],e&&rt(e,this,t)}const ar=Ut.prototype;ar.append=function(t,n){this._pairs.push([t,n])};ar.toString=function(t){const n=t?function(r){return t.call(this,r,Un)}:Un;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Gs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function cr(e,t,n){if(!t)return e;const r=n&&n.encode||Gs;E.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=E.isURLSearchParams(t)?t.toString():new Ut(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Pn{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){E.forEach(this.handlers,function(r){r!==null&&t(r)})}}const lr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qs=typeof URLSearchParams<"u"?URLSearchParams:Ut,Ws=typeof FormData<"u"?FormData:null,zs=typeof Blob<"u"?Blob:null,Ks={isBrowser:!0,classes:{URLSearchParams:qs,FormData:Ws,Blob:zs},protocols:["http","https","file","blob","url","data"]},Pt=typeof window<"u"&&typeof document<"u",St=typeof navigator=="object"&&navigator||void 0,Ys=Pt&&(!St||["ReactNative","NativeScript","NS"].indexOf(St.product)<0),Xs=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Js=Pt&&window.location.href||"http://localhost",Qs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pt,hasStandardBrowserEnv:Ys,hasStandardBrowserWebWorkerEnv:Xs,navigator:St,origin:Js},Symbol.toStringTag,{value:"Module"})),q={...Qs,...Ks};function Zs(e,t){return rt(e,new q.classes.URLSearchParams,{visitor:function(n,r,o,i){return q.isNode&&E.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function ei(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ti(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function ur(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const u=Number.isFinite(+a),T=i>=n.length;return a=!a&&E.isArray(o)?o.length:a,T?(E.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!u):((!o[a]||!E.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&E.isArray(o[a])&&(o[a]=ti(o[a])),!u)}if(E.isFormData(e)&&E.isFunction(e.entries)){const n={};return E.forEachEntry(e,(r,o)=>{t(ei(r),o,n,0)}),n}return null}function ni(e,t,n){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Me={transitional:lr,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=E.isObject(t);if(i&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return o?JSON.stringify(ur(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Zs(t,this.formSerializer).toString();if((u=E.isFileList(t))||r.indexOf("multipart/form-data")>-1){const T=this.env&&this.env.FormData;return rt(u?{"files[]":t}:t,T&&new T,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),ni(t)):t}],transformResponse:[function(t){const n=this.transitional||Me.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(u){if(a)throw u.name==="SyntaxError"?D.from(u,D.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:q.classes.FormData,Blob:q.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Me.headers[e]={}});const ri=E.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"]),oi=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
2
|
+
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&ri[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},xn=Symbol("internals");function Le(e){return e&&String(e).trim().toLowerCase()}function Ye(e){return e===!1||e==null?e:E.isArray(e)?e.map(Ye):String(e)}function si(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ii=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Tt(e,t,n,r,o){if(E.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!E.isString(t)){if(E.isString(r))return t.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(t)}}function ai(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ci(e,t){const n=E.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let J=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(u,T,f){const d=Le(T);if(!d)throw new Error("header name must be a non-empty string");const O=E.findKey(o,d);(!O||o[O]===void 0||f===!0||f===void 0&&o[O]!==!1)&&(o[O||T]=Ye(u))}const a=(u,T)=>E.forEach(u,(f,d)=>i(f,d,T));if(E.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(E.isString(t)&&(t=t.trim())&&!ii(t))a(oi(t),n);else if(E.isObject(t)&&E.isIterable(t)){let u={},T,f;for(const d of t){if(!E.isArray(d))throw TypeError("Object iterator must return a key-value pair");u[f=d[0]]=(T=u[f])?E.isArray(T)?[...T,d[1]]:[T,d[1]]:d[1]}a(u,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Le(t),t){const r=E.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return si(o);if(E.isFunction(n))return n.call(this,o,r);if(E.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Le(t),t){const r=E.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Tt(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Le(a),a){const u=E.findKey(r,a);u&&(!n||Tt(r,r[u],u,n))&&(delete r[u],o=!0)}}return E.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Tt(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return E.forEach(this,(o,i)=>{const a=E.findKey(r,i);if(a){n[a]=Ye(o),delete n[i];return}const u=t?ai(i):String(i).trim();u!==i&&delete n[i],n[u]=Ye(o),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return E.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&E.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[xn]=this[xn]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Le(a);r[u]||(ci(o,a),r[u]=!0)}return E.isArray(t)?t.forEach(i):i(t),this}};J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(J.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});E.freezeMethods(J);function Ot(e,t){const n=this||Me,r=t||n,o=J.from(r.headers);let i=r.data;return E.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function fr(e){return!!(e&&e.__CANCEL__)}function Ne(e,t,n){D.call(this,e??"canceled",D.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(Ne,D,{__CANCEL__:!0});function dr(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new D("Request failed with status code "+n.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function li(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ui(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(T){const f=Date.now(),d=r[i];a||(a=f),n[o]=T,r[o]=f;let O=i,b=0;for(;O!==o;)b+=n[O++],O=O%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-a<t)return;const _=d&&f-d;return _?Math.round(b*1e3/_):void 0}}function fi(e,t){let n=0,r=1e3/t,o,i;const a=(f,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const d=Date.now(),O=d-n;O>=r?a(f,d):(o=f,i||(i=setTimeout(()=>{i=null,a(o)},r-O)))},()=>o&&a(o)]}const Ze=(e,t,n=3)=>{let r=0;const o=ui(50,250);return fi(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,T=a-r,f=o(T),d=a<=u;r=a;const O={loaded:a,total:u,progress:u?a/u:void 0,bytes:T,rate:f||void 0,estimated:f&&u&&d?(u-a)/f:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(O)},n)},kn=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Cn=e=>(...t)=>E.asap(()=>e(...t)),di=q.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,q.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(q.origin),q.navigator&&/(msie|trident)/i.test(q.navigator.userAgent)):()=>!0,pi=q.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];E.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),E.isString(r)&&u.push(`path=${r}`),E.isString(o)&&u.push(`domain=${o}`),i===!0&&u.push("secure"),E.isString(a)&&u.push(`SameSite=${a}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Ei(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hi(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pr(e,t,n){let r=!Ei(t);return e&&(r||n==!1)?hi(e,t):t}const Bn=e=>e instanceof J?{...e}:e;function Te(e,t){t=t||{};const n={};function r(f,d,O,b){return E.isPlainObject(f)&&E.isPlainObject(d)?E.merge.call({caseless:b},f,d):E.isPlainObject(d)?E.merge({},d):E.isArray(d)?d.slice():d}function o(f,d,O,b){if(E.isUndefined(d)){if(!E.isUndefined(f))return r(void 0,f,O,b)}else return r(f,d,O,b)}function i(f,d){if(!E.isUndefined(d))return r(void 0,d)}function a(f,d){if(E.isUndefined(d)){if(!E.isUndefined(f))return r(void 0,f)}else return r(void 0,d)}function u(f,d,O){if(O in t)return r(f,d);if(O in e)return r(void 0,f)}const T={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(f,d,O)=>o(Bn(f),Bn(d),O,!0)};return E.forEach(Object.keys({...e,...t}),function(d){const O=T[d]||o,b=O(e[d],t[d],d);E.isUndefined(b)&&O!==u||(n[d]=b)}),n}const Er=e=>{const t=Te({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;if(t.headers=a=J.from(a),t.url=cr(pr(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),E.isFormData(n)){if(q.hasStandardBrowserEnv||q.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(E.isFunction(n.getHeaders)){const T=n.getHeaders(),f=["content-type","content-length"];Object.entries(T).forEach(([d,O])=>{f.includes(d.toLowerCase())&&a.set(d,O)})}}if(q.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(t)),r||r!==!1&&di(t.url))){const T=o&&i&&pi.read(i);T&&a.set(o,T)}return t},mi=typeof XMLHttpRequest<"u",gi=mi&&function(e){return new Promise(function(n,r){const o=Er(e);let i=o.data;const a=J.from(o.headers).normalize();let{responseType:u,onUploadProgress:T,onDownloadProgress:f}=o,d,O,b,_,l;function h(){_&&_(),l&&l(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function R(){if(!g)return;const U=J.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),$={data:!u||u==="text"||u==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:U,config:e,request:g};dr(function(F){n(F),h()},function(F){r(F),h()},$),g=null}"onloadend"in g?g.onloadend=R:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(R)},g.onabort=function(){g&&(r(new D("Request aborted",D.ECONNABORTED,e,g)),g=null)},g.onerror=function(C){const $=C&&C.message?C.message:"Network Error",G=new D($,D.ERR_NETWORK,e,g);G.event=C||null,r(G),g=null},g.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const $=o.transitional||lr;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new D(C,$.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,e,g)),g=null},i===void 0&&a.setContentType(null),"setRequestHeader"in g&&E.forEach(a.toJSON(),function(C,$){g.setRequestHeader($,C)}),E.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),u&&u!=="json"&&(g.responseType=o.responseType),f&&([b,l]=Ze(f,!0),g.addEventListener("progress",b)),T&&g.upload&&([O,_]=Ze(T),g.upload.addEventListener("progress",O),g.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(d=U=>{g&&(r(!U||U.type?new Ne(null,e,g):U),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const k=li(o.url);if(k&&q.protocols.indexOf(k)===-1){r(new D("Unsupported protocol "+k+":",D.ERR_BAD_REQUEST,e));return}g.send(i||null)})},_i=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(f){if(!o){o=!0,u();const d=f instanceof Error?f:this.reason;r.abort(d instanceof D?d:new Ne(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new D(`timeout ${t} of ms exceeded`,D.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:T}=r;return T.unsubscribe=()=>E.asap(u),T}},Ti=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Oi=async function*(e,t){for await(const n of Ai(e))yield*Ti(n,t)},Ai=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Mn=(e,t,n,r)=>{const o=Oi(e,t);let i=0,a,u=T=>{a||(a=!0,r&&r(T))};return new ReadableStream({async pull(T){try{const{done:f,value:d}=await o.next();if(f){u(),T.close();return}let O=d.byteLength;if(n){let b=i+=O;n(b)}T.enqueue(new Uint8Array(d))}catch(f){throw u(f),f}},cancel(T){return u(T),o.return()}},{highWaterMark:2})},Fn=64*1024,{isFunction:ze}=E,yi=(({Request:e,Response:t})=>({Request:e,Response:t}))(E.global),{ReadableStream:$n,TextEncoder:jn}=E.global,Hn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ii=e=>{e=E.merge.call({skipUndefined:!0},yi,e);const{fetch:t,Request:n,Response:r}=e,o=t?ze(t):typeof fetch=="function",i=ze(n),a=ze(r);if(!o)return!1;const u=o&&ze($n),T=o&&(typeof jn=="function"?(l=>h=>l.encode(h))(new jn):async l=>new Uint8Array(await new n(l).arrayBuffer())),f=i&&u&&Hn(()=>{let l=!1;const h=new n(q.origin,{body:new $n,method:"POST",get duplex(){return l=!0,"half"}}).headers.has("Content-Type");return l&&!h}),d=a&&u&&Hn(()=>E.isReadableStream(new r("").body)),O={stream:d&&(l=>l.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(l=>{!O[l]&&(O[l]=(h,g)=>{let R=h&&h[l];if(R)return R.call(h);throw new D(`Response type '${l}' is not supported`,D.ERR_NOT_SUPPORT,g)})});const b=async l=>{if(l==null)return 0;if(E.isBlob(l))return l.size;if(E.isSpecCompliantForm(l))return(await new n(q.origin,{method:"POST",body:l}).arrayBuffer()).byteLength;if(E.isArrayBufferView(l)||E.isArrayBuffer(l))return l.byteLength;if(E.isURLSearchParams(l)&&(l=l+""),E.isString(l))return(await T(l)).byteLength},_=async(l,h)=>{const g=E.toFiniteNumber(l.getContentLength());return g??b(h)};return async l=>{let{url:h,method:g,data:R,signal:k,cancelToken:U,timeout:C,onDownloadProgress:$,onUploadProgress:G,responseType:F,headers:ie,withCredentials:Q="same-origin",fetchOptions:ae}=Er(l),ce=t||fetch;F=F?(F+"").toLowerCase():"text";let re=_i([k,U&&U.toAbortSignal()],C),N=null;const L=re&&re.unsubscribe&&(()=>{re.unsubscribe()});let P;try{if(G&&f&&g!=="get"&&g!=="head"&&(P=await _(ie,R))!==0){let I=new n(h,{method:"POST",body:R,duplex:"half"}),w;if(E.isFormData(R)&&(w=I.headers.get("content-type"))&&ie.setContentType(w),I.body){const[y,v]=kn(P,Ze(Cn(G)));R=Mn(I.body,Fn,y,v)}}E.isString(Q)||(Q=Q?"include":"omit");const x=i&&"credentials"in n.prototype,W={...ae,signal:re,method:g.toUpperCase(),headers:ie.normalize().toJSON(),body:R,duplex:"half",credentials:x?Q:void 0};N=i&&new n(h,W);let B=await(i?ce(N,ae):ce(h,W));const Z=d&&(F==="stream"||F==="response");if(d&&($||Z&&L)){const I={};["status","statusText","headers"].forEach(j=>{I[j]=B[j]});const w=E.toFiniteNumber(B.headers.get("content-length")),[y,v]=$&&kn(w,Ze(Cn($),!0))||[];B=new r(Mn(B.body,Fn,y,()=>{v&&v(),L&&L()}),I)}F=F||"text";let A=await O[E.findKey(O,F)||"text"](B,l);return!Z&&L&&L(),await new Promise((I,w)=>{dr(I,w,{data:A,headers:J.from(B.headers),status:B.status,statusText:B.statusText,config:l,request:N})})}catch(x){throw L&&L(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,l,N),{cause:x.cause||x}):D.from(x,x&&x.code,l,N)}}},bi=new Map,hr=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a=i.length,u=a,T,f,d=bi;for(;u--;)T=i[u],f=d.get(T),f===void 0&&d.set(T,f=u?new Map:Ii(t)),d=f;return f};hr();const xt={http:js,xhr:gi,fetch:{get:hr}};E.forEach(xt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vn=e=>`- ${e}`,wi=e=>E.isFunction(e)||e===null||e===!1;function Si(e,t){e=E.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){r=e[a];let u;if(o=r,!wi(r)&&(o=xt[(u=String(r)).toLowerCase()],o===void 0))throw new D(`Unknown adapter '${u}'`);if(o&&(E.isFunction(o)||(o=o.get(t))))break;i[u||"#"+a]=o}if(!o){const a=Object.entries(i).map(([T,f])=>`adapter ${T} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=n?a.length>1?`since :
|
|
4
|
+
`+a.map(Vn).join(`
|
|
5
|
+
`):" "+Vn(a[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o}const mr={getAdapter:Si,adapters:xt};function At(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ne(null,e)}function Gn(e){return At(e),e.headers=J.from(e.headers),e.data=Ot.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mr.getAdapter(e.adapter||Me.adapter,e)(e).then(function(r){return At(e),r.data=Ot.call(e,e.transformResponse,r),r.headers=J.from(r.headers),r},function(r){return fr(r)||(At(e),r&&r.response&&(r.response.data=Ot.call(e,e.transformResponse,r.response),r.response.headers=J.from(r.response.headers))),Promise.reject(r)})}const gr="1.13.2",ot={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ot[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qn={};ot.transitional=function(t,n,r){function o(i,a){return"[Axios v"+gr+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,u)=>{if(t===!1)throw new D(o(a," has been removed"+(n?" in "+n:"")),D.ERR_DEPRECATED);return n&&!qn[a]&&(qn[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,u):!0}};ot.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Ni(e,t,n){if(typeof e!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const u=e[i],T=u===void 0||a(u,i,e);if(T!==!0)throw new D("option "+i+" must be "+T,D.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new D("Unknown option "+i,D.ERR_BAD_OPTION)}}const Xe={assertOptions:Ni,validators:ot},se=Xe.validators;let _e=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Pn,response:new Pn}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Te(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Xe.assertOptions(r,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean)},!1),o!=null&&(E.isFunction(o)?n.paramsSerializer={serialize:o}:Xe.assertOptions(o,{encode:se.function,serialize:se.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Xe.assertOptions(n,{baseUrl:se.spelling("baseURL"),withXsrfToken:se.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&E.merge(i.common,i[n.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],l=>{delete i[l]}),n.headers=J.concat(a,i);const u=[];let T=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(T=T&&h.synchronous,u.unshift(h.fulfilled,h.rejected))});const f=[];this.interceptors.response.forEach(function(h){f.push(h.fulfilled,h.rejected)});let d,O=0,b;if(!T){const l=[Gn.bind(this),void 0];for(l.unshift(...u),l.push(...f),b=l.length,d=Promise.resolve(n);O<b;)d=d.then(l[O++],l[O++]);return d}b=u.length;let _=n;for(;O<b;){const l=u[O++],h=u[O++];try{_=l(_)}catch(g){h.call(this,g);break}}try{d=Gn.call(this,_)}catch(l){return Promise.reject(l)}for(O=0,b=f.length;O<b;)d=d.then(f[O++],f[O++]);return d}getUri(t){t=Te(this.defaults,t);const n=pr(t.baseURL,t.url,t.allowAbsoluteUrls);return cr(n,t.params,t.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(t){_e.prototype[t]=function(n,r){return this.request(Te(r||{},{method:t,url:n,data:(r||{}).data}))}});E.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,u){return this.request(Te(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}_e.prototype[t]=n(),_e.prototype[t+"Form"]=n(!0)});let vi=class _r{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{r.subscribe(u),i=u}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,u){r.reason||(r.reason=new Ne(i,a,u),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new _r(function(o){t=o}),cancel:t}}};function Di(e){return function(n){return e.apply(null,n)}}function Ri(e){return E.isObject(e)&&e.isAxiosError===!0}const Nt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Nt).forEach(([e,t])=>{Nt[t]=e});function Tr(e){const t=new _e(e),n=Xn(_e.prototype.request,t);return E.extend(n,_e.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Tr(Te(e,o))},n}const M=Tr(Me);M.Axios=_e;M.CanceledError=Ne;M.CancelToken=vi;M.isCancel=fr;M.VERSION=gr;M.toFormData=rt;M.AxiosError=D;M.Cancel=M.CanceledError;M.all=function(t){return Promise.all(t)};M.spread=Di;M.isAxiosError=Ri;M.mergeConfig=Te;M.AxiosHeaders=J;M.formToJSON=e=>ur(E.isHTMLForm(e)?new FormData(e):e);M.getAdapter=mr.getAdapter;M.HttpStatusCode=Nt;M.default=M;const{Axios:oa,AxiosError:sa,CanceledError:ia,isCancel:aa,CancelToken:ca,VERSION:la,all:ua,Cancel:fa,isAxiosError:da,spread:pa,toFormData:Ea,AxiosHeaders:ha,HttpStatusCode:ma,formToJSON:ga,getAdapter:_a,mergeConfig:Ta}=M,Or=M.create({withCredentials:!0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"});Or.interceptors.request.use(e=>{const t=document.cookie.split("; ").find(n=>n.startsWith("XSRF-TOKEN="))?.split("=")[1];return t&&(e.headers["X-XSRF-TOKEN"]=decodeURIComponent(t)),e});const kt=()=>{const e=c.inject(Dt);if(!e)throw new Error("[@creopse/vue] Plugin not installed");const t=Xo(e.appUrl||Qo());return{...e,apiBaseUrl:t,apiUrl:`${t}/api`}},ve=()=>{const{apiUrl:e,apiBaseUrl:t,debug:n}=kt(),r=d=>{n&&(d.response?(console.log("data:",d.response.data),console.log("status:",d.response.status),console.log("headers:",d.response.headers)):d.request?console.log("request:",d.request):console.log("error:",d.message),console.log("config:",d.config))},o=async(d,O)=>{let b=!1,_=null,l=null;try{_=await Or.request({method:d.method||"get",params:d.params||{},data:d.data||{},url:d.url||"/",baseURL:d.useApiBaseUrl?t:e,headers:d.headers,...d.responseType&&{responseType:d.responseType}}),b=!0}catch(h){l=h,b=!1,h.response?.status==401?O?.():h.response?.status==419?console.error("CSRF token mismatch"):r(h)}return{success:b,failure:!b,result:_?_.data:null,error:l}};return{request:o,getItemRequest:async d=>await o({url:`/${d.routeBase}/${d.id}`}),postItemRequest:async d=>await o({url:`/${d.routeBase}`,method:"post",data:d.data}),putItemRequest:async d=>await o({url:`/${d.routeBase}/${d.id}`,method:"put",data:d.data}),deleteItemRequest:async d=>await o({url:`/${d.routeBase}/${d.id}`,method:"delete"}),getAllItemsRequest:async d=>await o({url:`/${d.routeBase}`}),handleError:r}},yt=new WeakMap,Li=(...e)=>{var t;const n=e[0],r=(t=c.getCurrentInstance())===null||t===void 0?void 0:t.proxy,o=r??c.getCurrentScope();if(o==null&&!c.hasInjectionContext())throw new Error("injectLocal must be called in setup");return o&&yt.has(o)&&n in yt.get(o)?yt.get(o)[n]:c.inject(...e)},Ui=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Pi=Object.prototype.toString,xi=e=>Pi.call(e)==="[object Object]";function Wn(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function It(e){return Array.isArray(e)?e:[e]}function ki(e,t,n){return c.watch(e,t,{...n,immediate:!0})}const Ar=Ui?window:void 0;function Ci(e){var t;const n=c.toValue(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Bi(...e){const t=(r,o,i,a)=>(r.addEventListener(o,i,a),()=>r.removeEventListener(o,i,a)),n=c.computed(()=>{const r=It(c.toValue(e[0])).filter(o=>o!=null);return r.every(o=>typeof o!="string")?r:void 0});return ki(()=>{var r,o;return[(r=(o=n.value)===null||o===void 0?void 0:o.map(i=>Ci(i)))!==null&&r!==void 0?r:[Ar].filter(i=>i!=null),It(c.toValue(n.value?e[1]:e[0])),It(c.unref(n.value?e[2]:e[1])),c.toValue(n.value?e[3]:e[2])]},([r,o,i,a],u,T)=>{if(!r?.length||!o?.length||!i?.length)return;const f=xi(a)?{...a}:a,d=r.flatMap(O=>o.flatMap(b=>i.map(_=>t(O,b,_,f))));T(()=>{d.forEach(O=>O())})},{flush:"post"})}function Mi(){const e=c.shallowRef(!1),t=c.getCurrentInstance();return t&&c.onMounted(()=>{e.value=!0},t),e}function Fi(e){const t=Mi();return c.computed(()=>(t.value,!!e()))}const $i=Symbol("vueuse-ssr-width");function ji(){const e=c.hasInjectionContext()?Li($i,null):null;return typeof e=="number"?e:void 0}function Ue(e,t={}){const{window:n=Ar,ssrWidth:r=ji()}=t,o=Fi(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=c.shallowRef(typeof r=="number"),a=c.shallowRef(),u=c.shallowRef(!1),T=f=>{u.value=f.matches};return c.watchEffect(()=>{if(i.value){i.value=!o.value,u.value=c.toValue(e).split(",").some(f=>{const d=f.includes("not all"),O=f.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),b=f.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let _=!!(O||b);return O&&_&&(_=r>=Wn(O[1])),b&&_&&(_=r<=Wn(b[1])),d?!_:_});return}o.value&&(a.value=n.matchMedia(c.toValue(e)),u.value=a.value.matches)}),Bi(a,"change",T,{passive:!0}),c.computed(()=>u.value)}const xe=()=>{const e=c.inject(vt);return e?e.getState().props:(console.warn("[@creopse/vue] Using native Inertia props - live preview disabled"),usePage().props)},Ct=()=>{const e=xe(),t=Kn.usePage(),n=c.inject(Rt),r=c.inject(Dt),{request:o}=ve(),{apiBaseUrl:i,langKey:a}=kt(),u=c.computed(()=>t.url),T=N=>_t(N)?N:`${i}/${Jo(N)}`,f=N=>N?_t(N)?N:`${i}/storage/${N}`:"",d=async(N,L="original")=>{const P=["small","medium","large"],x=N.split("/").pop();let W=!1;for(let B=0;B<P.length;B++)if(P[B]===L&&(W=!0),W)try{const Z=f(`thumbnails/${P[B]}/${x}`);if((await M.head(Z)).status===200)return Z}catch{}return f(N)},O=(N,L)=>{let P,x=(window.navigator.language||window.navigator.userLanguage)?.split("-")[0];e.userData&&e.userData.preferences&&e.userData.preferences.locale&&(x=e.userData.preferences.locale),L||(L=localStorage.getItem(a)||(r?.useUserLocaleAsFallback?x:!1)||e.appLocale||r?.locale||"en");try{P=JSON.parse(N)}catch{P={}}return P&&(P[L.toUpperCase()]||P[L])||""},b=(N,L)=>O(N,L),_=(N,L)=>{if(!N)return"";let P=O(N,L).replace(new RegExp("{{BASE_URL}}article","g"),`${i}/article`).replace(new RegExp("{{BASE_URL}}","g"),`${i}/storage`);const x=P.match(/\[audio\](.*?)\[\/?audio\]/g),W=P.match(/\[video\](.*?)\[\/?video\]/g);return x?.forEach(B=>{const Z=B.replace(/\[\/?audio\]/g,"");P=P.replace(B,`<br><p><audio preload="all" controls style="width: 100%"><source src="${f(Z)}"></audio></p><br>`)}),W?.forEach(B=>{const Z=B.replace(/\[\/?video\]/g,"");P=P.replace(B,`<br><p><video controls style="width: 100%"><source src="${f(Z)}"></video></p><br>`)}),P},l=(N,L)=>_(N,L),h=Ue("(min-width: 1536px)"),g=Ue("(min-width: 1280px) and (max-width: 1535px)"),R=Ue("(min-width: 1024px) and (max-width: 1279px)"),k=Ue("(min-width: 768px) and (max-width: 1023px)"),U=Ue("(max-width: 767px)"),C=[{label:"Français",value:"fr",flag:"flag:fr-1x1"},{label:"English",value:"en",flag:"flag:gb-1x1"}];return{is2XlScreen:h,isXlScreen:g,isLgScreen:R,isMdScreen:k,isSmScreen:U,getTranslation:O,getLangageLabel:N=>C.find(L=>L.value==N)?.label,getLanguageValue:N=>C.find(L=>L.label==N)?.value,ckEditorToolbarItems:["fullScreen","|","heading","|","uploadImage","|","bold","italic","underline","strikethrough","code","subscript","superscript","selectAll","|","fontSize","fontFamily","fontColor","fontBackgroundColor","|","horizontalLine","blockQuote","bulletedList","numberedList","alignment","|","outdent","indent","|","link","insertTable","mediaEmbed","|","undo","redo"],displayFormErrors:(N,L)=>{if(N)for(const[P,x]of Object.entries(N))for(const W of x)L(W)},resolveHtmlLinks:_,resolveUrl:T,updateLang:async(N,L=!0,P=!0)=>{if(localStorage.setItem(a,N),e.isUserLoggedIn&&P){const x=e.userData?.preferences||{inAppNotifEnabled:Je.TRUE,emailNotifEnabled:Je.TRUE,locale:N};x.locale=N,await o({url:`/users/self/${e.userData?.id}`,method:"put",data:{preferences:x}})}L&&location.reload()},languages:C,getImage:d,fileUrl:f,currentRoutePath:u,openLink:N=>{_t(N)?window.open(N,"_blank"):n?.get(N)},openMenu:N=>{switch(N?.targetType){case Qe.EXTERNAL_LINK:window.open(N?.url??"#");break;case Qe.PAGE_LINK:n?.get(N?.path??"/");break}},getMenuHref:N=>N?.targetType==="external-link"?N?.url||"":N?.path||"",rHtml:l,tr:b}},yr=()=>{const{request:e}=ve(),{fileUrl:t}=Ct(),n=xe(),r=Kn.usePage(),o=n.pageData,i=n.article,a=n.category,u=n.tag,T=n.contentModelItem,f=A=>{if(!A)return null;const I=A.split("__"),w=I.length?I[0]:"",y=I.length>1?I[1]:"";return n.pageData?.sections?.find(v=>v.slug==w&&v.pivot?.linkId==y)?.pivot?.data||null},d=A=>f(A)?.index,O=A=>{if(!A)return null;const I=A.split("__"),w=I.length?I[0]:"",y=I.length>1?I[1]:"";return n.pageData?.sections?.find(v=>v.slug==w&&v.pivot?.linkId==y)?.pivot?.settings||null},b=(A,I)=>O(A)?.[I],_=(A,I,w)=>b(A,I)?.[w],l=async(A,I,w="default")=>{const y=await e({url:`section-data/${A}/source/${I}/link/${w}`});return y.success&&y.result?y.result.data:null},h=A=>n?.contentModels?.find(I=>I.name===A),g=A=>{const{index:I,...w}=A.contentModelData;return{...A,data:{...A.contentModelData?.index,...w}}},R=async(A,I=!0)=>{const w=await e({url:`content-model/items?contentModelName=${A}${I?"&isActive=true":""}`});return w.success&&w.result?(w.result.data||[]).map(y=>g(y)):[]},k=async(A,I,w,y=!0,v,j)=>{const z=new URLSearchParams({page:String(I),pageSize:String(w),contentModelName:A});y&&z.append("isActive","true"),v&&z.append("query",v),j?.length&&j.forEach((oe,de)=>{z.append(`dataFilters[${de}][key]`,oe.key),z.append(`dataFilters[${de}][value]`,oe.value),oe.operator&&z.append(`dataFilters[${de}][operator]`,oe.operator)});const te=await e({url:`content-model/items?${z.toString()}`});if(te.success&&te.result){const oe=(te.result.data?.items||[]).map(Fe=>g(Fe)),de=te.result.data?.meta?.total||0,st=te.result.data?.meta?.currentPage||1;return{items:oe,total:de,currentPage:st}}return{items:[],total:0,currentPage:1}},U=async(A,I,w={},y={},v=void 0,j=void 0)=>{const z=await e({url:"/content-model/user-items",method:"post",data:{title:A,contentModelId:I,contentModelData:{index:{...w},...y}}});return z.failure&&z.error?j&&j(z.error?.response?.data):v&&v(),z},C=(A,I)=>{const w=n?.permalinks||[];switch(A){case"news-article":case"news-category":case"news-tag":{const y=w?.find(v=>v.contentType===A);return y?`${y.pathPrefix}/${y.contentParam?I[y.contentParam]:I.id}`:""}default:{const y=w?.find(v=>v.content?.name===A);return y?`${y.pathPrefix}/${y.contentParam?y.contentParam=="id"?I.id:I?.data[y.contentParam]:I.id}`:""}}},$=(A,I=!0)=>{const w=be(n?.menus?.find(y=>y.name===A));return w&&(w.items=be(w.items?.filter(y=>!I||y.isActive)?.sort((y,v)=>y.position-v.position))),w},G=(A,I=!0)=>{const w=be(n?.menus?.find(y=>y.location?.name===A));return w&&(w.items=be(w.items?.filter(y=>!I||y.isActive)?.sort((y,v)=>y.position-v.position))),w},F=(A,I=!0)=>$(A)?.items?.filter(w=>!I||w.isVisible)?.sort((w,y)=>w.position-y.position),ie=A=>{const I=[];return(n?.menus||[]).forEach(y=>{Array.isArray(y.items)&&I.push(...y.items)}),I.find(y=>y.id===A)},Q=(A,I=!0)=>G(A)?.items?.filter(w=>!I||w.isVisible)?.sort((w,y)=>w.position-y.position),ae=(A,I=!1,w=!0)=>{const y=[],v=I?Q(A,w):F(A,w);if(v){for(const j of v)if(!y.find(te=>te.id===j.menuItemGroupId)){const te=n?.menuItemGroups?.find(oe=>oe.id===j.menuItemGroupId);te&&y.push(te)}}return y},ce=(A,I,w=!1,y=!0)=>(w?Q(A,y):F(A,y))?.filter(j=>j.menuItemGroupId===I),re=(A,I=!1,w=!0)=>ae(A,I).map(v=>({group:v,items:ce(A,v.id||0,I,w)})),N=(A,I=!1,w=!0)=>(I?Q(A,w):F(A,w))?.filter(v=>!v.menuItemGroupId),L=(A,I="string")=>{const y=n.appInformation.find(j=>j.key===A);let v="";switch(I){case"number":v=y&&parseInt(y.value)&&!isNaN(parseInt(y.value))?parseInt(y.value):0;break;case"boolean":v=y&&!isNaN(parseInt(y.value))&&parseInt(y.value)>0;break;case"object":v=y&&y.value?JSON.parse(y.value):{};break;case"array":v=y&&y.value?JSON.parse(y.value):[];break;default:v=y&&y.value?y.value:"";break}return v},P=c.computed(()=>L("primaryColor")||"#005B97"),x=c.computed(()=>L("secondaryColor")||"#1E9CD7"),W=c.computed(()=>L("accentColor")||"#FF6501"),B=c.computed(()=>{const A=L("icon");return t(A)||""});return{logo:c.computed(()=>{const A=L("logo");return t(A)||""}),icon:B,page:r,pageData:o,newsArticle:i,newsCategory:a,newsTag:u,contentModelItem:T,getMenu:$,getMenuByLocation:G,getMenuItems:F,getMenuItemById:ie,getMenuItemsByLocation:Q,getMenuGroups:ae,getMenuItemsByGroup:ce,getMenuGroupedItems:re,getMenuUngroupedItems:N,getSectionData:f,getSectionSettings:O,getSectionSettingsGroup:b,getSectionSetting:_,getAnySectionData:l,getSectionRootData:d,getContentPath:C,getContentModel:h,getContentModelItems:R,getPaginatedContentModelItems:k,getAppInformationValue:L,submitUserContentModelItem:U,formatContentModelItemData:g,appAccentColor:W,appPrimaryColor:P,appSecondaryColor:x}},zn=()=>{const e=r=>{const o={};if(!r)throw new Error("[@creopse/vue] resolveSections is required");const i=r();for(const[u,T]of Object.entries(i)){var a=u.replace(/^\.\/(.*)\.\w+$/,"$1");const f=a.split("/"),d=f[f.length-1]?.split(".")[0];o[d]=T.default}return o},t=r=>{const o=r.pageData?.sections,i=r.pageData?.sectionsOrder,a=[];if(Array.isArray(o)&&Array.isArray(i)){for(const u of i)if(u){const T=o.find(f=>`${f.slug}__${f.pivot?.linkId}`===u);T&&a.push(T)}}return a.length?a:o||[]};return{getComponents:e,getSectionsInOrder:t,getFinalPageSections:r=>{const o=t(r),i=r.pageData?.sectionsDisabled;return o.filter(a=>!i?.includes(`${a.slug}__${a.pivot?.linkId}`))}}},Hi=["id"],Vi=c.defineComponent({__name:"Core",setup(e){const{page:t}=yr(),n=c.ref(zn());var r=n.value.getFinalPageSections(xe()),o=n.value.getComponents(c.inject(Yn));c.onMounted(()=>{setTimeout(()=>{const O=t.props.sectionData;O&&r.find(b=>b.slug==O.slug&&b.pivot?.linkId==O.pivot?.linkId)&&dn(`${O.slug}__${O.pivot?.linkId}-container`)},1e3)});const i=c.ref(me()),a=c.ref({}),u=()=>{r.forEach(O=>{a.value[`${O.slug}__${O.pivot?.linkId}-key`]=me()})};u();const T=c.ref({}),f=be(xe()),d=c.inject(vt);return c.onMounted(()=>{const O=()=>{if(document.addEventListener("click",h=>{const g=h.target.closest("a");if(g)return h.preventDefault(),h.stopPropagation(),h.stopImmediatePropagation(),console.debug("🚫 Navigation blocked:",g.href),!1},!0),["assign","replace"].forEach(h=>{Object.getOwnPropertyDescriptor(window.location,h)?.configurable!==!1&&Object.defineProperty(window.location,h,{value:function(){console.debug(`🚫 location.${h}() blocked`)},writable:!1,configurable:!1})}),Object.getOwnPropertyDescriptor(window.location,"href")?.configurable!==!1){const h=window.location.href;Object.defineProperty(window.location,"href",{get:()=>h,set:g=>{console.debug("🚫 location.href = blocked:",g)},configurable:!1})}window.open=function(){return console.debug("🚫 window.open() blocked"),null},["pushState","replaceState"].forEach(h=>{history[h]=function(){console.debug(`🚫 history.${h}() blocked`)}}),document.addEventListener("submit",h=>{h.preventDefault(),console.debug("🚫 Form submission blocked")},!0),console.debug("✅ Navigation lock activated")},b=()=>{Object.keys(T.value).forEach(l=>{T.value[l].isActive=!1;const h=document.getElementById(l);h&&(h.style.border="none",h.style.boxShadow="none")})},_=l=>{switch(l.data?.type){case ee.RELOAD:sessionStorage.setItem("shouldNotifyReload","1"),sessionStorage.setItem("replyOrigin",l.origin),window.location.reload();break;case ee.ENABLE_EDITION_MODE:{const h=l.data?.primaryColor??"blue";sessionStorage.setItem("replyOrigin",l.origin),sessionStorage.setItem("primaryColor",h),r?.forEach((g,R)=>{if(g.slug&&g.pivot?.linkId){const k=`${g.slug}__${g.pivot?.linkId}-container`,U=document.getElementById(k);U&&(T.value[k]={element:U,clickCount:0,isActive:!1},U.addEventListener("click",function(C){b(),T.value[this.id].clickCount++,T.value[this.id].isActive=!0,this.style.border=`5px solid ${h}`,this.style.boxShadow=`0 0 10px ${h}`,window.parent.postMessage({type:ee.SELECT_PREVIEW_SECTION,slug:g.slug,linkId:g.pivot?.linkId},l.origin)}),U.style.cursor="pointer",U.style.transition="all 0.3s ease")}}),O();break}case ee.DESELECT_ALL_SECTIONS:b();break;case ee.SELECT_SIDEBAR_SECTION:{setTimeout(()=>{r.find(R=>R.slug==l.data?.slug&&R.pivot?.linkId==l.data?.linkId)&&dn(`${l.data?.slug}__${l.data?.linkId}-container`)},1e3);const h=`${l.data?.slug}__${l.data?.linkId}-container`,g=document.getElementById(h);g&&(b(),T.value[h].clickCount++,T.value[h].isActive=!0,g.style.border=`5px solid ${sessionStorage.getItem("primaryColor")}`,g.style.boxShadow=`0 0 10px ${sessionStorage.getItem("primaryColor")}`);break}case ee.SEND_BASE_SECTION_SETTINGS:case ee.SEND_SECTION_SETTINGS:{const h=f.pageData?.sections?.findIndex(g=>g.slug==l.data?.slug&&g.pivot?.linkId==l.data?.linkId);if(typeof h!="number")return;h>-1&&f.pageData?.sections&&f.pageData?.sections[h].pivot?.settings&&(f.pageData.sections[h].pivot.settings=l.data?.settings,d?.sync(f),a.value[`${l.data?.slug}__${l.data?.linkId}-key`]=me())}break;case ee.SEND_BASE_SECTION_DATA:case ee.SEND_SECTION_DATA:{const h=f.pageData?.sections?.findIndex(g=>g.slug==l.data?.slug&&g.pivot?.linkId==l.data?.linkId);if(typeof h!="number")return;h>-1&&f.pageData?.sections&&f.pageData?.sections[h].pivot?.data&&(f.pageData.sections[h].pivot.data=l.data?.data,d?.sync(f),a.value[`${l.data?.slug}__${l.data?.linkId}-key`]=me())}break;case ee.SEND_PAGE_SECTIONS:{if(!f.pageData)return;f.pageData.sectionsOrder=l.data?.sectionsOrder,f.pageData.sectionsDisabled=l.data?.sectionsDisabled;const h=be(f.pageData.sections||[]);f.pageData.sections=l.data?.sectionsList||[],h.forEach(g=>{const R=f.pageData?.sections?.findIndex(k=>k.slug==g?.slug&&k.pivot?.linkId==g.pivot?.linkId);typeof R=="number"&&R>-1&&f.pageData?.sections?.[R].pivot&&(f.pageData.sections[R].pivot.data=g.pivot?.data,f.pageData.sections[R].pivot.settings=g.pivot?.settings)}),d?.sync(f),n.value=zn(),r=n.value.getFinalPageSections(d?.getState().props),u(),i.value=me()}break}};if(window.addEventListener("message",_),sessionStorage.getItem("shouldNotifyReload")==="1"){const l=sessionStorage.getItem("replyOrigin")||"*";window.parent.postMessage({type:ee.RELOAD_COMPLETE},l),sessionStorage.removeItem("shouldNotifyReload"),sessionStorage.removeItem("replyOrigin")}}),(O,b)=>(c.openBlock(),c.createElementBlock("div",{key:c.unref(i),class:"reset-styles"},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(r),_=>(c.openBlock(),c.createElementBlock("section",{key:`${_.slug}__${_.pivot?.linkId}`,id:`${_.slug}__${_.pivot?.linkId}-container`,class:"reset-styles"},[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(c.unref(o)[_.name]),{key:c.unref(a)[`${_.slug}__${_.pivot?.linkId}-key`],data:_.pivot?.data,settings:_.pivot?.settings,"section-key":`${_.slug}__${_.pivot?.linkId}`,metadata:{slug:_.slug,name:_.name,title:_.title,linkId:_.pivot?.linkId,createdAt:_.createdAt,updatedAt:_.updatedAt}},null,8,["data","settings","section-key","metadata"]))],8,Hi))),128))]))}}),Ir=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Gi=Ir(Vi,[["__scopeId","data-v-ecceed8b"]]),br=c.defineComponent({__name:"index",setup(e){const t=c.inject(Rt),n=c.ref(me());return t?.on("navigate",r=>{n.value=me()}),(r,o)=>(c.openBlock(),c.createBlock(Gi,{key:c.unref(n)}))}}),qi=["src","alt","title","width","height","loading"],Bt=c.defineComponent({__name:"AsyncImg",props:{load:{type:Function},alt:{},width:{},height:{},title:{},loading:{},style:{}},setup(e){const t=e,n=c.ref("");return(async()=>{n.value=await t.load()})(),(o,i)=>(c.openBlock(),c.createElementBlock("img",{src:c.unref(n),alt:t.alt,title:t.title,style:c.normalizeStyle(t.style),width:t.width,height:t.height,loading:t.loading},null,12,qi))}}),Wi=c.defineComponent({__name:"CustomTransition",props:{name:{default:"fade"},mode:{default:"out-in"},appear:{type:Boolean,default:!1}},setup(e){const t=e;return(n,r)=>(c.openBlock(),c.createBlock(c.Transition,{name:t.name,mode:t.mode,appear:t.appear},{default:c.withCtx(()=>[c.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["name","mode","appear"]))}}),wr=Ir(Wi,[["__scopeId","data-v-30b5e62e"]]),zi=["src"],Sr=c.defineComponent({__name:"Image",props:{src:{},alt:{default:""},width:{default:void 0},height:{default:void 0},title:{default:void 0},loading:{default:void 0},style:{default:void 0},size:{default:"original"},sync:{type:Boolean,default:!1}},setup(e){const t=e,{getImage:n}=Ct(),{src:r,size:o,sync:i}=c.toRefs(t),a=c.computed(()=>{const{src:u,size:T,sync:f,...d}=t;return d});return(u,T)=>{const f=Bt;return c.unref(i)?(c.openBlock(),c.createElementBlock("img",c.mergeProps({key:0,src:c.unref(r)},c.unref(a)),null,16,zi)):(c.openBlock(),c.createBlock(f,c.mergeProps({key:1,load:()=>c.unref(n)(c.unref(r),c.unref(o))},c.unref(a)),null,16,["load"]))}}}),Nr=c.defineComponent({__name:"MountedTeleport",props:{to:{}},setup(e){const t=e,n=c.ref(!1);return c.onMounted(()=>{n.value=!0}),c.onUnmounted(()=>{n.value=!1}),(r,o)=>c.unref(n)?(c.openBlock(),c.createBlock(c.Teleport,{key:0,to:t.to},[c.renderSlot(r.$slots,"default")],8,["to"])):c.createCommentVNode("",!0)}}),Ki=["innerHTML"],Yi=["href"],Xi=["href"],vr=c.defineComponent({__name:"ReadMore",props:{moreStr:{default:"Read more"},lessStr:{default:""},text:{},link:{default:"#"},maxChars:{default:100}},setup(e){const t=e,n=c.ref(!1),r=c.computed(()=>!n.value&&t.text.length>t.maxChars?t.text.substring(0,t.maxChars)+"...":t.text),o=(i,a)=>{t.link=="#"&&i.preventDefault(),t.lessStr&&(n.value=a)};return(i,a)=>(c.openBlock(),c.createElementBlock("div",null,[c.createElementVNode("span",{innerHTML:c.unref(r)},null,8,Ki),c.withDirectives(c.createElementVNode("span",null,[c.withDirectives(c.createElementVNode("a",{id:"readmore",href:t.link,onClick:a[0]||(a[0]=u=>o(u,!0))},c.toDisplayString(t.moreStr),9,Yi),[[c.vShow,!c.unref(n)]]),c.withDirectives(c.createElementVNode("a",{id:"readmore",href:t.link,onClick:a[1]||(a[1]=u=>o(u,!1))},c.toDisplayString(t.lessStr),9,Xi),[[c.vShow,c.unref(n)]])],512),[[c.vShow,t.text.length>t.maxChars]])]))}}),Dr=c.defineComponent({__name:"StickyBottom",props:{bottom:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,n=c.ref(null),r=c.ref(!1),o=c.ref(""),i=c.ref(void 0),a=c.ref(void 0),u=c.ref(!1);c.onMounted(()=>{a.value=n.value?.getBoundingClientRect().height,window.addEventListener("scroll",O),window.addEventListener("resize",b),O()}),c.onActivated(()=>{O()}),c.onUnmounted(()=>{window.removeEventListener("scroll",O),window.removeEventListener("resize",b)});const T=()=>{r.value||(o.value="fixed",r.value=!0,i.value=i.value+"px",u.value=!0)},f=()=>{r.value&&d()},d=()=>{o.value="",i.value="auto",r.value=!1,u.value=!1},O=()=>{const _=n.value?.getBoundingClientRect().width;if(i.value=_||"auto",(n.value?.getBoundingClientRect().bottom||0)>t.bottom){T();return}f()},b=()=>{u.value&&(i.value=n.value?.getBoundingClientRect().width+"px")};return(_,l)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"el",ref:n,style:c.normalizeStyle({height:c.unref(a)+"px",zIndex:t.zIndex})},[c.createElementVNode("div",{class:c.normalizeClass(t.className),style:c.normalizeStyle({bottom:c.unref(u)?t.bottom+"px":"",zIndex:t.zIndex,position:c.unref(o),width:c.unref(i),height:c.unref(a)+"px"})},[c.renderSlot(_.$slots,"default",{},()=>[l[0]||(l[0]=c.createElementVNode("div",null,"Sticky Bottom",-1))])],6)],4))}}),Rr=c.defineComponent({__name:"StickyTop",props:{top:{default:0},zIndex:{default:1},className:{default:""}},setup(e){const t=e,n=c.ref(null),r=c.ref(!1),o=c.ref(""),i=c.ref(void 0),a=c.ref(void 0),u=c.ref(!1);c.onMounted(()=>{a.value=n.value?.getBoundingClientRect().height,window.addEventListener("scroll",O),window.addEventListener("resize",b)}),c.onActivated(()=>{O()}),c.onUnmounted(()=>{window.removeEventListener("scroll",O),window.removeEventListener("resize",b)});const T=()=>{r.value||(o.value="fixed",r.value=!0,i.value=i.value+"px",u.value=!0)},f=()=>{r.value&&d()},d=()=>{o.value="",i.value="auto",r.value=!1,u.value=!1},O=()=>{const _=n.value?.getBoundingClientRect().width;if(i.value=_||"auto",(n.value?.getBoundingClientRect().top||0)<t.top){T();return}f()},b=()=>{u.value&&(i.value=n.value?.getBoundingClientRect().width+"px")};return(_,l)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"el",ref:n,style:c.normalizeStyle({height:c.unref(a)+"px",zIndex:t.zIndex})},[c.createElementVNode("div",{class:c.normalizeClass(t.className),style:c.normalizeStyle({top:c.unref(u)?t.top+"px":"",zIndex:t.zIndex,position:c.unref(o),width:c.unref(i),height:c.unref(a)+"px"})},[c.renderSlot(_.$slots,"default",{},()=>[l[0]||(l[0]=c.createElementVNode("div",null,"Sticky Top",-1))])],6)],4))}});class Ji{state;constructor(t){this.state=c.reactive({props:t})}update(t,n="merge"){this.state.props=n==="merge"?this.deepMerge(this.state.props,t):this.deepOverride(this.state.props,t)}getState(){return c.readonly(this.state)}sync(t){this.state.props=t}deepMerge(t,n){const r={...t};return this.isObject(t)&&this.isObject(n)&&Object.keys(n).forEach(o=>{this.isObject(n[o])&&o in t?r[o]=this.deepMerge(t[o],n[o]):r[o]=n[o]}),r}deepOverride(t,n){if(!this.isObject(n))return n;const r={...n};return this.isObject(t)&&Object.keys(n).forEach(o=>{this.isObject(n[o])&&this.isObject(t[o])&&(r[o]=this.deepOverride(t[o],n[o]))}),r}isObject(t){return t&&typeof t=="object"&&!Array.isArray(t)}}const Qi=()=>{const{request:e}=ve(),t=c.ref(!1),n=async(_=!0)=>{t.value=!0;const l=await e({url:"/news-categories"});return t.value=!1,l.success&&l.result.data?l.result.data.filter(h=>!_||h.isActive):[]},r=async(_=!0)=>{t.value=!0;const l=await e({url:"/news-tags"});return t.value=!1,l.success&&l.result.data?l.result.data.filter(h=>!_||h.isActive):[]},o=_=>{const l=new URLSearchParams;return l.set("pageSize",String(_.pageSize)),_.query&&l.set("query",_.query),_.page&&l.set("page",String(_.page)),_.status&&l.set("status",String(_.status)),_.categories?.length&&_.categories.forEach(h=>l.append("categories[]",String(h))),_.tags?.length&&_.tags.forEach(h=>l.append("tags[]",String(h))),_.months?.length&&_.months.forEach(h=>l.append("months[]",h)),`/news-articles?${l.toString()}`},i=async _=>{t.value=!0;const l=await e({url:o(_)});return t.value=!1,l.success&&l.result.data?l.result.data:{articles:[],meta:{total:0,currentPage:1,perPage:1,lastPage:1}}},a=async()=>{t.value=!0;const _=await e({url:"/news-articles/list/months"});return t.value=!1,_.success&&_.result.data?_.result.data:[]},u=async()=>{t.value=!0;const _=await e({url:"/count/news-articles"});return t.value=!1,_.success?_.result.data:0},T=async _=>{t.value=!0;const l=await e({url:`/count/news-articles/status/${_}`});return t.value=!1,l.success?l.result.data:0},f=async _=>{t.value=!0;const l=await e({url:`/count/news-articles/author/${_}`});return t.value=!1,l.success?l.result.data:0},d=_=>{const l=new URLSearchParams;return Object.entries(_).forEach(([h,g])=>{g!==void 0&&l.set(h,String(g))}),`/news-comments?${l.toString()}`};return{isLoading:t,loadTags:r,loadComments:async _=>{t.value=!0;const l=await e({url:d(_)});return t.value=!1,l.success&&l.result.data?l.result.data:{comments:[],meta:{total:0,currentPage:1,perPage:1,lastPage:1}}},loadArticles:i,loadCategories:n,loadArticlesCount:u,loadArticlesMonths:a,loadArticlesCountByStatus:T,loadArticlesCountByAuthor:f,addComment:async(_,l=void 0,h=void 0)=>{t.value=!0;const g=await e({url:"/news-comments",method:"post",data:_});return t.value=!1,g.failure&&g.error?h&&h(g.error?.response?.data):l&&l(),g}}},Zi=()=>{const{request:e}=ve(),t=c.ref(!1),n=async(i=!0)=>{t.value=!0;const a=await e({url:"/video-categories"});return t.value=!1,a.success&&a.result.data?a.result.data.filter(u=>!i||u.isActive):[]},r=i=>{const a=new URLSearchParams;return a.set("pageSize",String(i.pageSize)),i.query&&a.set("query",i.query),i.page&&a.set("page",String(i.page)),i.source&&a.set("source",i.source),i.visible!==void 0&&a.set("visible",String(i.visible)),i.orderByPublishedAt!==void 0&&a.set("orderByPublishedAt",String(i.orderByPublishedAt)),i.categories?.length&&i.categories.forEach(u=>a.append("categories[]",String(u))),`/video-items?${a.toString()}`};return{isLoading:t,loadCategories:n,loadVideoItems:async i=>{t.value=!0;const a=await e({url:r(i)});return t.value=!1,a.success&&a.result.data?a.result.data:{videoItems:[],meta:{total:0,currentPage:1,perPage:1,lastPage:1}}}}},ea=()=>{const{request:e}=ve(),t=c.ref(!1),n=async(i,a=void 0,u=void 0)=>{await o("email",i,a,u)},r=async(i,a=void 0,u=void 0)=>{await o("phone",i.replace(/\s+/g,""),a,u)},o=async(i,a,u=void 0,T=void 0)=>{t.value=!0;const f=await e({url:`newsletter/${i}s`,method:"post",data:i==="email"?{email:a}:{phone:a}});f.failure&&f.error?T&&T(f.error?.response?.data):u&&u(),t.value=!1};return{subscribePhone:r,subscribeEmail:n,isLoading:t}},ta={install(e,t){if(!t?.initialProps)throw new Error("[@creopse/vue] initialProps is required");if(!t?.config)throw new Error("[@creopse/vue] config is required");if(!t?.resolveSections)throw new Error("[@creopse/vue] resolveSections is required");const n=new Ji(t.initialProps);t?.router?(t.router.on("navigate",r=>{n.sync(r.detail.page.props)}),e.provide(Rt,t.router)):console.warn("[@creopse/vue] No router - props won't sync"),e.provide(vt,n),e.config.globalProperties.$props=n,e.provide(Dt,t.config),e.config.globalProperties.$config=t.config,e.provide(Yn,t.resolveSections),e.config.globalProperties.$resolveSections=t.resolveSections,e.component("RootContainer",br),e.component("CustomTransition",wr),e.component("MountedTeleport",Nr),e.component("StickyBottom",Dr),e.component("StickyTop",Rr),e.component("ReadMore",vr),e.component("AsyncImg",Bt),e.component("Image",Sr)}};exports.AsyncImg=Bt;exports.CustomTransition=wr;exports.Image=Sr;exports.MountedTeleport=Nr;exports.ReadMore=vr;exports.RootContainer=br;exports.StickyBottom=Dr;exports.StickyTop=Rr;exports.default=ta;exports.useApi=ve;exports.useConfig=kt;exports.useContent=yr;exports.useHelper=Ct;exports.useNews=Qi;exports.useNewsletter=ea;exports.useProps=xe;exports.useVideo=Zi;
|