@formio/core
Version:
The core Form.io renderering framework.
2 lines • 140 kB
JavaScript
/*! For license information please see formio.modules.min.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.FormioCore=e():t.FormioCore=e()}(self,(function(){return function(){var t={2937:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.intersection=e.map=e.head=e.last=e.filter=e.findEach=e.matches=e.findIndex=e.find=e.each=e.dropRight=e.drop=e.difference=e.concat=e.compact=e.chunk=void 0;var o=n(7739),i=n(1769);function a(t,e){var n=Array.isArray(t);for(var r in t)if(t.hasOwnProperty(r)&&!0===e(t[r],n?Number(r):r))break}function u(t,e,n){if(void 0===n&&(n=!1),t){if(Array.isArray(t)&&"function"==typeof e)return n?t.findIndex(e):t.find(e);var r=void 0,o=0;return c(t,e,(function(t,e){return r=t,o=e,!0})),n?o:r}}function s(t){var e=[],n={};return"string"==typeof t?(e=[t],n[t]=!0):(e=Object.keys(t),n=t),function(t){return(0,o.isEqual)((0,i.pick)(t,e),n)}}function c(t,e,n){a(t,(function(t,r){if(s(e)(t)&&!0===n(t,r))return!0}))}e.chunk=function(t,e){return t.reduce((function(t,n,o){return o%e==0?r(r([],t,!0),[[n]],!1):r(r([],t.slice(0,-1),!0),[r(r([],t.slice(-1)[0],!0),[n],!1)],!1)}),[])},e.compact=function(t){return t.filter(Boolean)},e.concat=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.concat.apply(t,e)},e.difference=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce((function(t,e){return t.filter((function(t){return!e.includes(t)}))}))},e.drop=function(t,e){return void 0===e&&(e=1),e>0?t.slice(e):t},e.dropRight=function(t,e){return void 0===e&&(e=1),e>0?t.slice(0,-e):t},e.each=a,e.find=u,e.findIndex=function(t,e){return u(t,e,!0)},e.matches=s,e.findEach=c,e.filter=function(t,e){if(!t)return[];if(e||(e=function(t){return!!t}),Array.isArray(t)&&"function"==typeof e)return t.filter(e);var n=[];return c(t,e,(function(e,r){n.push(e),Array.isArray(e)?t.splice(r,1):delete t[r]})),n},e.last=function(t){return t[t.length-1]},e.head=function(t){return t[0]},e.map=function(t,e){return t.map(e)},e.intersection=function(t,e){return t.filter((function(t){return e.includes(t)}))}},3254:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0,e.debounce=function(t,e){var n;return void 0===e&&(e=100),function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n&&clearTimeout(n),n=setTimeout((function(){n=null,t.apply(void 0,r)}),e)}}},2373:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e},a=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},u=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.chain=void 0;var s=i(n(2937)),c=function(){function t(t){this.chain=[],this.currentValue=[],this.currentValue=t}return t.prototype.value=function(){return this.chain.reduce((function(t,e){var n;return(n=s)[e.method].apply(n,u([t],e.args,!1))}),this.currentValue)},t}(),l=function(t){s.hasOwnProperty(t)&&(c.prototype[t]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.chain.push({method:t,args:e}),this})};for(var f in s)l(f);function p(t){return new c(t)}e.chain=p,e.default=p,a(n(2937),e),a(n(3254),e),a(n(7739),e),a(n(7592),e),a(n(1769),e),a(n(7150),e)},7739:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRegExp=e.isBoolean=e.isNumber=e.isPlainObject=e.isObject=e.isObjectLike=e.isArray=e.isNull=e.isNil=e.isNaN=e.isInteger=e.isEmpty=e.isString=e.isEqual=e.noop=void 0;var r=n(2937);function o(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function i(t){return"object"==typeof t&&null!==t}function a(t){var e=typeof t;return null!=t&&("object"===e||"function"===e)}e.noop=function(){},e.isEqual=function t(e,n){var o=!1;return e===n||(e&&n&&(Array.isArray(e)||a(e))&&(o=!0,(0,r.each)(e,(function(e,r){return!Array.isArray(e)&&!a(e)||t(n[r],e)?n[r]!==e?(o=!1,!0):void 0:(o=!1,!0)}))),o)},e.isString=function(t){return"string"==typeof t},e.isEmpty=function(t){return[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length},e.isInteger=function(t){return Number.isInteger(t)},e.isNaN=function(t){return Number.isNaN(t)},e.isNil=function(t){return null==t},e.isNull=function(t){return null===t},e.isArray=function(t){return Array.isArray(t)},e.isObjectLike=i,e.isObject=a,e.isPlainObject=function(t){if(!i(t)||"[object Object]"!=o(t))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},e.isNumber=function(t){return"number"==typeof t||i(t)&&"[object Number]"==o(t)},e.isBoolean=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==o(t)},e.isRegExp=function(t){return i(t)&&"[object RegExp]"==o(t)}},7592:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sumBy=e.sum=e.mod=e.subtract=e.round=e.multiply=e.minBy=e.min=e.meanBy=e.mean=e.maxBy=e.max=e.floor=e.divide=e.ceil=e.add=void 0;var r=n(7739),o=n(1769);function i(t,e,n){return void 0===n&&(n=0),n?e(t*(n=Math.pow(10,n)))/n:e(t)}function a(t,e,n){var i=t[0];if(t.length<=1)return i;var a=(0,r.isString)(e);return t.slice(1).reduce((function(t,r){var i=a?(0,o.get)(t,e):e(t),u=a?(0,o.get)(r,e):e(r);return n(i,u)===u?r:t}),i)}function u(t,e){return t+e}function s(t){return t.reduce(u,0)}function c(t,e){return function(t,e,n){var i=t[0];if(t.length<=1)return i;var a=(0,r.isString)(e);return t.slice(1).reduce((function(t,n){return r=t,i=a?(0,o.get)(n,e):e(n),r+i;var r,i}),a?(0,o.get)(i,e):e(i))}(t,e)}e.add=u,e.ceil=function(t,e){return void 0===e&&(e=0),i(t,Math.ceil,e)},e.divide=function(t,e){return t/e},e.floor=function(t,e){return void 0===e&&(e=0),i(t,Math.floor,e)},e.max=function(t){return Math.max.apply(Math,t)},e.maxBy=function(t,e){return a(t,e,Math.max)},e.mean=function(t){return s(t)/t.length},e.meanBy=function(t,e){return c(t,e)/t.length},e.min=function(t){return Math.min.apply(Math,t)},e.minBy=function(t,e){return a(t,e,Math.min)},e.multiply=function(t,e){return t*e},e.round=function(t,e){return void 0===e&&(e=0),i(t,Math.round,e)},e.subtract=function(t,e){return t-e},e.mod=function(t,e){return t%e},e.sum=s,e.sumBy=c},1769:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.pick=e.defaults=e.cloneDeep=e.clone=e.fastCloneDeep=e.merge=e.set=e.has=e.propertyOf=e.property=e.get=e.pathParts=e.values=e.keys=void 0;var i=n(7739),a=n(2937);function u(t){return t?("["===t[0]&&(t=t.replace(/^\[([^\]]+)\]/,"$1")),t.replace(/\[/g,".").replace(/\]/g,"").split(".")):[]}function s(t,e,n){var r=u(e).reduce((function(t,e){return(t||{})[e]}),t);return void 0!==n&&void 0===r?n:r}function c(t,e){try{return e in t}catch(t){return!1}}function l(t,e){return c(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function f(t,e){for(var n in e)if(e.hasOwnProperty(n)){if(l(t,n))return;c(t,n)?t[n]=h(t[n],e[n]):t[n]=d(e[n])}return t}function p(t,e){return e.forEach((function(e,n){t[n]=h(t[n],e)})),t}function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();return t.reduce((function(e,n,r){return e&&e!==n?(0,i.isArray)(n)?((0,i.isArray)(e)||(t[r]=e=[]),p(e,n)):(0,i.isPlainObject)(n)?f(e,n):d(n):d(n)}),n)}function d(t){return Array.isArray(t)?t.map(d):null===t||"object"!=typeof t?t:Object.fromEntries(Object.entries(t).map((function(t){return[t[0],d(t[1])]})))}e.keys=function(t){return Object.keys(t)},e.values=function(t){return(0,i.isArray)(t)?t:Object.values(t)},e.pathParts=u,e.get=s,e.property=function(t){return function(e){return s(e,t)}},e.propertyOf=function(t){return function(e){return s(t,e)}},e.has=function(t,e){return void 0!==s(t,e,void 0)},e.set=function(t,e,n){var r=u(e);return r.reduce((function(t,e,o){return isNaN(Number(e))||(e=Number(e)),((Array.isArray(t)?e>=t.length:!t.hasOwnProperty(e))||o<r.length-1&&!Array.isArray(t[e])&&!(0,i.isObject)(t[e]))&&(t[e]=isNaN(Number(r[o+1]))?{}:[]),o===r.length-1&&(t[e]=n),t[e]}),t),t},e.merge=h,e.fastCloneDeep=function(t){try{return JSON.parse(JSON.stringify(t))}catch(t){return console.log("Clone Failed: ".concat(t.message)),null}},e.clone=function(t){return Array.isArray(t)?o([],t,!0):r({},t)},e.cloneDeep=d,e.defaults=function(t,e){return(0,a.each)(e,(function(e,n){t.hasOwnProperty(n)||(t[n]=e)})),t},e.pick=function(t,e){return e.reduce((function(e,n){return t&&t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{})}},7150:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.endsWith=e.trim=void 0,e.trim=function(t,e){return void 0===e&&(e="\\s"),t.replace(new RegExp("^([".concat(e,"]*)(.*?)([").concat(e,"]*)$")),"$2")},String.prototype.endsWith||(String.prototype.endsWith=function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t}),e.endsWith=function(t,e){return t.endsWith(e)}},7484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",u="week",s="month",c="quarter",l="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},m={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,s),i=n-o<0,a=e.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:s,y:l,w:u,d:a,D:f,h:i,m:o,s:r,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",g={};g[b]=y;var _=function(t){return t instanceof A},w=function t(e,n,r){var o;if(!e)return b;if("string"==typeof e){var i=e.toLowerCase();g[i]&&(o=i),n&&(g[i]=n,o=i);var a=e.split("-");if(!o&&a.length>1)return t(a[0])}else{var u=e.name;g[u]=e,o=u}return!r&&o&&(b=o),o||!r&&b},O=function(t,e){if(_(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new A(n)},x=m;x.l=w,x.i=_,x.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var A=function(){function y(t){this.$L=w(t.locale,null,!0),this.parse(t)}var v=y.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return x},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return O(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<O(t)},v.$g=function(t,e,n){return x.u(t)?this[e]:this.set(n,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var n=this,c=!!x.u(e)||e,p=x.p(t),h=function(t,e){var r=x.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return c?r:r.endOf(a)},d=function(t,e){return x.w(n.toDate()[t].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,v=this.$M,m=this.$D,b="set"+(this.$u?"UTC":"");switch(p){case l:return c?h(1,0):h(31,11);case s:return c?h(1,v):h(0,v+1);case u:var g=this.$locale().weekStart||0,_=(y<g?y+7:y)-g;return h(c?m-_:m+(6-_),v);case a:case f:return d(b+"Hours",0);case i:return d(b+"Minutes",1);case o:return d(b+"Seconds",2);case r:return d(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var u,c=x.p(t),p="set"+(this.$u?"UTC":""),h=(u={},u[a]=p+"Date",u[f]=p+"Date",u[s]=p+"Month",u[l]=p+"FullYear",u[i]=p+"Hours",u[o]=p+"Minutes",u[r]=p+"Seconds",u[n]=p+"Milliseconds",u)[c],d=c===a?this.$D+(e-this.$W):e;if(c===s||c===l){var y=this.clone().set(f,1);y.$d[h](d),y.init(),this.$d=y.set(f,Math.min(this.$D,y.daysInMonth())).$d}else h&&this.$d[h](d);return this.init(),this},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[x.p(t)]()},v.add=function(n,c){var f,p=this;n=Number(n);var h=x.p(c),d=function(t){var e=O(p);return x.w(e.date(e.date()+Math.round(t*n)),p)};if(h===s)return this.set(s,this.$M+n);if(h===l)return this.set(l,this.$y+n);if(h===a)return d(1);if(h===u)return d(7);var y=(f={},f[o]=t,f[i]=e,f[r]=1e3,f)[h]||1,v=this.$d.getTime()+n*y;return x.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=x.z(this),i=this.$H,a=this.$m,u=this.$M,s=n.weekdays,c=n.months,l=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].slice(0,i)},f=function(t){return x.s(i%12||12,t,"0")},h=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:x.s(u+1,2,"0"),MMM:l(n.monthsShort,u,c,3),MMMM:l(c,u),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,s,2),ddd:l(n.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(i),HH:x.s(i,2,"0"),h:f(1),hh:f(2),a:h(i,a,!0),A:h(i,a,!1),m:String(a),mm:x.s(a,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:o};return r.replace(d,(function(t,e){return e||y[t]||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(n,f,p){var h,d=x.p(f),y=O(n),v=(y.utcOffset()-this.utcOffset())*t,m=this-y,b=x.m(this,y);return b=(h={},h[l]=b/12,h[s]=b,h[c]=b/3,h[u]=(m-v)/6048e5,h[a]=(m-v)/864e5,h[i]=m/e,h[o]=m/t,h[r]=m/1e3,h)[d]||m,p?b:x.a(b)},v.daysInMonth=function(){return this.endOf(s).$D},v.$locale=function(){return g[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},v.clone=function(){return x.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},y}(),M=A.prototype;return O.prototype=M,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",s],["$y",l],["$D",f]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,A,O),t.$i=!0),O},O.locale=w,O.isDayjs=_,O.unix=function(t){return O(1e3*t)},O.en=g[b],O.Ls=g,O.p={},O}()},9387:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,r,o){var i,a=function(t,n,r){void 0===r&&(r={});var o=new Date(t),i=function(t,n){void 0===n&&(n={});var r=n.timeZoneName||"short",o=t+"|"+r,i=e[o];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),e[o]=i),i}(n,r);return i.formatToParts(o)},u=function(e,n){for(var r=a(e,n),i=[],u=0;u<r.length;u+=1){var s=r[u],c=s.type,l=s.value,f=t[c];f>=0&&(i[f]=parseInt(l,10))}var p=i[3],h=24===p?0:p,d=i[0]+"-"+i[1]+"-"+i[2]+" "+h+":"+i[4]+":"+i[5]+":000",y=+e;return(o.utc(d).valueOf()-(y-=y%1e3))/6e4},s=r.prototype;s.tz=function(t,e){void 0===t&&(t=i);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:t}),u=Math.round((r-new Date(a))/1e3/60),s=o(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-u,!0);if(e){var c=s.utcOffset();s=s.add(n-c,"minute")}return s.$x.$timezone=t,s},s.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=s.startOf;s.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var r=n&&e,a=n||e||i,s=u(+o(),a);if("string"!=typeof t)return o(t).tz(a);var c=function(t,e,n){var r=t-60*e*1e3,o=u(r,n);if(e===o)return[r,e];var i=u(r-=60*(o-e)*1e3,n);return o===i?[r,o]:[t-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(t,r).valueOf(),s,a),l=c[0],f=c[1],p=o(l).utcOffset(f);return p.$x.$timezone=a,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){i=t}}}()},178:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(t){return new o({date:t,utc:!0,args:arguments})},a.utc=function(e){var n=i(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var u=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),u.call(this,t)};var s=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,u=this;if(o)return u.$offset=a,u.$u=0===r,u;if(0!==r){var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(u=this.local().add(a+s,t)).$offset=a,u.$x.$localOffset=s}else u=this.utc();return u};var l=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=a.diff;a.diff=function(t,e,n){if(t&&this.$u===t.$u)return p.call(this,t,e,n);var r=this.local(),o=i(t).local();return p.call(r,o,e,n)}}}()},7856:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function r(t,o,i){return r=n()?Reflect.construct:function(t,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(t,o));return r&&e(i,r.prototype),i},r.apply(null,arguments)}function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=Object.hasOwnProperty,u=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,f=Object.freeze,p=Object.seal,h=Object.create,d="undefined"!=typeof Reflect&&Reflect,y=d.apply,v=d.construct;y||(y=function(t,e,n){return t.apply(e,n)}),f||(f=function(t){return t}),p||(p=function(t){return t}),v||(v=function(t,e){return r(t,o(e))});var m,b=j(Array.prototype.forEach),g=j(Array.prototype.pop),_=j(Array.prototype.push),w=j(String.prototype.toLowerCase),O=j(String.prototype.match),x=j(String.prototype.replace),A=j(String.prototype.indexOf),M=j(String.prototype.trim),S=j(RegExp.prototype.test),k=(m=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return v(m,e)});function j(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return y(t,e,r)}}function E(t,e){u&&u(t,null);for(var n=e.length;n--;){var r=e[n];if("string"==typeof r){var o=w(r);o!==r&&(s(e)||(e[n]=o),r=o)}t[r]=!0}return t}function T(t){var e,n=h(null);for(e in t)y(a,t,[e])&&(n[e]=t[e]);return n}function D(t,e){for(;null!==t;){var n=l(t,e);if(n){if(n.get)return j(n.get);if("function"==typeof n.value)return j(n.value)}t=c(t)}return function(t){return console.warn("fallback value for",t),null}}var P=f(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=f(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C=f(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$=f(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),L=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),I=f(["#text"]),z=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),B=f(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=f(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=p(/<%[\w\W]*|[\w\W]*%>/gm),q=p(/^data-[\-\w.\u00B7-\uFFFF]/),G=p(/^aria-[\-\w]+$/),V=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=p(/^(?:\w+script|data):/i),Z=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=p(/^html$/i),K=function(){return"undefined"==typeof window?null:window},X=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),r=function(t){return e(t)};if(r.version="2.3.8",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,a=n.document,u=n.DocumentFragment,s=n.HTMLTemplateElement,c=n.Node,l=n.Element,p=n.NodeFilter,h=n.NamedNodeMap,d=void 0===h?n.NamedNodeMap||n.MozNamedAttrMap:h,y=n.HTMLFormElement,v=n.DOMParser,m=n.trustedTypes,j=l.prototype,Q=D(j,"cloneNode"),tt=D(j,"nextSibling"),et=D(j,"childNodes"),nt=D(j,"parentNode");if("function"==typeof s){var rt=a.createElement("template");rt.content&&rt.content.ownerDocument&&(a=rt.content.ownerDocument)}var ot=X(m,i),it=ot?ot.createHTML(""):"",at=a,ut=at.implementation,st=at.createNodeIterator,ct=at.createDocumentFragment,lt=at.getElementsByTagName,ft=i.importNode,pt={};try{pt=T(a).documentMode?a.documentMode:{}}catch(t){}var ht={};r.isSupported="function"==typeof nt&&ut&&void 0!==ut.createHTMLDocument&&9!==pt;var dt,yt,vt=H,mt=W,bt=q,gt=G,_t=Y,wt=Z,Ot=V,xt=null,At=E({},[].concat(o(P),o(R),o(N),o($),o(I))),Mt=null,St=E({},[].concat(o(z),o(B),o(U),o(F))),kt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),jt=null,Et=null,Tt=!0,Dt=!0,Pt=!1,Rt=!1,Nt=!1,Ct=!1,$t=!1,Lt=!1,It=!1,zt=!1,Bt=!0,Ut=!0,Ft=!1,Ht={},Wt=null,qt=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Gt=null,Vt=E({},["audio","video","img","source","image","track"]),Yt=null,Zt=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Jt="http://www.w3.org/1998/Math/MathML",Kt="http://www.w3.org/2000/svg",Xt="http://www.w3.org/1999/xhtml",Qt=Xt,te=!1,ee=["application/xhtml+xml","text/html"],ne="text/html",re=null,oe=a.createElement("form"),ie=function(t){return t instanceof RegExp||t instanceof Function},ae=function(e){re&&re===e||(e&&"object"===t(e)||(e={}),e=T(e),xt="ALLOWED_TAGS"in e?E({},e.ALLOWED_TAGS):At,Mt="ALLOWED_ATTR"in e?E({},e.ALLOWED_ATTR):St,Yt="ADD_URI_SAFE_ATTR"in e?E(T(Zt),e.ADD_URI_SAFE_ATTR):Zt,Gt="ADD_DATA_URI_TAGS"in e?E(T(Vt),e.ADD_DATA_URI_TAGS):Vt,Wt="FORBID_CONTENTS"in e?E({},e.FORBID_CONTENTS):qt,jt="FORBID_TAGS"in e?E({},e.FORBID_TAGS):{},Et="FORBID_ATTR"in e?E({},e.FORBID_ATTR):{},Ht="USE_PROFILES"in e&&e.USE_PROFILES,Tt=!1!==e.ALLOW_ARIA_ATTR,Dt=!1!==e.ALLOW_DATA_ATTR,Pt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Rt=e.SAFE_FOR_TEMPLATES||!1,Nt=e.WHOLE_DOCUMENT||!1,Lt=e.RETURN_DOM||!1,It=e.RETURN_DOM_FRAGMENT||!1,zt=e.RETURN_TRUSTED_TYPE||!1,$t=e.FORCE_BODY||!1,Bt=!1!==e.SANITIZE_DOM,Ut=!1!==e.KEEP_CONTENT,Ft=e.IN_PLACE||!1,Ot=e.ALLOWED_URI_REGEXP||Ot,Qt=e.NAMESPACE||Xt,e.CUSTOM_ELEMENT_HANDLING&&ie(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(kt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ie(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(kt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(kt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),dt=dt=-1===ee.indexOf(e.PARSER_MEDIA_TYPE)?ne:e.PARSER_MEDIA_TYPE,yt="application/xhtml+xml"===dt?function(t){return t}:w,Rt&&(Dt=!1),It&&(Lt=!0),Ht&&(xt=E({},o(I)),Mt=[],!0===Ht.html&&(E(xt,P),E(Mt,z)),!0===Ht.svg&&(E(xt,R),E(Mt,B),E(Mt,F)),!0===Ht.svgFilters&&(E(xt,N),E(Mt,B),E(Mt,F)),!0===Ht.mathMl&&(E(xt,$),E(Mt,U),E(Mt,F))),e.ADD_TAGS&&(xt===At&&(xt=T(xt)),E(xt,e.ADD_TAGS)),e.ADD_ATTR&&(Mt===St&&(Mt=T(Mt)),E(Mt,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&E(Yt,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Wt===qt&&(Wt=T(Wt)),E(Wt,e.FORBID_CONTENTS)),Ut&&(xt["#text"]=!0),Nt&&E(xt,["html","head","body"]),xt.table&&(E(xt,["tbody"]),delete jt.tbody),f&&f(e),re=e)},ue=E({},["mi","mo","mn","ms","mtext"]),se=E({},["foreignobject","desc","title","annotation-xml"]),ce=E({},["title","style","font","a","script"]),le=E({},R);E(le,N),E(le,C);var fe=E({},$);E(fe,L);var pe=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:Xt,tagName:"template"});var n=w(t.tagName),r=w(e.tagName);return t.namespaceURI===Kt?e.namespaceURI===Xt?"svg"===n:e.namespaceURI===Jt?"svg"===n&&("annotation-xml"===r||ue[r]):Boolean(le[n]):t.namespaceURI===Jt?e.namespaceURI===Xt?"math"===n:e.namespaceURI===Kt?"math"===n&&se[r]:Boolean(fe[n]):t.namespaceURI===Xt&&!(e.namespaceURI===Kt&&!se[r])&&!(e.namespaceURI===Jt&&!ue[r])&&!fe[n]&&(ce[n]||!le[n])},he=function(t){_(r.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=it}catch(e){t.remove()}}},de=function(t,e){try{_(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){_(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Mt[t])if(Lt||It)try{he(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ye=function(t){var e,n;if($t)t="<remove></remove>"+t;else{var r=O(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===dt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var o=ot?ot.createHTML(t):t;if(Qt===Xt)try{e=(new v).parseFromString(o,dt)}catch(t){}if(!e||!e.documentElement){e=ut.createDocument(Qt,"template",null);try{e.documentElement.innerHTML=te?"":o}catch(t){}}var i=e.body||e.documentElement;return t&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),Qt===Xt?lt.call(e,Nt?"html":"body")[0]:Nt?e.documentElement:i},ve=function(t){return st.call(t.ownerDocument||t,t,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},me=function(t){return t instanceof y&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore)},be=function(e){return"object"===t(c)?e instanceof c:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ge=function(t,e,n){ht[t]&&b(ht[t],(function(t){t.call(r,e,n,re)}))},_e=function(t){var e;if(ge("beforeSanitizeElements",t,null),me(t))return he(t),!0;if(S(/[\u0080-\uFFFF]/,t.nodeName))return he(t),!0;var n=yt(t.nodeName);if(ge("uponSanitizeElement",t,{tagName:n,allowedTags:xt}),t.hasChildNodes()&&!be(t.firstElementChild)&&(!be(t.content)||!be(t.content.firstElementChild))&&S(/<[/\w]/g,t.innerHTML)&&S(/<[/\w]/g,t.textContent))return he(t),!0;if("select"===n&&S(/<template/i,t.innerHTML))return he(t),!0;if(!xt[n]||jt[n]){if(!jt[n]&&Oe(n)){if(kt.tagNameCheck instanceof RegExp&&S(kt.tagNameCheck,n))return!1;if(kt.tagNameCheck instanceof Function&&kt.tagNameCheck(n))return!1}if(Ut&&!Wt[n]){var o=nt(t)||t.parentNode,i=et(t)||t.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),tt(t))}return he(t),!0}return t instanceof l&&!pe(t)?(he(t),!0):"noscript"!==n&&"noembed"!==n||!S(/<\/no(script|embed)/i,t.innerHTML)?(Rt&&3===t.nodeType&&(e=t.textContent,e=x(e,vt," "),e=x(e,mt," "),t.textContent!==e&&(_(r.removed,{element:t.cloneNode()}),t.textContent=e)),ge("afterSanitizeElements",t,null),!1):(he(t),!0)},we=function(t,e,n){if(Bt&&("id"===e||"name"===e)&&(n in a||n in oe))return!1;if(Dt&&!Et[e]&&S(bt,e));else if(Tt&&S(gt,e));else if(!Mt[e]||Et[e]){if(!(Oe(t)&&(kt.tagNameCheck instanceof RegExp&&S(kt.tagNameCheck,t)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(t))&&(kt.attributeNameCheck instanceof RegExp&&S(kt.attributeNameCheck,e)||kt.attributeNameCheck instanceof Function&&kt.attributeNameCheck(e))||"is"===e&&kt.allowCustomizedBuiltInElements&&(kt.tagNameCheck instanceof RegExp&&S(kt.tagNameCheck,n)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(n))))return!1}else if(Yt[e]);else if(S(Ot,x(n,wt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==A(n,"data:")||!Gt[t])if(Pt&&!S(_t,x(n,wt,"")));else if(n)return!1;return!0},Oe=function(t){return t.indexOf("-")>0},xe=function(t){var e,n,o,i;ge("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Mt};for(i=a.length;i--;){var s=e=a[i],c=s.name,l=s.namespaceURI;if(n="value"===c?e.value:M(e.value),o=yt(c),u.attrName=o,u.attrValue=n,u.keepAttr=!0,u.forceKeepAttr=void 0,ge("uponSanitizeAttribute",t,u),n=u.attrValue,!u.forceKeepAttr&&(de(c,t),u.keepAttr))if(S(/\/>/i,n))de(c,t);else{Rt&&(n=x(n,vt," "),n=x(n,mt," "));var f=yt(t.nodeName);if(we(f,o,n))try{l?t.setAttributeNS(l,c,n):t.setAttribute(c,n),g(r.removed)}catch(t){}}}ge("afterSanitizeAttributes",t,null)}},Ae=function t(e){var n,r=ve(e);for(ge("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)ge("uponSanitizeShadowNode",n,null),_e(n)||(n.content instanceof u&&t(n.content),xe(n));ge("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(e,o){var a,s,l,f,p;if((te=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!be(e)){if("function"!=typeof e.toString)throw k("toString is not a function");if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!r.isSupported){if("object"===t(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof e)return n.toStaticHTML(e);if(be(e))return n.toStaticHTML(e.outerHTML)}return e}if(Ct||ae(o),r.removed=[],"string"==typeof e&&(Ft=!1),Ft){if(e.nodeName){var h=yt(e.nodeName);if(!xt[h]||jt[h])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)1===(s=(a=ye("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?a=s:a.appendChild(s);else{if(!Lt&&!Rt&&!Nt&&-1===e.indexOf("<"))return ot&&zt?ot.createHTML(e):e;if(!(a=ye(e)))return Lt?null:zt?it:""}a&&$t&&he(a.firstChild);for(var d=ve(Ft?e:a);l=d.nextNode();)3===l.nodeType&&l===f||_e(l)||(l.content instanceof u&&Ae(l.content),xe(l),f=l);if(f=null,Ft)return e;if(Lt){if(It)for(p=ct.call(a.ownerDocument);a.firstChild;)p.appendChild(a.firstChild);else p=a;return Mt.shadowroot&&(p=ft.call(i,p,!0)),p}var y=Nt?a.outerHTML:a.innerHTML;return Nt&&xt["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&S(J,a.ownerDocument.doctype.name)&&(y="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+y),Rt&&(y=x(y,vt," "),y=x(y,mt," ")),ot&&zt?ot.createHTML(y):y},r.setConfig=function(t){ae(t),Ct=!0},r.clearConfig=function(){re=null,Ct=!1},r.isValidAttribute=function(t,e,n){re||ae({});var r=yt(t),o=yt(e);return we(r,o,n)},r.addHook=function(t,e){"function"==typeof e&&(ht[t]=ht[t]||[],_(ht[t],e))},r.removeHook=function(t){if(ht[t])return g(ht[t])},r.removeHooks=function(t){ht[t]&&(ht[t]=[])},r.removeAllHooks=function(){ht={}},r}()}()},7559:function(t,e,n){var r;!function(o){"use strict";function i(t){var n=t&&t.Promise||o.Promise,r=t&&t.XMLHttpRequest||o.XMLHttpRequest;return function(){var t=Object.create(o,{fetch:{value:void 0,writable:!0}});return function(e){var o=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==o&&o,i="URLSearchParams"in o,a="Symbol"in o&&"iterator"in Symbol,u="FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in o,c="ArrayBuffer"in o;if(c)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(t){return t&&l.indexOf(Object.prototype.toString.call(t))>-1};function p(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return a&&(e[Symbol.iterator]=function(){return e}),e}function y(t){this.map={},t instanceof y?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function v(t){if(t.bodyUsed)return n.reject(new TypeError("Already read"));t.bodyUsed=!0}function m(t){return new n((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function b(t){var e=new FileReader,n=m(e);return e.readAsArrayBuffer(t),n}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:u&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():c&&u&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(t)||f(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},u&&(this.blob=function(){var t=v(this);if(t)return t;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?v(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(b)}),this.text=function(){var t,e,r,o=v(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=m(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return n.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}y.prototype.append=function(t,e){t=p(t),e=h(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},y.prototype.delete=function(t){delete this.map[p(t)]},y.prototype.get=function(t){return t=p(t),this.has(t)?this.map[t]:null},y.prototype.has=function(t){return this.map.hasOwnProperty(p(t))},y.prototype.set=function(t,e){this.map[p(t)]=h(e)},y.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},y.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),d(t)},y.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),d(t)},y.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),d(t)},a&&(y.prototype[Symbol.iterator]=y.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(t,e){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(e=e||{}).body;if(t instanceof O){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new y(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new y(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),w.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function A(t,e){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new y(e.headers),this.url=e.url||"",this._initBody(t)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},_.call(O.prototype),_.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},A.error=function(){var t=new A(null,{status:0,statusText:""});return t.type="error",t};var M=[301,302,303,307,308];A.redirect=function(t,e){if(-1===M.indexOf(e))throw new RangeError("Invalid status code");return new A(null,{status:e,headers:{location:t}})},e.DOMException=o.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function S(t,i){return new n((function(n,a){var s=new O(t,i);if(s.signal&&s.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var l=new r;function f(){l.abort()}l.onload=function(){var t,e,r={status:l.status,statusText:l.statusText,headers:(t=l.getAllResponseHeaders()||"",e=new y,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in l?l.responseURL:r.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;setTimeout((function(){n(new A(o,r))}),0)},l.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},l.open(s.method,function(t){try{return""===t&&o.location.href?o.location.href:t}catch(e){return t}}(s.url),!0),